repo_id stringlengths 6 101 | file_path stringlengths 2 269 | content stringlengths 367 5.14M | size int64 367 5.14M | filename stringlengths 1 248 | ext stringlengths 0 87 | lang stringclasses 88 values | program_lang stringclasses 232 values | doc_type stringclasses 5 values | quality_signal stringlengths 2 1.9k | effective stringclasses 2 values | hit_map stringlengths 2 1.4k |
|---|---|---|---|---|---|---|---|---|---|---|---|
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ЗаявлениеНаВыпускНовогоКвалифицированногоСертификата/Forms/ФормаСоглашения/Ext/Form.xml | <?xml version="1.0" encoding="UTF-8"?>
<Form xmlns="http://v8.1c.ru/8.3/xcf/logform" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:dcscor="http://v8.1c.ru/8.1/data-composition-system/core" xmlns:dcssch="http://v8.1c.ru/8.1/data-composition-system/schema" xmlns:dcsset="http://v8.1c.ru/8.1/data-composition-system/settings" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Условия соглашения</v8:content>
</v8:item>
</Title>
<WindowOpeningMode>LockOwnerWindow</WindowOpeningMode>
<AutoTitle>false</AutoTitle>
<AutoCommandBar name="ФормаКоманднаяПанель" id="-1">
<Autofill>false</Autofill>
<ChildItems>
<Button name="ФормаПечать" id="14">
<Type>CommandBarButton</Type>
<Representation>PictureAndText</Representation>
<DefaultButton>true</DefaultButton>
<CommandName>Form.Item.Соглашение.StandardCommand.Print</CommandName>
<ExtendedTooltip name="ФормаПечатьРасширеннаяПодсказка" id="15"/>
</Button>
</ChildItems>
</AutoCommandBar>
<Events>
<Event name="OnCreateAtServer">ПриСозданииНаСервере</Event>
</Events>
<ChildItems>
<FormattedDocumentField name="Соглашение" id="1">
<DataPath>Соглашение</DataPath>
<ReadOnly>true</ReadOnly>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Соглашение</v8:content>
</v8:item>
</Title>
<TitleLocation>None</TitleLocation>
<AutoMaxHeight>false</AutoMaxHeight>
<ContextMenu name="СоглашениеКонтекстноеМеню" id="2">
<Autofill>false</Autofill>
<ChildItems>
<Button name="СоглашениеКонтекстноеМенюКопироватьВБуферОбмена" id="4">
<Type>CommandBarButton</Type>
<CommandName>Form.Item.Соглашение.StandardCommand.CopyToClipboard</CommandName>
<ExtendedTooltip name="СоглашениеКонтекстноеМенюКопироватьВБуферОбменаРасширеннаяПодсказка" id="5"/>
</Button>
<Button name="СоглашениеКонтекстноеМенюВыделитьВсе" id="6">
<Type>CommandBarButton</Type>
<CommandName>Form.Item.Соглашение.StandardCommand.SelectAll</CommandName>
<ExtendedTooltip name="СоглашениеКонтекстноеМенюВыделитьВсеРасширеннаяПодсказка" id="7"/>
</Button>
<Button name="СоглашениеКонтекстноеМенюСохранитьКак" id="8">
<Type>CommandBarButton</Type>
<CommandName>Form.Item.Соглашение.StandardCommand.SaveAs</CommandName>
<ExtendedTooltip name="СоглашениеКонтекстноеМенюСохранитьКакРасширеннаяПодсказка" id="9"/>
</Button>
<Button name="СоглашениеКонтекстноеМенюПредварительныйПросмотр" id="10">
<Type>CommandBarButton</Type>
<CommandName>Form.Item.Соглашение.StandardCommand.Preview</CommandName>
<ExtendedTooltip name="СоглашениеКонтекстноеМенюПредварительныйПросмотрРасширеннаяПодсказка" id="11"/>
</Button>
<Button name="СоглашениеКонтекстноеМенюПечать" id="12">
<Type>CommandBarButton</Type>
<CommandName>Form.Item.Соглашение.StandardCommand.Print</CommandName>
<ExtendedTooltip name="СоглашениеКонтекстноеМенюПечатьРасширеннаяПодсказка" id="13"/>
</Button>
</ChildItems>
</ContextMenu>
<ExtendedTooltip name="СоглашениеРасширеннаяПодсказка" id="3"/>
</FormattedDocumentField>
</ChildItems>
<Attributes>
<Attribute name="Соглашение" id="2">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Соглашение</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type xmlns:fd="http://v8.1c.ru/8.2/data/formatted-document">fd:FormattedDocument</v8:Type>
</Type>
</Attribute>
</Attributes>
<Parameters>
<Parameter name="СвойстваУЦ">
<Type/>
</Parameter>
</Parameters>
</Form> | 4,194 | Form | xml | ru | xml | data | {"qsc_code_num_words": 471, "qsc_code_num_chars": 4194.0, "qsc_code_mean_word_length": 6.42675159, "qsc_code_frac_words_unique": 0.28237792, "qsc_code_frac_chars_top_2grams": 0.03171457, "qsc_code_frac_chars_top_3grams": 0.04228609, "qsc_code_frac_chars_top_4grams": 0.05285761, "qsc_code_frac_chars_dupe_5grams": 0.37628015, "qsc_code_frac_chars_dupe_6grams": 0.36967294, "qsc_code_frac_chars_dupe_7grams": 0.32210109, "qsc_code_frac_chars_dupe_8grams": 0.30690453, "qsc_code_frac_chars_dupe_9grams": 0.15427816, "qsc_code_frac_chars_dupe_10grams": 0.05351833, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.03338675, "qsc_code_frac_chars_whitespace": 0.10729614, "qsc_code_size_file_byte": 4194.0, "qsc_code_num_lines": 89.0, "qsc_code_num_chars_line_max": 918.0, "qsc_code_num_chars_line_mean": 47.12359551, "qsc_code_frac_chars_alphabet": 0.77483974, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.43820225, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.336433, "qsc_code_frac_chars_long_word_length": 0.13924654, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ЗаявлениеНаВыпускНовогоКвалифицированногоСертификата/Forms/ФормаСоглашения/Ext/Form/Module.bsl | ///////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2024, ООО 1С-Софт
// Все права защищены. Эта программа и сопроводительные материалы предоставляются
// в соответствии с условиями лицензии Attribution 4.0 International (CC BY 4.0)
// Текст лицензии доступен по ссылке:
// https://creativecommons.org/licenses/by/4.0/legalcode
///////////////////////////////////////////////////////////////////////////////////////////////////////
#Область ОбработчикиСобытийФормы
&НаСервере
Процедура ПриСозданииНаСервере(Отказ, СтандартнаяОбработка)
СвойстваУЦ = Параметры.СвойстваУЦ;
ТекстHTML = Обработки.ЗаявлениеНаВыпускНовогоКвалифицированногоСертификата.ПолучитьМакет(
"Соглашение").ПолучитьТекст();
ТекстHTML = СтроковыеФункцииКлиентСервер.ПодставитьПараметрыВСтроку(ТекстHTML,
СвойстваУЦ.ПолноеНаименованиеУЦ, СвойстваУЦ.АдресПорядкаУЦ);
Соглашение.УстановитьHTML(ТекстHTML, Новый Структура);
КонецПроцедуры
#КонецОбласти
| 1,008 | Module | bsl | ru | 1c enterprise | code | {"qsc_code_num_words": 73, "qsc_code_num_chars": 1008.0, "qsc_code_mean_word_length": 8.98630137, "qsc_code_frac_words_unique": 0.82191781, "qsc_code_frac_chars_top_2grams": 0.00914634, "qsc_code_frac_chars_top_3grams": 0.01219512, "qsc_code_frac_chars_top_4grams": 0.0, "qsc_code_frac_chars_dupe_5grams": 0.0, "qsc_code_frac_chars_dupe_6grams": 0.0, "qsc_code_frac_chars_dupe_7grams": 0.0, "qsc_code_frac_chars_dupe_8grams": 0.0, "qsc_code_frac_chars_dupe_9grams": 0.0, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.01189189, "qsc_code_frac_chars_whitespace": 0.08234127, "qsc_code_size_file_byte": 1008.0, "qsc_code_num_lines": 26.0, "qsc_code_num_chars_line_max": 105.0, "qsc_code_num_chars_line_mean": 38.76923077, "qsc_code_frac_chars_alphabet": 0.69621622, "qsc_code_frac_chars_comments": 0.89583333, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.0, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 1, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ЗаявлениеНаВыпускНовогоКвалифицированногоСертификата/Forms/ВводПинКода/Ext/Form.xml | <?xml version="1.0" encoding="UTF-8"?>
<Form xmlns="http://v8.1c.ru/8.3/xcf/logform" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:dcscor="http://v8.1c.ru/8.1/data-composition-system/core" xmlns:dcssch="http://v8.1c.ru/8.1/data-composition-system/schema" xmlns:dcsset="http://v8.1c.ru/8.1/data-composition-system/settings" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Введите пин-код пользователя токена</v8:content>
</v8:item>
</Title>
<Width>30</Width>
<AutoTitle>false</AutoTitle>
<CommandBarLocation>Bottom</CommandBarLocation>
<AutoCommandBar name="ФормаКоманднаяПанель" id="-1">
<HorizontalAlign>Right</HorizontalAlign>
<Autofill>false</Autofill>
<ChildItems>
<Button name="ФормаОК" id="4">
<Type>CommandBarButton</Type>
<DefaultButton>true</DefaultButton>
<CommandName>Form.Command.ОК</CommandName>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>ОК</v8:content>
</v8:item>
</Title>
<ExtendedTooltip name="ФормаОКРасширеннаяПодсказка" id="5"/>
</Button>
</ChildItems>
</AutoCommandBar>
<ChildItems>
<InputField name="ПинКод" id="1">
<DataPath>ПинКод</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Пин код</v8:content>
</v8:item>
</Title>
<TitleLocation>None</TitleLocation>
<PasswordMode>true</PasswordMode>
<ChoiceButton>true</ChoiceButton>
<ChoiceButtonPicture>
<xr:Ref>CommonPicture.ВводимыеСимволыВидны</xr:Ref>
<xr:LoadTransparent>false</xr:LoadTransparent>
</ChoiceButtonPicture>
<ContextMenu name="ПинКодКонтекстноеМеню" id="2"/>
<ExtendedTooltip name="ПинКодРасширеннаяПодсказка" id="3"/>
<Events>
<Event name="StartChoice">ПинКодНачалоВыбора</Event>
</Events>
</InputField>
</ChildItems>
<Attributes>
<Attribute name="ПинКод" id="1">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Пин код</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>0</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
</Attributes>
<Commands>
<Command name="ОК" id="1">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>ОК</v8:content>
</v8:item>
</Title>
<Action>ОК</Action>
</Command>
</Commands>
</Form> | 3,008 | Form | xml | ru | xml | data | {"qsc_code_num_words": 418, "qsc_code_num_chars": 3008.0, "qsc_code_mean_word_length": 4.83971292, "qsc_code_frac_words_unique": 0.28708134, "qsc_code_frac_chars_top_2grams": 0.04448838, "qsc_code_frac_chars_top_3grams": 0.05931784, "qsc_code_frac_chars_top_4grams": 0.07414731, "qsc_code_frac_chars_dupe_5grams": 0.34651508, "qsc_code_frac_chars_dupe_6grams": 0.33662877, "qsc_code_frac_chars_dupe_7grams": 0.311913, "qsc_code_frac_chars_dupe_8grams": 0.28917449, "qsc_code_frac_chars_dupe_9grams": 0.20711814, "qsc_code_frac_chars_dupe_10grams": 0.13445378, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.04799698, "qsc_code_frac_chars_whitespace": 0.12034574, "qsc_code_size_file_byte": 3008.0, "qsc_code_num_lines": 81.0, "qsc_code_num_chars_line_max": 918.0, "qsc_code_num_chars_line_mean": 37.13580247, "qsc_code_frac_chars_alphabet": 0.71617536, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.40740741, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.27194149, "qsc_code_frac_chars_long_word_length": 0.02460106, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
2003100127/pypropel | docs/tutorial/protein/feature/profile.md | Position-Specific Scoring Matrix ([PSSM](https://en.wikipedia.org/wiki/Position_weight_matrix)) is a matrix used to score alignments between a protein sequence (cf. DNA and RNA) and a profile, which is a representation of a multiple sequence alignment. Each score indicates the likelihood of a specific nucleotide or amino acid occurring at a particular position in the sequence. There are many models to calculate it.
### Blast
The Basic local alignment search tool (Blast) [^1] can be used to generate one kind of the PSSM. It can be accessed like that below.
[^1]: Altschul, S.F., Gish, W., Miller, W., Myers, E.W., Lipman, D.J. (1990) “Basic local alignment search tool.” J. Mol. Biol. 215:403-410. https://doi.org/10.1016/S0022-2836(05)80360-2
:material-language-python: Python
``` py linenums="1"
import pypropel as pp
aac = pp.fpmsa.pssm(
fpn=to('data/pssm/1aigL.pssm'),
mode='blast',
)
```
:material-note-multiple-outline: Output
``` shell
{1: [-5.0, 1.0, 3.0, 2.0, 3.0, 1.0, 3.0, 2.0, 2.0, 3.0, 2.0, 2.0, 2.0, 2.0, 2.0, -1.0, -1.0, 1.0, 4.0, 3.0], 2: [2.0, 2.0, 4.0, 3.0, 1.0, 2.0, 3.0, -2.0, 2.0, -3.0, -6.0, 3.0, 3.0, 1.0, 1.0, 2.0, -0.0, -1.0, 3.0, 2.0], ...}
```
### HHM
HHM is created by [profile hidden Markov models (HMMs)](https://www.ebi.ac.uk/training/online/courses/pfam-creating-protein-families/what-are-profile-hidden-markov-models-hmms/). The `.hhm` file is generated by HHblits[^2]. It measures PSSM about how conserved each amino acid is at each column in a MSA.
[^2]: Remmert M, Biegert A, Hauser A, Söding J. HHblits: lightning-fast iterative protein sequence searching by HMM-HMM alignment. Nat Methods. 2011 Dec 25;9(2):173-5. doi: 10.1038/nmeth.1818. PMID: 22198341.
:material-language-python: Python
``` py linenums="1"
import pypropel as pp
aac = pp.fpmsa.pssm(
fpn=to('data/hhm/1aigL.hhm'),
mode='hhm',
)
```
:material-note-multiple-outline: Output
``` shell
{1: array([1. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. , 0. , 0. , 1. , 0. , 0. , 0. , 0. , 0. ,
0. , 0.5, 1. , 1. ]), 2: array([0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 0. , 1. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. , 0. , 0. , 1. , 0. , 0. , 0. , 0. , 0. ,
0. , 0.5, 1. , 1. ]), ...}
```
### Evolutionary profile
Evolutionary profile is calculated as frequencies of amino acids at each MSA column [^2].
[^2]: Hönigschmid P, Frishman D. Accurate prediction of helix interactions and residue contacts in membrane proteins. J Struct Biol. 2016 Apr;194(1):112-23. doi: 10.1016/j.jsb.2016.02.005. Epub 2016 Feb 3. PMID: 26851352.
:material-language-python: Python
``` py linenums="1"
import pypropel as pp
ep = pp.fpmsa.pssm(
msa=msa,
mode='ep',
)
```
:material-note-multiple-outline: Output
``` shell
{'A': array([8.25272552e-01, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 5.30380817e-03, 0.00000000e+00,
0.00000000e+00, 1.06076163e-03, ..., 3.18228490e-03, 1.16683780e-02,
1.06076163e-03]), 'C': array([0.00000000e+00, ...
```
You can pass `ep_norm` onto `mode` to get the normalised evolutionary profile.
``` py linenums="1"
mode='ep_norm'
``` | 3,210 | profile | md | en | shell | code | {"qsc_code_num_words": 569, "qsc_code_num_chars": 3210.0, "qsc_code_mean_word_length": 3.57644991, "qsc_code_frac_words_unique": 0.36203866, "qsc_code_frac_chars_top_2grams": 0.04815725, "qsc_code_frac_chars_top_3grams": 0.06339066, "qsc_code_frac_chars_top_4grams": 0.07272727, "qsc_code_frac_chars_dupe_5grams": 0.32825553, "qsc_code_frac_chars_dupe_6grams": 0.25798526, "qsc_code_frac_chars_dupe_7grams": 0.22751843, "qsc_code_frac_chars_dupe_8grams": 0.18132678, "qsc_code_frac_chars_dupe_9grams": 0.18132678, "qsc_code_frac_chars_dupe_10grams": 0.16658477, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.15821347, "qsc_code_frac_chars_whitespace": 0.17694704, "qsc_code_size_file_byte": 3210.0, "qsc_code_num_lines": 77.0, "qsc_code_num_chars_line_max": 419.0, "qsc_code_num_chars_line_mean": 41.68831169, "qsc_code_frac_chars_alphabet": 0.61203634, "qsc_code_frac_chars_comments": 0.01339564, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.5, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.01925505, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0} |
2003100127/pypropel | docs/tutorial/protein/feature/position.md | ## Absolute position
We can use PyPropel to calculate the positional features of a residue in a protein.
First, PyPropel needs to read a protein sequence like below.
:material-language-python: Python
``` py linenums="1"
import pypropel as pp
seq = pp.seq.read(
fasta_fpn=to('data/fasta/1aigL.fasta'),
)
print(seq)
```
:material-note-multiple-outline: Output
``` shell
ALLSFERKYRVPGGTLVGGNLFDFWVGPFYVGFFGVATFFFAALGIILIAWSAVLQGTWNPQLISVYPPALEYGLGGAPLAKGGLWQIITICATGAFVSWALREVEICRKLGIGYHIPFAFAFAILAYLTLVLFRPVMMGAWGYAFPYGIWTHLDWVSNTGYTYGNFHYNPAHMIAISFFFTNALALALHGALVLSAANPEKGKEMRTPDHEDTFFRDLVGYSIGTLGIHRLGLLLSLSAVFFSALCMIITGTIWFDQWVDWWQWWVKLPWWANIPGGING
```
Then, we use `pp.fpsite.pos_abs_val` to calculate a residue positioned at 1 in the protein.
:material-language-python: Python
``` py linenums="1"
import pypropel as pp
p = pp.fpsite.pos_abs_val(
pos=1,
seq=sequence,
)
print(p)
```
:material-note-multiple-outline: Output
``` shell
0.0035587189
```
## Relative position
We implement a function to calculate the positional feature of a residue relative to the transmembrane segment, proposed by Zeng et al [^1], which is to calculate the position of a residue relative to the boundary of a transmembrane segment (interval).
[^1]: Zeng B, Hönigschmid P, Frishman D. Residue co-evolution helps predict interaction sites in α-helical membrane proteins. J Struct Biol. 2019 May 1;206(2):156-169. doi: 10.1016/j.jsb.2019.02.009. Epub 2019 Mar 2. PMID: 30836197. https://doi.org/10.1016/j.jsb.2019.02.009
:material-language-python: Python
``` py linenums="1"
import pypropel as pp
pos = pp.fpsite.pos_rel_val(
pos=5,
interval=[4, 10],
)
print(pos)
```
:material-note-multiple-outline: Output
``` shell
0.16666666666666666
```
## One-hot position
In addition, positions of residues can be one-hot encoded to describe their rough positional occurrence in the protein. There are two residue contact prediction tools that use this idea.
#### MetaPSICOV
:material-language-python: Python
``` py linenums="1"
import pypropel as pp
pos = pp.fpsite.metapsicov()
print(pos)
```
:material-note-multiple-outline: Output
``` shell
{
'v<5': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0],
'v=5': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0],
'v=6': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
'v=7': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0],
'v=8': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0],
'v=9': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'v=10': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'v=11': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'v=12': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'v=13': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'14<=v<18': [0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'18<=v<23': [0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'23<=v<28': [0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'28<=v<38': [0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'38<=v<48': [0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'v>=48': [1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'none': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
}
```
#### DeepConPred
:material-language-python: Python
``` py linenums="1"
import pypropel as pp
pos = pp.fpsite.deepconpred()
print(pos)
```
:material-note-multiple-outline: Output
``` shell
{
'24<=v<=28': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0],
'29<=v<=33': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0],
'34<=v<=38': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0],
'39<=v<=43': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0],
'44<=v<=48': [0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0],
'49<=v<=58': [0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'59<=v<=68': [0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'69<=v<=78': [0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'79<=v<=88': [0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'v>=89': [1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
'none': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
}
``` | 4,677 | position | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.00085525, "qsc_doc_frac_words_redpajama_stop": 0.04251386, "qsc_doc_num_sentences": 396.0, "qsc_doc_num_words": 1122, "qsc_doc_num_chars": 4677.0, "qsc_doc_num_lines": 126.0, "qsc_doc_mean_word_length": 2.35026738, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.1426025, "qsc_doc_entropy_unigram": 2.30528269, "qsc_doc_frac_words_all_caps": 0.00277264, "qsc_doc_frac_lines_dupe_lines": 0.45454545, "qsc_doc_frac_chars_dupe_lines": 0.1520706, "qsc_doc_frac_chars_top_2grams": 0.50056883, "qsc_doc_frac_chars_top_3grams": 0.69397042, "qsc_doc_frac_chars_top_4grams": 0.85248388, "qsc_doc_frac_chars_dupe_5grams": 0.53962837, "qsc_doc_frac_chars_dupe_6grams": 0.52673493, "qsc_doc_frac_chars_dupe_7grams": 0.49222601, "qsc_doc_frac_chars_dupe_8grams": 0.46264695, "qsc_doc_frac_chars_dupe_9grams": 0.40766022, "qsc_doc_frac_chars_dupe_10grams": 0.40766022, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 7.97888676, "qsc_doc_frac_chars_hyperlink_html_tag": 0.0, "qsc_doc_frac_chars_alphabet": 0.44860786, "qsc_doc_frac_chars_digital": 0.23757481, "qsc_doc_frac_chars_whitespace": 0.17831944, "qsc_doc_frac_chars_hex_words": 0.0} | 0 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 1, "qsc_doc_frac_chars_top_2grams": 1, "qsc_doc_frac_chars_top_3grams": 1, "qsc_doc_frac_chars_top_4grams": 1, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 1, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 1, "qsc_doc_frac_chars_digital": 1, "qsc_doc_frac_chars_whitespace": 0} |
2003100127/pypropel | docs/tutorial/protein/feature/conservation.md | ## Entropy
In the context of multiple sequence alignments (MSA), entropy measures the variability or uncertainty at each position in the alignment. It quantifies how conserved or variable a particular position is across the aligned sequences, offering insight into which positions are likely to be functionally or structurally important.
We can first read a MSA in ALN format with `pp.msa.msaparser`. Then, taking this MSA as input to `pp.fpmsa.entropy`, we obtain a dictionary of entropy values.
:material-language-python: Python
``` py linenums="1"
import pypropel as pp
msa = pp.msa.msaparser(msa_fpn=to('data/msa/aln/1aijL.aln')).read()
entropy_dict = pp.fpmsa.entropy(msa=msa)
print(entropy_dict)
```
:material-note-multiple-outline: Output
``` shell
{1: 0.1960388659924533, 2: 0.22426701608683547, 3: 0.1850087818623904, 4: 0.20286277711377826, 5: 0.18773405896608028, 6: 0.18177904812214024, 7: 0.22124858188044072, 8: 0.1964272886606503, 9: 0.18956787701644068, 10: 0.19008797269348587, ..., 279: 0.07534724091084649, 280: 0.07102837084165835, 281: 0.06073066166727346}
```
If we want to consider the information from a gap symbol '-', we can achieve it with `pp.fpmsa.entropy_gap`.
:material-language-python: Python
``` py linenums="1"
import pypropel as pp
entropy_dict = pp.fpmsa.entropy_gap(msa=msa, gap_thres=100)
print(entropy_dict)
```
:material-note-multiple-outline: Output
``` shell
{1: 0.3256135083150946, 2: 0.3724994507477074, 3: 0.30729293513478106, ..., 279: 0.12514905822699368, 280: 0.11797557031649158, 281: 0.10087144560680732}
```
## Custom-conservation
We borrow a technical idea from [^1] to build a custom-conservation score based on the above calculated entropy values.
[^1]: Zeng B, Hönigschmid P, Frishman D. Residue co-evolution helps predict interaction sites in α-helical membrane proteins. J Struct Biol. 2019 May 1;206(2):156-169. doi: 10.1016/j.jsb.2019.02.009. Epub 2019 Mar 2. PMID: 30836197. https://doi.org/10.1016/j.jsb.2019.02.009
:material-language-python: Python
``` py linenums="1"
import pypropel as pp
cc = pp.fpmsa.conservation_custom(ent_dict=entropy_dict)
print(cc)
```
:material-note-multiple-outline: Output
``` shell
{1: 0.891307540667243, 2: 0.8756566285859075, 3: 0.8974230982362708, ..., 279: 0.9582242180545316, 280: 0.9606187871466461, 281: 0.9663282842404544}
```
## Mutual information
Mutual information (MI) is an information theory metric that quantifies how much information one random variable reveals about another. In the context of multiple sequence alignments (MSA), MI measures the statistical dependency between sequence positions, helping to identify co-evolving residues.
To calculate the MI between columns 1 and 2, we can do
:material-language-python: Python
``` py linenums="1"
import pypropel as pp
msa = pp.msa.msaparser(msa_fpn=to('data/msa/aln/1aijL.aln')).read()
mi = pp.fpmsa.mutual_information(msa=msa, i=1, j=2)
print(mi)
```
:material-note-multiple-outline: Output
``` shell
0.20924659742293167
```
## Jensen–Shannon Divergence
Jensen–Shannon Divergence (JSD) [^3] is a useful metric in structual bioinformatics for evaluating the conservation of sequence positions in multiple sequence alignments (MSAs). By analyzing the distribution of amino acids or nucleotides at each position, JSD helps to identify conserved and variable regions, indicating areas of functional or structural significance.
[^3]: John A. Capra, Mona Singh, Predicting functionally important residues from sequence conservation, Bioinformatics, Volume 23, Issue 15, August 2007, Pages 1875–1882, https://doi.org/10.1093/bioinformatics/btm270
A JSD file looks like
``` shell
# ./CLEC2B_LOC113845378.clustal -- js_divergence - window_size: 3 - window lambda: 0.50 - background: blosum62 - seq. weighting: True - gap penalty: 1 - normalized: False
# align_column_number score column
0 -1000.000000 M-M-M-T----TET--TTTMM-M-----------------------------------------------------P-----------------------------------------------
1 -1000.000000 E-S-D-Q----QTE--QQQEE-E-----------------------------------------------------V----------------------G------------------------
2 -1000.000000 K-S-S-N----DGY--DNNPP-P-----------------------------------------------------P----------------------P------------------------
3 -1000.000000
...
205 -1000.000000 PN---S---P--VPF------R---------------L---LL---LLL------L----DD---V----A--E----------------------------------EME---L-EE-I----
206 -1000.000000 EP---P---R---VP----------------------S---SS---SSS------S----HH---T----E--K----------------------------------SCS---C-SS-M----
```
:material-language-python: Python
``` py linenums="1"
import pypropel as pp
jsd = pp.fpmsa.jsd(
fpn=to('data/conservation/jsd/SR24_CtoU/CLEC2B_LOC113845378.jsd'),
mode='standalone',
)
print(jsd)
```
The `standalone` mode means the output returned from running its standalone package.
:material-note-multiple-outline: Output
``` shell
alignment_col score seq
0 0 0.0 M-M-M-T----TET--TTTMM-M-----------------------...
1 1 0.0 E-S-D-Q----QTE--QQQEE-E-----------------------...
2 2 0.0 K-S-S-N----DGY--DNNPP-P-----------------------...
3 3 0.0 E-E-E-E----EEN--EEEAA-A-----------------------...
4 4 0.0 V-N-N-G----EKN--EGG---------------------------...
.. ... ... ...
202 202 0.0 KL---T---G--TTT------E-P---------D--DEGDDEES--...
203 203 0.0 II---P---S--PPP------Y-L---------S--SQ-QSRRK--...
204 204 0.0 SV---F---V--PVF------M-L-------------F-S-LL---...
205 205 0.0 PN---S---P--VPF------R---------------L---LL---...
206 206 0.0 EP---P---R---VP----------------------S---SS---...
[207 rows x 3 columns]
```
## ConSurf
ConSurf [^2] is designed to identify and visualize conserved regions within protein or nucleic acid sequences. By mapping conservation levels onto the three-dimensional structure of a protein, ConSurf aids in pinpointing functionally and structurally significant regions.
[^2]: Barak Yariv, Elon Yariv, Amit Kessel, Gal Masrati, Adi Ben Chorin, Eric Martz, Itay Mayrose, Tal Pupko, and Nir Ben-Tal
Using evolutionary data to make sense of macromolecules with a 'face-lifted' ConSurf. Protein Science 2023; DOI: 10.1002/pro.4582; PMID: 36718848. https://doi.org/10.1002/pro.4582
We tease out the information from it by
:material-language-python: Python
``` py linenums="1"
import pypropel as pp
consurf = pp.fpmsa.consurf(
fpn=to('data/conservation/consurf/E.consurf'),
mode='v1'
)
print(consurf)
```
The `v1` mode means the output adopted by ConSurf before 2024.
:material-note-multiple-outline: Output
``` shell
position amino acid score color exposed/buried structral/functional
0 1 M -1.409 9 e f
1 2 Y 0.136 5* e
2 3 S -0.426 6 e
3 4 F -0.115 5 b
4 5 V -1.201 8 b
.. ... ... ... ... ... ...
70 71 P 0.637 3* e
71 72 D 0.109 5* e
72 73 L -0.200 6* b
73 74 L -0.120 5* e
74 75 V -0.991 8 e f
[75 rows x 6 columns]
```
The original output of ConSurf of [E protein](https://www.ncbi.nlm.nih.gov/gene/43740570) is
``` shell
0 1 2 3 4 5 6 ... 8 9 10 11 12 13 14
0 1 M -1.409 9 -1.875,-1.232 ... 9,8 e f 78/150 M,N
1 2 Y 0.136 5* -0.618, 0.577 ... 7,3 e 78/150 C,F,Y,L
2 3 S -0.426 6 -1.003,-0.074 ... 8,5 e 78/150 E,P,S,Y,D
3 4 F -0.115 5 -0.776, 0.279 ... 7,4 b 78/150 I,F,L
4 5 V -1.201 8 -1.582,-0.928 ... 9,7 b 78/150 V,F,Q
.. .. .. ... .. .. ... .. ... ... .. .. .. .. ... ...
70 71 P 0.637 3* -0.365, 1.225 ... 6,2 e 34/150 S,P,L
71 72 D 0.109 5* -0.776, 0.755 ... 7,3 e 34/150 D,E
72 73 L -0.200 6* -1.003, 0.419 ... 8,4 b 34/150 L,F
73 74 L -0.120 5* -1.003, 0.419 ... 8,4 e 34/150 I,L
74 75 V -0.991 8 -1.582,-0.618 ... 9,7 e f 33/150 V
[75 rows x 15 columns]
```
The columns from the left to the right are defined as:
!!! info "Column definition"
``` shell
- POS: The position of the AA in the SEQRES derived sequence.
- SEQ: The SEQRES derived sequence in one letter code.
- SCORE: The normalized conservation scores.
- COLOR: The color scale representing the conservation scores (9 - conserved, 1 - variable).
- CONFIDENCE INTERVAL: When using the bayesian method for calculating rates, a confidence interval is assigned to each of the inferred evolutionary conservation scores.
- CONFIDENCE INTERVAL COLORS: When using the bayesian method for calculating rates. The color scale representing the lower and upper bounds of the confidence interval.
- B/E: Burried (b) or Exposed (e) residue.
- FUNCTION: functional (f) or structural (s) residue (f - highly conserved and exposed, s - highly conserved and burried).
- MSA DATA: The number of aligned sequences having an amino acid (non-gapped) from the overall number of sequences at each position.
- RESIDUE VARIETY: The residues variety at each position of the multiple sequence alignment.
``` | 10,084 | conservation | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.000595, "qsc_doc_frac_words_redpajama_stop": 0.09891599, "qsc_doc_num_sentences": 199.0, "qsc_doc_num_words": 1415, "qsc_doc_num_chars": 10084.0, "qsc_doc_num_lines": 207.0, "qsc_doc_mean_word_length": 4.05441696, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.06763285, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.32438163, "qsc_doc_entropy_unigram": 5.4833086, "qsc_doc_frac_words_all_caps": 0.100271, "qsc_doc_frac_lines_dupe_lines": 0.35064935, "qsc_doc_frac_chars_dupe_lines": 0.10164174, "qsc_doc_frac_chars_top_2grams": 0.00418337, "qsc_doc_frac_chars_top_3grams": 0.02300854, "qsc_doc_frac_chars_top_4grams": 0.0292836, "qsc_doc_frac_chars_dupe_5grams": 0.23392017, "qsc_doc_frac_chars_dupe_6grams": 0.21544361, "qsc_doc_frac_chars_dupe_7grams": 0.16105979, "qsc_doc_frac_chars_dupe_8grams": 0.13317065, "qsc_doc_frac_chars_dupe_9grams": 0.09552031, "qsc_doc_frac_chars_dupe_10grams": 0.09552031, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 18.20952381, "qsc_doc_frac_chars_hyperlink_html_tag": 0.00436335, "qsc_doc_frac_chars_alphabet": 0.60838975, "qsc_doc_frac_chars_digital": 0.15279437, "qsc_doc_frac_chars_whitespace": 0.25297501, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
2003100127/pypropel | docs/tutorial/protein/feature/structure.md | Features extracted based on 3D protein structures (or PDB files) are informative to characterise proteins. After loads of protein structures predicted by AlphaFold, AlphaFold2, and AlphaFold3 are made available online, the functions embedded in computational tools to access these structural features are necessary.
!!! warning note
PyPropel is endeavouring to make the extraction of more structure-based features available. Currently, we include relative solvent accessibility (RSA) by [DSSP](https://swift.cmbi.umcn.nl/gv/dssp/) and encoded sequences by the [3di](https://github.com/steineggerlab/foldseek) technique.
## Relative solvent accessibility
Here, we take six proteins as an example to generate their RSA files using DSSP. It can be done as follows.
:material-language-python: Python
``` py linenums="1"
import pandas as pd
prot_df = pd.DataFrame({
'prot': ['3pux', '3rko', '3udc', '3vr8', '4kjs', '4pi2', ],
'chain': ['G', 'A', 'A', 'D', 'A', 'C', ],
})
```
:material-language-python: Python
``` py linenums="1"
import pypropel as pp
for i in prot_df.index:
print('No.{}: protein: {} chain: {}'.format(i + 1, prot_df.loc[i, 'prot'], prot_df.loc[i, 'chain']))
dssp_rsa_run(
prot_name=prot_df.loc[i, 'prot'],
prot_chain=prot_df.loc[i, 'chain'],
pdb_fp='data/pdb/pdbtm/',
sv_fp='data/rsa/',
)
```
Then, we can access the RSA file of each protein.
:material-language-python: Python
``` py linenums="1"
import pypropel as pp
import pandas as pd
prot_df = pd.DataFrame({
'prot': ['3pux', '3rko', '3udc', '3vr8', '4kjs', '4pi2', ],
'chain': ['G', 'A', 'A', 'D', 'A', 'C', ],
})
for i in prot_df.index:
print('No.{}: protein: {} chain: {}'.format(i + 1, prot_df.loc[i, 'prot'], prot_df.loc[i, 'chain']))
df_rsa = dssp_rsa_access(
prot_name=prot_df.loc[i, 'prot'],
prot_chain=prot_df.loc[i, 'chain'],
rsa_fp=to('data/rsa/')
)
print(df_rsa)
```
:material-note-multiple-outline: Output
``` text
No.1: protein: 3pux chain: G
rsa_fas_id rsa_pdb_ids rsa_prob
0 1 2 1.000000
1 2 3 0.829787
2 3 4 1.000000
3 4 5 0.696970
4 5 6 0.705882
.. ... ... ...
288 289 292 1.000000
289 290 293 0.547619
290 291 294 0.394366
291 292 295 1.000000
292 293 296 1.000000
[293 rows x 3 columns]
No.2: protein: 3rko chain: A
rsa_fas_id rsa_pdb_ids rsa_prob
0 1 15 1.000000
1 2 16 0.695431
2 3 17 0.528302
3 4 18 0.668639
4 5 19 0.690355
.. ... ... ...
90 91 122 0.018868
91 92 123 0.682927
92 93 124 0.687117
93 94 125 0.731278
94 95 126 0.823944
[95 rows x 3 columns]
No.3: protein: 3udc chain: A
rsa_fas_id rsa_pdb_ids rsa_prob
0 1 13 1.000000
1 2 14 0.760736
2 3 15 0.804734
3 4 16 0.556098
4 5 17 0.650943
.. ... ... ...
262 263 275 0.974522
263 264 276 0.969543
264 265 277 0.917073
265 266 278 0.911290
266 267 279 1.000000
[267 rows x 3 columns]
No.4: protein: 3vr8 chain: D
rsa_fas_id rsa_pdb_ids rsa_prob
0 1 28 1.000000
1 2 29 0.861538
2 3 30 0.915094
3 4 31 0.933962
4 5 32 0.985915
.. ... ... ...
124 125 152 0.468085
125 126 153 0.570423
126 127 154 0.863436
127 128 155 0.804124
128 129 156 1.000000
[129 rows x 3 columns]
No.5: protein: 4kjs chain: A
rsa_fas_id rsa_pdb_ids rsa_prob
0 1 4 0.840237
1 2 5 0.456853
2 3 6 0.720812
3 4 7 0.698225
4 5 8 0.408537
.. ... ... ...
315 316 347 0.380952
316 317 348 0.035533
317 318 349 0.461929
318 319 350 0.798780
319 320 351 0.756098
[320 rows x 3 columns]
No.6: protein: 4pi2 chain: C
rsa_fas_id rsa_pdb_ids rsa_prob
0 1 16 0.938144
1 2 17 0.561538
2 3 18 0.211268
3 4 19 0.676056
4 5 20 0.441718
.. ... ... ...
223 224 252 0.556098
224 225 253 0.695122
225 226 254 0.914634
226 227 255 0.732394
227 228 256 0.958763
[228 rows x 3 columns]
```
## 3di encoded sequence
3Di-encoded sequences refer to sequences encoded with 3D structural information of biomolecules, often proteins, to integrate their three-dimensional spatial features into a simplified format suitable for computational analysis, such as machine learning.
This encoding bridges the gap between a protein's primary sequence (linear amino acid sequence) and its three-dimensional conformation (folded structure). The goal of 3Di encoding is to capture spatial relationships, structural motifs, and functional regions that are critical for biological activity.
Includes 3D spatial features derived from the protein's folded structure, typically obtained from crystallography, NMR, or computational modeling (e.g. Angles and torsions: Phi (ϕ), Psi (ψ), and Omega (ω) angles).
Here, we take 3 proteins as an example to generate their 3di.
:material-language-python: Python
``` py linenums="1"
import pypropel as pp
import pandas as pd
prot_df = pd.DataFrame({
'prot': ['1aij', '1aig', '1xqf', ],
'chain': ['L', 'L', 'A', ],
})
for i in prot_df.index:
print('No.{}: protein: {} chain: {}'.format(i + 1, prot_df.loc[i, 'prot'], prot_df.loc[i, 'chain']))
threedi_dict = pp.fpstr.threedi(
prot_name=prot_df.loc[i, 'prot'],
prot_chain=prot_df.loc[i, 'chain'],
pdb_fp=to('data/pdb/pdbtm/'),
mode='chain',
)
print(threedi_dict)
```
:material-note-multiple-outline: Output
``` text
No.1: protein: 1aij chain: L
{'1aij': {'L': {'state': masked_array(data=[--, 2, 2, 12, 12, 5, 12, 17, 9, 9, 2, 0, 2, 9, 0, 12, 12, 2, 5, 1, 12, 13, 15, ..., 12, 14, --],
mask=[ True, False, False, False, False, False, False, False,
False, False, False, False, ..., False, False, False, True],
fill_value=2,
dtype=uint8), 'encoded_sequence': 'DDDPPGPVLLDADLAPPDGCPQSQADVPHRAGPLNVQLVVLVVVLVVLLVVLCVVVPHDDQQPRKQAAAPCVQFPHADDSNRHNSVVSSVVSVLRNQLSVLVSLSSVCSSVVHDSLPSVLSVLVSVLLCLQQPLLSVLLRHRRSHFMDGDVRSVVSVVVLCPQQPNVCLQVLLVLLVVLVVVLVVLVVLVVVLQVCQQPPPPPDDRHDQVVSQVVCCVVPNGDCGPVRSVVSNSVSNSSSSVSSSVSSSCDNNVDRHRSVVVVCVVCCPPPNVPDDDDPRD'}}}
No.2: protein: 1aig chain: L
{'1aig': {'L': {'state': masked_array(data=[--, 2, 2, 12, ..., 2, 2, 11, --],
mask=[ True, False, False, ..., False, False, False,
True],
fill_value=2,
dtype=uint8), 'encoded_sequence': 'DDDPPCVVLLDADQADPDHCPQQDDDVPHGQGPLNVQLVVLVVVLVVLLVVQCVVVPHDDQQPSKQAAADPVCWADADDPNNHRSSVSSVVSVLSNQLSVLVVVSSVCRSVVHDSPVSVLSVLVSVLQCLQQPVLSVLLGHNRSHFMPGDVRSVVSVVVQCPLQPNVCLQVLLVVLVVLVVVLVVLVVVVVVLQCCQQVPPPPDDRHDQVVSQVVCCVVPVGDCGPVSSVVSNSCSSSSSSVSNSVSVSCEPRVDRHRSVVVCCCVQCVPPNNPDDDDDND'}}}
No.3: protein: 1xqf chain: A
{'1xqf': {'A': {'state': masked_array(data=[--, 0, 0, ..., 14, 7,
5, 2, --],
mask=[ True, False, False, ..., False,
False, True],
fill_value=2,
dtype=uint8), 'encoded_sequence': 'DAADVQLQVLLVVLLVLLLLLQVPQLLLQLLQQDDVVQNVQLVVLLVVVLVVLLVVLQQAQVQFQAACDAQFTHDRPQGNHPPQDQRDDDPRHGVVSVSSNVSSLLSVLLSLQSSVCSVWWDSVLSVLLSVLCSVQALRRLSCNCPRPHVLVVLQAFFQQCLLNRQQLSLLLNVVVVVCHNHLVSSVVSLVSNLRSLLSRQLCSVSGPDVLSVQLNLLLVQLLVLQLVLQQVVCCVPVVGGDSVSSSQSSLQSSSLCRRARSWAGSVLSNVSSNVSSNQLNVQLVVVSSVSSSSNRSSLSSLQSNLPGSPVVNGTVHGPPPDDSVSNNVSSVVSSVVSNVSSNVSSVVSSVVSCVPPRIGDD'}}}
``` | 8,300 | structure | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.00506024, "qsc_doc_frac_words_redpajama_stop": 0.08035714, "qsc_doc_num_sentences": 126.0, "qsc_doc_num_words": 1050, "qsc_doc_num_chars": 8300.0, "qsc_doc_num_lines": 202.0, "qsc_doc_mean_word_length": 4.63047619, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.02970297, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.32952381, "qsc_doc_entropy_unigram": 5.17271064, "qsc_doc_frac_words_all_caps": 0.0255102, "qsc_doc_frac_lines_dupe_lines": 0.36, "qsc_doc_frac_chars_dupe_lines": 0.21793575, "qsc_doc_frac_chars_top_2grams": 0.04113534, "qsc_doc_frac_chars_top_3grams": 0.05244755, "qsc_doc_frac_chars_top_4grams": 0.05758947, "qsc_doc_frac_chars_dupe_5grams": 0.3033731, "qsc_doc_frac_chars_dupe_6grams": 0.28794735, "qsc_doc_frac_chars_dupe_7grams": 0.28630193, "qsc_doc_frac_chars_dupe_8grams": 0.26902509, "qsc_doc_frac_chars_dupe_9grams": 0.25071987, "qsc_doc_frac_chars_dupe_10grams": 0.23138626, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 19.64925373, "qsc_doc_frac_chars_hyperlink_html_tag": 0.00963855, "qsc_doc_frac_chars_alphabet": 0.67658696, "qsc_doc_frac_chars_digital": 0.15981421, "qsc_doc_frac_chars_whitespace": 0.29963855, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
2003100127/pypropel | docs/tutorial/protein/feature/property.md | We use 23 indicators to describe physicochemical properties of amino acids as shown in Table 1. You can use `pp.fpsite.property` to get access to them.
:material-language-python: Python
``` py linenums="1"
import pypropel as pp
property = 'positive'
scale = pp.fpsite.property(property)
print(scale)
```
:material-note-multiple-outline: Output
``` shell
{'A': 1.0, 'C': 1.0, 'D': 1.0, 'E': 1.0, 'F': 1.0, 'G': 1.0, 'H': 0.5, 'I': 1.0, 'K': 0.0, 'L': 1.0, 'M': 1.0, 'N': 1.0, 'P': 1.0, 'Q': 1.0, 'R': 0.0, 'S': 1.0, 'T': 1.0, 'V': 1.0, 'W': 1.0, 'Y': 1.0}
```
In fact, `property` can be any of 23 amino acid properties, including
**Table 1**. amino acid properties
| Property | Kind | Citation | Value |
|:----------------|:-------------|:--------------------------|-----------|
| positive | `Russell` | Betts & Russell[^1] | discrete |
| negative | `Russell` | Betts & Russell[^1] | discrete |
| charged | `Russell` | Betts & Russell[^1] | discrete |
| polar | `Russell` | Betts & Russell[^1] | discrete |
| aliphatic | `Russell` | Betts & Russell[^1] | discrete |
| aromatic | `Russell` | Betts & Russell[^1] | discrete |
| hydrophobic | `Russell` | Betts & Russell[^1] | discrete |
| small | `Russell` | Betts & Russell[^1] | discrete |
| active | `Russell` | Betts & Russell[^1] | continuous |
| weight | `Taylor` | Lundblad & Macdonald[^2] | continuous |
| pI | `Taylor` | Lundblad & Macdonald[^2] | continuous |
| solubility | `Taylor` | Lundblad & Macdonald[^2] | continuous |
| tm | `Taylor` | Lundblad & Macdonald[^2] | continuous |
| pka | `Taylor` | Lundblad & Macdonald[^2] | continuous |
| pkb | `Taylor` | Lundblad & Macdonald[^2] | continuous |
| hydrophilicity | `Hopp` | [^3] | discrete |
| hydrophobicity | `Argos` | Argos et al.[^4] | continuous |
| fet | `Argos` | Argos et al.[^4] | continuous |
| hydration | `Argos` | Argos et al.[^4] | continuous |
| signal | `Argos` | Argos et al.[^4] | continuous |
| volume | `Grantham` | Grantham [^5] | continuous |
| polarity | `Grantham` | Grantham [^5] | continuous |
| composition | `Grantham` | Grantham [^5] | continuous |
!!! note
pI: pH at the isoelectric point.
Solubility in water in units of grams of compound per kilogram of water.
tm: Melting point.
pKa: Negative of the logarithm of the acid dissociation constants for the COOH and NH2 groups (and, in some cases, other groups) in the molecule (at 25°C)
[^1]: Betts, M.J. and Russell, R.B. (2003). Amino Acid Properties and Consequences of Substitutions. In Bioinformatics for Geneticists (eds M.R. Barnes and I.C. Gray). https://doi.org/10.1002/0470867302.ch14
[^2]: Lundblad, R.L., & Macdonald, F. (Eds.). (2018). Handbook of Biochemistry and Molecular Biology (5th ed.). CRC Press. https://doi.org/10.1201/b21846
[^3]: Hopp TP, Woods KR. Prediction of protein antigenic determinants from amino acid sequences. Proc Natl Acad Sci U S A. 1981 Jun;78(6):3824-8. doi: 10.1073/pnas.78.6.3824.
[^4]: ARGOS, P., RAO, J.K.M. and HARGRAVE, P.A. (1982), Structural Prediction of Membrane-Bound Proteins. European Journal of Biochemistry, 128: 565-575. https://doi.org/10.1111/j.1432-1033.1982.tb07002.x
[^5]: R. Grantham ,Amino Acid Difference Formula to Help Explain Protein Evolution.Science185,862-864(1974).DOI:10.1126/science.185.4154.862
| 3,773 | property | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.00053008, "qsc_doc_frac_words_redpajama_stop": 0.06076759, "qsc_doc_num_sentences": 89.0, "qsc_doc_num_words": 475, "qsc_doc_num_chars": 3773.0, "qsc_doc_num_lines": 69.0, "qsc_doc_mean_word_length": 4.46736842, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.44631579, "qsc_doc_entropy_unigram": 4.83609796, "qsc_doc_frac_words_all_caps": 0.054371, "qsc_doc_frac_lines_dupe_lines": 0.04081633, "qsc_doc_frac_chars_dupe_lines": 0.00163221, "qsc_doc_frac_chars_top_2grams": 0.01602262, "qsc_doc_frac_chars_top_3grams": 0.08058435, "qsc_doc_frac_chars_top_4grams": 0.08482564, "qsc_doc_frac_chars_dupe_5grams": 0.24882187, "qsc_doc_frac_chars_dupe_6grams": 0.04712535, "qsc_doc_frac_chars_dupe_7grams": 0.0, "qsc_doc_frac_chars_dupe_8grams": 0.0, "qsc_doc_frac_chars_dupe_9grams": 0.0, "qsc_doc_frac_chars_dupe_10grams": 0.0, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 22.2962963, "qsc_doc_frac_chars_hyperlink_html_tag": 0.0, "qsc_doc_frac_chars_alphabet": 0.69687045, "qsc_doc_frac_chars_digital": 0.07496361, "qsc_doc_frac_chars_whitespace": 0.27166711, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
1zimu-com/1zimu | firefox-mv3-prod/static/background/index.js | var e,t;"function"==typeof(e=globalThis.define)&&(t=e,e=null),function(t,r,n,a,o){var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},s="function"==typeof i[a]&&i[a],l=s.cache||{},u="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function c(e,r){if(!l[e]){if(!t[e]){var n="function"==typeof i[a]&&i[a];if(!r&&n)return n(e,!0);if(s)return s(e,!0);if(u&&"string"==typeof e)return u(e);var o=Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}f.resolve=function(r){var n=t[e][1][r];return null!=n?n:r},f.cache={};var d=l[e]=new c.Module(e);t[e][0].call(d.exports,f,d,d.exports,this)}return l[e].exports;function f(e){var t=f.resolve(e);return!1===t?{}:c(t)}}c.isParcelRequire=!0,c.Module=function(e){this.id=e,this.bundle=c,this.exports={}},c.modules=t,c.cache=l,c.parent=s,c.register=function(e,r){t[e]=[function(e,t){t.exports=r},{}]},Object.defineProperty(c,"root",{get:function(){return i[a]}}),i[a]=c;for(var d=0;d<r.length;d++)c(r[d]);if(n){var f=c(n);"object"==typeof exports&&"undefined"!=typeof module?module.exports=f:"function"==typeof e&&e.amd?e(function(){return f}):o&&(this[o]=f)}}({frrV4:[function(e,t,r){e("./messaging"),e("../../../src/background/index")},{"./messaging":"8x2FD","../../../src/background/index":"9rdCI"}],"8x2FD":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js"),a=e("~background/messages/dict-msg"),o=n.interopDefault(a),i=e("~background/messages/status-msg"),s=n.interopDefault(i),l=e("~background/messages/subtitle-msg"),u=n.interopDefault(l),c=e("~background/ports/dict-port-msg"),d=n.interopDefault(c),f=e("~background/ports/settings"),p=n.interopDefault(f),h=e("~background/ports/subtitles-msg"),m=n.interopDefault(h);globalThis.__plasmoInternalPortMap=new Map,chrome.runtime.onMessageExternal.addListener((e,t,r)=>(e?.name,!0)),chrome.runtime.onMessage.addListener((e,t,r)=>{switch(e.name){case"dict-msg":(0,o.default)({...e,sender:t},{send:e=>r(e)});break;case"status-msg":(0,s.default)({...e,sender:t},{send:e=>r(e)});break;case"subtitle-msg":(0,u.default)({...e,sender:t},{send:e=>r(e)})}return!0}),chrome.runtime.onConnect.addListener(function(e){globalThis.__plasmoInternalPortMap.set(e.name,e),e.onMessage.addListener(function(t){switch(e.name){case"dict-port-msg":(0,d.default)({port:e,...t},{send:t=>e.postMessage(t)});break;case"settings":(0,p.default)({port:e,...t},{send:t=>e.postMessage(t)});break;case"subtitles-msg":(0,m.default)({port:e,...t},{send:t=>e.postMessage(t)})}})})},{"~background/messages/dict-msg":"kXPXr","~background/messages/status-msg":"8p8Ef","~background/messages/subtitle-msg":"1A3ea","~background/ports/dict-port-msg":"01Tjq","~background/ports/settings":"ggTOe","~background/ports/subtitles-msg":"c24C4","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],kXPXr:[function(e,t,r){},{}],"8p8Ef":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);let n=async(e,t)=>{try{let{status:t}=e.body;t?(chrome.action.setBadgeText({text:""}),chrome.action.setBadgeBackgroundColor({color:[0,0,0,0]})):(chrome.action.setBadgeText({text:"\u7981\u7528"}),chrome.action.setBadgeBackgroundColor({color:[255,0,0,255]}))}catch(e){console.error("catched error in messages.status-msg :>> ",e)}};r.default=n},{"@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],cHUbl:[function(e,t,r){r.interopDefault=function(e){return e&&e.__esModule?e:{default:e}},r.defineInteropFlag=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.exportAll=function(e,t){return Object.keys(e).forEach(function(r){"default"===r||"__esModule"===r||t.hasOwnProperty(r)||Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[r]}})}),t},r.export=function(e,t,r){Object.defineProperty(e,t,{enumerable:!0,get:r})}},{}],"1A3ea":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("~tools/error"),a=e("~tools/subtitle"),o=e("~tools/jwt"),i=e("~tools/constants"),s=e("~tools/storages");let l=async(e,t)=>{try{let{msgType:r,movie_name:n,q:l,source:u,api_key:c,format:d,alternatives:f,optionsUrl:p,target:h,word:m,subtitleSrtRaw:g}=e.body;if("movie_name_from_nextjs"===r){let e=new Headers,r=await (0,s.storageSync).get(i.ZIMU1_USESTORAGE_SYNC_JWT);e.append("Authorization",`Bearer ${r}`);let a=encodeURIComponent(n.trim()),o=`https://www.1zimu.com/subtitle/api/subtitleget/${a}/2/3`,l=await fetch(o,{method:"GET",headers:e,redirect:"follow",referrerPolicy:"no-referrer"}),u=await l.json();if(u?.error){t.send({error:u.error.status,name:u.error.name,message:u.error.message});return}u?.length>0&&u[0]?.subtitles?.length>0&&t.send({resultArr:u[0].subtitles});return}if("libretranslateTranslate"===r)await fetch("https://1zimu.com/subtitle/api/translate",{method:"POST",body:JSON.stringify({q:l,source:u,target:h}),headers:{"Content-Type":"application/json"}});else if("azureTranslate"===r){let e=await fetch("https://edge.microsoft.com/translate/auth",{method:"GET"}),r=await e.text();if(!(0,a.checkMSEdgeJwt)(r)){t.send({error:"Error",name:"Invalid JWT",message:"JWT \u51fa\u9519\uff01"});return}let n=new Headers;n.append("Authorization",`Bearer ${r}`),n.append("Content-Type","application/json");let o={method:"POST",headers:n,body:JSON.stringify(l),redirect:"follow",referrerPolicy:"no-referrer"},i=await fetch(`https://api-edge.cognitive.microsofttranslator.com/translate?to=${h}&api-version=3.0&includeSentenceLength=true`,o),s=await i.json();if(s?.error){t.send({error:s.error});return}t.send({translations:s});return}else if("open_options_page"===r){let e=decodeURIComponent(p.trim());chrome.tabs.create({url:e})}else if("getEcdictredInfo"===r){let e=new Headers,r=await (0,s.storageSync).get(i.ZIMU1_USESTORAGE_SYNC_JWT);(0,o.checkJWT)(r)?(e.append("Authorization",`Bearer ${r}`),fetch(`https://pdf.ccbcss.com/subtitle/api/ecdictred/${m}`,{method:"GET",headers:e,redirect:"follow"}).then(e=>e.json()).then(e=>{t.send({result:e})}).catch(e=>{console.error(e),t.send({error:e})})):t.send({result:i.JWT_IS_FALSE})}else if("ecdictFavMsg"===r){let e=new Headers,r=await (0,s.storageSync).get(i.ZIMU1_USESTORAGE_SYNC_JWT);if((0,o.checkJWT)(r)){e.append("Authorization",`Bearer ${r}`);let n=new FormData;n.append("word",m),fetch("https://pdf.ccbcss.com/subtitle/api/ecdictfav",{method:"POST",headers:e,body:n,redirect:"follow"}).then(e=>e.json()).then(e=>{t.send({result:e})}).catch(e=>{console.error(e),t.send({error:e})})}else t.send({result:i.JWT_IS_FALSE})}else if("ecdictFavDelMsg"===r){let e=new Headers,r=await (0,s.storageSync).get(i.ZIMU1_USESTORAGE_SYNC_JWT);if((0,o.checkJWT)(r)){e.append("Authorization",`Bearer ${r}`);let n=new FormData;n.append("word",m),fetch("https://pdf.ccbcss.com/subtitle/api/ecdictfavdel",{method:"POST",headers:e,body:n,redirect:"follow"}).then(e=>e.json()).then(e=>{t.send({result:e})}).catch(e=>{console.error(e),t.send({error:e})})}else t.send({result:i.JWT_IS_FALSE})}else if("getSubtitleStatInfo"===r){let e="https://1zimu.com/subtitle/api/getsubtitleecditinfo",r={name:"url error",message:"PLASMO_PUBLIC_API_GET_SUBTITLE_ECDITINFO_URL is undefined",details:{}};e||t.send({error:r});let n=await (0,s.storageSync).get(i.ZIMU1_USESTORAGE_SYNC_JWT);if((0,o.checkJWT)(n)){let r=new Headers;r.append("Content-Type","text/plain"),r.append("Authorization",`Bearer ${n}`),fetch(e,{method:"POST",headers:r,body:g,redirect:"follow"}).then(async e=>429===e.status?{response_status:429}:await e.json()).then(e=>{t.send({result:e})}).catch(e=>{console.error(e),t.send({error:e})})}else r.name="jwt error",r.message=i.JWT_IS_FALSE,t.send({error:r})}else if("getUserInfo"===r){let e="https://1zimu.com/subtitle/api/userinfo",r={name:"url error",message:"PLASMO_PUBLIC_API_USERINFO_URL is undefined",details:{}};e||t.send({error:r});let n=await (0,s.storageSync).get(i.ZIMU1_USESTORAGE_SYNC_JWT);if((0,o.checkJWT)(n)){let r=new Headers;r.append("Authorization",`Bearer ${n}`),fetch(e,{method:"GET",headers:r,redirect:"follow"}).then(async e=>429===e.status?{response_status:429}:await e.json()).then(e=>{t.send({result:e})}).catch(e=>{console.error(e),t.send({error:e})})}else r.name="jwt error",r.message=i.JWT_IS_FALSE,t.send({error:r})}}catch(e){(0,n.handleError)({error:e,msgToShow:"backgroud.messges.subtitle-msg"}),t.send({error:e,name:"Catched ERROR in background/subtitle-msg: ",message:e?.message})}};r.default=l},{"~tools/error":"82aS0","~tools/subtitle":"88X4r","~tools/jwt":"d2G9J","~tools/constants":"DgB7r","~tools/storages":"hpDvz","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],"82aS0":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"handleError",()=>o);var a=e("react-toastify");function o({error:e,msgToShow:t,autoClose:r=5e3,silence:n=!0}){try{console.error(`Catched ERROR in ${t} :>> `,e),n||((0,a.toast).dismiss(),(0,a.toast).error(`Catched ERROR: ${e.message} in ${t}.`,{autoClose:r}))}catch(e){console.error("Catched ERROR in tools.error.handleError() :>> ",e),n||((0,a.toast).dismiss(),(0,a.toast).error(`Catched ERROR: ${e.message} in tools.error.handleError()`,{autoClose:r}))}}},{"react-toastify":"7cUZK","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],"7cUZK":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Bounce",()=>N),n.export(r,"Flip",()=>B),n.export(r,"Icons",()=>U),n.export(r,"Slide",()=>Y),n.export(r,"ToastContainer",()=>W),n.export(r,"Zoom",()=>F),n.export(r,"collapseToast",()=>p),n.export(r,"cssTransition",()=>h),n.export(r,"toast",()=>D),n.export(r,"useToast",()=>x),n.export(r,"useToastContainer",()=>E);var a=e("react"),o=n.interopDefault(a),i=e("clsx"),s=n.interopDefault(i);let l=e=>"number"==typeof e&&!isNaN(e),u=e=>"string"==typeof e,c=e=>"function"==typeof e,d=e=>u(e)||c(e)?e:null,f=e=>(0,a.isValidElement)(e)||u(e)||c(e)||l(e);function p(e,t,r){void 0===r&&(r=300);let{scrollHeight:n,style:a}=e;requestAnimationFrame(()=>{a.minHeight="initial",a.height=n+"px",a.transition=`all ${r}ms`,requestAnimationFrame(()=>{a.height="0",a.padding="0",a.margin="0",setTimeout(t,r)})})}function h(e){let{enter:t,exit:r,appendPosition:n=!1,collapse:i=!0,collapseDuration:s=300}=e;return function(e){let{children:l,position:u,preventExitTransition:c,done:d,nodeRef:f,isIn:h,playToast:m}=e,g=n?`${t}--${u}`:t,y=n?`${r}--${u}`:r,b=(0,a.useRef)(0);return(0,a.useLayoutEffect)(()=>{let e=f.current,t=g.split(" "),r=n=>{n.target===f.current&&(m(),e.removeEventListener("animationend",r),e.removeEventListener("animationcancel",r),0===b.current&&"animationcancel"!==n.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",r),e.addEventListener("animationcancel",r)},[]),(0,a.useEffect)(()=>{let e=f.current,t=()=>{e.removeEventListener("animationend",t),i?p(e,d,s):d()};h||(c?t():(b.current=1,e.className+=` ${y}`,e.addEventListener("animationend",t)))},[h]),(0,o.default).createElement(o.default.Fragment,null,l)}}function m(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}let g=new Map,y=[],b=new Set,_=e=>b.forEach(t=>t(e)),T=()=>g.size>0;function S(e,t){var r;if(t)return!(null==(r=g.get(t))||!r.isToastActive(e));let n=!1;return g.forEach(t=>{t.isToastActive(e)&&(n=!0)}),n}function v(e,t){f(e)&&(T()||y.push({content:e,options:t}),g.forEach(r=>{r.buildToast(e,t)}))}function w(e,t){g.forEach(r=>{null!=t&&null!=t&&t.containerId?(null==t?void 0:t.containerId)===r.id&&r.toggle(e,null==t?void 0:t.id):r.toggle(e,null==t?void 0:t.id)})}function E(e){let{subscribe:t,getSnapshot:r,setProps:n}=(0,a.useRef)(function(e){let t=e.containerId||1;return{subscribe(r){let n=function(e,t,r){let n=1,o=0,i=[],s=[],p=[],h=t,g=new Map,y=new Set,b=()=>{p=Array.from(g.values()),y.forEach(e=>e())},_=e=>{s=null==e?[]:s.filter(t=>t!==e),b()},T=e=>{let{toastId:t,onOpen:n,updateId:o,children:i}=e.props,l=null==o;e.staleId&&g.delete(e.staleId),g.set(t,e),s=[...s,e.props.toastId].filter(t=>t!==e.staleId),b(),r(m(e,l?"added":"updated")),l&&c(n)&&n((0,a.isValidElement)(i)&&i.props)};return{id:e,props:h,observe:e=>(y.add(e),()=>y.delete(e)),toggle:(e,t)=>{g.forEach(r=>{null!=t&&t!==r.props.toastId||c(r.toggle)&&r.toggle(e)})},removeToast:_,toasts:g,clearQueue:()=>{o-=i.length,i=[]},buildToast:(t,s)=>{var p,y;if((t=>{let{containerId:r,toastId:n,updateId:a}=t,o=g.has(n)&&null==a;return(r?r!==e:1!==e)||o})(s))return;let{toastId:S,updateId:v,data:w,staleId:E,delay:x}=s,I=()=>{_(S)},O=null==v;O&&o++;let A={...h,style:h.toastStyle,key:n++,...Object.fromEntries(Object.entries(s).filter(e=>{let[t,r]=e;return null!=r})),toastId:S,updateId:v,data:w,closeToast:I,isIn:!1,className:d(s.className||h.toastClassName),bodyClassName:d(s.bodyClassName||h.bodyClassName),progressClassName:d(s.progressClassName||h.progressClassName),autoClose:!s.isLoading&&(p=s.autoClose,y=h.autoClose,!1===p||l(p)&&p>0?p:y),deleteToast(){let e=g.get(S),{onClose:t,children:n}=e.props;c(t)&&t((0,a.isValidElement)(n)&&n.props),r(m(e,"removed")),g.delete(S),--o<0&&(o=0),i.length>0?T(i.shift()):b()}};A.closeButton=h.closeButton,!1===s.closeButton||f(s.closeButton)?A.closeButton=s.closeButton:!0===s.closeButton&&(A.closeButton=!f(h.closeButton)||h.closeButton);let M=t;(0,a.isValidElement)(t)&&!u(t.type)?M=(0,a.cloneElement)(t,{closeToast:I,toastProps:A,data:w}):c(t)&&(M=t({closeToast:I,toastProps:A,data:w}));let k={content:M,props:A,staleId:E};h.limit&&h.limit>0&&o>h.limit&&O?i.push(k):l(x)?setTimeout(()=>{T(k)},x):T(k)},setProps(e){h=e},setToggle:(e,t)=>{g.get(e).toggle=t},isToastActive:e=>s.some(t=>t===e),getSnapshot:()=>p}}(t,e,_);g.set(t,n);let o=n.observe(r);return y.forEach(e=>v(e.content,e.options)),y=[],()=>{o(),g.delete(t)}},setProps(e){var r;null==(r=g.get(t))||r.setProps(e)},getSnapshot(){var e;return null==(e=g.get(t))?void 0:e.getSnapshot()}}}(e)).current;n(e);let o=(0,a.useSyncExternalStore)(t,r,r);return{getToastToRender:function(t){if(!o)return[];let r=new Map;return e.newestOnTop&&o.reverse(),o.forEach(e=>{let{position:t}=e.props;r.has(t)||r.set(t,[]),r.get(t).push(e)}),Array.from(r,e=>t(e[0],e[1]))},isToastActive:S,count:null==o?void 0:o.length}}function x(e){var t,r;let[n,o]=(0,a.useState)(!1),[i,s]=(0,a.useState)(!1),l=(0,a.useRef)(null),u=(0,a.useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:c,pauseOnHover:d,closeToast:f,onClick:p,closeOnClick:h}=e;function m(){o(!0)}function y(){o(!1)}function b(t){let r=l.current;u.canDrag&&r&&(u.didMove=!0,n&&y(),u.delta="x"===e.draggableDirection?t.clientX-u.start:t.clientY-u.start,u.start!==t.clientX&&(u.canCloseOnClick=!1),r.style.transform=`translate3d(${"x"===e.draggableDirection?`${u.delta}px, var(--y)`:`0, calc(${u.delta}px + var(--y))`},0)`,r.style.opacity=""+(1-Math.abs(u.delta/u.removalDistance)))}function _(){document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",_);let t=l.current;if(u.canDrag&&u.didMove&&t){if(u.canDrag=!1,Math.abs(u.delta)>u.removalDistance)return s(!0),e.closeToast(),void e.collapseAll();t.style.transition="transform 0.2s, opacity 0.2s",t.style.removeProperty("transform"),t.style.removeProperty("opacity")}}null==(r=g.get((t={id:e.toastId,containerId:e.containerId,fn:o}).containerId||1))||r.setToggle(t.id,t.fn),(0,a.useEffect)(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||y(),window.addEventListener("focus",m),window.addEventListener("blur",y),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",y)}},[e.pauseOnFocusLoss]);let T={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){u.didMove=!1,document.addEventListener("pointermove",b),document.addEventListener("pointerup",_);let r=l.current;u.canCloseOnClick=!0,u.canDrag=!0,r.style.transition="none","x"===e.draggableDirection?(u.start=t.clientX,u.removalDistance=r.offsetWidth*(e.draggablePercent/100)):(u.start=t.clientY,u.removalDistance=r.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){let{top:r,bottom:n,left:a,right:o}=l.current.getBoundingClientRect();"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&t.clientX>=a&&t.clientX<=o&&t.clientY>=r&&t.clientY<=n?y():m()}};return c&&d&&(T.onMouseEnter=y,e.stacked||(T.onMouseLeave=m)),h&&(T.onClick=e=>{p&&p(e),u.canCloseOnClick&&f()}),{playToast:m,pauseToast:y,isRunning:n,preventExitTransition:i,toastRef:l,eventHandlers:T}}function I(e){let{delay:t,isRunning:r,closeToast:n,type:a="default",hide:i,className:l,style:u,controlledProgress:d,progress:f,rtl:p,isIn:h,theme:m}=e,g=i||d&&0===f,y={...u,animationDuration:`${t}ms`,animationPlayState:r?"running":"paused"};d&&(y.transform=`scaleX(${f})`);let b=(0,s.default)("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${m}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":p}),_=c(l)?l({rtl:p,type:a,defaultClassName:b}):(0,s.default)(b,l);return(0,o.default).createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":g},(0,o.default).createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${m} Toastify__progress-bar--${a}`}),(0,o.default).createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:_,style:y,[d&&f>=1?"onTransitionEnd":"onAnimationEnd"]:d&&f<1?null:()=>{h&&n()}}))}let O=1,A=()=>""+O++;function M(e,t){return v(e,t),t.toastId}function k(e,t){return{...t,type:t&&t.type||e,toastId:t&&(u(t.toastId)||l(t.toastId))?t.toastId:A()}}function R(e){return(t,r)=>M(t,k(e,r))}function D(e,t){return M(e,k("default",t))}D.loading=(e,t)=>M(e,k("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),D.promise=function(e,t,r){let n,{pending:a,error:o,success:i}=t;a&&(n=u(a)?D.loading(a,r):D.loading(a.render,{...r,...a}));let s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(e,t,a)=>{if(null==t)return void D.dismiss(n);let o={type:e,...s,...r,data:a},i=u(t)?{render:t}:t;return n?D.update(n,{...o,...i}):D(i.render,{...o,...i}),a},d=c(e)?e():e;return d.then(e=>l("success",i,e)).catch(e=>l("error",o,e)),d},D.success=R("success"),D.info=R("info"),D.error=R("error"),D.warning=R("warning"),D.warn=D.warning,D.dark=(e,t)=>M(e,k("default",{theme:"dark",...t})),D.dismiss=function(e){!function(e){var t;if(T()){if(null==e||u(t=e)||l(t))g.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=g.get(e.containerId);t?t.removeToast(e.id):g.forEach(t=>{t.removeToast(e.id)})}}else y=y.filter(t=>null!=e&&t.options.toastId!==e)}(e)},D.clearWaitingQueue=function(e){void 0===e&&(e={}),g.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},D.isActive=S,D.update=function(e,t){void 0===t&&(t={});let r=((e,t)=>{var r;let{containerId:n}=t;return null==(r=g.get(n||1))?void 0:r.toasts.get(e)})(e,t);if(r){let{props:n,content:a}=r,o={delay:100,...n,...t,toastId:t.toastId||e,updateId:A()};o.toastId!==e&&(o.staleId=e);let i=o.render||a;delete o.render,M(i,o)}},D.done=e=>{D.update(e,{progress:1})},D.onChange=function(e){return b.add(e),()=>{b.delete(e)}},D.play=e=>w(!0,e),D.pause=e=>w(!1,e);let L="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,C=e=>{let{theme:t,type:r,isLoading:n,...a}=e;return(0,o.default).createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${r})`,...a})},U={info:function(e){return(0,o.default).createElement(C,{...e},(0,o.default).createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return(0,o.default).createElement(C,{...e},(0,o.default).createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return(0,o.default).createElement(C,{...e},(0,o.default).createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return(0,o.default).createElement(C,{...e},(0,o.default).createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return(0,o.default).createElement("div",{className:"Toastify__spinner"})}},j=e=>{let{isRunning:t,preventExitTransition:r,toastRef:n,eventHandlers:i,playToast:l}=x(e),{closeButton:u,children:d,autoClose:f,onClick:p,type:h,hideProgressBar:m,closeToast:g,transition:y,position:b,className:_,style:T,bodyClassName:S,bodyStyle:v,progressClassName:w,progressStyle:E,updateId:O,role:A,progress:M,rtl:k,toastId:R,deleteToast:D,isIn:L,isLoading:C,closeOnClick:j,theme:P}=e,N=(0,s.default)("Toastify__toast",`Toastify__toast-theme--${P}`,`Toastify__toast--${h}`,{"Toastify__toast--rtl":k},{"Toastify__toast--close-on-click":j}),Y=c(_)?_({rtl:k,position:b,type:h,defaultClassName:N}):(0,s.default)(N,_),F=function(e){let{theme:t,type:r,isLoading:n,icon:o}=e,i=null,s={theme:t,type:r};return!1===o||(c(o)?i=o({...s,isLoading:n}):(0,a.isValidElement)(o)?i=(0,a.cloneElement)(o,s):n?i=U.spinner():r in U&&(i=U[r](s))),i}(e),B=!!M||!f,G={closeToast:g,type:h,theme:P},W=null;return!1===u||(W=c(u)?u(G):(0,a.isValidElement)(u)?(0,a.cloneElement)(u,G):function(e){let{closeToast:t,theme:r,ariaLabel:n="close"}=e;return(0,o.default).createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":n},(0,o.default).createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},(0,o.default).createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(G)),(0,o.default).createElement(y,{isIn:L,done:D,position:b,preventExitTransition:r,nodeRef:n,playToast:l},(0,o.default).createElement("div",{id:R,onClick:p,"data-in":L,className:Y,...i,style:T,ref:n},(0,o.default).createElement("div",{...L&&{role:A},className:c(S)?S({type:h}):(0,s.default)("Toastify__toast-body",S),style:v},null!=F&&(0,o.default).createElement("div",{className:(0,s.default)("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!C})},F),(0,o.default).createElement("div",null,d)),W,(0,o.default).createElement(I,{...O&&!B?{key:`pb-${O}`}:{},rtl:k,theme:P,delay:f,isRunning:t,isIn:L,closeToast:g,hide:m,type:h,style:E,className:w,controlledProgress:B,progress:M||0})))},P=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},N=h(P("bounce",!0)),Y=h(P("slide",!0)),F=h(P("zoom")),B=h(P("flip")),G={position:"top-right",transition:N,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function W(e){let t={...G,...e},r=e.stacked,[n,i]=(0,a.useState)(!0),l=(0,a.useRef)(null),{getToastToRender:u,isToastActive:f,count:p}=E(t),{className:h,style:m,rtl:g,containerId:y}=t;function b(){r&&(i(!0),D.play())}return L(()=>{if(r){var e;let r=l.current.querySelectorAll('[data-in="true"]'),a=null==(e=t.position)?void 0:e.includes("top"),o=0,i=0;Array.from(r).reverse().forEach((e,t)=>{e.classList.add("Toastify__toast--stacked"),t>0&&(e.dataset.collapsed=`${n}`),e.dataset.pos||(e.dataset.pos=a?"top":"bot");let r=o*(n?.2:1)+(n?0:12*t);e.style.setProperty("--y",`${a?r:-1*r}px`),e.style.setProperty("--g","12"),e.style.setProperty("--s",""+(1-(n?i:0))),o+=e.offsetHeight,i+=.025})}},[n,p,r]),(0,o.default).createElement("div",{ref:l,className:"Toastify",id:y,onMouseEnter:()=>{r&&(i(!1),D.pause())},onMouseLeave:b},u((e,t)=>{let n=t.length?{...m}:{...m,pointerEvents:"none"};return(0,o.default).createElement("div",{className:function(e){let t=(0,s.default)("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":g});return c(h)?h({position:e,rtl:g,defaultClassName:t}):(0,s.default)(t,d(h))}(e),style:n,key:`container-${e}`},t.map(e=>{let{content:t,props:n}=e;return(0,o.default).createElement(j,{...n,stacked:r,collapseAll:b,isIn:f(n.toastId,n.containerId),style:n.style,key:`toast-${n.key}`},t)}))}))}},{react:"329PG",clsx:"jgTfo","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],"329PG":[function(e,t,r){t.exports=e("ae0ab14aecd941d7")},{ae0ab14aecd941d7:"5ejwk"}],"5ejwk":[function(e,t,r){var n=Symbol.for("react.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,y={};function b(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||m}function _(){}function T(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||m}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=b.prototype;var S=T.prototype=new _;S.constructor=T,g(S,b.prototype),S.isPureReactComponent=!0;var v=Array.isArray,w=Object.prototype.hasOwnProperty,E={current:null},x={key:!0,ref:!0,__self:!0,__source:!0};function I(e,t,r){var a,o={},i=null,s=null;if(null!=t)for(a in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)w.call(t,a)&&!x.hasOwnProperty(a)&&(o[a]=t[a]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(a in l=e.defaultProps)void 0===o[a]&&(o[a]=l[a]);return{$$typeof:n,type:e,key:i,ref:s,props:o,_owner:E.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var A=/\/+/g;function M(e,t){var r,n;return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36)}function k(e,t,r){if(null==e)return e;var o=[],i=0;return function e(t,r,o,i,s){var l,u,c,d=typeof t;("undefined"===d||"boolean"===d)&&(t=null);var f=!1;if(null===t)f=!0;else switch(d){case"string":case"number":f=!0;break;case"object":switch(t.$$typeof){case n:case a:f=!0}}if(f)return s=s(f=t),t=""===i?"."+M(f,0):i,v(s)?(o="",null!=t&&(o=t.replace(A,"$&/")+"/"),e(s,r,o,"",function(e){return e})):null!=s&&(O(s)&&(l=s,u=o+(!s.key||f&&f.key===s.key?"":(""+s.key).replace(A,"$&/")+"/")+t,s={$$typeof:n,type:l.type,key:u,ref:l.ref,props:l.props,_owner:l._owner}),r.push(s)),1;if(f=0,i=""===i?".":i+":",v(t))for(var p=0;p<t.length;p++){var m=i+M(d=t[p],p);f+=e(d,r,o,m,s)}else if("function"==typeof(m=null===(c=t)||"object"!=typeof c?null:"function"==typeof(c=h&&c[h]||c["@@iterator"])?c:null))for(t=m.call(t),p=0;!(d=t.next()).done;)m=i+M(d=d.value,p++),f+=e(d,r,o,m,s);else if("object"===d)throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(r=String(t))?"object with keys {"+Object.keys(t).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return f}(e,o,"","",function(e){return t.call(r,e,i++)}),o}function R(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)},function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var D={current:null},L={transition:null};r.Children={map:k,forEach:function(e,t,r){k(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return k(e,function(){t++}),t},toArray:function(e){return k(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},r.Component=b,r.Fragment=o,r.Profiler=s,r.PureComponent=T,r.StrictMode=i,r.Suspense=d,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:L,ReactCurrentOwner:E},r.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=g({},e.props),o=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=E.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)w.call(t,u)&&!x.hasOwnProperty(u)&&(a[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)a.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];a.children=l}return{$$typeof:n,type:e.type,key:o,ref:i,props:a,_owner:s}},r.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},r.createElement=I,r.createFactory=function(e){var t=I.bind(null,e);return t.type=e,t},r.createRef=function(){return{current:null}},r.forwardRef=function(e){return{$$typeof:c,render:e}},r.isValidElement=O,r.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:R}},r.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},r.startTransition=function(e){var t=L.transition;L.transition={};try{e()}finally{L.transition=t}},r.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},r.useCallback=function(e,t){return D.current.useCallback(e,t)},r.useContext=function(e){return D.current.useContext(e)},r.useDebugValue=function(){},r.useDeferredValue=function(e){return D.current.useDeferredValue(e)},r.useEffect=function(e,t){return D.current.useEffect(e,t)},r.useId=function(){return D.current.useId()},r.useImperativeHandle=function(e,t,r){return D.current.useImperativeHandle(e,t,r)},r.useInsertionEffect=function(e,t){return D.current.useInsertionEffect(e,t)},r.useLayoutEffect=function(e,t){return D.current.useLayoutEffect(e,t)},r.useMemo=function(e,t){return D.current.useMemo(e,t)},r.useReducer=function(e,t,r){return D.current.useReducer(e,t,r)},r.useRef=function(e){return D.current.useRef(e)},r.useState=function(e){return D.current.useState(e)},r.useSyncExternalStore=function(e,t,r){return D.current.useSyncExternalStore(e,t,r)},r.useTransition=function(){return D.current.useTransition()},r.version="18.2.0"},{}],jgTfo:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=function e(t){var r,n,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t){if(Array.isArray(t)){var o=t.length;for(r=0;r<o;r++)t[r]&&(n=e(t[r]))&&(a&&(a+=" "),a+=n)}else for(n in t)t[n]&&(a&&(a+=" "),a+=n)}return a}(e))&&(n&&(n+=" "),n+=t);return n}n.defineInteropFlag(r),n.export(r,"clsx",()=>a),r.default=a},{"@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],"88X4r":[function(e,t,r){let n,a,o;var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"getVideojsNextjsSrtUrl",()=>w),i.export(r,"opYoutubeSubtitleContainer",()=>x),i.export(r,"loadeddata",()=>I),i.export(r,"timeUpdate",()=>O),i.export(r,"checkBwpVideo",()=>A),i.export(r,"keyDown",()=>M),i.export(r,"clearIntervalAndTimeOut",()=>k),i.export(r,"preSentence",()=>R),i.export(r,"nextSentence",()=>D),i.export(r,"addPlayRate",()=>L),i.export(r,"subPlayRate",()=>C),i.export(r,"http2https",()=>U),i.export(r,"json2subtitleList",()=>j),i.export(r,"getNodeStartOrEndTimeBTree",()=>P),i.export(r,"getNodeStartOrEndTime",()=>N),i.export(r,"followReadCall",()=>Y),i.export(r,"variableRepeatCall",()=>F),i.export(r,"repeatCall",()=>G),i.export(r,"repeatPlay",()=>W),i.export(r,"isLikelyChinese",()=>H),i.export(r,"extractTextFromHtml",()=>V),i.export(r,"getTextWidth",()=>z),i.export(r,"getWidthPerChar",()=>$),i.export(r,"checkMSEdgeJwt",()=>q),i.export(r,"sortByStart",()=>Z),i.export(r,"sortByStartInData",()=>K),i.export(r,"findCueInRange",()=>J),i.export(r,"findCueInArrayOn",()=>X),i.export(r,"MSEdgeTranslateToSubtitleNodesText",()=>Q),i.export(r,"formatDuration",()=>ee),i.export(r,"getFontFamilyByValue",()=>et),i.export(r,"stopPropagation",()=>er),i.export(r,"ecdictFav",()=>en),i.export(r,"ecdictFavDel",()=>ea),i.export(r,"getEcdictredInfoWithPermission",()=>eo),i.export(r,"getAzureTranslate",()=>es),i.export(r,"convertToOptions",()=>el),i.export(r,"getLangChineseName",()=>eu),i.export(r,"formSubtitleNodesFromPayload",()=>ec),i.export(r,"removeRangeInPlace",()=>ed),i.export(r,"controlPlayThenPause",()=>ef),i.export(r,"getAbsoluteTop",()=>ep),i.export(r,"biliHandleScroll",()=>eh),i.export(r,"youtubeHandleScroll",()=>em),i.export(r,"baiduPanHandleScroll",()=>eg),i.export(r,"zimu1HandleScroll",()=>ey),i.export(r,"cleanWord",()=>eb);var s=e("react-toastify"),l=e("~tools/constants"),u=e("~tools/queryVideo"),c=e("../redux/storeNoStorage"),d=e("~redux/store"),f=e("~redux/no-storage-slice"),p=e("jwt-decode"),h=e("@plasmohq/messaging"),m=e("./error"),g=e("~tools/logger"),y=e("./storages"),b=e("./sleep"),_=e("./permission"),T=e("./constants/lang");let S=(0,_.withPermissionCheck)(B,"true",chrome.i18n.getMessage("pleasePayItThenUse")),v=(0,_.withPermissionCheck)(function({nodes:e,times:t=l.VARIABLE_REPEAT_INIT_TIMES,playbackRate:r=.5,video:a,wavesurfer:o,isInlineSublist:i}){let u=0,d=0;k({video:a,wavesurfer:o,isInlineSublist:i});let p=0;p=i?a.currentTime:o.getCurrentTime();let h=W(e,p);if(void 0===h)return;u=h.start,d=h.end,i?(a.currentTime=u,a.playbackRate=r,a?.paused&&a.play()):(o.setTime(u),o.setPlaybackRate(r),o.play());let m=0;(0,s.toast).dismiss(),i?(m=a.playbackRate,(0,s.toast)(`\u6fc0\u53d1\u64ad\u653e\uff0c\u5171${t}\u6b21\uff0c\u901f\u5ea6${m}`,{autoClose:(d-u)*1e3/m}),(0,c.store).dispatch((0,f.setVariableRepeatTimes)(t))):(m=o.getPlaybackRate(),(0,s.toast)(`\u6fc0\u53d1\u64ad\u653e\uff0c\u5171${t}\u6b21\uff0c\u901f\u5ea6${m}`,{autoClose:(d-u)*1e3/m}),(0,c.store).dispatch((0,f.setVariableRepeatTimesForWavesurfer)(t))),n=setInterval(()=>{i?a.currentTime>=d&&(a.currentTime=u,a.playbackRate=Number((r+=.1).toFixed(1)),t>0&&((0,s.toast).dismiss(),(0,s.toast)(`\u6fc0\u53d1\u64ad\u653e\uff0c\u8fd8\u5269 ${t-=1} \u6b21\uff0c\u901f\u5ea6${a.playbackRate}`,{autoClose:(d-u)*1e3/a.playbackRate}),(0,c.store).dispatch((0,f.setVariableRepeatTimes)(t)))):o.getCurrentTime()>=d&&(o.setTime(u),o.setPlaybackRate(Number((r+=.1).toFixed(1))),t>0&&((0,s.toast).dismiss(),(0,s.toast)(`\u6fc0\u53d1\u64ad\u653e\uff0c\u8fd8\u5269 ${t-=1} \u6b21\uff0c\u901f\u5ea6${o.getPlaybackRate()}`,{autoClose:(d-u)*1e3/o.getPlaybackRate()}),(0,c.store).dispatch((0,f.setVariableRepeatTimesForWavesurfer)(t)))),t<=1&&(m=i?a.playbackRate:o.getPlaybackRate(),k({video:a,wavesurfer:o,isInlineSublist:i}),(0,s.toast).dismiss(),(0,s.toast)(`\u6fc0\u53d1\u64ad\u653e\u7ed3\u675f\uff0c\u5f53\u524d\u901f\u5ea6${m}`,{autoClose:(d-u)*1e3/m}))},500)},"true",chrome.i18n.getMessage("pleasePayItThenUse"));function w(){try{let e=document.querySelector("#testId"),t=null;return e&&(t=e.getAttribute("data-srt-url")),t}catch(e){(0,m.handleError)({error:e,msgToShow:"tools.subtitle.getVideojsNextjsSrtUrl()"})}}async function E(e){try{let t=e?.target?.attributes["aria-pressed"]?.value;t&&("true"===t?await (0,y.storage).set(l.STORAGE_SHOWSUBTITLE,!0):await (0,y.storage).set(l.STORAGE_SHOWSUBTITLE,!1))}catch(e){(0,m.handleError)({error:e,msgToShow:"tools.subtitle.youtubeSubtitleBtnListener()"})}}function x(e=!0){try{let t=document.getElementById("ytp-caption-window-container");t&&(t.style.display=e?"none":"")}catch(e){(0,m.handleError)({error:e,msgToShow:"tools.subtitle.opYoutubeSubtitleContainer()"})}}async function I(){try{if(this?.src?.includes("youtube")){await c.storeReady,(0,c.store).dispatch((0,f.initSubtitleNodes)()),function(){try{let e=document.querySelector("button.ytp-subtitles-button.ytp-button");e&&(e.removeEventListener("click",E),e.addEventListener("click",E))}catch(e){(0,m.handleError)({error:e,msgToShow:"tools.subtitle.addEventListener2YoutubeSubtitleBtn()"})}}(),await (0,b.sleep)(2e3),(0,b.clickYoutubeSubtitleBtn)(),x();let e=this.clientWidth,t=this.clientHeight;(0,c.store).dispatch((0,f.setClientWidth)(e)),(0,c.store).dispatch((0,f.setClientHeight)(t))}}catch(e){(0,m.handleError)({error:e,msgToShow:"tools.subtitle.loadeddata()"})}}async function O(){try{if(A())return;let e=this.currentTime,t=this.clientWidth,r=this.clientHeight,n=this.paused,a=this.playbackRate;e!==(0,c.store).getState().noStorager.currentT&&(0,c.store).dispatch((0,f.setCurrentTime)(e)),t!==(0,c.store).getState().noStorager.clientWidth&&(0,c.store).dispatch((0,f.setClientWidth)(t)),r!==(0,c.store).getState().noStorager.clientHeight&&(0,c.store).dispatch((0,f.setClientHeight)(r)),n!==(0,c.store).getState().noStorager.paused&&(0,c.store).dispatch((0,f.setPaused)(n)),a!==(0,c.store).getState().noStorager.mediaPlaybackRate&&(0,c.store).dispatch((0,f.setMediaPlaybackRate)(a));let i=await (0,y.storage).get(l.STORAGE_PLAYED_THEN_PAUSE);if(i&&(0,c.store).getState().noStorager.playThenPause){this.pause();let e=await (0,y.storage).get(l.STORAGE_MAX_PAUSE_TIME);o=setTimeout(()=>{this instanceof HTMLVideoElement?this.play():console.error('Invalid context: "this" is not an HTMLVideoElement'),clearTimeout(o)},1e3*parseInt(e))}(0,g.logger).log("current time is :>> ",e);let s=await (0,y.storage).get(l.STORAGE_SHOWSUBTITLELIST);s!==(0,c.store).getState().noStorager.showSubtitleList&&(0,c.store).dispatch((0,f.setShowSubtitleList)(s))}catch(e){(0,m.handleError)({error:e,msgToShow:"tools.subtitle.timeUpdate()"})}}function A(){try{let e=window,t=document,r=t.querySelector(l.BWP_VIDEO);if(r?e.videoOrNot=!1:e.videoOrNot=!0,e?.browserType?.includes("edge")&&t?.baseURI?.includes("bilibili.com")&&e?.OSType?.includes("windows")&&!e?.videoOrNot)return!0;return!1}catch(e){(0,m.handleError)({error:e,msgToShow:"tools.subtitle.checkBwpVideo()"})}}async function M(e){try{let t=window,r=document,n=(0,c.store).getState().noStorager.subtitleNodes;if(n?.length<1){(0,g.logger).error("\u6ca1\u6709\u5b57\u5e55\u6570\u636e\u65f6\uff0ckeyDown() return.");return}if(e?.target?.tagName.toLowerCase()==="input"||e?.target?.id.toLowerCase().includes("edit")||e?.target?.tagName.toLowerCase()==="textarea"){(0,g.logger).error("\u6b63\u5728\u8f93\u5165\u6846\u4e2d\u8f93\u5165\uff0c\u5c31\u4e0d\u548c keyDown \u4e8b\u4ef6\u51b2\u7a81\u4e86\uff01");return}if(!d.store?.getState()?.odd?.popupShow||e?.ctrlKey||e?.shiftKey||e?.altKey)return;if(e?.target&&e?.target?.id==="DraggableDict"||e?.target&&e?.target?.id===l.DRAGGABLESUBTITLELIST||e?.target&&e?.target?.id===l.NEXTJSSUBTITLELIST||e?.target&&e?.target?.id===l.YOUTUBESUBTITLELIST){e.stopPropagation();return}let a=(0,u.queryVideoElementWithBlob)("keyDown");if(!a)return;e?.code?.toLocaleLowerCase()==="pageup"&&R({nodes:n,video:a,currentTime:a.currentTime}),e?.code?.toLocaleLowerCase()==="pagedown"&&D({nodes:n,video:a,currentTime:a.currentTime}),e?.key?.toLocaleLowerCase()==="enter"&&(a.paused?a.play():a.pause());let o=await (0,y.storage).get(l.STORAGE_DISABLESHORTCUTS);if(o)return;let i=await (0,y.storage).get(l.STORAGE_ALL_SHORTCUTS),{next:p,pre:h,add:m,sub:b,videoMask:_,subMask:T,repeat:S,variableRepeat:v,followRead:w,fullMask:E,subtitle:x,zhSubtitle:I,subtitleList:O}=i;if(e?.repeat)(0,g.logger).log(`\u91cd\u590d "${e?.key?.toLocaleUpperCase()}" \u952e [\u4e8b\u4ef6\uff1akeydown]`);else{if(A()){let n=e.key;n>"0"&&n<="10"&&(n=parseInt(n));let a={id:e.target.id},o=e.repeat;t.postMessage({key:n,target:a,repeatKeyDown:o,postMsgType:l.KEY_DOWN},r.baseURI);return}if("Escape"===e.key&&(k({video:a}),await (0,y.storage).set(l.STORAGE_ALWAY_REPEAT_PLAY,!1)),e?.key?.toLocaleUpperCase()===E){let e=a.clientWidth,t=(0,c.store).getState().noStorager.maskFull;(0,c.store).dispatch((0,f.setMaskFull)(!t)),(0,c.store).dispatch((0,f.setClientWidth)(e)),(0,s.toast).dismiss(),t?(0,s.toast)("\u53d6\u6d88\u906e\u7f69\u5c42\u5168\u90e8\u906e\u6321"):(0,s.toast)("\u906e\u7f69\u5c42\u5168\u90e8\u906e\u6321")}if(e?.key?.toLocaleUpperCase()===_){let e=a.clientWidth,t=await (0,y.storage).get(l.STORAGE_SHOWVIDEOMASK);await (0,y.storage).set(l.STORAGE_SHOWVIDEOMASK,!t),(0,c.store).dispatch((0,f.setClientWidth)(e)),(0,s.toast).dismiss(),t?(0,s.toast)("\u9690\u85cf\u906e\u7f69\u5c42"):(0,s.toast)("\u663e\u793a\u906e\u7f69\u5c42")}if(e?.key?.toLocaleUpperCase()===T){let e=a.clientWidth,t=await (0,y.storage).get(l.STORAGE_SHOWSUBTITLELISTMASK);await (0,y.storage).set(l.STORAGE_SHOWSUBTITLELISTMASK,!t),(0,c.store).dispatch((0,f.setClientWidth)(e)),(0,s.toast).dismiss(),t?(0,s.toast)("\u9690\u85cf\u5b57\u5e55\u5217\u8868\u906e\u7f69\u5c42"):(0,s.toast)("\u663e\u793a\u5b57\u5e55\u5217\u8868\u906e\u7f69\u5c42")}if(e?.key?.toLocaleUpperCase()===O){let e=a.clientWidth,t=await (0,y.storage).get(l.STORAGE_SHOWSUBTITLELIST);await (0,y.storage).set(l.STORAGE_SHOWSUBTITLELIST,!t),(0,c.store).dispatch((0,f.setClientWidth)(e)),(0,s.toast).dismiss(),t?(0,s.toast)("\u9690\u85cf\u5b57\u5e55List"):(0,s.toast)("\u663e\u793a\u5b57\u5e55List")}if(e?.key?.toLocaleUpperCase()===x){let e=a.clientWidth,t=await (0,y.storage).get(l.STORAGE_SHOWSUBTITLE);await (0,y.storage).set(l.STORAGE_SHOWSUBTITLE,!t),(0,c.store).dispatch((0,f.setClientWidth)(e)),t?(0,s.toast)("\u9690\u85cf\u5b57\u5e55"):(0,s.toast)("\u663e\u793a\u5b57\u5e55")}if(e?.key?.toLocaleUpperCase()===I){let e=a.clientWidth,t=await (0,y.storage).get(l.STORAGE_SHOWZHSUBTITLE);await (0,y.storage).set(l.STORAGE_SHOWZHSUBTITLE,!t),(0,c.store).dispatch((0,f.setClientWidth)(e)),t?(0,s.toast)("\u9690\u85cf\u4e2d\u6587\u5b57\u5e55"):(0,s.toast)("\u663e\u793a\u4e2d\u6587\u5b57\u5e55")}e?.key?.toLocaleUpperCase()===v&&F({nodes:n,video:a}),e?.key?.toLocaleUpperCase()===S&&G({nodes:n,video:a}),e?.key?.toLocaleUpperCase()===w&&Y(n,a),e?.key?.toLocaleUpperCase()===m&&L({video:a}),e?.key?.toLocaleUpperCase()===b&&C({video:a}),e?.key?.toLocaleUpperCase()===h&&R({nodes:n,video:a,currentTime:a.currentTime}),e?.key?.toLocaleUpperCase()===p&&D({nodes:n,video:a,currentTime:a.currentTime})}}catch(e){(0,m.handleError)({error:e,msgToShow:"tools.subtitle.keyDown()"})}}function k({video:e,wavesurfer:t,isInlineSublist:r=!0}){try{(n||a||o)&&((0,s.toast)(`\u53d6\u6d88 \u91cd\u590d\u64ad\u653e \u6216 \u53d8\u901f\u64ad\u653e`),n&&clearInterval(n),a&&clearTimeout(a),o&&clearTimeout(o),r?(e.playbackRate=1,e.paused&&e.play(),(0,c.store).dispatch((0,f.setRepeatTimes)(l.REPEAT_UI_INIT_TIMES)),(0,c.store).dispatch((0,f.setVariableRepeatTimes)(l.VARIABLE_REPEAT_UI_INIT_TIMES))):(t&&t.setPlaybackRate(1),t&&t.play(),(0,c.store).dispatch((0,f.setRepeatTimesForWavesurfer)(l.REPEAT_UI_INIT_TIMES)),(0,c.store).dispatch((0,f.setVariableRepeatTimesForWavesurfer)(l.VARIABLE_REPEAT_UI_INIT_TIMES))),n=void 0,a=void 0)}catch(e){(0,m.handleError)({error:e,msgToShow:"tools.subtitle.clearIntervalAndTimeOut()"})}}function R({nodes:e,video:t,currentTime:r,wavesurfer:n,isInlineSublist:a=!0}){try{let{preNodeStartTime:o}=P(e,r);k({video:t,wavesurfer:n,isInlineSublist:a}),a?t&&(t.currentTime=o,t.paused&&t.play()):n&&(n.setTime(o),n.play()),(0,s.toast).dismiss(),(0,s.toast)("\u4e0a\u4e00\u53e5")}catch(e){(0,m.handleError)({error:e,msgToShow:"tools.subtitle.preSentence()"})}}function D({nodes:e,video:t,currentTime:r,wavesurfer:n,isInlineSublist:a=!0}){try{let{nextNodeStartTime:o}=P(e,r);k({video:t,wavesurfer:n,isInlineSublist:a}),a?t&&(t.currentTime=o,t.paused&&t.play()):n&&(n.setTime(o),n.play()),(0,s.toast).dismiss(),(0,s.toast)("\u4e0b\u4e00\u53e5")}catch(e){(0,m.handleError)({error:e,msgToShow:"tools.subtitle.nextSentence()"})}}function L({video:e,isInlineSublist:t=!0,wavesurfer:r}){t?e&&e?.playbackRate<10?(e.playbackRate=Number((e.playbackRate+.1).toFixed(1)),(0,c.store).dispatch((0,f.setMediaPlaybackRate)(e.playbackRate)),(0,s.toast).dismiss(),(0,s.toast)(`\u64ad\u653e\u901f\u5ea6 +0.1 \u5f53\u524d\u64ad\u653e\u901f\u5ea6\uff1a${e.playbackRate}`)):((0,s.toast).dismiss(),e&&(0,s.toast)(`\u5f53\u524d\u64ad\u653e\u901f\u5ea6${e.playbackRate}\uff0c\u4e0d\u80fd\u518d\u52a0\u4e86\uff01`)):r&&r?.getPlaybackRate()<10?(r.setPlaybackRate(Number((r.getPlaybackRate()+.1).toFixed(1))),(0,c.store).dispatch((0,f.setMediaPlaybackRateForWavesurfer)(r.getPlaybackRate())),(0,s.toast).dismiss(),(0,s.toast)(`\u64ad\u653e\u901f\u5ea6 +0.1 \u5f53\u524d\u64ad\u653e\u901f\u5ea6\uff1a${r.getPlaybackRate()}`)):((0,s.toast).dismiss(),r&&(0,s.toast)(`\u5f53\u524d\u64ad\u653e\u901f\u5ea6${r.getPlaybackRate()}\uff0c\u4e0d\u80fd\u518d\u52a0\u4e86\uff01`))}function C({video:e,isInlineSublist:t=!0,wavesurfer:r}){t?e&&e?.playbackRate>.2?(e.playbackRate=Number((e.playbackRate-.1).toFixed(1)),(0,c.store).dispatch((0,f.setMediaPlaybackRate)(e.playbackRate)),(0,s.toast).dismiss(),(0,s.toast)(`\u64ad\u653e\u901f\u5ea6 -0.1 \u5f53\u524d\u64ad\u653e\u901f\u5ea6\uff1a${e.playbackRate}`)):((0,s.toast).dismiss(),e&&(0,s.toast)(`\u5f53\u524d\u64ad\u653e\u901f\u5ea6${e.playbackRate}\uff0c\u4e0d\u80fd\u518d\u51cf\u4e86\uff01`)):r&&r?.getPlaybackRate()>.2?(r.setPlaybackRate(Number((r.getPlaybackRate()-.1).toFixed(1))),(0,c.store).dispatch((0,f.setMediaPlaybackRateForWavesurfer)(r.getPlaybackRate())),(0,s.toast).dismiss(),(0,s.toast)(`\u64ad\u653e\u901f\u5ea6 -0.1 \u5f53\u524d\u64ad\u653e\u901f\u5ea6\uff1a${r.getPlaybackRate()}`)):((0,s.toast).dismiss(),r&&(0,s.toast)(`\u5f53\u524d\u64ad\u653e\u901f\u5ea6${r.getPlaybackRate()}\uff0c\u4e0d\u80fd\u518d\u52a0\u4e86\uff01`))}function U(e){if(!e.includes("https")){let t=new URL(e);return`https://${t.host}${t.pathname}${t.search}`}return e}function j(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r],a=n.content.replace(/\n/g," "),o={type:"cue",data:{start:1e3*n.from,end:1e3*n.to,text:a}};t.push(o)}return t}function P(e,t){let r=0,n=0;if(0===e.length)return{preNodeStartTime:r,nextNodeStartTime:n};let a=e[0],o=e[e.length-1],i=e[e.length-2],s=a.data.start/1e3,l=o.data.start/1e3,u=i.data.start/1e3,c=0,d=e.length-1,f=0;for(;c<=d;){f++;let i=c+Math.floor((d-c)/2),p=i-1,h=i+1,m=p<0?a:e[p],y=h>=e.length?o:e[h],b=e[i],_=m.data.start/1e3,T=y.data.start/1e3,S=b.data.start/1e3;if(S<=t&&t<=T)return r=_,n=T,(0,g.logger).log(`getNodeStartOrEndTimeBTree \u67e5\u627e\u6b21\u6570: ${f}`),{preNodeStartTime:r,nextNodeStartTime:n};if(t<=S?d=i-1:t>=T&&(c=i+1),t<=s)return r=s,n=s,(0,g.logger).log(`getNodeStartOrEndTimeBTree \u67e5\u627e\u6b21\u6570: ${f}`),{preNodeStartTime:r,nextNodeStartTime:n};if(l<=t)return r=u,n=l,(0,g.logger).log(`getNodeStartOrEndTimeBTree \u67e5\u627e\u6b21\u6570: ${f}`),{preNodeStartTime:r,nextNodeStartTime:n}}return(0,g.logger).log(`getNodeStartOrEndTimeBTree \u67e5\u627e\u6b21\u6570: ${f}`),{preNodeStartTime:r,nextNodeStartTime:n}}function N(e,t){let r=0,n=0;if(0===e.length)return{preNodeStartTime:r,nextNodeStartTime:n};let a=e[0],o=e[e.length-1],i=e[e.length-2],s=a.data.start/1e3,l=o.data.start/1e3,u=i.data.start/1e3;for(let i=0;i<e.length;i++){let c=i-1,d=i+1,f=c<0?a:e[c],p=d>=e.length?o:e[d],h=e[i],m=f.data.start/1e3,g=p.data.start/1e3,y=h.data.start/1e3;if(y<=t&&t<=g){r=m,n=g;break}if(t<=s)return{preNodeStartTime:r=s,nextNodeStartTime:n=s};if(l<=t){r=u,n=l;break}}return{preNodeStartTime:r,nextNodeStartTime:n}}async function Y(e,t){k({video:t});let r=await (0,y.storage).get(l.STORAGE_FOLLOW_READ_TIMES),o=await (0,y.storage).get(l.STORAGE_FOLLOW_READ_LENGTH),i=W(e,t.currentTime);if(void 0===i)return;let{start:u,end:c}=i;t.currentTime=u,t?.paused&&t.play();let d=parseInt(r),f=parseFloat(o);(0,s.toast)(`\u64ad\u653e\u5f53\u524d\u8ddf\u8bfb\u53e5\uff0c\u5171${d}\u6b21`,{autoClose:(c-u)*1e3/t.playbackRate}),n=setInterval(()=>{t.currentTime>=c&&(t.currentTime=u,t.pause(),(0,s.toast)(`\u8bf7\u8ddf\u8bfb\uff0c\u8fd8\u5269 ${d} \u6b21`,{autoClose:(c-u)*1e3*f/t.playbackRate}),a=setTimeout(()=>{t.play(),d--,clearTimeout(a),d>0&&(0,s.toast)(`\u64ad\u653e\u5f53\u524d\u8ddf\u8bfb\u53e5\uff0c\u8fd8\u5269 ${d} \u6b21`,{autoClose:(c-u)*1e3/t.playbackRate})},(c-u)*1e3*f/t.playbackRate)),d<=0&&k({video:t})},500)}function F({nodes:e,video:t,wavesurfer:r,isInlineSublist:n=!0}){v({nodes:e,video:t,wavesurfer:r,isInlineSublist:n})}async function B({nodes:e,times:t=l.REPEAT_INIT_TIMES,video:r,wavesurfer:a,isInlineSublist:o}){let i=0,u=0;k({video:r,wavesurfer:a,isInlineSublist:o}),t=await (0,y.storage).get(l.STORAGE_REPLAY_TIMES)||l.REPEAT_INIT_TIMES;let d=await (0,y.storage).get(l.STORAGE_ALWAY_REPEAT_PLAY)||!1,p=0;p=o?r.currentTime:a.getCurrentTime();let h=W(e,p);if(void 0===h)return;i=h.start,u=h.end,o?(r.currentTime=i,r?.paused&&r.play()):(a.setTime(i),a.play());let m=0;(0,s.toast).dismiss(),o?(m=r.playbackRate,(0,c.store).dispatch((0,f.setRepeatTimes)(t))):(m=a.getPlaybackRate(),(0,c.store).dispatch((0,f.setRepeatTimesForWavesurfer)(t))),(0,s.toast)(`\u91cd\u590d\u64ad\u653e\uff0c\u5171${t}\u6b21`,{autoClose:(u-i)*1e3/m}),n=setInterval(()=>{if(t<=1&&d&&r.currentTime>=u){k({video:r,wavesurfer:a,isInlineSublist:o});return}o?r.currentTime>=u&&((0,s.toast).dismiss(),(0,s.toast)(`\u91cd\u590d\u64ad\u653e\uff0c\u8fd8\u5269 ${t-=1} \u6b21`,{autoClose:(u-i)*1e3/r.playbackRate}),(0,c.store).dispatch((0,f.setRepeatTimes)(t)),r.currentTime=i):a.getCurrentTime()>=u&&((0,s.toast).dismiss(),(0,s.toast)(`\u91cd\u590d\u64ad\u653e\uff0c\u8fd8\u5269 ${t-=1} \u6b21`,{autoClose:(u-i)*1e3/a.getPlaybackRate()}),(0,c.store).dispatch((0,f.setRepeatTimesForWavesurfer)(t)),a.setTime(i)),t<=1&&!d&&k({video:r,wavesurfer:a,isInlineSublist:o})},500)}async function G({nodes:e,video:t,wavesurfer:r,isInlineSublist:n=!0}){await S({nodes:e,video:t,wavesurfer:r,isInlineSublist:n})}function W(e,t){let{cue:r,index:n}=J(e,t);if(-1!==n)return{start:r.data.start/1e3,end:r.data.end/1e3}}function H(e){let t=(e.match(/[\u4e00-\u9fff]/g)||[]).length,r=(e.match(/[a-zA-Z]/g)||[]).length;return t>r}function V(e){let t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText}function z(e,t,r,n){let a=document.createElement("span");a.style.lineHeight=l.LINE_HEIGHT,a.style.fontSize=t,a.style.fontWeight=n,a.style.fontFamily=r,a.style.whiteSpace="nowrap",a.style.visibility="hidden",a.style.position="absolute",a.textContent=e,document.body.appendChild(a);let o=a.offsetWidth,i=a.offsetHeight;return document.body.removeChild(a),{widthText:o,heightText:i}}function $(e="21px",t="21px",r=l.FONT_SANS){let n,a;let o="abcdefghijklmnopqrstuvwxyz",i="\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d\u5341";n=z(o,e,r,l.FONT_WEIGHT);let s=n.widthText/o.length,u=n.heightText;a=z(i,t,r,l.FONT_WEIGHT);let c=a.widthText/i.length,d=a.heightText;return{widthPerEnChar:s,widthPerZhChar:c,heightPerEnChar:u,heightPerZhChar:d}}function q(e){if(!e)return!1;let t={region:"","subscription-id":"","product-id":"","cognitive-services-endpoint":"","azure-resource-id":"",scope:"",aud:"",exp:0,iss:""};return e.length>1?t=(0,p.jwtDecode)(e):t.exp=0,!(t?.exp<Date.now()/1e3)}function Z(e){return e.sort((e,t)=>e.start<t.start?-1:e.start>t.start?1:0)}function K(e){return e.sort((e,t)=>e.data.start<t.data.start?-1:e.data.start>t.data.start?1:0)}function J(e,t){let r=0,n=e.length-1,a=null,o=-1,i=0;for(;r<=n;){i++;let s=r+Math.floor((n-r)/2),l=e[s],u=l.data.start/1e3,c=l.data.end/1e3;u<=t&&c>=t?(a=l,o=s,n=s-1):u>t?n=s-1:r=s+1}return a&&a.data&&a.data.text?((0,g.logger).log(`\u67e5\u627e\u6b21\u6570: ${i}`),{cue:a,index:o}):((0,g.logger).log(`\u67e5\u627e\u6b21\u6570: ${i}`),{cue:a,index:-1})}function X(e,t){for(let r=0;r<e.length;r++){let n=e[r];if(n.data.start/1e3<=t&&n.data.end/1e3>=t)return{cue:n,index:r}}return{cue:null,index:-1}}function Q(e,t){if(t.length!==e.length)return!1;let r=[];for(let n=0;n<t.length;n++){let a=t[n],o=e[n].translations[0].text,i=a.data.text,s={type:"cue",data:{start:0,end:0,index:0,text:"",zh_text:""}};s.data.start=a.data.start,s.data.end=a.data.end,s.data.index=a.data.index,a.data?.words?.length>0&&(s.data.words=[...a.data.words]),H(i)?(s.data.text=o,s.data.zh_text=i):(s.data.text=i,s.data.zh_text=o),r.push(s)}return r}function ee(e){let t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=Math.round(e%60);return t>99?[t,r.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":"):[t.toString().padStart(2,"0"),r.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":")}function et(e){let t=l.SUBTITLE_FONT_FAMILY;for(let r=0;r<t.length;r++){let n=t[r];if(n.value===e)return n}}function er(e){d.store?.getState()?.odd?.popupShow&&(document?.URL?.includes("youtube.com")&&(37!==e.keyCode&&38!==e.keyCode&&39!==e.keyCode&&40!==e.keyCode&&e.stopPropagation(),M(e),32!==e.keyCode||e?.target?.id===l.YOUTUBESUBTITLELIST||e?.target?.id==="DraggableDict"||e?.target?.id===l.DRAGGABLESUBTITLELIST||e?.target?.id===l.NEXTJSSUBTITLELIST||e?.target?.tagName.toLowerCase()==="input"||e?.target?.id.toLowerCase().includes("edit")||e?.target?.tagName.toLowerCase()==="textarea"||e.preventDefault()),(33===e.keyCode||34===e.keyCode)&&e.preventDefault())}async function en({word:e}){let t=await (0,h.sendToBackground)({name:"subtitle-msg",body:{msgType:"ecdictFavMsg",word:e}});return t?.result?t.result:void 0}async function ea({word:e}){let t=await (0,h.sendToBackground)({name:"subtitle-msg",body:{msgType:"ecdictFavDelMsg",word:e}});return t?.result?t.result:void 0}let eo=(0,_.withPermissionCheck)(ei,"true","\u8bf7\u5f00\u901a\u4f1a\u5458\u540e\u4f7f\u7528\u5212\u8bcd\u8bcd\u5178\u529f\u80fd");async function ei({word:e}){let t=await (0,h.sendToBackground)({name:"subtitle-msg",body:{msgType:"getEcdictredInfo",word:e}});return t?.result?t.result:void 0}async function es(e,t,r,n){try{let a=[];for(let r=0;r<e.length;r+=400){let n=e.slice(r,r+400),o=await (0,h.sendToBackground)({name:"subtitle-msg",body:{msgType:"azureTranslate",q:n,target:t}});if(o?.translations&&Array.isArray(o.translations))a.push(...o.translations);else throw console.error("Invalid response format:",o.error),Error(o.error)}if(a?.length>0){let e=Q(a,r);e?(await (0,b.sleep)(300),n?(0,c.store).dispatch((0,f.setSubtitleNodes)(e)):(0,c.store).dispatch((0,f.setTTSSubtitleNodes)(e))):((0,s.toast).dismiss(),(0,s.toast).error(chrome.i18n.getMessage("translateDataIsNotPairedContactAdministrator"),{autoClose:18e4}))}else throw Error("Error in getAzureTranslate\uff0ctranslations is empty")}catch(e){(0,s.toast).dismiss(),(0,s.toast).error(`code:${e?.code},message:${e?.message}`,{autoClose:18e4})}}function el(e){let t=e.reduce((e,t)=>{let r=t.locale;return e.has(r)||e.set(r,{value:r,label:r,children:[]}),e.get(r)?.children?.push({value:t.shortName,label:`${t.localName} ${t.localeName} ${1!==t.gender?"Male":"Female"} ${t.wordsPerMinute}`}),e},new Map);return Array.from(t.values())}function eu(e){return T.LANG_MAP[e]||"\u672a\u77e5\u8bed\u79cd"}function ec(e){let t=[],r=K(e),n=0;return r.forEach(e=>{if(e?.data?.text&&e?.data?.text.includes("\n")){let r=e.data.text;e.data.text="";let a=r.split("\n"),o={type:"cue",data:{start:0,end:0,text:"",zh_text:"",index:0}};a.forEach(t=>{let r=V(t);H(r)?(o=e).data.zh_text=r:(o=e).data.text=r}),o.data.index=n,t.push(o)}else e.data.index=n,t.push(e);n+=1}),t}function ed(e,t,r){if(t<0||r>=e.length||t>r)throw Error("\u65e0\u6548\u7684\u7d22\u5f15\u8303\u56f4");return e.splice(t,r-t+1),e}function ef({setStoreIndex:e,indexFromFind:t,indexFromStore:r,setPlayThenPauseOrNot:n=!0}){try{t!==r&&-1!==t?(t>=0&&-1===r?n&&(0,c.store).dispatch((0,f.setPlayThenPause)(!1)):n&&(0,c.store).dispatch((0,f.setPlayThenPause)(!0)),(0,c.store).dispatch(e(t))):t===r&&!1!==(0,c.store).getState().noStorager.playThenPause?n&&(0,c.store).dispatch((0,f.setPlayThenPause)(!1)):-1===t&&r>=0?((0,c.store).dispatch(e(-1)),n&&(0,c.store).dispatch((0,f.setPlayThenPause)(!0))):-1===t&&t===r&&n&&(0,c.store).dispatch((0,f.setPlayThenPause)(!1))}catch(e){(0,m.handleError)({error:e,msgToShow:"contents.storeCore.controlPlayThenPause"})}}function ep(e){let t=e.getBoundingClientRect(),r=document?.documentElement?.scrollTop||document?.body?.scrollTop;return t.top+r}function eh(){let e,t;let r=document.querySelector("#danmukuBox .danmaku-wrap");if(r){let n=r.getBoundingClientRect();n&&((0,c.store).dispatch((0,f.setDraggableSubtitleListXInStore)(n.left)),(0,c.store).dispatch((0,f.setDraggableSubtitleListYInStore)(n.top)),e=n.left,t=n.top)}else(0,c.store).dispatch((0,f.setDraggableSubtitleListXInStore)(e)),(0,c.store).dispatch((0,f.setDraggableSubtitleListYInStore)(t));return{lastX:e,lastY:t}}function em(){let e,t;let r=(0,u.queryYoutubeItems)();if(r){let n=r.getBoundingClientRect();n&&((0,c.store).dispatch((0,f.setDraggableSubtitleListXInStore)(n.left)),(0,c.store).dispatch((0,f.setDraggableSubtitleListYInStore)(n.top)),e=n.left,t=n.top)}else(0,c.store).dispatch((0,f.setDraggableSubtitleListXInStore)(e)),(0,c.store).dispatch((0,f.setDraggableSubtitleListYInStore)(t));return{lastX:e,lastY:t}}function eg(){let e,t;let r=(0,u.queryBaiduPanRightSubtitleListContainer)();if(r){let n=r.getBoundingClientRect();(0,c.store).dispatch((0,f.setDraggableSubtitleListXInStore)(n.left)),(0,c.store).dispatch((0,f.setDraggableSubtitleListYInStore)(n.top)),e=n.left,t=n.top}else(0,c.store).dispatch((0,f.setDraggableSubtitleListXInStore)(e)),(0,c.store).dispatch((0,f.setDraggableSubtitleListYInStore)(t));return{lastX:e,lastY:t}}function ey(){let e,t;let r=(0,u.queryRightSubtitleListContainer)();if(r){let n=r.getBoundingClientRect();n&&((0,c.store).dispatch((0,f.setDraggableSubtitleListXInStore)(n.left)),(0,c.store).dispatch((0,f.setDraggableSubtitleListYInStore)(n.top)),e=n.left,t=n.top)}else(0,c.store).dispatch((0,f.setDraggableSubtitleListXInStore)(e)),(0,c.store).dispatch((0,f.setDraggableSubtitleListYInStore)(t));return{lastX:e,lastY:t}}function eb(e){return"string"!=typeof e?e:e.replace(/^[^a-zA-Z]*(.*?)[^a-zA-Z]*$/,"$1")}},{"react-toastify":"7cUZK","~tools/constants":"DgB7r","~tools/queryVideo":"cTLmP","../redux/storeNoStorage":"20ikG","~redux/store":"gaugC","~redux/no-storage-slice":"jZFan","jwt-decode":"ftkuD","@plasmohq/messaging":"92GyB","./error":"82aS0","~tools/logger":"1qe3F","./storages":"hpDvz","./sleep":"1N71i","./permission":"9ypWX","./constants/lang":"3ofev","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],DgB7r:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"SUBTITLE_LIST_PADDING_SIZE",()=>a),n.export(r,"SUBTITLE_LIST_WIDTH",()=>o),n.export(r,"DEFAULT_ROW_HEIGHT",()=>i),n.export(r,"SUBTITLE_LIST_TTS_TEXT_WIDTH",()=>s),n.export(r,"SUBTITLE_LIST_HEIGHT",()=>l),n.export(r,"DRAGGABLE_HANDLE_HEIGHT",()=>u),n.export(r,"CLOSE_SVG_REM_COUNT",()=>c),n.export(r,"SUBTITLE_LIST_ROW_HEIGHT",()=>d),n.export(r,"BWP_VIDEO",()=>f),n.export(r,"VIDEO_PAUSE",()=>p),n.export(r,"KEY_DOWN",()=>h),n.export(r,"CLICK_SUBTITLE",()=>m),n.export(r,"SENT_BILIBILI_AI_SUBTITLE_URL",()=>g),n.export(r,"SENT_YOUTUBE_SUBTITLE_API_URL",()=>y),n.export(r,"SENT_BAIDUPAN_SUBTITLE_API_URL",()=>b),n.export(r,"INIT_SUBTITLENODES",()=>_),n.export(r,"NO_SUBTITLENODES_DATA",()=>T),n.export(r,"FILTER_SUBTITLE_IN_WEBREQUEST",()=>S),n.export(r,"FILTER_SUBTITLE_URL_IN_BAIDUPAN_1",()=>v),n.export(r,"FILTER_SUBTITLE_URL_IN_BAIDUPAN_2",()=>w),n.export(r,"FILTER_SUBTITLE_IN_YOUTUBE_URL",()=>E),n.export(r,"NEXT",()=>x),n.export(r,"PRE",()=>I),n.export(r,"ADD",()=>O),n.export(r,"SUB",()=>A),n.export(r,"VIDEO_MASK",()=>M),n.export(r,"SUB_MASK",()=>k),n.export(r,"REPEAT",()=>R),n.export(r,"VARIABLE_REPEAT",()=>D),n.export(r,"FOLLOW_READ",()=>L),n.export(r,"FULL_MASK",()=>C),n.export(r,"SUBTITLE_LIST",()=>U),n.export(r,"SUBTITLE",()=>j),n.export(r,"ZHSUBTITLE",()=>P),n.export(r,"DEFAULT_MAX_PAUSE_TIME",()=>N),n.export(r,"STORAGE_RANDOMUUID",()=>Y),n.export(r,"STORAGE_ALWAY_REPEAT_PLAY",()=>F),n.export(r,"STORAGE_PLAYED_THEN_PAUSE",()=>B),n.export(r,"STORAGE_SHOW_EN_DEFINITION",()=>G),n.export(r,"STORAGE_REPLAY_TIMES",()=>W),n.export(r,"STORAGE_MAX_PAUSE_TIME",()=>H),n.export(r,"STORAGE_SUBTITLELIST_TABS_KEY",()=>V),n.export(r,"STORAGE_SUBTITLELIST_LANGUAGE_MODE_TO_SHOW",()=>z),n.export(r,"STORAGE_SUBTITLELIST_TABS_SCROLL",()=>$),n.export(r,"STORAGE_SHOWSUBTITLE",()=>q),n.export(r,"STORAGE_SHOWZHSUBTITLE",()=>Z),n.export(r,"STORAGE_SHOWSUBTITLELIST",()=>K),n.export(r,"STORAGE_SHOWTTSSUBTITLELIST",()=>J),n.export(r,"STORAGE_DRAGGABLESUBTITLELISTX",()=>X),n.export(r,"STORAGE_DRAGGABLESUBTITLELISTY",()=>Q),n.export(r,"STORAGE_BILIBILI_TRANSLATE_SELECT_LANG",()=>ee),n.export(r,"STORAGE_SHOWVIDEOMASK",()=>et),n.export(r,"STORAGE_SHOWSUBTITLELISTMASK",()=>er),n.export(r,"STORAGE_SHOWFLOATBALL",()=>en),n.export(r,"STORAGE_DISABLESHORTCUTS",()=>ea),n.export(r,"STORAGE_ALL_SHORTCUTS",()=>eo),n.export(r,"STORAGE_VIDEO_MASK_HEIGHT",()=>ei),n.export(r,"STORAGE_DEFAULT_VIDEO_MASK_HEIGHT",()=>es),n.export(r,"STORAGE_FOLLOW_READ_TIMES",()=>el),n.export(r,"STORAGE_DEFAULT_FOLLOW_READ_TIMES",()=>eu),n.export(r,"STORAGE_FOLLOW_READ_LENGTH",()=>ec),n.export(r,"STORAGE_DEFAULT_FOLLOW_READ_LENGTH",()=>ed),n.export(r,"STORAGE_POST_IDLETIME_ACTIVETIME_LOCK",()=>ef),n.export(r,"STORAGE_IDLETIME_VIDEO_ACTIVETIME",()=>ep),n.export(r,"STORAGE_IDLETIME_DRAGGABLESUBTITLELIST_ACTIVETIME",()=>eh),n.export(r,"STORAGE_IDLETIME_NEXTJSSUBTITLELIST_ACTIVETIME",()=>em),n.export(r,"STORAGE_IDLETIME_DRAGGABLEDICT_ACTIVETIME",()=>eg),n.export(r,"STORAGE_IDLETIME_YOUTUBESUBTITLELIST_ACTIVETIME",()=>ey),n.export(r,"STORAGE_IDLETIME_VIDEO_ACTIVETIME_OTHER",()=>eb),n.export(r,"STORAGE_IDLETIME_VIDEO_ACTIVETIME_YOUTUBE",()=>e_),n.export(r,"STORAGE_IDLETIME_VIDEO_ACTIVETIME_BILIBILI",()=>eT),n.export(r,"STORAGE_IDLETIME_VIDEO_ACTIVETIME_1ZIMU",()=>eS),n.export(r,"STORAGE_IDLETIME_VIDEO_ACTIVETIME_BAIDUPAN",()=>ev),n.export(r,"STORAGE_AZURE_KEY_CODE",()=>ew),n.export(r,"STORAGE_AZURE_KEY_AREA",()=>eE),n.export(r,"STORAGE_FAVORITES_DICTS",()=>ex),n.export(r,"STORAGE_MASK_BACKDROP_BLUR_SHOW",()=>eI),n.export(r,"STORAGE_DEFAULT_MASK_BACKDROP_BLUR_SHOW",()=>eO),n.export(r,"STORAGE_MASK_BACKDROP_BLUR_COLOR",()=>eA),n.export(r,"STORAGE_DEFAULT_MASK_BACKDROP_BLUR_COLOR",()=>eM),n.export(r,"STORAGE_USER_INFO",()=>ek),n.export(r,"IDLETIME_STORAGE_DEFAULT_VALUE",()=>eR),n.export(r,"FAVORITES_DICTS_DEFAULT_VALUE",()=>eD),n.export(r,"ALL_SHORT_CUTS",()=>eL),n.export(r,"COLOR_PRIMARY",()=>eC),n.export(r,"FONT_SIZE",()=>eU),n.export(r,"FONT_SANS",()=>ej),n.export(r,"FONT_SERIF",()=>eP),n.export(r,"FONT_MONO",()=>eN),n.export(r,"SUBTITLE_FONT_FAMILY",()=>eY),n.export(r,"FONT_WEIGHT",()=>eF),n.export(r,"LINE_HEIGHT",()=>eB),n.export(r,"ZIMU1_USESTORAGE_SYNC_JWT",()=>eG),n.export(r,"ZIMU1_USESTORAGE_SYNC_HEADIMGURL",()=>eW),n.export(r,"ZIMU1_USESTORAGE_SYNC_NICKNAME",()=>eH),n.export(r,"ZIMU1_USESTORAGE_SYNC_PAID",()=>eV),n.export(r,"DRAGGABLE_NODE_CONTAINER_WIDTH",()=>ez),n.export(r,"DRAGGABLE_NODE_CONTAINER_HEIGHT",()=>e$),n.export(r,"DRAGGABLE_NODE_CONTAINER_X",()=>eq),n.export(r,"DRAGGABLE_NODE_CONTAINER_Y",()=>eZ),n.export(r,"IDLE_TIME_OUT",()=>eK),n.export(r,"DARK_BG_COLOR",()=>eJ),n.export(r,"REPEAT_INIT_TIMES",()=>eX),n.export(r,"REPEAT_UI_INIT_TIMES",()=>eQ),n.export(r,"VARIABLE_REPEAT_INIT_TIMES",()=>e0),n.export(r,"VARIABLE_REPEAT_UI_INIT_TIMES",()=>e1),n.export(r,"YOUTUBE_SUBTITLELIST_WATCH_URL",()=>e2),n.export(r,"YOUTUBE_SUBTITLELIST_WATCH_URL_EMBED",()=>e3),n.export(r,"ZIMU1_SUBTITLELIST_WATCH_URL",()=>e4),n.export(r,"CASCADER_OPTION_MIX",()=>e6),n.export(r,"CASCADER_OPTION_ZH",()=>e5),n.export(r,"CASCADER_OPTION_FOREIGN",()=>e9),n.export(r,"STORAGE_SUBTITLE_FOREIGN_FONTSIZE",()=>e8),n.export(r,"STORAGE_SUBTITLE_ZH_FONTSIZE",()=>e7),n.export(r,"SUBTITLE_FOREIGN_FONT_SIZE",()=>te),n.export(r,"STORAGE_SUBTITLELIST_FOREIGN_FONTSIZE",()=>tt),n.export(r,"STORAGE_SUBTITLELIST_ZH_FONTSIZE",()=>tr),n.export(r,"STORAGE_ARTICLE_FONTSIZE",()=>tn),n.export(r,"STORAGE_SUBTITLE_FONT_FAMILY",()=>ta),n.export(r,"STORAGE_SUBTITLE_NO",()=>to),n.export(r,"STORAGE_SUBTITLE_NO_CURRENT_TIME",()=>ti),n.export(r,"BILIBILI_COM",()=>ts),n.export(r,"YOUTUBE_COM",()=>tl),n.export(r,"ZIMU1_COM",()=>tu),n.export(r,"PAN_BAIDU_COM",()=>tc),n.export(r,"PAN_BAIDU_COM_VIDEO",()=>td),n.export(r,"YOUTUBESUBTITLELIST",()=>tf),n.export(r,"NEXTJSSUBTITLELIST",()=>tp),n.export(r,"BILIBILISUBTITLESWITCH",()=>th),n.export(r,"YOUTUBESUBTITLESWITCH",()=>tm),n.export(r,"BAIDUPANSUBTITLESWITCH",()=>tg),n.export(r,"DRAGGABLESUBTITLELIST",()=>ty),n.export(r,"YOUTUBE_VALID_ORIGINS",()=>tb),n.export(r,"BILIBILI_VALID_ORIGINS",()=>t_),n.export(r,"ZIMU1_VALID_ORIGINS",()=>tT),n.export(r,"BAIDUPAN_VALID_ORIGINS",()=>tS),n.export(r,"JWT_IS_FALSE",()=>tv);let a=1,o=300,i=80,s=600,l=500,u=16,c=2,d=36,f="bwp-video",p="VIDEO_PAUSE",h="KEY_DOWN",m="CLICK_SUBTITLE",g="SENT_BILIBILI_AI_SUBTITLE_URL",y="SENT_YOUTUBE_SUBTITLE_API_URL",b="SENT_BAIDUPAN_SUBTITLE_API_URL",_="INIT_SUBTITLENODES",T="NO_SUBTITLENODES_DATA",S="api.bilibili.com/x/player/wbi/v2",v="/api/streaming",w="M3U8_SUBTITLE_SRT",E=".com/api/timedtext",x="K",I="J",O="I",A="U",M="H",k="L",R="R",D="Q",L="F",C="A",U="V",j="S",P="C",N=20,Y="storage_randomUUID",F="alwaysRepeatPlay",B="playedThenPause",G="showEnDefinition",W="storage_replay_times",H="storage_max_pause_time",V="subtitlelistTabsKey",z="subtitlelistLanguageModeToShow",$="subtitlelistTabsScroll",q="showSubtitle",Z="showZhSubtitle",K="showSubtitleList",J="showTTSSubtitleList",X="draggableSubtitleListX",Q="draggableSubtitleListY",ee="bilibiliTranslateSelectLang",et="showVideoMask",er="showSubtitleListMask",en="showFloatBall",ea="disableShortcuts",eo="allShortcuts",ei="videoMaskHeight",es=80,el="followReadTimes",eu=3,ec="followReadLength",ed=1.5,ef="storage_post_idletime_activetime_lock",ep="idleTimeVideoActivetime",eh="idleTimeDraggableSubListActivetime",em="idleTimeNextjsSubListActivetime",eg="idleTimeDraggableDictActivetime",ey="idleTimeYoutubeSubListActivetime",eb="idleTimeVideoActivetimeOther",e_="idleTimeVideoActivetimeYoutube",eT="idleTimeVideoActivetimeBilibili",eS="idleTimeVideoActivetime1zimu",ev="idleTimeVideoActivetimeBaidupan",ew="storage_azure_key_code",eE="storage_azure_key_area",ex="storage_favorites_dicts",eI="maskBackdropBlurPxValue",eO=!0,eA="maskBackdropBlurColor",eM="rgba(255, 255, 255, 0.3)",ek="storage_user_info",eR={default:""},eD=[],eL={next:x,pre:I,add:O,sub:A,videoMask:M,subMask:k,repeat:R,variableRepeat:D,followRead:L,fullMask:C,subtitleList:U,subtitle:j,zhSubtitle:P},eC="#16a34a",eU="21px",ej='ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";',eP='ui-serif, Georgia, Cambria, "Times New Roman", Times, serif',eN='ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',eY=[{value:1,label:"font-sans",origin:ej},{value:2,label:"font-serif",origin:eP},{value:3,label:"font-mono",origin:eN}],eF="700",eB="1.25",eG="zimu1_useStorage_sync_jwt",eW="zimu1_useStorage_sync_headimgurl",eH="zimu1_useStorage_sync_nickname",eV="zimu1_useStorage_sync_paid",ez=1e3,e$=480,eq=150,eZ=150,eK=30,eJ="#1e1e1e",eX=5,eQ=eX+1,e0=10,e1=e0+1,e2="youtube.com/watch",e3="youtube.com/embed",e4="1zimu.com/player",e6="mix",e5="zh",e9="foreign",e8="storageSubtitleForeignFontsize",e7="storageSubtitleZhFontsize",te=16,tt="storageSubtitlelistForeignFontsize",tr="storageSubtitlelistZhFontsize",tn="storageArticleFontsize",ta="storage_subtitle_font_family",to="storage_subtitle_no",ti="storage_subtitle_no_current_time",ts="bilibili.com",tl="youtube.com",tu="1zimu.com",tc="pan.baidu.com",td="pan.baidu.com/pfile/video",tf="YoutubeSubtitleList",tp="NextjsSubtitleList",th="BilibiliSubtitleSwitch",tm="YoutubeSubtitleSwitch",tg="BaidupanSubtitleSwitch",ty="DraggableSubtitleList",tb=["https://www.youtube.com","https://youtube.com"],t_=["https://www.bilibili.com","https://bilibili.com"],tT=["https://www.1zimu.com","https://1zimu.com"],tS=["https://pan.baidu.com/pfile/video","https://pan.baidu.com"],tv="jwt is false"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],cTLmP:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"getBrowserInfo",()=>l),n.export(r,"queryVideoElementWithBlob2",()=>u),n.export(r,"queryVideoElementWithBlob",()=>c),n.export(r,"queryDanmukuBoxInBilibili",()=>d),n.export(r,"queryRightContainerInner",()=>f),n.export(r,"queryTedCurTime",()=>p),n.export(r,"queryUpPanelContainer",()=>h),n.export(r,"queryBaiduPanVideo",()=>m),n.export(r,"queryAliyundriveVideoPreviewer",()=>g),n.export(r,"queryAliyundriveVideoPreviewerContainer",()=>y),n.export(r,"queryBaidupanVideoControl",()=>b),n.export(r,"queryBilibiliVideoControl",()=>_),n.export(r,"queryYoutubeVideoControl",()=>T),n.export(r,"queryBpxPlayerControlBottomLeft",()=>S),n.export(r,"queryYoutubeYtp_left_controls",()=>v),n.export(r,"queryYoutubeItems",()=>w),n.export(r,"queryYoutubeItemsWidth",()=>E),n.export(r,"queryBaiduPanRightSubtitleListContainer",()=>x),n.export(r,"queryBaiduPanRightSubtitleListContainerWidth",()=>I),n.export(r,"queryRightSubtitleListContainer",()=>O),n.export(r,"queryRightSubtitleListContainerWidth",()=>A),n.export(r,"getBilibiliVideoPageRightContainerInnerWidth",()=>M),n.export(r,"getWindow1rem",()=>k);var a=e("ua-parser-js"),o=e("~tools/constants"),i=e("~tools/subtitle"),s=e("~tools/types");function l(){return new a.UAParser().getResult()}function u(e){return document.querySelector(o.BWP_VIDEO)}function c(e){try{let e,t;let r=window,n=document;if(r.browserType,r.OSType,(0,i.checkBwpVideo)()?(e=n.querySelectorAll(o.BWP_VIDEO),t=s.BROWSER_TYPE.EDGE):(e=n.querySelectorAll("video"),t=s.BROWSER_TYPE.CHROME),e?.length>0)for(let r=0;r<e.length;r++){let n=e[r];if(t===s.BROWSER_TYPE.CHROME){if(n?.src.includes("blob:")||n?.src.includes("https:"))return n}else if(t===s.BROWSER_TYPE.EDGE&&(n?.attributes[0]?.value.includes("blob:")||n?.attributes[0]?.value.includes("https:")))return n}return null}catch(e){console.error("catched error in tools.queryVideo :>> ",e)}}function d(){let e=document.querySelector("#danmukuBox");return e}function f(){let e=document.querySelector(".right-container-inner.scroll-sticky");return e}function p(){let e=document.querySelector("#oldfanfollowEntry");return e}function h(){let e=document.querySelector("#oldfanfollowEntry");return e}function m(){let e=document.querySelectorAll('video[id^="vjs_video_"][id$="_html5_api"]');if(e.length>0)for(let t=0;t<e.length;t++){let r=e[t];if(!r.id.includes("vjs_video_3_html5_api"))return r}return null}function g(){let e=document.querySelector('div[class^="video-previewer"]');return e}function y(){let e=document.querySelector('div[class^="video-previewer-container"]');return e}function b(){let e=document.querySelector(".vp-video__control-bar--setup");return e}function _(){let e=document.querySelector(".bpx-player-control-bottom-right");return e}function T(){let e=document.querySelector(".ytp-right-controls");return e}function S(){let e=document.querySelector(".bpx-player-ctrl-btn.bpx-player-ctrl-time");return e}function v(){let e=document.querySelector(".ytp-left-controls");return e}function w(){let e=document.querySelector("#secondary-inner");return e}function E(){let e=document.querySelector("#secondary-inner");return e?.clientWidth}function x(){let e=document.querySelector(".vp-tabs");return e}function I(){let e=document.querySelector(".vp-tabs");return e?.clientWidth}function O(){let e=document.querySelector("#subtitleListContainer");return e}function A(){let e=document.querySelector("#subtitleListContainer");return e?.clientWidth}function M(){let e=document.querySelector("#danmukuBox");return e?.clientWidth}function k(){try{let e=parseInt(getComputedStyle(document.documentElement).fontSize);if(!e)return 16;return e}catch(e){console.error("catched error in tools.queryVideo.getWindow1rem :>> ",e)}}},{"ua-parser-js":"4Dlbs","~tools/constants":"DgB7r","~tools/subtitle":"88X4r","~tools/types":"1v1MT","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],"4Dlbs":[function(t,r,n){!function(t,a){var o="function",i="undefined",s="object",l="string",u="major",c="model",d="name",f="type",p="vendor",h="version",m="architecture",g="console",y="mobile",b="tablet",_="smarttv",T="wearable",S="embedded",v="Amazon",w="Apple",E="ASUS",x="BlackBerry",I="Browser",O="Chrome",A="Firefox",M="Google",k="Honor",R="Huawei",D="Microsoft",L="Motorola",C="Nvidia",U="OnePlus",j="Opera",P="OPPO",N="Samsung",Y="Sharp",F="Sony",B="Xiaomi",G="Zebra",W="Facebook",H="Chromium OS",V="Mac OS",z=" Browser",$=function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},q=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},Z=function(e,t){return typeof e===l&&-1!==K(t).indexOf(K(e))},K=function(e){return e.toLowerCase()},J=function(e,t){if(typeof e===l)return e=e.replace(/^\s\s*/,""),typeof t===i?e:e.substring(0,500)},X=function(e,t){for(var r,n,i,l,u,c,d=0;d<t.length&&!u;){var f=t[d],p=t[d+1];for(r=n=0;r<f.length&&!u&&f[r];)if(u=f[r++].exec(e))for(i=0;i<p.length;i++)c=u[++n],typeof(l=p[i])===s&&l.length>0?2===l.length?typeof l[1]==o?this[l[0]]=l[1].call(this,c):this[l[0]]=l[1]:3===l.length?typeof l[1]!==o||l[1].exec&&l[1].test?this[l[0]]=c?c.replace(l[1],l[2]):a:this[l[0]]=c?l[1].call(this,c,l[2]):a:4===l.length&&(this[l[0]]=c?l[3].call(this,c.replace(l[1],l[2])):a):this[l]=c||a;d+=2}},Q=function(e,t){for(var r in t)if(typeof t[r]===s&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(Z(t[r][n],e))return"?"===r?a:r}else if(Z(t[r],e))return"?"===r?a:r;return t.hasOwnProperty("*")?t["*"]:e},ee={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},et={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[h,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[h,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,h],[/opios[\/ ]+([\w\.]+)/i],[h,[d,j+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[h,[d,j+" GX"]],[/\bopr\/([\w\.]+)/i],[h,[d,j]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[h,[d,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[h,[d,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[d,h],[/quark(?:pc)?\/([-\w\.]+)/i],[h,[d,"Quark"]],[/\bddg\/([\w\.]+)/i],[h,[d,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[h,[d,"UC"+I]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[h,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[h,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[h,[d,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[h,[d,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[h,[d,"Smart Lenovo "+I]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+I],h],[/\bfocus\/([\w\.]+)/i],[h,[d,A+" Focus"]],[/\bopt\/([\w\.]+)/i],[h,[d,j+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[h,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[h,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[h,[d,j+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[h,[d,"MIUI"+z]],[/fxios\/([\w\.-]+)/i],[h,[d,A]],[/\bqihoobrowser\/?([\w\.]*)/i],[h,[d,"360"]],[/\b(qq)\/([\w\.]+)/i],[[d,/(.+)/,"$1Browser"],h],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1"+z],h],[/samsungbrowser\/([\w\.]+)/i],[h,[d,N+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[h,[d,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[d,"Sogou Mobile"],h],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[d,h],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[d],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[h,d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,W],h],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[d,h],[/\bgsa\/([\w\.]+) .*safari\//i],[h,[d,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[h,[d,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[h,[d,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,O+" WebView"],h],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[h,[d,"Android "+I]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,h],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[h,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[h,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[h,Q,{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[d,h],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],h],[/(wolvic|librewolf)\/([\w\.]+)/i],[d,h],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[h,[d,A+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[d,[h,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[d,[h,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[m,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[m,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[m,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[m,/ower/,"",K]],[/ sun4\w[;\)]/i],[[m,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[m,K]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[p,N],[f,b]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[c,[p,N],[f,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[p,w],[f,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[p,w],[f,b]],[/(macintosh);/i],[c,[p,w]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[p,Y],[f,y]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[c,[p,k],[f,b]],[/honor([-\w ]+)[;\)]/i],[c,[p,k],[f,y]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[c,[p,R],[f,b]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[p,R],[f,y]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[c,/_/g," "],[p,B],[f,b]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[c,/_/g," "],[p,B],[f,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[p,P],[f,y]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[c,[p,Q,{OnePlus:["304","403","203"],"*":P}],[f,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[p,"Vivo"],[f,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[c,[p,"Realme"],[f,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[p,L],[f,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[p,L],[f,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[p,"LG"],[f,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[p,"LG"],[f,y]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[c,[p,"Lenovo"],[f,b]],[/(nokia) (t[12][01])/i],[p,c,[f,b]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[c,/_/g," "],[f,y],[p,"Nokia"]],[/(pixel (c|tablet))\b/i],[c,[p,M],[f,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[p,M],[f,y]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[p,F],[f,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[p,F],[f,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[p,U],[f,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[p,v],[f,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[p,v],[f,y]],[/(playbook);[-\w\),; ]+(rim)/i],[c,p,[f,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[p,x],[f,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[p,E],[f,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[p,E],[f,y]],[/(nexus 9)/i],[c,[p,"HTC"],[f,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[c,/_/g," "],[f,y]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[c,[p,"TCL"],[f,b]],[/(itel) ((\w+))/i],[[p,K],c,[f,Q,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[p,"Acer"],[f,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[p,"Meizu"],[f,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[c,[p,"Ulefone"],[f,y]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[c,[p,"Energizer"],[f,y]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[c,[p,"Cat"],[f,y]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[c,[p,"Smartfren"],[f,y]],[/droid.+; (a(?:015|06[35]|142p?))/i],[c,[p,"Nothing"],[f,y]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[c,[p,"Archos"],[f,b]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[c,[p,"Archos"],[f,y]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[p,c,[f,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[p,c,[f,y]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[p,c,[f,b]],[/(surface duo)/i],[c,[p,D],[f,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[p,"Fairphone"],[f,y]],[/(u304aa)/i],[c,[p,"AT&T"],[f,y]],[/\bsie-(\w*)/i],[c,[p,"Siemens"],[f,y]],[/\b(rct\w+) b/i],[c,[p,"RCA"],[f,b]],[/\b(venue[\d ]{2,7}) b/i],[c,[p,"Dell"],[f,b]],[/\b(q(?:mv|ta)\w+) b/i],[c,[p,"Verizon"],[f,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[p,"Barnes & Noble"],[f,b]],[/\b(tm\d{3}\w+) b/i],[c,[p,"NuVision"],[f,b]],[/\b(k88) b/i],[c,[p,"ZTE"],[f,b]],[/\b(nx\d{3}j) b/i],[c,[p,"ZTE"],[f,y]],[/\b(gen\d{3}) b.+49h/i],[c,[p,"Swiss"],[f,y]],[/\b(zur\d{3}) b/i],[c,[p,"Swiss"],[f,b]],[/\b((zeki)?tb.*\b) b/i],[c,[p,"Zeki"],[f,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],c,[f,b]],[/\b(ns-?\w{0,9}) b/i],[c,[p,"Insignia"],[f,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[p,"NextBook"],[f,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],c,[f,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],c,[f,y]],[/\b(ph-1) /i],[c,[p,"Essential"],[f,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[p,"Envizen"],[f,b]],[/\b(trio[-\w\. ]+) b/i],[c,[p,"MachSpeed"],[f,b]],[/\btu_(1491) b/i],[c,[p,"Rotor"],[f,b]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[c,[p,C],[f,b]],[/(sprint) (\w+)/i],[p,c,[f,y]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[p,D],[f,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[p,G],[f,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[p,G],[f,y]],[/smart-tv.+(samsung)/i],[p,[f,_]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[p,N],[f,_]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,"LG"],[f,_]],[/(apple) ?tv/i],[p,[c,w+" TV"],[f,_]],[/crkey/i],[[c,O+"cast"],[p,M],[f,_]],[/droid.+aft(\w+)( bui|\))/i],[c,[p,v],[f,_]],[/(shield \w+ tv)/i],[c,[p,C],[f,_]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[p,Y],[f,_]],[/(bravia[\w ]+)( bui|\))/i],[c,[p,F],[f,_]],[/(mi(tv|box)-?\w+) bui/i],[c,[p,B],[f,_]],[/Hbbtv.*(technisat) (.*);/i],[p,c,[f,_]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[p,J],[c,J],[f,_]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[c,[f,_]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,_]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,c,[f,g]],[/droid.+; (shield)( bui|\))/i],[c,[p,C],[f,g]],[/(playstation \w+)/i],[c,[p,F],[f,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[p,D],[f,g]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[c,[p,N],[f,T]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[p,c,[f,T]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[c,[p,P],[f,T]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[p,w],[f,T]],[/(opwwe\d{3})/i],[c,[p,U],[f,T]],[/(moto 360)/i],[c,[p,L],[f,T]],[/(smartwatch 3)/i],[c,[p,F],[f,T]],[/(g watch r)/i],[c,[p,"LG"],[f,T]],[/droid.+; (wt63?0{2,3})\)/i],[c,[p,G],[f,T]],[/droid.+; (glass) \d/i],[c,[p,M],[f,T]],[/(pico) (4|neo3(?: link|pro)?)/i],[p,c,[f,T]],[/; (quest( \d| pro)?)/i],[c,[p,W],[f,T]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[f,S]],[/(aeobc)\b/i],[c,[p,v],[f,S]],[/(homepod).+mac os/i],[c,[p,w],[f,S]],[/windows iot/i],[[f,S]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[c,[f,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[f,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,y]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[c,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[h,[d,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[d,h],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[h,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[d,h],[/ladybird\//i],[[d,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[h,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,h],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[d,[h,Q,ee]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,Q,ee],[d,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[h,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,V],[h,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[h,d],[/(ubuntu) ([\w\.]+) like android/i],[[d,/(.+)/,"$1 Touch"],h],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[d,h],[/\(bb(10);/i],[h,[d,x]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[h,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[h,[d,A+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[h,[d,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[h,[d,"watchOS"]],[/crkey\/([\d\.]+)/i],[h,[d,O+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[d,H],h],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,h],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],h],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[d,h]]},er=function(e,r){if(typeof e===s&&(r=e,e=a),!(this instanceof er))return new er(e,r).getResult();var n=typeof t!==i&&t.navigator?t.navigator:a,g=e||(n&&n.userAgent?n.userAgent:""),_=n&&n.userAgentData?n.userAgentData:a,T=r?$(et,r):et,S=n&&n.userAgent==g;return this.getBrowser=function(){var e,t={};return t[d]=a,t[h]=a,X.call(t,g,T.browser),t[u]=typeof(e=t[h])===l?e.replace(/[^\d\.]/g,"").split(".")[0]:a,S&&n&&n.brave&&typeof n.brave.isBrave==o&&(t[d]="Brave"),t},this.getCPU=function(){var e={};return e[m]=a,X.call(e,g,T.cpu),e},this.getDevice=function(){var e={};return e[p]=a,e[c]=a,e[f]=a,X.call(e,g,T.device),S&&!e[f]&&_&&_.mobile&&(e[f]=y),S&&"Macintosh"==e[c]&&n&&typeof n.standalone!==i&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[c]="iPad",e[f]=b),e},this.getEngine=function(){var e={};return e[d]=a,e[h]=a,X.call(e,g,T.engine),e},this.getOS=function(){var e={};return e[d]=a,e[h]=a,X.call(e,g,T.os),S&&!e[d]&&_&&_.platform&&"Unknown"!=_.platform&&(e[d]=_.platform.replace(/chrome os/i,H).replace(/macos/i,V)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return g},this.setUA=function(e){return g=typeof e===l&&e.length>500?J(e,500):e,this},this.setUA(g),this};er.VERSION="1.0.41",er.BROWSER=q([d,h,u]),er.CPU=q([m]),er.DEVICE=q([c,p,f,g,y,_,b,T,S]),er.ENGINE=er.OS=q([d,h]),typeof n!==i?(r.exports&&(n=r.exports=er),n.UAParser=er):typeof e===o&&e.amd?e(function(){return er}):typeof t!==i&&(t.UAParser=er);var en=typeof t!==i&&(t.jQuery||t.Zepto);if(en&&!en.ua){var ea=new er;en.ua=ea.getResult(),en.ua.get=function(){return ea.getUA()},en.ua.set=function(e){ea.setUA(e);var t=ea.getResult();for(var r in t)en.ua[r]=t[r]}}}("object"==typeof window?window:this)},{}],"1v1MT":[function(e,t,r){var n,a,o,i,s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(r),s.export(r,"BROWSER_TYPE",()=>o),s.export(r,"OS_TYPE",()=>i),(n=o||(o={}))[n.IE=0]="IE",n[n.EDGE=1]="EDGE",n[n.CHROME=2]="CHROME",n[n.OTHER=3]="OTHER",(a=i||(i={}))[a.MACOS=0]="MACOS",a[a.WINDOWS=1]="WINDOWS",a[a.OTHER=2]="OTHER"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],"20ikG":[function(e,t,r){let n;var a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r),a.export(r,"store",()=>n),a.export(r,"isStoreReady",()=>f),a.export(r,"storeReady",()=>p),a.export(r,"MyContext",()=>h),a.export(r,"useAppDispatch",()=>y),a.export(r,"useAppSelector",()=>b);var o=e("@reduxjs/toolkit"),i=e("./no-storage-slice"),s=a.interopDefault(i),l=e("react"),u=a.interopDefault(l),c=e("react-redux");let d={isReady:!1};try{(n=(0,o.configureStore)({reducer:{noStorager:s.default,readiness:(e=d,t)=>"STORE_READY"===t.type?{...e,isReady:!0}:e},middleware:e=>e({thunk:!1})})).dispatch({type:"STORE_READY"})}catch(e){console.error("Critical: Store initialization failed",e)}let f=e=>e.readiness.isReady,p=new Promise(e=>{if(n?.getState()?.readiness?.isReady){e();return}let t=n.subscribe(()=>{f(n.getState())&&(t(),e())})}),h=(0,u.default).createContext(null),m=(0,c.createDispatchHook)(h),g=(0,c.createSelectorHook)(h),y=m,b=g},{"@reduxjs/toolkit":"59iT9","./no-storage-slice":"jZFan",react:"329PG","react-redux":"lWScv","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],"59iT9":[function(e,t,r){var n,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r),a.export(r,"ReducerType",()=>es),a.export(r,"SHOULD_AUTOBATCH",()=>P),a.export(r,"TaskAbortError",()=>eI),a.export(r,"Tuple",()=>M),a.export(r,"addListener",()=>eq),a.export(r,"asyncThunkCreator",()=>ei),a.export(r,"autoBatchEnhancer",()=>F),a.export(r,"buildCreateSlice",()=>el),a.export(r,"clearAllListeners",()=>eZ),a.export(r,"combineSlices",()=>tt),a.export(r,"configureStore",()=>G),a.export(r,"createAction",()=>E),a.export(r,"createActionCreatorInvariantMiddleware",()=>A),a.export(r,"createAsyncThunk",()=>en),a.export(r,"createDraftSafeSelector",()=>S),a.export(r,"createDraftSafeSelectorCreator",()=>T),a.export(r,"createDynamicMiddleware",()=>e1),a.export(r,"createEntityAdapter",()=>eb),a.export(r,"createImmutableStateInvariantMiddleware",()=>L),a.export(r,"createListenerMiddleware",()=>eX),a.export(r,"createNextState",()=>i.produce),a.export(r,"createReducer",()=>H),a.export(r,"createSelector",()=>s.createSelector),a.export(r,"createSelectorCreator",()=>s.createSelectorCreator),a.export(r,"createSerializableStateInvariantMiddleware",()=>U),a.export(r,"createSlice",()=>eu),a.export(r,"current",()=>i.current),a.export(r,"findNonSerializableValue",()=>function e(t,r="",n=C,a,o=[],i){let s;if(!n(t))return{keyPath:r||"<root>",value:t};if("object"!=typeof t||null===t||(null==i?void 0:i.has(t)))return!1;let l=null!=a?a(t):Object.entries(t),u=o.length>0;for(let[t,c]of l){let l=r?r+"."+t:t;if(u){let e=o.some(e=>e instanceof RegExp?e.test(l):l===e);if(e)continue}if(!n(c))return{keyPath:l,value:c};if("object"==typeof c&&(s=e(c,l,n,a,o,i)))return s}return i&&function e(t){if(!Object.isFrozen(t))return!1;for(let r of Object.values(t))if("object"==typeof r&&null!==r&&!e(r))return!1;return!0}(t)&&i.add(t),!1}),a.export(r,"formatProdErrorMessage",()=>tr),a.export(r,"freeze",()=>i.freeze),a.export(r,"isActionCreator",()=>x),a.export(r,"isAllOf",()=>$),a.export(r,"isAnyOf",()=>z),a.export(r,"isAsyncThunkAction",()=>function e(...t){return 0===t.length?e=>q(e,["pending","fulfilled","rejected"]):Z(t)?z(...t.flatMap(e=>[e.pending,e.rejected,e.fulfilled])):e()(t[0])}),a.export(r,"isDraft",()=>i.isDraft),a.export(r,"isFluxStandardAction",()=>I),a.export(r,"isFulfilled",()=>function e(...t){return 0===t.length?e=>q(e,["fulfilled"]):Z(t)?z(...t.map(e=>e.fulfilled)):e()(t[0])}),a.export(r,"isImmutableDefault",()=>D),a.export(r,"isPending",()=>function e(...t){return 0===t.length?e=>q(e,["pending"]):Z(t)?z(...t.map(e=>e.pending)):e()(t[0])}),a.export(r,"isPlain",()=>C),a.export(r,"isRejected",()=>K),a.export(r,"isRejectedWithValue",()=>function e(...t){let r=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===t.length?$(K(...t),r):Z(t)?$(K(...t),r):e()(t[0])}),a.export(r,"lruMemoize",()=>s.lruMemoize),a.export(r,"miniSerializeError",()=>et),a.export(r,"nanoid",()=>J),a.export(r,"original",()=>i.original),a.export(r,"prepareAutoBatched",()=>N),a.export(r,"removeListener",()=>eK),a.export(r,"unwrapResult",()=>ea),a.export(r,"weakMapMemoize",()=>s.weakMapMemoize);var o=e("redux");a.exportAll(o,r);var i=e("immer"),s=e("reselect"),l=e("redux-thunk");e("d6c2ce6df8bac3b7");var u=Object.defineProperty,c=Object.defineProperties,d=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,m=(e,t,r)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,g=(e,t)=>{for(var r in t||(t={}))p.call(t,r)&&m(e,r,t[r]);if(f)for(var r of f(t))h.call(t,r)&&m(e,r,t[r]);return e},y=(e,t)=>c(e,d(t)),b=(e,t)=>{var r={};for(var n in e)p.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&f)for(var n of f(e))0>t.indexOf(n)&&h.call(e,n)&&(r[n]=e[n]);return r},_=(e,t,r)=>m(e,"symbol"!=typeof t?t+"":t,r),T=(...e)=>{let t=(0,s.createSelectorCreator)(...e),r=Object.assign((...e)=>{let r=t(...e),n=(e,...t)=>r((0,i.isDraft)(e)?(0,i.current)(e):e,...t);return Object.assign(n,r),n},{withTypes:()=>r});return r},S=T(s.weakMapMemoize),v="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!=arguments.length)return"object"==typeof arguments[0]?o.compose:(0,o.compose).apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var w=e=>e&&"function"==typeof e.match;function E(e,t){function r(...n){if(t){let r=t(...n);if(!r)throw Error(tr(0));return g(g({type:e,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=t=>(0,o.isAction)(t)&&t.type===e,r}function x(e){return"function"==typeof e&&"type"in e&&w(e)}function I(e){return(0,o.isAction)(e)&&Object.keys(e).every(O)}function O(e){return["type","payload","error","meta"].indexOf(e)>-1}function A(e={}){return()=>e=>t=>e(t)}var M=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function k(e){return(0,i.isDraftable)(e)?(0,i.produce)(e,()=>{}):e}function R(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function D(e){return"object"!=typeof e||null==e||Object.isFrozen(e)}function L(e={}){return()=>e=>t=>e(t)}function C(e){let t=typeof e;return null==e||"string"===t||"boolean"===t||"number"===t||Array.isArray(e)||(0,o.isPlainObject)(e)}function U(e={}){return()=>e=>t=>e(t)}var j=()=>function(e){let{thunk:t=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:a=!0}=null!=e?e:{},o=new M;return t&&("boolean"==typeof t?o.push(l.thunk):o.push((0,l.withExtraArgument)(t.extraArgument))),o},P="RTK_autoBatch",N=()=>e=>({payload:e,meta:{[P]:!0}}),Y=e=>t=>{setTimeout(t,e)},F=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),a=!0,o=!1,i=!1,s=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:Y(10):"callback"===e.type?e.queueNotification:Y(e.timeout),u=()=>{i=!1,o&&(o=!1,s.forEach(e=>e()))};return Object.assign({},n,{subscribe(e){let t=n.subscribe(()=>a&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){var t;try{return(o=!(a=!(null==(t=null==e?void 0:e.meta)?void 0:t[P])))&&!i&&(i=!0,l(u)),n.dispatch(e)}finally{a=!0}}})},B=e=>function(t){let{autoBatch:r=!0}=null!=t?t:{},n=new M(e);return r&&n.push(F("object"==typeof r?r:void 0)),n};function G(e){let t,r;let n=j(),{reducer:a,middleware:i,devTools:s=!0,duplicateMiddlewareCheck:l=!0,preloadedState:u,enhancers:c}=e||{};if("function"==typeof a)t=a;else if((0,o.isPlainObject)(a))t=(0,o.combineReducers)(a);else throw Error(tr(1));r="function"==typeof i?i(n):n();let d=o.compose;s&&(d=v(g({trace:!1},"object"==typeof s&&s)));let f=(0,o.applyMiddleware)(...r),p=B(f),h="function"==typeof c?c(p):p(),m=d(...h);return(0,o.createStore)(t,u,m)}function W(e){let t;let r={},n=[],a={addCase(e,t){let n="string"==typeof e?e:e.type;if(!n)throw Error(tr(28));if(n in r)throw Error(tr(29));return r[n]=t,a},addAsyncThunk:(e,t)=>(t.pending&&(r[e.pending.type]=t.pending),t.rejected&&(r[e.rejected.type]=t.rejected),t.fulfilled&&(r[e.fulfilled.type]=t.fulfilled),t.settled&&n.push({matcher:e.settled,reducer:t.settled}),a),addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),a),addDefaultCase:e=>(t=e,a)};return e(a),[r,n,t]}function H(e,t){let r,[n,a,o]=W(t);if("function"==typeof e)r=()=>k(e());else{let t=k(e);r=()=>t}function s(e=r(),t){let s=[n[t.type],...a.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===s.filter(e=>!!e).length&&(s=[o]),s.reduce((e,r)=>{if(r){if((0,i.isDraft)(e)){let n=r(e,t);return void 0===n?e:n}if((0,i.isDraftable)(e))return(0,i.produce)(e,e=>r(e,t));{let n=r(e,t);if(void 0===n){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}}return e},e)}return s.getInitialState=r,s}var V=(e,t)=>w(e)?e.match(t):e(t);function z(...e){return t=>e.some(e=>V(e,t))}function $(...e){return t=>e.every(e=>V(e,t))}function q(e,t){if(!e||!e.meta)return!1;let r="string"==typeof e.meta.requestId,n=t.indexOf(e.meta.requestStatus)>-1;return r&&n}function Z(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function K(...e){return 0===e.length?e=>q(e,["rejected"]):Z(e)?z(...e.map(e=>e.rejected)):K()(e[0])}var J=(e=21)=>{let t="",r=e;for(;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},X=["name","message","stack","code"],Q=class{constructor(e,t){this.payload=e,this.meta=t,_(this,"_type")}},ee=class{constructor(e,t){this.payload=e,this.meta=t,_(this,"_type")}},et=e=>{if("object"==typeof e&&null!==e){let t={};for(let r of X)"string"==typeof e[r]&&(t[r]=e[r]);return t}return{message:String(e)}},er="External signal was aborted",en=(()=>{function e(e,t,r){let n=E(e+"/fulfilled",(e,t,r,n)=>({payload:e,meta:y(g({},n||{}),{arg:r,requestId:t,requestStatus:"fulfilled"})})),a=E(e+"/pending",(e,t,r)=>({payload:void 0,meta:y(g({},r||{}),{arg:t,requestId:e,requestStatus:"pending"})})),o=E(e+"/rejected",(e,t,n,a,o)=>({payload:a,error:(r&&r.serializeError||et)(e||"Rejected"),meta:y(g({},o||{}),{arg:n,requestId:t,rejectedWithValue:!!a,requestStatus:"rejected",aborted:(null==e?void 0:e.name)==="AbortError",condition:(null==e?void 0:e.name)==="ConditionError"})}));return Object.assign(function(e,{signal:i}={}){return(s,l,u)=>{let c,d;let f=(null==r?void 0:r.idGenerator)?r.idGenerator(e):J(),p=new AbortController;function h(e){d=e,p.abort()}i&&(i.aborted?h(er):i.addEventListener("abort",()=>h(er),{once:!0}));let m=async function(){var i,m,g;let y;try{let o=null==(i=null==r?void 0:r.condition)?void 0:i.call(r,e,{getState:l,extra:u});if(g=o,null!==g&&"object"==typeof g&&"function"==typeof g.then&&(o=await o),!1===o||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let b=new Promise((e,t)=>{c=()=>{t({name:"AbortError",message:d||"Aborted"})},p.signal.addEventListener("abort",c)});s(a(f,e,null==(m=null==r?void 0:r.getPendingMeta)?void 0:m.call(r,{requestId:f,arg:e},{getState:l,extra:u}))),y=await Promise.race([b,Promise.resolve(t(e,{dispatch:s,getState:l,extra:u,requestId:f,signal:p.signal,abort:h,rejectWithValue:(e,t)=>new Q(e,t),fulfillWithValue:(e,t)=>new ee(e,t)})).then(t=>{if(t instanceof Q)throw t;return t instanceof ee?n(t.payload,f,e,t.meta):n(t,f,e)})])}catch(t){y=t instanceof Q?o(null,f,e,t.payload,t.meta):o(t,f,e)}finally{c&&p.signal.removeEventListener("abort",c)}let b=r&&!r.dispatchConditionRejection&&o.match(y)&&y.meta.condition;return b||s(y),y}();return Object.assign(m,{abort:h,requestId:f,arg:e,unwrap:()=>m.then(ea)})}},{pending:a,rejected:o,fulfilled:n,settled:z(o,n),typePrefix:e})}return e.withTypes=()=>e,e})();function ea(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var eo=Symbol.for("rtk-slice-createasyncthunk"),ei={[eo]:en},es=((n=es||{}).reducer="reducer",n.reducerWithPrepare="reducerWithPrepare",n.asyncThunk="asyncThunk",n);function el({creators:e}={}){var t;let r=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[eo];return function(e){let t;let{name:n,reducerPath:a=n}=e;if(!n)throw Error(tr(11));let o=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return g({_reducerDefinitionType:"asyncThunk",payloadCreator:e},t)}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},i=Object.keys(o),s={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(e,t){let r="string"==typeof e?e:e.type;if(!r)throw Error(tr(12));if(r in s.sliceCaseReducersByType)throw Error(tr(13));return s.sliceCaseReducersByType[r]=t,l},addMatcher:(e,t)=>(s.sliceMatchers.push({matcher:e,reducer:t}),l),exposeAction:(e,t)=>(s.actionCreators[e]=t,l),exposeCaseReducer:(e,t)=>(s.sliceCaseReducersByName[e]=t,l)};function u(){let[t={},r=[],n]="function"==typeof e.extraReducers?W(e.extraReducers):[e.extraReducers],a=g(g({},t),s.sliceCaseReducersByType);return H(e.initialState,e=>{for(let t in a)e.addCase(t,a[t]);for(let t of s.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);n&&e.addDefaultCase(n)})}i.forEach(t=>{let a=o[t],i={reducerName:t,type:`${n}/${t}`,createNotation:"function"==typeof e.reducers};"asyncThunk"===a._reducerDefinitionType?function({type:e,reducerName:t},r,n,a){if(!a)throw Error(tr(18));let{payloadCreator:o,fulfilled:i,pending:s,rejected:l,settled:u,options:c}=r,d=a(e,o,c);n.exposeAction(t,d),i&&n.addCase(d.fulfilled,i),s&&n.addCase(d.pending,s),l&&n.addCase(d.rejected,l),u&&n.addMatcher(d.settled,u),n.exposeCaseReducer(t,{fulfilled:i||ec,pending:s||ec,rejected:l||ec,settled:u||ec})}(i,a,l,r):function({type:e,reducerName:t,createNotation:r},n,a){let o,i;if("reducer"in n){if(r&&"reducerWithPrepare"!==n._reducerDefinitionType)throw Error(tr(17));o=n.reducer,i=n.prepare}else o=n;a.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,i?E(e,i):E(e))}(i,a,l)});let c=e=>e,d=new Map,f=new WeakMap;function p(e,r){return t||(t=u()),t(e,r)}function h(){return t||(t=u()),t.getInitialState()}function m(t,r=!1){function n(e){let a=e[t];return void 0===a&&r&&(a=R(f,n,h)),a}function a(t=c){let n=R(d,r,()=>new WeakMap);return R(n,t,()=>{var n;let a={};for(let[o,i]of Object.entries(null!=(n=e.selectors)?n:{}))a[o]=function(e,t,r,n){function a(o,...i){let s=t(o);return void 0===s&&n&&(s=r()),e(s,...i)}return a.unwrapped=e,a}(i,t,()=>R(f,t,h),r);return a})}return{reducerPath:t,getSelectors:a,get selectors(){return a(n)},selectSlice:n}}let _=y(g({name:n,reducer:p,actions:s.actionCreators,caseReducers:s.sliceCaseReducersByName,getInitialState:h},m(a)),{injectInto(e,t={}){var{reducerPath:r}=t,n=b(t,["reducerPath"]);let o=null!=r?r:a;return e.inject({reducerPath:o,reducer:p},n),g(g({},_),m(o,!0))}});return _}}var eu=el();function ec(){}var ed=i.isDraft;function ef(e){return function(t,r){let n=t=>{I(r)?e(r.payload,t):e(r,t)};return ed(t)?(n(t),t):(0,i.produce)(t,n)}}function ep(e,t){let r=t(e);return r}function eh(e){return Array.isArray(e)||(e=Object.values(e)),e}function em(e){return(0,i.isDraft)(e)?(0,i.current)(e):e}function eg(e,t,r){e=eh(e);let n=em(r.ids),a=new Set(n),o=[],i=new Set([]),s=[];for(let r of e){let e=ep(r,t);a.has(e)||i.has(e)?s.push({id:e,changes:r}):(i.add(e),o.push(r))}return[o,s,n]}function ey(e){function t(t,r){let n=ep(t,e);n in r.entities||(r.ids.push(n),r.entities[n]=t)}function r(e,r){for(let n of e=eh(e))t(n,r)}function n(t,r){let n=ep(t,e);n in r.entities||r.ids.push(n),r.entities[n]=t}function a(e,t){let r=!1;e.forEach(e=>{e in t.entities&&(delete t.entities[e],r=!0)}),r&&(t.ids=t.ids.filter(e=>e in t.entities))}function o(t,r){let n={},a={};t.forEach(e=>{var t;e.id in r.entities&&(a[e.id]={id:e.id,changes:g(g({},null==(t=a[e.id])?void 0:t.changes),e.changes)})}),t=Object.values(a);let o=t.length>0;if(o){let a=t.filter(t=>(function(t,r,n){let a=n.entities[r.id];if(void 0===a)return!1;let o=Object.assign({},a,r.changes),i=ep(o,e),s=i!==r.id;return s&&(t[r.id]=i,delete n.entities[r.id]),n.entities[i]=o,s})(n,t,r)).length>0;a&&(r.ids=Object.values(r.entities).map(t=>ep(t,e)))}}function i(t,n){let[a,i]=eg(t,e,n);r(a,n),o(i,n)}return{removeAll:function(e){let t=ef((t,r)=>e(r));return function(e){return t(e,void 0)}}(function(e){Object.assign(e,{ids:[],entities:{}})}),addOne:ef(t),addMany:ef(r),setOne:ef(n),setMany:ef(function(e,t){for(let r of e=eh(e))n(r,t)}),setAll:ef(function(e,t){e=eh(e),t.ids=[],t.entities={},r(e,t)}),updateOne:ef(function(e,t){return o([e],t)}),updateMany:ef(o),upsertOne:ef(function(e,t){return i([e],t)}),upsertMany:ef(i),removeOne:ef(function(e,t){return a([e],t)}),removeMany:ef(a)}}function eb(e={}){let{selectId:t,sortComparer:r}=g({sortComparer:!1,selectId:e=>e.id},e),n=r?function(e,t){let{removeOne:r,removeMany:n,removeAll:a}=ey(e);function o(t,r,n){t=eh(t);let a=new Set(null!=n?n:em(r.ids)),o=t.filter(t=>!a.has(ep(t,e)));0!==o.length&&u(r,o)}function i(t,r){if(0!==(t=eh(t)).length){for(let n of t)delete r.entities[e(n)];u(r,t)}}function s(t,r){let n=!1,a=!1;for(let o of t){let t=r.entities[o.id];if(!t)continue;n=!0,Object.assign(t,o.changes);let i=e(t);if(o.id!==i){a=!0,delete r.entities[o.id];let e=r.ids.indexOf(o.id);r.ids[e]=i,r.entities[i]=t}}n&&u(r,[],n,a)}function l(t,r){let[n,a,i]=eg(t,e,r);n.length&&o(n,r,i),a.length&&s(a,r)}let u=(r,n,a,o)=>{let i=em(r.entities),s=em(r.ids),l=r.entities,u=s;o&&(u=new Set(s));let c=[];for(let e of u){let t=i[e];t&&c.push(t)}let d=0===c.length;for(let r of n)l[e(r)]=r,d||function(e,t,r){let n=function(e,t,r){let n=0,a=e.length;for(;n<a;){let o=n+a>>>1,i=e[o],s=r(t,i);s>=0?n=o+1:a=o}return n}(e,t,r);e.splice(n,0,t)}(c,r,t);d?c=n.slice().sort(t):a&&c.sort(t);let f=c.map(e);!function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(s,f)&&(r.ids=f)};return{removeOne:r,removeMany:n,removeAll:a,addOne:ef(function(e,t){return o([e],t)}),updateOne:ef(function(e,t){return s([e],t)}),upsertOne:ef(function(e,t){return l([e],t)}),setOne:ef(function(e,t){return i([e],t)}),setMany:ef(i),setAll:ef(function(e,t){e=eh(e),t.entities={},t.ids=[],o(e,t,[])}),addMany:ef(o),updateMany:ef(s),upsertMany:ef(l)}}(t,r):ey(t);return g(g(g({selectId:t,sortComparer:r},{getInitialState:function(e={},t){let r=Object.assign({ids:[],entities:{}},e);return t?n.setAll(r,t):r}}),{getSelectors:function(e,t={}){let{createSelector:r=S}=t,n=e=>e.ids,a=e=>e.entities,o=r(n,a,(e,t)=>e.map(e=>t[e])),i=(e,t)=>t,s=(e,t)=>e[t],l=r(n,e=>e.length);if(!e)return{selectIds:n,selectEntities:a,selectAll:o,selectTotal:l,selectById:r(a,i,s)};let u=r(e,a);return{selectIds:r(e,n),selectEntities:u,selectAll:r(e,o),selectTotal:r(e,l),selectById:r(u,i,s)}}}),n)}var e_="listener",eT="completed",eS="cancelled",ev=`task-${eS}`,ew=`task-${eT}`,eE=`${e_}-${eS}`,ex=`${e_}-${eT}`,eI=class{constructor(e){this.code=e,_(this,"name","TaskAbortError"),_(this,"message"),this.message=`task ${eS} (reason: ${e})`}},eO=(e,t)=>{if("function"!=typeof e)throw TypeError(tr(32))},eA=()=>{},eM=(e,t=eA)=>(e.catch(t),e),ek=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),eR=(e,t)=>{let r=e.signal;r.aborted||("reason"in r||Object.defineProperty(r,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},eD=e=>{if(e.aborted){let{reason:t}=e;throw new eI(t)}};function eL(e,t){let r=eA;return new Promise((n,a)=>{let o=()=>a(new eI(e.reason));if(e.aborted){o();return}r=ek(e,o),t.finally(()=>r()).then(n,a)}).finally(()=>{r=eA})}var eC=async(e,t)=>{try{await Promise.resolve();let t=await e();return{status:"ok",value:t}}catch(e){return{status:e instanceof eI?"cancelled":"rejected",error:e}}finally{null==t||t()}},eU=e=>t=>eM(eL(e,t).then(t=>(eD(e),t))),ej=e=>{let t=eU(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:eP}=Object,eN={},eY="listenerMiddleware",eF=(e,t)=>{let r=t=>ek(e,()=>eR(t,e.reason));return(n,a)=>{eO(n,"taskExecutor");let o=new AbortController;r(o);let i=eC(async()=>{eD(e),eD(o.signal);let t=await n({pause:eU(o.signal),delay:ej(o.signal),signal:o.signal});return eD(o.signal),t},()=>eR(o,ew));return(null==a?void 0:a.autoJoin)&&t.push(i.catch(eA)),{result:eU(e)(i),cancel(){eR(o,ev)}}}},eB=(e,t)=>{let r=async(r,n)=>{eD(t);let a=()=>{},o=new Promise((t,n)=>{let o=e({predicate:r,effect:(e,r)=>{r.unsubscribe(),t([e,r.getState(),r.getOriginalState()])}});a=()=>{o(),n()}}),i=[o];null!=n&&i.push(new Promise(e=>setTimeout(e,n,null)));try{let e=await eL(t,Promise.race(i));return eD(t),e}finally{a()}};return(e,t)=>eM(r(e,t))},eG=e=>{let{type:t,actionCreator:r,matcher:n,predicate:a,effect:o}=e;if(t)a=E(t).match;else if(r)t=r.type,a=r.match;else if(n)a=n;else if(a);else throw Error(tr(21));return eO(o,"options.listener"),{predicate:a,type:t,effect:o}},eW=eP(e=>{let{type:t,predicate:r,effect:n}=eG(e),a={id:J(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw Error(tr(22))}};return a},{withTypes:()=>eW}),eH=(e,t)=>{let{type:r,effect:n,predicate:a}=eG(t);return Array.from(e.values()).find(e=>{let t="string"==typeof r?e.type===r:e.predicate===a;return t&&e.effect===n})},eV=e=>{e.pending.forEach(e=>{eR(e,eE)})},ez=e=>()=>{e.forEach(eV),e.clear()},e$=(e,t,r)=>{try{e(t,r)}catch(e){setTimeout(()=>{throw e},0)}},eq=eP(E(`${eY}/add`),{withTypes:()=>eq}),eZ=E(`${eY}/removeAll`),eK=eP(E(`${eY}/remove`),{withTypes:()=>eK}),eJ=(...e)=>{console.error(`${eY}/error`,...e)},eX=(e={})=>{let t=new Map,{extra:r,onError:n=eJ}=e;eO(n,"onError");let a=e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),(null==t?void 0:t.cancelActive)&&eV(e)}),i=e=>{var r;let n=null!=(r=eH(t,e))?r:eW(e);return a(n)};eP(i,{withTypes:()=>i});let s=e=>{let r=eH(t,e);return r&&(r.unsubscribe(),e.cancelActive&&eV(r)),!!r};eP(s,{withTypes:()=>s});let l=async(e,a,o,s)=>{let l=new AbortController,u=eB(i,l.signal),c=[];try{e.pending.add(l),await Promise.resolve(e.effect(a,eP({},o,{getOriginalState:s,condition:(e,t)=>u(e,t).then(Boolean),take:u,delay:ej(l.signal),pause:eU(l.signal),extra:r,signal:l.signal,fork:eF(l.signal,c),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,r)=>{e!==l&&(eR(e,eE),r.delete(e))})},cancel:()=>{eR(l,eE),e.pending.delete(l)},throwIfCancelled:()=>{eD(l.signal)}})))}catch(e){e instanceof eI||e$(n,e,{raisedBy:"effect"})}finally{await Promise.all(c),eR(l,ex),e.pending.delete(l)}},u=ez(t);return{middleware:e=>r=>a=>{let c;if(!(0,o.isAction)(a))return r(a);if(eq.match(a))return i(a.payload);if(eZ.match(a)){u();return}if(eK.match(a))return s(a.payload);let d=e.getState(),f=()=>{if(d===eN)throw Error(tr(23));return d};try{if(c=r(a),t.size>0){let r=e.getState(),o=Array.from(t.values());for(let t of o){let o=!1;try{o=t.predicate(a,r,d)}catch(e){o=!1,e$(n,e,{raisedBy:"predicate"})}o&&l(t,a,e,f)}}}finally{d=eN}return c},startListening:i,stopListening:s,clearListeners:u}},eQ=e=>({middleware:e,applied:new Map}),e0=e=>t=>{var r;return(null==(r=null==t?void 0:t.meta)?void 0:r.instanceId)===e},e1=()=>{let e=J(),t=new Map,r=Object.assign(E("dynamicMiddleware/add",(...t)=>({payload:t,meta:{instanceId:e}})),{withTypes:()=>r}),n=Object.assign(function(...e){e.forEach(e=>{R(t,e,eQ)})},{withTypes:()=>n}),a=e=>{let r=Array.from(t.values()).map(t=>R(t.applied,e,t.middleware));return(0,o.compose)(...r)},i=$(r,e0(e));return{middleware:e=>t=>r=>i(r)?(n(...r.payload),e.dispatch):a(e)(t)(r),addMiddleware:n,withMiddleware:r,instanceId:e}},e2=e=>"reducerPath"in e&&"string"==typeof e.reducerPath,e3=e=>e.flatMap(e=>e2(e)?[[e.reducerPath,e.reducer]]:Object.entries(e)),e4=Symbol.for("rtk-state-proxy-original"),e6=e=>!!e&&!!e[e4],e5=new WeakMap,e9=(e,t,r)=>R(e5,e,()=>new Proxy(e,{get:(e,n,a)=>{if(n===e4)return e;let o=Reflect.get(e,n,a);if(void 0===o){let e=r[n];if(void 0!==e)return e;let a=t[n];if(a){let e=a(void 0,{type:J()});if(void 0===e)throw Error(tr(24));return r[n]=e,e}}return o}})),e8=e=>{if(!e6(e))throw Error(tr(25));return e[e4]},e7={},te=(e=e7)=>e;function tt(...e){let t=Object.fromEntries(e3(e)),r=()=>Object.keys(t).length?(0,o.combineReducers)(t):te,n=r();function a(e,t){return n(e,t)}a.withLazyLoadedSlices=()=>a;let i={},s=Object.assign(function(e,r){return function(n,...a){return e(e9(r?r(n,...a):n,t,i),...a)}},{original:e8});return Object.assign(a,{inject:(e,o={})=>{let{reducerPath:s,reducer:l}=e,u=t[s];return!o.overrideExisting&&u&&u!==l||(o.overrideExisting&&u!==l&&delete i[s],t[s]=l,n=r()),a},selector:s})}function tr(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}},{d6c2ce6df8bac3b7:"7bs1J",redux:"6SUHM",immer:"cTbM8",reselect:"25ILf","redux-thunk":"1xIC4","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],"7bs1J":[function(e,t,r){var n,a,o,i,s=Object.create,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,d=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,p=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of c(t))f.call(e,a)||a===r||l(e,a,{get:()=>t[a],enumerable:!(n=u(t,a))||n.enumerable});return e},h=(e,t,r)=>(r=null!=e?s(d(e)):{},p(!t&&e&&e.__esModule?r:l(r,"default",{value:e,enumerable:!0}),e)),m=(n=(e,t)=>{var r,n,a=t.exports={};function o(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var l,u=[],c=!1,d=-1;function f(){c&&l&&(c=!1,l.length?u=l.concat(u):d=-1,u.length&&p())}function p(){if(!c){var e=s(f);c=!0;for(var t=u.length;t;){for(l=u,u=[];++d<t;)l&&l[d].run();d=-1,t=u.length}l=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}a.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new h(e,t)),1!==u.length||c||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=m,a.addListener=m,a.once=m,a.off=m,a.removeListener=m,a.removeAllListeners=m,a.emit=m,a.prependListener=m,a.prependOnceListener=m,a.listeners=function(e){return[]},a.binding=function(e){throw Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw Error("process.chdir is not supported")},a.umask=function(){return 0}},()=>(a||n((a={exports:{}}).exports,a),a.exports)),g={};((e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})})(g,{default:()=>b}),t.exports=p(l({},"__esModule",{value:!0}),g);var y=h(m());o=h(m()),i=t.exports,p(g,o,"default"),i&&p(i,o,"default");var b=y.default},{}],"6SUHM":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.defineInteropFlag(r),n.export(r,"__DO_NOT_USE__ActionTypes",()=>s),n.export(r,"applyMiddleware",()=>m),n.export(r,"bindActionCreators",()=>p),n.export(r,"combineReducers",()=>d),n.export(r,"compose",()=>h),n.export(r,"createStore",()=>u),n.export(r,"isAction",()=>g),n.export(r,"isPlainObject",()=>l),n.export(r,"legacy_createStore",()=>c);var o="function"==typeof Symbol&&Symbol.observable||"@@observable",i=()=>Math.random().toString(36).substring(7).split("").join("."),s={INIT:`@@redux/INIT${i()}`,REPLACE:`@@redux/REPLACE${i()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i()}`};function l(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function u(e,t,r){if("function"!=typeof e)throw Error(a(2));if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw Error(a(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw Error(a(1));return r(u)(e,t)}let n=e,i=t,c=new Map,d=c,f=0,p=!1;function h(){d===c&&(d=new Map,c.forEach((e,t)=>{d.set(t,e)}))}function m(){if(p)throw Error(a(3));return i}function g(e){if("function"!=typeof e)throw Error(a(4));if(p)throw Error(a(5));let t=!0;h();let r=f++;return d.set(r,e),function(){if(t){if(p)throw Error(a(6));t=!1,h(),d.delete(r),c=null}}}function y(e){if(!l(e))throw Error(a(7));if(void 0===e.type)throw Error(a(8));if("string"!=typeof e.type)throw Error(a(17));if(p)throw Error(a(9));try{p=!0,i=n(i,e)}finally{p=!1}let t=c=d;return t.forEach(e=>{e()}),e}return y({type:s.INIT}),{dispatch:y,subscribe:g,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw Error(a(10));n=e,y({type:s.REPLACE})},[o]:function(){return{subscribe(e){if("object"!=typeof e||null===e)throw Error(a(11));function t(){e.next&&e.next(m())}t();let r=g(t);return{unsubscribe:r}},[o](){return this}}}}}function c(e,t,r){return u(e,t,r)}function d(e){let t;let r=Object.keys(e),n={};for(let t=0;t<r.length;t++){let a=r[t];"function"==typeof e[a]&&(n[a]=e[a])}let o=Object.keys(n);try{!function(e){Object.keys(e).forEach(t=>{let r=e[t],n=r(void 0,{type:s.INIT});if(void 0===n)throw Error(a(12));if(void 0===r(void 0,{type:s.PROBE_UNKNOWN_ACTION()}))throw Error(a(13))})}(n)}catch(e){t=e}return function(e={},r){if(t)throw t;let i=!1,s={};for(let t=0;t<o.length;t++){let l=o[t],u=n[l],c=e[l],d=u(c,r);if(void 0===d)throw r&&r.type,Error(a(14));s[l]=d,i=i||d!==c}return(i=i||o.length!==Object.keys(e).length)?s:e}}function f(e,t){return function(...r){return t(e.apply(this,r))}}function p(e,t){if("function"==typeof e)return f(e,t);if("object"!=typeof e||null===e)throw Error(a(16));let r={};for(let n in e){let a=e[n];"function"==typeof a&&(r[n]=f(a,t))}return r}function h(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function m(...e){return t=>(r,n)=>{let o=t(r,n),i=()=>{throw Error(a(15))},s={getState:o.getState,dispatch:(e,...t)=>i(e,...t)},l=e.map(e=>e(s));return i=h(...l)(o.dispatch),{...o,dispatch:i}}}function g(e){return l(e)&&"type"in e&&"string"==typeof e.type}},{"@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],cTbM8:[function(e,t,r){var n,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r),a.export(r,"Immer",()=>K),a.export(r,"applyPatches",()=>ei),a.export(r,"castDraft",()=>eu),a.export(r,"castImmutable",()=>ec),a.export(r,"createDraft",()=>es),a.export(r,"current",()=>X),a.export(r,"enableMapSet",()=>ee),a.export(r,"enablePatches",()=>Q),a.export(r,"finishDraft",()=>el),a.export(r,"freeze",()=>k),a.export(r,"immerable",()=>f),a.export(r,"isDraft",()=>g),a.export(r,"isDraftable",()=>y),a.export(r,"nothing",()=>d),a.export(r,"original",()=>T),a.export(r,"produce",()=>er),a.export(r,"produceWithPatches",()=>en),a.export(r,"setAutoFreeze",()=>ea),a.export(r,"setUseStrictShallowCopy",()=>eo);var o=Object.defineProperty,i=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,u=(e,t,r)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,c=(e,t)=>{for(var r in t||(t={}))s.call(t,r)&&u(e,r,t[r]);if(i)for(var r of i(t))l.call(t,r)&&u(e,r,t[r]);return e},d=Symbol.for("immer-nothing"),f=Symbol.for("immer-draftable"),p=Symbol.for("immer-state");function h(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var m=Object.getPrototypeOf;function g(e){return!!e&&!!e[p]}function y(e){var t;return!!e&&(_(e)||Array.isArray(e)||!!e[f]||!!(null==(t=e.constructor)?void 0:t[f])||I(e)||O(e))}var b=Object.prototype.constructor.toString();function _(e){if(!e||"object"!=typeof e)return!1;let t=m(e);if(null===t)return!0;let r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===b}function T(e){return g(e)||h(15,e),e[p].base_}function S(e,t){0===v(e)?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function v(e){let t=e[p];return t?t.type_:Array.isArray(e)?1:I(e)?2:O(e)?3:0}function w(e,t){return 2===v(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function E(e,t){return 2===v(e)?e.get(t):e[t]}function x(e,t,r){let n=v(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function I(e){return e instanceof Map}function O(e){return e instanceof Set}function A(e){return e.copy_||e.base_}function M(e,t){if(I(e))return new Map(e);if(O(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let r=_(e);if(!0!==t&&("class_only"!==t||r)){let t=m(e);if(null!==t&&r)return c({},e);let n=Object.create(t);return Object.assign(n,e)}{let t=Object.getOwnPropertyDescriptors(e);delete t[p];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){let a=r[n],o=t[a];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[a]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[a]})}return Object.create(m(e),t)}}function k(e,t=!1){return D(e)||g(e)||!y(e)||(v(e)>1&&Object.defineProperties(e,{set:{value:R},add:{value:R},clear:{value:R},delete:{value:R}}),Object.freeze(e),t&&Object.values(e).forEach(e=>k(e,!0))),e}function R(){h(2)}function D(e){return Object.isFrozen(e)}var L={};function C(e){let t=L[e];return t||h(0,e),t}function U(e,t){t&&(C("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function j(e){P(e),e.drafts_.forEach(Y),e.drafts_=null}function P(e){e===n&&(n=e.parent_)}function N(e){return n={drafts_:[],parent_:n,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Y(e){let t=e[p];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function F(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0],n=void 0!==e&&e!==r;return n?(r[p].modified_&&(j(t),h(4)),y(e)&&(e=B(t,e),t.parent_||W(t,e)),t.patches_&&C("Patches").generateReplacementPatches_(r[p].base_,e,t.patches_,t.inversePatches_)):e=B(t,r,[]),j(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==d?e:void 0}function B(e,t,r){if(D(t))return t;let n=t[p];if(!n)return S(t,(a,o)=>G(e,n,t,a,o,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return W(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;let t=n.copy_,a=t,o=!1;3===n.type_&&(a=new Set(t),t.clear(),o=!0),S(a,(a,i)=>G(e,n,t,a,i,r,o)),W(e,t,!1),r&&e.patches_&&C("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function G(e,t,r,n,a,o,i){if(g(a)){let i=o&&t&&3!==t.type_&&!w(t.assigned_,n)?o.concat(n):void 0,s=B(e,a,i);if(x(r,n,s),!g(s))return;e.canAutoFreeze_=!1}else i&&r.add(a);if(y(a)&&!D(a)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;B(e,a),(!t||!t.scope_.parent_)&&"symbol"!=typeof n&&(I(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&W(e,a)}}function W(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&k(t,r)}var H={get(e,t){if(t===p)return e;let r=A(e);if(!w(r,t))return function(e,t,r){var n;let a=$(t,r);return a?"value"in a?a.value:null==(n=a.get)?void 0:n.call(e.draft_):void 0}(e,r,t);let n=r[t];return e.finalized_||!y(n)?n:n===z(e.base_,t)?(Z(e),e.copy_[t]=J(n,e)):n},has:(e,t)=>t in A(e),ownKeys:e=>Reflect.ownKeys(A(e)),set(e,t,r){let n=$(A(e),t);if(null==n?void 0:n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let n=z(A(e),t),a=null==n?void 0:n[p];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if((r===n?0!==r||1/r==1/n:r!=r&&n!=n)&&(void 0!==r||w(e.base_,t)))return!0;Z(e),q(e)}return!!(e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=r,e.assigned_[t]=!0,!0)},deleteProperty:(e,t)=>(void 0!==z(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Z(e),q(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let r=A(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){h(11)},getPrototypeOf:e=>m(e.base_),setPrototypeOf(){h(12)}},V={};function z(e,t){let r=e[p],n=r?A(r):e;return n[t]}function $(e,t){if(!(t in e))return;let r=m(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=m(r)}}function q(e){!e.modified_&&(e.modified_=!0,e.parent_&&q(e.parent_))}function Z(e){e.copy_||(e.copy_=M(e.base_,e.scope_.immer_.useStrictShallowCopy_))}S(H,(e,t)=>{V[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),V.deleteProperty=function(e,t){return V.set.call(this,e,t,void 0)},V.set=function(e,t,r){return H.set.call(this,e[0],t,r,e[0])};var K=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,r)=>{let n;if("function"==typeof e&&"function"!=typeof t){let r=t;t=e;let n=this;return function(e=r,...a){return n.produce(e,e=>t.call(this,e,...a))}}if("function"!=typeof t&&h(6),void 0!==r&&"function"!=typeof r&&h(7),y(e)){let a=N(this),o=J(e,void 0),i=!0;try{n=t(o),i=!1}finally{i?j(a):P(a)}return U(a,r),F(n,a)}if(e&&"object"==typeof e)h(1,e);else{if(void 0===(n=t(e))&&(n=e),n===d&&(n=void 0),this.autoFreeze_&&k(n,!0),r){let t=[],a=[];C("Patches").generateReplacementPatches_(e,n,t,a),r(t,a)}return n}},this.produceWithPatches=(e,t)=>{let r,n;if("function"==typeof e)return(t,...r)=>this.produceWithPatches(t,t=>e(t,...r));let a=this.produce(e,t,(e,t)=>{r=e,n=t});return[a,r,n]},"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof(null==e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){y(e)||h(8),g(e)&&(e=X(e));let t=N(this),r=J(e,void 0);return r[p].isManual_=!0,P(t),r}finishDraft(e,t){let r=e&&e[p];r&&r.isManual_||h(9);let{scope_:n}=r;return U(n,t),F(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));let n=C("Patches").applyPatches_;return g(e)?n(e,t):this.produce(e,e=>n(e,t))}};function J(e,t){let r=I(e)?C("MapSet").proxyMap_(e,t):O(e)?C("MapSet").proxySet_(e,t):function(e,t){let r=Array.isArray(e),a={type_:r?1:0,scope_:t?t.scope_:n,modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},o=a,i=H;r&&(o=[a],i=V);let{revoke:s,proxy:l}=Proxy.revocable(o,i);return a.draft_=l,a.revoke_=s,l}(e,t),a=t?t.scope_:n;return a.drafts_.push(r),r}function X(e){return g(e)||h(10,e),function e(t){let r;if(!y(t)||D(t))return t;let n=t[p];if(n){if(!n.modified_)return n.base_;n.finalized_=!0,r=M(t,n.scope_.immer_.useStrictShallowCopy_)}else r=M(t,!0);return S(r,(t,n)=>{x(r,t,e(n))}),n&&(n.finalized_=!1),r}(e)}function Q(){var e;let t="replace",r="remove";function n(e){if(!y(e))return e;if(Array.isArray(e))return e.map(n);if(I(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,n(t)]));if(O(e))return new Set(Array.from(e).map(n));let t=Object.create(m(e));for(let r in e)t[r]=n(e[r]);return w(e,f)&&(t[f]=e[f]),t}function a(e){return g(e)?n(e):e}L[e="Patches"]||(L[e]={applyPatches_:function(e,a){return a.forEach(a=>{let{path:o,op:i}=a,s=e;for(let e=0;e<o.length-1;e++){let t=v(s),r=o[e];"string"!=typeof r&&"number"!=typeof r&&(r=""+r),(0===t||1===t)&&("__proto__"===r||"constructor"===r)&&h(19),"function"==typeof s&&"prototype"===r&&h(19),"object"!=typeof(s=E(s,r))&&h(18,o.join("/"))}let l=v(s),u=n(a.value),c=o[o.length-1];switch(i){case t:switch(l){case 2:return s.set(c,u);case 3:h(16);default:return s[c]=u}case"add":switch(l){case 1:return"-"===c?s.push(u):s.splice(c,0,u);case 2:return s.set(c,u);case 3:return s.add(u);default:return s[c]=u}case r:switch(l){case 1:return s.splice(c,1);case 2:return s.delete(c);case 3:return s.delete(a.value);default:return delete s[c]}default:h(17,i)}}),e},generatePatches_:function(e,n,o,i){switch(e.type_){case 0:case 2:return function(e,n,o,i){let{base_:s,copy_:l}=e;S(e.assigned_,(e,u)=>{let c=E(s,e),d=E(l,e),f=u?w(s,e)?t:"add":r;if(c===d&&f===t)return;let p=n.concat(e);o.push(f===r?{op:f,path:p}:{op:f,path:p,value:d}),i.push("add"===f?{op:r,path:p}:f===r?{op:"add",path:p,value:a(c)}:{op:t,path:p,value:a(c)})})}(e,n,o,i);case 1:return function(e,n,o,i){let{base_:s,assigned_:l}=e,u=e.copy_;u.length<s.length&&([s,u]=[u,s],[o,i]=[i,o]);for(let e=0;e<s.length;e++)if(l[e]&&u[e]!==s[e]){let r=n.concat([e]);o.push({op:t,path:r,value:a(u[e])}),i.push({op:t,path:r,value:a(s[e])})}for(let e=s.length;e<u.length;e++){let t=n.concat([e]);o.push({op:"add",path:t,value:a(u[e])})}for(let e=u.length-1;s.length<=e;--e){let t=n.concat([e]);i.push({op:r,path:t})}}(e,n,o,i);case 3:return function(e,t,n,a){let{base_:o,copy_:i}=e,s=0;o.forEach(e=>{if(!i.has(e)){let o=t.concat([s]);n.push({op:r,path:o,value:e}),a.unshift({op:"add",path:o,value:e})}s++}),s=0,i.forEach(e=>{if(!o.has(e)){let o=t.concat([s]);n.push({op:"add",path:o,value:e}),a.unshift({op:r,path:o,value:e})}s++})}(e,n,o,i)}},generateReplacementPatches_:function(e,r,n,a){n.push({op:t,path:[],value:r===d?void 0:r}),a.push({op:t,path:[],value:e})}})}function ee(){var e;class t extends Map{constructor(e,t){super(),this[p]={type_:2,parent_:t,scope_:t?t.scope_:n,modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:e,draft_:this,isManual_:!1,revoked_:!1}}get size(){return A(this[p]).size}has(e){return A(this[p]).has(e)}set(e,t){let n=this[p];return i(n),A(n).has(e)&&A(n).get(e)===t||(r(n),q(n),n.assigned_.set(e,!0),n.copy_.set(e,t),n.assigned_.set(e,!0)),this}delete(e){if(!this.has(e))return!1;let t=this[p];return i(t),r(t),q(t),t.base_.has(e)?t.assigned_.set(e,!1):t.assigned_.delete(e),t.copy_.delete(e),!0}clear(){let e=this[p];i(e),A(e).size&&(r(e),q(e),e.assigned_=new Map,S(e.base_,t=>{e.assigned_.set(t,!1)}),e.copy_.clear())}forEach(e,t){let r=this[p];A(r).forEach((r,n,a)=>{e.call(t,this.get(n),n,this)})}get(e){let t=this[p];i(t);let n=A(t).get(e);if(t.finalized_||!y(n)||n!==t.base_.get(e))return n;let a=J(n,t);return r(t),t.copy_.set(e,a),a}keys(){return A(this[p]).keys()}values(){let e=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{let t=e.next();if(t.done)return t;let r=this.get(t.value);return{done:!1,value:r}}}}entries(){let e=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{let t=e.next();if(t.done)return t;let r=this.get(t.value);return{done:!1,value:[t.value,r]}}}}[Symbol.iterator](){return this.entries()}}function r(e){e.copy_||(e.assigned_=new Map,e.copy_=new Map(e.base_))}class a extends Set{constructor(e,t){super(),this[p]={type_:3,parent_:t,scope_:t?t.scope_:n,modified_:!1,finalized_:!1,copy_:void 0,base_:e,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return A(this[p]).size}has(e){let t=this[p];return(i(t),t.copy_)?!!(t.copy_.has(e)||t.drafts_.has(e)&&t.copy_.has(t.drafts_.get(e))):t.base_.has(e)}add(e){let t=this[p];return i(t),this.has(e)||(o(t),q(t),t.copy_.add(e)),this}delete(e){if(!this.has(e))return!1;let t=this[p];return i(t),o(t),q(t),t.copy_.delete(e)||!!t.drafts_.has(e)&&t.copy_.delete(t.drafts_.get(e))}clear(){let e=this[p];i(e),A(e).size&&(o(e),q(e),e.copy_.clear())}values(){let e=this[p];return i(e),o(e),e.copy_.values()}entries(){let e=this[p];return i(e),o(e),e.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(e,t){let r=this.values(),n=r.next();for(;!n.done;)e.call(t,n.value,n.value,this),n=r.next()}}function o(e){e.copy_||(e.copy_=new Set,e.base_.forEach(t=>{if(y(t)){let r=J(t,e);e.drafts_.set(t,r),e.copy_.add(r)}else e.copy_.add(t)}))}function i(e){e.revoked_&&h(3,JSON.stringify(A(e)))}L[e="MapSet"]||(L[e]={proxyMap_:function(e,r){return new t(e,r)},proxySet_:function(e,t){return new a(e,t)}})}var et=new K,er=et.produce,en=et.produceWithPatches.bind(et),ea=et.setAutoFreeze.bind(et),eo=et.setUseStrictShallowCopy.bind(et),ei=et.applyPatches.bind(et),es=et.createDraft.bind(et),el=et.finishDraft.bind(et);function eu(e){return e}function ec(e){return e}},{"@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],"25ILf":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"createSelector",()=>G),n.export(r,"createSelectorCreator",()=>B),n.export(r,"createStructuredSelector",()=>W),n.export(r,"lruMemoize",()=>j),n.export(r,"referenceEqualityCheck",()=>C),n.export(r,"setGlobalDevModeChecks",()=>f),n.export(r,"unstable_autotrackMemoize",()=>P),n.export(r,"weakMapMemoize",()=>F);var a=Object.defineProperty,o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,l=(e,t,r)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,u=(e,t)=>{for(var r in t||(t={}))i.call(t,r)&&l(e,r,t[r]);if(o)for(var r of o(t))s.call(t,r)&&l(e,r,t[r]);return e},c=(e,t,r)=>(l(e,"symbol"!=typeof t?t+"":t,r),r),d={inputStabilityCheck:"once",identityFunctionCheck:"once"},f=e=>{Object.assign(d,e)},p=Symbol("NOT_FOUND");function h(e,t=`expected a function, instead received ${typeof e}`){if("function"!=typeof e)throw TypeError(t)}var m=e=>Array.isArray(e)?e:[e],g=0,y=null,b=class{constructor(e,t=_){c(this,"revision",g),c(this,"_value"),c(this,"_lastValue"),c(this,"_isEqual",_),this._value=this._lastValue=e,this._isEqual=t}get value(){return null==y||y.add(this),this._value}set value(e){this.value!==e&&(this._value=e,this.revision=++g)}};function _(e,t){return e===t}var T=class{constructor(e){c(this,"_cachedValue"),c(this,"_cachedRevision",-1),c(this,"_deps",[]),c(this,"hits",0),c(this,"fn"),this.fn=e}clear(){this._cachedValue=void 0,this._cachedRevision=-1,this._deps=[],this.hits=0}get value(){if(this.revision>this._cachedRevision){let{fn:e}=this,t=new Set,r=y;y=t,this._cachedValue=e(),y=r,this.hits++,this._deps=Array.from(t),this._cachedRevision=this.revision}return null==y||y.add(this),this._cachedValue}get revision(){return Math.max(...this._deps.map(e=>e.revision),0)}};function S(e){return e instanceof b||console.warn("Not a valid cell! ",e),e.value}var v=(e,t)=>!1;function w(){return function(e,t=_){return new b(null,t)}(0,v)}function E(e,t){!function(e,t){if(!(e instanceof b))throw TypeError("setValue must be passed a tracked store created with `createStorage`.");e.value=e._lastValue=t}(e,t)}var x=e=>{let t=e.collectionTag;null===t&&(t=e.collectionTag=w()),S(t)},I=e=>{let t=e.collectionTag;null!==t&&E(t,null)};Symbol();var O=0,A=Object.getPrototypeOf({}),M=class{constructor(e){this.value=e,c(this,"proxy",new Proxy(this,k)),c(this,"tag",w()),c(this,"tags",{}),c(this,"children",{}),c(this,"collectionTag",null),c(this,"id",O++),this.value=e,this.tag.value=e}},k={get(e,t){let r=function(){let{value:r}=e,n=Reflect.get(r,t);if("symbol"==typeof t||t in A)return n;if("object"==typeof n&&null!==n){let r=e.children[t];return void 0===r&&(r=e.children[t]=L(n)),r.tag&&S(r.tag),r.proxy}{let r=e.tags[t];return void 0===r&&((r=e.tags[t]=w()).value=n),S(r),n}}();return r},ownKeys:e=>(x(e),Reflect.ownKeys(e.value)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e.value,t),has:(e,t)=>Reflect.has(e.value,t)},R=class{constructor(e){this.value=e,c(this,"proxy",new Proxy([this],D)),c(this,"tag",w()),c(this,"tags",{}),c(this,"children",{}),c(this,"collectionTag",null),c(this,"id",O++),this.value=e,this.tag.value=e}},D={get:([e],t)=>("length"===t&&x(e),k.get(e,t)),ownKeys:([e])=>k.ownKeys(e),getOwnPropertyDescriptor:([e],t)=>k.getOwnPropertyDescriptor(e,t),has:([e],t)=>k.has(e,t)};function L(e){return Array.isArray(e)?new R(e):new M(e)}var C=(e,t)=>e===t;function U(e){return function(t,r){if(null===t||null===r||t.length!==r.length)return!1;let{length:n}=t;for(let a=0;a<n;a++)if(!e(t[a],r[a]))return!1;return!0}}function j(e,t){let r;let{equalityCheck:n=C,maxSize:a=1,resultEqualityCheck:o}="object"==typeof t?t:{equalityCheck:t},i=U(n),s=0,l=a<=1?{get:e=>r&&i(r.key,e)?r.value:p,put(e,t){r={key:e,value:t}},getEntries:()=>r?[r]:[],clear(){r=void 0}}:function(e,t){let r=[];function n(e){let n=r.findIndex(r=>t(e,r.key));if(n>-1){let e=r[n];return n>0&&(r.splice(n,1),r.unshift(e)),e.value}return p}return{get:n,put:function(t,a){n(t)===p&&(r.unshift({key:t,value:a}),r.length>e&&r.pop())},getEntries:function(){return r},clear:function(){r=[]}}}(a,i);function u(){let t=l.get(arguments);if(t===p){if(t=e.apply(null,arguments),s++,o){let e=l.getEntries(),r=e.find(e=>o(e.value,t));r&&(t=r.value,0!==s&&s--)}l.put(arguments,t)}return t}return u.clearCache=()=>{l.clear(),u.resetResultsCount()},u.resultsCount=()=>s,u.resetResultsCount=()=>{s=0},u}function P(e){var t;let r=L([]),n=null,a=U(C),o=(h(t=()=>{let t=e.apply(null,r.proxy);return t},"the first parameter to `createCache` must be a function"),new T(t));function i(){return a(n,arguments)||(function e(t,r){let{value:n,tags:a,children:o}=t;if(t.value=r,Array.isArray(n)&&Array.isArray(r)&&n.length!==r.length)I(t);else if(n!==r){let e=0,a=0,o=!1;for(let t in n)e++;for(let e in r)if(a++,!(e in n)){o=!0;break}let i=o||e!==a;i&&I(t)}for(let e in a){let o=n[e],i=r[e];o!==i&&(I(t),E(a[e],i)),"object"==typeof i&&null!==i&&delete a[e]}for(let t in o){let n=o[t],a=r[t],i=n.value;i!==a&&("object"==typeof a&&null!==a?e(n,a):(function e(t){for(let e in t.tag&&E(t.tag,null),I(t),t.tags)E(t.tags[e],null);for(let r in t.children)e(t.children[r])}(n),delete o[t]))}}(r,arguments),n=arguments),o.value}return i.clearCache=()=>o.clear(),i}var N="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function Y(){return{s:0,v:void 0,o:null,p:null}}function F(e,t={}){let r,n=Y(),{resultEqualityCheck:a}=t,o=0;function i(){var t,i;let s;let l=n,{length:u}=arguments;for(let e=0;e<u;e++){let t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=l.o;null===e&&(l.o=e=new WeakMap);let r=e.get(t);void 0===r?(l=Y(),e.set(t,l)):l=r}else{let e=l.p;null===e&&(l.p=e=new Map);let r=e.get(t);void 0===r?(l=Y(),e.set(t,l)):l=r}}let c=l;if(1===l.s)s=l.v;else if(s=e.apply(null,arguments),o++,a){let e=null!=(i=null==(t=null==r?void 0:r.deref)?void 0:t.call(r))?i:r;null!=e&&a(e,s)&&(s=e,0!==o&&o--);let n="object"==typeof s&&null!==s||"function"==typeof s;r=n?new N(s):s}return c.s=1,c.v=s,s}return i.clearCache=()=>{n=Y(),i.resetResultsCount()},i.resultsCount=()=>o,i.resetResultsCount=()=>{o=0},i}function B(e,...t){let r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,n=(...e)=>{let t,n=0,a=0,o={},i=e.pop();"object"==typeof i&&(o=i,i=e.pop()),h(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);let s=u(u({},r),o),{memoize:l,memoizeOptions:c=[],argsMemoize:d=F,argsMemoizeOptions:f=[],devModeChecks:p={}}=s,g=m(c),y=m(f),b=function(e){let t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){let r=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw TypeError(`${t}[${r}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}(e),_=l(function(){return n++,i.apply(null,arguments)},...g),T=d(function(){a++;let e=function(e,t){let r=[],{length:n}=e;for(let a=0;a<n;a++)r.push(e[a].apply(null,t));return r}(b,arguments);return t=_.apply(null,e)},...y);return Object.assign(T,{resultFunc:i,memoizedResultFunc:_,dependencies:b,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>t,recomputations:()=>n,resetRecomputations:()=>{n=0},memoize:l,argsMemoize:d})};return Object.assign(n,{withTypes:()=>n}),n}var G=B(F),W=Object.assign((e,t=G)=>{!function(e,t=`expected an object, instead received ${typeof e}`){if("object"!=typeof e)throw TypeError(t)}(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let r=Object.keys(e),n=r.map(t=>e[t]),a=t(n,(...e)=>e.reduce((e,t,n)=>(e[r[n]]=t,e),{}));return a},{withTypes:()=>W})},{"@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],"1xIC4":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e){return({dispatch:t,getState:r})=>n=>a=>"function"==typeof a?a(t,r,e):n(a)}n.defineInteropFlag(r),n.export(r,"thunk",()=>o),n.export(r,"withExtraArgument",()=>i);var o=a(),i=a},{"@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],jZFan:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"noStorageSlice",()=>l),n.export(r,"initSubtitleNodes",()=>u),n.export(r,"initTTSSubtitleNodes",()=>c),n.export(r,"initTTSWordsSubtitleNodes",()=>d),n.export(r,"setTTSWordsSubtitleNodes",()=>f),n.export(r,"setTTSSubtitleNodes",()=>p),n.export(r,"setSubtitleNodes",()=>h),n.export(r,"setSubtitleNodesAsObj",()=>m),n.export(r,"setSubtitleText",()=>g),n.export(r,"setSubtitleZhText",()=>y),n.export(r,"setPaused",()=>b),n.export(r,"setPausedForWavesurfer",()=>_),n.export(r,"setCurrentTime",()=>T),n.export(r,"setCurrentTForWavesurfer",()=>S),n.export(r,"setClientWidth",()=>v),n.export(r,"setClientHeight",()=>w),n.export(r,"setIndex",()=>E),n.export(r,"setIndexForWavesurfer",()=>x),n.export(r,"setIndexForWavesurferWords",()=>I),n.export(r,"setMediaIsAudio",()=>O),n.export(r,"setMaskClickPlay",()=>A),n.export(r,"setMaskFull",()=>M),n.export(r,"setNickname",()=>k),n.export(r,"setSubtitleUrl",()=>R),n.export(r,"setWavesurferAudioBlobUrl",()=>D),n.export(r,"setWavesurferAudioUrl",()=>L),n.export(r,"setYoudaoAudioUrl",()=>C),n.export(r,"setDict1ZimuApiUrl",()=>U),n.export(r,"setNowTime",()=>j),n.export(r,"setBiliRightContainerWidth",()=>P),n.export(r,"setMouseX",()=>N),n.export(r,"setMouseY",()=>Y),n.export(r,"setDraggableDictX",()=>F),n.export(r,"setDraggableDictY",()=>B),n.export(r,"setDraggableSubtitleListXInStore",()=>G),n.export(r,"setDraggableSubtitleListYInStore",()=>W),n.export(r,"setTextSelectionPopup",()=>H),n.export(r,"setSelectionText",()=>V),n.export(r,"setSelectionTextLanguage",()=>z),n.export(r,"setFilterSubtitleListText",()=>$),n.export(r,"setTargetLang",()=>q),n.export(r,"setSourceLang",()=>Z),n.export(r,"setRepeatTimes",()=>K),n.export(r,"setRepeatTimesForWavesurfer",()=>J),n.export(r,"setVariableRepeatTimes",()=>X),n.export(r,"setVariableRepeatTimesForWavesurfer",()=>Q),n.export(r,"setMediaPlaybackRate",()=>ee),n.export(r,"setMediaPlaybackRateForWavesurfer",()=>et),n.export(r,"setYoutubeSourceLang",()=>er),n.export(r,"setYoutubeSubUrl",()=>en),n.export(r,"setPlayThenPause",()=>ea),n.export(r,"setPlayThenPausedStartTime",()=>eo),n.export(r,"setShowSubtitleList",()=>ei),n.export(r,"setFavoritesDicts",()=>es),n.export(r,"setNoStorageJwt",()=>el),n.export(r,"setJwtId",()=>eu),n.export(r,"setBaiduPanVideo",()=>ec),n.export(r,"setSubtitleTextEnOrNot",()=>ed),n.export(r,"setToOpenFileUI",()=>ef),n.export(r,"setUserInfo",()=>ep);var a=e("@reduxjs/toolkit"),o=e("~tools/constants"),i=e("~tools/subtitle");let s={currentT:0,currentTForWavesurfer:0,subtitleNodes:[],subtitleTTSNodes:[],subtitleTTSWordsNodes:[],subtitleText:"",subtitleZhText:"",paused:!0,pausedForWavesurfer:!0,clientWidth:0,clientHeight:0,index:0,indexForWavesurfer:0,indexForWavesurferWords:0,mediaIsAudio:!1,maskClickPlay:!0,maskFull:!1,nickname:"",subtitleurl:"",dict1ZimuApiUrl:"",youdaoAudioUrl:"",wavesurferAudioUrl:void 0,wavesurferAudioBlobUrl:void 0,nowTime:0,biliRightContainerWidth:o.SUBTITLE_LIST_WIDTH,mouseX:0,mouseY:0,textSelectionPopup:!1,selectionText:"",selectionTextLanguage:"",filterSubtitleListText:"",draggableDictX:o.DRAGGABLE_NODE_CONTAINER_X,draggableDictY:o.DRAGGABLE_NODE_CONTAINER_Y,draggableSubtitleListXInStore:void 0,draggableSubtitleListYInStore:void 0,targetLang:"",sourceLang:"",repeatTimes:o.REPEAT_UI_INIT_TIMES,variableRepeatTimes:o.VARIABLE_REPEAT_UI_INIT_TIMES,repeatTimesForWavesurfer:o.REPEAT_UI_INIT_TIMES,variableRepeatTimesForWavesurfer:o.VARIABLE_REPEAT_UI_INIT_TIMES,mediaPlaybackRate:1,mediaPlaybackRateForWavesurfer:1,youtubeSourceLang:void 0,youtubeSubUrl:void 0,playThenPause:!1,playThenPausedStartTime:void 0,showSubtitleList:!0,favoritesDicts:void 0,jwt:void 0,jwtId:void 0,baiduPanVideo:!1,subtitleTextEnOrNot:!1,toOpenFileUI:!1,userInfo:void 0},l=(0,a.createSlice)({name:"noStorager",initialState:s,reducers:{setNickname:(e,t)=>{e.nickname!==t.payload&&(e.nickname=t.payload)},setCurrentTime:(e,t)=>{e.currentT!==t.payload&&(e.currentT=t.payload)},setCurrentTForWavesurfer:(e,t)=>{e.currentTForWavesurfer!==t.payload&&(e.currentTForWavesurfer=t.payload)},initSubtitleNodes:e=>{e.subtitleNodes=[],e.subtitleText=""},initTTSSubtitleNodes:e=>{e.subtitleTTSNodes=[]},initTTSWordsSubtitleNodes:e=>{e.subtitleTTSWordsNodes=[]},setTTSWordsSubtitleNodes:(e,t)=>{let r=[];r=(0,i.formSubtitleNodesFromPayload)(t.payload),e.subtitleTTSWordsNodes=[...r]},setTTSSubtitleNodes:(e,t)=>{let r=[];r=(0,i.formSubtitleNodesFromPayload)(t.payload),e.subtitleTTSNodes=[...r]},setSubtitleNodesAsObj:(e,t)=>{let r=[],n=(0,i.sortByStart)(t.payload),a=0;n.forEach(e=>{if(e.text){let t={type:"cue",data:{start:0,end:0,text:"",zh_text:"",index:0}};t.data=e,t.data.index=a,a+=1,r.push(t)}}),e.subtitleNodes=[...r]},setSubtitleNodes:(e,t)=>{let r=[];r=(0,i.formSubtitleNodesFromPayload)(t.payload),e.subtitleNodes=[...r]},setSubtitleText:(e,t)=>{e.subtitleText!==t.payload&&(e.subtitleText=t.payload)},setSubtitleZhText:(e,t)=>{e.subtitleZhText!==t.payload&&(e.subtitleZhText=t.payload)},setPaused:(e,t)=>{e.paused!==t.payload&&(e.paused=t.payload)},setPausedForWavesurfer:(e,t)=>{e.pausedForWavesurfer!==t.payload&&(e.pausedForWavesurfer=t.payload)},setClientHeight:(e,t)=>{e.clientHeight!==t.payload&&(e.clientHeight=t.payload)},setClientWidth:(e,t)=>{e.clientWidth!==t.payload&&(e.clientWidth=t.payload)},setMouseX:(e,t)=>{e.mouseX!==t.payload&&(e.mouseX=t.payload)},setMouseY:(e,t)=>{e.mouseY!==t.payload&&(e.mouseY=t.payload)},setTextSelectionPopup:(e,t)=>{e.textSelectionPopup!==t.payload&&(e.textSelectionPopup=t.payload)},setTargetLang:(e,t)=>{e.targetLang!==t.payload&&(e.targetLang=t.payload)},setSourceLang:(e,t)=>{e.sourceLang!==t.payload&&(e.sourceLang=t.payload)},setRepeatTimes:(e,t)=>{e.repeatTimes!==t.payload&&(e.repeatTimes=t.payload)},setRepeatTimesForWavesurfer:(e,t)=>{e.repeatTimesForWavesurfer!==t.payload&&(e.repeatTimesForWavesurfer=t.payload)},setVariableRepeatTimes:(e,t)=>{e.variableRepeatTimes!==t.payload&&(e.variableRepeatTimes=t.payload)},setVariableRepeatTimesForWavesurfer:(e,t)=>{e.variableRepeatTimesForWavesurfer!==t.payload&&(e.variableRepeatTimesForWavesurfer=t.payload)},setMediaPlaybackRate:(e,t)=>{e.mediaPlaybackRate!==t.payload&&(e.mediaPlaybackRate=t.payload)},setMediaPlaybackRateForWavesurfer:(e,t)=>{e.mediaPlaybackRateForWavesurfer!==t.payload&&(e.mediaPlaybackRateForWavesurfer=t.payload)},setYoutubeSourceLang:(e,t)=>{e.youtubeSourceLang!==t.payload&&(e.youtubeSourceLang=t.payload)},setYoutubeSubUrl:(e,t)=>{e.youtubeSubUrl!==t.payload&&(e.youtubeSubUrl=t.payload)},setPlayThenPause:(e,t)=>{e.playThenPause!==t.payload&&(e.playThenPause=t.payload)},setPlayThenPausedStartTime:(e,t)=>{e.playThenPausedStartTime!==t.payload&&(e.playThenPausedStartTime=t.payload)},setShowSubtitleList:(e,t)=>{e.showSubtitleList!==t.payload&&(e.showSubtitleList=t.payload)},setFavoritesDicts:(e,t)=>{e.favoritesDicts=[...t.payload]},setNoStorageJwt:(e,t)=>{e.jwt!==t.payload&&(e.jwt=t.payload)},setJwtId:(e,t)=>{e.jwtId!==t.payload&&(e.jwtId=t.payload)},setBaiduPanVideo:(e,t)=>{e.baiduPanVideo!==t.payload&&(e.baiduPanVideo=t.payload)},setSubtitleTextEnOrNot:(e,t)=>{e.subtitleTextEnOrNot!==t.payload&&(e.subtitleTextEnOrNot=t.payload)},setToOpenFileUI:(e,t)=>{e.toOpenFileUI!==t.payload&&(e.toOpenFileUI=t.payload)},setUserInfo:(e,t)=>{e.userInfo=t.payload},setSelectionText:(e,t)=>{e.selectionText!==t.payload&&(e.selectionText=t.payload)},setSelectionTextLanguage:(e,t)=>{e.selectionTextLanguage!==t.payload&&(e.selectionTextLanguage=t.payload)},setFilterSubtitleListText:(e,t)=>{e.filterSubtitleListText!==t.payload&&(e.filterSubtitleListText=t.payload)},setDraggableDictX:(e,t)=>{e.draggableDictX!==t.payload&&(e.draggableDictX=t.payload)},setDraggableDictY:(e,t)=>{e.draggableDictY!==t.payload&&(e.draggableDictY=t.payload)},setDraggableSubtitleListXInStore:(e,t)=>{e.draggableSubtitleListXInStore!==t.payload&&(e.draggableSubtitleListXInStore=t.payload)},setDraggableSubtitleListYInStore:(e,t)=>{e.draggableSubtitleListYInStore!==t.payload&&(e.draggableSubtitleListYInStore=t.payload)},setIndex:(e,t)=>{e.index!==t.payload&&(e.index=t.payload)},setIndexForWavesurfer:(e,t)=>{e.indexForWavesurfer!==t.payload&&(e.indexForWavesurfer=t.payload)},setIndexForWavesurferWords:(e,t)=>{e.indexForWavesurferWords!==t.payload&&(e.indexForWavesurferWords=t.payload)},setMediaIsAudio:(e,t)=>{e.mediaIsAudio!==t.payload&&(e.mediaIsAudio=t.payload)},setMaskFull:(e,t)=>{e.maskFull!==t.payload&&(e.maskFull=t.payload)},setMaskClickPlay:(e,t)=>{e.maskClickPlay!==t.payload&&(e.maskClickPlay=t.payload)},setSubtitleUrl:(e,t)=>{e.subtitleurl!==t.payload&&(e.subtitleurl=t.payload)},setWavesurferAudioBlobUrl:(e,t)=>{e.wavesurferAudioBlobUrl!==t.payload&&(e.wavesurferAudioBlobUrl=t.payload)},setWavesurferAudioUrl:(e,t)=>{e.wavesurferAudioUrl!==t.payload&&(e.wavesurferAudioUrl=t.payload)},setDict1ZimuApiUrl:(e,t)=>{if(t?.payload?.length>0){let r="en";r="ja"===e.selectionTextLanguage?"ja":"ko"===e.selectionTextLanguage?"ko":"fr"===e.selectionTextLanguage?"fr":"en";let n=`https://${o.ZIMU1_COM}/subtitle/api/dict/${t.payload}/${r}`;e.dict1ZimuApiUrl!==n&&(e.dict1ZimuApiUrl=n)}else null!==e.dict1ZimuApiUrl&&(e.dict1ZimuApiUrl=null)},setYoudaoAudioUrl:(e,t)=>{let r="";"ja"===e.selectionTextLanguage?r="&le=jap":"ko"===e.selectionTextLanguage?r="&le=ko":"fr"===e.selectionTextLanguage&&(r="&le=fr"),t?.payload?.length>0?e.youdaoAudioUrl!==`https://dict.youdao.com/dictvoice?audio=${t.payload}${r}`&&(e.youdaoAudioUrl=`https://dict.youdao.com/dictvoice?audio=${t.payload}${r}`):null!==e.youdaoAudioUrl&&(e.youdaoAudioUrl=null)},setNowTime:(e,t)=>{e.nowTime!==t.payload&&(e.nowTime=t.payload)},setBiliRightContainerWidth:(e,t)=>{e.biliRightContainerWidth!==t.payload&&(e.biliRightContainerWidth=t.payload)}}}),{initSubtitleNodes:u,initTTSSubtitleNodes:c,initTTSWordsSubtitleNodes:d,setTTSWordsSubtitleNodes:f,setTTSSubtitleNodes:p,setSubtitleNodes:h,setSubtitleNodesAsObj:m,setSubtitleText:g,setSubtitleZhText:y,setPaused:b,setPausedForWavesurfer:_,setCurrentTime:T,setCurrentTForWavesurfer:S,setClientWidth:v,setClientHeight:w,setIndex:E,setIndexForWavesurfer:x,setIndexForWavesurferWords:I,setMediaIsAudio:O,setMaskClickPlay:A,setMaskFull:M,setNickname:k,setSubtitleUrl:R,setWavesurferAudioBlobUrl:D,setWavesurferAudioUrl:L,setYoudaoAudioUrl:C,setDict1ZimuApiUrl:U,setNowTime:j,setBiliRightContainerWidth:P,setMouseX:N,setMouseY:Y,setDraggableDictX:F,setDraggableDictY:B,setDraggableSubtitleListXInStore:G,setDraggableSubtitleListYInStore:W,setTextSelectionPopup:H,setSelectionText:V,setSelectionTextLanguage:z,setFilterSubtitleListText:$,setTargetLang:q,setSourceLang:Z,setRepeatTimes:K,setRepeatTimesForWavesurfer:J,setVariableRepeatTimes:X,setVariableRepeatTimesForWavesurfer:Q,setMediaPlaybackRate:ee,setMediaPlaybackRateForWavesurfer:et,setYoutubeSourceLang:er,setYoutubeSubUrl:en,setPlayThenPause:ea,setPlayThenPausedStartTime:eo,setShowSubtitleList:ei,setFavoritesDicts:es,setNoStorageJwt:el,setJwtId:eu,setBaiduPanVideo:ec,setSubtitleTextEnOrNot:ed,setToOpenFileUI:ef,setUserInfo:ep}=l.actions;r.default=l.reducer},{"@reduxjs/toolkit":"59iT9","~tools/constants":"DgB7r","~tools/subtitle":"88X4r","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],lWScv:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Provider",()=>ea),n.export(r,"ReactReduxContext",()=>ee),n.export(r,"batch",()=>eh),n.export(r,"connect",()=>en),n.export(r,"createDispatchHook",()=>eu),n.export(r,"createSelectorHook",()=>ef),n.export(r,"createStoreHook",()=>es),n.export(r,"shallowEqual",()=>Y),n.export(r,"useDispatch",()=>ec),n.export(r,"useSelector",()=>ep),n.export(r,"useStore",()=>el);var a=e("react"),o=e("use-sync-external-store/with-selector.js"),i=Object.defineProperty,s=Object.defineProperties,l=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,f=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,p=(e,t)=>{for(var r in t||(t={}))c.call(t,r)&&f(e,r,t[r]);if(u)for(var r of u(t))d.call(t,r)&&f(e,r,t[r]);return e},h=(e,t)=>s(e,l(t)),m=(e,t)=>{var r={};for(var n in e)c.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&u)for(var n of u(e))0>t.indexOf(n)&&d.call(e,n)&&(r[n]=e[n]);return r},g=Symbol.for(a.version.startsWith("19")?"react.transitional.element":"react.element"),y=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),v=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),O=Symbol.for("react.lazy");function A(e){return function(t){let r=e(t);function n(){return r}return n.dependsOnOwnProps=!1,n}}function M(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:1!==e.length}function k(e,t){return function(t,{displayName:r}){let n=function(e,t){return n.dependsOnOwnProps?n.mapToProps(e,t):n.mapToProps(e,void 0)};return n.dependsOnOwnProps=!0,n.mapToProps=function(t,r){n.mapToProps=e,n.dependsOnOwnProps=M(e);let a=n(t,r);return"function"==typeof a&&(n.mapToProps=a,n.dependsOnOwnProps=M(a),a=n(t,r)),a},n}}function R(e,t){return(r,n)=>{throw Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function D(e,t,r){return p(p(p({},r),e),t)}var L={notify(){},get:()=>[]};function C(e,t){let r;let n=L,a=0,o=!1;function i(){u.onStateChange&&u.onStateChange()}function s(){if(a++,!r){let a,o;r=t?t.addNestedSub(i):e.subscribe(i),a=null,o=null,n={clear(){a=null,o=null},notify(){(()=>{let e=a;for(;e;)e.callback(),e=e.next})()},get(){let e=[],t=a;for(;t;)e.push(t),t=t.next;return e},subscribe(e){let t=!0,r=o={callback:e,next:null,prev:o};return r.prev?r.prev.next=r:a=r,function(){t&&null!==a&&(t=!1,r.next?r.next.prev=r.prev:o=r.prev,r.prev?r.prev.next=r.next:a=r.next)}}}}}function l(){a--,r&&0===a&&(r(),r=void 0,n.clear(),n=L)}let u={addNestedSub:function(e){s();let t=n.subscribe(e),r=!1;return()=>{r||(r=!0,t(),l())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:i,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,s())},tryUnsubscribe:function(){o&&(o=!1,l())},getListeners:()=>n};return u}var U=!!("undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement),j="undefined"!=typeof navigator&&"ReactNative"===navigator.product,P=U||j?a.useLayoutEffect:a.useEffect;function N(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Y(e,t){if(N(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!N(e[r[n]],t[r[n]]))return!1;return!0}var F={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},B={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},G={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},W={[w]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[I]:G};function H(e){return function(e){if("object"==typeof e&&null!==e){let{$$typeof:t}=e;switch(t){case g:switch(e=e.type){case b:case T:case _:case E:case x:return e;default:switch(e=e&&e.$$typeof){case v:case w:case O:case I:case S:return e;default:return t}}case y:return t}}}(e)===I?G:W[e.$$typeof]||F}var V=Object.defineProperty,z=Object.getOwnPropertyNames,$=Object.getOwnPropertySymbols,q=Object.getOwnPropertyDescriptor,Z=Object.getPrototypeOf,K=Object.prototype;function J(e,t){if("string"!=typeof t){if(K){let r=Z(t);r&&r!==K&&J(e,r)}let r=z(t);$&&(r=r.concat($(t)));let n=H(e),a=H(t);for(let o=0;o<r.length;++o){let i=r[o];if(!B[i]&&!(a&&a[i])&&!(n&&n[i])){let r=q(t,i);try{V(e,i,r)}catch(e){}}}}return e}var X=Symbol.for("react-redux-context"),Q="undefined"!=typeof globalThis?globalThis:{},ee=function(){var e;if(!a.createContext)return{};let t=null!=(e=Q[X])?e:Q[X]=new Map,r=t.get(a.createContext);return r||(r=a.createContext(null),t.set(a.createContext,r)),r}(),et=[null,null];function er(e,t){return e===t}var en=function(e,t,r,{pure:n,areStatesEqual:o=er,areOwnPropsEqual:i=Y,areStatePropsEqual:s=Y,areMergedPropsEqual:l=Y,forwardRef:u=!1,context:c=ee}={}){let d=e?"function"==typeof e?k(e,"mapStateToProps"):R(e,"mapStateToProps"):A(()=>({})),f=t&&"object"==typeof t?A(e=>(function(e,t){let r={};for(let n in e){let a=e[n];"function"==typeof a&&(r[n]=(...e)=>t(a(...e)))}return r})(t,e)):t?"function"==typeof t?k(t,"mapDispatchToProps"):R(t,"mapDispatchToProps"):A(e=>({dispatch:e})),g=r?"function"==typeof r?function(e,{displayName:t,areMergedPropsEqual:n}){let a,o=!1;return function(e,t,i){let s=r(e,t,i);return o?n(s,a)||(a=s):(o=!0,a=s),a}}:R(r,"mergeProps"):()=>D,y=!!e;return e=>{let t=e.displayName||e.name||"Component",r=`Connect(${t})`,n={shouldHandleStateChanges:y,displayName:r,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:g,areStatesEqual:o,areStatePropsEqual:s,areOwnPropsEqual:i,areMergedPropsEqual:l};function b(t){var r;let o;let[i,s,l]=a.useMemo(()=>{let{reactReduxForwardedRef:e}=t,r=m(t,["reactReduxForwardedRef"]);return[t.context,e,r]},[t]),u=a.useMemo(()=>(null==i||i.Consumer,c),[i,c]),d=a.useContext(u),f=!!t.store&&!!t.store.getState&&!!t.store.dispatch,g=!!d&&!!d.store,b=f?t.store:d.store,_=g?d.getServerState:b.getState,T=a.useMemo(()=>(function(e,t){var{initMapStateToProps:r,initMapDispatchToProps:n,initMergeProps:a}=t,o=m(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]);let i=r(e,o),s=n(e,o),l=a(e,o);return function(e,t,r,n,{areStatesEqual:a,areOwnPropsEqual:o,areStatePropsEqual:i}){let s,l,u,c,d,f=!1;return function(p,h){return f?function(f,p){let h=!o(p,l),m=!a(f,s,p,l);return(s=f,l=p,h&&m)?(u=e(s,l),t.dependsOnOwnProps&&(c=t(n,l)),d=r(u,c,l)):h?(e.dependsOnOwnProps&&(u=e(s,l)),t.dependsOnOwnProps&&(c=t(n,l)),d=r(u,c,l)):m?function(){let t=e(s,l),n=!i(t,u);return u=t,n&&(d=r(u,c,l)),d}():d}(p,h):(u=e(s=p,l=h),c=t(n,l),d=r(u,c,l),f=!0,d)}}(i,s,l,e,o)})(b.dispatch,n),[b]),[S,v]=a.useMemo(()=>{if(!y)return et;let e=C(b,f?void 0:d.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[b,f,d]),w=a.useMemo(()=>f?d:h(p({},d),{subscription:S}),[f,d,S]),E=a.useRef(void 0),x=a.useRef(l),I=a.useRef(void 0),O=a.useRef(!1),A=a.useRef(!1),M=a.useRef(void 0);P(()=>(A.current=!0,()=>{A.current=!1}),[]);let k=a.useMemo(()=>()=>I.current&&l===x.current?I.current:T(b.getState(),l),[b,l]),R=a.useMemo(()=>e=>S?function(e,t,r,n,a,o,i,s,l,u,c){if(!e)return()=>{};let d=!1,f=null,p=()=>{let e,r;if(d||!s.current)return;let p=t.getState();try{e=n(p,a.current)}catch(e){r=e,f=e}r||(f=null),e===o.current?i.current||u():(o.current=e,l.current=e,i.current=!0,c())};return r.onStateChange=p,r.trySubscribe(),p(),()=>{if(d=!0,r.tryUnsubscribe(),r.onStateChange=null,f)throw f}}(y,b,S,T,x,E,O,A,I,v,e):()=>{},[S]);r=[x,E,O,l,I,v],P(()=>(function(e,t,r,n,a,o){e.current=n,r.current=!1,a.current&&(a.current=null,o())})(...r),void 0);try{o=a.useSyncExternalStore(R,k,_?()=>T(_(),l):k)}catch(e){throw M.current&&(e.message+=`
The error may be correlated with this previous error:
${M.current.stack}
`),e}P(()=>{M.current=void 0,I.current=void 0,E.current=o});let D=a.useMemo(()=>a.createElement(e,h(p({},o),{ref:s})),[s,e,o]),L=a.useMemo(()=>y?a.createElement(u.Provider,{value:w},D):D,[u,D,w]);return L}let _=a.memo(b);if(_.WrappedComponent=e,_.displayName=b.displayName=r,u){let t=a.forwardRef(function(e,t){return a.createElement(_,h(p({},e),{reactReduxForwardedRef:t}))});return t.displayName=r,t.WrappedComponent=e,J(t,e)}return J(_,e)}},ea=function(e){let{children:t,context:r,serverState:n,store:o}=e,i=a.useMemo(()=>{let e=C(o);return{store:o,subscription:e,getServerState:n?()=>n:void 0}},[o,n]),s=a.useMemo(()=>o.getState(),[o]);return P(()=>{let{subscription:e}=i;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==o.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[i,s]),a.createElement((r||ee).Provider,{value:i},t)};function eo(e=ee){return function(){let t=a.useContext(e);return t}}var ei=eo();function es(e=ee){let t=e===ee?ei:eo(e),r=()=>{let{store:e}=t();return e};return Object.assign(r,{withTypes:()=>r}),r}var el=es();function eu(e=ee){let t=e===ee?el:es(e),r=()=>{let e=t();return e.dispatch};return Object.assign(r,{withTypes:()=>r}),r}var ec=eu(),ed=(e,t)=>e===t;function ef(e=ee){let t=e===ee?ei:eo(e),r=(e,r={})=>{let{equalityFn:n=ed}="function"==typeof r?{equalityFn:r}:r,i=t(),{store:s,subscription:l,getServerState:u}=i;a.useRef(!0);let c=a.useCallback({[e.name](t){let r=e(t);return r}}[e.name],[e]),d=(0,o.useSyncExternalStoreWithSelector)(l.addNestedSub,s.getState,u||s.getState,c,n);return a.useDebugValue(d),d};return Object.assign(r,{withTypes:()=>r}),r}var ep=ef(),eh=function(e){e()}},{react:"329PG","use-sync-external-store/with-selector.js":"4Tbgj","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],"4Tbgj":[function(e,t,r){t.exports=e("44db3591982713b9")},{"44db3591982713b9":"dKlR2"}],dKlR2:[function(e,t,r){var n=e("6d34fa13a6b19654"),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useSyncExternalStore,i=n.useRef,s=n.useEffect,l=n.useMemo,u=n.useDebugValue;r.useSyncExternalStoreWithSelector=function(e,t,r,n,c){var d=i(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=o(e,(d=l(function(){function e(e){if(!s){if(s=!0,o=e,e=n(e),void 0!==c&&f.hasValue){var t=f.value;if(c(t,e))return i=t}return i=e}if(t=i,a(o,e))return t;var r=n(e);return void 0!==c&&c(t,r)?(o=e,t):(o=e,i=r)}var o,i,s=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,r,n,c]))[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}},{"6d34fa13a6b19654":"329PG"}],gaugC:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"store",()=>h),n.export(r,"persistor",()=>m),n.export(r,"useAppDispatch",()=>g),n.export(r,"useAppSelector",()=>y);var a=e("@reduxjs/toolkit"),o=e("react-redux"),i=e("redux-persist-webextension-storage"),s=e("@plasmohq/redux-persist"),l=e("@plasmohq/storage"),u=e("./storage-slice"),c=n.interopDefault(u);let d=(0,a.combineReducers)({odd:c.default}),f={key:"root",version:1,storage:i.localStorage},p=(0,s.persistReducer)(f,d);(0,a.configureStore)({reducer:d});let h=(0,a.configureStore)({reducer:p,middleware:e=>e({serializableCheck:{ignoredActions:[s.FLUSH,s.REHYDRATE,s.PAUSE,s.PERSIST,s.PURGE,s.REGISTER,s.RESYNC]}})}),m=(0,s.persistStore)(h);new(0,l.Storage)({area:"local"}).watch({[`persist:${f.key}`]:e=>{let{oldValue:t,newValue:r}=e,n=[];for(let e in t)t[e]!==r?.[e]&&n.push(e);for(let e in r)t?.[e]!==r[e]&&n.push(e);n.length>0&&m.resync()}});let g=o.useDispatch,y=o.useSelector},{"@reduxjs/toolkit":"59iT9","react-redux":"lWScv","redux-persist-webextension-storage":"jixDK","@plasmohq/redux-persist":"ilqfc","@plasmohq/storage":"loHJm","./storage-slice":"kUwPb","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],jixDK:[function(e,t,r){var n=o(e("5d4f71de55428f87")),a=o(e("19680ef65d313b"));function o(e){return e&&e.__esModule?e:{default:e}}t.exports={localStorage:n.default,syncStorage:a.default}},{"5d4f71de55428f87":"5WzxA","19680ef65d313b":"jNPIy"}],"5WzxA":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n,a=(n=e("4ad5e0f4e633ccb5"))&&n.__esModule?n:{default:n};r.default=(0,a.default)("local")},{"4ad5e0f4e633ccb5":"jm6eD"}],jm6eD:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return{getItem:function(t){return new Promise(function(r,n){chrome.storage[e].get(t,function(e){null==chrome.runtime.lastError?r(e[t]):n()})})},removeItem:function(t){return new Promise(function(r,n){chrome.storage[e].remove(t,function(){null==chrome.runtime.lastError?r():n()})})},setItem:function(t,r){return new Promise(function(n,a){var o;chrome.storage[e].set((t in(o={})?Object.defineProperty(o,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[t]=r,o),function(){null==chrome.runtime.lastError?n():a()})})}}}},{}],jNPIy:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n,a=(n=e("d6e6ff7339f123c9"))&&n.__esModule?n:{default:n};r.default=(0,a.default)("sync")},{d6e6ff7339f123c9:"jm6eD"}],ilqfc:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"persistReducer",()=>o.default),n.export(r,"persistCombineReducers",()=>s.default),n.export(r,"persistStore",()=>u.default),n.export(r,"createMigrate",()=>d.default),n.export(r,"createTransform",()=>p.default),n.export(r,"getStoredState",()=>m.default),n.export(r,"createPersistoid",()=>y.default),n.export(r,"purgeStoredState",()=>_.default);var a=e("./persistReducer"),o=n.interopDefault(a),i=e("./persistCombineReducers"),s=n.interopDefault(i),l=e("./persistStore"),u=n.interopDefault(l),c=e("./createMigrate"),d=n.interopDefault(c),f=e("./createTransform"),p=n.interopDefault(f),h=e("./getStoredState"),m=n.interopDefault(h),g=e("./createPersistoid"),y=n.interopDefault(g),b=e("./purgeStoredState"),_=n.interopDefault(b),T=e("./constants");n.exportAll(T,r)},{"./persistReducer":"d1KP6","./persistCombineReducers":"d1wD4","./persistStore":"c2S7r","./createMigrate":"epj2V","./createTransform":"lxpRa","./getStoredState":"9U9OG","./createPersistoid":"bclqy","./purgeStoredState":"9MOOt","./constants":"2S8AY","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],d1KP6:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>h);var a=e("./constants"),o=e("./stateReconciler/autoMergeLevel1"),i=n.interopDefault(o),s=e("./createPersistoid"),l=n.interopDefault(s),u=e("./getStoredState"),c=n.interopDefault(u),d=e("./purgeStoredState"),f=n.interopDefault(d),p=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function h(e,t){let r=void 0!==e.version?e.version:a.DEFAULT_VERSION,n=void 0===e.stateReconciler?i.default:e.stateReconciler,o=e.getStoredState||c.default,s=void 0!==e.timeout?e.timeout:5e3,u=null,d=!1,h=!0,m=e=>(e._persist.rehydrated&&u&&!h&&u.update(e),e);return(i,c)=>{let g=i||{},{_persist:y}=g,b=p(g,["_persist"]);if(c.type===a.PERSIST){let n=!1,a=(t,r)=>{n||(c.rehydrate(e.key,t,r),n=!0)};if(s&&setTimeout(()=>{n||a(void 0,Error(`redux-persist: persist timed out for persist key "${e.key}"`))},s),h=!1,u||(u=(0,l.default)(e)),y)return Object.assign(Object.assign({},t(b,c)),{_persist:y});if("function"!=typeof c.rehydrate||"function"!=typeof c.register)throw Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return c.register(e.key),o(e).then(t=>{if(t){let n=e.migrate||((e,t)=>Promise.resolve(e));n(t,r).then(e=>{a(e)},e=>{a(void 0,e)})}},e=>{a(void 0,e)}),Object.assign(Object.assign({},t(b,c)),{_persist:{version:r,rehydrated:!1}})}if(c.type===a.PURGE)return d=!0,c.result((0,f.default)(e)),Object.assign(Object.assign({},t(b,c)),{_persist:y});if(c.type===a.RESYNC)return o(e).then(t=>c.rehydrate(e.key,t,void 0),t=>c.rehydrate(e.key,void 0,t)).then(()=>c.result()),Object.assign(Object.assign({},t(b,c)),{_persist:{version:r,rehydrated:!1}});if(c.type===a.FLUSH)return c.result(u&&u.flush()),Object.assign(Object.assign({},t(b,c)),{_persist:y});if(c.type===a.PAUSE)h=!0;else if(c.type===a.REHYDRATE){if(d)return Object.assign(Object.assign({},b),{_persist:Object.assign(Object.assign({},y),{rehydrated:!0})});if(c.key===e.key){let r=t(b,c),a=c.payload,o=!1!==n&&void 0!==a?n(a,i,r,e):r,s=Object.assign(Object.assign({},o),{_persist:Object.assign(Object.assign({},y),{rehydrated:!0})});return m(s)}}if(!y)return t(i,c);let _=t(b,c);return _===b?i:m(Object.assign(Object.assign({},_),{_persist:y}))}}},{"./constants":"2S8AY","./stateReconciler/autoMergeLevel1":"lm0ey","./createPersistoid":"bclqy","./getStoredState":"9U9OG","./purgeStoredState":"9MOOt","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],"2S8AY":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"KEY_PREFIX",()=>a),n.export(r,"FLUSH",()=>o),n.export(r,"REHYDRATE",()=>i),n.export(r,"RESYNC",()=>s),n.export(r,"PAUSE",()=>l),n.export(r,"PERSIST",()=>u),n.export(r,"PURGE",()=>c),n.export(r,"REGISTER",()=>d),n.export(r,"DEFAULT_VERSION",()=>f);let a="persist:",o="persist/FLUSH",i="persist/REHYDRATE",s="persist/RESYNC",l="persist/PAUSE",u="persist/PERSIST",c="persist/PURGE",d="persist/REGISTER",f=-1},{"@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],lm0ey:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e,t,r,{debug:n}){let a=Object.assign({},r);if(e&&"object"==typeof e){let n=Object.keys(e);n.forEach(n=>{"_persist"!==n&&t[n]===r[n]&&(a[n]=e[n])})}return a}n.defineInteropFlag(r),n.export(r,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],bclqy:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>o);var a=e("./constants");function o(e){let t;let r=e.blacklist||null,n=e.whitelist||null,o=e.transforms||[],s=e.throttle||0,l=`${void 0!==e.keyPrefix?e.keyPrefix:a.KEY_PREFIX}${e.key}`,u=e.storage;t=!1===e.serialize?e=>e:"function"==typeof e.serialize?e.serialize:i;let c=e.writeFailHandler||null,d={},f={},p=[],h=null,m=null;function g(){if(0===p.length){h&&clearInterval(h),h=null;return}let e=p.shift();if(void 0===e)return;let r=o.reduce((t,r)=>r.in(t,e,d),d[e]);if(void 0!==r)try{f[e]=t(r)}catch(e){console.error("redux-persist/createPersistoid: error serializing state",e)}else delete f[e];0===p.length&&(Object.keys(f).forEach(e=>{void 0===d[e]&&delete f[e]}),m=u.setItem(l,t(f)).catch(b))}function y(e){return(!n||-1!==n.indexOf(e)||"_persist"===e)&&(!r||-1===r.indexOf(e))}function b(e){c&&c(e)}return{update:e=>{Object.keys(e).forEach(t=>{y(t)&&d[t]!==e[t]&&-1===p.indexOf(t)&&p.push(t)}),Object.keys(d).forEach(t=>{void 0===e[t]&&y(t)&&-1===p.indexOf(t)&&void 0!==d[t]&&p.push(t)}),null===h&&(h=setInterval(g,s)),d=e},flush:()=>{for(;0!==p.length;)g();return m||Promise.resolve()}}}function i(e){return JSON.stringify(e)}},{"./constants":"2S8AY","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],"9U9OG":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>o);var a=e("./constants");function o(e){let t;let r=e.transforms||[],n=`${void 0!==e.keyPrefix?e.keyPrefix:a.KEY_PREFIX}${e.key}`,o=e.storage;return e.debug,t=!1===e.deserialize?e=>e:"function"==typeof e.deserialize?e.deserialize:i,o.getItem(n).then(e=>{if(e)try{let n={},a=t(e);return Object.keys(a).forEach(e=>{n[e]=r.reduceRight((t,r)=>r.out(t,e,a),t(a[e]))}),n}catch(e){throw e}})}function i(e){return JSON.parse(e)}},{"./constants":"2S8AY","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],"9MOOt":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>o);var a=e("./constants");function o(e){let t=e.storage,r=`${void 0!==e.keyPrefix?e.keyPrefix:a.KEY_PREFIX}${e.key}`;return t.removeItem(r,i)}function i(e){}},{"./constants":"2S8AY","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],d1wD4:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>u);var a=e("redux"),o=e("./persistReducer"),i=n.interopDefault(o),s=e("./stateReconciler/autoMergeLevel2"),l=n.interopDefault(s);function u(e,t){return e.stateReconciler=void 0===e.stateReconciler?l.default:e.stateReconciler,(0,i.default)(e,(0,a.combineReducers)(t))}},{redux:"6SUHM","./persistReducer":"d1KP6","./stateReconciler/autoMergeLevel2":"gVnNc","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],gVnNc:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e,t,r,{debug:n}){let a=Object.assign({},r);if(e&&"object"==typeof e){let n=Object.keys(e);n.forEach(n=>{if("_persist"!==n&&t[n]===r[n]){var o;if(null!==(o=r[n])&&!Array.isArray(o)&&"object"==typeof o){a[n]=Object.assign(Object.assign({},a[n]),e[n]);return}a[n]=e[n]}})}return a}n.defineInteropFlag(r),n.export(r,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],c2S7r:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>l);var a=e("redux"),o=e("./constants");let i={registry:[],bootstrapped:!1},s=(e=i,t)=>{let r=e.registry.indexOf(t.key),n=[...e.registry];switch(t.type){case o.REGISTER:return Object.assign(Object.assign({},e),{registry:[...e.registry,t.key]});case o.REHYDRATE:return n.splice(r,1),Object.assign(Object.assign({},e),{registry:n,bootstrapped:0===n.length});default:return e}};function l(e,t,r){let n=r||!1,l=(0,a.createStore)(s,i,t&&t.enhancer?t.enhancer:void 0),u=e=>{l.dispatch({type:o.REGISTER,key:e})},c=(t,r,a)=>{let i={type:o.REHYDRATE,payload:r,err:a,key:t};e.dispatch(i),l.dispatch(i),"function"==typeof n&&d.getState().bootstrapped&&(n(),n=!1)},d=Object.assign(Object.assign({},l),{purge:()=>{let t=[];return e.dispatch({type:o.PURGE,result:e=>{t.push(e)}}),Promise.all(t)},flush:()=>{let t=[];return e.dispatch({type:o.FLUSH,result:e=>{t.push(e)}}),Promise.all(t)},pause:()=>{e.dispatch({type:o.PAUSE})},persist:()=>{e.dispatch({type:o.PERSIST,register:u,rehydrate:c})},resync:()=>new Promise(t=>{e.dispatch({type:o.RESYNC,rehydrate:c,result:()=>t()})})});return t&&t.manualPersist||d.persist(),d}},{redux:"6SUHM","./constants":"2S8AY","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],epj2V:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>o);var a=e("./constants");function o(e,t){let{debug:r}=t||{};return function(t,r){if(!t)return Promise.resolve(void 0);let n=t._persist&&void 0!==t._persist.version?t._persist.version:a.DEFAULT_VERSION;if(n===r||n>r)return Promise.resolve(t);let o=Object.keys(e).map(e=>parseInt(e)).filter(e=>r>=e&&e>n).sort((e,t)=>e-t);try{let r=o.reduce((t,r)=>e[r](t),t);return Promise.resolve(r)}catch(e){return Promise.reject(e)}}}},{"./constants":"2S8AY","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],lxpRa:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e,t,r={}){let n=r.whitelist||null,a=r.blacklist||null;function o(e){return!!n&&-1===n.indexOf(e)||!!a&&-1!==a.indexOf(e)}return{in:(t,r,n)=>!o(r)&&e?e(t,r,n):t,out:(e,r,n)=>!o(r)&&t?t(e,r,n):e}}n.defineInteropFlag(r),n.export(r,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],loHJm:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"BaseStorage",()=>s),n.export(r,"Storage",()=>l);var a=e("pify"),o=n.interopDefault(a),i=()=>{try{let e=globalThis.navigator?.userAgent.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];if("Chrome"===e[1])return 100>parseInt(e[2])||globalThis.chrome.runtime?.getManifest()?.manifest_version===2}catch{}return!1},s=class{#e;#t;get primaryClient(){return this.#t}#r;get secondaryClient(){return this.#r}#n;get area(){return this.#n}get hasWebApi(){try{return"u">typeof window&&!!window.localStorage}catch(e){return console.error(e),!1}}#a=new Map;#o;get copiedKeySet(){return this.#o}isCopied=e=>this.hasWebApi&&(this.allCopied||this.copiedKeySet.has(e));#i=!1;get allCopied(){return this.#i}getExtStorageApi=()=>globalThis.browser?.storage||globalThis.chrome?.storage;get hasExtensionApi(){try{return!!this.getExtStorageApi()}catch(e){return console.error(e),!1}}isWatchSupported=()=>this.hasExtensionApi;keyNamespace="";isValidKey=e=>e.startsWith(this.keyNamespace);getNamespacedKey=e=>`${this.keyNamespace}${e}`;getUnnamespacedKey=e=>e.slice(this.keyNamespace.length);constructor({area:e="sync",allCopied:t=!1,copiedKeyList:r=[]}={}){this.setCopiedKeySet(r),this.#n=e,this.#i=t;try{this.hasWebApi&&(t||r.length>0)&&(this.#r=window.localStorage)}catch{}try{this.hasExtensionApi&&(this.#e=this.getExtStorageApi(),i()?this.#t=(0,o.default)(this.#e[this.area],{exclude:["getBytesInUse"],errorFirst:!1}):this.#t=this.#e[this.area])}catch{}}setCopiedKeySet(e){this.#o=new Set(e)}rawGetAll=()=>this.#t?.get();getAll=async()=>Object.entries(await this.rawGetAll()).filter(([e])=>this.isValidKey(e)).reduce((e,[t,r])=>(e[this.getUnnamespacedKey(t)]=r,e),{});copy=async e=>{let t=void 0===e;if(!t&&!this.copiedKeySet.has(e)||!this.allCopied||!this.hasExtensionApi)return!1;let r=this.allCopied?await this.rawGetAll():await this.#t.get((t?[...this.copiedKeySet]:[e]).map(this.getNamespacedKey));if(!r)return!1;let n=!1;for(let e in r){let t=r[e],a=this.#r?.getItem(e);this.#r?.setItem(e,t),n||=t!==a}return n};rawGet=async e=>this.hasExtensionApi?(await this.#t.get(e))[e]:this.isCopied(e)?this.#r?.getItem(e):null;rawSet=async(e,t)=>(this.isCopied(e)&&this.#r?.setItem(e,t),this.hasExtensionApi&&await this.#t.set({[e]:t}),null);clear=async(e=!1)=>{e&&this.#r?.clear(),await this.#t.clear()};rawRemove=async e=>{this.isCopied(e)&&this.#r?.removeItem(e),this.hasExtensionApi&&await this.#t.remove(e)};removeAll=async()=>{let e=Object.keys(await this.getAll());await Promise.all(e.map(this.remove))};watch=e=>{let t=this.isWatchSupported();return t&&this.#s(e),t};#s=e=>{for(let t in e){let r=this.getNamespacedKey(t),n=this.#a.get(r)?.callbackSet||new Set;if(n.add(e[t]),n.size>1)continue;let a=(e,t)=>{if(t!==this.area||!e[r])return;let n=this.#a.get(r);if(!n)throw Error(`Storage comms does not exist for nsKey: ${r}`);Promise.all([this.parseValue(e[r].newValue),this.parseValue(e[r].oldValue)]).then(([e,r])=>{for(let a of n.callbackSet)a({newValue:e,oldValue:r},t)})};this.#e.onChanged.addListener(a),this.#a.set(r,{callbackSet:n,listener:a})}};unwatch=e=>{let t=this.isWatchSupported();return t&&this.#l(e),t};#l(e){for(let t in e){let r=this.getNamespacedKey(t),n=e[t],a=this.#a.get(r);a&&(a.callbackSet.delete(n),0===a.callbackSet.size&&(this.#a.delete(r),this.#e.onChanged.removeListener(a.listener)))}}unwatchAll=()=>this.#u();#u(){this.#a.forEach(({listener:e})=>this.#e.onChanged.removeListener(e)),this.#a.clear()}async getItem(e){return this.get(e)}async setItem(e,t){await this.set(e,t)}async removeItem(e){return this.remove(e)}},l=class extends s{get=async e=>{let t=this.getNamespacedKey(e),r=await this.rawGet(t);return this.parseValue(r)};set=async(e,t)=>{let r=this.getNamespacedKey(e),n=JSON.stringify(t);return this.rawSet(r,n)};remove=async e=>{let t=this.getNamespacedKey(e);return this.rawRemove(t)};setNamespace=e=>{this.keyNamespace=e};parseValue=async e=>{try{if(void 0!==e)return JSON.parse(e)}catch(e){console.error(e)}}}},{pify:"e8SYa","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],e8SYa:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>i);let a=(e,t,r,n)=>function(...a){let o=t.promiseModule;return new o((o,i)=>{t.multiArgs?a.push((...e)=>{t.errorFirst?e[0]?i(e):(e.shift(),o(e)):o(e)}):t.errorFirst?a.push((e,t)=>{e?i(e):o(t)}):a.push(o),Reflect.apply(e,this===r?n:this,a)})},o=new WeakMap;function i(e,t){t={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...t};let r=typeof e;if(!(null!==e&&("object"===r||"function"===r)))throw TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===e?"null":r}\``);let n=(e,r)=>{let n=o.get(e);if(n||(n={},o.set(e,n)),r in n)return n[r];let a=e=>"string"==typeof e||"symbol"==typeof r?r===e:e.test(r),i=Reflect.getOwnPropertyDescriptor(e,r),s=void 0===i||i.writable||i.configurable,l=t.include?t.include.some(e=>a(e)):!t.exclude.some(e=>a(e)),u=l&&s;return n[r]=u,u},i=new WeakMap,s=new Proxy(e,{apply(e,r,n){let o=i.get(e);if(o)return Reflect.apply(o,r,n);let l=t.excludeMain?e:a(e,t,s,e);return i.set(e,l),Reflect.apply(l,r,n)},get(e,r){let o=e[r];if(!n(e,r)||o===Function.prototype[r])return o;let l=i.get(o);if(l)return l;if("function"==typeof o){let r=a(o,t,s,e);return i.set(o,r),r}return o}});return s}},{"@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],kUwPb:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"setJwt",()=>i),n.export(r,"setHeadimgurl",()=>s),n.export(r,"setNickname",()=>l),n.export(r,"setPopupShow",()=>u);var a=e("@reduxjs/toolkit");let o=(0,a.createSlice)({name:"odd",initialState:{jwt:"",headimgurl:"",nickname:"",popupShow:!0},reducers:{setJwt:(e,t)=>{e.jwt=t.payload},setHeadimgurl:(e,t)=>{e.headimgurl=`${t.payload}`},setNickname:(e,t)=>{e.nickname=t.payload},setPopupShow:(e,t)=>{e.popupShow=t.payload}}}),{setJwt:i,setHeadimgurl:s,setNickname:l,setPopupShow:u}=o.actions;r.default=o.reducer},{"@reduxjs/toolkit":"59iT9","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],ftkuD:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"InvalidTokenError",()=>a),n.export(r,"jwtDecode",()=>o);class a extends Error{}function o(e,t){let r;if("string"!=typeof e)throw new a("Invalid token specified: must be a string");t||(t={});let n=!0===t.header?0:1,o=e.split(".")[n];if("string"!=typeof o)throw new a(`Invalid token specified: missing part #${n+1}`);try{r=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw Error("base64 string is not of the correct length")}try{var r;return r=t,decodeURIComponent(atob(r).replace(/(.)/g,(e,t)=>{let r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}catch(e){return atob(t)}}(o)}catch(e){throw new a(`Invalid token specified: invalid base64 for part #${n+1} (${e.message})`)}try{return JSON.parse(r)}catch(e){throw new a(`Invalid token specified: invalid json for part #${n+1} (${e.message})`)}}a.prototype.name="InvalidTokenError"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],"92GyB":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"relay",()=>m),n.export(r,"relayMessage",()=>h),n.export(r,"sendToActiveContentScript",()=>p),n.export(r,"sendToBackground",()=>d),n.export(r,"sendToBackgroundViaRelay",()=>g),n.export(r,"sendToContentScript",()=>f),n.export(r,"sendViaRelay",()=>y);var a=e("nanoid"),o=globalThis.browser?.tabs||globalThis.chrome?.tabs,i=()=>{let e=globalThis.browser?.runtime||globalThis.chrome?.runtime;if(!e)throw Error("Extension runtime is not available");return e},s=()=>{if(!o)throw Error("Extension tabs API is not available");return o},l=async()=>{let e=s(),[t]=await e.query({active:!0,currentWindow:!0});return t},u=(e,t)=>!t.__internal&&e.source===globalThis.window&&e.data.name===t.name&&(void 0===t.relayId||e.data.relayId===t.relayId),c=(e,t,r=globalThis.window)=>{let n=async n=>{if(u(n,e)&&!n.data.relayed){let a={name:e.name,relayId:e.relayId,body:n.data.body},o=await t?.(a);r.postMessage({name:e.name,relayId:e.relayId,instanceId:n.data.instanceId,body:o,relayed:!0},{targetOrigin:e.targetOrigin||"/"})}};return r.addEventListener("message",n),()=>r.removeEventListener("message",n)},d=async e=>i().sendMessage(e.extensionId??null,e),f=async e=>{let t="number"==typeof e.tabId?e.tabId:(await l())?.id;if(!t)throw Error("No active tab found to send message to.");return s().sendMessage(t,e)},p=f,h=e=>c(e,d),m=h,g=(e,t=globalThis.window)=>new Promise((r,n)=>{let o=(0,a.nanoid)(),i=new AbortController;t.addEventListener("message",t=>{u(t,e)&&t.data.relayed&&t.data.instanceId===o&&(r(t.data.body),i.abort())},{signal:i.signal}),t.postMessage({...e,instanceId:o},{targetOrigin:e.targetOrigin||"/"})}),y=g},{nanoid:"g2QpR","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],g2QpR:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"urlAlphabet",()=>a.urlAlphabet),n.export(r,"random",()=>o),n.export(r,"customRandom",()=>i),n.export(r,"customAlphabet",()=>s),n.export(r,"nanoid",()=>l);var a=e("./url-alphabet/index.js");let o=e=>crypto.getRandomValues(new Uint8Array(e)),i=(e,t,r)=>{let n=(2<<Math.log(e.length-1)/Math.LN2)-1,a=-~(1.6*n*t/e.length);return (o=t)=>{let i="";for(;;){let t=r(a),s=a;for(;s--;)if((i+=e[t[s]&n]||"").length===o)return i}}},s=(e,t=21)=>i(e,t,o),l=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((e,t)=>((t&=63)<36?e+=t.toString(36):t<62?e+=(t-26).toString(36).toUpperCase():t>62?e+="-":e+="_",e),"")},{"./url-alphabet/index.js":"iZI4R","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],iZI4R:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"urlAlphabet",()=>a);let a="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"},{"@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],"1qe3F":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"logger",()=>a);let a=new class{constructor(){this.isProduction=!0}log(...e){this.isProduction||console.log(...e)}info(...e){this.isProduction||console.info(...e)}error(...e){this.isProduction||console.error(...e)}warn(...e){this.isProduction||console.warn(...e)}debug(...e){this.isProduction||console.debug(...e)}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],hpDvz:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"storage",()=>o),n.export(r,"storageSync",()=>i);var a=e("@plasmohq/storage");let o=new a.Storage({area:"local"}),i=new a.Storage({area:"sync"})},{"@plasmohq/storage":"loHJm","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],"1N71i":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"sleep",()=>o),n.export(r,"clickYoutubeSubtitleBtn",()=>i);var a=e("./error");function o(e){return new Promise(t=>setTimeout(t,e))}function i(){try{let e=document.querySelector("button.ytp-subtitles-button.ytp-button");if(e){let t=e.getAttribute("aria-pressed"),r=e.querySelector("svg");"false"===t&&"1"===r.getAttribute("fill-opacity")&&e.click()}}catch(e){(0,a.handleError)({error:e,msgToShow:"tools.subtitle.clickYoutubeSubtitleBtn()"})}}},{"./error":"82aS0","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],"9ypWX":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"haveNoPermission",()=>i),n.export(r,"withPermissionCheck",()=>s);var a=e("react-toastify"),o=e("../redux/storeNoStorage");function i(e){let{userInfo:t}=(0,o.store).getState().noStorager,r=t?.zm1_expired_or_not;return r&&"true"!==e}function s(e,t,r,n){return function(...o){if(i(t)){(0,a.toast).warning(r,{autoClose:5e3}),n&&n.open({duration:6e3,type:"error",content:`${r}`});return}return e(...o)}}},{"react-toastify":"7cUZK","../redux/storeNoStorage":"20ikG","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],"3ofev":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"AZURE_LANGUAGES_TRANS",()=>a),n.export(r,"LANG_MAP",()=>o);let a=[{value:"af",label:"\u5357\u975e\u8377\u5170\u8bed Afrikaans"},{value:"am",label:"\u963f\u59c6\u54c8\u62c9\u8bed \u12a0\u121b\u122d\u129b"},{value:"ar",label:"\u963f\u62c9\u4f2f\u8bed \u0627\u0644\u0639\u0631\u0628\u064a\u0629"},{value:"as",label:"\u963f\u8428\u59c6\u8bed \u0985\u09b8\u09ae\u09c0\u09af\u09bc\u09be"},{value:"az",label:"\u963f\u585e\u62dc\u7586\u8bed Az\u0259rbaycan"},{value:"ba",label:"\u5df4\u4ec0\u57fa\u5c14\u8bed Bashkir"},{value:"bg",label:"\u4fdd\u52a0\u5229\u4e9a\u8bed \u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438"},{value:"bho",label:"Bhojpuri \u092d\u094b\u091c\u092a\u0941\u0930\u0940"},{value:"bn",label:"\u5b5f\u52a0\u62c9\u8bed \u09ac\u09be\u0982\u09b2\u09be"},{value:"bo",label:"\u85cf\u8bed \u0f56\u0f7c\u0f51\u0f0b\u0f66\u0f90\u0f51\u0f0b"},{value:"brx",label:"Bodo \u092c\u0921\u093c\u094b"},{value:"bs",label:"\u6ce2\u65af\u5c3c\u4e9a\u8bed Bosanski"},{value:"ca",label:"\u52a0\u6cf0\u7f57\u5c3c\u4e9a\u8bed Catal\xe0"},{value:"cs",label:"\u6377\u514b\u8bed \u010ce\u0161tina"},{value:"cy",label:"\u5a01\u5c14\u58eb\u8bed Cymraeg"},{value:"da",label:"\u4e39\u9ea6\u8bed Dansk"},{value:"de",label:"\u5fb7\u8bed Deutsch"},{value:"doi",label:"Dogri \u0921\u094b\u0917\u0930\u0940"},{value:"dsb",label:"\u4e0b\u7d22\u5e03\u8bed Dolnoserb\u0161\u0107ina"},{value:"dv",label:"\u8fea\u7ef4\u5e0c\u8bed \u078b\u07a8\u0788\u07ac\u0780\u07a8\u0784\u07a6\u0790\u07b0"},{value:"el",label:"\u5e0c\u814a\u8bed \u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac"},{value:"en",label:"\u82f1\u8bed English"},{value:"es",label:"\u897f\u73ed\u7259\u8bed Espa\xf1ol"},{value:"et",label:"\u7231\u6c99\u5c3c\u4e9a\u8bed Eesti"},{value:"eu",label:"\u5df4\u65af\u514b\u8bed Euskara"},{value:"fa",label:"\u6ce2\u65af\u8bed \u0641\u0627\u0631\u0633\u06cc"},{value:"fi",label:"\u82ac\u5170\u8bed Suomi"},{value:"fil",label:"\u83f2\u5f8b\u5bbe\u8bed Filipino"},{value:"fj",label:"\u6590\u6d4e\u8bed Na Vosa Vakaviti"},{value:"fo",label:"\u6cd5\u7f57\u8bed F\xf8royskt"},{value:"fr",label:"\u6cd5\u8bed Fran\xe7ais"},{value:"fr-CA",label:"\u6cd5\u8bed (\u52a0\u62ff\u5927) Fran\xe7ais (Canada)"},{value:"ga",label:"\u7231\u5c14\u5170\u8bed Gaeilge"},{value:"gl",label:"\u52a0\u5229\u897f\u4e9a\u8bed Galego"},{value:"gom",label:"Konkani \u0915\u094b\u0902\u0915\u0923\u0940"},{value:"gu",label:"\u53e4\u5409\u62c9\u7279\u8bed \u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0"},{value:"ha",label:"\u8c6a\u8428\u8bed Hausa"},{value:"he",label:"\u5e0c\u4f2f\u6765\u8bed \u05e2\u05d1\u05e8\u05d9\u05ea"},{value:"hi",label:"\u5370\u5730\u8bed \u0939\u093f\u0928\u094d\u0926\u0940"},{value:"hne",label:"Chhattisgarhi \u091b\u0924\u094d\u0924\u0940\u0938\u0917\u0922\u093c\u0940"},{value:"hr",label:"\u514b\u7f57\u5730\u4e9a\u8bed Hrvatski"},{value:"hsb",label:"\u4e0a\u7d22\u5e03\u8bed Hornjoserb\u0161\u0107ina"},{value:"ht",label:"\u6d77\u5730\u514b\u91cc\u5965\u5c14\u8bed Haitian Creole"},{value:"hu",label:"\u5308\u7259\u5229\u8bed Magyar"},{value:"hy",label:"\u4e9a\u7f8e\u5c3c\u4e9a\u8bed \u0540\u0561\u0575\u0565\u0580\u0565\u0576"},{value:"id",label:"\u5370\u5ea6\u5c3c\u897f\u4e9a\u8bed Indonesia"},{value:"ig",label:"\u4f0a\u535a\u8bed \xc1s\u1ee5\u0300s\u1ee5\u0301 \xccgb\xf2"},{value:"ikt",label:"Inuinnaqtun Inuinnaqtun"},{value:"is",label:"\u51b0\u5c9b\u8bed \xcdslenska"},{value:"it",label:"\u610f\u5927\u5229\u8bed Italiano"},{value:"iu",label:"\u56e0\u7ebd\u7279\u8bed \u1403\u14c4\u1483\u144e\u1450\u1466"},{value:"iu-Latn",label:"Inuktitut (Latin) Inuktitut (Latin)"},{value:"ja",label:"\u65e5\u8bed \u65e5\u672c\u8a9e"},{value:"ka",label:"\u683c\u9c81\u5409\u4e9a\u8bed \u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8"},{value:"kk",label:"\u54c8\u8428\u514b\u8bed \u049a\u0430\u0437\u0430\u049b \u0422\u0456\u043b\u0456"},{value:"km",label:"\u9ad8\u68c9\u8bed \u1781\u17d2\u1798\u17c2\u179a"},{value:"kmr",label:"\u5e93\u5c14\u5fb7\u8bed (\u5317) Kurd\xee (Bakur)"},{value:"kn",label:"\u5361\u7eb3\u8fbe\u8bed \u0c95\u0ca8\u0ccd\u0ca8\u0ca1"},{value:"ko",label:"\u97e9\u8bed \ud55c\uad6d\uc5b4"},{value:"ks",label:"Kashmiri \u06a9\u0672\u0634\u064f\u0631"},{value:"ku",label:"\u5e93\u5c14\u5fb7\u8bed (\u4e2d) Kurd\xee (Nav\xeen)"},{value:"ky",label:"\u67ef\u5c14\u514b\u5b5c\u8bed \u041a\u044b\u0440\u0433\u044b\u0437\u0447\u0430"},{value:"ln",label:"\u6797\u52a0\u62c9\u8bed Ling\xe1la"},{value:"lo",label:"\u8001\u631d\u8bed \u0ea5\u0eb2\u0ea7"},{value:"lt",label:"\u7acb\u9676\u5b9b\u8bed Lietuvi\u0173"},{value:"lug",label:"Ganda Ganda"},{value:"lv",label:"\u62c9\u8131\u7ef4\u4e9a\u8bed Latvie\u0161u"},{value:"lzh",label:"Chinese (Literary) \u4e2d\u6587 (\u6587\u8a00\u6587)"},{value:"mai",label:"\u8fc8\u8482\u5229\u8bed \u092e\u0948\u0925\u093f\u0932\u0940"},{value:"mg",label:"\u9a6c\u62c9\u52a0\u65af\u8bed Malagasy"},{value:"mi",label:"\u6bdb\u5229\u8bed Te Reo M\u0101ori"},{value:"mk",label:"\u9a6c\u5176\u987f\u8bed \u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438"},{value:"ml",label:"\u9a6c\u62c9\u96c5\u62c9\u59c6\u8bed \u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02"},{value:"mn-Cyrl",label:"Mongolian (Cyrillic) \u041c\u043e\u043d\u0433\u043e\u043b"},{value:"mn-Mong",label:"Mongolian (Traditional) \u182e\u1823\u1829\u182d\u1823\u182f \u182c\u1821\u182f\u1821"},{value:"mni",label:"Manipuri \uabc3\uabe9\uabc7\uabe9\uabc2\uabe3\uabdf"},{value:"mr",label:"\u9a6c\u62c9\u5730\u8bed \u092e\u0930\u093e\u0920\u0940"},{value:"ms",label:"\u9a6c\u6765\u8bed Melayu"},{value:"mt",label:"\u9a6c\u8033\u4ed6\u8bed Malti"},{value:"mww",label:"\u82d7\u8bed Hmong Daw"},{value:"my",label:"\u7f05\u7538\u8bed \u1019\u103c\u1014\u103a\u1019\u102c"},{value:"nb",label:"\u4e66\u9762\u632a\u5a01\u8bed Norsk Bokm\xe5l"},{value:"ne",label:"\u5c3c\u6cca\u5c14\u8bed \u0928\u0947\u092a\u093e\u0932\u0940"},{value:"nl",label:"\u8377\u5170\u8bed Nederlands"},{value:"nso",label:"Sesotho sa Leboa Sesotho sa Leboa"},{value:"nya",label:"Nyanja Nyanja"},{value:"or",label:"\u5965\u91cc\u4e9a\u8bed \u0b13\u0b21\u0b3c\u0b3f\u0b06"},{value:"otq",label:"\u514b\u96f7\u5854\u7f57\u5965\u6258\u7c73\u8bed H\xf1\xe4h\xf1u"},{value:"pa",label:"\u65c1\u906e\u666e\u8bed \u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40"},{value:"pl",label:"\u6ce2\u5170\u8bed Polski"},{value:"prs",label:"\u8fbe\u91cc\u8bed \u062f\u0631\u06cc"},{value:"ps",label:"\u666e\u4ec0\u56fe\u8bed \u067e\u069a\u062a\u0648"},{value:"pt",label:"\u8461\u8404\u7259\u8bed (\u5df4\u897f) Portugu\xeas (Brasil)"},{value:"pt-PT",label:"\u8461\u8404\u7259\u8bed (\u8461\u8404\u7259) Portugu\xeas (Portugal)"},{value:"ro",label:"\u7f57\u9a6c\u5c3c\u4e9a\u8bed Rom\xe2n\u0103"},{value:"ru",label:"\u4fc4\u8bed \u0420\u0443\u0441\u0441\u043a\u0438\u0439"},{value:"run",label:"Rundi Rundi"},{value:"rw",label:"\u5362\u65fa\u8fbe\u8bed Kinyarwanda"},{value:"sd",label:"\u4fe1\u5fb7\u8bed \u0633\u0646\u068c\u064a"},{value:"si",label:"\u50e7\u4f3d\u7f57\u8bed \u0dc3\u0dd2\u0d82\u0dc4\u0dbd"},{value:"sk",label:"\u65af\u6d1b\u4f10\u514b\u8bed Sloven\u010dina"},{value:"sl",label:"\u65af\u6d1b\u6587\u5c3c\u4e9a\u8bed Sloven\u0161\u010dina"},{value:"sm",label:"\u8428\u6469\u4e9a\u8bed Gagana S\u0101moa"},{value:"sn",label:"\u7ecd\u7eb3\u8bed chiShona"},{value:"so",label:"\u7d22\u9a6c\u91cc\u8bed Soomaali"},{value:"sq",label:"\u963f\u5c14\u5df4\u5c3c\u4e9a\u8bed Shqip"},{value:"sr-Cyrl",label:"\u585e\u5c14\u7ef4\u4e9a\u8bed (\u897f\u91cc\u5c14\u6587) \u0421\u0440\u043f\u0441\u043a\u0438 (\u045b\u0438\u0440\u0438\u043b\u0438\u0446\u0430)"},{value:"sr-Latn",label:"\u585e\u5c14\u7ef4\u4e9a\u8bed (\u62c9\u4e01\u6587) Srpski (latinica)"},{value:"st",label:"Sesotho Sesotho"},{value:"sv",label:"\u745e\u5178\u8bed Svenska"},{value:"sw",label:"\u65af\u74e6\u5e0c\u91cc\u8bed Kiswahili"},{value:"ta",label:"\u6cf0\u7c73\u5c14\u8bed \u0ba4\u0bae\u0bbf\u0bb4\u0bcd"},{value:"te",label:"\u6cf0\u5362\u56fa\u8bed \u0c24\u0c46\u0c32\u0c41\u0c17\u0c41"},{value:"th",label:"\u6cf0\u8bed \u0e44\u0e17\u0e22"},{value:"ti",label:"\u63d0\u683c\u5229\u5c3c\u4e9a\u8bed \u1275\u130d\u122d"},{value:"tk",label:"\u571f\u5e93\u66fc\u8bed T\xfcrkmen Dili"},{value:"tlh-Latn",label:"\u514b\u6797\u8d21\u8bed (\u62c9\u4e01\u6587) Klingon (Latin)"},{value:"tlh-Piqd",label:"\u514b\u6797\u8d21\u8bed (pIqaD) Klingon (pIqaD)"},{value:"tn",label:"Setswana Setswana"},{value:"to",label:"\u6c64\u52a0\u8bed Lea Fakatonga"},{value:"tr",label:"\u571f\u8033\u5176\u8bed T\xfcrk\xe7e"},{value:"tt",label:"\u9791\u977c\u8bed \u0422\u0430\u0442\u0430\u0440"},{value:"ty",label:"\u5854\u5e0c\u63d0\u8bed Reo Tahiti"},{value:"ug",label:"\u7ef4\u543e\u5c14\u8bed \u0626\u06c7\u064a\u063a\u06c7\u0631\u0686\u06d5"},{value:"uk",label:"\u4e4c\u514b\u5170\u8bed \u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430"},{value:"ur",label:"\u4e4c\u5c14\u90fd\u8bed \u0627\u0631\u062f\u0648"},{value:"uz",label:"\u4e4c\u5179\u522b\u514b\u8bed O\u2018Zbek"},{value:"vi",label:"\u8d8a\u5357\u8bed Ti\u1ebfng Vi\u1ec7t"},{value:"xh",label:"\u79d1\u8428\u8bed isiXhosa"},{value:"yo",label:"\u7ea6\u9c81\u5df4\u8bed \xc8d\xe8 Yor\xf9b\xe1"},{value:"yua",label:"\u5c24\u5361\u7279\u514b\u739b\u96c5\u8bed Yucatec Maya"},{value:"yue",label:"\u7ca4\u8bed (\u7e41\u4f53) \u7cb5\u8a9e (\u7e41\u9ad4)"},{value:"zh-Hans",label:"\u4e2d\u6587 (\u7b80\u4f53) \u4e2d\u6587 (\u7b80\u4f53)"},{value:"zh-Hant",label:"\u4e2d\u6587 (\u7e41\u4f53) \u7e41\u9ad4\u4e2d\u6587 (\u7e41\u9ad4)"},{value:"zu",label:"\u7956\u9c81\u8bed Isi-Zulu"}],o={ar:"\u963f\u62c9\u4f2f\u8bed",am:"\u963f\u59c6\u54c8\u62c9\u8bed",bg:"\u4fdd\u52a0\u5229\u4e9a\u8bed",bn:"\u5b5f\u52a0\u62c9\u8bed",ca:"\u52a0\u6cf0\u7f57\u5c3c\u4e9a\u8bed",cs:"\u6377\u514b\u8bed",da:"\u4e39\u9ea6\u8bed",de:"\u5fb7\u8bed",el:"\u5e0c\u814a\u8bed",en:"\u82f1\u8bed",en_AU:"\u82f1\u8bed\uff08\u6fb3\u5927\u5229\u4e9a\uff09",en_GB:"\u82f1\u8bed\uff08\u82f1\u56fd\uff09",en_US:"\u82f1\u8bed\uff08\u7f8e\u56fd\uff09",es:"\u897f\u73ed\u7259\u8bed",es_419:"\u897f\u73ed\u7259\u8bed\uff08\u62c9\u4e01\u7f8e\u6d32\u548c\u52a0\u52d2\u6bd4\u5730\u533a\uff09",et:"\u7231\u6c99\u5c3c\u4e9a\u8bed",fa:"\u6ce2\u65af\u8bed",fi:"\u82ac\u5170\u8bed",fil:"\u83f2\u5f8b\u5bbe\u8bed",fr:"\u6cd5\u8bed",gu:"\u53e4\u5409\u62c9\u7279\u8bed",he:"\u5e0c\u4f2f\u6765\u8bed",hi:"\u5370\u5730\u8bed",hr:"\u514b\u7f57\u5730\u4e9a\u8bed",hu:"\u5308\u7259\u5229\u8bed",id:"\u5370\u5c3c\u8bed",it:"\u610f\u5927\u5229\u8bed",ja:"\u65e5\u8bed",kn:"\u5361\u7eb3\u8fbe\u8bed",ko:"\u97e9\u8bed",lt:"\u7acb\u9676\u5b9b\u8bed",lv:"\u62c9\u8131\u7ef4\u4e9a\u8bed",ml:"\u9a6c\u62c9\u96c5\u62c9\u59c6\u8bed",mr:"\u9a6c\u62c9\u5730\u8bed",ms:"\u9a6c\u6765\u8bed",nl:"\u8377\u5170\u8bed",no:"\u632a\u5a01\u8bed",pl:"\u6ce2\u5170\u8bed",pt:"\u8461\u8404\u7259\u8bed",pt_BR:"\u8461\u8404\u7259\u8bed\uff08\u5df4\u897f\uff09",pt_PT:"\u8461\u8404\u7259\u8bed\uff08\u8461\u8404\u7259\uff09",ro:"\u7f57\u9a6c\u5c3c\u4e9a\u8bed",ru:"\u4fc4\u8bed",sk:"\u65af\u6d1b\u4f10\u514b\u8bed",sl:"\u65af\u6d1b\u6587\u5c3c\u4e9a\u8bed",sr:"\u585e\u5c14\u7ef4\u4e9a\u8bed",sv:"\u745e\u5178\u8bed",sw:"\u65af\u74e6\u5e0c\u91cc\u8bed",ta:"\u6cf0\u7c73\u5c14\u8bed",te:"\u6cf0\u5362\u56fa\u8bed",th:"\u6cf0\u8bed ",tr:"\u571f\u8033\u5176\u8bed",uk:"\u4e4c\u514b\u5170\u8bed",vi:"\u8d8a\u5357\u8bed",zh:"\u4e2d\u6587",zh_CN:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",zh_TW:"\u4e2d\u6587\uff08\u53f0\u6e7e\uff09"}},{"@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],d2G9J:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"checkJWT",()=>s),n.export(r,"getJwtsId",()=>l),n.export(r,"getExtensionId",()=>u),n.export(r,"getExtensionOptionsUrl",()=>c),n.export(r,"openOptionsPage",()=>d);var a=e("jwt-decode"),o=e("@plasmohq/messaging"),i=e("react-toastify");function s(e){if(!e)return!1;let t={id:0,iat:0,exp:0};return e.length>1?t=(0,a.jwtDecode)(e):t.exp=0,!(!t?.id||t?.exp<Date.now()/1e3)}function l(e){try{if(!e)return null;let t={id:0,iat:0,exp:0};if(!(e.length>1)||(t=(0,a.jwtDecode)(e),!t?.id))return null;return t.id}catch(e){return null}}function u(){try{return chrome.runtime.id}catch(e){return console.error("\u65e0\u6cd5\u83b7\u53d6\u6269\u5c55ID:",e),null}}function c(){return chrome.runtime.getURL("options.html")||""}function d({paramValue:e,optionsUrl:t}){let r=`${t}?items=${encodeURIComponent(e)}`;(0,o.sendToBackground)({name:"subtitle-msg",body:{msgType:"open_options_page",optionsUrl:r}}).then(e=>{e?.resultArr?.length>0||e?.error&&((0,i.toast).dismiss(),(0,i.toast).error(`status:${e?.error},name:${e?.name},message:${e?.message}`,{autoClose:99999}))})}},{"jwt-decode":"ftkuD","@plasmohq/messaging":"92GyB","react-toastify":"7cUZK","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],"01Tjq":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default={}},{"@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],ggTOe:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default={}},{"@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],c24C4:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default={}},{"@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],"9rdCI":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js"),a=e("@plasmohq/messaging"),o=e("../redux/store"),i=e("~tools/constants"),s=e("~tools/logger"),l=e("date-and-time"),u=n.interopDefault(l),c=e("~tools/background"),d=e("~tools/jwt"),f=e("~tools/storages");let p=async()=>{let e=await (0,f.storage).get(i.STORAGE_RANDOMUUID);return void 0===e&&(e="undefined"!=typeof self&&self.crypto&&self.crypto.randomUUID?self.crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),(0,f.storage).set(i.STORAGE_RANDOMUUID,e)),(0,s.logger).log("randomUUID is ",e),e};async function h(){let[e]=await chrome.tabs.query({active:!0,lastFocusedWindow:!0});return e}async function m(e){await h()}async function g(){let e=new Date,t=(0,u.default).format(e,"YYYY-MM-DD HH:mm:ss");(0,s.logger).log(`in refreshJWT() ${t}`);let r=await (0,f.storageSync).get(i.ZIMU1_USESTORAGE_SYNC_JWT),n=await (0,f.storageSync).get(i.ZIMU1_USESTORAGE_SYNC_HEADIMGURL),a=await (0,f.storageSync).get(i.ZIMU1_USESTORAGE_SYNC_NICKNAME);if(!(0,d.checkJWT)(r)||!(0,c.checkJwtExpireByDays)(r))return;(0,s.logger).log(`after checkJwtExpireByDays() ${t}`);let o=new Headers;o.append("Authorization",`Bearer ${r}`),fetch("https://1zimu.com/subtitle/api/rjwt",{method:"POST",headers:o,redirect:"follow"}).then(async e=>{let t=await e.json();t?.jwt&&(0,d.checkJWT)(t.jwt)?(await (0,f.storageSync).set(i.ZIMU1_USESTORAGE_SYNC_JWT,t.jwt),y("zimu1_jwt",t.jwt),y("zimu1_headimgurl",n),y("zimu1_nickname",a)):console.warn("jwt isn't refresh!")}).catch(e=>(0,s.logger).error(e))}function y(e,t){let r=new Date,n=r.setDate(r.getDate()+365);var a={domain:i.ZIMU1_COM,path:"/",expirationDate:n,httpOnly:!1,name:e,value:t,url:`https://${i.ZIMU1_COM}`};chrome.cookies.set(a,function(e){})}async function b(e){e?.ret1?.retCreateArr?.length>0||e?.ret1?.retUpdateArr?.length>0?await (0,f.storage).set(i.STORAGE_IDLETIME_VIDEO_ACTIVETIME,i.IDLETIME_STORAGE_DEFAULT_VALUE):console.warn("STORAGE_IDLETIME_VIDEO_ACTIVETIME do not update"),e?.ret2?.retCreateArr?.length>0||e?.ret2?.retUpdateArr?.length>0?await (0,f.storage).set(i.STORAGE_IDLETIME_DRAGGABLESUBTITLELIST_ACTIVETIME,i.IDLETIME_STORAGE_DEFAULT_VALUE):console.warn("STORAGE_IDLETIME_DRAGGABLESUBTITLELIST_ACTIVETIME do not update"),e?.ret3?.retCreateArr?.length>0||e?.ret3?.retUpdateArr?.length>0?await (0,f.storage).set(i.STORAGE_IDLETIME_NEXTJSSUBTITLELIST_ACTIVETIME,i.IDLETIME_STORAGE_DEFAULT_VALUE):console.warn("STORAGE_IDLETIME_NEXTJSSUBTITLELIST_ACTIVETIME do not update"),e?.ret4?.retCreateArr?.length>0||e?.ret4?.retUpdateArr?.length>0?await (0,f.storage).set(i.STORAGE_IDLETIME_DRAGGABLEDICT_ACTIVETIME,i.IDLETIME_STORAGE_DEFAULT_VALUE):console.warn("STORAGE_IDLETIME_DRAGGABLEDICT_ACTIVETIME do not update"),e?.ret5?.retCreateArr?.length>0||e?.ret5?.retUpdateArr?.length>0?await (0,f.storage).set(i.STORAGE_IDLETIME_YOUTUBESUBTITLELIST_ACTIVETIME,i.IDLETIME_STORAGE_DEFAULT_VALUE):console.warn("STORAGE_IDLETIME_YOUTUBESUBTITLELIST_ACTIVETIME do not update"),e?.ret6?.retCreateArr?.length>0||e?.ret6?.retUpdateArr?.length>0?await (0,f.storage).set(i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_OTHER,i.IDLETIME_STORAGE_DEFAULT_VALUE):console.warn("STORAGE_IDLETIME_VIDEO_ACTIVETIME_OTHER do not update"),e?.ret7?.retCreateArr?.length>0||e?.ret7?.retUpdateArr?.length>0?await (0,f.storage).set(i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_YOUTUBE,i.IDLETIME_STORAGE_DEFAULT_VALUE):console.warn("STORAGE_IDLETIME_VIDEO_ACTIVETIME_YOUTUBE do not update"),e?.ret8?.retCreateArr?.length>0||e?.ret8?.retUpdateArr?.length>0?await (0,f.storage).set(i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_BILIBILI,i.IDLETIME_STORAGE_DEFAULT_VALUE):console.warn("STORAGE_IDLETIME_VIDEO_ACTIVETIME_BILIBILI do not update"),e?.ret9?.retCreateArr?.length>0||e?.ret9?.retUpdateArr?.length>0?await (0,f.storage).set(i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_1ZIMU,i.IDLETIME_STORAGE_DEFAULT_VALUE):console.warn("STORAGE_IDLETIME_VIDEO_ACTIVETIME_1ZIMU do not update"),e?.ret10?.retCreateArr?.length>0||e?.ret10?.retUpdateArr?.length>0?await (0,f.storage).set(i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_BAIDUPAN,i.IDLETIME_STORAGE_DEFAULT_VALUE):console.warn("STORAGE_IDLETIME_VIDEO_ACTIVETIME_BAIDUPAN do not update")}async function _(e){let t=new Headers;t.append("Content-Type","application/json");let r=JSON.stringify(e),n=await fetch("https://1zimu.com/subtitle/api/postzimuoptimeuuid",{method:"POST",headers:t,body:r,redirect:"follow"}),a=await n.json();(0,s.logger).log("resultJson in postActiveTimeWithUUIDInterval() is ",a),b(a)}async function T(){let e=await (0,f.storageSync).get(i.ZIMU1_USESTORAGE_SYNC_JWT),t=new Date,r=(0,u.default).format(t,"YYYY-MM-DD HH:mm:ss");(0,s.logger).log(`jwt in postActiveTimeInterval() ${r} :>> `,e);let n=await (0,f.storage).get(i.STORAGE_IDLETIME_VIDEO_ACTIVETIME),a=(0,c.deleteKeys)(n),o=await (0,f.storage).get(i.STORAGE_IDLETIME_DRAGGABLESUBTITLELIST_ACTIVETIME),l=(0,c.deleteKeys)(o),h=await (0,f.storage).get(i.STORAGE_IDLETIME_DRAGGABLEDICT_ACTIVETIME),m=(0,c.deleteKeys)(h),g=await (0,f.storage).get(i.STORAGE_IDLETIME_NEXTJSSUBTITLELIST_ACTIVETIME),y=(0,c.deleteKeys)(g),T=await (0,f.storage).get(i.STORAGE_IDLETIME_YOUTUBESUBTITLELIST_ACTIVETIME),S=(0,c.deleteKeys)(T),v=await (0,f.storage).get(i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_OTHER),w=(0,c.deleteKeys)(v),E=await (0,f.storage).get(i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_YOUTUBE),x=(0,c.deleteKeys)(E),I=await (0,f.storage).get(i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_BILIBILI),O=(0,c.deleteKeys)(I),A=await (0,f.storage).get(i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_1ZIMU),M=(0,c.deleteKeys)(A),k=await (0,f.storage).get(i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_BAIDUPAN),R=(0,c.deleteKeys)(k);if(0===Object.keys(l).length&&0===Object.keys(y).length&&0===Object.keys(S).length&&0===Object.keys(a).length&&0===Object.keys(m).length&&0===Object.keys(w).length&&0===Object.keys(O).length&&0===Object.keys(x).length&&0===Object.keys(M).length&&0===Object.keys(R).length){(0,s.logger).log("\u78c1\u76d8\u4e2d\u6570\u636e\u90fd\u4e3a\u7a7a\u65f6 return\uff0c\u51cf\u8f7b\u670d\u52a1\u5668\u538b\u529b");return}let D=await p(),L={uuid:D,[i.STORAGE_IDLETIME_VIDEO_ACTIVETIME]:a,[i.STORAGE_IDLETIME_DRAGGABLESUBTITLELIST_ACTIVETIME]:l,[i.STORAGE_IDLETIME_DRAGGABLEDICT_ACTIVETIME]:m,[i.STORAGE_IDLETIME_NEXTJSSUBTITLELIST_ACTIVETIME]:y,[i.STORAGE_IDLETIME_YOUTUBESUBTITLELIST_ACTIVETIME]:S,[i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_OTHER]:w,[i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_YOUTUBE]:x,[i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_BILIBILI]:O,[i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_1ZIMU]:M,[i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_BAIDUPAN]:R};if(!(0,d.checkJWT)(e)){await _(L);return}let C=new Headers;C.append("Content-Type","application/json"),C.append("Authorization",`Bearer ${e}`);let U=JSON.stringify(L),j=await fetch("https://1zimu.com/subtitle/api/postzimuoptime",{method:"POST",headers:C,body:U,redirect:"follow"}),P=await j.json();(0,s.logger).log("resultJson?.ret2?.retCreateArr?.length is ",P?.ret2?.retCreateArr?.length,"resultJson?.ret2?.retUpdateArr?.length is ",P?.ret2?.retUpdateArr?.length),(0,s.logger).log("resultJson?.ret8?.retCreateArr?.length is ",P?.ret8?.retCreateArr?.length,"resultJson?.ret8?.retUpdateArr?.length is ",P?.ret8?.retUpdateArr?.length),b(P)}(0,o.persistor).subscribe(()=>{o.store?.getState()?.odd?.popupShow?(chrome.action.setBadgeText({text:""}),chrome.action.setBadgeBackgroundColor({color:[0,0,0,0]})):(chrome.action.setBadgeText({text:"\u7981\u7528"}),chrome.action.setBadgeBackgroundColor({color:[255,0,0,255]}))}),chrome.tabs.onActivated.addListener(m),chrome.tabs.onRemoved.addListener(async e=>{await h()}),(0,f.storage).watch({storage_user_info:e=>{(0,s.logger).log("storage.watch() storage_user_info is ",e.newValue)},allShortcuts:e=>{},showSubtitle:e=>{},idleTimeYoutubeSubListActivetime:e=>{(0,s.logger).log("storage.watch() idleTimeYoutubeSubListActivetime is ",e.newValue)},idleTimeVideoActivetime:e=>{(0,s.logger).log("storage.watch() idleTimeVideoActivetime is ",e.newValue)},idleTimeDraggableDictActivetime:e=>{},idleTimeDraggableSubListActivetime:e=>{},idleTimeNextjsSubListActivetime:e=>{},zimu1_useStorage_sync_jwt:e=>{}}),(async()=>{await p();let e=new Date,t=(0,u.default).format(e,"YYYY-MM-DD HH:mm:ss");(0,s.logger).log(`in async()=>{} ${t}`);let r=await (0,f.storage).get(i.STORAGE_SHOWSUBTITLE),n=await (0,f.storage).get(i.STORAGE_SHOWSUBTITLELIST),a=await (0,f.storage).get(i.STORAGE_SHOWTTSSUBTITLELIST),o=await (0,f.storage).get(i.STORAGE_SHOWVIDEOMASK),l=await (0,f.storage).get(i.STORAGE_SHOWSUBTITLELISTMASK),c=await (0,f.storage).get(i.STORAGE_SHOWZHSUBTITLE),d=await (0,f.storage).get(i.STORAGE_SHOWFLOATBALL),h=await (0,f.storage).get(i.STORAGE_SUBTITLELIST_TABS_SCROLL),m=await (0,f.storage).get(i.STORAGE_DISABLESHORTCUTS),y=await (0,f.storage).get(i.STORAGE_FOLLOW_READ_TIMES),b=await (0,f.storage).get(i.STORAGE_VIDEO_MASK_HEIGHT),_=await (0,f.storage).get(i.STORAGE_FOLLOW_READ_LENGTH),S=await (0,f.storage).get(i.STORAGE_PLAYED_THEN_PAUSE),v=await (0,f.storage).get(i.STORAGE_SUBTITLELIST_LANGUAGE_MODE_TO_SHOW),w=await (0,f.storage).get(i.STORAGE_REPLAY_TIMES),E=await (0,f.storage).get(i.STORAGE_MAX_PAUSE_TIME);void 0===w&&await (0,f.storage).set(i.STORAGE_REPLAY_TIMES,i.REPEAT_INIT_TIMES),void 0===E&&await (0,f.storage).set(i.STORAGE_MAX_PAUSE_TIME,i.DEFAULT_MAX_PAUSE_TIME),void 0===r&&await (0,f.storage).set(i.STORAGE_SHOWSUBTITLE,!0),void 0===c&&await (0,f.storage).set(i.STORAGE_SHOWZHSUBTITLE,!0),void 0===d&&await (0,f.storage).set(i.STORAGE_SHOWFLOATBALL,!0),void 0===h&&await (0,f.storage).set(i.STORAGE_SUBTITLELIST_TABS_SCROLL,"2"),void 0===m&&await (0,f.storage).set(i.STORAGE_DISABLESHORTCUTS,!0),void 0===n&&await (0,f.storage).set(i.STORAGE_SHOWSUBTITLELIST,!0),void 0===a&&await (0,f.storage).set(i.STORAGE_SHOWTTSSUBTITLELIST,!1),void 0===o&&await (0,f.storage).set(i.STORAGE_SHOWVIDEOMASK,!1),void 0===l&&await (0,f.storage).set(i.STORAGE_SHOWSUBTITLELISTMASK,!1),void 0===y&&await (0,f.storage).set(i.STORAGE_FOLLOW_READ_TIMES,i.STORAGE_DEFAULT_FOLLOW_READ_TIMES),void 0===b&&await (0,f.storage).set(i.STORAGE_VIDEO_MASK_HEIGHT,i.STORAGE_DEFAULT_VIDEO_MASK_HEIGHT),void 0===_&&await (0,f.storage).set(i.STORAGE_FOLLOW_READ_LENGTH,i.STORAGE_DEFAULT_FOLLOW_READ_LENGTH),void 0===S&&await (0,f.storage).set(i.STORAGE_PLAYED_THEN_PAUSE,!1),void 0===v&&await (0,f.storage).set(i.STORAGE_SUBTITLELIST_LANGUAGE_MODE_TO_SHOW,[i.CASCADER_OPTION_MIX]);let x=await (0,f.storage).get(i.STORAGE_ALL_SHORTCUTS);void 0===x&&await (0,f.storage).set(i.STORAGE_ALL_SHORTCUTS,i.ALL_SHORT_CUTS),await T(),await g()})(),chrome.windows.onRemoved.addListener(async()=>{}),chrome.windows.onCreated.addListener(async()=>{}),chrome.runtime.onInstalled.addListener(async({reason:e})=>{chrome.contextMenus.create({id:"zimu1ContextMenus",title:"\u7ffb\u8bd1\u6240\u9009\u6587\u672c",contexts:["all"]}),(0,s.logger).log("reason :>> ",e),e.includes("install")||e.includes("update")&&await g(),chrome.alarms.clearAll();let t=await chrome.alarms.get("postActiveTimeInterval"),r=await chrome.alarms.get("refreshJWT");t||await chrome.alarms.create("postActiveTimeInterval",{periodInMinutes:3}),r||await chrome.alarms.create("refreshJWT",{periodInMinutes:10})}),chrome.alarms.onAlarm.addListener(async e=>{"postActiveTimeInterval"===e.name?await T():"refreshJWT"===e.name&&await g()}),chrome.contextMenus.onClicked.addListener(async function(e,t){if("zimu1ContextMenus"===e.menuItemId&&e.selectionText)try{let t=e.selectionText,r=t.replace(/[\/\\%\n\r\t]+/g,""),n={wordsFromMenusClick:r,nowTimeFromMenusClick:Date.now()};await (0,a.sendToContentScript)({name:"contextMenusMsg",body:n})}catch(e){console.error("catched error in backgroud.index :>> ",e)}})},{"@plasmohq/messaging":"92GyB","../redux/store":"gaugC","~tools/constants":"DgB7r","~tools/logger":"1qe3F","date-and-time":"gHrrg","~tools/background":"dksA5","~tools/jwt":"d2G9J","~tools/storages":"hpDvz","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],gHrrg:[function(e,t,r){/**
* @preserve date-and-time (c) KNOWLEDGECODE | MIT
*/var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>p);var a,o={},i={},s="en",l={MMMM:["January","February","March","April","May","June","July","August","September","October","November","December"],MMM:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dddd:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ddd:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dd:["Su","Mo","Tu","We","Th","Fr","Sa"],A:["AM","PM"]},u={YYYY:function(e){return("000"+e.getFullYear()).slice(-4)},YY:function(e){return("0"+e.getFullYear()).slice(-2)},Y:function(e){return""+e.getFullYear()},MMMM:function(e){return this.res.MMMM[e.getMonth()]},MMM:function(e){return this.res.MMM[e.getMonth()]},MM:function(e){return("0"+(e.getMonth()+1)).slice(-2)},M:function(e){return""+(e.getMonth()+1)},DD:function(e){return("0"+e.getDate()).slice(-2)},D:function(e){return""+e.getDate()},HH:function(e){return("0"+e.getHours()).slice(-2)},H:function(e){return""+e.getHours()},A:function(e){return this.res.A[e.getHours()>11|0]},hh:function(e){return("0"+(e.getHours()%12||12)).slice(-2)},h:function(e){return""+(e.getHours()%12||12)},mm:function(e){return("0"+e.getMinutes()).slice(-2)},m:function(e){return""+e.getMinutes()},ss:function(e){return("0"+e.getSeconds()).slice(-2)},s:function(e){return""+e.getSeconds()},SSS:function(e){return("00"+e.getMilliseconds()).slice(-3)},SS:function(e){return("0"+(e.getMilliseconds()/10|0)).slice(-2)},S:function(e){return""+(e.getMilliseconds()/100|0)},dddd:function(e){return this.res.dddd[e.getDay()]},ddd:function(e){return this.res.ddd[e.getDay()]},dd:function(e){return this.res.dd[e.getDay()]},Z:function(e){var t=e.getTimezoneOffset()/.6|0;return(t>0?"-":"+")+("000"+Math.abs(t-(t%100*.4|0))).slice(-4)},ZZ:function(e){var t=e.getTimezoneOffset(),r=Math.abs(t);return(t>0?"-":"+")+("0"+(r/60|0)).slice(-2)+":"+("0"+r%60).slice(-2)},post:function(e){return e},res:l},c={YYYY:function(e){return this.exec(/^\d{4}/,e)},Y:function(e){return this.exec(/^\d{1,4}/,e)},MMMM:function(e){var t=this.find(this.res.MMMM,e);return t.value++,t},MMM:function(e){var t=this.find(this.res.MMM,e);return t.value++,t},MM:function(e){return this.exec(/^\d\d/,e)},M:function(e){return this.exec(/^\d\d?/,e)},DD:function(e){return this.exec(/^\d\d/,e)},D:function(e){return this.exec(/^\d\d?/,e)},HH:function(e){return this.exec(/^\d\d/,e)},H:function(e){return this.exec(/^\d\d?/,e)},A:function(e){return this.find(this.res.A,e)},hh:function(e){return this.exec(/^\d\d/,e)},h:function(e){return this.exec(/^\d\d?/,e)},mm:function(e){return this.exec(/^\d\d/,e)},m:function(e){return this.exec(/^\d\d?/,e)},ss:function(e){return this.exec(/^\d\d/,e)},s:function(e){return this.exec(/^\d\d?/,e)},SSS:function(e){return this.exec(/^\d{1,3}/,e)},SS:function(e){var t=this.exec(/^\d\d?/,e);return t.value*=10,t},S:function(e){var t=this.exec(/^\d/,e);return t.value*=100,t},Z:function(e){var t=this.exec(/^[+-]\d{2}[0-5]\d/,e);return t.value=-((t.value/100|0)*60)-t.value%100,t},ZZ:function(e){var t=/^([+-])(\d{2}):([0-5]\d)/.exec(e)||["","","",""];return{value:0-((t[1]+t[2]|0)*60+(t[1]+t[3]|0)),length:t[0].length}},h12:function(e,t){return(12===e?0:e)+12*t},exec:function(e,t){var r=(e.exec(t)||[""])[0];return{value:0|r,length:r.length}},find:function(e,t){for(var r,n=-1,a=0,o=0,i=e.length;o<i;o++)r=e[o],!t.indexOf(r)&&r.length>a&&(n=o,a=r.length);return{value:n,length:a}},pre:function(e){return e},res:l},d=function(e,t,r,n){var a,o={};for(a in e)o[a]=e[a];for(a in t||{})!!r^!!o[a]||(o[a]=t[a]);return n&&(o.res=n),o},f={_formatter:u,_parser:c};f.compile=function(e){return[e].concat(e.match(/\[(?:[^[\]]|\[[^[\]]*])*]|([A-Za-z])\1*|\.{3}|./g)||[])},f.format=function(e,t,r){for(var n,o=this||a,i="string"==typeof t?o.compile(t):t,s=o._formatter,l=function(){if(r){var t=new Date(e.getTime());return t.getFullYear=t.getUTCFullYear,t.getMonth=t.getUTCMonth,t.getDate=t.getUTCDate,t.getHours=t.getUTCHours,t.getMinutes=t.getUTCMinutes,t.getSeconds=t.getUTCSeconds,t.getMilliseconds=t.getUTCMilliseconds,t.getDay=t.getUTCDay,t.getTimezoneOffset=function(){return 0},t.getTimezoneName=function(){return"UTC"},t}return e}(),u=/^\[(.*)\]$/,c="",d=1,f=i.length;d<f;d++)c+=s[n=i[d]]?s.post(s[n](l,i[0])):u.test(n)?n.replace(u,"$1"):n;return c},f.preparse=function(e,t){var r=this||a,n="string"==typeof t?r.compile(t):t,o=r._parser,i={Y:1970,M:1,D:1,H:0,A:0,h:0,m:0,s:0,S:0,Z:0,_index:0,_length:0,_match:0},s=/^\[(.*)\]$/;e=o.pre(e);for(var l,u,c,d=1,f=n.length;d<f;d++)if(l=n[d],u=e.substring(i._index),o[l]){if(!(c=o[l](u,n[0])).length)break;i[c.token||l.charAt(0)]=c.value,i._index+=c.length,i._match++}else if(l===u.charAt(0)||" "===l)i._index++;else if(s.test(l)&&!u.indexOf(l.replace(s,"$1")))i._index+=l.length-2;else if("..."===l){i._index=e.length;break}else break;return i.H=i.H||o.h12(i.h,i.A),i._length=e.length,i},f.parse=function(e,t,r){var n=this||a,o="string"==typeof t?n.compile(t):t,i=n.preparse(e,o);return n.isValid(i)?(i.M-=i.Y<100?22801:1,r||~n._parser.find(o,"ZZ").value)?new Date(Date.UTC(i.Y,i.M,i.D,i.H,i.m+i.Z,i.s,i.S)):new Date(i.Y,i.M,i.D,i.H,i.m,i.s,i.S):new Date(NaN)},f.isValid=function(e,t){var r=this||a,n="string"==typeof e?r.preparse(e,t):e;return!(n._index<1||n._length<1||n._index-n._length||n._match<1||n.Y<1||n.Y>9999||n.M<1||n.M>12||n.D<1||n.D>new Date(n.Y,n.M,0).getDate()||n.H<0||n.H>23||n.m<0||n.m>59||n.s<0||n.s>59||n.S<0||n.S>999||n.Z<-840||n.Z>720)},f.transform=function(e,t,r,n){let o=this||a;return o.format(o.parse(e,t),r,n)},f.addYears=function(e,t,r){return(this||a).addMonths(e,12*t,r)},f.addMonths=function(e,t,r){var n=new Date(e.getTime());return r?(n.setUTCMonth(n.getUTCMonth()+t),n.getUTCDate()<e.getUTCDate()&&n.setUTCDate(0)):(n.setMonth(n.getMonth()+t),n.getDate()<e.getDate()&&n.setDate(0)),n},f.addDays=function(e,t,r){var n=new Date(e.getTime());return r?n.setUTCDate(n.getUTCDate()+t):n.setDate(n.getDate()+t),n},f.addHours=function(e,t){return new Date(e.getTime()+36e5*t)},f.addMinutes=function(e,t){return new Date(e.getTime()+6e4*t)},f.addSeconds=function(e,t){return new Date(e.getTime()+1e3*t)},f.addMilliseconds=function(e,t){return new Date(e.getTime()+t)},f.subtract=function(e,t){var r=e.getTime()-t.getTime();return{toMilliseconds:function(){return r},toSeconds:function(){return r/1e3},toMinutes:function(){return r/6e4},toHours:function(){return r/36e5},toDays:function(){return r/864e5}}},f.isLeapYear=function(e){return!(e%4)&&!!(e%100)||!(e%400)},f.isSameDay=function(e,t){return e.toDateString()===t.toDateString()},f.locale=function(e,t){o[e]||(o[e]=t)},f.plugin=function(e,t){i[e]||(i[e]=t)},(a=d(f)).locale=function(e){var t="function"==typeof e?e:a.locale[e];if(!t)return s;var r=o[s=t(f)]||{},n=d(l,r.res,!0),p=d(u,r.formatter,!0,n),h=d(c,r.parser,!0,n);for(var m in a._formatter=p,a._parser=h,i)a.extend(i[m]);return s},a.extend=function(e){var t=d(a._parser.res,e.res),r=e.extender||{};for(var n in a._formatter=d(a._formatter,e.formatter,!1,t),a._parser=d(a._parser,e.parser,!1,t),r)a[n]||(a[n]=r[n])},a.plugin=function(e){var t="function"==typeof e?e:a.plugin[e];t&&a.extend(i[t(f,a)]||{})};var p=a},{"@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],dksA5:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"isValidDate",()=>s),n.export(r,"deleteKeys",()=>l),n.export(r,"checkJwtExpireByDays",()=>u);var a=e("moment"),o=n.interopDefault(a),i=e("jwt-decode");function s(e){return(0,o.default)(e,"YYYY-MM-DD",!0).isValid()}function l(e){return e?Object.keys(e).reduce((t,r)=>(s(r)&&(t[r]=e[r]),t),{}):{}}function u(e,t=15){if(!e)return!1;let r={id:0,iat:0,exp:0};e.length>1?r=(0,i.jwtDecode)(e):r.exp=0;let n=Date.now()/1e3,a=(r.exp-n)/86400;return a<t}},{moment:"jzLJB","jwt-decode":"ftkuD","@parcel/transformer-js/src/esmodule-helpers.js":"cHUbl"}],jzLJB:[function(e,t,r){t.exports=function(){function e(){return F.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function n(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function o(e){var t;if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(t in e)if(a(e,t))return!1;return!0}function i(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var r,n=[],a=e.length;for(r=0;r<a;++r)n.push(t(e[r],r));return n}function c(e,t){for(var r in t)a(t,r)&&(e[r]=t[r]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function d(e,t,r,n){return ta(e,t,r,n,!0).utc()}function f(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function p(e){var t=null,r=!1,n=e._d&&!isNaN(e._d.getTime());return(n&&(t=f(e),r=B.call(t.parsedDateParts,function(e){return null!=e}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e))?n:(e._isValid=n,e._isValid)}function h(e){var t=d(NaN);return null!=e?c(f(t),e):f(t).userInvalidated=!0,t}B=Array.prototype.some?Array.prototype.some:function(e){var t,r=Object(this),n=r.length>>>0;for(t=0;t<n;t++)if(t in r&&e.call(this,r[t],t,r))return!0;return!1};var m,g,y=e.momentProperties=[],b=!1;function _(e,t){var r,n,a,o=y.length;if(i(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),i(t._i)||(e._i=t._i),i(t._f)||(e._f=t._f),i(t._l)||(e._l=t._l),i(t._strict)||(e._strict=t._strict),i(t._tzm)||(e._tzm=t._tzm),i(t._isUTC)||(e._isUTC=t._isUTC),i(t._offset)||(e._offset=t._offset),i(t._pf)||(e._pf=f(t)),i(t._locale)||(e._locale=t._locale),o>0)for(r=0;r<o;r++)i(a=t[n=y[r]])||(e[n]=a);return e}function T(t){_(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,e.updateOffset(this),b=!1)}function S(e){return e instanceof T||null!=e&&null!=e._isAMomentObject}function v(t){!1===e.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function w(t,r){var n=!0;return c(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,t),n){var o,i,s,l=[],u=arguments.length;for(i=0;i<u;i++){if(o="","object"==typeof arguments[i]){for(s in o+="\n["+i+"] ",arguments[0])a(arguments[0],s)&&(o+=s+": "+arguments[0][s]+", ");o=o.slice(0,-2)}else o=arguments[i];l.push(o)}v(t+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+Error().stack),n=!1}return r.apply(this,arguments)},r)}var E={};function x(t,r){null!=e.deprecationHandler&&e.deprecationHandler(t,r),E[t]||(v(r),E[t]=!0)}function I(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function O(e,t){var r,o=c({},e);for(r in t)a(t,r)&&(n(e[r])&&n(t[r])?(o[r]={},c(o[r],e[r]),c(o[r],t[r])):null!=t[r]?o[r]=t[r]:delete o[r]);for(r in e)a(e,r)&&!a(t,r)&&n(e[r])&&(o[r]=c({},o[r]));return o}function A(e){null!=e&&this.set(e)}function M(e,t,r){var n=""+Math.abs(e);return(e>=0?r?"+":"":"-")+Math.pow(10,Math.max(0,t-n.length)).toString().substr(1)+n}e.suppressDeprecationWarnings=!1,e.deprecationHandler=null,G=Object.keys?Object.keys:function(e){var t,r=[];for(t in e)a(e,t)&&r.push(t);return r};var k=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,R=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,D={},L={};function C(e,t,r,n){var a=n;"string"==typeof n&&(a=function(){return this[n]()}),e&&(L[e]=a),t&&(L[t[0]]=function(){return M(a.apply(this,arguments),t[1],t[2])}),r&&(L[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function U(e,t){return e.isValid()?(D[t=j(t,e.localeData())]=D[t]||function(e){var t,r,n,a=e.match(k);for(r=0,n=a.length;r<n;r++)L[a[r]]?a[r]=L[a[r]]:a[r]=(t=a[r]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){var r,o="";for(r=0;r<n;r++)o+=I(a[r])?a[r].call(t,e):a[r];return o}}(t),D[t](e)):e.localeData().invalidDate()}function j(e,t){var r=5;function n(e){return t.longDateFormat(e)||e}for(R.lastIndex=0;r>=0&&R.test(e);)e=e.replace(R,n),R.lastIndex=0,r-=1;return e}var P={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function N(e){return"string"==typeof e?P[e]||P[e.toLowerCase()]:void 0}function Y(e){var t,r,n={};for(r in e)a(e,r)&&(t=N(r))&&(n[t]=e[r]);return n}var F,B,G,W,H={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},V=/\d/,z=/\d\d/,$=/\d{3}/,q=/\d{4}/,Z=/[+-]?\d{6}/,K=/\d\d?/,J=/\d\d\d\d?/,X=/\d\d\d\d\d\d?/,Q=/\d{1,3}/,ee=/\d{1,4}/,et=/[+-]?\d{1,6}/,er=/\d+/,en=/[+-]?\d+/,ea=/Z|[+-]\d\d:?\d\d/gi,eo=/Z|[+-]\d\d(?::?\d\d)?/gi,ei=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,es=/^[1-9]\d?/,el=/^([1-9]\d|\d)/;function eu(e,t,r){W[e]=I(t)?t:function(e,n){return e&&r?r:t}}function ec(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ed(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ef(e){var t=+e,r=0;return 0!==t&&isFinite(t)&&(r=ed(t)),r}W={};var ep={};function eh(e,t){var r,n,a=t;for("string"==typeof e&&(e=[e]),s(t)&&(a=function(e,r){r[t]=ef(e)}),n=e.length,r=0;r<n;r++)ep[e[r]]=a}function em(e,t){eh(e,function(e,r,n,a){n._w=n._w||{},t(e,n._w,n,a)})}function eg(e){return e%4==0&&e%100!=0||e%400==0}function ey(e){return eg(e)?366:365}C("Y",0,0,function(){var e=this.year();return e<=9999?M(e,4):"+"+e}),C(0,["YY",2],0,function(){return this.year()%100}),C(0,["YYYY",4],0,"year"),C(0,["YYYYY",5],0,"year"),C(0,["YYYYYY",6,!0],0,"year"),eu("Y",en),eu("YY",K,z),eu("YYYY",ee,q),eu("YYYYY",et,Z),eu("YYYYYY",et,Z),eh(["YYYYY","YYYYYY"],0),eh("YYYY",function(t,r){r[0]=2===t.length?e.parseTwoDigitYear(t):ef(t)}),eh("YY",function(t,r){r[0]=e.parseTwoDigitYear(t)}),eh("Y",function(e,t){t[0]=parseInt(e,10)}),e.parseTwoDigitYear=function(e){return ef(e)+(ef(e)>68?1900:2e3)};var eb=e_("FullYear",!0);function e_(t,r){return function(n){return null!=n?(eS(this,t,n),e.updateOffset(this,r),this):eT(this,t)}}function eT(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function eS(e,t,r){var n,a,o,i;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(a?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(a?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(a?n.setUTCHours(r):n.setHours(r));case"Date":return void(a?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}o=e.month(),i=29!==(i=e.date())||1!==o||eg(r)?i:28,a?n.setUTCFullYear(r,o,i):n.setFullYear(r,o,i)}}function ev(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=(t%12+12)%12;return e+=(t-r)/12,1===r?eg(e)?29:28:31-r%7%2}eG=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return -1},C("M",["MM",2],"Mo",function(){return this.month()+1}),C("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),C("MMMM",0,0,function(e){return this.localeData().months(this,e)}),eu("M",K,es),eu("MM",K,z),eu("MMM",function(e,t){return t.monthsShortRegex(e)}),eu("MMMM",function(e,t){return t.monthsRegex(e)}),eh(["M","MM"],function(e,t){t[1]=ef(e)-1}),eh(["MMM","MMMM"],function(e,t,r,n){var a=r._locale.monthsParse(e,n,r._strict);null!=a?t[1]=a:f(r).invalidMonth=e});var ew="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),eE=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;function ex(e,t,r){var n,a,o,i=e.toLocaleLowerCase();if(!this._monthsParse)for(n=0,this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[];n<12;++n)o=d([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return r?"MMM"===t?-1!==(a=eG.call(this._shortMonthsParse,i))?a:null:-1!==(a=eG.call(this._longMonthsParse,i))?a:null:"MMM"===t?-1!==(a=eG.call(this._shortMonthsParse,i))?a:-1!==(a=eG.call(this._longMonthsParse,i))?a:null:-1!==(a=eG.call(this._longMonthsParse,i))?a:-1!==(a=eG.call(this._shortMonthsParse,i))?a:null}function eI(e,t){if(!e.isValid())return e;if("string"==typeof t){if(/^\d+$/.test(t))t=ef(t);else if(!s(t=e.localeData().monthsParse(t)))return e}var r=t,n=e.date();return n=n<29?n:Math.min(n,ev(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function eO(t){return null!=t?(eI(this,t),e.updateOffset(this,!0),this):eT(this,"Month")}function eA(){function e(e,t){return t.length-e.length}var t,r,n,a,o=[],i=[],s=[];for(t=0;t<12;t++)r=d([2e3,t]),n=ec(this.monthsShort(r,"")),a=ec(this.months(r,"")),o.push(n),i.push(a),s.push(a),s.push(n);o.sort(e),i.sort(e),s.sort(e),this._monthsRegex=RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=RegExp("^("+o.join("|")+")","i")}function eM(e,t,r,n,a,o,i){var s;return e<100&&e>=0?isFinite((s=new Date(e+400,t,r,n,a,o,i)).getFullYear())&&s.setFullYear(e):s=new Date(e,t,r,n,a,o,i),s}function ek(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,isFinite((t=new Date(Date.UTC.apply(null,r))).getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function eR(e,t,r){var n=7+t-r;return-((7+ek(e,0,n).getUTCDay()-t)%7)+n-1}function eD(e,t,r,n,a){var o,i,s=1+7*(t-1)+(7+r-n)%7+eR(e,n,a);return s<=0?i=ey(o=e-1)+s:s>ey(e)?(o=e+1,i=s-ey(e)):(o=e,i=s),{year:o,dayOfYear:i}}function eL(e,t,r){var n,a,o=eR(e.year(),t,r),i=Math.floor((e.dayOfYear()-o-1)/7)+1;return i<1?n=i+eC(a=e.year()-1,t,r):i>eC(e.year(),t,r)?(n=i-eC(e.year(),t,r),a=e.year()+1):(a=e.year(),n=i),{week:n,year:a}}function eC(e,t,r){var n=eR(e,t,r),a=eR(e+1,t,r);return(ey(e)-n+a)/7}function eU(e,t){return e.slice(t,7).concat(e.slice(0,t))}C("w",["ww",2],"wo","week"),C("W",["WW",2],"Wo","isoWeek"),eu("w",K,es),eu("ww",K,z),eu("W",K,es),eu("WW",K,z),em(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=ef(e)}),C("d",0,"do","day"),C("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),C("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),C("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),C("e",0,0,"weekday"),C("E",0,0,"isoWeekday"),eu("d",K),eu("e",K),eu("E",K),eu("dd",function(e,t){return t.weekdaysMinRegex(e)}),eu("ddd",function(e,t){return t.weekdaysShortRegex(e)}),eu("dddd",function(e,t){return t.weekdaysRegex(e)}),em(["dd","ddd","dddd"],function(e,t,r,n){var a=r._locale.weekdaysParse(e,n,r._strict);null!=a?t.d=a:f(r).invalidWeekday=e}),em(["d","e","E"],function(e,t,r,n){t[n]=ef(e)});var ej="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function eP(e,t,r){var n,a,o,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(n=0,this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[];n<7;++n)o=d([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return r?"dddd"===t?-1!==(a=eG.call(this._weekdaysParse,i))?a:null:"ddd"===t?-1!==(a=eG.call(this._shortWeekdaysParse,i))?a:null:-1!==(a=eG.call(this._minWeekdaysParse,i))?a:null:"dddd"===t?-1!==(a=eG.call(this._weekdaysParse,i))||-1!==(a=eG.call(this._shortWeekdaysParse,i))?a:-1!==(a=eG.call(this._minWeekdaysParse,i))?a:null:"ddd"===t?-1!==(a=eG.call(this._shortWeekdaysParse,i))||-1!==(a=eG.call(this._weekdaysParse,i))?a:-1!==(a=eG.call(this._minWeekdaysParse,i))?a:null:-1!==(a=eG.call(this._minWeekdaysParse,i))||-1!==(a=eG.call(this._weekdaysParse,i))?a:-1!==(a=eG.call(this._shortWeekdaysParse,i))?a:null}function eN(){function e(e,t){return t.length-e.length}var t,r,n,a,o,i=[],s=[],l=[],u=[];for(t=0;t<7;t++)r=d([2e3,1]).day(t),n=ec(this.weekdaysMin(r,"")),a=ec(this.weekdaysShort(r,"")),o=ec(this.weekdays(r,"")),i.push(n),s.push(a),l.push(o),u.push(n),u.push(a),u.push(o);i.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+i.join("|")+")","i")}function eY(){return this.hours()%12||12}function eF(e,t){C(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function eB(e,t){return t._meridiemParse}C("H",["HH",2],0,"hour"),C("h",["hh",2],0,eY),C("k",["kk",2],0,function(){return this.hours()||24}),C("hmm",0,0,function(){return""+eY.apply(this)+M(this.minutes(),2)}),C("hmmss",0,0,function(){return""+eY.apply(this)+M(this.minutes(),2)+M(this.seconds(),2)}),C("Hmm",0,0,function(){return""+this.hours()+M(this.minutes(),2)}),C("Hmmss",0,0,function(){return""+this.hours()+M(this.minutes(),2)+M(this.seconds(),2)}),eF("a",!0),eF("A",!1),eu("a",eB),eu("A",eB),eu("H",K,el),eu("h",K,es),eu("k",K,es),eu("HH",K,z),eu("hh",K,z),eu("kk",K,z),eu("hmm",J),eu("hmmss",X),eu("Hmm",J),eu("Hmmss",X),eh(["H","HH"],3),eh(["k","kk"],function(e,t,r){var n=ef(e);t[3]=24===n?0:n}),eh(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),eh(["h","hh"],function(e,t,r){t[3]=ef(e),f(r).bigHour=!0}),eh("hmm",function(e,t,r){var n=e.length-2;t[3]=ef(e.substr(0,n)),t[4]=ef(e.substr(n)),f(r).bigHour=!0}),eh("hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[3]=ef(e.substr(0,n)),t[4]=ef(e.substr(n,2)),t[5]=ef(e.substr(a)),f(r).bigHour=!0}),eh("Hmm",function(e,t,r){var n=e.length-2;t[3]=ef(e.substr(0,n)),t[4]=ef(e.substr(n))}),eh("Hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[3]=ef(e.substr(0,n)),t[4]=ef(e.substr(n,2)),t[5]=ef(e.substr(a))});var eG,eW,eH=e_("Hours",!0),eV={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:ew,week:{dow:0,doy:6},weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysShort:ej,meridiemParse:/[ap]\.?m?\.?/i},ez={},e$={};function eq(e){return e?e.toLowerCase().replace("_","-"):e}function eZ(e){var r=null;if(void 0===ez[e]&&t&&t.exports&&e&&e.match("^[^/\\\\]*$"))try{r=eW._abbr,(void 0)("./locale/"+e),eK(r)}catch(t){ez[e]=null}return ez[e]}function eK(e,t){var r;return e&&((r=i(t)?eX(e):eJ(e,t))?eW=r:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),eW._abbr}function eJ(e,t){if(null===t)return delete ez[e],null;var r,n=eV;if(t.abbr=e,null!=ez[e])x("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ez[e]._config;else if(null!=t.parentLocale){if(null!=ez[t.parentLocale])n=ez[t.parentLocale]._config;else{if(null==(r=eZ(t.parentLocale)))return e$[t.parentLocale]||(e$[t.parentLocale]=[]),e$[t.parentLocale].push({name:e,config:t}),null;n=r._config}}return ez[e]=new A(O(n,t)),e$[e]&&e$[e].forEach(function(e){eJ(e.name,e.config)}),eK(e),ez[e]}function eX(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return eW;if(!r(e)){if(t=eZ(e))return t;e=[e]}return function(e){for(var t,r,n,a,o=0;o<e.length;){for(t=(a=eq(e[o]).split("-")).length,r=(r=eq(e[o+1]))?r.split("-"):null;t>0;){if(n=eZ(a.slice(0,t).join("-")))return n;if(r&&r.length>=t&&function(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}(a,r)>=t-1)break;t--}o++}return eW}(e)}function eQ(e){var t,r=e._a;return r&&-2===f(e).overflow&&(t=r[1]<0||r[1]>11?1:r[2]<1||r[2]>ev(r[0],r[1])?2:r[3]<0||r[3]>24||24===r[3]&&(0!==r[4]||0!==r[5]||0!==r[6])?3:r[4]<0||r[4]>59?4:r[5]<0||r[5]>59?5:r[6]<0||r[6]>999?6:-1,f(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),f(e)._overflowWeeks&&-1===t&&(t=7),f(e)._overflowWeekday&&-1===t&&(t=8),f(e).overflow=t),e}var e0=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,e1=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,e2=/Z|[+-]\d\d(?::?\d\d)?/,e3=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],e4=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],e6=/^\/?Date\((-?\d+)/i,e5=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,e9={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function e8(e){var t,r,n,a,o,i,s=e._i,l=e0.exec(s)||e1.exec(s),u=e3.length,c=e4.length;if(l){for(t=0,f(e).iso=!0,r=u;t<r;t++)if(e3[t][1].exec(l[1])){a=e3[t][0],n=!1!==e3[t][2];break}if(null==a){e._isValid=!1;return}if(l[3]){for(t=0,r=c;t<r;t++)if(e4[t][1].exec(l[3])){o=(l[2]||" ")+e4[t][0];break}if(null==o){e._isValid=!1;return}}if(!n&&null!=o){e._isValid=!1;return}if(l[4]){if(e2.exec(l[4]))i="Z";else{e._isValid=!1;return}}e._f=a+(o||"")+(i||""),tr(e)}else e._isValid=!1}function e7(e){var t,r,n,a,o,i,s,l,u,c=e5.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(c){if(r=c[4],n=c[3],a=c[2],o=c[5],i=c[6],s=c[7],l=[(t=parseInt(r,10))<=49?2e3+t:t<=999?1900+t:t,ew.indexOf(n),parseInt(a,10),parseInt(o,10),parseInt(i,10)],s&&l.push(parseInt(s,10)),(u=c[1])&&ej.indexOf(u)!==new Date(l[0],l[1],l[2]).getDay()&&(f(e).weekdayMismatch=!0,e._isValid=!1,1))return;e._a=l,e._tzm=function(e,t,r){if(e)return e9[e];if(t)return 0;var n=parseInt(r,10),a=n%100;return 60*((n-a)/100)+a}(c[8],c[9],c[10]),e._d=ek.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),f(e).rfc2822=!0}else e._isValid=!1}function te(e,t,r){return null!=e?e:null!=t?t:r}function tt(t){var r,n,a,o,i,s,l,u,c,d,p,h,m,g,y,b=[];if(!t._d){for(d=new Date(e.now()),m=t._useUTC?[d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()]:[d.getFullYear(),d.getMonth(),d.getDate()],t._w&&null==t._a[2]&&null==t._a[1]&&(null!=(r=t._w).GG||null!=r.W||null!=r.E?(i=1,s=4,n=te(r.GG,t._a[0],eL(to(),1,4).year),a=te(r.W,1),((o=te(r.E,1))<1||o>7)&&(u=!0)):(i=t._locale._week.dow,s=t._locale._week.doy,c=eL(to(),i,s),n=te(r.gg,t._a[0],c.year),a=te(r.w,c.week),null!=r.d?((o=r.d)<0||o>6)&&(u=!0):null!=r.e?(o=r.e+i,(r.e<0||r.e>6)&&(u=!0)):o=i),a<1||a>eC(n,i,s)?f(t)._overflowWeeks=!0:null!=u?f(t)._overflowWeekday=!0:(l=eD(n,a,o,i,s),t._a[0]=l.year,t._dayOfYear=l.dayOfYear)),null!=t._dayOfYear&&(y=te(t._a[0],m[0]),(t._dayOfYear>ey(y)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),h=ek(y,0,t._dayOfYear),t._a[1]=h.getUTCMonth(),t._a[2]=h.getUTCDate()),p=0;p<3&&null==t._a[p];++p)t._a[p]=b[p]=m[p];for(;p<7;p++)t._a[p]=b[p]=null==t._a[p]?2===p?1:0:t._a[p];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?ek:eM).apply(null,b),g=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==g&&(f(t).weekdayMismatch=!0)}}function tr(t){if(t._f===e.ISO_8601){e8(t);return}if(t._f===e.RFC_2822){e7(t);return}t._a=[],f(t).empty=!0;var r,n,o,i,s,l,u,c,d,p,h,m=""+t._i,g=m.length,y=0;for(s=0,h=(u=j(t._f,t._locale).match(k)||[]).length;s<h;s++)(c=u[s],(l=(m.match(a(W,c)?W[c](t._strict,t._locale):new RegExp(ec(c.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,r,n,a){return t||r||n||a}))))||[])[0])&&((d=m.substr(0,m.indexOf(l))).length>0&&f(t).unusedInput.push(d),m=m.slice(m.indexOf(l)+l.length),y+=l.length),L[c])?(l?f(t).empty=!1:f(t).unusedTokens.push(c),null!=l&&a(ep,c)&&ep[c](l,t._a,t,c)):t._strict&&!l&&f(t).unusedTokens.push(c);f(t).charsLeftOver=g-y,m.length>0&&f(t).unusedInput.push(m),t._a[3]<=12&&!0===f(t).bigHour&&t._a[3]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[3]=(r=t._locale,n=t._a[3],null==(o=t._meridiem)?n:null!=r.meridiemHour?r.meridiemHour(n,o):(null!=r.isPM&&((i=r.isPM(o))&&n<12&&(n+=12),i||12!==n||(n=0)),n)),null!==(p=f(t).era)&&(t._a[0]=t._locale.erasConvertYear(p,t._a[0])),tt(t),eQ(t)}function tn(t){var a,o=t._i,d=t._f;return(t._locale=t._locale||eX(t._l),null===o||void 0===d&&""===o)?h({nullInput:!0}):("string"==typeof o&&(t._i=o=t._locale.preparse(o)),S(o))?new T(eQ(o)):(l(o)?t._d=o:r(d)?function(e){var t,r,n,a,o,i,s=!1,l=e._f.length;if(0===l){f(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<l;a++)o=0,i=!1,t=_({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],tr(t),p(t)&&(i=!0),o+=f(t).charsLeftOver+10*f(t).unusedTokens.length,f(t).score=o,s?o<n&&(n=o,r=t):(null==n||o<n||i)&&(n=o,r=t,i&&(s=!0));c(e,r||t)}(t):d?tr(t):i(a=t._i)?t._d=new Date(e.now()):l(a)?t._d=new Date(a.valueOf()):"string"==typeof a?function(t){var r=e6.exec(t._i);if(null!==r){t._d=new Date(+r[1]);return}e8(t),!1===t._isValid&&(delete t._isValid,e7(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:e.createFromInputFallback(t)))}(t):r(a)?(t._a=u(a.slice(0),function(e){return parseInt(e,10)}),tt(t)):n(a)?function(e){if(!e._d){var t=Y(e._i),r=void 0===t.day?t.date:t.day;e._a=u([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),tt(e)}}(t):s(a)?t._d=new Date(a):e.createFromInputFallback(t),p(t)||(t._d=null),t)}function ta(e,t,a,i,s){var l,u={};return(!0===t||!1===t)&&(i=t,t=void 0),(!0===a||!1===a)&&(i=a,a=void 0),(n(e)&&o(e)||r(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=s,u._l=a,u._i=e,u._f=t,u._strict=i,(l=new T(eQ(tn(u))))._nextDay&&(l.add(1,"d"),l._nextDay=void 0),l}function to(e,t,r,n){return ta(e,t,r,n,!1)}e.createFromInputFallback=w("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var ti=w("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=to.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:h()}),ts=w("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=to.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:h()});function tl(e,t){var n,a;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return to();for(a=1,n=t[0];a<t.length;++a)(!t[a].isValid()||t[a][e](n))&&(n=t[a]);return n}var tu=["year","quarter","month","week","day","hour","minute","second","millisecond"];function tc(e){var t=Y(e),r=t.year||0,n=t.quarter||0,o=t.month||0,i=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,u=t.minute||0,c=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,r,n=!1,o=tu.length;for(t in e)if(a(e,t)&&!(-1!==eG.call(tu,t)&&(null==e[t]||!isNaN(e[t]))))return!1;for(r=0;r<o;++r)if(e[tu[r]]){if(n)return!1;parseFloat(e[tu[r]])!==ef(e[tu[r]])&&(n=!0)}return!0}(t),this._milliseconds=+d+1e3*c+6e4*u+36e5*l,this._days=+s+7*i,this._months=+o+3*n+12*r,this._data={},this._locale=eX(),this._bubble()}function td(e){return e instanceof tc}function tf(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function tp(e,t){C(e,0,0,function(){var e=this.utcOffset(),r="+";return e<0&&(e=-e,r="-"),r+M(~~(e/60),2)+t+M(~~e%60,2)})}tp("Z",":"),tp("ZZ",""),eu("Z",eo),eu("ZZ",eo),eh(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=tm(eo,e)});var th=/([\+\-]|\d\d)/gi;function tm(e,t){var r,n,a=(t||"").match(e);return null===a?null:0===(n=+(60*(r=((a[a.length-1]||[])+"").match(th)||["-",0,0])[1])+ef(r[2]))?0:"+"===r[0]?n:-n}function tg(t,r){var n,a;return r._isUTC?(n=r.clone(),a=(S(t)||l(t)?t.valueOf():to(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+a),e.updateOffset(n,!1),n):to(t).local()}function ty(e){return-Math.round(e._d.getTimezoneOffset())}function tb(){return!!this.isValid()&&this._isUTC&&0===this._offset}e.updateOffset=function(){};var t_=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,tT=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function tS(e,t){var r,n,o,i,l,u,c=e,d=null;return td(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:s(e)||!isNaN(+e)?(c={},t?c[t]=+e:c.milliseconds=+e):(d=t_.exec(e))?(i="-"===d[1]?-1:1,c={y:0,d:ef(d[2])*i,h:ef(d[3])*i,m:ef(d[4])*i,s:ef(d[5])*i,ms:ef(tf(1e3*d[6]))*i}):(d=tT.exec(e))?(i="-"===d[1]?-1:1,c={y:tv(d[2],i),M:tv(d[3],i),w:tv(d[4],i),d:tv(d[5],i),h:tv(d[6],i),m:tv(d[7],i),s:tv(d[8],i)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(r=to(c.from),n=to(c.to),u=r.isValid()&&n.isValid()?(n=tg(n,r),r.isBefore(n)?o=tw(r,n):((o=tw(n,r)).milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0},(c={}).ms=u.milliseconds,c.M=u.months),l=new tc(c),td(e)&&a(e,"_locale")&&(l._locale=e._locale),td(e)&&a(e,"_isValid")&&(l._isValid=e._isValid),l}function tv(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function tw(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function tE(e,t){return function(r,n){var a;return null===n||isNaN(+n)||(x(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=r,r=n,n=a),tx(this,tS(r,n),e),this}}function tx(t,r,n,a){var o=r._milliseconds,i=tf(r._days),s=tf(r._months);t.isValid()&&(a=null==a||a,s&&eI(t,eT(t,"Month")+s*n),i&&eS(t,"Date",eT(t,"Date")+i*n),o&&t._d.setTime(t._d.valueOf()+o*n),a&&e.updateOffset(t,i||s))}tS.fn=tc.prototype,tS.invalid=function(){return tS(NaN)};var tI=tE(1,"add"),tO=tE(-1,"subtract");function tA(e){return"string"==typeof e||e instanceof String}function tM(e,t){if(e.date()<t.date())return-tM(t,e);var r,n=(t.year()-e.year())*12+(t.month()-e.month()),a=e.clone().add(n,"months");return r=t-a<0?(t-a)/(a-e.clone().add(n-1,"months")):(t-a)/(e.clone().add(n+1,"months")-a),-(n+r)||0}function tk(e){var t;return void 0===e?this._locale._abbr:(null!=(t=eX(e))&&(this._locale=t),this)}e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tR=w("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function tD(){return this._locale}function tL(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-126227808e5:new Date(e,t,r).valueOf()}function tC(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-126227808e5:Date.UTC(e,t,r)}function tU(e,t){return t.erasAbbrRegex(e)}function tj(){var e,t,r,n,a,o=[],i=[],s=[],l=[],u=this.eras();for(e=0,t=u.length;e<t;++e)r=ec(u[e].name),n=ec(u[e].abbr),a=ec(u[e].narrow),i.push(r),o.push(n),s.push(a),l.push(r),l.push(n),l.push(a);this._erasRegex=RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=RegExp("^("+s.join("|")+")","i")}function tP(e,t){C(0,[e,e.length],0,t)}function tN(e,t,r,n,a){var o;return null==e?eL(this,n,a).year:(t>(o=eC(e,n,a))&&(t=o),tY.call(this,e,t,r,n,a))}function tY(e,t,r,n,a){var o=eD(e,t,r,n,a),i=ek(o.year,0,o.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}C("N",0,0,"eraAbbr"),C("NN",0,0,"eraAbbr"),C("NNN",0,0,"eraAbbr"),C("NNNN",0,0,"eraName"),C("NNNNN",0,0,"eraNarrow"),C("y",["y",1],"yo","eraYear"),C("y",["yy",2],0,"eraYear"),C("y",["yyy",3],0,"eraYear"),C("y",["yyyy",4],0,"eraYear"),eu("N",tU),eu("NN",tU),eu("NNN",tU),eu("NNNN",function(e,t){return t.erasNameRegex(e)}),eu("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),eh(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var a=r._locale.erasParse(e,n,r._strict);a?f(r).era=a:f(r).invalidEra=e}),eu("y",er),eu("yy",er),eu("yyy",er),eu("yyyy",er),eu("yo",function(e,t){return t._eraYearOrdinalRegex||er}),eh(["y","yy","yyy","yyyy"],0),eh(["yo"],function(e,t,r,n){var a;r._locale._eraYearOrdinalRegex&&(a=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[0]=r._locale.eraYearOrdinalParse(e,a):t[0]=parseInt(e,10)}),C(0,["gg",2],0,function(){return this.weekYear()%100}),C(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tP("gggg","weekYear"),tP("ggggg","weekYear"),tP("GGGG","isoWeekYear"),tP("GGGGG","isoWeekYear"),eu("G",en),eu("g",en),eu("GG",K,z),eu("gg",K,z),eu("GGGG",ee,q),eu("gggg",ee,q),eu("GGGGG",et,Z),eu("ggggg",et,Z),em(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=ef(e)}),em(["gg","GG"],function(t,r,n,a){r[a]=e.parseTwoDigitYear(t)}),C("Q",0,"Qo","quarter"),eu("Q",V),eh("Q",function(e,t){t[1]=(ef(e)-1)*3}),C("D",["DD",2],"Do","date"),eu("D",K,es),eu("DD",K,z),eu("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),eh(["D","DD"],2),eh("Do",function(e,t){t[2]=ef(e.match(K)[0])});var tF=e_("Date",!0);C("DDD",["DDDD",3],"DDDo","dayOfYear"),eu("DDD",Q),eu("DDDD",$),eh(["DDD","DDDD"],function(e,t,r){r._dayOfYear=ef(e)}),C("m",["mm",2],0,"minute"),eu("m",K,el),eu("mm",K,z),eh(["m","mm"],4);var tB=e_("Minutes",!1);C("s",["ss",2],0,"second"),eu("s",K,el),eu("ss",K,z),eh(["s","ss"],5);var tG=e_("Seconds",!1);for(C("S",0,0,function(){return~~(this.millisecond()/100)}),C(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),C(0,["SSS",3],0,"millisecond"),C(0,["SSSS",4],0,function(){return 10*this.millisecond()}),C(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),C(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),C(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),C(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),C(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),eu("S",Q,V),eu("SS",Q,z),eu("SSS",Q,$),m="SSSS";m.length<=9;m+="S")eu(m,er);function tW(e,t){t[6]=ef(("0."+e)*1e3)}for(m="S";m.length<=9;m+="S")eh(m,tW);g=e_("Milliseconds",!1),C("z",0,0,"zoneAbbr"),C("zz",0,0,"zoneName");var tH=T.prototype;function tV(e){return e}tH.add=tI,tH.calendar=function(t,i){if(1==arguments.length){if(arguments[0]){var u,c,d;(u=arguments[0],S(u)||l(u)||tA(u)||s(u)||(c=r(u),d=!1,c&&(d=0===u.filter(function(e){return!s(e)&&tA(u)}).length),c&&d)||function(e){var t,r,i=n(e)&&!o(e),s=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=l.length;for(t=0;t<u;t+=1)r=l[t],s=s||a(e,r);return i&&s}(u)||null==u)?(t=arguments[0],i=void 0):function(e){var t,r,i=n(e)&&!o(e),s=!1,l=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<l.length;t+=1)r=l[t],s=s||a(e,r);return i&&s}(arguments[0])&&(i=arguments[0],t=void 0)}else t=void 0,i=void 0}var f=t||to(),p=tg(f,this).startOf("day"),h=e.calendarFormat(this,p)||"sameElse",m=i&&(I(i[h])?i[h].call(this,f):i[h]);return this.format(m||this.localeData().calendar(h,this,to(f)))},tH.clone=function(){return new T(this)},tH.diff=function(e,t,r){var n,a,o;if(!this.isValid()||!(n=tg(e,this)).isValid())return NaN;switch(a=(n.utcOffset()-this.utcOffset())*6e4,t=N(t)){case"year":o=tM(this,n)/12;break;case"month":o=tM(this,n);break;case"quarter":o=tM(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-a)/864e5;break;case"week":o=(this-n-a)/6048e5;break;default:o=this-n}return r?o:ed(o)},tH.endOf=function(t){var r,n;if(void 0===(t=N(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?tC:tL,t){case"year":r=n(this.year()+1,0,1)-1;break;case"quarter":r=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":r=n(this.year(),this.month()+1,1)-1;break;case"week":r=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":r=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":r=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":r=this._d.valueOf(),r+=36e5-((r+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5-1;break;case"minute":r=this._d.valueOf(),r+=6e4-(r%6e4+6e4)%6e4-1;break;case"second":r=this._d.valueOf(),r+=1e3-(r%1e3+1e3)%1e3-1}return this._d.setTime(r),e.updateOffset(this,!0),this},tH.format=function(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var r=U(this,t);return this.localeData().postformat(r)},tH.from=function(e,t){return this.isValid()&&(S(e)&&e.isValid()||to(e).isValid())?tS({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tH.fromNow=function(e){return this.from(to(),e)},tH.to=function(e,t){return this.isValid()&&(S(e)&&e.isValid()||to(e).isValid())?tS({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tH.toNow=function(e){return this.to(to(),e)},tH.get=function(e){return I(this[e=N(e)])?this[e]():this},tH.invalidAt=function(){return f(this).overflow},tH.isAfter=function(e,t){var r=S(e)?e:to(e);return!!(this.isValid()&&r.isValid())&&("millisecond"===(t=N(t)||"millisecond")?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf())},tH.isBefore=function(e,t){var r=S(e)?e:to(e);return!!(this.isValid()&&r.isValid())&&("millisecond"===(t=N(t)||"millisecond")?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf())},tH.isBetween=function(e,t,r,n){var a=S(e)?e:to(e),o=S(t)?t:to(t);return!!(this.isValid()&&a.isValid()&&o.isValid())&&("("===(n=n||"()")[0]?this.isAfter(a,r):!this.isBefore(a,r))&&(")"===n[1]?this.isBefore(o,r):!this.isAfter(o,r))},tH.isSame=function(e,t){var r,n=S(e)?e:to(e);return!!(this.isValid()&&n.isValid())&&("millisecond"===(t=N(t)||"millisecond")?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf()))},tH.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},tH.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},tH.isValid=function(){return p(this)},tH.lang=tR,tH.locale=tk,tH.localeData=tD,tH.max=ts,tH.min=ti,tH.parsingFlags=function(){return c({},f(this))},tH.set=function(e,t){if("object"==typeof e){var r,n=function(e){var t,r=[];for(t in e)a(e,t)&&r.push({unit:t,priority:H[t]});return r.sort(function(e,t){return e.priority-t.priority}),r}(e=Y(e)),o=n.length;for(r=0;r<o;r++)this[n[r].unit](e[n[r].unit])}else if(I(this[e=N(e)]))return this[e](t);return this},tH.startOf=function(t){var r,n;if(void 0===(t=N(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?tC:tL,t){case"year":r=n(this.year(),0,1);break;case"quarter":r=n(this.year(),this.month()-this.month()%3,1);break;case"month":r=n(this.year(),this.month(),1);break;case"week":r=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":r=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":r=n(this.year(),this.month(),this.date());break;case"hour":r=this._d.valueOf(),r-=((r+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5;break;case"minute":r=this._d.valueOf(),r-=(r%6e4+6e4)%6e4;break;case"second":r=this._d.valueOf(),r-=(r%1e3+1e3)%1e3}return this._d.setTime(r),e.updateOffset(this,!0),this},tH.subtract=tO,tH.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},tH.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},tH.toDate=function(){return new Date(this.valueOf())},tH.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,r=t?this.clone().utc():this;return 0>r.year()||r.year()>9999?U(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):I(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+6e4*this.utcOffset()).toISOString().replace("Z",U(r,"Z")):U(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},tH.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,r,n="moment",a="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+n+'("]',t=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",r=a+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+r)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(tH[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),tH.toJSON=function(){return this.isValid()?this.toISOString():null},tH.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},tH.unix=function(){return Math.floor(this.valueOf()/1e3)},tH.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},tH.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},tH.eraName=function(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""},tH.eraNarrow=function(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""},tH.eraAbbr=function(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""},tH.eraYear=function(){var t,r,n,a,o=this.localeData().eras();for(t=0,r=o.length;t<r;++t)if(n=o[t].since<=o[t].until?1:-1,a=this.clone().startOf("day").valueOf(),o[t].since<=a&&a<=o[t].until||o[t].until<=a&&a<=o[t].since)return(this.year()-e(o[t].since).year())*n+o[t].offset;return this.year()},tH.year=eb,tH.isLeapYear=function(){return eg(this.year())},tH.weekYear=function(e){return tN.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},tH.isoWeekYear=function(e){return tN.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},tH.quarter=tH.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)},tH.month=eO,tH.daysInMonth=function(){return ev(this.year(),this.month())},tH.week=tH.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add((e-t)*7,"d")},tH.isoWeek=tH.isoWeeks=function(e){var t=eL(this,1,4).week;return null==e?t:this.add((e-t)*7,"d")},tH.weeksInYear=function(){var e=this.localeData()._week;return eC(this.year(),e.dow,e.doy)},tH.weeksInWeekYear=function(){var e=this.localeData()._week;return eC(this.weekYear(),e.dow,e.doy)},tH.isoWeeksInYear=function(){return eC(this.year(),1,4)},tH.isoWeeksInISOWeekYear=function(){return eC(this.isoWeekYear(),1,4)},tH.date=tF,tH.day=tH.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,r,n=eT(this,"Day");return null==e?n:(t=e,r=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=r.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-n,"d"))},tH.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},tH.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t,r=(t=this.localeData(),"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e);return this.day(this.day()%7?r:r-7)},tH.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},tH.hour=tH.hours=eH,tH.minute=tH.minutes=tB,tH.second=tH.seconds=tG,tH.millisecond=tH.milliseconds=g,tH.utcOffset=function(t,r,n){var a,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null==t)return this._isUTC?o:ty(this);if("string"==typeof t){if(null===(t=tm(eo,t)))return this}else 16>Math.abs(t)&&!n&&(t*=60);return!this._isUTC&&r&&(a=ty(this)),this._offset=t,this._isUTC=!0,null!=a&&this.add(a,"m"),o===t||(!r||this._changeInProgress?tx(this,tS(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this},tH.utc=function(e){return this.utcOffset(0,e)},tH.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(ty(this),"m")),this},tH.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=tm(ea,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},tH.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?to(e).utcOffset():0,(this.utcOffset()-e)%60==0)},tH.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},tH.isLocal=function(){return!!this.isValid()&&!this._isUTC},tH.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},tH.isUtc=tb,tH.isUTC=tb,tH.zoneAbbr=function(){return this._isUTC?"UTC":""},tH.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},tH.dates=w("dates accessor is deprecated. Use date instead.",tF),tH.months=w("months accessor is deprecated. Use month instead",eO),tH.years=w("years accessor is deprecated. Use year instead",eb),tH.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),tH.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!i(this._isDSTShifted))return this._isDSTShifted;var e,t={};return _(t,this),(t=tn(t))._a?(e=t._isUTC?d(t._a):to(t._a),this._isDSTShifted=this.isValid()&&function(e,t,r){var n,a=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),i=0;for(n=0;n<a;n++)(r&&e[n]!==t[n]||!r&&ef(e[n])!==ef(t[n]))&&i++;return i+o}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var tz=A.prototype;function t$(e,t,r,n){var a=eX(),o=d().set(n,t);return a[r](o,e)}function tq(e,t,r){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return t$(e,t,r,"month");var n,a=[];for(n=0;n<12;n++)a[n]=t$(e,n,r,"month");return a}function tZ(e,t,r,n){"boolean"==typeof e||(r=t=e,e=!1),s(t)&&(r=t,t=void 0),t=t||"";var a,o=eX(),i=e?o._week.dow:0,l=[];if(null!=r)return t$(t,(r+i)%7,n,"day");for(a=0;a<7;a++)l[a]=t$(t,(a+i)%7,n,"day");return l}tz.calendar=function(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return I(n)?n.call(t,r):n},tz.longDateFormat=function(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(k).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},tz.invalidDate=function(){return this._invalidDate},tz.ordinal=function(e){return this._ordinal.replace("%d",e)},tz.preparse=tV,tz.postformat=tV,tz.relativeTime=function(e,t,r,n){var a=this._relativeTime[r];return I(a)?a(e,t,r,n):a.replace(/%d/i,e)},tz.pastFuture=function(e,t){var r=this._relativeTime[e>0?"future":"past"];return I(r)?r(t):r.replace(/%s/i,t)},tz.set=function(e){var t,r;for(r in e)a(e,r)&&(I(t=e[r])?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},tz.eras=function(t,r){var n,a,o,i=this._eras||eX("en")._eras;for(n=0,a=i.length;n<a;++n)switch("string"==typeof i[n].since&&(o=e(i[n].since).startOf("day"),i[n].since=o.valueOf()),typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":o=e(i[n].until).startOf("day").valueOf(),i[n].until=o.valueOf()}return i},tz.erasParse=function(e,t,r){var n,a,o,i,s,l=this.eras();for(n=0,e=e.toUpperCase(),a=l.length;n<a;++n)if(o=l[n].name.toUpperCase(),i=l[n].abbr.toUpperCase(),s=l[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(i===e)return l[n];break;case"NNNN":if(o===e)return l[n];break;case"NNNNN":if(s===e)return l[n]}else if([o,i,s].indexOf(e)>=0)return l[n]},tz.erasConvertYear=function(t,r){var n=t.since<=t.until?1:-1;return void 0===r?e(t.since).year():e(t.since).year()+(r-t.offset)*n},tz.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||tj.call(this),e?this._erasAbbrRegex:this._erasRegex},tz.erasNameRegex=function(e){return a(this,"_erasNameRegex")||tj.call(this),e?this._erasNameRegex:this._erasRegex},tz.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||tj.call(this),e?this._erasNarrowRegex:this._erasRegex},tz.months=function(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||eE).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone},tz.monthsShort=function(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[eE.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},tz.monthsParse=function(e,t,r){var n,a,o;if(this._monthsParseExact)return ex.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++)if(a=d([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),r||this._monthsParse[n]||(o="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[n]=RegExp(o.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[n].test(e)||r&&"MMM"===t&&this._shortMonthsParse[n].test(e)||!r&&this._monthsParse[n].test(e))return n},tz.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||eA.call(this),e)?this._monthsStrictRegex:this._monthsRegex:(a(this,"_monthsRegex")||(this._monthsRegex=ei),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},tz.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||eA.call(this),e)?this._monthsShortStrictRegex:this._monthsShortRegex:(a(this,"_monthsShortRegex")||(this._monthsShortRegex=ei),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},tz.week=function(e){return eL(e,this._week.dow,this._week.doy).week},tz.firstDayOfYear=function(){return this._week.doy},tz.firstDayOfWeek=function(){return this._week.dow},tz.weekdays=function(e,t){var n=r(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?eU(n,this._week.dow):e?n[e.day()]:n},tz.weekdaysMin=function(e){return!0===e?eU(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},tz.weekdaysShort=function(e){return!0===e?eU(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},tz.weekdaysParse=function(e,t,r){var n,a,o;if(this._weekdaysParseExact)return eP.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=d([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=RegExp(o.replace(".",""),"i")),r&&"dddd"===t&&this._fullWeekdaysParse[n].test(e)||r&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(r&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}},tz.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||eN.call(this),e)?this._weekdaysStrictRegex:this._weekdaysRegex:(a(this,"_weekdaysRegex")||(this._weekdaysRegex=ei),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},tz.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||eN.call(this),e)?this._weekdaysShortStrictRegex:this._weekdaysShortRegex:(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ei),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},tz.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||eN.call(this),e)?this._weekdaysMinStrictRegex:this._weekdaysMinRegex:(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ei),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},tz.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},tz.meridiem=function(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"},eK("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=1===ef(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+r}}),e.lang=w("moment.lang is deprecated. Use moment.locale instead.",eK),e.langData=w("moment.langData is deprecated. Use moment.localeData instead.",eX);var tK=Math.abs;function tJ(e,t,r,n){var a=tS(t,r);return e._milliseconds+=n*a._milliseconds,e._days+=n*a._days,e._months+=n*a._months,e._bubble()}function tX(e){return e<0?Math.floor(e):Math.ceil(e)}function tQ(e){return 4800*e/146097}function t0(e){return 146097*e/4800}function t1(e){return function(){return this.as(e)}}var t2=t1("ms"),t3=t1("s"),t4=t1("m"),t6=t1("h"),t5=t1("d"),t9=t1("w"),t8=t1("M"),t7=t1("Q"),re=t1("y");function rt(e){return function(){return this.isValid()?this._data[e]:NaN}}var rr=rt("milliseconds"),rn=rt("seconds"),ra=rt("minutes"),ro=rt("hours"),ri=rt("days"),rs=rt("months"),rl=rt("years"),ru=Math.round,rc={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function rd(e,t,r,n,a){return a.relativeTime(t||1,!!r,e,n)}var rf=Math.abs;function rp(e){return(e>0)-(e<0)||+e}function rh(){if(!this.isValid())return this.localeData().invalidDate();var e,t,r,n,a,o,i,s,l=rf(this._milliseconds)/1e3,u=rf(this._days),c=rf(this._months),d=this.asSeconds();return d?(e=ed(l/60),t=ed(e/60),l%=60,e%=60,r=ed(c/12),c%=12,n=l?l.toFixed(3).replace(/\.?0+$/,""):"",a=d<0?"-":"",o=rp(this._months)!==rp(d)?"-":"",i=rp(this._days)!==rp(d)?"-":"",s=rp(this._milliseconds)!==rp(d)?"-":"",a+"P"+(r?o+r+"Y":"")+(c?o+c+"M":"")+(u?i+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+n+"S":"")):"P0D"}var rm=tc.prototype;return rm.isValid=function(){return this._isValid},rm.abs=function(){var e=this._data;return this._milliseconds=tK(this._milliseconds),this._days=tK(this._days),this._months=tK(this._months),e.milliseconds=tK(e.milliseconds),e.seconds=tK(e.seconds),e.minutes=tK(e.minutes),e.hours=tK(e.hours),e.months=tK(e.months),e.years=tK(e.years),this},rm.add=function(e,t){return tJ(this,e,t,1)},rm.subtract=function(e,t){return tJ(this,e,t,-1)},rm.as=function(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if("month"===(e=N(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,r=this._months+tQ(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(t0(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw Error("Unknown unit "+e)}},rm.asMilliseconds=t2,rm.asSeconds=t3,rm.asMinutes=t4,rm.asHours=t6,rm.asDays=t5,rm.asWeeks=t9,rm.asMonths=t8,rm.asQuarters=t7,rm.asYears=re,rm.valueOf=t2,rm._bubble=function(){var e,t,r,n,a,o=this._milliseconds,i=this._days,s=this._months,l=this._data;return o>=0&&i>=0&&s>=0||o<=0&&i<=0&&s<=0||(o+=864e5*tX(t0(s)+i),i=0,s=0),l.milliseconds=o%1e3,e=ed(o/1e3),l.seconds=e%60,t=ed(e/60),l.minutes=t%60,r=ed(t/60),l.hours=r%24,i+=ed(r/24),s+=a=ed(tQ(i)),i-=tX(t0(a)),n=ed(s/12),s%=12,l.days=i,l.months=s,l.years=n,this},rm.clone=function(){return tS(this)},rm.get=function(e){return e=N(e),this.isValid()?this[e+"s"]():NaN},rm.milliseconds=rr,rm.seconds=rn,rm.minutes=ra,rm.hours=ro,rm.days=ri,rm.weeks=function(){return ed(this.days()/7)},rm.months=rs,rm.years=rl,rm.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var r,n,a,o,i,s,l,u,c,d,f,p,h,m=!1,g=rc;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(m=e),"object"==typeof t&&(g=Object.assign({},rc,t),null!=t.s&&null==t.ss&&(g.ss=t.s-1)),p=this.localeData(),r=!m,n=g,a=tS(this).abs(),o=ru(a.as("s")),i=ru(a.as("m")),s=ru(a.as("h")),l=ru(a.as("d")),u=ru(a.as("M")),c=ru(a.as("w")),d=ru(a.as("y")),f=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||i<=1&&["m"]||i<n.m&&["mm",i]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l],null!=n.w&&(f=f||c<=1&&["w"]||c<n.w&&["ww",c]),(f=f||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=r,f[3]=+this>0,f[4]=p,h=rd.apply(null,f),m&&(h=p.pastFuture(+this,h)),p.postformat(h)},rm.toISOString=rh,rm.toString=rh,rm.toJSON=rh,rm.locale=tk,rm.localeData=tD,rm.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",rh),rm.lang=tR,C("X",0,0,"unix"),C("x",0,0,"valueOf"),eu("x",en),eu("X",/[+-]?\d+(\.\d{1,3})?/),eh("X",function(e,t,r){r._d=new Date(1e3*parseFloat(e))}),eh("x",function(e,t,r){r._d=new Date(ef(e))}),e.version="2.30.1",F=to,e.fn=tH,e.min=function(){var e=[].slice.call(arguments,0);return tl("isBefore",e)},e.max=function(){var e=[].slice.call(arguments,0);return tl("isAfter",e)},e.now=function(){return Date.now?Date.now():+new Date},e.utc=d,e.unix=function(e){return to(1e3*e)},e.months=function(e,t){return tq(e,t,"months")},e.isDate=l,e.locale=eK,e.invalid=h,e.duration=tS,e.isMoment=S,e.weekdays=function(e,t,r){return tZ(e,t,r,"weekdays")},e.parseZone=function(){return to.apply(null,arguments).parseZone()},e.localeData=eX,e.isDuration=td,e.monthsShort=function(e,t){return tq(e,t,"monthsShort")},e.weekdaysMin=function(e,t,r){return tZ(e,t,r,"weekdaysMin")},e.defineLocale=eJ,e.updateLocale=function(e,t){if(null!=t){var r,n,a=eV;null!=ez[e]&&null!=ez[e].parentLocale?ez[e].set(O(ez[e]._config,t)):(null!=(n=eZ(e))&&(a=n._config),t=O(a,t),null==n&&(t.abbr=e),(r=new A(t)).parentLocale=ez[e],ez[e]=r),eK(e)}else null!=ez[e]&&(null!=ez[e].parentLocale?(ez[e]=ez[e].parentLocale,e===eK()&&eK(e)):null!=ez[e]&&delete ez[e]);return ez[e]},e.locales=function(){return G(ez)},e.weekdaysShort=function(e,t,r){return tZ(e,t,r,"weekdaysShort")},e.normalizeUnits=N,e.relativeTimeRounding=function(e){return void 0===e?ru:"function"==typeof e&&(ru=e,!0)},e.relativeTimeThreshold=function(e,t){return void 0!==rc[e]&&(void 0===t?rc[e]:(rc[e]=t,"s"===e&&(rc.ss=t-1),!0))},e.calendarFormat=function(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"},e.prototype=tH,e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},e}()},{}]},["frrV4"],"frrV4","parcelRequiree1df"),globalThis.define=t; | 286,994 | index | js | en | javascript | code | {"qsc_code_num_words": 53247, "qsc_code_num_chars": 286994.0, "qsc_code_mean_word_length": 3.59702894, "qsc_code_frac_words_unique": 0.07645501, "qsc_code_frac_chars_top_2grams": 0.00891762, "qsc_code_frac_chars_top_3grams": 0.01395074, "qsc_code_frac_chars_top_4grams": 0.00712156, "qsc_code_frac_chars_dupe_5grams": 0.31022132, "qsc_code_frac_chars_dupe_6grams": 0.24227932, "qsc_code_frac_chars_dupe_7grams": 0.20133555, "qsc_code_frac_chars_dupe_8grams": 0.16529439, "qsc_code_frac_chars_dupe_9grams": 0.13667239, "qsc_code_frac_chars_dupe_10grams": 0.12137461, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.03492139, "qsc_code_frac_chars_whitespace": 0.01798295, "qsc_code_size_file_byte": 286994.0, "qsc_code_num_lines": 7.0, "qsc_code_num_chars_line_max": 166135.0, "qsc_code_num_chars_line_mean": 40999.14285714, "qsc_code_frac_chars_alphabet": 0.64466901, "qsc_code_frac_chars_comments": 0.00020209, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 9.25, "qsc_code_frac_chars_string_length": 0.27027884, "qsc_code_frac_chars_long_word_length": 0.17827955, "qsc_code_frac_lines_string_concat": 0.25, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codejavascript_cate_ast": 0.0, "qsc_codejavascript_cate_var_zero": null, "qsc_codejavascript_frac_lines_func_ratio": null, "qsc_codejavascript_num_statement_line": null, "qsc_codejavascript_score_lines_no_logic": null, "qsc_codejavascript_frac_words_legal_var_name": null, "qsc_codejavascript_frac_words_legal_func_name": null, "qsc_codejavascript_frac_words_legal_class_name": null, "qsc_codejavascript_frac_lines_print": 0.25} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 1, "qsc_code_num_chars_line_max": 1, "qsc_code_num_chars_line_mean": 1, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 1, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codejavascript_cate_ast": 1, "qsc_codejavascript_cate_var_zero": 0, "qsc_codejavascript_frac_lines_func_ratio": 0, "qsc_codejavascript_score_lines_no_logic": 0, "qsc_codejavascript_frac_lines_print": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/НастройкиПользователей/Forms/ВыборНастроек/Ext/Form/Module.bsl | ///////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2024, ООО 1С-Софт
// Все права защищены. Эта программа и сопроводительные материалы предоставляются
// в соответствии с условиями лицензии Attribution 4.0 International (CC BY 4.0)
// Текст лицензии доступен по ссылке:
// https://creativecommons.org/licenses/by/4.0/legalcode
///////////////////////////////////////////////////////////////////////////////////////////////////////
#Область ОбработчикиСобытийФормы
&НаСервере
Процедура ПриСозданииНаСервере(Отказ, СтандартнаяОбработка)
ПользовательСсылка = Параметры.Пользователь;
ДействиеСНастройками = Параметры.ДействиеСНастройками;
ПользовательИнформационнойБазы = Обработки.НастройкиПользователей.ИмяПользователяИБ(ПользовательСсылка);
ТекущийПользовательСсылка = Пользователи.ТекущийПользователь();
ТекущийПользователь = Обработки.НастройкиПользователей.ИмяПользователяИБ(ТекущийПользовательСсылка);
ВыбраннаяСтраницаНастроек = Элементы.ВидыНастроек.ТекущаяСтраница.Имя;
ИмяФормыПерсональныхНастроек =
ОбщегоНазначения.ОбщиеПараметрыБазовойФункциональности().ИмяФормыПерсональныхНастроек;
КонецПроцедуры
&НаКлиенте
Процедура ПриЗакрытии(ЗавершениеРаботы)
Если ДанныеВХранилищеНастроекСохранены
И ТипЗнч(ВладелецФормы) = Тип("ФормаКлиентскогоПриложения") Тогда
Свойства = Новый Структура("ОчиститьИсториюВыбораНастроек", Ложь);
ЗаполнитьЗначенияСвойств(ВладелецФормы, Свойства);
КонецЕсли;
КонецПроцедуры
&НаСервере
Процедура ПриСохраненииДанныхВНастройкахНаСервере(Настройки)
Настройки.Удалить("ВнешнийВид");
Настройки.Удалить("НастройкиОтчетов");
Настройки.Удалить("ПрочиеНастройки");
ВнешнийВидДерево = РеквизитФормыВЗначение("ВнешнийВид");
НастройкиОтчетовДерево = РеквизитФормыВЗначение("НастройкиОтчетов");
ПрочиеНастройкиДерево = РеквизитФормыВЗначение("ПрочиеНастройки");
ПомеченныеНастройкиВнешнегоВида = ПомеченныеНастройки(ВнешнийВидДерево);
ПомеченныеНастройкиОтчетов = ПомеченныеНастройки(НастройкиОтчетовДерево);
ПомеченныеПрочиеНастройки = ПомеченныеНастройки(ПрочиеНастройкиДерево);
Настройки.Вставить("ПомеченныеНастройкиВнешнегоВида", ПомеченныеНастройкиВнешнегоВида);
Настройки.Вставить("ПомеченныеНастройкиОтчетов", ПомеченныеНастройкиОтчетов);
Настройки.Вставить("ПомеченныеПрочиеНастройки", ПомеченныеПрочиеНастройки);
ДанныеВХранилищеНастроекСохранены = Истина;
КонецПроцедуры
&НаСервере
Процедура ПриЗагрузкеДанныхИзНастроекНаСервере(Настройки)
ВсеВыбранныеНастройки = Новый Структура;
ВсеВыбранныеНастройки.Вставить("ПомеченныеНастройкиВнешнегоВида");
ВсеВыбранныеНастройки.Вставить("ПомеченныеНастройкиОтчетов");
ВсеВыбранныеНастройки.Вставить("ПомеченныеПрочиеНастройки");
Если Параметры.ОчиститьИсториюВыбораНастроек Тогда
Настройки.Очистить();
Возврат;
КонецЕсли;
ПомеченныеНастройкиВнешнегоВида = Настройки.Получить("ПомеченныеНастройкиВнешнегоВида");
ПомеченныеНастройкиОтчетов = Настройки.Получить("ПомеченныеНастройкиОтчетов");
ПомеченныеПрочиеНастройки = Настройки.Получить("ПомеченныеПрочиеНастройки");
ВсеВыбранныеНастройки.ПомеченныеНастройкиВнешнегоВида = ПомеченныеНастройкиВнешнегоВида;
ВсеВыбранныеНастройки.ПомеченныеНастройкиОтчетов = ПомеченныеНастройкиОтчетов;
ВсеВыбранныеНастройки.ПомеченныеПрочиеНастройки = ПомеченныеПрочиеНастройки;
КонецПроцедуры
&НаКлиенте
Процедура ПриОткрытии(Отказ)
ОбновитьСписокНастроек();
КонецПроцедуры
#КонецОбласти
#Область ОбработчикиСобытийЭлементовШапкиФормы
&НаКлиенте
Процедура ПриСменеСтраницы(Элемент, ТекущаяСтраница)
ВыбраннаяСтраницаНастроек = ТекущаяСтраница.Имя;
КонецПроцедуры
&НаКлиенте
Процедура ДеревоНастроекВыбор(Элемент, ВыбраннаяСтрока, Поле, СтандартнаяОбработка)
СтандартнаяОбработка = Ложь;
ПользователиСлужебныйКлиент.ОткрытьОтчетИлиФорму(
ТекущийЭлемент, ПользовательИнформационнойБазы, ТекущийПользователь, ИмяФормыПерсональныхНастроек);
КонецПроцедуры
&НаКлиенте
Процедура ПометкаПриИзменении(Элемент)
ИзменитьПометку(Элемент);
КонецПроцедуры
#КонецОбласти
#Область ОбработчикиКомандФормы
&НаКлиенте
Процедура Обновить(Команда)
ОбновитьСписокНастроек();
КонецПроцедуры
&НаКлиенте
Процедура ОткрытьНастройку(Команда)
ПользователиСлужебныйКлиент.ОткрытьОтчетИлиФорму(
ТекущийЭлемент, ПользовательИнформационнойБазы, ТекущийПользователь, ИмяФормыПерсональныхНастроек);
КонецПроцедуры
&НаКлиенте
Процедура ПометитьВсе(Команда)
Если ВыбраннаяСтраницаНастроек = "НастройкиОтчетовСтраница" Тогда
ДеревоНастроек = НастройкиОтчетов.ПолучитьЭлементы();
ПометитьЭлементыДерева(ДеревоНастроек, Истина);
ИначеЕсли ВыбраннаяСтраницаНастроек = "ВнешнийВидСтраница" Тогда
ДеревоНастроек = ВнешнийВид.ПолучитьЭлементы();
ПометитьЭлементыДерева(ДеревоНастроек, Истина);
Иначе
ДеревоНастроек = ПрочиеНастройки.ПолучитьЭлементы();
ПометитьЭлементыДерева(ДеревоНастроек, Истина);
КонецЕсли;
КонецПроцедуры
&НаКлиенте
Процедура СнятьПометкуСоВсех(Команда)
Если ВыбраннаяСтраницаНастроек = "НастройкиОтчетовСтраница" Тогда
ДеревоНастроек = НастройкиОтчетов.ПолучитьЭлементы();
ПометитьЭлементыДерева(ДеревоНастроек, Ложь);
ИначеЕсли ВыбраннаяСтраницаНастроек = "ВнешнийВидСтраница" Тогда
ДеревоНастроек = ВнешнийВид.ПолучитьЭлементы();
ПометитьЭлементыДерева(ДеревоНастроек, Ложь);
Иначе
ДеревоНастроек = ПрочиеНастройки.ПолучитьЭлементы();
ПометитьЭлементыДерева(ДеревоНастроек, Ложь);
КонецЕсли;
КонецПроцедуры
&НаКлиенте
Процедура Выбрать(Команда)
Результат = Новый Структура;
ВыбранныеНастройкиВнешнегоВида = ВыбранныеНастройки(ВнешнийВид);
ВыбранныеНастройкиОтчетов = ВыбранныеНастройки(НастройкиОтчетов);
ВыбранныеПрочиеНастройкиСтруктура = ВыбранныеНастройки(ПрочиеНастройки);
КоличествоНастроек = ВыбранныеНастройкиВнешнегоВида.КоличествоНастроек
+ ВыбранныеНастройкиОтчетов.КоличествоНастроек
+ ВыбранныеПрочиеНастройкиСтруктура.КоличествоНастроек;
Если ВыбранныеНастройкиОтчетов.КоличествоНастроек = 1 Тогда
ПредставленияНастроек = ВыбранныеНастройкиОтчетов.ПредставленияНастроек;
ИначеЕсли ВыбранныеНастройкиВнешнегоВида.КоличествоНастроек = 1 Тогда
ПредставленияНастроек = ВыбранныеНастройкиВнешнегоВида.ПредставленияНастроек;
ИначеЕсли ВыбранныеПрочиеНастройкиСтруктура.КоличествоНастроек = 1 Тогда
ПредставленияНастроек = ВыбранныеПрочиеНастройкиСтруктура.ПредставленияНастроек;
КонецЕсли;
Результат.Вставить("ВнешнийВид", ВыбранныеНастройкиВнешнегоВида.МассивНастроек);
Результат.Вставить("НастройкиОтчетов", ВыбранныеНастройкиОтчетов.МассивНастроек);
Результат.Вставить("ПрочиеНастройки", ВыбранныеПрочиеНастройкиСтруктура.МассивНастроек);
Результат.Вставить("ПредставленияНастроек", ПредставленияНастроек);
Результат.Вставить("КоличествоНастроек", КоличествоНастроек);
Результат.Вставить("ТаблицаВариантовОтчетов", ТаблицаПользовательскихВариантовОтчетов);
Результат.Вставить("ВыбранныеВариантыОтчетов", ВыбранныеНастройкиОтчетов.ВариантыОтчетов);
Результат.Вставить("ПерсональныеНастройки", ВыбранныеПрочиеНастройкиСтруктура.МассивПерсональныхНастроек);
Результат.Вставить("ПрочиеПользовательскиеНастройки", ВыбранныеПрочиеНастройкиСтруктура.ПрочиеПользовательскиеНастройки);
Закрыть(Результат);
КонецПроцедуры
#КонецОбласти
#Область СлужебныеПроцедурыИФункции
#Область ПроцедурыИФункцииОтвечающиеЗаВыводНастроекПользователю
&НаКлиенте
Процедура ОбновитьСписокНастроек()
Элементы.КоманднаяПанель.Доступность = Ложь;
Элементы.СтраницыДлительнаяОперация.ТекущаяСтраница = Элементы.СтраницаДлительнаяОперация;
Результат = ОбновлениеСпискаНастроек();
ПараметрыОжидания = ДлительныеОперацииКлиент.ПараметрыОжидания(ЭтотОбъект);
ПараметрыОжидания.ВыводитьОкноОжидания = Ложь;
ОповещениеОЗавершении = Новый ОписаниеОповещения("ОбновитьСписокНастроекЗавершение", ЭтотОбъект);
ДлительныеОперацииКлиент.ОжидатьЗавершение(Результат, ОповещениеОЗавершении, ПараметрыОжидания);
КонецПроцедуры
&НаСервере
Функция ОбновлениеСпискаНастроек()
Если ЗначениеЗаполнено(ИдентификаторЗадания) Тогда
ДлительныеОперации.ОтменитьВыполнениеЗадания(ИдентификаторЗадания);
ИдентификаторЗадания = Неопределено;
КонецЕсли;
ПараметрыДлительнойОперации = ПараметрыДлительнойОперации();
ПараметрыВыполнения = ДлительныеОперации.ПараметрыВыполненияВФоне(УникальныйИдентификатор);
ПараметрыВыполнения.ОжидатьЗавершение = 0; // запускать сразу
ПараметрыВыполнения.НаименованиеФоновогоЗадания = НСтр("ru = 'Обновление настроек пользователей'");
ДлительнаяОперация = ДлительныеОперации.ВыполнитьВФоне("ПользователиСлужебный.ЗаполнитьСпискиНастроек",
ПараметрыДлительнойОперации, ПараметрыВыполнения);
Если ДлительнаяОперация.Статус = "Выполняется" Тогда
ИдентификаторЗадания = ДлительнаяОперация.ИдентификаторЗадания;
КонецЕсли;
Возврат ДлительнаяОперация;
КонецФункции
// Параметры:
// Результат - см. ДлительныеОперацииКлиент.НовыйРезультатДлительнойОперации
// ДополнительныеПараметры - Неопределено
//
&НаКлиенте
Процедура ОбновитьСписокНастроекЗавершение(Результат, ДополнительныеПараметры) Экспорт
Элементы.СтраницыДлительнаяОперация.ТекущаяСтраница = Элементы.СтраницаНастройки;
Элементы.КоманднаяПанель.Доступность = Истина;
Если Результат = Неопределено Тогда
Возврат;
КонецЕсли;
Если Результат.Статус = "Выполнено" Тогда
ЗаполнитьНастройки(Результат.АдресРезультата);
РазвернутьДеревоЗначений();
ИначеЕсли Результат.Статус = "Ошибка" Тогда
СтандартныеПодсистемыКлиент.ВывестиИнформациюОбОшибке(
Результат.ИнформацияОбОшибке);
КонецЕсли;
КонецПроцедуры
&НаСервере
Процедура ЗаполнитьНастройки(Знач АдресРезультата)
Результат = ПолучитьИзВременногоХранилища(АдресРезультата);
ЗначениеВРеквизитФормы(Результат.НастройкиОтчетовДерево, "НастройкиОтчетов");
ЗначениеВРеквизитФормы(Результат.ПользовательскиеВариантыОтчетов, "ТаблицаПользовательскихВариантовОтчетов");
ЗначениеВРеквизитФормы(Результат.НастройкиВнешнегоВида, "ВнешнийВид");
ЗначениеВРеквизитФормы(Результат.ПрочиеНастройкиДерево, "ПрочиеНастройки");
Если Не НачальныеНастройкиЗагружены
И ВсеВыбранныеНастройки <> Неопределено Тогда
ЗагрузитьЗначенияПометок(НастройкиОтчетов, ВсеВыбранныеНастройки.ПомеченныеНастройкиОтчетов, "НастройкиОтчетов");
ЗагрузитьЗначенияПометок(ВнешнийВид, ВсеВыбранныеНастройки.ПомеченныеНастройкиВнешнегоВида, "ВнешнийВид");
ЗагрузитьЗначенияПометок(ПрочиеНастройки, ВсеВыбранныеНастройки.ПомеченныеПрочиеНастройки, "ПрочиеНастройки");
НачальныеНастройкиЗагружены = Истина;
КонецЕсли;
КонецПроцедуры
#КонецОбласти
#Область ВспомогательныеПроцедурыИФункции
&НаКлиенте
Процедура ИзменитьПометку(Элемент)
ПомеченныйЭлемент = Элемент.Родитель.Родитель.ТекущиеДанные;
ЗначениеПометки = ПомеченныйЭлемент.Пометка;
Если ЗначениеПометки = 2 Тогда
ЗначениеПометки = 0;
ПомеченныйЭлемент.Пометка = ЗначениеПометки;
КонецЕсли;
РодительЭлемента = ПомеченныйЭлемент.ПолучитьРодителя();
ДочерниеЭлементы = ПомеченныйЭлемент.ПолучитьЭлементы();
КоличествоНастроек = 0;
Если РодительЭлемента = Неопределено Тогда
Для Каждого ДочернийЭлемент Из ДочерниеЭлементы Цикл
Если ДочернийЭлемент.Пометка <> ЗначениеПометки Тогда
КоличествоНастроек = КоличествоНастроек + 1
КонецЕсли;
ДочернийЭлемент.Пометка = ЗначениеПометки;
КонецЦикла;
Если ДочерниеЭлементы.Количество() = 0 Тогда
КоличествоНастроек = КоличествоНастроек + 1;
КонецЕсли;
Иначе
ПроверитьПометкиДочернихЭлементовИОтметитьРодителя(РодительЭлемента, ЗначениеПометки);
КоличествоНастроек = КоличествоНастроек + 1;
КонецЕсли;
КоличествоНастроек = ?(ЗначениеПометки, КоличествоНастроек, -КоличествоНастроек);
// Обновление заголовка страницы настроек.
ОбновитьЗаголовокСтраницы(КоличествоНастроек);
КонецПроцедуры
&НаКлиенте
Процедура ОбновитьЗаголовокСтраницы(КоличествоНастроек)
Если ВыбраннаяСтраницаНастроек = "НастройкиОтчетовСтраница" Тогда
КоличествоНастроекОтчетов = КоличествоНастроекОтчетов + КоличествоНастроек;
Если КоличествоНастроекОтчетов = 0 Тогда
ТекстЗаголовка = НСтр("ru = 'Настройки отчетов'");
Иначе
ТекстЗаголовка = НСтр("ru = 'Настройки отчетов (%1)'");
ТекстЗаголовка = СтроковыеФункцииКлиентСервер.ПодставитьПараметрыВСтроку(ТекстЗаголовка, КоличествоНастроекОтчетов);
КонецЕсли;
Элементы.НастройкиОтчетовСтраница.Заголовок = ТекстЗаголовка;
ИначеЕсли ВыбраннаяСтраницаНастроек = "ВнешнийВидСтраница" Тогда
КоличествоНастроекВнешнегоВида = КоличествоНастроекВнешнегоВида + КоличествоНастроек;
Если КоличествоНастроекВнешнегоВида = 0 Тогда
ТекстЗаголовка = НСтр("ru = 'Внешний вид'");
Иначе
ТекстЗаголовка = НСтр("ru = 'Внешний вид (%1)'");
ТекстЗаголовка = СтроковыеФункцииКлиентСервер.ПодставитьПараметрыВСтроку(ТекстЗаголовка, КоличествоНастроекВнешнегоВида);
КонецЕсли;
Элементы.ВнешнийВидСтраница.Заголовок = ТекстЗаголовка;
ИначеЕсли ВыбраннаяСтраницаНастроек = "ПрочиеНастройкиСтраница" Тогда
КоличествоПрочихНастроек = КоличествоПрочихНастроек + КоличествоНастроек;
Если КоличествоПрочихНастроек = 0 Тогда
ТекстЗаголовка = НСтр("ru = 'Прочие настройки'");
Иначе
ТекстЗаголовка = НСтр("ru = 'Прочие настройки (%1)'");
ТекстЗаголовка = СтроковыеФункцииКлиентСервер.ПодставитьПараметрыВСтроку(ТекстЗаголовка, КоличествоПрочихНастроек);
КонецЕсли;
Элементы.ПрочиеНастройкиСтраница.Заголовок = ТекстЗаголовка;
КонецЕсли;
КонецПроцедуры
&НаКлиенте
Процедура ПроверитьПометкиДочернихЭлементовИОтметитьРодителя(ЭлементДерева, ЗначениеПометки)
ЕстьНеПомеченные = Ложь;
ЕстьПомеченные = Ложь;
ДочерниеЭлементы = ЭлементДерева.ПолучитьЭлементы();
Если ДочерниеЭлементы = Неопределено Тогда
ЭлементДерева.Пометка = ЗначениеПометки;
Иначе
Для Каждого ДочернийЭлемент Из ДочерниеЭлементы Цикл
Если ДочернийЭлемент.Пометка = 0 Тогда
ЕстьНеПомеченные = Истина;
ИначеЕсли ДочернийЭлемент.Пометка = 1 Тогда
ЕстьПомеченные = Истина;
КонецЕсли;
КонецЦикла;
Если ЕстьНеПомеченные
И ЕстьПомеченные Тогда
ЭлементДерева.Пометка = 2;
ИначеЕсли ЕстьПомеченные Тогда
ЭлементДерева.Пометка = 1;
Иначе
ЭлементДерева.Пометка = 0;
КонецЕсли;
КонецЕсли;
КонецПроцедуры
&НаКлиенте
Процедура ПометитьЭлементыДерева(ДеревоНастроек, ЗначениеПометки)
КоличествоНастроек = 0;
Для Каждого ЭлементДерева Из ДеревоНастроек Цикл
ДочерниеЭлементы = ЭлементДерева.ПолучитьЭлементы();
Для Каждого ДочернийЭлемент Из ДочерниеЭлементы Цикл
ДочернийЭлемент.Пометка = ЗначениеПометки;
КоличествоНастроек = КоличествоНастроек + 1;
КонецЦикла;
Если ДочерниеЭлементы.Количество() = 0 Тогда
КоличествоНастроек = КоличествоНастроек + 1;
КонецЕсли;
ЭлементДерева.Пометка = ЗначениеПометки;
КонецЦикла;
КоличествоНастроек = ?(ЗначениеПометки, КоличествоНастроек, 0);
Если ВыбраннаяСтраницаНастроек = "НастройкиОтчетовСтраница" Тогда
КоличествоНастроекОтчетов = КоличествоНастроек;
ИначеЕсли ВыбраннаяСтраницаНастроек = "ВнешнийВидСтраница" Тогда
КоличествоНастроекВнешнегоВида = КоличествоНастроек;
ИначеЕсли ВыбраннаяСтраницаНастроек = "ПрочиеНастройкиСтраница" Тогда
КоличествоПрочихНастроек = КоличествоНастроек;
КонецЕсли;
ОбновитьЗаголовокСтраницы(0);
КонецПроцедуры
&НаКлиенте
Функция ВыбранныеНастройки(ДеревоНастроек)
МассивНастроек = Новый Массив;
МассивПерсональныхНастроек = Новый Массив;
ПредставленияНастроек = Новый Массив;
МассивВариантовОтчетов = Новый Массив;
ПрочиеПользовательскиеНастройки = Новый Массив;
КоличествоНастроек = 0;
Для Каждого Настройка Из ДеревоНастроек.ПолучитьЭлементы() Цикл
Если Настройка.Пометка = 1 Тогда
Если Настройка.Тип = "ПерсональныеНастройки" Тогда
МассивПерсональныхНастроек.Добавить(Настройка.Ключи);
ИначеЕсли Настройка.Тип = "ПрочаяПользовательскаяНастройка" Тогда
ПользовательскиеНастройки = Новый Структура;
ПользовательскиеНастройки.Вставить("ИдентификаторНастройки", Настройка.ТипСтроки);
ПользовательскиеНастройки.Вставить("ЗначениеНастройки", Настройка.Ключи);
ПрочиеПользовательскиеНастройки.Добавить(ПользовательскиеНастройки);
Иначе
МассивНастроек.Добавить(Настройка.Ключи);
Если Настройка.Тип = "ВариантЛичный" Тогда
МассивВариантовОтчетов.Добавить(Настройка.Ключи);
КонецЕсли;
КонецЕсли;
КоличествоДочерних = Настройка.ПолучитьЭлементы().Количество();
КоличествоНастроек = КоличествоНастроек + ?(КоличествоДочерних=0,1,КоличествоДочерних);
Если КоличествоДочерних = 1 Тогда
ДочерняяНастройка = Настройка.ПолучитьЭлементы()[0];
ПредставленияНастроек.Добавить(Настройка.Настройка + " - " + ДочерняяНастройка.Настройка);
ИначеЕсли КоличествоДочерних = 0 Тогда
ПредставленияНастроек.Добавить(Настройка.Настройка);
КонецЕсли;
Иначе
ДочерниеНастройки = Настройка.ПолучитьЭлементы();
Для Каждого ДочерняяНастройка Из ДочерниеНастройки Цикл
Если ДочерняяНастройка.Пометка = 1 Тогда
МассивНастроек.Добавить(ДочерняяНастройка.Ключи);
ПредставленияНастроек.Добавить(Настройка.Настройка + " - " + ДочерняяНастройка.Настройка);
КоличествоНастроек = КоличествоНастроек + 1;
КонецЕсли;
КонецЦикла;
КонецЕсли;
КонецЦикла;
СтруктураНастроек = Новый Структура;
СтруктураНастроек.Вставить("МассивНастроек", МассивНастроек);
СтруктураНастроек.Вставить("МассивПерсональныхНастроек", МассивПерсональныхНастроек);
СтруктураНастроек.Вставить("ПрочиеПользовательскиеНастройки", ПрочиеПользовательскиеНастройки);
СтруктураНастроек.Вставить("ВариантыОтчетов", МассивВариантовОтчетов);
СтруктураНастроек.Вставить("ПредставленияНастроек", ПредставленияНастроек);
СтруктураНастроек.Вставить("КоличествоНастроек", КоличествоНастроек);
Возврат СтруктураНастроек;
КонецФункции
&НаКлиенте
Процедура РазвернутьДеревоЗначений()
Для Каждого Элемент Из НастройкиОтчетов.ПолучитьЭлементы() Цикл
Элементы.НастройкиОтчетовДерево.Развернуть(Элемент.ПолучитьИдентификатор(), Истина);
КонецЦикла;
Для Каждого Элемент Из ВнешнийВид.ПолучитьЭлементы() Цикл
Элементы.ВнешнийВид.Развернуть(Элемент.ПолучитьИдентификатор(), Истина);
КонецЦикла;
КонецПроцедуры
&НаСервере
Функция ПараметрыДлительнойОперации()
ПараметрыДлительнойОперации = Новый Структура;
ПараметрыДлительнойОперации.Вставить("ИмяФормы");
ПараметрыДлительнойОперации.Вставить("ДействиеСНастройками");
ПараметрыДлительнойОперации.Вставить("ПользовательИнформационнойБазы");
ПараметрыДлительнойОперации.Вставить("ПользовательСсылка");
ЗаполнитьЗначенияСвойств(ПараметрыДлительнойОперации, ЭтотОбъект);
ПараметрыДлительнойОперации.Вставить("НастройкиОтчетовДерево", РеквизитФормыВЗначение("НастройкиОтчетов"));
ПараметрыДлительнойОперации.Вставить("НастройкиВнешнегоВида", РеквизитФормыВЗначение("ВнешнийВид"));
ПараметрыДлительнойОперации.Вставить("ПрочиеНастройкиДерево", РеквизитФормыВЗначение("ПрочиеНастройки"));
ПараметрыДлительнойОперации.Вставить("ПользовательскиеВариантыОтчетов", РеквизитФормыВЗначение("ТаблицаПользовательскихВариантовОтчетов"));
Возврат ПараметрыДлительнойОперации;
КонецФункции
&НаСервере
Функция ПомеченныеНастройки(ДеревоНастроек)
СписокПомеченных = Новый СписокЗначений;
ОтборПомеченных = Новый Структура("Пометка", 1);
ОтборНеопределенных = Новый Структура("Пометка", 2);
МассивПомеченных = ДеревоНастроек.Строки.НайтиСтроки(ОтборПомеченных, Истина);
Для Каждого СтрокаМассива Из МассивПомеченных Цикл
СписокПомеченных.Добавить(СтрокаМассива.ТипСтроки, , Истина);
КонецЦикла;
МассивНеопределенных = ДеревоНастроек.Строки.НайтиСтроки(ОтборНеопределенных, Истина);
Для Каждого СтрокаМассива Из МассивНеопределенных Цикл
СписокПомеченных.Добавить(СтрокаМассива.ТипСтроки);
КонецЦикла;
Возврат СписокПомеченных;
КонецФункции
&НаСервере
Процедура ЗагрузитьЗначенияПометок(ДеревоЗначений, ПомеченныеНастройки, ВидНастроек)
Если ПомеченныеНастройки = Неопределено Тогда
Возврат;
КонецЕсли;
КоличествоПомеченных = 0;
Для Каждого СтрокаПомеченныеНастройки Из ПомеченныеНастройки Цикл
ПомеченнаяНастройка = СтрокаПомеченныеНастройки.Значение;
Для Каждого СтрокаДерева Из ДеревоЗначений.ПолучитьЭлементы() Цикл
ДочерниеЭлементы = СтрокаДерева.ПолучитьЭлементы();
Если СтрокаДерева.ТипСтроки = ПомеченнаяНастройка Тогда
Если СтрокаПомеченныеНастройки.Пометка Тогда
СтрокаДерева.Пометка = 1;
Если ДочерниеЭлементы.Количество() = 0 Тогда
КоличествоПомеченных = КоличествоПомеченных + 1;
КонецЕсли;
Иначе
СтрокаДерева.Пометка = 2;
КонецЕсли;
Иначе
Для Каждого ДочернийЭлемент Из ДочерниеЭлементы Цикл
Если ДочернийЭлемент.ТипСтроки = ПомеченнаяНастройка Тогда
ДочернийЭлемент.Пометка = 1;
КоличествоПомеченных = КоличествоПомеченных + 1;
КонецЕсли;
КонецЦикла;
КонецЕсли;
КонецЦикла;
КонецЦикла;
Если КоличествоПомеченных > 0 Тогда
Если ВидНастроек = "НастройкиОтчетов" Тогда
КоличествоНастроекОтчетов = КоличествоПомеченных;
Элементы.НастройкиОтчетовСтраница.Заголовок = СтроковыеФункцииКлиентСервер.ПодставитьПараметрыВСтроку(НСтр("ru = 'Настройки отчетов (%1)'"), КоличествоПомеченных);
ИначеЕсли ВидНастроек = "ВнешнийВид" Тогда
КоличествоНастроекВнешнегоВида = КоличествоПомеченных;
Элементы.ВнешнийВидСтраница.Заголовок = СтроковыеФункцииКлиентСервер.ПодставитьПараметрыВСтроку(НСтр("ru = 'Внешний вид (%1)'"), КоличествоПомеченных);
ИначеЕсли ВидНастроек = "ПрочиеНастройки" Тогда
КоличествоПрочихНастроек = КоличествоПомеченных;
Элементы.ПрочиеНастройкиСтраница.Заголовок = СтроковыеФункцииКлиентСервер.ПодставитьПараметрыВСтроку(НСтр("ru = 'Прочие настройки (%1)'"), КоличествоПомеченных);
КонецЕсли;
КонецЕсли;
КонецПроцедуры
#КонецОбласти
#КонецОбласти | 21,896 | Module | bsl | ru | 1c enterprise | code | {"qsc_code_num_words": 1364, "qsc_code_num_chars": 21896.0, "qsc_code_mean_word_length": 13.00366569, "qsc_code_frac_words_unique": 0.20307918, "qsc_code_frac_chars_top_2grams": 0.01725207, "qsc_code_frac_chars_top_3grams": 0.01984552, "qsc_code_frac_chars_top_4grams": 0.01296724, "qsc_code_frac_chars_dupe_5grams": 0.18819417, "qsc_code_frac_chars_dupe_6grams": 0.09420984, "qsc_code_frac_chars_dupe_7grams": 0.07363139, "qsc_code_frac_chars_dupe_8grams": 0.07363139, "qsc_code_frac_chars_dupe_9grams": 0.07363139, "qsc_code_frac_chars_dupe_10grams": 0.02694931, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00314855, "qsc_code_frac_chars_whitespace": 0.11518085, "qsc_code_size_file_byte": 21896.0, "qsc_code_num_lines": 645.0, "qsc_code_num_chars_line_max": 167.0, "qsc_code_num_chars_line_mean": 33.94728682, "qsc_code_frac_chars_alphabet": 0.91230515, "qsc_code_frac_chars_comments": 0.9952046, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.0, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 1, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0} |
2000ZRL/LCSA_C2SLR_SRM | evaluation_relaxation/mergectmstm_T.py | #!/usr/bin/env python
import sys
ctmFile=sys.argv[1]
stmFile=sys.argv[2]
ctm=open(ctmFile,"r")
stm=open(stmFile,"r")
ctmDict=[]
stmDict=[]
addedlines=0
ctmToOrder={}
# read in ctm so we can order it
for idx,line in enumerate(ctm):
l=line.strip().split()
corpusid=l[0]
if corpusid not in ctmToOrder:
ctmToOrder[corpusid]=[]
ctmToOrder[corpusid].append(l)
#read in stm
for idx,line in enumerate(stm):
l=line.strip().split()
stmDict.append(l)
stm.close()
ctm.close()
for stmline in stmDict: #follow the stm order
corpusid=stmline[0]
try:
# Fix the bug of the original scripts.
# Some videos are quite short, then the predictions may be only one gloss which may be REMOVED by the post-processing script.
for l in ctmToOrder[corpusid]:
ctmDict.append(l)
except:
continue
#no everything is sorted and we can proceed
stm=open(stmFile,"r")
for idx,line in enumerate(stm):
l=line.strip().split()
stmDict.append(l)
if len(ctmDict) > idx+addedlines and ctmDict[idx+addedlines][0]==l[0]: #ctm and stm match:
if len(ctmDict)>idx+addedlines+1:
while (len(ctmDict)>idx+addedlines+1) and (ctmDict[idx+addedlines+1][0]==l[0]):
addedlines+=1
else:
ctmDict.insert(idx+addedlines,[l[0],"1 0.000 0.030 [EMPTY]"])
stm.close()
ctm=open(ctmFile,"w")
for l in ctmDict:
ctm.write(" ".join(l)+"\n")
ctm.close()
| 1,461 | mergectmstm_T | py | en | python | code | {"qsc_code_num_words": 223, "qsc_code_num_chars": 1461.0, "qsc_code_mean_word_length": 4.20627803, "qsc_code_frac_words_unique": 0.38565022, "qsc_code_frac_chars_top_2grams": 0.08315565, "qsc_code_frac_chars_top_3grams": 0.10660981, "qsc_code_frac_chars_top_4grams": 0.03837953, "qsc_code_frac_chars_dupe_5grams": 0.21535181, "qsc_code_frac_chars_dupe_6grams": 0.1130064, "qsc_code_frac_chars_dupe_7grams": 0.1130064, "qsc_code_frac_chars_dupe_8grams": 0.1130064, "qsc_code_frac_chars_dupe_9grams": 0.1130064, "qsc_code_frac_chars_dupe_10grams": 0.1130064, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.02006981, "qsc_code_frac_chars_whitespace": 0.21560575, "qsc_code_size_file_byte": 1461.0, "qsc_code_num_lines": 64.0, "qsc_code_num_chars_line_max": 134.0, "qsc_code_num_chars_line_mean": 22.828125, "qsc_code_frac_chars_alphabet": 0.79842932, "qsc_code_frac_chars_comments": 0.2073922, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.30952381, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.02441151, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.0, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.02380952, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.02380952, "qsc_codepython_frac_lines_print": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
1zilc/fishing-funds | src/renderer/components/Home/FundView/FundRankingContent/Today/index.tsx | import React, { PropsWithChildren, useState, useEffect } from 'react';
import { Table } from 'antd';
import { useRequest } from 'ahooks';
import ChartCard from '@/components/Card/ChartCard';
import CustomDrawer from '@/components/CustomDrawer';
import TypeSelection from '@/components/TypeSelection';
import { useDrawer, useAppSelector } from '@/utils/hooks';
import * as Services from '@/services';
import * as Utils from '@/utils';
import styles from './index.module.css';
const AddFundContent = React.lazy(() => import('@/components/Home/FundView/AddFundContent'));
const DetailFundContent = React.lazy(() => import('@/components/Home/FundView/DetailFundContent'));
interface TodayProps {}
const fundTypeList = [
{ name: '全部', type: 1, code: '1' },
{ name: '股票', type: 2, code: '2' },
{ name: '混合', type: 3, code: '3' },
{ name: '债券', type: 4, code: '4' },
{ name: '指数', type: 5, code: '5' },
{ name: 'QDII', type: 6, code: '6' },
{ name: 'ETF', type: 7, code: '7' },
{ name: 'LOF', type: 8, code: '8' },
{ name: '场内', type: 9, code: '9' },
];
const RenderColorCol = ({ value }: { value: string }) => {
const text = value.substring(0, value.length - 1);
return <div className={Utils.GetValueColor(text).textClass}>{value}</div>;
};
const Today: React.FC<PropsWithChildren<TodayProps>> = () => {
const [fundType, setFundType] = useState(fundTypeList[0]);
const codeMap = useAppSelector((state) => state.wallet.fundConfigCodeMap);
const { data: detailCode, show: showDetailDrawer, set: setDetailDrawer, close: closeDetailDrawer } = useDrawer('');
const { data: addCode, show: showAddDrawer, set: setAddDrawer, close: closeAddDrawer } = useDrawer('');
const columns = [
{
title: '名称',
dataIndex: 'jjjc',
ellipsis: true,
render: (text: string) => <a>{text}</a>,
},
{
title: '净值',
dataIndex: 'dwjz',
sorter: (a: any, b: any) => Number(a.dwjz) - Number(b.dwjz),
},
{
title: '估算涨跌幅',
dataIndex: 'gszzl',
render: (text: string) => <RenderColorCol value={text} />,
sorter: (a: any, b: any) => {
const a1 = a.gszzl.substring(0, a.gszzl.length - 1);
const b1 = b.gszzl.substring(0, b.gszzl.length - 1);
return Number(a1) - Number(b1);
},
},
{
title: '操作',
render: (text: string, record: any) => {
return !codeMap[record.bzdm] ? (
<a
onClick={(e) => {
setAddDrawer(record.bzdm);
e.stopPropagation();
}}
>
自选
</a>
) : (
<div>已添加</div>
);
},
},
];
const {
data = [],
run: runGetTodayListFromEastmoney,
loading,
} = useRequest(() => Services.Fund.GetTodayListFromEastmoney(fundType.type), {
refreshDeps: [fundType.type],
});
return (
<ChartCard auto onFresh={runGetTodayListFromEastmoney}>
<div className={styles.content}>
<TypeSelection
types={fundTypeList}
activeType={fundType.type}
onSelected={setFundType}
style={{ marginTop: 10, marginBottom: 10 }}
colspan={4}
/>
<Table
rowKey="bzdm"
size="small"
columns={columns}
dataSource={data}
loading={loading}
pagination={{
defaultPageSize: 20,
hideOnSinglePage: true,
position: ['bottomCenter'],
}}
onRow={(record) => ({
onClick: () => setDetailDrawer(record.bzdm),
})}
/>
<CustomDrawer show={showDetailDrawer}>
<DetailFundContent onEnter={closeDetailDrawer} onClose={closeDetailDrawer} code={detailCode} />
</CustomDrawer>
<CustomDrawer show={showAddDrawer}>
<AddFundContent defaultCode={addCode} onClose={closeAddDrawer} onEnter={closeAddDrawer} />
</CustomDrawer>
</div>
</ChartCard>
);
};
export default Today;
| 3,987 | index | tsx | en | tsx | code | {"qsc_code_num_words": 372, "qsc_code_num_chars": 3987.0, "qsc_code_mean_word_length": 6.16666667, "qsc_code_frac_words_unique": 0.39516129, "qsc_code_frac_chars_top_2grams": 0.01830863, "qsc_code_frac_chars_top_3grams": 0.02092415, "qsc_code_frac_chars_top_4grams": 0.02179599, "qsc_code_frac_chars_dupe_5grams": 0.04446382, "qsc_code_frac_chars_dupe_6grams": 0.03225806, "qsc_code_frac_chars_dupe_7grams": 0.0, "qsc_code_frac_chars_dupe_8grams": 0.0, "qsc_code_frac_chars_dupe_9grams": 0.0, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.01219512, "qsc_code_frac_chars_whitespace": 0.25959368, "qsc_code_size_file_byte": 3987.0, "qsc_code_num_lines": 125.0, "qsc_code_num_chars_line_max": 118.0, "qsc_code_num_chars_line_mean": 31.896, "qsc_code_frac_chars_alphabet": 0.76490515, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.10344828, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.07574618, "qsc_code_frac_chars_long_word_length": 0.04088287, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0} |
2000ZRL/LCSA_C2SLR_SRM | evaluation_relaxation/phoenix_T_eval.sh | #!/bin/bash
if [ -z "$2" ];then
echo "evaluateWER.sh <hypothesis-CTM-file> <dev | test>"
exit 0
fi
hypothesisCTM=$1
partition=$2
tmp_prefix=$3
workdir=evaluation_relaxation/
# apply some simplifications to the recognition
# remove __LEFTHAND__ and __EPENTHESIS__ and __EMOTION__ from ctm
# remove all words starting and ending with "__",
# remove all -PLUSPLUS suffixes
# remove all cl- prefix
# remove all loc- prefix
# remove RAUM at the end (eg. NORDRAUM -> NORD)
# remove repetitions
cat ${workdir}${hypothesisCTM} | grep -v "__LEFTHAND__" | grep -v "__EPENTHESIS__" | grep -v "__EMOTION__" | grep -v -e ' __[^_ ]*__$'| sed -e 's, loc-\([^ ]*\)$, \1,g' -e 's,-PLUSPLUS$,,g' -e 's, cl-\([^ ]*\)$, \1,g' -e 's,\b\([A-Z][A-Z]*\)RAUM$,\1,g' -e 's,\s*$,,'| awk 'BEGIN{lastID="";lastRow=""}{if (lastID!=$1 && cnt[lastID]<1 && lastRow!=""){print lastRow" [EMPTY]";}if ($5!=""){cnt[$1]+=1;print $0;}lastID=$1;lastRow=$0}' | awk 'BEGIN{prec=="";precID=""}{if (($NF!=prec)||($1!=precID)){print $0}precID=$1; prec=$NF}' > ${workdir}$tmp_prefix.tmp.ctm
#make sure empty recognition results get filled with [EMPTY] tags - so that the alignment can work out on all data.
cat ${workdir}$tmp_prefix.tmp.ctm | sed -e 's,\s*$,,' | awk 'BEGIN{lastID="";lastRow=""}{if (lastID!=$1 && cnt[lastID]<1 && lastRow!=""){print lastRow" [EMPTY]";}if ($5!=""){cnt[$1]+=1;print $0;}lastID=$1;lastRow=$0}' |sort -k1,1 -k3,3 > ${workdir}$tmp_prefix.tmp2.ctm
#in reference:
# remove __LEFTHAND__ and __EPENTHESIS__ and __EMOTION__
# remove all words starting and ending with "__",
# remove all -PLUSPLUS suffixes
# remove all cl- prefix
# remove all loc- prefix
# remove RAUM at the end (eg. NORDRAUM -> NORD)
# join WIE AUSSEHEN to WIE-AUSSEHEN
# add spelling letters to compounds (A S -> A+S)
# remove repetitions
cat ${workdir}PHOENIX-2014-T-groundtruth-$partition.stm | sort -k1,1 | sed -e 's/__LEFTHAND__ //g' -e 's/ __LEFTHAND__//g' -e 's/ __EPENTHESIS__//g' -e 's/__EPENTHESIS__ //g' -e 's/ __EMOTION__//g' -e 's/__EMOTION__ //g'| sed -e 's,\b__[^_ ]*__\b,,g' -e 's,\bloc-\([^ ]*\)\b,\1,g' -e 's,\bcl-\([^ ]*\)\b,\1,g' -e 's,\b\([^ ]*\)-PLUSPLUS\b,\1,g' -e 's,\b\([A-Z][A-Z]*\)RAUM\b,\1,g' -e 's,WIE AUSSEHEN,WIE-AUSSEHEN,g' -e 's,^\([A-Z]\) \([A-Z][+ ]\),\1+\2,g' -e 's,[ +]\([A-Z]\) \([A-Z]\) , \1+\2 ,g'| sed -e 's,\([ +][A-Z]\) \([A-Z][ +]\),\1+\2,g'|sed -e 's,\([ +][A-Z]\) \([A-Z][ +]\),\1+\2,g'| sed -e 's,\([ +][A-Z]\) \([A-Z][ +]\),\1+\2,g'|sed -e 's,\([ +]SCH\) \([A-Z][ +]\),\1+\2,g'|sed -e 's,\([ +]NN\) \([A-Z][ +]\),\1+\2,g'| sed -e 's,\([ +][A-Z]\) \(NN[ +]\),\1+\2,g'| sed -e 's,\([ +][A-Z]\) \([A-Z]\)$,\1+\2,g' | perl -ne 's,(?<![\w-])(\b[A-Z]+(?![\w-])) \1(?![\w-]),\1,g;print;'| perl -ne 's,(?<![\w-])(\b[A-Z]+(?![\w-])) \1(?![\w-]),\1,g;print;'| perl -ne 's,(?<![\w-])(\b[A-Z]+(?![\w-])) \1(?![\w-]),\1,g;print;'| perl -ne 's,(?<![\w-])(\b[A-Z]+(?![\w-])) \1(?![\w-]),\1,g;print;' > ${workdir}$tmp_prefix.tmp.stm
#add missing entries, so that sclite can generate alignment
python ./${workdir}mergectmstm_T.py ${workdir}$tmp_prefix.tmp2.ctm ${workdir}$tmp_prefix.tmp.stm
mv ${workdir}$tmp_prefix.tmp2.ctm ${workdir}$tmp_prefix.tmp.out.${hypothesisCTM}
#make sure NIST sclite toolbox is installed and on path. Available at ftp://jaguar.ncsl.nist.gov/pub/sctk-2.4.0-20091110-0958.tar.bz2
sclite -h ${workdir}$tmp_prefix.tmp.out.$hypothesisCTM ctm -r ${workdir}$tmp_prefix.tmp.stm stm -f 0 -o sgml sum rsum pra
sclite -h ${workdir}$tmp_prefix.tmp.out.$hypothesisCTM ctm -r ${workdir}$tmp_prefix.tmp.stm stm -f 0 -o dtl stdout |grep Error
| 3,560 | phoenix_T_eval | sh | en | shell | code | {"qsc_code_num_words": 604, "qsc_code_num_chars": 3560.0, "qsc_code_mean_word_length": 3.32119205, "qsc_code_frac_words_unique": 0.24668874, "qsc_code_frac_chars_top_2grams": 0.02691924, "qsc_code_frac_chars_top_3grams": 0.02392822, "qsc_code_frac_chars_top_4grams": 0.08524427, "qsc_code_frac_chars_dupe_5grams": 0.57427717, "qsc_code_frac_chars_dupe_6grams": 0.51445663, "qsc_code_frac_chars_dupe_7grams": 0.4556331, "qsc_code_frac_chars_dupe_8grams": 0.44117647, "qsc_code_frac_chars_dupe_9grams": 0.43619143, "qsc_code_frac_chars_dupe_10grams": 0.39431705, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.02811502, "qsc_code_frac_chars_whitespace": 0.12078652, "qsc_code_size_file_byte": 3560.0, "qsc_code_num_lines": 46.0, "qsc_code_num_chars_line_max": 1128.0, "qsc_code_num_chars_line_mean": 77.39130435, "qsc_code_frac_chars_alphabet": 0.61277955, "qsc_code_frac_chars_comments": 0.27977528, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.46666667, "qsc_code_frac_chars_string_length": 0.54719189, "qsc_code_frac_chars_long_word_length": 0.21060842, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 1, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0} |
2000ZRL/LCSA_C2SLR_SRM | evaluation_relaxation/phoenix_SI7_eval.sh | #!/bin/bash
if [ -z "$2" ];then
echo "evaluateWER.sh <hypothesis-CTM-file> <dev | test>"
exit 0
fi
hypothesisCTM=$1
partition=$2
tmp_prefix=$3
workdir=evaluation_relaxation/
# apply some simplifications to the recognition
cat ${workdir}${hypothesisCTM} | sed -e 's,loc-,,g' -e 's,cl-,,g' -e 's,qu-,,g' -e 's,poss-,,g' -e 's,lh-,,g' -e 's,S0NNE,SONNE,g' -e 's,HABEN2,HABEN,g'|sed -e 's,__EMOTION__,,g' -e 's,__PU__,,g' -e 's,__LEFTHAND__,,g' |sed -e 's,WIE AUSSEHEN,WIE-AUSSEHEN,g' -e 's,ZEIGEN ,ZEIGEN-BILDSCHIRM ,g' -e 's,ZEIGEN$,ZEIGEN-BILDSCHIRM,' -e 's,^\([A-Z]\) \([A-Z][+ ]\),\1+\2,g' -e 's,[ +]\([A-Z]\) \([A-Z]\) , \1+\2 ,g'| sed -e 's,\([ +][A-Z]\) \([A-Z][ +]\),\1+\2,g'|sed -e 's,\([ +][A-Z]\) \([A-Z][ +]\),\1+\2,g'| sed -e 's,\([ +][A-Z]\) \([A-Z][ +]\),\1+\2,g'|sed -e 's,\([ +]SCH\) \([A-Z][ +]\),\1+\2,g'|sed -e 's,\([ +]NN\) \([A-Z][ +]\),\1+\2,g'| sed -e 's,\([ +][A-Z]\) \(NN[ +]\),\1+\2,g'| sed -e 's,\([ +][A-Z]\) \([A-Z]\)$,\1+\2,g'| sed -e 's,\([A-Z][A-Z]\)RAUM,\1,g'| sed -e 's,-PLUSPLUS,,g' | perl -ne 's,(?<![\w-])(\b[A-Z]+(?![\w-])) \1(?![\w-]),\1,g;print;'| perl -ne 's,(?<![\w-])(\b[A-Z]+(?![\w-])) \1(?![\w-]),\1,g;print;'| perl -ne 's,(?<![\w-])(\b[A-Z]+(?![\w-])) \1(?![\w-]),\1,g;print;'| perl -ne 's,(?<![\w-])(\b[A-Z]+(?![\w-])) \1(?![\w-]),\1,g;print;'| grep -v "__LEFTHAND__" | grep -v "__EPENTHESIS__" | grep -v "__EMOTION__" > ${workdir}$tmp_prefix.tmp.ctm
#make sure empty recognition results get filled with [EMPTY] tags - so that the alignment can work out on all data.
cat ${workdir}$tmp_prefix.tmp.ctm | sed -e 's,\s*$,,' | awk 'BEGIN{lastID="";lastRow=""}{if (lastID!=$1 && cnt[lastID]<1 && lastRow!=""){print lastRow" [EMPTY]";}if ($5!=""){cnt[$1]+=1;print $0;}lastID=$1;lastRow=$0}' |sort -k1,1 -k3,3 > ${workdir}$tmp_prefix.tmp2.ctm
#cat final_phoenix_noPause_noCompound_lefthandtag_noClean.stm >tmp.stm
cat ${workdir}phoenix2014-SI7-groundtruth-$partition.stm | sort -k1,1 > ${workdir}$tmp_prefix.tmp.stm
#add missing entries, so that sclite can generate alignment
python ./${workdir}mergectmstm_SI.py ${workdir}$tmp_prefix.tmp2.ctm ${workdir}$tmp_prefix.tmp.stm
mv ${workdir}$tmp_prefix.tmp2.ctm ${workdir}$tmp_prefix.tmp.out.${hypothesisCTM}
#make sure NIST sclite toolbox is installed and on path. Available at ftp://jaguar.ncsl.nist.gov/pub/sctk-2.4.0-20091110-0958.tar.bz2
sclite -h ${workdir}$tmp_prefix.tmp.out.$hypothesisCTM ctm -r ${workdir}$tmp_prefix.tmp.stm stm -f 0 -o sgml sum rsum pra
sclite -h ${workdir}$tmp_prefix.tmp.out.$hypothesisCTM ctm -r ${workdir}$tmp_prefix.tmp.stm stm -f 0 -o dtl stdout |grep Error
| 2,597 | phoenix_SI7_eval | sh | ar | shell | code | {"qsc_code_num_words": 463, "qsc_code_num_chars": 2597.0, "qsc_code_mean_word_length": 3.19006479, "qsc_code_frac_words_unique": 0.30885529, "qsc_code_frac_chars_top_2grams": 0.0338524, "qsc_code_frac_chars_top_3grams": 0.04400812, "qsc_code_frac_chars_top_4grams": 0.04468517, "qsc_code_frac_chars_dupe_5grams": 0.39201083, "qsc_code_frac_chars_dupe_6grams": 0.32972241, "qsc_code_frac_chars_dupe_7grams": 0.28503724, "qsc_code_frac_chars_dupe_8grams": 0.28503724, "qsc_code_frac_chars_dupe_9grams": 0.27826676, "qsc_code_frac_chars_dupe_10grams": 0.21530129, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.03189655, "qsc_code_frac_chars_whitespace": 0.10666153, "qsc_code_size_file_byte": 2597.0, "qsc_code_num_lines": 31.0, "qsc_code_num_chars_line_max": 1178.0, "qsc_code_num_chars_line_mean": 83.77419355, "qsc_code_frac_chars_alphabet": 0.60474138, "qsc_code_frac_chars_comments": 0.17019638, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.33333333, "qsc_code_frac_chars_string_length": 0.47935035, "qsc_code_frac_chars_long_word_length": 0.18236659, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 1, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0} |
1zilc/fishing-funds | src/renderer/components/Home/FundView/FundRankingContent/Automatic/index.tsx | import React, { PropsWithChildren, useState } from 'react';
import { Table } from 'antd';
import { useRequest } from 'ahooks';
import ChartCard from '@/components/Card/ChartCard';
import CustomDrawer from '@/components/CustomDrawer';
import TypeSelection from '@/components/TypeSelection';
import { useDrawer, useAppSelector } from '@/utils/hooks';
import * as Services from '@/services';
import * as Utils from '@/utils';
import styles from './index.module.css';
const AddFundContent = React.lazy(() => import('@/components/Home/FundView/AddFundContent'));
const DetailFundContent = React.lazy(() => import('@/components/Home/FundView/DetailFundContent'));
interface AutomaticProps {}
const fundTypeList = [
{ name: '全部', type: 0, code: '0' },
{ name: '股票', type: 1, code: '1' },
{ name: '混合', type: 2, code: '2' },
{ name: '债券', type: 3, code: '3' },
{ name: '指数', type: 4, code: '4' },
{ name: 'QDII', type: 5, code: '5' },
];
const RenderColorCol = ({ value }: { value: string }) => {
const text = value.substring(0, value.length - 1);
return <div className={Utils.GetValueColor(text).textClass}>{value}</div>;
};
const Automatic: React.FC<PropsWithChildren<AutomaticProps>> = () => {
const [fundType, setFundType] = useState(fundTypeList[0]);
const codeMap = useAppSelector((state) => state.wallet.fundConfigCodeMap);
const { data: detailCode, show: showDetailDrawer, set: setDetailDrawer, close: closeDetailDrawer } = useDrawer('');
const { data: addCode, show: showAddDrawer, set: setAddDrawer, close: closeAddDrawer } = useDrawer('');
const columns = [
{
title: '名称',
dataIndex: 'name',
ellipsis: true,
render: (text: string) => <a>{text}</a>,
},
{
title: '1年',
dataIndex: 'y1',
render: (text: string) => <RenderColorCol value={text} />,
sorter: (a: any, b: any) => {
const a1 = a.y1.substring(0, a.y1.length - 1);
const b1 = b.y1.substring(0, b.y1.length - 1);
return Number(a1) - Number(b1);
},
},
{
title: '3年',
dataIndex: 'y3',
render: (text: string) => <RenderColorCol value={text} />,
sorter: (a: any, b: any) => {
const a1 = a.y3.substring(0, a.y3.length - 1);
const b1 = b.y3.substring(0, b.y3.length - 1);
return Number(a1) - Number(b1);
},
},
{
title: '5年',
dataIndex: 'y5',
render: (text: string) => <RenderColorCol value={text} />,
sorter: (a: any, b: any) => {
const a1 = a.y5.substring(0, a.y5.length - 1);
const b1 = b.y5.substring(0, b.y5.length - 1);
return Number(a1) - Number(b1);
},
},
{
title: '操作',
render: (text: string, record: any) => {
return !codeMap[record.code] ? (
<a
onClick={(e) => {
setAddDrawer(record.code);
e.stopPropagation();
}}
>
自选
</a>
) : (
<div>已添加</div>
);
},
},
];
const {
data = [],
run: runGetAutomaticPlanFromEastmoney,
loading,
} = useRequest(() => Services.Fund.GetAutomaticPlanFromEastmoney(fundType.type), {
refreshDeps: [fundType.type],
});
return (
<ChartCard auto onFresh={runGetAutomaticPlanFromEastmoney}>
<div className={styles.content}>
<TypeSelection
types={fundTypeList}
activeType={fundType.type}
onSelected={setFundType}
style={{ marginTop: 10, marginBottom: 10 }}
/>
<Table
rowKey="code"
size="small"
columns={columns}
dataSource={data}
loading={loading}
pagination={{
defaultPageSize: 20,
hideOnSinglePage: true,
position: ['bottomCenter'],
}}
onRow={(record) => ({
onClick: () => setDetailDrawer(record.code),
})}
/>
<CustomDrawer show={showDetailDrawer}>
<DetailFundContent onEnter={closeDetailDrawer} onClose={closeDetailDrawer} code={detailCode} />
</CustomDrawer>
<CustomDrawer show={showAddDrawer}>
<AddFundContent defaultCode={addCode} onClose={closeAddDrawer} onEnter={closeAddDrawer} />
</CustomDrawer>
</div>
</ChartCard>
);
};
export default Automatic;
| 4,354 | index | tsx | en | tsx | code | {"qsc_code_num_words": 416, "qsc_code_num_chars": 4354.0, "qsc_code_mean_word_length": 5.97836538, "qsc_code_frac_words_unique": 0.33173077, "qsc_code_frac_chars_top_2grams": 0.02814636, "qsc_code_frac_chars_top_3grams": 0.03216727, "qsc_code_frac_chars_top_4grams": 0.03618818, "qsc_code_frac_chars_dupe_5grams": 0.16244471, "qsc_code_frac_chars_dupe_6grams": 0.14435062, "qsc_code_frac_chars_dupe_7grams": 0.1145959, "qsc_code_frac_chars_dupe_8grams": 0.1145959, "qsc_code_frac_chars_dupe_9grams": 0.07358263, "qsc_code_frac_chars_dupe_10grams": 0.07358263, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.0196875, "qsc_code_frac_chars_whitespace": 0.26504364, "qsc_code_size_file_byte": 4354.0, "qsc_code_num_lines": 136.0, "qsc_code_num_chars_line_max": 118.0, "qsc_code_num_chars_line_mean": 32.01470588, "qsc_code_frac_chars_alphabet": 0.7575, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.16535433, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.0659164, "qsc_code_frac_chars_long_word_length": 0.03743684, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0} |
1zimu-com/1zimu | chrome-mv3-prod/static/background/index.js | var e,t;"function"==typeof(e=globalThis.define)&&(t=e,e=null),function(t,r,n,a,o){var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},s="function"==typeof i[a]&&i[a],l=s.cache||{},u="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function c(e,r){if(!l[e]){if(!t[e]){var n="function"==typeof i[a]&&i[a];if(!r&&n)return n(e,!0);if(s)return s(e,!0);if(u&&"string"==typeof e)return u(e);var o=Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}f.resolve=function(r){var n=t[e][1][r];return null!=n?n:r},f.cache={};var d=l[e]=new c.Module(e);t[e][0].call(d.exports,f,d,d.exports,this)}return l[e].exports;function f(e){var t=f.resolve(e);return!1===t?{}:c(t)}}c.isParcelRequire=!0,c.Module=function(e){this.id=e,this.bundle=c,this.exports={}},c.modules=t,c.cache=l,c.parent=s,c.register=function(e,r){t[e]=[function(e,t){t.exports=r},{}]},Object.defineProperty(c,"root",{get:function(){return i[a]}}),i[a]=c;for(var d=0;d<r.length;d++)c(r[d]);if(n){var f=c(n);"object"==typeof exports&&"undefined"!=typeof module?module.exports=f:"function"==typeof e&&e.amd?e(function(){return f}):o&&(this[o]=f)}}({kgW6q:[function(e,t,r){e("./messaging"),e("../../../src/background/index")},{"./messaging":"iG3ww","../../../src/background/index":"iqY5N"}],iG3ww:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js"),a=e("~background/messages/dict-msg"),o=n.interopDefault(a),i=e("~background/messages/status-msg"),s=n.interopDefault(i),l=e("~background/messages/subtitle-msg"),u=n.interopDefault(l),c=e("~background/ports/dict-port-msg"),d=n.interopDefault(c),f=e("~background/ports/settings"),p=n.interopDefault(f),h=e("~background/ports/subtitles-msg"),m=n.interopDefault(h);globalThis.__plasmoInternalPortMap=new Map,chrome.runtime.onMessageExternal.addListener((e,t,r)=>(e?.name,!0)),chrome.runtime.onMessage.addListener((e,t,r)=>{switch(e.name){case"dict-msg":(0,o.default)({...e,sender:t},{send:e=>r(e)});break;case"status-msg":(0,s.default)({...e,sender:t},{send:e=>r(e)});break;case"subtitle-msg":(0,u.default)({...e,sender:t},{send:e=>r(e)})}return!0}),chrome.runtime.onConnect.addListener(function(e){globalThis.__plasmoInternalPortMap.set(e.name,e),e.onMessage.addListener(function(t){switch(e.name){case"dict-port-msg":(0,d.default)({port:e,...t},{send:t=>e.postMessage(t)});break;case"settings":(0,p.default)({port:e,...t},{send:t=>e.postMessage(t)});break;case"subtitles-msg":(0,m.default)({port:e,...t},{send:t=>e.postMessage(t)})}})})},{"~background/messages/dict-msg":"iQSIs","~background/messages/status-msg":"5tzOi","~background/messages/subtitle-msg":"8Dugt","~background/ports/dict-port-msg":"aMQYp","~background/ports/settings":"bq9Y7","~background/ports/subtitles-msg":"eP5gr","@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],iQSIs:[function(e,t,r){},{}],"5tzOi":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);let n=async(e,t)=>{try{let{status:t}=e.body;t?(chrome.action.setBadgeText({text:""}),chrome.action.setBadgeBackgroundColor({color:[0,0,0,0]})):(chrome.action.setBadgeText({text:"\u7981\u7528"}),chrome.action.setBadgeBackgroundColor({color:[255,0,0,255]}))}catch(e){console.error("catched error in messages.status-msg :>> ",e)}};r.default=n},{"@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],hbR2Q:[function(e,t,r){r.interopDefault=function(e){return e&&e.__esModule?e:{default:e}},r.defineInteropFlag=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.exportAll=function(e,t){return Object.keys(e).forEach(function(r){"default"===r||"__esModule"===r||t.hasOwnProperty(r)||Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[r]}})}),t},r.export=function(e,t,r){Object.defineProperty(e,t,{enumerable:!0,get:r})}},{}],"8Dugt":[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r);var n=e("~tools/error"),a=e("~tools/subtitle"),o=e("~tools/jwt"),i=e("~tools/constants"),s=e("~tools/storages");let l=async(e,t)=>{try{let{msgType:r,movie_name:n,q:l,source:u,api_key:c,format:d,alternatives:f,optionsUrl:p,target:h,word:m,subtitleSrtRaw:g}=e.body;if("movie_name_from_nextjs"===r){let e=new Headers,r=await (0,s.storageSync).get(i.ZIMU1_USESTORAGE_SYNC_JWT);e.append("Authorization",`Bearer ${r}`);let a=encodeURIComponent(n.trim()),o=`https://www.1zimu.com/subtitle/api/subtitleget/${a}/2/3`,l=await fetch(o,{method:"GET",headers:e,redirect:"follow",referrerPolicy:"no-referrer"}),u=await l.json();if(u?.error){t.send({error:u.error.status,name:u.error.name,message:u.error.message});return}u?.length>0&&u[0]?.subtitles?.length>0&&t.send({resultArr:u[0].subtitles});return}if("libretranslateTranslate"===r)await fetch("https://1zimu.com/subtitle/api/translate",{method:"POST",body:JSON.stringify({q:l,source:u,target:h}),headers:{"Content-Type":"application/json"}});else if("azureTranslate"===r){let e=await fetch("https://edge.microsoft.com/translate/auth",{method:"GET"}),r=await e.text();if(!(0,a.checkMSEdgeJwt)(r)){t.send({error:"Error",name:"Invalid JWT",message:"JWT \u51fa\u9519\uff01"});return}let n=new Headers;n.append("Authorization",`Bearer ${r}`),n.append("Content-Type","application/json");let o={method:"POST",headers:n,body:JSON.stringify(l),redirect:"follow",referrerPolicy:"no-referrer"},i=await fetch(`https://api-edge.cognitive.microsofttranslator.com/translate?to=${h}&api-version=3.0&includeSentenceLength=true`,o),s=await i.json();if(s?.error){t.send({error:s.error});return}t.send({translations:s});return}else if("open_options_page"===r){let e=decodeURIComponent(p.trim());chrome.tabs.create({url:e})}else if("getEcdictredInfo"===r){let e=new Headers,r=await (0,s.storageSync).get(i.ZIMU1_USESTORAGE_SYNC_JWT);(0,o.checkJWT)(r)?(e.append("Authorization",`Bearer ${r}`),fetch(`https://pdf.ccbcss.com/subtitle/api/ecdictred/${m}`,{method:"GET",headers:e,redirect:"follow"}).then(e=>e.json()).then(e=>{t.send({result:e})}).catch(e=>{console.error(e),t.send({error:e})})):t.send({result:i.JWT_IS_FALSE})}else if("ecdictFavMsg"===r){let e=new Headers,r=await (0,s.storageSync).get(i.ZIMU1_USESTORAGE_SYNC_JWT);if((0,o.checkJWT)(r)){e.append("Authorization",`Bearer ${r}`);let n=new FormData;n.append("word",m),fetch("https://pdf.ccbcss.com/subtitle/api/ecdictfav",{method:"POST",headers:e,body:n,redirect:"follow"}).then(e=>e.json()).then(e=>{t.send({result:e})}).catch(e=>{console.error(e),t.send({error:e})})}else t.send({result:i.JWT_IS_FALSE})}else if("ecdictFavDelMsg"===r){let e=new Headers,r=await (0,s.storageSync).get(i.ZIMU1_USESTORAGE_SYNC_JWT);if((0,o.checkJWT)(r)){e.append("Authorization",`Bearer ${r}`);let n=new FormData;n.append("word",m),fetch("https://pdf.ccbcss.com/subtitle/api/ecdictfavdel",{method:"POST",headers:e,body:n,redirect:"follow"}).then(e=>e.json()).then(e=>{t.send({result:e})}).catch(e=>{console.error(e),t.send({error:e})})}else t.send({result:i.JWT_IS_FALSE})}else if("getSubtitleStatInfo"===r){let e="https://1zimu.com/subtitle/api/getsubtitleecditinfo",r={name:"url error",message:"PLASMO_PUBLIC_API_GET_SUBTITLE_ECDITINFO_URL is undefined",details:{}};e||t.send({error:r});let n=await (0,s.storageSync).get(i.ZIMU1_USESTORAGE_SYNC_JWT);if((0,o.checkJWT)(n)){let r=new Headers;r.append("Content-Type","text/plain"),r.append("Authorization",`Bearer ${n}`),fetch(e,{method:"POST",headers:r,body:g,redirect:"follow"}).then(async e=>429===e.status?{response_status:429}:await e.json()).then(e=>{t.send({result:e})}).catch(e=>{console.error(e),t.send({error:e})})}else r.name="jwt error",r.message=i.JWT_IS_FALSE,t.send({error:r})}else if("getUserInfo"===r){let e="https://1zimu.com/subtitle/api/userinfo",r={name:"url error",message:"PLASMO_PUBLIC_API_USERINFO_URL is undefined",details:{}};e||t.send({error:r});let n=await (0,s.storageSync).get(i.ZIMU1_USESTORAGE_SYNC_JWT);if((0,o.checkJWT)(n)){let r=new Headers;r.append("Authorization",`Bearer ${n}`),fetch(e,{method:"GET",headers:r,redirect:"follow"}).then(async e=>429===e.status?{response_status:429}:await e.json()).then(e=>{t.send({result:e})}).catch(e=>{console.error(e),t.send({error:e})})}else r.name="jwt error",r.message=i.JWT_IS_FALSE,t.send({error:r})}}catch(e){(0,n.handleError)({error:e,msgToShow:"backgroud.messges.subtitle-msg"}),t.send({error:e,name:"Catched ERROR in background/subtitle-msg: ",message:e?.message})}};r.default=l},{"~tools/error":"2MpWC","~tools/subtitle":"lEjEC","~tools/jwt":"bk8TP","~tools/constants":"aHxh8","~tools/storages":"68W9f","@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],"2MpWC":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"handleError",()=>o);var a=e("react-toastify");function o({error:e,msgToShow:t,autoClose:r=5e3,silence:n=!0}){try{console.error(`Catched ERROR in ${t} :>> `,e),n||((0,a.toast).dismiss(),(0,a.toast).error(`Catched ERROR: ${e.message} in ${t}.`,{autoClose:r}))}catch(e){console.error("Catched ERROR in tools.error.handleError() :>> ",e),n||((0,a.toast).dismiss(),(0,a.toast).error(`Catched ERROR: ${e.message} in tools.error.handleError()`,{autoClose:r}))}}},{"react-toastify":"h8uoK","@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],h8uoK:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Bounce",()=>N),n.export(r,"Flip",()=>F),n.export(r,"Icons",()=>j),n.export(r,"Slide",()=>Y),n.export(r,"ToastContainer",()=>G),n.export(r,"Zoom",()=>W),n.export(r,"collapseToast",()=>p),n.export(r,"cssTransition",()=>h),n.export(r,"toast",()=>D),n.export(r,"useToast",()=>x),n.export(r,"useToastContainer",()=>E);var a=e("react"),o=n.interopDefault(a),i=e("clsx"),s=n.interopDefault(i);let l=e=>"number"==typeof e&&!isNaN(e),u=e=>"string"==typeof e,c=e=>"function"==typeof e,d=e=>u(e)||c(e)?e:null,f=e=>(0,a.isValidElement)(e)||u(e)||c(e)||l(e);function p(e,t,r){void 0===r&&(r=300);let{scrollHeight:n,style:a}=e;requestAnimationFrame(()=>{a.minHeight="initial",a.height=n+"px",a.transition=`all ${r}ms`,requestAnimationFrame(()=>{a.height="0",a.padding="0",a.margin="0",setTimeout(t,r)})})}function h(e){let{enter:t,exit:r,appendPosition:n=!1,collapse:i=!0,collapseDuration:s=300}=e;return function(e){let{children:l,position:u,preventExitTransition:c,done:d,nodeRef:f,isIn:h,playToast:m}=e,g=n?`${t}--${u}`:t,y=n?`${r}--${u}`:r,b=(0,a.useRef)(0);return(0,a.useLayoutEffect)(()=>{let e=f.current,t=g.split(" "),r=n=>{n.target===f.current&&(m(),e.removeEventListener("animationend",r),e.removeEventListener("animationcancel",r),0===b.current&&"animationcancel"!==n.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",r),e.addEventListener("animationcancel",r)},[]),(0,a.useEffect)(()=>{let e=f.current,t=()=>{e.removeEventListener("animationend",t),i?p(e,d,s):d()};h||(c?t():(b.current=1,e.className+=` ${y}`,e.addEventListener("animationend",t)))},[h]),(0,o.default).createElement(o.default.Fragment,null,l)}}function m(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}let g=new Map,y=[],b=new Set,_=e=>b.forEach(t=>t(e)),T=()=>g.size>0;function S(e,t){var r;if(t)return!(null==(r=g.get(t))||!r.isToastActive(e));let n=!1;return g.forEach(t=>{t.isToastActive(e)&&(n=!0)}),n}function v(e,t){f(e)&&(T()||y.push({content:e,options:t}),g.forEach(r=>{r.buildToast(e,t)}))}function w(e,t){g.forEach(r=>{null!=t&&null!=t&&t.containerId?(null==t?void 0:t.containerId)===r.id&&r.toggle(e,null==t?void 0:t.id):r.toggle(e,null==t?void 0:t.id)})}function E(e){let{subscribe:t,getSnapshot:r,setProps:n}=(0,a.useRef)(function(e){let t=e.containerId||1;return{subscribe(r){let n=function(e,t,r){let n=1,o=0,i=[],s=[],p=[],h=t,g=new Map,y=new Set,b=()=>{p=Array.from(g.values()),y.forEach(e=>e())},_=e=>{s=null==e?[]:s.filter(t=>t!==e),b()},T=e=>{let{toastId:t,onOpen:n,updateId:o,children:i}=e.props,l=null==o;e.staleId&&g.delete(e.staleId),g.set(t,e),s=[...s,e.props.toastId].filter(t=>t!==e.staleId),b(),r(m(e,l?"added":"updated")),l&&c(n)&&n((0,a.isValidElement)(i)&&i.props)};return{id:e,props:h,observe:e=>(y.add(e),()=>y.delete(e)),toggle:(e,t)=>{g.forEach(r=>{null!=t&&t!==r.props.toastId||c(r.toggle)&&r.toggle(e)})},removeToast:_,toasts:g,clearQueue:()=>{o-=i.length,i=[]},buildToast:(t,s)=>{var p,y;if((t=>{let{containerId:r,toastId:n,updateId:a}=t,o=g.has(n)&&null==a;return(r?r!==e:1!==e)||o})(s))return;let{toastId:S,updateId:v,data:w,staleId:E,delay:x}=s,I=()=>{_(S)},O=null==v;O&&o++;let A={...h,style:h.toastStyle,key:n++,...Object.fromEntries(Object.entries(s).filter(e=>{let[t,r]=e;return null!=r})),toastId:S,updateId:v,data:w,closeToast:I,isIn:!1,className:d(s.className||h.toastClassName),bodyClassName:d(s.bodyClassName||h.bodyClassName),progressClassName:d(s.progressClassName||h.progressClassName),autoClose:!s.isLoading&&(p=s.autoClose,y=h.autoClose,!1===p||l(p)&&p>0?p:y),deleteToast(){let e=g.get(S),{onClose:t,children:n}=e.props;c(t)&&t((0,a.isValidElement)(n)&&n.props),r(m(e,"removed")),g.delete(S),--o<0&&(o=0),i.length>0?T(i.shift()):b()}};A.closeButton=h.closeButton,!1===s.closeButton||f(s.closeButton)?A.closeButton=s.closeButton:!0===s.closeButton&&(A.closeButton=!f(h.closeButton)||h.closeButton);let R=t;(0,a.isValidElement)(t)&&!u(t.type)?R=(0,a.cloneElement)(t,{closeToast:I,toastProps:A,data:w}):c(t)&&(R=t({closeToast:I,toastProps:A,data:w}));let k={content:R,props:A,staleId:E};h.limit&&h.limit>0&&o>h.limit&&O?i.push(k):l(x)?setTimeout(()=>{T(k)},x):T(k)},setProps(e){h=e},setToggle:(e,t)=>{g.get(e).toggle=t},isToastActive:e=>s.some(t=>t===e),getSnapshot:()=>p}}(t,e,_);g.set(t,n);let o=n.observe(r);return y.forEach(e=>v(e.content,e.options)),y=[],()=>{o(),g.delete(t)}},setProps(e){var r;null==(r=g.get(t))||r.setProps(e)},getSnapshot(){var e;return null==(e=g.get(t))?void 0:e.getSnapshot()}}}(e)).current;n(e);let o=(0,a.useSyncExternalStore)(t,r,r);return{getToastToRender:function(t){if(!o)return[];let r=new Map;return e.newestOnTop&&o.reverse(),o.forEach(e=>{let{position:t}=e.props;r.has(t)||r.set(t,[]),r.get(t).push(e)}),Array.from(r,e=>t(e[0],e[1]))},isToastActive:S,count:null==o?void 0:o.length}}function x(e){var t,r;let[n,o]=(0,a.useState)(!1),[i,s]=(0,a.useState)(!1),l=(0,a.useRef)(null),u=(0,a.useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:c,pauseOnHover:d,closeToast:f,onClick:p,closeOnClick:h}=e;function m(){o(!0)}function y(){o(!1)}function b(t){let r=l.current;u.canDrag&&r&&(u.didMove=!0,n&&y(),u.delta="x"===e.draggableDirection?t.clientX-u.start:t.clientY-u.start,u.start!==t.clientX&&(u.canCloseOnClick=!1),r.style.transform=`translate3d(${"x"===e.draggableDirection?`${u.delta}px, var(--y)`:`0, calc(${u.delta}px + var(--y))`},0)`,r.style.opacity=""+(1-Math.abs(u.delta/u.removalDistance)))}function _(){document.removeEventListener("pointermove",b),document.removeEventListener("pointerup",_);let t=l.current;if(u.canDrag&&u.didMove&&t){if(u.canDrag=!1,Math.abs(u.delta)>u.removalDistance)return s(!0),e.closeToast(),void e.collapseAll();t.style.transition="transform 0.2s, opacity 0.2s",t.style.removeProperty("transform"),t.style.removeProperty("opacity")}}null==(r=g.get((t={id:e.toastId,containerId:e.containerId,fn:o}).containerId||1))||r.setToggle(t.id,t.fn),(0,a.useEffect)(()=>{if(e.pauseOnFocusLoss)return document.hasFocus()||y(),window.addEventListener("focus",m),window.addEventListener("blur",y),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",y)}},[e.pauseOnFocusLoss]);let T={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){u.didMove=!1,document.addEventListener("pointermove",b),document.addEventListener("pointerup",_);let r=l.current;u.canCloseOnClick=!0,u.canDrag=!0,r.style.transition="none","x"===e.draggableDirection?(u.start=t.clientX,u.removalDistance=r.offsetWidth*(e.draggablePercent/100)):(u.start=t.clientY,u.removalDistance=r.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){let{top:r,bottom:n,left:a,right:o}=l.current.getBoundingClientRect();"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&t.clientX>=a&&t.clientX<=o&&t.clientY>=r&&t.clientY<=n?y():m()}};return c&&d&&(T.onMouseEnter=y,e.stacked||(T.onMouseLeave=m)),h&&(T.onClick=e=>{p&&p(e),u.canCloseOnClick&&f()}),{playToast:m,pauseToast:y,isRunning:n,preventExitTransition:i,toastRef:l,eventHandlers:T}}function I(e){let{delay:t,isRunning:r,closeToast:n,type:a="default",hide:i,className:l,style:u,controlledProgress:d,progress:f,rtl:p,isIn:h,theme:m}=e,g=i||d&&0===f,y={...u,animationDuration:`${t}ms`,animationPlayState:r?"running":"paused"};d&&(y.transform=`scaleX(${f})`);let b=(0,s.default)("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${m}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":p}),_=c(l)?l({rtl:p,type:a,defaultClassName:b}):(0,s.default)(b,l);return(0,o.default).createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":g},(0,o.default).createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${m} Toastify__progress-bar--${a}`}),(0,o.default).createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:_,style:y,[d&&f>=1?"onTransitionEnd":"onAnimationEnd"]:d&&f<1?null:()=>{h&&n()}}))}let O=1,A=()=>""+O++;function R(e,t){return v(e,t),t.toastId}function k(e,t){return{...t,type:t&&t.type||e,toastId:t&&(u(t.toastId)||l(t.toastId))?t.toastId:A()}}function M(e){return(t,r)=>R(t,k(e,r))}function D(e,t){return R(e,k("default",t))}D.loading=(e,t)=>R(e,k("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),D.promise=function(e,t,r){let n,{pending:a,error:o,success:i}=t;a&&(n=u(a)?D.loading(a,r):D.loading(a.render,{...r,...a}));let s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(e,t,a)=>{if(null==t)return void D.dismiss(n);let o={type:e,...s,...r,data:a},i=u(t)?{render:t}:t;return n?D.update(n,{...o,...i}):D(i.render,{...o,...i}),a},d=c(e)?e():e;return d.then(e=>l("success",i,e)).catch(e=>l("error",o,e)),d},D.success=M("success"),D.info=M("info"),D.error=M("error"),D.warning=M("warning"),D.warn=D.warning,D.dark=(e,t)=>R(e,k("default",{theme:"dark",...t})),D.dismiss=function(e){!function(e){var t;if(T()){if(null==e||u(t=e)||l(t))g.forEach(t=>{t.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let t=g.get(e.containerId);t?t.removeToast(e.id):g.forEach(t=>{t.removeToast(e.id)})}}else y=y.filter(t=>null!=e&&t.options.toastId!==e)}(e)},D.clearWaitingQueue=function(e){void 0===e&&(e={}),g.forEach(t=>{!t.props.limit||e.containerId&&t.id!==e.containerId||t.clearQueue()})},D.isActive=S,D.update=function(e,t){void 0===t&&(t={});let r=((e,t)=>{var r;let{containerId:n}=t;return null==(r=g.get(n||1))?void 0:r.toasts.get(e)})(e,t);if(r){let{props:n,content:a}=r,o={delay:100,...n,...t,toastId:t.toastId||e,updateId:A()};o.toastId!==e&&(o.staleId=e);let i=o.render||a;delete o.render,R(i,o)}},D.done=e=>{D.update(e,{progress:1})},D.onChange=function(e){return b.add(e),()=>{b.delete(e)}},D.play=e=>w(!0,e),D.pause=e=>w(!1,e);let L="undefined"!=typeof window?a.useLayoutEffect:a.useEffect,C=e=>{let{theme:t,type:r,isLoading:n,...a}=e;return(0,o.default).createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${r})`,...a})},j={info:function(e){return(0,o.default).createElement(C,{...e},(0,o.default).createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return(0,o.default).createElement(C,{...e},(0,o.default).createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return(0,o.default).createElement(C,{...e},(0,o.default).createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return(0,o.default).createElement(C,{...e},(0,o.default).createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return(0,o.default).createElement("div",{className:"Toastify__spinner"})}},P=e=>{let{isRunning:t,preventExitTransition:r,toastRef:n,eventHandlers:i,playToast:l}=x(e),{closeButton:u,children:d,autoClose:f,onClick:p,type:h,hideProgressBar:m,closeToast:g,transition:y,position:b,className:_,style:T,bodyClassName:S,bodyStyle:v,progressClassName:w,progressStyle:E,updateId:O,role:A,progress:R,rtl:k,toastId:M,deleteToast:D,isIn:L,isLoading:C,closeOnClick:P,theme:U}=e,N=(0,s.default)("Toastify__toast",`Toastify__toast-theme--${U}`,`Toastify__toast--${h}`,{"Toastify__toast--rtl":k},{"Toastify__toast--close-on-click":P}),Y=c(_)?_({rtl:k,position:b,type:h,defaultClassName:N}):(0,s.default)(N,_),W=function(e){let{theme:t,type:r,isLoading:n,icon:o}=e,i=null,s={theme:t,type:r};return!1===o||(c(o)?i=o({...s,isLoading:n}):(0,a.isValidElement)(o)?i=(0,a.cloneElement)(o,s):n?i=j.spinner():r in j&&(i=j[r](s))),i}(e),F=!!R||!f,B={closeToast:g,type:h,theme:U},G=null;return!1===u||(G=c(u)?u(B):(0,a.isValidElement)(u)?(0,a.cloneElement)(u,B):function(e){let{closeToast:t,theme:r,ariaLabel:n="close"}=e;return(0,o.default).createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":n},(0,o.default).createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},(0,o.default).createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(B)),(0,o.default).createElement(y,{isIn:L,done:D,position:b,preventExitTransition:r,nodeRef:n,playToast:l},(0,o.default).createElement("div",{id:M,onClick:p,"data-in":L,className:Y,...i,style:T,ref:n},(0,o.default).createElement("div",{...L&&{role:A},className:c(S)?S({type:h}):(0,s.default)("Toastify__toast-body",S),style:v},null!=W&&(0,o.default).createElement("div",{className:(0,s.default)("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!C})},W),(0,o.default).createElement("div",null,d)),G,(0,o.default).createElement(I,{...O&&!F?{key:`pb-${O}`}:{},rtl:k,theme:U,delay:f,isRunning:t,isIn:L,closeToast:g,hide:m,type:h,style:E,className:w,controlledProgress:F,progress:R||0})))},U=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},N=h(U("bounce",!0)),Y=h(U("slide",!0)),W=h(U("zoom")),F=h(U("flip")),B={position:"top-right",transition:N,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function G(e){let t={...B,...e},r=e.stacked,[n,i]=(0,a.useState)(!0),l=(0,a.useRef)(null),{getToastToRender:u,isToastActive:f,count:p}=E(t),{className:h,style:m,rtl:g,containerId:y}=t;function b(){r&&(i(!0),D.play())}return L(()=>{if(r){var e;let r=l.current.querySelectorAll('[data-in="true"]'),a=null==(e=t.position)?void 0:e.includes("top"),o=0,i=0;Array.from(r).reverse().forEach((e,t)=>{e.classList.add("Toastify__toast--stacked"),t>0&&(e.dataset.collapsed=`${n}`),e.dataset.pos||(e.dataset.pos=a?"top":"bot");let r=o*(n?.2:1)+(n?0:12*t);e.style.setProperty("--y",`${a?r:-1*r}px`),e.style.setProperty("--g","12"),e.style.setProperty("--s",""+(1-(n?i:0))),o+=e.offsetHeight,i+=.025})}},[n,p,r]),(0,o.default).createElement("div",{ref:l,className:"Toastify",id:y,onMouseEnter:()=>{r&&(i(!1),D.pause())},onMouseLeave:b},u((e,t)=>{let n=t.length?{...m}:{...m,pointerEvents:"none"};return(0,o.default).createElement("div",{className:function(e){let t=(0,s.default)("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":g});return c(h)?h({position:e,rtl:g,defaultClassName:t}):(0,s.default)(t,d(h))}(e),style:n,key:`container-${e}`},t.map(e=>{let{content:t,props:n}=e;return(0,o.default).createElement(P,{...n,stacked:r,collapseAll:b,isIn:f(n.toastId,n.containerId),style:n.style,key:`toast-${n.key}`},t)}))}))}},{react:"34kvN",clsx:"8kiPU","@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],"34kvN":[function(e,t,r){t.exports=e("ae0ab14aecd941d7")},{ae0ab14aecd941d7:"eNFzo"}],eNFzo:[function(e,t,r){var n=Symbol.for("react.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.iterator,m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,y={};function b(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||m}function _(){}function T(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||m}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=b.prototype;var S=T.prototype=new _;S.constructor=T,g(S,b.prototype),S.isPureReactComponent=!0;var v=Array.isArray,w=Object.prototype.hasOwnProperty,E={current:null},x={key:!0,ref:!0,__self:!0,__source:!0};function I(e,t,r){var a,o={},i=null,s=null;if(null!=t)for(a in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)w.call(t,a)&&!x.hasOwnProperty(a)&&(o[a]=t[a]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(a in l=e.defaultProps)void 0===o[a]&&(o[a]=l[a]);return{$$typeof:n,type:e,key:i,ref:s,props:o,_owner:E.current}}function O(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var A=/\/+/g;function R(e,t){var r,n;return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36)}function k(e,t,r){if(null==e)return e;var o=[],i=0;return function e(t,r,o,i,s){var l,u,c,d=typeof t;("undefined"===d||"boolean"===d)&&(t=null);var f=!1;if(null===t)f=!0;else switch(d){case"string":case"number":f=!0;break;case"object":switch(t.$$typeof){case n:case a:f=!0}}if(f)return s=s(f=t),t=""===i?"."+R(f,0):i,v(s)?(o="",null!=t&&(o=t.replace(A,"$&/")+"/"),e(s,r,o,"",function(e){return e})):null!=s&&(O(s)&&(l=s,u=o+(!s.key||f&&f.key===s.key?"":(""+s.key).replace(A,"$&/")+"/")+t,s={$$typeof:n,type:l.type,key:u,ref:l.ref,props:l.props,_owner:l._owner}),r.push(s)),1;if(f=0,i=""===i?".":i+":",v(t))for(var p=0;p<t.length;p++){var m=i+R(d=t[p],p);f+=e(d,r,o,m,s)}else if("function"==typeof(m=null===(c=t)||"object"!=typeof c?null:"function"==typeof(c=h&&c[h]||c["@@iterator"])?c:null))for(t=m.call(t),p=0;!(d=t.next()).done;)m=i+R(d=d.value,p++),f+=e(d,r,o,m,s);else if("object"===d)throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(r=String(t))?"object with keys {"+Object.keys(t).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return f}(e,o,"","",function(e){return t.call(r,e,i++)}),o}function M(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)},function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var D={current:null},L={transition:null};r.Children={map:k,forEach:function(e,t,r){k(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return k(e,function(){t++}),t},toArray:function(e){return k(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},r.Component=b,r.Fragment=o,r.Profiler=s,r.PureComponent=T,r.StrictMode=i,r.Suspense=d,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:L,ReactCurrentOwner:E},r.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=g({},e.props),o=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=E.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)w.call(t,u)&&!x.hasOwnProperty(u)&&(a[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)a.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];a.children=l}return{$$typeof:n,type:e.type,key:o,ref:i,props:a,_owner:s}},r.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},r.createElement=I,r.createFactory=function(e){var t=I.bind(null,e);return t.type=e,t},r.createRef=function(){return{current:null}},r.forwardRef=function(e){return{$$typeof:c,render:e}},r.isValidElement=O,r.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:M}},r.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},r.startTransition=function(e){var t=L.transition;L.transition={};try{e()}finally{L.transition=t}},r.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},r.useCallback=function(e,t){return D.current.useCallback(e,t)},r.useContext=function(e){return D.current.useContext(e)},r.useDebugValue=function(){},r.useDeferredValue=function(e){return D.current.useDeferredValue(e)},r.useEffect=function(e,t){return D.current.useEffect(e,t)},r.useId=function(){return D.current.useId()},r.useImperativeHandle=function(e,t,r){return D.current.useImperativeHandle(e,t,r)},r.useInsertionEffect=function(e,t){return D.current.useInsertionEffect(e,t)},r.useLayoutEffect=function(e,t){return D.current.useLayoutEffect(e,t)},r.useMemo=function(e,t){return D.current.useMemo(e,t)},r.useReducer=function(e,t,r){return D.current.useReducer(e,t,r)},r.useRef=function(e){return D.current.useRef(e)},r.useState=function(e){return D.current.useState(e)},r.useSyncExternalStore=function(e,t,r){return D.current.useSyncExternalStore(e,t,r)},r.useTransition=function(){return D.current.useTransition()},r.version="18.2.0"},{}],"8kiPU":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=function e(t){var r,n,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t){if(Array.isArray(t)){var o=t.length;for(r=0;r<o;r++)t[r]&&(n=e(t[r]))&&(a&&(a+=" "),a+=n)}else for(n in t)t[n]&&(a&&(a+=" "),a+=n)}return a}(e))&&(n&&(n+=" "),n+=t);return n}n.defineInteropFlag(r),n.export(r,"clsx",()=>a),r.default=a},{"@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],lEjEC:[function(e,t,r){let n,a,o;var i=e("@parcel/transformer-js/src/esmodule-helpers.js");i.defineInteropFlag(r),i.export(r,"getVideojsNextjsSrtUrl",()=>w),i.export(r,"opYoutubeSubtitleContainer",()=>x),i.export(r,"loadeddata",()=>I),i.export(r,"timeUpdate",()=>O),i.export(r,"checkBwpVideo",()=>A),i.export(r,"keyDown",()=>R),i.export(r,"clearIntervalAndTimeOut",()=>k),i.export(r,"preSentence",()=>M),i.export(r,"nextSentence",()=>D),i.export(r,"addPlayRate",()=>L),i.export(r,"subPlayRate",()=>C),i.export(r,"http2https",()=>j),i.export(r,"json2subtitleList",()=>P),i.export(r,"getNodeStartOrEndTimeBTree",()=>U),i.export(r,"getNodeStartOrEndTime",()=>N),i.export(r,"followReadCall",()=>Y),i.export(r,"variableRepeatCall",()=>W),i.export(r,"repeatCall",()=>B),i.export(r,"repeatPlay",()=>G),i.export(r,"isLikelyChinese",()=>V),i.export(r,"extractTextFromHtml",()=>H),i.export(r,"getTextWidth",()=>z),i.export(r,"getWidthPerChar",()=>$),i.export(r,"checkMSEdgeJwt",()=>q),i.export(r,"sortByStart",()=>Z),i.export(r,"sortByStartInData",()=>K),i.export(r,"findCueInRange",()=>J),i.export(r,"findCueInArrayOn",()=>X),i.export(r,"MSEdgeTranslateToSubtitleNodesText",()=>Q),i.export(r,"formatDuration",()=>ee),i.export(r,"getFontFamilyByValue",()=>et),i.export(r,"stopPropagation",()=>er),i.export(r,"ecdictFav",()=>en),i.export(r,"ecdictFavDel",()=>ea),i.export(r,"getEcdictredInfoWithPermission",()=>eo),i.export(r,"getAzureTranslate",()=>es),i.export(r,"convertToOptions",()=>el),i.export(r,"getLangChineseName",()=>eu),i.export(r,"formSubtitleNodesFromPayload",()=>ec),i.export(r,"removeRangeInPlace",()=>ed),i.export(r,"controlPlayThenPause",()=>ef),i.export(r,"getAbsoluteTop",()=>ep),i.export(r,"biliHandleScroll",()=>eh),i.export(r,"youtubeHandleScroll",()=>em),i.export(r,"baiduPanHandleScroll",()=>eg),i.export(r,"zimu1HandleScroll",()=>ey),i.export(r,"cleanWord",()=>eb);var s=e("react-toastify"),l=e("~tools/constants"),u=e("~tools/queryVideo"),c=e("../redux/storeNoStorage"),d=e("~redux/store"),f=e("~redux/no-storage-slice"),p=e("jwt-decode"),h=e("@plasmohq/messaging"),m=e("./error"),g=e("~tools/logger"),y=e("./storages"),b=e("./sleep"),_=e("./permission"),T=e("./constants/lang");let S=(0,_.withPermissionCheck)(F,"true",chrome.i18n.getMessage("pleasePayItThenUse")),v=(0,_.withPermissionCheck)(function({nodes:e,times:t=l.VARIABLE_REPEAT_INIT_TIMES,playbackRate:r=.5,video:a,wavesurfer:o,isInlineSublist:i}){let u=0,d=0;k({video:a,wavesurfer:o,isInlineSublist:i});let p=0;p=i?a.currentTime:o.getCurrentTime();let h=G(e,p);if(void 0===h)return;u=h.start,d=h.end,i?(a.currentTime=u,a.playbackRate=r,a?.paused&&a.play()):(o.setTime(u),o.setPlaybackRate(r),o.play());let m=0;(0,s.toast).dismiss(),i?(m=a.playbackRate,(0,s.toast)(`\u6fc0\u53d1\u64ad\u653e\uff0c\u5171${t}\u6b21\uff0c\u901f\u5ea6${m}`,{autoClose:(d-u)*1e3/m}),(0,c.store).dispatch((0,f.setVariableRepeatTimes)(t))):(m=o.getPlaybackRate(),(0,s.toast)(`\u6fc0\u53d1\u64ad\u653e\uff0c\u5171${t}\u6b21\uff0c\u901f\u5ea6${m}`,{autoClose:(d-u)*1e3/m}),(0,c.store).dispatch((0,f.setVariableRepeatTimesForWavesurfer)(t))),n=setInterval(()=>{i?a.currentTime>=d&&(a.currentTime=u,a.playbackRate=Number((r+=.1).toFixed(1)),t>0&&((0,s.toast).dismiss(),(0,s.toast)(`\u6fc0\u53d1\u64ad\u653e\uff0c\u8fd8\u5269 ${t-=1} \u6b21\uff0c\u901f\u5ea6${a.playbackRate}`,{autoClose:(d-u)*1e3/a.playbackRate}),(0,c.store).dispatch((0,f.setVariableRepeatTimes)(t)))):o.getCurrentTime()>=d&&(o.setTime(u),o.setPlaybackRate(Number((r+=.1).toFixed(1))),t>0&&((0,s.toast).dismiss(),(0,s.toast)(`\u6fc0\u53d1\u64ad\u653e\uff0c\u8fd8\u5269 ${t-=1} \u6b21\uff0c\u901f\u5ea6${o.getPlaybackRate()}`,{autoClose:(d-u)*1e3/o.getPlaybackRate()}),(0,c.store).dispatch((0,f.setVariableRepeatTimesForWavesurfer)(t)))),t<=1&&(m=i?a.playbackRate:o.getPlaybackRate(),k({video:a,wavesurfer:o,isInlineSublist:i}),(0,s.toast).dismiss(),(0,s.toast)(`\u6fc0\u53d1\u64ad\u653e\u7ed3\u675f\uff0c\u5f53\u524d\u901f\u5ea6${m}`,{autoClose:(d-u)*1e3/m}))},500)},"true",chrome.i18n.getMessage("pleasePayItThenUse"));function w(){try{let e=document.querySelector("#testId"),t=null;return e&&(t=e.getAttribute("data-srt-url")),t}catch(e){(0,m.handleError)({error:e,msgToShow:"tools.subtitle.getVideojsNextjsSrtUrl()"})}}async function E(e){try{let t=e?.target?.attributes["aria-pressed"]?.value;t&&("true"===t?await (0,y.storage).set(l.STORAGE_SHOWSUBTITLE,!0):await (0,y.storage).set(l.STORAGE_SHOWSUBTITLE,!1))}catch(e){(0,m.handleError)({error:e,msgToShow:"tools.subtitle.youtubeSubtitleBtnListener()"})}}function x(e=!0){try{let t=document.getElementById("ytp-caption-window-container");t&&(t.style.display=e?"none":"")}catch(e){(0,m.handleError)({error:e,msgToShow:"tools.subtitle.opYoutubeSubtitleContainer()"})}}async function I(){try{if(this?.src?.includes("youtube")){await c.storeReady,(0,c.store).dispatch((0,f.initSubtitleNodes)()),function(){try{let e=document.querySelector("button.ytp-subtitles-button.ytp-button");e&&(e.removeEventListener("click",E),e.addEventListener("click",E))}catch(e){(0,m.handleError)({error:e,msgToShow:"tools.subtitle.addEventListener2YoutubeSubtitleBtn()"})}}(),await (0,b.sleep)(2e3),(0,b.clickYoutubeSubtitleBtn)(),x();let e=this.clientWidth,t=this.clientHeight;(0,c.store).dispatch((0,f.setClientWidth)(e)),(0,c.store).dispatch((0,f.setClientHeight)(t))}}catch(e){(0,m.handleError)({error:e,msgToShow:"tools.subtitle.loadeddata()"})}}async function O(){try{if(A())return;let e=this.currentTime,t=this.clientWidth,r=this.clientHeight,n=this.paused,a=this.playbackRate;e!==(0,c.store).getState().noStorager.currentT&&(0,c.store).dispatch((0,f.setCurrentTime)(e)),t!==(0,c.store).getState().noStorager.clientWidth&&(0,c.store).dispatch((0,f.setClientWidth)(t)),r!==(0,c.store).getState().noStorager.clientHeight&&(0,c.store).dispatch((0,f.setClientHeight)(r)),n!==(0,c.store).getState().noStorager.paused&&(0,c.store).dispatch((0,f.setPaused)(n)),a!==(0,c.store).getState().noStorager.mediaPlaybackRate&&(0,c.store).dispatch((0,f.setMediaPlaybackRate)(a));let i=await (0,y.storage).get(l.STORAGE_PLAYED_THEN_PAUSE);if(i&&(0,c.store).getState().noStorager.playThenPause){this.pause();let e=await (0,y.storage).get(l.STORAGE_MAX_PAUSE_TIME);o=setTimeout(()=>{this instanceof HTMLVideoElement?this.play():console.error('Invalid context: "this" is not an HTMLVideoElement'),clearTimeout(o)},1e3*parseInt(e))}(0,g.logger).log("current time is :>> ",e);let s=await (0,y.storage).get(l.STORAGE_SHOWSUBTITLELIST);s!==(0,c.store).getState().noStorager.showSubtitleList&&(0,c.store).dispatch((0,f.setShowSubtitleList)(s))}catch(e){(0,m.handleError)({error:e,msgToShow:"tools.subtitle.timeUpdate()"})}}function A(){try{let e=window,t=document,r=t.querySelector(l.BWP_VIDEO);if(r?e.videoOrNot=!1:e.videoOrNot=!0,e?.browserType?.includes("edge")&&t?.baseURI?.includes("bilibili.com")&&e?.OSType?.includes("windows")&&!e?.videoOrNot)return!0;return!1}catch(e){(0,m.handleError)({error:e,msgToShow:"tools.subtitle.checkBwpVideo()"})}}async function R(e){try{let t=window,r=document,n=(0,c.store).getState().noStorager.subtitleNodes;if(n?.length<1){(0,g.logger).error("\u6ca1\u6709\u5b57\u5e55\u6570\u636e\u65f6\uff0ckeyDown() return.");return}if(e?.target?.tagName.toLowerCase()==="input"||e?.target?.id.toLowerCase().includes("edit")||e?.target?.tagName.toLowerCase()==="textarea"){(0,g.logger).error("\u6b63\u5728\u8f93\u5165\u6846\u4e2d\u8f93\u5165\uff0c\u5c31\u4e0d\u548c keyDown \u4e8b\u4ef6\u51b2\u7a81\u4e86\uff01");return}if(!d.store?.getState()?.odd?.popupShow||e?.ctrlKey||e?.shiftKey||e?.altKey)return;if(e?.target&&e?.target?.id==="DraggableDict"||e?.target&&e?.target?.id===l.DRAGGABLESUBTITLELIST||e?.target&&e?.target?.id===l.NEXTJSSUBTITLELIST||e?.target&&e?.target?.id===l.YOUTUBESUBTITLELIST){e.stopPropagation();return}let a=(0,u.queryVideoElementWithBlob)("keyDown");if(!a)return;e?.code?.toLocaleLowerCase()==="pageup"&&M({nodes:n,video:a,currentTime:a.currentTime}),e?.code?.toLocaleLowerCase()==="pagedown"&&D({nodes:n,video:a,currentTime:a.currentTime}),e?.key?.toLocaleLowerCase()==="enter"&&(a.paused?a.play():a.pause());let o=await (0,y.storage).get(l.STORAGE_DISABLESHORTCUTS);if(o)return;let i=await (0,y.storage).get(l.STORAGE_ALL_SHORTCUTS),{next:p,pre:h,add:m,sub:b,videoMask:_,subMask:T,repeat:S,variableRepeat:v,followRead:w,fullMask:E,subtitle:x,zhSubtitle:I,subtitleList:O}=i;if(e?.repeat)(0,g.logger).log(`\u91cd\u590d "${e?.key?.toLocaleUpperCase()}" \u952e [\u4e8b\u4ef6\uff1akeydown]`);else{if(A()){let n=e.key;n>"0"&&n<="10"&&(n=parseInt(n));let a={id:e.target.id},o=e.repeat;t.postMessage({key:n,target:a,repeatKeyDown:o,postMsgType:l.KEY_DOWN},r.baseURI);return}if("Escape"===e.key&&(k({video:a}),await (0,y.storage).set(l.STORAGE_ALWAY_REPEAT_PLAY,!1)),e?.key?.toLocaleUpperCase()===E){let e=a.clientWidth,t=(0,c.store).getState().noStorager.maskFull;(0,c.store).dispatch((0,f.setMaskFull)(!t)),(0,c.store).dispatch((0,f.setClientWidth)(e)),(0,s.toast).dismiss(),t?(0,s.toast)("\u53d6\u6d88\u906e\u7f69\u5c42\u5168\u90e8\u906e\u6321"):(0,s.toast)("\u906e\u7f69\u5c42\u5168\u90e8\u906e\u6321")}if(e?.key?.toLocaleUpperCase()===_){let e=a.clientWidth,t=await (0,y.storage).get(l.STORAGE_SHOWVIDEOMASK);await (0,y.storage).set(l.STORAGE_SHOWVIDEOMASK,!t),(0,c.store).dispatch((0,f.setClientWidth)(e)),(0,s.toast).dismiss(),t?(0,s.toast)("\u9690\u85cf\u906e\u7f69\u5c42"):(0,s.toast)("\u663e\u793a\u906e\u7f69\u5c42")}if(e?.key?.toLocaleUpperCase()===T){let e=a.clientWidth,t=await (0,y.storage).get(l.STORAGE_SHOWSUBTITLELISTMASK);await (0,y.storage).set(l.STORAGE_SHOWSUBTITLELISTMASK,!t),(0,c.store).dispatch((0,f.setClientWidth)(e)),(0,s.toast).dismiss(),t?(0,s.toast)("\u9690\u85cf\u5b57\u5e55\u5217\u8868\u906e\u7f69\u5c42"):(0,s.toast)("\u663e\u793a\u5b57\u5e55\u5217\u8868\u906e\u7f69\u5c42")}if(e?.key?.toLocaleUpperCase()===O){let e=a.clientWidth,t=await (0,y.storage).get(l.STORAGE_SHOWSUBTITLELIST);await (0,y.storage).set(l.STORAGE_SHOWSUBTITLELIST,!t),(0,c.store).dispatch((0,f.setClientWidth)(e)),(0,s.toast).dismiss(),t?(0,s.toast)("\u9690\u85cf\u5b57\u5e55List"):(0,s.toast)("\u663e\u793a\u5b57\u5e55List")}if(e?.key?.toLocaleUpperCase()===x){let e=a.clientWidth,t=await (0,y.storage).get(l.STORAGE_SHOWSUBTITLE);await (0,y.storage).set(l.STORAGE_SHOWSUBTITLE,!t),(0,c.store).dispatch((0,f.setClientWidth)(e)),t?(0,s.toast)("\u9690\u85cf\u5b57\u5e55"):(0,s.toast)("\u663e\u793a\u5b57\u5e55")}if(e?.key?.toLocaleUpperCase()===I){let e=a.clientWidth,t=await (0,y.storage).get(l.STORAGE_SHOWZHSUBTITLE);await (0,y.storage).set(l.STORAGE_SHOWZHSUBTITLE,!t),(0,c.store).dispatch((0,f.setClientWidth)(e)),t?(0,s.toast)("\u9690\u85cf\u4e2d\u6587\u5b57\u5e55"):(0,s.toast)("\u663e\u793a\u4e2d\u6587\u5b57\u5e55")}e?.key?.toLocaleUpperCase()===v&&W({nodes:n,video:a}),e?.key?.toLocaleUpperCase()===S&&B({nodes:n,video:a}),e?.key?.toLocaleUpperCase()===w&&Y(n,a),e?.key?.toLocaleUpperCase()===m&&L({video:a}),e?.key?.toLocaleUpperCase()===b&&C({video:a}),e?.key?.toLocaleUpperCase()===h&&M({nodes:n,video:a,currentTime:a.currentTime}),e?.key?.toLocaleUpperCase()===p&&D({nodes:n,video:a,currentTime:a.currentTime})}}catch(e){(0,m.handleError)({error:e,msgToShow:"tools.subtitle.keyDown()"})}}function k({video:e,wavesurfer:t,isInlineSublist:r=!0}){try{(n||a||o)&&((0,s.toast)(`\u53d6\u6d88 \u91cd\u590d\u64ad\u653e \u6216 \u53d8\u901f\u64ad\u653e`),n&&clearInterval(n),a&&clearTimeout(a),o&&clearTimeout(o),r?(e.playbackRate=1,e.paused&&e.play(),(0,c.store).dispatch((0,f.setRepeatTimes)(l.REPEAT_UI_INIT_TIMES)),(0,c.store).dispatch((0,f.setVariableRepeatTimes)(l.VARIABLE_REPEAT_UI_INIT_TIMES))):(t&&t.setPlaybackRate(1),t&&t.play(),(0,c.store).dispatch((0,f.setRepeatTimesForWavesurfer)(l.REPEAT_UI_INIT_TIMES)),(0,c.store).dispatch((0,f.setVariableRepeatTimesForWavesurfer)(l.VARIABLE_REPEAT_UI_INIT_TIMES))),n=void 0,a=void 0)}catch(e){(0,m.handleError)({error:e,msgToShow:"tools.subtitle.clearIntervalAndTimeOut()"})}}function M({nodes:e,video:t,currentTime:r,wavesurfer:n,isInlineSublist:a=!0}){try{let{preNodeStartTime:o}=U(e,r);k({video:t,wavesurfer:n,isInlineSublist:a}),a?t&&(t.currentTime=o,t.paused&&t.play()):n&&(n.setTime(o),n.play()),(0,s.toast).dismiss(),(0,s.toast)("\u4e0a\u4e00\u53e5")}catch(e){(0,m.handleError)({error:e,msgToShow:"tools.subtitle.preSentence()"})}}function D({nodes:e,video:t,currentTime:r,wavesurfer:n,isInlineSublist:a=!0}){try{let{nextNodeStartTime:o}=U(e,r);k({video:t,wavesurfer:n,isInlineSublist:a}),a?t&&(t.currentTime=o,t.paused&&t.play()):n&&(n.setTime(o),n.play()),(0,s.toast).dismiss(),(0,s.toast)("\u4e0b\u4e00\u53e5")}catch(e){(0,m.handleError)({error:e,msgToShow:"tools.subtitle.nextSentence()"})}}function L({video:e,isInlineSublist:t=!0,wavesurfer:r}){t?e&&e?.playbackRate<10?(e.playbackRate=Number((e.playbackRate+.1).toFixed(1)),(0,c.store).dispatch((0,f.setMediaPlaybackRate)(e.playbackRate)),(0,s.toast).dismiss(),(0,s.toast)(`\u64ad\u653e\u901f\u5ea6 +0.1 \u5f53\u524d\u64ad\u653e\u901f\u5ea6\uff1a${e.playbackRate}`)):((0,s.toast).dismiss(),e&&(0,s.toast)(`\u5f53\u524d\u64ad\u653e\u901f\u5ea6${e.playbackRate}\uff0c\u4e0d\u80fd\u518d\u52a0\u4e86\uff01`)):r&&r?.getPlaybackRate()<10?(r.setPlaybackRate(Number((r.getPlaybackRate()+.1).toFixed(1))),(0,c.store).dispatch((0,f.setMediaPlaybackRateForWavesurfer)(r.getPlaybackRate())),(0,s.toast).dismiss(),(0,s.toast)(`\u64ad\u653e\u901f\u5ea6 +0.1 \u5f53\u524d\u64ad\u653e\u901f\u5ea6\uff1a${r.getPlaybackRate()}`)):((0,s.toast).dismiss(),r&&(0,s.toast)(`\u5f53\u524d\u64ad\u653e\u901f\u5ea6${r.getPlaybackRate()}\uff0c\u4e0d\u80fd\u518d\u52a0\u4e86\uff01`))}function C({video:e,isInlineSublist:t=!0,wavesurfer:r}){t?e&&e?.playbackRate>.2?(e.playbackRate=Number((e.playbackRate-.1).toFixed(1)),(0,c.store).dispatch((0,f.setMediaPlaybackRate)(e.playbackRate)),(0,s.toast).dismiss(),(0,s.toast)(`\u64ad\u653e\u901f\u5ea6 -0.1 \u5f53\u524d\u64ad\u653e\u901f\u5ea6\uff1a${e.playbackRate}`)):((0,s.toast).dismiss(),e&&(0,s.toast)(`\u5f53\u524d\u64ad\u653e\u901f\u5ea6${e.playbackRate}\uff0c\u4e0d\u80fd\u518d\u51cf\u4e86\uff01`)):r&&r?.getPlaybackRate()>.2?(r.setPlaybackRate(Number((r.getPlaybackRate()-.1).toFixed(1))),(0,c.store).dispatch((0,f.setMediaPlaybackRateForWavesurfer)(r.getPlaybackRate())),(0,s.toast).dismiss(),(0,s.toast)(`\u64ad\u653e\u901f\u5ea6 -0.1 \u5f53\u524d\u64ad\u653e\u901f\u5ea6\uff1a${r.getPlaybackRate()}`)):((0,s.toast).dismiss(),r&&(0,s.toast)(`\u5f53\u524d\u64ad\u653e\u901f\u5ea6${r.getPlaybackRate()}\uff0c\u4e0d\u80fd\u518d\u52a0\u4e86\uff01`))}function j(e){if(!e.includes("https")){let t=new URL(e);return`https://${t.host}${t.pathname}${t.search}`}return e}function P(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r],a=n.content.replace(/\n/g," "),o={type:"cue",data:{start:1e3*n.from,end:1e3*n.to,text:a}};t.push(o)}return t}function U(e,t){let r=0,n=0;if(0===e.length)return{preNodeStartTime:r,nextNodeStartTime:n};let a=e[0],o=e[e.length-1],i=e[e.length-2],s=a.data.start/1e3,l=o.data.start/1e3,u=i.data.start/1e3,c=0,d=e.length-1,f=0;for(;c<=d;){f++;let i=c+Math.floor((d-c)/2),p=i-1,h=i+1,m=p<0?a:e[p],y=h>=e.length?o:e[h],b=e[i],_=m.data.start/1e3,T=y.data.start/1e3,S=b.data.start/1e3;if(S<=t&&t<=T)return r=_,n=T,(0,g.logger).log(`getNodeStartOrEndTimeBTree \u67e5\u627e\u6b21\u6570: ${f}`),{preNodeStartTime:r,nextNodeStartTime:n};if(t<=S?d=i-1:t>=T&&(c=i+1),t<=s)return r=s,n=s,(0,g.logger).log(`getNodeStartOrEndTimeBTree \u67e5\u627e\u6b21\u6570: ${f}`),{preNodeStartTime:r,nextNodeStartTime:n};if(l<=t)return r=u,n=l,(0,g.logger).log(`getNodeStartOrEndTimeBTree \u67e5\u627e\u6b21\u6570: ${f}`),{preNodeStartTime:r,nextNodeStartTime:n}}return(0,g.logger).log(`getNodeStartOrEndTimeBTree \u67e5\u627e\u6b21\u6570: ${f}`),{preNodeStartTime:r,nextNodeStartTime:n}}function N(e,t){let r=0,n=0;if(0===e.length)return{preNodeStartTime:r,nextNodeStartTime:n};let a=e[0],o=e[e.length-1],i=e[e.length-2],s=a.data.start/1e3,l=o.data.start/1e3,u=i.data.start/1e3;for(let i=0;i<e.length;i++){let c=i-1,d=i+1,f=c<0?a:e[c],p=d>=e.length?o:e[d],h=e[i],m=f.data.start/1e3,g=p.data.start/1e3,y=h.data.start/1e3;if(y<=t&&t<=g){r=m,n=g;break}if(t<=s)return{preNodeStartTime:r=s,nextNodeStartTime:n=s};if(l<=t){r=u,n=l;break}}return{preNodeStartTime:r,nextNodeStartTime:n}}async function Y(e,t){k({video:t});let r=await (0,y.storage).get(l.STORAGE_FOLLOW_READ_TIMES),o=await (0,y.storage).get(l.STORAGE_FOLLOW_READ_LENGTH),i=G(e,t.currentTime);if(void 0===i)return;let{start:u,end:c}=i;t.currentTime=u,t?.paused&&t.play();let d=parseInt(r),f=parseFloat(o);(0,s.toast)(`\u64ad\u653e\u5f53\u524d\u8ddf\u8bfb\u53e5\uff0c\u5171${d}\u6b21`,{autoClose:(c-u)*1e3/t.playbackRate}),n=setInterval(()=>{t.currentTime>=c&&(t.currentTime=u,t.pause(),(0,s.toast)(`\u8bf7\u8ddf\u8bfb\uff0c\u8fd8\u5269 ${d} \u6b21`,{autoClose:(c-u)*1e3*f/t.playbackRate}),a=setTimeout(()=>{t.play(),d--,clearTimeout(a),d>0&&(0,s.toast)(`\u64ad\u653e\u5f53\u524d\u8ddf\u8bfb\u53e5\uff0c\u8fd8\u5269 ${d} \u6b21`,{autoClose:(c-u)*1e3/t.playbackRate})},(c-u)*1e3*f/t.playbackRate)),d<=0&&k({video:t})},500)}function W({nodes:e,video:t,wavesurfer:r,isInlineSublist:n=!0}){v({nodes:e,video:t,wavesurfer:r,isInlineSublist:n})}async function F({nodes:e,times:t=l.REPEAT_INIT_TIMES,video:r,wavesurfer:a,isInlineSublist:o}){let i=0,u=0;k({video:r,wavesurfer:a,isInlineSublist:o}),t=await (0,y.storage).get(l.STORAGE_REPLAY_TIMES)||l.REPEAT_INIT_TIMES;let d=await (0,y.storage).get(l.STORAGE_ALWAY_REPEAT_PLAY)||!1,p=0;p=o?r.currentTime:a.getCurrentTime();let h=G(e,p);if(void 0===h)return;i=h.start,u=h.end,o?(r.currentTime=i,r?.paused&&r.play()):(a.setTime(i),a.play());let m=0;(0,s.toast).dismiss(),o?(m=r.playbackRate,(0,c.store).dispatch((0,f.setRepeatTimes)(t))):(m=a.getPlaybackRate(),(0,c.store).dispatch((0,f.setRepeatTimesForWavesurfer)(t))),(0,s.toast)(`\u91cd\u590d\u64ad\u653e\uff0c\u5171${t}\u6b21`,{autoClose:(u-i)*1e3/m}),n=setInterval(()=>{if(t<=1&&d&&r.currentTime>=u){k({video:r,wavesurfer:a,isInlineSublist:o});return}o?r.currentTime>=u&&((0,s.toast).dismiss(),(0,s.toast)(`\u91cd\u590d\u64ad\u653e\uff0c\u8fd8\u5269 ${t-=1} \u6b21`,{autoClose:(u-i)*1e3/r.playbackRate}),(0,c.store).dispatch((0,f.setRepeatTimes)(t)),r.currentTime=i):a.getCurrentTime()>=u&&((0,s.toast).dismiss(),(0,s.toast)(`\u91cd\u590d\u64ad\u653e\uff0c\u8fd8\u5269 ${t-=1} \u6b21`,{autoClose:(u-i)*1e3/a.getPlaybackRate()}),(0,c.store).dispatch((0,f.setRepeatTimesForWavesurfer)(t)),a.setTime(i)),t<=1&&!d&&k({video:r,wavesurfer:a,isInlineSublist:o})},500)}async function B({nodes:e,video:t,wavesurfer:r,isInlineSublist:n=!0}){await S({nodes:e,video:t,wavesurfer:r,isInlineSublist:n})}function G(e,t){let{cue:r,index:n}=J(e,t);if(-1!==n)return{start:r.data.start/1e3,end:r.data.end/1e3}}function V(e){let t=(e.match(/[\u4e00-\u9fff]/g)||[]).length,r=(e.match(/[a-zA-Z]/g)||[]).length;return t>r}function H(e){let t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText}function z(e,t,r,n){let a=document.createElement("span");a.style.lineHeight=l.LINE_HEIGHT,a.style.fontSize=t,a.style.fontWeight=n,a.style.fontFamily=r,a.style.whiteSpace="nowrap",a.style.visibility="hidden",a.style.position="absolute",a.textContent=e,document.body.appendChild(a);let o=a.offsetWidth,i=a.offsetHeight;return document.body.removeChild(a),{widthText:o,heightText:i}}function $(e="21px",t="21px",r=l.FONT_SANS){let n,a;let o="abcdefghijklmnopqrstuvwxyz",i="\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d\u5341";n=z(o,e,r,l.FONT_WEIGHT);let s=n.widthText/o.length,u=n.heightText;a=z(i,t,r,l.FONT_WEIGHT);let c=a.widthText/i.length,d=a.heightText;return{widthPerEnChar:s,widthPerZhChar:c,heightPerEnChar:u,heightPerZhChar:d}}function q(e){if(!e)return!1;let t={region:"","subscription-id":"","product-id":"","cognitive-services-endpoint":"","azure-resource-id":"",scope:"",aud:"",exp:0,iss:""};return e.length>1?t=(0,p.jwtDecode)(e):t.exp=0,!(t?.exp<Date.now()/1e3)}function Z(e){return e.sort((e,t)=>e.start<t.start?-1:e.start>t.start?1:0)}function K(e){return e.sort((e,t)=>e.data.start<t.data.start?-1:e.data.start>t.data.start?1:0)}function J(e,t){let r=0,n=e.length-1,a=null,o=-1,i=0;for(;r<=n;){i++;let s=r+Math.floor((n-r)/2),l=e[s],u=l.data.start/1e3,c=l.data.end/1e3;u<=t&&c>=t?(a=l,o=s,n=s-1):u>t?n=s-1:r=s+1}return a&&a.data&&a.data.text?((0,g.logger).log(`\u67e5\u627e\u6b21\u6570: ${i}`),{cue:a,index:o}):((0,g.logger).log(`\u67e5\u627e\u6b21\u6570: ${i}`),{cue:a,index:-1})}function X(e,t){for(let r=0;r<e.length;r++){let n=e[r];if(n.data.start/1e3<=t&&n.data.end/1e3>=t)return{cue:n,index:r}}return{cue:null,index:-1}}function Q(e,t){if(t.length!==e.length)return!1;let r=[];for(let n=0;n<t.length;n++){let a=t[n],o=e[n].translations[0].text,i=a.data.text,s={type:"cue",data:{start:0,end:0,index:0,text:"",zh_text:""}};s.data.start=a.data.start,s.data.end=a.data.end,s.data.index=a.data.index,a.data?.words?.length>0&&(s.data.words=[...a.data.words]),V(i)?(s.data.text=o,s.data.zh_text=i):(s.data.text=i,s.data.zh_text=o),r.push(s)}return r}function ee(e){let t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=Math.round(e%60);return t>99?[t,r.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":"):[t.toString().padStart(2,"0"),r.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":")}function et(e){let t=l.SUBTITLE_FONT_FAMILY;for(let r=0;r<t.length;r++){let n=t[r];if(n.value===e)return n}}function er(e){d.store?.getState()?.odd?.popupShow&&(document?.URL?.includes("youtube.com")&&(37!==e.keyCode&&38!==e.keyCode&&39!==e.keyCode&&40!==e.keyCode&&e.stopPropagation(),R(e),32!==e.keyCode||e?.target?.id===l.YOUTUBESUBTITLELIST||e?.target?.id==="DraggableDict"||e?.target?.id===l.DRAGGABLESUBTITLELIST||e?.target?.id===l.NEXTJSSUBTITLELIST||e?.target?.tagName.toLowerCase()==="input"||e?.target?.id.toLowerCase().includes("edit")||e?.target?.tagName.toLowerCase()==="textarea"||e.preventDefault()),(33===e.keyCode||34===e.keyCode)&&e.preventDefault())}async function en({word:e}){let t=await (0,h.sendToBackground)({name:"subtitle-msg",body:{msgType:"ecdictFavMsg",word:e}});return t?.result?t.result:void 0}async function ea({word:e}){let t=await (0,h.sendToBackground)({name:"subtitle-msg",body:{msgType:"ecdictFavDelMsg",word:e}});return t?.result?t.result:void 0}let eo=(0,_.withPermissionCheck)(ei,"true","\u8bf7\u5f00\u901a\u4f1a\u5458\u540e\u4f7f\u7528\u5212\u8bcd\u8bcd\u5178\u529f\u80fd");async function ei({word:e}){let t=await (0,h.sendToBackground)({name:"subtitle-msg",body:{msgType:"getEcdictredInfo",word:e}});return t?.result?t.result:void 0}async function es(e,t,r,n){try{let a=[];for(let r=0;r<e.length;r+=400){let n=e.slice(r,r+400),o=await (0,h.sendToBackground)({name:"subtitle-msg",body:{msgType:"azureTranslate",q:n,target:t}});if(o?.translations&&Array.isArray(o.translations))a.push(...o.translations);else throw console.error("Invalid response format:",o.error),Error(o.error)}if(a?.length>0){let e=Q(a,r);e?(await (0,b.sleep)(300),n?(0,c.store).dispatch((0,f.setSubtitleNodes)(e)):(0,c.store).dispatch((0,f.setTTSSubtitleNodes)(e))):((0,s.toast).dismiss(),(0,s.toast).error(chrome.i18n.getMessage("translateDataIsNotPairedContactAdministrator"),{autoClose:18e4}))}else throw Error("Error in getAzureTranslate\uff0ctranslations is empty")}catch(e){(0,s.toast).dismiss(),(0,s.toast).error(`code:${e?.code},message:${e?.message}`,{autoClose:18e4})}}function el(e){let t=e.reduce((e,t)=>{let r=t.locale;return e.has(r)||e.set(r,{value:r,label:r,children:[]}),e.get(r)?.children?.push({value:t.shortName,label:`${t.localName} ${t.localeName} ${1!==t.gender?"Male":"Female"} ${t.wordsPerMinute}`}),e},new Map);return Array.from(t.values())}function eu(e){return T.LANG_MAP[e]||"\u672a\u77e5\u8bed\u79cd"}function ec(e){let t=[],r=K(e),n=0;return r.forEach(e=>{if(e?.data?.text&&e?.data?.text.includes("\n")){let r=e.data.text;e.data.text="";let a=r.split("\n"),o={type:"cue",data:{start:0,end:0,text:"",zh_text:"",index:0}};a.forEach(t=>{let r=H(t);V(r)?(o=e).data.zh_text=r:(o=e).data.text=r}),o.data.index=n,t.push(o)}else e.data.index=n,t.push(e);n+=1}),t}function ed(e,t,r){if(t<0||r>=e.length||t>r)throw Error("\u65e0\u6548\u7684\u7d22\u5f15\u8303\u56f4");return e.splice(t,r-t+1),e}function ef({setStoreIndex:e,indexFromFind:t,indexFromStore:r,setPlayThenPauseOrNot:n=!0}){try{t!==r&&-1!==t?(t>=0&&-1===r?n&&(0,c.store).dispatch((0,f.setPlayThenPause)(!1)):n&&(0,c.store).dispatch((0,f.setPlayThenPause)(!0)),(0,c.store).dispatch(e(t))):t===r&&!1!==(0,c.store).getState().noStorager.playThenPause?n&&(0,c.store).dispatch((0,f.setPlayThenPause)(!1)):-1===t&&r>=0?((0,c.store).dispatch(e(-1)),n&&(0,c.store).dispatch((0,f.setPlayThenPause)(!0))):-1===t&&t===r&&n&&(0,c.store).dispatch((0,f.setPlayThenPause)(!1))}catch(e){(0,m.handleError)({error:e,msgToShow:"contents.storeCore.controlPlayThenPause"})}}function ep(e){let t=e.getBoundingClientRect(),r=document?.documentElement?.scrollTop||document?.body?.scrollTop;return t.top+r}function eh(){let e,t;let r=document.querySelector("#danmukuBox .danmaku-wrap");if(r){let n=r.getBoundingClientRect();n&&((0,c.store).dispatch((0,f.setDraggableSubtitleListXInStore)(n.left)),(0,c.store).dispatch((0,f.setDraggableSubtitleListYInStore)(n.top)),e=n.left,t=n.top)}else(0,c.store).dispatch((0,f.setDraggableSubtitleListXInStore)(e)),(0,c.store).dispatch((0,f.setDraggableSubtitleListYInStore)(t));return{lastX:e,lastY:t}}function em(){let e,t;let r=(0,u.queryYoutubeItems)();if(r){let n=r.getBoundingClientRect();n&&((0,c.store).dispatch((0,f.setDraggableSubtitleListXInStore)(n.left)),(0,c.store).dispatch((0,f.setDraggableSubtitleListYInStore)(n.top)),e=n.left,t=n.top)}else(0,c.store).dispatch((0,f.setDraggableSubtitleListXInStore)(e)),(0,c.store).dispatch((0,f.setDraggableSubtitleListYInStore)(t));return{lastX:e,lastY:t}}function eg(){let e,t;let r=(0,u.queryBaiduPanRightSubtitleListContainer)();if(r){let n=r.getBoundingClientRect();(0,c.store).dispatch((0,f.setDraggableSubtitleListXInStore)(n.left)),(0,c.store).dispatch((0,f.setDraggableSubtitleListYInStore)(n.top)),e=n.left,t=n.top}else(0,c.store).dispatch((0,f.setDraggableSubtitleListXInStore)(e)),(0,c.store).dispatch((0,f.setDraggableSubtitleListYInStore)(t));return{lastX:e,lastY:t}}function ey(){let e,t;let r=(0,u.queryRightSubtitleListContainer)();if(r){let n=r.getBoundingClientRect();n&&((0,c.store).dispatch((0,f.setDraggableSubtitleListXInStore)(n.left)),(0,c.store).dispatch((0,f.setDraggableSubtitleListYInStore)(n.top)),e=n.left,t=n.top)}else(0,c.store).dispatch((0,f.setDraggableSubtitleListXInStore)(e)),(0,c.store).dispatch((0,f.setDraggableSubtitleListYInStore)(t));return{lastX:e,lastY:t}}function eb(e){return"string"!=typeof e?e:e.replace(/^[^a-zA-Z]*(.*?)[^a-zA-Z]*$/,"$1")}},{"react-toastify":"h8uoK","~tools/constants":"aHxh8","~tools/queryVideo":"en60F","../redux/storeNoStorage":"3Vwjp","~redux/store":"4ACRl","~redux/no-storage-slice":"8bwie","jwt-decode":"du0IS","@plasmohq/messaging":"bq7mF","./error":"2MpWC","~tools/logger":"jKVtu","./storages":"68W9f","./sleep":"667zm","./permission":"8482s","./constants/lang":"lWvef","@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],aHxh8:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"SUBTITLE_LIST_PADDING_SIZE",()=>a),n.export(r,"SUBTITLE_LIST_WIDTH",()=>o),n.export(r,"DEFAULT_ROW_HEIGHT",()=>i),n.export(r,"SUBTITLE_LIST_TTS_TEXT_WIDTH",()=>s),n.export(r,"SUBTITLE_LIST_HEIGHT",()=>l),n.export(r,"DRAGGABLE_HANDLE_HEIGHT",()=>u),n.export(r,"CLOSE_SVG_REM_COUNT",()=>c),n.export(r,"SUBTITLE_LIST_ROW_HEIGHT",()=>d),n.export(r,"BWP_VIDEO",()=>f),n.export(r,"VIDEO_PAUSE",()=>p),n.export(r,"KEY_DOWN",()=>h),n.export(r,"CLICK_SUBTITLE",()=>m),n.export(r,"SENT_BILIBILI_AI_SUBTITLE_URL",()=>g),n.export(r,"SENT_YOUTUBE_SUBTITLE_API_URL",()=>y),n.export(r,"SENT_BAIDUPAN_SUBTITLE_API_URL",()=>b),n.export(r,"INIT_SUBTITLENODES",()=>_),n.export(r,"NO_SUBTITLENODES_DATA",()=>T),n.export(r,"FILTER_SUBTITLE_IN_WEBREQUEST",()=>S),n.export(r,"FILTER_SUBTITLE_URL_IN_BAIDUPAN_1",()=>v),n.export(r,"FILTER_SUBTITLE_URL_IN_BAIDUPAN_2",()=>w),n.export(r,"FILTER_SUBTITLE_IN_YOUTUBE_URL",()=>E),n.export(r,"NEXT",()=>x),n.export(r,"PRE",()=>I),n.export(r,"ADD",()=>O),n.export(r,"SUB",()=>A),n.export(r,"VIDEO_MASK",()=>R),n.export(r,"SUB_MASK",()=>k),n.export(r,"REPEAT",()=>M),n.export(r,"VARIABLE_REPEAT",()=>D),n.export(r,"FOLLOW_READ",()=>L),n.export(r,"FULL_MASK",()=>C),n.export(r,"SUBTITLE_LIST",()=>j),n.export(r,"SUBTITLE",()=>P),n.export(r,"ZHSUBTITLE",()=>U),n.export(r,"DEFAULT_MAX_PAUSE_TIME",()=>N),n.export(r,"STORAGE_RANDOMUUID",()=>Y),n.export(r,"STORAGE_ALWAY_REPEAT_PLAY",()=>W),n.export(r,"STORAGE_PLAYED_THEN_PAUSE",()=>F),n.export(r,"STORAGE_SHOW_EN_DEFINITION",()=>B),n.export(r,"STORAGE_REPLAY_TIMES",()=>G),n.export(r,"STORAGE_MAX_PAUSE_TIME",()=>V),n.export(r,"STORAGE_SUBTITLELIST_TABS_KEY",()=>H),n.export(r,"STORAGE_SUBTITLELIST_LANGUAGE_MODE_TO_SHOW",()=>z),n.export(r,"STORAGE_SUBTITLELIST_TABS_SCROLL",()=>$),n.export(r,"STORAGE_SHOWSUBTITLE",()=>q),n.export(r,"STORAGE_SHOWZHSUBTITLE",()=>Z),n.export(r,"STORAGE_SHOWSUBTITLELIST",()=>K),n.export(r,"STORAGE_SHOWTTSSUBTITLELIST",()=>J),n.export(r,"STORAGE_DRAGGABLESUBTITLELISTX",()=>X),n.export(r,"STORAGE_DRAGGABLESUBTITLELISTY",()=>Q),n.export(r,"STORAGE_BILIBILI_TRANSLATE_SELECT_LANG",()=>ee),n.export(r,"STORAGE_SHOWVIDEOMASK",()=>et),n.export(r,"STORAGE_SHOWSUBTITLELISTMASK",()=>er),n.export(r,"STORAGE_SHOWFLOATBALL",()=>en),n.export(r,"STORAGE_DISABLESHORTCUTS",()=>ea),n.export(r,"STORAGE_ALL_SHORTCUTS",()=>eo),n.export(r,"STORAGE_VIDEO_MASK_HEIGHT",()=>ei),n.export(r,"STORAGE_DEFAULT_VIDEO_MASK_HEIGHT",()=>es),n.export(r,"STORAGE_FOLLOW_READ_TIMES",()=>el),n.export(r,"STORAGE_DEFAULT_FOLLOW_READ_TIMES",()=>eu),n.export(r,"STORAGE_FOLLOW_READ_LENGTH",()=>ec),n.export(r,"STORAGE_DEFAULT_FOLLOW_READ_LENGTH",()=>ed),n.export(r,"STORAGE_POST_IDLETIME_ACTIVETIME_LOCK",()=>ef),n.export(r,"STORAGE_IDLETIME_VIDEO_ACTIVETIME",()=>ep),n.export(r,"STORAGE_IDLETIME_DRAGGABLESUBTITLELIST_ACTIVETIME",()=>eh),n.export(r,"STORAGE_IDLETIME_NEXTJSSUBTITLELIST_ACTIVETIME",()=>em),n.export(r,"STORAGE_IDLETIME_DRAGGABLEDICT_ACTIVETIME",()=>eg),n.export(r,"STORAGE_IDLETIME_YOUTUBESUBTITLELIST_ACTIVETIME",()=>ey),n.export(r,"STORAGE_IDLETIME_VIDEO_ACTIVETIME_OTHER",()=>eb),n.export(r,"STORAGE_IDLETIME_VIDEO_ACTIVETIME_YOUTUBE",()=>e_),n.export(r,"STORAGE_IDLETIME_VIDEO_ACTIVETIME_BILIBILI",()=>eT),n.export(r,"STORAGE_IDLETIME_VIDEO_ACTIVETIME_1ZIMU",()=>eS),n.export(r,"STORAGE_IDLETIME_VIDEO_ACTIVETIME_BAIDUPAN",()=>ev),n.export(r,"STORAGE_AZURE_KEY_CODE",()=>ew),n.export(r,"STORAGE_AZURE_KEY_AREA",()=>eE),n.export(r,"STORAGE_FAVORITES_DICTS",()=>ex),n.export(r,"STORAGE_MASK_BACKDROP_BLUR_SHOW",()=>eI),n.export(r,"STORAGE_DEFAULT_MASK_BACKDROP_BLUR_SHOW",()=>eO),n.export(r,"STORAGE_MASK_BACKDROP_BLUR_COLOR",()=>eA),n.export(r,"STORAGE_DEFAULT_MASK_BACKDROP_BLUR_COLOR",()=>eR),n.export(r,"STORAGE_USER_INFO",()=>ek),n.export(r,"IDLETIME_STORAGE_DEFAULT_VALUE",()=>eM),n.export(r,"FAVORITES_DICTS_DEFAULT_VALUE",()=>eD),n.export(r,"ALL_SHORT_CUTS",()=>eL),n.export(r,"COLOR_PRIMARY",()=>eC),n.export(r,"FONT_SIZE",()=>ej),n.export(r,"FONT_SANS",()=>eP),n.export(r,"FONT_SERIF",()=>eU),n.export(r,"FONT_MONO",()=>eN),n.export(r,"SUBTITLE_FONT_FAMILY",()=>eY),n.export(r,"FONT_WEIGHT",()=>eW),n.export(r,"LINE_HEIGHT",()=>eF),n.export(r,"ZIMU1_USESTORAGE_SYNC_JWT",()=>eB),n.export(r,"ZIMU1_USESTORAGE_SYNC_HEADIMGURL",()=>eG),n.export(r,"ZIMU1_USESTORAGE_SYNC_NICKNAME",()=>eV),n.export(r,"ZIMU1_USESTORAGE_SYNC_PAID",()=>eH),n.export(r,"DRAGGABLE_NODE_CONTAINER_WIDTH",()=>ez),n.export(r,"DRAGGABLE_NODE_CONTAINER_HEIGHT",()=>e$),n.export(r,"DRAGGABLE_NODE_CONTAINER_X",()=>eq),n.export(r,"DRAGGABLE_NODE_CONTAINER_Y",()=>eZ),n.export(r,"IDLE_TIME_OUT",()=>eK),n.export(r,"DARK_BG_COLOR",()=>eJ),n.export(r,"REPEAT_INIT_TIMES",()=>eX),n.export(r,"REPEAT_UI_INIT_TIMES",()=>eQ),n.export(r,"VARIABLE_REPEAT_INIT_TIMES",()=>e0),n.export(r,"VARIABLE_REPEAT_UI_INIT_TIMES",()=>e1),n.export(r,"YOUTUBE_SUBTITLELIST_WATCH_URL",()=>e2),n.export(r,"YOUTUBE_SUBTITLELIST_WATCH_URL_EMBED",()=>e3),n.export(r,"ZIMU1_SUBTITLELIST_WATCH_URL",()=>e4),n.export(r,"CASCADER_OPTION_MIX",()=>e6),n.export(r,"CASCADER_OPTION_ZH",()=>e5),n.export(r,"CASCADER_OPTION_FOREIGN",()=>e8),n.export(r,"STORAGE_SUBTITLE_FOREIGN_FONTSIZE",()=>e9),n.export(r,"STORAGE_SUBTITLE_ZH_FONTSIZE",()=>e7),n.export(r,"SUBTITLE_FOREIGN_FONT_SIZE",()=>te),n.export(r,"STORAGE_SUBTITLELIST_FOREIGN_FONTSIZE",()=>tt),n.export(r,"STORAGE_SUBTITLELIST_ZH_FONTSIZE",()=>tr),n.export(r,"STORAGE_ARTICLE_FONTSIZE",()=>tn),n.export(r,"STORAGE_SUBTITLE_FONT_FAMILY",()=>ta),n.export(r,"STORAGE_SUBTITLE_NO",()=>to),n.export(r,"STORAGE_SUBTITLE_NO_CURRENT_TIME",()=>ti),n.export(r,"BILIBILI_COM",()=>ts),n.export(r,"YOUTUBE_COM",()=>tl),n.export(r,"ZIMU1_COM",()=>tu),n.export(r,"PAN_BAIDU_COM",()=>tc),n.export(r,"PAN_BAIDU_COM_VIDEO",()=>td),n.export(r,"YOUTUBESUBTITLELIST",()=>tf),n.export(r,"NEXTJSSUBTITLELIST",()=>tp),n.export(r,"BILIBILISUBTITLESWITCH",()=>th),n.export(r,"YOUTUBESUBTITLESWITCH",()=>tm),n.export(r,"BAIDUPANSUBTITLESWITCH",()=>tg),n.export(r,"DRAGGABLESUBTITLELIST",()=>ty),n.export(r,"YOUTUBE_VALID_ORIGINS",()=>tb),n.export(r,"BILIBILI_VALID_ORIGINS",()=>t_),n.export(r,"ZIMU1_VALID_ORIGINS",()=>tT),n.export(r,"BAIDUPAN_VALID_ORIGINS",()=>tS),n.export(r,"JWT_IS_FALSE",()=>tv);let a=1,o=300,i=80,s=600,l=500,u=16,c=2,d=36,f="bwp-video",p="VIDEO_PAUSE",h="KEY_DOWN",m="CLICK_SUBTITLE",g="SENT_BILIBILI_AI_SUBTITLE_URL",y="SENT_YOUTUBE_SUBTITLE_API_URL",b="SENT_BAIDUPAN_SUBTITLE_API_URL",_="INIT_SUBTITLENODES",T="NO_SUBTITLENODES_DATA",S="api.bilibili.com/x/player/wbi/v2",v="/api/streaming",w="M3U8_SUBTITLE_SRT",E=".com/api/timedtext",x="K",I="J",O="I",A="U",R="H",k="L",M="R",D="Q",L="F",C="A",j="V",P="S",U="C",N=20,Y="storage_randomUUID",W="alwaysRepeatPlay",F="playedThenPause",B="showEnDefinition",G="storage_replay_times",V="storage_max_pause_time",H="subtitlelistTabsKey",z="subtitlelistLanguageModeToShow",$="subtitlelistTabsScroll",q="showSubtitle",Z="showZhSubtitle",K="showSubtitleList",J="showTTSSubtitleList",X="draggableSubtitleListX",Q="draggableSubtitleListY",ee="bilibiliTranslateSelectLang",et="showVideoMask",er="showSubtitleListMask",en="showFloatBall",ea="disableShortcuts",eo="allShortcuts",ei="videoMaskHeight",es=80,el="followReadTimes",eu=3,ec="followReadLength",ed=1.5,ef="storage_post_idletime_activetime_lock",ep="idleTimeVideoActivetime",eh="idleTimeDraggableSubListActivetime",em="idleTimeNextjsSubListActivetime",eg="idleTimeDraggableDictActivetime",ey="idleTimeYoutubeSubListActivetime",eb="idleTimeVideoActivetimeOther",e_="idleTimeVideoActivetimeYoutube",eT="idleTimeVideoActivetimeBilibili",eS="idleTimeVideoActivetime1zimu",ev="idleTimeVideoActivetimeBaidupan",ew="storage_azure_key_code",eE="storage_azure_key_area",ex="storage_favorites_dicts",eI="maskBackdropBlurPxValue",eO=!0,eA="maskBackdropBlurColor",eR="rgba(255, 255, 255, 0.3)",ek="storage_user_info",eM={default:""},eD=[],eL={next:x,pre:I,add:O,sub:A,videoMask:R,subMask:k,repeat:M,variableRepeat:D,followRead:L,fullMask:C,subtitleList:j,subtitle:P,zhSubtitle:U},eC="#16a34a",ej="21px",eP='ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";',eU='ui-serif, Georgia, Cambria, "Times New Roman", Times, serif',eN='ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',eY=[{value:1,label:"font-sans",origin:eP},{value:2,label:"font-serif",origin:eU},{value:3,label:"font-mono",origin:eN}],eW="700",eF="1.25",eB="zimu1_useStorage_sync_jwt",eG="zimu1_useStorage_sync_headimgurl",eV="zimu1_useStorage_sync_nickname",eH="zimu1_useStorage_sync_paid",ez=1e3,e$=480,eq=150,eZ=150,eK=30,eJ="#1e1e1e",eX=5,eQ=eX+1,e0=10,e1=e0+1,e2="youtube.com/watch",e3="youtube.com/embed",e4="1zimu.com/player",e6="mix",e5="zh",e8="foreign",e9="storageSubtitleForeignFontsize",e7="storageSubtitleZhFontsize",te=16,tt="storageSubtitlelistForeignFontsize",tr="storageSubtitlelistZhFontsize",tn="storageArticleFontsize",ta="storage_subtitle_font_family",to="storage_subtitle_no",ti="storage_subtitle_no_current_time",ts="bilibili.com",tl="youtube.com",tu="1zimu.com",tc="pan.baidu.com",td="pan.baidu.com/pfile/video",tf="YoutubeSubtitleList",tp="NextjsSubtitleList",th="BilibiliSubtitleSwitch",tm="YoutubeSubtitleSwitch",tg="BaidupanSubtitleSwitch",ty="DraggableSubtitleList",tb=["https://www.youtube.com","https://youtube.com"],t_=["https://www.bilibili.com","https://bilibili.com"],tT=["https://www.1zimu.com","https://1zimu.com"],tS=["https://pan.baidu.com/pfile/video","https://pan.baidu.com"],tv="jwt is false"},{"@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],en60F:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"getBrowserInfo",()=>l),n.export(r,"queryVideoElementWithBlob2",()=>u),n.export(r,"queryVideoElementWithBlob",()=>c),n.export(r,"queryDanmukuBoxInBilibili",()=>d),n.export(r,"queryRightContainerInner",()=>f),n.export(r,"queryTedCurTime",()=>p),n.export(r,"queryUpPanelContainer",()=>h),n.export(r,"queryBaiduPanVideo",()=>m),n.export(r,"queryAliyundriveVideoPreviewer",()=>g),n.export(r,"queryAliyundriveVideoPreviewerContainer",()=>y),n.export(r,"queryBaidupanVideoControl",()=>b),n.export(r,"queryBilibiliVideoControl",()=>_),n.export(r,"queryYoutubeVideoControl",()=>T),n.export(r,"queryBpxPlayerControlBottomLeft",()=>S),n.export(r,"queryYoutubeYtp_left_controls",()=>v),n.export(r,"queryYoutubeItems",()=>w),n.export(r,"queryYoutubeItemsWidth",()=>E),n.export(r,"queryBaiduPanRightSubtitleListContainer",()=>x),n.export(r,"queryBaiduPanRightSubtitleListContainerWidth",()=>I),n.export(r,"queryRightSubtitleListContainer",()=>O),n.export(r,"queryRightSubtitleListContainerWidth",()=>A),n.export(r,"getBilibiliVideoPageRightContainerInnerWidth",()=>R),n.export(r,"getWindow1rem",()=>k);var a=e("ua-parser-js"),o=e("~tools/constants"),i=e("~tools/subtitle"),s=e("~tools/types");function l(){return new a.UAParser().getResult()}function u(e){return document.querySelector(o.BWP_VIDEO)}function c(e){try{let e,t;let r=window,n=document;if(r.browserType,r.OSType,(0,i.checkBwpVideo)()?(e=n.querySelectorAll(o.BWP_VIDEO),t=s.BROWSER_TYPE.EDGE):(e=n.querySelectorAll("video"),t=s.BROWSER_TYPE.CHROME),e?.length>0)for(let r=0;r<e.length;r++){let n=e[r];if(t===s.BROWSER_TYPE.CHROME){if(n?.src.includes("blob:")||n?.src.includes("https:"))return n}else if(t===s.BROWSER_TYPE.EDGE&&(n?.attributes[0]?.value.includes("blob:")||n?.attributes[0]?.value.includes("https:")))return n}return null}catch(e){console.error("catched error in tools.queryVideo :>> ",e)}}function d(){let e=document.querySelector("#danmukuBox");return e}function f(){let e=document.querySelector(".right-container-inner.scroll-sticky");return e}function p(){let e=document.querySelector("#oldfanfollowEntry");return e}function h(){let e=document.querySelector("#oldfanfollowEntry");return e}function m(){let e=document.querySelectorAll('video[id^="vjs_video_"][id$="_html5_api"]');if(e.length>0)for(let t=0;t<e.length;t++){let r=e[t];if(!r.id.includes("vjs_video_3_html5_api"))return r}return null}function g(){let e=document.querySelector('div[class^="video-previewer"]');return e}function y(){let e=document.querySelector('div[class^="video-previewer-container"]');return e}function b(){let e=document.querySelector(".vp-video__control-bar--setup");return e}function _(){let e=document.querySelector(".bpx-player-control-bottom-right");return e}function T(){let e=document.querySelector(".ytp-right-controls");return e}function S(){let e=document.querySelector(".bpx-player-ctrl-btn.bpx-player-ctrl-time");return e}function v(){let e=document.querySelector(".ytp-left-controls");return e}function w(){let e=document.querySelector("#secondary-inner");return e}function E(){let e=document.querySelector("#secondary-inner");return e?.clientWidth}function x(){let e=document.querySelector(".vp-tabs");return e}function I(){let e=document.querySelector(".vp-tabs");return e?.clientWidth}function O(){let e=document.querySelector("#subtitleListContainer");return e}function A(){let e=document.querySelector("#subtitleListContainer");return e?.clientWidth}function R(){let e=document.querySelector("#danmukuBox");return e?.clientWidth}function k(){try{let e=parseInt(getComputedStyle(document.documentElement).fontSize);if(!e)return 16;return e}catch(e){console.error("catched error in tools.queryVideo.getWindow1rem :>> ",e)}}},{"ua-parser-js":"jMsWN","~tools/constants":"aHxh8","~tools/subtitle":"lEjEC","~tools/types":"jJR4v","@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],jMsWN:[function(t,r,n){!function(t,a){var o="function",i="undefined",s="object",l="string",u="major",c="model",d="name",f="type",p="vendor",h="version",m="architecture",g="console",y="mobile",b="tablet",_="smarttv",T="wearable",S="embedded",v="Amazon",w="Apple",E="ASUS",x="BlackBerry",I="Browser",O="Chrome",A="Firefox",R="Google",k="Honor",M="Huawei",D="Microsoft",L="Motorola",C="Nvidia",j="OnePlus",P="Opera",U="OPPO",N="Samsung",Y="Sharp",W="Sony",F="Xiaomi",B="Zebra",G="Facebook",V="Chromium OS",H="Mac OS",z=" Browser",$=function(e,t){var r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r},q=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},Z=function(e,t){return typeof e===l&&-1!==K(t).indexOf(K(e))},K=function(e){return e.toLowerCase()},J=function(e,t){if(typeof e===l)return e=e.replace(/^\s\s*/,""),typeof t===i?e:e.substring(0,500)},X=function(e,t){for(var r,n,i,l,u,c,d=0;d<t.length&&!u;){var f=t[d],p=t[d+1];for(r=n=0;r<f.length&&!u&&f[r];)if(u=f[r++].exec(e))for(i=0;i<p.length;i++)c=u[++n],typeof(l=p[i])===s&&l.length>0?2===l.length?typeof l[1]==o?this[l[0]]=l[1].call(this,c):this[l[0]]=l[1]:3===l.length?typeof l[1]!==o||l[1].exec&&l[1].test?this[l[0]]=c?c.replace(l[1],l[2]):a:this[l[0]]=c?l[1].call(this,c,l[2]):a:4===l.length&&(this[l[0]]=c?l[3].call(this,c.replace(l[1],l[2])):a):this[l]=c||a;d+=2}},Q=function(e,t){for(var r in t)if(typeof t[r]===s&&t[r].length>0){for(var n=0;n<t[r].length;n++)if(Z(t[r][n],e))return"?"===r?a:r}else if(Z(t[r],e))return"?"===r?a:r;return t.hasOwnProperty("*")?t["*"]:e},ee={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},et={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[h,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[h,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,h],[/opios[\/ ]+([\w\.]+)/i],[h,[d,P+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[h,[d,P+" GX"]],[/\bopr\/([\w\.]+)/i],[h,[d,P]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[h,[d,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[h,[d,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[d,h],[/quark(?:pc)?\/([-\w\.]+)/i],[h,[d,"Quark"]],[/\bddg\/([\w\.]+)/i],[h,[d,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[h,[d,"UC"+I]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[h,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[h,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[h,[d,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[h,[d,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[h,[d,"Smart Lenovo "+I]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+I],h],[/\bfocus\/([\w\.]+)/i],[h,[d,A+" Focus"]],[/\bopt\/([\w\.]+)/i],[h,[d,P+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[h,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[h,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[h,[d,P+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[h,[d,"MIUI"+z]],[/fxios\/([\w\.-]+)/i],[h,[d,A]],[/\bqihoobrowser\/?([\w\.]*)/i],[h,[d,"360"]],[/\b(qq)\/([\w\.]+)/i],[[d,/(.+)/,"$1Browser"],h],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1"+z],h],[/samsungbrowser\/([\w\.]+)/i],[h,[d,N+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[h,[d,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[d,"Sogou Mobile"],h],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[d,h],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[d],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[h,d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,G],h],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[d,h],[/\bgsa\/([\w\.]+) .*safari\//i],[h,[d,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[h,[d,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[h,[d,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,O+" WebView"],h],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[h,[d,"Android "+I]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,h],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[h,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[h,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[h,Q,{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[d,h],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],h],[/(wolvic|librewolf)\/([\w\.]+)/i],[d,h],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[h,[d,A+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[d,[h,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[d,[h,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[m,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[m,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[m,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[m,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[m,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[m,/ower/,"",K]],[/ sun4\w[;\)]/i],[[m,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[m,K]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[p,N],[f,b]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[c,[p,N],[f,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[p,w],[f,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[p,w],[f,b]],[/(macintosh);/i],[c,[p,w]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[p,Y],[f,y]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[c,[p,k],[f,b]],[/honor([-\w ]+)[;\)]/i],[c,[p,k],[f,y]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[c,[p,M],[f,b]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[p,M],[f,y]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[c,/_/g," "],[p,F],[f,b]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[c,/_/g," "],[p,F],[f,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[p,U],[f,y]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[c,[p,Q,{OnePlus:["304","403","203"],"*":U}],[f,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[p,"Vivo"],[f,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[c,[p,"Realme"],[f,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[p,L],[f,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[p,L],[f,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[p,"LG"],[f,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[p,"LG"],[f,y]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[c,[p,"Lenovo"],[f,b]],[/(nokia) (t[12][01])/i],[p,c,[f,b]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[c,/_/g," "],[f,y],[p,"Nokia"]],[/(pixel (c|tablet))\b/i],[c,[p,R],[f,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[p,R],[f,y]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[p,W],[f,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[p,W],[f,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[p,j],[f,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[p,v],[f,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[p,v],[f,y]],[/(playbook);[-\w\),; ]+(rim)/i],[c,p,[f,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[p,x],[f,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[p,E],[f,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[p,E],[f,y]],[/(nexus 9)/i],[c,[p,"HTC"],[f,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[p,[c,/_/g," "],[f,y]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[c,[p,"TCL"],[f,b]],[/(itel) ((\w+))/i],[[p,K],c,[f,Q,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[p,"Acer"],[f,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[p,"Meizu"],[f,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[c,[p,"Ulefone"],[f,y]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[c,[p,"Energizer"],[f,y]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[c,[p,"Cat"],[f,y]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[c,[p,"Smartfren"],[f,y]],[/droid.+; (a(?:015|06[35]|142p?))/i],[c,[p,"Nothing"],[f,y]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[c,[p,"Archos"],[f,b]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[c,[p,"Archos"],[f,y]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[p,c,[f,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[p,c,[f,y]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[p,c,[f,b]],[/(surface duo)/i],[c,[p,D],[f,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[p,"Fairphone"],[f,y]],[/(u304aa)/i],[c,[p,"AT&T"],[f,y]],[/\bsie-(\w*)/i],[c,[p,"Siemens"],[f,y]],[/\b(rct\w+) b/i],[c,[p,"RCA"],[f,b]],[/\b(venue[\d ]{2,7}) b/i],[c,[p,"Dell"],[f,b]],[/\b(q(?:mv|ta)\w+) b/i],[c,[p,"Verizon"],[f,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[p,"Barnes & Noble"],[f,b]],[/\b(tm\d{3}\w+) b/i],[c,[p,"NuVision"],[f,b]],[/\b(k88) b/i],[c,[p,"ZTE"],[f,b]],[/\b(nx\d{3}j) b/i],[c,[p,"ZTE"],[f,y]],[/\b(gen\d{3}) b.+49h/i],[c,[p,"Swiss"],[f,y]],[/\b(zur\d{3}) b/i],[c,[p,"Swiss"],[f,b]],[/\b((zeki)?tb.*\b) b/i],[c,[p,"Zeki"],[f,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[p,"Dragon Touch"],c,[f,b]],[/\b(ns-?\w{0,9}) b/i],[c,[p,"Insignia"],[f,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[p,"NextBook"],[f,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[p,"Voice"],c,[f,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[p,"LvTel"],c,[f,y]],[/\b(ph-1) /i],[c,[p,"Essential"],[f,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[p,"Envizen"],[f,b]],[/\b(trio[-\w\. ]+) b/i],[c,[p,"MachSpeed"],[f,b]],[/\btu_(1491) b/i],[c,[p,"Rotor"],[f,b]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[c,[p,C],[f,b]],[/(sprint) (\w+)/i],[p,c,[f,y]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[p,D],[f,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[p,B],[f,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[p,B],[f,y]],[/smart-tv.+(samsung)/i],[p,[f,_]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[p,N],[f,_]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[p,"LG"],[f,_]],[/(apple) ?tv/i],[p,[c,w+" TV"],[f,_]],[/crkey/i],[[c,O+"cast"],[p,R],[f,_]],[/droid.+aft(\w+)( bui|\))/i],[c,[p,v],[f,_]],[/(shield \w+ tv)/i],[c,[p,C],[f,_]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[p,Y],[f,_]],[/(bravia[\w ]+)( bui|\))/i],[c,[p,W],[f,_]],[/(mi(tv|box)-?\w+) bui/i],[c,[p,F],[f,_]],[/Hbbtv.*(technisat) (.*);/i],[p,c,[f,_]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[p,J],[c,J],[f,_]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[c,[f,_]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,_]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[p,c,[f,g]],[/droid.+; (shield)( bui|\))/i],[c,[p,C],[f,g]],[/(playstation \w+)/i],[c,[p,W],[f,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[p,D],[f,g]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[c,[p,N],[f,T]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[p,c,[f,T]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[c,[p,U],[f,T]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[p,w],[f,T]],[/(opwwe\d{3})/i],[c,[p,j],[f,T]],[/(moto 360)/i],[c,[p,L],[f,T]],[/(smartwatch 3)/i],[c,[p,W],[f,T]],[/(g watch r)/i],[c,[p,"LG"],[f,T]],[/droid.+; (wt63?0{2,3})\)/i],[c,[p,B],[f,T]],[/droid.+; (glass) \d/i],[c,[p,R],[f,T]],[/(pico) (4|neo3(?: link|pro)?)/i],[p,c,[f,T]],[/; (quest( \d| pro)?)/i],[c,[p,G],[f,T]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[p,[f,S]],[/(aeobc)\b/i],[c,[p,v],[f,S]],[/(homepod).+mac os/i],[c,[p,w],[f,S]],[/windows iot/i],[[f,S]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[c,[f,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[f,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,y]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[c,[p,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[h,[d,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[d,h],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[h,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[d,h],[/ladybird\//i],[[d,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[h,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,h],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[d,[h,Q,ee]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,Q,ee],[d,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[h,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,H],[h,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[h,d],[/(ubuntu) ([\w\.]+) like android/i],[[d,/(.+)/,"$1 Touch"],h],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[d,h],[/\(bb(10);/i],[h,[d,x]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[h,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[h,[d,A+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[h,[d,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[h,[d,"watchOS"]],[/crkey\/([\d\.]+)/i],[h,[d,O+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[d,V],h],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,h],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],h],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[d,h]]},er=function(e,r){if(typeof e===s&&(r=e,e=a),!(this instanceof er))return new er(e,r).getResult();var n=typeof t!==i&&t.navigator?t.navigator:a,g=e||(n&&n.userAgent?n.userAgent:""),_=n&&n.userAgentData?n.userAgentData:a,T=r?$(et,r):et,S=n&&n.userAgent==g;return this.getBrowser=function(){var e,t={};return t[d]=a,t[h]=a,X.call(t,g,T.browser),t[u]=typeof(e=t[h])===l?e.replace(/[^\d\.]/g,"").split(".")[0]:a,S&&n&&n.brave&&typeof n.brave.isBrave==o&&(t[d]="Brave"),t},this.getCPU=function(){var e={};return e[m]=a,X.call(e,g,T.cpu),e},this.getDevice=function(){var e={};return e[p]=a,e[c]=a,e[f]=a,X.call(e,g,T.device),S&&!e[f]&&_&&_.mobile&&(e[f]=y),S&&"Macintosh"==e[c]&&n&&typeof n.standalone!==i&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[c]="iPad",e[f]=b),e},this.getEngine=function(){var e={};return e[d]=a,e[h]=a,X.call(e,g,T.engine),e},this.getOS=function(){var e={};return e[d]=a,e[h]=a,X.call(e,g,T.os),S&&!e[d]&&_&&_.platform&&"Unknown"!=_.platform&&(e[d]=_.platform.replace(/chrome os/i,V).replace(/macos/i,H)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return g},this.setUA=function(e){return g=typeof e===l&&e.length>500?J(e,500):e,this},this.setUA(g),this};er.VERSION="1.0.41",er.BROWSER=q([d,h,u]),er.CPU=q([m]),er.DEVICE=q([c,p,f,g,y,_,b,T,S]),er.ENGINE=er.OS=q([d,h]),typeof n!==i?(r.exports&&(n=r.exports=er),n.UAParser=er):typeof e===o&&e.amd?e(function(){return er}):typeof t!==i&&(t.UAParser=er);var en=typeof t!==i&&(t.jQuery||t.Zepto);if(en&&!en.ua){var ea=new er;en.ua=ea.getResult(),en.ua.get=function(){return ea.getUA()},en.ua.set=function(e){ea.setUA(e);var t=ea.getResult();for(var r in t)en.ua[r]=t[r]}}}("object"==typeof window?window:this)},{}],jJR4v:[function(e,t,r){var n,a,o,i,s=e("@parcel/transformer-js/src/esmodule-helpers.js");s.defineInteropFlag(r),s.export(r,"BROWSER_TYPE",()=>o),s.export(r,"OS_TYPE",()=>i),(n=o||(o={}))[n.IE=0]="IE",n[n.EDGE=1]="EDGE",n[n.CHROME=2]="CHROME",n[n.OTHER=3]="OTHER",(a=i||(i={}))[a.MACOS=0]="MACOS",a[a.WINDOWS=1]="WINDOWS",a[a.OTHER=2]="OTHER"},{"@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],"3Vwjp":[function(e,t,r){let n;var a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r),a.export(r,"store",()=>n),a.export(r,"isStoreReady",()=>f),a.export(r,"storeReady",()=>p),a.export(r,"MyContext",()=>h),a.export(r,"useAppDispatch",()=>y),a.export(r,"useAppSelector",()=>b);var o=e("@reduxjs/toolkit"),i=e("./no-storage-slice"),s=a.interopDefault(i),l=e("react"),u=a.interopDefault(l),c=e("react-redux");let d={isReady:!1};try{(n=(0,o.configureStore)({reducer:{noStorager:s.default,readiness:(e=d,t)=>"STORE_READY"===t.type?{...e,isReady:!0}:e},middleware:e=>e({thunk:!1})})).dispatch({type:"STORE_READY"})}catch(e){console.error("Critical: Store initialization failed",e)}let f=e=>e.readiness.isReady,p=new Promise(e=>{if(n?.getState()?.readiness?.isReady){e();return}let t=n.subscribe(()=>{f(n.getState())&&(t(),e())})}),h=(0,u.default).createContext(null),m=(0,c.createDispatchHook)(h),g=(0,c.createSelectorHook)(h),y=m,b=g},{"@reduxjs/toolkit":"8h9ny","./no-storage-slice":"8bwie",react:"34kvN","react-redux":"UfIbn","@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],"8h9ny":[function(e,t,r){var n,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r),a.export(r,"ReducerType",()=>es),a.export(r,"SHOULD_AUTOBATCH",()=>U),a.export(r,"TaskAbortError",()=>eI),a.export(r,"Tuple",()=>R),a.export(r,"addListener",()=>eq),a.export(r,"asyncThunkCreator",()=>ei),a.export(r,"autoBatchEnhancer",()=>W),a.export(r,"buildCreateSlice",()=>el),a.export(r,"clearAllListeners",()=>eZ),a.export(r,"combineSlices",()=>tt),a.export(r,"configureStore",()=>B),a.export(r,"createAction",()=>E),a.export(r,"createActionCreatorInvariantMiddleware",()=>A),a.export(r,"createAsyncThunk",()=>en),a.export(r,"createDraftSafeSelector",()=>S),a.export(r,"createDraftSafeSelectorCreator",()=>T),a.export(r,"createDynamicMiddleware",()=>e1),a.export(r,"createEntityAdapter",()=>eb),a.export(r,"createImmutableStateInvariantMiddleware",()=>L),a.export(r,"createListenerMiddleware",()=>eX),a.export(r,"createNextState",()=>i.produce),a.export(r,"createReducer",()=>V),a.export(r,"createSelector",()=>s.createSelector),a.export(r,"createSelectorCreator",()=>s.createSelectorCreator),a.export(r,"createSerializableStateInvariantMiddleware",()=>j),a.export(r,"createSlice",()=>eu),a.export(r,"current",()=>i.current),a.export(r,"findNonSerializableValue",()=>function e(t,r="",n=C,a,o=[],i){let s;if(!n(t))return{keyPath:r||"<root>",value:t};if("object"!=typeof t||null===t||(null==i?void 0:i.has(t)))return!1;let l=null!=a?a(t):Object.entries(t),u=o.length>0;for(let[t,c]of l){let l=r?r+"."+t:t;if(u){let e=o.some(e=>e instanceof RegExp?e.test(l):l===e);if(e)continue}if(!n(c))return{keyPath:l,value:c};if("object"==typeof c&&(s=e(c,l,n,a,o,i)))return s}return i&&function e(t){if(!Object.isFrozen(t))return!1;for(let r of Object.values(t))if("object"==typeof r&&null!==r&&!e(r))return!1;return!0}(t)&&i.add(t),!1}),a.export(r,"formatProdErrorMessage",()=>tr),a.export(r,"freeze",()=>i.freeze),a.export(r,"isActionCreator",()=>x),a.export(r,"isAllOf",()=>$),a.export(r,"isAnyOf",()=>z),a.export(r,"isAsyncThunkAction",()=>function e(...t){return 0===t.length?e=>q(e,["pending","fulfilled","rejected"]):Z(t)?z(...t.flatMap(e=>[e.pending,e.rejected,e.fulfilled])):e()(t[0])}),a.export(r,"isDraft",()=>i.isDraft),a.export(r,"isFluxStandardAction",()=>I),a.export(r,"isFulfilled",()=>function e(...t){return 0===t.length?e=>q(e,["fulfilled"]):Z(t)?z(...t.map(e=>e.fulfilled)):e()(t[0])}),a.export(r,"isImmutableDefault",()=>D),a.export(r,"isPending",()=>function e(...t){return 0===t.length?e=>q(e,["pending"]):Z(t)?z(...t.map(e=>e.pending)):e()(t[0])}),a.export(r,"isPlain",()=>C),a.export(r,"isRejected",()=>K),a.export(r,"isRejectedWithValue",()=>function e(...t){let r=e=>e&&e.meta&&e.meta.rejectedWithValue;return 0===t.length?$(K(...t),r):Z(t)?$(K(...t),r):e()(t[0])}),a.export(r,"lruMemoize",()=>s.lruMemoize),a.export(r,"miniSerializeError",()=>et),a.export(r,"nanoid",()=>J),a.export(r,"original",()=>i.original),a.export(r,"prepareAutoBatched",()=>N),a.export(r,"removeListener",()=>eK),a.export(r,"unwrapResult",()=>ea),a.export(r,"weakMapMemoize",()=>s.weakMapMemoize);var o=e("redux");a.exportAll(o,r);var i=e("immer"),s=e("reselect"),l=e("redux-thunk");e("d6c2ce6df8bac3b7");var u=Object.defineProperty,c=Object.defineProperties,d=Object.getOwnPropertyDescriptors,f=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,m=(e,t,r)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,g=(e,t)=>{for(var r in t||(t={}))p.call(t,r)&&m(e,r,t[r]);if(f)for(var r of f(t))h.call(t,r)&&m(e,r,t[r]);return e},y=(e,t)=>c(e,d(t)),b=(e,t)=>{var r={};for(var n in e)p.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&f)for(var n of f(e))0>t.indexOf(n)&&h.call(e,n)&&(r[n]=e[n]);return r},_=(e,t,r)=>m(e,"symbol"!=typeof t?t+"":t,r),T=(...e)=>{let t=(0,s.createSelectorCreator)(...e),r=Object.assign((...e)=>{let r=t(...e),n=(e,...t)=>r((0,i.isDraft)(e)?(0,i.current)(e):e,...t);return Object.assign(n,r),n},{withTypes:()=>r});return r},S=T(s.weakMapMemoize),v="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!=arguments.length)return"object"==typeof arguments[0]?o.compose:(0,o.compose).apply(null,arguments)};"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var w=e=>e&&"function"==typeof e.match;function E(e,t){function r(...n){if(t){let r=t(...n);if(!r)throw Error(tr(0));return g(g({type:e,payload:r.payload},"meta"in r&&{meta:r.meta}),"error"in r&&{error:r.error})}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=t=>(0,o.isAction)(t)&&t.type===e,r}function x(e){return"function"==typeof e&&"type"in e&&w(e)}function I(e){return(0,o.isAction)(e)&&Object.keys(e).every(O)}function O(e){return["type","payload","error","meta"].indexOf(e)>-1}function A(e={}){return()=>e=>t=>e(t)}var R=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function k(e){return(0,i.isDraftable)(e)?(0,i.produce)(e,()=>{}):e}function M(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function D(e){return"object"!=typeof e||null==e||Object.isFrozen(e)}function L(e={}){return()=>e=>t=>e(t)}function C(e){let t=typeof e;return null==e||"string"===t||"boolean"===t||"number"===t||Array.isArray(e)||(0,o.isPlainObject)(e)}function j(e={}){return()=>e=>t=>e(t)}var P=()=>function(e){let{thunk:t=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:a=!0}=null!=e?e:{},o=new R;return t&&("boolean"==typeof t?o.push(l.thunk):o.push((0,l.withExtraArgument)(t.extraArgument))),o},U="RTK_autoBatch",N=()=>e=>({payload:e,meta:{[U]:!0}}),Y=e=>t=>{setTimeout(t,e)},W=(e={type:"raf"})=>t=>(...r)=>{let n=t(...r),a=!0,o=!1,i=!1,s=new Set,l="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:Y(10):"callback"===e.type?e.queueNotification:Y(e.timeout),u=()=>{i=!1,o&&(o=!1,s.forEach(e=>e()))};return Object.assign({},n,{subscribe(e){let t=n.subscribe(()=>a&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){var t;try{return(o=!(a=!(null==(t=null==e?void 0:e.meta)?void 0:t[U])))&&!i&&(i=!0,l(u)),n.dispatch(e)}finally{a=!0}}})},F=e=>function(t){let{autoBatch:r=!0}=null!=t?t:{},n=new R(e);return r&&n.push(W("object"==typeof r?r:void 0)),n};function B(e){let t,r;let n=P(),{reducer:a,middleware:i,devTools:s=!0,duplicateMiddlewareCheck:l=!0,preloadedState:u,enhancers:c}=e||{};if("function"==typeof a)t=a;else if((0,o.isPlainObject)(a))t=(0,o.combineReducers)(a);else throw Error(tr(1));r="function"==typeof i?i(n):n();let d=o.compose;s&&(d=v(g({trace:!1},"object"==typeof s&&s)));let f=(0,o.applyMiddleware)(...r),p=F(f),h="function"==typeof c?c(p):p(),m=d(...h);return(0,o.createStore)(t,u,m)}function G(e){let t;let r={},n=[],a={addCase(e,t){let n="string"==typeof e?e:e.type;if(!n)throw Error(tr(28));if(n in r)throw Error(tr(29));return r[n]=t,a},addAsyncThunk:(e,t)=>(t.pending&&(r[e.pending.type]=t.pending),t.rejected&&(r[e.rejected.type]=t.rejected),t.fulfilled&&(r[e.fulfilled.type]=t.fulfilled),t.settled&&n.push({matcher:e.settled,reducer:t.settled}),a),addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),a),addDefaultCase:e=>(t=e,a)};return e(a),[r,n,t]}function V(e,t){let r,[n,a,o]=G(t);if("function"==typeof e)r=()=>k(e());else{let t=k(e);r=()=>t}function s(e=r(),t){let s=[n[t.type],...a.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return 0===s.filter(e=>!!e).length&&(s=[o]),s.reduce((e,r)=>{if(r){if((0,i.isDraft)(e)){let n=r(e,t);return void 0===n?e:n}if((0,i.isDraftable)(e))return(0,i.produce)(e,e=>r(e,t));{let n=r(e,t);if(void 0===n){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}}return e},e)}return s.getInitialState=r,s}var H=(e,t)=>w(e)?e.match(t):e(t);function z(...e){return t=>e.some(e=>H(e,t))}function $(...e){return t=>e.every(e=>H(e,t))}function q(e,t){if(!e||!e.meta)return!1;let r="string"==typeof e.meta.requestId,n=t.indexOf(e.meta.requestStatus)>-1;return r&&n}function Z(e){return"function"==typeof e[0]&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function K(...e){return 0===e.length?e=>q(e,["rejected"]):Z(e)?z(...e.map(e=>e.rejected)):K()(e[0])}var J=(e=21)=>{let t="",r=e;for(;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},X=["name","message","stack","code"],Q=class{constructor(e,t){this.payload=e,this.meta=t,_(this,"_type")}},ee=class{constructor(e,t){this.payload=e,this.meta=t,_(this,"_type")}},et=e=>{if("object"==typeof e&&null!==e){let t={};for(let r of X)"string"==typeof e[r]&&(t[r]=e[r]);return t}return{message:String(e)}},er="External signal was aborted",en=(()=>{function e(e,t,r){let n=E(e+"/fulfilled",(e,t,r,n)=>({payload:e,meta:y(g({},n||{}),{arg:r,requestId:t,requestStatus:"fulfilled"})})),a=E(e+"/pending",(e,t,r)=>({payload:void 0,meta:y(g({},r||{}),{arg:t,requestId:e,requestStatus:"pending"})})),o=E(e+"/rejected",(e,t,n,a,o)=>({payload:a,error:(r&&r.serializeError||et)(e||"Rejected"),meta:y(g({},o||{}),{arg:n,requestId:t,rejectedWithValue:!!a,requestStatus:"rejected",aborted:(null==e?void 0:e.name)==="AbortError",condition:(null==e?void 0:e.name)==="ConditionError"})}));return Object.assign(function(e,{signal:i}={}){return(s,l,u)=>{let c,d;let f=(null==r?void 0:r.idGenerator)?r.idGenerator(e):J(),p=new AbortController;function h(e){d=e,p.abort()}i&&(i.aborted?h(er):i.addEventListener("abort",()=>h(er),{once:!0}));let m=async function(){var i,m,g;let y;try{let o=null==(i=null==r?void 0:r.condition)?void 0:i.call(r,e,{getState:l,extra:u});if(g=o,null!==g&&"object"==typeof g&&"function"==typeof g.then&&(o=await o),!1===o||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let b=new Promise((e,t)=>{c=()=>{t({name:"AbortError",message:d||"Aborted"})},p.signal.addEventListener("abort",c)});s(a(f,e,null==(m=null==r?void 0:r.getPendingMeta)?void 0:m.call(r,{requestId:f,arg:e},{getState:l,extra:u}))),y=await Promise.race([b,Promise.resolve(t(e,{dispatch:s,getState:l,extra:u,requestId:f,signal:p.signal,abort:h,rejectWithValue:(e,t)=>new Q(e,t),fulfillWithValue:(e,t)=>new ee(e,t)})).then(t=>{if(t instanceof Q)throw t;return t instanceof ee?n(t.payload,f,e,t.meta):n(t,f,e)})])}catch(t){y=t instanceof Q?o(null,f,e,t.payload,t.meta):o(t,f,e)}finally{c&&p.signal.removeEventListener("abort",c)}let b=r&&!r.dispatchConditionRejection&&o.match(y)&&y.meta.condition;return b||s(y),y}();return Object.assign(m,{abort:h,requestId:f,arg:e,unwrap:()=>m.then(ea)})}},{pending:a,rejected:o,fulfilled:n,settled:z(o,n),typePrefix:e})}return e.withTypes=()=>e,e})();function ea(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}var eo=Symbol.for("rtk-slice-createasyncthunk"),ei={[eo]:en},es=((n=es||{}).reducer="reducer",n.reducerWithPrepare="reducerWithPrepare",n.asyncThunk="asyncThunk",n);function el({creators:e}={}){var t;let r=null==(t=null==e?void 0:e.asyncThunk)?void 0:t[eo];return function(e){let t;let{name:n,reducerPath:a=n}=e;if(!n)throw Error(tr(11));let o=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return g({_reducerDefinitionType:"asyncThunk",payloadCreator:e},t)}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},i=Object.keys(o),s={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(e,t){let r="string"==typeof e?e:e.type;if(!r)throw Error(tr(12));if(r in s.sliceCaseReducersByType)throw Error(tr(13));return s.sliceCaseReducersByType[r]=t,l},addMatcher:(e,t)=>(s.sliceMatchers.push({matcher:e,reducer:t}),l),exposeAction:(e,t)=>(s.actionCreators[e]=t,l),exposeCaseReducer:(e,t)=>(s.sliceCaseReducersByName[e]=t,l)};function u(){let[t={},r=[],n]="function"==typeof e.extraReducers?G(e.extraReducers):[e.extraReducers],a=g(g({},t),s.sliceCaseReducersByType);return V(e.initialState,e=>{for(let t in a)e.addCase(t,a[t]);for(let t of s.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);n&&e.addDefaultCase(n)})}i.forEach(t=>{let a=o[t],i={reducerName:t,type:`${n}/${t}`,createNotation:"function"==typeof e.reducers};"asyncThunk"===a._reducerDefinitionType?function({type:e,reducerName:t},r,n,a){if(!a)throw Error(tr(18));let{payloadCreator:o,fulfilled:i,pending:s,rejected:l,settled:u,options:c}=r,d=a(e,o,c);n.exposeAction(t,d),i&&n.addCase(d.fulfilled,i),s&&n.addCase(d.pending,s),l&&n.addCase(d.rejected,l),u&&n.addMatcher(d.settled,u),n.exposeCaseReducer(t,{fulfilled:i||ec,pending:s||ec,rejected:l||ec,settled:u||ec})}(i,a,l,r):function({type:e,reducerName:t,createNotation:r},n,a){let o,i;if("reducer"in n){if(r&&"reducerWithPrepare"!==n._reducerDefinitionType)throw Error(tr(17));o=n.reducer,i=n.prepare}else o=n;a.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,i?E(e,i):E(e))}(i,a,l)});let c=e=>e,d=new Map,f=new WeakMap;function p(e,r){return t||(t=u()),t(e,r)}function h(){return t||(t=u()),t.getInitialState()}function m(t,r=!1){function n(e){let a=e[t];return void 0===a&&r&&(a=M(f,n,h)),a}function a(t=c){let n=M(d,r,()=>new WeakMap);return M(n,t,()=>{var n;let a={};for(let[o,i]of Object.entries(null!=(n=e.selectors)?n:{}))a[o]=function(e,t,r,n){function a(o,...i){let s=t(o);return void 0===s&&n&&(s=r()),e(s,...i)}return a.unwrapped=e,a}(i,t,()=>M(f,t,h),r);return a})}return{reducerPath:t,getSelectors:a,get selectors(){return a(n)},selectSlice:n}}let _=y(g({name:n,reducer:p,actions:s.actionCreators,caseReducers:s.sliceCaseReducersByName,getInitialState:h},m(a)),{injectInto(e,t={}){var{reducerPath:r}=t,n=b(t,["reducerPath"]);let o=null!=r?r:a;return e.inject({reducerPath:o,reducer:p},n),g(g({},_),m(o,!0))}});return _}}var eu=el();function ec(){}var ed=i.isDraft;function ef(e){return function(t,r){let n=t=>{I(r)?e(r.payload,t):e(r,t)};return ed(t)?(n(t),t):(0,i.produce)(t,n)}}function ep(e,t){let r=t(e);return r}function eh(e){return Array.isArray(e)||(e=Object.values(e)),e}function em(e){return(0,i.isDraft)(e)?(0,i.current)(e):e}function eg(e,t,r){e=eh(e);let n=em(r.ids),a=new Set(n),o=[],i=new Set([]),s=[];for(let r of e){let e=ep(r,t);a.has(e)||i.has(e)?s.push({id:e,changes:r}):(i.add(e),o.push(r))}return[o,s,n]}function ey(e){function t(t,r){let n=ep(t,e);n in r.entities||(r.ids.push(n),r.entities[n]=t)}function r(e,r){for(let n of e=eh(e))t(n,r)}function n(t,r){let n=ep(t,e);n in r.entities||r.ids.push(n),r.entities[n]=t}function a(e,t){let r=!1;e.forEach(e=>{e in t.entities&&(delete t.entities[e],r=!0)}),r&&(t.ids=t.ids.filter(e=>e in t.entities))}function o(t,r){let n={},a={};t.forEach(e=>{var t;e.id in r.entities&&(a[e.id]={id:e.id,changes:g(g({},null==(t=a[e.id])?void 0:t.changes),e.changes)})}),t=Object.values(a);let o=t.length>0;if(o){let a=t.filter(t=>(function(t,r,n){let a=n.entities[r.id];if(void 0===a)return!1;let o=Object.assign({},a,r.changes),i=ep(o,e),s=i!==r.id;return s&&(t[r.id]=i,delete n.entities[r.id]),n.entities[i]=o,s})(n,t,r)).length>0;a&&(r.ids=Object.values(r.entities).map(t=>ep(t,e)))}}function i(t,n){let[a,i]=eg(t,e,n);r(a,n),o(i,n)}return{removeAll:function(e){let t=ef((t,r)=>e(r));return function(e){return t(e,void 0)}}(function(e){Object.assign(e,{ids:[],entities:{}})}),addOne:ef(t),addMany:ef(r),setOne:ef(n),setMany:ef(function(e,t){for(let r of e=eh(e))n(r,t)}),setAll:ef(function(e,t){e=eh(e),t.ids=[],t.entities={},r(e,t)}),updateOne:ef(function(e,t){return o([e],t)}),updateMany:ef(o),upsertOne:ef(function(e,t){return i([e],t)}),upsertMany:ef(i),removeOne:ef(function(e,t){return a([e],t)}),removeMany:ef(a)}}function eb(e={}){let{selectId:t,sortComparer:r}=g({sortComparer:!1,selectId:e=>e.id},e),n=r?function(e,t){let{removeOne:r,removeMany:n,removeAll:a}=ey(e);function o(t,r,n){t=eh(t);let a=new Set(null!=n?n:em(r.ids)),o=t.filter(t=>!a.has(ep(t,e)));0!==o.length&&u(r,o)}function i(t,r){if(0!==(t=eh(t)).length){for(let n of t)delete r.entities[e(n)];u(r,t)}}function s(t,r){let n=!1,a=!1;for(let o of t){let t=r.entities[o.id];if(!t)continue;n=!0,Object.assign(t,o.changes);let i=e(t);if(o.id!==i){a=!0,delete r.entities[o.id];let e=r.ids.indexOf(o.id);r.ids[e]=i,r.entities[i]=t}}n&&u(r,[],n,a)}function l(t,r){let[n,a,i]=eg(t,e,r);n.length&&o(n,r,i),a.length&&s(a,r)}let u=(r,n,a,o)=>{let i=em(r.entities),s=em(r.ids),l=r.entities,u=s;o&&(u=new Set(s));let c=[];for(let e of u){let t=i[e];t&&c.push(t)}let d=0===c.length;for(let r of n)l[e(r)]=r,d||function(e,t,r){let n=function(e,t,r){let n=0,a=e.length;for(;n<a;){let o=n+a>>>1,i=e[o],s=r(t,i);s>=0?n=o+1:a=o}return n}(e,t,r);e.splice(n,0,t)}(c,r,t);d?c=n.slice().sort(t):a&&c.sort(t);let f=c.map(e);!function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(s,f)&&(r.ids=f)};return{removeOne:r,removeMany:n,removeAll:a,addOne:ef(function(e,t){return o([e],t)}),updateOne:ef(function(e,t){return s([e],t)}),upsertOne:ef(function(e,t){return l([e],t)}),setOne:ef(function(e,t){return i([e],t)}),setMany:ef(i),setAll:ef(function(e,t){e=eh(e),t.entities={},t.ids=[],o(e,t,[])}),addMany:ef(o),updateMany:ef(s),upsertMany:ef(l)}}(t,r):ey(t);return g(g(g({selectId:t,sortComparer:r},{getInitialState:function(e={},t){let r=Object.assign({ids:[],entities:{}},e);return t?n.setAll(r,t):r}}),{getSelectors:function(e,t={}){let{createSelector:r=S}=t,n=e=>e.ids,a=e=>e.entities,o=r(n,a,(e,t)=>e.map(e=>t[e])),i=(e,t)=>t,s=(e,t)=>e[t],l=r(n,e=>e.length);if(!e)return{selectIds:n,selectEntities:a,selectAll:o,selectTotal:l,selectById:r(a,i,s)};let u=r(e,a);return{selectIds:r(e,n),selectEntities:u,selectAll:r(e,o),selectTotal:r(e,l),selectById:r(u,i,s)}}}),n)}var e_="listener",eT="completed",eS="cancelled",ev=`task-${eS}`,ew=`task-${eT}`,eE=`${e_}-${eS}`,ex=`${e_}-${eT}`,eI=class{constructor(e){this.code=e,_(this,"name","TaskAbortError"),_(this,"message"),this.message=`task ${eS} (reason: ${e})`}},eO=(e,t)=>{if("function"!=typeof e)throw TypeError(tr(32))},eA=()=>{},eR=(e,t=eA)=>(e.catch(t),e),ek=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),eM=(e,t)=>{let r=e.signal;r.aborted||("reason"in r||Object.defineProperty(r,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},eD=e=>{if(e.aborted){let{reason:t}=e;throw new eI(t)}};function eL(e,t){let r=eA;return new Promise((n,a)=>{let o=()=>a(new eI(e.reason));if(e.aborted){o();return}r=ek(e,o),t.finally(()=>r()).then(n,a)}).finally(()=>{r=eA})}var eC=async(e,t)=>{try{await Promise.resolve();let t=await e();return{status:"ok",value:t}}catch(e){return{status:e instanceof eI?"cancelled":"rejected",error:e}}finally{null==t||t()}},ej=e=>t=>eR(eL(e,t).then(t=>(eD(e),t))),eP=e=>{let t=ej(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:eU}=Object,eN={},eY="listenerMiddleware",eW=(e,t)=>{let r=t=>ek(e,()=>eM(t,e.reason));return(n,a)=>{eO(n,"taskExecutor");let o=new AbortController;r(o);let i=eC(async()=>{eD(e),eD(o.signal);let t=await n({pause:ej(o.signal),delay:eP(o.signal),signal:o.signal});return eD(o.signal),t},()=>eM(o,ew));return(null==a?void 0:a.autoJoin)&&t.push(i.catch(eA)),{result:ej(e)(i),cancel(){eM(o,ev)}}}},eF=(e,t)=>{let r=async(r,n)=>{eD(t);let a=()=>{},o=new Promise((t,n)=>{let o=e({predicate:r,effect:(e,r)=>{r.unsubscribe(),t([e,r.getState(),r.getOriginalState()])}});a=()=>{o(),n()}}),i=[o];null!=n&&i.push(new Promise(e=>setTimeout(e,n,null)));try{let e=await eL(t,Promise.race(i));return eD(t),e}finally{a()}};return(e,t)=>eR(r(e,t))},eB=e=>{let{type:t,actionCreator:r,matcher:n,predicate:a,effect:o}=e;if(t)a=E(t).match;else if(r)t=r.type,a=r.match;else if(n)a=n;else if(a);else throw Error(tr(21));return eO(o,"options.listener"),{predicate:a,type:t,effect:o}},eG=eU(e=>{let{type:t,predicate:r,effect:n}=eB(e),a={id:J(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw Error(tr(22))}};return a},{withTypes:()=>eG}),eV=(e,t)=>{let{type:r,effect:n,predicate:a}=eB(t);return Array.from(e.values()).find(e=>{let t="string"==typeof r?e.type===r:e.predicate===a;return t&&e.effect===n})},eH=e=>{e.pending.forEach(e=>{eM(e,eE)})},ez=e=>()=>{e.forEach(eH),e.clear()},e$=(e,t,r)=>{try{e(t,r)}catch(e){setTimeout(()=>{throw e},0)}},eq=eU(E(`${eY}/add`),{withTypes:()=>eq}),eZ=E(`${eY}/removeAll`),eK=eU(E(`${eY}/remove`),{withTypes:()=>eK}),eJ=(...e)=>{console.error(`${eY}/error`,...e)},eX=(e={})=>{let t=new Map,{extra:r,onError:n=eJ}=e;eO(n,"onError");let a=e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),(null==t?void 0:t.cancelActive)&&eH(e)}),i=e=>{var r;let n=null!=(r=eV(t,e))?r:eG(e);return a(n)};eU(i,{withTypes:()=>i});let s=e=>{let r=eV(t,e);return r&&(r.unsubscribe(),e.cancelActive&&eH(r)),!!r};eU(s,{withTypes:()=>s});let l=async(e,a,o,s)=>{let l=new AbortController,u=eF(i,l.signal),c=[];try{e.pending.add(l),await Promise.resolve(e.effect(a,eU({},o,{getOriginalState:s,condition:(e,t)=>u(e,t).then(Boolean),take:u,delay:eP(l.signal),pause:ej(l.signal),extra:r,signal:l.signal,fork:eW(l.signal,c),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,r)=>{e!==l&&(eM(e,eE),r.delete(e))})},cancel:()=>{eM(l,eE),e.pending.delete(l)},throwIfCancelled:()=>{eD(l.signal)}})))}catch(e){e instanceof eI||e$(n,e,{raisedBy:"effect"})}finally{await Promise.all(c),eM(l,ex),e.pending.delete(l)}},u=ez(t);return{middleware:e=>r=>a=>{let c;if(!(0,o.isAction)(a))return r(a);if(eq.match(a))return i(a.payload);if(eZ.match(a)){u();return}if(eK.match(a))return s(a.payload);let d=e.getState(),f=()=>{if(d===eN)throw Error(tr(23));return d};try{if(c=r(a),t.size>0){let r=e.getState(),o=Array.from(t.values());for(let t of o){let o=!1;try{o=t.predicate(a,r,d)}catch(e){o=!1,e$(n,e,{raisedBy:"predicate"})}o&&l(t,a,e,f)}}}finally{d=eN}return c},startListening:i,stopListening:s,clearListeners:u}},eQ=e=>({middleware:e,applied:new Map}),e0=e=>t=>{var r;return(null==(r=null==t?void 0:t.meta)?void 0:r.instanceId)===e},e1=()=>{let e=J(),t=new Map,r=Object.assign(E("dynamicMiddleware/add",(...t)=>({payload:t,meta:{instanceId:e}})),{withTypes:()=>r}),n=Object.assign(function(...e){e.forEach(e=>{M(t,e,eQ)})},{withTypes:()=>n}),a=e=>{let r=Array.from(t.values()).map(t=>M(t.applied,e,t.middleware));return(0,o.compose)(...r)},i=$(r,e0(e));return{middleware:e=>t=>r=>i(r)?(n(...r.payload),e.dispatch):a(e)(t)(r),addMiddleware:n,withMiddleware:r,instanceId:e}},e2=e=>"reducerPath"in e&&"string"==typeof e.reducerPath,e3=e=>e.flatMap(e=>e2(e)?[[e.reducerPath,e.reducer]]:Object.entries(e)),e4=Symbol.for("rtk-state-proxy-original"),e6=e=>!!e&&!!e[e4],e5=new WeakMap,e8=(e,t,r)=>M(e5,e,()=>new Proxy(e,{get:(e,n,a)=>{if(n===e4)return e;let o=Reflect.get(e,n,a);if(void 0===o){let e=r[n];if(void 0!==e)return e;let a=t[n];if(a){let e=a(void 0,{type:J()});if(void 0===e)throw Error(tr(24));return r[n]=e,e}}return o}})),e9=e=>{if(!e6(e))throw Error(tr(25));return e[e4]},e7={},te=(e=e7)=>e;function tt(...e){let t=Object.fromEntries(e3(e)),r=()=>Object.keys(t).length?(0,o.combineReducers)(t):te,n=r();function a(e,t){return n(e,t)}a.withLazyLoadedSlices=()=>a;let i={},s=Object.assign(function(e,r){return function(n,...a){return e(e8(r?r(n,...a):n,t,i),...a)}},{original:e9});return Object.assign(a,{inject:(e,o={})=>{let{reducerPath:s,reducer:l}=e,u=t[s];return!o.overrideExisting&&u&&u!==l||(o.overrideExisting&&u!==l&&delete i[s],t[s]=l,n=r()),a},selector:s})}function tr(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}},{d6c2ce6df8bac3b7:"jDYfS",redux:"lPWlq",immer:"fCEsm",reselect:"ipfMj","redux-thunk":"asbbZ","@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],jDYfS:[function(e,t,r){var n,a,o,i,s=Object.create,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,d=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,p=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of c(t))f.call(e,a)||a===r||l(e,a,{get:()=>t[a],enumerable:!(n=u(t,a))||n.enumerable});return e},h=(e,t,r)=>(r=null!=e?s(d(e)):{},p(!t&&e&&e.__esModule?r:l(r,"default",{value:e,enumerable:!0}),e)),m=(n=(e,t)=>{var r,n,a=t.exports={};function o(){throw Error("setTimeout has not been defined")}function i(){throw Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var l,u=[],c=!1,d=-1;function f(){c&&l&&(c=!1,l.length?u=l.concat(u):d=-1,u.length&&p())}function p(){if(!c){var e=s(f);c=!0;for(var t=u.length;t;){for(l=u,u=[];++d<t;)l&&l[d].run();d=-1,t=u.length}l=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}a.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new h(e,t)),1!==u.length||c||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=m,a.addListener=m,a.once=m,a.off=m,a.removeListener=m,a.removeAllListeners=m,a.emit=m,a.prependListener=m,a.prependOnceListener=m,a.listeners=function(e){return[]},a.binding=function(e){throw Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw Error("process.chdir is not supported")},a.umask=function(){return 0}},()=>(a||n((a={exports:{}}).exports,a),a.exports)),g={};((e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})})(g,{default:()=>b}),t.exports=p(l({},"__esModule",{value:!0}),g);var y=h(m());o=h(m()),i=t.exports,p(g,o,"default"),i&&p(i,o,"default");var b=y.default},{}],lPWlq:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}n.defineInteropFlag(r),n.export(r,"__DO_NOT_USE__ActionTypes",()=>s),n.export(r,"applyMiddleware",()=>m),n.export(r,"bindActionCreators",()=>p),n.export(r,"combineReducers",()=>d),n.export(r,"compose",()=>h),n.export(r,"createStore",()=>u),n.export(r,"isAction",()=>g),n.export(r,"isPlainObject",()=>l),n.export(r,"legacy_createStore",()=>c);var o="function"==typeof Symbol&&Symbol.observable||"@@observable",i=()=>Math.random().toString(36).substring(7).split("").join("."),s={INIT:`@@redux/INIT${i()}`,REPLACE:`@@redux/REPLACE${i()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${i()}`};function l(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function u(e,t,r){if("function"!=typeof e)throw Error(a(2));if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw Error(a(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw Error(a(1));return r(u)(e,t)}let n=e,i=t,c=new Map,d=c,f=0,p=!1;function h(){d===c&&(d=new Map,c.forEach((e,t)=>{d.set(t,e)}))}function m(){if(p)throw Error(a(3));return i}function g(e){if("function"!=typeof e)throw Error(a(4));if(p)throw Error(a(5));let t=!0;h();let r=f++;return d.set(r,e),function(){if(t){if(p)throw Error(a(6));t=!1,h(),d.delete(r),c=null}}}function y(e){if(!l(e))throw Error(a(7));if(void 0===e.type)throw Error(a(8));if("string"!=typeof e.type)throw Error(a(17));if(p)throw Error(a(9));try{p=!0,i=n(i,e)}finally{p=!1}let t=c=d;return t.forEach(e=>{e()}),e}return y({type:s.INIT}),{dispatch:y,subscribe:g,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw Error(a(10));n=e,y({type:s.REPLACE})},[o]:function(){return{subscribe(e){if("object"!=typeof e||null===e)throw Error(a(11));function t(){e.next&&e.next(m())}t();let r=g(t);return{unsubscribe:r}},[o](){return this}}}}}function c(e,t,r){return u(e,t,r)}function d(e){let t;let r=Object.keys(e),n={};for(let t=0;t<r.length;t++){let a=r[t];"function"==typeof e[a]&&(n[a]=e[a])}let o=Object.keys(n);try{!function(e){Object.keys(e).forEach(t=>{let r=e[t],n=r(void 0,{type:s.INIT});if(void 0===n)throw Error(a(12));if(void 0===r(void 0,{type:s.PROBE_UNKNOWN_ACTION()}))throw Error(a(13))})}(n)}catch(e){t=e}return function(e={},r){if(t)throw t;let i=!1,s={};for(let t=0;t<o.length;t++){let l=o[t],u=n[l],c=e[l],d=u(c,r);if(void 0===d)throw r&&r.type,Error(a(14));s[l]=d,i=i||d!==c}return(i=i||o.length!==Object.keys(e).length)?s:e}}function f(e,t){return function(...r){return t(e.apply(this,r))}}function p(e,t){if("function"==typeof e)return f(e,t);if("object"!=typeof e||null===e)throw Error(a(16));let r={};for(let n in e){let a=e[n];"function"==typeof a&&(r[n]=f(a,t))}return r}function h(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function m(...e){return t=>(r,n)=>{let o=t(r,n),i=()=>{throw Error(a(15))},s={getState:o.getState,dispatch:(e,...t)=>i(e,...t)},l=e.map(e=>e(s));return i=h(...l)(o.dispatch),{...o,dispatch:i}}}function g(e){return l(e)&&"type"in e&&"string"==typeof e.type}},{"@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],fCEsm:[function(e,t,r){var n,a=e("@parcel/transformer-js/src/esmodule-helpers.js");a.defineInteropFlag(r),a.export(r,"Immer",()=>K),a.export(r,"applyPatches",()=>ei),a.export(r,"castDraft",()=>eu),a.export(r,"castImmutable",()=>ec),a.export(r,"createDraft",()=>es),a.export(r,"current",()=>X),a.export(r,"enableMapSet",()=>ee),a.export(r,"enablePatches",()=>Q),a.export(r,"finishDraft",()=>el),a.export(r,"freeze",()=>k),a.export(r,"immerable",()=>f),a.export(r,"isDraft",()=>g),a.export(r,"isDraftable",()=>y),a.export(r,"nothing",()=>d),a.export(r,"original",()=>T),a.export(r,"produce",()=>er),a.export(r,"produceWithPatches",()=>en),a.export(r,"setAutoFreeze",()=>ea),a.export(r,"setUseStrictShallowCopy",()=>eo);var o=Object.defineProperty,i=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,u=(e,t,r)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,c=(e,t)=>{for(var r in t||(t={}))s.call(t,r)&&u(e,r,t[r]);if(i)for(var r of i(t))l.call(t,r)&&u(e,r,t[r]);return e},d=Symbol.for("immer-nothing"),f=Symbol.for("immer-draftable"),p=Symbol.for("immer-state");function h(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var m=Object.getPrototypeOf;function g(e){return!!e&&!!e[p]}function y(e){var t;return!!e&&(_(e)||Array.isArray(e)||!!e[f]||!!(null==(t=e.constructor)?void 0:t[f])||I(e)||O(e))}var b=Object.prototype.constructor.toString();function _(e){if(!e||"object"!=typeof e)return!1;let t=m(e);if(null===t)return!0;let r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===b}function T(e){return g(e)||h(15,e),e[p].base_}function S(e,t){0===v(e)?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function v(e){let t=e[p];return t?t.type_:Array.isArray(e)?1:I(e)?2:O(e)?3:0}function w(e,t){return 2===v(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function E(e,t){return 2===v(e)?e.get(t):e[t]}function x(e,t,r){let n=v(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function I(e){return e instanceof Map}function O(e){return e instanceof Set}function A(e){return e.copy_||e.base_}function R(e,t){if(I(e))return new Map(e);if(O(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let r=_(e);if(!0!==t&&("class_only"!==t||r)){let t=m(e);if(null!==t&&r)return c({},e);let n=Object.create(t);return Object.assign(n,e)}{let t=Object.getOwnPropertyDescriptors(e);delete t[p];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){let a=r[n],o=t[a];!1===o.writable&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[a]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[a]})}return Object.create(m(e),t)}}function k(e,t=!1){return D(e)||g(e)||!y(e)||(v(e)>1&&Object.defineProperties(e,{set:{value:M},add:{value:M},clear:{value:M},delete:{value:M}}),Object.freeze(e),t&&Object.values(e).forEach(e=>k(e,!0))),e}function M(){h(2)}function D(e){return Object.isFrozen(e)}var L={};function C(e){let t=L[e];return t||h(0,e),t}function j(e,t){t&&(C("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function P(e){U(e),e.drafts_.forEach(Y),e.drafts_=null}function U(e){e===n&&(n=e.parent_)}function N(e){return n={drafts_:[],parent_:n,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Y(e){let t=e[p];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function W(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0],n=void 0!==e&&e!==r;return n?(r[p].modified_&&(P(t),h(4)),y(e)&&(e=F(t,e),t.parent_||G(t,e)),t.patches_&&C("Patches").generateReplacementPatches_(r[p].base_,e,t.patches_,t.inversePatches_)):e=F(t,r,[]),P(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==d?e:void 0}function F(e,t,r){if(D(t))return t;let n=t[p];if(!n)return S(t,(a,o)=>B(e,n,t,a,o,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return G(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;let t=n.copy_,a=t,o=!1;3===n.type_&&(a=new Set(t),t.clear(),o=!0),S(a,(a,i)=>B(e,n,t,a,i,r,o)),G(e,t,!1),r&&e.patches_&&C("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function B(e,t,r,n,a,o,i){if(g(a)){let i=o&&t&&3!==t.type_&&!w(t.assigned_,n)?o.concat(n):void 0,s=F(e,a,i);if(x(r,n,s),!g(s))return;e.canAutoFreeze_=!1}else i&&r.add(a);if(y(a)&&!D(a)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;F(e,a),(!t||!t.scope_.parent_)&&"symbol"!=typeof n&&(I(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&G(e,a)}}function G(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&k(t,r)}var V={get(e,t){if(t===p)return e;let r=A(e);if(!w(r,t))return function(e,t,r){var n;let a=$(t,r);return a?"value"in a?a.value:null==(n=a.get)?void 0:n.call(e.draft_):void 0}(e,r,t);let n=r[t];return e.finalized_||!y(n)?n:n===z(e.base_,t)?(Z(e),e.copy_[t]=J(n,e)):n},has:(e,t)=>t in A(e),ownKeys:e=>Reflect.ownKeys(A(e)),set(e,t,r){let n=$(A(e),t);if(null==n?void 0:n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let n=z(A(e),t),a=null==n?void 0:n[p];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if((r===n?0!==r||1/r==1/n:r!=r&&n!=n)&&(void 0!==r||w(e.base_,t)))return!0;Z(e),q(e)}return!!(e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=r,e.assigned_[t]=!0,!0)},deleteProperty:(e,t)=>(void 0!==z(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,Z(e),q(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let r=A(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){h(11)},getPrototypeOf:e=>m(e.base_),setPrototypeOf(){h(12)}},H={};function z(e,t){let r=e[p],n=r?A(r):e;return n[t]}function $(e,t){if(!(t in e))return;let r=m(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=m(r)}}function q(e){!e.modified_&&(e.modified_=!0,e.parent_&&q(e.parent_))}function Z(e){e.copy_||(e.copy_=R(e.base_,e.scope_.immer_.useStrictShallowCopy_))}S(V,(e,t)=>{H[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),H.deleteProperty=function(e,t){return H.set.call(this,e,t,void 0)},H.set=function(e,t,r){return V.set.call(this,e[0],t,r,e[0])};var K=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,r)=>{let n;if("function"==typeof e&&"function"!=typeof t){let r=t;t=e;let n=this;return function(e=r,...a){return n.produce(e,e=>t.call(this,e,...a))}}if("function"!=typeof t&&h(6),void 0!==r&&"function"!=typeof r&&h(7),y(e)){let a=N(this),o=J(e,void 0),i=!0;try{n=t(o),i=!1}finally{i?P(a):U(a)}return j(a,r),W(n,a)}if(e&&"object"==typeof e)h(1,e);else{if(void 0===(n=t(e))&&(n=e),n===d&&(n=void 0),this.autoFreeze_&&k(n,!0),r){let t=[],a=[];C("Patches").generateReplacementPatches_(e,n,t,a),r(t,a)}return n}},this.produceWithPatches=(e,t)=>{let r,n;if("function"==typeof e)return(t,...r)=>this.produceWithPatches(t,t=>e(t,...r));let a=this.produce(e,t,(e,t)=>{r=e,n=t});return[a,r,n]},"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof(null==e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){y(e)||h(8),g(e)&&(e=X(e));let t=N(this),r=J(e,void 0);return r[p].isManual_=!0,U(t),r}finishDraft(e,t){let r=e&&e[p];r&&r.isManual_||h(9);let{scope_:n}=r;return j(n,t),W(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));let n=C("Patches").applyPatches_;return g(e)?n(e,t):this.produce(e,e=>n(e,t))}};function J(e,t){let r=I(e)?C("MapSet").proxyMap_(e,t):O(e)?C("MapSet").proxySet_(e,t):function(e,t){let r=Array.isArray(e),a={type_:r?1:0,scope_:t?t.scope_:n,modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},o=a,i=V;r&&(o=[a],i=H);let{revoke:s,proxy:l}=Proxy.revocable(o,i);return a.draft_=l,a.revoke_=s,l}(e,t),a=t?t.scope_:n;return a.drafts_.push(r),r}function X(e){return g(e)||h(10,e),function e(t){let r;if(!y(t)||D(t))return t;let n=t[p];if(n){if(!n.modified_)return n.base_;n.finalized_=!0,r=R(t,n.scope_.immer_.useStrictShallowCopy_)}else r=R(t,!0);return S(r,(t,n)=>{x(r,t,e(n))}),n&&(n.finalized_=!1),r}(e)}function Q(){var e;let t="replace",r="remove";function n(e){if(!y(e))return e;if(Array.isArray(e))return e.map(n);if(I(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,n(t)]));if(O(e))return new Set(Array.from(e).map(n));let t=Object.create(m(e));for(let r in e)t[r]=n(e[r]);return w(e,f)&&(t[f]=e[f]),t}function a(e){return g(e)?n(e):e}L[e="Patches"]||(L[e]={applyPatches_:function(e,a){return a.forEach(a=>{let{path:o,op:i}=a,s=e;for(let e=0;e<o.length-1;e++){let t=v(s),r=o[e];"string"!=typeof r&&"number"!=typeof r&&(r=""+r),(0===t||1===t)&&("__proto__"===r||"constructor"===r)&&h(19),"function"==typeof s&&"prototype"===r&&h(19),"object"!=typeof(s=E(s,r))&&h(18,o.join("/"))}let l=v(s),u=n(a.value),c=o[o.length-1];switch(i){case t:switch(l){case 2:return s.set(c,u);case 3:h(16);default:return s[c]=u}case"add":switch(l){case 1:return"-"===c?s.push(u):s.splice(c,0,u);case 2:return s.set(c,u);case 3:return s.add(u);default:return s[c]=u}case r:switch(l){case 1:return s.splice(c,1);case 2:return s.delete(c);case 3:return s.delete(a.value);default:return delete s[c]}default:h(17,i)}}),e},generatePatches_:function(e,n,o,i){switch(e.type_){case 0:case 2:return function(e,n,o,i){let{base_:s,copy_:l}=e;S(e.assigned_,(e,u)=>{let c=E(s,e),d=E(l,e),f=u?w(s,e)?t:"add":r;if(c===d&&f===t)return;let p=n.concat(e);o.push(f===r?{op:f,path:p}:{op:f,path:p,value:d}),i.push("add"===f?{op:r,path:p}:f===r?{op:"add",path:p,value:a(c)}:{op:t,path:p,value:a(c)})})}(e,n,o,i);case 1:return function(e,n,o,i){let{base_:s,assigned_:l}=e,u=e.copy_;u.length<s.length&&([s,u]=[u,s],[o,i]=[i,o]);for(let e=0;e<s.length;e++)if(l[e]&&u[e]!==s[e]){let r=n.concat([e]);o.push({op:t,path:r,value:a(u[e])}),i.push({op:t,path:r,value:a(s[e])})}for(let e=s.length;e<u.length;e++){let t=n.concat([e]);o.push({op:"add",path:t,value:a(u[e])})}for(let e=u.length-1;s.length<=e;--e){let t=n.concat([e]);i.push({op:r,path:t})}}(e,n,o,i);case 3:return function(e,t,n,a){let{base_:o,copy_:i}=e,s=0;o.forEach(e=>{if(!i.has(e)){let o=t.concat([s]);n.push({op:r,path:o,value:e}),a.unshift({op:"add",path:o,value:e})}s++}),s=0,i.forEach(e=>{if(!o.has(e)){let o=t.concat([s]);n.push({op:"add",path:o,value:e}),a.unshift({op:r,path:o,value:e})}s++})}(e,n,o,i)}},generateReplacementPatches_:function(e,r,n,a){n.push({op:t,path:[],value:r===d?void 0:r}),a.push({op:t,path:[],value:e})}})}function ee(){var e;class t extends Map{constructor(e,t){super(),this[p]={type_:2,parent_:t,scope_:t?t.scope_:n,modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:e,draft_:this,isManual_:!1,revoked_:!1}}get size(){return A(this[p]).size}has(e){return A(this[p]).has(e)}set(e,t){let n=this[p];return i(n),A(n).has(e)&&A(n).get(e)===t||(r(n),q(n),n.assigned_.set(e,!0),n.copy_.set(e,t),n.assigned_.set(e,!0)),this}delete(e){if(!this.has(e))return!1;let t=this[p];return i(t),r(t),q(t),t.base_.has(e)?t.assigned_.set(e,!1):t.assigned_.delete(e),t.copy_.delete(e),!0}clear(){let e=this[p];i(e),A(e).size&&(r(e),q(e),e.assigned_=new Map,S(e.base_,t=>{e.assigned_.set(t,!1)}),e.copy_.clear())}forEach(e,t){let r=this[p];A(r).forEach((r,n,a)=>{e.call(t,this.get(n),n,this)})}get(e){let t=this[p];i(t);let n=A(t).get(e);if(t.finalized_||!y(n)||n!==t.base_.get(e))return n;let a=J(n,t);return r(t),t.copy_.set(e,a),a}keys(){return A(this[p]).keys()}values(){let e=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{let t=e.next();if(t.done)return t;let r=this.get(t.value);return{done:!1,value:r}}}}entries(){let e=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{let t=e.next();if(t.done)return t;let r=this.get(t.value);return{done:!1,value:[t.value,r]}}}}[Symbol.iterator](){return this.entries()}}function r(e){e.copy_||(e.assigned_=new Map,e.copy_=new Map(e.base_))}class a extends Set{constructor(e,t){super(),this[p]={type_:3,parent_:t,scope_:t?t.scope_:n,modified_:!1,finalized_:!1,copy_:void 0,base_:e,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return A(this[p]).size}has(e){let t=this[p];return(i(t),t.copy_)?!!(t.copy_.has(e)||t.drafts_.has(e)&&t.copy_.has(t.drafts_.get(e))):t.base_.has(e)}add(e){let t=this[p];return i(t),this.has(e)||(o(t),q(t),t.copy_.add(e)),this}delete(e){if(!this.has(e))return!1;let t=this[p];return i(t),o(t),q(t),t.copy_.delete(e)||!!t.drafts_.has(e)&&t.copy_.delete(t.drafts_.get(e))}clear(){let e=this[p];i(e),A(e).size&&(o(e),q(e),e.copy_.clear())}values(){let e=this[p];return i(e),o(e),e.copy_.values()}entries(){let e=this[p];return i(e),o(e),e.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(e,t){let r=this.values(),n=r.next();for(;!n.done;)e.call(t,n.value,n.value,this),n=r.next()}}function o(e){e.copy_||(e.copy_=new Set,e.base_.forEach(t=>{if(y(t)){let r=J(t,e);e.drafts_.set(t,r),e.copy_.add(r)}else e.copy_.add(t)}))}function i(e){e.revoked_&&h(3,JSON.stringify(A(e)))}L[e="MapSet"]||(L[e]={proxyMap_:function(e,r){return new t(e,r)},proxySet_:function(e,t){return new a(e,t)}})}var et=new K,er=et.produce,en=et.produceWithPatches.bind(et),ea=et.setAutoFreeze.bind(et),eo=et.setUseStrictShallowCopy.bind(et),ei=et.applyPatches.bind(et),es=et.createDraft.bind(et),el=et.finishDraft.bind(et);function eu(e){return e}function ec(e){return e}},{"@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],ipfMj:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"createSelector",()=>B),n.export(r,"createSelectorCreator",()=>F),n.export(r,"createStructuredSelector",()=>G),n.export(r,"lruMemoize",()=>P),n.export(r,"referenceEqualityCheck",()=>C),n.export(r,"setGlobalDevModeChecks",()=>f),n.export(r,"unstable_autotrackMemoize",()=>U),n.export(r,"weakMapMemoize",()=>W);var a=Object.defineProperty,o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable,l=(e,t,r)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,u=(e,t)=>{for(var r in t||(t={}))i.call(t,r)&&l(e,r,t[r]);if(o)for(var r of o(t))s.call(t,r)&&l(e,r,t[r]);return e},c=(e,t,r)=>(l(e,"symbol"!=typeof t?t+"":t,r),r),d={inputStabilityCheck:"once",identityFunctionCheck:"once"},f=e=>{Object.assign(d,e)},p=Symbol("NOT_FOUND");function h(e,t=`expected a function, instead received ${typeof e}`){if("function"!=typeof e)throw TypeError(t)}var m=e=>Array.isArray(e)?e:[e],g=0,y=null,b=class{constructor(e,t=_){c(this,"revision",g),c(this,"_value"),c(this,"_lastValue"),c(this,"_isEqual",_),this._value=this._lastValue=e,this._isEqual=t}get value(){return null==y||y.add(this),this._value}set value(e){this.value!==e&&(this._value=e,this.revision=++g)}};function _(e,t){return e===t}var T=class{constructor(e){c(this,"_cachedValue"),c(this,"_cachedRevision",-1),c(this,"_deps",[]),c(this,"hits",0),c(this,"fn"),this.fn=e}clear(){this._cachedValue=void 0,this._cachedRevision=-1,this._deps=[],this.hits=0}get value(){if(this.revision>this._cachedRevision){let{fn:e}=this,t=new Set,r=y;y=t,this._cachedValue=e(),y=r,this.hits++,this._deps=Array.from(t),this._cachedRevision=this.revision}return null==y||y.add(this),this._cachedValue}get revision(){return Math.max(...this._deps.map(e=>e.revision),0)}};function S(e){return e instanceof b||console.warn("Not a valid cell! ",e),e.value}var v=(e,t)=>!1;function w(){return function(e,t=_){return new b(null,t)}(0,v)}function E(e,t){!function(e,t){if(!(e instanceof b))throw TypeError("setValue must be passed a tracked store created with `createStorage`.");e.value=e._lastValue=t}(e,t)}var x=e=>{let t=e.collectionTag;null===t&&(t=e.collectionTag=w()),S(t)},I=e=>{let t=e.collectionTag;null!==t&&E(t,null)};Symbol();var O=0,A=Object.getPrototypeOf({}),R=class{constructor(e){this.value=e,c(this,"proxy",new Proxy(this,k)),c(this,"tag",w()),c(this,"tags",{}),c(this,"children",{}),c(this,"collectionTag",null),c(this,"id",O++),this.value=e,this.tag.value=e}},k={get(e,t){let r=function(){let{value:r}=e,n=Reflect.get(r,t);if("symbol"==typeof t||t in A)return n;if("object"==typeof n&&null!==n){let r=e.children[t];return void 0===r&&(r=e.children[t]=L(n)),r.tag&&S(r.tag),r.proxy}{let r=e.tags[t];return void 0===r&&((r=e.tags[t]=w()).value=n),S(r),n}}();return r},ownKeys:e=>(x(e),Reflect.ownKeys(e.value)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e.value,t),has:(e,t)=>Reflect.has(e.value,t)},M=class{constructor(e){this.value=e,c(this,"proxy",new Proxy([this],D)),c(this,"tag",w()),c(this,"tags",{}),c(this,"children",{}),c(this,"collectionTag",null),c(this,"id",O++),this.value=e,this.tag.value=e}},D={get:([e],t)=>("length"===t&&x(e),k.get(e,t)),ownKeys:([e])=>k.ownKeys(e),getOwnPropertyDescriptor:([e],t)=>k.getOwnPropertyDescriptor(e,t),has:([e],t)=>k.has(e,t)};function L(e){return Array.isArray(e)?new M(e):new R(e)}var C=(e,t)=>e===t;function j(e){return function(t,r){if(null===t||null===r||t.length!==r.length)return!1;let{length:n}=t;for(let a=0;a<n;a++)if(!e(t[a],r[a]))return!1;return!0}}function P(e,t){let r;let{equalityCheck:n=C,maxSize:a=1,resultEqualityCheck:o}="object"==typeof t?t:{equalityCheck:t},i=j(n),s=0,l=a<=1?{get:e=>r&&i(r.key,e)?r.value:p,put(e,t){r={key:e,value:t}},getEntries:()=>r?[r]:[],clear(){r=void 0}}:function(e,t){let r=[];function n(e){let n=r.findIndex(r=>t(e,r.key));if(n>-1){let e=r[n];return n>0&&(r.splice(n,1),r.unshift(e)),e.value}return p}return{get:n,put:function(t,a){n(t)===p&&(r.unshift({key:t,value:a}),r.length>e&&r.pop())},getEntries:function(){return r},clear:function(){r=[]}}}(a,i);function u(){let t=l.get(arguments);if(t===p){if(t=e.apply(null,arguments),s++,o){let e=l.getEntries(),r=e.find(e=>o(e.value,t));r&&(t=r.value,0!==s&&s--)}l.put(arguments,t)}return t}return u.clearCache=()=>{l.clear(),u.resetResultsCount()},u.resultsCount=()=>s,u.resetResultsCount=()=>{s=0},u}function U(e){var t;let r=L([]),n=null,a=j(C),o=(h(t=()=>{let t=e.apply(null,r.proxy);return t},"the first parameter to `createCache` must be a function"),new T(t));function i(){return a(n,arguments)||(function e(t,r){let{value:n,tags:a,children:o}=t;if(t.value=r,Array.isArray(n)&&Array.isArray(r)&&n.length!==r.length)I(t);else if(n!==r){let e=0,a=0,o=!1;for(let t in n)e++;for(let e in r)if(a++,!(e in n)){o=!0;break}let i=o||e!==a;i&&I(t)}for(let e in a){let o=n[e],i=r[e];o!==i&&(I(t),E(a[e],i)),"object"==typeof i&&null!==i&&delete a[e]}for(let t in o){let n=o[t],a=r[t],i=n.value;i!==a&&("object"==typeof a&&null!==a?e(n,a):(function e(t){for(let e in t.tag&&E(t.tag,null),I(t),t.tags)E(t.tags[e],null);for(let r in t.children)e(t.children[r])}(n),delete o[t]))}}(r,arguments),n=arguments),o.value}return i.clearCache=()=>o.clear(),i}var N="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function Y(){return{s:0,v:void 0,o:null,p:null}}function W(e,t={}){let r,n=Y(),{resultEqualityCheck:a}=t,o=0;function i(){var t,i;let s;let l=n,{length:u}=arguments;for(let e=0;e<u;e++){let t=arguments[e];if("function"==typeof t||"object"==typeof t&&null!==t){let e=l.o;null===e&&(l.o=e=new WeakMap);let r=e.get(t);void 0===r?(l=Y(),e.set(t,l)):l=r}else{let e=l.p;null===e&&(l.p=e=new Map);let r=e.get(t);void 0===r?(l=Y(),e.set(t,l)):l=r}}let c=l;if(1===l.s)s=l.v;else if(s=e.apply(null,arguments),o++,a){let e=null!=(i=null==(t=null==r?void 0:r.deref)?void 0:t.call(r))?i:r;null!=e&&a(e,s)&&(s=e,0!==o&&o--);let n="object"==typeof s&&null!==s||"function"==typeof s;r=n?new N(s):s}return c.s=1,c.v=s,s}return i.clearCache=()=>{n=Y(),i.resetResultsCount()},i.resultsCount=()=>o,i.resetResultsCount=()=>{o=0},i}function F(e,...t){let r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,n=(...e)=>{let t,n=0,a=0,o={},i=e.pop();"object"==typeof i&&(o=i,i=e.pop()),h(i,`createSelector expects an output function after the inputs, but received: [${typeof i}]`);let s=u(u({},r),o),{memoize:l,memoizeOptions:c=[],argsMemoize:d=W,argsMemoizeOptions:f=[],devModeChecks:p={}}=s,g=m(c),y=m(f),b=function(e){let t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){let r=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw TypeError(`${t}[${r}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}(e),_=l(function(){return n++,i.apply(null,arguments)},...g),T=d(function(){a++;let e=function(e,t){let r=[],{length:n}=e;for(let a=0;a<n;a++)r.push(e[a].apply(null,t));return r}(b,arguments);return t=_.apply(null,e)},...y);return Object.assign(T,{resultFunc:i,memoizedResultFunc:_,dependencies:b,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>t,recomputations:()=>n,resetRecomputations:()=>{n=0},memoize:l,argsMemoize:d})};return Object.assign(n,{withTypes:()=>n}),n}var B=F(W),G=Object.assign((e,t=B)=>{!function(e,t=`expected an object, instead received ${typeof e}`){if("object"!=typeof e)throw TypeError(t)}(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let r=Object.keys(e),n=r.map(t=>e[t]),a=t(n,(...e)=>e.reduce((e,t,n)=>(e[r[n]]=t,e),{}));return a},{withTypes:()=>G})},{"@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],asbbZ:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e){return({dispatch:t,getState:r})=>n=>a=>"function"==typeof a?a(t,r,e):n(a)}n.defineInteropFlag(r),n.export(r,"thunk",()=>o),n.export(r,"withExtraArgument",()=>i);var o=a(),i=a},{"@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],"8bwie":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"noStorageSlice",()=>l),n.export(r,"initSubtitleNodes",()=>u),n.export(r,"initTTSSubtitleNodes",()=>c),n.export(r,"initTTSWordsSubtitleNodes",()=>d),n.export(r,"setTTSWordsSubtitleNodes",()=>f),n.export(r,"setTTSSubtitleNodes",()=>p),n.export(r,"setSubtitleNodes",()=>h),n.export(r,"setSubtitleNodesAsObj",()=>m),n.export(r,"setSubtitleText",()=>g),n.export(r,"setSubtitleZhText",()=>y),n.export(r,"setPaused",()=>b),n.export(r,"setPausedForWavesurfer",()=>_),n.export(r,"setCurrentTime",()=>T),n.export(r,"setCurrentTForWavesurfer",()=>S),n.export(r,"setClientWidth",()=>v),n.export(r,"setClientHeight",()=>w),n.export(r,"setIndex",()=>E),n.export(r,"setIndexForWavesurfer",()=>x),n.export(r,"setIndexForWavesurferWords",()=>I),n.export(r,"setMediaIsAudio",()=>O),n.export(r,"setMaskClickPlay",()=>A),n.export(r,"setMaskFull",()=>R),n.export(r,"setNickname",()=>k),n.export(r,"setSubtitleUrl",()=>M),n.export(r,"setWavesurferAudioBlobUrl",()=>D),n.export(r,"setWavesurferAudioUrl",()=>L),n.export(r,"setYoudaoAudioUrl",()=>C),n.export(r,"setDict1ZimuApiUrl",()=>j),n.export(r,"setNowTime",()=>P),n.export(r,"setBiliRightContainerWidth",()=>U),n.export(r,"setMouseX",()=>N),n.export(r,"setMouseY",()=>Y),n.export(r,"setDraggableDictX",()=>W),n.export(r,"setDraggableDictY",()=>F),n.export(r,"setDraggableSubtitleListXInStore",()=>B),n.export(r,"setDraggableSubtitleListYInStore",()=>G),n.export(r,"setTextSelectionPopup",()=>V),n.export(r,"setSelectionText",()=>H),n.export(r,"setSelectionTextLanguage",()=>z),n.export(r,"setFilterSubtitleListText",()=>$),n.export(r,"setTargetLang",()=>q),n.export(r,"setSourceLang",()=>Z),n.export(r,"setRepeatTimes",()=>K),n.export(r,"setRepeatTimesForWavesurfer",()=>J),n.export(r,"setVariableRepeatTimes",()=>X),n.export(r,"setVariableRepeatTimesForWavesurfer",()=>Q),n.export(r,"setMediaPlaybackRate",()=>ee),n.export(r,"setMediaPlaybackRateForWavesurfer",()=>et),n.export(r,"setYoutubeSourceLang",()=>er),n.export(r,"setYoutubeSubUrl",()=>en),n.export(r,"setPlayThenPause",()=>ea),n.export(r,"setPlayThenPausedStartTime",()=>eo),n.export(r,"setShowSubtitleList",()=>ei),n.export(r,"setFavoritesDicts",()=>es),n.export(r,"setNoStorageJwt",()=>el),n.export(r,"setJwtId",()=>eu),n.export(r,"setBaiduPanVideo",()=>ec),n.export(r,"setSubtitleTextEnOrNot",()=>ed),n.export(r,"setToOpenFileUI",()=>ef),n.export(r,"setUserInfo",()=>ep);var a=e("@reduxjs/toolkit"),o=e("~tools/constants"),i=e("~tools/subtitle");let s={currentT:0,currentTForWavesurfer:0,subtitleNodes:[],subtitleTTSNodes:[],subtitleTTSWordsNodes:[],subtitleText:"",subtitleZhText:"",paused:!0,pausedForWavesurfer:!0,clientWidth:0,clientHeight:0,index:0,indexForWavesurfer:0,indexForWavesurferWords:0,mediaIsAudio:!1,maskClickPlay:!0,maskFull:!1,nickname:"",subtitleurl:"",dict1ZimuApiUrl:"",youdaoAudioUrl:"",wavesurferAudioUrl:void 0,wavesurferAudioBlobUrl:void 0,nowTime:0,biliRightContainerWidth:o.SUBTITLE_LIST_WIDTH,mouseX:0,mouseY:0,textSelectionPopup:!1,selectionText:"",selectionTextLanguage:"",filterSubtitleListText:"",draggableDictX:o.DRAGGABLE_NODE_CONTAINER_X,draggableDictY:o.DRAGGABLE_NODE_CONTAINER_Y,draggableSubtitleListXInStore:void 0,draggableSubtitleListYInStore:void 0,targetLang:"",sourceLang:"",repeatTimes:o.REPEAT_UI_INIT_TIMES,variableRepeatTimes:o.VARIABLE_REPEAT_UI_INIT_TIMES,repeatTimesForWavesurfer:o.REPEAT_UI_INIT_TIMES,variableRepeatTimesForWavesurfer:o.VARIABLE_REPEAT_UI_INIT_TIMES,mediaPlaybackRate:1,mediaPlaybackRateForWavesurfer:1,youtubeSourceLang:void 0,youtubeSubUrl:void 0,playThenPause:!1,playThenPausedStartTime:void 0,showSubtitleList:!0,favoritesDicts:void 0,jwt:void 0,jwtId:void 0,baiduPanVideo:!1,subtitleTextEnOrNot:!1,toOpenFileUI:!1,userInfo:void 0},l=(0,a.createSlice)({name:"noStorager",initialState:s,reducers:{setNickname:(e,t)=>{e.nickname!==t.payload&&(e.nickname=t.payload)},setCurrentTime:(e,t)=>{e.currentT!==t.payload&&(e.currentT=t.payload)},setCurrentTForWavesurfer:(e,t)=>{e.currentTForWavesurfer!==t.payload&&(e.currentTForWavesurfer=t.payload)},initSubtitleNodes:e=>{e.subtitleNodes=[],e.subtitleText=""},initTTSSubtitleNodes:e=>{e.subtitleTTSNodes=[]},initTTSWordsSubtitleNodes:e=>{e.subtitleTTSWordsNodes=[]},setTTSWordsSubtitleNodes:(e,t)=>{let r=[];r=(0,i.formSubtitleNodesFromPayload)(t.payload),e.subtitleTTSWordsNodes=[...r]},setTTSSubtitleNodes:(e,t)=>{let r=[];r=(0,i.formSubtitleNodesFromPayload)(t.payload),e.subtitleTTSNodes=[...r]},setSubtitleNodesAsObj:(e,t)=>{let r=[],n=(0,i.sortByStart)(t.payload),a=0;n.forEach(e=>{if(e.text){let t={type:"cue",data:{start:0,end:0,text:"",zh_text:"",index:0}};t.data=e,t.data.index=a,a+=1,r.push(t)}}),e.subtitleNodes=[...r]},setSubtitleNodes:(e,t)=>{let r=[];r=(0,i.formSubtitleNodesFromPayload)(t.payload),e.subtitleNodes=[...r]},setSubtitleText:(e,t)=>{e.subtitleText!==t.payload&&(e.subtitleText=t.payload)},setSubtitleZhText:(e,t)=>{e.subtitleZhText!==t.payload&&(e.subtitleZhText=t.payload)},setPaused:(e,t)=>{e.paused!==t.payload&&(e.paused=t.payload)},setPausedForWavesurfer:(e,t)=>{e.pausedForWavesurfer!==t.payload&&(e.pausedForWavesurfer=t.payload)},setClientHeight:(e,t)=>{e.clientHeight!==t.payload&&(e.clientHeight=t.payload)},setClientWidth:(e,t)=>{e.clientWidth!==t.payload&&(e.clientWidth=t.payload)},setMouseX:(e,t)=>{e.mouseX!==t.payload&&(e.mouseX=t.payload)},setMouseY:(e,t)=>{e.mouseY!==t.payload&&(e.mouseY=t.payload)},setTextSelectionPopup:(e,t)=>{e.textSelectionPopup!==t.payload&&(e.textSelectionPopup=t.payload)},setTargetLang:(e,t)=>{e.targetLang!==t.payload&&(e.targetLang=t.payload)},setSourceLang:(e,t)=>{e.sourceLang!==t.payload&&(e.sourceLang=t.payload)},setRepeatTimes:(e,t)=>{e.repeatTimes!==t.payload&&(e.repeatTimes=t.payload)},setRepeatTimesForWavesurfer:(e,t)=>{e.repeatTimesForWavesurfer!==t.payload&&(e.repeatTimesForWavesurfer=t.payload)},setVariableRepeatTimes:(e,t)=>{e.variableRepeatTimes!==t.payload&&(e.variableRepeatTimes=t.payload)},setVariableRepeatTimesForWavesurfer:(e,t)=>{e.variableRepeatTimesForWavesurfer!==t.payload&&(e.variableRepeatTimesForWavesurfer=t.payload)},setMediaPlaybackRate:(e,t)=>{e.mediaPlaybackRate!==t.payload&&(e.mediaPlaybackRate=t.payload)},setMediaPlaybackRateForWavesurfer:(e,t)=>{e.mediaPlaybackRateForWavesurfer!==t.payload&&(e.mediaPlaybackRateForWavesurfer=t.payload)},setYoutubeSourceLang:(e,t)=>{e.youtubeSourceLang!==t.payload&&(e.youtubeSourceLang=t.payload)},setYoutubeSubUrl:(e,t)=>{e.youtubeSubUrl!==t.payload&&(e.youtubeSubUrl=t.payload)},setPlayThenPause:(e,t)=>{e.playThenPause!==t.payload&&(e.playThenPause=t.payload)},setPlayThenPausedStartTime:(e,t)=>{e.playThenPausedStartTime!==t.payload&&(e.playThenPausedStartTime=t.payload)},setShowSubtitleList:(e,t)=>{e.showSubtitleList!==t.payload&&(e.showSubtitleList=t.payload)},setFavoritesDicts:(e,t)=>{e.favoritesDicts=[...t.payload]},setNoStorageJwt:(e,t)=>{e.jwt!==t.payload&&(e.jwt=t.payload)},setJwtId:(e,t)=>{e.jwtId!==t.payload&&(e.jwtId=t.payload)},setBaiduPanVideo:(e,t)=>{e.baiduPanVideo!==t.payload&&(e.baiduPanVideo=t.payload)},setSubtitleTextEnOrNot:(e,t)=>{e.subtitleTextEnOrNot!==t.payload&&(e.subtitleTextEnOrNot=t.payload)},setToOpenFileUI:(e,t)=>{e.toOpenFileUI!==t.payload&&(e.toOpenFileUI=t.payload)},setUserInfo:(e,t)=>{e.userInfo=t.payload},setSelectionText:(e,t)=>{e.selectionText!==t.payload&&(e.selectionText=t.payload)},setSelectionTextLanguage:(e,t)=>{e.selectionTextLanguage!==t.payload&&(e.selectionTextLanguage=t.payload)},setFilterSubtitleListText:(e,t)=>{e.filterSubtitleListText!==t.payload&&(e.filterSubtitleListText=t.payload)},setDraggableDictX:(e,t)=>{e.draggableDictX!==t.payload&&(e.draggableDictX=t.payload)},setDraggableDictY:(e,t)=>{e.draggableDictY!==t.payload&&(e.draggableDictY=t.payload)},setDraggableSubtitleListXInStore:(e,t)=>{e.draggableSubtitleListXInStore!==t.payload&&(e.draggableSubtitleListXInStore=t.payload)},setDraggableSubtitleListYInStore:(e,t)=>{e.draggableSubtitleListYInStore!==t.payload&&(e.draggableSubtitleListYInStore=t.payload)},setIndex:(e,t)=>{e.index!==t.payload&&(e.index=t.payload)},setIndexForWavesurfer:(e,t)=>{e.indexForWavesurfer!==t.payload&&(e.indexForWavesurfer=t.payload)},setIndexForWavesurferWords:(e,t)=>{e.indexForWavesurferWords!==t.payload&&(e.indexForWavesurferWords=t.payload)},setMediaIsAudio:(e,t)=>{e.mediaIsAudio!==t.payload&&(e.mediaIsAudio=t.payload)},setMaskFull:(e,t)=>{e.maskFull!==t.payload&&(e.maskFull=t.payload)},setMaskClickPlay:(e,t)=>{e.maskClickPlay!==t.payload&&(e.maskClickPlay=t.payload)},setSubtitleUrl:(e,t)=>{e.subtitleurl!==t.payload&&(e.subtitleurl=t.payload)},setWavesurferAudioBlobUrl:(e,t)=>{e.wavesurferAudioBlobUrl!==t.payload&&(e.wavesurferAudioBlobUrl=t.payload)},setWavesurferAudioUrl:(e,t)=>{e.wavesurferAudioUrl!==t.payload&&(e.wavesurferAudioUrl=t.payload)},setDict1ZimuApiUrl:(e,t)=>{if(t?.payload?.length>0){let r="en";r="ja"===e.selectionTextLanguage?"ja":"ko"===e.selectionTextLanguage?"ko":"fr"===e.selectionTextLanguage?"fr":"en";let n=`https://${o.ZIMU1_COM}/subtitle/api/dict/${t.payload}/${r}`;e.dict1ZimuApiUrl!==n&&(e.dict1ZimuApiUrl=n)}else null!==e.dict1ZimuApiUrl&&(e.dict1ZimuApiUrl=null)},setYoudaoAudioUrl:(e,t)=>{let r="";"ja"===e.selectionTextLanguage?r="&le=jap":"ko"===e.selectionTextLanguage?r="&le=ko":"fr"===e.selectionTextLanguage&&(r="&le=fr"),t?.payload?.length>0?e.youdaoAudioUrl!==`https://dict.youdao.com/dictvoice?audio=${t.payload}${r}`&&(e.youdaoAudioUrl=`https://dict.youdao.com/dictvoice?audio=${t.payload}${r}`):null!==e.youdaoAudioUrl&&(e.youdaoAudioUrl=null)},setNowTime:(e,t)=>{e.nowTime!==t.payload&&(e.nowTime=t.payload)},setBiliRightContainerWidth:(e,t)=>{e.biliRightContainerWidth!==t.payload&&(e.biliRightContainerWidth=t.payload)}}}),{initSubtitleNodes:u,initTTSSubtitleNodes:c,initTTSWordsSubtitleNodes:d,setTTSWordsSubtitleNodes:f,setTTSSubtitleNodes:p,setSubtitleNodes:h,setSubtitleNodesAsObj:m,setSubtitleText:g,setSubtitleZhText:y,setPaused:b,setPausedForWavesurfer:_,setCurrentTime:T,setCurrentTForWavesurfer:S,setClientWidth:v,setClientHeight:w,setIndex:E,setIndexForWavesurfer:x,setIndexForWavesurferWords:I,setMediaIsAudio:O,setMaskClickPlay:A,setMaskFull:R,setNickname:k,setSubtitleUrl:M,setWavesurferAudioBlobUrl:D,setWavesurferAudioUrl:L,setYoudaoAudioUrl:C,setDict1ZimuApiUrl:j,setNowTime:P,setBiliRightContainerWidth:U,setMouseX:N,setMouseY:Y,setDraggableDictX:W,setDraggableDictY:F,setDraggableSubtitleListXInStore:B,setDraggableSubtitleListYInStore:G,setTextSelectionPopup:V,setSelectionText:H,setSelectionTextLanguage:z,setFilterSubtitleListText:$,setTargetLang:q,setSourceLang:Z,setRepeatTimes:K,setRepeatTimesForWavesurfer:J,setVariableRepeatTimes:X,setVariableRepeatTimesForWavesurfer:Q,setMediaPlaybackRate:ee,setMediaPlaybackRateForWavesurfer:et,setYoutubeSourceLang:er,setYoutubeSubUrl:en,setPlayThenPause:ea,setPlayThenPausedStartTime:eo,setShowSubtitleList:ei,setFavoritesDicts:es,setNoStorageJwt:el,setJwtId:eu,setBaiduPanVideo:ec,setSubtitleTextEnOrNot:ed,setToOpenFileUI:ef,setUserInfo:ep}=l.actions;r.default=l.reducer},{"@reduxjs/toolkit":"8h9ny","~tools/constants":"aHxh8","~tools/subtitle":"lEjEC","@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],UfIbn:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"Provider",()=>ea),n.export(r,"ReactReduxContext",()=>ee),n.export(r,"batch",()=>eh),n.export(r,"connect",()=>en),n.export(r,"createDispatchHook",()=>eu),n.export(r,"createSelectorHook",()=>ef),n.export(r,"createStoreHook",()=>es),n.export(r,"shallowEqual",()=>Y),n.export(r,"useDispatch",()=>ec),n.export(r,"useSelector",()=>ep),n.export(r,"useStore",()=>el);var a=e("react"),o=e("use-sync-external-store/with-selector.js"),i=Object.defineProperty,s=Object.defineProperties,l=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,f=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,p=(e,t)=>{for(var r in t||(t={}))c.call(t,r)&&f(e,r,t[r]);if(u)for(var r of u(t))d.call(t,r)&&f(e,r,t[r]);return e},h=(e,t)=>s(e,l(t)),m=(e,t)=>{var r={};for(var n in e)c.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&u)for(var n of u(e))0>t.indexOf(n)&&d.call(e,n)&&(r[n]=e[n]);return r},g=Symbol.for(a.version.startsWith("19")?"react.transitional.element":"react.element"),y=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),v=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),O=Symbol.for("react.lazy");function A(e){return function(t){let r=e(t);function n(){return r}return n.dependsOnOwnProps=!1,n}}function R(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:1!==e.length}function k(e,t){return function(t,{displayName:r}){let n=function(e,t){return n.dependsOnOwnProps?n.mapToProps(e,t):n.mapToProps(e,void 0)};return n.dependsOnOwnProps=!0,n.mapToProps=function(t,r){n.mapToProps=e,n.dependsOnOwnProps=R(e);let a=n(t,r);return"function"==typeof a&&(n.mapToProps=a,n.dependsOnOwnProps=R(a),a=n(t,r)),a},n}}function M(e,t){return(r,n)=>{throw Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function D(e,t,r){return p(p(p({},r),e),t)}var L={notify(){},get:()=>[]};function C(e,t){let r;let n=L,a=0,o=!1;function i(){u.onStateChange&&u.onStateChange()}function s(){if(a++,!r){let a,o;r=t?t.addNestedSub(i):e.subscribe(i),a=null,o=null,n={clear(){a=null,o=null},notify(){(()=>{let e=a;for(;e;)e.callback(),e=e.next})()},get(){let e=[],t=a;for(;t;)e.push(t),t=t.next;return e},subscribe(e){let t=!0,r=o={callback:e,next:null,prev:o};return r.prev?r.prev.next=r:a=r,function(){t&&null!==a&&(t=!1,r.next?r.next.prev=r.prev:o=r.prev,r.prev?r.prev.next=r.next:a=r.next)}}}}}function l(){a--,r&&0===a&&(r(),r=void 0,n.clear(),n=L)}let u={addNestedSub:function(e){s();let t=n.subscribe(e),r=!1;return()=>{r||(r=!0,t(),l())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:i,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,s())},tryUnsubscribe:function(){o&&(o=!1,l())},getListeners:()=>n};return u}var j=!!("undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement),P="undefined"!=typeof navigator&&"ReactNative"===navigator.product,U=j||P?a.useLayoutEffect:a.useEffect;function N(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Y(e,t){if(N(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!N(e[r[n]],t[r[n]]))return!1;return!0}var W={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},F={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},B={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},G={[w]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[I]:B};function V(e){return function(e){if("object"==typeof e&&null!==e){let{$$typeof:t}=e;switch(t){case g:switch(e=e.type){case b:case T:case _:case E:case x:return e;default:switch(e=e&&e.$$typeof){case v:case w:case O:case I:case S:return e;default:return t}}case y:return t}}}(e)===I?B:G[e.$$typeof]||W}var H=Object.defineProperty,z=Object.getOwnPropertyNames,$=Object.getOwnPropertySymbols,q=Object.getOwnPropertyDescriptor,Z=Object.getPrototypeOf,K=Object.prototype;function J(e,t){if("string"!=typeof t){if(K){let r=Z(t);r&&r!==K&&J(e,r)}let r=z(t);$&&(r=r.concat($(t)));let n=V(e),a=V(t);for(let o=0;o<r.length;++o){let i=r[o];if(!F[i]&&!(a&&a[i])&&!(n&&n[i])){let r=q(t,i);try{H(e,i,r)}catch(e){}}}}return e}var X=Symbol.for("react-redux-context"),Q="undefined"!=typeof globalThis?globalThis:{},ee=function(){var e;if(!a.createContext)return{};let t=null!=(e=Q[X])?e:Q[X]=new Map,r=t.get(a.createContext);return r||(r=a.createContext(null),t.set(a.createContext,r)),r}(),et=[null,null];function er(e,t){return e===t}var en=function(e,t,r,{pure:n,areStatesEqual:o=er,areOwnPropsEqual:i=Y,areStatePropsEqual:s=Y,areMergedPropsEqual:l=Y,forwardRef:u=!1,context:c=ee}={}){let d=e?"function"==typeof e?k(e,"mapStateToProps"):M(e,"mapStateToProps"):A(()=>({})),f=t&&"object"==typeof t?A(e=>(function(e,t){let r={};for(let n in e){let a=e[n];"function"==typeof a&&(r[n]=(...e)=>t(a(...e)))}return r})(t,e)):t?"function"==typeof t?k(t,"mapDispatchToProps"):M(t,"mapDispatchToProps"):A(e=>({dispatch:e})),g=r?"function"==typeof r?function(e,{displayName:t,areMergedPropsEqual:n}){let a,o=!1;return function(e,t,i){let s=r(e,t,i);return o?n(s,a)||(a=s):(o=!0,a=s),a}}:M(r,"mergeProps"):()=>D,y=!!e;return e=>{let t=e.displayName||e.name||"Component",r=`Connect(${t})`,n={shouldHandleStateChanges:y,displayName:r,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:g,areStatesEqual:o,areStatePropsEqual:s,areOwnPropsEqual:i,areMergedPropsEqual:l};function b(t){var r;let o;let[i,s,l]=a.useMemo(()=>{let{reactReduxForwardedRef:e}=t,r=m(t,["reactReduxForwardedRef"]);return[t.context,e,r]},[t]),u=a.useMemo(()=>(null==i||i.Consumer,c),[i,c]),d=a.useContext(u),f=!!t.store&&!!t.store.getState&&!!t.store.dispatch,g=!!d&&!!d.store,b=f?t.store:d.store,_=g?d.getServerState:b.getState,T=a.useMemo(()=>(function(e,t){var{initMapStateToProps:r,initMapDispatchToProps:n,initMergeProps:a}=t,o=m(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]);let i=r(e,o),s=n(e,o),l=a(e,o);return function(e,t,r,n,{areStatesEqual:a,areOwnPropsEqual:o,areStatePropsEqual:i}){let s,l,u,c,d,f=!1;return function(p,h){return f?function(f,p){let h=!o(p,l),m=!a(f,s,p,l);return(s=f,l=p,h&&m)?(u=e(s,l),t.dependsOnOwnProps&&(c=t(n,l)),d=r(u,c,l)):h?(e.dependsOnOwnProps&&(u=e(s,l)),t.dependsOnOwnProps&&(c=t(n,l)),d=r(u,c,l)):m?function(){let t=e(s,l),n=!i(t,u);return u=t,n&&(d=r(u,c,l)),d}():d}(p,h):(u=e(s=p,l=h),c=t(n,l),d=r(u,c,l),f=!0,d)}}(i,s,l,e,o)})(b.dispatch,n),[b]),[S,v]=a.useMemo(()=>{if(!y)return et;let e=C(b,f?void 0:d.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[b,f,d]),w=a.useMemo(()=>f?d:h(p({},d),{subscription:S}),[f,d,S]),E=a.useRef(void 0),x=a.useRef(l),I=a.useRef(void 0),O=a.useRef(!1),A=a.useRef(!1),R=a.useRef(void 0);U(()=>(A.current=!0,()=>{A.current=!1}),[]);let k=a.useMemo(()=>()=>I.current&&l===x.current?I.current:T(b.getState(),l),[b,l]),M=a.useMemo(()=>e=>S?function(e,t,r,n,a,o,i,s,l,u,c){if(!e)return()=>{};let d=!1,f=null,p=()=>{let e,r;if(d||!s.current)return;let p=t.getState();try{e=n(p,a.current)}catch(e){r=e,f=e}r||(f=null),e===o.current?i.current||u():(o.current=e,l.current=e,i.current=!0,c())};return r.onStateChange=p,r.trySubscribe(),p(),()=>{if(d=!0,r.tryUnsubscribe(),r.onStateChange=null,f)throw f}}(y,b,S,T,x,E,O,A,I,v,e):()=>{},[S]);r=[x,E,O,l,I,v],U(()=>(function(e,t,r,n,a,o){e.current=n,r.current=!1,a.current&&(a.current=null,o())})(...r),void 0);try{o=a.useSyncExternalStore(M,k,_?()=>T(_(),l):k)}catch(e){throw R.current&&(e.message+=`
The error may be correlated with this previous error:
${R.current.stack}
`),e}U(()=>{R.current=void 0,I.current=void 0,E.current=o});let D=a.useMemo(()=>a.createElement(e,h(p({},o),{ref:s})),[s,e,o]),L=a.useMemo(()=>y?a.createElement(u.Provider,{value:w},D):D,[u,D,w]);return L}let _=a.memo(b);if(_.WrappedComponent=e,_.displayName=b.displayName=r,u){let t=a.forwardRef(function(e,t){return a.createElement(_,h(p({},e),{reactReduxForwardedRef:t}))});return t.displayName=r,t.WrappedComponent=e,J(t,e)}return J(_,e)}},ea=function(e){let{children:t,context:r,serverState:n,store:o}=e,i=a.useMemo(()=>{let e=C(o);return{store:o,subscription:e,getServerState:n?()=>n:void 0}},[o,n]),s=a.useMemo(()=>o.getState(),[o]);return U(()=>{let{subscription:e}=i;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==o.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[i,s]),a.createElement((r||ee).Provider,{value:i},t)};function eo(e=ee){return function(){let t=a.useContext(e);return t}}var ei=eo();function es(e=ee){let t=e===ee?ei:eo(e),r=()=>{let{store:e}=t();return e};return Object.assign(r,{withTypes:()=>r}),r}var el=es();function eu(e=ee){let t=e===ee?el:es(e),r=()=>{let e=t();return e.dispatch};return Object.assign(r,{withTypes:()=>r}),r}var ec=eu(),ed=(e,t)=>e===t;function ef(e=ee){let t=e===ee?ei:eo(e),r=(e,r={})=>{let{equalityFn:n=ed}="function"==typeof r?{equalityFn:r}:r,i=t(),{store:s,subscription:l,getServerState:u}=i;a.useRef(!0);let c=a.useCallback({[e.name](t){let r=e(t);return r}}[e.name],[e]),d=(0,o.useSyncExternalStoreWithSelector)(l.addNestedSub,s.getState,u||s.getState,c,n);return a.useDebugValue(d),d};return Object.assign(r,{withTypes:()=>r}),r}var ep=ef(),eh=function(e){e()}},{react:"34kvN","use-sync-external-store/with-selector.js":"9dAW8","@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],"9dAW8":[function(e,t,r){t.exports=e("44db3591982713b9")},{"44db3591982713b9":"kET24"}],kET24:[function(e,t,r){var n=e("6d34fa13a6b19654"),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=n.useSyncExternalStore,i=n.useRef,s=n.useEffect,l=n.useMemo,u=n.useDebugValue;r.useSyncExternalStoreWithSelector=function(e,t,r,n,c){var d=i(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=o(e,(d=l(function(){function e(e){if(!s){if(s=!0,o=e,e=n(e),void 0!==c&&f.hasValue){var t=f.value;if(c(t,e))return i=t}return i=e}if(t=i,a(o,e))return t;var r=n(e);return void 0!==c&&c(t,r)?(o=e,t):(o=e,i=r)}var o,i,s=!1,l=void 0===r?null:r;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]},[t,r,n,c]))[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),u(p),p}},{"6d34fa13a6b19654":"34kvN"}],"4ACRl":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"store",()=>h),n.export(r,"persistor",()=>m),n.export(r,"useAppDispatch",()=>g),n.export(r,"useAppSelector",()=>y);var a=e("@reduxjs/toolkit"),o=e("react-redux"),i=e("redux-persist-webextension-storage"),s=e("@plasmohq/redux-persist"),l=e("@plasmohq/storage"),u=e("./storage-slice"),c=n.interopDefault(u);let d=(0,a.combineReducers)({odd:c.default}),f={key:"root",version:1,storage:i.localStorage},p=(0,s.persistReducer)(f,d);(0,a.configureStore)({reducer:d});let h=(0,a.configureStore)({reducer:p,middleware:e=>e({serializableCheck:{ignoredActions:[s.FLUSH,s.REHYDRATE,s.PAUSE,s.PERSIST,s.PURGE,s.REGISTER,s.RESYNC]}})}),m=(0,s.persistStore)(h);new(0,l.Storage)({area:"local"}).watch({[`persist:${f.key}`]:e=>{let{oldValue:t,newValue:r}=e,n=[];for(let e in t)t[e]!==r?.[e]&&n.push(e);for(let e in r)t?.[e]!==r[e]&&n.push(e);n.length>0&&m.resync()}});let g=o.useDispatch,y=o.useSelector},{"@reduxjs/toolkit":"8h9ny","react-redux":"UfIbn","redux-persist-webextension-storage":"etxgy","@plasmohq/redux-persist":"9nx8o","@plasmohq/storage":"4FVCo","./storage-slice":"hpgNF","@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],etxgy:[function(e,t,r){var n=o(e("5d4f71de55428f87")),a=o(e("19680ef65d313b"));function o(e){return e&&e.__esModule?e:{default:e}}t.exports={localStorage:n.default,syncStorage:a.default}},{"5d4f71de55428f87":"c8mZC","19680ef65d313b":"8p01s"}],c8mZC:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n,a=(n=e("4ad5e0f4e633ccb5"))&&n.__esModule?n:{default:n};r.default=(0,a.default)("local")},{"4ad5e0f4e633ccb5":"dVBkL"}],dVBkL:[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return{getItem:function(t){return new Promise(function(r,n){chrome.storage[e].get(t,function(e){null==chrome.runtime.lastError?r(e[t]):n()})})},removeItem:function(t){return new Promise(function(r,n){chrome.storage[e].remove(t,function(){null==chrome.runtime.lastError?r():n()})})},setItem:function(t,r){return new Promise(function(n,a){var o;chrome.storage[e].set((t in(o={})?Object.defineProperty(o,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[t]=r,o),function(){null==chrome.runtime.lastError?n():a()})})}}}},{}],"8p01s":[function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0});var n,a=(n=e("d6e6ff7339f123c9"))&&n.__esModule?n:{default:n};r.default=(0,a.default)("sync")},{d6e6ff7339f123c9:"dVBkL"}],"9nx8o":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"persistReducer",()=>o.default),n.export(r,"persistCombineReducers",()=>s.default),n.export(r,"persistStore",()=>u.default),n.export(r,"createMigrate",()=>d.default),n.export(r,"createTransform",()=>p.default),n.export(r,"getStoredState",()=>m.default),n.export(r,"createPersistoid",()=>y.default),n.export(r,"purgeStoredState",()=>_.default);var a=e("./persistReducer"),o=n.interopDefault(a),i=e("./persistCombineReducers"),s=n.interopDefault(i),l=e("./persistStore"),u=n.interopDefault(l),c=e("./createMigrate"),d=n.interopDefault(c),f=e("./createTransform"),p=n.interopDefault(f),h=e("./getStoredState"),m=n.interopDefault(h),g=e("./createPersistoid"),y=n.interopDefault(g),b=e("./purgeStoredState"),_=n.interopDefault(b),T=e("./constants");n.exportAll(T,r)},{"./persistReducer":"cfG6D","./persistCombineReducers":"6Oxbq","./persistStore":"69nCo","./createMigrate":"erfbP","./createTransform":"b2Doz","./getStoredState":"k2HiI","./createPersistoid":"8j9Yn","./purgeStoredState":"5u8vw","./constants":"guw21","@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],cfG6D:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>h);var a=e("./constants"),o=e("./stateReconciler/autoMergeLevel1"),i=n.interopDefault(o),s=e("./createPersistoid"),l=n.interopDefault(s),u=e("./getStoredState"),c=n.interopDefault(u),d=e("./purgeStoredState"),f=n.interopDefault(d),p=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function h(e,t){let r=void 0!==e.version?e.version:a.DEFAULT_VERSION,n=void 0===e.stateReconciler?i.default:e.stateReconciler,o=e.getStoredState||c.default,s=void 0!==e.timeout?e.timeout:5e3,u=null,d=!1,h=!0,m=e=>(e._persist.rehydrated&&u&&!h&&u.update(e),e);return(i,c)=>{let g=i||{},{_persist:y}=g,b=p(g,["_persist"]);if(c.type===a.PERSIST){let n=!1,a=(t,r)=>{n||(c.rehydrate(e.key,t,r),n=!0)};if(s&&setTimeout(()=>{n||a(void 0,Error(`redux-persist: persist timed out for persist key "${e.key}"`))},s),h=!1,u||(u=(0,l.default)(e)),y)return Object.assign(Object.assign({},t(b,c)),{_persist:y});if("function"!=typeof c.rehydrate||"function"!=typeof c.register)throw Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return c.register(e.key),o(e).then(t=>{if(t){let n=e.migrate||((e,t)=>Promise.resolve(e));n(t,r).then(e=>{a(e)},e=>{a(void 0,e)})}},e=>{a(void 0,e)}),Object.assign(Object.assign({},t(b,c)),{_persist:{version:r,rehydrated:!1}})}if(c.type===a.PURGE)return d=!0,c.result((0,f.default)(e)),Object.assign(Object.assign({},t(b,c)),{_persist:y});if(c.type===a.RESYNC)return o(e).then(t=>c.rehydrate(e.key,t,void 0),t=>c.rehydrate(e.key,void 0,t)).then(()=>c.result()),Object.assign(Object.assign({},t(b,c)),{_persist:{version:r,rehydrated:!1}});if(c.type===a.FLUSH)return c.result(u&&u.flush()),Object.assign(Object.assign({},t(b,c)),{_persist:y});if(c.type===a.PAUSE)h=!0;else if(c.type===a.REHYDRATE){if(d)return Object.assign(Object.assign({},b),{_persist:Object.assign(Object.assign({},y),{rehydrated:!0})});if(c.key===e.key){let r=t(b,c),a=c.payload,o=!1!==n&&void 0!==a?n(a,i,r,e):r,s=Object.assign(Object.assign({},o),{_persist:Object.assign(Object.assign({},y),{rehydrated:!0})});return m(s)}}if(!y)return t(i,c);let _=t(b,c);return _===b?i:m(Object.assign(Object.assign({},_),{_persist:y}))}}},{"./constants":"guw21","./stateReconciler/autoMergeLevel1":"eDEbS","./createPersistoid":"8j9Yn","./getStoredState":"k2HiI","./purgeStoredState":"5u8vw","@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],guw21:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"KEY_PREFIX",()=>a),n.export(r,"FLUSH",()=>o),n.export(r,"REHYDRATE",()=>i),n.export(r,"RESYNC",()=>s),n.export(r,"PAUSE",()=>l),n.export(r,"PERSIST",()=>u),n.export(r,"PURGE",()=>c),n.export(r,"REGISTER",()=>d),n.export(r,"DEFAULT_VERSION",()=>f);let a="persist:",o="persist/FLUSH",i="persist/REHYDRATE",s="persist/RESYNC",l="persist/PAUSE",u="persist/PERSIST",c="persist/PURGE",d="persist/REGISTER",f=-1},{"@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],eDEbS:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e,t,r,{debug:n}){let a=Object.assign({},r);if(e&&"object"==typeof e){let n=Object.keys(e);n.forEach(n=>{"_persist"!==n&&t[n]===r[n]&&(a[n]=e[n])})}return a}n.defineInteropFlag(r),n.export(r,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],"8j9Yn":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>o);var a=e("./constants");function o(e){let t;let r=e.blacklist||null,n=e.whitelist||null,o=e.transforms||[],s=e.throttle||0,l=`${void 0!==e.keyPrefix?e.keyPrefix:a.KEY_PREFIX}${e.key}`,u=e.storage;t=!1===e.serialize?e=>e:"function"==typeof e.serialize?e.serialize:i;let c=e.writeFailHandler||null,d={},f={},p=[],h=null,m=null;function g(){if(0===p.length){h&&clearInterval(h),h=null;return}let e=p.shift();if(void 0===e)return;let r=o.reduce((t,r)=>r.in(t,e,d),d[e]);if(void 0!==r)try{f[e]=t(r)}catch(e){console.error("redux-persist/createPersistoid: error serializing state",e)}else delete f[e];0===p.length&&(Object.keys(f).forEach(e=>{void 0===d[e]&&delete f[e]}),m=u.setItem(l,t(f)).catch(b))}function y(e){return(!n||-1!==n.indexOf(e)||"_persist"===e)&&(!r||-1===r.indexOf(e))}function b(e){c&&c(e)}return{update:e=>{Object.keys(e).forEach(t=>{y(t)&&d[t]!==e[t]&&-1===p.indexOf(t)&&p.push(t)}),Object.keys(d).forEach(t=>{void 0===e[t]&&y(t)&&-1===p.indexOf(t)&&void 0!==d[t]&&p.push(t)}),null===h&&(h=setInterval(g,s)),d=e},flush:()=>{for(;0!==p.length;)g();return m||Promise.resolve()}}}function i(e){return JSON.stringify(e)}},{"./constants":"guw21","@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],k2HiI:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>o);var a=e("./constants");function o(e){let t;let r=e.transforms||[],n=`${void 0!==e.keyPrefix?e.keyPrefix:a.KEY_PREFIX}${e.key}`,o=e.storage;return e.debug,t=!1===e.deserialize?e=>e:"function"==typeof e.deserialize?e.deserialize:i,o.getItem(n).then(e=>{if(e)try{let n={},a=t(e);return Object.keys(a).forEach(e=>{n[e]=r.reduceRight((t,r)=>r.out(t,e,a),t(a[e]))}),n}catch(e){throw e}})}function i(e){return JSON.parse(e)}},{"./constants":"guw21","@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],"5u8vw":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>o);var a=e("./constants");function o(e){let t=e.storage,r=`${void 0!==e.keyPrefix?e.keyPrefix:a.KEY_PREFIX}${e.key}`;return t.removeItem(r,i)}function i(e){}},{"./constants":"guw21","@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],"6Oxbq":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>u);var a=e("redux"),o=e("./persistReducer"),i=n.interopDefault(o),s=e("./stateReconciler/autoMergeLevel2"),l=n.interopDefault(s);function u(e,t){return e.stateReconciler=void 0===e.stateReconciler?l.default:e.stateReconciler,(0,i.default)(e,(0,a.combineReducers)(t))}},{redux:"lPWlq","./persistReducer":"cfG6D","./stateReconciler/autoMergeLevel2":"af1AZ","@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],af1AZ:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e,t,r,{debug:n}){let a=Object.assign({},r);if(e&&"object"==typeof e){let n=Object.keys(e);n.forEach(n=>{if("_persist"!==n&&t[n]===r[n]){var o;if(null!==(o=r[n])&&!Array.isArray(o)&&"object"==typeof o){a[n]=Object.assign(Object.assign({},a[n]),e[n]);return}a[n]=e[n]}})}return a}n.defineInteropFlag(r),n.export(r,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],"69nCo":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>l);var a=e("redux"),o=e("./constants");let i={registry:[],bootstrapped:!1},s=(e=i,t)=>{let r=e.registry.indexOf(t.key),n=[...e.registry];switch(t.type){case o.REGISTER:return Object.assign(Object.assign({},e),{registry:[...e.registry,t.key]});case o.REHYDRATE:return n.splice(r,1),Object.assign(Object.assign({},e),{registry:n,bootstrapped:0===n.length});default:return e}};function l(e,t,r){let n=r||!1,l=(0,a.createStore)(s,i,t&&t.enhancer?t.enhancer:void 0),u=e=>{l.dispatch({type:o.REGISTER,key:e})},c=(t,r,a)=>{let i={type:o.REHYDRATE,payload:r,err:a,key:t};e.dispatch(i),l.dispatch(i),"function"==typeof n&&d.getState().bootstrapped&&(n(),n=!1)},d=Object.assign(Object.assign({},l),{purge:()=>{let t=[];return e.dispatch({type:o.PURGE,result:e=>{t.push(e)}}),Promise.all(t)},flush:()=>{let t=[];return e.dispatch({type:o.FLUSH,result:e=>{t.push(e)}}),Promise.all(t)},pause:()=>{e.dispatch({type:o.PAUSE})},persist:()=>{e.dispatch({type:o.PERSIST,register:u,rehydrate:c})},resync:()=>new Promise(t=>{e.dispatch({type:o.RESYNC,rehydrate:c,result:()=>t()})})});return t&&t.manualPersist||d.persist(),d}},{redux:"lPWlq","./constants":"guw21","@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],erfbP:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>o);var a=e("./constants");function o(e,t){let{debug:r}=t||{};return function(t,r){if(!t)return Promise.resolve(void 0);let n=t._persist&&void 0!==t._persist.version?t._persist.version:a.DEFAULT_VERSION;if(n===r||n>r)return Promise.resolve(t);let o=Object.keys(e).map(e=>parseInt(e)).filter(e=>r>=e&&e>n).sort((e,t)=>e-t);try{let r=o.reduce((t,r)=>e[r](t),t);return Promise.resolve(r)}catch(e){return Promise.reject(e)}}}},{"./constants":"guw21","@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],b2Doz:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");function a(e,t,r={}){let n=r.whitelist||null,a=r.blacklist||null;function o(e){return!!n&&-1===n.indexOf(e)||!!a&&-1!==a.indexOf(e)}return{in:(t,r,n)=>!o(r)&&e?e(t,r,n):t,out:(e,r,n)=>!o(r)&&t?t(e,r,n):e}}n.defineInteropFlag(r),n.export(r,"default",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],"4FVCo":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"BaseStorage",()=>s),n.export(r,"Storage",()=>l);var a=e("pify"),o=n.interopDefault(a),i=()=>{try{let e=globalThis.navigator?.userAgent.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];if("Chrome"===e[1])return 100>parseInt(e[2])||globalThis.chrome.runtime?.getManifest()?.manifest_version===2}catch{}return!1},s=class{#e;#t;get primaryClient(){return this.#t}#r;get secondaryClient(){return this.#r}#n;get area(){return this.#n}get hasWebApi(){try{return"u">typeof window&&!!window.localStorage}catch(e){return console.error(e),!1}}#a=new Map;#o;get copiedKeySet(){return this.#o}isCopied=e=>this.hasWebApi&&(this.allCopied||this.copiedKeySet.has(e));#i=!1;get allCopied(){return this.#i}getExtStorageApi=()=>globalThis.browser?.storage||globalThis.chrome?.storage;get hasExtensionApi(){try{return!!this.getExtStorageApi()}catch(e){return console.error(e),!1}}isWatchSupported=()=>this.hasExtensionApi;keyNamespace="";isValidKey=e=>e.startsWith(this.keyNamespace);getNamespacedKey=e=>`${this.keyNamespace}${e}`;getUnnamespacedKey=e=>e.slice(this.keyNamespace.length);constructor({area:e="sync",allCopied:t=!1,copiedKeyList:r=[]}={}){this.setCopiedKeySet(r),this.#n=e,this.#i=t;try{this.hasWebApi&&(t||r.length>0)&&(this.#r=window.localStorage)}catch{}try{this.hasExtensionApi&&(this.#e=this.getExtStorageApi(),i()?this.#t=(0,o.default)(this.#e[this.area],{exclude:["getBytesInUse"],errorFirst:!1}):this.#t=this.#e[this.area])}catch{}}setCopiedKeySet(e){this.#o=new Set(e)}rawGetAll=()=>this.#t?.get();getAll=async()=>Object.entries(await this.rawGetAll()).filter(([e])=>this.isValidKey(e)).reduce((e,[t,r])=>(e[this.getUnnamespacedKey(t)]=r,e),{});copy=async e=>{let t=void 0===e;if(!t&&!this.copiedKeySet.has(e)||!this.allCopied||!this.hasExtensionApi)return!1;let r=this.allCopied?await this.rawGetAll():await this.#t.get((t?[...this.copiedKeySet]:[e]).map(this.getNamespacedKey));if(!r)return!1;let n=!1;for(let e in r){let t=r[e],a=this.#r?.getItem(e);this.#r?.setItem(e,t),n||=t!==a}return n};rawGet=async e=>this.hasExtensionApi?(await this.#t.get(e))[e]:this.isCopied(e)?this.#r?.getItem(e):null;rawSet=async(e,t)=>(this.isCopied(e)&&this.#r?.setItem(e,t),this.hasExtensionApi&&await this.#t.set({[e]:t}),null);clear=async(e=!1)=>{e&&this.#r?.clear(),await this.#t.clear()};rawRemove=async e=>{this.isCopied(e)&&this.#r?.removeItem(e),this.hasExtensionApi&&await this.#t.remove(e)};removeAll=async()=>{let e=Object.keys(await this.getAll());await Promise.all(e.map(this.remove))};watch=e=>{let t=this.isWatchSupported();return t&&this.#s(e),t};#s=e=>{for(let t in e){let r=this.getNamespacedKey(t),n=this.#a.get(r)?.callbackSet||new Set;if(n.add(e[t]),n.size>1)continue;let a=(e,t)=>{if(t!==this.area||!e[r])return;let n=this.#a.get(r);if(!n)throw Error(`Storage comms does not exist for nsKey: ${r}`);Promise.all([this.parseValue(e[r].newValue),this.parseValue(e[r].oldValue)]).then(([e,r])=>{for(let a of n.callbackSet)a({newValue:e,oldValue:r},t)})};this.#e.onChanged.addListener(a),this.#a.set(r,{callbackSet:n,listener:a})}};unwatch=e=>{let t=this.isWatchSupported();return t&&this.#l(e),t};#l(e){for(let t in e){let r=this.getNamespacedKey(t),n=e[t],a=this.#a.get(r);a&&(a.callbackSet.delete(n),0===a.callbackSet.size&&(this.#a.delete(r),this.#e.onChanged.removeListener(a.listener)))}}unwatchAll=()=>this.#u();#u(){this.#a.forEach(({listener:e})=>this.#e.onChanged.removeListener(e)),this.#a.clear()}async getItem(e){return this.get(e)}async setItem(e,t){await this.set(e,t)}async removeItem(e){return this.remove(e)}},l=class extends s{get=async e=>{let t=this.getNamespacedKey(e),r=await this.rawGet(t);return this.parseValue(r)};set=async(e,t)=>{let r=this.getNamespacedKey(e),n=JSON.stringify(t);return this.rawSet(r,n)};remove=async e=>{let t=this.getNamespacedKey(e);return this.rawRemove(t)};setNamespace=e=>{this.keyNamespace=e};parseValue=async e=>{try{if(void 0!==e)return JSON.parse(e)}catch(e){console.error(e)}}}},{pify:"9arDK","@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],"9arDK":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>i);let a=(e,t,r,n)=>function(...a){let o=t.promiseModule;return new o((o,i)=>{t.multiArgs?a.push((...e)=>{t.errorFirst?e[0]?i(e):(e.shift(),o(e)):o(e)}):t.errorFirst?a.push((e,t)=>{e?i(e):o(t)}):a.push(o),Reflect.apply(e,this===r?n:this,a)})},o=new WeakMap;function i(e,t){t={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...t};let r=typeof e;if(!(null!==e&&("object"===r||"function"===r)))throw TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===e?"null":r}\``);let n=(e,r)=>{let n=o.get(e);if(n||(n={},o.set(e,n)),r in n)return n[r];let a=e=>"string"==typeof e||"symbol"==typeof r?r===e:e.test(r),i=Reflect.getOwnPropertyDescriptor(e,r),s=void 0===i||i.writable||i.configurable,l=t.include?t.include.some(e=>a(e)):!t.exclude.some(e=>a(e)),u=l&&s;return n[r]=u,u},i=new WeakMap,s=new Proxy(e,{apply(e,r,n){let o=i.get(e);if(o)return Reflect.apply(o,r,n);let l=t.excludeMain?e:a(e,t,s,e);return i.set(e,l),Reflect.apply(l,r,n)},get(e,r){let o=e[r];if(!n(e,r)||o===Function.prototype[r])return o;let l=i.get(o);if(l)return l;if("function"==typeof o){let r=a(o,t,s,e);return i.set(o,r),r}return o}});return s}},{"@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],hpgNF:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"setJwt",()=>i),n.export(r,"setHeadimgurl",()=>s),n.export(r,"setNickname",()=>l),n.export(r,"setPopupShow",()=>u);var a=e("@reduxjs/toolkit");let o=(0,a.createSlice)({name:"odd",initialState:{jwt:"",headimgurl:"",nickname:"",popupShow:!0},reducers:{setJwt:(e,t)=>{e.jwt=t.payload},setHeadimgurl:(e,t)=>{e.headimgurl=`${t.payload}`},setNickname:(e,t)=>{e.nickname=t.payload},setPopupShow:(e,t)=>{e.popupShow=t.payload}}}),{setJwt:i,setHeadimgurl:s,setNickname:l,setPopupShow:u}=o.actions;r.default=o.reducer},{"@reduxjs/toolkit":"8h9ny","@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],du0IS:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"InvalidTokenError",()=>a),n.export(r,"jwtDecode",()=>o);class a extends Error{}function o(e,t){let r;if("string"!=typeof e)throw new a("Invalid token specified: must be a string");t||(t={});let n=!0===t.header?0:1,o=e.split(".")[n];if("string"!=typeof o)throw new a(`Invalid token specified: missing part #${n+1}`);try{r=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw Error("base64 string is not of the correct length")}try{var r;return r=t,decodeURIComponent(atob(r).replace(/(.)/g,(e,t)=>{let r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}catch(e){return atob(t)}}(o)}catch(e){throw new a(`Invalid token specified: invalid base64 for part #${n+1} (${e.message})`)}try{return JSON.parse(r)}catch(e){throw new a(`Invalid token specified: invalid json for part #${n+1} (${e.message})`)}}a.prototype.name="InvalidTokenError"},{"@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],bq7mF:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"relay",()=>m),n.export(r,"relayMessage",()=>h),n.export(r,"sendToActiveContentScript",()=>p),n.export(r,"sendToBackground",()=>d),n.export(r,"sendToBackgroundViaRelay",()=>g),n.export(r,"sendToContentScript",()=>f),n.export(r,"sendViaRelay",()=>y);var a=e("nanoid"),o=globalThis.browser?.tabs||globalThis.chrome?.tabs,i=()=>{let e=globalThis.browser?.runtime||globalThis.chrome?.runtime;if(!e)throw Error("Extension runtime is not available");return e},s=()=>{if(!o)throw Error("Extension tabs API is not available");return o},l=async()=>{let e=s(),[t]=await e.query({active:!0,currentWindow:!0});return t},u=(e,t)=>!t.__internal&&e.source===globalThis.window&&e.data.name===t.name&&(void 0===t.relayId||e.data.relayId===t.relayId),c=(e,t,r=globalThis.window)=>{let n=async n=>{if(u(n,e)&&!n.data.relayed){let a={name:e.name,relayId:e.relayId,body:n.data.body},o=await t?.(a);r.postMessage({name:e.name,relayId:e.relayId,instanceId:n.data.instanceId,body:o,relayed:!0},{targetOrigin:e.targetOrigin||"/"})}};return r.addEventListener("message",n),()=>r.removeEventListener("message",n)},d=async e=>i().sendMessage(e.extensionId??null,e),f=async e=>{let t="number"==typeof e.tabId?e.tabId:(await l())?.id;if(!t)throw Error("No active tab found to send message to.");return s().sendMessage(t,e)},p=f,h=e=>c(e,d),m=h,g=(e,t=globalThis.window)=>new Promise((r,n)=>{let o=(0,a.nanoid)(),i=new AbortController;t.addEventListener("message",t=>{u(t,e)&&t.data.relayed&&t.data.instanceId===o&&(r(t.data.body),i.abort())},{signal:i.signal}),t.postMessage({...e,instanceId:o},{targetOrigin:e.targetOrigin||"/"})}),y=g},{nanoid:"WGs0a","@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],WGs0a:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"urlAlphabet",()=>a.urlAlphabet),n.export(r,"random",()=>o),n.export(r,"customRandom",()=>i),n.export(r,"customAlphabet",()=>s),n.export(r,"nanoid",()=>l);var a=e("./url-alphabet/index.js");let o=e=>crypto.getRandomValues(new Uint8Array(e)),i=(e,t,r)=>{let n=(2<<Math.log(e.length-1)/Math.LN2)-1,a=-~(1.6*n*t/e.length);return (o=t)=>{let i="";for(;;){let t=r(a),s=a;for(;s--;)if((i+=e[t[s]&n]||"").length===o)return i}}},s=(e,t=21)=>i(e,t,o),l=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((e,t)=>((t&=63)<36?e+=t.toString(36):t<62?e+=(t-26).toString(36).toUpperCase():t>62?e+="-":e+="_",e),"")},{"./url-alphabet/index.js":!1,"@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],jKVtu:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"logger",()=>a);let a=new class{constructor(){this.isProduction=!0}log(...e){this.isProduction||console.log(...e)}info(...e){this.isProduction||console.info(...e)}error(...e){this.isProduction||console.error(...e)}warn(...e){this.isProduction||console.warn(...e)}debug(...e){this.isProduction||console.debug(...e)}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],"68W9f":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"storage",()=>o),n.export(r,"storageSync",()=>i);var a=e("@plasmohq/storage");let o=new a.Storage({area:"local"}),i=new a.Storage({area:"sync"})},{"@plasmohq/storage":"4FVCo","@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],"667zm":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"sleep",()=>o),n.export(r,"clickYoutubeSubtitleBtn",()=>i);var a=e("./error");function o(e){return new Promise(t=>setTimeout(t,e))}function i(){try{let e=document.querySelector("button.ytp-subtitles-button.ytp-button");if(e){let t=e.getAttribute("aria-pressed"),r=e.querySelector("svg");"false"===t&&"1"===r.getAttribute("fill-opacity")&&e.click()}}catch(e){(0,a.handleError)({error:e,msgToShow:"tools.subtitle.clickYoutubeSubtitleBtn()"})}}},{"./error":"2MpWC","@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],"8482s":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"haveNoPermission",()=>i),n.export(r,"withPermissionCheck",()=>s);var a=e("react-toastify"),o=e("../redux/storeNoStorage");function i(e){let{userInfo:t}=(0,o.store).getState().noStorager,r=t?.zm1_expired_or_not;return r&&"true"!==e}function s(e,t,r,n){return function(...o){if(i(t)){(0,a.toast).warning(r,{autoClose:5e3}),n&&n.open({duration:6e3,type:"error",content:`${r}`});return}return e(...o)}}},{"react-toastify":"h8uoK","../redux/storeNoStorage":"3Vwjp","@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],lWvef:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"AZURE_LANGUAGES_TRANS",()=>a),n.export(r,"LANG_MAP",()=>o);let a=[{value:"af",label:"\u5357\u975e\u8377\u5170\u8bed Afrikaans"},{value:"am",label:"\u963f\u59c6\u54c8\u62c9\u8bed \u12a0\u121b\u122d\u129b"},{value:"ar",label:"\u963f\u62c9\u4f2f\u8bed \u0627\u0644\u0639\u0631\u0628\u064a\u0629"},{value:"as",label:"\u963f\u8428\u59c6\u8bed \u0985\u09b8\u09ae\u09c0\u09af\u09bc\u09be"},{value:"az",label:"\u963f\u585e\u62dc\u7586\u8bed Az\u0259rbaycan"},{value:"ba",label:"\u5df4\u4ec0\u57fa\u5c14\u8bed Bashkir"},{value:"bg",label:"\u4fdd\u52a0\u5229\u4e9a\u8bed \u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438"},{value:"bho",label:"Bhojpuri \u092d\u094b\u091c\u092a\u0941\u0930\u0940"},{value:"bn",label:"\u5b5f\u52a0\u62c9\u8bed \u09ac\u09be\u0982\u09b2\u09be"},{value:"bo",label:"\u85cf\u8bed \u0f56\u0f7c\u0f51\u0f0b\u0f66\u0f90\u0f51\u0f0b"},{value:"brx",label:"Bodo \u092c\u0921\u093c\u094b"},{value:"bs",label:"\u6ce2\u65af\u5c3c\u4e9a\u8bed Bosanski"},{value:"ca",label:"\u52a0\u6cf0\u7f57\u5c3c\u4e9a\u8bed Catal\xe0"},{value:"cs",label:"\u6377\u514b\u8bed \u010ce\u0161tina"},{value:"cy",label:"\u5a01\u5c14\u58eb\u8bed Cymraeg"},{value:"da",label:"\u4e39\u9ea6\u8bed Dansk"},{value:"de",label:"\u5fb7\u8bed Deutsch"},{value:"doi",label:"Dogri \u0921\u094b\u0917\u0930\u0940"},{value:"dsb",label:"\u4e0b\u7d22\u5e03\u8bed Dolnoserb\u0161\u0107ina"},{value:"dv",label:"\u8fea\u7ef4\u5e0c\u8bed \u078b\u07a8\u0788\u07ac\u0780\u07a8\u0784\u07a6\u0790\u07b0"},{value:"el",label:"\u5e0c\u814a\u8bed \u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac"},{value:"en",label:"\u82f1\u8bed English"},{value:"es",label:"\u897f\u73ed\u7259\u8bed Espa\xf1ol"},{value:"et",label:"\u7231\u6c99\u5c3c\u4e9a\u8bed Eesti"},{value:"eu",label:"\u5df4\u65af\u514b\u8bed Euskara"},{value:"fa",label:"\u6ce2\u65af\u8bed \u0641\u0627\u0631\u0633\u06cc"},{value:"fi",label:"\u82ac\u5170\u8bed Suomi"},{value:"fil",label:"\u83f2\u5f8b\u5bbe\u8bed Filipino"},{value:"fj",label:"\u6590\u6d4e\u8bed Na Vosa Vakaviti"},{value:"fo",label:"\u6cd5\u7f57\u8bed F\xf8royskt"},{value:"fr",label:"\u6cd5\u8bed Fran\xe7ais"},{value:"fr-CA",label:"\u6cd5\u8bed (\u52a0\u62ff\u5927) Fran\xe7ais (Canada)"},{value:"ga",label:"\u7231\u5c14\u5170\u8bed Gaeilge"},{value:"gl",label:"\u52a0\u5229\u897f\u4e9a\u8bed Galego"},{value:"gom",label:"Konkani \u0915\u094b\u0902\u0915\u0923\u0940"},{value:"gu",label:"\u53e4\u5409\u62c9\u7279\u8bed \u0a97\u0ac1\u0a9c\u0ab0\u0abe\u0aa4\u0ac0"},{value:"ha",label:"\u8c6a\u8428\u8bed Hausa"},{value:"he",label:"\u5e0c\u4f2f\u6765\u8bed \u05e2\u05d1\u05e8\u05d9\u05ea"},{value:"hi",label:"\u5370\u5730\u8bed \u0939\u093f\u0928\u094d\u0926\u0940"},{value:"hne",label:"Chhattisgarhi \u091b\u0924\u094d\u0924\u0940\u0938\u0917\u0922\u093c\u0940"},{value:"hr",label:"\u514b\u7f57\u5730\u4e9a\u8bed Hrvatski"},{value:"hsb",label:"\u4e0a\u7d22\u5e03\u8bed Hornjoserb\u0161\u0107ina"},{value:"ht",label:"\u6d77\u5730\u514b\u91cc\u5965\u5c14\u8bed Haitian Creole"},{value:"hu",label:"\u5308\u7259\u5229\u8bed Magyar"},{value:"hy",label:"\u4e9a\u7f8e\u5c3c\u4e9a\u8bed \u0540\u0561\u0575\u0565\u0580\u0565\u0576"},{value:"id",label:"\u5370\u5ea6\u5c3c\u897f\u4e9a\u8bed Indonesia"},{value:"ig",label:"\u4f0a\u535a\u8bed \xc1s\u1ee5\u0300s\u1ee5\u0301 \xccgb\xf2"},{value:"ikt",label:"Inuinnaqtun Inuinnaqtun"},{value:"is",label:"\u51b0\u5c9b\u8bed \xcdslenska"},{value:"it",label:"\u610f\u5927\u5229\u8bed Italiano"},{value:"iu",label:"\u56e0\u7ebd\u7279\u8bed \u1403\u14c4\u1483\u144e\u1450\u1466"},{value:"iu-Latn",label:"Inuktitut (Latin) Inuktitut (Latin)"},{value:"ja",label:"\u65e5\u8bed \u65e5\u672c\u8a9e"},{value:"ka",label:"\u683c\u9c81\u5409\u4e9a\u8bed \u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8"},{value:"kk",label:"\u54c8\u8428\u514b\u8bed \u049a\u0430\u0437\u0430\u049b \u0422\u0456\u043b\u0456"},{value:"km",label:"\u9ad8\u68c9\u8bed \u1781\u17d2\u1798\u17c2\u179a"},{value:"kmr",label:"\u5e93\u5c14\u5fb7\u8bed (\u5317) Kurd\xee (Bakur)"},{value:"kn",label:"\u5361\u7eb3\u8fbe\u8bed \u0c95\u0ca8\u0ccd\u0ca8\u0ca1"},{value:"ko",label:"\u97e9\u8bed \ud55c\uad6d\uc5b4"},{value:"ks",label:"Kashmiri \u06a9\u0672\u0634\u064f\u0631"},{value:"ku",label:"\u5e93\u5c14\u5fb7\u8bed (\u4e2d) Kurd\xee (Nav\xeen)"},{value:"ky",label:"\u67ef\u5c14\u514b\u5b5c\u8bed \u041a\u044b\u0440\u0433\u044b\u0437\u0447\u0430"},{value:"ln",label:"\u6797\u52a0\u62c9\u8bed Ling\xe1la"},{value:"lo",label:"\u8001\u631d\u8bed \u0ea5\u0eb2\u0ea7"},{value:"lt",label:"\u7acb\u9676\u5b9b\u8bed Lietuvi\u0173"},{value:"lug",label:"Ganda Ganda"},{value:"lv",label:"\u62c9\u8131\u7ef4\u4e9a\u8bed Latvie\u0161u"},{value:"lzh",label:"Chinese (Literary) \u4e2d\u6587 (\u6587\u8a00\u6587)"},{value:"mai",label:"\u8fc8\u8482\u5229\u8bed \u092e\u0948\u0925\u093f\u0932\u0940"},{value:"mg",label:"\u9a6c\u62c9\u52a0\u65af\u8bed Malagasy"},{value:"mi",label:"\u6bdb\u5229\u8bed Te Reo M\u0101ori"},{value:"mk",label:"\u9a6c\u5176\u987f\u8bed \u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438"},{value:"ml",label:"\u9a6c\u62c9\u96c5\u62c9\u59c6\u8bed \u0d2e\u0d32\u0d2f\u0d3e\u0d33\u0d02"},{value:"mn-Cyrl",label:"Mongolian (Cyrillic) \u041c\u043e\u043d\u0433\u043e\u043b"},{value:"mn-Mong",label:"Mongolian (Traditional) \u182e\u1823\u1829\u182d\u1823\u182f \u182c\u1821\u182f\u1821"},{value:"mni",label:"Manipuri \uabc3\uabe9\uabc7\uabe9\uabc2\uabe3\uabdf"},{value:"mr",label:"\u9a6c\u62c9\u5730\u8bed \u092e\u0930\u093e\u0920\u0940"},{value:"ms",label:"\u9a6c\u6765\u8bed Melayu"},{value:"mt",label:"\u9a6c\u8033\u4ed6\u8bed Malti"},{value:"mww",label:"\u82d7\u8bed Hmong Daw"},{value:"my",label:"\u7f05\u7538\u8bed \u1019\u103c\u1014\u103a\u1019\u102c"},{value:"nb",label:"\u4e66\u9762\u632a\u5a01\u8bed Norsk Bokm\xe5l"},{value:"ne",label:"\u5c3c\u6cca\u5c14\u8bed \u0928\u0947\u092a\u093e\u0932\u0940"},{value:"nl",label:"\u8377\u5170\u8bed Nederlands"},{value:"nso",label:"Sesotho sa Leboa Sesotho sa Leboa"},{value:"nya",label:"Nyanja Nyanja"},{value:"or",label:"\u5965\u91cc\u4e9a\u8bed \u0b13\u0b21\u0b3c\u0b3f\u0b06"},{value:"otq",label:"\u514b\u96f7\u5854\u7f57\u5965\u6258\u7c73\u8bed H\xf1\xe4h\xf1u"},{value:"pa",label:"\u65c1\u906e\u666e\u8bed \u0a2a\u0a70\u0a1c\u0a3e\u0a2c\u0a40"},{value:"pl",label:"\u6ce2\u5170\u8bed Polski"},{value:"prs",label:"\u8fbe\u91cc\u8bed \u062f\u0631\u06cc"},{value:"ps",label:"\u666e\u4ec0\u56fe\u8bed \u067e\u069a\u062a\u0648"},{value:"pt",label:"\u8461\u8404\u7259\u8bed (\u5df4\u897f) Portugu\xeas (Brasil)"},{value:"pt-PT",label:"\u8461\u8404\u7259\u8bed (\u8461\u8404\u7259) Portugu\xeas (Portugal)"},{value:"ro",label:"\u7f57\u9a6c\u5c3c\u4e9a\u8bed Rom\xe2n\u0103"},{value:"ru",label:"\u4fc4\u8bed \u0420\u0443\u0441\u0441\u043a\u0438\u0439"},{value:"run",label:"Rundi Rundi"},{value:"rw",label:"\u5362\u65fa\u8fbe\u8bed Kinyarwanda"},{value:"sd",label:"\u4fe1\u5fb7\u8bed \u0633\u0646\u068c\u064a"},{value:"si",label:"\u50e7\u4f3d\u7f57\u8bed \u0dc3\u0dd2\u0d82\u0dc4\u0dbd"},{value:"sk",label:"\u65af\u6d1b\u4f10\u514b\u8bed Sloven\u010dina"},{value:"sl",label:"\u65af\u6d1b\u6587\u5c3c\u4e9a\u8bed Sloven\u0161\u010dina"},{value:"sm",label:"\u8428\u6469\u4e9a\u8bed Gagana S\u0101moa"},{value:"sn",label:"\u7ecd\u7eb3\u8bed chiShona"},{value:"so",label:"\u7d22\u9a6c\u91cc\u8bed Soomaali"},{value:"sq",label:"\u963f\u5c14\u5df4\u5c3c\u4e9a\u8bed Shqip"},{value:"sr-Cyrl",label:"\u585e\u5c14\u7ef4\u4e9a\u8bed (\u897f\u91cc\u5c14\u6587) \u0421\u0440\u043f\u0441\u043a\u0438 (\u045b\u0438\u0440\u0438\u043b\u0438\u0446\u0430)"},{value:"sr-Latn",label:"\u585e\u5c14\u7ef4\u4e9a\u8bed (\u62c9\u4e01\u6587) Srpski (latinica)"},{value:"st",label:"Sesotho Sesotho"},{value:"sv",label:"\u745e\u5178\u8bed Svenska"},{value:"sw",label:"\u65af\u74e6\u5e0c\u91cc\u8bed Kiswahili"},{value:"ta",label:"\u6cf0\u7c73\u5c14\u8bed \u0ba4\u0bae\u0bbf\u0bb4\u0bcd"},{value:"te",label:"\u6cf0\u5362\u56fa\u8bed \u0c24\u0c46\u0c32\u0c41\u0c17\u0c41"},{value:"th",label:"\u6cf0\u8bed \u0e44\u0e17\u0e22"},{value:"ti",label:"\u63d0\u683c\u5229\u5c3c\u4e9a\u8bed \u1275\u130d\u122d"},{value:"tk",label:"\u571f\u5e93\u66fc\u8bed T\xfcrkmen Dili"},{value:"tlh-Latn",label:"\u514b\u6797\u8d21\u8bed (\u62c9\u4e01\u6587) Klingon (Latin)"},{value:"tlh-Piqd",label:"\u514b\u6797\u8d21\u8bed (pIqaD) Klingon (pIqaD)"},{value:"tn",label:"Setswana Setswana"},{value:"to",label:"\u6c64\u52a0\u8bed Lea Fakatonga"},{value:"tr",label:"\u571f\u8033\u5176\u8bed T\xfcrk\xe7e"},{value:"tt",label:"\u9791\u977c\u8bed \u0422\u0430\u0442\u0430\u0440"},{value:"ty",label:"\u5854\u5e0c\u63d0\u8bed Reo Tahiti"},{value:"ug",label:"\u7ef4\u543e\u5c14\u8bed \u0626\u06c7\u064a\u063a\u06c7\u0631\u0686\u06d5"},{value:"uk",label:"\u4e4c\u514b\u5170\u8bed \u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430"},{value:"ur",label:"\u4e4c\u5c14\u90fd\u8bed \u0627\u0631\u062f\u0648"},{value:"uz",label:"\u4e4c\u5179\u522b\u514b\u8bed O\u2018Zbek"},{value:"vi",label:"\u8d8a\u5357\u8bed Ti\u1ebfng Vi\u1ec7t"},{value:"xh",label:"\u79d1\u8428\u8bed isiXhosa"},{value:"yo",label:"\u7ea6\u9c81\u5df4\u8bed \xc8d\xe8 Yor\xf9b\xe1"},{value:"yua",label:"\u5c24\u5361\u7279\u514b\u739b\u96c5\u8bed Yucatec Maya"},{value:"yue",label:"\u7ca4\u8bed (\u7e41\u4f53) \u7cb5\u8a9e (\u7e41\u9ad4)"},{value:"zh-Hans",label:"\u4e2d\u6587 (\u7b80\u4f53) \u4e2d\u6587 (\u7b80\u4f53)"},{value:"zh-Hant",label:"\u4e2d\u6587 (\u7e41\u4f53) \u7e41\u9ad4\u4e2d\u6587 (\u7e41\u9ad4)"},{value:"zu",label:"\u7956\u9c81\u8bed Isi-Zulu"}],o={ar:"\u963f\u62c9\u4f2f\u8bed",am:"\u963f\u59c6\u54c8\u62c9\u8bed",bg:"\u4fdd\u52a0\u5229\u4e9a\u8bed",bn:"\u5b5f\u52a0\u62c9\u8bed",ca:"\u52a0\u6cf0\u7f57\u5c3c\u4e9a\u8bed",cs:"\u6377\u514b\u8bed",da:"\u4e39\u9ea6\u8bed",de:"\u5fb7\u8bed",el:"\u5e0c\u814a\u8bed",en:"\u82f1\u8bed",en_AU:"\u82f1\u8bed\uff08\u6fb3\u5927\u5229\u4e9a\uff09",en_GB:"\u82f1\u8bed\uff08\u82f1\u56fd\uff09",en_US:"\u82f1\u8bed\uff08\u7f8e\u56fd\uff09",es:"\u897f\u73ed\u7259\u8bed",es_419:"\u897f\u73ed\u7259\u8bed\uff08\u62c9\u4e01\u7f8e\u6d32\u548c\u52a0\u52d2\u6bd4\u5730\u533a\uff09",et:"\u7231\u6c99\u5c3c\u4e9a\u8bed",fa:"\u6ce2\u65af\u8bed",fi:"\u82ac\u5170\u8bed",fil:"\u83f2\u5f8b\u5bbe\u8bed",fr:"\u6cd5\u8bed",gu:"\u53e4\u5409\u62c9\u7279\u8bed",he:"\u5e0c\u4f2f\u6765\u8bed",hi:"\u5370\u5730\u8bed",hr:"\u514b\u7f57\u5730\u4e9a\u8bed",hu:"\u5308\u7259\u5229\u8bed",id:"\u5370\u5c3c\u8bed",it:"\u610f\u5927\u5229\u8bed",ja:"\u65e5\u8bed",kn:"\u5361\u7eb3\u8fbe\u8bed",ko:"\u97e9\u8bed",lt:"\u7acb\u9676\u5b9b\u8bed",lv:"\u62c9\u8131\u7ef4\u4e9a\u8bed",ml:"\u9a6c\u62c9\u96c5\u62c9\u59c6\u8bed",mr:"\u9a6c\u62c9\u5730\u8bed",ms:"\u9a6c\u6765\u8bed",nl:"\u8377\u5170\u8bed",no:"\u632a\u5a01\u8bed",pl:"\u6ce2\u5170\u8bed",pt:"\u8461\u8404\u7259\u8bed",pt_BR:"\u8461\u8404\u7259\u8bed\uff08\u5df4\u897f\uff09",pt_PT:"\u8461\u8404\u7259\u8bed\uff08\u8461\u8404\u7259\uff09",ro:"\u7f57\u9a6c\u5c3c\u4e9a\u8bed",ru:"\u4fc4\u8bed",sk:"\u65af\u6d1b\u4f10\u514b\u8bed",sl:"\u65af\u6d1b\u6587\u5c3c\u4e9a\u8bed",sr:"\u585e\u5c14\u7ef4\u4e9a\u8bed",sv:"\u745e\u5178\u8bed",sw:"\u65af\u74e6\u5e0c\u91cc\u8bed",ta:"\u6cf0\u7c73\u5c14\u8bed",te:"\u6cf0\u5362\u56fa\u8bed",th:"\u6cf0\u8bed ",tr:"\u571f\u8033\u5176\u8bed",uk:"\u4e4c\u514b\u5170\u8bed",vi:"\u8d8a\u5357\u8bed",zh:"\u4e2d\u6587",zh_CN:"\u4e2d\u6587\uff08\u4e2d\u56fd\uff09",zh_TW:"\u4e2d\u6587\uff08\u53f0\u6e7e\uff09"}},{"@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],bk8TP:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"checkJWT",()=>s),n.export(r,"getJwtsId",()=>l),n.export(r,"getExtensionId",()=>u),n.export(r,"getExtensionOptionsUrl",()=>c),n.export(r,"openOptionsPage",()=>d);var a=e("jwt-decode"),o=e("@plasmohq/messaging"),i=e("react-toastify");function s(e){if(!e)return!1;let t={id:0,iat:0,exp:0};return e.length>1?t=(0,a.jwtDecode)(e):t.exp=0,!(!t?.id||t?.exp<Date.now()/1e3)}function l(e){try{if(!e)return null;let t={id:0,iat:0,exp:0};if(!(e.length>1)||(t=(0,a.jwtDecode)(e),!t?.id))return null;return t.id}catch(e){return null}}function u(){try{return chrome.runtime.id}catch(e){return console.error("\u65e0\u6cd5\u83b7\u53d6\u6269\u5c55ID:",e),null}}function c(){return chrome.runtime.getURL("options.html")||""}function d({paramValue:e,optionsUrl:t}){let r=`${t}?items=${encodeURIComponent(e)}`;(0,o.sendToBackground)({name:"subtitle-msg",body:{msgType:"open_options_page",optionsUrl:r}}).then(e=>{e?.resultArr?.length>0||e?.error&&((0,i.toast).dismiss(),(0,i.toast).error(`status:${e?.error},name:${e?.name},message:${e?.message}`,{autoClose:99999}))})}},{"jwt-decode":"du0IS","@plasmohq/messaging":"bq7mF","react-toastify":"h8uoK","@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],aMQYp:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default={}},{"@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],bq9Y7:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default={}},{"@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],eP5gr:[function(e,t,r){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(r),r.default={}},{"@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],iqY5N:[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js"),a=e("@plasmohq/messaging"),o=e("../redux/store"),i=e("~tools/constants"),s=e("~tools/logger"),l=e("date-and-time"),u=n.interopDefault(l),c=e("~tools/background"),d=e("~tools/jwt"),f=e("~tools/storages");let p=async()=>{let e=await (0,f.storage).get(i.STORAGE_RANDOMUUID);return void 0===e&&(e="undefined"!=typeof self&&self.crypto&&self.crypto.randomUUID?self.crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}),(0,f.storage).set(i.STORAGE_RANDOMUUID,e)),(0,s.logger).log("randomUUID is ",e),e};async function h(){let[e]=await chrome.tabs.query({active:!0,lastFocusedWindow:!0});return e}async function m(e){await h()}async function g(){let e=new Date,t=(0,u.default).format(e,"YYYY-MM-DD HH:mm:ss");(0,s.logger).log(`in refreshJWT() ${t}`);let r=await (0,f.storageSync).get(i.ZIMU1_USESTORAGE_SYNC_JWT),n=await (0,f.storageSync).get(i.ZIMU1_USESTORAGE_SYNC_HEADIMGURL),a=await (0,f.storageSync).get(i.ZIMU1_USESTORAGE_SYNC_NICKNAME);if(!(0,d.checkJWT)(r)||!(0,c.checkJwtExpireByDays)(r))return;(0,s.logger).log(`after checkJwtExpireByDays() ${t}`);let o=new Headers;o.append("Authorization",`Bearer ${r}`),fetch("https://1zimu.com/subtitle/api/rjwt",{method:"POST",headers:o,redirect:"follow"}).then(async e=>{let t=await e.json();t?.jwt&&(0,d.checkJWT)(t.jwt)?(await (0,f.storageSync).set(i.ZIMU1_USESTORAGE_SYNC_JWT,t.jwt),y("zimu1_jwt",t.jwt),y("zimu1_headimgurl",n),y("zimu1_nickname",a)):console.warn("jwt isn't refresh!")}).catch(e=>(0,s.logger).error(e))}function y(e,t){let r=new Date,n=r.setDate(r.getDate()+365);var a={domain:i.ZIMU1_COM,path:"/",expirationDate:n,httpOnly:!1,name:e,value:t,url:`https://${i.ZIMU1_COM}`};chrome.cookies.set(a,function(e){})}async function b(e){e?.ret1?.retCreateArr?.length>0||e?.ret1?.retUpdateArr?.length>0?await (0,f.storage).set(i.STORAGE_IDLETIME_VIDEO_ACTIVETIME,i.IDLETIME_STORAGE_DEFAULT_VALUE):console.warn("STORAGE_IDLETIME_VIDEO_ACTIVETIME do not update"),e?.ret2?.retCreateArr?.length>0||e?.ret2?.retUpdateArr?.length>0?await (0,f.storage).set(i.STORAGE_IDLETIME_DRAGGABLESUBTITLELIST_ACTIVETIME,i.IDLETIME_STORAGE_DEFAULT_VALUE):console.warn("STORAGE_IDLETIME_DRAGGABLESUBTITLELIST_ACTIVETIME do not update"),e?.ret3?.retCreateArr?.length>0||e?.ret3?.retUpdateArr?.length>0?await (0,f.storage).set(i.STORAGE_IDLETIME_NEXTJSSUBTITLELIST_ACTIVETIME,i.IDLETIME_STORAGE_DEFAULT_VALUE):console.warn("STORAGE_IDLETIME_NEXTJSSUBTITLELIST_ACTIVETIME do not update"),e?.ret4?.retCreateArr?.length>0||e?.ret4?.retUpdateArr?.length>0?await (0,f.storage).set(i.STORAGE_IDLETIME_DRAGGABLEDICT_ACTIVETIME,i.IDLETIME_STORAGE_DEFAULT_VALUE):console.warn("STORAGE_IDLETIME_DRAGGABLEDICT_ACTIVETIME do not update"),e?.ret5?.retCreateArr?.length>0||e?.ret5?.retUpdateArr?.length>0?await (0,f.storage).set(i.STORAGE_IDLETIME_YOUTUBESUBTITLELIST_ACTIVETIME,i.IDLETIME_STORAGE_DEFAULT_VALUE):console.warn("STORAGE_IDLETIME_YOUTUBESUBTITLELIST_ACTIVETIME do not update"),e?.ret6?.retCreateArr?.length>0||e?.ret6?.retUpdateArr?.length>0?await (0,f.storage).set(i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_OTHER,i.IDLETIME_STORAGE_DEFAULT_VALUE):console.warn("STORAGE_IDLETIME_VIDEO_ACTIVETIME_OTHER do not update"),e?.ret7?.retCreateArr?.length>0||e?.ret7?.retUpdateArr?.length>0?await (0,f.storage).set(i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_YOUTUBE,i.IDLETIME_STORAGE_DEFAULT_VALUE):console.warn("STORAGE_IDLETIME_VIDEO_ACTIVETIME_YOUTUBE do not update"),e?.ret8?.retCreateArr?.length>0||e?.ret8?.retUpdateArr?.length>0?await (0,f.storage).set(i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_BILIBILI,i.IDLETIME_STORAGE_DEFAULT_VALUE):console.warn("STORAGE_IDLETIME_VIDEO_ACTIVETIME_BILIBILI do not update"),e?.ret9?.retCreateArr?.length>0||e?.ret9?.retUpdateArr?.length>0?await (0,f.storage).set(i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_1ZIMU,i.IDLETIME_STORAGE_DEFAULT_VALUE):console.warn("STORAGE_IDLETIME_VIDEO_ACTIVETIME_1ZIMU do not update"),e?.ret10?.retCreateArr?.length>0||e?.ret10?.retUpdateArr?.length>0?await (0,f.storage).set(i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_BAIDUPAN,i.IDLETIME_STORAGE_DEFAULT_VALUE):console.warn("STORAGE_IDLETIME_VIDEO_ACTIVETIME_BAIDUPAN do not update")}async function _(e){let t=new Headers;t.append("Content-Type","application/json");let r=JSON.stringify(e),n=await fetch("https://1zimu.com/subtitle/api/postzimuoptimeuuid",{method:"POST",headers:t,body:r,redirect:"follow"}),a=await n.json();(0,s.logger).log("resultJson in postActiveTimeWithUUIDInterval() is ",a),b(a)}async function T(){let e=await (0,f.storageSync).get(i.ZIMU1_USESTORAGE_SYNC_JWT),t=new Date,r=(0,u.default).format(t,"YYYY-MM-DD HH:mm:ss");(0,s.logger).log(`jwt in postActiveTimeInterval() ${r} :>> `,e);let n=await (0,f.storage).get(i.STORAGE_IDLETIME_VIDEO_ACTIVETIME),a=(0,c.deleteKeys)(n),o=await (0,f.storage).get(i.STORAGE_IDLETIME_DRAGGABLESUBTITLELIST_ACTIVETIME),l=(0,c.deleteKeys)(o),h=await (0,f.storage).get(i.STORAGE_IDLETIME_DRAGGABLEDICT_ACTIVETIME),m=(0,c.deleteKeys)(h),g=await (0,f.storage).get(i.STORAGE_IDLETIME_NEXTJSSUBTITLELIST_ACTIVETIME),y=(0,c.deleteKeys)(g),T=await (0,f.storage).get(i.STORAGE_IDLETIME_YOUTUBESUBTITLELIST_ACTIVETIME),S=(0,c.deleteKeys)(T),v=await (0,f.storage).get(i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_OTHER),w=(0,c.deleteKeys)(v),E=await (0,f.storage).get(i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_YOUTUBE),x=(0,c.deleteKeys)(E),I=await (0,f.storage).get(i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_BILIBILI),O=(0,c.deleteKeys)(I),A=await (0,f.storage).get(i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_1ZIMU),R=(0,c.deleteKeys)(A),k=await (0,f.storage).get(i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_BAIDUPAN),M=(0,c.deleteKeys)(k);if(0===Object.keys(l).length&&0===Object.keys(y).length&&0===Object.keys(S).length&&0===Object.keys(a).length&&0===Object.keys(m).length&&0===Object.keys(w).length&&0===Object.keys(O).length&&0===Object.keys(x).length&&0===Object.keys(R).length&&0===Object.keys(M).length){(0,s.logger).log("\u78c1\u76d8\u4e2d\u6570\u636e\u90fd\u4e3a\u7a7a\u65f6 return\uff0c\u51cf\u8f7b\u670d\u52a1\u5668\u538b\u529b");return}let D=await p(),L={uuid:D,[i.STORAGE_IDLETIME_VIDEO_ACTIVETIME]:a,[i.STORAGE_IDLETIME_DRAGGABLESUBTITLELIST_ACTIVETIME]:l,[i.STORAGE_IDLETIME_DRAGGABLEDICT_ACTIVETIME]:m,[i.STORAGE_IDLETIME_NEXTJSSUBTITLELIST_ACTIVETIME]:y,[i.STORAGE_IDLETIME_YOUTUBESUBTITLELIST_ACTIVETIME]:S,[i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_OTHER]:w,[i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_YOUTUBE]:x,[i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_BILIBILI]:O,[i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_1ZIMU]:R,[i.STORAGE_IDLETIME_VIDEO_ACTIVETIME_BAIDUPAN]:M};if(!(0,d.checkJWT)(e)){await _(L);return}let C=new Headers;C.append("Content-Type","application/json"),C.append("Authorization",`Bearer ${e}`);let j=JSON.stringify(L),P=await fetch("https://1zimu.com/subtitle/api/postzimuoptime",{method:"POST",headers:C,body:j,redirect:"follow"}),U=await P.json();(0,s.logger).log("resultJson?.ret2?.retCreateArr?.length is ",U?.ret2?.retCreateArr?.length,"resultJson?.ret2?.retUpdateArr?.length is ",U?.ret2?.retUpdateArr?.length),(0,s.logger).log("resultJson?.ret8?.retCreateArr?.length is ",U?.ret8?.retCreateArr?.length,"resultJson?.ret8?.retUpdateArr?.length is ",U?.ret8?.retUpdateArr?.length),b(U)}(0,o.persistor).subscribe(()=>{o.store?.getState()?.odd?.popupShow?(chrome.action.setBadgeText({text:""}),chrome.action.setBadgeBackgroundColor({color:[0,0,0,0]})):(chrome.action.setBadgeText({text:"\u7981\u7528"}),chrome.action.setBadgeBackgroundColor({color:[255,0,0,255]}))}),chrome.tabs.onActivated.addListener(m),chrome.tabs.onRemoved.addListener(async e=>{await h()}),(0,f.storage).watch({storage_user_info:e=>{(0,s.logger).log("storage.watch() storage_user_info is ",e.newValue)},allShortcuts:e=>{},showSubtitle:e=>{},idleTimeYoutubeSubListActivetime:e=>{(0,s.logger).log("storage.watch() idleTimeYoutubeSubListActivetime is ",e.newValue)},idleTimeVideoActivetime:e=>{(0,s.logger).log("storage.watch() idleTimeVideoActivetime is ",e.newValue)},idleTimeDraggableDictActivetime:e=>{},idleTimeDraggableSubListActivetime:e=>{},idleTimeNextjsSubListActivetime:e=>{},zimu1_useStorage_sync_jwt:e=>{}}),(async()=>{await p();let e=new Date,t=(0,u.default).format(e,"YYYY-MM-DD HH:mm:ss");(0,s.logger).log(`in async()=>{} ${t}`);let r=await (0,f.storage).get(i.STORAGE_SHOWSUBTITLE),n=await (0,f.storage).get(i.STORAGE_SHOWSUBTITLELIST),a=await (0,f.storage).get(i.STORAGE_SHOWTTSSUBTITLELIST),o=await (0,f.storage).get(i.STORAGE_SHOWVIDEOMASK),l=await (0,f.storage).get(i.STORAGE_SHOWSUBTITLELISTMASK),c=await (0,f.storage).get(i.STORAGE_SHOWZHSUBTITLE),d=await (0,f.storage).get(i.STORAGE_SHOWFLOATBALL),h=await (0,f.storage).get(i.STORAGE_SUBTITLELIST_TABS_SCROLL),m=await (0,f.storage).get(i.STORAGE_DISABLESHORTCUTS),y=await (0,f.storage).get(i.STORAGE_FOLLOW_READ_TIMES),b=await (0,f.storage).get(i.STORAGE_VIDEO_MASK_HEIGHT),_=await (0,f.storage).get(i.STORAGE_FOLLOW_READ_LENGTH),S=await (0,f.storage).get(i.STORAGE_PLAYED_THEN_PAUSE),v=await (0,f.storage).get(i.STORAGE_SUBTITLELIST_LANGUAGE_MODE_TO_SHOW),w=await (0,f.storage).get(i.STORAGE_REPLAY_TIMES),E=await (0,f.storage).get(i.STORAGE_MAX_PAUSE_TIME);void 0===w&&await (0,f.storage).set(i.STORAGE_REPLAY_TIMES,i.REPEAT_INIT_TIMES),void 0===E&&await (0,f.storage).set(i.STORAGE_MAX_PAUSE_TIME,i.DEFAULT_MAX_PAUSE_TIME),void 0===r&&await (0,f.storage).set(i.STORAGE_SHOWSUBTITLE,!0),void 0===c&&await (0,f.storage).set(i.STORAGE_SHOWZHSUBTITLE,!0),void 0===d&&await (0,f.storage).set(i.STORAGE_SHOWFLOATBALL,!0),void 0===h&&await (0,f.storage).set(i.STORAGE_SUBTITLELIST_TABS_SCROLL,"2"),void 0===m&&await (0,f.storage).set(i.STORAGE_DISABLESHORTCUTS,!0),void 0===n&&await (0,f.storage).set(i.STORAGE_SHOWSUBTITLELIST,!0),void 0===a&&await (0,f.storage).set(i.STORAGE_SHOWTTSSUBTITLELIST,!1),void 0===o&&await (0,f.storage).set(i.STORAGE_SHOWVIDEOMASK,!1),void 0===l&&await (0,f.storage).set(i.STORAGE_SHOWSUBTITLELISTMASK,!1),void 0===y&&await (0,f.storage).set(i.STORAGE_FOLLOW_READ_TIMES,i.STORAGE_DEFAULT_FOLLOW_READ_TIMES),void 0===b&&await (0,f.storage).set(i.STORAGE_VIDEO_MASK_HEIGHT,i.STORAGE_DEFAULT_VIDEO_MASK_HEIGHT),void 0===_&&await (0,f.storage).set(i.STORAGE_FOLLOW_READ_LENGTH,i.STORAGE_DEFAULT_FOLLOW_READ_LENGTH),void 0===S&&await (0,f.storage).set(i.STORAGE_PLAYED_THEN_PAUSE,!1),void 0===v&&await (0,f.storage).set(i.STORAGE_SUBTITLELIST_LANGUAGE_MODE_TO_SHOW,[i.CASCADER_OPTION_MIX]);let x=await (0,f.storage).get(i.STORAGE_ALL_SHORTCUTS);void 0===x&&await (0,f.storage).set(i.STORAGE_ALL_SHORTCUTS,i.ALL_SHORT_CUTS),await T(),await g()})(),chrome.windows.onRemoved.addListener(async()=>{}),chrome.windows.onCreated.addListener(async()=>{}),chrome.runtime.onInstalled.addListener(async({reason:e})=>{chrome.contextMenus.create({id:"zimu1ContextMenus",title:"\u7ffb\u8bd1\u6240\u9009\u6587\u672c",contexts:["all"]}),(0,s.logger).log("reason :>> ",e),e.includes("install")||e.includes("update")&&await g(),chrome.alarms.clearAll();let t=await chrome.alarms.get("postActiveTimeInterval"),r=await chrome.alarms.get("refreshJWT");t||await chrome.alarms.create("postActiveTimeInterval",{periodInMinutes:3}),r||await chrome.alarms.create("refreshJWT",{periodInMinutes:10})}),chrome.alarms.onAlarm.addListener(async e=>{"postActiveTimeInterval"===e.name?await T():"refreshJWT"===e.name&&await g()}),chrome.contextMenus.onClicked.addListener(async function(e,t){if("zimu1ContextMenus"===e.menuItemId&&e.selectionText)try{let t=e.selectionText,r=t.replace(/[\/\\%\n\r\t]+/g,""),n={wordsFromMenusClick:r,nowTimeFromMenusClick:Date.now()};await (0,a.sendToContentScript)({name:"contextMenusMsg",body:n})}catch(e){console.error("catched error in backgroud.index :>> ",e)}})},{"@plasmohq/messaging":"bq7mF","../redux/store":"4ACRl","~tools/constants":"aHxh8","~tools/logger":"jKVtu","date-and-time":"f4Vy3","~tools/background":"4Sbj5","~tools/jwt":"bk8TP","~tools/storages":"68W9f","@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],f4Vy3:[function(e,t,r){/**
* @preserve date-and-time (c) KNOWLEDGECODE | MIT
*/var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"default",()=>p);var a,o={},i={},s="en",l={MMMM:["January","February","March","April","May","June","July","August","September","October","November","December"],MMM:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dddd:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ddd:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dd:["Su","Mo","Tu","We","Th","Fr","Sa"],A:["AM","PM"]},u={YYYY:function(e){return("000"+e.getFullYear()).slice(-4)},YY:function(e){return("0"+e.getFullYear()).slice(-2)},Y:function(e){return""+e.getFullYear()},MMMM:function(e){return this.res.MMMM[e.getMonth()]},MMM:function(e){return this.res.MMM[e.getMonth()]},MM:function(e){return("0"+(e.getMonth()+1)).slice(-2)},M:function(e){return""+(e.getMonth()+1)},DD:function(e){return("0"+e.getDate()).slice(-2)},D:function(e){return""+e.getDate()},HH:function(e){return("0"+e.getHours()).slice(-2)},H:function(e){return""+e.getHours()},A:function(e){return this.res.A[e.getHours()>11|0]},hh:function(e){return("0"+(e.getHours()%12||12)).slice(-2)},h:function(e){return""+(e.getHours()%12||12)},mm:function(e){return("0"+e.getMinutes()).slice(-2)},m:function(e){return""+e.getMinutes()},ss:function(e){return("0"+e.getSeconds()).slice(-2)},s:function(e){return""+e.getSeconds()},SSS:function(e){return("00"+e.getMilliseconds()).slice(-3)},SS:function(e){return("0"+(e.getMilliseconds()/10|0)).slice(-2)},S:function(e){return""+(e.getMilliseconds()/100|0)},dddd:function(e){return this.res.dddd[e.getDay()]},ddd:function(e){return this.res.ddd[e.getDay()]},dd:function(e){return this.res.dd[e.getDay()]},Z:function(e){var t=e.getTimezoneOffset()/.6|0;return(t>0?"-":"+")+("000"+Math.abs(t-(t%100*.4|0))).slice(-4)},ZZ:function(e){var t=e.getTimezoneOffset(),r=Math.abs(t);return(t>0?"-":"+")+("0"+(r/60|0)).slice(-2)+":"+("0"+r%60).slice(-2)},post:function(e){return e},res:l},c={YYYY:function(e){return this.exec(/^\d{4}/,e)},Y:function(e){return this.exec(/^\d{1,4}/,e)},MMMM:function(e){var t=this.find(this.res.MMMM,e);return t.value++,t},MMM:function(e){var t=this.find(this.res.MMM,e);return t.value++,t},MM:function(e){return this.exec(/^\d\d/,e)},M:function(e){return this.exec(/^\d\d?/,e)},DD:function(e){return this.exec(/^\d\d/,e)},D:function(e){return this.exec(/^\d\d?/,e)},HH:function(e){return this.exec(/^\d\d/,e)},H:function(e){return this.exec(/^\d\d?/,e)},A:function(e){return this.find(this.res.A,e)},hh:function(e){return this.exec(/^\d\d/,e)},h:function(e){return this.exec(/^\d\d?/,e)},mm:function(e){return this.exec(/^\d\d/,e)},m:function(e){return this.exec(/^\d\d?/,e)},ss:function(e){return this.exec(/^\d\d/,e)},s:function(e){return this.exec(/^\d\d?/,e)},SSS:function(e){return this.exec(/^\d{1,3}/,e)},SS:function(e){var t=this.exec(/^\d\d?/,e);return t.value*=10,t},S:function(e){var t=this.exec(/^\d/,e);return t.value*=100,t},Z:function(e){var t=this.exec(/^[+-]\d{2}[0-5]\d/,e);return t.value=-((t.value/100|0)*60)-t.value%100,t},ZZ:function(e){var t=/^([+-])(\d{2}):([0-5]\d)/.exec(e)||["","","",""];return{value:0-((t[1]+t[2]|0)*60+(t[1]+t[3]|0)),length:t[0].length}},h12:function(e,t){return(12===e?0:e)+12*t},exec:function(e,t){var r=(e.exec(t)||[""])[0];return{value:0|r,length:r.length}},find:function(e,t){for(var r,n=-1,a=0,o=0,i=e.length;o<i;o++)r=e[o],!t.indexOf(r)&&r.length>a&&(n=o,a=r.length);return{value:n,length:a}},pre:function(e){return e},res:l},d=function(e,t,r,n){var a,o={};for(a in e)o[a]=e[a];for(a in t||{})!!r^!!o[a]||(o[a]=t[a]);return n&&(o.res=n),o},f={_formatter:u,_parser:c};f.compile=function(e){return[e].concat(e.match(/\[(?:[^[\]]|\[[^[\]]*])*]|([A-Za-z])\1*|\.{3}|./g)||[])},f.format=function(e,t,r){for(var n,o=this||a,i="string"==typeof t?o.compile(t):t,s=o._formatter,l=function(){if(r){var t=new Date(e.getTime());return t.getFullYear=t.getUTCFullYear,t.getMonth=t.getUTCMonth,t.getDate=t.getUTCDate,t.getHours=t.getUTCHours,t.getMinutes=t.getUTCMinutes,t.getSeconds=t.getUTCSeconds,t.getMilliseconds=t.getUTCMilliseconds,t.getDay=t.getUTCDay,t.getTimezoneOffset=function(){return 0},t.getTimezoneName=function(){return"UTC"},t}return e}(),u=/^\[(.*)\]$/,c="",d=1,f=i.length;d<f;d++)c+=s[n=i[d]]?s.post(s[n](l,i[0])):u.test(n)?n.replace(u,"$1"):n;return c},f.preparse=function(e,t){var r=this||a,n="string"==typeof t?r.compile(t):t,o=r._parser,i={Y:1970,M:1,D:1,H:0,A:0,h:0,m:0,s:0,S:0,Z:0,_index:0,_length:0,_match:0},s=/^\[(.*)\]$/;e=o.pre(e);for(var l,u,c,d=1,f=n.length;d<f;d++)if(l=n[d],u=e.substring(i._index),o[l]){if(!(c=o[l](u,n[0])).length)break;i[c.token||l.charAt(0)]=c.value,i._index+=c.length,i._match++}else if(l===u.charAt(0)||" "===l)i._index++;else if(s.test(l)&&!u.indexOf(l.replace(s,"$1")))i._index+=l.length-2;else if("..."===l){i._index=e.length;break}else break;return i.H=i.H||o.h12(i.h,i.A),i._length=e.length,i},f.parse=function(e,t,r){var n=this||a,o="string"==typeof t?n.compile(t):t,i=n.preparse(e,o);return n.isValid(i)?(i.M-=i.Y<100?22801:1,r||~n._parser.find(o,"ZZ").value)?new Date(Date.UTC(i.Y,i.M,i.D,i.H,i.m+i.Z,i.s,i.S)):new Date(i.Y,i.M,i.D,i.H,i.m,i.s,i.S):new Date(NaN)},f.isValid=function(e,t){var r=this||a,n="string"==typeof e?r.preparse(e,t):e;return!(n._index<1||n._length<1||n._index-n._length||n._match<1||n.Y<1||n.Y>9999||n.M<1||n.M>12||n.D<1||n.D>new Date(n.Y,n.M,0).getDate()||n.H<0||n.H>23||n.m<0||n.m>59||n.s<0||n.s>59||n.S<0||n.S>999||n.Z<-840||n.Z>720)},f.transform=function(e,t,r,n){let o=this||a;return o.format(o.parse(e,t),r,n)},f.addYears=function(e,t,r){return(this||a).addMonths(e,12*t,r)},f.addMonths=function(e,t,r){var n=new Date(e.getTime());return r?(n.setUTCMonth(n.getUTCMonth()+t),n.getUTCDate()<e.getUTCDate()&&n.setUTCDate(0)):(n.setMonth(n.getMonth()+t),n.getDate()<e.getDate()&&n.setDate(0)),n},f.addDays=function(e,t,r){var n=new Date(e.getTime());return r?n.setUTCDate(n.getUTCDate()+t):n.setDate(n.getDate()+t),n},f.addHours=function(e,t){return new Date(e.getTime()+36e5*t)},f.addMinutes=function(e,t){return new Date(e.getTime()+6e4*t)},f.addSeconds=function(e,t){return new Date(e.getTime()+1e3*t)},f.addMilliseconds=function(e,t){return new Date(e.getTime()+t)},f.subtract=function(e,t){var r=e.getTime()-t.getTime();return{toMilliseconds:function(){return r},toSeconds:function(){return r/1e3},toMinutes:function(){return r/6e4},toHours:function(){return r/36e5},toDays:function(){return r/864e5}}},f.isLeapYear=function(e){return!(e%4)&&!!(e%100)||!(e%400)},f.isSameDay=function(e,t){return e.toDateString()===t.toDateString()},f.locale=function(e,t){o[e]||(o[e]=t)},f.plugin=function(e,t){i[e]||(i[e]=t)},(a=d(f)).locale=function(e){var t="function"==typeof e?e:a.locale[e];if(!t)return s;var r=o[s=t(f)]||{},n=d(l,r.res,!0),p=d(u,r.formatter,!0,n),h=d(c,r.parser,!0,n);for(var m in a._formatter=p,a._parser=h,i)a.extend(i[m]);return s},a.extend=function(e){var t=d(a._parser.res,e.res),r=e.extender||{};for(var n in a._formatter=d(a._formatter,e.formatter,!1,t),a._parser=d(a._parser,e.parser,!1,t),r)a[n]||(a[n]=r[n])},a.plugin=function(e){var t="function"==typeof e?e:a.plugin[e];t&&a.extend(i[t(f,a)]||{})};var p=a},{"@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],"4Sbj5":[function(e,t,r){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(r),n.export(r,"isValidDate",()=>s),n.export(r,"deleteKeys",()=>l),n.export(r,"checkJwtExpireByDays",()=>u);var a=e("moment"),o=n.interopDefault(a),i=e("jwt-decode");function s(e){return(0,o.default)(e,"YYYY-MM-DD",!0).isValid()}function l(e){return e?Object.keys(e).reduce((t,r)=>(s(r)&&(t[r]=e[r]),t),{}):{}}function u(e,t=15){if(!e)return!1;let r={id:0,iat:0,exp:0};e.length>1?r=(0,i.jwtDecode)(e):r.exp=0;let n=Date.now()/1e3,a=(r.exp-n)/86400;return a<t}},{moment:"2Vnr9","jwt-decode":"du0IS","@parcel/transformer-js/src/esmodule-helpers.js":"hbR2Q"}],"2Vnr9":[function(e,t,r){t.exports=function(){function e(){return W.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function n(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function o(e){var t;if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(t in e)if(a(e,t))return!1;return!0}function i(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var r,n=[],a=e.length;for(r=0;r<a;++r)n.push(t(e[r],r));return n}function c(e,t){for(var r in t)a(t,r)&&(e[r]=t[r]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function d(e,t,r,n){return ta(e,t,r,n,!0).utc()}function f(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function p(e){var t=null,r=!1,n=e._d&&!isNaN(e._d.getTime());return(n&&(t=f(e),r=F.call(t.parsedDateParts,function(e){return null!=e}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e))?n:(e._isValid=n,e._isValid)}function h(e){var t=d(NaN);return null!=e?c(f(t),e):f(t).userInvalidated=!0,t}F=Array.prototype.some?Array.prototype.some:function(e){var t,r=Object(this),n=r.length>>>0;for(t=0;t<n;t++)if(t in r&&e.call(this,r[t],t,r))return!0;return!1};var m,g,y=e.momentProperties=[],b=!1;function _(e,t){var r,n,a,o=y.length;if(i(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),i(t._i)||(e._i=t._i),i(t._f)||(e._f=t._f),i(t._l)||(e._l=t._l),i(t._strict)||(e._strict=t._strict),i(t._tzm)||(e._tzm=t._tzm),i(t._isUTC)||(e._isUTC=t._isUTC),i(t._offset)||(e._offset=t._offset),i(t._pf)||(e._pf=f(t)),i(t._locale)||(e._locale=t._locale),o>0)for(r=0;r<o;r++)i(a=t[n=y[r]])||(e[n]=a);return e}function T(t){_(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,e.updateOffset(this),b=!1)}function S(e){return e instanceof T||null!=e&&null!=e._isAMomentObject}function v(t){!1===e.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function w(t,r){var n=!0;return c(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,t),n){var o,i,s,l=[],u=arguments.length;for(i=0;i<u;i++){if(o="","object"==typeof arguments[i]){for(s in o+="\n["+i+"] ",arguments[0])a(arguments[0],s)&&(o+=s+": "+arguments[0][s]+", ");o=o.slice(0,-2)}else o=arguments[i];l.push(o)}v(t+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+Error().stack),n=!1}return r.apply(this,arguments)},r)}var E={};function x(t,r){null!=e.deprecationHandler&&e.deprecationHandler(t,r),E[t]||(v(r),E[t]=!0)}function I(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function O(e,t){var r,o=c({},e);for(r in t)a(t,r)&&(n(e[r])&&n(t[r])?(o[r]={},c(o[r],e[r]),c(o[r],t[r])):null!=t[r]?o[r]=t[r]:delete o[r]);for(r in e)a(e,r)&&!a(t,r)&&n(e[r])&&(o[r]=c({},o[r]));return o}function A(e){null!=e&&this.set(e)}function R(e,t,r){var n=""+Math.abs(e);return(e>=0?r?"+":"":"-")+Math.pow(10,Math.max(0,t-n.length)).toString().substr(1)+n}e.suppressDeprecationWarnings=!1,e.deprecationHandler=null,B=Object.keys?Object.keys:function(e){var t,r=[];for(t in e)a(e,t)&&r.push(t);return r};var k=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,M=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,D={},L={};function C(e,t,r,n){var a=n;"string"==typeof n&&(a=function(){return this[n]()}),e&&(L[e]=a),t&&(L[t[0]]=function(){return R(a.apply(this,arguments),t[1],t[2])}),r&&(L[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function j(e,t){return e.isValid()?(D[t=P(t,e.localeData())]=D[t]||function(e){var t,r,n,a=e.match(k);for(r=0,n=a.length;r<n;r++)L[a[r]]?a[r]=L[a[r]]:a[r]=(t=a[r]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){var r,o="";for(r=0;r<n;r++)o+=I(a[r])?a[r].call(t,e):a[r];return o}}(t),D[t](e)):e.localeData().invalidDate()}function P(e,t){var r=5;function n(e){return t.longDateFormat(e)||e}for(M.lastIndex=0;r>=0&&M.test(e);)e=e.replace(M,n),M.lastIndex=0,r-=1;return e}var U={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function N(e){return"string"==typeof e?U[e]||U[e.toLowerCase()]:void 0}function Y(e){var t,r,n={};for(r in e)a(e,r)&&(t=N(r))&&(n[t]=e[r]);return n}var W,F,B,G,V={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},H=/\d/,z=/\d\d/,$=/\d{3}/,q=/\d{4}/,Z=/[+-]?\d{6}/,K=/\d\d?/,J=/\d\d\d\d?/,X=/\d\d\d\d\d\d?/,Q=/\d{1,3}/,ee=/\d{1,4}/,et=/[+-]?\d{1,6}/,er=/\d+/,en=/[+-]?\d+/,ea=/Z|[+-]\d\d:?\d\d/gi,eo=/Z|[+-]\d\d(?::?\d\d)?/gi,ei=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,es=/^[1-9]\d?/,el=/^([1-9]\d|\d)/;function eu(e,t,r){G[e]=I(t)?t:function(e,n){return e&&r?r:t}}function ec(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ed(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ef(e){var t=+e,r=0;return 0!==t&&isFinite(t)&&(r=ed(t)),r}G={};var ep={};function eh(e,t){var r,n,a=t;for("string"==typeof e&&(e=[e]),s(t)&&(a=function(e,r){r[t]=ef(e)}),n=e.length,r=0;r<n;r++)ep[e[r]]=a}function em(e,t){eh(e,function(e,r,n,a){n._w=n._w||{},t(e,n._w,n,a)})}function eg(e){return e%4==0&&e%100!=0||e%400==0}function ey(e){return eg(e)?366:365}C("Y",0,0,function(){var e=this.year();return e<=9999?R(e,4):"+"+e}),C(0,["YY",2],0,function(){return this.year()%100}),C(0,["YYYY",4],0,"year"),C(0,["YYYYY",5],0,"year"),C(0,["YYYYYY",6,!0],0,"year"),eu("Y",en),eu("YY",K,z),eu("YYYY",ee,q),eu("YYYYY",et,Z),eu("YYYYYY",et,Z),eh(["YYYYY","YYYYYY"],0),eh("YYYY",function(t,r){r[0]=2===t.length?e.parseTwoDigitYear(t):ef(t)}),eh("YY",function(t,r){r[0]=e.parseTwoDigitYear(t)}),eh("Y",function(e,t){t[0]=parseInt(e,10)}),e.parseTwoDigitYear=function(e){return ef(e)+(ef(e)>68?1900:2e3)};var eb=e_("FullYear",!0);function e_(t,r){return function(n){return null!=n?(eS(this,t,n),e.updateOffset(this,r),this):eT(this,t)}}function eT(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function eS(e,t,r){var n,a,o,i;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(a?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(a?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(a?n.setUTCHours(r):n.setHours(r));case"Date":return void(a?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}o=e.month(),i=29!==(i=e.date())||1!==o||eg(r)?i:28,a?n.setUTCFullYear(r,o,i):n.setFullYear(r,o,i)}}function ev(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=(t%12+12)%12;return e+=(t-r)/12,1===r?eg(e)?29:28:31-r%7%2}eB=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return -1},C("M",["MM",2],"Mo",function(){return this.month()+1}),C("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),C("MMMM",0,0,function(e){return this.localeData().months(this,e)}),eu("M",K,es),eu("MM",K,z),eu("MMM",function(e,t){return t.monthsShortRegex(e)}),eu("MMMM",function(e,t){return t.monthsRegex(e)}),eh(["M","MM"],function(e,t){t[1]=ef(e)-1}),eh(["MMM","MMMM"],function(e,t,r,n){var a=r._locale.monthsParse(e,n,r._strict);null!=a?t[1]=a:f(r).invalidMonth=e});var ew="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),eE=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;function ex(e,t,r){var n,a,o,i=e.toLocaleLowerCase();if(!this._monthsParse)for(n=0,this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[];n<12;++n)o=d([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return r?"MMM"===t?-1!==(a=eB.call(this._shortMonthsParse,i))?a:null:-1!==(a=eB.call(this._longMonthsParse,i))?a:null:"MMM"===t?-1!==(a=eB.call(this._shortMonthsParse,i))?a:-1!==(a=eB.call(this._longMonthsParse,i))?a:null:-1!==(a=eB.call(this._longMonthsParse,i))?a:-1!==(a=eB.call(this._shortMonthsParse,i))?a:null}function eI(e,t){if(!e.isValid())return e;if("string"==typeof t){if(/^\d+$/.test(t))t=ef(t);else if(!s(t=e.localeData().monthsParse(t)))return e}var r=t,n=e.date();return n=n<29?n:Math.min(n,ev(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function eO(t){return null!=t?(eI(this,t),e.updateOffset(this,!0),this):eT(this,"Month")}function eA(){function e(e,t){return t.length-e.length}var t,r,n,a,o=[],i=[],s=[];for(t=0;t<12;t++)r=d([2e3,t]),n=ec(this.monthsShort(r,"")),a=ec(this.months(r,"")),o.push(n),i.push(a),s.push(a),s.push(n);o.sort(e),i.sort(e),s.sort(e),this._monthsRegex=RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=RegExp("^("+o.join("|")+")","i")}function eR(e,t,r,n,a,o,i){var s;return e<100&&e>=0?isFinite((s=new Date(e+400,t,r,n,a,o,i)).getFullYear())&&s.setFullYear(e):s=new Date(e,t,r,n,a,o,i),s}function ek(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,isFinite((t=new Date(Date.UTC.apply(null,r))).getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function eM(e,t,r){var n=7+t-r;return-((7+ek(e,0,n).getUTCDay()-t)%7)+n-1}function eD(e,t,r,n,a){var o,i,s=1+7*(t-1)+(7+r-n)%7+eM(e,n,a);return s<=0?i=ey(o=e-1)+s:s>ey(e)?(o=e+1,i=s-ey(e)):(o=e,i=s),{year:o,dayOfYear:i}}function eL(e,t,r){var n,a,o=eM(e.year(),t,r),i=Math.floor((e.dayOfYear()-o-1)/7)+1;return i<1?n=i+eC(a=e.year()-1,t,r):i>eC(e.year(),t,r)?(n=i-eC(e.year(),t,r),a=e.year()+1):(a=e.year(),n=i),{week:n,year:a}}function eC(e,t,r){var n=eM(e,t,r),a=eM(e+1,t,r);return(ey(e)-n+a)/7}function ej(e,t){return e.slice(t,7).concat(e.slice(0,t))}C("w",["ww",2],"wo","week"),C("W",["WW",2],"Wo","isoWeek"),eu("w",K,es),eu("ww",K,z),eu("W",K,es),eu("WW",K,z),em(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=ef(e)}),C("d",0,"do","day"),C("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),C("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),C("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),C("e",0,0,"weekday"),C("E",0,0,"isoWeekday"),eu("d",K),eu("e",K),eu("E",K),eu("dd",function(e,t){return t.weekdaysMinRegex(e)}),eu("ddd",function(e,t){return t.weekdaysShortRegex(e)}),eu("dddd",function(e,t){return t.weekdaysRegex(e)}),em(["dd","ddd","dddd"],function(e,t,r,n){var a=r._locale.weekdaysParse(e,n,r._strict);null!=a?t.d=a:f(r).invalidWeekday=e}),em(["d","e","E"],function(e,t,r,n){t[n]=ef(e)});var eP="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function eU(e,t,r){var n,a,o,i=e.toLocaleLowerCase();if(!this._weekdaysParse)for(n=0,this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[];n<7;++n)o=d([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return r?"dddd"===t?-1!==(a=eB.call(this._weekdaysParse,i))?a:null:"ddd"===t?-1!==(a=eB.call(this._shortWeekdaysParse,i))?a:null:-1!==(a=eB.call(this._minWeekdaysParse,i))?a:null:"dddd"===t?-1!==(a=eB.call(this._weekdaysParse,i))||-1!==(a=eB.call(this._shortWeekdaysParse,i))?a:-1!==(a=eB.call(this._minWeekdaysParse,i))?a:null:"ddd"===t?-1!==(a=eB.call(this._shortWeekdaysParse,i))||-1!==(a=eB.call(this._weekdaysParse,i))?a:-1!==(a=eB.call(this._minWeekdaysParse,i))?a:null:-1!==(a=eB.call(this._minWeekdaysParse,i))||-1!==(a=eB.call(this._weekdaysParse,i))?a:-1!==(a=eB.call(this._shortWeekdaysParse,i))?a:null}function eN(){function e(e,t){return t.length-e.length}var t,r,n,a,o,i=[],s=[],l=[],u=[];for(t=0;t<7;t++)r=d([2e3,1]).day(t),n=ec(this.weekdaysMin(r,"")),a=ec(this.weekdaysShort(r,"")),o=ec(this.weekdays(r,"")),i.push(n),s.push(a),l.push(o),u.push(n),u.push(a),u.push(o);i.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+i.join("|")+")","i")}function eY(){return this.hours()%12||12}function eW(e,t){C(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function eF(e,t){return t._meridiemParse}C("H",["HH",2],0,"hour"),C("h",["hh",2],0,eY),C("k",["kk",2],0,function(){return this.hours()||24}),C("hmm",0,0,function(){return""+eY.apply(this)+R(this.minutes(),2)}),C("hmmss",0,0,function(){return""+eY.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)}),C("Hmm",0,0,function(){return""+this.hours()+R(this.minutes(),2)}),C("Hmmss",0,0,function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)}),eW("a",!0),eW("A",!1),eu("a",eF),eu("A",eF),eu("H",K,el),eu("h",K,es),eu("k",K,es),eu("HH",K,z),eu("hh",K,z),eu("kk",K,z),eu("hmm",J),eu("hmmss",X),eu("Hmm",J),eu("Hmmss",X),eh(["H","HH"],3),eh(["k","kk"],function(e,t,r){var n=ef(e);t[3]=24===n?0:n}),eh(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),eh(["h","hh"],function(e,t,r){t[3]=ef(e),f(r).bigHour=!0}),eh("hmm",function(e,t,r){var n=e.length-2;t[3]=ef(e.substr(0,n)),t[4]=ef(e.substr(n)),f(r).bigHour=!0}),eh("hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[3]=ef(e.substr(0,n)),t[4]=ef(e.substr(n,2)),t[5]=ef(e.substr(a)),f(r).bigHour=!0}),eh("Hmm",function(e,t,r){var n=e.length-2;t[3]=ef(e.substr(0,n)),t[4]=ef(e.substr(n))}),eh("Hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[3]=ef(e.substr(0,n)),t[4]=ef(e.substr(n,2)),t[5]=ef(e.substr(a))});var eB,eG,eV=e_("Hours",!0),eH={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:ew,week:{dow:0,doy:6},weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysShort:eP,meridiemParse:/[ap]\.?m?\.?/i},ez={},e$={};function eq(e){return e?e.toLowerCase().replace("_","-"):e}function eZ(e){var r=null;if(void 0===ez[e]&&t&&t.exports&&e&&e.match("^[^/\\\\]*$"))try{r=eG._abbr,(void 0)("./locale/"+e),eK(r)}catch(t){ez[e]=null}return ez[e]}function eK(e,t){var r;return e&&((r=i(t)?eX(e):eJ(e,t))?eG=r:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),eG._abbr}function eJ(e,t){if(null===t)return delete ez[e],null;var r,n=eH;if(t.abbr=e,null!=ez[e])x("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ez[e]._config;else if(null!=t.parentLocale){if(null!=ez[t.parentLocale])n=ez[t.parentLocale]._config;else{if(null==(r=eZ(t.parentLocale)))return e$[t.parentLocale]||(e$[t.parentLocale]=[]),e$[t.parentLocale].push({name:e,config:t}),null;n=r._config}}return ez[e]=new A(O(n,t)),e$[e]&&e$[e].forEach(function(e){eJ(e.name,e.config)}),eK(e),ez[e]}function eX(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return eG;if(!r(e)){if(t=eZ(e))return t;e=[e]}return function(e){for(var t,r,n,a,o=0;o<e.length;){for(t=(a=eq(e[o]).split("-")).length,r=(r=eq(e[o+1]))?r.split("-"):null;t>0;){if(n=eZ(a.slice(0,t).join("-")))return n;if(r&&r.length>=t&&function(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}(a,r)>=t-1)break;t--}o++}return eG}(e)}function eQ(e){var t,r=e._a;return r&&-2===f(e).overflow&&(t=r[1]<0||r[1]>11?1:r[2]<1||r[2]>ev(r[0],r[1])?2:r[3]<0||r[3]>24||24===r[3]&&(0!==r[4]||0!==r[5]||0!==r[6])?3:r[4]<0||r[4]>59?4:r[5]<0||r[5]>59?5:r[6]<0||r[6]>999?6:-1,f(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),f(e)._overflowWeeks&&-1===t&&(t=7),f(e)._overflowWeekday&&-1===t&&(t=8),f(e).overflow=t),e}var e0=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,e1=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,e2=/Z|[+-]\d\d(?::?\d\d)?/,e3=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],e4=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],e6=/^\/?Date\((-?\d+)/i,e5=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,e8={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function e9(e){var t,r,n,a,o,i,s=e._i,l=e0.exec(s)||e1.exec(s),u=e3.length,c=e4.length;if(l){for(t=0,f(e).iso=!0,r=u;t<r;t++)if(e3[t][1].exec(l[1])){a=e3[t][0],n=!1!==e3[t][2];break}if(null==a){e._isValid=!1;return}if(l[3]){for(t=0,r=c;t<r;t++)if(e4[t][1].exec(l[3])){o=(l[2]||" ")+e4[t][0];break}if(null==o){e._isValid=!1;return}}if(!n&&null!=o){e._isValid=!1;return}if(l[4]){if(e2.exec(l[4]))i="Z";else{e._isValid=!1;return}}e._f=a+(o||"")+(i||""),tr(e)}else e._isValid=!1}function e7(e){var t,r,n,a,o,i,s,l,u,c=e5.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(c){if(r=c[4],n=c[3],a=c[2],o=c[5],i=c[6],s=c[7],l=[(t=parseInt(r,10))<=49?2e3+t:t<=999?1900+t:t,ew.indexOf(n),parseInt(a,10),parseInt(o,10),parseInt(i,10)],s&&l.push(parseInt(s,10)),(u=c[1])&&eP.indexOf(u)!==new Date(l[0],l[1],l[2]).getDay()&&(f(e).weekdayMismatch=!0,e._isValid=!1,1))return;e._a=l,e._tzm=function(e,t,r){if(e)return e8[e];if(t)return 0;var n=parseInt(r,10),a=n%100;return 60*((n-a)/100)+a}(c[8],c[9],c[10]),e._d=ek.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),f(e).rfc2822=!0}else e._isValid=!1}function te(e,t,r){return null!=e?e:null!=t?t:r}function tt(t){var r,n,a,o,i,s,l,u,c,d,p,h,m,g,y,b=[];if(!t._d){for(d=new Date(e.now()),m=t._useUTC?[d.getUTCFullYear(),d.getUTCMonth(),d.getUTCDate()]:[d.getFullYear(),d.getMonth(),d.getDate()],t._w&&null==t._a[2]&&null==t._a[1]&&(null!=(r=t._w).GG||null!=r.W||null!=r.E?(i=1,s=4,n=te(r.GG,t._a[0],eL(to(),1,4).year),a=te(r.W,1),((o=te(r.E,1))<1||o>7)&&(u=!0)):(i=t._locale._week.dow,s=t._locale._week.doy,c=eL(to(),i,s),n=te(r.gg,t._a[0],c.year),a=te(r.w,c.week),null!=r.d?((o=r.d)<0||o>6)&&(u=!0):null!=r.e?(o=r.e+i,(r.e<0||r.e>6)&&(u=!0)):o=i),a<1||a>eC(n,i,s)?f(t)._overflowWeeks=!0:null!=u?f(t)._overflowWeekday=!0:(l=eD(n,a,o,i,s),t._a[0]=l.year,t._dayOfYear=l.dayOfYear)),null!=t._dayOfYear&&(y=te(t._a[0],m[0]),(t._dayOfYear>ey(y)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),h=ek(y,0,t._dayOfYear),t._a[1]=h.getUTCMonth(),t._a[2]=h.getUTCDate()),p=0;p<3&&null==t._a[p];++p)t._a[p]=b[p]=m[p];for(;p<7;p++)t._a[p]=b[p]=null==t._a[p]?2===p?1:0:t._a[p];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?ek:eR).apply(null,b),g=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==g&&(f(t).weekdayMismatch=!0)}}function tr(t){if(t._f===e.ISO_8601){e9(t);return}if(t._f===e.RFC_2822){e7(t);return}t._a=[],f(t).empty=!0;var r,n,o,i,s,l,u,c,d,p,h,m=""+t._i,g=m.length,y=0;for(s=0,h=(u=P(t._f,t._locale).match(k)||[]).length;s<h;s++)(c=u[s],(l=(m.match(a(G,c)?G[c](t._strict,t._locale):new RegExp(ec(c.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,r,n,a){return t||r||n||a}))))||[])[0])&&((d=m.substr(0,m.indexOf(l))).length>0&&f(t).unusedInput.push(d),m=m.slice(m.indexOf(l)+l.length),y+=l.length),L[c])?(l?f(t).empty=!1:f(t).unusedTokens.push(c),null!=l&&a(ep,c)&&ep[c](l,t._a,t,c)):t._strict&&!l&&f(t).unusedTokens.push(c);f(t).charsLeftOver=g-y,m.length>0&&f(t).unusedInput.push(m),t._a[3]<=12&&!0===f(t).bigHour&&t._a[3]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[3]=(r=t._locale,n=t._a[3],null==(o=t._meridiem)?n:null!=r.meridiemHour?r.meridiemHour(n,o):(null!=r.isPM&&((i=r.isPM(o))&&n<12&&(n+=12),i||12!==n||(n=0)),n)),null!==(p=f(t).era)&&(t._a[0]=t._locale.erasConvertYear(p,t._a[0])),tt(t),eQ(t)}function tn(t){var a,o=t._i,d=t._f;return(t._locale=t._locale||eX(t._l),null===o||void 0===d&&""===o)?h({nullInput:!0}):("string"==typeof o&&(t._i=o=t._locale.preparse(o)),S(o))?new T(eQ(o)):(l(o)?t._d=o:r(d)?function(e){var t,r,n,a,o,i,s=!1,l=e._f.length;if(0===l){f(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<l;a++)o=0,i=!1,t=_({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],tr(t),p(t)&&(i=!0),o+=f(t).charsLeftOver+10*f(t).unusedTokens.length,f(t).score=o,s?o<n&&(n=o,r=t):(null==n||o<n||i)&&(n=o,r=t,i&&(s=!0));c(e,r||t)}(t):d?tr(t):i(a=t._i)?t._d=new Date(e.now()):l(a)?t._d=new Date(a.valueOf()):"string"==typeof a?function(t){var r=e6.exec(t._i);if(null!==r){t._d=new Date(+r[1]);return}e9(t),!1===t._isValid&&(delete t._isValid,e7(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:e.createFromInputFallback(t)))}(t):r(a)?(t._a=u(a.slice(0),function(e){return parseInt(e,10)}),tt(t)):n(a)?function(e){if(!e._d){var t=Y(e._i),r=void 0===t.day?t.date:t.day;e._a=u([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),tt(e)}}(t):s(a)?t._d=new Date(a):e.createFromInputFallback(t),p(t)||(t._d=null),t)}function ta(e,t,a,i,s){var l,u={};return(!0===t||!1===t)&&(i=t,t=void 0),(!0===a||!1===a)&&(i=a,a=void 0),(n(e)&&o(e)||r(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=s,u._l=a,u._i=e,u._f=t,u._strict=i,(l=new T(eQ(tn(u))))._nextDay&&(l.add(1,"d"),l._nextDay=void 0),l}function to(e,t,r,n){return ta(e,t,r,n,!1)}e.createFromInputFallback=w("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var ti=w("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=to.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:h()}),ts=w("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=to.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:h()});function tl(e,t){var n,a;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return to();for(a=1,n=t[0];a<t.length;++a)(!t[a].isValid()||t[a][e](n))&&(n=t[a]);return n}var tu=["year","quarter","month","week","day","hour","minute","second","millisecond"];function tc(e){var t=Y(e),r=t.year||0,n=t.quarter||0,o=t.month||0,i=t.week||t.isoWeek||0,s=t.day||0,l=t.hour||0,u=t.minute||0,c=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,r,n=!1,o=tu.length;for(t in e)if(a(e,t)&&!(-1!==eB.call(tu,t)&&(null==e[t]||!isNaN(e[t]))))return!1;for(r=0;r<o;++r)if(e[tu[r]]){if(n)return!1;parseFloat(e[tu[r]])!==ef(e[tu[r]])&&(n=!0)}return!0}(t),this._milliseconds=+d+1e3*c+6e4*u+36e5*l,this._days=+s+7*i,this._months=+o+3*n+12*r,this._data={},this._locale=eX(),this._bubble()}function td(e){return e instanceof tc}function tf(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function tp(e,t){C(e,0,0,function(){var e=this.utcOffset(),r="+";return e<0&&(e=-e,r="-"),r+R(~~(e/60),2)+t+R(~~e%60,2)})}tp("Z",":"),tp("ZZ",""),eu("Z",eo),eu("ZZ",eo),eh(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=tm(eo,e)});var th=/([\+\-]|\d\d)/gi;function tm(e,t){var r,n,a=(t||"").match(e);return null===a?null:0===(n=+(60*(r=((a[a.length-1]||[])+"").match(th)||["-",0,0])[1])+ef(r[2]))?0:"+"===r[0]?n:-n}function tg(t,r){var n,a;return r._isUTC?(n=r.clone(),a=(S(t)||l(t)?t.valueOf():to(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+a),e.updateOffset(n,!1),n):to(t).local()}function ty(e){return-Math.round(e._d.getTimezoneOffset())}function tb(){return!!this.isValid()&&this._isUTC&&0===this._offset}e.updateOffset=function(){};var t_=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,tT=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function tS(e,t){var r,n,o,i,l,u,c=e,d=null;return td(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:s(e)||!isNaN(+e)?(c={},t?c[t]=+e:c.milliseconds=+e):(d=t_.exec(e))?(i="-"===d[1]?-1:1,c={y:0,d:ef(d[2])*i,h:ef(d[3])*i,m:ef(d[4])*i,s:ef(d[5])*i,ms:ef(tf(1e3*d[6]))*i}):(d=tT.exec(e))?(i="-"===d[1]?-1:1,c={y:tv(d[2],i),M:tv(d[3],i),w:tv(d[4],i),d:tv(d[5],i),h:tv(d[6],i),m:tv(d[7],i),s:tv(d[8],i)}):null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(r=to(c.from),n=to(c.to),u=r.isValid()&&n.isValid()?(n=tg(n,r),r.isBefore(n)?o=tw(r,n):((o=tw(n,r)).milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0},(c={}).ms=u.milliseconds,c.M=u.months),l=new tc(c),td(e)&&a(e,"_locale")&&(l._locale=e._locale),td(e)&&a(e,"_isValid")&&(l._isValid=e._isValid),l}function tv(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function tw(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function tE(e,t){return function(r,n){var a;return null===n||isNaN(+n)||(x(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=r,r=n,n=a),tx(this,tS(r,n),e),this}}function tx(t,r,n,a){var o=r._milliseconds,i=tf(r._days),s=tf(r._months);t.isValid()&&(a=null==a||a,s&&eI(t,eT(t,"Month")+s*n),i&&eS(t,"Date",eT(t,"Date")+i*n),o&&t._d.setTime(t._d.valueOf()+o*n),a&&e.updateOffset(t,i||s))}tS.fn=tc.prototype,tS.invalid=function(){return tS(NaN)};var tI=tE(1,"add"),tO=tE(-1,"subtract");function tA(e){return"string"==typeof e||e instanceof String}function tR(e,t){if(e.date()<t.date())return-tR(t,e);var r,n=(t.year()-e.year())*12+(t.month()-e.month()),a=e.clone().add(n,"months");return r=t-a<0?(t-a)/(a-e.clone().add(n-1,"months")):(t-a)/(e.clone().add(n+1,"months")-a),-(n+r)||0}function tk(e){var t;return void 0===e?this._locale._abbr:(null!=(t=eX(e))&&(this._locale=t),this)}e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tM=w("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function tD(){return this._locale}function tL(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-126227808e5:new Date(e,t,r).valueOf()}function tC(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-126227808e5:Date.UTC(e,t,r)}function tj(e,t){return t.erasAbbrRegex(e)}function tP(){var e,t,r,n,a,o=[],i=[],s=[],l=[],u=this.eras();for(e=0,t=u.length;e<t;++e)r=ec(u[e].name),n=ec(u[e].abbr),a=ec(u[e].narrow),i.push(r),o.push(n),s.push(a),l.push(r),l.push(n),l.push(a);this._erasRegex=RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=RegExp("^("+s.join("|")+")","i")}function tU(e,t){C(0,[e,e.length],0,t)}function tN(e,t,r,n,a){var o;return null==e?eL(this,n,a).year:(t>(o=eC(e,n,a))&&(t=o),tY.call(this,e,t,r,n,a))}function tY(e,t,r,n,a){var o=eD(e,t,r,n,a),i=ek(o.year,0,o.dayOfYear);return this.year(i.getUTCFullYear()),this.month(i.getUTCMonth()),this.date(i.getUTCDate()),this}C("N",0,0,"eraAbbr"),C("NN",0,0,"eraAbbr"),C("NNN",0,0,"eraAbbr"),C("NNNN",0,0,"eraName"),C("NNNNN",0,0,"eraNarrow"),C("y",["y",1],"yo","eraYear"),C("y",["yy",2],0,"eraYear"),C("y",["yyy",3],0,"eraYear"),C("y",["yyyy",4],0,"eraYear"),eu("N",tj),eu("NN",tj),eu("NNN",tj),eu("NNNN",function(e,t){return t.erasNameRegex(e)}),eu("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),eh(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var a=r._locale.erasParse(e,n,r._strict);a?f(r).era=a:f(r).invalidEra=e}),eu("y",er),eu("yy",er),eu("yyy",er),eu("yyyy",er),eu("yo",function(e,t){return t._eraYearOrdinalRegex||er}),eh(["y","yy","yyy","yyyy"],0),eh(["yo"],function(e,t,r,n){var a;r._locale._eraYearOrdinalRegex&&(a=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[0]=r._locale.eraYearOrdinalParse(e,a):t[0]=parseInt(e,10)}),C(0,["gg",2],0,function(){return this.weekYear()%100}),C(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tU("gggg","weekYear"),tU("ggggg","weekYear"),tU("GGGG","isoWeekYear"),tU("GGGGG","isoWeekYear"),eu("G",en),eu("g",en),eu("GG",K,z),eu("gg",K,z),eu("GGGG",ee,q),eu("gggg",ee,q),eu("GGGGG",et,Z),eu("ggggg",et,Z),em(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=ef(e)}),em(["gg","GG"],function(t,r,n,a){r[a]=e.parseTwoDigitYear(t)}),C("Q",0,"Qo","quarter"),eu("Q",H),eh("Q",function(e,t){t[1]=(ef(e)-1)*3}),C("D",["DD",2],"Do","date"),eu("D",K,es),eu("DD",K,z),eu("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),eh(["D","DD"],2),eh("Do",function(e,t){t[2]=ef(e.match(K)[0])});var tW=e_("Date",!0);C("DDD",["DDDD",3],"DDDo","dayOfYear"),eu("DDD",Q),eu("DDDD",$),eh(["DDD","DDDD"],function(e,t,r){r._dayOfYear=ef(e)}),C("m",["mm",2],0,"minute"),eu("m",K,el),eu("mm",K,z),eh(["m","mm"],4);var tF=e_("Minutes",!1);C("s",["ss",2],0,"second"),eu("s",K,el),eu("ss",K,z),eh(["s","ss"],5);var tB=e_("Seconds",!1);for(C("S",0,0,function(){return~~(this.millisecond()/100)}),C(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),C(0,["SSS",3],0,"millisecond"),C(0,["SSSS",4],0,function(){return 10*this.millisecond()}),C(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),C(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),C(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),C(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),C(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),eu("S",Q,H),eu("SS",Q,z),eu("SSS",Q,$),m="SSSS";m.length<=9;m+="S")eu(m,er);function tG(e,t){t[6]=ef(("0."+e)*1e3)}for(m="S";m.length<=9;m+="S")eh(m,tG);g=e_("Milliseconds",!1),C("z",0,0,"zoneAbbr"),C("zz",0,0,"zoneName");var tV=T.prototype;function tH(e){return e}tV.add=tI,tV.calendar=function(t,i){if(1==arguments.length){if(arguments[0]){var u,c,d;(u=arguments[0],S(u)||l(u)||tA(u)||s(u)||(c=r(u),d=!1,c&&(d=0===u.filter(function(e){return!s(e)&&tA(u)}).length),c&&d)||function(e){var t,r,i=n(e)&&!o(e),s=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=l.length;for(t=0;t<u;t+=1)r=l[t],s=s||a(e,r);return i&&s}(u)||null==u)?(t=arguments[0],i=void 0):function(e){var t,r,i=n(e)&&!o(e),s=!1,l=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<l.length;t+=1)r=l[t],s=s||a(e,r);return i&&s}(arguments[0])&&(i=arguments[0],t=void 0)}else t=void 0,i=void 0}var f=t||to(),p=tg(f,this).startOf("day"),h=e.calendarFormat(this,p)||"sameElse",m=i&&(I(i[h])?i[h].call(this,f):i[h]);return this.format(m||this.localeData().calendar(h,this,to(f)))},tV.clone=function(){return new T(this)},tV.diff=function(e,t,r){var n,a,o;if(!this.isValid()||!(n=tg(e,this)).isValid())return NaN;switch(a=(n.utcOffset()-this.utcOffset())*6e4,t=N(t)){case"year":o=tR(this,n)/12;break;case"month":o=tR(this,n);break;case"quarter":o=tR(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-a)/864e5;break;case"week":o=(this-n-a)/6048e5;break;default:o=this-n}return r?o:ed(o)},tV.endOf=function(t){var r,n;if(void 0===(t=N(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?tC:tL,t){case"year":r=n(this.year()+1,0,1)-1;break;case"quarter":r=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":r=n(this.year(),this.month()+1,1)-1;break;case"week":r=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":r=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":r=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":r=this._d.valueOf(),r+=36e5-((r+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5-1;break;case"minute":r=this._d.valueOf(),r+=6e4-(r%6e4+6e4)%6e4-1;break;case"second":r=this._d.valueOf(),r+=1e3-(r%1e3+1e3)%1e3-1}return this._d.setTime(r),e.updateOffset(this,!0),this},tV.format=function(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var r=j(this,t);return this.localeData().postformat(r)},tV.from=function(e,t){return this.isValid()&&(S(e)&&e.isValid()||to(e).isValid())?tS({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tV.fromNow=function(e){return this.from(to(),e)},tV.to=function(e,t){return this.isValid()&&(S(e)&&e.isValid()||to(e).isValid())?tS({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tV.toNow=function(e){return this.to(to(),e)},tV.get=function(e){return I(this[e=N(e)])?this[e]():this},tV.invalidAt=function(){return f(this).overflow},tV.isAfter=function(e,t){var r=S(e)?e:to(e);return!!(this.isValid()&&r.isValid())&&("millisecond"===(t=N(t)||"millisecond")?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf())},tV.isBefore=function(e,t){var r=S(e)?e:to(e);return!!(this.isValid()&&r.isValid())&&("millisecond"===(t=N(t)||"millisecond")?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf())},tV.isBetween=function(e,t,r,n){var a=S(e)?e:to(e),o=S(t)?t:to(t);return!!(this.isValid()&&a.isValid()&&o.isValid())&&("("===(n=n||"()")[0]?this.isAfter(a,r):!this.isBefore(a,r))&&(")"===n[1]?this.isBefore(o,r):!this.isAfter(o,r))},tV.isSame=function(e,t){var r,n=S(e)?e:to(e);return!!(this.isValid()&&n.isValid())&&("millisecond"===(t=N(t)||"millisecond")?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf()))},tV.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},tV.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},tV.isValid=function(){return p(this)},tV.lang=tM,tV.locale=tk,tV.localeData=tD,tV.max=ts,tV.min=ti,tV.parsingFlags=function(){return c({},f(this))},tV.set=function(e,t){if("object"==typeof e){var r,n=function(e){var t,r=[];for(t in e)a(e,t)&&r.push({unit:t,priority:V[t]});return r.sort(function(e,t){return e.priority-t.priority}),r}(e=Y(e)),o=n.length;for(r=0;r<o;r++)this[n[r].unit](e[n[r].unit])}else if(I(this[e=N(e)]))return this[e](t);return this},tV.startOf=function(t){var r,n;if(void 0===(t=N(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?tC:tL,t){case"year":r=n(this.year(),0,1);break;case"quarter":r=n(this.year(),this.month()-this.month()%3,1);break;case"month":r=n(this.year(),this.month(),1);break;case"week":r=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":r=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":r=n(this.year(),this.month(),this.date());break;case"hour":r=this._d.valueOf(),r-=((r+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5;break;case"minute":r=this._d.valueOf(),r-=(r%6e4+6e4)%6e4;break;case"second":r=this._d.valueOf(),r-=(r%1e3+1e3)%1e3}return this._d.setTime(r),e.updateOffset(this,!0),this},tV.subtract=tO,tV.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},tV.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},tV.toDate=function(){return new Date(this.valueOf())},tV.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,r=t?this.clone().utc():this;return 0>r.year()||r.year()>9999?j(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):I(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+6e4*this.utcOffset()).toISOString().replace("Z",j(r,"Z")):j(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},tV.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,r,n="moment",a="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+n+'("]',t=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",r=a+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+r)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(tV[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),tV.toJSON=function(){return this.isValid()?this.toISOString():null},tV.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},tV.unix=function(){return Math.floor(this.valueOf()/1e3)},tV.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},tV.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},tV.eraName=function(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""},tV.eraNarrow=function(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""},tV.eraAbbr=function(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""},tV.eraYear=function(){var t,r,n,a,o=this.localeData().eras();for(t=0,r=o.length;t<r;++t)if(n=o[t].since<=o[t].until?1:-1,a=this.clone().startOf("day").valueOf(),o[t].since<=a&&a<=o[t].until||o[t].until<=a&&a<=o[t].since)return(this.year()-e(o[t].since).year())*n+o[t].offset;return this.year()},tV.year=eb,tV.isLeapYear=function(){return eg(this.year())},tV.weekYear=function(e){return tN.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},tV.isoWeekYear=function(e){return tN.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},tV.quarter=tV.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)},tV.month=eO,tV.daysInMonth=function(){return ev(this.year(),this.month())},tV.week=tV.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add((e-t)*7,"d")},tV.isoWeek=tV.isoWeeks=function(e){var t=eL(this,1,4).week;return null==e?t:this.add((e-t)*7,"d")},tV.weeksInYear=function(){var e=this.localeData()._week;return eC(this.year(),e.dow,e.doy)},tV.weeksInWeekYear=function(){var e=this.localeData()._week;return eC(this.weekYear(),e.dow,e.doy)},tV.isoWeeksInYear=function(){return eC(this.year(),1,4)},tV.isoWeeksInISOWeekYear=function(){return eC(this.isoWeekYear(),1,4)},tV.date=tW,tV.day=tV.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,r,n=eT(this,"Day");return null==e?n:(t=e,r=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=r.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-n,"d"))},tV.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},tV.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t,r=(t=this.localeData(),"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e);return this.day(this.day()%7?r:r-7)},tV.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},tV.hour=tV.hours=eV,tV.minute=tV.minutes=tF,tV.second=tV.seconds=tB,tV.millisecond=tV.milliseconds=g,tV.utcOffset=function(t,r,n){var a,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null==t)return this._isUTC?o:ty(this);if("string"==typeof t){if(null===(t=tm(eo,t)))return this}else 16>Math.abs(t)&&!n&&(t*=60);return!this._isUTC&&r&&(a=ty(this)),this._offset=t,this._isUTC=!0,null!=a&&this.add(a,"m"),o===t||(!r||this._changeInProgress?tx(this,tS(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this},tV.utc=function(e){return this.utcOffset(0,e)},tV.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(ty(this),"m")),this},tV.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=tm(ea,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},tV.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?to(e).utcOffset():0,(this.utcOffset()-e)%60==0)},tV.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},tV.isLocal=function(){return!!this.isValid()&&!this._isUTC},tV.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},tV.isUtc=tb,tV.isUTC=tb,tV.zoneAbbr=function(){return this._isUTC?"UTC":""},tV.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},tV.dates=w("dates accessor is deprecated. Use date instead.",tW),tV.months=w("months accessor is deprecated. Use month instead",eO),tV.years=w("years accessor is deprecated. Use year instead",eb),tV.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),tV.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!i(this._isDSTShifted))return this._isDSTShifted;var e,t={};return _(t,this),(t=tn(t))._a?(e=t._isUTC?d(t._a):to(t._a),this._isDSTShifted=this.isValid()&&function(e,t,r){var n,a=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),i=0;for(n=0;n<a;n++)(r&&e[n]!==t[n]||!r&&ef(e[n])!==ef(t[n]))&&i++;return i+o}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var tz=A.prototype;function t$(e,t,r,n){var a=eX(),o=d().set(n,t);return a[r](o,e)}function tq(e,t,r){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return t$(e,t,r,"month");var n,a=[];for(n=0;n<12;n++)a[n]=t$(e,n,r,"month");return a}function tZ(e,t,r,n){"boolean"==typeof e||(r=t=e,e=!1),s(t)&&(r=t,t=void 0),t=t||"";var a,o=eX(),i=e?o._week.dow:0,l=[];if(null!=r)return t$(t,(r+i)%7,n,"day");for(a=0;a<7;a++)l[a]=t$(t,(a+i)%7,n,"day");return l}tz.calendar=function(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return I(n)?n.call(t,r):n},tz.longDateFormat=function(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(k).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},tz.invalidDate=function(){return this._invalidDate},tz.ordinal=function(e){return this._ordinal.replace("%d",e)},tz.preparse=tH,tz.postformat=tH,tz.relativeTime=function(e,t,r,n){var a=this._relativeTime[r];return I(a)?a(e,t,r,n):a.replace(/%d/i,e)},tz.pastFuture=function(e,t){var r=this._relativeTime[e>0?"future":"past"];return I(r)?r(t):r.replace(/%s/i,t)},tz.set=function(e){var t,r;for(r in e)a(e,r)&&(I(t=e[r])?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},tz.eras=function(t,r){var n,a,o,i=this._eras||eX("en")._eras;for(n=0,a=i.length;n<a;++n)switch("string"==typeof i[n].since&&(o=e(i[n].since).startOf("day"),i[n].since=o.valueOf()),typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":o=e(i[n].until).startOf("day").valueOf(),i[n].until=o.valueOf()}return i},tz.erasParse=function(e,t,r){var n,a,o,i,s,l=this.eras();for(n=0,e=e.toUpperCase(),a=l.length;n<a;++n)if(o=l[n].name.toUpperCase(),i=l[n].abbr.toUpperCase(),s=l[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(i===e)return l[n];break;case"NNNN":if(o===e)return l[n];break;case"NNNNN":if(s===e)return l[n]}else if([o,i,s].indexOf(e)>=0)return l[n]},tz.erasConvertYear=function(t,r){var n=t.since<=t.until?1:-1;return void 0===r?e(t.since).year():e(t.since).year()+(r-t.offset)*n},tz.erasAbbrRegex=function(e){return a(this,"_erasAbbrRegex")||tP.call(this),e?this._erasAbbrRegex:this._erasRegex},tz.erasNameRegex=function(e){return a(this,"_erasNameRegex")||tP.call(this),e?this._erasNameRegex:this._erasRegex},tz.erasNarrowRegex=function(e){return a(this,"_erasNarrowRegex")||tP.call(this),e?this._erasNarrowRegex:this._erasRegex},tz.months=function(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||eE).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone},tz.monthsShort=function(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[eE.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},tz.monthsParse=function(e,t,r){var n,a,o;if(this._monthsParseExact)return ex.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++)if(a=d([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),r||this._monthsParse[n]||(o="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[n]=RegExp(o.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[n].test(e)||r&&"MMM"===t&&this._shortMonthsParse[n].test(e)||!r&&this._monthsParse[n].test(e))return n},tz.monthsRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||eA.call(this),e)?this._monthsStrictRegex:this._monthsRegex:(a(this,"_monthsRegex")||(this._monthsRegex=ei),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},tz.monthsShortRegex=function(e){return this._monthsParseExact?(a(this,"_monthsRegex")||eA.call(this),e)?this._monthsShortStrictRegex:this._monthsShortRegex:(a(this,"_monthsShortRegex")||(this._monthsShortRegex=ei),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},tz.week=function(e){return eL(e,this._week.dow,this._week.doy).week},tz.firstDayOfYear=function(){return this._week.doy},tz.firstDayOfWeek=function(){return this._week.dow},tz.weekdays=function(e,t){var n=r(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?ej(n,this._week.dow):e?n[e.day()]:n},tz.weekdaysMin=function(e){return!0===e?ej(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},tz.weekdaysShort=function(e){return!0===e?ej(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},tz.weekdaysParse=function(e,t,r){var n,a,o;if(this._weekdaysParseExact)return eU.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=d([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=RegExp(o.replace(".",""),"i")),r&&"dddd"===t&&this._fullWeekdaysParse[n].test(e)||r&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(r&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}},tz.weekdaysRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||eN.call(this),e)?this._weekdaysStrictRegex:this._weekdaysRegex:(a(this,"_weekdaysRegex")||(this._weekdaysRegex=ei),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},tz.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||eN.call(this),e)?this._weekdaysShortStrictRegex:this._weekdaysShortRegex:(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ei),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},tz.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||eN.call(this),e)?this._weekdaysMinStrictRegex:this._weekdaysMinRegex:(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ei),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},tz.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},tz.meridiem=function(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"},eK("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=1===ef(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+r}}),e.lang=w("moment.lang is deprecated. Use moment.locale instead.",eK),e.langData=w("moment.langData is deprecated. Use moment.localeData instead.",eX);var tK=Math.abs;function tJ(e,t,r,n){var a=tS(t,r);return e._milliseconds+=n*a._milliseconds,e._days+=n*a._days,e._months+=n*a._months,e._bubble()}function tX(e){return e<0?Math.floor(e):Math.ceil(e)}function tQ(e){return 4800*e/146097}function t0(e){return 146097*e/4800}function t1(e){return function(){return this.as(e)}}var t2=t1("ms"),t3=t1("s"),t4=t1("m"),t6=t1("h"),t5=t1("d"),t8=t1("w"),t9=t1("M"),t7=t1("Q"),re=t1("y");function rt(e){return function(){return this.isValid()?this._data[e]:NaN}}var rr=rt("milliseconds"),rn=rt("seconds"),ra=rt("minutes"),ro=rt("hours"),ri=rt("days"),rs=rt("months"),rl=rt("years"),ru=Math.round,rc={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function rd(e,t,r,n,a){return a.relativeTime(t||1,!!r,e,n)}var rf=Math.abs;function rp(e){return(e>0)-(e<0)||+e}function rh(){if(!this.isValid())return this.localeData().invalidDate();var e,t,r,n,a,o,i,s,l=rf(this._milliseconds)/1e3,u=rf(this._days),c=rf(this._months),d=this.asSeconds();return d?(e=ed(l/60),t=ed(e/60),l%=60,e%=60,r=ed(c/12),c%=12,n=l?l.toFixed(3).replace(/\.?0+$/,""):"",a=d<0?"-":"",o=rp(this._months)!==rp(d)?"-":"",i=rp(this._days)!==rp(d)?"-":"",s=rp(this._milliseconds)!==rp(d)?"-":"",a+"P"+(r?o+r+"Y":"")+(c?o+c+"M":"")+(u?i+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+n+"S":"")):"P0D"}var rm=tc.prototype;return rm.isValid=function(){return this._isValid},rm.abs=function(){var e=this._data;return this._milliseconds=tK(this._milliseconds),this._days=tK(this._days),this._months=tK(this._months),e.milliseconds=tK(e.milliseconds),e.seconds=tK(e.seconds),e.minutes=tK(e.minutes),e.hours=tK(e.hours),e.months=tK(e.months),e.years=tK(e.years),this},rm.add=function(e,t){return tJ(this,e,t,1)},rm.subtract=function(e,t){return tJ(this,e,t,-1)},rm.as=function(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if("month"===(e=N(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,r=this._months+tQ(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(t0(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw Error("Unknown unit "+e)}},rm.asMilliseconds=t2,rm.asSeconds=t3,rm.asMinutes=t4,rm.asHours=t6,rm.asDays=t5,rm.asWeeks=t8,rm.asMonths=t9,rm.asQuarters=t7,rm.asYears=re,rm.valueOf=t2,rm._bubble=function(){var e,t,r,n,a,o=this._milliseconds,i=this._days,s=this._months,l=this._data;return o>=0&&i>=0&&s>=0||o<=0&&i<=0&&s<=0||(o+=864e5*tX(t0(s)+i),i=0,s=0),l.milliseconds=o%1e3,e=ed(o/1e3),l.seconds=e%60,t=ed(e/60),l.minutes=t%60,r=ed(t/60),l.hours=r%24,i+=ed(r/24),s+=a=ed(tQ(i)),i-=tX(t0(a)),n=ed(s/12),s%=12,l.days=i,l.months=s,l.years=n,this},rm.clone=function(){return tS(this)},rm.get=function(e){return e=N(e),this.isValid()?this[e+"s"]():NaN},rm.milliseconds=rr,rm.seconds=rn,rm.minutes=ra,rm.hours=ro,rm.days=ri,rm.weeks=function(){return ed(this.days()/7)},rm.months=rs,rm.years=rl,rm.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var r,n,a,o,i,s,l,u,c,d,f,p,h,m=!1,g=rc;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(m=e),"object"==typeof t&&(g=Object.assign({},rc,t),null!=t.s&&null==t.ss&&(g.ss=t.s-1)),p=this.localeData(),r=!m,n=g,a=tS(this).abs(),o=ru(a.as("s")),i=ru(a.as("m")),s=ru(a.as("h")),l=ru(a.as("d")),u=ru(a.as("M")),c=ru(a.as("w")),d=ru(a.as("y")),f=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||i<=1&&["m"]||i<n.m&&["mm",i]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l],null!=n.w&&(f=f||c<=1&&["w"]||c<n.w&&["ww",c]),(f=f||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=r,f[3]=+this>0,f[4]=p,h=rd.apply(null,f),m&&(h=p.pastFuture(+this,h)),p.postformat(h)},rm.toISOString=rh,rm.toString=rh,rm.toJSON=rh,rm.locale=tk,rm.localeData=tD,rm.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",rh),rm.lang=tM,C("X",0,0,"unix"),C("x",0,0,"valueOf"),eu("x",en),eu("X",/[+-]?\d+(\.\d{1,3})?/),eh("X",function(e,t,r){r._d=new Date(1e3*parseFloat(e))}),eh("x",function(e,t,r){r._d=new Date(ef(e))}),e.version="2.30.1",W=to,e.fn=tV,e.min=function(){var e=[].slice.call(arguments,0);return tl("isBefore",e)},e.max=function(){var e=[].slice.call(arguments,0);return tl("isAfter",e)},e.now=function(){return Date.now?Date.now():+new Date},e.utc=d,e.unix=function(e){return to(1e3*e)},e.months=function(e,t){return tq(e,t,"months")},e.isDate=l,e.locale=eK,e.invalid=h,e.duration=tS,e.isMoment=S,e.weekdays=function(e,t,r){return tZ(e,t,r,"weekdays")},e.parseZone=function(){return to.apply(null,arguments).parseZone()},e.localeData=eX,e.isDuration=td,e.monthsShort=function(e,t){return tq(e,t,"monthsShort")},e.weekdaysMin=function(e,t,r){return tZ(e,t,r,"weekdaysMin")},e.defineLocale=eJ,e.updateLocale=function(e,t){if(null!=t){var r,n,a=eH;null!=ez[e]&&null!=ez[e].parentLocale?ez[e].set(O(ez[e]._config,t)):(null!=(n=eZ(e))&&(a=n._config),t=O(a,t),null==n&&(t.abbr=e),(r=new A(t)).parentLocale=ez[e],ez[e]=r),eK(e)}else null!=ez[e]&&(null!=ez[e].parentLocale?(ez[e]=ez[e].parentLocale,e===eK()&&eK(e)):null!=ez[e]&&delete ez[e]);return ez[e]},e.locales=function(){return B(ez)},e.weekdaysShort=function(e,t,r){return tZ(e,t,r,"weekdaysShort")},e.normalizeUnits=N,e.relativeTimeRounding=function(e){return void 0===e?ru:"function"==typeof e&&(ru=e,!0)},e.relativeTimeThreshold=function(e,t){return void 0!==rc[e]&&(void 0===t?rc[e]:(rc[e]=t,"s"===e&&(rc.ss=t-1),!0))},e.calendarFormat=function(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"},e.prototype=tV,e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},e}()},{}]},["kgW6q"],"kgW6q","parcelRequiree1df"),globalThis.define=t; | 286,709 | index | js | en | javascript | code | {"qsc_code_num_words": 53211, "qsc_code_num_chars": 286709.0, "qsc_code_mean_word_length": 3.59545959, "qsc_code_frac_words_unique": 0.07643156, "qsc_code_frac_chars_top_2grams": 0.00891709, "qsc_code_frac_chars_top_3grams": 0.01392446, "qsc_code_frac_chars_top_4grams": 0.007072, "qsc_code_frac_chars_dupe_5grams": 0.3098872, "qsc_code_frac_chars_dupe_6grams": 0.24192183, "qsc_code_frac_chars_dupe_7grams": 0.20051433, "qsc_code_frac_chars_dupe_8grams": 0.16433895, "qsc_code_frac_chars_dupe_9grams": 0.13637504, "qsc_code_frac_chars_dupe_10grams": 0.12095569, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.03501332, "qsc_code_frac_chars_whitespace": 0.01799385, "qsc_code_size_file_byte": 286709.0, "qsc_code_num_lines": 7.0, "qsc_code_num_chars_line_max": 166119.0, "qsc_code_num_chars_line_mean": 40958.42857143, "qsc_code_frac_chars_alphabet": 0.64450364, "qsc_code_frac_chars_comments": 0.0002023, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 9.25, "qsc_code_frac_chars_string_length": 0.26984288, "qsc_code_frac_chars_long_word_length": 0.17791259, "qsc_code_frac_lines_string_concat": 0.25, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codejavascript_cate_ast": 0.0, "qsc_codejavascript_cate_var_zero": null, "qsc_codejavascript_frac_lines_func_ratio": null, "qsc_codejavascript_num_statement_line": null, "qsc_codejavascript_score_lines_no_logic": null, "qsc_codejavascript_frac_words_legal_var_name": null, "qsc_codejavascript_frac_words_legal_func_name": null, "qsc_codejavascript_frac_words_legal_class_name": null, "qsc_codejavascript_frac_lines_print": 0.25} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 1, "qsc_code_num_chars_line_max": 1, "qsc_code_num_chars_line_mean": 1, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 1, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codejavascript_cate_ast": 1, "qsc_codejavascript_cate_var_zero": 0, "qsc_codejavascript_frac_lines_func_ratio": 0, "qsc_codejavascript_score_lines_no_logic": 0, "qsc_codejavascript_frac_lines_print": 0} |
2003100127/pypropel | pypropel/prot/feature/alignment/external/jsd/COPYING | GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.
| 17,987 | COPYING | en | text | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.4477037, "qsc_doc_num_sentences": 110.0, "qsc_doc_num_words": 2989, "qsc_doc_num_chars": 17987.0, "qsc_doc_num_lines": 339.0, "qsc_doc_mean_word_length": 4.75476748, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.22750084, "qsc_doc_entropy_unigram": 5.38102568, "qsc_doc_frac_words_all_caps": 0.07407407, "qsc_doc_frac_lines_dupe_lines": 0.00711744, "qsc_doc_frac_chars_dupe_lines": 0.00299677, "qsc_doc_frac_chars_top_2grams": 0.04010695, "qsc_doc_frac_chars_top_3grams": 0.01280608, "qsc_doc_frac_chars_top_4grams": 0.01196172, "qsc_doc_frac_chars_dupe_5grams": 0.1429074, "qsc_doc_frac_chars_dupe_6grams": 0.09421616, "qsc_doc_frac_chars_dupe_7grams": 0.04974669, "qsc_doc_frac_chars_dupe_8grams": 0.03834788, "qsc_doc_frac_chars_dupe_9grams": 0.03060794, "qsc_doc_frac_chars_dupe_10grams": 0.02321981, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 38.97333333, "qsc_doc_frac_chars_hyperlink_html_tag": 0.00639351, "qsc_doc_frac_chars_alphabet": 0.9673073, "qsc_doc_frac_chars_digital": 0.00471924, "qsc_doc_frac_chars_whitespace": 0.18713515, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} | |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ЗаявлениеНаВыпускНовогоКвалифицированногоСертификата/Forms/СведенияОВладельцеСертификата.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Form uuid="cd9799c9-f5bf-4537-8885-06fb6e6b8f93">
<Properties>
<Name>СведенияОВладельцеСертификата</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Сведения о владельце сертификата</v8:content>
</v8:item>
</Synonym>
<Comment/>
<FormType>Managed</FormType>
<IncludeHelpInContents>false</IncludeHelpInContents>
<UsePurposes>
<v8:Value xsi:type="app:ApplicationUsePurpose">PlatformApplication</v8:Value>
<v8:Value xsi:type="app:ApplicationUsePurpose">MobilePlatformApplication</v8:Value>
</UsePurposes>
<ExtendedPresentation/>
</Properties>
</Form>
</MetaDataObject> | 1,544 | СведенияОВладельцеСертификата | xml | ru | xml | data | {"qsc_code_num_words": 250, "qsc_code_num_chars": 1544.0, "qsc_code_mean_word_length": 4.384, "qsc_code_frac_words_unique": 0.34, "qsc_code_frac_chars_top_2grams": 0.08211679, "qsc_code_frac_chars_top_3grams": 0.10948905, "qsc_code_frac_chars_top_4grams": 0.13686131, "qsc_code_frac_chars_dupe_5grams": 0.40419708, "qsc_code_frac_chars_dupe_6grams": 0.40419708, "qsc_code_frac_chars_dupe_7grams": 0.27828467, "qsc_code_frac_chars_dupe_8grams": 0.22262774, "qsc_code_frac_chars_dupe_9grams": 0.04379562, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.07579972, "qsc_code_frac_chars_whitespace": 0.06865285, "qsc_code_size_file_byte": 1544.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 70.18181818, "qsc_code_frac_chars_alphabet": 0.68567455, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.46567358, "qsc_code_frac_chars_long_word_length": 0.05569948, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ЗаявлениеНаВыпускНовогоКвалифицированногоСертификата/Forms/ТехническаяИнформация.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Form uuid="d19e8fcc-62cc-4ce4-81bc-ead33a2714df">
<Properties>
<Name>ТехническаяИнформация</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Техническая информация</v8:content>
</v8:item>
</Synonym>
<Comment/>
<FormType>Managed</FormType>
<IncludeHelpInContents>false</IncludeHelpInContents>
<UsePurposes>
<v8:Value xsi:type="app:ApplicationUsePurpose">PlatformApplication</v8:Value>
<v8:Value xsi:type="app:ApplicationUsePurpose">MobilePlatformApplication</v8:Value>
</UsePurposes>
<ExtendedPresentation/>
</Properties>
</Form>
</MetaDataObject> | 1,526 | ТехническаяИнформация | xml | ru | xml | data | {"qsc_code_num_words": 248, "qsc_code_num_chars": 1526.0, "qsc_code_mean_word_length": 4.35483871, "qsc_code_frac_words_unique": 0.33467742, "qsc_code_frac_chars_top_2grams": 0.08333333, "qsc_code_frac_chars_top_3grams": 0.11111111, "qsc_code_frac_chars_top_4grams": 0.13888889, "qsc_code_frac_chars_dupe_5grams": 0.41018519, "qsc_code_frac_chars_dupe_6grams": 0.41018519, "qsc_code_frac_chars_dupe_7grams": 0.28240741, "qsc_code_frac_chars_dupe_8grams": 0.22592593, "qsc_code_frac_chars_dupe_9grams": 0.04444444, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.07243319, "qsc_code_frac_chars_whitespace": 0.06815203, "qsc_code_size_file_byte": 1526.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 69.36363636, "qsc_code_frac_chars_alphabet": 0.68635724, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.47116645, "qsc_code_frac_chars_long_word_length": 0.05635649, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ЗаявлениеНаВыпускНовогоКвалифицированногоСертификата/Forms/СведенияОбОрганизации.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Form uuid="1796bcbb-a629-4509-95c9-78562689f809">
<Properties>
<Name>СведенияОбОрганизации</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Сведения об организации</v8:content>
</v8:item>
</Synonym>
<Comment/>
<FormType>Managed</FormType>
<IncludeHelpInContents>false</IncludeHelpInContents>
<UsePurposes>
<v8:Value xsi:type="app:ApplicationUsePurpose">PlatformApplication</v8:Value>
<v8:Value xsi:type="app:ApplicationUsePurpose">MobilePlatformApplication</v8:Value>
</UsePurposes>
<ExtendedPresentation/>
</Properties>
</Form>
</MetaDataObject> | 1,527 | СведенияОбОрганизации | xml | ru | xml | data | {"qsc_code_num_words": 249, "qsc_code_num_chars": 1527.0, "qsc_code_mean_word_length": 4.3373494, "qsc_code_frac_words_unique": 0.3373494, "qsc_code_frac_chars_top_2grams": 0.08333333, "qsc_code_frac_chars_top_3grams": 0.11111111, "qsc_code_frac_chars_top_4grams": 0.13888889, "qsc_code_frac_chars_dupe_5grams": 0.41018519, "qsc_code_frac_chars_dupe_6grams": 0.41018519, "qsc_code_frac_chars_dupe_7grams": 0.28240741, "qsc_code_frac_chars_dupe_8grams": 0.22592593, "qsc_code_frac_chars_dupe_9grams": 0.04444444, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.07946554, "qsc_code_frac_chars_whitespace": 0.06876228, "qsc_code_size_file_byte": 1527.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 69.40909091, "qsc_code_frac_chars_alphabet": 0.67932489, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.47085789, "qsc_code_frac_chars_long_word_length": 0.05631958, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
2003100127/pypropel | pypropel/prot/feature/alignment/external/jsd/alignment.scores | # uniprotsp_piud.clustal -- js_divergence - window_size: 3 - window lambda: 0.50 - background: blosum62 - seq. weighting: True - gap penalty: 1 - normalized: False
# align_column_number score column
0 -1000.000000 M-M-M-T----TET--TTTMM-M-----------------------------------------------------P-----------------------------------------------
1 -1000.000000 E-S-D-Q----QTE--QQQEE-E-----------------------------------------------------V----------------------G------------------------
2 -1000.000000 K-S-S-N----DGY--DNNPP-P-----------------------------------------------------P----------------------P------------------------
3 -1000.000000 E-E-E-E----EEN--EEEAA-A-----------------------------------------------------E-----------------------------------------------
4 -1000.000000 V-N-N-G----EKN--EGG---------------------------------------------------------S-----------------------------------------------
5 -1000.000000 W-CMC-----------------------------------------------------------------------P-----------------------------------------------
6 -1000.000000 E-FHS-----------------------------------------------------------------------A-----------------------------------------------
7 -1000.000000 Y-VDI--------------------M--------------------------------------M-M---------F-----------------------------------------------
8 -1000.000000 T-AST--------------------T--------------------------------------A-A---------A-----------------------------------------------
9 -1000.000000 H-ENE--------------RR-R--D--------------------------------------D-D---------R-----------------------------------------------
10 -1000.000000 R-NNN--------------EE-E--S--------------------------------------S-N---------R----------------------A------------------------
11 -1000.000000 K--V--Q----QLM--QQQPP-PL-I------------II--------------------LL--ILI-----IF--A-----------------RAAA-PN---AA-RLLLYH-LRLL--A---
12 -1000.000000 K--E--T--A-TFF--TTTPP-PE-Y------------EE--------------------KK--YSY-----QR--P-----------------PVVV-PT---VI-PNNSPP-KPNN--I---
13 -1000.000000 K-SKS-S--K-SVV--SSSAA-SS-S------------VV--------------------YY--SQS-----VY--T-----------------AYYQ-GE---YY-AYFYTT-FAYY--Y---
14 -1000.000000 V-SDS-L--VMLHY--LLLRR-R--M------------VV--------------------LL--T-T-----LL--L-----------------ELLI-VE---LL-ELLLEE-LELL--L---
15 -1000.000000 L-LIS-----I--------AA-A---------------ML--------------------SS----------MP--P--------DD-----QQEDDD-KE--RDD-EPPPEEQPEPP--D---
16 -1000.000000 K-HTH-----N--------RR-R---------------KK--------------------DD----------KG--R--------PP-------ILLP-GI---RR-IEDEII-GIEE--R---
17 -1000.000000 P-PPL-----P--------PP-P-----------------------------------------------------A----------------------P------------------------
18 -1000.000000 P-ESE-----E--------PP-P-----------------------------------------------------P----------------------P------------------------
19 -1000.000000 R-SER--M--L--------PP-P-----------------------------------------------------S-----------------------------------------------
20 -1000.000000 D-GLG--M--R--------AA-L-----------------------------------------------------G-----------------------------------------------
21 -1000.000000 G-----R--E-RNH--RRRAA-A-----------------------------------------------------S----------------------G------------------------
22 -1000.000000 K------------------SS-S-----------------------------------------------------S----------------------Q------------------------
23 -1000.000000 N------------------PP-P-----------------------------------------------------P----------------------G------------------------
24 -1000.000000 Q-Q-Q--------------AA-A-----------------------------------------------------A----------------------P------------------------
25 -1000.000000 Y-E-K--------------EE-E-----------------------------------------------------E----------------------S------------------------
26 -1000.000000 K-N-D--------------AA-A-----------------------------------------------------G----------------------G------------------------
27 -1000.000000 W-D-H--------------EE-E---------------DD--------------------QQ----------NS--C--------CC-------ECCC-EE---CC-EIRIEG-TEVV--C---
28 -1000.000000 GKA-GPA-GR-AGGP-AAAAA-A---------------AS--------------------PP----------AP--M--------EE-------AKKK-KP---KK-SNPSSS-PSNN--K---
29 -1000.000000 STT-TMS-EA-SNEM-SSSRR-R---------------SS--------------------DD----------SS--V--------NN-------STTS-GS---MM-SFSFPP-VSFF--M---
30 -1000.000000 SDS-SLE-SD-EGSL-EEEGGMG---------------RR--------------------NN----------RA--P--------NN-------SNNN-DT---NN-SEAENN-ASEE--N---
31 -1000.000000 PLPPINSTSLDSPSS-SSSPPPPQ--------------EE--------------------PP---N------EE--P--------PP-------PPPP-PP---PP-PPPPPP-PLPP--P---
32 -1000.000000 R-HAH--K-----------EEIE-----------------------------------------------------G----------------------G------------------------
33 -1000.000000 G-FNF--H-----------GGLG-----------------------------------------------------S----------------------I------------------------
34 -1000.000000 M-SPE--------------LLLL-----------------------------------------------------P----------------------P------------------------
35 -1000.000000 G-TGK-----G--------LLKL-----------------------------------------------------A----------------------G------------------------
36 -1000.000000 R--C------R--------RR-R-----------------------------------------------------C----------------------M------------------------
37 -1000.000000 K--L------A--------GG-GE--------------QQ-------------------------N------Q---R----------------------R------------------------
38 -1000.000000 C--H------D--------SS-SK--------------TT-------------------------R------T---C----------------------D------------------------
39 -1000.000000 R-RSH-----G----M---GG-GQ--------------LL-------------------------L------L---R----------------------G------------------------
40 -1000.000000 HDHKH-Y--DFS---ESYSYY-YLF--AAA-AA-A--AKK-AA--RAAA-----KA----------------T---I--------AA------------LA-----Y-----------Y----Y
41 -1000.000000 VCEEEST-GCITGGSETTTEE-ELT--VVV-VV-V--VSS-VV--EVVV-----EV---------N----S-S---D--------NN--------TTR-ET---TTI-----------I-T--I
42 -1000.000000 QLGHGLE-TLHKTTPGKEEGG-GHG--GGG-GG-G--GNN-GG-LLGDG-L---LGG-----GG-I---GFLQ-SSGLG------GG----G---EEG-GA---EEG-----------G-E--G
43 -1000.000000 KKSSSKK-NKRNKNKKMKKSS-SC-G---------S--TA---Y-R---S-SF-R--YIHEEY-RDRFN-D-AGDDL--------GG-AKKYGGAGGGA-LQ-GGG-EFAF--GTEFF--G---
44 -1000.000000 LCFIICG-SCILCSRPLFLTTKTQ-P---------K--EE---FEG---S-FM-D--FFDSSS-WSWIF-L-EKSSP--------EE-KYYSVV-DDEQ-GT-VDDY-MEM--VESMINAD--K
45 -1000.000000 LLQKQLL-LFVPFLHRPHPSSQSM-Q---------L--MV---LKR---Q-QY-R--LQISSE-KLKMS-L-INKEQ--------NN-ISSEAAPQQQI-PS-ARQCAPSP--ASTPPCMQ--E
46 -1000.000000 AGVAVRR-RRPRRRGRKGRWWVWA-Q---------S--QQ---RSE---I-IS-E--LTAGGT-LEVDR-E-QATTY--------CC-PQQTVVACCCP-TS-VCCETKGR--VGASSEVC--G
47 -1000.000000 PCARACCKCCKCCCYMCCCTTAT--C--------------------------------------L-V---------A--------EE-----HHLRRR-PL--HRRCL-----H-G--C-R--S
48 -1000.000000 LYVLVYYKCYIYYCYLYCYRRIR--S----------------------------------LL--S-S------L--L--------NN-----NNNNNN-PN--NNNYNLLL--NQALLY-N--I
49 -1000.000000 CGMFLGGCGGGGGGGIAAVLLTL--C----------------------------------PP--R-Y------G--V--------GG-----GGGGGG-GG--GGGIGPPP--GP-PPI-G--L
50 -1000.000000 VVNFIVGFVVLVVVVPVVVLLVLG-L---------P--LL---V-L---L-LL-L--AFTYY--FVLLG-V-LY--V--------GG-L---GGAAAALLA--GAALAYYY--GYGYYL-A--I
51 -1000.000000 VIVLVIV-II-IIIICFIILLLL--V--------------------------------------A-V---------M----------------------P------I-----------I----I
52 0.161151 LMVIVMI-MMMMMMMGMVIGGGG-IAKQQQ-QQ-QK-QQE-QQV-FQQQ---S-FQ-L-NVV--MAMYV-T-EI--A--------TT-D---TTTTTTEGT--TTTGTVVI--TVTIVG-T-MG
53 -1000.000000 IV-M-VT-VVCVVVV-AVVAAIA-QIREEE-EE-EH-EAA-KK--REEE---K-QE---QCC--VKV---K-NC--V--------CC-K---CCCCCCKLC--CCCICCCC--CCCCCI-C-CI
54 -1000.000000 V-FFL-I---F----S---LLLL-ML-LLL-LL-L--LLL-LL---LLL------L----PP--L-L-----LN--L--------VV-L---KKILFLL-IL-EFF-ILLL--ELELL--F-R-
55 -1000.000000 LVILIVA-VVLVVVVIVVVLLCL-PL-KKK-KK-K--KTA-KK---KKK---L--K----NN--L-L-----TT--L--------NN-NKK-EEDNNNNPDS-ENN-DNNN--ENGNN--N-K-
56 -1000.000000 V-TTT-----S----I---FFLF--T------------AA------------R-----------T-T-----M---A-----------TAA-------TA-------------------R--R-
57 -1000.000000 L-IIS-----I----I---AAIA--A------------KK---K-----Q-QE----KQ-----V-VEH---E---V-----------KIA-------KP-------------------A--G-
58 -1000.000000 V-LIL--I--I----V---IILI--V------------II---L-----P-PY----FL-----I-ILK---I---C-----------VKK-------IP------T-----------TA--LT
59 -1000.000000 LAIVIAIIAAIAAAALVAALLFL--L--------------------------------------L-L---------T----------------------I------N-----------N---LN
60 -1000.000000 LAAMAAPVAAVAAAAFAAAMM-M-S-AAAA-AA-A--A---AA---AAA------A--------------------V----------------------V------T-----------T----S
61 -1000.000000 VLLVLLLLLLCLLLLVLLLSS-S-ELYVLL-VV-V--V---VV---VVV------V--------M-M---------V----------------------P------L-----------L----L
62 -1000.000000 ASIAISSISSISSSSISSSIITI-ESSGGG-GG-G--G---DD---GGG------G--------S-S---------A----------------------P------I-----------I----I
63 0.131884 LVAAAVVTVVIVVVVIIVVLLIL-QVGLLL-LL-L--LQQ-LLS--LLLH-HQ--L-SP-AA--L-LHL---QT--L--------GG-QGN-GGSTTTRVSQ-GTTYSPNH--GNHHHYNT-TI
64 0.117373 VTLLLATTAAMAAAALAAAAALA-WLQPPP-PP-P--PGG-PPD--PPPR-KQ--P-DE-TT--L-LTE---QL--A--------FF-GII-FFFFFFADFS-VFFNFTTV--VTVIINGF-IN
65 0.115935 ALSSNLLNLL-LLLLSLLLSSVS-ELEDDD-DD-D--EEQ-DDY--EEEN-TY--E-YN-VA--M-LYH---EN--S--------VV-LTM-RRTRRTLPKQ-RRRFTDVD--RLIDDFDR-AI
66 -1000.000000 VSVAVSSIPSISSPSTSSSKKVK-HYQQQQ-QQ-Q--KQQ-RRH--KKKI-IH--K-HF-----Y-YHH---QS--R--------CC-QHH-CCCCCCQQC--CCCICH-D--C-CHHITC-FI
67 -1000.000000 QVGIGVVIAVAVTAA-VVVGG-G-TQASSS-SS-S--SNS-SST--SSSK-KP--S-TT-----Q-QSA---S---G-----------NKN-------GG------F-----------F---TG
68 -1000.000000 LRQRKKKTTRTKKTT-KKKCC-C-KWKKKK-KK-K--KRD-KKR--KRKE-ES--K-RE-----R-RSK---R---G-----------SEE-------SF------W-----------W---IE
69 -1000.000000 QKYAYMQ-KN-KKKK-KKKIIVI-QIKQQQ-QQ-Q--QLL-QQV--QLQL-LL--Q-LL-----I-TLL---L---------------LLL-------LV------E-----------D---LI
70 -1000.000000 SKNNNTM-TK-TTTT-TTT--T--ELEQQQ-QQ-Q--QGE-QQT--QQQS-ST--Q-TS-EE--L-LTK---KF-----------LL-ENN-LLLLLLENLG-LLLNLG-E--L-LEEH-L-LN
71 -1000.000000 CKCCCPELEI-PEEERPPA--C---C------------AA---C-----C-CC----CC-PP--C-CCC---TV-----------CC-NCC-CCCCCCNRCQ-CCCYCV-I--C-CIIY-C-FK
72 -1000.000000 SPPHPQQIQP-QQQQPQQQ--K---Q------------LL---I-----Y-YV----IY-II--C-CFI---LI-----------LL-VIT-LVLLLLMQLE-LLLILVEV--LEPVVM-L-VP
73 0.148495 SSPPSSSLLDSLILPPSSS--A--ESQAAASAATASTATTTAAARLAAA-T-ITRAPA-LRR-PSSFVATSTT----TRQSQC-QFF-QMMKLLLLLLRPLEQLLLNVAVASSLVHAANSL-DQ
74 0.134014 YCSSSTITIRKTIIVPATT--F--VTIFFFSFFGFLDVQQDVVTMQVVV-T--DQVTT-LWW-TTKMSETSSQE---TSKRKL-KCC-QEEACCCCCCQPCLKCCCQCWWWTTCWCWWKSC-RN
75 0.152143 PEDVDINRNEHVNNNDVVI--P--DCNEEEAEECELSENNCEEGDNEEEGGG-CNEEGGDTA-RCGCEGRGDSS---GAAEAGVVEEGSEDEDDEEEENPEPADEEKEKTKVADTNKKKGE-DN
76 0.148848 QPSCHNNDKPAKKKKINKNKKYKSRARRRRHRRSRFPRQQSRRGNNRRRSGSESSRSGSCNN-SSTSKSSFHQD--TVDRGRSSRKKSDKKGVVIQQQDTIQRVQQDIYYYAAVYIYYDKQ-RD
77 0.125609 FCHLHTTSTCKTTTTKTTTCCFCELSLLLLNLLALPALVVVLLTFSLLLVFVDVSLFTVRVV-YHAQMTYVRLV--KLQHYHGEHDDDISVKGGDDDDITDAHGDDKQYSYDDGTDYYKND-YK
78 0.204132 SYVQVYSQYYPYYYYIYYYEESERCCCCCCSCCKCCKCLLNCCWSCCCCKSKWNCCGWKRKK-GCCCWWGCCLP--CSTCCCCCCTTCLWWGLLQTTTLTLRCLTTT-ADAQQLDQAAMLI-LI
79 0.211213 HASAAAASATVAAAALAAATTKAARPRCRRSCCLRGLHQQLHHTGERHRNQNSLERTTNIVV-TPNSGNTNNQT--QSVGGGYCGEECESSRHHEEEEQPAIGHEEFKTTTEERTETTFTENVF
80 0.215489 MVSATAALAAAAAAAYAAAPPVPCLSPRHHPRREHAKPLLEPPCPPPPPCPCCEQPVCCTEE-VSIRCCVTPMH--PPLHPHSVHGGSMCCGFFLTTTVGNSHFTTYLHRDQQFHVHHYETNRY
81 0.512641 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCQCCIICCCCCCCCCCCCCCCCCCCCCC-CCCCCCCCCVC--CCCCCCCCCCCCVCCFCCCCCCVCCCCCCCCCCCCCCCCCCCCCCCCC
82 0.431216 PSSPKPPPPPSPSPPKQPPPPPPPPPPPPPPPPPPSPPAMPPPPPPPPPPLPPPPPPPPPDDVPPPPPPPPPLPVVPPQPPPQLPDDPAPPESSEDDDSPEPPSDDPEEDEEENHEEEPPDPGP
83 0.340611 DSEENRSYKSGRKKQERRREEDEVWDWKKKNKKQKRKWQQQWWVETWWWLPLTQPWTVLEPPKRIKNNIKEKQSKKQPSENEEDERRKRKKKPPEYYYQPEEEPYYKEPAPEEPVEPPKTYQKK
84 0.386036 TGDSENNDNGDNNNNGNNNDDEDNDRDDDDNDDDDQDENDDEESDSEEENNNPDSEGSNGSSYNLNLHDDKMGQYYGNEENEKKEGGRGNDYGGGGGGGQGGEGGGDGGGGGGGGGGGDDGDDD
85 0.626367 WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWTWWWWWWWWWWWWWWWWWWWWWW
86 0.338333 IIVIIITIIILITIIVIIILLILVTMTTTTITTLTEHTKKLTTRLLTTTKIKTLLTDRELQQFDTLMKREIQKWFFMILIIIIVIHHIKKRFEETHHHKKINIDHHVTNLATTDLNNNVKHLLV
87 0.327085 GGGGSGEGGGGGGGGGGGGLLGLEFKVFFFQFFSFYSFYYSFFAWSFFFHMHSLPFFAYPPPCFRHRSAFNWFPCCWIKTCTGGTKKGYPLCAPKKKKYGKATAKKGKPPPKKAPKPPGMKPEG
88 0.506029 FFYFYVYFVFVVVVVYFVVYYYYHFYFFFFNFFHFFHFFFHFFFHFFFFYHFFHFFHFFFFFYHNFNFFYFYNYYYSYYYHYYHYFFHFFFYFFFFFFFFFYYFFFYFHNYFFFNYYYYFFMFY
89 0.440066 QGQQKGGQGGRGGGENGGGGGNGENGQQQQRQQRQEQQNNRQQQGEQQQQGQQRQQQQQEQQRQGQGGQQQQGASGQEQSRSQQSQQQSGGGQQQQQQKRQRSQQQNQNNHQQQNQNNNNQNDN
90 0.450299 SNRRRNNNNSDNNNNKNNNRRSRRGNGGGGEGGDGGDGGGDGGSKGGGGSKSSDGGGSSGGGTGSQSSSARNGGTTEKGNNNCCNGGCGSSIGGGGGGGEGSNGGGNGRGRGGGGGRRNGGGNN
91 0.494769 KKKKTKKKKKKKKKKNKKKKKKKSNHNNNNSNNKNRKNNKKNNNNSNNNSSSSKSNRNSKHHKKHKHSNRKSSHKKQSKSNSNNSHHNNHHKAAHQQQNQHYSAQQVHNFNHHAFHNNVRQLLV
92 0.681898 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCFFCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCLCCCCCCCCCCCCCCCFCCCCCCCCCFCCCCCCCCCCCCCCCCCCCCCCCCC
93 0.669472 YFYFYFFYFFFYFFFYYYFYYYYYYYYYYYYYYFYYFYYYFYYYYYYYYYYYYFYYFYYYYYYFYYYYYFYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYFYYYY
94 0.545781 YYFYFYYYYYYYYYYFYYYYYYFWFYFFFFYFFHFYHFYYRFFFLFFFFFLFFHYFFFFYRRYFYYYLFFYYYKYYYLWYQYFFYRRLYWLYKKRKKKYHRYYKKKYRKLKRRKLRKKYLKKFY
95 0.520721 FFIFFFFFFFFFFFFFFFFFFFFFFFFMMMVIIVMFVMFFVMMPFFMIMFFFIVFMLAFFLLFFFFFIPLFFFIFFLFFIFIIIIYYFFVVFHHYYYYFFHFIHYYFHLLLHHHLHLLFFYIIF
96 0.442381 SSSSSSSSSSSNSSSSNNNSSTSSSSSSSSSSSSSSSSSSFSSLSSSSSSSSSSSSSLSSQQISSGSSLSGTSHIISSSGFGSSGFFFSTPNFFFFFFSSFNGFFFGFQVQFFFAFQQNNFFSS
97 0.290510 EETDTEEKEEDEGEEEEEEEEIERKVKNNNENNQNLQNRRQNNNSVNNNTFTTQENTNTPAAMFMKMTTTKTSRMMEPNKNKNKKAADRKTMSSPAAALAEEKSAANPKNKHPSNPKKNPADEN
98 0.319004 NDVDTYYEYDDTYYYETTIEENESSEFSSSISSVSSTSDDVSSDGPSSSTSTGVTSSDDSEENSEGEKDSGNVDNNESEEEEEEEHHETHVDTTDHHHIEEDEAHHDDEEEDDTEDEEDLHEND
99 0.330173 RMKTTATETMTPPTPKAAPPPEPGQEQQQQ-QQ-QR-QKK-QQN-KQQQT-TM-QQ-NTTKK--KSKEN-TEKE--A--------RR-PKS-RRRRRRPSRR-RRRERKSERRRSREESQRLKN
100 0.333895 NGRKKSSGSGRSRSSNRRSRRTRKRKQRRRWRRSRMSRKKSRRQSTRRRLGLQSAREQIKRRKEKKRNKEKEKKKKQLMRERLEKRRLKAARRRERRRKLEEKRRRKAKNKEERSEKKKLRKLN
101 0.384367 DNSNSNNDNNNNNNNNNNNDDNDADDNNNNSNNNNSINPSNNNTFTDNDTNSSNTDNTSSSSNSDQDFTSQKSKTTDNKRKRKKRAAKTSSKSSSTTTTNTTRSTTNTTSTTTSSTTTNHTASN
102 0.590116 WWWWWWWWWWWWWWWKWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWQWWWWWWWWWWWWWWWWWWWWWWWWWFWWWWWWYWWWWWWWWWWWYWWWWY
103 0.357548 NTTTATTNTTTTTTTSTTTNNNNAHNNHHHHHHKHHKHRHEHHHEAHHHSYLTEDQNHADQQSKNINSANVAHRSSEDSENEKKAEETYSNSEEVDDDYDMVAEDDNVNDNVVEDVHHTADKDT
104 0.340474 TFSSLFFSFFAFFFFLFFLTTDTDDSDDNNTDDEDKGDEEEDDESADDDSGSKETDNELEEEGDSQSTEEHNEDGGGQDEQEDREDDESEKGEEDAATSEDDEEAANDEKEDDEADEETHADDT
105 0.482470 SSASASSSASSSAAAASSSGGSGASSSSSSSSSCSASSAAGSSSSASSSSSSSGASSSSASSCSSASSSSASAACCSSSSSSGSSAASASSCAAAAAAAAAASAAAAAAAAAAAAAAAAAAASA
106 0.371978 LQQQQQKKQQKQQQQVQQQRRKRDMLVVVVQVVRVKLIEEQIIEQQVIVLKLQQQVMELRKKKMLRLEERRRELKKQKYLQLRRLEEREEEKEEEEEEEKEDLEEESELHLEEEHELLTQEEMD
107 0.307053 ESNRRTDYTSITATAETTTQQKQNTENTTTETTITAATKNATTREDTTTKRKKASTNRKMRRQDKFKQRDYKQTAAARVLALDDLKRDQKEQSSSRRRQESLLNRRNSQAHRRTLRRRNIRMMN
108 0.329357 NSAFSFFNFSFLFFFRLLLYYLYYAFAAAANAADAEDAFFDAANKHAAANHNNDYAFNNFAANYFAFNNFADFTNNFQYASAFFADDFFNNTQQREEEFRRYAKEEYQSKSRRQKRSSSSEFVK
109 0.579351 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC
110 0.286971 KISDSKASMVSKMMMKKKKHHDHRKLRQQRLRQDQEGKTVGQQSLAQQQSSSSGGQKSSQLLQAASAVSKDIVRQQSSLTLTVATRRAIFSQRRRRRRVSRQTRRRKRQKLRRRKRQQKMRRDK
111 0.297572 AAESEAATAALAAAADEEETTVTLEAKEEEKEEKEEGESSREEGSDEEEDQDVRGEQGAERRHTDDDQGGDDSKHHAQESSSSSSRRSSSRIAAALLLSNENSMLLQKSASEEMAEAAQKLKNQ
112 0.355436 LLHQDQQQQSQQQQQMQQQHHMHEMRLVVVEVVKVMKVQQKVVMLAVVVMLMMKQVKMMNGGYQKLKMMKMKQEYYHLRKQKHQKRRQRMMSLLQQQQRLHMKYQQLQNFSQQYFQDDLDQYLL
113 0.362252 EDGDAEGHENKEEEEDEEGEEDEDGDDGRRGGGGRHGGGGGGGSDSGGGGGGGGGGGSGYGGSGGQGGGGENGGSSHGKNNNNNNSSNKGGSGGQGGGNSQNNGGGNQNSNQQGGQNNNGGKGN
114 0.441778 AAAAAAAAASAAAAAGAAAAASAAASAAAASAAAASAAAAAAASAAAAAAAAAAAASSASGGLSSGSAASGSAGVVASSSSSSSSGGSAAALAASAAASSANSAAA-SSSSSSAASSS-AACNN
115 0.393728 SHTDTEEDQHEEQQQHEEEAASVHQHQQQQTQQTQHTQHHTQQHQHQQQHHHDTHQTHHHDDPTHRHHHTQTHDPPTNHSSSSSSHHSHHHSHHHHHHHSHLSHHHSHVDTHHHDHAASNHHNS
116 0.529090 LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLIILLLLLLLLLLLLLLLLLLLLLLLMLVLLLLTLLLLLLLLLLLTLLLIT
117 0.395480 TAAAAAATAAAAAAATAAAAAIAVVLVVVVLVVLVILVAALVVVLVVVVVLVVLVVAVVVLLVALVLVMAVVATLVPILLLLLLLTTLTLVLTTSTTTTLSSLATTLSTIISSAISIILATANL
118 0.376022 SLVQVRRIRLQRRRRSRRRVVRVVIVVVVVQVVLVILVSSLVVTKIVVVVKVVLIVITVISSKITSTVTISKSSKKLKISKSQQSSSHSVVKSSSSSSSISVSSSSTSDSDSSSSSDDASSS-A
119 0.469390 IFIVIFFIFFIFFFFIFFFIIFIVIIIIIIIIIIIIVIVVIIIIIVIIIIIIIIVIVIIIIIIVFIFIIVIIVIIILIIIIIIPIVVIVIIIIIIIIIVII-IIIINIIIIIIIMIIINIIIIN
120 0.330169 DDDEDDDDDHDDDDDSDDDQQDQTKTKKKKEKKQKDQKTTQKKNNGKKKDDNNQRKNNNNHHDNPHPNSNHDAHEESDHDYDQQDHHQSHQDCCVLLLTNILDSLLNVTHGVVSHVTTNHLHNN
121 0.462810 SSSSSTTNNSTTNNNSNTTSSNSSSDSSSSSSSDTSDSSSDSSTSGSSSTNTTDGSTTSSSSDTDSDTTTSSSTDDHSDNSNTSNSSNSSSNTTTSSSSDTTNTSSNTSSSTTTSTSSDSSLTL
122 0.338077 LLEFEEEIELQEEEQKEEEQQIQWHNDAAAKAAQAYQAQQQAAETLAAAQSWRQLAPEQFMMEPNQNEEPPLKIEETSQEKERREPSREKQEPPPHHHEEPQEPHHTPLLLPPPLPLLTLHYNT
123 0.415913 EEKQKEEEKEEEEKDEEEEKKEKEEQDEEEEEEEEAEEEEEEEAEDEEEEKEEENEEAEAATNEQKQAAEEEEEDDQKLEEENNEEEDSEEDEEEEEESEEAEEEENEAAAEEEAEAANEEG-D
124 0.511622 EEDEDEEEEEDEEEEEEEEEETEEEEEEEEEEEEEKEEEEEEEEDEEEEEEEEEEEKEEEEEEKGEGEEKEEEEEE-EEEEEEEEEEEEEEEEEEEEEEEEEEEEELEEDEEEEDEEELEEE-L
125 0.450809 LLMLMLLMLLMLLLLFLLLLLLLQQMQQQQMQQLQQLQQQLQQQLQQQQQFQQLQQLQQHLLLLVQVQQLQKQLLL-LMMQMPLMHHLQQQLQQQQQQQQQGMQQQLQVVVQQQVQVV-YQSSL
126 0.375862 ANNNTNNNNNENINNKNNNEENEKSSSNNNDNNRNNRNAARNNNGGNNNEEEDRGNKDENEEKKKDNNNKDDADKKDGAKDKASKSSRKDDKDDEMMVELEAKDMMNEEEEEEDEEEE-AMPGN
127 0.539801 FFFFFFFFFFFFFFFFFFFFFFFFFLFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFYLFLFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFWFFFFFFLFFVFFFFVFFFLFFELL
128 0.426990 ILLLLLLLLLLLLLLILLLMMVMVLLLLLLILLLLVLLLLLLLVILLLLLILILLLLVLVIILLFLFIILLLLILLLIILLLMMLIIVLIILVVVVVVLIVVLIVVTVLVLVVIVVLLTVVILT
129 0.288530 KKKLKSKRKKKKKMMLKRRFFSFQQQQQQQTQQLQMRQVVLQQTQTQQQFEFILSQQTSATTQQGMQTIQTMVIQQRVQAKSKNTNNSYTTQNNNNNNYKNATNNNKNVVVNNNVNVVKKNANK
130 0.288566 HRRRRRRRRRRRRRRRRRRKKRKHQVQLLLGLLDLFNLQQDLLQQRLLLRSRQDQLNQYKKKFDEQEQQDKSESRRKKKSLIFFASSSKGGNDDNRRRKRSSANRRTNTTTKKNTNTTVERE-L
131 0.251870 YYYYYYYYHYYHFYYYYYYFFYF-TFTTTTLSSIT-TS--ISSL--SSSKTKLI-SSLKHIIVAY-YLLT-P-LVVYVLLKSTQSGGK-LLAYYAGGG-IAILYGGYALLLAAYLALLYTGI-Y
132 0.189890 TKAKSKKK-KAKKKKKKKK----TSLSSSSRSS-ST-STT-SSDTTSSSPSPK-TS-DPGKK--LIVND-A-TG--RS-------HH-AND-RRQHHHASQK-RHHNQGHGQQRHQGGHTHS-H
133 0.191793 GGGGGGGCMGGGGAAGGGGTTGTGKSESSSGSSKSRISSNKSSKSRSSSKRRRKRS-EKS--I-GNGER-SMS-IIIPQ---------DRTP------GG-D----H--I----V---HG-GTH
134 0.170250 QARPESSSNTTSDNNPSSSRRKRPNEKNNNSNNYNNSNSAYNNRSGNNNRIKNYGNAQMPVVPIQKESRAHFKNPLTDL---------GDHS------GK-D----E-AKA---K-AADL-QSH
135 0.234850 RSESLFSSSSDSFFFGSPSRRGRVSAGRRRYRRNRESRGVNRRFFRRRRKNKSNRREFRREEDEDKDLLETSVDEEKNNPSPSTP--YIAAD------LG-FT---S-SES---K-SSKI-SKS
136 0.301532 NDEDEDGDSDMGDDDNGGGEESENYFYFFFDFFSFRSFDDSFFSPGFFFEAESSGFKSEVEESNFDFSSKGFYENSGSYSYSFFS--FPAAI------IY-NS---N-EEE---E-EELP-EDH
137 0.406485 HHHHHYYHHHHYCSSHYCYPPYPTTCASSSYATFSFFTHHFTTYFYATAFFFYFYAYYFYLLYYYSYYYYSFYLYYSFVSHSYFT--YHYYS------YF-VS---Y-TVT---I-TTYA-VYY
138 0.652834 WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWFWWWWWYWYFWWWFFFWWWWFWWWFFFWWWWWWWWWWWWWWWWWWWFFWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
139 0.547637 LIVIIIIIIIIIIIIIIIFIIIIMMIMMMMVMMIMIIMIIIMMLMLMMMIIILILMILILIIIIIIILLIILIIIIVIIIMIIITIIIIIIIIIIIIIILIIIIIIVIIIIIIITIIIVIIIIV
140 0.611015 GGGGGGGGGGGGGGGGGGGGGDGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGGDGGGNGGGGGGGGGGGNGGGKN
141 0.540777 LLLLLLLLLLLLLLLILLLLLILLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLALLVLVLMVLLVLLLLLLLLLLLLLLVLLLYLLLLLLLLLLLYGLLIY
142 0.394020 HHKSKHHKHHSHHHHEHHHRRNRHSRSSSSSSSSSTSSTTRSSASRSSSTSTSRRSLSSNNNSVRQRSRIRSTNSSRSNFVFSHFNNYTWWSNNNNNNTKSHFNNNSNSKSNNNKNSSSSNWVS
143 0.375199 ERKRNRRMRRRRRRRKRRRRRQRDDNDDDDQDDYDDYDDDFDDDRADDDDRDDFADYYDDDDYRNDDDDYNWDDYYRRFRQRYYRDDYKDDYDDDDDDKWDDRDDDLDSNSDDDNDSSLDDDDL
144 0.247917 ESEEESSASSKSSSSDSSS-----N-KNNNGNNLNNLNGGLNNNKGNNNVQVGLNNPKVAKKKP-N-QNRDSGKKK-QSSPSEESIIKG--NTTTMMMGKAKSTMM-TKNTTTTNTKK-HMKL-
145 0.209321 GSPQASSKSTQSSSSFSSSVV-VQK-HQQQHQQTQQSQTTPHHVPKQQQVSVGPKQAVVQLLEG-M-GAELSTIKKGTLSASEKSVVESGGKIIIFFFMPVKSIFF-IIIFIIISIII-VFKD-
146 0.294699 DEGGNEENEQGSEEENAAAGG-GNENEEEESEEDEEDEEEDEEEDVEEEEEERDIEEEEEQQKEIEINKEKGEQKKPEKHNHHRHEENEHHKEEEEEEEGENHEEEIEPPPEEEPEPPNS-DCN
147 0.285366 GHHQQHHRHHDQHHHGDHHDD-DGGSGGGGGGGMGGEGGGMGGGYQGGGGGGRMQGKGGGMMKKDGDGGKGRGMKKEVMHGHHNHRRGGRRKGGGHHRGQNRHGHH-GVTVGGGAGVV-T-FT-
148 0.314980 QPPPTPPTPPSPPPPTPNPDD-EPEGRTTTRTTNTEKTINNTTQSGTTTQPQHNGTMQQDNNEKGEGKQRESSYEEGPTPSPAAPDDTDQQDDDDDDDDPDRPDDD-DSLSDDDLDSS-Y-SN-
149 0.536494 WWWWWWWGWWWWWWWWWWWFFNFWWWWWWWWWWWWWWWWWWWWWWYWWWWWWWWYWWWWWFFWWWFWWWWFWWFWWWWWWWWWWWFFWWWWWFFFFFFWDFWWFFF-FFFFFFFFFFF-W-WI-
150 0.394669 RIKKKKKQRIKKKKKKKTKHHRHKYRHQQQLQQKQQKQRRKQQQLQQQQQFRQKRQRQQREEARRVRQRRIFREAAHLTVQVLLVQQLYQQVLLRRRRSNRHVLRR-REQERRLQREE-F-E--
151 0.635348 WWWWWWWWWWWWWWWLWWWWWKWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWTWTWWTWWWWWWWWWWWWWWWWWTWWW-WWWWWWWWWWW-W-W--
152 0.467425 TTSIATTVTTTTTTTETTTVVIVVLEVVVVQVVIVVIVVVIVVVEVVVVVEVVIVVIVVLSSIIESEIVIVETSIITEVIEMEEITTEVVVISSSTTTVSSSISTT-SSSSSSSSSSS-M-T--
153 0.538137 NDNNNDDDDDNDNDDDDDDNNPNDDDDDDDDDDNDDNDDDNDDDDDDDDDDDDNDDNDDDDDDNGDDDDNDDDDDHDDDNDNDDNDDNDSDDDDDDDDDHDSNDDD-DNDNDDDDDNN-D-D--
154 0.504898 RNGGGNNGNNGNNNNGNNNGGGGGGGGGGGGGGGGGGGGGGGGKGGGGGDGDQGGGNKGGGGNNGGGDQNGGGGNNGGGGGGNGGNNGQQQNGGGGGGDGGGGGGG-GGGGGGGGGDD-S-R--
155 0.388991 TTKTKTTATTTTTTTSTTTDDIDTSSSSSSSSSTSTSSTTTSSTSVSSSTSTTTASSTTSSSGSPSPTTSSSTTGGVSSLSLSTLTTLTTTGAPHSSSTHHSLVSS-HSTSHHVTHSS-T-S--
156 0.351597 AEEEEQQTEETAEEESAAEPPNPDPPHPPPSPPAPDTPPPTPPPPSPPPPAPPTSPVPPPLLQVAPAPPVHVPPPQPTPASATVTGGASPPPPPSAAPPESLTPTT-SSESSSPEPSS-S-C--
157 0.347901 FYFWFYYFYYFYYYYYYYYFFFFYLLLLLLPLLFLTLLFFFLLFLLLLLFFFYFLLFFLVVVSFLVLFFFVPFVSSLFIFLFLPFLLLFYYSLLLLLLFALVFLLL-LVVVLLLVMVV-M-T--
158 0.284440 NNNTNNNTNSNNNNNDNNNDDSDESNLSSSSSSNSRNLNDNLLNM-SLSTFTNN-SNNT---KNS-SSNN-SN-KKPSDKSKSSK--PNNEK------NG--K---K-----------D----N
159 0.222841 SNNRSYNKNNGNNNNNNKNPPLPTDFFSPPPSSSPSSPNYSPPPP-PPPEPEES-PGPK---LGL-LQPG-PA-LLYSSHYHQKH--QKAEL------KE--H---N-----------N----N
160 0.234806 WLWQWSLSTLWLMMTILLSTTYTGFRFFFFLFFLFSLFSSLFFHFSFFFSFSNLNFINSTSSKTRGSNRTDFNTKKLFFKLKLFKQQLSSSNLLQQQQS-QSKLQQSQTTIQQLTQIISD-D-S
161 0.241383 FVFFFLIFFVFVNIIVVLVFFYFFEIMQQQPQQKQFNKKRKKKTRFKKKLQLVKFKSVLLFFINIYIVRNYSKFIIFQFDTDPPDFFQRAITYYFYYYV-FYEYYYVFFLFFFYLFFFLF-Y-V
162 0.207374 ELNPNSPGLLEPPPPPPPSTTETKK-KRRRARRIRTIQGRIQQVFSQQQSVSTISH-VSSTTR--S-RV-STATRKPIISLSFESEETRTTTEEEEEER-EKSEEELETTTEEETETTST-L-P
163 0.199998 VTVILIIMITIIIIIIIIIIIQINY-YYYYEYYTYFTYFFTYYFQHYYYFRFFTHY-FFFHHK--N-FF-NKPKKKARK-V-FF-NNIFFFKNNNNNNF-NS-NNNLNNYNKKNYNNNLD-S-L
164 0.275172 WRTLTRRRQRIGLQRKKRGSSGAWW-WWWWRWWGWWGWWWGWWWGWWWWWNWWGWW-WWWWWM--W-WW-WEGWMMDTG---KS-WWQWWWYWWWWWWW-WW-WWWRWWWWWWWWWWWRW-W-I
165 0.221133 GGGGGGGGGGGGGGGGGGGGGVGRKSNNNNSNN-NK-NGR-NNEANNNNDTDH-NN-KDEHH--LNLHH-A-SL--ST-------RR-IHH-NNRRRRI-RG-NRRNRHDHRRNNRHHNC-D-D
166 0.242406 G-SAS--S--N----I---TMNPPKSKSSS-SS-SE-RKK-KKKVQRRRAAAS-SR-VVPPP--TPSPK-PLKR--EA-------EE-PKN-PPPPPPP-PI-PPPSPTETPPPEPTTSA-K-S
167 0.322105 G-DGG--E--G----G---GGDGEGNGGGG-GG-GG-GNG-GGGSGGGGGPGG-GG-GGEFF--NGNHN-GDGG--DT-------NN-GGG-GGNNNNGDNG-GNNGNLNLNNGNNLLTA-N-K
168 0.249726 PEKERRQGEESKRTRDKKKEEIEDDTDDDDVDDSDDSDDDSDDETNDDDDNDRSDDNEDDDDGDRDKRENDGADGGSNSNSNNHNDDKHKKLNNDDDDHCDYNNDD-DLNLDDNNDLL-C-FM-
169 0.501162 CCCCCYCCCCFHYCFCHHHCCCCCCCCCCCCCCCCCCCCCCCCDCCCCCCCCCCCCCDCCCCCCCCCCNCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCACCCCCC-CCCCCCCCCCC-C-CC-
170 0.370939 AAVAVAGAGGAGAAAAGGGVVLVAVGAAAAGAAAAAAAVVAAACAVAAAAVAAAIAVCAAVVVVGVGVCAVASVVVGVAAAAIIAVVVAVAMVVVVVVGGVVAVVVYVVVVVVVVVVVYI-VNY
171 0.283097 YYFYSYFYFFFFYYYYFFFFFLFHEAEEEEYEEAEHSEHHSEEVYMEEETWTISMETVTTTTFTAMTSVTMYFVFFGWAVVVMVMVVINITSVVVVVVNLVSMVVVYVSSSVVVSVSSEQ-EFN
172 0.374924 LLLLVLLLLLLLLLLLLLLVVFVFFIFFFFVFFIFVVFVLIFFVIMFFFIIMIIMFIVMMIILIIMIIVIMFIMLLLIILYLYYLMMYI-ILMMMIIIIIMLLMII-MAYAMMMYMAA-I-LLL
173 0.234959 NSKNNNSSSSSSSSNSSSSEEDETRNRSSSKSSSSWSS--SSSLQLSSSRHRNLLSGLRN--SGHRHVLGRQ--SSEHKQGQNSHVVSRIISVVIIIIKHI-HVII-I---IIV-I---N--YN
174 0.211071 QRNDHIQDNNANDNNDNNNPPTPD-K----N--E-SD-RQD--KGT---RSREDS-TKRGEERTRSRKKTSG-DAAESSNFNGKDSSHLGGTQQKNNNLEQTRQNN-KELERRQLKEE-G-TVR
175 0.254124 E-TKK-LD--D----R---TTSTGNNDSSSSSSKSGKNQRKNNWNGNNNKEKWKGNKWQGGGRKNGCWWKGN-GRRGVKRKRRSRGGSKWWRGGGGGGQAGGGGGG-GGGGGGGGGGG-K-GG-
176 0.231525 RGEGNGNGGGGGRGGSGGGRRNRRGGGGGGLGGVGQVGQMVGGVVLGGGNVNGVLGTVNTRRLTGQGGATRI-YIIRIILALIVLRRVCGGLQQEQQQASEKLQQQ-EHQHEEQQEHH-C-L--
177 0.322364 IIVAVIIAIIVFIIIILIFLLILWWLWWWWLWWTWWLWWWTWWWFWWWWWYWWTWWFWWWWWEYLWLWWFWY-WEELYFKYKLSKWWLWWWDWWWWWWWWWWFWWW-WWWWWWWWWWW-W-W--
178 0.296155 SYSSTSSASSHSSSSMSSSVVIVNNQNNNN-NN-NN-NNN-NNN-NNNNN-NN-NNDNNNNN-DQNHNNDN--A--V--------NN-NNN-SSNNNNNNNK-SNN-NKKKNNSKNKK-N-N--
179 0.374300 SNSSASSTSSSSSSSSSSSSSESDDADDDDSDDSDDSDDDSDDDADDDDDNDDPDDADDDDDDAADADDADI-DDDADSSTSDASDDDDDDNDDDDDDDDDDSDDDKDVVVDDDVDVVKD-DCK
180 0.260433 ASMAVASASGSGSSTSGSGTTMTDASANNNSNNENVEDMMEDDFEADDDIQVIEADAFVLSSTASASVVAAS-RITLQEAEAAEVVVVGIIGVVVVVVAFVVDVVVKVKQTVVVQVKKRT-QDK
181 0.268788 FSERDRRRRRRRRRRFKRREESEVKSPRRRNRRGRYSKAASKKPNPKKKPISHSPKSPTSPPNSSFSFPSFR-GDDDLTQDQYSQPPSPPSDPPPPPPPFPPEPPPQPNSDPPPSPNNSP-VIS
182 0.452129 CGCHCVVCDSGGSHICDDGCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCDCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCKCCCCCCCCCCCKC-CCH
183 0.254269 HDEYEYYYYYFYYYYFYYYLLILQEETNDDSNNSDTDNGGSNNHIDNNNFNFHATNDHFYNNKEEREDNDDSTENNSSSGAGEEGNNEDSSDNNNNNNDTNEGNNNHNEEENNNENEEYT-ETY
184 0.199819 TIKTAAVTITIIIISLIIITTFMRQVIVVITVVSVYSLSTTLLFLSLLLYTFVSNHVFLKQQNVVSVSFIRAPWITSVSSNSKNSYYDNGLKYYYYYYKEYDSYYYVYEEEYYYKYEELH-SIT
185 0.278991 EHNENDEEPHDVNPLPKKVTTHTPRPKDDDWDDDDEDASADAAEVEAAASSSPDEANENTSSSSAYAKESKEPPPPPPVSLSKKSNNKTKKSHHYHHHTRHKSHHHSQTKTQQHKHRTPL-KED
186 0.265701 KKLRFKRRRRIRRRRKRRRRRERYKLKNNNKNNNNCNKYYNKKVADKKKMSMQNDKYMYTLLHYLDLHAYGICLYYRSFMNIFNKLLSFQQYLLLLLLFILFKLLLLLLLHLLLLLLLLH-NKL
187 0.318623 YKYKHRPKKKKKMIMKKNKPPRPRFHYYYYYYYRYYIFPNRFFRYGFFFPYPKRGFRGFYPPYRQAQNSRAFPGYYPCKITIRRRPPRLQKISSPTTTLGPSISTTLPFKFPPSRPFFLA-AFL
188 0.522590 WWWWWWWWWWWSWWWWSSSWWTWWWWWWWWFWWWWYWWWWWWWRSWWWWWSWSWWWSRRWSSCWWWWSRRWWWYCCWSWYYYYYYYYFFSSCYYFYYYFFFFYYYYYFYYYFFYYFYYFS-FYF
189 0.527843 IIIIVSIIIIIIIIIIIIIVVIVVIVIIIIIIIIIVIIVVIIIIIIIIIIIIIIIIIIIIIIIIIVIIIIVIIIIIVIIHIHIIYVVIIVVITTTTTTIITVHTTTITLVVTTTVTIVIV-LII
190 0.650478 CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCLCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC-CCC
191 0.433801 SNNSSSSRSSSSSSSRSSRSSVSEKKKKKKEKKQKEQKKKQKKKQEKKKEEEKQEKEKEEKKGEKEEEKEDESKGGAEQKMKKKKKKKKQQGKKKKKKKEKKKKKKSKKKKKKKKKKKSA-QIS
192 0.454019 RKKKKKKKRKKKKKKIKKKKKKKTKKKKKKKKKKKKKKKKKKKLKKKKKMKMMKKMKLMRKKKMKQKMIKRKNMKKRKYHKHQKHKKQRMMKMMKKKKRRKFHMKKKKKRKKKMKKKKKK-CKK
193 0.266994 PPPSPLPRSFPPLLLILLPMMEMEICSPPPYPPEPPESSSESSPKRSSSPEPKERSSPVKAAKNVLVKPNLT-KKKEK-KRKQLKGGEPKKRGGGGGGPTGKKGGG-GTKPGGGKGAA-P-KP-
194 0.200982 NNYDSNKISVKNNNNLNNNAADALAPAITAATTLALLATTLAAGAHAAAELEKLSAAGGCGGLALALKGAAA-SLLTF-LALLPLTTLYKKLLLTTTTYNTNLLTT-TGGGTTLGTGG-A-FI-
195 0.163943 NNKIRSKHNSYSNNSLSSSYYRYDTFMAVVLAANAPKAGDNAAINNAAAI-IINSAQAISRRDKYTPITKTA-RDDKS--V-II-VVMVIIDVVVVVVVEV--VVV-VLEHVVVEVHH-T--N-
196 0.149426 YY-H-YY-YSFYYYY-YYYTTYTKTAS---R--H-KRSWWHSSTLCSSSS-SYHCS-TNCLLK--C-YT-CP-SKK-M-------LL-QQNKSSAAAAPSA--SAA-AVKVAASIAVV-V--K-
197 0.137643 VT-V-SI-MCLTNSS-TTT--T-ACDCCCCSCCEC-ECSSECCFL-CCCP-PIEYC-FP-SSF--E-LL-TV-QFF---------CC-TLLFCCCCCCSKC--CCC-CLLLCCCTCLL-I--I-
198 -1000.000000 LL---LS-LK-SLLL-SSS--H-SLQTFFFSFFTF-SSAVTSSNR-SSSL-L-T-S-DL-QQP--I--N-PK-GPP---------GG-T--PGGGGGGEVG--GGG-GSNSGGGKGSS-P--N-
199 -1000.000000 WQ---QQ-QS-QHHH-QQQ--W-QSAERRRVRRPR-TRAAPGGWS-RRRD-D-P-R-WN---H--S----PT-PDD---------PP-E--HPPDQQQPPD--PQQ-E-D-DEPDE---E----
200 -1000.000000 RR---CS-CR-CCCC-CCC--Y-EKLKDDD-DDCD-CDRRSDDKE-DDD----S-D-NK-GG---A----AE-E-----------PP-----PPPPPP-VP--PPP-P-A-PPPAP---V----
201 -1000.000000 QP---KQ--V-QQPQ-PQL--T-PWF-EEE-EENE-NEVTNEEP--EEE----N-E-PG-AT---P----SD-I-----------PP-----PPPPPP-LP--PPP-P-S-PPPEP---T----
202 -1000.000000 KL---T---G--TTT------E-P---------D--DEGDDEES--EEE----D-E-SK-AA---L----EL-V-----------AA-----QQVVVV--V--EVV-V-S-VAESV---P----
203 -1000.000000 II---P---S--PPP------Y-L---------S--SQ-QSRRK--QQQ----S-Q-KS-EE---A----GD-E-----------VV-----LLVVVV--V--LVV-VDDDVVLDVDD-P----
204 -1000.000000 SV---F---V--PVF------M-L-------------F-S-LL---FFF------F--L-EE---S----S--V----------------------------------TKA---K-AA-S----
205 -1000.000000 PN---S---P--VPF------R---------------L---LL---LLL------L----DD---V----A--E----------------------------------EME---L-EE-I----
206 -1000.000000 EP---P---R---VP----------------------S---SS---SSS------S----HH---T----E--K----------------------------------SCS---C-SS-M----
| 28,967 | alignment | scores | en | unknown | unknown | {} | 0 | {} |
2003100127/pypropel | pypropel/prot/feature/alignment/external/jsd/score_conservation.py | #!/usr/bin/env python
################################################################################
# score_conservation.py - Copyright Tony Capra 2007 - Last Update: 03/09/11
#
# 03/09/11 - default window size = 3, as stated in help
# 06/21/09 - seq specific output now compatible with ConCavity
# 06/21/09 - numarray only included when vn_entropy is used
# 08/15/08 - added property_relative_entropy scoring method
# 08/15/08 - added equal sequence length check
# 01/07/08 - added z-score normalization option (-n)
# 01/07/08 - added seq. specific output option (-a)
# 11/30/07 - read_scoring_matrix now returns list rather than array.
# 11/30/07 - added window lambda command line option (-b)
# 07/05/07 - fixed gap penalty cutoff (<=) and error message
# 06/26/07 - fixed read_clustal_align bug
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# -----------------------------------------------------------------------------
#
# Dependencies:
# numarray (for von Neumann entropy method) -
# http://sourceforge.net/project/showfiles.php?group_id=1369&release_id=223264
#
#
# See usage() for usage.
#
# This program supports the paper: Capra JA and Singh M.
# Predicting functionally important residues from sequence
# conservation. Bioinformatics. 23(15): 1875-1882, 2007.
# Please cite this paper if you use this code.
#
# It contains code for each method of scoring conservation that is
# evaluated: sum of pairs, weighted sum of pairs, Shannon entropy,
# Shannon entropy with property groupings (Mirny and Shakhnovich 95,
# Valdar and Thornton 01), relative entropy with property groupings
# (Williamson 95), von Neumann entropy (Caffrey et al 04), relative
# entropy (Samudrala and Wang 06), and Jensen-Shannon divergence
# (Capra and Singh 07).
#
# The code distributed with Mayrose et al 04 is used for Rate4Site. As
# of today it can be obtained from:
# http://www.tau.ac.il/~itaymay/cp/rate4site.html
#
#
# All scoring functions follow the same prototype:
#
# def score(col, sim_matrix, bg_disr, seq_weights, gap_penalty=1):
#
# - col: the column to be scored.
#
# - sim_matrix: the similarity (scoring) matrix to be used. Not all
# methods will use this parameter.
#
# - bg_distr: a list containing an amino acid probability distribution. Not
# all methods use this parameter. The default is the blosum62 background, but
# other distributions can be given.
#
# - seq_weights: an array of floats that is used to weight the contribution
# of each seqeuence. If the len(seq_weights) != len(col), then every sequence
# gets a weight of one.
#
# - gap_penalty: a binary variable: 0 for no gap penalty and 1
# for gap penalty. The default is to use a penalty. The gap penalty used is
# the score times the fraction of non-gap positions in the column.
#
#
# For a window score of any of above methods use the window_score method to
# transform the individual column scores.
#
################################################################################
import math, sys, getopt
# numarray imported below
PSEUDOCOUNT = .0000001
amino_acids = ['A', 'R', 'N', 'D', 'C', 'Q', 'E', 'G', 'H', 'I', 'L', 'K', 'M', 'F', 'P', 'S', 'T', 'W', 'Y', 'V', '-']
iupac_alphabet = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "K", "L", "M", "N", "P", "Q", "R", "S", "T", "U", "V",
"W", "Y", "Z", "X", "*", "-"]
# dictionary to map from amino acid to its row/column in a similarity matrix
aa_to_index = {}
for i, aa in enumerate(amino_acids):
aa_to_index[aa] = i
def usage():
print("""\nUSAGE:\npython score_conservation.py [options] alignfile\n\t -alignfile must be in fasta or clustal format.\n\nOPTIONS:\n\t
-a\treference sequence. Print scores in reference to a specific sequence (ignoring gaps). Default prints the entire column. [sequence name]\n\t
-b\tlambda for window heuristic linear combination. Default=.5 [real in [0,1]]\n
-d\tbackground distribution file, e.g., swissprot.distribution. Default=BLOSUM62 background [filename]\n\t
-g\tgap cutoff. Do not score columns that contain more than gap cutoff fraction gaps. Default=.3 [real in [0, 1)]\n\t
-h\thelp. Print this message.\n
-l\tuse sequence weighting. Default=True [True|False]\n\t
-m\tsimilarity matrix file, e.g., matrix/blosum62.bla or .qij. Default=identity matrix [filename]\n\t
-n\tnormalize scores. Print the z-score (over the alignment) of each column raw score. Default=False\n\t
-o\tname of output file. Default=output to screen [filename]\n\t
-p\tuse gap penalty. Lower the score of columns that contain gaps. Default=True [True|False]\n\t
-s\tconservation estimation method. \n\t\tOptions: shannon_entropy, property_entropy, property_relative_entropy, vn_entropy, relative_entropy, js_divergence, sum_of_pairs. Default=js_divergence\n\t
-w\twindow size. Number of residues on either side included in the window. Default=3 [int]\n\t
""")
################################################################################
# Frequency Count and Gap Penalty
################################################################################
def weighted_freq_count_pseudocount(col, seq_weights, pc_amount):
""" Return the weighted frequency count for a column--with pseudocount."""
# if the weights do not match, use equal weight
if len(seq_weights) != len(col):
seq_weights = [1.] * len(col)
aa_num = 0
freq_counts = len(amino_acids) * [pc_amount] # in order defined by amino_acids
for aa in amino_acids:
for j in range(len(col)):
if col[j] == aa:
freq_counts[aa_num] += 1 * seq_weights[j]
aa_num += 1
for j in range(len(freq_counts)):
freq_counts[j] = freq_counts[j] / (sum(seq_weights) + len(amino_acids) * pc_amount)
return freq_counts
def weighted_gap_penalty(col, seq_weights):
""" Calculate the simple gap penalty multiplier for the column. If the
sequences are weighted, the gaps, when penalized, are weighted
accordingly. """
# if the weights do not match, use equal weight
if len(seq_weights) != len(col):
seq_weights = [1.] * len(col)
gap_sum = 0.
for i in range(len(col)):
if col[i] == '-':
gap_sum += seq_weights[i]
return 1 - (gap_sum / sum(seq_weights))
def gap_percentage(col):
"""Return the percentage of gaps in col."""
num_gaps = 0.
for aa in col:
if aa == '-': num_gaps += 1
return num_gaps / len(col)
################################################################################
# Shannon Entropy
################################################################################
def shannon_entropy(col, sim_matrix, bg_distr, seq_weights, gap_penalty=1):
"""Calculates the Shannon entropy of the column col. sim_matrix and
bg_distr are ignored. If gap_penalty == 1, then gaps are penalized. The
entropy will be between zero and one because of its base. See p.13 of
Valdar 02 for details. The information score 1 - h is returned for the sake
of consistency with other scores."""
fc = weighted_freq_count_pseudocount(col, seq_weights, PSEUDOCOUNT)
h = 0.
for i in range(len(fc)):
if fc[i] != 0:
h += fc[i] * math.log(fc[i])
# h /= math.log(len(fc))
h /= math.log(min(len(fc), len(col)))
inf_score = 1 - (-1 * h)
if gap_penalty == 1:
return inf_score * weighted_gap_penalty(col, seq_weights)
else:
return inf_score
################################################################################
# Property Entropy
################################################################################
def property_entropy(col, sim_matrix, bg_distr, seq_weights, gap_penalty=1):
"""Calculate the entropy of a column col relative to a partition of the
amino acids. Similar to Mirny '99. sim_matrix and bg_distr are ignored, but
could be used to define the sets. """
# Mirny and Shakn. '99
property_partition = [['A', 'V', 'L', 'I', 'M', 'C'], ['F', 'W', 'Y', 'H'], ['S', 'T', 'N', 'Q'], ['K', 'R'],
['D', 'E'], ['G', 'P'], ['-']]
# Williamson '95
# property_partition = [['V','L', 'I','M'], ['F','W','Y'], ['S','T'], ['N','Q'], ['H','K','R'], ['D','E'], ['A','G'], ['P'], ['C'], ['-']]
fc = weighted_freq_count_pseudocount(col, seq_weights, PSEUDOCOUNT)
# sum the aa frequencies to get the property frequencies
prop_fc = [0.] * len(property_partition)
for p in range(len(property_partition)):
for aa in property_partition[p]:
prop_fc[p] += fc[aa_to_index[aa]]
h = 0.
for i in range(len(prop_fc)):
if prop_fc[i] != 0:
h += prop_fc[i] * math.log(prop_fc[i])
h /= math.log(min(len(property_partition), len(col)))
inf_score = 1 - (-1 * h)
if gap_penalty == 1:
return inf_score * weighted_gap_penalty(col, seq_weights)
else:
return inf_score
################################################################################
# Property Relative Entropy
################################################################################
def property_relative_entropy(col, sim_matrix, bg_distr, seq_weights, gap_penalty=1):
"""Calculate the relative entropy of a column col relative to a
partition of the amino acids. Similar to Williamson '95. sim_matrix is
ignored, but could be used to define the sets. See shannon_entropy()
for more general info. """
# Mirny and Shakn. '99
# property_partition = [['A','V','L','I','M','C'], ['F','W','Y','H'], ['S','T','N','Q'], ['K','R'], ['D', 'E'], ['G', 'P'], ['-']]
# Williamson '95
property_partition = [['V', 'L', 'I', 'M'], ['F', 'W', 'Y'], ['S', 'T'], ['N', 'Q'], ['H', 'K', 'R'], ['D', 'E'],
['A', 'G'], ['P'], ['C']]
prop_bg_freq = []
if len(bg_distr) == len(property_partition):
prop_bg_freq = bg_distr
else:
prop_bg_freq = [0.248, 0.092, 0.114, 0.075, 0.132, 0.111, 0.161, 0.043, 0.024, 0.000] # from BL62
# fc = weighted_freq_count_ignore_gaps(col, seq_weights)
fc = weighted_freq_count_pseudocount(col, seq_weights, PSEUDOCOUNT)
# sum the aa frequencies to get the property frequencies
prop_fc = [0.] * len(property_partition)
for p in range(len(property_partition)):
for aa in property_partition[p]:
prop_fc[p] += fc[aa_to_index[aa]]
d = 0.
for i in range(len(prop_fc)):
if prop_fc[i] != 0 and prop_bg_freq[i] != 0:
d += prop_fc[i] * math.log(prop_fc[i] / prop_bg_freq[i], 2)
if gap_penalty == 1:
return d * weighted_gap_penalty(col, seq_weights)
else:
return d
################################################################################
# von Neumann Entropy
################################################################################
def vn_entropy(col, sim_matrix, bg_distr, seq_weights, gap_penalty=1):
""" Calculate the von Neuman Entropy as described in Caffrey et al. 04.
This code was adapted from the implementation found in the PFAAT project
available on SourceForge. bg_distr is ignored."""
aa_counts = [0.] * 20
for aa in col:
if aa != '-': aa_counts[aa_to_index[aa]] += 1
dm_size = 0
dm_aas = []
for i in range(len(aa_counts)):
if aa_counts[i] != 0:
dm_aas.append(i)
dm_size += 1
if dm_size == 0: return 0.0
row_i = 0
col_i = 0
dm = zeros((dm_size, dm_size), Float32)
for i in range(dm_size):
row_i = dm_aas[i]
for j in range(dm_size):
col_i = dm_aas[j]
dm[i][j] = aa_counts[row_i] * sim_matrix[row_i][col_i]
ev = la.eigenvalues(dm).real
temp = 0.
for e in ev:
temp += e
if temp != 0:
for i in range(len(ev)):
ev[i] = ev[i] / temp
vne = 0.0
for e in ev:
if e > (10 ** -10):
vne -= e * math.log(e) / math.log(20)
if gap_penalty == 1:
# return (1-vne) * weighted_gap_penalty(col, seq_weights)
return (1 - vne) * weighted_gap_penalty(col, [1.] * len(col))
else:
return 1 - vne
################################################################################
# Relative Entropy
################################################################################
def relative_entropy(col, sim_matix, bg_distr, seq_weights, gap_penalty=1):
"""Calculate the relative entropy of the column distribution with a
background distribution specified in bg_distr. This is similar to the
approach proposed in Wang and Samudrala 06. sim_matrix is ignored."""
distr = bg_distr[:]
fc = weighted_freq_count_pseudocount(col, seq_weights, PSEUDOCOUNT)
# remove gap count
if len(distr) == 20:
new_fc = fc[:-1]
s = sum(new_fc)
for i in range(len(new_fc)):
new_fc[i] = new_fc[i] / s
fc = new_fc
if len(fc) != len(distr): return -1
d = 0.
for i in range(len(fc)):
if distr[i] != 0.0:
d += fc[i] * math.log(fc[i] / distr[i])
d /= math.log(len(fc))
if gap_penalty == 1:
return d * weighted_gap_penalty(col, seq_weights)
else:
return d
################################################################################
# Jensen-Shannon Divergence
################################################################################
def js_divergence(col, sim_matrix, bg_distr, seq_weights, gap_penalty=1):
""" Return the Jensen-Shannon Divergence for the column with the background
distribution bg_distr. sim_matrix is ignored. JSD is the default method."""
distr = bg_distr[:]
fc = weighted_freq_count_pseudocount(col, seq_weights, PSEUDOCOUNT)
# if background distrubtion lacks a gap count, remove fc gap count
if len(distr) == 20:
new_fc = fc[:-1]
s = sum(new_fc)
for i in range(len(new_fc)):
new_fc[i] = new_fc[i] / s
fc = new_fc
if len(fc) != len(distr): return -1
# make r distriubtion
r = []
for i in range(len(fc)):
r.append(.5 * fc[i] + .5 * distr[i])
d = 0.
for i in range(len(fc)):
if r[i] != 0.0:
if fc[i] == 0.0:
d += distr[i] * math.log(distr[i] / r[i], 2)
elif distr[i] == 0.0:
d += fc[i] * math.log(fc[i] / r[i], 2)
else:
d += fc[i] * math.log(fc[i] / r[i], 2) + distr[i] * math.log(distr[i] / r[i], 2)
# d /= 2 * math.log(len(fc))
d /= 2
if gap_penalty == 1:
return d * weighted_gap_penalty(col, seq_weights)
else:
return d
################################################################################
# Mutation Weighted Pairwise Match
################################################################################
def sum_of_pairs(col, sim_matrix, bg_distr, seq_weights, gap_penalty=1):
""" Sum the similarity matrix values for all pairs in the column.
This method is similar to those proposed in Valdar 02. bg_distr is ignored."""
sum = 0.
max_sum = 0.
for i in range(len(col)):
for j in range(i):
if col[i] != '-' and col[j] != '-':
max_sum += seq_weights[i] * seq_weights[j]
sum += seq_weights[i] * seq_weights[j] * sim_matrix[aa_to_index[col[i]]][aa_to_index[col[j]]]
if max_sum != 0:
sum /= max_sum
else:
sum = 0.
if gap_penalty == 1:
return sum * weighted_gap_penalty(col, seq_weights)
else:
return sum
################################################################################
# Window Score
################################################################################
def window_score(scores, window_len, lam=.5):
""" This function takes a list of scores and a length and transforms them
so that each position is a weighted average of the surrounding positions.
Positions with scores less than zero are not changed and are ignored in the
calculation. Here window_len is interpreted to mean window_len residues on
either side of the current residue. """
w_scores = scores[:]
for i in range(window_len, len(scores) - window_len):
if scores[i] < 0:
continue
sum = 0.
num_terms = 0.
for j in range(i - window_len, i + window_len + 1):
if i != j and scores[j] >= 0:
num_terms += 1
sum += scores[j]
if num_terms > 0:
w_scores[i] = (1 - lam) * (sum / num_terms) + lam * scores[i]
return w_scores
def calc_z_scores(scores, score_cutoff):
"""Calculates the z-scores for a set of scores. Scores below
score_cutoff are not included."""
average = 0.
std_dev = 0.
z_scores = []
num_scores = 0
for s in scores:
if s > score_cutoff:
average += s
num_scores += 1
if num_scores != 0:
average /= num_scores
for s in scores:
if s > score_cutoff:
std_dev += ((s - average) ** 2) / num_scores
std_dev = math.sqrt(std_dev)
for s in scores:
if s > score_cutoff and std_dev != 0:
z_scores.append((s - average) / std_dev)
else:
z_scores.append(-1000.0)
return z_scores
################################################################################
################################################################################
################################################################################
# END CONSERVATION SCORES
################################################################################
################################################################################
################################################################################
def read_scoring_matrix(sm_file):
""" Read in a scoring matrix from a file, e.g., blosum80.bla, and return it
as an array. """
aa_index = 0
first_line = 1
row = []
list_sm = [] # hold the matrix in list form
try:
matrix_file = open(sm_file, 'r')
for line in matrix_file:
if line[0] != '#' and first_line:
first_line = 0
if len(amino_acids) == 0:
for c in line.split():
aa_to_index[string.lower(c)] = aa_index
amino_acids.append(string.lower(c))
aa_index += 1
elif line[0] != '#' and first_line == 0:
if len(line) > 1:
row = line.split()
list_sm.append(row)
except IOError:
print("Could not load similarity matrix: %s. Using identity matrix..." % sm_file)
return identity(20)
# if matrix is stored in lower tri form, copy to upper
if len(list_sm[0]) < 20:
for i in range(0, 19):
for j in range(i + 1, 20):
list_sm[i].append(list_sm[j][i])
for i in range(len(list_sm)):
for j in range(len(list_sm[i])):
list_sm[i][j] = float(list_sm[i][j])
return list_sm
# sim_matrix = array(list_sm, type=Float32)
# return sim_matrix
def calculate_sequence_weights(msa):
""" Calculate the sequence weights using the Henikoff '94 method
for the given msa. """
seq_weights = [0.] * len(msa)
for i in range(len(msa[0])):
freq_counts = [0] * len(amino_acids)
col = []
for j in range(len(msa)):
if msa[j][i] != '-': # ignore gaps
freq_counts[aa_to_index[msa[j][i]]] += 1
num_observed_types = 0
for j in range(len(freq_counts)):
if freq_counts[j] > 0: num_observed_types += 1
for j in range(len(msa)):
d = freq_counts[aa_to_index[msa[j][i]]] * num_observed_types
if d > 0:
seq_weights[j] += 1. / d
for w in range(len(seq_weights)):
seq_weights[w] /= len(msa[0])
return seq_weights
def load_sequence_weights(fname):
"""Read in a sequence weight file f and create sequence weight list.
The weights are in the same order as the sequences each on a new line. """
seq_weights = []
try:
f = open(fname)
for line in f:
l = line.split()
if line[0] != '#' and len(l) == 2:
seq_weights.append(float(l[1]))
except IOError:
pass
# print "No sequence weights. Can't find: ", fname
return seq_weights
def get_column(col_num, alignment):
"""Return the col_num column of alignment as a list."""
col = []
for seq in alignment:
if col_num < len(seq): col.append(seq[col_num])
return col
def get_distribution_from_file(fname):
""" Read an amino acid distribution from a file. The probabilities should
be on a single line separated by whitespace in alphabetical order as in
amino_acids above. # is the comment character."""
distribution = []
try:
f = open(fname)
for line in f:
if line[0] == '#': continue
line = line[:-1]
distribution = line.split()
distribution = map(float, distribution)
except IOError:
print ("Using default (BLOSUM62) background.")
return []
# use a range to be flexible about round off
if .997 > sum(distribution) or sum(distribution) > 1.003:
print("Distribution does not sum to 1. Using default (BLOSUM62) background.")
print(sum(distribution))
return []
return distribution
def read_fasta_alignment(filename):
""" Read in the alignment stored in the FASTA file, filename. Return two
lists: the identifiers and sequences. """
f = open(filename)
names = []
alignment = []
cur_seq = ''
for line in f:
line = line[:-1]
if len(line) == 0: continue
if line[0] == ';': continue
if line[0] == '>':
names.append(line[1:].replace('\r', ''))
if cur_seq != '':
cur_seq = cur_seq.upper()
for i, aa in enumerate(cur_seq):
if aa not in iupac_alphabet:
cur_seq = cur_seq.replace(aa, '-')
alignment.append(cur_seq.replace('B', 'D').replace('Z', 'Q').replace('X', '-'))
cur_seq = ''
elif line[0] in iupac_alphabet:
cur_seq += line.replace('\r', '')
# add the last sequence
cur_seq = cur_seq.upper()
for i, aa in enumerate(cur_seq):
if aa not in iupac_alphabet:
cur_seq = cur_seq.replace(aa, '-')
alignment.append(cur_seq.replace('B', 'D').replace('Z', 'Q').replace('X', '-'))
return names, alignment
def read_clustal_alignment(filename):
""" Read in the alignment stored in the CLUSTAL file, filename. Return
two lists: the names and sequences. """
names = []
alignment = []
f = open(filename)
for line in f:
line = line[:-1]
if len(line) == 0: continue
if '*' in line: continue
if 'CLUSTAL' in line: continue
t = line.split()
if len(t) == 2 and t[1][0] in iupac_alphabet:
if t[0] not in names:
names.append(t[0])
alignment.append(t[1].upper().replace('B', 'D').replace('Z', 'Q').replace('X', '-').replace('\r', ''))
else:
alignment[names.index(t[0])] += t[1].upper().replace('B', 'D').replace('Z', 'Q').replace('X',
'-').replace(
'\r', '')
return names, alignment
################################################################################
# Begin execution
################################################################################
# BLOSUM62 background distribution
blosum_background_distr = [0.078, 0.051, 0.041, 0.052, 0.024, 0.034, 0.059, 0.083, 0.025, 0.062, 0.092, 0.056, 0.024,
0.044, 0.043, 0.059, 0.055, 0.014, 0.034, 0.072]
# set defaults
window_size = 3 # 0 = no window
win_lam = .5 # for window method linear combination
outfile_name = ""
import os
s_matrix_file = os.path.dirname(os.getcwd()) + '/alignment/external/jsd/' + "matrix/blosum62.bla"
bg_distribution = blosum_background_distr[:]
scoring_function = js_divergence
use_seq_weights = True
background_name = 'blosum62'
gap_cutoff = .3
use_gap_penalty = 1
seq_specific_output = 0 # name of sequence if True
normalize_scores = False
# parse options and args -- see usage()
if len(sys.argv) < 2:
usage()
sys.exit(2)
try:
opts, args = getopt.getopt(sys.argv[1:], "hl:d:m:o:s:w:g:p:b:a:n")
except getopt.GetoptError:
usage()
sys.exit(1)
if len(args) < 1:
usage()
sys.exit(1)
for opt, arg in opts:
if opt == "-h":
usage()
sys.exit()
if opt == "-o":
outfile_name = arg
elif opt == "-l":
if 'false' in arg.lower():
use_seq_weights = False
elif opt == "-p":
if 'false' in arg.lower():
use_gap_penalty = 0
elif opt == "-m":
s_matrix_file = arg
elif opt == "-d":
d = get_distribution_from_file(arg)
if d != []:
bg_distribution = d
background_name = arg
elif opt == "-w":
try:
window_size = int(arg)
except ValueError:
print("ERROR: Window size must be an integer. Using window_size 3...")
window_size = 3
elif opt == "-b":
try:
win_lam = float(arg)
if not (0. <= win_lam <= 1.): raise ValueError
except ValueError:
print("ERROR: Window lambda must be a real in [0,1]. Using lambda = .5...")
win_lam = .5
elif opt == "-g":
try:
gap_cutoff = float(arg)
if not (0. <= gap_cutoff < 1.): raise ValueError
except ValueError:
print("ERROR: Gap cutoff must be a real in [0,1). Using a gap cutoff of .3...")
gap_cutoff = .3
elif opt == '-a':
seq_specific_output = arg
elif opt == '-n':
normalize_scores = True
elif opt == '-s':
if arg == 'shannon_entropy':
scoring_function = shannon_entropy
elif arg == 'property_entropy':
scoring_function = property_entropy
elif arg == 'property_relative_entropy':
scoring_function = property_relative_entropy
elif arg == 'vn_entropy':
scoring_function = vn_entropy; from numarray import *; import numarray.linear_algebra as la
elif arg == 'relative_entropy':
scoring_function = relative_entropy
elif arg == 'js_divergence':
scoring_function = js_divergence
elif arg == 'sum_of_pairs':
scoring_function = sum_of_pairs
else:
print("%s is not a valid scoring method. Using %s.\n" % (arg, scoring_function.__name__))
align_file = args[0]
align_suffix = align_file.split('.')[-1]
s_matrix = read_scoring_matrix(s_matrix_file)
names = []
alignment = []
seq_weights = []
try:
names, alignment = read_clustal_alignment(align_file)
if names == []:
names, alignment = read_fasta_alignment(align_file)
except IOError:
print ("Could not find %s. Exiting..." % align_file)
sys.exit(1)
if len(alignment) != len(names) or alignment == []:
print("Unable to parse alignment.\n")
sys.exit(1)
seq_len = len(alignment[0])
for i, seq in enumerate(alignment):
if len(seq) != seq_len:
print("ERROR: Sequences of different lengths: %s (%d) != %s (%d).\n" % (names[0], seq_len, names[i], len(seq)))
sys.exit(1)
if use_seq_weights:
seq_weights = load_sequence_weights(align_file.replace('.%s' % align_suffix, '.weights'))
if seq_weights == []:
seq_weights = calculate_sequence_weights(alignment)
if len(seq_weights) != len(alignment): seq_weights = [1.] * len(alignment)
# handle print of output relative to specific sequence
ref_seq_num = None
if seq_specific_output and seq_specific_output not in names:
print("Sequence %s not found in alignment. Using default output format...\n" % seq_specific_output)
seq_specific_output = 0
elif seq_specific_output in names:
ref_seq_num = names.index(seq_specific_output)
# calculate scores
scores = []
for i in range(len(alignment[0])):
col = get_column(i, alignment)
if len(col) == len(alignment):
if gap_percentage(col) <= gap_cutoff:
scores.append(scoring_function(col, s_matrix, bg_distribution, seq_weights, use_gap_penalty))
else:
scores.append(-1000.)
if window_size > 0:
scores = window_score(scores, window_size, win_lam)
if normalize_scores:
scores = calc_z_scores(scores, -999)
# print to file/stdout
try:
if outfile_name != "":
outfile = open(outfile_name, 'w')
outfile.write(
"# %s -- %s - window_size: %d - window lambda: %.2f - background: %s - seq. weighting: %s - gap penalty: %d - normalized: %s\n" % (
align_file, scoring_function.__name__, window_size, win_lam, background_name, use_seq_weights,
use_gap_penalty, normalize_scores))
if seq_specific_output:
outfile.write("# reference sequence: %s\n" % seq_specific_output)
outfile.write("# align_column_number\tamino acid\tscore\n")
else:
outfile.write("# align_column_number\tscore\tcolumn\n")
else:
print(
"# %s -- %s - window_size: %d - background: %s - seq. weighting: %s - gap penalty: %d - normalized: %s" % (
align_file, scoring_function.__name__, window_size, background_name, use_seq_weights, use_gap_penalty,
normalize_scores))
if seq_specific_output:
print("# reference sequence: %s" % seq_specific_output)
print("# align_column_number\tamino acid\tscore\n")
else:
print("# align_column_number\tscore\tcolumn\n")
except IOError:
print("Could not open %s for output. Printing results to standard out..." % outfile_name)
outfile_name = ""
for i, score in enumerate(scores):
if seq_specific_output:
cur_aa = get_column(i, alignment)[ref_seq_num]
if cur_aa == '-': continue
if outfile_name == "":
print("%d\t%s\t%.5f" % (i, cur_aa, score))
else:
outfile.write("%d\t%s\t%5f\n" % (i, cur_aa, score))
else:
if outfile_name == "":
print("%d\t%.5f\t%s" % (i, score, "".join(get_column(i, alignment))))
else:
outfile.write("%d\t%5f\t%s\n" % (i, score, "".join(get_column(i, alignment))))
| 31,521 | score_conservation | py | en | python | code | {"qsc_code_num_words": 4282, "qsc_code_num_chars": 31521.0, "qsc_code_mean_word_length": 3.97547875, "qsc_code_frac_words_unique": 0.13825315, "qsc_code_frac_chars_top_2grams": 0.03348411, "qsc_code_frac_chars_top_3grams": 0.01409857, "qsc_code_frac_chars_top_4grams": 0.01163132, "qsc_code_frac_chars_dupe_5grams": 0.316043, "qsc_code_frac_chars_dupe_6grams": 0.26434823, "qsc_code_frac_chars_dupe_7grams": 0.23274393, "qsc_code_frac_chars_dupe_8grams": 0.204958, "qsc_code_frac_chars_dupe_9grams": 0.17958057, "qsc_code_frac_chars_dupe_10grams": 0.16183986, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.02286076, "qsc_code_frac_chars_whitespace": 0.24923067, "qsc_code_size_file_byte": 31521.0, "qsc_code_num_lines": 913.0, "qsc_code_num_chars_line_max": 202.0, "qsc_code_num_chars_line_mean": 34.52464403, "qsc_code_frac_chars_alphabet": 0.69647158, "qsc_code_frac_chars_comments": 0.24935757, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.35619048, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.02666667, "qsc_code_frac_chars_string_length": 0.13740567, "qsc_code_frac_chars_long_word_length": 0.01485595, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.03809524, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.00190476, "qsc_codepython_frac_lines_import": 0.00571429, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.09904762, "qsc_codepython_frac_lines_print": 0.04} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ЗаявлениеНаВыпускНовогоКвалифицированногоСертификата/Forms/ИнформацияОДоступностиВыпуска.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Form uuid="0f79d87e-3311-4281-8f46-6154e708b930">
<Properties>
<Name>ИнформацияОДоступностиВыпуска</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Информация о доступности выпуска квалифицированного сертификата для юридических лиц</v8:content>
</v8:item>
</Synonym>
<Comment/>
<FormType>Managed</FormType>
<IncludeHelpInContents>false</IncludeHelpInContents>
<UsePurposes>
<v8:Value xsi:type="app:ApplicationUsePurpose">PlatformApplication</v8:Value>
<v8:Value xsi:type="app:ApplicationUsePurpose">MobilePlatformApplication</v8:Value>
</UsePurposes>
<ExtendedPresentation/>
</Properties>
</Form>
</MetaDataObject> | 1,595 | ИнформацияОДоступностиВыпуска | xml | ru | xml | data | {"qsc_code_num_words": 255, "qsc_code_num_chars": 1595.0, "qsc_code_mean_word_length": 4.47843137, "qsc_code_frac_words_unique": 0.35294118, "qsc_code_frac_chars_top_2grams": 0.07880911, "qsc_code_frac_chars_top_3grams": 0.10507881, "qsc_code_frac_chars_top_4grams": 0.13134851, "qsc_code_frac_chars_dupe_5grams": 0.38791594, "qsc_code_frac_chars_dupe_6grams": 0.38791594, "qsc_code_frac_chars_dupe_7grams": 0.26707531, "qsc_code_frac_chars_dupe_8grams": 0.21366025, "qsc_code_frac_chars_dupe_9grams": 0.04203152, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.07681941, "qsc_code_frac_chars_whitespace": 0.06959248, "qsc_code_size_file_byte": 1595.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 72.5, "qsc_code_frac_chars_alphabet": 0.69204852, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.4507837, "qsc_code_frac_chars_long_word_length": 0.0539185, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
2003100127/pypropel | pypropel/prot/feature/alignment/external/jsd/README | This code supports the paper:
Capra JA and Singh M. Predicting functionally important residues from
sequence conservation. Bioinformatics. 23(15):1875-82, 2007.
If you use it, please cite the paper.
It is released under the GNU General Public License. Please see
COPYING for more details. It requires python and, if you wish to use
the von Neumann entropy method, numarray. The other scoring methods
will work without numarray. See the comments at the top of
score_conservation.py for more details.
Dependencies:
numarray (for vn_entropy only) -
http://sourceforge.net/project/showfiles.php?group_id=1369&release_id=223264
The program accepts alignments in the CLUSTAL and FASTA formats. The
simplest usage is:
python score_conservation.py alignment.clustal
This will compute conservation scores for the alignment using the
Jensen-Shannon divergence with default settings and print out the
scores.
All methods described in the paper are implemented in
score_conservation.py. The relevant parameters can be specified with
command line options. For example, if you wanted to score an alignment
named alignment.clustal using Jensen-Shannon divergence, a window of
size 3 (on either side of the residue), and the swissprot background
distribution, and then save it in a file called alignment.scores, you
would type:
python score_conservation.py -s js_divergence -w 3 -d
swissprot.distribution -o alignment.scores alignment.clustal
To get ouput in reference to a particular sequence in the alignment,
use the (-a) option.
Type:
python score_conservation.py -h
for usage, the full list of options, and defaults.
See the paper for a description of the methods.
The .distribution files provide amino acid distributions. Feel free to
create your own. The matrix directory contains several BLOSUM matrices
and target frequencies. Again, any matrix file that follows the format
can be used.
| 1,911 | README | en | unknown | unknown | {} | 0 | {} | |
2003100127/pypropel | pypropel/prot/feature/ss/Reader.py | __author__ = "Jianfeng Sun"
__version__ = "v1.0"
__copyright__ = "Copyright 2024"
__license__ = "GPL v3.0"
__email__ = "jianfeng.sunmt@gmail.com"
__maintainer__ = "Jianfeng Sun"
import linecache
import pandas as pd
from pypropel.util.Reader import Reader as pfreader
class Reader:
def __init__(self, ):
self.pfreader = pfreader()
def spider3(
self,
spider3_path,
prot_name,
file_chain,
):
spider3 = self.pfreader.generic(
df_fpn=spider3_path + prot_name + file_chain + '.spd33',
df_sep='\s+',
header=0,
)
# print(spider3.dtypes)
spider3[[
'ASA',
'Phi',
'Psi',
'Theta(i-1=>i+1)',
'Tau(i-2=>i+2)',
'HSE_alpha_up',
'HSE_alpha_down',
'HSE_beta_up',
'HSE_beta_down',
'CN',
]] = spider3[[
'ASA',
'Phi',
'Psi',
'Theta(i-1=>i+1)',
'Tau(i-2=>i+2)',
'HSE_alpha_up',
'HSE_alpha_down',
'HSE_beta_up',
'HSE_beta_down',
'CN',
]].apply(lambda x: x / 100)
return spider3
def spider3_to_ss(self, spider3_path, prot_name, file_chain, sv_fp, state=3):
ss_aa_spider3 = self.spider3(
spider3_path=spider3_path,
prot_name=prot_name,
file_chain=file_chain
)['SS']
if state == 3:
with open(sv_fp + str(prot_name) + str(file_chain) + '.ss', 'w') as f:
f.write('>' + str(prot_name) + str(file_chain) + '\n')
f.write(''.join(str(x) for x in ss_aa_spider3.values.tolist()))
f.close()
return ss_aa_spider3
def psipred(self, prot_name, file_chain, psipred_ss_path=None, psipred_ss2_path=None, psipred_horiz_path=None, ):
if psipred_ss_path is not None:
psipred_ss = self.pfreader.generic(
df_fpn=psipred_ss_path + prot_name + file_chain + '.ss',
df_sep='\s+',
header=None,
)
return psipred_ss
if psipred_ss2_path is not None:
f = open(psipred_ss2_path + prot_name + file_chain + '.ss2', 'r')
psipred_ss2 = pd.DataFrame()
c = 0
for line in f.readlines():
line = line.split()
if len(line) and line[0] is not '#':
psipred_ss2[c] = line
c += 1
psipred_ss2_ = psipred_ss2.T
psipred_ss2_[0] = psipred_ss2_[0].astype(int)
psipred_ss2_[[3, 4, 5]] = psipred_ss2_[[3, 4, 5]].astype(float)
return psipred_ss2_
if psipred_horiz_path is not None:
psipred_horiz = self.pfreader.generic(
df_fpn=psipred_horiz_path + prot_name + file_chain + '.horiz',
df_sep='\s+',
header=0,
)
return psipred_horiz
def sspro(self, sspro_path, prot_name, file_chain):
line = linecache.getline(sspro_path + prot_name + file_chain + '.ss', 2)
sspro_ = pd.DataFrame(list(line)[:-1])
return sspro_
def sspro8(self, sspro8_path, prot_name, file_chain):
line = linecache.getline(sspro8_path + prot_name + file_chain + '.ss8', 2)
sspro8_ = pd.DataFrame(list(line)[: -1])
return sspro8_
if __name__ == "__main__":
from pypropel.path import to
p = Reader()
# print(p.spider3(
# spider3_path=to('data/ss/spider3/'),
# prot_name='E',
# file_chain=''
# ))
# print(p.spider3_to_ss(
# spider3_path=to('data/ss/spider3/'),
# prot_name='E',
# file_chain='',
# sv_fp=to('data/ss/spider3/'),
# ))
# print(p.psipred(
# # psipred_ss_path=to('data/ss/psipred/'),
# # psipred_ss2_path=to('data/ss/psipred/'),
# psipred_horiz_path=to('data/ss/psipred/'),
# prot_name='1aig', # 1aig L 1bcc D
# file_chain='L',
# ))
# print(p.sspro(
# sspro_path=to('data/ss/sspro/'),
# prot_name='1aig',
# file_chain='L'
# ))
# print(p.sspro8(
# sspro8_path=to('data/ss/sspro8/'),
# prot_name='1aig',
# file_chain='L'
# ))
| 4,384 | Reader | py | en | python | code | {"qsc_code_num_words": 531, "qsc_code_num_chars": 4384.0, "qsc_code_mean_word_length": 3.96045198, "qsc_code_frac_words_unique": 0.22222222, "qsc_code_frac_chars_top_2grams": 0.07608179, "qsc_code_frac_chars_top_3grams": 0.06847361, "qsc_code_frac_chars_top_4grams": 0.09700428, "qsc_code_frac_chars_dupe_5grams": 0.45553971, "qsc_code_frac_chars_dupe_6grams": 0.36091298, "qsc_code_frac_chars_dupe_7grams": 0.18354731, "qsc_code_frac_chars_dupe_8grams": 0.1531146, "qsc_code_frac_chars_dupe_9grams": 0.11412268, "qsc_code_frac_chars_dupe_10grams": 0.11412268, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.03180706, "qsc_code_frac_chars_whitespace": 0.34739964, "qsc_code_size_file_byte": 4384.0, "qsc_code_num_lines": 144.0, "qsc_code_num_chars_line_max": 118.0, "qsc_code_num_chars_line_mean": 30.44444444, "qsc_code_frac_chars_alphabet": 0.70325061, "qsc_code_frac_chars_comments": 0.15237226, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.25510204, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.08308444, "qsc_code_frac_chars_long_word_length": 0.00651643, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.06122449, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.04081633, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.18367347, "qsc_codepython_frac_lines_print": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
2003100127/pypropel | pypropel/prot/feature/isite/Reader.py | __author__ = "Jianfeng Sun"
__version__ = "v1.0"
__copyright__ = "Copyright 2024"
__license__ = "GPL v3.0"
__email__ = "jianfeng.sunmt@gmail.com"
__maintainer__ = "Jianfeng Sun"
import numpy as np
import pandas as pd
from pypropel.util.Reader import Reader as pfreader
class Reader:
def __init__(self, ):
self.pfreader = pfreader()
def graphppis(
self,
graphppis_fpn : str,
):
df = self.pfreader.generic(
graphppis_fpn,
df_sep='\t',
skiprows=0,
header=1,
)
df = df.reset_index()
df = df.rename(
columns={
'index': 'index',
'AA': 'aa',
'Prob': 'pred_prob',
'Pred': 'pred_label',
}
)
return df
def mbpred(self, mbp_path, file_name, file_chain, dp=None, by=None, dist_df=None, pair_list=None, sort_=0, is_sort=False, id=0, L=50, len_seq=50):
self.__sort_ = sort_
results = self.pfreader.generic(
mbp_path + file_name + file_chain + '.mbpred',
df_sep=',',
header=0,
is_utf8=True
)
results.columns = [
'index',
'aa',
'interact_id',
'score'
]
# print(results)
results['aa'] = results['aa'].astype(str)
recombine = results[[
'interact_id',
'score'
]]
# print(recombine)
# print(recombine.dtypes)
if self.__sort_ == 1:
pair_df = pd.DataFrame(pair_list)
# print(pair_df)
recombine = self.sort_3(
recombine,
is_uniform=True,
uniform_df=pair_df
)
# print(recombine)
dist_mbpred, dist_true = self.sort_1(recombine, dp, dist_df)
return dist_mbpred, dist_true
elif self.__sort_ == 2:
return self.sort_2(recombine, by=by)
elif self.__sort_ == 3:
pass
elif self.__sort_ == 4:
pass
elif self.__sort_ == 5:
pass
else:
return recombine
def delphi(self, delphi_path, file_name, file_chain, dp=None, by=None, dist_df=None, pair_list=None, sort_=0, is_sort=False, id=0, L=50, len_seq=50):
self.__sort_ = sort_
delphi_fpn = delphi_path + file_name + file_chain + '.txt'
with open(delphi_fpn) as file:
cues = []
for line in file:
if line.split()[0] == '#':
continue
else:
cues.append(line.split())
# print(cues)
results = pd.DataFrame(cues)
# print(results)
results.columns = [
'interact_id',
'aa',
'score'
]
# print(results)
results['aa'] = results['aa'].astype(str)
results['interact_id'] = results['interact_id'].astype(np.int)
results['score'] = results['score'].astype(np.float)
recombine = results[[
'interact_id',
'score'
]]
# print(recombine)
# print(recombine.dtypes)
if self.__sort_ == 1:
pair_df = pd.DataFrame(pair_list)
# print(pair_df)
recombine = self.sort_3(
recombine,
is_uniform=True,
uniform_df=pair_df
)
# print(recombine)
dist_delphi, dist_true = self.sort_1(recombine, dp, dist_df)
return dist_delphi, dist_true
elif self.__sort_ == 2:
return self.sort_2(recombine, by=by)
elif self.__sort_ == 3:
pass
elif self.__sort_ == 4:
pass
elif self.__sort_ == 5:
pass
else:
return recombine
def tma300(self, tma300_path, file_name, file_chain, dp=None, by=None, dist_df=None, pair_list=None, sort_=0, is_sort=False, id=0, L=50, len_seq=50):
self.__sort_ = sort_
results = self.pfreader.generic(
tma300_path + file_name + file_chain + '.tma300',
df_sep='\t',
header=None,
is_utf8=True
)
# print(results)
results.columns = [
'interact_id',
'aa',
'score'
]
results['aa'] = results['aa'].astype(str)
recombine = results[[
'interact_id',
'score'
]]
# print(recombine)
# print(recombine.dtypes)
if self.__sort_ == 1:
pair_df = pd.DataFrame(pair_list)
# print(pair_df)
recombine = self.sort_3(
recombine,
is_uniform=True,
uniform_df=pair_df
)
# print(recombine)
dist_tma300, dist_true = self.sort_1(recombine, dp, dist_df)
return dist_tma300, dist_true
elif self.__sort_ == 2:
return self.sort_2(recombine, by=by)
elif self.__sort_ == 3:
pass
elif self.__sort_ == 4:
pass
elif self.__sort_ == 5:
pass
else:
return recombine
if __name__ == "__main__":
from pypropel.path import to
p = Reader()
print(p.graphppis(
graphppis_fpn=to('')
))
| 5,417 | Reader | py | en | python | code | {"qsc_code_num_words": 582, "qsc_code_num_chars": 5417.0, "qsc_code_mean_word_length": 4.31271478, "qsc_code_frac_words_unique": 0.18213058, "qsc_code_frac_chars_top_2grams": 0.08605578, "qsc_code_frac_chars_top_3grams": 0.05737052, "qsc_code_frac_chars_top_4grams": 0.03824701, "qsc_code_frac_chars_dupe_5grams": 0.67011952, "qsc_code_frac_chars_dupe_6grams": 0.67011952, "qsc_code_frac_chars_dupe_7grams": 0.63306773, "qsc_code_frac_chars_dupe_8grams": 0.63306773, "qsc_code_frac_chars_dupe_9grams": 0.60079681, "qsc_code_frac_chars_dupe_10grams": 0.57649402, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.02252664, "qsc_code_frac_chars_whitespace": 0.39357578, "qsc_code_size_file_byte": 5417.0, "qsc_code_num_lines": 185.0, "qsc_code_num_chars_line_max": 155.0, "qsc_code_num_chars_line_mean": 29.28108108, "qsc_code_frac_chars_alphabet": 0.74155251, "qsc_code_frac_chars_comments": 0.05353517, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.5483871, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.05833986, "qsc_code_frac_chars_long_word_length": 0.00469851, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.03225806, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.05806452, "qsc_codepython_frac_lines_import": 0.02580645, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.12903226, "qsc_codepython_frac_lines_print": 0.00645161} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 1, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ЗаявлениеНаВыпускНовогоКвалифицированногоСертификата/Templates/ИнформацияЗаявления.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Template uuid="748f7ddb-4cdc-46e5-9108-f7a550b33537">
<Properties>
<Name>ИнформацияЗаявления</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Информация заявления</v8:content>
</v8:item>
</Synonym>
<Comment/>
<TemplateType>SpreadsheetDocument</TemplateType>
</Properties>
</Template>
</MetaDataObject> | 1,262 | ИнформацияЗаявления | xml | ru | xml | data | {"qsc_code_num_words": 224, "qsc_code_num_chars": 1262.0, "qsc_code_mean_word_length": 3.93303571, "qsc_code_frac_words_unique": 0.33482143, "qsc_code_frac_chars_top_2grams": 0.10215664, "qsc_code_frac_chars_top_3grams": 0.13620885, "qsc_code_frac_chars_top_4grams": 0.17026107, "qsc_code_frac_chars_dupe_5grams": 0.41657208, "qsc_code_frac_chars_dupe_6grams": 0.41657208, "qsc_code_frac_chars_dupe_7grams": 0.3461975, "qsc_code_frac_chars_dupe_8grams": 0.276958, "qsc_code_frac_chars_dupe_9grams": 0.05448354, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.08853288, "qsc_code_frac_chars_whitespace": 0.06022187, "qsc_code_size_file_byte": 1262.0, "qsc_code_num_lines": 16.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 78.875, "qsc_code_frac_chars_alphabet": 0.653457, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.53011094, "qsc_code_frac_chars_long_word_length": 0.02852615, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 1, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
2003100127/pypropel | pypropel/prot/feature/sequence/Position.py | __author__ = "Jianfeng Sun"
__version__ = "v1.0"
__copyright__ = "Copyright 2024"
__license__ = "GPL v3.0"
__email__ = "jianfeng.sunmt@gmail.com"
__maintainer__ = "Jianfeng Sun"
from typing import List
import time
import numpy as np
class Position:
def __init__(self, ):
pass
def deepconpred(self, ):
"""
Sequence separation is encoded into binary representation with length of 9.
References
----------
Xiong, D., Zeng, J., & Gong, H. (2017). A deep learning framework
for improving long-range residue–residue contact prediction using a
hierarchical strategy. Bioinformatics, 33(17), 2675-2683.
Returns
-------
1d dictionary : dict
"""
num_sort = 10
one_hot_binary = np.zeros((num_sort, num_sort))
one_hot_binary[np.arange(num_sort), np.flipud(np.arange(num_sort))] = 1
# print(one_hot_binary)
encode_dict = {
'24<=v<=28': one_hot_binary[0].tolist(),
'29<=v<=33': one_hot_binary[1].tolist(),
'34<=v<=38': one_hot_binary[2].tolist(),
'39<=v<=43': one_hot_binary[3].tolist(),
'44<=v<=48': one_hot_binary[4].tolist(),
'49<=v<=58': one_hot_binary[5].tolist(),
'59<=v<=68': one_hot_binary[6].tolist(),
'69<=v<=78': one_hot_binary[7].tolist(),
'79<=v<=88': one_hot_binary[8].tolist(),
'v>=89': one_hot_binary[9].tolist(),
'none': [0] * num_sort
}
return encode_dict
def deepconpred_(self, list_2d, window_aa_ids):
start_time = time.time()
list_2d_ = list_2d
# window_aa_ids_ = [i[0] + i[1] for i in window_aa_ids]
encode_dict = self.deepconpred()
for i, aa_win_ids in enumerate(window_aa_ids):
res1 = aa_win_ids[0][0]
res2 = aa_win_ids[1][0]
if res1 == None or res2 == None:
list_2d_[i] = list_2d_[i] + encode_dict['none']
elif 24 <= abs(res1 - res2) <= 28:
list_2d_[i] = list_2d_[i] + encode_dict['24<=v<=28']
elif 29 <= abs(res1 - res2) <= 33:
list_2d_[i] = list_2d_[i] + encode_dict['29<=v<=33']
elif 34 <= abs(res1 - res2) <= 38:
list_2d_[i] = list_2d_[i] + encode_dict['34<=v<=38']
elif 39 <= abs(res1 - res2) <= 43:
list_2d_[i] = list_2d_[i] + encode_dict['39<=v<=43']
elif 44 <= abs(res1 - res2) <= 48:
list_2d_[i] = list_2d_[i] + encode_dict['44<=v<=48']
elif 49 <= abs(res1 - res2) <= 58:
list_2d_[i] = list_2d_[i] + encode_dict['49<=v<=58']
elif 59 <= abs(res1 - res2) <= 68:
list_2d_[i] = list_2d_[i] + encode_dict['59<=v<=68']
elif 69 <= abs(res1 - res2) <= 78:
list_2d_[i] = list_2d_[i] + encode_dict['69<=v<=78']
elif 89 <= abs(res1 - res2) <= 88:
list_2d_[i] = list_2d_[i] + encode_dict['79<=v<=88']
else:
list_2d_[i] = list_2d_[i] + encode_dict['v>=89']
end_time = time.time()
print('------> absolute position: {time}s.'.format(time=end_time - start_time))
return list_2d_
def metapsicov(self):
num_sort = 16
one_hot_binary = np.zeros((num_sort, num_sort))
one_hot_binary[np.arange(num_sort), np.flipud(np.arange(num_sort))] = 1
# print(one_hot_cls)
encode_dict = {
'v<5': one_hot_binary[0].tolist(),
'v=5': one_hot_binary[1].tolist(),
'v=6': one_hot_binary[2].tolist(),
'v=7': one_hot_binary[3].tolist(),
'v=8': one_hot_binary[4].tolist(),
'v=9': one_hot_binary[5].tolist(),
'v=10': one_hot_binary[6].tolist(),
'v=11': one_hot_binary[7].tolist(),
'v=12': one_hot_binary[8].tolist(),
'v=13': one_hot_binary[9].tolist(),
'14<=v<18': one_hot_binary[10].tolist(),
'18<=v<23': one_hot_binary[11].tolist(),
'23<=v<28': one_hot_binary[12].tolist(),
'28<=v<38': one_hot_binary[13].tolist(),
'38<=v<48': one_hot_binary[14].tolist(),
'v>=48': one_hot_binary[15].tolist(),
'none': [0] * num_sort
}
return encode_dict
def metapsicov_(self, list_2d, window_aa_ids):
start_time = time.time()
list_2d_ = list_2d
# window_aa_ids_ = [i[0] + i[1] for i in window_aa_ids]
encode_dict = self.metapsicov()
for i, aa_win_ids in enumerate(window_aa_ids):
res1 = aa_win_ids[0][0]
res2 = aa_win_ids[1][0]
if res1 == None or res2 == None:
list_2d_[i] = list_2d_[i] + encode_dict['none']
elif abs(res1 - res2) < 5:
list_2d_[i] = list_2d_[i] + encode_dict['v<5']
elif abs(res1 - res2) == 5:
list_2d_[i] = list_2d_[i] + encode_dict['v=5']
elif abs(res1 - res2) == 6:
list_2d_[i] = list_2d_[i] + encode_dict['v=6']
elif abs(res1 - res2) == 7:
list_2d_[i] = list_2d_[i] + encode_dict['v=7']
elif abs(res1 - res2) == 8:
list_2d_[i] = list_2d_[i] + encode_dict['v=8']
elif abs(res1 - res2) == 9:
list_2d_[i] = list_2d_[i] + encode_dict['v=9']
elif abs(res1 - res2) == 10:
list_2d_[i] = list_2d_[i] + encode_dict['v=10']
elif abs(res1 - res2) == 11:
list_2d_[i] = list_2d_[i] + encode_dict['v=11']
elif abs(res1 - res2) == 12:
list_2d_[i] = list_2d_[i] + encode_dict['v=12']
elif abs(res1 - res2) == 13:
list_2d_[i] = list_2d_[i] + encode_dict['v=13']
elif 14 <= abs(res1 - res2) < 18:
list_2d_[i] = list_2d_[i] + encode_dict['14<=v<18']
elif 18 <= abs(res1 - res2) < 23:
list_2d_[i] = list_2d_[i] + encode_dict['18<=v<23']
elif 23 <= abs(res1 - res2) < 28:
list_2d_[i] = list_2d_[i] + encode_dict['23<=v<28']
elif 28 <= abs(res1 - res2) < 38:
list_2d_[i] = list_2d_[i] + encode_dict['28<=v<38']
elif 38 <= abs(res1 - res2) < 48:
list_2d_[i] = list_2d_[i] + encode_dict['38<=v<48']
else:
list_2d_[i] = list_2d_[i] + encode_dict['v>=48']
end_time = time.time()
print('------> metapsicov one-hot position: {time}s.'.format(time=end_time - start_time))
return list_2d_
def relative(
self,
pos,
interval : List,
):
"""
Notes
-----
One application scenario is to calculate the position of a residue
relative to the boundary of a transmembrane segment (interval).
"""
return abs(pos - min(interval)) / (max(interval) - min(interval))
def absolute(self, pos, seq, decimal_place=10):
return round(pos / len(seq), decimal_place)
if __name__ == "__main__":
from pypropel.prot.sequence.Fasta import Fasta as sfasta
from pypropel.path import to
import tmkit as tmk
sequence = sfasta().get(
fasta_fpn=to("data/fasta/1aigL.fasta")
)
# print(sequence)
pos_list = tmk.seq.pos_list_pair(
len_seq=len(sequence),
seq_sep_superior=None,
seq_sep_inferior=0,
)
# print(pos_list)
positions = tmk.seq.pos_pair(sequence=sequence, pos_list=pos_list)
# print(positions[:3])
window_size = 1
win_aa_ids = tmk.seq.win_id_pair(
sequence=sequence,
position=positions,
window_size=window_size,
)
# print(win_aa_ids)
win_aas = tmk.seq.win_name_pair(
sequence=sequence,
position=positions,
window_size=window_size,
mids=win_aa_ids,
)
# print(win_aas[:3])
features = [[] for i in range(len(win_aa_ids))]
# print(features)
# print(len(features))
p = Position()
print(positions[0][0])
print(p.absolute(positions[0][0], sequence))
print(p.deepconpred())
print(p.deepconpred_(features, win_aa_ids))
# print(p.metapsicov())
# print(p.metapsicov_(features, win_aa_ids)) | 8,375 | Position | py | en | python | code | {"qsc_code_num_words": 1163, "qsc_code_num_chars": 8375.0, "qsc_code_mean_word_length": 3.54428203, "qsc_code_frac_words_unique": 0.16079106, "qsc_code_frac_chars_top_2grams": 0.09315866, "qsc_code_frac_chars_top_3grams": 0.09509947, "qsc_code_frac_chars_top_4grams": 0.07472101, "qsc_code_frac_chars_dupe_5grams": 0.52862688, "qsc_code_frac_chars_dupe_6grams": 0.41557496, "qsc_code_frac_chars_dupe_7grams": 0.40587094, "qsc_code_frac_chars_dupe_8grams": 0.40587094, "qsc_code_frac_chars_dupe_9grams": 0.35929161, "qsc_code_frac_chars_dupe_10grams": 0.26516254, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.07413194, "qsc_code_frac_chars_whitespace": 0.31223881, "qsc_code_size_file_byte": 8375.0, "qsc_code_num_lines": 226.0, "qsc_code_num_chars_line_max": 98.0, "qsc_code_num_chars_line_mean": 37.05752212, "qsc_code_frac_chars_alphabet": 0.64131944, "qsc_code_frac_chars_comments": 0.09802985, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.21301775, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.07155394, "qsc_code_frac_chars_long_word_length": 0.00621034, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.04142012, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.00591716, "qsc_codepython_frac_lines_import": 0.03550296, "qsc_codepython_frac_lines_simplefunc": 0.005917159763313609, "qsc_codepython_score_lines_no_logic": 0.1183432, "qsc_codepython_frac_lines_print": 0.03550296} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
2003100127/pypropel | pypropel/prot/feature/sequence/Composition.py | __author__ = "Jianfeng Sun"
__version__ = "v1.0"
__copyright__ = "Copyright 2024"
__license__ = "GPL v3.0"
__email__ = "jianfeng.sunmt@gmail.com"
__maintainer__ = "Jianfeng Sun"
from collections import Counter
from pypropel.prot.sequence.Symbol import Symbol as aasymbol
from pypropel.dna.sequence.Symbol import Symbol as dnasymbol
from pypropel.util.Console import Console
class Composition:
"""
Amino acid composition for a sequence with its MSA is calculated.
"""
def __init__(
self,
sequence,
mol_type='aa',
verbose: bool = True,
):
self.sequence = sequence
if mol_type == 'aa':
self.symbol = aasymbol()
self.aa = self.symbol.single()
else:
self.symbol = dnasymbol()
self.aa = self.symbol.single()
self.console = Console()
self.console.verbose = verbose
def aac(self, ):
aac_ = {}
for _, i in enumerate(self.aa):
aac_[i] = round(self.sequence.count(i) / len(self.sequence), 6)
return aac_
def dac(self, ):
"""
dipeptide composition (DPC).
"""
dac_ = []
for _, i in enumerate(self.symbol.pair()):
dac_.append([i, round(self.sequence.count(i) / (len(self.sequence) - 1), 6)])
return dac_
def tac(self, ):
tac_ = []
for _, i in enumerate(self.symbol.triple()):
tac_.append([i, round(self.sequence.count(i) / (len(self.sequence) - 2), 6)])
return tac_
def qac(self, ):
qac_ = []
for _, i in enumerate(self.symbol.quadruple()):
qac_.append([i, round(self.sequence.count(i) / (len(self.sequence) - 3), 6)])
return qac_
def cksnap(self, k):
"""
Composition of k-Spaced amino acid pairs (CKSAAP - 16)
Parameters
----------
k
Returns
-------
"""
c = []
for i in range(len(self.sequence) - (k + 1)):
c.append(self.sequence[i] + self.sequence[i + k + 1])
freq_dict = dict(Counter(c))
cksnap_ = {}
# print(freq_dict)
keys = [*freq_dict.keys()]
for _, i in enumerate(self.symbol.pair()):
if i in keys:
cksnap_[i] = round(freq_dict[i] / (len(self.sequence) - (k + 1)), 6)
# cksnap_[i] = freq_dict[i]
else:
cksnap_[i] = 0
return cksnap_
def aveanf(self, ):
"""average Accumulated Amino Acid Frequency (AAAF)"""
cdict = {}
for aa_ref in self.aa:
cdict[aa_ref] = []
cnt = 0
for i, nt in enumerate(self.sequence):
if nt == aa_ref:
cnt += 1
cdict[aa_ref].append(cnt / (i + 1))
# print(cdict)
cdict_ = {}
for k, v in cdict.items():
if v != []:
cdict_[k] = sum(v) / len(v)
else:
cdict_[k] = 0
return cdict_
if __name__ == "__main__":
seq = "ADGCGVGEGTGQGPMCNCMCMKWVYADEDAADLESDSFADEDASLESDSFPWSNQRVFCSFADEDAS"
p = Composition(
sequence=seq
)
# print(p.aac())
# print(p.dac())
# print(p.tac())
# print(p.qac())
# print(p.cksnap(2))
print(p.aveanf())
| 3,362 | Composition | py | en | python | code | {"qsc_code_num_words": 382, "qsc_code_num_chars": 3362.0, "qsc_code_mean_word_length": 4.35602094, "qsc_code_frac_words_unique": 0.27748691, "qsc_code_frac_chars_top_2grams": 0.10817308, "qsc_code_frac_chars_top_3grams": 0.02163462, "qsc_code_frac_chars_top_4grams": 0.04507212, "qsc_code_frac_chars_dupe_5grams": 0.26141827, "qsc_code_frac_chars_dupe_6grams": 0.16947115, "qsc_code_frac_chars_dupe_7grams": 0.13942308, "qsc_code_frac_chars_dupe_8grams": 0.10456731, "qsc_code_frac_chars_dupe_9grams": 0.10456731, "qsc_code_frac_chars_dupe_10grams": 0.08112981, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.01232314, "qsc_code_frac_chars_whitespace": 0.34830458, "qsc_code_size_file_byte": 3362.0, "qsc_code_num_lines": 126.0, "qsc_code_num_chars_line_max": 90.0, "qsc_code_num_chars_line_mean": 26.68253968, "qsc_code_frac_chars_alphabet": 0.74714742, "qsc_code_frac_chars_comments": 0.11154075, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.08641975, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.05329154, "qsc_code_frac_chars_long_word_length": 0.03169627, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.08641975, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.04938272, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.22222222, "qsc_codepython_frac_lines_print": 0.01234568} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ЗаявлениеНаВыпускНовогоКвалифицированногоСертификата/Templates/ИндивидуальныйПредприниматель.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Template uuid="e057e428-99c1-419d-a169-697c1e825e94">
<Properties>
<Name>ИндивидуальныйПредприниматель</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Индивидуальный предприниматель</v8:content>
</v8:item>
</Synonym>
<Comment/>
<TemplateType>SpreadsheetDocument</TemplateType>
</Properties>
</Template>
</MetaDataObject> | 1,282 | ИндивидуальныйПредприниматель | xml | ru | xml | data | {"qsc_code_num_words": 224, "qsc_code_num_chars": 1282.0, "qsc_code_mean_word_length": 4.02232143, "qsc_code_frac_words_unique": 0.33482143, "qsc_code_frac_chars_top_2grams": 0.09988901, "qsc_code_frac_chars_top_3grams": 0.13318535, "qsc_code_frac_chars_top_4grams": 0.16648169, "qsc_code_frac_chars_dupe_5grams": 0.40732519, "qsc_code_frac_chars_dupe_6grams": 0.40732519, "qsc_code_frac_chars_dupe_7grams": 0.33851276, "qsc_code_frac_chars_dupe_8grams": 0.27081021, "qsc_code_frac_chars_dupe_9grams": 0.05327414, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.08955224, "qsc_code_frac_chars_whitespace": 0.05928237, "qsc_code_size_file_byte": 1282.0, "qsc_code_num_lines": 16.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 80.125, "qsc_code_frac_chars_alphabet": 0.65671642, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.52184087, "qsc_code_frac_chars_long_word_length": 0.02808112, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 1, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
2003100127/pypropel | pypropel/prot/feature/sequence/AminoAcidProperty.py | __author__ = "Jianfeng Sun"
__version__ = "v1.0"
__copyright__ = "Copyright 2024"
__license__ = "GPL v3.0"
__email__ = "jianfeng.sunmt@gmail.com"
__maintainer__ = "Jianfeng Sun"
import time
from pypropel.util.normalization.Standardize import Standardize
class AminoAcidProperty:
def __init__(self, ):
self.sstandardize = Standardize()
def positive(
self,
kind='Russell',
standardize=True,
):
"""
Positive
References
----------
Betts, M.J. and Russell, R.B. (2003). Amino Acid Properties and Consequences
of Substitutions. In Bioinformatics for Geneticists
(eds M.R. Barnes and I.C. Gray). https://doi.org/10.1002/0470867302.ch14
Parameters
----------
kind
method
standardize
if are values standalized
Returns
-------
"""
if kind == 'Russell':
weight_dict = {
'A': 3, 'C': 3, 'D': 3, 'E': 3,
'F': 3, 'G': 3, 'H': 2, 'I': 3,
'K': 1, 'L': 3, 'M': 3, 'N': 3,
'P': 3, 'Q': 3, 'R': 1, 'S': 3,
'T': 3, 'V': 3, 'W': 3, 'Y': 3
}
if standardize:
return self.sstandardize.minmax2(weight_dict)
else:
return weight_dict
def negative(
self,
kind='Russell',
standardize=True,
):
"""
Negative
References
----------
Betts, M.J. and Russell, R.B. (2003). Amino Acid Properties and Consequences
of Substitutions. In Bioinformatics for Geneticists
(eds M.R. Barnes and I.C. Gray). https://doi.org/10.1002/0470867302.ch14
Parameters
----------
kind
method
standardize
if are values standalized
Returns
-------
"""
if kind == 'Russell':
weight_dict = {
'A': 2, 'C': 2, 'D': 1, 'E': 1,
'F': 2, 'G': 2, 'H': 2, 'I': 2,
'K': 2, 'L': 2, 'M': 2, 'N': 2,
'P': 2, 'Q': 2, 'R': 2, 'S': 2,
'T': 2, 'V': 2, 'W': 2, 'Y': 2
}
if standardize:
return self.sstandardize.minmax2(weight_dict)
else:
return weight_dict
def charged(
self,
kind='Russell',
standardize=True,
):
"""
Charged
References
----------
Betts, M.J. and Russell, R.B. (2003). Amino Acid Properties and Consequences
of Substitutions. In Bioinformatics for Geneticists
(eds M.R. Barnes and I.C. Gray). https://doi.org/10.1002/0470867302.ch14
Parameters
----------
kind
method
standardize
if are values standalized
Returns
-------
"""
if kind == 'Russell':
weight_dict = {
'A': 4, 'C': 4, 'D': 1, 'E': 1,
'F': 4, 'G': 4, 'H': 3, 'I': 4,
'K': 2, 'L': 4, 'M': 4, 'N': 4,
'P': 4, 'Q': 4, 'R': 2, 'S': 4,
'T': 4, 'V': 4, 'W': 4, 'Y': 4
}
if standardize:
return self.sstandardize.minmax2(weight_dict)
else:
return weight_dict
def polar(
self,
kind='Russell',
standardize=True,
):
"""
Polar
References
----------
Betts, M.J. and Russell, R.B. (2003). Amino Acid Properties and Consequences
of Substitutions. In Bioinformatics for Geneticists
(eds M.R. Barnes and I.C. Gray). https://doi.org/10.1002/0470867302.ch14
Parameters
----------
kind
method
standardize
if are values standalized
Returns
-------
"""
if kind == 'Russell':
weight_dict = {
'A': 2, 'C': 3, 'D': 1, 'E': 1,
'F': 3, 'G': 2, 'H': 2, 'I': 3,
'K': 1, 'L': 3, 'M': 3, 'N': 1,
'P': 2, 'Q': 1, 'R': 1, 'S': 2,
'T': 2, 'V': 3, 'W': 3, 'Y': 2
}
if standardize:
return self.sstandardize.minmax2(weight_dict)
else:
return weight_dict
def aliphatic(
self,
kind='Russell',
standardize=True,
):
"""
Aliphatic
References
----------
Betts, M.J. and Russell, R.B. (2003). Amino Acid Properties and Consequences
of Substitutions. In Bioinformatics for Geneticists
(eds M.R. Barnes and I.C. Gray). https://doi.org/10.1002/0470867302.ch14
Parameters
----------
kind
method
standardize
if are values standalized
Returns
-------
"""
if kind == 'Russell':
weight_dict = {
'A': 1, 'C': 2, 'D': 2, 'E': 2,
'F': 2, 'G': 2, 'H': 2, 'I': 1,
'K': 2, 'L': 1, 'M': 1, 'N': 2,
'P': 1, 'Q': 2, 'R': 2, 'S': 2,
'T': 2, 'V': 1, 'W': 2, 'Y': 2
}
if standardize:
return self.sstandardize.minmax2(weight_dict)
else:
return weight_dict
def aromatic(
self,
kind='Russell',
standardize=True,
):
"""
Aromatic
References
----------
Betts, M.J. and Russell, R.B. (2003). Amino Acid Properties and Consequences
of Substitutions. In Bioinformatics for Geneticists
(eds M.R. Barnes and I.C. Gray). https://doi.org/10.1002/0470867302.ch14
Parameters
----------
kind
method
standardize
if are values standalized
Returns
-------
"""
if kind == 'Russell':
weight_dict = {
'A': 2, 'C': 2, 'D': 2, 'E': 2,
'F': 1, 'G': 2, 'H': 1, 'I': 2,
'K': 2, 'L': 2, 'M': 2, 'N': 2,
'P': 2, 'Q': 2, 'R': 2, 'S': 2,
'T': 2, 'V': 2, 'W': 1, 'Y': 1
}
if standardize:
return self.sstandardize.minmax2(weight_dict)
else:
return weight_dict
def hydrophobic(
self,
kind='Russell',
standardize=True,
):
"""
Hydrophobic
References
----------
Betts, M.J. and Russell, R.B. (2003). Amino Acid Properties and Consequences
of Substitutions. In Bioinformatics for Geneticists
(eds M.R. Barnes and I.C. Gray). https://doi.org/10.1002/0470867302.ch14
Parameters
----------
kind
method
standardize
if are values standalized
Returns
-------
"""
if kind == 'Russell':
weight_dict = {
'A': 2, 'C': 1, 'D': 4, 'E': 4,
'F': 1, 'G': 2, 'H': 2, 'I': 1,
'K': 3, 'L': 1, 'M': 1, 'N': 4,
'P': 2, 'Q': 4, 'R': 3, 'S': 2,
'T': 2, 'V': 1, 'W': 1, 'Y': 2
}
if standardize:
return self.sstandardize.minmax2(weight_dict)
else:
return weight_dict
def small(
self,
kind='Russell',
standardize=True,
):
"""
Small
References
----------
Betts, M.J. and Russell, R.B. (2003). Amino Acid Properties and Consequences
of Substitutions. In Bioinformatics for Geneticists
(eds M.R. Barnes and I.C. Gray). https://doi.org/10.1002/0470867302.ch14
Parameters
----------
kind
method
standardize
if are values standalized
Returns
-------
"""
if kind == 'Russell':
weight_dict = {
'A': 1, 'C': 3, 'D': 2, 'E': 3,
'F': 3, 'G': 1, 'H': 3, 'I': 3,
'K': 3, 'L': 3, 'M': 3, 'N': 2,
'P': 1, 'Q': 3, 'R': 3, 'S': 1,
'T': 2, 'V': 3, 'W': 3, 'Y': 3
}
if standardize:
return self.sstandardize.minmax2(weight_dict)
else:
return weight_dict
def active(
self,
kind='Russell',
standardize=True,
):
"""
Active
References
----------
Betts, M.J. and Russell, R.B. (2003). Amino Acid Properties and Consequences
of Substitutions. In Bioinformatics for Geneticists
(eds M.R. Barnes and I.C. Gray). https://doi.org/10.1002/0470867302.ch14
Parameters
----------
kind
method
standardize
if are values standalized
Returns
-------
"""
if kind == 'Russell':
weight_dict ={
'A': 0.025, 'C': 0.21, 'D': 0.045, 'E': 0.05,
'F': -0.12, 'G': -0.07, 'H': 0.36, 'I': -0.005,
'K': 0.1, 'L': -0.18, 'M': 0.025, 'N': 0.08,
'P': -0.2, 'Q': 0.05, 'R': 0.055, 'S': 0.13,
'T': 0.1, 'V': -0.06, 'W': -0.14, 'Y': -0.04
}
if standardize:
return self.sstandardize.minmax2(weight_dict)
else:
return weight_dict
def weight(
self,
kind='Taylor',
standardize=True,
):
"""
Molecular weight
References
----------
Lundblad, R.L., & Macdonald, F. (Eds.). (2018). Handbook of Biochemistry
and Molecular Biology (5th ed.). CRC Press. https://doi.org/10.1201/b21846
Parameters
----------
kind
method
standardize
if are values standalized
Returns
-------
"""
if kind == 'Taylor':
weight_dict = {
'A': 89.09, 'C': 121.15, 'D': 133.10,
'E': 147.13, 'F': 165.19, 'G': 75.07,
'H': 155.16, 'I': 131.17, 'K': 146.19,
'L': 131.17, 'M': 149.21, 'N': 132.12,
'P': 115.13, 'Q': 146.15, 'R': 174.20,
'S': 105.09, 'T': 119.12, 'V': 117.15,
'W': 204.24, 'Y': 181.19
}
if standardize:
return self.sstandardize.minmax2(weight_dict)
else:
return weight_dict
def pI(
self,
kind='Taylor',
standardize=True,
):
"""
pI: pH at the isoelectric point
References
----------
Lundblad, R.L., & Macdonald, F. (Eds.). (2018). Handbook of Biochemistry
and Molecular Biology (5th ed.). CRC Press. https://doi.org/10.1201/b21846
Parameters
----------
kind
method
standardize
if are values standalized
Returns
-------
"""
if kind == 'Taylor':
weight_dict = {
'A': 6.00, 'C': 5.07, 'D': 2.77, 'E': 3.22,
'F': 5.48, 'G': 5.97, 'H': 7.59, 'I': 6.02,
'K': 9.74, 'L': 5.98, 'M': 5.74, 'N': 5.41,
'P': 6.30, 'Q': 5.65, 'R': 10.76, 'S': 5.68,
'T': 5.60, 'V': 5.96, 'W': 5.89, 'Y': 5.66
}
if standardize:
return self.sstandardize.minmax2(weight_dict)
else:
return weight_dict
def solubility(
self,
kind='Taylor',
standardize=True,
):
"""
Solubility in water in units of grams of
compound per kilogram of water.
References
----------
Lundblad, R.L., & Macdonald, F. (Eds.). (2018). Handbook of Biochemistry
and Molecular Biology (5th ed.). CRC Press. https://doi.org/10.1201/b21846
Parameters
----------
kind
method
standardize
if are values standalized
Returns
-------
"""
if kind == 'Taylor':
weight_dict = {
'A': 166.9, 'C': 1623, 'D': 5.04, 'E': 8.6,
'F': 27.9, 'G': 250.2, 'H': 43.5, 'I': 34.2,
'K': 5.8, 'L': 22.0, 'M': 56, 'N': 25.1,
'P': 1622, 'Q': 42.5, 'R': 182.6, 'S': 250,
'T': 98.1, 'V': 88, 'W': 13.2, 'Y': 0.46
}
if standardize:
return self.sstandardize.minmax2(weight_dict)
else:
return weight_dict
def tm(
self,
kind='Taylor',
standardize=True,
):
"""
tm: Melting point
References
----------
Lundblad, R.L., & Macdonald, F. (Eds.). (2018). Handbook of Biochemistry
and Molecular Biology (5th ed.). CRC Press. https://doi.org/10.1201/b21846
Parameters
----------
kind
method
standardize
if are values standalized
Returns
-------
"""
if kind == 'Taylor':
weight_dict = {
'A': 297, 'C': 240, 'D': 270, 'E': 160,
'F': 283, 'G': 290, 'H': 287, 'I': 284,
'K': 224, 'L': 293, 'M': 281, 'N': 235,
'P': 221, 'Q': 185, 'R': 244, 'S': 228,
'T': 256, 'V': 315, 'W': 289, 'Y': 343
}
if standardize:
return self.sstandardize.minmax2(weight_dict)
else:
return weight_dict
def pka(
self,
kind='Taylor',
standardize=True,
):
"""
pKa: Negative of the logarithm of the acid dissociation
constants for the COOH and NH2 groups (and, in
some cases, other groups) in the molecule (at 25°C)
References
----------
Lundblad, R.L., & Macdonald, F. (Eds.). (2018). Handbook of Biochemistry
and Molecular Biology (5th ed.). CRC Press. https://doi.org/10.1201/b21846
Parameters
----------
kind
method
standardize
if are values standalized
Returns
-------
"""
if kind == 'Taylor':
weight_dict = {
'A': 2.33, 'C': 1.91, 'D': 1.95, 'E': 2.16,
'F': 2.18, 'G': 2.34, 'H': 1.70, 'I': 2.26,
'K': 2.15, 'L': 2.32, 'M': 2.16, 'N': 2.16,
'P': 1.95, 'Q': 2.18, 'R': 2.03, 'S': 2.13,
'T': 2.20, 'V': 2.27, 'W': 2.38, 'Y': 2.24
}
if standardize:
return self.sstandardize.minmax2(weight_dict)
else:
return weight_dict
def pkb(
self,
kind='Taylor',
standardize=True,
):
"""
pKa: Negative of the logarithm of the acid dissociation
constants for the COOH and NH2 groups (and, in
some cases, other groups) in the molecule (at 25°C)
References
----------
Lundblad, R.L., & Macdonald, F. (Eds.). (2018). Handbook of Biochemistry
and Molecular Biology (5th ed.). CRC Press. https://doi.org/10.1201/b21846
Parameters
----------
kind
method
standardize
if are values standalized
Returns
-------
"""
if kind == 'Taylor':
weight_dict = {
'A': 9.71, 'C': 10.28, 'D': 9.66, 'E': 9.58,
'F': 9.09, 'G': 9.58, 'H': 9.09, 'I': 9.60,
'K': 9.16, 'L': 9.58, 'M': 9.08, 'N': 8.73,
'P': 10.47, 'Q': 9.00, 'R': 9.00, 'S': 9.05,
'T': 8.96, 'V': 9.52, 'W': 9.34, 'Y': 9.04
}
if standardize:
return self.sstandardize.minmax2(weight_dict)
else:
return weight_dict
def hydrophilicity(
self,
kind='Hopp',
standardize=True,
):
"""
Hydrophilicity
References
----------
Hopp TP, Woods KR. Prediction of protein antigenic determinants from
amino acid sequences. Proc Natl Acad Sci U S A. 1981 Jun;78(6):3824-8.
doi: 10.1073/pnas.78.6.3824.
Parameters
----------
kind
method
standardize
if are values standalized
Returns
-------
"""
if kind == 'Hopp':
weight_dict = {
'A': -0.5, 'C': -1.0, 'D': 3.0, 'E': 3.0,
'F': -2.5, 'G': 0.0, 'H': -0.5, 'I': -1.8,
'K': 3.0, 'L': -1.8, 'M': -1.3, 'N': 0.2,
'P': 0.0, 'Q': 0.2, 'R': 3.0, 'S': 0.3,
'T': -0.4, 'V': -1.5, 'W': -3.4, 'Y': -2.3
}
if standardize:
return self.sstandardize.minmax2(weight_dict)
else:
return weight_dict
def hydrophobicity(
self,
kind='Argos',
standardize=True,
):
"""
Hydrophobicity
References
----------
ARGOS, P., RAO, J.K.M. and HARGRAVE, P.A. (1982), Structural Prediction of Membrane-Bound
Proteins. European Journal of Biochemistry, 128: 565-575.
https://doi.org/10.1111/j.1432-1033.1982.tb07002.x
Parameters
----------
kind
method
standardize
if are values standalized
Returns
-------
"""
if kind == 'Argos':
weight_dict = {
'A': 0.61, 'C': 1.07, 'D': 0.46, 'E': 0.47,
'F': 2.02, 'G': 0.07, 'H': 0.61, 'I': 2.22,
'K': 1.15, 'L': 1.53, 'M': 1.18, 'N': 0.06,
'P': 1.95, 'Q': 0.00, 'R': 0.60, 'S': 0.05,
'T': 0.05, 'V': 1.32, 'W': 2.65, 'Y': 1.88
}
if standardize:
return self.sstandardize.minmax2(weight_dict)
else:
return weight_dict
def fet(
self,
kind='Argos',
standardize=True,
):
"""
Fet
References
----------
ARGOS, P., RAO, J.K.M. and HARGRAVE, P.A. (1982), Structural Prediction of Membrane-Bound
Proteins. European Journal of Biochemistry, 128: 565-575.
https://doi.org/10.1111/j.1432-1033.1982.tb07002.x
Parameters
----------
kind
method
standardize
if are values standalized
Returns
-------
"""
if kind == 'Argos':
weight_dict = {
'A': 1.24, 'C': 1.60, 'D': 0.71,
'E': 0.65, 'F': 1.36, 'G': 1.24,
'H': 1.01, 'I': 1.48, 'K': 0.00,
'L': 1.36, 'M': 1.30, 'N': 0.77,
'P': 0.89, 'Q': 0.65, 'R': 0.24,
'S': 1.01, 'T': 0.95, 'V': 1.42,
'W': 0.24, 'Y': 0.83
}
if standardize:
return self.sstandardize.minmax2(weight_dict)
else:
return weight_dict
def hydration(
self,
kind='Argos',
standardize=True,
):
"""
Hydration
References
----------
ARGOS, P., RAO, J.K.M. and HARGRAVE, P.A. (1982), Structural Prediction of Membrane-Bound
Proteins. European Journal of Biochemistry, 128: 565-575.
https://doi.org/10.1111/j.1432-1033.1982.tb07002.x
Parameters
----------
kind
method
standardize
if are values standalized
Returns
-------
"""
if kind == 'Argos':
weight_dict = {
'A': 2.00, 'C': 1.51, 'D': 0.01,
'E': 0.13, 'F': 1.58, 'G': 2.07,
'H': 0.12, 'I': 2.03, 'K': 0.23,
'L': 2.06, 'M': 1.47, 'N': 0.20,
'P': 0.93, 'Q': 0.25, 'R': 0.00,
'S': 0.92, 'T': 0.94, 'V': 2.00,
'W': 0.79, 'Y': 0.75
}
if standardize:
return self.sstandardize.minmax2(weight_dict)
else:
return weight_dict
def signal(
self,
kind='Argos',
standardize=True,
):
"""
Signal
References
----------
ARGOS, P., RAO, J.K.M. and HARGRAVE, P.A. (1982), Structural Prediction of Membrane-Bound
Proteins. European Journal of Biochemistry, 128: 565-575.
https://doi.org/10.1111/j.1432-1033.1982.tb07002.x
Parameters
----------
kind
method
standardize
if are values standalized
Returns
-------
"""
if kind == 'Argos':
weight_dict = {
'A': 1.81, 'C': 1.89, 'D': 0.05,
'E': 0.11, 'F': 1.96, 'G': 0.49,
'H': 0.31, 'I': 1.45, 'K': 0.06,
'L': 3.23, 'M': 2.67, 'N': 0.23,
'P': 0.76, 'Q': 0.72, 'R': 0.20,
'S': 0.97, 'T': 0.84, 'V': 1.08,
'W': 0.77, 'Y': 0.39
}
if standardize:
return self.sstandardize.minmax2(weight_dict)
else:
return weight_dict
def volume(
self,
kind='Grantham',
standardize=True,
):
"""
Volume
References
----------
R. Grantham ,Amino Acid Difference Formula to Help Explain
Protein Evolution.Science185,862-864(1974).DOI:10.1126/science.185.4154.862
Parameters
----------
kind
method
standardize
if are values standalized
Returns
-------
"""
if kind == 'Grantham':
weight_dict = {
'A': 31, 'C': 55, 'D': 54, 'E': 83,
'F': 132, 'G': 3, 'H': 96, 'I': 111,
'K': 119, 'L': 111, 'M': 105, 'N': 56,
'P': 32.5, 'Q': 85, 'R': 124, 'S': 32,
'T': 61, 'V': 84, 'W': 170, 'Y': 136
}
if standardize:
return self.sstandardize.minmax2(weight_dict)
else:
return weight_dict
def polarity(
self,
kind='Grantham',
standardize=True,
):
"""
Polarity
References
----------
R. Grantham ,Amino Acid Difference Formula to Help Explain
Protein Evolution.Science185,862-864(1974).DOI:10.1126/science.185.4154.862
Parameters
----------
kind
method
standardize
if are values standalized
Returns
-------
"""
if kind == 'Grantham':
weight_dict = {
'A': 8.1, 'C': 5.5, 'D': 13.0, 'E': 12.3,
'F': 5.2, 'G': 9.0, 'H': 10.4, 'I': 5.2,
'K': 11.3, 'L': 4.9, 'M': 5.7, 'N': 11.6,
'P': 8.0, 'Q': 10.5, 'R': 10.5, 'S': 9.2,
'T': 8.6, 'V': 5.9, 'W': 5.4, 'Y': 6.2
}
if standardize:
return self.sstandardize.minmax2(weight_dict)
else:
return weight_dict
def composition(
self,
kind='Grantham',
standardize=True,
):
"""
Composition
References
----------
R. Grantham ,Amino Acid Difference Formula to Help Explain
Protein Evolution.Science185,862-864(1974).DOI:10.1126/science.185.4154.862
Parameters
----------
kind
method
standardize
if are values standalized
Returns
-------
"""
if kind == 'Grantham':
weight_dict = {
'A': 0.00, 'C': 2.75, 'D': 1.38, 'E': 0.92,
'F': 0.00, 'G': 0.74, 'H': 0.58, 'I': 0.00,
'K': 0.33, 'L': 0.00, 'M': 0.00, 'N': 1.33,
'P': 0.39, 'Q': 0.89, 'R': 0.65, 'S': 1.42,
'T': 0.71, 'V': 0.00, 'W': 0.13, 'Y': 0.20
}
if standardize:
return self.sstandardize.minmax2(weight_dict)
else:
return weight_dict
def tobool(
self,
num_types,
rank=None,
):
"""
Parameters
----------
num_types
number of elements to be appended as bool
rank
rank of the 1st element to be appended
Returns
-------
"""
bool_ = [0] * num_types
if rank is not None:
bool_[rank-1] = 1
return bool_
else:
return bool_
def get_(
self,
list_2d,
window_aa_names,
):
"""
.. @summary:
---------
Amino adcid descriptors are assembled.
.. @link:
------
http://www.russelllab.org/aas/
.. @description:
-------------
> Charge, Hydrophobic, Aliphatic, Aromatic, Polar, Negative, Positive, Small
are drawn by the substitution of amino acid property at @link.
> Hydrophobicity, PI, Volume, Mass are values.
.. @since:
-------
It was introduced since v1.0
:return: 2d dictionary
:rtype: dict
"""
start_time = time.time()
list_2d_ = list_2d
### #/* block 1. */
posi_ = self.positive()
nega_ = self.negative()
aliphatic_ = self.aliphatic()
aromatic_ = self.aromatic()
polar_ = self.polar()
hydrophobic_ = self.hydrophobic()
charged_ = self.charged()
small_ = self.small()
### #/* block 2. */
hydrophobicity = self.hydrophobicity()
Hydrophilicity = self.hydrophilicity()
volume = self.volume()
aliphatic = self.weight()
pI = self.pI()
active = self.active()
fet = self.fet()
pka = self.pka()
pkb = self.pkb()
polarity = self.polarity()
hydration = self.hydration()
for i, aa_win_ids in enumerate(window_aa_names):
for j in aa_win_ids:
if j is None:
for e in self.tobool(num_types=3, rank=None):
list_2d_[i].append(e)
for e in self.tobool(num_types=2, rank=None):
list_2d_[i].append(e)
for e in self.tobool(num_types=2, rank=None):
list_2d_[i].append(e)
for e in self.tobool(num_types=2, rank=None):
list_2d_[i].append(e)
for e in self.tobool(num_types=3, rank=None):
list_2d_[i].append(e)
for e in self.tobool(num_types=4, rank=None):
list_2d_[i].append(e)
for e in self.tobool(num_types=4, rank=None):
list_2d_[i].append(e)
for e in self.tobool(num_types=3, rank=None):
list_2d_[i].append(e)
list_2d_[i].append(0)
list_2d_[i].append(0)
list_2d_[i].append(0)
list_2d_[i].append(0)
list_2d_[i].append(0)
list_2d_[i].append(0)
list_2d_[i].append(0)
list_2d_[i].append(0)
list_2d_[i].append(0)
list_2d_[i].append(0)
list_2d_[i].append(0)
else:
for e in self.tobool(num_types=3, rank=posi_[j]):
list_2d_[i].append(e)
for e in self.tobool(num_types=2, rank=nega_[j]):
list_2d_[i].append(e)
for e in self.tobool(num_types=2, rank=aliphatic_[j]):
list_2d_[i].append(e)
for e in self.tobool(num_types=2, rank=aromatic_[j]):
list_2d_[i].append(e)
for e in self.tobool(num_types=3, rank=polar_[j]):
list_2d_[i].append(e)
for e in self.tobool(num_types=4, rank=hydrophobic_[j]):
list_2d_[i].append(e)
for e in self.tobool(num_types=4, rank=charged_[j]):
list_2d_[i].append(e)
for e in self.tobool(num_types=3, rank=small_[j]):
list_2d_[i].append(e)
list_2d_[i].append(hydrophobicity[j])
list_2d_[i].append(Hydrophilicity[j])
list_2d_[i].append(volume[j])
list_2d_[i].append(aliphatic[j])
list_2d_[i].append(pI[j])
list_2d_[i].append(active[j])
list_2d_[i].append(fet[j])
list_2d_[i].append(pka[j])
list_2d_[i].append(pkb[j])
list_2d_[i].append(polarity[j])
list_2d_[i].append(hydration[j])
# print(len(list_2d_[0]))
# for i in list_2d_:
# if len(i) != 306:
# print(len(i))
end_time = time.time()
print('------> aa property {time}s.'.format(time=end_time - start_time))
return list_2d_
# print(p.get_(features, window_aa_names)[0]) | 29,959 | AminoAcidProperty | py | en | python | code | {"qsc_code_num_words": 3384, "qsc_code_num_chars": 29959.0, "qsc_code_mean_word_length": 3.61731678, "qsc_code_frac_words_unique": 0.11731678, "qsc_code_frac_chars_top_2grams": 0.05636794, "qsc_code_frac_chars_top_3grams": 0.02173025, "qsc_code_frac_chars_top_4grams": 0.04035618, "qsc_code_frac_chars_dupe_5grams": 0.73221142, "qsc_code_frac_chars_dupe_6grams": 0.66816437, "qsc_code_frac_chars_dupe_7grams": 0.66546851, "qsc_code_frac_chars_dupe_8grams": 0.66162895, "qsc_code_frac_chars_dupe_9grams": 0.66162895, "qsc_code_frac_chars_dupe_10grams": 0.65631893, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.10106849, "qsc_code_frac_chars_whitespace": 0.4283187, "qsc_code_size_file_byte": 29959.0, "qsc_code_num_lines": 1035.0, "qsc_code_num_chars_line_max": 98.0, "qsc_code_num_chars_line_mean": 28.94589372, "qsc_code_frac_chars_alphabet": 0.61353419, "qsc_code_frac_chars_comments": 0.27550986, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.54133858, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.04612815, "qsc_code_frac_chars_long_word_length": 0.00129331, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.0511811, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.00393701, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.15354331, "qsc_codepython_frac_lines_print": 0.0019685} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 1, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
2003100127/pypropel | pypropel/prot/feature/sequence/AminoAcidRepresentation.py | __author__ = "Jianfeng Sun"
__version__ = "v1.0"
__copyright__ = "Copyright 2024"
__license__ = "GPL v3.0"
__email__ = "jianfeng.sunmt@gmail.com"
__maintainer__ = "Jianfeng Sun"
from typing import List
import time
from pypropel.prot.sequence.Symbol import Symbol
from pypropel.util.Console import Console
class AminoAcidRepresentation:
def __init__(
self,
verbose : bool = True,
):
self.aa_dict = Symbol().todict(gap=False)
self.console = Console()
self.console.verbose = verbose
def onehot(
self,
arr_2d : List[List],
arr_aa_names : List[List],
) -> List[List]:
start_time = time.time()
for i, aa_win_names in enumerate(arr_aa_names):
for j in aa_win_names:
if j is None:
for k in range(20):
arr_2d[i].append(0)
else:
bool_ = [0] * 20
bool_[self.aa_dict[j]] = 1
for k in range(20):
arr_2d[i].append(bool_[k])
end_time = time.time()
self.console.print("=========>AA representation: {time}s.".format(time=end_time - start_time))
return arr_2d | 1,272 | AminoAcidRepresentation | py | en | python | code | {"qsc_code_num_words": 151, "qsc_code_num_chars": 1272.0, "qsc_code_mean_word_length": 4.27152318, "qsc_code_frac_words_unique": 0.43708609, "qsc_code_frac_chars_top_2grams": 0.03100775, "qsc_code_frac_chars_top_3grams": 0.03100775, "qsc_code_frac_chars_top_4grams": 0.03410853, "qsc_code_frac_chars_dupe_5grams": 0.07751938, "qsc_code_frac_chars_dupe_6grams": 0.07751938, "qsc_code_frac_chars_dupe_7grams": 0.07751938, "qsc_code_frac_chars_dupe_8grams": 0.07751938, "qsc_code_frac_chars_dupe_9grams": 0.07751938, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.02533172, "qsc_code_frac_chars_whitespace": 0.34827044, "qsc_code_size_file_byte": 1272.0, "qsc_code_num_lines": 43.0, "qsc_code_num_chars_line_max": 103.0, "qsc_code_num_chars_line_mean": 29.58139535, "qsc_code_frac_chars_alphabet": 0.75271411, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.10810811, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.0871956, "qsc_code_frac_chars_long_word_length": 0.0188531, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.05405405, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.10810811, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.21621622, "qsc_codepython_frac_lines_print": 0.02702703} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
2003100127/pypropel | pypropel/prot/feature/alignment/external/jsd/matrix/blosum100.qij | # BLOSUM Clustered Target Frequencies=qij
# Blocks Database = /data/blocks_5.0/blocks.dat
# Cluster Percentage: >= 100
A R N D C Q E G H I L K M F P S T W Y V
0.0340
0.0016 0.0266
0.0013 0.0013 0.0204
0.0014 0.0009 0.0030 0.0321
0.0013 0.0002 0.0004 0.0002 0.0201
0.0015 0.0017 0.0011 0.0011 0.0002 0.0139
0.0022 0.0017 0.0015 0.0047 0.0002 0.0029 0.0297
0.0042 0.0011 0.0019 0.0018 0.0004 0.0008 0.0012 0.0581
0.0007 0.0010 0.0010 0.0006 0.0001 0.0010 0.0009 0.0005 0.0138
0.0019 0.0007 0.0005 0.0005 0.0009 0.0005 0.0007 0.0006 0.0003 0.0284
0.0027 0.0013 0.0007 0.0007 0.0010 0.0011 0.0010 0.0012 0.0006 0.0090 0.0526
0.0022 0.0052 0.0017 0.0015 0.0003 0.0024 0.0027 0.0015 0.0007 0.0008 0.0013 0.0240
0.0008 0.0005 0.0003 0.0002 0.0003 0.0006 0.0004 0.0004 0.0002 0.0022 0.0045 0.0006 0.0093
0.0010 0.0005 0.0004 0.0004 0.0005 0.0004 0.0004 0.0006 0.0005 0.0020 0.0041 0.0006 0.0009 0.0257
0.0017 0.0006 0.0004 0.0007 0.0002 0.0006 0.0009 0.0008 0.0003 0.0005 0.0008 0.0009 0.0003 0.0003 0.0263
0.0058 0.0015 0.0023 0.0019 0.0009 0.0013 0.0022 0.0029 0.0008 0.0011 0.0015 0.0019 0.0005 0.0008 0.0011 0.0240
0.0032 0.0012 0.0017 0.0013 0.0008 0.0010 0.0015 0.0015 0.0006 0.0019 0.0021 0.0015 0.0008 0.0008 0.0008 0.0047 0.0243
0.0003 0.0002 0.0001 0.0001 0.0001 0.0002 0.0001 0.0002 0.0001 0.0002 0.0004 0.0001 0.0002 0.0007 0.0001 0.0002 0.0002 0.0107
0.0008 0.0005 0.0005 0.0004 0.0003 0.0004 0.0004 0.0004 0.0012 0.0010 0.0014 0.0005 0.0003 0.0044 0.0002 0.0007 0.0006 0.0009 0.0197
0.0037 0.0009 0.0007 0.0007 0.0011 0.0007 0.0012 0.0009 0.0004 0.0112 0.0071 0.0011 0.0019 0.0017 0.0007 0.0017 0.0029 0.0003 0.0009 0.0329
| 1,753 | blosum100 | qij | eu | unknown | unknown | {} | 0 | {} |
2003100127/pypropel | pypropel/prot/feature/alignment/external/jsd/matrix/blosum40.qij | # BLOSUM Clustered Target Frequencies=qij
# Blocks Database = /data/blocks_5.0/blocks.dat
# Cluster Percentage: >= 40
A R N D C Q E G H I L K M F P S T W Y V
0.0148
0.0029 0.0109
0.0029 0.0019 0.0069
0.0032 0.0021 0.0031 0.0126
0.0015 0.0007 0.0007 0.0009 0.0093
0.0026 0.0024 0.0017 0.0016 0.0004 0.0048
0.0040 0.0026 0.0023 0.0048 0.0010 0.0032 0.0118
0.0066 0.0023 0.0035 0.0031 0.0012 0.0020 0.0028 0.0260
0.0014 0.0012 0.0013 0.0014 0.0003 0.0010 0.0015 0.0014 0.0060
0.0037 0.0017 0.0017 0.0016 0.0008 0.0012 0.0018 0.0024 0.0009 0.0105
0.0050 0.0030 0.0021 0.0027 0.0015 0.0023 0.0036 0.0034 0.0017 0.0082 0.0209
0.0041 0.0051 0.0027 0.0030 0.0010 0.0026 0.0045 0.0035 0.0013 0.0023 0.0037 0.0099
0.0017 0.0010 0.0007 0.0007 0.0003 0.0007 0.0010 0.0013 0.0007 0.0018 0.0037 0.0012 0.0018
0.0022 0.0016 0.0013 0.0013 0.0008 0.0008 0.0015 0.0021 0.0009 0.0031 0.0055 0.0018 0.0011 0.0105
0.0027 0.0014 0.0014 0.0019 0.0005 0.0013 0.0026 0.0028 0.0008 0.0020 0.0021 0.0023 0.0007 0.0010 0.0151
0.0060 0.0025 0.0030 0.0030 0.0013 0.0026 0.0034 0.0052 0.0013 0.0025 0.0034 0.0034 0.0011 0.0019 0.0022 0.0089
0.0040 0.0019 0.0022 0.0024 0.0011 0.0015 0.0025 0.0029 0.0009 0.0028 0.0039 0.0029 0.0011 0.0019 0.0022 0.0043 0.0070
0.0007 0.0005 0.0003 0.0003 0.0001 0.0004 0.0005 0.0008 0.0002 0.0005 0.0009 0.0005 0.0002 0.0008 0.0003 0.0004 0.0003 0.0045
0.0019 0.0016 0.0010 0.0011 0.0004 0.0010 0.0014 0.0017 0.0012 0.0020 0.0031 0.0017 0.0010 0.0032 0.0009 0.0015 0.0014 0.0008 0.0060
0.0054 0.0023 0.0017 0.0022 0.0012 0.0014 0.0025 0.0028 0.0008 0.0083 0.0082 0.0027 0.0018 0.0031 0.0018 0.0032 0.0040 0.0005 0.0020 0.0113
| 1,752 | blosum40 | qij | th | unknown | unknown | {} | 0 | {} |
2003100127/pypropel | pypropel/prot/feature/alignment/external/jsd/matrix/blosum45.qij | # BLOSUM Clustered Target Frequencies=qij
# Blocks Database = /data/blocks_5.0/blocks.dat
# Cluster Percentage: >= 45
A R N D C Q E G H I L K M F P S T W Y V
0.0181
0.0029 0.0130
0.0026 0.0020 0.0079
0.0027 0.0020 0.0031 0.0132
0.0015 0.0006 0.0007 0.0006 0.0094
0.0024 0.0025 0.0016 0.0017 0.0004 0.0057
0.0038 0.0031 0.0022 0.0047 0.0007 0.0032 0.0131
0.0063 0.0022 0.0033 0.0028 0.0010 0.0019 0.0025 0.0285
0.0013 0.0013 0.0013 0.0012 0.0003 0.0010 0.0014 0.0012 0.0058
0.0036 0.0016 0.0015 0.0014 0.0008 0.0013 0.0017 0.0019 0.0007 0.0124
0.0052 0.0029 0.0019 0.0022 0.0015 0.0022 0.0031 0.0032 0.0016 0.0093 0.0263
0.0037 0.0061 0.0028 0.0028 0.0008 0.0029 0.0045 0.0030 0.0013 0.0020 0.0031 0.0120
0.0016 0.0010 0.0007 0.0006 0.0004 0.0008 0.0009 0.0011 0.0006 0.0023 0.0041 0.0011 0.0026
0.0021 0.0014 0.0011 0.0010 0.0007 0.0007 0.0013 0.0017 0.0008 0.0031 0.0057 0.0015 0.0012 0.0124
0.0024 0.0013 0.0011 0.0015 0.0004 0.0011 0.0023 0.0022 0.0007 0.0016 0.0019 0.0020 0.0007 0.0009 0.0160
0.0062 0.0026 0.0031 0.0028 0.0011 0.0024 0.0032 0.0049 0.0013 0.0023 0.0032 0.0033 0.0010 0.0017 0.0020 0.0104
0.0041 0.0020 0.0025 0.0023 0.0010 0.0015 0.0025 0.0027 0.0009 0.0028 0.0038 0.0028 0.0011 0.0017 0.0019 0.0047 0.0086
0.0006 0.0004 0.0002 0.0002 0.0001 0.0003 0.0004 0.0006 0.0001 0.0005 0.0008 0.0005 0.0002 0.0008 0.0003 0.0004 0.0003 0.0053
0.0017 0.0014 0.0009 0.0011 0.0004 0.0010 0.0012 0.0014 0.0012 0.0019 0.0031 0.0015 0.0009 0.0034 0.0007 0.0015 0.0013 0.0008 0.0066
0.0055 0.0021 0.0016 0.0017 0.0012 0.0014 0.0023 0.0025 0.0008 0.0094 0.0088 0.0025 0.0022 0.0031 0.0016 0.0031 0.0038 0.0004 0.0019 0.0141
| 1,752 | blosum45 | qij | th | unknown | unknown | {} | 0 | {} |
2003100127/pypropel | pypropel/prot/feature/alignment/external/jsd/matrix/blosum62.qij | # BLOSUM Clustered Target Frequencies=qij
# Blocks Database = /data/blocks_5.0/blocks.dat
# Cluster Percentage: >= 62
A R N D C Q E G H I L K M F P S T W Y V
0.0215
0.0023 0.0178
0.0019 0.0020 0.0141
0.0022 0.0016 0.0037 0.0213
0.0016 0.0004 0.0004 0.0004 0.0119
0.0019 0.0025 0.0015 0.0016 0.0003 0.0073
0.0030 0.0027 0.0022 0.0049 0.0004 0.0035 0.0161
0.0058 0.0017 0.0029 0.0025 0.0008 0.0014 0.0019 0.0378
0.0011 0.0012 0.0014 0.0010 0.0002 0.0010 0.0014 0.0010 0.0093
0.0032 0.0012 0.0010 0.0012 0.0011 0.0009 0.0012 0.0014 0.0006 0.0184
0.0044 0.0024 0.0014 0.0015 0.0016 0.0016 0.0020 0.0021 0.0010 0.0114 0.0371
0.0033 0.0062 0.0024 0.0024 0.0005 0.0031 0.0041 0.0025 0.0012 0.0016 0.0025 0.0161
0.0013 0.0008 0.0005 0.0005 0.0004 0.0007 0.0007 0.0007 0.0004 0.0025 0.0049 0.0009 0.0040
0.0016 0.0009 0.0008 0.0008 0.0005 0.0005 0.0009 0.0012 0.0008 0.0030 0.0054 0.0009 0.0012 0.0183
0.0022 0.0010 0.0009 0.0012 0.0004 0.0008 0.0014 0.0014 0.0005 0.0010 0.0014 0.0016 0.0004 0.0005 0.0191
0.0063 0.0023 0.0031 0.0028 0.0010 0.0019 0.0030 0.0038 0.0011 0.0017 0.0024 0.0031 0.0009 0.0012 0.0017 0.0126
0.0037 0.0018 0.0022 0.0019 0.0009 0.0014 0.0020 0.0022 0.0007 0.0027 0.0033 0.0023 0.0010 0.0012 0.0014 0.0047 0.0125
0.0004 0.0003 0.0002 0.0002 0.0001 0.0002 0.0003 0.0004 0.0002 0.0004 0.0007 0.0003 0.0002 0.0008 0.0001 0.0003 0.0003 0.0065
0.0013 0.0009 0.0007 0.0006 0.0003 0.0007 0.0009 0.0008 0.0015 0.0014 0.0022 0.0010 0.0006 0.0042 0.0005 0.0010 0.0009 0.0009 0.0102
0.0051 0.0016 0.0012 0.0013 0.0014 0.0012 0.0017 0.0018 0.0006 0.0120 0.0095 0.0019 0.0023 0.0026 0.0012 0.0024 0.0036 0.0004 0.0015 0.0196
| 1,752 | blosum62 | qij | eu | unknown | unknown | {} | 0 | {} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ЗаявлениеНаВыпускНовогоКвалифицированногоСертификата/Templates/Сертификат/Ext/Template.xml | <?xml version="1.0" encoding="UTF-8"?>
<document xmlns="http://v8.1c.ru/8.2/data/spreadsheet" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<languageSettings>
<currentLanguage>ru</currentLanguage>
<defaultLanguage>ru</defaultLanguage>
<languageInfo>
<id>ru</id>
<code>Русский</code>
<description>Русский</description>
</languageInfo>
</languageSettings>
<columns>
<size>2</size>
<columnsItem>
<index>0</index>
<column>
<formatIndex>1</formatIndex>
</column>
</columnsItem>
<columnsItem>
<index>1</index>
<column>
<formatIndex>2</formatIndex>
</column>
</columnsItem>
</columns>
<columns>
<id>4d50478e-ad6a-4d8e-a71e-48a59cebe679</id>
<size>5</size>
<columnsItem>
<index>0</index>
<column>
<formatIndex>3</formatIndex>
</column>
</columnsItem>
<columnsItem>
<index>1</index>
<column>
<formatIndex>4</formatIndex>
</column>
</columnsItem>
<columnsItem>
<index>2</index>
<column>
<formatIndex>5</formatIndex>
</column>
</columnsItem>
<columnsItem>
<index>3</index>
<column>
<formatIndex>6</formatIndex>
</column>
</columnsItem>
<columnsItem>
<index>4</index>
<column>
<formatIndex>7</formatIndex>
</column>
</columnsItem>
</columns>
<rowsItem>
<index>0</index>
<row>
<c>
<c>
<f>8</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Квалифицированный сертификат</v8:content>
</v8:item>
</tl>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>1</index>
<row>
<c>
<c>
<f>0</f>
</c>
</c>
<c>
<c>
<f>0</f>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>2</index>
<row>
<c>
<c>
<f>0</f>
</c>
</c>
<c>
<c>
<f>0</f>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>3</index>
<row>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Номер квалифицированного сертификата:</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
<parameter>СерийныйНомер</parameter>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>4</index>
<row>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Действие квалифицированного сертификата:</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
<parameter>ПериодДействия</parameter>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>5</index>
<row>
<formatIndex>11</formatIndex>
<c>
<c>
<f>12</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Сведения о владельце квалифицированного сертификата</v8:content>
</v8:item>
</tl>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>6</index>
<row>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Наименование юридического лица:</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
<parameter>Наименование</parameter>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>7</index>
<row>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Основной государственный регистрационный номер:</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
<parameter>ОГРН</parameter>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>8</index>
<row>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Идентификационный номер налогоплательщика:</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
<parameter>ИННЮЛ</parameter>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>9</index>
<row>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Место нахождения юридического лица: </v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
<parameter>Адрес</parameter>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>10</index>
<row>
<formatIndex>13</formatIndex>
<c>
<c>
<f>14</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Уполномоченный представитель юридического лица</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>15</f>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>11</index>
<row>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Должность:</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
<parameter>Должность</parameter>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>12</index>
<row>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Фамилия, имя, отчество:</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
<parameter>ФИО</parameter>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>13</index>
<row>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Идентификационный номер налогоплательщика:</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
<parameter>ИНН</parameter>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>14</index>
<row>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Страховой номер индивидуального лицевого счета:</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
<parameter>СНИЛС</parameter>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>15</index>
<row>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Основной государственный регистрационный номер индивидуального
предпринимателя:
</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
<parameter>ОГРНИП</parameter>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>16</index>
<row>
<c>
<c>
<f>16</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Тип идентификации при выдаче сертификата:
</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
<parameter>ТипИдентификации</parameter>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>17</index>
<row>
<formatIndex>11</formatIndex>
<c>
<c>
<f>12</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Сведения об издателе квалифицированного сертификата</v8:content>
</v8:item>
</tl>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>18</index>
<row>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Наименование удостоверяющего центра:</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
<parameter>НаименованиеУЦ</parameter>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>19</index>
<row>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Место нахождения удостоверяющего центра:</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
<parameter>АдресУЦ</parameter>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>20</index>
<row>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Наименование средства электронной подписи:</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
<parameter>СКЗИ</parameter>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>21</index>
<row>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Реквизиты заключения о подтверждении соответствия средства электронной подписи:</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
<parameter>Заключение</parameter>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>22</index>
<row>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Наименование средства удостоверяющего центра:</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
<parameter>СКЗИ_УЦ</parameter>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>23</index>
<row>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Реквизиты заключения о подтверждении соответствия средства удостоверяющего центра:</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
<parameter>ЗаключениеУЦ</parameter>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>24</index>
<row>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Класс средств удостоверяющего центра:</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
<parameter>КлассУЦ</parameter>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>25</index>
<row>
<formatIndex>11</formatIndex>
<c>
<c>
<f>12</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Сведения о ключе проверки электронной подписи</v8:content>
</v8:item>
</tl>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>26</index>
<row>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Используемый алгоритм:</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
<parameter>Алгоритм</parameter>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>27</index>
<row>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Класс средства электронной подписи:</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
<parameter>Класс</parameter>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>28</index>
<row>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Область использования ключа:</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
<parameter>ОбластьИспользования</parameter>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>29</index>
<row>
<c>
<c>
<f>17</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Значение ключа:</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>18</f>
<parameter>ОткрытыйКлюч</parameter>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>30</index>
<row>
<c>
<c>
<f>17</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Действие ключа электронной подписи:
</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>18</f>
<parameter>ПериодДействияЗакрытогоКлюча</parameter>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>31</index>
<row>
<formatIndex>11</formatIndex>
<c>
<c>
<f>12</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Электронная подпись под квалифицированным сертификатом</v8:content>
</v8:item>
</tl>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>32</index>
<row>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Используемый алгоритм:</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
<parameter>Алгоритм</parameter>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>33</index>
<row>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Значение электронной подписи:</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
<parameter>Подпись</parameter>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>34</index>
<row>
<columnsID>4d50478e-ad6a-4d8e-a71e-48a59cebe679</columnsID>
<c>
<c>
<f>19</f>
</c>
</c>
<c>
<c>
<f>19</f>
</c>
</c>
<c>
<c>
<f>19</f>
</c>
</c>
<c>
<c>
<f>19</f>
</c>
</c>
<c>
<c>
<f>20</f>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>35</index>
<row>
<columnsID>4d50478e-ad6a-4d8e-a71e-48a59cebe679</columnsID>
<c>
<c>
<f>19</f>
</c>
</c>
<c>
<c>
<f>19</f>
</c>
</c>
<c>
<c>
<f>19</f>
</c>
</c>
<c>
<c>
<f>19</f>
</c>
</c>
<c>
<c>
<f>20</f>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>36</index>
<row>
<columnsID>4d50478e-ad6a-4d8e-a71e-48a59cebe679</columnsID>
<c>
<c>
<f>19</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Подпись владельца сертификата</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>21</f>
</c>
</c>
<c>
<c>
<f>19</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>/</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>22</f>
<parameter>Владелец</parameter>
</c>
</c>
<c>
<c>
<f>20</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>/</v8:content>
</v8:item>
</tl>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>37</index>
<row>
<columnsID>4d50478e-ad6a-4d8e-a71e-48a59cebe679</columnsID>
<c>
<c>
<f>23</f>
<tl/>
</c>
</c>
<c>
<c>
<f>24</f>
</c>
</c>
<c>
<c>
<f>19</f>
</c>
</c>
<c>
<c>
<f>19</f>
</c>
</c>
<c>
<c>
<f>19</f>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>38</index>
<row>
<columnsID>4d50478e-ad6a-4d8e-a71e-48a59cebe679</columnsID>
<c>
<c>
<f>23</f>
<tl/>
</c>
</c>
<c>
<c>
<f>24</f>
</c>
</c>
<c>
<c>
<f>19</f>
</c>
</c>
<c>
<c>
<f>19</f>
</c>
</c>
<c>
<c>
<f>19</f>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>39</index>
<row>
<empty>true</empty>
</row>
</rowsItem>
<rowsItem>
<index>40</index>
<row>
<formatIndex>25</formatIndex>
<empty>true</empty>
</row>
</rowsItem>
<templateMode>true</templateMode>
<height>41</height>
<vgRows>41</vgRows>
<merge>
<r>0</r>
<c>0</c>
<w>1</w>
</merge>
<merge>
<r>5</r>
<c>0</c>
<w>1</w>
</merge>
<merge>
<r>10</r>
<c>0</c>
<w>1</w>
</merge>
<merge>
<r>17</r>
<c>0</c>
<w>1</w>
</merge>
<merge>
<r>25</r>
<c>0</c>
<w>1</w>
</merge>
<merge>
<r>31</r>
<c>0</c>
<w>1</w>
</merge>
<namedItem xsi:type="NamedItemCells">
<name>ОГРНИП</name>
<area>
<type>Rows</type>
<beginRow>15</beginRow>
<endRow>15</endRow>
<beginColumn>-1</beginColumn>
<endColumn>-1</endColumn>
</area>
</namedItem>
<namedItem xsi:type="NamedItemCells">
<name>Подвал</name>
<area>
<type>Rows</type>
<beginRow>17</beginRow>
<endRow>38</endRow>
<beginColumn>-1</beginColumn>
<endColumn>-1</endColumn>
</area>
</namedItem>
<namedItem xsi:type="NamedItemCells">
<name>СведенияФЛ</name>
<area>
<type>Rows</type>
<beginRow>12</beginRow>
<endRow>14</endRow>
<beginColumn>-1</beginColumn>
<endColumn>-1</endColumn>
</area>
</namedItem>
<namedItem xsi:type="NamedItemCells">
<name>СведенияЮЛ</name>
<area>
<type>Rows</type>
<beginRow>6</beginRow>
<endRow>9</endRow>
<beginColumn>-1</beginColumn>
<endColumn>-1</endColumn>
</area>
</namedItem>
<namedItem xsi:type="NamedItemCells">
<name>ТипИдентификации</name>
<area>
<type>Rows</type>
<beginRow>16</beginRow>
<endRow>16</endRow>
<beginColumn>-1</beginColumn>
<endColumn>-1</endColumn>
</area>
</namedItem>
<namedItem xsi:type="NamedItemCells">
<name>УполномоченноеЛицо</name>
<area>
<type>Rows</type>
<beginRow>10</beginRow>
<endRow>11</endRow>
<beginColumn>-1</beginColumn>
<endColumn>-1</endColumn>
</area>
</namedItem>
<namedItem xsi:type="NamedItemCells">
<name>Шапка</name>
<area>
<type>Rows</type>
<beginRow>0</beginRow>
<endRow>5</endRow>
<beginColumn>-1</beginColumn>
<endColumn>-1</endColumn>
</area>
</namedItem>
<line width="1" gap="false">
<v8ui:style xsi:type="v8ui:SpreadsheetDocumentCellLineType">Solid</v8ui:style>
</line>
<font faceName="Arial" height="20" bold="true" italic="false" underline="false" strikeout="false" kind="Absolute" scale="100"/>
<font faceName="Arial" height="10" bold="true" italic="false" underline="false" strikeout="false" kind="Absolute" scale="100"/>
<font faceName="Arial" height="10" bold="false" italic="false" underline="false" strikeout="false" kind="Absolute" scale="100"/>
<font faceName="Arial" height="14" bold="true" italic="false" underline="false" strikeout="false" kind="Absolute" scale="100"/>
<format>
<width>363</width>
</format>
<format>
<width>454</width>
</format>
<format>
<width>238</width>
</format>
<format>
<width>206</width>
</format>
<format>
<width>14</width>
</format>
<format>
<width>320</width>
</format>
<format>
<width>38</width>
</format>
<format>
<font>0</font>
<horizontalAlignment>Center</horizontalAlignment>
</format>
<format>
<font>1</font>
<border>0</border>
<borderColor>#C8C8C8</borderColor>
<verticalAlignment>Top</verticalAlignment>
<textPlacement>Wrap</textPlacement>
</format>
<format>
<font>2</font>
<border>0</border>
<borderColor>#C8C8C8</borderColor>
<verticalAlignment>Top</verticalAlignment>
<textPlacement>Wrap</textPlacement>
<fillType>Parameter</fillType>
</format>
<format>
<height>160</height>
</format>
<format>
<font>3</font>
<border>0</border>
<borderColor>#C8C8C8</borderColor>
<horizontalAlignment>Center</horizontalAlignment>
<verticalAlignment>Center</verticalAlignment>
<textPlacement>Wrap</textPlacement>
</format>
<format>
<height>168</height>
</format>
<format>
<font>3</font>
<border>0</border>
<height>200</height>
<borderColor>#C8C8C8</borderColor>
<width>363</width>
<horizontalAlignment>Center</horizontalAlignment>
<verticalAlignment>Center</verticalAlignment>
<textPlacement>Wrap</textPlacement>
</format>
<format>
<height>200</height>
<width>454</width>
</format>
<format>
<font>1</font>
<border>0</border>
<borderColor>#C8C8C8</borderColor>
<width>363</width>
<verticalAlignment>Top</verticalAlignment>
<textPlacement>Wrap</textPlacement>
</format>
<format>
<font>1</font>
<border>0</border>
<borderColor>#C8C8C8</borderColor>
<width>363</width>
<verticalAlignment>Top</verticalAlignment>
<textPlacement>Wrap</textPlacement>
</format>
<format>
<font>2</font>
<border>0</border>
<borderColor>#C8C8C8</borderColor>
<width>454</width>
<verticalAlignment>Top</verticalAlignment>
<textPlacement>Wrap</textPlacement>
<fillType>Parameter</fillType>
</format>
<format>
<font>2</font>
</format>
<format>
<font>2</font>
<width>14</width>
</format>
<format>
<font>2</font>
<bottomBorder>0</bottomBorder>
</format>
<format>
<font>2</font>
<bottomBorder>0</bottomBorder>
<horizontalAlignment>Center</horizontalAlignment>
<fillType>Parameter</fillType>
</format>
<format>
<font>2</font>
<width>363</width>
<horizontalAlignment>Right</horizontalAlignment>
</format>
<format>
<font>2</font>
<width>241</width>
<horizontalAlignment>Center</horizontalAlignment>
</format>
<format>
<height>0</height>
</format>
</document> | 20,430 | Template | xml | ru | xml | data | {"qsc_code_num_words": 2474, "qsc_code_num_chars": 20430.0, "qsc_code_mean_word_length": 4.28092158, "qsc_code_frac_words_unique": 0.09700889, "qsc_code_frac_chars_top_2grams": 0.04248891, "qsc_code_frac_chars_top_3grams": 0.02775942, "qsc_code_frac_chars_top_4grams": 0.01850628, "qsc_code_frac_chars_dupe_5grams": 0.82145218, "qsc_code_frac_chars_dupe_6grams": 0.77896327, "qsc_code_frac_chars_dupe_7grams": 0.74648286, "qsc_code_frac_chars_dupe_8grams": 0.65121329, "qsc_code_frac_chars_dupe_9grams": 0.63204608, "qsc_code_frac_chars_dupe_10grams": 0.60438108, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.05201008, "qsc_code_frac_chars_whitespace": 0.26216349, "qsc_code_size_file_byte": 20430.0, "qsc_code_num_lines": 1195.0, "qsc_code_num_chars_line_max": 284.0, "qsc_code_num_chars_line_mean": 17.09623431, "qsc_code_frac_chars_alphabet": 0.65052408, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.85941423, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.02422907, "qsc_code_frac_chars_long_word_length": 0.00176211, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 1, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 1, "qsc_code_frac_chars_dupe_6grams": 1, "qsc_code_frac_chars_dupe_7grams": 1, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 1, "qsc_code_frac_lines_dupe_lines": 1, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
2003100127/pypropel | pypropel/prot/feature/eca/matrix/Plmc.py | __author__ = "Jianfeng Sun"
__version__ = "v1.0"
__copyright__ = "Copyright 2024"
__license__ = "GPL v3.0"
__email__ = "jianfeng.sunmt@gmail.com"
__maintainer__ = "Jianfeng Sun"
import time
from itertools import chain
from evcouplings.couplings import CouplingsModel
class plmc:
def __init__(self, ):
pass
def read(self, file_path):
ec = CouplingsModel(file_path)
print(ec.alphabet)
print(ec.index_list)
print(ec.Jij(119, 112))
def Jij(self, list_2d, position, prot_name, file_chain, param_path):
stime = time.time()
pos_ = position
ec = CouplingsModel(param_path + prot_name + file_chain + '.params')
aa_types = len(ec.alphabet)
print(ec.index_list)
# print(len(ec.seq()))
# print(ec.Jij(119, 112))
list_2d_ = list_2d
num_pairs = len(pos_)
# print('Pairs number is: {}'.format(num_pairs))
for i in range(num_pairs):
Jij_1d = list(chain.from_iterable(ec.Jij(pos_[i][0], pos_[i][3])))
for j in range(aa_types * aa_types):
list_2d_[i].append(Jij_1d[j])
# print(pos_[0])
etime = time.time()
print('---> plmc coupling matrix: {time}s.'.format(time=etime - stime))
return list_2d_
if __name__ == "__main__":
from pypropel.prot.sequence.Fasta import Fasta as sfasta
from pypropel.path import to
import tmkit as tmk
sequence = sfasta().get(
fasta_fpn=to("data/fasta/1xqfA.fasta")
)
print(sequence)
print(len(sequence))
pos_list = tmk.seq.pos_list_pair(len_seq=len(sequence), seq_sep_superior=None, seq_sep_inferior=0)
print(pos_list)
positions = tmk.seq.pos_pair(sequence=sequence, pos_list=pos_list)
print(positions)
win_aa_ids = tmk.seq.win_id_pair(
sequence=sequence,
position=positions,
window_size=5,
)
# print(win_aa_ids)
p = plmc()
print(p.Jij(
list_2d=positions,
prot_name='1xqf',
file_chain='A',
position=positions,
param_path=to('data/plmc/'),
)[0]) | 2,118 | Plmc | py | en | python | code | {"qsc_code_num_words": 284, "qsc_code_num_chars": 2118.0, "qsc_code_mean_word_length": 4.31338028, "qsc_code_frac_words_unique": 0.3556338, "qsc_code_frac_chars_top_2grams": 0.02938776, "qsc_code_frac_chars_top_3grams": 0.0244898, "qsc_code_frac_chars_top_4grams": 0.0277551, "qsc_code_frac_chars_dupe_5grams": 0.07265306, "qsc_code_frac_chars_dupe_6grams": 0.05061224, "qsc_code_frac_chars_dupe_7grams": 0.05061224, "qsc_code_frac_chars_dupe_8grams": 0.0, "qsc_code_frac_chars_dupe_9grams": 0.0, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.02279924, "qsc_code_frac_chars_whitespace": 0.25448536, "qsc_code_size_file_byte": 2118.0, "qsc_code_num_lines": 77.0, "qsc_code_num_chars_line_max": 103.0, "qsc_code_num_chars_line_mean": 27.50649351, "qsc_code_frac_chars_alphabet": 0.75300823, "qsc_code_frac_chars_comments": 0.0585458, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.06896552, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.0809452, "qsc_code_frac_chars_long_word_length": 0.0231272, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.05172414, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.01724138, "qsc_codepython_frac_lines_import": 0.10344828, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.18965517, "qsc_codepython_frac_lines_print": 0.17241379} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
2003100127/pypropel | pypropel/prot/tool/isite/Reader.py | __author__ = "Jianfeng Sun"
__version__ = "v1.0"
__copyright__ = "Copyright 2024"
__license__ = "GPL v3.0"
__email__ = "jianfeng.sunmt@gmail.com"
__maintainer__ = "Jianfeng Sun"
import numpy as np
import pandas as pd
from pypropel.util.Reader import Reader as pfreader
from pypropel.util.Writer import Writer as pfwriter
from pypropel.prot.sequence.Name import Name as chainname
from pypropel.util.ComputLib import ComputLib as computlib
from pypropel.util.Console import Console
class Reader:
def __init__(
self,
verbose: bool = True,
):
self.__sort_ = -1
self.pfreader = pfreader()
self.pfwriter = pfwriter()
self.computlib = computlib()
self.console = Console()
self.console.verbose = verbose
@property
def sort_(self):
return self.__sort_
@sort_.setter
def sort_(
self, value):
print('Please note that you are attempting externally.')
if value > 7 or value < 0:
raise ValueError(
'`sort_` has yet to reach there.',
'| 1: return results for entire-chain residue contacts.',
'| 2: return results of residue contacts by given pairs of interest.',
'| 3: return sorted results by `score`',
'| 4: return sorted results by `contact_id_1` and `contact_id_2`',
'| 5: return dict results of a predictor',
'| 6: return results of a residue of a predictor',
'| 7: return cumulative dict results of a predictor',
'| else: return raw results of a predictor',
'| beyond: you need to choose one of opts above.',
)
else:
self.__sort_ = value
def sort_1(
self, recombine, dp, df_dist):
"""
.. @description
------------
:param recombine:
:param dp: dist ob
:param df_dist: a df of distances of residue pairs
:return:
"""
recombine_ = recombine
# print(recombine_)
recombine_dist = dp.segment(df_dist, recombine_)
return recombine_, recombine_dist
def sort_2(
self, recombine, by='score'):
"""
:param recombine:
:param by: 'interact_id', 'score'
:return:
"""
recombine_ = recombine
recombine_ = recombine_.sort_values(
by=[by],
ascending=True
).reset_index(drop=True)
return recombine_
def sort_3(
self, recombine, is_uniform=False, uniform_df=None):
"""
.. @description:
-------------
select data by specifying seq_sep_inferior and seq_sep_superior.
The select data can be sorted by two ways:
1. 'score'
2. 'contact_id_1' and 'contact_id_2'
:param recombine: results of a predictor
:param is_sort: False
:return:
"""
recombine_ = self.sort_2(recombine, by='interact_id')
# # /*** block 1 ***/
if is_uniform:
# print(recombine_)
predict_dict = self.computlib.tactic6(recombine_.values.tolist())
# print(predict_dict)
uniform_df[1] = 0
# print(uniform_df)
uniform = uniform_df.values.tolist()
uniform_shape = len(uniform)
for i in range(uniform_shape):
id = uniform[i][0]
try:
uniform[i][1] = predict_dict[id]
except KeyError:
continue
recombine_ = pd.DataFrame(uniform)
# print(recombine_)
recombine_.columns = [
'interact_id',
'score'
]
return recombine_
def mbpredcombined(
self,
mbp_cyto_path,
mbp_tmh_path,
mbp_extra_path,
file_name,
file_chain,
phobius_path,
xml_path,
df_dist=None,
):
seq_chain = chainname().seqchain(file_chain)
mbp_cyto = self.mbpred(
mbp_path=mbp_cyto_path,
file_name=file_name,
file_chain=file_chain,
sort_=2,
by='interact_id'
)
mbp_tmh = self.mbpred(
mbp_path=mbp_tmh_path,
file_name=file_name,
file_chain=file_chain,
sort_=2,
by='interact_id'
)
mbp_extra = self.mbpred(
mbp_path=mbp_extra_path,
file_name=file_name,
file_chain=file_chain,
sort_=2,
by='interact_id'
)
pdbtm_seg, phobius_seg = pdbnontmh().judge(
df_dist=df_dist,
pred_path=phobius_path,
prot_name=file_name,
xml_path=xml_path,
seq_chain=seq_chain,
kind='interaction_site'
)
# print('sjf')
# print(pdbtm_seg)
# print(sscenario().toSingle(phobius_seg['cyto_lower'], phobius_seg['cyto_upper']))
pdbtm_pos_cyto = np.squeeze(sscenario().toSingle(pdbtm_seg['cyto_lower'], pdbtm_seg['cyto_upper']), axis=1) if pdbtm_seg['cyto_upper'] != [] else []
pdbtm_pos_tmh = np.squeeze(sscenario().toSingle(pdbtm_seg['tmh_lower'], pdbtm_seg['tmh_upper']), axis=1) if pdbtm_seg['tmh_upper'] != [] else []
pdbtm_pos_extra = np.squeeze(sscenario().toSingle(pdbtm_seg['extra_lower'], pdbtm_seg['extra_upper']), axis=1) if pdbtm_seg['extra_upper'] != [] else []
phobius_pos_cyto = np.squeeze(sscenario().toSingle(phobius_seg['cyto_lower'], phobius_seg['cyto_upper']), axis=1) if phobius_seg['cyto_upper'] != [] else []
phobius_pos_tmh = np.squeeze(sscenario().toSingle(phobius_seg['tmh_lower'], phobius_seg['tmh_upper']), axis=1) if phobius_seg['tmh_upper'] != [] else []
phobius_pos_extra = np.squeeze(sscenario().toSingle(phobius_seg['extra_lower'], phobius_seg['extra_upper']), axis=1) if phobius_seg['extra_upper'] != [] else []
mbp_pdbtm_cyto = mbp_cyto[mbp_cyto['interact_id'].isin(pdbtm_pos_cyto)]
mbp_pdbtm_tmh = mbp_tmh[mbp_tmh['interact_id'].isin(pdbtm_pos_tmh)]
mbp_pdbtm_extra = mbp_extra[mbp_extra['interact_id'].isin(pdbtm_pos_extra)]
mbp_phobius_cyto = mbp_cyto[mbp_cyto['interact_id'].isin(phobius_pos_cyto)]
mbp_phobius_tmh = mbp_tmh[mbp_tmh['interact_id'].isin(phobius_pos_tmh)]
mbp_phobius_extra = mbp_extra[mbp_extra['interact_id'].isin(phobius_pos_extra)]
# print(phobius_pos_cyto)
# print(mbp_phobius_cyto)
# print(mbp_phobius_tmh)
# print(mbp_phobius_extra)
pdbtm = pd.concat([mbp_pdbtm_cyto, mbp_pdbtm_tmh, mbp_pdbtm_extra]).reset_index(drop=True)
phobius = pd.concat([mbp_phobius_cyto, mbp_phobius_tmh, mbp_phobius_extra]).reset_index(drop=True)
placeholders_pdbtm = pd.DataFrame(np.zeros(len(pdbtm)))
placeholders_phobius = pd.DataFrame(np.zeros(len(phobius)))
# print(placeholders_phobius)
pdbtm = pd.concat([placeholders_pdbtm, placeholders_pdbtm, pdbtm], axis=1).reset_index(drop=True)
phobius = pd.concat([placeholders_phobius, placeholders_phobius, phobius], axis=1).reset_index(drop=True)
pdbtm.columns = [
'',
'Res',
'AA',
'Score'
]
phobius.columns = [
'',
'Res',
'AA',
'Score'
]
return pdbtm, phobius
def generate(
self,
list_fpn,
mbp_cyto_path,
mbp_tmh_path,
mbp_extra_path,
dist_path,
phobius_path,
xml_path,
sv_pdbtm_fpn=None,
sv_phobius_fpn=None,
):
prot_df = self.pfreader.generic(list_fpn)
for i, prot_name in enumerate(prot_df[0]):
prot_chain = prot_df[1][i]
file_chain = chainname().chain(prot_chain)
dp = dlable(
dist_path=dist_path,
prot_name=prot_name,
file_chain=file_chain,
)
df_dist = dp.attach()
pdbtm, phobius = self.mbpredcombined(
mbp_cyto_path=mbp_cyto_path,
mbp_tmh_path=mbp_tmh_path,
mbp_extra_path=mbp_extra_path,
file_name=prot_name,
file_chain=file_chain,
phobius_path=phobius_path,
xml_path=xml_path,
df_dist=df_dist,
)
# pdbtm.columns = []
self.pfwriter.generic(pdbtm, sv_fpn=sv_pdbtm_fpn + prot_name + file_chain + '.mbpred', df_sep=',', header=True)
self.pfwriter.generic(phobius, sv_fpn=sv_phobius_fpn + prot_name + file_chain + '.mbpred', df_sep=',', header=True)
return 0
def mbpred(
self, mbp_path, file_name, file_chain, dp=None, by=None, df_dist=None, pos_single_list=None, sort_=0, is_sort=False, id=0, L=50, len_seq=50):
self.__sort_ = sort_
results = self.pfreader.generic(
mbp_path + file_name + file_chain + '.mbpred',
df_sep=',',
header=0,
is_utf8=True
)
results.columns = [
'index',
'aa',
'interact_id',
'score'
]
# print(results)
results['aa'] = results['aa'].astype(str)
recombine = results[[
'interact_id',
'score'
]]
# print(recombine)
# print(recombine.dtypes)
if self.__sort_ == 1:
pair_df = pd.DataFrame(pos_single_list)
# print(pair_df)
recombine = self.sort_3(
recombine,
is_uniform=True,
uniform_df=pair_df
)
# print(recombine)
dist_mbpred, dist_true = self.sort_1(recombine, dp, df_dist)
return dist_mbpred, dist_true
elif self.__sort_ == 2:
return self.sort_2(recombine, by=by)
elif self.__sort_ == 3:
pass
elif self.__sort_ == 4:
pass
elif self.__sort_ == 5:
pass
else:
return recombine
def delphi(
self,
delphi_path,
file_name,
file_chain,
dp=None,
by=None,
df_dist=None,
pos_single_list=None,
sort_=0,
is_sort=False,
id=0,
L=50,
len_seq=50,
):
self.__sort_ = sort_
delphi_fpn = delphi_path + file_name + file_chain + '.txt'
with open(delphi_fpn) as file:
cues = []
for line in file:
if line.split()[0] == '#':
continue
else:
cues.append(line.split())
# print(cues)
results = pd.DataFrame(cues)
# print(results)
results.columns = [
'interact_id',
'aa',
'score'
]
# print(results)
results['aa'] = results['aa'].astype(str)
results['interact_id'] = results['interact_id'].astype(int)
results['score'] = results['score'].astype(float)
recombine = results[[
'interact_id',
'score'
]]
# print(recombine)
# print(recombine.dtypes)
if self.__sort_ == 1:
pair_df = pd.DataFrame(pos_single_list)
print(pair_df)
recombine = self.sort_3(
recombine,
is_uniform=True,
uniform_df=pair_df
)
# print(recombine)
dist_delphi, dist_true = self.sort_1(recombine, dp, df_dist)
return dist_delphi, dist_true
elif self.__sort_ == 2:
return self.sort_2(recombine, by=by)
elif self.__sort_ == 3:
pass
elif self.__sort_ == 4:
pass
elif self.__sort_ == 5:
pass
else:
return recombine
def tma300(
self,
tma300_path,
file_name,
file_chain,
dp=None,
by=None,
df_dist=None,
pos_single_list=None,
sort_=0,
is_sort=False,
id=0,
L=50,
len_seq=50,
):
self.__sort_ = sort_
results = self.pfreader.generic(
tma300_path + file_name + file_chain + '.tma300',
df_sep='\t',
header=None,
)
# print(results)
results.columns = [
'interact_id',
'aa',
'score'
]
results['aa'] = results['aa'].astype(str)
recombine = results[[
'interact_id',
'score'
]]
# print(recombine)
# print(recombine.dtypes)
if self.__sort_ == 1:
pair_df = pd.DataFrame(pos_single_list)
# print(pair_df)
recombine = self.sort_3(
recombine,
is_uniform=True,
uniform_df=pair_df
)
# print(recombine)
dist_tma300, dist_true = self.sort_1(recombine, dp, df_dist)
return dist_tma300, dist_true
elif self.__sort_ == 2:
return self.sort_2(recombine, by=by)
elif self.__sort_ == 3:
pass
elif self.__sort_ == 4:
pass
elif self.__sort_ == 5:
pass
else:
return recombine
if __name__ == "__main__":
from pypropel.path import to
from pypropel.prot.sequence.Fasta import Fasta as sfasta
import tmkit as tmk
from tmkit.seqnetrr.combo.Length import length as lscenario
from tmkit.position.scenario.Segment import Segment as sscenario
from pypropel.prot.structure.distance.isite.Label import Label as dlabel
INIT = {
'delphi_path': to('data/predictor/ppi/delphi/tm_alpha_n30/'),
'mbp_cyto_path': to('data/predictor/ppi/mbpred/mbpredcyto/tm_alpha_n60/'),
'mbp_tmh_path': to('data/predictor/ppi/mbpred/mbpredtm/tm_alpha_n60/'),
'mbp_extra_path': to('data/predictor/ppi/mbpred/mbpredextra/tm_alpha_n60/'),
# 'mbp_combined_path': to('data/predictor/ppi/mbpred/tm_alpha_n60/combined/phobius/'),
'sv_pdbtm_fpn': to('data/predictor/ppi/mbpred/mbpredcombined/tm_alpha_n60/pdbtm/'),
'sv_phobius_fpn': to('data/predictor/ppi/mbpred/mbpredcombined/tm_alpha_n60/phobius/'),
}
dp = dlabel(
dist_path=to('data/pdb/complex/pdbtm/'),
prot_name='1aij',
file_chain='L',
)
df_dist = dp.attach()
print(df_dist)
sequence = sfasta().get(
fasta_fpn=to("data/fasta/1aijL.fasta")
)
print(sequence)
len_seq = len(sequence)
length_pos_list = lscenario().tosgl(len_seq)
# print(length_pos_list)
pdbtm_seg, pred_seg = tmk.topo.cepdbtm(
pdb_fp=to('data/pdb/pdbtm/'),
prot_name='1aij',
seq_chain='L',
file_chain='L',
topo_fp=to('data/phobius/1aijL.jphobius'),
xml_fp=to('data/xml/'),
fasta_fp=to('data/fasta/'),
)
print(pdbtm_seg)
print(pred_seg)
pdbtm_pos_cyto = sscenario().to_single(pdbtm_seg['cyto_lower'], pdbtm_seg['cyto_upper'])
pdbtm_pos_tmh = sscenario().to_single(pdbtm_seg['tmh_lower'], pdbtm_seg['tmh_upper'])
pdbtm_pos_extra = sscenario().to_single(pdbtm_seg['extra_lower'], pdbtm_seg['extra_upper'])
phobius_pos_cyto = sscenario().to_single(pred_seg['cyto_lower'], pred_seg['cyto_upper'])
phobius_pos_tmh = sscenario().to_single(pred_seg['tmh_lower'], pred_seg['tmh_upper'])
phobius_pos_extra = sscenario().to_single(pred_seg['extra_lower'], pred_seg['extra_upper'])
phobius_list = phobius_pos_cyto + phobius_pos_tmh + phobius_pos_extra
print(phobius_list)
print(pdbtm_pos_tmh)
p = Reader()
# print(p.delphi(
# delphi_path=to('data/isite/delphi/'),
# file_name='3jcu',
# file_chain='H',
# pos_single_list=pdbtm_pos_tmh,
# # dp=dp,
# # df_dist=df_dist,
# sort_=1
# ))
print(p.tma300(
tma300_path=to('data/isite/deeptminter/'),
file_name='1aij',
file_chain='L',
pos_single_list=pdbtm_pos_tmh,
dp=dp,
df_dist=df_dist,
sort_=1
))
# print(p.mbpred(
# mbp_path=INIT['mbp_combined_path'],
# file_name=INIT['prot_name'],
# file_chain=INIT['file_chain'],
# pos_single_list=phobius_list,
# dp=dp,
# df_dist=df_dist,
# sort_=1
# ))
# print(p.mbpredcombined(
# mbp_cyto_path=INIT['mbp_cyto_path'],
# mbp_tmh_path=INIT['mbp_tmh_path'],
# mbp_extra_path=INIT['mbp_extra_path'],
# file_name=INIT['prot_name'],
# file_chain=INIT['file_chain'],
# phobius_path=INIT['phobius_path'],
# xml_path=INIT['xml_path'],
# df_dist=df_dist,
# ))
# print(p.generate(
# list_fpn=INIT['list_fpn'],
# mbp_cyto_path=INIT['mbp_cyto_path'],
# mbp_tmh_path=INIT['mbp_tmh_path'],
# mbp_extra_path=INIT['mbp_extra_path'],
# phobius_path=INIT['phobius_path'],
# xml_path=INIT['xml_path'],
# dist_path=INIT['dist_path'],
# sv_pdbtm_fpn=INIT['sv_pdbtm_fpn'],
# sv_phobius_fpn=INIT['sv_phobius_fpn'],
# )) | 17,617 | Reader | py | en | python | code | {"qsc_code_num_words": 2044, "qsc_code_num_chars": 17617.0, "qsc_code_mean_word_length": 4.46135029, "qsc_code_frac_words_unique": 0.12133072, "qsc_code_frac_chars_top_2grams": 0.02719596, "qsc_code_frac_chars_top_3grams": 0.02280952, "qsc_code_frac_chars_top_4grams": 0.01754578, "qsc_code_frac_chars_dupe_5grams": 0.50312534, "qsc_code_frac_chars_dupe_6grams": 0.42373067, "qsc_code_frac_chars_dupe_7grams": 0.35924992, "qsc_code_frac_chars_dupe_8grams": 0.32975107, "qsc_code_frac_chars_dupe_9grams": 0.2774427, "qsc_code_frac_chars_dupe_10grams": 0.26351574, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.01187548, "qsc_code_frac_chars_whitespace": 0.33081682, "qsc_code_size_file_byte": 17617.0, "qsc_code_num_lines": 517.0, "qsc_code_num_chars_line_max": 169.0, "qsc_code_num_chars_line_mean": 34.0754352, "qsc_code_frac_chars_alphabet": 0.76164221, "qsc_code_frac_chars_comments": 0.1296475, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.43333333, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.1189781, "qsc_code_frac_chars_long_word_length": 0.02846715, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.02820513, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.02307692, "qsc_codepython_frac_lines_import": 0.03333333, "qsc_codepython_frac_lines_simplefunc": 0.002564102564102564, "qsc_codepython_score_lines_no_logic": 0.1025641, "qsc_codepython_frac_lines_print": 0.02307692} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
2003100127/pypropel | pypropel/prot/tool/isite/Dispatcher.py | __author__ = "Jianfeng Sun"
__version__ = "v1.0"
__copyright__ = "Copyright 2024"
__license__ = "GPL v3.0"
__email__ = "jianfeng.sunmt@gmail.com"
__maintainer__ = "Jianfeng Sun"
import json
import pandas as pd
from pypropel.prot.tool.isite.Segment import Segment as sprecision
from pypropel.prot.structure.distance.isite.Label import Label as dlabel
from pypropel.prot.feature.sequence.Length import Length as fealength
from pypropel.prot.sequence.Name import Name as chainname
from pypropel.util.Reader import Reader as pfreader
from pypropel.util.Writer import Writer as pfwriter
from pypropel.util.Console import Console
class Dispatcher:
def __init__(
self,
verbose: bool = True,
):
self.pfreader = pfreader()
self.pfwriter = pfwriter()
self.console = Console()
self.console.verbose = verbose
def segment(
self,
prot_df,
dist_fp,
dist_limit,
tool_fp,
tool,
pdb_fp,
topo_fp,
xml_fp,
fasta_fp,
segment,
sort,
sv_fp=None,
):
cutoffs = [1, 2, 5, 10]
precis = {}
recall = {}
f1 = {}
fb = {}
mcc = {}
acc = {}
h_loss = {}
bal_acc = {}
jaccard = {}
zo_loss = {}
tp = {}
fp = {}
tn = {}
fn = {}
ppv_custom = {}
auc = {}
ap = {}
roc_fpr = {}
roc_tpr = {}
roc_thres = {}
roc_fpr_custom = {}
roc_tpr_custom = {}
pr_precs = {}
pr_recall = {}
pr_thres = {}
pr_precs_custom = {}
pr_recall_custom = {}
y_true_all = []
y_score_all = []
for i, prot_name in enumerate(prot_df['prot']):
prot_chain = prot_df.loc[i, 'chain']
file_chain = chainname().chain(prot_chain)
# print('No.%d: target: %s %s' % (i + 1, prot_name, file_chain))
# /* distance dataframe */
dp = dlabel(
dist_fp=dist_fp,
prot_name=prot_name,
file_chain=file_chain,
cutoff=dist_limit,
verbose=True,
)
df_dist = dp.attach()
pos_single_list, len_seg = self.pos_sgl_list(
prot_name=prot_name,
seq_chain=prot_chain,
pdb_fp=pdb_fp,
topo_fp=topo_fp,
xml_fp=xml_fp,
fasta_fp=fasta_fp,
segment=segment,
)
precis_cutoff = {}
recall_cutoff = {}
f1_cutoff = {}
fb_cutoff = {}
mcc_cutoff = {}
acc_cutoff = {}
h_loss_cutoff = {}
bal_acc_cutoff = {}
jaccard_cutoff = {}
zo_loss_cutoff = {}
tp_cutoff = {}
fp_cutoff = {}
tn_cutoff = {}
fn_cutoff = {}
ppv_cutoff = {}
auc_cutoff = {}
ap_cutoff = {}
roc_fpr_cutoff = {}
roc_tpr_cutoff = {}
roc_thres_cutoff = {}
roc_fpr_custom_cutoff = {}
roc_tpr_custom_cutoff = {}
pr_precis_cutoff = {}
pr_recall_cutoff = {}
pr_thres_cutoff = {}
pr_precis_custom_cutoff = {}
pr_recall_custom_cutoff = {}
y_true_all_cutoff = []
y_score_all_cutoff = []
# ###/*** block ***/
if pos_single_list == []:
continue
else:
init_compare = sprecision(
prot_name=prot_name,
file_chain=file_chain,
dp=dp,
df_dist=df_dist,
pos_single_list=pos_single_list,
tool_fp=tool_fp,
tool=tool,
sort_=sort
)
res_tool = init_compare.fetch()
for j in range(len(cutoffs)):
cutoff = round(len_seg / cutoffs[j])
# print('---> Cutoff value is %d ***' % (cutoff))
metrics_summary = init_compare.compare(res_tool, cutoff)
precis_cutoff[cutoff] = metrics_summary['precision']
recall_cutoff[cutoff] = metrics_summary['recall']
f1_cutoff[cutoff] = metrics_summary['f1score']
fb_cutoff[cutoff] = metrics_summary['fbscore']
mcc_cutoff[cutoff] = metrics_summary['mcc']
acc_cutoff[cutoff] = metrics_summary['accuracy']
h_loss_cutoff[cutoff] = metrics_summary['h_loss']
bal_acc_cutoff[cutoff] = metrics_summary['bal_acc']
jaccard_cutoff[cutoff] = metrics_summary['jaccard']
zo_loss_cutoff[cutoff] = metrics_summary['zo_loss']
tp_cutoff[cutoff] = int(metrics_summary['tp'])
fp_cutoff[cutoff] = int(metrics_summary['fp'])
tn_cutoff[cutoff] = int(metrics_summary['tn'])
fn_cutoff[cutoff] = int(metrics_summary['fn'])
ppv_cutoff[cutoff] = metrics_summary['ppv_custom']
auc_cutoff[cutoff] = metrics_summary['auc']
ap_cutoff[cutoff] = metrics_summary['ap']
roc_fpr_cutoff[cutoff] = metrics_summary['roc_fpr'].tolist()
roc_tpr_cutoff[cutoff] = metrics_summary['roc_tpr'].tolist()
roc_thres_cutoff[cutoff] = metrics_summary['roc_thres'].tolist()
roc_fpr_custom_cutoff[cutoff] = metrics_summary['roc_fpr_custom']
roc_tpr_custom_cutoff[cutoff] = metrics_summary['roc_tpr_custom']
pr_precis_cutoff[cutoff] = metrics_summary['pr_precis'].tolist()
pr_recall_cutoff[cutoff] = metrics_summary['pr_recall'].tolist()
pr_thres_cutoff[cutoff] = metrics_summary['pr_thres'].tolist()
pr_precis_custom_cutoff[cutoff] = metrics_summary['pr_precis_custom']
pr_recall_custom_cutoff[cutoff] = metrics_summary['pr_recall_custom']
if j == 0:
y_true_all_cutoff = y_true_all_cutoff + metrics_summary['y_true_all']
y_score_all_cutoff = y_score_all_cutoff + metrics_summary['y_score_all']
precis[prot_name + '_' + prot_chain] = precis_cutoff
recall[prot_name + '_' + prot_chain] = recall_cutoff
f1[prot_name + '_' + prot_chain] = f1_cutoff
fb[prot_name + '_' + prot_chain] = fb_cutoff
mcc[prot_name + '_' + prot_chain] = mcc_cutoff
acc[prot_name + '_' + prot_chain] = acc_cutoff
h_loss[prot_name + '_' + prot_chain] = h_loss_cutoff
bal_acc[prot_name + '_' + prot_chain] = bal_acc_cutoff
jaccard[prot_name + '_' + prot_chain] = jaccard_cutoff
zo_loss[prot_name + '_' + prot_chain] = zo_loss_cutoff
tp[prot_name + '_' + prot_chain] = tp_cutoff
fp[prot_name + '_' + prot_chain] = fp_cutoff
tn[prot_name + '_' + prot_chain] = tn_cutoff
fn[prot_name + '_' + prot_chain] = fn_cutoff
ppv_custom[prot_name + '_' + prot_chain] = ppv_cutoff
auc[prot_name + '_' + prot_chain] = auc_cutoff
ap[prot_name + '_' + prot_chain] = ap_cutoff
roc_fpr[prot_name + '_' + prot_chain] = roc_fpr_cutoff
roc_tpr[prot_name + '_' + prot_chain] = roc_tpr_cutoff
roc_thres[prot_name + '_' + prot_chain] = roc_thres_cutoff
roc_fpr_custom[prot_name + '_' + prot_chain] = roc_fpr_custom_cutoff
roc_tpr_custom[prot_name + '_' + prot_chain] = roc_tpr_custom_cutoff
pr_precs[prot_name + '_' + prot_chain] = pr_precis_cutoff
pr_recall[prot_name + '_' + prot_chain] = pr_recall_cutoff
pr_thres[prot_name + '_' + prot_chain] = pr_thres_cutoff
pr_precs_custom[prot_name + '_' + prot_chain] = pr_precis_custom_cutoff
pr_recall_custom[prot_name + '_' + prot_chain] = pr_recall_custom_cutoff
y_true_all = y_true_all + y_true_all_cutoff
y_score_all = y_score_all + y_score_all_cutoff
# print(y_true_all)
# print(len(y_true_all))
if sv_fp:
with open(sv_fp + tool + '_precis.json', 'w') as filep:
json.dump(precis, filep)
with open(sv_fp + tool + '_recall.json', 'w') as filep:
json.dump(recall, filep)
with open(sv_fp + tool + '_f1.json', 'w') as filep:
json.dump(f1, filep)
with open(sv_fp + tool + '_fb.json', 'w') as filep:
json.dump(fb, filep)
with open(sv_fp + tool + '_mcc.json', 'w') as filep:
json.dump(mcc, filep)
with open(sv_fp + tool + '_acc.json', 'w') as filep:
json.dump(acc, filep)
with open(sv_fp + tool + '_h_loss.json', 'w') as filep:
json.dump(h_loss, filep)
with open(sv_fp + tool + '_bal_acc.json', 'w') as filep:
json.dump(bal_acc, filep)
with open(sv_fp + tool + '_jaccard.json', 'w') as filep:
json.dump(jaccard, filep)
with open(sv_fp + tool + '_zo_loss.json', 'w') as filep:
json.dump(zo_loss, filep)
with open(sv_fp + tool + '_tp.json', 'w') as filep:
print(tp)
json.dump(tp, filep)
with open(sv_fp + tool + '_fp.json', 'w') as filep:
json.dump(fp, filep)
with open(sv_fp + tool + '_tn.json', 'w') as filep:
json.dump(tn, filep)
with open(sv_fp + tool + '_fn.json', 'w') as filep:
json.dump(fn, filep)
with open(sv_fp + tool + '_ppv_custom.json', 'w') as filep:
json.dump(ppv_custom, filep)
with open(sv_fp + tool + '_auc.json', 'w') as filep:
json.dump(auc, filep)
with open(sv_fp + tool + '_ap.json', 'w') as filep:
json.dump(ap, filep)
self.pfwriter.generic(pd.DataFrame(y_true_all), sv_fpn=sv_fp + tool + '_y_true_all.txt')
self.pfwriter.generic(pd.DataFrame(y_score_all), sv_fpn=sv_fp + tool + '_y_score_all.txt')
# with open(sv_fp + tool + '_y_true_all.json', 'w') as filep:
# json.dump(y_true_all, filep)
# with open(sv_fp + tool + '_y_score_all.json', 'w') as filep:
# json.dump(y_score_all, filep)
with open(sv_fp + tool + '_pr_precs.json', 'w') as filep:
json.dump(pr_precs, filep)
with open(sv_fp + tool + '_pr_recall.json', 'w') as filep:
json.dump(pr_recall, filep)
with open(sv_fp + tool + '_pr_thres.json', 'w') as filep:
json.dump(pr_thres, filep)
with open(sv_fp + tool + '_pr_precs_custom.json', 'w') as filep:
json.dump(pr_precs_custom, filep)
with open(sv_fp + tool + '_pr_recall_custom.json', 'w') as filep:
json.dump(pr_recall_custom, filep)
with open(sv_fp + tool + '_roc_fpr.json', 'w') as filep:
json.dump(roc_fpr, filep)
with open(sv_fp + tool + '_roc_tpr.json', 'w') as filep:
json.dump(roc_tpr, filep)
with open(sv_fp + tool + '_roc_thres.json', 'w') as filep:
json.dump(roc_thres, filep)
with open(sv_fp + tool + '_roc_fpr_custom.json', 'w') as filep:
json.dump(roc_fpr_custom, filep)
with open(sv_fp + tool + '_roc_tpr_custom.json', 'w') as filep:
json.dump(roc_tpr_custom, filep)
return 'Finished'
def inspect(self, df_fpn):
matrix = self.pfreader.generic(df_fpn=df_fpn)
# acc_matrix = acc_matrix.reset_index(inplace=False, drop=True)
# print(matrix.ix[(matrix==0).all(axis=1), :] )
# matrix = matrix.loc[~(matrix == 0).all(axis=1),:]
# matrix = matrix.ix[~(matrix == 0).all(axis=1),:]
return matrix.mean().round(5)
def pos_sgl_list(
self,
prot_name,
seq_chain,
pdb_fp,
topo_fp,
xml_fp,
fasta_fp,
segment,
):
import tmkit as tmk
pdbtm_seg, pred_seg = tmk.topo.cepdbtm(
pdb_fp=pdb_fp,
prot_name=prot_name,
seq_chain=seq_chain,
file_chain=chainname().chain(seq_chain),
topo_fp=topo_fp,
xml_fp=xml_fp,
fasta_fp=fasta_fp,
)
# print(pdbtm_seg, pred_seg)
pdbtm_pos_cyto = tmk.seq.pos_seg_list_single(pdbtm_seg['cyto_lower'], pdbtm_seg['cyto_upper'])
pdbtm_pos_tmh = tmk.seq.pos_seg_list_single(pdbtm_seg['tmh_lower'], pdbtm_seg['tmh_upper'])
pdbtm_pos_extra = tmk.seq.pos_seg_list_single(pdbtm_seg['extra_lower'], pdbtm_seg['extra_upper'])
pred_pos_cyto = tmk.seq.pos_seg_list_single(pred_seg['cyto_lower'], pred_seg['cyto_upper'])
pred_pos_tmh = tmk.seq.pos_seg_list_single(pred_seg['tmh_lower'], pred_seg['tmh_upper'])
pred_pos_extra = tmk.seq.pos_seg_list_single(pred_seg['extra_lower'], pred_seg['extra_upper'])
pdbtm_pos = pdbtm_pos_cyto + pdbtm_pos_tmh + pdbtm_pos_extra
pred_pos = pred_pos_cyto + pred_pos_tmh + pred_pos_extra
if segment == 'pdbtm_cyto':
pos_single_list = pdbtm_pos_cyto
len_seg = fealength().segment(
seg_lower=pdbtm_seg['cyto_lower'],
seg_upper=pdbtm_seg['cyto_upper'],
)
elif segment == 'pdbtm_tmh':
pos_single_list = pdbtm_pos_tmh
len_seg = fealength().segment(
seg_lower=pdbtm_seg['tmh_lower'],
seg_upper=pdbtm_seg['tmh_upper'],
)
elif segment == 'pdbtm_extra':
pos_single_list = pdbtm_pos_extra
len_seg = fealength().segment(
seg_lower=pdbtm_seg['extra_lower'],
seg_upper=pdbtm_seg['extra_upper'],
)
elif segment == 'phobius_cyto':
pos_single_list = pred_pos_cyto
len_seg = fealength().segment(
seg_lower=pred_seg['cyto_lower'],
seg_upper=pred_seg['cyto_upper'],
)
elif segment == 'phobius_tmh':
pos_single_list = pred_pos_tmh
len_seg = fealength().segment(
seg_lower=pred_seg['tmh_lower'],
seg_upper=pred_seg['tmh_upper'],
)
elif segment == 'phobius_extra':
pos_single_list = pred_pos_extra
len_seg = fealength().segment(
seg_lower=pred_seg['extra_lower'],
seg_upper=pred_seg['extra_upper'],
)
elif segment == 'pdbtm_combined':
pos_single_list = pdbtm_pos
part_cyto = fealength().segment(
seg_lower=pdbtm_seg['cyto_lower'],
seg_upper=pdbtm_seg['cyto_upper'],
)
part_tmh = fealength().segment(
seg_lower=pdbtm_seg['tmh_lower'],
seg_upper=pdbtm_seg['tmh_upper'],
)
part_extra = fealength().segment(
seg_lower=pdbtm_seg['extra_lower'],
seg_upper=pdbtm_seg['extra_upper'],
)
len_seg = part_cyto + part_tmh + part_extra
else:
pos_single_list = pred_pos
part_cyto = fealength().segment(
seg_lower=pred_seg['cyto_lower'],
seg_upper=pred_seg['cyto_upper'],
)
part_tmh = fealength().segment(
seg_lower=pred_seg['tmh_lower'],
seg_upper=pred_seg['tmh_upper'],
)
part_extra = fealength().segment(
seg_lower=pred_seg['extra_lower'],
seg_upper=pred_seg['extra_upper'],
)
len_seg = part_cyto + part_tmh + part_extra
return pos_single_list, len_seg
if __name__ == "__main__":
from pypropel.path import to
p = Dispatcher()
# pos_sgl_list, len_seg = p.pos_sgl_list(
# prot_name='1aij',
# seq_chain='L',
# pdb_fp=to('data/pdb/pdbtm/'),
# topo_fp=to('data/phobius/'),
# xml_fp=to('data/xml/'),
# fasta_fp=to('data/fasta/'),
# segment='pdbtm_tmh',
# )
p.segment(
prot_df=pd.DataFrame({
'prot': ['1aij', ],
'chain': ['L', ],
}),
dist_fp=to('data/pdb/complex/pdbtm/'),
dist_limit=6.,
tool_fp=to('data/isite/deeptminter/'),
tool='tma300',
pdb_fp=to('data/pdb/pdbtm/'),
topo_fp=to('data/phobius/'),
xml_fp=to('data/xml/'),
fasta_fp=to('data/fasta/'),
segment='pdbtm_tmh',
sort=1,
sv_fp='./',
)
# # /*** inspect ***/
# print(p.inspect(
# df_fpn=to('data/al/prediction/ppisite/') + tools[0] + '/' + datasets[0] + '/' + topologies[0] + '/' + regions[0] + '/'
# + 'mbpred_fn.txt',
# # df_fpn=to('data/al/prediction/ppisite/') + tools[0] + '/' + meet + '/' + datasets[0] + '/' + topologies[0] + '/' + regions[0] + '/' + models[0] + '/tma300_precis.txt'
# )) | 17,642 | Dispatcher | py | en | python | code | {"qsc_code_num_words": 2090, "qsc_code_num_chars": 17642.0, "qsc_code_mean_word_length": 4.11866029, "qsc_code_frac_words_unique": 0.0923445, "qsc_code_frac_chars_top_2grams": 0.03624535, "qsc_code_frac_chars_top_3grams": 0.04321561, "qsc_code_frac_chars_top_4grams": 0.04042751, "qsc_code_frac_chars_dupe_5grams": 0.61303439, "qsc_code_frac_chars_dupe_6grams": 0.48350372, "qsc_code_frac_chars_dupe_7grams": 0.33887082, "qsc_code_frac_chars_dupe_8grams": 0.24756041, "qsc_code_frac_chars_dupe_9grams": 0.14474907, "qsc_code_frac_chars_dupe_10grams": 0.12569703, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00426421, "qsc_code_frac_chars_whitespace": 0.34865661, "qsc_code_size_file_byte": 17642.0, "qsc_code_num_lines": 430.0, "qsc_code_num_chars_line_max": 179.0, "qsc_code_num_chars_line_mean": 41.02790698, "qsc_code_frac_chars_alphabet": 0.74484379, "qsc_code_frac_chars_comments": 0.06875638, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.18867925, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.07990728, "qsc_code_frac_chars_long_word_length": 0.00689277, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.01078167, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.0296496, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.05121294, "qsc_codepython_frac_lines_print": 0.00269542} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
2003100127/pypropel | pypropel/dna/sequence/Symbol.py | __author__ = "Jianfeng Sun"
__version__ = "v1.0"
__copyright__ = "Copyright 2020"
__license__ = "GPL v3.0"
__email__ = "jianfeng.sunmt@gmail.com"
__maintainer__ = "Jianfeng Sun"
class Symbol:
def __init__(self, ):
self.nt = self.single(gap=False)
def single(self, gap=False, universal=False):
if universal:
if gap:
return []
else:
return []
else:
if gap:
return ['A', 'C', 'G', 'U', '-']
# return ['A', 'C', 'G', 'T', '-']
else:
return ['A', 'C', 'G', 'U']
# return ['A', 'C', 'G', 'T']
def pair(self, ):
paris_ = []
for _, i in enumerate(self.nt):
for _, j in enumerate(self.nt):
paris_.append(i + j)
return paris_
def triple(self, ):
kmers_ = []
for _, i in enumerate(self.nt):
for _, j in enumerate(self.nt):
for _, k in enumerate(self.nt):
kmers_.append(i + j + k)
return kmers_
def quadruple(self, ):
kmers_ = []
for _, i in enumerate(self.nt):
for _, j in enumerate(self.nt):
for _, k in enumerate(self.nt):
for _, l in enumerate(self.nt):
kmers_.append(i + j + k + l)
return kmers_
def todict(self, gap=False):
nt_dict = {}
for k, v in enumerate(self.single(gap=gap)):
nt_dict[v] = k
return nt_dict
if __name__ == "__main__":
p = Single()
print(p.single())
print(p.todict()) | 1,655 | Symbol | py | en | python | code | {"qsc_code_num_words": 191, "qsc_code_num_chars": 1655.0, "qsc_code_mean_word_length": 3.7382199, "qsc_code_frac_words_unique": 0.28272251, "qsc_code_frac_chars_top_2grams": 0.08403361, "qsc_code_frac_chars_top_3grams": 0.21008403, "qsc_code_frac_chars_top_4grams": 0.21428571, "qsc_code_frac_chars_dupe_5grams": 0.3837535, "qsc_code_frac_chars_dupe_6grams": 0.37955182, "qsc_code_frac_chars_dupe_7grams": 0.37955182, "qsc_code_frac_chars_dupe_8grams": 0.37955182, "qsc_code_frac_chars_dupe_9grams": 0.37955182, "qsc_code_frac_chars_dupe_10grams": 0.31652661, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00798403, "qsc_code_frac_chars_whitespace": 0.39456193, "qsc_code_size_file_byte": 1655.0, "qsc_code_num_lines": 62.0, "qsc_code_num_chars_line_max": 53.0, "qsc_code_num_chars_line_mean": 26.69354839, "qsc_code_frac_chars_alphabet": 0.70459082, "qsc_code_frac_chars_comments": 0.03625378, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.38, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.05712492, "qsc_code_frac_chars_long_word_length": 0.01506591, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.12, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.0, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.3, "qsc_codepython_frac_lines_print": 0.04} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 1, "qsc_code_frac_chars_top_4grams": 1, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ЗаявлениеНаВыпускНовогоКвалифицированногоСертификата/Forms/СведенияОВладельцеСертификата/Ext/Form.xml | <?xml version="1.0" encoding="UTF-8"?>
<Form xmlns="http://v8.1c.ru/8.3/xcf/logform" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:dcscor="http://v8.1c.ru/8.1/data-composition-system/core" xmlns:dcssch="http://v8.1c.ru/8.1/data-composition-system/schema" xmlns:dcsset="http://v8.1c.ru/8.1/data-composition-system/settings" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<WindowOpeningMode>LockOwnerWindow</WindowOpeningMode>
<CommandBarLocation>Bottom</CommandBarLocation>
<AutoCommandBar name="ФормаКоманднаяПанель" id="-1">
<HorizontalAlign>Right</HorizontalAlign>
<Autofill>false</Autofill>
<ChildItems>
<Button name="ФормаОК" id="12">
<Type>CommandBarButton</Type>
<DefaultButton>true</DefaultButton>
<CommandName>Form.Command.ОК</CommandName>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>ОК</v8:content>
</v8:item>
</Title>
<ExtendedTooltip name="ФормаОКРасширеннаяПодсказка" id="13"/>
</Button>
<Button name="ФормаОтмена" id="14">
<Type>CommandBarButton</Type>
<CommandName>Form.Command.Отмена</CommandName>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Отмена</v8:content>
</v8:item>
</Title>
<ExtendedTooltip name="ФормаОтменаРасширеннаяПодсказка" id="15"/>
</Button>
</ChildItems>
</AutoCommandBar>
<Events>
<Event name="NotificationProcessing">ОбработкаОповещения</Event>
<Event name="OnOpen">ПриОткрытии</Event>
<Event name="BeforeClose">ПередЗакрытием</Event>
<Event name="OnCreateAtServer">ПриСозданииНаСервере</Event>
</Events>
<ChildItems>
<UsualGroup name="ВсеЭлементы" id="67">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Все элементы</v8:content>
</v8:item>
</Title>
<Group>Vertical</Group>
<Behavior>Usual</Behavior>
<Representation>None</Representation>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="ВсеЭлементыРасширеннаяПодсказка" id="68"/>
<ChildItems>
<UsualGroup name="ГруппаФИО" id="10">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>ФИО</v8:content>
</v8:item>
</Title>
<Group>AlwaysHorizontal</Group>
<Behavior>Usual</Behavior>
<Representation>None</Representation>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="ГруппаФИОРасширеннаяПодсказка" id="11"/>
<ChildItems>
<InputField name="Фамилия" id="1">
<DataPath>Фамилия</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Владелец</v8:content>
</v8:item>
</Title>
<Width>15</Width>
<AutoMaxWidth>false</AutoMaxWidth>
<AutoMarkIncomplete>true</AutoMarkIncomplete>
<InputHint>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Фамилия</v8:content>
</v8:item>
</InputHint>
<ContextMenu name="ФамилияКонтекстноеМеню" id="2"/>
<ExtendedTooltip name="ФамилияРасширеннаяПодсказка" id="3"/>
<Events>
<Event name="OnChange">РеквизитПриИзменении</Event>
</Events>
</InputField>
<InputField name="Имя" id="4">
<DataPath>Имя</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Имя</v8:content>
</v8:item>
</Title>
<TitleLocation>None</TitleLocation>
<Width>15</Width>
<AutoMaxWidth>false</AutoMaxWidth>
<AutoMarkIncomplete>true</AutoMarkIncomplete>
<InputHint>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Имя</v8:content>
</v8:item>
</InputHint>
<ContextMenu name="ИмяКонтекстноеМеню" id="5"/>
<ExtendedTooltip name="ИмяРасширеннаяПодсказка" id="6"/>
<Events>
<Event name="OnChange">РеквизитПриИзменении</Event>
</Events>
</InputField>
<InputField name="Отчество" id="7">
<DataPath>Отчество</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Отчество</v8:content>
</v8:item>
</Title>
<TitleLocation>None</TitleLocation>
<Width>15</Width>
<AutoMaxWidth>false</AutoMaxWidth>
<InputHint>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Отчество</v8:content>
</v8:item>
</InputHint>
<ContextMenu name="ОтчествоКонтекстноеМеню" id="8"/>
<ExtendedTooltip name="ОтчествоРасширеннаяПодсказка" id="9"/>
<Events>
<Event name="OnChange">РеквизитПриИзменении</Event>
</Events>
</InputField>
</ChildItems>
</UsualGroup>
<UsualGroup name="ГруппаДатаРожденияПол" id="22">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Дата рождения пол</v8:content>
</v8:item>
</Title>
<Group>AlwaysHorizontal</Group>
<Behavior>Usual</Behavior>
<Representation>None</Representation>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="ГруппаДатаРожденияПолРасширеннаяПодсказка" id="23"/>
<ChildItems>
<InputField name="ДатаРождения" id="16">
<DataPath>ДатаРождения</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Дата рождения</v8:content>
</v8:item>
</Title>
<Width>13</Width>
<AutoMarkIncomplete>true</AutoMarkIncomplete>
<ContextMenu name="ДатаРожденияКонтекстноеМеню" id="17"/>
<ExtendedTooltip name="ДатаРожденияРасширеннаяПодсказка" id="18"/>
<Events>
<Event name="OnChange">РеквизитПриИзменении</Event>
</Events>
</InputField>
<RadioButtonField name="Пол" id="19">
<DataPath>Пол</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Пол</v8:content>
</v8:item>
</Title>
<RadioButtonType>Auto</RadioButtonType>
<ColumnsCount>2</ColumnsCount>
<ChoiceList>
<xr:Item>
<xr:Presentation/>
<xr:CheckState>0</xr:CheckState>
<xr:Value xsi:type="FormChoiceListDesTimeValue">
<Presentation>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Мужской</v8:content>
</v8:item>
</Presentation>
<Value xsi:type="xs:decimal">1</Value>
</xr:Value>
</xr:Item>
<xr:Item>
<xr:Presentation/>
<xr:CheckState>0</xr:CheckState>
<xr:Value xsi:type="FormChoiceListDesTimeValue">
<Presentation>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Женский</v8:content>
</v8:item>
</Presentation>
<Value xsi:type="xs:decimal">2</Value>
</xr:Value>
</xr:Item>
</ChoiceList>
<ContextMenu name="ПолКонтекстноеМеню" id="20"/>
<ExtendedTooltip name="ПолРасширеннаяПодсказка" id="21"/>
<Events>
<Event name="OnChange">РеквизитПриИзменении</Event>
</Events>
</RadioButtonField>
</ChildItems>
</UsualGroup>
<UsualGroup name="ГруппаНомера" id="90">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Номера</v8:content>
</v8:item>
</Title>
<Behavior>Usual</Behavior>
<Representation>None</Representation>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="ГруппаНомераРасширеннаяПодсказка" id="91"/>
<ChildItems>
<InputField name="СтраховойНомерПФР" id="24">
<DataPath>СтраховойНомерПФР</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>СНИЛС</v8:content>
</v8:item>
</Title>
<Width>15</Width>
<MaxWidth>15</MaxWidth>
<HorizontalStretch>false</HorizontalStretch>
<Mask>999-999-999 99</Mask>
<AutoMarkIncomplete>true</AutoMarkIncomplete>
<ContextMenu name="СтраховойНомерПФРКонтекстноеМеню" id="25"/>
<ExtendedTooltip name="СтраховойНомерПФРРасширеннаяПодсказка" id="26"/>
<Events>
<Event name="OnChange">СтраховойНомерПФРПриИзменении</Event>
</Events>
</InputField>
<InputField name="ВладелецИНН" id="92">
<DataPath>ВладелецИНН</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>ИНН</v8:content>
</v8:item>
</Title>
<HorizontalStretch>false</HorizontalStretch>
<AutoMarkIncomplete>true</AutoMarkIncomplete>
<ContextMenu name="ВладелецИННКонтекстноеМеню" id="93"/>
<ExtendedTooltip name="ВладелецИННРасширеннаяПодсказка" id="94"/>
<Events>
<Event name="OnChange">РеквизитПриИзменении</Event>
</Events>
</InputField>
</ChildItems>
</UsualGroup>
<UsualGroup name="ГруппаГражданство" id="33">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Гражданство</v8:content>
</v8:item>
</Title>
<Group>AlwaysHorizontal</Group>
<Behavior>Usual</Behavior>
<Representation>None</Representation>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="ГруппаГражданствоРасширеннаяПодсказка" id="34"/>
<ChildItems>
<InputField name="Гражданство" id="27">
<DataPath>Гражданство</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Гражданство</v8:content>
</v8:item>
</Title>
<Width>13</Width>
<HorizontalStretch>false</HorizontalStretch>
<DropListButton>false</DropListButton>
<ChoiceButton>true</ChoiceButton>
<ChoiceButtonRepresentation>ShowInInputField</ChoiceButtonRepresentation>
<OpenButton>false</OpenButton>
<AutoMarkIncomplete>true</AutoMarkIncomplete>
<ContextMenu name="ГражданствоКонтекстноеМеню" id="28"/>
<ExtendedTooltip name="ГражданствоРасширеннаяПодсказка" id="29"/>
<Events>
<Event name="OnChange">ГражданствоПриИзменении</Event>
</Events>
</InputField>
<InputField name="МестоРождения" id="30">
<DataPath>МестоРождения</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Место рождения</v8:content>
</v8:item>
</Title>
<Width>12</Width>
<AutoMaxWidth>false</AutoMaxWidth>
<AutoMarkIncomplete>true</AutoMarkIncomplete>
<ContextMenu name="МестоРожденияКонтекстноеМеню" id="31"/>
<ExtendedTooltip name="МестоРожденияРасширеннаяПодсказка" id="32"/>
<Events>
<Event name="OnChange">РеквизитПриИзменении</Event>
</Events>
</InputField>
</ChildItems>
</UsualGroup>
<InputField name="Должность" id="35">
<DataPath>Должность</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Должность</v8:content>
</v8:item>
</Title>
<AutoMaxWidth>false</AutoMaxWidth>
<AutoMarkIncomplete>true</AutoMarkIncomplete>
<ContextMenu name="ДолжностьКонтекстноеМеню" id="36"/>
<ExtendedTooltip name="ДолжностьРасширеннаяПодсказка" id="37"/>
<Events>
<Event name="OnChange">РеквизитПриИзменении</Event>
</Events>
</InputField>
<InputField name="Подразделение" id="38">
<DataPath>Подразделение</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Подразделение</v8:content>
</v8:item>
</Title>
<ToolTip>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Заполнить, если владелец сертификата находится в обособленном подразделении,
фактический адрес которого отличается от фактического адреса организации.</v8:content>
</v8:item>
</ToolTip>
<ToolTipRepresentation>Button</ToolTipRepresentation>
<Width>15</Width>
<AutoMaxWidth>false</AutoMaxWidth>
<ContextMenu name="ПодразделениеКонтекстноеМеню" id="39"/>
<ExtendedTooltip name="ПодразделениеРасширеннаяПодсказка" id="40"/>
<Events>
<Event name="OnChange">РеквизитПриИзменении</Event>
</Events>
</InputField>
<UsualGroup name="ГруппаУдостоверениеЛичности" id="41">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Документ, удостоверяющий личность</v8:content>
</v8:item>
</Title>
<Group>AlwaysHorizontal</Group>
<Behavior>Usual</Behavior>
<Representation>None</Representation>
<ExtendedTooltip name="ГруппаУдостоверениеЛичностиРасширеннаяПодсказка" id="42"/>
<ChildItems>
<UsualGroup name="ГруппаВидКемВыданКодПодразделения" id="61">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Вид документа, кем выдан, код подразделения</v8:content>
</v8:item>
</Title>
<Group>Vertical</Group>
<Behavior>Usual</Behavior>
<Representation>None</Representation>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="ГруппаВидКемВыданКодПодразделенияРасширеннаяПодсказка" id="62"/>
<ChildItems>
<InputField name="ДокументВид" id="43">
<DataPath>ДокументВид</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Вид документа</v8:content>
</v8:item>
</Title>
<Width>20</Width>
<AutoMaxWidth>false</AutoMaxWidth>
<HorizontalStretch>true</HorizontalStretch>
<ListChoiceMode>true</ListChoiceMode>
<AutoMarkIncomplete>true</AutoMarkIncomplete>
<ChoiceList>
<xr:Item>
<xr:Presentation/>
<xr:CheckState>0</xr:CheckState>
<xr:Value xsi:type="FormChoiceListDesTimeValue">
<Presentation>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Паспорт гражданина Российской Федерации</v8:content>
</v8:item>
</Presentation>
<Value xsi:type="xs:string">21</Value>
</xr:Value>
</xr:Item>
<xr:Item>
<xr:Presentation/>
<xr:CheckState>0</xr:CheckState>
<xr:Value xsi:type="FormChoiceListDesTimeValue">
<Presentation>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Иной документ, предусмотренный законодательством Российской Федерации</v8:content>
</v8:item>
</Presentation>
<Value xsi:type="xs:string">91</Value>
</xr:Value>
</xr:Item>
</ChoiceList>
<ContextMenu name="ДокументВидКонтекстноеМеню" id="44"/>
<ExtendedTooltip name="ДокументВидРасширеннаяПодсказка" id="45"/>
<Events>
<Event name="OnChange">ДокументВидПриИзменении</Event>
<Event name="Clearing">ДокументВидОчистка</Event>
</Events>
</InputField>
<InputField name="ДокументКемВыдан" id="46">
<DataPath>ДокументКемВыдан</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Кем выдан</v8:content>
</v8:item>
</Title>
<TitleLocation>Left</TitleLocation>
<Width>23</Width>
<AutoMaxWidth>false</AutoMaxWidth>
<AutoMarkIncomplete>true</AutoMarkIncomplete>
<ContextMenu name="ДокументКемВыданКонтекстноеМеню" id="47"/>
<ExtendedTooltip name="ДокументКемВыданРасширеннаяПодсказка" id="48"/>
<Events>
<Event name="OnChange">РеквизитПриИзменении</Event>
</Events>
</InputField>
<InputField name="ДокументКодПодразделения" id="49">
<DataPath>ДокументКодПодразделения</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Код подразделения</v8:content>
</v8:item>
</Title>
<TitleLocation>Left</TitleLocation>
<Width>5</Width>
<HorizontalStretch>false</HorizontalStretch>
<Mask>999-999</Mask>
<AutoMarkIncomplete>true</AutoMarkIncomplete>
<ContextMenu name="ДокументКодПодразделенияКонтекстноеМеню" id="50"/>
<ExtendedTooltip name="ДокументКодПодразделенияРасширеннаяПодсказка" id="51"/>
<Events>
<Event name="OnChange">ДокументКодПодразделенияПриИзменении</Event>
</Events>
</InputField>
</ChildItems>
</UsualGroup>
<UsualGroup name="ГруппаСерияНомерДатаВыдачи" id="63">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Серия, номер, дата выдачи документа</v8:content>
</v8:item>
</Title>
<Group>Vertical</Group>
<Behavior>Usual</Behavior>
<Representation>None</Representation>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="ГруппаСерияНомерДатаВыдачиРасширеннаяПодсказка" id="64"/>
<ChildItems>
<InputField name="ДокументНомер" id="52">
<DataPath>ДокументНомер</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Серия, номер</v8:content>
</v8:item>
</Title>
<Width>11</Width>
<HorizontalStretch>false</HorizontalStretch>
<Mask>99 99 999999</Mask>
<AutoMarkIncomplete>true</AutoMarkIncomplete>
<ContextMenu name="ДокументНомерКонтекстноеМеню" id="53"/>
<ExtendedTooltip name="ДокументНомерРасширеннаяПодсказка" id="54"/>
<Events>
<Event name="OnChange">ДокументНомерПриИзменении</Event>
</Events>
</InputField>
<InputField name="ДокументДатаВыдачи" id="55">
<DataPath>ДокументДатаВыдачи</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Дата выдачи</v8:content>
</v8:item>
</Title>
<Width>9</Width>
<AutoMarkIncomplete>true</AutoMarkIncomplete>
<ContextMenu name="ДокументДатаВыдачиКонтекстноеМеню" id="56"/>
<ExtendedTooltip name="ДокументДатаВыдачиРасширеннаяПодсказка" id="57"/>
<Events>
<Event name="OnChange">ДокументДатаВыдачиПриИзменении</Event>
</Events>
</InputField>
</ChildItems>
</UsualGroup>
</ChildItems>
</UsualGroup>
<UsualGroup name="ГруппаКонтактнаяИнформация" id="65">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Контактная информация</v8:content>
</v8:item>
</Title>
<Group>Vertical</Group>
<Behavior>Usual</Behavior>
<Representation>None</Representation>
<ExtendedTooltip name="ГруппаКонтактнаяИнформацияРасширеннаяПодсказка" id="66"/>
<ChildItems>
<UsualGroup name="ГруппаВладелецАдресРегистрации" id="69">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Адрес регистрации</v8:content>
</v8:item>
</Title>
<VerticalAlign>Center</VerticalAlign>
<Behavior>Usual</Behavior>
<Representation>None</Representation>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="ГруппаВладелецАдресРегистрацииРасширеннаяПодсказка" id="70"/>
<ChildItems>
<InputField name="ВладелецАдресРегистрации" id="71">
<DataPath>ВладелецАдресРегистрации</DataPath>
<ReadOnly>true</ReadOnly>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Адрес регистрации (регион, населенный пункт)</v8:content>
</v8:item>
</Title>
<Width>65</Width>
<AutoMaxWidth>false</AutoMaxWidth>
<AutoMarkIncomplete>false</AutoMarkIncomplete>
<TextEdit>false</TextEdit>
<ContextMenu name="ВладелецАдресРегистрацииКонтекстноеМеню" id="72"/>
<ExtendedTooltip name="ВладелецАдресРегистрацииРасширеннаяПодсказка" id="73"/>
</InputField>
</ChildItems>
</UsualGroup>
<UsualGroup name="ГруппаЭлектроннаяПочтаИТелефон" id="88">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Электронная почта и телефон</v8:content>
</v8:item>
</Title>
<Behavior>Usual</Behavior>
<Representation>None</Representation>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="ГруппаЭлектроннаяПочтаИТелефонРасширеннаяПодсказка" id="89"/>
<ChildItems>
<InputField name="ВладелецТелефон" id="85">
<DataPath>ВладелецТелефон</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Телефон</v8:content>
</v8:item>
</Title>
<Width>25</Width>
<HorizontalStretch>false</HorizontalStretch>
<ChoiceButton>true</ChoiceButton>
<AutoMarkIncomplete>true</AutoMarkIncomplete>
<TextEdit>false</TextEdit>
<ContextMenu name="ВладелецТелефонКонтекстноеМеню" id="86"/>
<ExtendedTooltip name="ВладелецТелефонРасширеннаяПодсказка" id="87"/>
<Events>
<Event name="StartChoice">ВладелецТелефонНачалоВыбора</Event>
<Event name="Clearing">ВладелецТелефонОчистка</Event>
<Event name="ChoiceProcessing">ВладелецТелефонОбработкаВыбора</Event>
</Events>
</InputField>
<InputField name="ЭлектроннаяПочта" id="58">
<DataPath>ЭлектроннаяПочта</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Электронная почта</v8:content>
</v8:item>
</Title>
<Width>20</Width>
<AutoMaxWidth>false</AutoMaxWidth>
<AutoMarkIncomplete>true</AutoMarkIncomplete>
<ContextMenu name="ЭлектроннаяПочтаКонтекстноеМеню" id="59"/>
<ExtendedTooltip name="ЭлектроннаяПочтаРасширеннаяПодсказка" id="60"/>
<Events>
<Event name="OnChange">РеквизитПриИзменении</Event>
</Events>
</InputField>
</ChildItems>
</UsualGroup>
</ChildItems>
</UsualGroup>
</ChildItems>
</UsualGroup>
</ChildItems>
<Attributes>
<Attribute name="Фамилия" id="2">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Фамилия</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>255</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
<Attribute name="Имя" id="3">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Имя</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>255</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
<Attribute name="Отчество" id="4">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Отчество</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>255</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
<Attribute name="Пол" id="5">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Пол</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>xs:decimal</v8:Type>
<v8:NumberQualifiers>
<v8:Digits>1</v8:Digits>
<v8:FractionDigits>0</v8:FractionDigits>
<v8:AllowedSign>Nonnegative</v8:AllowedSign>
</v8:NumberQualifiers>
</Type>
</Attribute>
<Attribute name="ДатаРождения" id="1">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Дата рождения</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>xs:dateTime</v8:Type>
<v8:DateQualifiers>
<v8:DateFractions>Date</v8:DateFractions>
</v8:DateQualifiers>
</Type>
</Attribute>
<Attribute name="СтраховойНомерПФР" id="6">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>СНИЛС</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>14</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
<Attribute name="Гражданство" id="7">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Гражданство</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>cfg:CatalogRef.СтраныМира</v8:Type>
</Type>
</Attribute>
<Attribute name="ГражданствоОКСМКодАльфа3" id="8">
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>0</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
<Attribute name="ГражданствоПредставление" id="9">
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>0</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
<Attribute name="МестоРождения" id="10">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Место рождения</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>240</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
<Attribute name="Должность" id="11">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Должность</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>255</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
<Attribute name="Подразделение" id="12">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Подразделение</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>255</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
<Attribute name="ДокументВид" id="13">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Документ вид</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>2</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
<Attribute name="ДокументДатаВыдачи" id="14">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Дата выдачи</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>xs:dateTime</v8:Type>
<v8:DateQualifiers>
<v8:DateFractions>Date</v8:DateFractions>
</v8:DateQualifiers>
</Type>
</Attribute>
<Attribute name="ДокументКемВыдан" id="15">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Кем выдан</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>128</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
<Attribute name="ДокументКодПодразделения" id="16">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Код подразделения</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>7</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
<Attribute name="ДокументНомер" id="17">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Серия, номер</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>25</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
<Attribute name="ЭлектроннаяПочта" id="18">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Электронная почта</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>255</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
<Attribute name="СведенияОВладельце" id="20">
<Type/>
</Attribute>
<Attribute name="ВладелецТелефон" id="19">
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>64</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
<Attribute name="ВладелецТелефонXML" id="21">
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>0</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
<Attribute name="ВладелецАдресРегистрации" id="24">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Владелец адрес регистрации</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>0</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
<Attribute name="ВидКонтактнойИнформацииТелефон" id="27">
<Type/>
</Attribute>
<Attribute name="ВладелецИНН" id="22">
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>12</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
</Attributes>
<Commands>
<Command name="ОК" id="1">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>ОК</v8:content>
</v8:item>
</Title>
<ToolTip>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>ОК</v8:content>
</v8:item>
</ToolTip>
<Action>ОК</Action>
</Command>
<Command name="Отмена" id="2">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Отмена</v8:content>
</v8:item>
</Title>
<ToolTip>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Отмена</v8:content>
</v8:item>
</ToolTip>
<Action>Отмена</Action>
</Command>
</Commands>
<Parameters>
<Parameter name="СведенияОВладельце">
<Type/>
</Parameter>
</Parameters>
</Form> | 30,810 | Form | xml | ru | xml | data | {"qsc_code_num_words": 3044, "qsc_code_num_chars": 30810.0, "qsc_code_mean_word_length": 6.18856767, "qsc_code_frac_words_unique": 0.13173456, "qsc_code_frac_chars_top_2grams": 0.03885763, "qsc_code_frac_chars_top_3grams": 0.02590509, "qsc_code_frac_chars_top_4grams": 0.03885763, "qsc_code_frac_chars_dupe_5grams": 0.63424992, "qsc_code_frac_chars_dupe_6grams": 0.60738932, "qsc_code_frac_chars_dupe_7grams": 0.5701773, "qsc_code_frac_chars_dupe_8grams": 0.54878437, "qsc_code_frac_chars_dupe_9grams": 0.52064975, "qsc_code_frac_chars_dupe_10grams": 0.49410765, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.03876719, "qsc_code_frac_chars_whitespace": 0.2280753, "qsc_code_size_file_byte": 30810.0, "qsc_code_num_lines": 959.0, "qsc_code_num_chars_line_max": 918.0, "qsc_code_num_chars_line_mean": 32.12721585, "qsc_code_frac_chars_alphabet": 0.75326914, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.76120959, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.12463486, "qsc_code_frac_chars_long_word_length": 0.0691334, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 1, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 1, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ЗаявлениеНаВыпускНовогоКвалифицированногоСертификата/Forms/СведенияОВладельцеСертификата/Ext/Form/Module.bsl | ///////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2024, ООО 1С-Софт
// Все права защищены. Эта программа и сопроводительные материалы предоставляются
// в соответствии с условиями лицензии Attribution 4.0 International (CC BY 4.0)
// Текст лицензии доступен по ссылке:
// https://creativecommons.org/licenses/by/4.0/legalcode
///////////////////////////////////////////////////////////////////////////////////////////////////////
#Область ОписаниеПеременных
&НаКлиенте
Перем РеквизитыПроверкиАдреса;
#КонецОбласти
#Область ОбработчикиСобытийФормы
&НаСервере
Процедура ПриСозданииНаСервере(Отказ, СтандартнаяОбработка)
ЗаполнитьСведенияОВладельце(ЭтотОбъект, Параметры.СведенияОВладельце);
Если ОбщегоНазначения.ПодсистемаСуществует("СтандартныеПодсистемы.КонтактнаяИнформация") Тогда
МодульУправлениеКонтактнойИнформацией = ОбщегоНазначения.ОбщийМодуль("УправлениеКонтактнойИнформацией");
ВидКонтактнойИнформацииТелефон = МодульУправлениеКонтактнойИнформацией.ПараметрыТелефона();
КонецЕсли;
Если СведенияОВладельце.ЭтоФизическоеЛицо Тогда
АвтоЗаголовок = Ложь;
Заголовок = НСтр("ru = 'Сведения о физическом лице'");
Элементы.ГруппаВладелецАдресРегистрации.Видимость = ЗначениеЗаполнено(ВладелецАдресРегистрации);
КонецЕсли;
Если Параметры.ТолькоПросмотр Тогда
Элементы.ВсеЭлементы.ТолькоПросмотр = Истина;
КонецЕсли;
СтандартныеПодсистемыСервер.СброситьРазмерыИПоложениеОкна(ЭтотОбъект);
КонецПроцедуры
&НаКлиенте
Процедура ПриОткрытии(Отказ)
РеквизитыПроверкиАдреса = Новый Структура;
РеквизитыПроверкиАдреса.Вставить("ВладелецАдресРегистрации", Ложь);
КонецПроцедуры
&НаКлиенте
Процедура ПередЗакрытием(Отказ, ЗавершениеРаботы, ТекстПредупреждения, СтандартнаяОбработка)
Если Не Модифицированность Тогда
Возврат;
КонецЕсли;
Отказ = Истина;
СтандартнаяОбработка = Ложь;
ЗадатьВопросПередЗакрытием();
КонецПроцедуры
&НаКлиенте
Процедура ОбработкаОповещения(ИмяСобытия, Параметр, Источник)
Если ИмяСобытия <> "ИзменениеВладельцаВЗаявленииНаВыпускСертификата" Тогда
Возврат;
КонецЕсли;
ОчиститьСообщения();
ЗаполнитьСведенияОВладельце(ЭтотОбъект, Параметр);
Если СведенияОВладельце.ЭтоФизическоеЛицо Тогда
РеквизитыПроверкиАдреса.ВладелецАдресРегистрации = Ложь;
ПодключитьОбработчикОжидания("ПроверитьАдресОбработчикОжидания", 0.1, Истина);
КонецЕсли;
КонецПроцедуры
#КонецОбласти
#Область ОбработчикиСобытийЭлементовШапкиФормы
&НаКлиенте
Процедура РеквизитПриИзменении(Элемент)
Модифицированность = Истина;
Если ТипЗнч(ЭтотОбъект[Элемент.Имя]) = Тип("Строка") Тогда
ЭтотОбъект[Элемент.Имя] = СокрЛП(ЭтотОбъект[Элемент.Имя]);
КонецЕсли;
КонецПроцедуры
&НаКлиенте
Процедура СтраховойНомерПФРПриИзменении(Элемент)
Модифицированность = Истина;
СтраховойНомерПФР = ТолькоЦифры(СтраховойНомерПФР);
КонецПроцедуры
&НаКлиенте
Процедура ГражданствоПриИзменении(Элемент)
Модифицированность = Истина;
ЗаполнитьЗначенияСвойств(ЭтотОбъект, ГражданствоСвойства(Гражданство));
Если Не ЗначениеЗаполнено(ГражданствоОКСМКодАльфа3) Тогда
Если ЗначениеЗаполнено(Гражданство) Тогда
ПоказатьПредупреждение(, СтроковыеФункцииКлиентСервер.ПодставитьПараметрыВСтроку(
НСтр("ru = 'У страны ""%1"" не указан трехзначный буквенный код альфа-3 по ОКСМ.'"),
Гражданство));
КонецЕсли;
Гражданство = Неопределено;
ГражданствоПредставление = "";
ГражданствоОКСМКодАльфа3 = "";
КонецЕсли;
КонецПроцедуры
&НаКлиенте
Процедура ДокументВидПриИзменении(Элемент)
Модифицированность = Истина;
ПриИзмененииВидаДокумента(ЭтотОбъект);
КонецПроцедуры
&НаКлиенте
Процедура ДокументВидОчистка(Элемент, СтандартнаяОбработка)
Модифицированность = Истина;
СтандартнаяОбработка = Ложь;
КонецПроцедуры
&НаКлиенте
Процедура ДокументНомерПриИзменении(Элемент)
Модифицированность = Истина;
Если ДокументВид = "21" Тогда
ДокументНомер = ТолькоЦифры(ДокументНомер);
КонецЕсли;
КонецПроцедуры
&НаКлиенте
Процедура ДокументДатаВыдачиПриИзменении(Элемент)
Модифицированность = Истина;
КонецПроцедуры
&НаКлиенте
Процедура ДокументКодПодразделенияПриИзменении(Элемент)
Модифицированность = Истина;
ДокументКодПодразделения = ТолькоЦифры(ДокументКодПодразделения);
КонецПроцедуры
&НаКлиенте
Процедура ВладелецТелефонНачалоВыбора(Элемент, ДанныеВыбора, СтандартнаяОбработка)
ПредставлениеТелефонаНачалоВыбора(ЭтотОбъект, Элемент, ДанныеВыбора, СтандартнаяОбработка,
"ВладелецТелефон", НСтр("ru = 'Телефон'"));
КонецПроцедуры
&НаКлиенте
Процедура ВладелецТелефонОчистка(Элемент, СтандартнаяОбработка)
Модифицированность = Истина;
ПредставлениеТелефонаОчистка(ЭтотОбъект, Элемент, СтандартнаяОбработка, "ВладелецТелефон");
КонецПроцедуры
&НаКлиенте
Процедура ВладелецТелефонОбработкаВыбора(Элемент, ВыбранноеЗначение, СтандартнаяОбработка)
Модифицированность = Истина;
ПредставлениеТелефонаОбработкаВыбора(ЭтотОбъект, Элемент, ВыбранноеЗначение, СтандартнаяОбработка, "ВладелецТелефон");
КонецПроцедуры
#КонецОбласти
#Область ОбработчикиКомандФормы
&НаКлиенте
Процедура ОК(Команда)
СохранитьИзмененияИЗакрыть();
КонецПроцедуры
&НаКлиенте
Процедура Отмена(Команда)
ЗадатьВопросПередЗакрытием();
КонецПроцедуры
#КонецОбласти
#Область СлужебныеПроцедурыИФункции
&НаКлиенте
Процедура ЗадатьВопросПередЗакрытием()
Если Не Модифицированность Тогда
Закрыть(Неопределено);
Возврат;
КонецЕсли;
ПоказатьВопрос(Новый ОписаниеОповещения("ЗакрытиеПослеОтветаНаВопрос", ЭтотОбъект),
НСтр("ru = 'Данные были изменены. Сохранить изменения?'"), РежимДиалогаВопрос.ДаНетОтмена);
КонецПроцедуры
&НаКлиенте
Процедура ЗакрытиеПослеОтветаНаВопрос(Ответ, ДополнительныеПараметры) Экспорт
Если Ответ = КодВозвратаДиалога.Нет Тогда
Модифицированность = Ложь;
Закрыть(Неопределено);
ИначеЕсли Ответ = КодВозвратаДиалога.Да Тогда
СохранитьИзмененияИЗакрыть();
КонецЕсли;
КонецПроцедуры
&НаКлиенте
Процедура СохранитьИзмененияИЗакрыть()
ОчиститьСообщения();
Если Не ПроверитьСведенияОВладельце() Тогда
Если Не Элементы.ВсеЭлементы.ТолькоПросмотр Тогда
ПоказатьВопрос(Новый ОписаниеОповещения("СохранениеПослеОтветаНаВопрос", ЭтотОбъект),
НСтр("ru = 'Есть ошибки. Все равно сохранить изменения?'"),
РежимДиалогаВопрос.ДаНет, , КодВозвратаДиалога.Нет);
КонецЕсли;
Возврат;
КонецЕсли;
Если Не Модифицированность Тогда
Закрыть(Неопределено);
Возврат;
КонецЕсли;
СохранениеПослеОтветаНаВопрос(КодВозвратаДиалога.Да, Неопределено);
КонецПроцедуры
&НаКлиенте
Процедура СохранениеПослеОтветаНаВопрос(Ответ, Контекст) Экспорт
Если Ответ <> КодВозвратаДиалога.Да Тогда
Возврат;
КонецЕсли;
ПодготовитьИзмененияНаСервере();
Модифицированность = Ложь;
Закрыть(СведенияОВладельце);
КонецПроцедуры
&НаКлиентеНаСервереБезКонтекста
Процедура ПриИзмененииВидаДокумента(Форма)
Если Форма.ДокументВид = "" Тогда
Форма.ДокументВид = "21";
КонецЕсли;
Элементы = Форма.Элементы;
Если Форма.ДокументВид = "21" Тогда
Элементы.ДокументНомер.Заголовок = НСтр("ru = 'Серия и номер'");
Элементы.ДокументНомер.Маска = "99 99 999999";
Элементы.ДокументКодПодразделения.Видимость = Истина;
Иначе
Элементы.ДокументНомер.Заголовок = НСтр("ru = 'Номер'");
Элементы.ДокументНомер.Маска = "";
Элементы.ДокументКодПодразделения.Видимость = Ложь;
Форма.ДокументКодПодразделения = "";
КонецЕсли;
Если Форма.ДокументВид = 91 Тогда
Форма.ДокументВид = "";
КонецЕсли;
КонецПроцедуры
&НаКлиенте
Процедура ПредставлениеТелефонаНачалоВыбора(Форма, Элемент, ДанныеВыбора, СтандартнаяОбработка, ИмяРеквизита, ЗаголовокФормы)
Если Не ОбщегоНазначенияКлиент.ПодсистемаСуществует("СтандартныеПодсистемы.КонтактнаяИнформация") Тогда
Возврат;
КонецЕсли;
МодульУправлениеКонтактнойИнформациейКлиент = ОбщегоНазначенияКлиент.ОбщийМодуль(
"УправлениеКонтактнойИнформациейКлиент");
ПараметрыФормы = МодульУправлениеКонтактнойИнформациейКлиент.ПараметрыФормыКонтактнойИнформации(
ВидКонтактнойИнформацииТелефон, ЭтотОбъект[ИмяРеквизита + "XML"], ЭтотОбъект[ИмяРеквизита]);
ПараметрыФормы.Вставить("Заголовок", ЗаголовокФормы);
МодульУправлениеКонтактнойИнформациейКлиент.ОткрытьФормуКонтактнойИнформации(ПараметрыФормы, Элемент);
КонецПроцедуры
&НаКлиенте
Процедура ПредставлениеТелефонаОчистка(Форма, Элемент, СтандартнаяОбработка, ИмяРеквизита)
Форма[ИмяРеквизита + "XML"] = "";
Форма[ИмяРеквизита] = "";
КонецПроцедуры
&НаКлиенте
Процедура ПредставлениеТелефонаОбработкаВыбора(Форма, Элемент, ВыбранноеЗначение, СтандартнаяОбработка, ИмяРеквизита)
СтандартнаяОбработка = Ложь;
Если ТипЗнч(ВыбранноеЗначение) <> Тип("Структура") Тогда
// Данные не изменены.
Возврат;
КонецЕсли;
Форма[ИмяРеквизита + "XML"] = ВыбранноеЗначение.КонтактнаяИнформация;
Форма[ИмяРеквизита] = ВыбранноеЗначение.Представление;
КонецПроцедуры
&НаСервере
Функция ПодготовитьИзмененияНаСервере()
Если ОбщегоНазначения.ПодсистемаСуществует("СтандартныеПодсистемы.КонтактнаяИнформация") Тогда
МодульУправлениеКонтактнойИнформацией = ОбщегоНазначения.ОбщийМодуль("УправлениеКонтактнойИнформацией");
ПараметрыВидаКонтактнойИнформации = МодульУправлениеКонтактнойИнформацией.ПараметрыАдресаЭлектроннойПочты();
ЭлектроннаяПочта = МодульУправлениеКонтактнойИнформацией.КонтактнаяИнформацияВJSON(
ЭлектроннаяПочта, ПараметрыВидаКонтактнойИнформации.Тип);
КонецЕсли;
ЗаполнитьЗначенияСвойств(СведенияОВладельце, ЭтотОбъект);
Если Пол = 1 Тогда
СведенияОВладельце.Пол = "Мужской";
ИначеЕсли Пол = 2 Тогда
СведенияОВладельце.Пол = "Женский";
Иначе
СведенияОВладельце.Пол = "";
КонецЕсли;
СведенияОВладельце.ВладелецТелефон = ВладелецТелефонXML;
Возврат Истина;
КонецФункции
&НаСервере
Функция ПроверитьСведенияОВладельце()
ОбработкаМодуль = Обработки.ЗаявлениеНаВыпускНовогоКвалифицированногоСертификата;
ЭтоИП = СведенияОВладельце.ЭтоИндивидуальныйПредприниматель;
ЭтоФЛ = СведенияОВладельце.ЭтоФизическоеЛицо;
ПроверяемыеРеквизиты = Новый Массив;
ОбработкаМодуль.ДобавитьРеквизитыДляПроверки(ЭтотОбъект,
ПроверяемыеРеквизиты, ОбработкаМодуль.РеквизитыВладельцаСертификата(ЭтотОбъект, ЭтоИП, ЭтоФЛ));
Возврат Не Обработки.ЗаявлениеНаВыпускНовогоКвалифицированногоСертификата.ПроверитьЗаполнениеРеквизитов(
ЭтотОбъект, ПроверяемыеРеквизиты, ЭтоИП, ЭтоФЛ, Ложь);
КонецФункции
&НаКлиентеНаСервереБезКонтекста
Процедура ЗаполнитьСведенияОВладельце(Форма, СведенияОВладельце)
ЗаполнитьЗначенияСвойств(Форма, СведенияОВладельце);
Форма.СведенияОВладельце = СведенияОВладельце;
Если Форма.СведенияОВладельце.Пол = "Мужской" Тогда
Форма.Пол = 1;
ИначеЕсли Форма.СведенияОВладельце.Пол = "Женский" Тогда
Форма.Пол = 2;
КонецЕсли;
ПриИзмененииВидаДокумента(Форма);
Элементы = Форма.Элементы;
ЭтоФизическоеЛицо = Форма.СведенияОВладельце.ЭтоФизическоеЛицо;
ЭтоЮридическоеЛицо = Не ЭтоФизическоеЛицо И Не Форма.СведенияОВладельце.ЭтоИндивидуальныйПредприниматель;
ЭтоИндивидуальныйПредприниматель = Форма.СведенияОВладельце.ЭтоИндивидуальныйПредприниматель;
Элементы.Должность.Видимость = ЭтоЮридическоеЛицо;
Элементы.Подразделение.Видимость = ЭтоЮридическоеЛицо;
Если Не ЭтоЮридическоеЛицо Тогда
Форма.Должность = "";
Форма.Подразделение = "";
КонецЕсли;
Элементы.ВладелецИНН.Видимость = Не ЭтоИндивидуальныйПредприниматель;
Элементы.ВладелецТелефон.Видимость = ЭтоФизическоеЛицо;
Элементы.ГруппаВладелецАдресРегистрации.Видимость = ЭтоФизическоеЛицо;
Если Не ЭтоФизическоеЛицо Тогда
Если ЭтоИндивидуальныйПредприниматель Тогда
Форма.ВладелецИНН = "";
КонецЕсли;
Форма.ВладелецТелефон = "";
Форма.ВладелецТелефонXML = "";
КонецЕсли;
Форма.Модифицированность = Ложь;
КонецПроцедуры
&НаСервереБезКонтекста
Функция ГражданствоСвойства(Гражданство)
Возврат Обработки.ЗаявлениеНаВыпускНовогоКвалифицированногоСертификата.ГражданствоСвойства(Гражданство);
КонецФункции
&НаКлиентеНаСервереБезКонтекста
Функция ТолькоЦифры(Строка)
ДлинаСтроки = СтрДлина(Строка);
ОбработаннаяСтрока = "";
Для НомерСимвола = 1 По ДлинаСтроки Цикл
Символ = Сред(Строка, НомерСимвола, 1);
Если Символ >= "0" И Символ <= "9" Тогда
ОбработаннаяСтрока = ОбработаннаяСтрока + Символ;
КонецЕсли;
КонецЦикла;
Возврат ОбработаннаяСтрока;
КонецФункции
#КонецОбласти | 12,266 | Module | bsl | ru | 1c enterprise | code | {"qsc_code_num_words": 852, "qsc_code_num_chars": 12266.0, "qsc_code_mean_word_length": 11.57276995, "qsc_code_frac_words_unique": 0.28521127, "qsc_code_frac_chars_top_2grams": 0.04198783, "qsc_code_frac_chars_top_3grams": 0.06490872, "qsc_code_frac_chars_top_4grams": 0.02079108, "qsc_code_frac_chars_dupe_5grams": 0.05699797, "qsc_code_frac_chars_dupe_6grams": 0.04969574, "qsc_code_frac_chars_dupe_7grams": 0.04969574, "qsc_code_frac_chars_dupe_8grams": 0.04969574, "qsc_code_frac_chars_dupe_9grams": 0.036714, "qsc_code_frac_chars_dupe_10grams": 0.036714, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00393485, "qsc_code_frac_chars_whitespace": 0.10908202, "qsc_code_size_file_byte": 12266.0, "qsc_code_num_lines": 446.0, "qsc_code_num_chars_line_max": 126.0, "qsc_code_num_chars_line_mean": 27.50224215, "qsc_code_frac_chars_alphabet": 0.89824305, "qsc_code_frac_chars_comments": 0.99143975, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.0, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 1, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ЗаявлениеНаВыпускНовогоКвалифицированногоСертификата/Forms/Информация/Ext/Form.xml | <?xml version="1.0" encoding="UTF-8"?>
<Form xmlns="http://v8.1c.ru/8.3/xcf/logform" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:dcscor="http://v8.1c.ru/8.1/data-composition-system/core" xmlns:dcssch="http://v8.1c.ru/8.1/data-composition-system/schema" xmlns:dcsset="http://v8.1c.ru/8.1/data-composition-system/settings" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Подтверждение информации</v8:content>
</v8:item>
</Title>
<AutoTitle>false</AutoTitle>
<AutoCommandBar name="ФормаКоманднаяПанель" id="-1">
<Autofill>false</Autofill>
</AutoCommandBar>
<Events>
<Event name="OnCreateAtServer">ПриСозданииНаСервере</Event>
</Events>
<ChildItems>
<UsualGroup name="ГруппаОшибка" id="55">
<Visible>false</Visible>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Ошибка</v8:content>
</v8:item>
</Title>
<Width>43</Width>
<Group>Vertical</Group>
<Behavior>Usual</Behavior>
<Representation>NormalSeparation</Representation>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="ГруппаОшибкаРасширеннаяПодсказка" id="56"/>
<ChildItems>
<LabelField name="Описание" id="79">
<DataPath>Описание</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Описание</v8:content>
</v8:item>
</Title>
<TitleLocation>None</TitleLocation>
<AutoMaxWidth>false</AutoMaxWidth>
<ContextMenu name="ОписаниеКонтекстноеМеню" id="80"/>
<ExtendedTooltip name="ОписаниеРасширеннаяПодсказка" id="81"/>
</LabelField>
<UsualGroup name="ГруппаТекстОшибки" id="63">
<Visible>false</Visible>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Подробно...</v8:content>
</v8:item>
</Title>
<TitleTextColor>style:ГиперссылкаЦвет</TitleTextColor>
<Behavior>Collapsible</Behavior>
<Collapsed>true</Collapsed>
<ExtendedTooltip name="ГруппаТекстОшибкиРасширеннаяПодсказка" id="64"/>
<ChildItems>
<InputField name="ТекстОшибки" id="52">
<DataPath>Текст</DataPath>
<ReadOnly>true</ReadOnly>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Текст</v8:content>
</v8:item>
</Title>
<TitleLocation>None</TitleLocation>
<AutoMaxWidth>false</AutoMaxWidth>
<AutoMaxHeight>false</AutoMaxHeight>
<HorizontalStretch>true</HorizontalStretch>
<VerticalStretch>true</VerticalStretch>
<MultiLine>true</MultiLine>
<ContextMenu name="ТекстОшибкиКонтекстноеМеню" id="53"/>
<ExtendedTooltip name="ТекстОшибкиРасширеннаяПодсказка" id="54"/>
</InputField>
</ChildItems>
</UsualGroup>
<LabelDecoration name="ПричиныТекст" id="86">
<Visible>false</Visible>
<AutoMaxWidth>false</AutoMaxWidth>
<Title formatted="false">
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Возможные причины</v8:content>
</v8:item>
</Title>
<ContextMenu name="ПричиныТекстКонтекстноеМеню" id="87"/>
<ExtendedTooltip name="ПричиныТекстРасширеннаяПодсказка" id="88"/>
<Events>
<Event name="URLProcessing">ПричиныТекстОбработкаНавигационнойСсылки</Event>
</Events>
</LabelDecoration>
<LabelDecoration name="РешенияТекст" id="89">
<Visible>false</Visible>
<AutoMaxWidth>false</AutoMaxWidth>
<Title formatted="false">
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Возможные причины</v8:content>
</v8:item>
</Title>
<ContextMenu name="РешенияТекстКонтекстноеМеню" id="90"/>
<ExtendedTooltip name="РешенияТекстРасширеннаяПодсказка" id="91"/>
<Events>
<Event name="URLProcessing">РешенияТекстОбработкаНавигационнойСсылки</Event>
</Events>
</LabelDecoration>
</ChildItems>
</UsualGroup>
<UsualGroup name="ГруппаЗаявление" id="23">
<Visible>false</Visible>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Заявление</v8:content>
</v8:item>
</Title>
<Group>Vertical</Group>
<Behavior>Usual</Behavior>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="ГруппаЗаявлениеРасширеннаяПодсказка" id="24"/>
<ChildItems>
<UsualGroup name="ТабличныйДокументГруппа" id="21">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Табличный документ группа</v8:content>
</v8:item>
</Title>
<Behavior>Usual</Behavior>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="ТабличныйДокументГруппаРасширеннаяПодсказка" id="22"/>
<ChildItems>
<SpreadSheetDocumentField name="ПодтверждаемаяИнформация" id="1">
<DataPath>ПодтверждаемаяИнформация</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Подтверждаемая информация</v8:content>
</v8:item>
</Title>
<TitleLocation>None</TitleLocation>
<Width>100</Width>
<AutoMaxWidth>false</AutoMaxWidth>
<Height>20</Height>
<AutoMaxHeight>false</AutoMaxHeight>
<ContextMenu name="ПодтверждаемаяИнформацияКонтекстноеМеню" id="2"/>
<ExtendedTooltip name="ПодтверждаемаяИнформацияРасширеннаяПодсказка" id="3"/>
</SpreadSheetDocumentField>
</ChildItems>
</UsualGroup>
<CheckBoxField name="СогласиеСПодтверждаемойИнформацией" id="16">
<DataPath>СогласиеСПодтверждаемойИнформацией</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Подтверждаю, что данные владельца не изменились с момента выпуска продлеваемого сертификата</v8:content>
</v8:item>
</Title>
<TitleLocation>Right</TitleLocation>
<TitleHeight>1</TitleHeight>
<GroupHorizontalAlign>Left</GroupHorizontalAlign>
<CheckBoxType>Auto</CheckBoxType>
<ContextMenu name="СогласиеСПодтверждаемойИнформациейКонтекстноеМеню" id="17"/>
<ExtendedTooltip name="СогласиеСПодтверждаемойИнформациейРасширеннаяПодсказка" id="18"/>
</CheckBoxField>
</ChildItems>
</UsualGroup>
<UsualGroup name="ГруппаСертификат" id="25">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Сертификат</v8:content>
</v8:item>
</Title>
<TitleFont ref="style:LargeTextFont" kind="StyleItem"/>
<Group>Vertical</Group>
<Behavior>Usual</Behavior>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="ГруппаСертификатРасширеннаяПодсказка" id="26"/>
<ChildItems>
<LabelDecoration name="ДекорацияИнструкция" id="43">
<AutoMaxWidth>false</AutoMaxWidth>
<Title formatted="true">
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content><b>Для передачи расписки в бумажном виде:
</>
1. Распечатайте и подпишите <link ПечатьСертификата>бланк квалифицированного сертификата</>.
2. Передайте бланк сертификата обслуживающему вас партнеру.</v8:content>
</v8:item>
</Title>
<ContextMenu name="ДекорацияИнструкцияКонтекстноеМеню" id="44"/>
<ExtendedTooltip name="ДекорацияИнструкцияРасширеннаяПодсказка" id="45"/>
<Events>
<Event name="URLProcessing">ДекорацияИнструкцияОбработкаНавигационнойСсылки</Event>
</Events>
</LabelDecoration>
<UsualGroup name="ГруппаПодтверждение" id="36">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Подтверждение</v8:content>
</v8:item>
</Title>
<Group>AlwaysHorizontal</Group>
<Behavior>Usual</Behavior>
<Representation>NormalSeparation</Representation>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="ГруппаПодтверждениеРасширеннаяПодсказка" id="37"/>
<ChildItems>
<CheckBoxField name="СогласиеСПодтверждаемойИнформацией1" id="27">
<DataPath>СогласиеСПодтверждаемойИнформацией1</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Согласие</v8:content>
</v8:item>
</Title>
<TitleLocation>None</TitleLocation>
<TitleHeight>2</TitleHeight>
<CheckBoxType>Auto</CheckBoxType>
<ContextMenu name="СогласиеСПодтверждаемойИнформацией1КонтекстноеМеню" id="28"/>
<ExtendedTooltip name="СогласиеСПодтверждаемойИнформацией1РасширеннаяПодсказка" id="29"/>
</CheckBoxField>
<LabelDecoration name="ДекорацияПодтверждение" id="30">
<AutoMaxWidth>false</AutoMaxWidth>
<Title formatted="true">
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Подтверждаю ознакомление с информацией, содержащейся в <link ПечатьСертификата>квалифицированном сертификате</>
</v8:content>
</v8:item>
</Title>
<TitleHeight>2</TitleHeight>
<ContextMenu name="ДекорацияПодтверждениеКонтекстноеМеню" id="31"/>
<ExtendedTooltip name="ДекорацияПодтверждениеРасширеннаяПодсказка" id="32"/>
<Events>
<Event name="URLProcessing">ДекорацияПодтверждениеОбработкаНавигационнойСсылки</Event>
</Events>
</LabelDecoration>
</ChildItems>
</UsualGroup>
<UsualGroup name="ГруппаПодтверждение1" id="92">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Подтверждение</v8:content>
</v8:item>
</Title>
<Group>AlwaysHorizontal</Group>
<Behavior>Usual</Behavior>
<Representation>NormalSeparation</Representation>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="ГруппаПодтверждение1РасширеннаяПодсказка" id="93"/>
<ChildItems>
<CheckBoxField name="СогласиеСПодтверждаемойИнформацией2" id="94">
<DataPath>СогласиеСПодтверждаемойИнформацией2</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Согласие</v8:content>
</v8:item>
</Title>
<TitleLocation>None</TitleLocation>
<TitleHeight>2</TitleHeight>
<CheckBoxType>Auto</CheckBoxType>
<ContextMenu name="СогласиеСПодтверждаемойИнформацией2КонтекстноеМеню" id="95"/>
<ExtendedTooltip name="СогласиеСПодтверждаемойИнформацией2РасширеннаяПодсказка" id="96"/>
</CheckBoxField>
<LabelDecoration name="ДекорацияПодтверждение1" id="97">
<Width>50</Width>
<Title formatted="true">
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Подтверждаю ознакомление с <link http://ca.1c.ru/rukovodstvo.pdf>руководством по обеспечению безопасности </>использования квалифицированной электронной подписи и средств квалифицированной электронной подписи
</v8:content>
</v8:item>
</Title>
<TitleHeight>2</TitleHeight>
<ContextMenu name="ДекорацияПодтверждение1КонтекстноеМеню" id="98"/>
<ExtendedTooltip name="ДекорацияПодтверждение1РасширеннаяПодсказка" id="99"/>
</LabelDecoration>
</ChildItems>
</UsualGroup>
</ChildItems>
</UsualGroup>
<UsualGroup name="ПодвалГруппа" id="10">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Подвал группа</v8:content>
</v8:item>
</Title>
<HorizontalStretch>true</HorizontalStretch>
<Group>Vertical</Group>
<Behavior>Usual</Behavior>
<United>false</United>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="ПодвалГруппаРасширеннаяПодсказка" id="11"/>
<ChildItems>
<UsualGroup name="ГруппаКомандыПодтверждения" id="19">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Команды подтверждения</v8:content>
</v8:item>
</Title>
<GroupHorizontalAlign>Right</GroupHorizontalAlign>
<Behavior>Usual</Behavior>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="ГруппаКомандыПодтвержденияРасширеннаяПодсказка" id="20"/>
<ChildItems>
<Button name="ФормаПодтверждаю" id="6">
<Type>UsualButton</Type>
<DefaultButton>true</DefaultButton>
<GroupHorizontalAlign>Right</GroupHorizontalAlign>
<CommandName>Form.Command.Подтверждаю</CommandName>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Подтверждаю</v8:content>
</v8:item>
</Title>
<ExtendedTooltip name="ФормаПодтверждаюРасширеннаяПодсказка" id="7"/>
</Button>
<Button name="Отмена" id="14">
<Type>UsualButton</Type>
<GroupHorizontalAlign>Right</GroupHorizontalAlign>
<CommandName>Form.StandardCommand.Cancel</CommandName>
<ExtendedTooltip name="ОтменаРасширеннаяПодсказка" id="15"/>
</Button>
</ChildItems>
</UsualGroup>
<UsualGroup name="ГруппаКомандыОшибки" id="82">
<Visible>false</Visible>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Команды ошибки</v8:content>
</v8:item>
</Title>
<GroupHorizontalAlign>Right</GroupHorizontalAlign>
<Behavior>Usual</Behavior>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="ГруппаКомандыОшибкиРасширеннаяПодсказка" id="83"/>
<ChildItems>
<Button name="Закрыть" id="84">
<Type>UsualButton</Type>
<CommandName>Form.StandardCommand.Close</CommandName>
<ExtendedTooltip name="ЗакрытьРасширеннаяПодсказка" id="85"/>
</Button>
</ChildItems>
</UsualGroup>
</ChildItems>
</UsualGroup>
</ChildItems>
<Attributes>
<Attribute name="ПодтверждаемаяИнформация" id="1">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Подтверждаемая информация</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type xmlns:mxl="http://v8.1c.ru/8.2/data/spreadsheet">mxl:SpreadsheetDocument</v8:Type>
</Type>
</Attribute>
<Attribute name="СогласиеСПодтверждаемойИнформацией" id="2">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Согласие с подтверждаемой информацией</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>xs:boolean</v8:Type>
</Type>
<FillCheck>ShowError</FillCheck>
</Attribute>
<Attribute name="Текст" id="3">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Текст</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>0</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
<Attribute name="Код" id="4">
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>0</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
<Attribute name="Описание" id="5">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Описание</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>0</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
<Attribute name="СогласиеСПодтверждаемойИнформацией1" id="6">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Согласие с подтверждаемой информацией</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>xs:boolean</v8:Type>
</Type>
<FillCheck>ShowError</FillCheck>
</Attribute>
<Attribute name="СогласиеСПодтверждаемойИнформацией2" id="7">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Согласие с подтверждаемой информацией</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>xs:boolean</v8:Type>
</Type>
<FillCheck>ShowError</FillCheck>
</Attribute>
</Attributes>
<Commands>
<Command name="Подтверждаю" id="1">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Подтверждаю</v8:content>
</v8:item>
</Title>
<Action>Подтверждаю</Action>
</Command>
</Commands>
<Parameters>
<Parameter name="ИнформацияЗаявления">
<Type/>
<KeyParameter>true</KeyParameter>
</Parameter>
<Parameter name="СодержаниеСертификата">
<Type/>
<KeyParameter>true</KeyParameter>
</Parameter>
<Parameter name="ОписаниеОшибки">
<Type/>
</Parameter>
<Parameter name="ДляПодтвержденияВЭлектронномВиде">
<Type>
<v8:Type>xs:boolean</v8:Type>
</Type>
</Parameter>
</Parameters>
</Form> | 16,680 | Form | xml | ru | xml | data | {"qsc_code_num_words": 1653, "qsc_code_num_chars": 16680.0, "qsc_code_mean_word_length": 6.69147005, "qsc_code_frac_words_unique": 0.20629159, "qsc_code_frac_chars_top_2grams": 0.03254679, "qsc_code_frac_chars_top_3grams": 0.02169786, "qsc_code_frac_chars_top_4grams": 0.03254679, "qsc_code_frac_chars_dupe_5grams": 0.47147636, "qsc_code_frac_chars_dupe_6grams": 0.44571015, "qsc_code_frac_chars_dupe_7grams": 0.42591086, "qsc_code_frac_chars_dupe_8grams": 0.39797487, "qsc_code_frac_chars_dupe_9grams": 0.37103336, "qsc_code_frac_chars_dupe_10grams": 0.35774342, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.03308743, "qsc_code_frac_chars_whitespace": 0.17919664, "qsc_code_size_file_byte": 16680.0, "qsc_code_num_lines": 475.0, "qsc_code_num_chars_line_max": 918.0, "qsc_code_num_chars_line_mean": 35.11578947, "qsc_code_frac_chars_alphabet": 0.77474253, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.71368421, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.17907674, "qsc_code_frac_chars_long_word_length": 0.10347722, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 1, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 1, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ЗаявлениеНаВыпускНовогоКвалифицированногоСертификата/Forms/Информация/Ext/Form/Module.bsl | ///////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2024, ООО 1С-Софт
// Все права защищены. Эта программа и сопроводительные материалы предоставляются
// в соответствии с условиями лицензии Attribution 4.0 International (CC BY 4.0)
// Текст лицензии доступен по ссылке:
// https://creativecommons.org/licenses/by/4.0/legalcode
///////////////////////////////////////////////////////////////////////////////////////////////////////
#Область ОбработчикиСобытийФормы
&НаСервере
Процедура ПриСозданииНаСервере(Отказ, СтандартнаяОбработка)
Если Параметры.ИнформацияЗаявления <> Неопределено Тогда
ПодтверждаемаяИнформация = Параметры.ИнформацияЗаявления;
Элементы.ГруппаОшибка.Видимость = Ложь;
Элементы.ГруппаЗаявление.Видимость = Истина;
Элементы.ГруппаСертификат.Видимость = Ложь;
ИначеЕсли Параметры.СодержаниеСертификата <> Неопределено Тогда
Элементы.ГруппаЗаявление.Видимость = Ложь;
Элементы.ГруппаСертификат.Видимость = Истина;
Элементы.ДекорацияИнструкция.Видимость = Не Параметры.ДляПодтвержденияВЭлектронномВиде;
Иначе
Заголовок = НСтр("ru = 'Информация об ошибке'");
Элементы.ГруппаКомандыОшибки.Видимость = Истина;
Элементы.ГруппаКомандыПодтверждения.Видимость = Ложь;
Элементы.ГруппаЗаявление.Видимость = Ложь;
Элементы.ГруппаСертификат.Видимость = Ложь;
КонецЕсли;
Если Параметры.ОписаниеОшибки <> Неопределено Тогда
ЗаполнитьЗначенияСвойств(ЭтотОбъект, Параметры.ОписаниеОшибки);
Элементы.ГруппаОшибка.Видимость = ЗначениеЗаполнено(Описание);
Элементы.ГруппаТекстОшибки.Видимость = ЗначениеЗаполнено(Текст);
Если ЗначениеЗаполнено(Код) Тогда
ОписаниеИзвестнойОшибки = ЭлектроннаяПодписьСлужебный.ОшибкаПоКлассификатору(Код);
ЭтоИзвестнаяОшибка = ОписаниеИзвестнойОшибки <> Неопределено;
Если ЭтоИзвестнаяОшибка Тогда
Элементы.ПричиныТекст.Видимость = ЗначениеЗаполнено(ОписаниеИзвестнойОшибки.Причина);
Элементы.РешенияТекст.Видимость = ЗначениеЗаполнено(ОписаниеИзвестнойОшибки.Решение);
ОбщегоНазначенияКлиентСервер.УстановитьСвойствоЭлементаФормы(Элементы,
"ПричиныТекст", "Заголовок", ОписаниеИзвестнойОшибки.Причина);
ОбщегоНазначенияКлиентСервер.УстановитьСвойствоЭлементаФормы(Элементы,
"РешенияТекст", "Заголовок", ОписаниеИзвестнойОшибки.Решение);
КонецЕсли;
КонецЕсли;
КонецЕсли;
СтандартныеПодсистемыСервер.СброситьРазмерыИПоложениеОкна(ЭтотОбъект);
КонецПроцедуры
#КонецОбласти
#Область ОбработчикиСобытийЭлементовШапкиФормы
&НаКлиенте
Процедура ПричиныТекстОбработкаНавигационнойСсылки(Элемент, НавигационнаяСсылкаФорматированнойСтроки, СтандартнаяОбработка)
ЭлектроннаяПодписьСлужебныйКлиент.ОбработатьНавигационнуюСсылкуКлассификатора(
Элемент, НавигационнаяСсылкаФорматированнойСтроки, СтандартнаяОбработка);
КонецПроцедуры
&НаКлиенте
Процедура РешенияТекстОбработкаНавигационнойСсылки(Элемент, НавигационнаяСсылкаФорматированнойСтроки, СтандартнаяОбработка)
ЭлектроннаяПодписьСлужебныйКлиент.ОбработатьНавигационнуюСсылкуКлассификатора(
Элемент, НавигационнаяСсылкаФорматированнойСтроки, СтандартнаяОбработка);
КонецПроцедуры
&НаКлиенте
Процедура ДекорацияПодтверждениеОбработкаНавигационнойСсылки(Элемент, НавигационнаяСсылкаФорматированнойСтроки, СтандартнаяОбработка)
СтандартнаяОбработка = Ложь;
ПечатьСертификата();
КонецПроцедуры
&НаКлиенте
Процедура ДекорацияИнструкцияОбработкаНавигационнойСсылки(Элемент, НавигационнаяСсылкаФорматированнойСтроки, СтандартнаяОбработка)
СтандартнаяОбработка = Ложь;
ПечатьСертификата();
КонецПроцедуры
#КонецОбласти
#Область ОбработчикиКомандФормы
&НаКлиенте
Процедура Подтверждаю(Команда)
Если Параметры.СодержаниеСертификата <> Неопределено Тогда
Если Не СогласиеСПодтверждаемойИнформацией1 Тогда
ОбщегоНазначенияКлиент.СообщитьПользователю(
НСтр("ru = 'Поставьте отметку о подтверждении'"), , "СогласиеСПодтверждаемойИнформацией1");
Возврат;
КонецЕсли;
Если Не СогласиеСПодтверждаемойИнформацией2 Тогда
ОбщегоНазначенияКлиент.СообщитьПользователю(
НСтр("ru = 'Поставьте отметку о подтверждении'"), , "СогласиеСПодтверждаемойИнформацией2");
Возврат;
КонецЕсли;
Иначе
Если Не СогласиеСПодтверждаемойИнформацией Тогда
ОбщегоНазначенияКлиент.СообщитьПользователю(
НСтр("ru = 'Поставьте отметку о подтверждении'"), , "СогласиеСПодтверждаемойИнформацией");
Возврат;
КонецЕсли;
КонецЕсли;
Закрыть(Истина);
КонецПроцедуры
#КонецОбласти
#Область СлужебныеПроцедурыИФункции
&НаКлиенте
Процедура ПечатьСертификата()
ИдентификаторПечатнойФормы = "СодержаниеСертификата";
НазваниеПечатнойФормы = НСтр("ru = 'Содержание сертификата'");
Если Не ОбщегоНазначенияКлиент.ПодсистемаСуществует("СтандартныеПодсистемы.Печать") Тогда
Параметры.СодержаниеСертификата.Показать(НазваниеПечатнойФормы);
Возврат;
КонецЕсли;
МодульУправлениеПечатьюКлиент = ОбщегоНазначенияКлиент.ОбщийМодуль("УправлениеПечатьюКлиент");
КоллекцияПечатныхФорм = МодульУправлениеПечатьюКлиент.НоваяКоллекцияПечатныхФорм(ИдентификаторПечатнойФормы);
ПечатнаяФорма = МодульУправлениеПечатьюКлиент.ОписаниеПечатнойФормы(КоллекцияПечатныхФорм, ИдентификаторПечатнойФормы);
ПечатнаяФорма.СинонимМакета = НазваниеПечатнойФормы;
ПечатнаяФорма.ТабличныйДокумент = Параметры.СодержаниеСертификата;
ПечатнаяФорма.ИмяФайлаПечатнойФормы = НазваниеПечатнойФормы;
ОбластиОбъектов = Новый СписокЗначений;
МодульУправлениеПечатьюКлиент.ПечатьДокументов(КоллекцияПечатныхФорм, ОбластиОбъектов);
КонецПроцедуры
#КонецОбласти | 5,501 | Module | bsl | ru | 1c enterprise | code | {"qsc_code_num_words": 345, "qsc_code_num_chars": 5501.0, "qsc_code_mean_word_length": 12.92463768, "qsc_code_frac_words_unique": 0.4057971, "qsc_code_frac_chars_top_2grams": 0.01749271, "qsc_code_frac_chars_top_3grams": 0.09015474, "qsc_code_frac_chars_top_4grams": 0.03431263, "qsc_code_frac_chars_dupe_5grams": 0.26306347, "qsc_code_frac_chars_dupe_6grams": 0.25005607, "qsc_code_frac_chars_dupe_7grams": 0.25005607, "qsc_code_frac_chars_dupe_8grams": 0.16438663, "qsc_code_frac_chars_dupe_9grams": 0.16438663, "qsc_code_frac_chars_dupe_10grams": 0.10854452, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00299461, "qsc_code_frac_chars_whitespace": 0.08943828, "qsc_code_size_file_byte": 5501.0, "qsc_code_num_lines": 144.0, "qsc_code_num_chars_line_max": 134.0, "qsc_code_num_chars_line_mean": 38.20138889, "qsc_code_frac_chars_alphabet": 0.88700339, "qsc_code_frac_chars_comments": 0.98091256, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.0, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 1, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0} |
2003100127/pypropel | docs/tutorial/protein/convert.md |
## 1. Combining single proteins into one
1.1 Command
``` py linenums="1"
import pypropel as pp
df = pp.convert.single2many(
fasta_fp=to('data/fasta/'),
prot_df=pd.DataFrame({
'prot': ['1aig', '1aij', '1xqf'],
'chain': ['L', 'L', 'A'],
}),
sv_fpn=to('data/fasta/s2m.fasta')
)
```
1.2 Results
=== "Output"
``` shell
>1aigL
ALLSFERKYRVPGGTLVGGNLFDFWVGPFYVGFFGVATFFFAALGIILIAWSAVLQGTWNPQLISVYPPALEYGLGGAPLAKGGLWQIITICATGAFVSWALREVEICRKLGIGYHIPFAFAFAILAYLTLVLFRPVMMGAWGYAFPYGIWTHLDWVSNTGYTYGNFHYNPAHMIAISFFFTNALALALHGALVLSAANPEKGKEMRTPDHEDTFFRDLVGYSIGTLGIHRLGLLLSLSAVFFSALCMIITGTIWFDQWVDWWQWWVKLPWWANIPGGING
>1aijL
ALLSFERKYRVPGGTLVGGNLFDFWVGPFYVGFFGVATFFFAALGIILIAWSAVLQGTWNPQLISVYPPALEYGLGGAPLAKGGLWQIITICATGAFVSWALREVEICRKLGIGYHIPFAFAFAILAYLTLVLFRPVMMGAWGYAFPYGIWTHLDWVSNTGYTYGNFHYNPAHMIAISFFFTNALALALHGALVLSAANPEKGKEMRTPDHEDTFFRDLVGYSIGTLGIHRLGLLLSLSAVFFSALCMIITGTIWFDQWVDWWQWWVKLPWWANIPGGING
>1xqfA
AVADKADNAFMMICTALVLFMTIPGIALFYGGLIRGKNVLSMLTQVTVTFALVCILWVVYGYSLAFGEGNNFFGNINWLMLKNIELTAVMGSIYQYIHVAFQGSFACITVGLIVGALAERIRFSAVLIFVVVWLTLSYIPIAHMVWGGGLLASHGALDFAGGTVVHINAAIAGLVGAYLPHNLPMVFTGTAILYIGWFGFNAGSAGTANEIAALAFVNTVVATAAAILGWIFGEWALRGKPSLLGACSGAIAGLVGVTPACGYIGVGGALIIGVVAGLAGLWGVTMPCDVFGVHGVCGIVGCIMTGIFAASSLGGVGFAEGVTMGHQLLVQLESIAITIVWSGVVAFIGYKLADLTVGLRVP
```
=== "Console"
``` py
27/07/2024 01:36:24 logger: =========>integrate 3 protein sequences
27/07/2024 01:36:24 logger: =========>save fasta to files
27/07/2024 01:36:24 logger: =========>save finished
```
## 2. Splitting into single proteins
1.1 Proteins from DrugBank
``` py linenums="1"
import pypropel as pp
df, df_new = pp.convert.many2single(
fasta_fpn=to('data/msa/experimental_protein.fasta'),
sv_fp=to('data/msa/')
)
```
1.2 Fasta from UniProt
Only extract human proteins by adding species as 'HUMAN'.
``` py linenums="1"
import pypropel as pp
df, df_new = pp.convert.many2single(
fasta_fpn=to('data/uniprotkb_KW_0812_AND_reviewed_true_AND_2024_12_08.fasta'),
mode='uniprot',
species='HUMAN',
sv_fp=to('data/')
)
```
=== "Output"
``` shell
There are 2888 fasta files in output directory to('data/msa/').
```
=== "Console"
``` py
27/07/2024 02:17:26 logger: =========>content of the dataframe:
Index(['fasta_ids', 'fasta_seqs', 'fasta_names', 'fasta_dpts', 'target_ids',
'drug_ids'],
dtype='object')
27/07/2024 02:17:26 logger: =========>target IDs:
0 P45059
1 P19113
2 Q9UI32
3 P00488
4 P35228
...
3272 P07766
3273 P09693
3274 P20963
3275 P03420
3276 P11209
Name: target_ids, Length: 3277, dtype: object
27/07/2024 02:17:26 logger: =========>start to split into single fasta files
27/07/2024 02:17:26 logger: =========># of proteins: 3277
27/07/2024 02:17:26 logger: =========># of proteins after deduplication: 2888
```
<figure markdown="span">
{ width="800" }
<figcaption><strong>Fig</strong> 1. Converted Fasta files</figcaption>
</figure>
## 3. Extract sequences from MSA
`pp.convert.msa2fas` can extract each homolog from a MSA to write in Fasta format.
:material-language-python: Python
``` py linenums="1"
import pypropel as pp
pp.convert.msa2fas(
input_fpn=to('data/msa/a2m/ET.a2m'),
output_fp=to('data/msa/a2m/'),
)
```
:material-note-multiple-outline: Output
``` text
28/07/2024 09:37:52 logger: =========>extract E to save
28/07/2024 09:37:52 logger: =========>extract UR100_A0A023PSW1 to save
28/07/2024 09:37:52 logger: =========>extract UR100_A0A088DKU1 to save
28/07/2024 09:37:52 logger: =========>extract UR100_A0A0K1Z002 to save
...
28/07/2024 09:37:52 logger: =========>extract UR100_U3M734 to save
28/07/2024 09:37:52 logger: =========>extract UR100_V5N926 to save
'Finished'
```
## 4. Convert bewteen MSA formats
`pp.convert.msa_reformat` can convert a MSA from one to another format, e.g., from fasta format to stockholm format.
:material-language-python: Python
``` py linenums="1"
import pypropel as pp
pp.convert.msa_reformat(
input_fpn=to('data/msa/a2m/ET.a2m'),
in_format='fasta',
output_fpn=to('data/msa/a2m/ET_converted.sto'),
out_format='stockholm',
)
```
:material-note-multiple-outline: Output
``` text
28/07/2024 09:53:30 logger: =========> convert from fasta to stockholm
'Finished'
```
## 5. Convert from PDB to FASTA
To perform this conversion, a `pp.str` module is used.
:material-language-python: Python
``` py linenums="1"
import pypropel as pp
prot_df = pd.DataFrame({
'prot': ['1aig', '1aij', '1xqf'],
'chain': ['L', 'L', 'A'],
})
pp.str.tofasta(
prot_df,
sv_fp=to('data/'),
pdb_path=to('data/pdb/pdbtm/'),
)
```
:material-note-multiple-outline: Output
``` text
28/07/2024 17:00:02 logger: ============>No0. protein 1aig chain L
D:\Programming\anaconda3\envs\prot\Lib\site-packages\Bio\PDB\PDBParser.py:395: PDBConstructionWarning: Ignoring unrecognized record 'END' at line 2234
warnings.warn(
28/07/2024 17:00:02 logger: ===============>successfully converted
28/07/2024 17:00:02 logger: ============>No1. protein 1aij chain L
D:\Programming\anaconda3\envs\prot\Lib\site-packages\Bio\PDB\PDBParser.py:395: PDBConstructionWarning: Ignoring unrecognized record 'END' at line 2234
warnings.warn(
28/07/2024 17:00:02 logger: ===============>successfully converted
28/07/2024 17:00:02 logger: ============>No2. protein 1xqf chain A
D:\Programming\anaconda3\envs\prot\Lib\site-packages\Bio\PDB\PDBParser.py:395: PDBConstructionWarning: Ignoring unrecognized record 'END' at line 2634
warnings.warn(
28/07/2024 17:00:03 logger: ===============>successfully converted
finished
``` | 5,810 | convert | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0010327, "qsc_doc_frac_words_redpajama_stop": 0.0605013, "qsc_doc_num_sentences": 57.0, "qsc_doc_num_words": 710, "qsc_doc_num_chars": 5810.0, "qsc_doc_num_lines": 190.0, "qsc_doc_mean_word_length": 5.64366197, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.01052632, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.3, "qsc_doc_entropy_unigram": 4.87863163, "qsc_doc_frac_words_all_caps": 0.0406223, "qsc_doc_frac_lines_dupe_lines": 0.46308725, "qsc_doc_frac_chars_dupe_lines": 0.36187793, "qsc_doc_frac_chars_top_2grams": 0.03144497, "qsc_doc_frac_chars_top_3grams": 0.02595458, "qsc_doc_frac_chars_top_4grams": 0.01746943, "qsc_doc_frac_chars_dupe_5grams": 0.41427502, "qsc_doc_frac_chars_dupe_6grams": 0.40978288, "qsc_doc_frac_chars_dupe_7grams": 0.4055403, "qsc_doc_frac_chars_dupe_8grams": 0.3865735, "qsc_doc_frac_chars_dupe_9grams": 0.35013726, "qsc_doc_frac_chars_dupe_10grams": 0.30846019, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 21.96837945, "qsc_doc_frac_chars_hyperlink_html_tag": 0.01290878, "qsc_doc_frac_chars_alphabet": 0.70689307, "qsc_doc_frac_chars_digital": 0.10309278, "qsc_doc_frac_chars_whitespace": 0.14853701, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
2003100127/pypropel | docs/tutorial/file/IO.md | ## 1. Get file names
We can get the file names in a specific directory using `pp.io.find_from_folder`.
:material-language-python: Python
``` py linenums="1"
import pypropel as pp
df = pp.io.find_from_folder(
file_path=to('data/ex/xml/'),
suffix='.xml',
flag=1,
sv_fpn=None,
# sv_fpn=to('data/find.txt'),
)
print(df)
```
:material-note-multiple-outline: Output
``` text
29/07/2024 02:31:43 logger: ======>0. Find file (like "Q86V85"): 1a11
29/07/2024 02:31:43 logger: ======>1. Find file (like "Q86V85"): 1a91
29/07/2024 02:31:43 logger: ======>2. Find file (like "Q86V85"): 1afo
...
29/07/2024 02:31:43 logger: ======>8954. Find file (like "Q86V85"): 8wbx
29/07/2024 02:31:43 logger: ======>8955. Find file (like "Q86V85"): 8wd6
0
0 1a11
1 1a91
2 1afo
3 1aig
4 1aij
... ...
8951 8u5b
8952 8wam
8953 8wba
8954 8wbx
8955 8wd6
[8956 rows x 1 columns]
```
!!! info
**`flag`**: which method used to suit file names. Default value: 1
* 1 - a general function for finding the prefixes of files
* 2 - separate protein names and chains from file prefixes, like 1atz_A, PDBTM format
* 3 - separate protein names and chains from file prefixes, like 1atzA
* 4 - separate protein names and multiple chains from file prefixes, like 1atz_ABCD
* 5 - separate protein names and multiple chains from file prefixes with regular expression
## 2. Different and repeated files between 1D lists
To identify different and repeated files between two lists `data/pdbtm_alpha_10.02.2023.txt` and `df[0]`, we can do
:material-language-python: Python
``` py linenums="1"
import pypropel as pp
df_lg = pfreader().generic(to('data/pdbtm_alpha_10.02.2023.txt'), df_sep='\t')
df_lg[1], df_lg[2] = zip(*df_lg[0].apply(lambda x: (x.split("_")[0], x.split("_")[1])))
series_prot_names = pd.Series(df_lg[1].unique())
pds_diff, psd_rept = pp.io.list_diff_unipartite(
pds_lg=series_prot_names,
pds_sm=df[0],
sv_diff_fpn=to('data/diff.txt'),
sv_rept_fpn=to('data/repeat.txt'),
)
print(pds_diff)
print(psd_rept)
```
:material-note-multiple-outline: Output
``` text
# print(pds_diff)
Series([], dtype: object)
# print(psd_rept)
0 3zmj
1 5mur
2 7f92
3 7zdv
4 2fyn
...
8814 8a1v
8815 7wu9
8816 5iou
8817 3rce
8818 7f1s
Length: 8819, dtype: object
```
In addition, we can find newly added proteins between two versions of PDBTM protein lists.
:material-language-python: Python
``` py linenums="1"
import pypropel as pp
df_lg = pfreader().generic(to('data/pdbtm_alpha_10.02.2023.txt'), df_sep='\t')
df_sm = pfreader().generic(to('data/pdbtm_alpha_06.30.2023.txt'), df_sep='\t')
pds_diff, psd_rept = pp.io.list_diff_unipartite(
pds_lg=df_lg[0],
pds_sm=df_sm[0],
sv_diff_fpn=to('data/diff.txt'),
sv_rept_fpn=to('data/repeat.txt'),
)
print(pds_diff)
print(psd_rept)
```
:material-note-multiple-outline: Output
``` text
0 6s7o_A
1 8ha2_A
2 8j5p_P
3 1izl_A
4 8p3w_H
...
2951 8t6u_A
2952 8hju_B
2953 6zjy_H
2954 4qkm_B
2955 6hjr_D
Length: 2956, dtype: object
0 5va3_A
1 8f4f_T
2 6yto_F
3 4knf_D
4 2xq3_A
...
33371 6nt7_B
33372 6jlo_Z
33373 8h9j_8
33374 6idf_E
33375 5jtg_E
Length: 33376, dtype: object
```
## 3. Different and repeated files between 2D lists
We can get the list of Different and repeated files between 2D lists. It drops duplicates by considering two columns in lists.
:material-language-python: Python
``` py linenums="1"
import pypropel as pp
df = pd.DataFrame()
df1 = pd.DataFrame()
df[0], df[1] = zip(*pds_diff.apply(lambda x: (x.split("_")[0], x.split("_")[1])))
df1[0], df1[1] = zip(*df_lg[0].apply(lambda x: (x.split("_")[0], x.split("_")[1])))
print(df)
print(df1)
df_differ, df_repeat = pp.io.list_diff_bipartite(
pds_lg_1=df[0],
pds_lg_2=df[1],
pds_sm_1=df1[0],
pds_sm_2=df1[1],
sv_diff_fpn=to('data/diff1.txt'),
sv_rept_fpn=to('data/repeat1.txt'),
)
print(df_differ)
print(df_repeat)
```
:material-note-multiple-outline: Output
``` text
# df_differ
Empty DataFrame
Columns: []
Index: []
# df_repeat
0 1
0 8t2v A
1 6b8h 3
2 8p3s H
3 7thu K
4 8bx5 C
... ... ..
2951 7a24 V
2952 6vam B
2953 8go3 C
2954 8c29 n
2955 6psn F
[2956 rows x 2 columns]
```
# 4. move, copy, remove, rename, create
PyPropel also provides a few `move`, `copy`, `remove`, `rename`, `create` operations on a list of IDs rendered in pandas Series format.
```text
move_files
copy_files
delete_files
rename_file_suffix
rename_file_prefix
makedir
```
Below shows an example that a list of proteins are moved from `data/isoform/` to `data/isoform/transmembrane/`.
:material-language-python: Python
``` py linenums="1"
df_cano = pp.io.find_from_folder(
file_path='data/canonical/',
suffix='.fasta',
flag=1,
sv_fpn=None,
# sv_fpn=to('data/find.txt'),
)
print(df_cano)
df_isof = pp.io.find_from_folder(
file_path='data/isoform/',
suffix='.fasta',
flag=1,
sv_fpn=None,
# sv_fpn=to('data/find.txt'),
)
print(df_isof)
df_isof['canonical'] = df_isof[0].apply(lambda x: x.split('-')[0])
print(df_isof)
df_isof_tm = df_isof.loc[df_isof['canonical'].isin(df_cano[0].values)]
print(df_isof_tm)
pp.io.move_files(
pds_mv=df_isof_tm[0],
mv_from_fp='data/isoform/',
mv_to_fp='data/isoform/transmembrane/',
suffix='.fasta',
)
``` | 5,510 | IO | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.08371736, "qsc_doc_num_sentences": 86.0, "qsc_doc_num_words": 918, "qsc_doc_num_chars": 5510.0, "qsc_doc_num_lines": 248.0, "qsc_doc_mean_word_length": 3.81045752, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.02016129, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.28649237, "qsc_doc_entropy_unigram": 5.03948407, "qsc_doc_frac_words_all_caps": 0.01382488, "qsc_doc_frac_lines_dupe_lines": 0.34975369, "qsc_doc_frac_chars_dupe_lines": 0.24975282, "qsc_doc_frac_chars_top_2grams": 0.02401372, "qsc_doc_frac_chars_top_3grams": 0.02315609, "qsc_doc_frac_chars_top_4grams": 0.04002287, "qsc_doc_frac_chars_dupe_5grams": 0.50228702, "qsc_doc_frac_chars_dupe_6grams": 0.44825615, "qsc_doc_frac_chars_dupe_7grams": 0.40966266, "qsc_doc_frac_chars_dupe_8grams": 0.3273299, "qsc_doc_frac_chars_dupe_9grams": 0.31017724, "qsc_doc_frac_chars_dupe_10grams": 0.24442539, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 14.52394366, "qsc_doc_frac_chars_hyperlink_html_tag": 0.0, "qsc_doc_frac_chars_alphabet": 0.68892398, "qsc_doc_frac_chars_digital": 0.10015791, "qsc_doc_frac_chars_whitespace": 0.19546279, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
2003100127/pypropel | docs/tutorial/Example/Pipeline-1-Interaction-Site-Prediction.md | We walk you through a detailed, hands-on tutorial in **predicting interaction sites in transmembrane proteins** using **PyPropel** in tandem with **TMKit**, an external tool specialising in sequence analysis of transmembrane proteins.
You will specifically see how **PyPropel** and **TMKit** can batch pre-process the structures of 10,971 protein complexes files (including structures of 58,060 protein chains). Finally, we will put the generated data for machine learning using **scikit-learn**.
It includes 5 modules:
!!! tip "Features"
* :material-package-variant: Pre-processing
* :material-pencil-box-multiple-outline: Feature extraction
* :fontawesome-solid-code-pull-request: Machine learning with random forest
* :fontawesome-solid-code-pull-request: Machine learning evaluation metrics
* :material-chart-scatter-plot: Visualisation of evaluation metrics
Let's first import both of the libraries.
:material-language-python: Python
``` py linenums="1"
import pypropel as pp
import tmkit as tmk
```
Additionally, we will also use **NumPy** and **Pandas** for quickly processing data.
:material-language-python: Python
``` py linenums="1"
import numpy as np
import pandas as pd
```
## 1. Pre-processing
### 1.1 Downloading a PDBTM database
Then, we can download an up-to-date list of transmembrane proteins from the PDBTM database (version: **`12.06.2024`**). Here, we also attach other two lists (version: **`06.30.2023`** and **`10.02.2023`**), which were previously downloaded. The latest version of transmembrane proteins can be found [here](https://pdbtm.unitmp.org/data/PDBTM/data/pdbtm_alpha.txt).
:material-language-python: Python
``` py linenums="1"
pdb_fpn_dict = {
'06.30.2023': 'data/database/pdbtm_alpha_06.30.2023.txt',
'10.02.2023': 'data/database/pdbtm_alpha_10.02.2023.txt',
'12.06.2024': 'data/database/pdbtm_alpha_12.06.2024.txt',
}
```
Check whether the latest list of proteins have been duplicated between one another due to technical errors. Then, save the deduplicated list of proteins (if you use version **`12.06.2024`** for example).
:material-language-python: Python
``` py linenums="1"
df_latest = df_latest.drop_duplicates()
pp.io.write(
sv_fpn='data/database/pdbtm_alpha_12.06.2024.txt',
df=df_latest,
df_sep='\t',
header=None,
)
```
We read every two latest lists for getting the updated proteins.
:material-language-python: Python
``` py linenums="1"
df_old = pp.io.read(
df_fpn=pdb_fpn_dict['06.30.2023'],
# df_fpn=pdb_fpn_dict['10.02.2023'],
# df_fpn=pdb_fpn_dict['12.06.2024'],
df_sep='\t',
header=None,
)
print(df_old)
df_latest = pp.io.read(
# df_fpn=pdb_fpn_dict['06.30.2023'],
# df_fpn=pdb_fpn_dict['10.02.2023'],
df_fpn=pdb_fpn_dict['12.06.2024'],
df_sep='\t',
header=None,
)
print(df_latest)
```
Find the portion of proteins updated in the latest version of PDBTM. Then, store it as `prot_series`.
:material-language-python: Python
``` py linenums="1"
pds_diff, psd_rept = pp.io.list_diff_unipartite(
pds_lg=df_latest[0],
pds_sm=df_old[0],
# sv_diff_fpn='data/database/diff.txt',
# sv_rept_fpn='data/database/repeat.txt',
sv_diff_fpn=None,
sv_rept_fpn=None,
)
print(pds_diff)
print(psd_rept)
df = pd.DataFrame()
df['prot'] = pds_diff.apply(lambda x: x[:4])
df['chain'] = pds_diff.apply(lambda x: x[-1:])
df['ij'] = df.apply(lambda x: x['prot'] + '.' + x['chain'], axis=1)
print(df)
prot_series = pd.Series(df['prot'].unique())
print(prot_series)
```
Retrive PDBTM structures and store them in `data/pdbtm/cplx/`. As the protein structures are transposed from RCSB PDB files, it is necessary to denote `kind` as `tr`.
:material-language-python: Python
``` py linenums="1"
tmk.seq.retrieve_pdb_from_pdbtm(
prot_series=prot_series,
kind='tr',
sv_fp='data/pdbtm/cplx/',
)
```
Retrive PDBTM XML files (useful for getting topological information) and store them in `data/xml/`.
:material-language-python: Python
``` py linenums="1"
tmk.seq.retrieve_xml_from_pdbtm(
prot_series=prot_series,
sv_fp='data/xml/',
)
```
### 1.2 Cleaning structural data
We can go on with how we extract the structure of each chain from a protein complex structure stored in PDB.
There are two ways to get the list of chains with respect to their proteins.
*Option 1*.
Fetch all structures gathered accumulatively from updated list. This is because in each updated list, some proteins from previous lists go away yet have been downloaded. We need to include those that go away.
:material-language-python: Python
``` py linenums="1"
df = pp.io.find_from_folder(
file_path='data/pdbtm/cplx/',
suffix='.pdb',
flag=1,
# sv_fpn=None,
sv_fpn='data/cplx.txt',
)
print(df)
```
Then, we can use `pp.str.chains` to get all chains from the complex structure of each protein. After then, we save the list.
``` py linenums="1"
a = []
for i in df.index:
try:
chains = pp.str.chains(
pdb_fp='data/pdbtm/cplx/',
pdb_name=df[0][i],
)
print(i, df[0][i], chains)
for j in chains:
a.append([df[0][i], j])
except:
continue
pp.io.write(
df=pd.DataFrame(a),
sv_fpn='data/database/pdbtm_alpha_accumulated.txt',
df_sep='\t',
)
df = pp.io.read(
df_fpn='data/database/pdbtm_alpha_accumulated.txt',
df_sep='\t',
header=None,
).rename(columns={0: 'prot', 1: 'chain'})
print(df)
```
*Option 2*.
Get chains from all previously gathered lists of proteins by getting the union of all of them. We can do like this.
!!! warning
Make sure each time we have two headers `prot` and `chain` in the dataframe (`df`) for indicating proteins and chains. Because other functions might need this information as required.
:material-language-python: Python
``` py linenums="1"
df = pd.concat([pp.io.read(i) for i in [*pdb_fpn_dict.values()]]).drop_duplicates().reset_index(drop=True)
df['prot'] = pds_diff.apply(lambda x: x[:4])
df['chain'] = pds_diff.apply(lambda x: x[-1:])
print(df)
```
Then, use the `pp.dataset.download_pack` function to extract the structures of all chains from the structures of all protein complexes. To this end, we need to specify where complexes are located (e.g. `data/pdbtm/cplx/`) and where structures of all chains are to be stored (e.g. `data/pdb/`).
!!! note
Please note that `pp.dataset.download_pack` will also refine the structures of all chains (see [this page](https://2003100127.github.io/pypropel/tutorial/protein/IO/structure/)). It includes reformatting structures and removing `HETATM`. It will also tell you if the sequence of a protein chain stored in `XML` file is the same as it is in the PDB file. It will extract the sequence to be stored in the `FASTA` format.
:material-language-python: Python
``` py linenums="1"
pp.dataset.download_pack(
prot_df=df,
pdb_cplx_fp='data/pdbtm/cplx/',
pdb_fp='data/pdb/',
xml_fp='data/xml/',
fasta_fp='data/fasta/',
)
```
You will see the files as shown in the following screenshoots.
<figure markdown="span">
{ width="400" }
<figcaption><strong>Fig</strong>. Split Fasta files per chain</figcaption>
</figure>
<figure markdown="span">
{ width="400" }
<figcaption><strong>Fig</strong>. Downloaded XML files</figcaption>
</figure>
<figure markdown="span">
{ width="400" }
<figcaption><strong>Fig</strong>. Split PDB files per chain</figcaption>
</figure>
### 1.3 Quality control of data
After these files above are obtained, everything is all set before we exactly work on quality control (QC) of the sequence, topological, and structural data.
We can use `tmk.qc.integrate` or `tmk.qc.obtain_single` to obtain the metrics that we can use to remove or retain protein chains for analysis.
For simplicity, we showcase the generation of each metric based on a metric given. We are interested in `nchain`, `rez`, `met`, `mthm`, `seq`, corresponding to the numebr of chains in a protein complex, resolution, resolving experimental method, number of transmembrane helices, and amino acid sequences. Apart from these, we can also order the generation of something extra by using `bio_name`, `head`, and `desc` for how the protein is named biologically and what is the head of the PDB file, and general description of the protein strucuture.
:material-language-python: Python
``` py linenums="1"
df_qc_sgl = tmk.qc.obtain_single(
df_prot=df_prot,
pdb_cplx_fp=to('data/ex/pdbtm/'),
fasta_fp=to('data/ex/fasta/'),
xml_fp=to('data/ex/xml/'),
sv_fp=to('data/ex/'),
metric='nchain',
)
print(df_qc_sgl)
# df_integ = tmk.qc.integrate(
# df_prot=df,
# pdb_cplx_fp='data/pdbtm/cplx/',
# fasta_fp='data/fasta/',
# xml_fp='data/xml/',
# sv_fp='data/qc/',
# metrics=[
# 'nchain',
# # 'rez',
# # 'met',
# # 'mthm',
# # 'seq',
#
# # 'bio_name', 'head', 'desc',
# ],
# )
# print(df_integ)
```
Then, you will see
<figure markdown="span">
{ width="600" }
<figcaption><strong>Fig</strong>. Files of QC metrics</figcaption>
</figure>
Then, we can do a separate coding procedure for integrating these metrics together within a single file by using the following codes.
:material-language-python: Python
``` py linenums="1"
qc_fpn_dict = {
'met': 'data/qc/wb_met_c.txt',
'mthm': 'data/qc/wb_mthm_c.txt',
'nchain': 'data/qc/wb_nchain_c.txt',
'rez': 'data/qc/wb_rez_c.txt',
'bio_name': 'data/qc/wb_bio_name_c.txt',
}
df = pp.io.read(
df_fpn='data/qc/wb_seq_c.txt',
df_sep='\t',
header=None,
).rename(
columns={
0: 'prot',
1: 'chain',
2: 'prot_mark',
3: 'seq',
4: 'len_seq',
}
)
print(df)
for metric, fpn in qc_fpn_dict.items():
df[metric] = pp.io.read(
df_fpn=fpn,
)[3]
print(df)
pp.io.write(
df=df,
sv_fpn='data/qc/integrate.xlsx',
header=True,
kind='excel',
)
```
### 1.4 Integrtation of QC metrics
<figure markdown="span">
{ width="600" }
<figcaption><strong>Fig</strong>. vignette of integrtated QC metrics</figcaption>
</figure>
But you should see the problem now, for metrics `met` and `nchain`, blanks remain not filled out. This is because, we generate them at the protein complex level rather than protein chain level. But within the metric file, proteins are rendered at the protein chain levels. Thus, we need to step up the fill of the two metrics in the table. We can make it by
:material-language-python: Python
``` py linenums="1"
df = pp.io.read(
df_fpn='data/qc/integrate.xlsx',
sheet_name='Sheet1',
header=0,
kind='excel',
)
print(df)
df_ = df.dropna(subset=['met'])[['prot', 'met']]
df_nchain = pd.read_csv(
'data/qc/wb_nchain_c.txt',
header=None,
sep='\t',
).dropna()
nchain_map = pd.Series(df_nchain[3].values, index=df_nchain[0]).to_dict()
met_map = pd.Series(df_['met'].values, index=df_['prot']).to_dict()
# print(met_map)
# print(nchain_map)
met_keys = [*met_map.keys()]
nchain_keys = [*nchain_map.keys()]
import numpy as np
df['nchain'] = df['prot'].apply(lambda x: nchain_map[x] if x in nchain_keys else np.nan)
df['met1'] = df['prot'].apply(lambda x: met_map[x] if x in met_keys else np.nan)
print(df.prot.unique().shape[0])
df.to_excel('data/qc/integrate1.xlsx',)
```
This results in a file called `integrate1.xlsx`. We can see the blanks have all been filled out for the two metrics.
<figure markdown="span">
{ width="600" }
<figcaption><strong>Fig</strong>. Stepping up the fill area of `met` and `nchain`</figcaption>
</figure>
### 1.5 Generating datasets
Next, we can screen protein chains by setting restrictions, thus generating a dataset.
:material-language-python: Python
``` py linenums="1"
df = pp.io.read(
'data/qc/integrate1.xlsx',
sheet_name='Sheet1',
header=0,
kind='excel',
)
print(df)
print(df.columns)
df = df.loc[
(df['rez'] < 3.5)
& (df['mthm'] >= 2)
# & (df['len_seq'] >= 100)
& (df['len_seq'] < 1000)
& (df['met1'] == 'x-ray diffraction')
& (df['nchain'] >= 2)
]
print(df.shape[0])
print(df.prot.unique().shape[0])
print(df)
pp.io.write(
df=df,
sv_fpn='data/qc/dataset.xlsx',
df_sep='\t',
header=True,
kind='excel',
)
```
This results in a dataset of 7148 protein chains screened for use.
<figure markdown="span">
{ width="600" }
<figcaption><strong>Fig</strong>. Dataset</figcaption>
</figure>
For all of these protein complexes with at least two protein chains, we need to calculate if protein chains within the complexes are spatially and physically in interaction. This information will be treated as the labels of each protein site. We can achieve this with two ways. We can rekcon two protein chains as being in interaction if their distance is within an angstrom (Å) of 5.5.
1. Batch processing them on cloud.
:material-language-python: Python
``` py linenums="1"
df = pfreader().generic(df_fpn=to('data/qc/dataset.xlsx'), header=0)
prots = df.prot.unique()
param_config = {
'pdb_fp': '-fp',
'pdb_fn': '-fn',
'sv_fp': '-op',
}
value_config = {
'tool_fp': '/path/to/your/conda environment/python',
'script_fpn': './Complex.py',
'pdb_fp': '/path/to/protein complex files/',
'sv_fp': '/path/to/save/results/',
}
for key, prot in enumerate(prots):
order_list = [
value_config['tool_fp'],
value_config['script_fpn'],
param_config['pdb_fp'], value_config['pdb_fp'],
param_config['pdb_fn'], prot,
param_config['sv_fp'], value_config['sv_fp'],
]
pp.dist.cloud_check(
order_list=order_list,
job_fp='/path/to/save/job files/',
job_fn=str(key),
cpu=2,
memory=10,
method='script',
submission_method='sbatch',
)
```
2. (Recommend) Or, you can still generate all of them on your own computer by the following code. This might take long to take all. You can simply extract a small portion of these proteins for training purposes. Then, if you famililarise them, you could perform all of these operations on cloud.
:material-language-python: Python
``` py linenums="1"
df = pp.io.read(df_fpn=to('data/qc/dataset.xlsx'), header=0, kind='excel')
prots = df.prot.unique()
for key, prot in enumerate(prots):
pp.dist.check_chain_complex(
pdb_fp=to('data/pdb/complex/pdbtm/'),
prot_name='1aij',
sv_fp=to('data/pdb/complex/pdbtm/'),
thres=5.5,
)
```
This will result in a lot of text files per protein complex.
<figure markdown="span">
{ width="600" }
<figcaption><strong>Fig</strong>. Files for checking if chains in a complex are in interaction</figcaption>
</figure>
Then, we can merge them all as a `merge.txt` file for easily accessing the information.
:material-language-python: Python
``` py linenums="1"
df = pp.io.find_from_folder(
file_path='data/ccheck/',
suffix='.ccheck',
flag=1,
sv_fpn=None,
# sv_fpn=to('data/find.txt'),
)
print(df)
df_c = pd.DataFrame()
for i, file_i in enumerate(df[0].values):
try:
tt = pp.io.read(
df_fpn='data/ccheck/' + str(file_i) + '.ccheck',
df_sep='\t',
header=None,
)
df_c = pd.concat([df_c, tt], axis=0).reset_index(drop=True)
except:
continue
print(df_c)
pp.io.write(
df=df_c,
sv_fpn='data/ccheck/merge.txt',
df_sep='\t',
)
```
After this, we can get the overlap of both the proteins screen from QC analysis and the proteins that are in interaction. We can do the following. Then save it as `dataset_post_ccheck.xlsx`.
:material-language-python: Python
``` py linenums="1"
df_dataset = pp.io.read(
df_fpn='data/qc/dataset.xlsx',
df_sep='\t',
header=0,
kind='excel',
)
df_ccheck = pp.io.read(df_fpn='data/ccheck/merge.txt', header=None)
df_ccheck['prot_mark'] = df_ccheck.apply(lambda x: x[0] + x[1], axis=1)
print(df_ccheck)
df = df_dataset.merge(
df_ccheck,
on=['prot_mark'],
)
print(df)
df = df.drop_duplicates(subset=['prot_mark'])
pp.io.write(
df=df,
sv_fpn='data/qc/dataset_post_ccheck.xlsx',
df_sep='\t',
header=True,
kind='excel',
)
print(df)
```
<figure markdown="span">
{ width="600" }
<figcaption><strong>Fig</strong>. Final dataset after confirming whether they are in interaction</figcaption>
</figure>
Now, you have the dataset for machine learning!
## 2. Feature extraction
We can start feature extraction for these protein chains. But for better illustration, we only take two example protein chains, that is, protein `1xqf` chain `A` (for training a machine learning model) and protein `1aij` chain `L` (for testing the model).
First, we can generate the label `y`.
Calculate the distance first.
:material-language-python: Python
``` py linenums="1"
pp.dist.complex_calc_all(
pdb_fp='data/pdbtm/cplx/',
prot_name='1aij',
prot_chain='L',
method='heavy',
sv_fp='data/dist/',
)
pp.dist.complex_calc_all(
pdb_fp='data/pdbtm/cplx/',
prot_name='1xqf',
prot_chain='A',
method='heavy',
sv_fp='data/dist/',
)
```
<figure markdown="span">
{ width="300" }
<figcaption><strong>Fig</strong>. Distance of amino acids in `1xqfA`</figcaption>
</figure>
Labelling them according to the distance then.
:material-language-python: Python
``` py linenums="1"
df_train = pp.dist.labelling(
dist_fp='data/dist/',
prot_name='1xqf',
file_chain='A',
cutoff=5.5,
)
print(df_train)
df_test = pp.dist.labelling(
dist_fp='data/dist/',
prot_name='1aij',
file_chain='L',
cutoff=5.5,
)
print(df_test)
```
`is_contact` shows the label of each amino acid site.
:material-note-multiple-outline: Output
``` text
19/12/2024 15:58:15 logger: ================>Labeling data...
19/12/2024 15:58:15 logger: ================>Time to label distances 1xqf A: 0.006977558135986328s.
fasta_id aa pdb_id dist_1 dist_2 is_contact
0 1 A 3 11.391303 11.278594 0
1 2 V 4 7.974939 9.416605 0
2 3 A 5 7.700507 6.696266 0
3 4 D 6 3.313506 5.633641 1
4 5 K 7 6.614738 3.045629 1
.. ... .. ... ... ... ...
357 358 G 382 35.826157 13.476321 0
358 359 L 383 32.409570 14.432422 0
359 360 R 384 32.183815 14.324697 0
360 361 V 385 28.519402 10.922935 0
361 362 P 386 32.594830 10.024420 0
[362 rows x 6 columns]
19/12/2024 15:58:15 logger: ================>Labeling data...
19/12/2024 15:58:15 logger: ================>Time to label distances 1aij L: 0.0030066967010498047s.
fasta_id aa pdb_id dist_1 dist_2 is_contact
0 1 A 1 3.359507 3.820152 1
1 2 L 2 4.832898 2.840869 1
2 3 L 3 3.621853 3.450767 1
3 4 S 4 6.046180 2.841488 1
4 5 F 5 3.438960 3.688982 1
.. ... .. ... ... ... ...
276 277 G 277 2.910155 43.177975 1
277 278 G 278 3.036153 40.448544 1
278 279 I 279 2.979592 36.381110 1
279 280 N 280 2.980944 38.922234 1
280 281 G 281 3.484761 42.785560 1
[281 rows x 6 columns]
```
To generate `X`, we extract features for the two proteins. But for demenstration here, we only involve amino acid properties in this process. There are 23 properties available to use, including
:material-language-python: Python
``` py linenums="1"
property = [
"positive",
"negative",
"charged",
"polar",
"aliphatic",
"aromatic",
"hydrophobic",
"small",
"active",
"weight",
"pI",
"solubility",
"tm",
"pka",
"pkb",
"hydrophilicity",
"hydrophobicity",
"fet",
"hydration",
"signal",
"volume",
"polarity",
"composition",
]
```
Then, we mainly use the `TMKit` tool to generate these features.
:material-language-python: Python
``` py linenums="1"
seq_train = tmk.seq.read_from_fasta(
fasta_fpn='./data/fasta/1xqfA.fasta'
)
# print(seq_train)
seq_test = tmk.seq.read_from_fasta(
fasta_fpn='./data/fasta/1aijL.fasta'
)
# print(seq_test)
pos_list_train = tmk.seq.pos_list_single(
len_seq=len(seq_train),
seq_sep_superior=None,
seq_sep_inferior=0,
)
# print(pos_list_train)
pos_list_test = tmk.seq.pos_list_single(
len_seq=len(seq_test),
seq_sep_superior=None,
seq_sep_inferior=0,
)
# print(pos_list_test)
pos_train = tmk.seq.pos_single(sequence=seq_train, pos_list=pos_list_train)
# print(pos_train)
pos_test = tmk.seq.pos_single(sequence=seq_test, pos_list=pos_list_test)
# print(pos_test)
X_train = [[] for i in range(len(pos_train))]
X_test = [[] for i in range(len(pos_test))]
for i, pos in enumerate(pos_train):
for prop in property:
X_train[i].append(pp.fpsite.property(prop_kind=prop)[pos[1]])
for i, pos in enumerate(pos_test):
for prop in property:
X_test[i].append(pp.fpsite.property(prop_kind=prop)[pos[1]])
# print(pos)
```
Let's now check `X` and `y`
:material-language-python: Python
``` py linenums="1"
import numpy as np
X_train = np.array(X_train)
X_test = np.array(X_test)
y_train = df_train['is_contact'].values
y_test = df_test['is_contact'].values
print(X_train)
print(X_test)
print(y_train)
print(y_test)
```
:material-note-multiple-outline: Output
``` text
[[1. 1. 1. ... 0.16766467 0.39506173 0. ]
[1. 1. 1. ... 0.48502994 0.12345679 0. ]
[1. 1. 1. ... 0.16766467 0.39506173 0. ]
...
[0. 1. 0.33333333 ... 0.7245509 0.69135802 0.23636364]
[1. 1. 1. ... 0.48502994 0.12345679 0. ]
[1. 1. 1. ... 0.17664671 0.38271605 0.14181818]]
[[1. 1. 1. ... 0.16766467 0.39506173 0. ]
[1. 1. 1. ... 0.64670659 0. 0. ]
[1. 1. 1. ... 0.64670659 0. 0. ]
...
[1. 1. 1. ... 0.64670659 0.03703704 0. ]
[1. 1. 1. ... 0.31736527 0.82716049 0.48363636]
[1. 1. 1. ... 0. 0.50617284 0.26909091]]
[0 0 0 1 1 1 1 1 1 1 0 ... 0 0 0 0 0 0 0 0]
[1 1 1 1 1 1 1 1 1 1 1 ... 1 1 1 1 1 1 1 1]
```
## 3. Machine learning with random forest
Then, we can train a machine learning model by using random forest algorithms. We can draw upon the use of `sklearn` library.
:material-language-python: Python
``` py linenums="1"
from sklearn.ensemble import RandomForestClassifier
clf = RandomForestClassifier(n_estimators=100)
clf.fit(X_train, y_train)
y_pred = clf.predict(X_test)
# print(y_pred)
y_prob = clf.predict_proba(X_test)
from sklearn import metrics
print("Accuracy:", metrics.accuracy_score(y_test, y_pred))
```
:material-note-multiple-outline: Output
``` text
Accuracy: 0.5765124555160143
```
## 4. Machine learning evaluation metrics
Before post-processing and post-analysing the machine learning data, we need to save the prediction probabilities in `tma300` formats, having 1st column as amino acid positions, 2nd column as amino acid symbols, and 3rd column as prediction probabilities.
:material-language-python: Python
``` py linenums="1"
df = pd.DataFrame(pos_test)
df = df[[0, 1]]
df[2] = y_prob[:, 0].tolist()
pp.io.write(df=df, sv_fpn='data/isite/1aijL.tma300')
```
Then, batch generating comprehensive sets of evaluation metrics.
:material-language-python: Python
``` py linenums="1"
pp.eval.sitewise_segment(
prot_df=pd.DataFrame({
'prot': ['1aij', ],
'chain': ['L', ],
}),
dist_fp='data/dist/',
dist_limit=5.5,
tool_fp='data/isite/',
tool='tma300',
pdb_fp='data/pdb/',
topo_fp='data/isite/',
xml_fp='data/xml/',
fasta_fp='data/fasta/',
segment='phobius_tmh',
sort=1,
sv_fp='data/isite/',
)
```
!!! warning
We made the evaluation in transmembrane areas predicted by Phobius. Then, we need to put this file in `topo_fp='data/isite/'`. This file can be downloaded from the [PyPropel](https://github.com/2003100127/pypropel) repository through the `release` tab.
Then, we will see a lot of files of evaluation metrics there.
<figure markdown="span">
{ width="300" }
<figcaption><strong>Fig</strong>. Files of evaluation metrics</figcaption>
</figure>
The metrics are tabulated in JSON formats.
<figure markdown="span">
{ width="300" }
<figcaption><strong>Fig</strong>. True positives</figcaption>
</figure>
## 5. Visualisation of evaluation metrics
Finally, we can plot the evaluation metrics using PyPropel. For example, the ROC curves.
:material-language-python: Python
``` py linenums="1"
X_fpns = {
'tma300': 'data/isite/tma300_roc_fpr_custom.json',
}
Y_fpns = {
'tma300': 'data/isite/tma300_roc_tpr_custom.json',
}
import matplotlib.pyplot as plt
fig, ax = plt.subplots(
nrows=2,
ncols=2,
# figsize=(6, 5),
figsize=(12, 10),
sharey='all',
sharex=False,
)
pp.plot.rocpr(
X_fpns,
Y_fpns,
x_label='fpr',
y_label='tpr',
title='',
ax=ax[0, 0],
)
pp.plot.rocpr(
X_fpns,
Y_fpns,
x_label='fpr',
y_label='tpr',
title='',
ax=ax[0, 1],
)
pp.plot.rocpr(
X_fpns,
Y_fpns,
x_label='fpr',
y_label='tpr',
title='',
ax=ax[1, 0],
)
plt.show()
```
<figure markdown="span">
{ width="600" }
<figcaption><strong>Fig</strong>. ROC curve</figcaption>
</figure>
| 26,476 | Pipeline-1-Interaction-Site-Prediction | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.00166188, "qsc_doc_frac_words_redpajama_stop": 0.12071177, "qsc_doc_num_sentences": 545.0, "qsc_doc_num_words": 4034, "qsc_doc_num_chars": 26476.0, "qsc_doc_num_lines": 857.0, "qsc_doc_mean_word_length": 4.171294, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.00700117, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.185176, "qsc_doc_entropy_unigram": 5.68449508, "qsc_doc_frac_words_all_caps": 0.00929785, "qsc_doc_frac_lines_dupe_lines": 0.43172414, "qsc_doc_frac_chars_dupe_lines": 0.20063393, "qsc_doc_frac_chars_top_2grams": 0.00570512, "qsc_doc_frac_chars_top_3grams": 0.0058834, "qsc_doc_frac_chars_top_4grams": 0.04659179, "qsc_doc_frac_chars_dupe_5grams": 0.35015154, "qsc_doc_frac_chars_dupe_6grams": 0.313306, "qsc_doc_frac_chars_dupe_7grams": 0.27491531, "qsc_doc_frac_chars_dupe_8grams": 0.2148333, "qsc_doc_frac_chars_dupe_9grams": 0.15778214, "qsc_doc_frac_chars_dupe_10grams": 0.12717656, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 15.95070423, "qsc_doc_frac_chars_hyperlink_html_tag": 0.04320894, "qsc_doc_frac_chars_alphabet": 0.73570617, "qsc_doc_frac_chars_digital": 0.0607251, "qsc_doc_frac_chars_whitespace": 0.20199426, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
2004shivanshi/portfolio-website | style.css | /* GENERAL */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");
/* Default Light Mode */
:root {
--primary-color: white;
--primary-color-2: rgb(250, 250, 250);
--primary-color-3: rgb(181, 181, 181);
--background-color: rgb(255, 255, 255);
--secondary-color: black;
--secondary-color-2: rgb(85, 85, 85);
--button-background: rgb(53, 53, 53);
--button-text-hover: grey;
--button-border: rgb(53, 53, 53) 0.1rem solid;
--button-border-2: rgb(255, 255, 255) 0.1rem solid;
--container-border: rgb(163, 163, 163);
}
/* Dark Mode */
[theme="dark"] {
--primary-color: black;
--primary-color-2: rgb(39, 39, 39);
--primary-color-3: rgb(74, 74, 74);
--background-color: rgb(33, 33, 33);
--secondary-color: white;
--secondary-color-2: rgb(170, 170, 170);
--button-background: rgb(202, 202, 202);
--button-text-hover: lightgrey;
--button-border: rgb(202, 202, 202) 0.1rem solid;
--button-border-2: rgb(0, 0, 0) 0.1rem solid;
--container-border: rgb(92, 92, 92);
}
* {
margin: 0;
padding: 0;
}
h3 {
color: var(--secondary-color);
}
body {
font-family: "Poppins", sans-serif;
background-color: var(--background-color);
}
html {
scroll-behavior: smooth;
}
p {
color: var(--secondary-color-2);
}
/* TRANSITION */
a,
.btn {
transition: all 300ms ease;
}
/* DESKTOP NAV */
nav,
.nav-links {
display: flex;
align-items: center;
}
nav {
justify-content: space-around;
height: 17vh;
}
.nav-links {
gap: 2rem;
list-style: none;
font-size: 1.5rem;
}
nav li:last-child {
width: max-content;
display: flex;
margin: auto;
padding: 10px;
}
a {
color: var(--secondary-color);
text-decoration: none;
text-decoration-color: var(--primary-color);
}
a:hover {
text-decoration: underline;
text-underline-offset: 1rem;
text-decoration-color: var(--secondary-color);
}
nav a:hover {
color: var(--secondary-color);
text-decoration-color: var(--secondary-color);
}
.logo {
font-size: 2rem;
color: var(--secondary-color);
}
.logo:hover {
cursor: default;
}
/* HAMBURGER MENU */
#hamburger-nav {
display: none;
}
.hamburger-menu {
position: relative;
display: inline-block;
}
.hamburger-icon {
display: flex;
flex-direction: column;
justify-content: space-between;
height: 24px;
width: 30px;
cursor: pointer;
}
.hamburger-icon span {
width: 100%;
height: 2px;
background-color: var(--secondary-color);
transition: all 0.3 ease-in-out;
}
.menu-links {
position: absolute;
top: 100%;
right: 0;
background-color: var(--primary-color);
width: fit-content;
max-height: 0;
overflow: hidden;
transition: all 0.3 ease-in-out;
}
.menu-links a {
display: block;
padding: 10px;
text-align: center;
font-size: 1.5rem;
color: var(--secondary-color);
text-decoration: none;
transition: all 0.3 ease-in-out;
}
.menu-links li {
list-style: none;
}
.menu-links.open {
max-height: 300px;
}
.hamburger-icon.open span:first-child {
transform: rotate(45deg) translate(10px, 5px);
}
.hamburger-icon.open span:nth-child(2) {
opacity: 0;
}
.hamburger-icon.open span:last-child {
transform: rotate(-45deg) translate(10px, -5px);
}
.hamburger-icon span:first-child {
transform: none;
}
.hamburger-icon span:first-child {
opacity: 1;
}
.hamburger-icon span:first-child {
transform: none;
}
/* SECTIONS */
section {
padding-top: 4vh;
height: 96vh;
margin: 0 10rem;
box-sizing: border-box;
min-height: fit-content;
}
.section-container {
display: flex;
}
/* PROFILE SECTION */
#profile {
display: flex;
justify-content: center;
gap: 5rem;
height: 80vh;
}
.section__pic-container {
display: flex;
height: 400px;
width: 400px;
margin: auto 0;
border-radius: 80vh;
}
.section__text {
align-self: center;
text-align: center;
}
.section__text p {
font-weight: 600;
}
.section__text__p1 {
text-align: center;
}
.section__text__p2 {
font-size: 1.75rem;
margin-bottom: 1rem;
}
.title {
color: var(--secondary-color);
font-size: 3rem;
text-align: center;
}
#socials-container {
display: flex;
justify-content: center;
margin-top: 1rem;
gap: 1rem;
}
/* ICONS */
.icon {
cursor: pointer;
height: 2rem;
}
/* BUTTONS */
.btn-container {
display: flex;
justify-content: center;
gap: 1rem;
}
.btn {
font-weight: 600;
transition: all 300ms ease;
padding: 1rem;
width: 8rem;
border-radius: 2rem;
}
.btn-color-1,
.btn-color-2 {
border: var(--button-border);
color: var(--secondary-color-2);
}
.btn-color-1:hover,
.btn-color-2:hover {
cursor: pointer;
}
.btn-color-1,
.btn-color-2:hover {
background: var(--button-background);
color: var(--primary-color);
}
.btn-color-1:hover {
background: var(--secondary-color);
}
.btn-color-2 {
background: none;
}
.btn-color-2:hover {
border: var(--button-border);
background: var(--secondary-color);
}
.btn-container {
gap: 1rem;
}
/* ABOUT SECTION */
#about {
position: relative;
}
.about-containers {
gap: 2rem;
margin-bottom: 2rem;
margin-top: 2rem;
}
.about-details-container {
justify-content: center;
flex-direction: column;
}
.about-containers,
.about-details-container {
display: flex;
}
.about-pic {
border-radius: 2rem;
width: 450px;
;
padding-left: -10vh;
}
.arrow {
position: absolute;
right: -5rem;
bottom: 2.5rem;
}
.details-container {
padding: 1.5rem;
flex: 1;
background: var(--primary-color-2);
border-radius: 2rem;
border: var(--button-border);
border-color: var(--container-border);
text-align: center;
}
.section-container {
gap: 4rem;
height: 80%;
}
.section__pic-container {
height: 400px;
width: 400px;
margin: auto 0;
}
/* EXPERIENCE SECTION */
#experience {
position: relative;
}
.experience-sub-title {
color: var(--secondary-color);
font-weight: 600;
font-size: 1.75rem;
margin-bottom: 2rem;
}
.experience-details-container {
display: flex;
justify-content: center;
flex-direction: column;
}
.article-container {
display: flex;
text-align: initial;
flex-wrap: wrap;
flex-direction: row;
gap: 2.5rem;
justify-content: space-around;
}
article {
display: flex;
width: 10rem;
justify-content: flex-start;
gap: 0.5rem;
}
article .icon {
cursor: default;
}
/* PROJECTS SECTION */
#projects {
position: relative;
}
.color-container {
border-color: var(--container-border);
background: var(--primary-color-2);
}
.project-img {
border-radius: 2rem;
width: 90%;
height: 90%;
}
.project-title {
margin: 1rem;
color: var(--secondary-color);
}
.project-btn {
color: var(--secondary-color);
border-color: var(--container-border);
}
/* CONTACT */
#contact {
display: flex;
justify-content: center;
flex-direction: column;
height: 70vh;
}
.contact-info-upper-container {
display: flex;
justify-content: center;
border-radius: 2rem;
border: var(--button-border);
border-color: var(--container-border);
background: var(--background-color);
margin: 2rem auto;
padding: 0.5rem;
}
.contact-info-container {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
margin: 1rem;
}
.contact-info-container p {
font-size: larger;
}
.contact-icon {
cursor: default;
}
.email-icon {
height: 2.5rem;
}
/* FOOTER SECTION */
footer {
height: 26vh;
margin: 0 1rem;
}
footer p {
text-align: center;
}
.pic{
overflow: wrap;
border-radius: 1000px;
margin-left: -25%;
height:400px ;
padding-top: 20px;
} | 7,538 | style | css | en | css | data | {"qsc_code_num_words": 974, "qsc_code_num_chars": 7538.0, "qsc_code_mean_word_length": 5.01848049, "qsc_code_frac_words_unique": 0.20123203, "qsc_code_frac_chars_top_2grams": 0.03600655, "qsc_code_frac_chars_top_3grams": 0.05564648, "qsc_code_frac_chars_top_4grams": 0.06301146, "qsc_code_frac_chars_dupe_5grams": 0.33940262, "qsc_code_frac_chars_dupe_6grams": 0.25818331, "qsc_code_frac_chars_dupe_7grams": 0.15486907, "qsc_code_frac_chars_dupe_8grams": 0.08981178, "qsc_code_frac_chars_dupe_9grams": 0.06935352, "qsc_code_frac_chars_dupe_10grams": 0.02700491, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.05258065, "qsc_code_frac_chars_whitespace": 0.17750066, "qsc_code_size_file_byte": 7538.0, "qsc_code_num_lines": 494.0, "qsc_code_num_chars_line_max": 99.0, "qsc_code_num_chars_line_mean": 15.25910931, "qsc_code_frac_chars_alphabet": 0.73580645, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.34663342, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.00249377, "qsc_code_frac_chars_string_length": 0.01233585, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 1, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
2004shivanshi/portfolio-website | index.html | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My Portfolio</title>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="mediaqueries.css" />
</head>
<body>
<nav id="desktop-nav">
<div class="logo">Shivanshi Gupta</div>
<div>
<ul class="nav-links">
<li><a href="#about">About</a></li>
<li><a href="#experience">Experience</a></li>
<li><a href="#projects">Projects</a></li>
<li><a href="#contact">Contact</a></li>
<li>
<img
id="modeToggle"
class="icon color-icon"
src="./assets/theme_light.png"
src-light="./assets/theme_light.png"
src-dark="./assets/theme_dark.png"
alt="Color them icon"
/>
</li>
</ul>
</div>
</nav>
<nav id="hamburger-nav">
<div class="logo">Shivanshi Gupta</div>
<div class="hamburger-menu">
<div class="hamburger-icon" onclick="toggleMenu()">
<span></span>
<span></span>
<span></span>
</div>
<div class="menu-links">
<li><a href="#about" onclick="toggleMenu()">About</a></li>
<li><a href="#experience" onclick="toggleMenu()">Experience</a></li>
<li><a href="#projects" onclick="toggleMenu()">Projects</a></li>
<li><a href="#contact" onclick="toggleMenu()">Contact</a></li>
<li>
<img
id="modeToggle2"
class="icon color-icon"
src="./assets/theme_light.png"
src-light="./assets/theme_light.png"
src-dark="./assets/theme_dark.png"
alt="Color them icon"
/>
</li>
</div>
</div>
</nav>
<section id="profile">
<div class="section__pic-container">
<img class="pic" src="./assets/gupta.jpeg" alt="shivanshi profile picture" />
</div>
<div class="section__text" id="shiv">
<p class="section__text__p1">Hello, I'm</p>
<h1 class="title">Shivanshi Gupta</h1>
<p class="section__text__p2">Frontend Developer</p>
<div class="btn-container">
<button
class="btn btn-color-2"
onclick="window.open('./assets/Shivanshi Gupta Resume.pdf')"
>
Download CV
</button>
<button class="btn btn-color-1" onclick="location.href='./#contact'">
Contact Info
</button>
</div>
<div id="socials-container">
<img
src="./assets/linkedin_light.png"
src-light="./assets/linkedin_light.png"
src-dark="./assets/linkedin_dark.png"
alt="My LinkedIn profile"
class="icon linkedin-icon"
onclick="location.href='https://www.linkedin.com/in/shivanshi-gupta-frontend-developer/'"
/>
<img
src="./assets/github_light.png"
src-light="./assets/github_light.png"
src-dark="./assets/github_dark.png"
alt="My github profile"
class="icon github-icon"
onclick="location.href='https://github.com/2004shivanshi'"
/>
</div>
</div>
</section>
<section id="about">
<p class="section__text__p1" id="get">Get To Know More</p>
<h1 class="title">About Me</h1>
<div class="section-container">
<div class="section__pic-container">
<img
src="./assets/shiv.jpeg"
alt="Profile picture"
class="about-pic"
/>
</div>
<div class="about-details-container">
<div class="about-containers">
<div class="details-container">
<img
src="./assets/experience_light.png"
src-light="./assets/experience_light.png"
src-dark="./assets/experience_dark.png"
alt="Experience icon"
class="icon"
/>
<h3>Fresher</h3>
<p> Frontend Developer</p>
</div>
<div class="details-container">
<img
src="./assets/education_light.png"
cdd src-light="./assets/education_light.png"
src-dark="./assets/education_dark.png"
alt="Education icon"
class="icon"
/>
<h3>Education</h3>
<p>B.tech<br />Computer Science</p> <p> Sceond Year</p>
</div>
</div>
<div class="text-container">
<p>
I'm a frontend developer, skilled in HTML, CSS, and JavaScript.
My expertise lies in creating visually and interactive user interfaces for websites and applications.
I collaborate with design and backend teams to ensure a seamless user experience,
staying updated with the latest web development trend.
</p>
</div>
</div>
</div>
<img
src="./assets/arrow_light.png"
src-light="./assets/arrow_light.png"
src-dark="./assets/arrow_dark.png"
alt="Arrow icon"
class="icon arrow"
onclick="location.href='./#experience'"
/>
</section>
<section id="experience">
<p class="section__text__p1"> Explore </p>
<h1 class="title">My Skills</h1>
<div class="experience-details-container">
<div class="about-containers">
<div class="details-container">
<h2 class="experience-sub-title">Skills</h2>
<div class="article-container">
<article>
<img
src="./assets/checkmark_light.png"
src-light="./assets/checkmark_light.png"
src-dark="./assets/checkmark_dark.png"
alt="Experience icon"
class="icon"
/>
<div>
<h3>HTML</h3>
<p>Advance</p>
</div>
</article>
<article>
<img
src="./assets/checkmark_light.png"
src-light="./assets/checkmark_light.png"
src-dark="./assets/checkmark_dark.png"
alt="Experience icon"
class="icon"
/>
<div>
<h3>CSS</h3>
<p>Advance</p>
</div>
</article>
<article>
<img
src="./assets/checkmark_light.png"
src-light="./assets/checkmark_light.png"
src-dark="./assets/checkmark_dark.png"
alt="Experience icon"
class="icon"
/>
<div>
<h3>Tailwind</h3>
<p>Intermediate</p>
</div>
</article>
<article>
<img
src="./assets/checkmark_light.png"
src-light="./assets/checkmark_light.png"
src-dark="./assets/checkmark_dark.png"
alt="Experience icon"
class="icon"
/>
<div>
<h3>JavaScript</h3>
<p>Intermediate</p>
</div>
</article>
<article>
<img
src="./assets/checkmark_light.png"
src-light="./assets/checkmark_light.png"
src-dark="./assets/checkmark_dark.png"
alt="Experience icon"
class="icon"
/>
<div>
<h3>Git Github</h3>
<p>Intermediate</p>
</div>
</article>
<article>
<img
src="./assets/checkmark_light.png"
src-light="./assets/checkmark_light.png"
src-dark="./assets/checkmark_dark.png"
alt="Experience icon"
class="icon"
/>
<div>
<h3>C++</h3>
<p>Intermediate</p>
</div>
</article>
</div>
</div>
<div class="details-container">
<h2 class="experience-sub-title">Other Skills
</h2>
<div class="article-container">
<article>
<img
src="./assets/checkmark_light.png"
src-light="./assets/checkmark_light.png"
src-dark="./assets/checkmark_dark.png"
alt="Experience icon"
class="icon"
/>
<div>
<h3>PR Head</h3>
<p>Tech Club</p>
</div>
</article>
<article>
<img
src="./assets/checkmark_light.png"
src-light="./assets/checkmark_light.png"
src-dark="./assets/checkmark_dark.png"
alt="Experience icon"
class="icon"
/>
<div>
<h3>Campus Ambassador</h3>
<p>PW</p>
</div>
</article>
<article>
<img
src="./assets/checkmark_light.png"
src-light="./assets/checkmark_light.png"
src-dark="./assets/checkmark_dark.png"
alt="Experience icon"
class="icon"
/>
<div>
<h3> Google Sheet</h3>
<p>Intermediate</p>
</div>
</article>
<article>
<img
src="./assets/checkmark_light.png"
src-light="./assets/checkmark_light.png"
src-dark="./assets/checkmark_dark.png"
alt="Experience icon"
class="icon"
/>
<div>
<h3>Content Writter</h3>
<p>Tech club</p>
</div>
</article>
</div>
</div>
</div>
</div>
<img
src="./assets/arrow_light.png"
src-light="./assets/arrow_light.png"
src-dark="./assets/arrow_dark.png"
alt="Arrow icon"
class="icon arrow"
onclick="location.href='./#projects'"
/>
</section>
<section id="projects">
<p class="section__text__p1">Browse My Recent</p>
<h1 class="title">Projects</h1>
<div class="experience-details-container">
<div class="about-containers">
<div class="details-container color-container">
<div class="article-container">
<img
src="chair.webp"
alt="Project 1"
class="project-img"
/>
</div>
<h2 class="experience-sub-title project-title">Project One</h2>
<div class="btn-container">
<button
class="btn btn-color-2 project-btn"
onclick="location.href='https://github.com/2004shivanshi'"
>
Github link
</button>
<button
class="btn btn-color-2 project-btn"
onclick="location.href='https://2004shivanshi.github.io/morden-chair/'"
>
Live Demo
</button>
</div>
</div>
<div class="details-container color-container">
<div class="article-container">
<img
src="./assets/git.png"
alt="Project 2"
class="project-img"
/>
</div>
<h2 class="experience-sub-title project-title">Project Two</h2>
<div class="btn-container">
<button
class="btn btn-color-2 project-btn"
onclick="location.href='https://github.com/2004shivanshi'"
i
> Github link
</button>
<button
class="btn btn-color-2 project-btn"
onclick="location.href='https://2004shivanshi.github.io/Github-tool/'"
>
Live Demo
</button>
</div>
</div>
<div class="details-container color-container">
<div class="article-container">
<img
src="./assets/education2.png"
alt="Project 3"
class="project-img"
/>
</div>
<h2 class="experience-sub-title project-title">Project Three</h2>
<div class="btn-container">
<button
class="btn btn-color-2 project-btn"
onclick="location.href='https://github.com/2004shivanshi'"
>
Github link
</button>
<button
class="btn btn-color-2 project-btn"
onclick="location.href='https://2004shivanshi.github.io/education-website/'"
>
Live Demo
</button>
</div>
</div>
</div>
</div>
<img
src="./assets/arrow_light.png"
src-light="./assets/arrow_light.png"
src-dark="./assets/arrow_dark.png"
alt="Arrow icon"
class="icon arrow"
onclick="location.href='./#contact'"
/>
</section>
<section id="contact">
<p class="section__text__p1">Get in Touch</p>
<h1 class="title">Contact Me</h1>
<div class="contact-info-upper-container">
<div class="contact-info-container">
<img
src="./assets/email_light.png"
src-light="./assets/email_light.png"
src-dark="./assets/email_dark.png"
alt="Email icon"
class="icon contact-icon email-icon"
/>
<p><a href="mailto:guptashivanshi250@gmail.com">examplemail.com</a></p>
</div>
<div class="contact-info-container">
<img
src="./assets/linkedin_light.png"
src-light="./assets/linkedin_light.png"
src-dark="./assets/linkedin_dark.png"
alt="My LinkedIn profile"
class="icon linkedin-icon"
onclick="location.href='https://www.linkedin.com/in/shivanshi-gupta-frontend-developer/'"
/>
<p><a href="https://www.linkedin.com/in/shivanshi-gupta-frontend-developer/">linkdein</a></p>
</div>
</div>
</section>
<footer>
<nav>
<div class="nav-links-container">
<ul class="nav-links">
<li><a href="#about">About</a></li>
<li><a href="#experience">Experience</a></li>
<li><a href="#projects">Projects</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div>
</nav>
<p>Copyright © 2023 Shivanshi Gupta. All Rights Reserved.</p>
</footer>
<script src="script.js"></script>
</body>
</html>
| 15,554 | index | html | en | html | code | {"qsc_code_num_words": 1502, "qsc_code_num_chars": 15554.0, "qsc_code_mean_word_length": 4.72636485, "qsc_code_frac_words_unique": 0.13648469, "qsc_code_frac_chars_top_2grams": 0.04733061, "qsc_code_frac_chars_top_3grams": 0.06353007, "qsc_code_frac_chars_top_4grams": 0.04437245, "qsc_code_frac_chars_dupe_5grams": 0.70939569, "qsc_code_frac_chars_dupe_6grams": 0.66136076, "qsc_code_frac_chars_dupe_7grams": 0.6391041, "qsc_code_frac_chars_dupe_8grams": 0.60557825, "qsc_code_frac_chars_dupe_9grams": 0.58740668, "qsc_code_frac_chars_dupe_10grams": 0.57698267, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.01105325, "qsc_code_frac_chars_whitespace": 0.39507522, "qsc_code_size_file_byte": 15554.0, "qsc_code_num_lines": 444.0, "qsc_code_num_chars_line_max": 116.0, "qsc_code_num_chars_line_mean": 35.03153153, "qsc_code_frac_chars_alphabet": 0.74343713, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.70681818, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.00454545, "qsc_code_frac_chars_string_length": 0.30037289, "qsc_code_frac_chars_long_word_length": 0.13179889, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codehtml_cate_ast": 1.0, "qsc_codehtml_frac_words_text": 0.10428186, "qsc_codehtml_num_chars_text": 1622.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 1, "qsc_code_frac_chars_dupe_6grams": 1, "qsc_code_frac_chars_dupe_7grams": 1, "qsc_code_frac_chars_dupe_8grams": 1, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_cate_xml_start": 0, "qsc_code_frac_lines_dupe_lines": 1, "qsc_code_cate_autogen": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_codehtml_cate_ast": 0, "qsc_codehtml_frac_words_text": 1, "qsc_codehtml_num_chars_text": 0} |
2004shivanshi/portfolio-website | mediaqueries.css | @media screen and (max-width: 1400px) {
#profile {
height: 83vh;
margin-bottom: 6rem;
}
.about-containers {
flex-wrap: wrap;
}
}
@media screen and (max-width: 1200px) {
#shiv{
margin-top: 250px;
font-size: -300px;
}
.pic{
margin-left: 1px;
}
#get{
margin-top: 20px;
}
#desktop-nav {
display: none;
}
#hamburger-nav {
display: flex;
}
#experience,
.experience-details-container {
margin-top: 2rem;
}
#profile,
.section-container {
display: block;
}
.arrow {
display: none;
}
section,
.section-container {
height: fit-content;
}
section {
margin: 0 5%;
}
.section__pic-container {
width: 275px;
height: 275px;
margin: 0 auto 2rem;
}
.about-containers {
margin-top: 0;
}
}
@media screen and (max-width: 600px) {
#contact,
footer {
height: 40vh;
}
#profile {
height: 83vh;
margin-bottom: 0;
}
article {
font-size: 1rem;
}
footer nav {
height: fit-content;
margin-bottom: 2rem;
}
.about-containers,
.contact-info-upper-container,
.btn-container {
flex-wrap: wrap;
}
.contact-info-container {
margin: 0;
}
.contact-info-container p,
.nav-links li a {
font-size: 1rem;
}
.experience-sub-title {
font-size: 1.25rem;
}
.logo {
font-size: 1.5rem;
}
.nav-links {
flex-direction: column;
gap: 0.5rem;
text-align: center;
}
.section__pic-container {
width: auto;
height: 46vw;
justify-content: center;
}
.section__text__p2 {
font-size: 1.25rem;
}
.title {
font-size: 2rem;
}
.text-container {
text-align: justify;
}
}
.section__text{
margin-top: 50px;
} | 1,975 | mediaqueries | css | en | css | data | {"qsc_code_num_words": 196, "qsc_code_num_chars": 1975.0, "qsc_code_mean_word_length": 5.03061224, "qsc_code_frac_words_unique": 0.38265306, "qsc_code_frac_chars_top_2grams": 0.05679513, "qsc_code_frac_chars_top_3grams": 0.04259635, "qsc_code_frac_chars_top_4grams": 0.05172414, "qsc_code_frac_chars_dupe_5grams": 0.12576065, "qsc_code_frac_chars_dupe_6grams": 0.0, "qsc_code_frac_chars_dupe_7grams": 0.0, "qsc_code_frac_chars_dupe_8grams": 0.0, "qsc_code_frac_chars_dupe_9grams": 0.0, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.04819277, "qsc_code_frac_chars_whitespace": 0.36962025, "qsc_code_size_file_byte": 1975.0, "qsc_code_num_lines": 128.0, "qsc_code_num_chars_line_max": 42.0, "qsc_code_num_chars_line_mean": 15.4296875, "qsc_code_frac_chars_alphabet": 0.7437751, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.18181818, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.0, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/УничтожениеПерсональныхДанных/Forms/ФормаСозданияАктов/Ext/Form.xml | <?xml version="1.0" encoding="UTF-8"?>
<Form xmlns="http://v8.1c.ru/8.3/xcf/logform" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:dcscor="http://v8.1c.ru/8.1/data-composition-system/core" xmlns:dcssch="http://v8.1c.ru/8.1/data-composition-system/schema" xmlns:dcsset="http://v8.1c.ru/8.1/data-composition-system/settings" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Создание актов</v8:content>
</v8:item>
</Title>
<WindowOpeningMode>LockOwnerWindow</WindowOpeningMode>
<AutoSaveDataInSettings>Use</AutoSaveDataInSettings>
<AutoTitle>false</AutoTitle>
<VerticalSpacing>Half</VerticalSpacing>
<CommandBarLocation>Bottom</CommandBarLocation>
<VerticalScroll>useWithoutStretch</VerticalScroll>
<ConversationsRepresentation>DontShow</ConversationsRepresentation>
<AutoCommandBar name="ФормаКоманднаяПанель" id="-1">
<HorizontalAlign>Right</HorizontalAlign>
<Autofill>false</Autofill>
<ChildItems>
<Button name="ФормаПродолжить" id="26">
<Type>CommandBarButton</Type>
<GroupHorizontalAlign>Right</GroupHorizontalAlign>
<CommandName>Form.Command.Продолжить</CommandName>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Продолжить</v8:content>
</v8:item>
</Title>
<ExtendedTooltip name="ФормаПродолжитьРасширеннаяПодсказка" id="27"/>
</Button>
<Button name="Отмена" id="28">
<Type>CommandBarButton</Type>
<DefaultButton>true</DefaultButton>
<GroupHorizontalAlign>Right</GroupHorizontalAlign>
<CommandName>Form.Command.Отмена</CommandName>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Отмена</v8:content>
</v8:item>
</Title>
<ExtendedTooltip name="ОтменаРасширеннаяПодсказка" id="29"/>
</Button>
</ChildItems>
</AutoCommandBar>
<Events>
<Event name="OnCreateAtServer">ПриСозданииНаСервере</Event>
<Event name="FillCheckProcessingAtServer">ОбработкаПроверкиЗаполненияНаСервере</Event>
</Events>
<ChildItems>
<UsualGroup name="НадписиГруппа" id="24">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Надписи</v8:content>
</v8:item>
</Title>
<Width>40</Width>
<Group>AlwaysHorizontal</Group>
<Behavior>Usual</Behavior>
<Representation>NormalSeparation</Representation>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="НадписиГруппаРасширеннаяПодсказка" id="25"/>
<ChildItems>
<PictureDecoration name="КартинкаПредупреждение" id="21">
<Height>3</Height>
<AutoMaxHeight>false</AutoMaxHeight>
<MaxHeight>6</MaxHeight>
<Title formatted="false">
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Картинка предупреждение</v8:content>
</v8:item>
</Title>
<Picture>
<xr:Ref>StdPicture.DialogExclamation</xr:Ref>
<xr:LoadTransparent>true</xr:LoadTransparent>
</Picture>
<ContextMenu name="КартинкаПредупреждениеКонтекстноеМеню" id="22"/>
<ExtendedTooltip name="КартинкаПредупреждениеРасширеннаяПодсказка" id="23"/>
</PictureDecoration>
<LabelField name="ТекстПредупреждения" id="40">
<DataPath>ТекстПредупреждения</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Текст предупреждения</v8:content>
</v8:item>
</Title>
<TitleLocation>None</TitleLocation>
<Height>6</Height>
<AutoMaxHeight>false</AutoMaxHeight>
<MaxHeight>7</MaxHeight>
<ContextMenu name="ТекстПредупрежденияКонтекстноеМеню" id="41"/>
<ExtendedTooltip name="ТекстПредупрежденияРасширеннаяПодсказка" id="42"/>
</LabelField>
</ChildItems>
</UsualGroup>
<UsualGroup name="СозданиеАктовГруппа" id="35">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Создание актов группа</v8:content>
</v8:item>
</Title>
<Group>Vertical</Group>
<Behavior>Usual</Behavior>
<Representation>NormalSeparation</Representation>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="СозданиеАктовГруппаРасширеннаяПодсказка" id="36"/>
<ChildItems>
<LabelField name="ТекстОрганизации" id="49">
<DataPath>ТекстОрганизации</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Текст организации</v8:content>
</v8:item>
</Title>
<TitleLocation>None</TitleLocation>
<Height>2</Height>
<ContextMenu name="ТекстОрганизацииКонтекстноеМеню" id="50"/>
<ExtendedTooltip name="ТекстОрганизацииРасширеннаяПодсказка" id="51"/>
</LabelField>
<InputField name="Организация" id="1">
<DataPath>Организация</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Акты формируются от имени</v8:content>
</v8:item>
</Title>
<TitleLocation>None</TitleLocation>
<ToolTip>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Выбранная организация будет использована в актах на субъектов, не связанных ни с одной из организаций</v8:content>
</v8:item>
</ToolTip>
<ToolTipRepresentation>ShowBottom</ToolTipRepresentation>
<ContextMenu name="ОрганизацияКонтекстноеМеню" id="2"/>
<ExtendedTooltip name="ОрганизацияРасширеннаяПодсказка" id="3"/>
</InputField>
<InputField name="ПричинаУничтожения" id="10">
<DataPath>ПричинаУничтожения</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>С указанием причины</v8:content>
</v8:item>
</Title>
<TitleLocation>Top</TitleLocation>
<DropListButton>true</DropListButton>
<ContextMenu name="ПричинаУничтоженияКонтекстноеМеню" id="11"/>
<ExtendedTooltip name="ПричинаУничтоженияРасширеннаяПодсказка" id="12"/>
</InputField>
<InputField name="СпособУничтожения" id="13">
<DataPath>СпособУничтожения</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>и способа уничтожения</v8:content>
</v8:item>
</Title>
<TitleLocation>Top</TitleLocation>
<DropListButton>true</DropListButton>
<ContextMenu name="СпособУничтоженияКонтекстноеМеню" id="14"/>
<ExtendedTooltip name="СпособУничтоженияРасширеннаяПодсказка" id="15"/>
</InputField>
<InputField name="ОтветственныйЗаОбработкуПерсональныхДанных" id="4">
<DataPath>ОтветственныйЗаОбработкуПерсональныхДанных</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Ответственный за обработку персональных данных</v8:content>
</v8:item>
</Title>
<TitleLocation>Top</TitleLocation>
<ContextMenu name="ОтветственныйЗаОбработкуПерсональныхДанныхКонтекстноеМеню" id="5"/>
<ExtendedTooltip name="ОтветственныйЗаОбработкуПерсональныхДанныхРасширеннаяПодсказка" id="6"/>
</InputField>
</ChildItems>
</UsualGroup>
</ChildItems>
<Attributes>
<Attribute name="Организация" id="1">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Организация</v8:content>
</v8:item>
</Title>
<Type>
<v8:TypeSet>cfg:DefinedType.Организация</v8:TypeSet>
</Type>
<FillCheck>ShowError</FillCheck>
</Attribute>
<Attribute name="ОтветственныйЗаОбработкуПерсональныхДанных" id="2">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Ответственный за обработку персональных данных</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>cfg:CatalogRef.Пользователи</v8:Type>
</Type>
<FillCheck>ShowError</FillCheck>
<Save>
<Field>ОтветственныйЗаОбработкуПерсональныхДанных</Field>
</Save>
</Attribute>
<Attribute name="ПричинаУничтожения" id="4">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Причина уничтожения</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>0</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
<FillCheck>ShowError</FillCheck>
<Save>
<Field>ПричинаУничтожения</Field>
</Save>
</Attribute>
<Attribute name="СпособУничтожения" id="5">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Способ уничтожения</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>0</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
<FillCheck>ShowError</FillCheck>
<Save>
<Field>СпособУничтожения</Field>
</Save>
</Attribute>
<Attribute name="ТекстПредупреждения" id="6">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Текст предупреждения</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>v8ui:FormattedString</v8:Type>
</Type>
</Attribute>
<Attribute name="ВсеОрганизацииЗаполнены" id="3">
<Type>
<v8:Type>xs:boolean</v8:Type>
</Type>
</Attribute>
<Attribute name="ТекстОрганизации" id="7">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Текст организации</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>v8ui:FormattedString</v8:Type>
</Type>
</Attribute>
</Attributes>
<Commands>
<Command name="Продолжить" id="1">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Продолжить</v8:content>
</v8:item>
</Title>
<Action>СоздатьАкты</Action>
</Command>
<Command name="Отмена" id="2">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Отмена</v8:content>
</v8:item>
</Title>
<Action>Отменить</Action>
</Command>
</Commands>
<Parameters>
<Parameter name="СубъектыИОрганизации">
<Type>
<v8:Type>v8:ValueListType</v8:Type>
</Type>
<KeyParameter>true</KeyParameter>
</Parameter>
</Parameters>
</Form> | 10,326 | Form | xml | ru | xml | data | {"qsc_code_num_words": 1107, "qsc_code_num_chars": 10326.0, "qsc_code_mean_word_length": 6.27461608, "qsc_code_frac_words_unique": 0.22673893, "qsc_code_frac_chars_top_2grams": 0.03627987, "qsc_code_frac_chars_top_3grams": 0.02418658, "qsc_code_frac_chars_top_4grams": 0.03627987, "qsc_code_frac_chars_dupe_5grams": 0.46400806, "qsc_code_frac_chars_dupe_6grams": 0.42585661, "qsc_code_frac_chars_dupe_7grams": 0.38381802, "qsc_code_frac_chars_dupe_8grams": 0.36798157, "qsc_code_frac_chars_dupe_9grams": 0.3312698, "qsc_code_frac_chars_dupe_10grams": 0.29139073, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.0352494, "qsc_code_frac_chars_whitespace": 0.1593066, "qsc_code_size_file_byte": 10326.0, "qsc_code_num_lines": 308.0, "qsc_code_num_chars_line_max": 918.0, "qsc_code_num_chars_line_mean": 33.52597403, "qsc_code_frac_chars_alphabet": 0.76477364, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.63961039, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.18032152, "qsc_code_frac_chars_long_word_length": 0.07979857, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 1, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/УничтожениеПерсональныхДанных/Forms/ФормаСозданияАктов/Ext/Form/Module.bsl | ///////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2024, ООО 1С-Софт
// Все права защищены. Эта программа и сопроводительные материалы предоставляются
// в соответствии с условиями лицензии Attribution 4.0 International (CC BY 4.0)
// Текст лицензии доступен по ссылке:
// https://creativecommons.org/licenses/by/4.0/legalcode
///////////////////////////////////////////////////////////////////////////////////////////////////////
#Область ОбработчикиСобытийФормы
&НаСервере
Процедура ПриСозданииНаСервере(Отказ, СтандартнаяОбработка)
Если Не ЗначениеЗаполнено(ОтветственныйЗаОбработкуПерсональныхДанных) Тогда
ОтветственныйЗаОбработкуПерсональныхДанных = Пользователи.ТекущийПользователь();
КонецЕсли;
Элементы.ПричинаУничтожения.СписокВыбора.ЗагрузитьЗначения(
ОбщегоНазначения.ВыгрузитьКолонку(Документы.АктОбУничтоженииПерсональныхДанных.ПричиныУничтожения(), "Значение"));
Элементы.СпособУничтожения.СписокВыбора.ЗагрузитьЗначения(
ОбщегоНазначения.ВыгрузитьКолонку(Документы.АктОбУничтоженииПерсональныхДанных.СпособыУничтожения(), "Значение"));
СубъектыИОрганизации = Параметры.СубъектыИОрганизации.ВыгрузитьЗначения();
Субъекты = ОбщегоНазначения.ВыгрузитьКолонку(СубъектыИОрганизации, "Субъект") ;
Организации = ОбщегоНазначения.ВыгрузитьКолонку(СубъектыИОрганизации, "Организация") ;
ТекстПредупреждения = ТекстПредупреждения(Субъекты);
УстановитьВидимостьОрганизации(Организации);
КонецПроцедуры
&НаСервере
Процедура ОбработкаПроверкиЗаполненияНаСервере(Отказ, ПроверяемыеРеквизиты)
Если ВсеОрганизацииЗаполнены Тогда
ИндексОрганизации = ПроверяемыеРеквизиты.Найти("Организация");
Если ИндексОрганизации <> Неопределено Тогда
ПроверяемыеРеквизиты.Удалить(ИндексОрганизации);
КонецЕсли;
КонецЕсли;
КонецПроцедуры
#КонецОбласти
#Область ОбработчикиКомандФормы
&НаКлиенте
Процедура СоздатьАкты(Команда)
Если Не ПроверитьЗаполнение() Тогда
Возврат;
КонецЕсли;
Результат = Новый Структура;
Результат.Вставить("Организация", Организация);
Результат.Вставить("ПричинаУничтожения", ПричинаУничтожения);
Результат.Вставить("СпособУничтожения", СпособУничтожения);
Результат.Вставить("ОтветственныйЗаОбработкуПерсональныхДанных", ОтветственныйЗаОбработкуПерсональныхДанных);
Закрыть(Результат);
КонецПроцедуры
&НаКлиенте
Процедура Отменить(Команда)
Закрыть();
КонецПроцедуры
#КонецОбласти
#Область СлужебныеПроцедурыИФункции
// Параметры:
// Субъекты - Массив из ОпределяемыйТип.СубъектПерсональныхДанных
//
// Возвращаемое значение:
// ФорматированнаяСтрока
//
&НаСервереБезКонтекста
Функция ТекстПредупреждения(Субъекты)
ПредставлениеОдного = НСтр("ru = 'Для выбранного субъекта будет создан акт'");
ПредставлениеНескольких = НСтр("ru = 'Для %1 выбранных субъектов будут созданы акты'");
НачалоСтроки = СтроковыеФункцииКлиентСервер.СтрокаСЧисломДляЛюбогоЯзыка(
СтроковыеФункцииКлиентСервер.ПодставитьПараметрыВСтроку(НСтр("ru = ';%1;;%2;%2;'"),
ПредставлениеОдного, ПредставлениеНескольких),
Субъекты.Количество());
ШаблонСтроки = НСтр("ru = '%1, в результате чего персональные данные будут <b>полностью уничтожены</b>.
|Обратите внимание, что это необратимая операция, и уничтоженные данные нельзя будет восстановить.'");
ФорматированнаяСтрока = СтроковыеФункции.ФорматированнаяСтрока(ШаблонСтроки, НачалоСтроки);
Возврат ФорматированнаяСтрока;
КонецФункции
&НаСервере
Процедура УстановитьВидимостьОрганизации(Организации)
ВсеОрганизацииЗаполнены = Истина;
ВсеОрганизацииПустые = Истина;
ЗаполненныеОрганизации = Новый Массив;
Для Каждого Организация Из Организации Цикл
Если ЗначениеЗаполнено(Организация) Тогда
ВсеОрганизацииПустые = Ложь;
ЗаполненныеОрганизации.Добавить(Организация);
Иначе
ВсеОрганизацииЗаполнены = Ложь;
КонецЕсли;
КонецЦикла;
Если ВсеОрганизацииПустые Тогда
ТекстОрганизации = СтроковыеФункции.ФорматированнаяСтрока(НСтр("ru = 'Акты формируются от имени:'"));
ОбщегоНазначенияКлиентСервер.УстановитьСвойствоЭлементаФормы(Элементы, "ТекстОрганизации", "Высота", 1);
Возврат;
КонецЕсли;
ОрганизацииСтрокой = СтрСоединить(ЗаполненныеОрганизации, ", ");
Если ВсеОрганизацииЗаполнены Тогда
ОбщегоНазначенияКлиентСервер.УстановитьСвойствоЭлементаФормы(Элементы, "Организация", "Видимость", Ложь);
ТекстОрганизации = СтроковыеФункции.ФорматированнаяСтрока(НСтр("ru = 'Акты формируются от имени: <b>%1</b>.'"),
ОрганизацииСтрокой);
Иначе
ТекстОрганизации = СтроковыеФункции.ФорматированнаяСтрока(
НСтр("ru = 'Акты формируются от имени: <b>%1</b>, а также организации:'"), ОрганизацииСтрокой);
КонецЕсли;
КонецПроцедуры
#КонецОбласти
| 4,687 | Module | bsl | ru | 1c enterprise | code | {"qsc_code_num_words": 340, "qsc_code_num_chars": 4687.0, "qsc_code_mean_word_length": 10.70882353, "qsc_code_frac_words_unique": 0.48235294, "qsc_code_frac_chars_top_2grams": 0.01153529, "qsc_code_frac_chars_top_3grams": 0.04366932, "qsc_code_frac_chars_top_4grams": 0.04696512, "qsc_code_frac_chars_dupe_5grams": 0.12551497, "qsc_code_frac_chars_dupe_6grams": 0.12551497, "qsc_code_frac_chars_dupe_7grams": 0.06838781, "qsc_code_frac_chars_dupe_8grams": 0.06838781, "qsc_code_frac_chars_dupe_9grams": 0.06838781, "qsc_code_frac_chars_dupe_10grams": 0.04614117, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00449704, "qsc_code_frac_chars_whitespace": 0.09857051, "qsc_code_size_file_byte": 4687.0, "qsc_code_num_lines": 138.0, "qsc_code_num_chars_line_max": 117.0, "qsc_code_num_chars_line_mean": 33.96376812, "qsc_code_frac_chars_alphabet": 0.85704142, "qsc_code_frac_chars_comments": 0.97759761, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.0, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 1, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ИнформацияПриЗапуске/Templates/Описатель.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Template uuid="33e96bda-1708-4ee4-8d4d-3b919bda3e38">
<Properties>
<Name>Описатель</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Описатель</v8:content>
</v8:item>
</Synonym>
<Comment/>
<TemplateType>SpreadsheetDocument</TemplateType>
</Properties>
</Template>
</MetaDataObject> | 1,241 | Описатель | xml | ru | xml | data | {"qsc_code_num_words": 223, "qsc_code_num_chars": 1241.0, "qsc_code_mean_word_length": 3.86098655, "qsc_code_frac_words_unique": 0.32735426, "qsc_code_frac_chars_top_2grams": 0.10452962, "qsc_code_frac_chars_top_3grams": 0.13937282, "qsc_code_frac_chars_top_4grams": 0.17421603, "qsc_code_frac_chars_dupe_5grams": 0.42624855, "qsc_code_frac_chars_dupe_6grams": 0.42624855, "qsc_code_frac_chars_dupe_7grams": 0.35423926, "qsc_code_frac_chars_dupe_8grams": 0.28339141, "qsc_code_frac_chars_dupe_9grams": 0.05574913, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.08833619, "qsc_code_frac_chars_whitespace": 0.06043513, "qsc_code_size_file_byte": 1241.0, "qsc_code_num_lines": 16.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 77.5625, "qsc_code_frac_chars_alphabet": 0.64922813, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.53908139, "qsc_code_frac_chars_long_word_length": 0.02900886, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 1, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ИнформацияПриЗапуске/Forms/Форма.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Form uuid="c1372891-0f55-4868-ab97-906eff52be0e">
<Properties>
<Name>Форма</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Форма</v8:content>
</v8:item>
</Synonym>
<Comment/>
<FormType>Managed</FormType>
<IncludeHelpInContents>false</IncludeHelpInContents>
<UsePurposes>
<v8:Value xsi:type="app:ApplicationUsePurpose">PlatformApplication</v8:Value>
<v8:Value xsi:type="app:ApplicationUsePurpose">MobilePlatformApplication</v8:Value>
</UsePurposes>
<ExtendedPresentation/>
</Properties>
</Form>
</MetaDataObject> | 1,493 | Форма | xml | ru | xml | data | {"qsc_code_num_words": 247, "qsc_code_num_chars": 1493.0, "qsc_code_mean_word_length": 4.24291498, "qsc_code_frac_words_unique": 0.32793522, "qsc_code_frac_chars_top_2grams": 0.08587786, "qsc_code_frac_chars_top_3grams": 0.11450382, "qsc_code_frac_chars_top_4grams": 0.14312977, "qsc_code_frac_chars_dupe_5grams": 0.42270992, "qsc_code_frac_chars_dupe_6grams": 0.42270992, "qsc_code_frac_chars_dupe_7grams": 0.29103053, "qsc_code_frac_chars_dupe_8grams": 0.23282443, "qsc_code_frac_chars_dupe_9grams": 0.04580153, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.07913669, "qsc_code_frac_chars_whitespace": 0.06898861, "qsc_code_size_file_byte": 1493.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 67.86363636, "qsc_code_frac_chars_alphabet": 0.67410072, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.48158071, "qsc_code_frac_chars_long_word_length": 0.05760214, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ИнформацияПриЗапуске/Ext/Help/ru.html | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta content="text/html;charset=utf-8" http-equiv="content-type"></meta><link rel="stylesheet" type="text/css" href="v8help://service_book/service_style"></link><meta name="GENERATOR" content="MSHTML 11.00.10570.1001"></meta></head><body>
<p>Предназначена для просмотра справочной, нормативной и другой информации, поставляемой в составе приложения.</p>
<p>Для базовых версий показ дополнительной информации при начале работы приложения выполняется всегда.</p>
<p>Открывается по команде <strong>Информация при запуске</strong> из группы <strong>Информация</strong> на странице <strong>Главное</strong>. При открытии сразу показывается одна из страниц дополнительной информации.</p>
<h3>Навигация</h3>
<ul><li>С помощью кнопки <strong>Главная страница</strong> можно вернуться к информации на главной странице.
</li>
<li>В командной панели размещены навигационные кнопки <img src="StdPicture.MoveLeft"></img><strong>Назад</strong> и <img src="StdPicture.MoveRight"></img><strong>Вперед</strong>, с помощью которых осуществляется переход по уже просмотренным страницам, а также пункты меню, соответствующие названиям разделов дополнительной информации. При выборе в командной панели раздела открывается список страниц дополнительной информации, относящихся к данному разделу. Страница показывается при выборе пункта меню с названием страницы.
</li>
<li>Текст страницы может содержать ссылки на другие страницы дополнительной информации (внутренние ссылки), а также ссылки на разделы сайтов, размещенных в сети Интернет (внешние ссылки). Для перехода по внешним ссылкам необходимо, чтобы компьютер имел доступ в сеть Интернет.</li></ul><h3>Получение информации об ИТС</h3>
<ul><li>С помощью кнопки <strong>Поддержка</strong> можно получить информацию об ИТС (информационно-технологическом сопровождении) и условиях его получения.</li></ul><h3>Показывать при начале работы - недоступно в базовых версиях</h3>
<ul><li>Для ПРОФ-версий доступна настройка показа дополнительной информации при начале работы приложения. Если дополнительная информация показывается в режиме рабочего стола, то в командной панели размещается флажок <strong>Показывать при начале работы</strong>.
</li>
<li>Если снять флажок, то дополнительная информация не будет показываться при начале работы.
</li>
<li>Флажок <strong>Показывать при начале работы</strong> автоматически снимается два раза в месяц и после обновления версии приложения.</li></ul></body></html> | 2,512 | ru | html | ru | html | code | {"qsc_code_num_words": 344, "qsc_code_num_chars": 2512.0, "qsc_code_mean_word_length": 5.81686047, "qsc_code_frac_words_unique": 0.52616279, "qsc_code_frac_chars_top_2grams": 0.07196402, "qsc_code_frac_chars_top_3grams": 0.04497751, "qsc_code_frac_chars_top_4grams": 0.03748126, "qsc_code_frac_chars_dupe_5grams": 0.11794103, "qsc_code_frac_chars_dupe_6grams": 0.11794103, "qsc_code_frac_chars_dupe_7grams": 0.06896552, "qsc_code_frac_chars_dupe_8grams": 0.0, "qsc_code_frac_chars_dupe_9grams": 0.0, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.01062417, "qsc_code_frac_chars_whitespace": 0.10071656, "qsc_code_size_file_byte": 2512.0, "qsc_code_num_lines": 16.0, "qsc_code_num_chars_line_max": 526.0, "qsc_code_num_chars_line_mean": 157.0, "qsc_code_frac_chars_alphabet": 0.87472333, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.25, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.07802548, "qsc_code_frac_chars_long_word_length": 0.02308917, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codehtml_cate_ast": 1.0, "qsc_codehtml_frac_words_text": 0.7241242, "qsc_codehtml_num_chars_text": 1819.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 1, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_cate_xml_start": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_cate_autogen": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_codehtml_cate_ast": 0, "qsc_codehtml_frac_words_text": 0, "qsc_codehtml_num_chars_text": 0} |
2003100127/pypropel | pypropel/prot/structure/distance/Distance.py | __author__ = "Jianfeng Sun"
__version__ = "v1.0"
__copyright__ = "Copyright 2024"
__license__ = "GPL v3.0"
__email__ = "jianfeng.sunmt@gmail.com"
__maintainer__ = "Jianfeng Sun"
import os
import sys
sys.path.append(os.path.dirname(os.getcwd()) + '/')
from abc import ABCMeta, abstractmethod
# from Bio.PDB.Polypeptide import three_to_one
from pypropel.util.Console import Console
console = Console()
three_to_one = {
'CYS': 'C',
'ASP': 'D',
'SER': 'S',
'GLN': 'Q',
'LYS': 'K',
'ILE': 'I',
'PRO': 'P',
'THR': 'T',
'PHE': 'F',
'ASN': 'N',
'GLY': 'G',
'HIS': 'H',
'LEU': 'L',
'ARG': 'R',
'TRP': 'W',
'ALA': 'A',
'VAL':'V',
'GLU': 'E',
'TYR': 'Y',
'MET': 'M',
}
class distance(metaclass=ABCMeta):
@abstractmethod
def calculate(self):
pass
def one2one_minimal(
self,
chain1,
chain2,
verbose: bool = False,
):
"""
Notes
-----
It outputs minimal distances of each residue in chain 1 to a residue in chain 2.
Parameters
----------
chain1
a biopython-typed chain ob 1
chain2
a biopython-typed chain ob 2
Returns
-------
2d array
"""
console.verbose = verbose
dist_matrix = []
count_hetamt_1 = 0
count_hetamt_2 = 0
for index_1, residue_1 in enumerate(chain1):
console.print("==================>residue 1 ID: {}".format(index_1))
if residue_1.get_id()[0] != ' ':
count_hetamt_1 = count_hetamt_1 + 1
continue
else:
residue_dist = []
for index_2, residue_2 in enumerate(chain2):
# console.print("=====================>residue 2 ID: {}".format(index_1))
if residue_2.get_id()[0] != ' ':
count_hetamt_2 = count_hetamt_2 + 1
continue
else:
tmp_atom_dist = []
for atom_1 in residue_1:
if atom_1.get_name() != 'H':
for atom_2 in residue_2:
if atom_2.get_name() != 'H':
calc_dist = residue_1[atom_1.get_name()] - residue_2[atom_2.get_name()]
tmp_atom_dist.append(calc_dist)
# print('tmp list: %s' % tmp_atom_dist)
min_atom_dist = min(tmp_atom_dist)
# print(min_atom_dist)
residue_dist.append(min_atom_dist)
# if min(residue_dist) < 6:
# print(min(residue_dist))
min_residue_dist = min(residue_dist)
dist_matrix.append([
index_1 + 1 - count_hetamt_1,
three_to_one[residue_1.get_resname()],
residue_1.id[1],
min_residue_dist
])
return dist_matrix
def one2one_all(
self,
chain1,
chain2,
verbose: bool = False,
):
"""
Notes
-----
It outputs the minimum distance of each residue in chain 1 to
each residue in the chain 2.
Parameters
----------
chain1
a biopython-typed chain ob 1
chain2
a biopython-typed chain ob 2
Returns
-------
2d array
"""
console.verbose = verbose
dist_matrix = []
count_hetamt_1 = 0
count_hetamt_2 = 0
for index_1, residue_1 in enumerate(chain1):
console.print("==================>residue 1 ID: {}".format(index_1))
if residue_1.get_id()[0] != ' ':
# print(residue_1.get_id())
count_hetamt_1 = count_hetamt_1 + 1
continue
else:
# print(residue_1.get_id())
for index_2, residue_2 in enumerate(chain2):
# console.print("=====================>residue 2 ID: {}".format(index_1))
tmp_atom_dist = []
if residue_2.get_id()[0] != ' ':
count_hetamt_2 = count_hetamt_2 + 1
continue
else:
for atom_1 in residue_1:
if atom_1.get_name() != 'H':
for atom_2 in residue_2:
if atom_2.get_name() != 'H':
calc_dist = residue_1[atom_1.get_name()] - residue_2[atom_2.get_name()]
tmp_atom_dist.append(calc_dist)
# print('tmp list: %s' % tmp_atom_dist)
min_dist = min(tmp_atom_dist)
# print(min_dist)
dist_matrix.append([
index_1 + 1 - count_hetamt_1,
three_to_one[residue_1.get_resname()],
residue_1.id[1],
index_2 + 1 - count_hetamt_2,
'U' if residue_2.get_resname() == 'UNK' else three_to_one[residue_2.get_resname()],
residue_2.id[1],
min_dist,
])
return dist_matrix
def check(
self,
chain1,
chain2,
thres=6,
verbose: bool = False,
):
"""
Each residue in the chain 1 has a minimum distance against all of
residues in the chain 2.
It stops the calculations of the minimum distance of each residue
to each residue in the chain 2 when it detects a minimum distance
of less than thres, 6 by default.
Parameters
----------
chain1
a biopython-typed chain ob 1
chain2
a biopython-typed chain ob 2
thres
Returns
-------
2d array
"""
console.verbose = verbose
mark = False
for index_1, residue_1 in enumerate(chain1):
console.print("==================>residue 1 ID: {}".format(index_1))
min_check = []
if residue_1.get_id()[0] != ' ':
continue
else:
for index_2, residue_2 in enumerate(chain2):
tmp_atom_dist = []
if residue_2.get_id()[0] != ' ':
continue
else:
for atom_1 in residue_1:
if atom_1.get_name() != 'H':
for atom_2 in residue_2:
if atom_2.get_name() != 'H':
calc_dist = residue_1[atom_1.get_name()] - residue_2[atom_2.get_name()]
tmp_atom_dist.append(calc_dist)
# print('tmp list: %s' % tmp_atom_dist)
min_dist = min(tmp_atom_dist)
min_check.append(min_dist)
if min(min_check) < thres:
mark = True
console.print("==================>residue {} and residue {} in interaction".format(index_1, index_2))
break
if mark:
break
return mark | 7,646 | Distance | py | en | python | code | {"qsc_code_num_words": 798, "qsc_code_num_chars": 7646.0, "qsc_code_mean_word_length": 3.94235589, "qsc_code_frac_words_unique": 0.19298246, "qsc_code_frac_chars_top_2grams": 0.05340114, "qsc_code_frac_chars_top_3grams": 0.04195804, "qsc_code_frac_chars_top_4grams": 0.03814367, "qsc_code_frac_chars_dupe_5grams": 0.68308964, "qsc_code_frac_chars_dupe_6grams": 0.65034965, "qsc_code_frac_chars_dupe_7grams": 0.60267006, "qsc_code_frac_chars_dupe_8grams": 0.56452638, "qsc_code_frac_chars_dupe_9grams": 0.55371901, "qsc_code_frac_chars_dupe_10grams": 0.48887476, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.03655352, "qsc_code_frac_chars_whitespace": 0.44899294, "qsc_code_size_file_byte": 7646.0, "qsc_code_num_lines": 227.0, "qsc_code_num_chars_line_max": 126.0, "qsc_code_num_chars_line_mean": 33.68281938, "qsc_code_frac_chars_alphabet": 0.71018277, "qsc_code_frac_chars_comments": 0.16923882, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.60927152, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.05608572, "qsc_code_frac_chars_long_word_length": 0.02142977, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.02649007, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.00662252, "qsc_codepython_frac_lines_import": 0.02649007, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.0794702, "qsc_codepython_frac_lines_print": 0.02649007} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
2003100127/pypropel | pypropel/prot/structure/distance/isite/DistanceComplexOne.py | __author__ = "Jianfeng Sun"
__version__ = "v1.0"
__copyright__ = "Copyright 2025"
__license__ = "GPL v3.0"
__email__ = "jianfeng.sunmt@gmail.com"
__maintainer__ = "Jianfeng Sun"
# import os
# import sys
# sys.path.append(os.path.dirname(os.getcwd()) + '/')
import click
import pandas as pd
from pypropel.prot.structure.distance.isite.heavy.AllAgainstAll import AllAgainstAll as aaaheavy
from pypropel.util.Writer import Writer as pfwriter
from pypropel.prot.sequence.Name import Name as chainname
from pypropel.util.Console import Console
class DistanceComplexOne:
def __init__(
self,
pdb_fp,
prot_name,
prot_chain,
method,
sv_fp,
verbose: bool = True,
):
self.pdb_fp = pdb_fp
self.prot_name = prot_name
self.prot_chain = prot_chain
self.method = method
self.sv_fp = sv_fp
self.pfwriter = pfwriter()
self.console = Console()
self.verbose = verbose
self.console.verbose = self.verbose
def dist_without_aa(self, ):
"""
Examples
--------
pypropel_struct_dist_cplx1 -fp D:/Document/Programming/Python/minverse/minverse/data/deepisite/pdbtm/cplx/ -fn 1aij -c L -k dist_1c_vs_allc_cplx -m heavy -o ./ -vb False
Returns
-------
"""
self.console.print('=========>Protein PDB code: {}'.format(self.prot_name))
self.console.print('=========>Chain of focus: {}'.format(self.prot_chain))
multimeric = aaaheavy(
pdb_fp=self.pdb_fp,
pdb_name=self.prot_name,
)
chains = multimeric.chains()
model = multimeric.model
chains.remove(self.prot_chain)
df_dist = pd.DataFrame()
chain = model[self.prot_chain]
pos_list = []
for j, prot_chain2 in enumerate(chains):
if prot_chain2 != self.prot_chain:
self.console.print('============>Partner chain: {}'.format(prot_chain2))
chain2 = model[chains[j]]
if self.method == 'heavy':
dists = multimeric.one2one_minimal(chain, chain2, verbose=self.verbose)
df_dist[prot_chain2] = pd.DataFrame(dists)[3]
if j == 0:
for pos in dists:
pos_list.append(pos[:3])
elif self.method == 'comprehensive':
pass
else:
pass
df = pd.concat([pd.DataFrame(pos_list), df_dist], axis=1)
self.console.print("=========>dist dataframe: {}".format(df))
file_chain = chainname().chain(self.prot_chain)
self.pfwriter.generic(
df,
self.sv_fp + self.prot_name + file_chain + '.dist',
header=True,
)
return 0
def dist_with_aa(self, thres=6):
"""
Examples
--------
python ./template/Mutual.py -pn 1fft -pc1 A -pdbp ./ -k heavy -sp ./
"""
self.console.print('=========>Protein PDB code: {}'.format(self.prot_name))
self.console.print('=========>Chain of focus: {}'.format(self.prot_chain))
file_chain1 = chainname().chain(self.prot_chain)
multimeric = aaaheavy(
pdb_fp=self.pdb_fp,
pdb_name=self.prot_name,
)
chains = multimeric.chains()
model = multimeric.model
chains.remove(self.prot_chain)
chain1 = model[self.prot_chain]
accumulate = []
for j, prot_chain2 in enumerate(chains):
self.console.print('============>Partner chain: {}'.format(prot_chain2))
chain2 = model[chains[j]]
if self.method == 'heavy':
dists = multimeric.one2one_all(chain1, chain2, verbose=self.verbose)
df_dist = pd.DataFrame(dists)
df_dist = df_dist.loc[df_dist[6] < thres].reset_index(drop=True)
df_dist[7] = self.prot_chain
df_dist[8] = prot_chain2
df_dist = df_dist[[7, 2, 1, 8, 5, 4, 6]]
df_dist.columns = [
'chain1',
'pos1',
'aa1',
'chain2',
'pos2',
'aa2',
'dist',
]
accumulate.append(df_dist)
elif self.method == 'comprehensive':
pass
else:
pass
df = pd.concat(accumulate, axis=0)
self.pfwriter.generic(
df=df,
sv_fpn=self.sv_fp + self.prot_name + file_chain1 + '.pdbinter',
)
return
@click.command(context_settings=dict(help_option_names=['-h', '--help']))
@click.option(
'--pdb_fp', '-fp', type=str, required=True,
help="""pdb file path"""
)
@click.option(
'--pdb_fn', '-fn', type=str, required=True,
help="""complex name"""
)
@click.option(
'--chain', '-c', type=str, required=True,
help="""protein chain of focus"""
)
@click.option(
'--method', '-m', type=str, required=True,
help="""method to get distance"""
)
@click.option(
'--kind', '-k', type=str, required=True,
help="""different functions"""
)
@click.option(
'--sv_fp', '-o', type=str, default='./', show_default=True,
help="""output path"""
)
@click.option(
"--verbose", '-vb', default=True, show_default=True,
help="whether to print output"
)
def cli(
pdb_fp,
pdb_fn,
chain,
method,
kind,
sv_fp,
verbose,
):
if kind == "dist_1c_vs_allc_cplx":
return DistanceComplexOne(
pdb_fp=pdb_fp,
prot_name=pdb_fn,
prot_chain=chain,
method=method,
sv_fp=sv_fp,
verbose=verbose,
).dist_without_aa()
if __name__ == "__main__":
cli() | 5,933 | DistanceComplexOne | py | en | python | code | {"qsc_code_num_words": 665, "qsc_code_num_chars": 5933.0, "qsc_code_mean_word_length": 4.58496241, "qsc_code_frac_words_unique": 0.26165414, "qsc_code_frac_chars_top_2grams": 0.0472286, "qsc_code_frac_chars_top_3grams": 0.04690062, "qsc_code_frac_chars_top_4grams": 0.03115776, "qsc_code_frac_chars_dupe_5grams": 0.3679895, "qsc_code_frac_chars_dupe_6grams": 0.29813053, "qsc_code_frac_chars_dupe_7grams": 0.27845195, "qsc_code_frac_chars_dupe_8grams": 0.24237455, "qsc_code_frac_chars_dupe_9grams": 0.24237455, "qsc_code_frac_chars_dupe_10grams": 0.24237455, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.01346969, "qsc_code_frac_chars_whitespace": 0.32428788, "qsc_code_size_file_byte": 5933.0, "qsc_code_num_lines": 192.0, "qsc_code_num_chars_line_max": 178.0, "qsc_code_num_chars_line_mean": 30.90104167, "qsc_code_frac_chars_alphabet": 0.74706909, "qsc_code_frac_chars_comments": 0.06219451, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.3081761, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.10761347, "qsc_code_frac_chars_long_word_length": 0.00439239, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.02515723, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.02515723, "qsc_codepython_frac_lines_import": 0.03773585, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.08805031, "qsc_codepython_frac_lines_print": 0.05031447} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
2003100127/pypropel | pypropel/prot/structure/distance/isite/Label.py | __author__ = "Jianfeng Sun"
__version__ = "v1.0"
__copyright__ = "Copyright 2024"
__license__ = "GPL v3.0"
__email__ = "jianfeng.sunmt@gmail.com"
__maintainer__ = "Jianfeng Sun"
from typing import Union
import time
import pandas as pd
from pypropel.util.ComputLib import ComputLib as computlib
from pypropel.prot.structure.distance.isite.heavy.AllAgainstAll import AllAgainstAll as aaaheavy
from pypropel.util.Reader import Reader as pfreader
from pypropel.prot.sequence.Name import Name as chainname
from pypropel.util.Console import Console
class Label:
def __init__(
self,
dist_fp,
prot_name,
file_chain,
cutoff=6,
header=0,
verbose: bool = True,
):
self.prot_name = prot_name
self.file_chain = file_chain
self.dist_fpn = dist_fp + self.prot_name + self.file_chain + '.dist'
self.cutoff = cutoff
self.header = header
self.pfreader = pfreader()
self.computlib = computlib()
self.console = Console()
self.console.verbose = verbose
def attach(self, ):
self.console.print('================>Labeling data...')
start_time = time.time()
df_dist = self.pfreader.generic(self.dist_fpn, header=self.header)
# print(df_dist)
dists = df_dist.iloc[:, 3:]
dist_mins = dists.min(axis=1)
# print(dist_mins)
inter_ids = dist_mins.loc[dist_mins < self.cutoff].index.tolist()
noninter_ids = dist_mins.loc[dist_mins >= self.cutoff].index.tolist()
df_dist['is_contact'] = -1
df_dist.loc[inter_ids, 'is_contact'] = 1
df_dist.loc[noninter_ids, 'is_contact'] = 0
columns = ['fasta_id', 'aa', 'pdb_id']
for i in range(dists.shape[1]):
columns.append('dist_' + str(i+1))
columns.append('is_contact')
df_dist.columns = columns
end_time = time.time()
self.console.print('================>Time to label distances {} {}: {}s.'.format(self.prot_name, self.file_chain, end_time - start_time))
return df_dist
def segment(
self,
dist_df,
pos_df,
by : Union[str, float] = 'interact_id',
):
dist_df_ = dist_df[[
'fasta_id',
'aa',
'pdb_id',
'is_contact',
]]
num_samples = pos_df.shape[0]
dists__ = pd.DataFrame()
dists__[0] = dist_df_['fasta_id']
dists__[1] = dist_df_.index.values
dists__ = dists__.values.tolist()
dist_dict = self.computlib.tactic6(dists__)
dist_ids = []
for i in range(num_samples):
id = pos_df[by][i]
# print(id)
dist_id = dist_dict[id]
dist_ids.append(dist_id)
dist_df_ = dist_df_.iloc[dist_ids]
dist_df_.columns = [
'fasta_id',
'aa',
'pdb_id',
'is_contact',
]
dist_df_ = dist_df_.reset_index(inplace=False, drop=True)
return dist_df_
def partner(self, pdb_fp):
multimeric = aaaheavy(
pdb_fp=pdb_fp,
pdb_name=self.prot_name,
)
chains = multimeric.chains()
seq_chain = chainname().seqchain(self.file_chain)
chains.remove(seq_chain)
dist_df = self.pfreader.generic(self.dist_fpn, header=0)
dists = dist_df.iloc[:, 3:]
partners = []
for i, col in enumerate(dists.columns):
if dists[col].min() < self.cutoff:
partners.append(chains[i])
return partners
if __name__ == "__main__":
from pypropel.path import to
p = Label(
dist_fp=to('data/pdb/complex/pdbtm/'),
prot_name='1aij',
file_chain='L',
cutoff=6,
)
dists = p.attach()
# print(dists)
# print(dists.to_csv(to('data/pdb/complex/pdbtm/dist_label.txt')))
# partners = p.partner(
# pdb_fp=to('data/pdb/complex/pdbtm/'),
# )
# print(partners)
import tmkit as tmk
lower_ids, upper_ids = tmk.topo.from_pdbtm(
xml_fp=to('data/xml/'),
prot_name='1aij',
seq_chain='L',
topo='tmh',
)
print(lower_ids)
print(upper_ids)
pdb_ids = tmk.seq.pdbid(
pdb_fp=to('data/pdb/pdbtm/'),
prot_name='1aij',
seq_chain='L',
file_chain='L',
)
print(pdb_ids)
fas_ids = tmk.seq.fasid(
fasta_fpn=to('data/fasta/1aijL.fasta'),
)
print(fas_ids)
from tmkit.topology.pdbtm.ToFastaId import toFastaId
fasta_lower_tmh, fasta_upper_tmh = toFastaId().tmh(
pdbid_map=pdb_ids,
fasid_map=fas_ids,
xml_fp=to('data/xml/'),
prot_name='1aij',
seq_chain='L',
)
print(fasta_lower_tmh)
print(fasta_upper_tmh)
from tmkit.position.scenario.Segment import Segment as ppssegment
pos_list_single = ppssegment().to_single(fasta_lower_tmh, fasta_upper_tmh)
print(pos_list_single)
df_seg = p.segment(
dist_df=dists,
pos_df=pd.DataFrame(pos_list_single),
by=0,
)
print(df_seg)
# print(df_seg.to_csv('./asdasd.txt')) | 5,205 | Label | py | en | python | code | {"qsc_code_num_words": 660, "qsc_code_num_chars": 5205.0, "qsc_code_mean_word_length": 4.31818182, "qsc_code_frac_words_unique": 0.22878788, "qsc_code_frac_chars_top_2grams": 0.02947368, "qsc_code_frac_chars_top_3grams": 0.01403509, "qsc_code_frac_chars_top_4grams": 0.01684211, "qsc_code_frac_chars_dupe_5grams": 0.20912281, "qsc_code_frac_chars_dupe_6grams": 0.17859649, "qsc_code_frac_chars_dupe_7grams": 0.09614035, "qsc_code_frac_chars_dupe_8grams": 0.05473684, "qsc_code_frac_chars_dupe_9grams": 0.05473684, "qsc_code_frac_chars_dupe_10grams": 0.05473684, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.0081103, "qsc_code_frac_chars_whitespace": 0.28933718, "qsc_code_size_file_byte": 5205.0, "qsc_code_num_lines": 178.0, "qsc_code_num_chars_line_max": 146.0, "qsc_code_num_chars_line_mean": 29.24157303, "qsc_code_frac_chars_alphabet": 0.76236821, "qsc_code_frac_chars_comments": 0.04572526, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.17006803, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.08190438, "qsc_code_frac_chars_long_word_length": 0.02319952, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.02721088, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.08163265, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.13605442, "qsc_codepython_frac_lines_print": 0.06802721} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ЗаявлениеНаВыпускНовогоКвалифицированногоСертификата/Templates/ИнформацияЗаявления/Ext/Template.xml | <?xml version="1.0" encoding="UTF-8"?>
<document xmlns="http://v8.1c.ru/8.2/data/spreadsheet" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<languageSettings>
<currentLanguage>ru</currentLanguage>
<defaultLanguage>ru</defaultLanguage>
<languageInfo>
<id>ru</id>
<code>Русский</code>
<description>Русский</description>
</languageInfo>
</languageSettings>
<columns>
<size>11</size>
</columns>
<rowsItem>
<index>0</index>
<row>
<formatIndex>1</formatIndex>
<c>
<c>
<f>2</f>
<tl/>
</c>
</c>
<c>
<c>
<f>3</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Выпуск сертификата может быть платным. При безбумажном продлении стоимость выпуска сертификата и предоставление льготной лицензии 1С:Подпись аналогичны стоимости выпуска нового сертификата. За более полной информацией обратитесь к вашему партнеру.</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<i>10</i>
<c>
<f>3</f>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>1</index>
<row>
<formatIndex>4</formatIndex>
<c>
<c>
<f>5</f>
</c>
</c>
<c>
<c>
<f>6</f>
</c>
</c>
<c>
<c>
<f>6</f>
</c>
</c>
<c>
<c>
<f>6</f>
</c>
</c>
<c>
<c>
<f>6</f>
</c>
</c>
<c>
<c>
<f>6</f>
</c>
</c>
<c>
<c>
<f>6</f>
</c>
</c>
<c>
<c>
<f>6</f>
</c>
</c>
<c>
<c>
<f>6</f>
</c>
</c>
<c>
<c>
<f>6</f>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>2</index>
<row>
<formatIndex>4</formatIndex>
<c>
<c>
<f>7</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ЗаголовокШапки]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>8</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ЗаголовокШапки]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>8</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ЗаголовокШапки]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>8</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ЗаголовокШапки]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>8</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ЗаголовокШапки]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>8</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ЗаголовокШапки]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>8</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ЗаголовокШапки]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>8</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ЗаголовокШапки]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>8</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ЗаголовокШапки]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>8</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ЗаголовокШапки]</v8:content>
</v8:item>
</tl>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>3</index>
<row>
<formatIndex>4</formatIndex>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Организация (O)</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>11</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[O]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>12</f>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>4</index>
<row>
<formatIndex>4</formatIndex>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Подразделение (OU)</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>11</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[OU]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>12</f>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>5</index>
<row>
<formatIndex>4</formatIndex>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Должность (T)</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>11</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[T]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>12</f>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>6</index>
<row>
<formatIndex>4</formatIndex>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>ОГРН</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>11</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[OGRN]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>12</f>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>7</index>
<row>
<formatIndex>4</formatIndex>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>ИНН ЮЛ (INNLE)</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>11</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[INNLE]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>12</f>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>8</index>
<row>
<formatIndex>4</formatIndex>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>ОГРНИП</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>11</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[OGRNIP]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>12</f>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>9</index>
<row>
<formatIndex>4</formatIndex>
<c>
<c>
<f>13</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Фамилия (SN)</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>15</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[SN]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>16</f>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>10</index>
<row>
<formatIndex>4</formatIndex>
<c>
<c>
<f>13</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Имя Отчество (G)</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>15</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[G]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>16</f>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>11</index>
<row>
<formatIndex>4</formatIndex>
<c>
<c>
<f>13</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Удостоверение личности</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>17</f>
</c>
</c>
<c>
<c>
<f>17</f>
</c>
</c>
<c>
<c>
<f>18</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[УдостоверениеЛичности]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>18</f>
<tl/>
</c>
</c>
<c>
<c>
<f>18</f>
<tl/>
</c>
</c>
<c>
<c>
<f>18</f>
<tl/>
</c>
</c>
<c>
<c>
<f>18</f>
<tl/>
</c>
</c>
<c>
<c>
<f>18</f>
<tl/>
</c>
</c>
<c>
<c>
<f>18</f>
<tl/>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>12</index>
<row>
<formatIndex>4</formatIndex>
<c>
<c>
<f>9</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>ИНН</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>11</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[INN]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>10</f>
</c>
</c>
<c>
<c>
<f>12</f>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>13</index>
<row>
<formatIndex>4</formatIndex>
<c>
<c>
<f>13</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>СНИЛС</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>15</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[SNILS]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>16</f>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>14</index>
<row>
<formatIndex>4</formatIndex>
<c>
<c>
<f>13</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>E-Mail (E)</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>15</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[E]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>16</f>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>15</index>
<row>
<formatIndex>4</formatIndex>
<c>
<c>
<f>13</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Страна (C)</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>15</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[C]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>16</f>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>16</index>
<row>
<formatIndex>4</formatIndex>
<c>
<c>
<f>13</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Регион (S)</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>15</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[S]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>16</f>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>17</index>
<row>
<formatIndex>4</formatIndex>
<c>
<c>
<f>13</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Населенный пункт (L)</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>15</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[L]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>16</f>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>18</index>
<row>
<formatIndex>4</formatIndex>
<c>
<c>
<f>13</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Адрес местонахождения (STREET)</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>15</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[Street]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>16</f>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>19</index>
<row>
<formatIndex>4</formatIndex>
<c>
<c>
<f>13</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Удостоверяющий центр</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>19</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ПолноеНаименованиеУЦ], ИНН: [ИНН_УЦ]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ПолноеНаименованиеУЦ], ИНН:[ИНН_УЦ]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ПолноеНаименованиеУЦ], ИНН:[ИНН_УЦ]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ПолноеНаименованиеУЦ], ИНН:[ИНН_УЦ]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ПолноеНаименованиеУЦ], ИНН:[ИНН_УЦ]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ПолноеНаименованиеУЦ], ИНН:[ИНН_УЦ]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>16</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ПолноеНаименованиеУЦ], ИНН:[ИНН_УЦ]</v8:content>
</v8:item>
</tl>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>20</index>
<row>
<formatIndex>4</formatIndex>
<c>
<c>
<f>13</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Идентификатор абонента</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>19</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ИдентификаторАбонента]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ИдентификаторАбонента]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ИдентификаторАбонента]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ИдентификаторАбонента]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ИдентификаторАбонента]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ИдентификаторАбонента]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>16</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ИдентификаторАбонента]</v8:content>
</v8:item>
</tl>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>21</index>
<row>
<formatIndex>4</formatIndex>
<c>
<c>
<f>13</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>ИКС запроса на сертификат</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>19</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ИдентификаторКлючаСубъекта]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>16</f>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>22</index>
<row>
<formatIndex>4</formatIndex>
<c>
<c>
<f>13</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Ключ проверки ЭП</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>19</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ОткрытаяЧастьКлючаЭП]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>14</f>
</c>
</c>
<c>
<c>
<f>16</f>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>23</index>
<row>
<formatIndex>4</formatIndex>
<c>
<c>
<f>20</f>
</c>
</c>
<c>
<c>
<f>21</f>
</c>
</c>
<c>
<c>
<f>21</f>
</c>
</c>
<c>
<c>
<f>21</f>
</c>
</c>
<c>
<c>
<f>21</f>
</c>
</c>
<c>
<c>
<f>21</f>
</c>
</c>
<c>
<c>
<f>21</f>
</c>
</c>
<c>
<c>
<f>21</f>
</c>
</c>
<c>
<c>
<f>21</f>
</c>
</c>
<c>
<c>
<f>21</f>
</c>
</c>
</row>
</rowsItem>
<rowsItem>
<index>24</index>
<row>
<formatIndex>4</formatIndex>
<c>
<c>
<f>22</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ЛицензияКриптопро]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>23</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ЗаголовокШапки]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>23</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ЗаголовокШапки]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>23</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ЗаголовокШапки]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>23</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ЗаголовокШапки]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>23</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ЗаголовокШапки]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>23</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ЗаголовокШапки]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>23</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ЗаголовокШапки]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>23</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ЗаголовокШапки]</v8:content>
</v8:item>
</tl>
</c>
</c>
<c>
<c>
<f>23</f>
<tl>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>[ЗаголовокШапки]</v8:content>
</v8:item>
</tl>
</c>
</c>
</row>
</rowsItem>
<templateMode>true</templateMode>
<height>25</height>
<vgRows>25</vgRows>
<merge>
<r>0</r>
<c>1</c>
<w>8</w>
</merge>
<merge>
<r>2</r>
<c>0</c>
<w>9</w>
</merge>
<merge>
<r>3</r>
<c>0</c>
<w>2</w>
</merge>
<merge>
<r>3</r>
<c>3</c>
<w>6</w>
</merge>
<merge>
<r>4</r>
<c>0</c>
<w>2</w>
</merge>
<merge>
<r>4</r>
<c>3</c>
<w>6</w>
</merge>
<merge>
<r>5</r>
<c>0</c>
<w>2</w>
</merge>
<merge>
<r>5</r>
<c>3</c>
<w>6</w>
</merge>
<merge>
<r>6</r>
<c>0</c>
<w>2</w>
</merge>
<merge>
<r>6</r>
<c>3</c>
<w>6</w>
</merge>
<merge>
<r>7</r>
<c>0</c>
<w>2</w>
</merge>
<merge>
<r>7</r>
<c>3</c>
<w>6</w>
</merge>
<merge>
<r>8</r>
<c>0</c>
<w>2</w>
</merge>
<merge>
<r>8</r>
<c>3</c>
<w>6</w>
</merge>
<merge>
<r>9</r>
<c>0</c>
<w>2</w>
</merge>
<merge>
<r>9</r>
<c>3</c>
<w>6</w>
</merge>
<merge>
<r>10</r>
<c>0</c>
<w>2</w>
</merge>
<merge>
<r>10</r>
<c>3</c>
<w>6</w>
</merge>
<merge>
<r>11</r>
<c>0</c>
<w>2</w>
</merge>
<merge>
<r>11</r>
<c>3</c>
<w>6</w>
</merge>
<merge>
<r>12</r>
<c>0</c>
<w>2</w>
</merge>
<merge>
<r>12</r>
<c>3</c>
<w>6</w>
</merge>
<merge>
<r>13</r>
<c>0</c>
<w>2</w>
</merge>
<merge>
<r>13</r>
<c>3</c>
<w>6</w>
</merge>
<merge>
<r>14</r>
<c>0</c>
<w>2</w>
</merge>
<merge>
<r>14</r>
<c>3</c>
<w>6</w>
</merge>
<merge>
<r>15</r>
<c>0</c>
<w>2</w>
</merge>
<merge>
<r>15</r>
<c>3</c>
<w>6</w>
</merge>
<merge>
<r>16</r>
<c>0</c>
<w>2</w>
</merge>
<merge>
<r>16</r>
<c>3</c>
<w>6</w>
</merge>
<merge>
<r>17</r>
<c>0</c>
<w>2</w>
</merge>
<merge>
<r>17</r>
<c>3</c>
<w>6</w>
</merge>
<merge>
<r>18</r>
<c>0</c>
<w>2</w>
</merge>
<merge>
<r>18</r>
<c>3</c>
<w>6</w>
</merge>
<merge>
<r>19</r>
<c>0</c>
<w>2</w>
</merge>
<merge>
<r>19</r>
<c>3</c>
<w>6</w>
</merge>
<merge>
<r>20</r>
<c>0</c>
<w>2</w>
</merge>
<merge>
<r>20</r>
<c>3</c>
<w>6</w>
</merge>
<merge>
<r>21</r>
<c>0</c>
<w>2</w>
</merge>
<merge>
<r>21</r>
<c>3</c>
<w>6</w>
</merge>
<merge>
<r>22</r>
<c>0</c>
<w>2</w>
</merge>
<merge>
<r>22</r>
<c>3</c>
<w>6</w>
</merge>
<merge>
<r>24</r>
<c>0</c>
<w>9</w>
</merge>
<verticalUnmerge>
<r>3</r>
<c>0</c>
<w>1</w>
</verticalUnmerge>
<verticalUnmerge>
<r>4</r>
<c>0</c>
<w>1</w>
</verticalUnmerge>
<namedItem xsi:type="NamedItemCells">
<name>L</name>
<area>
<type>Rows</type>
<beginRow>17</beginRow>
<endRow>17</endRow>
<beginColumn>-1</beginColumn>
<endColumn>-1</endColumn>
</area>
</namedItem>
<namedItem xsi:type="NamedItemCells">
<name>OGRNIP</name>
<area>
<type>Rows</type>
<beginRow>8</beginRow>
<endRow>8</endRow>
<beginColumn>-1</beginColumn>
<endColumn>-1</endColumn>
</area>
</namedItem>
<namedItem xsi:type="NamedItemCells">
<name>S</name>
<area>
<type>Rows</type>
<beginRow>16</beginRow>
<endRow>16</endRow>
<beginColumn>-1</beginColumn>
<endColumn>-1</endColumn>
</area>
</namedItem>
<namedItem xsi:type="NamedItemCells">
<name>Street</name>
<area>
<type>Rows</type>
<beginRow>18</beginRow>
<endRow>18</endRow>
<beginColumn>-1</beginColumn>
<endColumn>-1</endColumn>
</area>
</namedItem>
<namedItem xsi:type="NamedItemCells">
<name>Организация</name>
<area>
<type>Rows</type>
<beginRow>3</beginRow>
<endRow>7</endRow>
<beginColumn>-1</beginColumn>
<endColumn>-1</endColumn>
</area>
</namedItem>
<namedItem xsi:type="NamedItemCells">
<name>Шапка</name>
<area>
<type>Rows</type>
<beginRow>0</beginRow>
<endRow>24</endRow>
<beginColumn>-1</beginColumn>
<endColumn>-1</endColumn>
</area>
</namedItem>
<line width="1" gap="false">
<v8ui:style xsi:type="v8ui:SpreadsheetDocumentCellLineType">Solid</v8ui:style>
</line>
<font faceName="Arial" height="9" bold="false" italic="false" underline="false" strikeout="false" kind="Absolute" scale="100"/>
<font faceName="Arial" height="10" bold="true" italic="false" underline="false" strikeout="false" kind="Absolute" scale="100"/>
<format>
<height>165</height>
</format>
<format>
<width>65</width>
<picIndex>1</picIndex>
<pictureSizeMode>RealSize</pictureSizeMode>
<picHorizontalAlignment>Right</picHorizontalAlignment>
<picVerticalAlignment>Center</picVerticalAlignment>
</format>
<format>
<font>0</font>
<height>0</height>
<horizontalAlignment>Left</horizontalAlignment>
<textPlacement>Wrap</textPlacement>
</format>
<format>
<height>0</height>
</format>
<format>
<font>1</font>
<width>72</width>
<horizontalAlignment>Left</horizontalAlignment>
<verticalAlignment>Top</verticalAlignment>
<textPlacement>Wrap</textPlacement>
</format>
<format>
<font>1</font>
</format>
<format>
<font>1</font>
<border>0</border>
<width>72</width>
<horizontalAlignment>Left</horizontalAlignment>
<verticalAlignment>Top</verticalAlignment>
<textPlacement>Wrap</textPlacement>
<fillType>Template</fillType>
</format>
<format>
<font>1</font>
<fillType>Template</fillType>
</format>
<format>
<font>0</font>
<border>0</border>
<width>72</width>
<horizontalAlignment>Left</horizontalAlignment>
<verticalAlignment>Top</verticalAlignment>
<textPlacement>Wrap</textPlacement>
</format>
<format>
<font>0</font>
<border>0</border>
<width>72</width>
</format>
<format>
<font>0</font>
<border>0</border>
<width>72</width>
<horizontalAlignment>Left</horizontalAlignment>
<verticalAlignment>Top</verticalAlignment>
<textPlacement>Wrap</textPlacement>
<fillType>Template</fillType>
</format>
<format>
<font>0</font>
<border>0</border>
<width>51</width>
</format>
<format>
<font>0</font>
<border>0</border>
<width>72</width>
<horizontalAlignment>Left</horizontalAlignment>
<verticalAlignment>Top</verticalAlignment>
<textPlacement>Wrap</textPlacement>
</format>
<format>
<font>0</font>
<border>0</border>
<width>72</width>
</format>
<format>
<font>0</font>
<border>0</border>
<width>72</width>
<horizontalAlignment>Left</horizontalAlignment>
<verticalAlignment>Top</verticalAlignment>
<textPlacement>Wrap</textPlacement>
<fillType>Template</fillType>
</format>
<format>
<font>0</font>
<border>0</border>
<width>51</width>
</format>
<format>
<font>0</font>
<border>0</border>
</format>
<format>
<font>0</font>
<border>0</border>
<textPlacement>Wrap</textPlacement>
<fillType>Template</fillType>
</format>
<format>
<font>0</font>
<border>0</border>
<width>72</width>
<horizontalAlignment>Left</horizontalAlignment>
<verticalAlignment>Center</verticalAlignment>
<textPlacement>Wrap</textPlacement>
<fillType>Template</fillType>
</format>
<format>
<font>1</font>
<height>0</height>
<width>72</width>
<horizontalAlignment>Left</horizontalAlignment>
<verticalAlignment>Top</verticalAlignment>
<textPlacement>Wrap</textPlacement>
</format>
<format>
<font>1</font>
<height>0</height>
</format>
<format>
<font>1</font>
<height>0</height>
<width>72</width>
<horizontalAlignment>Left</horizontalAlignment>
<verticalAlignment>Top</verticalAlignment>
<textPlacement>Wrap</textPlacement>
<fillType>Template</fillType>
</format>
<format>
<font>1</font>
<height>0</height>
<fillType>Template</fillType>
</format>
<picture>
<index>0</index>
<picture t="false" ref="v8ui:Information"/>
</picture>
</document> | 31,886 | Template | xml | ru | xml | data | {"qsc_code_num_words": 4339, "qsc_code_num_chars": 31886.0, "qsc_code_mean_word_length": 2.98409772, "qsc_code_frac_words_unique": 0.04885918, "qsc_code_frac_chars_top_2grams": 0.1085882, "qsc_code_frac_chars_top_3grams": 0.10078777, "qsc_code_frac_chars_top_4grams": 0.06703738, "qsc_code_frac_chars_dupe_5grams": 0.86940068, "qsc_code_frac_chars_dupe_6grams": 0.85974668, "qsc_code_frac_chars_dupe_7grams": 0.8429101, "qsc_code_frac_chars_dupe_8grams": 0.82754093, "qsc_code_frac_chars_dupe_9grams": 0.80105036, "qsc_code_frac_chars_dupe_10grams": 0.7963392, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.06024153, "qsc_code_frac_chars_whitespace": 0.33519413, "qsc_code_size_file_byte": 31886.0, "qsc_code_num_lines": 2264.0, "qsc_code_num_chars_line_max": 284.0, "qsc_code_num_chars_line_mean": 14.08392226, "qsc_code_frac_chars_alphabet": 0.55052363, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.94390459, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.01339146, "qsc_code_frac_chars_long_word_length": 0.00112902, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 1, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 1, "qsc_code_frac_chars_dupe_6grams": 1, "qsc_code_frac_chars_dupe_7grams": 1, "qsc_code_frac_chars_dupe_8grams": 1, "qsc_code_frac_chars_dupe_9grams": 1, "qsc_code_frac_chars_dupe_10grams": 1, "qsc_code_frac_lines_dupe_lines": 1, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
2003100127/pypropel | pypropel/prot/structure/distance/isite/heavy/AllAgainstAll.py | __author__ = "Jianfeng Sun"
__version__ = "v1.0"
__copyright__ = "Copyright 2024"
__license__ = "GPL v3.0"
__email__ = "jianfeng.sunmt@gmail.com"
__maintainer__ = "Jianfeng Sun"
# import os
# import sys
# sys.path.append(os.path.dirname(os.getcwd()) + '/')
import pandas as pd
from Bio.PDB.PDBParser import PDBParser
from pypropel.prot.structure.distance import Distance
from pypropel.util.Console import Console
class AllAgainstAll(Distance.distance):
def __init__(
self,
pdb_fp,
pdb_name,
verbose : bool = True,
):
self.bio_parser = PDBParser()
self.pdb_fpn = pdb_fp + pdb_name + '.pdb'
self.structure = self.bio_parser.get_structure(pdb_name, self.pdb_fpn)
self.model = self.structure[0]
self.console = Console()
self.console.verbose = verbose
def chains(self, ):
return [c.get_id() for c in self.structure.get_chains()]
def calculate(self, ):
chains = self.chains()
num_chains = len(chains)
df = pd.DataFrame()
for i in range(num_chains):
for j in range(i + 1, num_chains):
self.console.print("============>chain 1 {} and chain2 {}".format(chains[i], chains[j]))
working_chain1 = self.model[chains[i]]
working_chain2 = self.model[chains[j]]
# print(working_chain1, working_chain2)
dist_mat = self.one2one_all(
working_chain1,
working_chain2
)
df_chain = pd.DataFrame(dist_mat)
df_chain = df_chain.rename(columns={
0: 'res_fas_id1',
1: 'res1',
2: 'res_pdb_id1',
3: 'res_fas_id2',
4: 'res2',
5: 'res_pdb_id2',
6: 'dist',
})
df_chain['chain1'] = str(chains[i])
df_chain['chain2'] = str(chains[j])
df = pd.concat([df, df_chain], axis=0)
return df
if __name__ == "__main__":
from pypropel.path import to
p = AllAgainstAll(
pdb_fp=to('data/pdb/complex/'),
pdb_name='1aij',
)
print(p.chains())
# print(p.calculate()) | 2,304 | AllAgainstAll | py | en | python | code | {"qsc_code_num_words": 266, "qsc_code_num_chars": 2304.0, "qsc_code_mean_word_length": 4.39849624, "qsc_code_frac_words_unique": 0.37218045, "qsc_code_frac_chars_top_2grams": 0.03589744, "qsc_code_frac_chars_top_3grams": 0.01367521, "qsc_code_frac_chars_top_4grams": 0.02051282, "qsc_code_frac_chars_dupe_5grams": 0.0, "qsc_code_frac_chars_dupe_6grams": 0.0, "qsc_code_frac_chars_dupe_7grams": 0.0, "qsc_code_frac_chars_dupe_8grams": 0.0, "qsc_code_frac_chars_dupe_9grams": 0.0, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.02360656, "qsc_code_frac_chars_whitespace": 0.33810764, "qsc_code_size_file_byte": 2304.0, "qsc_code_num_lines": 75.0, "qsc_code_num_chars_line_max": 105.0, "qsc_code_num_chars_line_mean": 30.72, "qsc_code_frac_chars_alphabet": 0.74360656, "qsc_code_frac_chars_comments": 0.05685764, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.09778598, "qsc_code_frac_chars_long_word_length": 0.01107011, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.05084746, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.08474576, "qsc_codepython_frac_lines_simplefunc": 0.01694915254237288, "qsc_codepython_score_lines_no_logic": 0.18644068, "qsc_codepython_frac_lines_print": 0.03389831} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
2003100127/pypropel | pypropel/prot/structure/distance/isite/heavy/OneToOne.py | __author__ = "Jianfeng Sun"
__version__ = "v1.0"
__copyright__ = "Copyright 2024"
__license__ = "GPL v3.0"
__email__ = "jianfeng.sunmt@gmail.com"
__maintainer__ = "Jianfeng Sun"
from Bio.PDB.PDBParser import PDBParser
from pypropel.prot.structure.distance import Distance
class OneToOne(Distance.distance):
def __init__(
self,
pdb_path1=None,
pdb_name1=None,
file_chain1=None,
seq_chain1=None,
pdb_path2=None,
pdb_name2=None,
file_chain2=None,
seq_chain2=None,
):
self.bio_parser = PDBParser()
self.pdb_fpn1 = pdb_path1 + pdb_name1 + file_chain1 + '.pdb'
self.pdb_fpn2 = pdb_path2 + pdb_name2 + file_chain2 + '.pdb'
self.structure1 = self.bio_parser.get_structure(pdb_name1, self.pdb_fpn1)
self.structure2 = self.bio_parser.get_structure(pdb_name2, self.pdb_fpn2)
self.model1 = self.structure1[0]
self.model2 = self.structure2[0]
self.working_chain1 = self.model1[seq_chain1]
self.working_chain2 = self.model2[seq_chain2]
def calculate(self, ):
return self.one2one_all(
self.working_chain1,
self.working_chain2,
)
if __name__ == "__main__":
from pypropel.path import to
import pandas as pd
p = OneToOne(
pdb_path1=to('data/pdb/complex/pdbtm/'),
pdb_name1='1aij',
file_chain1='',
seq_chain1='L',
pdb_path2=to('data/pdb/complex/pdbtm/'),
pdb_name2='1aij',
file_chain2='',
seq_chain2='M',
)
dist_mat = p.calculate()
print(pd.DataFrame(dist_mat)) | 1,672 | OneToOne | py | en | python | code | {"qsc_code_num_words": 203, "qsc_code_num_chars": 1672.0, "qsc_code_mean_word_length": 4.74384236, "qsc_code_frac_words_unique": 0.34975369, "qsc_code_frac_chars_top_2grams": 0.03634476, "qsc_code_frac_chars_top_3grams": 0.04049844, "qsc_code_frac_chars_top_4grams": 0.03322949, "qsc_code_frac_chars_dupe_5grams": 0.10799585, "qsc_code_frac_chars_dupe_6grams": 0.10799585, "qsc_code_frac_chars_dupe_7grams": 0.0, "qsc_code_frac_chars_dupe_8grams": 0.0, "qsc_code_frac_chars_dupe_9grams": 0.0, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.04500818, "qsc_code_frac_chars_whitespace": 0.26913876, "qsc_code_size_file_byte": 1672.0, "qsc_code_num_lines": 59.0, "qsc_code_num_chars_line_max": 82.0, "qsc_code_num_chars_line_mean": 28.33898305, "qsc_code_frac_chars_alphabet": 0.74304419, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.08726838, "qsc_code_frac_chars_long_word_length": 0.041841, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.04081633, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.08163265, "qsc_codepython_frac_lines_simplefunc": 0.02040816326530612, "qsc_codepython_score_lines_no_logic": 0.16326531, "qsc_codepython_frac_lines_print": 0.02040816} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
2003100127/pypropel | pypropel/prot/structure/distance/isite/check/Pair.py | __author__ = "Jianfeng Sun"
__version__ = "v1.0"
__copyright__ = "Copyright 2024"
__license__ = "GPL v3.0"
__email__ = "jianfeng.sunmt@gmail.com"
__maintainer__ = "Jianfeng Sun"
# import os
# import sys
# sys.path.append(os.path.dirname(os.getcwd()) + '/')
import pandas as pd
from Bio.PDB.PDBParser import PDBParser
from pypropel.prot.structure.distance import Distance
from pypropel.prot.sequence.Name import Name as chainname
from pypropel.util.Writer import Writer as pfwriter
from pypropel.util.Console import Console
class Pair(Distance.distance):
def __init__(
self,
pdb_fp1,
pdb_fp2,
prot_name1,
prot_name2,
prot_chain1,
prot_chain2,
sv_fp,
thres : float = 6.,
verbose : bool = True,
):
self.pdb_fp1 = pdb_fp1
self.pdb_fp2 = pdb_fp2
self.prot_name1 = prot_name1
self.prot_name2 = prot_name2
self.prot_chain1 = prot_chain1
self.prot_chain2 = prot_chain2
self.sv_fp = sv_fp
self.thres = thres
self.file_chain1 = chainname().chain(self.prot_chain1)
self.file_chain2 = chainname().chain(self.prot_chain2)
self.bio_parser = PDBParser()
self.pdb_fpn1 = self.pdb_fp1 + self.prot_name1 + self.file_chain1 + '.pdb'
self.pdb_fpn2 = self.pdb_fp2 + self.prot_name2 + self.file_chain2 + '.pdb'
self.structure1 = self.bio_parser.get_structure(self.prot_name1, self.pdb_fpn1)
self.structure2 = self.bio_parser.get_structure(self.prot_name2, self.pdb_fpn2)
self.model1 = self.structure1[0]
self.model2 = self.structure2[0]
self.working_chain1 = self.model1[self.prot_chain1]
self.working_chain2 = self.model2[self.prot_chain2]
self.pfwriter = pfwriter()
self.console = Console()
self.verbose = verbose
self.console.verbose = self.verbose
def calculate(self):
pass
def run(self, ):
"""
Examples
--------
./pypropel/pypropel>
python ./prot/structure/distance/isite/check/Pair.py -fp1 ./data\pdb\pdbtm/ -fp2 ./data\pdb\pdbtm/ -fn1 1aij -fn2 1aij -c1 L -c2 M -t 6.0 -op ./data\pdb\pdbtm/
Returns
-------
"""
self.console.print('=========>Protein PDB code 1: {}'.format(self.prot_name1))
self.console.print('=========>Protein PDB chain 1: {}'.format(self.prot_chain1))
self.console.print('=========>Protein PDB code 2: {}'.format(self.prot_name2))
self.console.print('=========>Protein PDB chain 2: {}'.format(self.prot_chain2))
ic = self.check(self.working_chain1, self.working_chain2, thres=self.thres, verbose=self.verbose)
if ic:
self.pfwriter.generic(
df=pd.DataFrame([
[self.prot_name1, self.prot_chain1],
[self.prot_name2, self.prot_chain2],
]),
sv_fpn=self.sv_fp + self.prot_name1 + self.prot_chain1 + '_' + self.prot_name2 + self.prot_chain2 + '.pcheck',
)
return ic
if __name__ == "__main__":
# source = True
source = False
if source:
import argparse
parser = argparse.ArgumentParser(description='PPIs between a pair')
parser.add_argument(
"--pdb_fp1", "-fp1", dest='fp1', help='pdb file path 1', type=str
)
parser.add_argument(
"--pdb_fp2", "-fp2", dest='fp2', help='pdb file path 2', type=str
)
parser.add_argument(
"--pdb_fn1", "-fn1", dest='fn1', help='complex name 1', type=str
)
parser.add_argument(
"--pdb_fn2", "-fn2", dest='fn2', help='complex name 2', type=str
)
parser.add_argument(
"--pdb_c1", "-c1", dest='c1', help='complex chain 1', type=str
)
parser.add_argument(
"--pdb_c2", "-c2", dest='c2', help='complex chain 2', type=str
)
parser.add_argument(
"--thres", "-t", dest='t', help='threshold', type=float
)
parser.add_argument(
"--sv_fp", "-op", dest='op', help='output path', type=str
)
args = parser.parse_args()
if args.fp1:
pdb_fp1 = args.fp1
if args.fp2:
pdb_fp2 = args.fp2
if args.fn1:
prot_name1 = args.fn1
if args.fn2:
prot_name2 = args.fn2
if args.c1:
prot_chain1 = args.c1
if args.c2:
prot_chain2 = args.c2
if args.t:
thres = args.t
if args.op:
sv_fp = args.op
else:
from pypropel.path import to
pdb_fp1 = to('data/pdb/pdbtm/')
pdb_fp2 = to('data/pdb/pdbtm/')
prot_name1 = '1aij'
prot_name2 = '1aij'
prot_chain1 = 'L'
prot_chain2 = 'M'
thres = 6.
sv_fp = to('data/pdb/pdbtm/')
p = Pair(
pdb_fp1=pdb_fp1,
pdb_fp2=pdb_fp2,
prot_name1=prot_name1,
prot_name2=prot_name2,
prot_chain1=prot_chain1,
prot_chain2=prot_chain2,
thres=thres,
sv_fp=sv_fp,
)
p.run() | 5,228 | Pair | py | en | python | code | {"qsc_code_num_words": 651, "qsc_code_num_chars": 5228.0, "qsc_code_mean_word_length": 4.34562212, "qsc_code_frac_words_unique": 0.19662058, "qsc_code_frac_chars_top_2grams": 0.0678685, "qsc_code_frac_chars_top_3grams": 0.04807352, "qsc_code_frac_chars_top_4grams": 0.04241782, "qsc_code_frac_chars_dupe_5grams": 0.1961824, "qsc_code_frac_chars_dupe_6grams": 0.16295511, "qsc_code_frac_chars_dupe_7grams": 0.11099328, "qsc_code_frac_chars_dupe_8grams": 0.03817603, "qsc_code_frac_chars_dupe_9grams": 0.03817603, "qsc_code_frac_chars_dupe_10grams": 0.03817603, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.04052574, "qsc_code_frac_chars_whitespace": 0.30145371, "qsc_code_size_file_byte": 5228.0, "qsc_code_num_lines": 164.0, "qsc_code_num_chars_line_max": 168.0, "qsc_code_num_chars_line_mean": 31.87804878, "qsc_code_frac_chars_alphabet": 0.73411829, "qsc_code_frac_chars_comments": 0.05814843, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.06060606, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.10749588, "qsc_code_frac_chars_long_word_length": 0.00494234, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.02272727, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.00757576, "qsc_codepython_frac_lines_import": 0.06060606, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.09848485, "qsc_codepython_frac_lines_print": 0.03030303} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
2003100127/pypropel | pypropel/prot/structure/distance/isite/check/Complex.py | __author__ = "Jianfeng Sun"
__version__ = "v1.0"
__copyright__ = "Copyright 2024"
__license__ = "GPL v3.0"
__email__ = "jianfeng.sunmt@gmail.com"
__maintainer__ = "Jianfeng Sun"
# import os
# import sys
# sys.path.append(os.path.dirname(os.getcwd()) + '/')
import click
from pypropel.prot.structure.distance.isite.heavy.AllAgainstAll import AllAgainstAll as aaaheavy
from pypropel.util.Writer import Writer as pfwriter
from pypropel.util.Console import Console
class Complex:
def __init__(
self,
pdb_fp,
prot_name,
sv_fp,
thres : float = 6,
verbose: bool = True,
):
self.pdb_fp = pdb_fp
self.prot_name = prot_name
self.sv_fp = sv_fp
self.thres = thres
self.pfwriter = pfwriter()
self.console = Console()
self.verbose = verbose
self.console.verbose = self.verbose
def run(self):
"""
Examples
--------
pypropel\pypropel>
python ./prot/structure/distance/isite/check/Complex.py -fp ./data/pdb/complex/pdbtm/ -fn 1aij -op ./data/pdb/complex/pdbtm/
Returns
-------
"""
self.console.print('=========>Protein PDB code: {}'.format(self.prot_name))
multimeric = aaaheavy(
pdb_fp=self.pdb_fp,
pdb_name=self.prot_name,
)
chains = multimeric.chains()
num_chains = len(chains)
model = multimeric.model
satisfied = []
for i in range(num_chains):
prot_chain1 = chains[i]
self.console.print('=========>Protein chain 1: {}'.format(prot_chain1))
chain1 = model[prot_chain1]
for j in range(i+1, num_chains):
prot_chain2 = chains[j]
self.console.print('============>Protein chain 2: {}'.format(prot_chain2))
chain2 = model[prot_chain2]
if multimeric.check(chain1, chain2, thres=self.thres, verbose=self.verbose):
satisfied.append([self.prot_name, prot_chain1])
satisfied.append([self.prot_name, prot_chain2])
return self.pfwriter.generic(
satisfied,
sv_fpn=self.sv_fp + self.prot_name + '.ccheck',
)
@click.command(context_settings=dict(help_option_names=['-h', '--help']))
# @click.argument('method', type=str)
@click.option(
'--pdb_fp', '-fp', type=str, required=True,
help="""pdb file path"""
)
@click.option(
'--pdb_fn', '-fn', type=str, required=True,
help="""complex name"""
)
@click.option(
'--thres', '-t', type=float, default=6.0, show_default=True,
help="""threshold of dists"""
)
@click.option(
'--sv_fp', '-o', type=str, default='./', show_default=True,
help="""output path"""
)
@click.option(
"--verbose", '-vb', default=True, show_default=True,
help="whether to print output"
)
def cli(
pdb_fp,
pdb_fn,
thres,
sv_fp,
verbose,
):
"""
This function is used to check if two protein chains in the same protein complex are interacting.
Examples
--------
pypropel_struct_check_cplx -fp D:/Document/Programming/Python/minverse/minverse/data/deepisite/pdbtm/cplx/ -fn 1aij -t 5.5 -o ./ -vb True
"""
return Complex(
pdb_fp=pdb_fp,
prot_name=pdb_fn,
thres=thres,
sv_fp=sv_fp,
verbose=verbose,
).run()
if __name__ == "__main__":
cli() | 3,463 | Complex | py | en | python | code | {"qsc_code_num_words": 415, "qsc_code_num_chars": 3463.0, "qsc_code_mean_word_length": 4.69156627, "qsc_code_frac_words_unique": 0.32048193, "qsc_code_frac_chars_top_2grams": 0.02311248, "qsc_code_frac_chars_top_3grams": 0.03697997, "qsc_code_frac_chars_top_4grams": 0.02465331, "qsc_code_frac_chars_dupe_5grams": 0.08423215, "qsc_code_frac_chars_dupe_6grams": 0.03184386, "qsc_code_frac_chars_dupe_7grams": 0.0, "qsc_code_frac_chars_dupe_8grams": 0.0, "qsc_code_frac_chars_dupe_9grams": 0.0, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.01182965, "qsc_code_frac_chars_whitespace": 0.26768698, "qsc_code_size_file_byte": 3463.0, "qsc_code_num_lines": 125.0, "qsc_code_num_chars_line_max": 142.0, "qsc_code_num_chars_line_mean": 27.704, "qsc_code_frac_chars_alphabet": 0.75591483, "qsc_code_frac_chars_comments": 0.15708923, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.12359551, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.11300035, "qsc_code_frac_chars_long_word_length": 0.00850159, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.03370787, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.04494382, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.11235955, "qsc_codepython_frac_lines_print": 0.04494382} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/КартаМаршрутаБизнесПроцесса/Forms/Форма/Ext/Form/Module.bsl | ///////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2024, ООО 1С-Софт
// Все права защищены. Эта программа и сопроводительные материалы предоставляются
// в соответствии с условиями лицензии Attribution 4.0 International (CC BY 4.0)
// Текст лицензии доступен по ссылке:
// https://creativecommons.org/licenses/by/4.0/legalcode
///////////////////////////////////////////////////////////////////////////////////////////////////////
#Область ОбработчикиСобытийФормы
&НаСервере
Процедура ПриСозданииНаСервере(Отказ, СтандартнаяОбработка)
Если ЗначениеЗаполнено(Параметры.БизнесПроцесс) Тогда
БизнесПроцесс = Параметры.БизнесПроцесс;
КонецЕсли;
КонецПроцедуры
&НаКлиенте
Процедура ПриОткрытии(Отказ)
ОбновитьКартуМаршрута();
КонецПроцедуры
#КонецОбласти
#Область ОбработчикиСобытийЭлементовШапкиФормы
&НаКлиенте
Процедура БизнесПроцессПриИзменении(Элемент)
ОбновитьКартуМаршрута();
КонецПроцедуры
&НаКлиенте
Процедура КартаМаршрутаВыбор(Элемент)
ОткрытьСписокЗадачТочкиМаршрута();
КонецПроцедуры
#КонецОбласти
#Область ОбработчикиКомандФормы
&НаКлиенте
Процедура ОбновитьВыполнить(Команда)
ОбновитьКартуМаршрута();
КонецПроцедуры
&НаКлиенте
Процедура ЗадачиВыполнить(Команда)
ОткрытьСписокЗадачТочкиМаршрута();
КонецПроцедуры
#КонецОбласти
#Область СлужебныеПроцедурыИФункции
&НаСервере
Процедура ОбновитьКартуМаршрута()
Если ЗначениеЗаполнено(БизнесПроцесс) Тогда
КартаМаршрута = БизнесПроцесс.ПолучитьОбъект().ПолучитьКартуМаршрута();
ИначеЕсли БизнесПроцесс <> Неопределено Тогда
КартаМаршрута = БизнесПроцессы[БизнесПроцесс.Метаданные().Имя].ПолучитьКартуМаршрута();
Возврат;
Иначе
КартаМаршрута = Новый ГрафическаяСхема;
Возврат;
КонецЕсли;
ЕстьСостояние = БизнесПроцесс.Метаданные().Реквизиты.Найти("Состояние") <> Неопределено;
СвойстваБизнесПроцесса = ОбщегоНазначения.ЗначенияРеквизитовОбъекта(
БизнесПроцесс, "Автор,Дата,ДатаЗавершения,Завершен,Стартован"
+ ?(ЕстьСостояние, ",Состояние", ""));
ЗаполнитьЗначенияСвойств(ЭтотОбъект, СвойстваБизнесПроцесса);
Если СвойстваБизнесПроцесса.Завершен Тогда
Статус = НСтр("ru = 'Завершен'");
Элементы.ГруппаСтатус.ТекущаяСтраница = Элементы.ГруппаЗавершен;
ИначеЕсли СвойстваБизнесПроцесса.Стартован Тогда
Статус = НСтр("ru = 'Стартован'");
Элементы.ГруппаСтатус.ТекущаяСтраница = Элементы.ГруппаНеЗавершен;
Иначе
Статус = НСтр("ru = 'Не стартован'");
Элементы.ГруппаСтатус.ТекущаяСтраница = Элементы.ГруппаНеЗавершен;
КонецЕсли;
Если ЕстьСостояние Тогда
Статус = Статус + ", " + НРег(Состояние);
КонецЕсли;
КонецПроцедуры
&НаКлиенте
Процедура ОткрытьСписокЗадачТочкиМаршрута()
#Если ВебКлиент ИЛИ МобильныйКлиент Тогда
ПоказатьПредупреждение(, НСтр("ru = 'Действие недоступно в веб-клиенте или в мобильном клиенте.
|Запустите тонкий клиент.'"));
Возврат;
#КонецЕсли
ОчиститьСообщения();
ТекЭлемент = Элементы.КартаМаршрута.ТекущийЭлемент;
Если Не ЗначениеЗаполнено(БизнесПроцесс) Тогда
ОбщегоНазначенияКлиент.СообщитьПользователю(
НСтр("ru = 'Укажите бизнес-процесс.'"),,
"БизнесПроцесс");
Возврат;
КонецЕсли;
Если ТекЭлемент = Неопределено
Или НЕ (ТипЗнч(ТекЭлемент) = Тип("ЭлементГрафическойСхемыДействие")
Или ТипЗнч(ТекЭлемент) = Тип("ЭлементГрафическойСхемыВложенныйБизнесПроцесс")) Тогда
ОбщегоНазначенияКлиент.СообщитьПользователю(
НСтр("ru = 'Для просмотра списка задач выберите точку действия или вложенный бизнес-процесс карты маршрута.'"),,
"КартаМаршрута");
Возврат;
КонецЕсли;
ЗаголовокФормы = НСтр("ru = 'Задачи по точке маршрута бизнес-процесса'");
ПараметрыФормы = Новый Структура;
ПараметрыФормы.Вставить("Отбор", Новый Структура("БизнесПроцесс,ТочкаМаршрута", БизнесПроцесс, ТекЭлемент.Значение));
ПараметрыФормы.Вставить("ЗаголовокФормы", ЗаголовокФормы);
ПараметрыФормы.Вставить("ПоказыватьЗадачи", 0);
ПараметрыФормы.Вставить("ВидимостьОтборов", Ложь);
ПараметрыФормы.Вставить("БлокировкаОкнаВладельца", РежимОткрытияОкнаФормы.БлокироватьОкноВладельца);
ПараметрыФормы.Вставить("Задача", Строка(ТекЭлемент.Значение));
ПараметрыФормы.Вставить("БизнесПроцесс", Строка(БизнесПроцесс));
ОткрытьФорму("Задача.ЗадачаИсполнителя.ФормаСписка", ПараметрыФормы, ЭтотОбъект, БизнесПроцесс);
КонецПроцедуры
#КонецОбласти
| 4,288 | Module | bsl | ru | 1c enterprise | code | {"qsc_code_num_words": 333, "qsc_code_num_chars": 4288.0, "qsc_code_mean_word_length": 9.87687688, "qsc_code_frac_words_unique": 0.46546547, "qsc_code_frac_chars_top_2grams": 0.01276984, "qsc_code_frac_chars_top_3grams": 0.0389176, "qsc_code_frac_chars_top_4grams": 0.03922165, "qsc_code_frac_chars_dupe_5grams": 0.0735786, "qsc_code_frac_chars_dupe_6grams": 0.04134995, "qsc_code_frac_chars_dupe_7grams": 0.0, "qsc_code_frac_chars_dupe_8grams": 0.0, "qsc_code_frac_chars_dupe_9grams": 0.0, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00310158, "qsc_code_frac_chars_whitespace": 0.09771455, "qsc_code_size_file_byte": 4288.0, "qsc_code_num_lines": 133.0, "qsc_code_num_chars_line_max": 119.0, "qsc_code_num_chars_line_mean": 32.2406015, "qsc_code_frac_chars_alphabet": 0.84673042, "qsc_code_frac_chars_comments": 0.97551306, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.0, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 1, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/УничтожениеПерсональныхДанных/Ext/ManagerModule.bsl | ///////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2024, ООО 1С-Софт
// Все права защищены. Эта программа и сопроводительные материалы предоставляются
// в соответствии с условиями лицензии Attribution 4.0 International (CC BY 4.0)
// Текст лицензии доступен по ссылке:
// https://creativecommons.org/licenses/by/4.0/legalcode
///////////////////////////////////////////////////////////////////////////////////////////////////////
#Если Сервер Или ТолстыйКлиентОбычноеПриложение Или ВнешнееСоединение Тогда
#Область СлужебныйПрограммныйИнтерфейс
// Создает акты об уничтожении персональных данных.
//
// Параметры:
// СубъектыИОрганизации - Массив из Структура:
// * Субъект - ОпределяемыйТип.СубъектПерсональныхДанных
// * Организация - ОпределяемыйТип.Организация
// ДанныеЗаполнения - Структура:
// * Организация - ОпределяемыйТип.Организация
// * ПричинаУничтожения - Строка
// * СпособУничтожения - Строка
// * ОтветственныйЗаОбработкуПерсональныхДанных - СправочникСсылка.Пользователи
//
Процедура СоздатьАкты(СубъектыИОрганизации, ДанныеЗаполнения) Экспорт
ТекущаяДата = ТекущаяДатаСеанса();
ДанныеЗаполнения.Вставить("ЗаполнитьКатегорииДанных");
КоличествоСубъектов = СубъектыИОрганизации.Количество();
Если КоличествоСубъектов = 0 Тогда
Возврат;
КонецЕсли;
Номер = 1;
Для Каждого СубъектИОрганизация Из СубъектыИОрганизации Цикл
Субъект = СубъектИОрганизация.Субъект;
Если Не ЗначениеЗаполнено(Субъект) Тогда
Продолжить;
КонецЕсли;
ЗащитаПерсональныхДанных.ОбновитьСрокХраненияПерсональныхДанныхСубъекта(Субъект);
СрокХранения = ЗащитаПерсональныхДанных.СрокХраненияПерсональныхДанныхСубъекта(Субъект);
Если НачалоДня(ТекущаяДата) < СрокХранения Тогда
ТекстСообщения =СтроковыеФункцииКлиентСервер.ПодставитьПараметрыВСтроку(
НСтр("ru = 'Не истек срок хранения персональных данных для %1. Акт об уничтожении не сформирован.'"),
Строка(Субъект));
ОбщегоНазначения.СообщитьПользователю(ТекстСообщения);
Продолжить;
КонецЕсли;
Попытка
АктОбъект = Документы.АктОбУничтоженииПерсональныхДанных.СоздатьДокумент();
АктОбъект.Дата = ТекущаяДата;
АктОбъект.ДатаУничтожения = ТекущаяДата;
АктОбъект.Субъект = Субъект;
АктОбъект.ЗаполнитьТабличныеЧасти();
АктОбъект.Заполнить(ДанныеЗаполнения);
Если ЗначениеЗаполнено(СубъектИОрганизация.Организация) Тогда
АктОбъект.Организация = СубъектИОрганизация.Организация;
КонецЕсли;
АктОбъект.Записать(РежимЗаписиДокумента.Проведение);
Исключение
ТекстОшибкиПодробно =СтроковыеФункцииКлиентСервер.ПодставитьПараметрыВСтроку(
НСтр("ru = 'Не удалось создать Акт об уничтожении персональных данных для %1 по причине:
|%2'"), Строка(СубъектИОрганизация.Субъект),
ОбработкаОшибок.ПодробноеПредставлениеОшибки(ИнформацияОбОшибке()));
ЗаписьЖурналаРегистрации(
НСтр("ru = 'Создание акта об уничтожении персональных данных'", ОбщегоНазначения.КодОсновногоЯзыка()),
УровеньЖурналаРегистрации.Ошибка, Метаданные.Документы.АктОбУничтоженииПерсональныхДанных, ,
ТекстОшибкиПодробно);
ТекстОшибкиКратко =СтроковыеФункцииКлиентСервер.ПодставитьПараметрыВСтроку(
НСтр("ru = 'Не удалось создать Акт об уничтожении персональных данных для %1 по причине:
|%2'"), Строка(Субъект), ОбработкаОшибок.КраткоеПредставлениеОшибки(ИнформацияОбОшибке()));
ОбщегоНазначения.СообщитьПользователю(ТекстОшибкиКратко);
КонецПопытки;
ПроцентВыполнения = Окр(Номер / КоличествоСубъектов * 100);
ДлительныеОперации.СообщитьПрогресс(ПроцентВыполнения,
СтроковыеФункцииКлиентСервер.ПодставитьПараметрыВСтроку(
НСтр("ru = 'Формируются акты об уничтожении персональных данных: %1 из %2'"),
Строка(Номер), Строка(КоличествоСубъектов)));
Номер = Номер + 1;
КонецЦикла;
КонецПроцедуры
#КонецОбласти
#КонецЕсли
| 3,895 | ManagerModule | bsl | ru | 1c enterprise | code | {"qsc_code_num_words": 288, "qsc_code_num_chars": 3895.0, "qsc_code_mean_word_length": 10.09375, "qsc_code_frac_words_unique": 0.49652778, "qsc_code_frac_chars_top_2grams": 0.02683179, "qsc_code_frac_chars_top_3grams": 0.04299966, "qsc_code_frac_chars_top_4grams": 0.05331957, "qsc_code_frac_chars_dupe_5grams": 0.13484692, "qsc_code_frac_chars_dupe_6grams": 0.08943928, "qsc_code_frac_chars_dupe_7grams": 0.08943928, "qsc_code_frac_chars_dupe_8grams": 0.08943928, "qsc_code_frac_chars_dupe_9grams": 0.08943928, "qsc_code_frac_chars_dupe_10grams": 0.08943928, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00704846, "qsc_code_frac_chars_whitespace": 0.12580231, "qsc_code_size_file_byte": 3895.0, "qsc_code_num_lines": 100.0, "qsc_code_num_chars_line_max": 107.0, "qsc_code_num_chars_line_mean": 38.95, "qsc_code_frac_chars_alphabet": 0.84640235, "qsc_code_frac_chars_comments": 0.97304236, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.0, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 1, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/УничтожениеПерсональныхДанных/Forms/Форма.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Form uuid="942b3e77-2a66-4879-972d-b5d25a706f9a">
<Properties>
<Name>Форма</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Форма</v8:content>
</v8:item>
</Synonym>
<Comment/>
<FormType>Managed</FormType>
<IncludeHelpInContents>false</IncludeHelpInContents>
<UsePurposes>
<v8:Value xsi:type="app:ApplicationUsePurpose">PlatformApplication</v8:Value>
<v8:Value xsi:type="app:ApplicationUsePurpose">MobilePlatformApplication</v8:Value>
</UsePurposes>
<ExtendedPresentation/>
</Properties>
</Form>
</MetaDataObject> | 1,493 | Форма | xml | ru | xml | data | {"qsc_code_num_words": 247, "qsc_code_num_chars": 1493.0, "qsc_code_mean_word_length": 4.24291498, "qsc_code_frac_words_unique": 0.32793522, "qsc_code_frac_chars_top_2grams": 0.08587786, "qsc_code_frac_chars_top_3grams": 0.11450382, "qsc_code_frac_chars_top_4grams": 0.14312977, "qsc_code_frac_chars_dupe_5grams": 0.42270992, "qsc_code_frac_chars_dupe_6grams": 0.42270992, "qsc_code_frac_chars_dupe_7grams": 0.29103053, "qsc_code_frac_chars_dupe_8grams": 0.23282443, "qsc_code_frac_chars_dupe_9grams": 0.04580153, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.07985612, "qsc_code_frac_chars_whitespace": 0.06898861, "qsc_code_size_file_byte": 1493.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 67.86363636, "qsc_code_frac_chars_alphabet": 0.67338129, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.48158071, "qsc_code_frac_chars_long_word_length": 0.05760214, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/УничтожениеПерсональныхДанных/Forms/ФормаСозданияАктов.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Form uuid="49f67edf-49e7-4198-9f9a-7bddf0a89248">
<Properties>
<Name>ФормаСозданияАктов</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Форма создания актов</v8:content>
</v8:item>
</Synonym>
<Comment/>
<FormType>Managed</FormType>
<IncludeHelpInContents>false</IncludeHelpInContents>
<UsePurposes>
<v8:Value xsi:type="app:ApplicationUsePurpose">PlatformApplication</v8:Value>
<v8:Value xsi:type="app:ApplicationUsePurpose">MobilePlatformApplication</v8:Value>
</UsePurposes>
<ExtendedPresentation/>
</Properties>
</Form>
</MetaDataObject> | 1,521 | ФормаСозданияАктов | xml | ru | xml | data | {"qsc_code_num_words": 249, "qsc_code_num_chars": 1521.0, "qsc_code_mean_word_length": 4.31325301, "qsc_code_frac_words_unique": 0.3373494, "qsc_code_frac_chars_top_2grams": 0.08379888, "qsc_code_frac_chars_top_3grams": 0.11173184, "qsc_code_frac_chars_top_4grams": 0.1396648, "qsc_code_frac_chars_dupe_5grams": 0.41247672, "qsc_code_frac_chars_dupe_6grams": 0.41247672, "qsc_code_frac_chars_dupe_7grams": 0.2839851, "qsc_code_frac_chars_dupe_8grams": 0.22718808, "qsc_code_frac_chars_dupe_9grams": 0.04469274, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.07627119, "qsc_code_frac_chars_whitespace": 0.06903353, "qsc_code_size_file_byte": 1521.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 69.13636364, "qsc_code_frac_chars_alphabet": 0.68149718, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.47271532, "qsc_code_frac_chars_long_word_length": 0.05654175, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/УничтожениеПерсональныхДанных/Ext/Help/ru.html | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="content-type" content="text/html;charset=utf-8"></meta><link rel="stylesheet" type="text/css" href="v8help://service_book/service_style"></link></head><body>Предназначена для уничтожения персональных данных.
<div><br></div>
<div>В соответствии с требованиями, утвержденными Роскомнадзором, оператор персональных данных обязан уничтожать данные в случаях:</div>
<div>
<ul><li>истечение срока действия согласия субъекта или его отсутствие;</li>
<li>незаконного получения персональных данных или отсутствие необходимости в этих данных;</li>
<li>неправомерная обработка персональных данных;</li>
<li>достижение цели обработки персональных данных;</li>
<li>отзыв субъектом персональных данных согласия на обработку.</li></ul><div><br></div>
<div>
<p>Для того чтобы была возможность <b>Уничтожать персональные данные</b>, в разделе <b>Администрирование</b> - <b>Настройки пользователей и прав</b> - <b>Защита персональных данных</b> нужно установить флажок <b>Уничтожать персональные данные</b>. </p>
<p>В верхней части панели указаны субъекты, у которых истек или истекает <b>Срок хранения</b> и требуется провести их дальнейшее уничтожение. </p>
<p>С помощью флажка <b>Показывать только с истекшим сроком хранения</b> отобразятся те персональные данные, у которых срок хранения уже истек. </p>
<p>В поле <b>Комментарий</b> можно увидеть причину, по которой необходимо составить <b><a href="Document.АктОбУничтоженииПерсональныхДанных/Help">Акт об уничтожении персональных данных</a></b> субъекта, например <b>Отозвано согласие на обработку персональных данных</b>. С помощью кнопки <b>Создать акт</b> можно составить <b><a href="Document.АктОбУничтоженииПерсональныхДанных/Help">Акт об уничтожении персональных данных</a></b>.</p>
<p><br></p>
<h3>См. также:</h3>
<ul><li><a href="Document.АктОбУничтоженииПерсональныхДанных/Help">Акт об уничтожении персональных данных</a>;</li>
<li><a href="v8help://frame/form_common">Работа с формами</a>.</li></ul></div></div></body></html> | 2,068 | ru | html | ru | html | code | {"qsc_code_num_words": 294, "qsc_code_num_chars": 2068.0, "qsc_code_mean_word_length": 5.38435374, "qsc_code_frac_words_unique": 0.4829932, "qsc_code_frac_chars_top_2grams": 0.12507896, "qsc_code_frac_chars_top_3grams": 0.01895136, "qsc_code_frac_chars_top_4grams": 0.08907138, "qsc_code_frac_chars_dupe_5grams": 0.21478206, "qsc_code_frac_chars_dupe_6grams": 0.17687934, "qsc_code_frac_chars_dupe_7grams": 0.17687934, "qsc_code_frac_chars_dupe_8grams": 0.17687934, "qsc_code_frac_chars_dupe_9grams": 0.17687934, "qsc_code_frac_chars_dupe_10grams": 0.17687934, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00424854, "qsc_code_frac_chars_whitespace": 0.08945841, "qsc_code_size_file_byte": 2068.0, "qsc_code_num_lines": 18.0, "qsc_code_num_chars_line_max": 437.0, "qsc_code_num_chars_line_mean": 114.88888889, "qsc_code_frac_chars_alphabet": 0.83590016, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.11111111, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.1426499, "qsc_code_frac_chars_long_word_length": 0.11025145, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codehtml_cate_ast": 1.0, "qsc_codehtml_frac_words_text": 0.62814313, "qsc_codehtml_num_chars_text": 1299.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 1, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_cate_xml_start": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_cate_autogen": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_codehtml_cate_ast": 0, "qsc_codehtml_frac_words_text": 0, "qsc_codehtml_num_chars_text": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/УничтожениеПерсональныхДанных/Forms/Форма/Ext/Form.xml | <?xml version="1.0" encoding="UTF-8"?>
<Form xmlns="http://v8.1c.ru/8.3/xcf/logform" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:dcscor="http://v8.1c.ru/8.1/data-composition-system/core" xmlns:dcssch="http://v8.1c.ru/8.1/data-composition-system/schema" xmlns:dcsset="http://v8.1c.ru/8.1/data-composition-system/settings" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<AutoSaveDataInSettings>Use</AutoSaveDataInSettings>
<CommandBarLocation>None</CommandBarLocation>
<VerticalScroll>useIfNecessary</VerticalScroll>
<MobileDeviceCommandBarContent>
<xr:Item>
<xr:Presentation/>
<xr:CheckState>0</xr:CheckState>
<xr:Value xsi:type="xs:string">ГруппаКомандныхПанелей</xr:Value>
</xr:Item>
</MobileDeviceCommandBarContent>
<AutoCommandBar name="ФормаКоманднаяПанель" id="-1"/>
<Events>
<Event name="OnOpen">ПриОткрытии</Event>
<Event name="OnLoadDataFromSettingsAtServer">ПриЗагрузкеДанныхИзНастроекНаСервере</Event>
<Event name="OnCreateAtServer">ПриСозданииНаСервере</Event>
</Events>
<ChildItems>
<UsualGroup name="ГруппаРасчетСроковХранения" id="251">
<Visible>false</Visible>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Расчет сроков хранения</v8:content>
</v8:item>
</Title>
<Group>AlwaysHorizontal</Group>
<Behavior>Usual</Behavior>
<Representation>None</Representation>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="ГруппаРасчетСроковХраненияРасширеннаяПодсказка" id="252"/>
<ChildItems>
<PictureDecoration name="ДлительнаяОперацияКартинка" id="253">
<Width>2</Width>
<Height>1</Height>
<Title formatted="false">
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Длительная операция картинка</v8:content>
</v8:item>
</Title>
<ToolTipRepresentation>ShowRight</ToolTipRepresentation>
<GroupHorizontalAlign>Left</GroupHorizontalAlign>
<GroupVerticalAlign>Center</GroupVerticalAlign>
<Hyperlink>true</Hyperlink>
<PictureSize>RealSizeIgnoreScale</PictureSize>
<Picture>
<xr:Ref>CommonPicture.ДлительнаяОперация16</xr:Ref>
<xr:LoadTransparent>false</xr:LoadTransparent>
</Picture>
<FileDragMode>AsFile</FileDragMode>
<ContextMenu name="ДлительнаяОперацияКартинкаКонтекстноеМеню" id="254"/>
<ExtendedTooltip name="ДлительнаяОперацияКартинкаРасширеннаяПодсказка" id="255">
<AutoMaxWidth>false</AutoMaxWidth>
<HorizontalStretch>false</HorizontalStretch>
<TextColor>style:ПоясняющийТекст</TextColor>
<Title formatted="false">
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Обновляем сроки хранения</v8:content>
</v8:item>
</Title>
</ExtendedTooltip>
</PictureDecoration>
</ChildItems>
</UsualGroup>
<Pages name="СтраницыГруппа" id="301">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Страницы группа</v8:content>
</v8:item>
</Title>
<PagesRepresentation>None</PagesRepresentation>
<ExtendedTooltip name="СтраницыГруппаРасширеннаяПодсказка" id="302"/>
<ChildItems>
<Page name="УничтожениеДанныхСтраница" id="303">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Уничтожение данных страница</v8:content>
</v8:item>
</Title>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="УничтожениеДанныхСтраницаРасширеннаяПодсказка" id="304"/>
<ChildItems>
<UsualGroup name="СрокиХраненияГруппа" id="198">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Сроки хранения</v8:content>
</v8:item>
</Title>
<Group>Vertical</Group>
<Behavior>Collapsible</Behavior>
<Representation>NormalSeparation</Representation>
<ExtendedTooltip name="СрокиХраненияГруппаРасширеннаяПодсказка" id="199"/>
<ChildItems>
<UsualGroup name="ГруппаКомандныхПанелей" id="235">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Командных панелей</v8:content>
</v8:item>
</Title>
<Group>AlwaysHorizontal</Group>
<Behavior>Usual</Behavior>
<Representation>None</Representation>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="ГруппаКомандныхПанелейРасширеннаяПодсказка" id="236"/>
<ChildItems>
<CommandBar name="КнопкиГруппа" id="237">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Кнопки группа</v8:content>
</v8:item>
</Title>
<HorizontalStretch>false</HorizontalStretch>
<ExtendedTooltip name="КнопкиГруппаРасширеннаяПодсказка" id="238"/>
<ChildItems>
<Button name="СоздатьАкты" id="261">
<Type>CommandBarButton</Type>
<CommandName>Form.Command.СоздатьАкты</CommandName>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Создать акты</v8:content>
</v8:item>
</Title>
<ExtendedTooltip name="СоздатьАктыРасширеннаяПодсказка" id="262"/>
</Button>
</ChildItems>
</CommandBar>
<UsualGroup name="ТолькоПросроченные" id="307">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Только просроченные</v8:content>
</v8:item>
</Title>
<Behavior>Usual</Behavior>
<Representation>None</Representation>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="ТолькоПросроченныеРасширеннаяПодсказка" id="308"/>
<ChildItems>
<LabelDecoration name="Отступ" id="309">
<Width>3</Width>
<ContextMenu name="ОтступКонтекстноеМеню" id="310"/>
<ExtendedTooltip name="ОтступРасширеннаяПодсказка" id="311"/>
</LabelDecoration>
<CheckBoxField name="ПоказыватьТолькоПросроченные" id="258" DisplayImportance="VeryLow">
<DataPath>ПоказыватьТолькоПросроченные</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Показывать только с истекшим сроком хранения</v8:content>
</v8:item>
</Title>
<TitleLocation>Right</TitleLocation>
<CheckBoxType>Auto</CheckBoxType>
<ContextMenu name="ПоказыватьТолькоПросроченныеКонтекстноеМеню" id="259"/>
<ExtendedTooltip name="ПоказыватьТолькоПросроченныеРасширеннаяПодсказка" id="260"/>
<Events>
<Event name="OnChange">ПоказыватьТолькоПросроченныеПриИзменении</Event>
</Events>
</CheckBoxField>
</ChildItems>
</UsualGroup>
<CommandBar name="КоманднаяПанельСрокиХранения" id="239">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Командная панель сроки хранения</v8:content>
</v8:item>
</Title>
<GroupHorizontalAlign>Right</GroupHorizontalAlign>
<CommandSource>Item.СрокиХранения</CommandSource>
<ExtendedTooltip name="КоманднаяПанельСрокиХраненияРасширеннаяПодсказка" id="240"/>
<ChildItems>
<ButtonGroup name="КоманднаяПанельФорма" id="241">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Командная панель форма</v8:content>
</v8:item>
</Title>
<CommandSource>Form</CommandSource>
<ExtendedTooltip name="КоманднаяПанельФормаРасширеннаяПодсказка" id="242"/>
<ChildItems>
<Button name="Справка" id="320">
<Type>CommandBarButton</Type>
<CommandName>Form.StandardCommand.Help</CommandName>
<LocationInCommandBar>InAdditionalSubmenu</LocationInCommandBar>
<ExtendedTooltip name="СправкаРасширеннаяПодсказка" id="321"/>
</Button>
</ChildItems>
</ButtonGroup>
</ChildItems>
</CommandBar>
</ChildItems>
</UsualGroup>
<Table name="СрокиХранения" id="1">
<CommandBarLocation>None</CommandBarLocation>
<ChangeRowSet>false</ChangeRowSet>
<DataPath>СрокиХранения</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Сроки хранения</v8:content>
</v8:item>
</Title>
<CommandSet>
<ExcludedCommand>Change</ExcludedCommand>
<ExcludedCommand>ChangeHistory</ExcludedCommand>
<ExcludedCommand>CopyToClipboard</ExcludedCommand>
<ExcludedCommand>SearchEverywhere</ExcludedCommand>
</CommandSet>
<AutoRefresh>false</AutoRefresh>
<AutoRefreshPeriod>60</AutoRefreshPeriod>
<Period>
<v8:variant xsi:type="v8:StandardPeriodVariant">Custom</v8:variant>
<v8:startDate>0001-01-01T00:00:00</v8:startDate>
<v8:endDate>0001-01-01T00:00:00</v8:endDate>
</Period>
<ChoiceFoldersAndItems>Items</ChoiceFoldersAndItems>
<RestoreCurrentRow>false</RestoreCurrentRow>
<TopLevelParent xsi:nil="true"/>
<ShowRoot>true</ShowRoot>
<AllowRootChoice>false</AllowRootChoice>
<UpdateOnDataChange>Auto</UpdateOnDataChange>
<AllowGettingCurrentRowURL>true</AllowGettingCurrentRowURL>
<ContextMenu name="СрокиХраненияКонтекстноеМеню" id="3"/>
<AutoCommandBar name="СрокиХраненияКоманднаяПанель" id="2"/>
<ExtendedTooltip name="СрокиХраненияРасширеннаяПодсказка" id="4"/>
<SearchStringAddition name="СрокиХраненияСтрокаПоиска" id="5">
<AdditionSource>
<Item>СрокиХранения</Item>
<Type>SearchStringRepresentation</Type>
</AdditionSource>
<ContextMenu name="СрокиХраненияСтрокаПоискаКонтекстноеМеню" id="6"/>
<ExtendedTooltip name="СрокиХраненияСтрокаПоискаРасширеннаяПодсказка" id="7"/>
</SearchStringAddition>
<ViewStatusAddition name="СрокиХраненияСостояниеПросмотра" id="11">
<AdditionSource>
<Item>СрокиХранения</Item>
<Type>ViewStatusRepresentation</Type>
</AdditionSource>
<ContextMenu name="СрокиХраненияСостояниеПросмотраКонтекстноеМеню" id="12"/>
<ExtendedTooltip name="СрокиХраненияСостояниеПросмотраРасширеннаяПодсказка" id="13"/>
</ViewStatusAddition>
<SearchControlAddition name="СрокиХраненияУправлениеПоиском" id="8">
<AdditionSource>
<Item>СрокиХранения</Item>
<Type>SearchControl</Type>
</AdditionSource>
<ContextMenu name="СрокиХраненияУправлениеПоискомКонтекстноеМеню" id="9"/>
<ExtendedTooltip name="СрокиХраненияУправлениеПоискомРасширеннаяПодсказка" id="10"/>
</SearchControlAddition>
<Events>
<Event name="Selection">СрокиХраненияВыбор</Event>
</Events>
<ChildItems>
<ColumnGroup name="СрокиХраненияСубъектГруппа" id="325">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Субъект</v8:content>
</v8:item>
</Title>
<Group>Horizontal</Group>
<ShowInHeader>true</ShowInHeader>
<ExtendedTooltip name="СрокиХраненияСубъектГруппаРасширеннаяПодсказка" id="326"/>
<ChildItems>
<InputField name="СрокиХраненияСубъект" id="17">
<DataPath>СрокиХранения.Субъект</DataPath>
<ShowInHeader>false</ShowInHeader>
<ContextMenu name="СрокиХраненияСубъектКонтекстноеМеню" id="18"/>
<ExtendedTooltip name="СрокиХраненияСубъектРасширеннаяПодсказка" id="19"/>
</InputField>
<InputField name="СрокиХраненияТипСубъекта" id="322">
<DataPath>СрокиХранения.ТипСубъекта</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Тип субъекта</v8:content>
</v8:item>
</Title>
<ShowInHeader>false</ShowInHeader>
<ContextMenu name="СрокиХраненияТипСубъектаКонтекстноеМеню" id="323"/>
<ExtendedTooltip name="СрокиХраненияТипСубъектаРасширеннаяПодсказка" id="324"/>
</InputField>
</ChildItems>
</ColumnGroup>
<LabelField name="СрокиХраненияСрокХранения" id="125">
<DataPath>СрокиХранения.СрокХранения</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Срок хранения</v8:content>
</v8:item>
</Title>
<ContextMenu name="СрокиХраненияСрокХраненияКонтекстноеМеню" id="126"/>
<ExtendedTooltip name="СрокиХраненияСрокХраненияРасширеннаяПодсказка" id="127"/>
</LabelField>
<InputField name="СрокиХраненияОрганизация" id="315">
<DataPath>СрокиХранения.Организация</DataPath>
<ContextMenu name="СрокиХраненияОрганизацияКонтекстноеМеню" id="316"/>
<ExtendedTooltip name="СрокиХраненияОрганизацияРасширеннаяПодсказка" id="317"/>
</InputField>
<InputField name="СрокиХраненияКомментарий" id="20">
<DataPath>СрокиХранения.Комментарий</DataPath>
<ContextMenu name="СрокиХраненияКомментарийКонтекстноеМеню" id="21"/>
<ExtendedTooltip name="СрокиХраненияКомментарийРасширеннаяПодсказка" id="22"/>
</InputField>
</ChildItems>
</Table>
</ChildItems>
</UsualGroup>
<UsualGroup name="АктыОбУничтоженииГруппа" id="219">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Акты об уничтожении персональных данных</v8:content>
</v8:item>
</Title>
<Behavior>Collapsible</Behavior>
<ExtendedTooltip name="АктыОбУничтоженииГруппаРасширеннаяПодсказка" id="220"/>
<ChildItems>
<Pages name="АктыОбУничтоженииСтраницы" id="279">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Акты об уничтожении страницы</v8:content>
</v8:item>
</Title>
<PagesRepresentation>None</PagesRepresentation>
<ExtendedTooltip name="АктыОбУничтоженииСтраницыРасширеннаяПодсказка" id="280"/>
<ChildItems>
<Page name="АктыОбУничтоженииСтраница" id="281">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Акты об уничтожении страница</v8:content>
</v8:item>
</Title>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="АктыОбУничтоженииСтраницаРасширеннаяПодсказка" id="282"/>
<ChildItems>
<Table name="АктыОбУничтожении" id="128">
<UseAlternationRowColor>true</UseAlternationRowColor>
<EnableStartDrag>true</EnableStartDrag>
<DataPath>АктыОбУничтожении</DataPath>
<RowPictureDataPath>АктыОбУничтожении.DefaultPicture</RowPictureDataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Акты об уничтожении персональных данных</v8:content>
</v8:item>
</Title>
<CommandSet>
<ExcludedCommand>Copy</ExcludedCommand>
<ExcludedCommand>Create</ExcludedCommand>
</CommandSet>
<AutoRefresh>false</AutoRefresh>
<AutoRefreshPeriod>60</AutoRefreshPeriod>
<Period>
<v8:variant xsi:type="v8:StandardPeriodVariant">Custom</v8:variant>
<v8:startDate>0001-01-01T00:00:00</v8:startDate>
<v8:endDate>0001-01-01T00:00:00</v8:endDate>
</Period>
<ChoiceFoldersAndItems>Items</ChoiceFoldersAndItems>
<RestoreCurrentRow>false</RestoreCurrentRow>
<TopLevelParent xsi:nil="true"/>
<ShowRoot>true</ShowRoot>
<AllowRootChoice>false</AllowRootChoice>
<UpdateOnDataChange>Auto</UpdateOnDataChange>
<AllowGettingCurrentRowURL>true</AllowGettingCurrentRowURL>
<ContextMenu name="АктыОбУничтоженииКонтекстноеМеню" id="129"/>
<AutoCommandBar name="АктыОбУничтоженииКоманднаяПанель" id="130">
<ChildItems>
<Popup name="ПодменюПечать" id="186">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Печать</v8:content>
</v8:item>
</Title>
<Picture>
<xr:Ref>StdPicture.Print</xr:Ref>
<xr:LoadTransparent>true</xr:LoadTransparent>
</Picture>
<Representation>PictureAndText</Representation>
<ExtendedTooltip name="ПодменюПечатьРасширеннаяПодсказка" id="187"/>
<ChildItems>
<ButtonGroup name="ПодменюПечатьВажное" id="188">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Печать (Важное)</v8:content>
</v8:item>
</Title>
<ExtendedTooltip name="ПодменюПечатьВажноеРасширеннаяПодсказка" id="189"/>
</ButtonGroup>
<ButtonGroup name="ПодменюПечатьОбычное" id="190">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Печать (Обычное)</v8:content>
</v8:item>
</Title>
<ExtendedTooltip name="ПодменюПечатьОбычноеРасширеннаяПодсказка" id="191"/>
</ButtonGroup>
<ButtonGroup name="ПодменюПечатьСмТакже" id="192">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Печать (См. также)</v8:content>
</v8:item>
</Title>
<ExtendedTooltip name="ПодменюПечатьСмТакжеРасширеннаяПодсказка" id="193"/>
</ButtonGroup>
</ChildItems>
</Popup>
</ChildItems>
</AutoCommandBar>
<ExtendedTooltip name="АктыОбУничтоженииРасширеннаяПодсказка" id="131"/>
<SearchStringAddition name="АктыОбУничтоженииСтрокаПоиска" id="132">
<AdditionSource>
<Item>АктыОбУничтожении</Item>
<Type>SearchStringRepresentation</Type>
</AdditionSource>
<ContextMenu name="АктыОбУничтоженииСтрокаПоискаКонтекстноеМеню" id="133"/>
<ExtendedTooltip name="АктыОбУничтоженииСтрокаПоискаРасширеннаяПодсказка" id="134"/>
</SearchStringAddition>
<ViewStatusAddition name="АктыОбУничтоженииСостояниеПросмотра" id="135">
<AdditionSource>
<Item>АктыОбУничтожении</Item>
<Type>ViewStatusRepresentation</Type>
</AdditionSource>
<ContextMenu name="АктыОбУничтоженииСостояниеПросмотраКонтекстноеМеню" id="136"/>
<ExtendedTooltip name="АктыОбУничтоженииСостояниеПросмотраРасширеннаяПодсказка" id="137"/>
</ViewStatusAddition>
<SearchControlAddition name="АктыОбУничтоженииУправлениеПоиском" id="138">
<AdditionSource>
<Item>АктыОбУничтожении</Item>
<Type>SearchControl</Type>
</AdditionSource>
<ContextMenu name="АктыОбУничтоженииУправлениеПоискомКонтекстноеМеню" id="139"/>
<ExtendedTooltip name="АктыОбУничтоженииУправлениеПоискомРасширеннаяПодсказка" id="140"/>
</SearchControlAddition>
<ChildItems>
<LabelField name="АктыОбУничтоженииДата" id="141">
<DataPath>АктыОбУничтожении.Дата</DataPath>
<ContextMenu name="АктыОбУничтоженииДатаКонтекстноеМеню" id="142"/>
<ExtendedTooltip name="АктыОбУничтоженииДатаРасширеннаяПодсказка" id="143"/>
</LabelField>
<LabelField name="АктыОбУничтоженииНомер" id="144">
<DataPath>АктыОбУничтожении.Номер</DataPath>
<ContextMenu name="АктыОбУничтоженииНомерКонтекстноеМеню" id="145"/>
<ExtendedTooltip name="АктыОбУничтоженииНомерРасширеннаяПодсказка" id="146"/>
</LabelField>
<ColumnGroup name="АктОбУничтоженииСубъектГруппа" id="327">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Субъект</v8:content>
</v8:item>
</Title>
<Group>Horizontal</Group>
<ShowInHeader>true</ShowInHeader>
<ExtendedTooltip name="АктОбУничтоженииСубъектГруппаРасширеннаяПодсказка" id="328"/>
<ChildItems>
<InputField name="АктыОбУничтоженииСубъект" id="245">
<DataPath>АктыОбУничтожении.Субъект</DataPath>
<ShowInHeader>false</ShowInHeader>
<ContextMenu name="АктыОбУничтоженииСубъектКонтекстноеМеню" id="246"/>
<ExtendedTooltip name="АктыОбУничтоженииСубъектРасширеннаяПодсказка" id="247"/>
</InputField>
<InputField name="АктыОбУничтоженииТипСубъекта" id="329">
<DataPath>АктыОбУничтожении.ТипСубъекта</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Тип субъекта</v8:content>
</v8:item>
</Title>
<ShowInHeader>false</ShowInHeader>
<ContextMenu name="АктыОбУничтоженииТипСубъектаКонтекстноеМеню" id="330"/>
<ExtendedTooltip name="АктыОбУничтоженииТипСубъектаРасширеннаяПодсказка" id="331"/>
</InputField>
</ChildItems>
</ColumnGroup>
<LabelField name="АктыОбУничтоженииФИОСубъекта" id="183">
<DataPath>АктыОбУничтожении.ФИОСубъекта</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>ФИО</v8:content>
</v8:item>
</Title>
<ContextMenu name="АктыОбУничтоженииФИОСубъектаКонтекстноеМеню" id="184"/>
<ExtendedTooltip name="АктыОбУничтоженииФИОСубъектаРасширеннаяПодсказка" id="185"/>
</LabelField>
<LabelField name="АктыОбУничтоженииДатаУничтожения" id="165">
<DataPath>АктыОбУничтожении.ДатаУничтожения</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Дата уничтожения</v8:content>
</v8:item>
</Title>
<ContextMenu name="АктыОбУничтоженииДатаУничтоженияКонтекстноеМеню" id="166"/>
<ExtendedTooltip name="АктыОбУничтоженииДатаУничтоженияРасширеннаяПодсказка" id="167"/>
</LabelField>
<LabelField name="АктыОбУничтоженииОрганизация" id="147">
<DataPath>АктыОбУничтожении.Организация</DataPath>
<ContextMenu name="АктыОбУничтоженииОрганизацияКонтекстноеМеню" id="148"/>
<ExtendedTooltip name="АктыОбУничтоженииОрганизацияРасширеннаяПодсказка" id="149"/>
</LabelField>
<LabelField name="АктыОбУничтоженииСпособУничтожения" id="168">
<DataPath>АктыОбУничтожении.СпособУничтожения</DataPath>
<ContextMenu name="АктыОбУничтоженииСпособУничтоженияКонтекстноеМеню" id="169"/>
<ExtendedTooltip name="АктыОбУничтоженииСпособУничтоженияРасширеннаяПодсказка" id="170"/>
</LabelField>
<LabelField name="АктыОбУничтоженииПричинаУничтожения" id="171">
<DataPath>АктыОбУничтожении.ПричинаУничтожения</DataPath>
<ContextMenu name="АктыОбУничтоженииПричинаУничтоженияКонтекстноеМеню" id="172"/>
<ExtendedTooltip name="АктыОбУничтоженииПричинаУничтоженияРасширеннаяПодсказка" id="173"/>
</LabelField>
<LabelField name="АктыОбУничтоженииОтветственныйЗаОбработкуПерсональныхДанных" id="156">
<DataPath>АктыОбУничтожении.ОтветственныйЗаОбработкуПерсональныхДанных</DataPath>
<ContextMenu name="АктыОбУничтоженииОтветственныйЗаОбработкуПерсональныхДанныхКонтекстноеМеню" id="157"/>
<ExtendedTooltip name="АктыОбУничтоженииОтветственныйЗаОбработкуПерсональныхДанныхРасширеннаяПодсказка" id="158"/>
</LabelField>
<LabelField name="АктыОбУничтоженииОтветственный" id="174">
<DataPath>АктыОбУничтожении.Ответственный</DataPath>
<ContextMenu name="АктыОбУничтоженииОтветственныйКонтекстноеМеню" id="175"/>
<ExtendedTooltip name="АктыОбУничтоженииОтветственныйРасширеннаяПодсказка" id="176"/>
</LabelField>
<LabelField name="АктыОбУничтоженииКомментарий" id="177">
<DataPath>АктыОбУничтожении.Комментарий</DataPath>
<ContextMenu name="АктыОбУничтоженииКомментарийКонтекстноеМеню" id="178"/>
<ExtendedTooltip name="АктыОбУничтоженииКомментарийРасширеннаяПодсказка" id="179"/>
</LabelField>
<InputField name="АктыОбУничтоженииСсылка" id="312">
<DataPath>АктыОбУничтожении.Ссылка</DataPath>
<UserVisible>
<xr:Common>false</xr:Common>
</UserVisible>
<ContextMenu name="АктыОбУничтоженииСсылкаКонтекстноеМеню" id="313"/>
<ExtendedTooltip name="АктыОбУничтоженииСсылкаРасширеннаяПодсказка" id="314"/>
</InputField>
</ChildItems>
</Table>
</ChildItems>
</Page>
<Page name="АктыОбУничтоженииПустаяСтраница" id="283">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Акты об уничтожении пустая страница</v8:content>
</v8:item>
</Title>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="АктыОбУничтоженииПустаяСтраницаРасширеннаяПодсказка" id="284"/>
<ChildItems>
<UsualGroup name="ПредупреждениеАктыГруппа" id="285">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Предупреждение группа</v8:content>
</v8:item>
</Title>
<HorizontalStretch>true</HorizontalStretch>
<VerticalStretch>true</VerticalStretch>
<Group>Vertical</Group>
<HorizontalAlign>Center</HorizontalAlign>
<VerticalAlign>Center</VerticalAlign>
<Behavior>Usual</Behavior>
<Representation>None</Representation>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="ПредупреждениеАктыГруппаРасширеннаяПодсказка" id="286"/>
<ChildItems>
<UsualGroup name="ОтсутствиеАктовГруппа" id="287">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Отсутствие актов группа</v8:content>
</v8:item>
</Title>
<Group>Vertical</Group>
<Behavior>Usual</Behavior>
<Representation>None</Representation>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="ОтсутствиеАктовГруппаРасширеннаяПодсказка" id="288"/>
<ChildItems>
<PictureDecoration name="ОтсутствиеАктовКартинка" id="289">
<Title formatted="false">
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Отсутствие актов картинка</v8:content>
</v8:item>
</Title>
<GroupHorizontalAlign>Center</GroupHorizontalAlign>
<GroupVerticalAlign>Center</GroupVerticalAlign>
<Picture>
<xr:Ref>CommonPicture.АнализДанных48</xr:Ref>
<xr:LoadTransparent>false</xr:LoadTransparent>
</Picture>
<ContextMenu name="ОтсутствиеАктовКартинкаКонтекстноеМеню" id="290"/>
<ExtendedTooltip name="ОтсутствиеАктовКартинкаРасширеннаяПодсказка" id="291"/>
</PictureDecoration>
<LabelDecoration name="ОтсутствиеАктовНадпись" id="298">
<Font faceName="" height="11" bold="false" italic="false" underline="false" strikeout="false" kind="Absolute" scale="100"/>
<Title formatted="false">
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>В приложении пока нет актов об уничтожении персональных данных.
Они будут отображены здесь по мере создания.</v8:content>
</v8:item>
</Title>
<ContextMenu name="ОтсутствиеАктовНадписьКонтекстноеМеню" id="299"/>
<ExtendedTooltip name="ОтсутствиеАктовНадписьРасширеннаяПодсказка" id="300"/>
</LabelDecoration>
</ChildItems>
</UsualGroup>
</ChildItems>
</UsualGroup>
</ChildItems>
</Page>
</ChildItems>
</Pages>
</ChildItems>
</UsualGroup>
</ChildItems>
</Page>
<Page name="ПустаяСтраница" id="267">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Пустая страница</v8:content>
</v8:item>
</Title>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="ПустаяСтраницаРасширеннаяПодсказка" id="268"/>
<ChildItems>
<UsualGroup name="ПредупреждениеСрокиХраненияГруппа" id="269">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Предупреждение сроки хранения группа</v8:content>
</v8:item>
</Title>
<HorizontalStretch>true</HorizontalStretch>
<VerticalStretch>true</VerticalStretch>
<Group>Vertical</Group>
<HorizontalAlign>Center</HorizontalAlign>
<VerticalAlign>Center</VerticalAlign>
<Behavior>Usual</Behavior>
<Representation>None</Representation>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="ПредупреждениеСрокиХраненияГруппаРасширеннаяПодсказка" id="270"/>
<ChildItems>
<UsualGroup name="ОтсутствиеСроковХраненияГруппа" id="271">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Отсутствие сроков хранения группа</v8:content>
</v8:item>
</Title>
<Group>Vertical</Group>
<Behavior>Usual</Behavior>
<Representation>None</Representation>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="ОтсутствиеСроковХраненияГруппаРасширеннаяПодсказка" id="272"/>
<ChildItems>
<PictureDecoration name="ОтсутствиеСроковХраненияКартинка" id="273">
<Title formatted="false">
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Отсутствие сроков хранения картинка</v8:content>
</v8:item>
</Title>
<GroupHorizontalAlign>Center</GroupHorizontalAlign>
<GroupVerticalAlign>Center</GroupVerticalAlign>
<Picture>
<xr:Ref>CommonPicture.АнализДанных48</xr:Ref>
<xr:LoadTransparent>false</xr:LoadTransparent>
</Picture>
<ContextMenu name="ОтсутствиеСроковХраненияКартинкаКонтекстноеМеню" id="274"/>
<ExtendedTooltip name="ОтсутствиеСроковХраненияКартинкаРасширеннаяПодсказка" id="275"/>
</PictureDecoration>
<LabelDecoration name="ОтсутствиеСроковХраненияНадпись" id="295">
<Font faceName="" height="11" bold="false" italic="false" underline="false" strikeout="false" kind="Absolute" scale="100"/>
<Title formatted="false">
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>В приложении пока нет субъектов, обработка персональных данных которых завершена.
По мере их появления, они будут отображаться в списке в этой форме.</v8:content>
</v8:item>
</Title>
<ContextMenu name="ОтсутствиеСроковХраненияНадписьКонтекстноеМеню" id="296"/>
<ExtendedTooltip name="ОтсутствиеСроковХраненияНадписьРасширеннаяПодсказка" id="297"/>
</LabelDecoration>
</ChildItems>
</UsualGroup>
</ChildItems>
</UsualGroup>
</ChildItems>
</Page>
</ChildItems>
</Pages>
</ChildItems>
<Attributes>
<Attribute name="Объект" id="1">
<Type>
<v8:Type>cfg:DataProcessorObject.УничтожениеПерсональныхДанных</v8:Type>
</Type>
<MainAttribute>true</MainAttribute>
</Attribute>
<Attribute name="СрокиХранения" id="2">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Сроки хранения</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>cfg:DynamicList</v8:Type>
</Type>
<Settings xsi:type="DynamicList">
<ManualQuery>true</ManualQuery>
<DynamicDataRead>true</DynamicDataRead>
<QueryText>ВЫБРАТЬ РАЗРЕШЕННЫЕ
РегистрСведенийСрокиХраненияПерсональныхДанных.СрокХранения,
РегистрСведенийСрокиХраненияПерсональныхДанных.Субъект,
РегистрСведенийСрокиХраненияПерсональныхДанных.Комментарий,
РегистрСведенийСрокиХраненияПерсональныхДанных.Организация,
&ДатаАктуальности КАК ДатаАктуальности,
&ДатаБессрочно КАК ДатаБессрочно,
ТИПЗНАЧЕНИЯ(РегистрСведенийСрокиХраненияПерсональныхДанных.Субъект) КАК ТипСубъекта
ИЗ
РегистрСведений.СрокиХраненияПерсональныхДанных КАК РегистрСведенийСрокиХраненияПерсональныхДанных</QueryText>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>СрокХранения</dcssch:dataPath>
<dcssch:field>СрокХранения</dcssch:field>
</Field>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>Субъект</dcssch:dataPath>
<dcssch:field>Субъект</dcssch:field>
</Field>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>Комментарий</dcssch:dataPath>
<dcssch:field>Комментарий</dcssch:field>
</Field>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>Организация</dcssch:dataPath>
<dcssch:field>Организация</dcssch:field>
</Field>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>ДатаАктуальности</dcssch:dataPath>
<dcssch:field>ДатаАктуальности</dcssch:field>
<dcssch:title xsi:type="v8:LocalStringType">
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Дата актуальности</v8:content>
</v8:item>
</dcssch:title>
</Field>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>ДатаБессрочно</dcssch:dataPath>
<dcssch:field>ДатаБессрочно</dcssch:field>
<dcssch:title xsi:type="v8:LocalStringType">
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Дата бессрочно</v8:content>
</v8:item>
</dcssch:title>
</Field>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>ТипСубъекта</dcssch:dataPath>
<dcssch:field>ТипСубъекта</dcssch:field>
<dcssch:title xsi:type="v8:LocalStringType">
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Тип субъекта</v8:content>
</v8:item>
</dcssch:title>
</Field>
<Parameter>
<dcssch:name>ДатаБессрочно</dcssch:name>
<dcssch:title xsi:type="v8:LocalStringType">
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Дата бессрочно</v8:content>
</v8:item>
</dcssch:title>
<dcssch:value xsi:nil="true"/>
<dcssch:useRestriction>true</dcssch:useRestriction>
</Parameter>
<Parameter>
<dcssch:name>ДатаАктуальности</dcssch:name>
<dcssch:title xsi:type="v8:LocalStringType">
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Дата актуальности</v8:content>
</v8:item>
</dcssch:title>
<dcssch:value xsi:nil="true"/>
<dcssch:useRestriction>true</dcssch:useRestriction>
</Parameter>
<MainTable>InformationRegister.СрокиХраненияПерсональныхДанных</MainTable>
<ListSettings>
<dcsset:filter>
<dcsset:item xsi:type="dcsset:FilterItemComparison">
<dcsset:left xsi:type="dcscor:Field">СрокХранения</dcsset:left>
<dcsset:comparisonType>LessOrEqual</dcsset:comparisonType>
<dcsset:right xsi:type="dcscor:Field">ДатаАктуальности</dcsset:right>
</dcsset:item>
<dcsset:item xsi:type="dcsset:FilterItemComparison">
<dcsset:left xsi:type="dcscor:Field">СрокХранения</dcsset:left>
<dcsset:comparisonType>NotEqual</dcsset:comparisonType>
<dcsset:right xsi:type="dcscor:Field">ДатаБессрочно</dcsset:right>
</dcsset:item>
<dcsset:userSettingID>3d227f11-7249-4b8e-8c3e-50d481d9f473</dcsset:userSettingID>
</dcsset:filter>
<dcsset:order>
<dcsset:item xsi:type="dcsset:OrderItemField">
<dcsset:field>СрокХранения</dcsset:field>
<dcsset:orderType>Asc</dcsset:orderType>
</dcsset:item>
<dcsset:userSettingID>f07de0a1-2aef-4ac4-a2df-65813d1ae03c</dcsset:userSettingID>
</dcsset:order>
<dcsset:conditionalAppearance>
<dcsset:userSettingID>20f8926d-2de5-4adc-badd-191c814ad567</dcsset:userSettingID>
</dcsset:conditionalAppearance>
<dcsset:itemsUserSettingID>b025b404-35f5-4a17-82fe-f360e39ee942</dcsset:itemsUserSettingID>
</ListSettings>
</Settings>
</Attribute>
<Attribute name="АктыОбУничтожении" id="3">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Акты об уничтожении</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>cfg:DynamicList</v8:Type>
</Type>
<UseAlways>
<Field>АктыОбУничтожении.Ссылка</Field>
<Field>АктыОбУничтожении.Субъект</Field>
</UseAlways>
<Settings xsi:type="DynamicList">
<ManualQuery>true</ManualQuery>
<DynamicDataRead>true</DynamicDataRead>
<QueryText>ВЫБРАТЬ РАЗРЕШЕННЫЕ
АктОбУничтоженииПерсональныхДанных.Ссылка,
АктОбУничтоженииПерсональныхДанных.ПометкаУдаления,
АктОбУничтоженииПерсональныхДанных.Номер,
АктОбУничтоженииПерсональныхДанных.Дата,
АктОбУничтоженииПерсональныхДанных.Проведен,
АктОбУничтоженииПерсональныхДанных.Организация,
АктОбУничтоженииПерсональныхДанных.НаименованиеОрганизации,
АктОбУничтоженииПерсональныхДанных.ЮридическийАдресОрганизации,
АктОбУничтоженииПерсональныхДанных.ОтветственныйЗаОбработкуПерсональныхДанных,
АктОбУничтоженииПерсональныхДанных.ФИООтветственногоЗаОбработкуПДн,
АктОбУничтоженииПерсональныхДанных.НаименованиеИнформационнойСистемы,
АктОбУничтоженииПерсональныхДанных.ДатаУничтожения,
АктОбУничтоженииПерсональныхДанных.СпособУничтожения,
АктОбУничтоженииПерсональныхДанных.ПричинаУничтожения,
АктОбУничтоженииПерсональныхДанных.Ответственный,
АктОбУничтоженииПерсональныхДанных.Комментарий,
АктОбУничтоженииПерсональныхДанных.Субъект,
АктОбУничтоженииПерсональныхДанных.ФИОСубъекта,
ТИПЗНАЧЕНИЯ(АктОбУничтоженииПерсональныхДанных.Субъект) КАК ТипСубъекта
ИЗ
Документ.АктОбУничтоженииПерсональныхДанных КАК АктОбУничтоженииПерсональныхДанных</QueryText>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>Ссылка</dcssch:dataPath>
<dcssch:field>Ссылка</dcssch:field>
</Field>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>ПометкаУдаления</dcssch:dataPath>
<dcssch:field>ПометкаУдаления</dcssch:field>
</Field>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>Номер</dcssch:dataPath>
<dcssch:field>Номер</dcssch:field>
</Field>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>Дата</dcssch:dataPath>
<dcssch:field>Дата</dcssch:field>
</Field>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>Проведен</dcssch:dataPath>
<dcssch:field>Проведен</dcssch:field>
</Field>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>Организация</dcssch:dataPath>
<dcssch:field>Организация</dcssch:field>
</Field>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>НаименованиеОрганизации</dcssch:dataPath>
<dcssch:field>НаименованиеОрганизации</dcssch:field>
</Field>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>ЮридическийАдресОрганизации</dcssch:dataPath>
<dcssch:field>ЮридическийАдресОрганизации</dcssch:field>
</Field>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>ОтветственныйЗаОбработкуПерсональныхДанных</dcssch:dataPath>
<dcssch:field>ОтветственныйЗаОбработкуПерсональныхДанных</dcssch:field>
</Field>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>ФИООтветственногоЗаОбработкуПДн</dcssch:dataPath>
<dcssch:field>ФИООтветственногоЗаОбработкуПДн</dcssch:field>
</Field>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>НаименованиеИнформационнойСистемы</dcssch:dataPath>
<dcssch:field>НаименованиеИнформационнойСистемы</dcssch:field>
</Field>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>ДатаУничтожения</dcssch:dataPath>
<dcssch:field>ДатаУничтожения</dcssch:field>
</Field>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>СпособУничтожения</dcssch:dataPath>
<dcssch:field>СпособУничтожения</dcssch:field>
</Field>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>ПричинаУничтожения</dcssch:dataPath>
<dcssch:field>ПричинаУничтожения</dcssch:field>
</Field>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>Ответственный</dcssch:dataPath>
<dcssch:field>Ответственный</dcssch:field>
</Field>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>Комментарий</dcssch:dataPath>
<dcssch:field>Комментарий</dcssch:field>
</Field>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>Субъект</dcssch:dataPath>
<dcssch:field>Субъект</dcssch:field>
</Field>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>ФИОСубъекта</dcssch:dataPath>
<dcssch:field>ФИОСубъекта</dcssch:field>
</Field>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>ТипСубъекта</dcssch:dataPath>
<dcssch:field>ТипСубъекта</dcssch:field>
<dcssch:title xsi:type="v8:LocalStringType">
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Тип субъекта</v8:content>
</v8:item>
</dcssch:title>
</Field>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>КатегорииДанных</dcssch:dataPath>
<dcssch:field>КатегорииДанных</dcssch:field>
</Field>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>ДополнительныеРеквизиты</dcssch:dataPath>
<dcssch:field>ДополнительныеРеквизиты</dcssch:field>
</Field>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>ОбъектыСУничтожаемымиДанными</dcssch:dataPath>
<dcssch:field>ОбъектыСУничтожаемымиДанными</dcssch:field>
</Field>
<Field xsi:type="dcssch:DataSetFieldField">
<dcssch:dataPath>МоментВремени</dcssch:dataPath>
<dcssch:field>МоментВремени</dcssch:field>
</Field>
<MainTable>Document.АктОбУничтоженииПерсональныхДанных</MainTable>
<ListSettings>
<dcsset:filter>
<dcsset:userSettingID>27668b6c-095b-415c-80f7-797167aed432</dcsset:userSettingID>
</dcsset:filter>
<dcsset:order>
<dcsset:item xsi:type="dcsset:OrderItemField">
<dcsset:field>Дата</dcsset:field>
<dcsset:orderType>Desc</dcsset:orderType>
</dcsset:item>
<dcsset:userSettingID>8d802fda-384b-4907-b4f5-bfb643a6e610</dcsset:userSettingID>
</dcsset:order>
<dcsset:conditionalAppearance>
<dcsset:userSettingID>02436745-fe5e-4824-9799-2f2e3821e50f</dcsset:userSettingID>
</dcsset:conditionalAppearance>
<dcsset:itemsUserSettingID>fba5424e-6a70-4b6b-988c-af61a45334d6</dcsset:itemsUserSettingID>
</ListSettings>
</Settings>
</Attribute>
<Attribute name="ПоказыватьТолькоПросроченные" id="8">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Показывать только с просроченным сроком хранения</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>xs:boolean</v8:Type>
</Type>
<Save>
<Field>ПоказыватьТолькоПросроченные</Field>
</Save>
</Attribute>
<Attribute name="ОбновитьСрокиХранения" id="9">
<Type>
<v8:Type>xs:boolean</v8:Type>
</Type>
</Attribute>
</Attributes>
<Commands>
<Command name="СоздатьАкты" id="2">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Создать акты</v8:content>
</v8:item>
</Title>
<Action>СоздатьАкты</Action>
</Command>
</Commands>
</Form> | 45,814 | Form | xml | ru | xml | data | {"qsc_code_num_words": 3638, "qsc_code_num_chars": 45814.0, "qsc_code_mean_word_length": 7.98735569, "qsc_code_frac_words_unique": 0.19323804, "qsc_code_frac_chars_top_2grams": 0.02023539, "qsc_code_frac_chars_top_3grams": 0.01349026, "qsc_code_frac_chars_top_4grams": 0.02023539, "qsc_code_frac_chars_dupe_5grams": 0.43564595, "qsc_code_frac_chars_dupe_6grams": 0.41754422, "qsc_code_frac_chars_dupe_7grams": 0.40436369, "qsc_code_frac_chars_dupe_8grams": 0.36327345, "qsc_code_frac_chars_dupe_9grams": 0.34155826, "qsc_code_frac_chars_dupe_10grams": 0.33429692, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.03129674, "qsc_code_frac_chars_whitespace": 0.24119265, "qsc_code_size_file_byte": 45814.0, "qsc_code_num_lines": 1030.0, "qsc_code_num_chars_line_max": 918.0, "qsc_code_num_chars_line_mean": 44.47961165, "qsc_code_frac_chars_alphabet": 0.80453918, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.63106796, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.17450998, "qsc_code_frac_chars_long_word_length": 0.1357227, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 1, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/УничтожениеПерсональныхДанных/Forms/Форма/Ext/Form/Module.bsl | ///////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2024, ООО 1С-Софт
// Все права защищены. Эта программа и сопроводительные материалы предоставляются
// в соответствии с условиями лицензии Attribution 4.0 International (CC BY 4.0)
// Текст лицензии доступен по ссылке:
// https://creativecommons.org/licenses/by/4.0/legalcode
///////////////////////////////////////////////////////////////////////////////////////////////////////
#Область ОбработчикиСобытийФормы
&НаСервере
Процедура ПриСозданииНаСервере(Отказ, СтандартнаяОбработка)
ОбщегоНазначенияКлиентСервер.Проверить(Не ОбщегоНазначения.ЭтоПодчиненныйУзелРИБ(),
НСтр("ru = 'Все операции по уничтожению персональных данных выполняются только в центральном узле.'"));
// СтандартныеПодсистемы.ПодключаемыеКоманды
ПараметрыРазмещения = ПодключаемыеКоманды.ПараметрыРазмещения();
ПараметрыРазмещения.Источники = ОбщегоНазначенияКлиентСервер.ЗначениеВМассиве(
Метаданные.Документы.АктОбУничтоженииПерсональныхДанных);
ПараметрыРазмещения.КоманднаяПанель = Элементы.ПодменюПечать;
ПодключаемыеКоманды.ПриСозданииНаСервере(ЭтотОбъект, ПараметрыРазмещения);
// Конец СтандартныеПодсистемы.ПодключаемыеКоманды
УстановитьПараметрыСпискаСроковХранения();
ОбновитьСрокиХранения = РегистрыСведений.СубъектыДляРасчетаСроковХранения.ЕстьСубъектыДляРасчетаСроковХранения();
УстановитьВидимостьЭлементов();
УстановитьУсловноеОформление();
КонецПроцедуры
&НаСервере
Процедура ПриЗагрузкеДанныхИзНастроекНаСервере(Настройки)
УстановитьПараметрыСпискаСроковХранения();
КонецПроцедуры
&НаКлиенте
Процедура ПриОткрытии(Отказ)
// СтандартныеПодсистемы.ПодключаемыеКоманды
ПодключаемыеКомандыКлиент.НачатьОбновлениеКоманд(ЭтотОбъект);
// Конец СтандартныеПодсистемы.ПодключаемыеКоманды
Если ОбновитьСрокиХранения Тогда
ДлительнаяОперация = ОбновитьСрокиХранения();
Оповещение = Новый ОписаниеОповещения("ПриПроверкеРасчетаСроковХранения", ЭтотОбъект);
ПараметрыОжидания = ДлительныеОперацииКлиент.ПараметрыОжидания(ЭтотОбъект);
ПараметрыОжидания.ВыводитьОкноОжидания = Ложь;
ДлительныеОперацииКлиент.ОжидатьЗавершение(ДлительнаяОперация, Оповещение, ПараметрыОжидания);
КонецЕсли;
КонецПроцедуры
#КонецОбласти
#Область ОбработчикиСобытийЭлементовШапкиФормы
&НаКлиенте
Процедура ПоказыватьТолькоПросроченныеПриИзменении(Элемент)
УстановитьПараметрыСпискаСроковХранения();
КонецПроцедуры
#КонецОбласти
#Область ОбработчикиСобытийЭлементовТаблицыФормыСрокиХранения
&НаКлиенте
Процедура СрокиХраненияВыбор(Элемент, ВыбраннаяСтрока, Поле, СтандартнаяОбработка)
СтандартнаяОбработка = Ложь;
ПоказатьЗначение(, Элементы.СрокиХранения.ТекущиеДанные.Субъект);
КонецПроцедуры
#КонецОбласти
#Область ОбработчикиКомандФормы
&НаКлиенте
Процедура СоздатьАкты(Команда)
СубъектыИОрганизации = Новый Массив; // Массив из ОпределяемыйТип.СубъектПерсональныхДанных
Для каждого СтрСписка Из Элементы.СрокиХранения.ВыделенныеСтроки Цикл
ДанныеСтроки = Элементы.СрокиХранения.ДанныеСтроки(СтрСписка);
СубъектыИОрганизации.Добавить(
Новый Структура("Субъект,Организация", ДанныеСтроки.Субъект, ДанныеСтроки.Организация));
КонецЦикла;
Если СубъектыИОрганизации.Количество() = 0 Тогда
ПоказатьПредупреждение(, НСтр("ru = 'Для создания актов выделите строки в списке'"));
Возврат;
КонецЕсли;
СписокСубъектов = Новый СписокЗначений();
СписокСубъектов.ЗагрузитьЗначения(СубъектыИОрганизации);
Оповещение = Новый ОписаниеОповещения("ФормаСозданияАктовПослеЗакрытия", ЭтотОбъект, СубъектыИОрганизации);
ОткрытьФорму("Обработка.УничтожениеПерсональныхДанных.Форма.ФормаСозданияАктов",
Новый Структура("СубъектыИОрганизации", СписокСубъектов), ЭтотОбъект, , , , Оповещение,
РежимОткрытияОкнаФормы.БлокироватьОкноВладельца);
КонецПроцедуры
#КонецОбласти
#Область СлужебныеПроцедурыИФункции
&НаСервере
Процедура УстановитьВидимостьЭлементов()
ОбщегоНазначенияКлиентСервер.УстановитьСвойствоЭлементаФормы(Элементы, "ГруппаРасчетСроковХранения", "Видимость",
ОбновитьСрокиХранения);
ОбщегоНазначенияКлиентСервер.УстановитьСвойствоЭлементаФормы(Элементы, "КнопкаСоздатьАкты", "Доступность",
Не ОбновитьСрокиХранения);
ВидимостьТипаСубъекта = ЗащитаПерсональныхДанных.ТипыСубъектовДоступныхПоФункциональнымОпциям().Количество() > 1;
ОбщегоНазначенияКлиентСервер.УстановитьСвойствоЭлементаФормы(Элементы, "СрокиХраненияТипСубъекта", "Видимость",
ВидимостьТипаСубъекта);
ОбщегоНазначенияКлиентСервер.УстановитьСвойствоЭлементаФормы(Элементы, "АктыОбУничтоженииТипСубъекта", "Видимость",
ВидимостьТипаСубъекта);
Если РегистрыСведений.СрокиХраненияПерсональныхДанных.ЕстьРассчитанныеСрокиХранения() Тогда
Элементы.СтраницыГруппа.ТекущаяСтраница = Элементы.УничтожениеДанныхСтраница;
Если Документы.АктОбУничтоженииПерсональныхДанных.ЕстьАкты() Тогда
Элементы.АктыОбУничтоженииСтраницы.ТекущаяСтраница = Элементы.АктыОбУничтоженииСтраница;
Иначе
Элементы.АктыОбУничтоженииСтраницы.ТекущаяСтраница = Элементы.АктыОбУничтоженииПустаяСтраница;
КонецЕсли;
Иначе
Элементы.СтраницыГруппа.ТекущаяСтраница = Элементы.ПустаяСтраница;
КонецЕсли;
КонецПроцедуры
&НаСервере
Процедура УстановитьУсловноеОформление()
СтандартныеПодсистемыСервер.УстановитьУсловноеОформлениеПоляДата(ЭтотОбъект, "АктыОбУничтожении.Дата",
Элементы.АктыОбУничтоженииДата.Имя);
// Красный цвет текста если срок хранения меньше начала текущего дня.
Элемент = УсловноеОформление.Элементы.Добавить();
Элемент.Поля.Элементы.Добавить().Поле = Новый ПолеКомпоновкиДанных(Элементы.СрокиХранения.Имя);
ОбщегоНазначенияКлиентСервер.УстановитьЭлементОтбора(Элемент.Отбор,
"СрокиХранения.СрокХранения", НачалоДня(ТекущаяДатаСеанса()), ВидСравненияКомпоновкиДанных.МеньшеИлиРавно);
Элемент.Оформление.УстановитьЗначениеПараметра("ЦветТекста", ЦветаСтиля.ПросроченныеДанныеЦвет);
КонецПроцедуры
&НаСервере
Процедура УстановитьПараметрыСпискаСроковХранения()
ДатаБессрочно = Дата(3999, 12, 31);
Если ПоказыватьТолькоПросроченные Тогда
ДатаАктуальности = НачалоДня(ТекущаяДатаСеанса());
Иначе
ДатаАктуальности = ДатаБессрочно;
КонецЕсли;
СрокиХранения.Параметры.УстановитьЗначениеПараметра("ДатаАктуальности", ДатаАктуальности);
СрокиХранения.Параметры.УстановитьЗначениеПараметра("ДатаБессрочно", ДатаБессрочно);
КонецПроцедуры
// Форма создания актов после закрытия.
//
// Параметры:
// Результат - Строка, Структура:
// * Организация - ОпределяемыйТип.Организация
// * ПричинаУничтожения - Строка
// * СпособУничтожения - Строка
// * ОтветственныйЗаОбработкуПерсональныхДанных - СправочникСсылка.Пользователи
// СубъектыИОрганизации - Массив из Структура:
// * Субъект - ОпределяемыйТип.СубъектПерсональныхДанных
// * Организация - ОпределяемыйТип.Организация
//
&НаКлиенте
Процедура ФормаСозданияАктовПослеЗакрытия(Результат, СубъектыИОрганизации) Экспорт
Если ТипЗнч(Результат) <> Тип("Структура") Тогда
Возврат;
КонецЕсли;
ДлительнаяОперация = РезультатСозданияАктов(СубъектыИОрганизации, Результат);
Если ДлительнаяОперация.Статус = "Выполнено" Тогда
Для Каждого Сообщение Из ДлительнаяОперация.Сообщения Цикл
Сообщение.Сообщить();
КонецЦикла;
ПриЗавершенииСозданияАктов(ДлительнаяОперация);
Возврат;
КонецЕсли;
ПараметрыОжидания = ДлительныеОперацииКлиент.ПараметрыОжидания(ЭтотОбъект);
ПараметрыОжидания.ТекстСообщения = НСтр("ru = 'Формируются акты об уничтожении персональных данных'");
ПараметрыОжидания.ВыводитьОкноОжидания = Истина;
ПараметрыОжидания.ВыводитьСообщения = Истина;
ПараметрыОжидания.ВыводитьПрогрессВыполнения = Истина;
Оповещение = Новый ОписаниеОповещения("ПриЗавершенииСозданияАктов", ЭтотОбъект);
ДлительныеОперацииКлиент.ОжидатьЗавершение(ДлительнаяОперация, Оповещение, ПараметрыОжидания);
КонецПроцедуры
// Параметры:
// СубъектыИОрганизации - Массив из Структура:
// * Субъект - ОпределяемыйТип.СубъектПерсональныхДанных
// * Организация - ОпределяемыйТип.Организация
// ДанныеЗаполнения - см. ФормаСозданияАктовПослеЗакрытия.Результат
//
// Возвращаемое значение:
// см. ДлительныеОперации.ВыполнитьПроцедуру
//
&НаСервере
Функция РезультатСозданияАктов(СубъектыИОрганизации, ДанныеЗаполнения)
ПараметрыВыполнения = ДлительныеОперации.ПараметрыВыполненияФункции(УникальныйИдентификатор);
Возврат ДлительныеОперации.ВыполнитьПроцедуру(ПараметрыВыполнения,
"Обработки.УничтожениеПерсональныхДанных.СоздатьАкты", СубъектыИОрганизации, ДанныеЗаполнения);
КонецФункции
// Параметры:
// Результат - см. ДлительныеОперацииКлиент.НовыйРезультатДлительнойОперации
// ДополнительныеПараметры - Неопределено
//
&НаКлиенте
Процедура ПриЗавершенииСозданияАктов(Результат, ДополнительныеПараметры = Неопределено) Экспорт
Если Результат = Неопределено Тогда
Возврат;
КонецЕсли;
Если Результат.Статус = "Ошибка" Тогда
СтандартныеПодсистемыКлиент.ВывестиИнформациюОбОшибке(
Результат.ИнформацияОбОшибке);
Возврат;
КонецЕсли;
Типы = Новый Массив; // Массив из Тип
Типы.Добавить(Тип("ДокументСсылка.АктОбУничтоженииПерсональныхДанных"));
Типы.Добавить(Тип("РегистрСведенийКлючЗаписи.СрокиХраненияПерсональныхДанных"));
ОбщегоНазначенияКлиентСервер.ДополнитьМассив(Типы, ЗащитаПерсональныхДанныхВызовСервера.ТипыСубъектов());
ОбщегоНазначенияКлиент.ОповеститьОбИзмененииОбъектов(Новый ОписаниеТипов(Типы));
// СтандартныеПодсистемы.ПодключаемыеКоманды
ПодключаемыеКомандыКлиент.НачатьОбновлениеКоманд(ЭтотОбъект);
// Конец СтандартныеПодсистемы.ПодключаемыеКоманды
УстановитьВидимостьЭлементов();
КонецПроцедуры
&НаСервере
Функция ОбновитьСрокиХранения()
Возврат ЗащитаПерсональныхДанных.ОбновитьСрокиХраненияПерсональныхДанныхВФоне(УникальныйИдентификатор);
КонецФункции
// Параметры:
// Результат - см. ДлительныеОперацииКлиент.НовыйРезультатДлительнойОперации
// ДополнительныеПараметры - Неопределено
//
&НаКлиенте
Процедура ПриПроверкеРасчетаСроковХранения(Результат, ДополнительныеПараметры) Экспорт
Если Результат = Неопределено Тогда
Возврат;
КонецЕсли;
Если Результат.Статус = "Ошибка" Тогда
СтандартныеПодсистемыКлиент.ВывестиИнформациюОбОшибке(
Результат.ИнформацияОбОшибке);
Возврат;
КонецЕсли;
ОбновитьСрокиХранения = Ложь;
ОповеститьОбИзменении(Тип("РегистрСведенийКлючЗаписи.СрокиХраненияПерсональныхДанных"));
УстановитьВидимостьЭлементов();
КонецПроцедуры
// СтандартныеПодсистемы.ПодключаемыеКоманды
&НаКлиенте
Процедура Подключаемый_ВыполнитьКоманду(Команда)
ПодключаемыеКомандыКлиент.НачатьВыполнениеКоманды(ЭтотОбъект, Команда, Элементы.АктыОбУничтожении);
КонецПроцедуры
&НаКлиенте
Процедура Подключаемый_ПродолжитьВыполнениеКомандыНаСервере(ПараметрыВыполнения, ДополнительныеПараметры) Экспорт
ВыполнитьКомандуНаСервере(ПараметрыВыполнения);
КонецПроцедуры
&НаСервере
Процедура ВыполнитьКомандуНаСервере(ПараметрыВыполнения)
ПодключаемыеКоманды.ВыполнитьКоманду(ЭтотОбъект, ПараметрыВыполнения, Элементы.АктыОбУничтожении);
КонецПроцедуры
&НаКлиенте
Процедура Подключаемый_ОбновитьКоманды()
ПодключаемыеКомандыКлиентСервер.ОбновитьКоманды(ЭтотОбъект, Элементы.АктыОбУничтожении);
КонецПроцедуры
// Конец СтандартныеПодсистемы.ПодключаемыеКоманды
#КонецОбласти
| 11,178 | Module | bsl | ru | 1c enterprise | code | {"qsc_code_num_words": 701, "qsc_code_num_chars": 11178.0, "qsc_code_mean_word_length": 13.14835949, "qsc_code_frac_words_unique": 0.38659058, "qsc_code_frac_chars_top_2grams": 0.01952913, "qsc_code_frac_chars_top_3grams": 0.01952913, "qsc_code_frac_chars_top_4grams": 0.01887816, "qsc_code_frac_chars_dupe_5grams": 0.17836606, "qsc_code_frac_chars_dupe_6grams": 0.14126071, "qsc_code_frac_chars_dupe_7grams": 0.12628838, "qsc_code_frac_chars_dupe_8grams": 0.12628838, "qsc_code_frac_chars_dupe_9grams": 0.09547575, "qsc_code_frac_chars_dupe_10grams": 0.09547575, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00205822, "qsc_code_frac_chars_whitespace": 0.08722491, "qsc_code_size_file_byte": 11178.0, "qsc_code_num_lines": 324.0, "qsc_code_num_chars_line_max": 117.0, "qsc_code_num_chars_line_mean": 34.5, "qsc_code_frac_chars_alphabet": 0.90120553, "qsc_code_frac_chars_comments": 0.99060655, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.0, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 1, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0} |
2004shivanshi/portfolio-website | script.js | function toggleMenu() {
const menu = document.querySelector(".menu-links");
const icon = document.querySelector(".hamburger-icon");
menu.classList.toggle("open");
icon.classList.toggle("open");
}
// Dark / light mode
const btn = document.getElementById("modeToggle");
const btn2 = document.getElementById("modeToggle2");
const themeIcons = document.querySelectorAll(".icon");
const currentTheme = localStorage.getItem("theme");
if (currentTheme === "dark") {
setDarkMode();
}
btn.addEventListener("click", function () {
setTheme();
});
btn2.addEventListener("click", function () {
setTheme();
});
function setTheme() {
let currentTheme = document.body.getAttribute("theme");
if (currentTheme === "dark") {
setLightMode();
} else {
setDarkMode();
}
}
function setDarkMode() {
document.body.setAttribute("theme", "dark");
localStorage.setItem("theme", "dark");
themeIcons.forEach((icon) => {
icon.src = icon.getAttribute("src-dark");
});
}
function setLightMode() {
document.body.removeAttribute("theme");
localStorage.setItem("theme", "light");
themeIcons.forEach((icon) => {
icon.src = icon.getAttribute("src-light");
});
} | 1,292 | script | js | en | javascript | code | {"qsc_code_num_words": 112, "qsc_code_num_chars": 1292.0, "qsc_code_mean_word_length": 7.17857143, "qsc_code_frac_words_unique": 0.36607143, "qsc_code_frac_chars_top_2grams": 0.05970149, "qsc_code_frac_chars_top_3grams": 0.04726368, "qsc_code_frac_chars_top_4grams": 0.05721393, "qsc_code_frac_chars_dupe_5grams": 0.11691542, "qsc_code_frac_chars_dupe_6grams": 0.11691542, "qsc_code_frac_chars_dupe_7grams": 0.11691542, "qsc_code_frac_chars_dupe_8grams": 0.11691542, "qsc_code_frac_chars_dupe_9grams": 0.0, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00293542, "qsc_code_frac_chars_whitespace": 0.20897833, "qsc_code_size_file_byte": 1292.0, "qsc_code_num_lines": 53.0, "qsc_code_num_chars_line_max": 60.0, "qsc_code_num_chars_line_mean": 24.37735849, "qsc_code_frac_chars_alphabet": 0.78375734, "qsc_code_frac_chars_comments": 0.01547988, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.29268293, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.10840534, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codejavascript_cate_ast": 1.0, "qsc_codejavascript_cate_var_zero": 0.0, "qsc_codejavascript_frac_lines_func_ratio": 0.09756098, "qsc_codejavascript_num_statement_line": 0.26829268, "qsc_codejavascript_score_lines_no_logic": 0.09756098, "qsc_codejavascript_frac_words_legal_var_name": 1.0, "qsc_codejavascript_frac_words_legal_func_name": 1.0, "qsc_codejavascript_frac_words_legal_class_name": null, "qsc_codejavascript_frac_lines_print": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codejavascript_cate_ast": 0, "qsc_codejavascript_cate_var_zero": 0, "qsc_codejavascript_frac_lines_func_ratio": 0, "qsc_codejavascript_score_lines_no_logic": 0, "qsc_codejavascript_frac_lines_print": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ЗагрузкаКлассификатораБанков/Forms/Форма.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Form uuid="310aef5a-84d9-4a68-af78-d623beff8a88">
<Properties>
<Name>Форма</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Форма</v8:content>
</v8:item>
</Synonym>
<Comment/>
<FormType>Managed</FormType>
<IncludeHelpInContents>false</IncludeHelpInContents>
<UsePurposes>
<v8:Value xsi:type="app:ApplicationUsePurpose">PlatformApplication</v8:Value>
<v8:Value xsi:type="app:ApplicationUsePurpose">MobilePlatformApplication</v8:Value>
</UsePurposes>
<ExtendedPresentation/>
</Properties>
</Form>
</MetaDataObject> | 1,493 | Форма | xml | ru | xml | data | {"qsc_code_num_words": 247, "qsc_code_num_chars": 1493.0, "qsc_code_mean_word_length": 4.24291498, "qsc_code_frac_words_unique": 0.32793522, "qsc_code_frac_chars_top_2grams": 0.08587786, "qsc_code_frac_chars_top_3grams": 0.11450382, "qsc_code_frac_chars_top_4grams": 0.14312977, "qsc_code_frac_chars_dupe_5grams": 0.42270992, "qsc_code_frac_chars_dupe_6grams": 0.42270992, "qsc_code_frac_chars_dupe_7grams": 0.29103053, "qsc_code_frac_chars_dupe_8grams": 0.23282443, "qsc_code_frac_chars_dupe_9grams": 0.04580153, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.07625899, "qsc_code_frac_chars_whitespace": 0.06898861, "qsc_code_size_file_byte": 1493.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 67.86363636, "qsc_code_frac_chars_alphabet": 0.67697842, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.48158071, "qsc_code_frac_chars_long_word_length": 0.05760214, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ЗагрузкаКлассификатораБанков/Commands/ЗагрузкаКлассификатораБанков/Ext/CommandModule.bsl | ///////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2024, ООО 1С-Софт
// Все права защищены. Эта программа и сопроводительные материалы предоставляются
// в соответствии с условиями лицензии Attribution 4.0 International (CC BY 4.0)
// Текст лицензии доступен по ссылке:
// https://creativecommons.org/licenses/by/4.0/legalcode
///////////////////////////////////////////////////////////////////////////////////////////////////////
#Область ОбработчикиСобытий
&НаКлиенте
Процедура ОбработкаКоманды(ПараметрКоманды, ПараметрыВыполненияКоманды)
Если ОбщегоНазначенияКлиент.ПодсистемаСуществует("ИнтернетПоддержкаПользователей.РаботаСКлассификаторами") Тогда
МодульРаботаСКлассификаторамиКлиент = ОбщегоНазначенияКлиент.ОбщийМодуль("РаботаСКлассификаторамиКлиент");
МодульРаботаСКлассификаторамиКлиент.ОбновитьКлассификаторы();
КонецЕсли;
КонецПроцедуры
#КонецОбласти
| 945 | CommandModule | bsl | ru | 1c enterprise | code | {"qsc_code_num_words": 64, "qsc_code_num_chars": 945.0, "qsc_code_mean_word_length": 9.71875, "qsc_code_frac_words_unique": 0.875, "qsc_code_frac_chars_top_2grams": 0.0096463, "qsc_code_frac_chars_top_3grams": 0.01286174, "qsc_code_frac_chars_top_4grams": 0.0, "qsc_code_frac_chars_dupe_5grams": 0.0, "qsc_code_frac_chars_dupe_6grams": 0.0, "qsc_code_frac_chars_dupe_7grams": 0.0, "qsc_code_frac_chars_dupe_8grams": 0.0, "qsc_code_frac_chars_dupe_9grams": 0.0, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.01248581, "qsc_code_frac_chars_whitespace": 0.06772487, "qsc_code_size_file_byte": 945.0, "qsc_code_num_lines": 19.0, "qsc_code_num_chars_line_max": 114.0, "qsc_code_num_chars_line_mean": 49.73684211, "qsc_code_frac_chars_alphabet": 0.69239501, "qsc_code_frac_chars_comments": 0.88888889, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.0, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 1, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ЗагрузкаКлассификатораБанков/Forms/Форма/Ext/Form.xml | <?xml version="1.0" encoding="UTF-8"?>
<Form xmlns="http://v8.1c.ru/8.3/xcf/logform" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:dcscor="http://v8.1c.ru/8.1/data-composition-system/core" xmlns:dcssch="http://v8.1c.ru/8.1/data-composition-system/schema" xmlns:dcsset="http://v8.1c.ru/8.1/data-composition-system/settings" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<AutoCommandBar name="ФормаКоманднаяПанель" id="-1"/>
<Events>
<Event name="OnOpen">ПриОткрытии</Event>
</Events>
<Attributes>
<Attribute name="Объект" id="1">
<Type>
<v8:Type>cfg:DataProcessorObject.ЗагрузкаКлассификатораБанков</v8:Type>
</Type>
<MainAttribute>true</MainAttribute>
</Attribute>
</Attributes>
</Form> | 1,299 | Form | xml | ru | xml | data | {"qsc_code_num_words": 228, "qsc_code_num_chars": 1299.0, "qsc_code_mean_word_length": 4.04824561, "qsc_code_frac_words_unique": 0.31578947, "qsc_code_frac_chars_top_2grams": 0.09750813, "qsc_code_frac_chars_top_3grams": 0.13001083, "qsc_code_frac_chars_top_4grams": 0.16251354, "qsc_code_frac_chars_dupe_5grams": 0.44312026, "qsc_code_frac_chars_dupe_6grams": 0.44312026, "qsc_code_frac_chars_dupe_7grams": 0.38894908, "qsc_code_frac_chars_dupe_8grams": 0.33911159, "qsc_code_frac_chars_dupe_9grams": 0.15926327, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.06634304, "qsc_code_frac_chars_whitespace": 0.04849885, "qsc_code_size_file_byte": 1299.0, "qsc_code_num_lines": 15.0, "qsc_code_num_chars_line_max": 918.0, "qsc_code_num_chars_line_mean": 86.6, "qsc_code_frac_chars_alphabet": 0.67961165, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.55273287, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 1, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ОценкаПроизводительности/Forms/ИмпортЗамеровПроизводительности.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Form uuid="d08679db-f83f-476e-b8c4-f3f52c3cf6fd">
<Properties>
<Name>ИмпортЗамеровПроизводительности</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Импорт замеров производительности</v8:content>
</v8:item>
</Synonym>
<Comment/>
<FormType>Managed</FormType>
<IncludeHelpInContents>false</IncludeHelpInContents>
<UsePurposes>
<v8:Value xsi:type="app:ApplicationUsePurpose">PlatformApplication</v8:Value>
<v8:Value xsi:type="app:ApplicationUsePurpose">MobilePlatformApplication</v8:Value>
</UsePurposes>
<ExtendedPresentation/>
</Properties>
</Form>
</MetaDataObject> | 1,547 | ИмпортЗамеровПроизводительности | xml | ru | xml | data | {"qsc_code_num_words": 249, "qsc_code_num_chars": 1547.0, "qsc_code_mean_word_length": 4.41767068, "qsc_code_frac_words_unique": 0.3373494, "qsc_code_frac_chars_top_2grams": 0.08181818, "qsc_code_frac_chars_top_3grams": 0.10909091, "qsc_code_frac_chars_top_4grams": 0.13636364, "qsc_code_frac_chars_dupe_5grams": 0.40272727, "qsc_code_frac_chars_dupe_6grams": 0.40272727, "qsc_code_frac_chars_dupe_7grams": 0.27727273, "qsc_code_frac_chars_dupe_8grams": 0.22181818, "qsc_code_frac_chars_dupe_9grams": 0.04363636, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.07281553, "qsc_code_frac_chars_whitespace": 0.0678733, "qsc_code_size_file_byte": 1547.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 70.31818182, "qsc_code_frac_chars_alphabet": 0.68932039, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.46477052, "qsc_code_frac_chars_long_word_length": 0.05559147, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ОценкаПроизводительности/Forms/ЭкспортЗамеровПроизводительности.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Form uuid="af6bccbb-a6cb-41ee-bc4e-f2d6a5e0f419">
<Properties>
<Name>ЭкспортЗамеровПроизводительности</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Экспорт замеров производительности</v8:content>
</v8:item>
</Synonym>
<Comment/>
<FormType>Managed</FormType>
<IncludeHelpInContents>false</IncludeHelpInContents>
<UsePurposes>
<v8:Value xsi:type="app:ApplicationUsePurpose">PlatformApplication</v8:Value>
<v8:Value xsi:type="app:ApplicationUsePurpose">MobilePlatformApplication</v8:Value>
</UsePurposes>
<ExtendedPresentation/>
</Properties>
</Form>
</MetaDataObject> | 1,549 | ЭкспортЗамеровПроизводительности | xml | ru | xml | data | {"qsc_code_num_words": 249, "qsc_code_num_chars": 1549.0, "qsc_code_mean_word_length": 4.42570281, "qsc_code_frac_words_unique": 0.3373494, "qsc_code_frac_chars_top_2grams": 0.08166969, "qsc_code_frac_chars_top_3grams": 0.10889292, "qsc_code_frac_chars_top_4grams": 0.13611615, "qsc_code_frac_chars_dupe_5grams": 0.40199637, "qsc_code_frac_chars_dupe_6grams": 0.40199637, "qsc_code_frac_chars_dupe_7grams": 0.27676951, "qsc_code_frac_chars_dupe_8grams": 0.22141561, "qsc_code_frac_chars_dupe_9grams": 0.04355717, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.06925208, "qsc_code_frac_chars_whitespace": 0.06778567, "qsc_code_size_file_byte": 1549.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 70.40909091, "qsc_code_frac_chars_alphabet": 0.6932133, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.46417043, "qsc_code_frac_chars_long_word_length": 0.05551969, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ОценкаПроизводительности/Forms/ПодборЦелевогоВремениКлючевойОперации.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Form uuid="fad0898f-5769-46ab-bc5e-301924b851a0">
<Properties>
<Name>ПодборЦелевогоВремениКлючевойОперации</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Подбор целевого времени ключевой операции</v8:content>
</v8:item>
</Synonym>
<Comment/>
<FormType>Managed</FormType>
<IncludeHelpInContents>false</IncludeHelpInContents>
<UsePurposes>
<v8:Value xsi:type="app:ApplicationUsePurpose">PlatformApplication</v8:Value>
<v8:Value xsi:type="app:ApplicationUsePurpose">MobilePlatformApplication</v8:Value>
</UsePurposes>
<ExtendedPresentation/>
</Properties>
</Form>
</MetaDataObject> | 1,561 | ПодборЦелевогоВремениКлючевойОперации | xml | ru | xml | data | {"qsc_code_num_words": 251, "qsc_code_num_chars": 1561.0, "qsc_code_mean_word_length": 4.43027888, "qsc_code_frac_words_unique": 0.34262948, "qsc_code_frac_chars_top_2grams": 0.08093525, "qsc_code_frac_chars_top_3grams": 0.10791367, "qsc_code_frac_chars_top_4grams": 0.13489209, "qsc_code_frac_chars_dupe_5grams": 0.39838129, "qsc_code_frac_chars_dupe_6grams": 0.39838129, "qsc_code_frac_chars_dupe_7grams": 0.27428058, "qsc_code_frac_chars_dupe_8grams": 0.21942446, "qsc_code_frac_chars_dupe_9grams": 0.04316547, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.07496561, "qsc_code_frac_chars_whitespace": 0.0685458, "qsc_code_size_file_byte": 1561.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 70.95454545, "qsc_code_frac_chars_alphabet": 0.68913343, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.46060218, "qsc_code_frac_chars_long_word_length": 0.05509289, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ОценкаПроизводительности/Forms/АвтоматическийЭкспортЗамеровПроизводительности.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Form uuid="f5b66759-8102-4cba-a3fd-ee96db5bc809">
<Properties>
<Name>АвтоматическийЭкспортЗамеровПроизводительности</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Автоматический экспорт замеров производительности</v8:content>
</v8:item>
</Synonym>
<Comment/>
<FormType>Managed</FormType>
<IncludeHelpInContents>false</IncludeHelpInContents>
<UsePurposes>
<v8:Value xsi:type="app:ApplicationUsePurpose">PlatformApplication</v8:Value>
<v8:Value xsi:type="app:ApplicationUsePurpose">MobilePlatformApplication</v8:Value>
</UsePurposes>
<ExtendedPresentation/>
</Properties>
</Form>
</MetaDataObject> | 1,578 | АвтоматическийЭкспортЗамеровПроизводительности | xml | ru | xml | data | {"qsc_code_num_words": 250, "qsc_code_num_chars": 1578.0, "qsc_code_mean_word_length": 4.52, "qsc_code_frac_words_unique": 0.34, "qsc_code_frac_chars_top_2grams": 0.07964602, "qsc_code_frac_chars_top_3grams": 0.10619469, "qsc_code_frac_chars_top_4grams": 0.13274336, "qsc_code_frac_chars_dupe_5grams": 0.3920354, "qsc_code_frac_chars_dupe_6grams": 0.3920354, "qsc_code_frac_chars_dupe_7grams": 0.2699115, "qsc_code_frac_chars_dupe_8grams": 0.2159292, "qsc_code_frac_chars_dupe_9grams": 0.04247788, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.07201087, "qsc_code_frac_chars_whitespace": 0.06717364, "qsc_code_size_file_byte": 1578.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 71.72727273, "qsc_code_frac_chars_alphabet": 0.69497283, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.45564005, "qsc_code_frac_chars_long_word_length": 0.05449937, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ОценкаПроизводительности/Ext/Help/ru.html | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta content="text/html;charset=utf-8" http-equiv="content-type"></meta><link rel="stylesheet" type="text/css" href="v8help://service_book/service_style"></link><meta name="GENERATOR" content="MSHTML 11.00.10570.1001"></meta></head><body>
<p>В приложении предусмотрены встроенные средства для сбора и анализа данных о производительности работы по APDEX, которая является международным стандартом оценки производительности информационных систем. </p>
<p>Для того чтобы оценивать производительность, необходимо в начале работы приложения заполнить список <a href="Catalog.КлючевыеОперации/Help">Ключевые операции</a>.</p>
<p>Оценка производительности приложения по методике APDEX состоит из следующих основных этапов:</p>
<ul><li>заполнение <a href="Catalog.ПрофилиКлючевыхОпераций/Help">профилей ключевых операций</a> (в профиле заполняются приоритет и целевое значение времени для каждой <a href="Catalog.КлючевыеОперации.Form.ФормаЭлемента/Help">ключевой операции</a>, предусмотренной в приложении);
</li>
<li>сбор информации о времени выполнения каждой ключевой операции;
</li>
<li>на основании собранных данных - формирование отчета <a href="Report.ОценкаПроизводительности/Help">Оценки производительности по ключевым операциям</a>.</li></ul><p>К просмотру отчета <strong>Оценка производительности по ключевым операциям</strong> можно перейти по соответствующей ссылке раздела <strong>Администрирование - Обслуживание - Отчеты и обработки - Отчеты администратора</strong>.</p>
<p>Для того чтобы производить оценку производительности, включите флажок <strong>Оценка производительности</strong>. После этого в приложении будут производиться <a href="InformationRegister.ЗамерыВремени/Help">замеры</a> производительности во время выполнения указанных ключевых операций, например, при проведении документа. </p>
<ul><li>Результаты замеров будут обработаны в отчете <strong>Оценка производительности</strong>.</li></ul><h3>Оценка производительности</h3>
<ul><li>Оценка производительности выводится в диапазоне от нуля до единицы. В зависимости от значения оценки поле с оценкой выделяется определенным цветом. Полученные оценки можно интерпретировать следующим образом: </li></ul><p></p>
<table border="1"><tbody><tr><td colspan="3">
<p align="center"><strong>Шкала APDEX</strong> </p></td></tr><tr><td colspan="2">
<p align="center"><strong>Значение</strong> </p></td>
<td rowspan="2">
<p align="center"><strong>Оценка</strong> </p></td></tr><tr><td>
<p align="center"><strong>от</strong> </p></td>
<td>
<p align="center"><strong>до</strong> </p></td></tr><tr><td>0.00</td>
<td>0.50</td>
<td style="BACKGROUND-COLOR: #cccccc">неприемлемо</td></tr><tr><td>0.50</td>
<td>0.70</td>
<td style="BACKGROUND-COLOR: #ffcc66">очень плохо</td></tr><tr><td>0.70</td>
<td>0.85</td>
<td style="BACKGROUND-COLOR: #ffff66">плохо</td></tr><tr><td>0.85</td>
<td>0.94</td>
<td style="BACKGROUND-COLOR: #ccff99">хорошо</td></tr><tr><td>0.94</td>
<td>1.00</td>
<td style="BACKGROUND-COLOR: #ccffff">отлично</td></tr></tbody></table><h3>Экспорт замеров производительности</h3>
<ul><li>Полученные замеры производительности приложение позволяет автоматически в фоне выгружать во внешние файлы, например, для выполнения анализа производительности в другом приложении.
</li>
<li>Для того чтобы<a href="DataProcessor.ОценкаПроизводительности.Form.АвтоматическийЭкспортЗамеровПроизводительности/Help"> настроить выгрузку</a> этих данных, перейдите по ссылке <strong>Настройки</strong> раздела <strong>Администрирование - Обслуживание - Оценка производительности</strong>.
</li>
<li>Сформированные внешние файлы, а также файлы, содержащие настройки, при которых были получены эти замеры, автоматически упаковываются в ZIP-архив.
</li>
<li>Для того чтобы выполнить <a href="DataProcessor.ОценкаПроизводительности.Form.ЭкспортЗамеровПроизводительности/Help">экспорт замеров производительности вручную</a>, нажмите <strong>Экспорт замеров</strong>. в разделе <strong>Администрирование - Обслуживание - Оценка производительности</strong>. Файл с замерами производительности можно открыть или сохранить. Для сохранения файла выберите путь к папке на компьютере.</li></ul><h3>Импорт замеров производительности</h3>
<ul><li>
<div>Можно проанализировать замеры производительности другом приложении с помощью <a href="DataProcessor.ОценкаПроизводительности.Form.ИмпортЗамеровПроизводительности/Help">импорта из соответствующего файла</a>.</div>
</li>
<li>
<div>Для импорта воспользуйтесь ссылкой <strong>Импорт замеров</strong> в разделе <strong>Администрирование - Обслуживание - Оценка производительности</strong>.</div>
</li>
<li>
<div>В поле <strong>Файл импорта</strong> с помощью кнопки <img src="StdPicture.InputFieldSelect"></img> укажите путь к файлу на компьютере, нажмите кнопку <strong>Импорт</strong>.</div></li></ul></body></html> | 4,887 | ru | html | ru | html | code | {"qsc_code_num_words": 651, "qsc_code_num_chars": 4887.0, "qsc_code_mean_word_length": 5.8218126, "qsc_code_frac_words_unique": 0.39170507, "qsc_code_frac_chars_top_2grams": 0.01266491, "qsc_code_frac_chars_top_3grams": 0.01108179, "qsc_code_frac_chars_top_4grams": 0.01477573, "qsc_code_frac_chars_dupe_5grams": 0.2171504, "qsc_code_frac_chars_dupe_6grams": 0.0817942, "qsc_code_frac_chars_dupe_7grams": 0.04538259, "qsc_code_frac_chars_dupe_8grams": 0.04538259, "qsc_code_frac_chars_dupe_9grams": 0.04538259, "qsc_code_frac_chars_dupe_10grams": 0.04538259, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.0142539, "qsc_code_frac_chars_whitespace": 0.08123593, "qsc_code_size_file_byte": 4887.0, "qsc_code_num_lines": 45.0, "qsc_code_num_chars_line_max": 474.0, "qsc_code_num_chars_line_mean": 108.6, "qsc_code_frac_chars_alphabet": 0.82962138, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.2, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.16083487, "qsc_code_frac_chars_long_word_length": 0.10804174, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codehtml_cate_ast": 1.0, "qsc_codehtml_frac_words_text": 0.57274401, "qsc_codehtml_num_chars_text": 2799.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 1, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_cate_xml_start": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_cate_autogen": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_codehtml_cate_ast": 0, "qsc_codehtml_frac_words_text": 0, "qsc_codehtml_num_chars_text": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/РаботаСФайлами/Forms/СписокЗанятыхСВопросом.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Form uuid="172ff335-c7ae-4905-b705-2a1475b95713">
<Properties>
<Name>СписокЗанятыхСВопросом</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Список занятых с вопросом</v8:content>
</v8:item>
</Synonym>
<Comment/>
<FormType>Managed</FormType>
<IncludeHelpInContents>true</IncludeHelpInContents>
<UsePurposes>
<v8:Value xsi:type="app:ApplicationUsePurpose">PlatformApplication</v8:Value>
<v8:Value xsi:type="app:ApplicationUsePurpose">MobilePlatformApplication</v8:Value>
</UsePurposes>
<ExtendedPresentation/>
</Properties>
</Form>
</MetaDataObject> | 1,529 | СписокЗанятыхСВопросом | xml | ru | xml | data | {"qsc_code_num_words": 250, "qsc_code_num_chars": 1529.0, "qsc_code_mean_word_length": 4.324, "qsc_code_frac_words_unique": 0.34, "qsc_code_frac_chars_top_2grams": 0.08325624, "qsc_code_frac_chars_top_3grams": 0.11100833, "qsc_code_frac_chars_top_4grams": 0.13876041, "qsc_code_frac_chars_dupe_5grams": 0.40980574, "qsc_code_frac_chars_dupe_6grams": 0.40980574, "qsc_code_frac_chars_dupe_7grams": 0.28214616, "qsc_code_frac_chars_dupe_8grams": 0.22571693, "qsc_code_frac_chars_dupe_9grams": 0.04440333, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.07870696, "qsc_code_frac_chars_whitespace": 0.06932636, "qsc_code_size_file_byte": 1529.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 69.5, "qsc_code_frac_chars_alphabet": 0.68025299, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.47024199, "qsc_code_frac_chars_long_word_length": 0.05624591, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/РаботаСФайлами/Forms/ВыборСпособаСравненияВерсий.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Form uuid="5725db77-bfbf-4d85-9565-163b309a53ee">
<Properties>
<Name>ВыборСпособаСравненияВерсий</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Выбор способа сравнения версий</v8:content>
</v8:item>
</Synonym>
<Comment/>
<FormType>Managed</FormType>
<IncludeHelpInContents>false</IncludeHelpInContents>
<UsePurposes>
<v8:Value xsi:type="app:ApplicationUsePurpose">PlatformApplication</v8:Value>
<v8:Value xsi:type="app:ApplicationUsePurpose">MobilePlatformApplication</v8:Value>
</UsePurposes>
<ExtendedPresentation/>
</Properties>
</Form>
</MetaDataObject> | 1,540 | ВыборСпособаСравненияВерсий | xml | ru | xml | data | {"qsc_code_num_words": 250, "qsc_code_num_chars": 1540.0, "qsc_code_mean_word_length": 4.368, "qsc_code_frac_words_unique": 0.34, "qsc_code_frac_chars_top_2grams": 0.08241758, "qsc_code_frac_chars_top_3grams": 0.10989011, "qsc_code_frac_chars_top_4grams": 0.13736264, "qsc_code_frac_chars_dupe_5grams": 0.40567766, "qsc_code_frac_chars_dupe_6grams": 0.40567766, "qsc_code_frac_chars_dupe_7grams": 0.27930403, "qsc_code_frac_chars_dupe_8grams": 0.22344322, "qsc_code_frac_chars_dupe_9grams": 0.04395604, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.07601116, "qsc_code_frac_chars_whitespace": 0.06883117, "qsc_code_size_file_byte": 1540.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 70.0, "qsc_code_frac_chars_alphabet": 0.68479777, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.46688312, "qsc_code_frac_chars_long_word_length": 0.05584416, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/РаботаСФайлами/Forms/ВыборКодировки.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Form uuid="315af891-2075-4833-a404-6c0f2004ee53">
<Properties>
<Name>ВыборКодировки</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Выбор кодировки</v8:content>
</v8:item>
</Synonym>
<Comment/>
<FormType>Managed</FormType>
<IncludeHelpInContents>false</IncludeHelpInContents>
<UsePurposes>
<v8:Value xsi:type="app:ApplicationUsePurpose">PlatformApplication</v8:Value>
<v8:Value xsi:type="app:ApplicationUsePurpose">MobilePlatformApplication</v8:Value>
</UsePurposes>
<ExtendedPresentation/>
</Properties>
</Form>
</MetaDataObject> | 1,512 | ВыборКодировки | xml | ru | xml | data | {"qsc_code_num_words": 248, "qsc_code_num_chars": 1512.0, "qsc_code_mean_word_length": 4.2983871, "qsc_code_frac_words_unique": 0.33467742, "qsc_code_frac_chars_top_2grams": 0.08442777, "qsc_code_frac_chars_top_3grams": 0.11257036, "qsc_code_frac_chars_top_4grams": 0.14071295, "qsc_code_frac_chars_dupe_5grams": 0.41557223, "qsc_code_frac_chars_dupe_6grams": 0.41557223, "qsc_code_frac_chars_dupe_7grams": 0.28611632, "qsc_code_frac_chars_dupe_8grams": 0.22889306, "qsc_code_frac_chars_dupe_9grams": 0.04502814, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.08025568, "qsc_code_frac_chars_whitespace": 0.06878307, "qsc_code_size_file_byte": 1512.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 68.72727273, "qsc_code_frac_chars_alphabet": 0.67613636, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.4755291, "qsc_code_frac_chars_long_word_length": 0.05687831, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/РаботаСФайлами/Forms/ФормаВопроса.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Form uuid="c997f56c-ef9c-434e-bc4e-7fc5f885aaba">
<Properties>
<Name>ФормаВопроса</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Форма вопроса</v8:content>
</v8:item>
</Synonym>
<Comment/>
<FormType>Managed</FormType>
<IncludeHelpInContents>false</IncludeHelpInContents>
<UsePurposes>
<v8:Value xsi:type="app:ApplicationUsePurpose">PlatformApplication</v8:Value>
<v8:Value xsi:type="app:ApplicationUsePurpose">MobilePlatformApplication</v8:Value>
</UsePurposes>
<ExtendedPresentation/>
</Properties>
</Form>
</MetaDataObject> | 1,508 | ФормаВопроса | xml | ru | xml | data | {"qsc_code_num_words": 248, "qsc_code_num_chars": 1508.0, "qsc_code_mean_word_length": 4.28225806, "qsc_code_frac_words_unique": 0.33467742, "qsc_code_frac_chars_top_2grams": 0.08474576, "qsc_code_frac_chars_top_3grams": 0.11299435, "qsc_code_frac_chars_top_4grams": 0.14124294, "qsc_code_frac_chars_dupe_5grams": 0.41713748, "qsc_code_frac_chars_dupe_6grams": 0.41713748, "qsc_code_frac_chars_dupe_7grams": 0.28719397, "qsc_code_frac_chars_dupe_8grams": 0.22975518, "qsc_code_frac_chars_dupe_9grams": 0.04519774, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.07336182, "qsc_code_frac_chars_whitespace": 0.06896552, "qsc_code_size_file_byte": 1508.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 68.54545455, "qsc_code_frac_chars_alphabet": 0.68233618, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.47679045, "qsc_code_frac_chars_long_word_length": 0.05702918, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/РаботаСФайлами/Forms/РежимСозданияФайлаДляСохранитьКак.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Form uuid="4c56cbff-653e-4f16-b702-c77190d7eb7f">
<Properties>
<Name>РежимСозданияФайлаДляСохранитьКак</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Режим создания файла для сохранить как</v8:content>
</v8:item>
</Synonym>
<Comment/>
<FormType>Managed</FormType>
<IncludeHelpInContents>false</IncludeHelpInContents>
<UsePurposes>
<v8:Value xsi:type="app:ApplicationUsePurpose">PlatformApplication</v8:Value>
<v8:Value xsi:type="app:ApplicationUsePurpose">MobilePlatformApplication</v8:Value>
</UsePurposes>
<ExtendedPresentation/>
</Properties>
</Form>
</MetaDataObject> | 1,554 | РежимСозданияФайлаДляСохранитьКак | xml | ru | xml | data | {"qsc_code_num_words": 252, "qsc_code_num_chars": 1554.0, "qsc_code_mean_word_length": 4.38095238, "qsc_code_frac_words_unique": 0.3452381, "qsc_code_frac_chars_top_2grams": 0.08152174, "qsc_code_frac_chars_top_3grams": 0.10869565, "qsc_code_frac_chars_top_4grams": 0.13586957, "qsc_code_frac_chars_dupe_5grams": 0.40126812, "qsc_code_frac_chars_dupe_6grams": 0.40126812, "qsc_code_frac_chars_dupe_7grams": 0.27626812, "qsc_code_frac_chars_dupe_8grams": 0.22101449, "qsc_code_frac_chars_dupe_9grams": 0.04347826, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.07399723, "qsc_code_frac_chars_whitespace": 0.06949807, "qsc_code_size_file_byte": 1554.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 70.63636364, "qsc_code_frac_chars_alphabet": 0.68879668, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.46267696, "qsc_code_frac_chars_long_word_length": 0.05534106, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/РаботаСФайлами/Forms/СохранениеПапки.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Form uuid="5902d979-1235-4d5a-ace7-93261bdeb725">
<Properties>
<Name>СохранениеПапки</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Сохранение папки</v8:content>
</v8:item>
</Synonym>
<Comment/>
<FormType>Managed</FormType>
<IncludeHelpInContents>false</IncludeHelpInContents>
<UsePurposes>
<v8:Value xsi:type="app:ApplicationUsePurpose">PlatformApplication</v8:Value>
<v8:Value xsi:type="app:ApplicationUsePurpose">MobilePlatformApplication</v8:Value>
</UsePurposes>
<ExtendedPresentation/>
</Properties>
</Form>
</MetaDataObject> | 1,514 | СохранениеПапки | xml | ru | xml | data | {"qsc_code_num_words": 248, "qsc_code_num_chars": 1514.0, "qsc_code_mean_word_length": 4.30645161, "qsc_code_frac_words_unique": 0.33467742, "qsc_code_frac_chars_top_2grams": 0.08426966, "qsc_code_frac_chars_top_3grams": 0.11235955, "qsc_code_frac_chars_top_4grams": 0.14044944, "qsc_code_frac_chars_dupe_5grams": 0.41479401, "qsc_code_frac_chars_dupe_6grams": 0.41479401, "qsc_code_frac_chars_dupe_7grams": 0.28558052, "qsc_code_frac_chars_dupe_8grams": 0.22846442, "qsc_code_frac_chars_dupe_9grams": 0.04494382, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.07801418, "qsc_code_frac_chars_whitespace": 0.06869221, "qsc_code_size_file_byte": 1514.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 68.81818182, "qsc_code_frac_chars_alphabet": 0.6787234, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.47490092, "qsc_code_frac_chars_long_word_length": 0.05680317, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/РаботаСФайлами/Forms/ФормаОтчета.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Form uuid="5a090286-7969-44c9-815b-fc58aeb5d8d3">
<Properties>
<Name>ФормаОтчета</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Форма отчета</v8:content>
</v8:item>
</Synonym>
<Comment/>
<FormType>Managed</FormType>
<IncludeHelpInContents>false</IncludeHelpInContents>
<UsePurposes>
<v8:Value xsi:type="app:ApplicationUsePurpose">PlatformApplication</v8:Value>
<v8:Value xsi:type="app:ApplicationUsePurpose">MobilePlatformApplication</v8:Value>
</UsePurposes>
<ExtendedPresentation/>
</Properties>
</Form>
</MetaDataObject> | 1,506 | ФормаОтчета | xml | ru | xml | data | {"qsc_code_num_words": 248, "qsc_code_num_chars": 1506.0, "qsc_code_mean_word_length": 4.27419355, "qsc_code_frac_words_unique": 0.33467742, "qsc_code_frac_chars_top_2grams": 0.08490566, "qsc_code_frac_chars_top_3grams": 0.11320755, "qsc_code_frac_chars_top_4grams": 0.14150943, "qsc_code_frac_chars_dupe_5grams": 0.41792453, "qsc_code_frac_chars_dupe_6grams": 0.41792453, "qsc_code_frac_chars_dupe_7grams": 0.28773585, "qsc_code_frac_chars_dupe_8grams": 0.23018868, "qsc_code_frac_chars_dupe_9grams": 0.04528302, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.07845934, "qsc_code_frac_chars_whitespace": 0.0690571, "qsc_code_size_file_byte": 1506.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 68.45454545, "qsc_code_frac_chars_alphabet": 0.67689016, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.47742364, "qsc_code_frac_chars_long_word_length": 0.05710491, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/РаботаСФайлами/Forms/ПрисоединенныеФайлы.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Form uuid="587d48a3-5627-4481-b13e-c22740b57d8a">
<Properties>
<Name>ПрисоединенныеФайлы</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Присоединенные файлы</v8:content>
</v8:item>
</Synonym>
<Comment/>
<FormType>Managed</FormType>
<IncludeHelpInContents>false</IncludeHelpInContents>
<UsePurposes>
<v8:Value xsi:type="app:ApplicationUsePurpose">PlatformApplication</v8:Value>
<v8:Value xsi:type="app:ApplicationUsePurpose">MobilePlatformApplication</v8:Value>
</UsePurposes>
<ExtendedPresentation/>
</Properties>
</Form>
</MetaDataObject> | 1,522 | ПрисоединенныеФайлы | xml | ru | xml | data | {"qsc_code_num_words": 248, "qsc_code_num_chars": 1522.0, "qsc_code_mean_word_length": 4.33870968, "qsc_code_frac_words_unique": 0.33467742, "qsc_code_frac_chars_top_2grams": 0.08364312, "qsc_code_frac_chars_top_3grams": 0.11152416, "qsc_code_frac_chars_top_4grams": 0.1394052, "qsc_code_frac_chars_dupe_5grams": 0.41171004, "qsc_code_frac_chars_dupe_6grams": 0.41171004, "qsc_code_frac_chars_dupe_7grams": 0.28345725, "qsc_code_frac_chars_dupe_8grams": 0.2267658, "qsc_code_frac_chars_dupe_9grams": 0.04460967, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.07898449, "qsc_code_frac_chars_whitespace": 0.06833114, "qsc_code_size_file_byte": 1522.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 69.18181818, "qsc_code_frac_chars_alphabet": 0.67912553, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.47240473, "qsc_code_frac_chars_long_word_length": 0.0565046, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/РаботаСФайлами/Forms/ВыборСохраненияШифрованногоФайла.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Form uuid="99a7142c-b3c7-4221-abf8-6831a3cbc16e">
<Properties>
<Name>ВыборСохраненияШифрованногоФайла</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Выбор сохранения шифрованного файла</v8:content>
</v8:item>
</Synonym>
<Comment/>
<FormType>Managed</FormType>
<IncludeHelpInContents>false</IncludeHelpInContents>
<UsePurposes>
<v8:Value xsi:type="app:ApplicationUsePurpose">PlatformApplication</v8:Value>
<v8:Value xsi:type="app:ApplicationUsePurpose">MobilePlatformApplication</v8:Value>
</UsePurposes>
<ExtendedPresentation/>
</Properties>
</Form>
</MetaDataObject> | 1,550 | ВыборСохраненияШифрованногоФайла | xml | ru | xml | data | {"qsc_code_num_words": 250, "qsc_code_num_chars": 1550.0, "qsc_code_mean_word_length": 4.408, "qsc_code_frac_words_unique": 0.34, "qsc_code_frac_chars_top_2grams": 0.08166969, "qsc_code_frac_chars_top_3grams": 0.10889292, "qsc_code_frac_chars_top_4grams": 0.13611615, "qsc_code_frac_chars_dupe_5grams": 0.40199637, "qsc_code_frac_chars_dupe_6grams": 0.40199637, "qsc_code_frac_chars_dupe_7grams": 0.27676951, "qsc_code_frac_chars_dupe_8grams": 0.22141561, "qsc_code_frac_chars_dupe_9grams": 0.04355717, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.07479224, "qsc_code_frac_chars_whitespace": 0.0683871, "qsc_code_size_file_byte": 1550.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 70.45454545, "qsc_code_frac_chars_alphabet": 0.68767313, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.46387097, "qsc_code_frac_chars_long_word_length": 0.05548387, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/РаботаСФайлами/Forms/ПрисоединенныйФайл.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Form uuid="2e09abe1-0934-42ae-970f-5e001c35c31a">
<Properties>
<Name>ПрисоединенныйФайл</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Присоединенный файл</v8:content>
</v8:item>
</Synonym>
<Comment/>
<FormType>Managed</FormType>
<IncludeHelpInContents>false</IncludeHelpInContents>
<UsePurposes>
<v8:Value xsi:type="app:ApplicationUsePurpose">PlatformApplication</v8:Value>
<v8:Value xsi:type="app:ApplicationUsePurpose">MobilePlatformApplication</v8:Value>
</UsePurposes>
<ExtendedPresentation/>
</Properties>
</Form>
</MetaDataObject> | 1,520 | ПрисоединенныйФайл | xml | ru | xml | data | {"qsc_code_num_words": 248, "qsc_code_num_chars": 1520.0, "qsc_code_mean_word_length": 4.33064516, "qsc_code_frac_words_unique": 0.33467742, "qsc_code_frac_chars_top_2grams": 0.08379888, "qsc_code_frac_chars_top_3grams": 0.11173184, "qsc_code_frac_chars_top_4grams": 0.1396648, "qsc_code_frac_chars_dupe_5grams": 0.41247672, "qsc_code_frac_chars_dupe_6grams": 0.41247672, "qsc_code_frac_chars_dupe_7grams": 0.2839851, "qsc_code_frac_chars_dupe_8grams": 0.22718808, "qsc_code_frac_chars_dupe_9grams": 0.04469274, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.0769774, "qsc_code_frac_chars_whitespace": 0.06842105, "qsc_code_size_file_byte": 1520.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 69.09090909, "qsc_code_frac_chars_alphabet": 0.68079096, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.47302632, "qsc_code_frac_chars_long_word_length": 0.05657895, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/РаботаСФайлами/Forms/РедактируемыеФайлы.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Form uuid="22a213b5-ed72-4181-8ff8-89f860c87aa1">
<Properties>
<Name>РедактируемыеФайлы</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Редактируемые файлы</v8:content>
</v8:item>
</Synonym>
<Comment/>
<FormType>Managed</FormType>
<IncludeHelpInContents>true</IncludeHelpInContents>
<UsePurposes>
<v8:Value xsi:type="app:ApplicationUsePurpose">PlatformApplication</v8:Value>
<v8:Value xsi:type="app:ApplicationUsePurpose">MobilePlatformApplication</v8:Value>
</UsePurposes>
<ExtendedPresentation/>
</Properties>
</Form>
</MetaDataObject> | 1,519 | РедактируемыеФайлы | xml | ru | xml | data | {"qsc_code_num_words": 248, "qsc_code_num_chars": 1519.0, "qsc_code_mean_word_length": 4.3266129, "qsc_code_frac_words_unique": 0.33467742, "qsc_code_frac_chars_top_2grams": 0.08387698, "qsc_code_frac_chars_top_3grams": 0.11183597, "qsc_code_frac_chars_top_4grams": 0.13979497, "qsc_code_frac_chars_dupe_5grams": 0.41286114, "qsc_code_frac_chars_dupe_6grams": 0.41286114, "qsc_code_frac_chars_dupe_7grams": 0.28424977, "qsc_code_frac_chars_dupe_8grams": 0.22739981, "qsc_code_frac_chars_dupe_9grams": 0.04473439, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.07773852, "qsc_code_frac_chars_whitespace": 0.0684661, "qsc_code_size_file_byte": 1519.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 69.04545455, "qsc_code_frac_chars_alphabet": 0.67985866, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.47333772, "qsc_code_frac_chars_long_word_length": 0.05661619, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/РаботаСФайлами/Forms/ВыборГруппы.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Form uuid="8e87cf35-af54-4fa2-9428-460b765b282b">
<Properties>
<Name>ВыборГруппы</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Выбор группы</v8:content>
</v8:item>
</Synonym>
<Comment/>
<FormType>Managed</FormType>
<IncludeHelpInContents>false</IncludeHelpInContents>
<UsePurposes>
<v8:Value xsi:type="app:ApplicationUsePurpose">PlatformApplication</v8:Value>
<v8:Value xsi:type="app:ApplicationUsePurpose">MobilePlatformApplication</v8:Value>
</UsePurposes>
<ExtendedPresentation/>
</Properties>
</Form>
</MetaDataObject> | 1,506 | ВыборГруппы | xml | ru | xml | data | {"qsc_code_num_words": 248, "qsc_code_num_chars": 1506.0, "qsc_code_mean_word_length": 4.27419355, "qsc_code_frac_words_unique": 0.33467742, "qsc_code_frac_chars_top_2grams": 0.08490566, "qsc_code_frac_chars_top_3grams": 0.11320755, "qsc_code_frac_chars_top_4grams": 0.14150943, "qsc_code_frac_chars_dupe_5grams": 0.41792453, "qsc_code_frac_chars_dupe_6grams": 0.41792453, "qsc_code_frac_chars_dupe_7grams": 0.28773585, "qsc_code_frac_chars_dupe_8grams": 0.23018868, "qsc_code_frac_chars_dupe_9grams": 0.04528302, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.07845934, "qsc_code_frac_chars_whitespace": 0.0690571, "qsc_code_size_file_byte": 1506.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 68.45454545, "qsc_code_frac_chars_alphabet": 0.67689016, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.47742364, "qsc_code_frac_chars_long_word_length": 0.05710491, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/РаботаСФайлами/Forms/ГруппаФайлов.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Form uuid="d367a1a1-5a54-4bf9-96c7-d55667e2fb16">
<Properties>
<Name>ГруппаФайлов</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Группа файлов</v8:content>
</v8:item>
</Synonym>
<Comment/>
<FormType>Managed</FormType>
<IncludeHelpInContents>false</IncludeHelpInContents>
<UsePurposes>
<v8:Value xsi:type="app:ApplicationUsePurpose">PlatformApplication</v8:Value>
<v8:Value xsi:type="app:ApplicationUsePurpose">MobilePlatformApplication</v8:Value>
</UsePurposes>
<ExtendedPresentation/>
</Properties>
</Form>
</MetaDataObject> | 1,508 | ГруппаФайлов | xml | ru | xml | data | {"qsc_code_num_words": 248, "qsc_code_num_chars": 1508.0, "qsc_code_mean_word_length": 4.28225806, "qsc_code_frac_words_unique": 0.33467742, "qsc_code_frac_chars_top_2grams": 0.08474576, "qsc_code_frac_chars_top_3grams": 0.11299435, "qsc_code_frac_chars_top_4grams": 0.14124294, "qsc_code_frac_chars_dupe_5grams": 0.41713748, "qsc_code_frac_chars_dupe_6grams": 0.41713748, "qsc_code_frac_chars_dupe_7grams": 0.28719397, "qsc_code_frac_chars_dupe_8grams": 0.22975518, "qsc_code_frac_chars_dupe_9grams": 0.04519774, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.07763533, "qsc_code_frac_chars_whitespace": 0.06896552, "qsc_code_size_file_byte": 1508.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 68.54545455, "qsc_code_frac_chars_alphabet": 0.67806268, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.47679045, "qsc_code_frac_chars_long_word_length": 0.05702918, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/РаботаСФайлами/Forms/ЗагрузкаПапки.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Form uuid="cc584a1d-dc91-4693-a5c9-6e8c6607e9d8">
<Properties>
<Name>ЗагрузкаПапки</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Загрузка папки</v8:content>
</v8:item>
</Synonym>
<Comment/>
<FormType>Managed</FormType>
<IncludeHelpInContents>true</IncludeHelpInContents>
<UsePurposes>
<v8:Value xsi:type="app:ApplicationUsePurpose">PlatformApplication</v8:Value>
<v8:Value xsi:type="app:ApplicationUsePurpose">MobilePlatformApplication</v8:Value>
</UsePurposes>
<ExtendedPresentation/>
</Properties>
</Form>
</MetaDataObject> | 1,509 | ЗагрузкаПапки | xml | ru | xml | data | {"qsc_code_num_words": 248, "qsc_code_num_chars": 1509.0, "qsc_code_mean_word_length": 4.28629032, "qsc_code_frac_words_unique": 0.33467742, "qsc_code_frac_chars_top_2grams": 0.08466604, "qsc_code_frac_chars_top_3grams": 0.11288805, "qsc_code_frac_chars_top_4grams": 0.14111007, "qsc_code_frac_chars_dupe_5grams": 0.41674506, "qsc_code_frac_chars_dupe_6grams": 0.41674506, "qsc_code_frac_chars_dupe_7grams": 0.2869238, "qsc_code_frac_chars_dupe_8grams": 0.22953904, "qsc_code_frac_chars_dupe_9grams": 0.04515522, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.07686833, "qsc_code_frac_chars_whitespace": 0.06891981, "qsc_code_size_file_byte": 1509.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 68.59090909, "qsc_code_frac_chars_alphabet": 0.67900356, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.47647449, "qsc_code_frac_chars_long_word_length": 0.05699139, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/РаботаСФайлами/Forms/ВерсияПрисоединенногоФайла.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Form uuid="8deb4f57-18fc-4db0-ad0f-82d60af3d80b">
<Properties>
<Name>ВерсияПрисоединенногоФайла</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Версия присоединенного файла</v8:content>
</v8:item>
</Synonym>
<Comment/>
<FormType>Managed</FormType>
<IncludeHelpInContents>false</IncludeHelpInContents>
<UsePurposes>
<v8:Value xsi:type="app:ApplicationUsePurpose">PlatformApplication</v8:Value>
<v8:Value xsi:type="app:ApplicationUsePurpose">MobilePlatformApplication</v8:Value>
</UsePurposes>
<ExtendedPresentation/>
</Properties>
</Form>
</MetaDataObject> | 1,537 | ВерсияПрисоединенногоФайла | xml | ru | xml | data | {"qsc_code_num_words": 249, "qsc_code_num_chars": 1537.0, "qsc_code_mean_word_length": 4.37751004, "qsc_code_frac_words_unique": 0.3373494, "qsc_code_frac_chars_top_2grams": 0.08256881, "qsc_code_frac_chars_top_3grams": 0.11009174, "qsc_code_frac_chars_top_4grams": 0.13761468, "qsc_code_frac_chars_dupe_5grams": 0.40642202, "qsc_code_frac_chars_dupe_6grams": 0.40642202, "qsc_code_frac_chars_dupe_7grams": 0.27981651, "qsc_code_frac_chars_dupe_8grams": 0.22385321, "qsc_code_frac_chars_dupe_9grams": 0.0440367, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.0726257, "qsc_code_frac_chars_whitespace": 0.0683149, "qsc_code_size_file_byte": 1537.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 69.86363636, "qsc_code_frac_chars_alphabet": 0.68784916, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.4677944, "qsc_code_frac_chars_long_word_length": 0.05595316, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/РаботаСФайлами/Forms/КакОткрытьФайл.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Form uuid="1d852dc0-90c9-4568-84f9-b1d822573b6b">
<Properties>
<Name>КакОткрытьФайл</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Как открыть файл</v8:content>
</v8:item>
</Synonym>
<Comment/>
<FormType>Managed</FormType>
<IncludeHelpInContents>true</IncludeHelpInContents>
<UsePurposes>
<v8:Value xsi:type="app:ApplicationUsePurpose">PlatformApplication</v8:Value>
<v8:Value xsi:type="app:ApplicationUsePurpose">MobilePlatformApplication</v8:Value>
</UsePurposes>
<ExtendedPresentation/>
</Properties>
</Form>
</MetaDataObject> | 1,512 | КакОткрытьФайл | xml | ru | xml | data | {"qsc_code_num_words": 249, "qsc_code_num_chars": 1512.0, "qsc_code_mean_word_length": 4.27710843, "qsc_code_frac_words_unique": 0.3373494, "qsc_code_frac_chars_top_2grams": 0.08450704, "qsc_code_frac_chars_top_3grams": 0.11267606, "qsc_code_frac_chars_top_4grams": 0.14084507, "qsc_code_frac_chars_dupe_5grams": 0.41596244, "qsc_code_frac_chars_dupe_6grams": 0.41596244, "qsc_code_frac_chars_dupe_7grams": 0.28638498, "qsc_code_frac_chars_dupe_8grams": 0.22910798, "qsc_code_frac_chars_dupe_9grams": 0.04507042, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.07889126, "qsc_code_frac_chars_whitespace": 0.06944444, "qsc_code_size_file_byte": 1512.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 68.72727273, "qsc_code_frac_chars_alphabet": 0.67732765, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.4755291, "qsc_code_frac_chars_long_word_length": 0.05687831, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ТранспортСообщенийОбменаSM/Forms/ФормаПервойНастройки.xml | <?xml version="1.0" encoding="UTF-8"?>
<MetaDataObject xmlns="http://v8.1c.ru/8.3/MDClasses" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:cmi="http://v8.1c.ru/8.2/managed-application/cmi" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xen="http://v8.1c.ru/8.3/xcf/enums" xmlns:xpr="http://v8.1c.ru/8.3/xcf/predef" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Form uuid="2cbb84a7-b9f8-4ae1-8d56-60b6b0d50afc">
<Properties>
<Name>ФормаПервойНастройки</Name>
<Synonym>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Форма первой настройки</v8:content>
</v8:item>
</Synonym>
<Comment/>
<FormType>Managed</FormType>
<IncludeHelpInContents>false</IncludeHelpInContents>
<UsePurposes>
<v8:Value xsi:type="app:ApplicationUsePurpose">PlatformApplication</v8:Value>
<v8:Value xsi:type="app:ApplicationUsePurpose">MobilePlatformApplication</v8:Value>
</UsePurposes>
<ExtendedPresentation/>
</Properties>
</Form>
</MetaDataObject> | 1,525 | ФормаПервойНастройки | xml | ru | xml | data | {"qsc_code_num_words": 249, "qsc_code_num_chars": 1525.0, "qsc_code_mean_word_length": 4.32931727, "qsc_code_frac_words_unique": 0.3373494, "qsc_code_frac_chars_top_2grams": 0.08348794, "qsc_code_frac_chars_top_3grams": 0.11131725, "qsc_code_frac_chars_top_4grams": 0.13914657, "qsc_code_frac_chars_dupe_5grams": 0.4109462, "qsc_code_frac_chars_dupe_6grams": 0.4109462, "qsc_code_frac_chars_dupe_7grams": 0.28293135, "qsc_code_frac_chars_dupe_8grams": 0.22634508, "qsc_code_frac_chars_dupe_9grams": 0.0445269, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.07394366, "qsc_code_frac_chars_whitespace": 0.06885246, "qsc_code_size_file_byte": 1525.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 869.0, "qsc_code_num_chars_line_mean": 69.31818182, "qsc_code_frac_chars_alphabet": 0.68450704, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.47147541, "qsc_code_frac_chars_long_word_length": 0.05639344, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ТранспортСообщенийОбменаSM/Forms/ФормаНастройки/Ext/Form.xml | <?xml version="1.0" encoding="UTF-8"?>
<Form xmlns="http://v8.1c.ru/8.3/xcf/logform" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:dcscor="http://v8.1c.ru/8.1/data-composition-system/core" xmlns:dcssch="http://v8.1c.ru/8.1/data-composition-system/schema" xmlns:dcsset="http://v8.1c.ru/8.1/data-composition-system/settings" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<Width>50</Width>
<WindowOpeningMode>LockOwnerWindow</WindowOpeningMode>
<SaveWindowSettings>false</SaveWindowSettings>
<CommandBarLocation>Bottom</CommandBarLocation>
<AutoCommandBar name="ФормаКоманднаяПанель" id="-1">
<HorizontalAlign>Right</HorizontalAlign>
<Autofill>false</Autofill>
<ChildItems>
<Button name="ФормаГотово" id="20">
<Type>CommandBarButton</Type>
<DefaultButton>true</DefaultButton>
<CommandName>Form.Command.Готово</CommandName>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Готово</v8:content>
</v8:item>
</Title>
<ExtendedTooltip name="ФормаГотовоРасширеннаяПодсказка" id="21"/>
</Button>
</ChildItems>
</AutoCommandBar>
<Events>
<Event name="OnCreateAtServer">ПриСозданииНаСервере</Event>
</Events>
<ChildItems>
<InputField name="ОбластьДанныхКорреспондента" id="24">
<DataPath>Объект.ОбластьДанныхКорреспондента</DataPath>
<ReadOnly>true</ReadOnly>
<ContextMenu name="ОбластьДанныхКорреспондентаКонтекстноеМеню" id="25"/>
<ExtendedTooltip name="ОбластьДанныхКорреспондентаРасширеннаяПодсказка" id="26"/>
</InputField>
<InputField name="НаименованиеКорреспондента" id="27">
<DataPath>Объект.НаименованиеКорреспондента</DataPath>
<ReadOnly>true</ReadOnly>
<ContextMenu name="НаименованиеКорреспондентаКонтекстноеМеню" id="28"/>
<ExtendedTooltip name="НаименованиеКорреспондентаРасширеннаяПодсказка" id="29"/>
</InputField>
<InputField name="КонечнаяТочкаКорреспондентаПредставление" id="36">
<DataPath>КонечнаяТочкаКорреспондентаПредставление</DataPath>
<ReadOnly>true</ReadOnly>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Конечная точка корреспондента</v8:content>
</v8:item>
</Title>
<HorizontalStretch>true</HorizontalStretch>
<ContextMenu name="КонечнаяТочкаКорреспондентаПредставлениеКонтекстноеМеню" id="37"/>
<ExtendedTooltip name="КонечнаяТочкаКорреспондентаПредставлениеРасширеннаяПодсказка" id="38"/>
</InputField>
<CheckBoxField name="ВнутренняяПубликация" id="30">
<DataPath>Объект.ВнутренняяПубликация</DataPath>
<ReadOnly>true</ReadOnly>
<TitleLocation>Right</TitleLocation>
<CheckBoxType>Auto</CheckBoxType>
<ContextMenu name="ВнутренняяПубликацияКонтекстноеМеню" id="31"/>
<ExtendedTooltip name="ВнутренняяПубликацияРасширеннаяПодсказка" id="32"/>
</CheckBoxField>
</ChildItems>
<Attributes>
<Attribute name="Объект" id="1">
<Type>
<v8:Type>cfg:DataProcessorObject.ТранспортСообщенийОбменаSM</v8:Type>
</Type>
<MainAttribute>true</MainAttribute>
</Attribute>
<Attribute name="КонечнаяТочкаКорреспондентаПредставление" id="2">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Конечная точка корреспондента</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>0</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
</Attributes>
<Commands>
<Command name="Готово" id="1">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Готово</v8:content>
</v8:item>
</Title>
<ToolTip>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Готово</v8:content>
</v8:item>
</ToolTip>
<Action>Готово</Action>
</Command>
</Commands>
<Parameters>
<Parameter name="НастройкиТранспорта">
<Type/>
<KeyParameter>true</KeyParameter>
</Parameter>
</Parameters>
</Form> | 4,459 | Form | xml | ru | xml | data | {"qsc_code_num_words": 506, "qsc_code_num_chars": 4459.0, "qsc_code_mean_word_length": 6.31027668, "qsc_code_frac_words_unique": 0.29051383, "qsc_code_frac_chars_top_2grams": 0.02818666, "qsc_code_frac_chars_top_3grams": 0.03758221, "qsc_code_frac_chars_top_4grams": 0.04697776, "qsc_code_frac_chars_dupe_5grams": 0.25900407, "qsc_code_frac_chars_dupe_6grams": 0.25900407, "qsc_code_frac_chars_dupe_7grams": 0.2164109, "qsc_code_frac_chars_dupe_8grams": 0.20200438, "qsc_code_frac_chars_dupe_9grams": 0.15001566, "qsc_code_frac_chars_dupe_10grams": 0.10397745, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.03848089, "qsc_code_frac_chars_whitespace": 0.10832025, "qsc_code_size_file_byte": 4459.0, "qsc_code_num_lines": 109.0, "qsc_code_num_chars_line_max": 918.0, "qsc_code_num_chars_line_mean": 40.90825688, "qsc_code_frac_chars_alphabet": 0.76433602, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.41284404, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.30141287, "qsc_code_frac_chars_long_word_length": 0.11886073, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ТранспортСообщенийОбменаSM/Forms/ФормаНастройки/Ext/Form/Module.bsl | ///////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2024, ООО 1С-Софт
// Все права защищены. Эта программа и сопроводительные материалы предоставляются
// в соответствии с условиями лицензии Attribution 4.0 International (CC BY 4.0)
// Текст лицензии доступен по ссылке:
// https://creativecommons.org/licenses/by/4.0/legalcode
///////////////////////////////////////////////////////////////////////////////////////////////////////
#Область ОбработчикиСобытийФормы
&НаСервере
Процедура ПриСозданииНаСервере(Отказ, СтандартнаяОбработка)
ТранспортСообщенийОбмена.ПриСозданииНаСервере(ЭтотОбъект, Отказ, СтандартнаяОбработка);
УстановитьПривилегированныйРежим(Истина);
КонечнаяТочкаКорреспондентаПредставление = Строка(Объект.КонечнаяТочкаКорреспондента);
КонецПроцедуры
#КонецОбласти
#Область ОбработчикиКомандФормы
&НаКлиенте
Процедура Готово(Команда)
Если ПроверитьЗаполнение() Тогда
РезультатЗакрытия = РезультатЗакрытияНаСервере();
Закрыть(РезультатЗакрытия);
КонецЕсли;
КонецПроцедуры
#КонецОбласти
#Область СлужебныеПроцедурыИФункции
&НаСервере
Функция РезультатЗакрытияНаСервере()
Возврат ТранспортСообщенийОбмена.РезультатЗакрытияФормыТранспорта(ЭтаФорма);
КонецФункции
#КонецОбласти | 1,299 | Module | bsl | ru | 1c enterprise | code | {"qsc_code_num_words": 89, "qsc_code_num_chars": 1299.0, "qsc_code_mean_word_length": 10.15730337, "qsc_code_frac_words_unique": 0.78651685, "qsc_code_frac_chars_top_2grams": 0.00663717, "qsc_code_frac_chars_top_3grams": 0.00884956, "qsc_code_frac_chars_top_4grams": 0.0, "qsc_code_frac_chars_dupe_5grams": 0.0, "qsc_code_frac_chars_dupe_6grams": 0.0, "qsc_code_frac_chars_dupe_7grams": 0.0, "qsc_code_frac_chars_dupe_8grams": 0.0, "qsc_code_frac_chars_dupe_9grams": 0.0, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00929839, "qsc_code_frac_chars_whitespace": 0.08929946, "qsc_code_size_file_byte": 1299.0, "qsc_code_num_lines": 48.0, "qsc_code_num_chars_line_max": 105.0, "qsc_code_num_chars_line_mean": 27.0625, "qsc_code_frac_chars_alphabet": 0.75401522, "qsc_code_frac_chars_comments": 0.91916859, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.0, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 1, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0} |
1c-syntax/ssl_3_1 | src/cf/DataProcessors/ТранспортСообщенийОбменаSM/Forms/ФормаПервойНастройки/Ext/Form.xml | <?xml version="1.0" encoding="UTF-8"?>
<Form xmlns="http://v8.1c.ru/8.3/xcf/logform" xmlns:app="http://v8.1c.ru/8.2/managed-application/core" xmlns:cfg="http://v8.1c.ru/8.1/data/enterprise/current-config" xmlns:dcscor="http://v8.1c.ru/8.1/data-composition-system/core" xmlns:dcssch="http://v8.1c.ru/8.1/data-composition-system/schema" xmlns:dcsset="http://v8.1c.ru/8.1/data-composition-system/settings" xmlns:ent="http://v8.1c.ru/8.1/data/enterprise" xmlns:lf="http://v8.1c.ru/8.2/managed-application/logform" xmlns:style="http://v8.1c.ru/8.1/data/ui/style" xmlns:sys="http://v8.1c.ru/8.1/data/ui/fonts/system" xmlns:v8="http://v8.1c.ru/8.1/data/core" xmlns:v8ui="http://v8.1c.ru/8.1/data/ui" xmlns:web="http://v8.1c.ru/8.1/data/ui/colors/web" xmlns:win="http://v8.1c.ru/8.1/data/ui/colors/windows" xmlns:xr="http://v8.1c.ru/8.3/xcf/readable" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.18">
<SaveWindowSettings>false</SaveWindowSettings>
<CommandBarLocation>Bottom</CommandBarLocation>
<AutoCommandBar name="ФормаКоманднаяПанель" id="-1">
<HorizontalAlign>Right</HorizontalAlign>
<Autofill>false</Autofill>
<ChildItems>
<Button name="ФормаГотово" id="1">
<Type>CommandBarButton</Type>
<CommandName>Form.Command.Готово</CommandName>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Готово</v8:content>
</v8:item>
</Title>
<ExtendedTooltip name="ФормаГотовоРасширеннаяПодсказка" id="2"/>
</Button>
</ChildItems>
</AutoCommandBar>
<Events>
<Event name="OnOpen">ПриОткрытии</Event>
<Event name="OnCreateAtServer">ПриСозданииНаСервере</Event>
</Events>
<ChildItems>
<UsualGroup name="ГруппаМоиПриложения" id="11">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Мои приложения</v8:content>
</v8:item>
</Title>
<Group>Vertical</Group>
<Behavior>Usual</Behavior>
<ControlRepresentation>Picture</ControlRepresentation>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="ГруппаМоиПриложенияРасширеннаяПодсказка" id="12"/>
<ChildItems>
<UsualGroup name="ГруппаКоманднаяПанельСписокПриложений" id="13">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Командная панель список приложений</v8:content>
</v8:item>
</Title>
<Group>AlwaysHorizontal</Group>
<VerticalAlign>Center</VerticalAlign>
<Behavior>Usual</Behavior>
<Representation>None</Representation>
<ShowTitle>false</ShowTitle>
<ExtendedTooltip name="ГруппаКоманднаяПанельСписокПриложенийРасширеннаяПодсказка" id="14"/>
<ChildItems>
<CommandBar name="ГруппаКоманднаяПанельСписокПриложенийСлева" id="15">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Командная панель список приложений слева</v8:content>
</v8:item>
</Title>
<HorizontalStretch>false</HorizontalStretch>
<ExtendedTooltip name="ГруппаКоманднаяПанельСписокПриложенийСлеваРасширеннаяПодсказка" id="16"/>
<ChildItems>
<Button name="ПриложенияВСервисеОбновитьСписокДоступныхПриложений" id="17">
<Type>CommandBarButton</Type>
<CommandName>Form.Command.ОбновитьСписокДоступныхПриложений</CommandName>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Обновить</v8:content>
</v8:item>
</Title>
<ExtendedTooltip name="ПриложенияВСервисеОбновитьСписокДоступныхПриложенийРасширеннаяПодсказка" id="18"/>
</Button>
</ChildItems>
</CommandBar>
<Pages name="ПанельПриложенияВСервисе" id="19">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Панель приложения в сервисе</v8:content>
</v8:item>
</Title>
<PagesRepresentation>None</PagesRepresentation>
<ExtendedTooltip name="ПанельПриложенияВСервисеРасширеннаяПодсказка" id="20"/>
<ChildItems>
<Page name="СтраницаПриложенияВСервисеОжидание" id="21">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Страница приложения в сервисе ожидание</v8:content>
</v8:item>
</Title>
<Group>AlwaysHorizontal</Group>
<ExtendedTooltip name="СтраницаПриложенияВСервисеОжиданиеРасширеннаяПодсказка" id="22"/>
<ChildItems>
<PictureDecoration name="ДекорацияПриложенияОжиданиеКартинка" id="23">
<Title formatted="false">
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Декорация приложения ожидание картинка</v8:content>
</v8:item>
</Title>
<Picture>
<xr:Ref>CommonPicture.ДлительнаяОперация16</xr:Ref>
<xr:LoadTransparent>false</xr:LoadTransparent>
</Picture>
<FileDragMode>AsFile</FileDragMode>
<ContextMenu name="ДекорацияПриложенияОжиданиеКартинкаКонтекстноеМеню" id="24"/>
<ExtendedTooltip name="ДекорацияПриложенияОжиданиеКартинкаРасширеннаяПодсказка" id="25"/>
</PictureDecoration>
<LabelDecoration name="ДекорацияПриложенияОжиданиеНадпись" id="26">
<AutoMaxWidth>false</AutoMaxWidth>
<Title formatted="false">
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Выполняется получение списка доступных приложений...</v8:content>
</v8:item>
</Title>
<ContextMenu name="ДекорацияПриложенияОжиданиеНадписьКонтекстноеМеню" id="27"/>
<ExtendedTooltip name="ДекорацияПриложенияОжиданиеНадписьРасширеннаяПодсказка" id="28"/>
</LabelDecoration>
</ChildItems>
</Page>
<Page name="СтраницаПриложенияВСервисеОшибка" id="29">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Страница приложения в сервисе ошибка</v8:content>
</v8:item>
</Title>
<Group>AlwaysHorizontal</Group>
<ExtendedTooltip name="СтраницаПриложенияВСервисеОшибкаРасширеннаяПодсказка" id="30"/>
<ChildItems>
<PictureDecoration name="ДекорацияПриложенияОшибкаКартинка" id="31">
<Title formatted="false">
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Декорация приложения ошибка картинка</v8:content>
</v8:item>
</Title>
<Picture>
<xr:Ref>CommonPicture.Предупреждение</xr:Ref>
<xr:LoadTransparent>false</xr:LoadTransparent>
</Picture>
<FileDragMode>AsFile</FileDragMode>
<ContextMenu name="ДекорацияПриложенияОшибкаКартинкаКонтекстноеМеню" id="32"/>
<ExtendedTooltip name="ДекорацияПриложенияОшибкаКартинкаРасширеннаяПодсказка" id="33"/>
</PictureDecoration>
<LabelDecoration name="ДекорацияПриложенияОшибкаНадпись" id="34">
<Title formatted="false">
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Не удалось получить список доступных приложений.</v8:content>
</v8:item>
</Title>
<ContextMenu name="ДекорацияПриложенияОшибкаНадписьКонтекстноеМеню" id="35"/>
<ExtendedTooltip name="ДекорацияПриложенияОшибкаНадписьРасширеннаяПодсказка" id="36"/>
</LabelDecoration>
</ChildItems>
</Page>
</ChildItems>
</Pages>
</ChildItems>
</UsualGroup>
<Table name="ПриложенияВСервисе" id="37">
<Representation>List</Representation>
<CommandBarLocation>None</CommandBarLocation>
<ReadOnly>true</ReadOnly>
<SelectionMode>SingleRow</SelectionMode>
<AutoInsertNewRow>true</AutoInsertNewRow>
<EnableStartDrag>true</EnableStartDrag>
<EnableDrag>true</EnableDrag>
<FileDragMode>AsFile</FileDragMode>
<DataPath>ПриложенияВСервисе</DataPath>
<RowPictureDataPath>ПриложенияВСервисе.КартинкаРежимИспользования</RowPictureDataPath>
<RowsPicture>
<xr:Ref>CommonPicture.РежимИспользованияПриложенияВСервисеЛокально</xr:Ref>
<xr:LoadTransparent>false</xr:LoadTransparent>
</RowsPicture>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Приложения в сервисе</v8:content>
</v8:item>
</Title>
<CommandSet>
<ExcludedCommand>Add</ExcludedCommand>
<ExcludedCommand>Change</ExcludedCommand>
<ExcludedCommand>Copy</ExcludedCommand>
<ExcludedCommand>CopyToClipboard</ExcludedCommand>
<ExcludedCommand>Delete</ExcludedCommand>
<ExcludedCommand>EndEdit</ExcludedCommand>
<ExcludedCommand>MoveDown</ExcludedCommand>
<ExcludedCommand>MoveUp</ExcludedCommand>
<ExcludedCommand>ShowRowRearrangement</ExcludedCommand>
</CommandSet>
<RowFilter xsi:nil="true"/>
<ContextMenu name="ПриложенияВСервисеКонтекстноеМеню" id="38"/>
<AutoCommandBar name="ПриложенияВСервисеКоманднаяПанель" id="39"/>
<ExtendedTooltip name="ПриложенияВСервисеРасширеннаяПодсказка" id="40"/>
<SearchStringAddition name="ПриложенияВСервисеСтрокаПоиска" id="41">
<AdditionSource>
<Item>ПриложенияВСервисе</Item>
<Type>SearchStringRepresentation</Type>
</AdditionSource>
<ContextMenu name="ПриложенияВСервисеСтрокаПоискаКонтекстноеМеню" id="42"/>
<ExtendedTooltip name="ПриложенияВСервисеСтрокаПоискаРасширеннаяПодсказка" id="43"/>
</SearchStringAddition>
<ViewStatusAddition name="ПриложенияВСервисеСостояниеПросмотра" id="44">
<AdditionSource>
<Item>ПриложенияВСервисе</Item>
<Type>ViewStatusRepresentation</Type>
</AdditionSource>
<ContextMenu name="ПриложенияВСервисеСостояниеПросмотраКонтекстноеМеню" id="45"/>
<ExtendedTooltip name="ПриложенияВСервисеСостояниеПросмотраРасширеннаяПодсказка" id="46"/>
</ViewStatusAddition>
<SearchControlAddition name="ПриложенияВСервисеУправлениеПоиском" id="47">
<AdditionSource>
<Item>ПриложенияВСервисе</Item>
<Type>SearchControl</Type>
</AdditionSource>
<ContextMenu name="ПриложенияВСервисеУправлениеПоискомКонтекстноеМеню" id="48"/>
<ExtendedTooltip name="ПриложенияВСервисеУправлениеПоискомРасширеннаяПодсказка" id="49"/>
</SearchControlAddition>
<Events>
<Event name="OnActivateRow">ПриложенияВСервисеПриАктивизацииСтроки</Event>
</Events>
<ChildItems>
<InputField name="ПриложенияВСервисеНаименованиеПриложения" id="50">
<DataPath>ПриложенияВСервисе.НаименованиеПриложения</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Наименование</v8:content>
</v8:item>
</Title>
<EditMode>EnterOnInput</EditMode>
<ContextMenu name="ПриложенияВСервисеНаименованиеПриложенияКонтекстноеМеню" id="51"/>
<ExtendedTooltip name="ПриложенияВСервисеНаименованиеПриложенияРасширеннаяПодсказка" id="52"/>
</InputField>
<InputField name="ПриложенияВСервисеПрефикс" id="53">
<DataPath>ПриложенияВСервисе.Префикс</DataPath>
<Visible>false</Visible>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Префикс</v8:content>
</v8:item>
</Title>
<EditMode>EnterOnInput</EditMode>
<ContextMenu name="ПриложенияВСервисеПрефиксКонтекстноеМеню" id="54"/>
<ExtendedTooltip name="ПриложенияВСервисеПрефиксРасширеннаяПодсказка" id="55"/>
</InputField>
<InputField name="ПриложенияВСервисеОбластьДанных" id="56">
<DataPath>ПриложенияВСервисе.ОбластьДанных</DataPath>
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Область данных</v8:content>
</v8:item>
</Title>
<EditMode>EnterOnInput</EditMode>
<ContextMenu name="ПриложенияВСервисеОбластьДанныхКонтекстноеМеню" id="57"/>
<ExtendedTooltip name="ПриложенияВСервисеОбластьДанныхРасширеннаяПодсказка" id="58"/>
</InputField>
</ChildItems>
</Table>
</ChildItems>
</UsualGroup>
<CheckBoxField name="ВнутренняяПубликация" id="59">
<DataPath>Объект.ВнутренняяПубликация</DataPath>
<Visible>false</Visible>
<TitleLocation>Right</TitleLocation>
<CheckBoxType>Auto</CheckBoxType>
<ContextMenu name="ВнутренняяПубликацияКонтекстноеМеню" id="60"/>
<ExtendedTooltip name="ВнутренняяПубликацияРасширеннаяПодсказка" id="61"/>
</CheckBoxField>
</ChildItems>
<Attributes>
<Attribute name="ПриложенияВСервисе" id="2">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Приложения в сервисе</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>v8:ValueTable</v8:Type>
</Type>
<Columns>
<Column name="НаименованиеПриложения" id="1">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Наименование</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>0</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Column>
<Column name="Префикс" id="2">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Префикс</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>2</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Column>
<Column name="РольКорреспондента" id="3">
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>0</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Column>
<Column name="ИмяПланаОбмена" id="4">
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>0</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Column>
<Column name="ФорматОбмена" id="5">
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>0</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Column>
<Column name="ВерсияКорреспондента" id="6">
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>0</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Column>
<Column name="ОбластьДанных" id="7">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Область данных</v8:content>
</v8:item>
</Title>
<Type>
<v8:Type>xs:decimal</v8:Type>
<v8:NumberQualifiers>
<v8:Digits>10</v8:Digits>
<v8:FractionDigits>0</v8:FractionDigits>
<v8:AllowedSign>Nonnegative</v8:AllowedSign>
</v8:NumberQualifiers>
</Type>
</Column>
<Column name="КонечнаяТочкаКорреспондента" id="8">
<Type>
<v8:TypeSet>cfg:DefinedType.КонечнаяТочкаОбменаСообщениями</v8:TypeSet>
</Type>
</Column>
<Column name="КартинкаРежимИспользования" id="9">
<Type>
<v8:Type>xs:decimal</v8:Type>
<v8:NumberQualifiers>
<v8:Digits>10</v8:Digits>
<v8:FractionDigits>0</v8:FractionDigits>
<v8:AllowedSign>Any</v8:AllowedSign>
</v8:NumberQualifiers>
</Type>
</Column>
<Column name="НастройкаСинхронизацииНедоступна" id="10">
<Type>
<v8:Type>xs:boolean</v8:Type>
</Type>
</Column>
<Column name="ИдентификаторНастройки" id="11">
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>0</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Column>
<Column name="ПрефиксКорреспондента" id="12">
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>0</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Column>
<Column name="СообщениеОбОшибке" id="14">
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>0</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Column>
<Column name="ДоступенExchangeAdministrationManage_3_0_1_1" id="15">
<Type>
<v8:Type>xs:boolean</v8:Type>
</Type>
</Column>
<Column name="КонечнаяТочка" id="13">
<Type>
<v8:TypeSet>cfg:DefinedType.КонечнаяТочкаОбменаСообщениями</v8:TypeSet>
</Type>
</Column>
</Columns>
</Attribute>
<Attribute name="ИмяПланаОбмена" id="3">
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>0</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
<Attribute name="ПараметрыОбработчикаОжиданияПолученияСпискаПриложений" id="4">
<Type/>
</Attribute>
<Attribute name="ПараметрыОбработчикаПолученияСпискаПриложений" id="5">
<Type/>
</Attribute>
<Attribute name="ИдентификаторНастройки" id="6">
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>0</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
<Attribute name="ФорматОбмена" id="7">
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>0</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
<Attribute name="ПараметрыОбработчикаПроверкиПодключения" id="8">
<Type/>
</Attribute>
<Attribute name="НаименованиеКорреспондента" id="9">
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>0</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
<Attribute name="Удалить_ПрефиксОбластиКорреспондента" id="10">
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>0</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
<Attribute name="Удалить_КонечнаяТочка" id="11">
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>0</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
<Attribute name="Удалить_КонечнаяТочкаКорреспондента" id="12">
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>0</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
<Attribute name="ОбластьДанныхКорреспондента" id="13">
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>0</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
<Attribute name="ПараметрыОбработчикаОжиданияПроверкиПодключения" id="14">
<Type/>
</Attribute>
<Attribute name="ПроверкаПодключенияВыполнена" id="15">
<Type>
<v8:Type>xs:string</v8:Type>
<v8:StringQualifiers>
<v8:Length>0</v8:Length>
<v8:AllowedLength>Variable</v8:AllowedLength>
</v8:StringQualifiers>
</Type>
</Attribute>
<Attribute name="Объект" id="1">
<Type>
<v8:Type>cfg:DataProcessorObject.ТранспортСообщенийОбменаSM</v8:Type>
</Type>
<MainAttribute>true</MainAttribute>
</Attribute>
</Attributes>
<Commands>
<Command name="Готово" id="1">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Готово</v8:content>
</v8:item>
</Title>
<ToolTip>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Готово</v8:content>
</v8:item>
</ToolTip>
<Action>Готово</Action>
</Command>
<Command name="ОбновитьСписокДоступныхПриложений" id="3">
<Title>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Обновить</v8:content>
</v8:item>
</Title>
<ToolTip>
<v8:item>
<v8:lang>ru</v8:lang>
<v8:content>Обновить список доступных приложений</v8:content>
</v8:item>
</ToolTip>
<Picture>
<xr:Ref>StdPicture.Refresh</xr:Ref>
<xr:LoadTransparent>true</xr:LoadTransparent>
</Picture>
<Action>ОбновитьСписокДоступныхПриложений</Action>
<Representation>TextPicture</Representation>
</Command>
</Commands>
</Form> | 20,557 | Form | xml | ru | xml | data | {"qsc_code_num_words": 1934, "qsc_code_num_chars": 20557.0, "qsc_code_mean_word_length": 6.93950362, "qsc_code_frac_words_unique": 0.17993795, "qsc_code_frac_chars_top_2grams": 0.02145891, "qsc_code_frac_chars_top_3grams": 0.01430594, "qsc_code_frac_chars_top_4grams": 0.02145891, "qsc_code_frac_chars_dupe_5grams": 0.4656881, "qsc_code_frac_chars_dupe_6grams": 0.44706058, "qsc_code_frac_chars_dupe_7grams": 0.43297817, "qsc_code_frac_chars_dupe_8grams": 0.42001341, "qsc_code_frac_chars_dupe_9grams": 0.39304076, "qsc_code_frac_chars_dupe_10grams": 0.37404068, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.03498578, "qsc_code_frac_chars_whitespace": 0.19633215, "qsc_code_size_file_byte": 20557.0, "qsc_code_num_lines": 570.0, "qsc_code_num_chars_line_max": 918.0, "qsc_code_num_chars_line_mean": 36.06491228, "qsc_code_frac_chars_alphabet": 0.77731372, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 1.0, "qsc_code_frac_lines_dupe_lines": 0.69122807, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.19010556, "qsc_code_frac_chars_long_word_length": 0.13416355, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 1, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 1, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.