Spaces:
Running
Running
simonduerr
commited on
Commit
•
3c50437
1
Parent(s):
de2c147
Upload folder using huggingface_hub
Browse files- 1pga.pdb +728 -0
- Dockerfile +12 -0
- README.md +6 -6
- __init__.py +0 -0
- __pycache__/app.cpython-39.pyc +0 -0
- app.py +44 -0
- requirements.txt +1 -0
- sample_file.pdf +0 -0
- src/.gitignore +10 -0
- src/LICENSE +7 -0
- src/README.md +16 -0
- src/backend/gradio_molecule3d/__init__.py +4 -0
- src/backend/gradio_molecule3d/molecule3d.py +205 -0
- src/backend/gradio_molecule3d/molecule3d.pyi +355 -0
- src/backend/gradio_molecule3d/templates/component/__vite-browser-external-2447137e.js +4 -0
- src/backend/gradio_molecule3d/templates/component/index.js +0 -0
- src/backend/gradio_molecule3d/templates/component/style.css +1 -0
- src/backend/gradio_molecule3d/templates/component/wrapper-98f94c21-f7f71f53.js +2449 -0
- src/backend/gradio_molecule3d/templates/example/index.js +99 -0
- src/backend/gradio_molecule3d/templates/example/style.css +1 -0
- src/demo/1pga.pdb +728 -0
- src/demo/__init__.py +0 -0
- src/demo/app.py +44 -0
- src/demo/sample_file.pdf +0 -0
- src/frontend/Example.svelte +30 -0
- src/frontend/Index.svelte +423 -0
- src/frontend/package-lock.json +1774 -0
- src/frontend/package.json +25 -0
- src/frontend/shared/File.svelte +40 -0
- src/frontend/shared/FilePreview.svelte +110 -0
- src/frontend/shared/FileRetrieval.svelte +236 -0
- src/frontend/shared/FileUpload.svelte +99 -0
- src/frontend/shared/MolecularViewer.svelte +2277 -0
- src/frontend/shared/loading_spinner.svelte +44 -0
- src/frontend/shared/utils.ts +41 -0
- src/pyproject.toml +50 -0
1pga.pdb
ADDED
@@ -0,0 +1,728 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
HEADER IMMUNOGLOBULIN BINDING PROTEIN 23-NOV-93 1PGA
|
2 |
+
TITLE TWO CRYSTAL STRUCTURES OF THE B1 IMMUNOGLOBULIN-BINDING DOMAIN OF
|
3 |
+
TITLE 2 STREPTOCOCCAL PROTEIN G AND COMPARISON WITH NMR
|
4 |
+
COMPND MOL_ID: 1;
|
5 |
+
COMPND 2 MOLECULE: PROTEIN G;
|
6 |
+
COMPND 3 CHAIN: A;
|
7 |
+
COMPND 4 ENGINEERED: YES
|
8 |
+
SOURCE MOL_ID: 1;
|
9 |
+
SOURCE 2 ORGANISM_SCIENTIFIC: STREPTOCOCCUS SP. GX7805;
|
10 |
+
SOURCE 3 ORGANISM_TAXID: 1325
|
11 |
+
KEYWDS IMMUNOGLOBULIN BINDING PROTEIN
|
12 |
+
EXPDTA X-RAY DIFFRACTION
|
13 |
+
AUTHOR T.GALLAGHER,P.ALEXANDER,P.BRYAN,G.L.GILLILAND
|
14 |
+
REVDAT 3 29-NOV-17 1PGA 1 HELIX
|
15 |
+
REVDAT 2 24-FEB-09 1PGA 1 VERSN
|
16 |
+
REVDAT 1 30-APR-94 1PGA 0
|
17 |
+
JRNL AUTH T.GALLAGHER,P.ALEXANDER,P.BRYAN,G.L.GILLILAND
|
18 |
+
JRNL TITL TWO CRYSTAL STRUCTURES OF THE B1 IMMUNOGLOBULIN-BINDING
|
19 |
+
JRNL TITL 2 DOMAIN OF STREPTOCOCCAL PROTEIN G AND COMPARISON WITH NMR.
|
20 |
+
JRNL REF BIOCHEMISTRY V. 33 4721 1994
|
21 |
+
JRNL REFN ISSN 0006-2960
|
22 |
+
JRNL PMID 8161530
|
23 |
+
JRNL DOI 10.1021/BI00181A032
|
24 |
+
REMARK 1
|
25 |
+
REMARK 1 REFERENCE 1
|
26 |
+
REMARK 1 AUTH A.ACHARI,S.P.HALE,A.J.HOWARD,G.M.CLORE,A.M.GRONENBORN,
|
27 |
+
REMARK 1 AUTH 2 K.D.HARDMAN,M.WHITLOW
|
28 |
+
REMARK 1 TITL 1.67 ANGSTROMS X-RAY STRUCTURE OF THE B2
|
29 |
+
REMARK 1 TITL 2 IMMUNOGLOBULIN-BINDING DOMAIN OF STREPTOCCOCAL PROTEIN G AND
|
30 |
+
REMARK 1 TITL 3 COMPARISON TO THE NMR STRUCTURE OF THE B1 DOMAIN
|
31 |
+
REMARK 1 REF BIOCHEMISTRY V. 31 10449 1992
|
32 |
+
REMARK 1 REFN ISSN 0006-2960
|
33 |
+
REMARK 1 REFERENCE 2
|
34 |
+
REMARK 1 AUTH A.M.GRONENBORN,D.R.FILPULA,N.Z.ESSIG,A.ACHARI,M.WHITLOW,
|
35 |
+
REMARK 1 AUTH 2 P.T.WINGFIELD,G.M.CLORE
|
36 |
+
REMARK 1 TITL A NOVEL, HIGHLY STABLE FOLD OF THE IMMUNOGLOBULIN BINDING
|
37 |
+
REMARK 1 TITL 2 DOMAIN OF STREPTOCOCCAL PROTEIN G
|
38 |
+
REMARK 1 REF SCIENCE V. 253 657 1991
|
39 |
+
REMARK 1 REFN ISSN 0036-8075
|
40 |
+
REMARK 2
|
41 |
+
REMARK 2 RESOLUTION. 2.07 ANGSTROMS.
|
42 |
+
REMARK 3
|
43 |
+
REMARK 3 REFINEMENT.
|
44 |
+
REMARK 3 PROGRAM : PROLSQ
|
45 |
+
REMARK 3 AUTHORS : KONNERT,HENDRICKSON
|
46 |
+
REMARK 3
|
47 |
+
REMARK 3 DATA USED IN REFINEMENT.
|
48 |
+
REMARK 3 RESOLUTION RANGE HIGH (ANGSTROMS) : 2.07
|
49 |
+
REMARK 3 RESOLUTION RANGE LOW (ANGSTROMS) : 6.00
|
50 |
+
REMARK 3 DATA CUTOFF (SIGMA(F)) : NULL
|
51 |
+
REMARK 3 COMPLETENESS FOR RANGE (%) : NULL
|
52 |
+
REMARK 3 NUMBER OF REFLECTIONS : 2567
|
53 |
+
REMARK 3
|
54 |
+
REMARK 3 FIT TO DATA USED IN REFINEMENT.
|
55 |
+
REMARK 3 CROSS-VALIDATION METHOD : NULL
|
56 |
+
REMARK 3 FREE R VALUE TEST SET SELECTION : NULL
|
57 |
+
REMARK 3 R VALUE (WORKING + TEST SET) : 0.174
|
58 |
+
REMARK 3 R VALUE (WORKING SET) : NULL
|
59 |
+
REMARK 3 FREE R VALUE : NULL
|
60 |
+
REMARK 3 FREE R VALUE TEST SET SIZE (%) : NULL
|
61 |
+
REMARK 3 FREE R VALUE TEST SET COUNT : NULL
|
62 |
+
REMARK 3
|
63 |
+
REMARK 3 FIT/AGREEMENT OF MODEL WITH ALL DATA.
|
64 |
+
REMARK 3 R VALUE (WORKING + TEST SET, NO CUTOFF) : NULL
|
65 |
+
REMARK 3 R VALUE (WORKING SET, NO CUTOFF) : NULL
|
66 |
+
REMARK 3 FREE R VALUE (NO CUTOFF) : NULL
|
67 |
+
REMARK 3 FREE R VALUE TEST SET SIZE (%, NO CUTOFF) : NULL
|
68 |
+
REMARK 3 FREE R VALUE TEST SET COUNT (NO CUTOFF) : NULL
|
69 |
+
REMARK 3 TOTAL NUMBER OF REFLECTIONS (NO CUTOFF) : NULL
|
70 |
+
REMARK 3
|
71 |
+
REMARK 3 NUMBER OF NON-HYDROGEN ATOMS USED IN REFINEMENT.
|
72 |
+
REMARK 3 PROTEIN ATOMS : 436
|
73 |
+
REMARK 3 NUCLEIC ACID ATOMS : 0
|
74 |
+
REMARK 3 HETEROGEN ATOMS : 0
|
75 |
+
REMARK 3 SOLVENT ATOMS : 20
|
76 |
+
REMARK 3
|
77 |
+
REMARK 3 B VALUES.
|
78 |
+
REMARK 3 FROM WILSON PLOT (A**2) : NULL
|
79 |
+
REMARK 3 MEAN B VALUE (OVERALL, A**2) : NULL
|
80 |
+
REMARK 3 OVERALL ANISOTROPIC B VALUE.
|
81 |
+
REMARK 3 B11 (A**2) : NULL
|
82 |
+
REMARK 3 B22 (A**2) : NULL
|
83 |
+
REMARK 3 B33 (A**2) : NULL
|
84 |
+
REMARK 3 B12 (A**2) : NULL
|
85 |
+
REMARK 3 B13 (A**2) : NULL
|
86 |
+
REMARK 3 B23 (A**2) : NULL
|
87 |
+
REMARK 3
|
88 |
+
REMARK 3 ESTIMATED COORDINATE ERROR.
|
89 |
+
REMARK 3 ESD FROM LUZZATI PLOT (A) : NULL
|
90 |
+
REMARK 3 ESD FROM SIGMAA (A) : NULL
|
91 |
+
REMARK 3 LOW RESOLUTION CUTOFF (A) : NULL
|
92 |
+
REMARK 3
|
93 |
+
REMARK 3 RMS DEVIATIONS FROM IDEAL VALUES.
|
94 |
+
REMARK 3 DISTANCE RESTRAINTS. RMS SIGMA
|
95 |
+
REMARK 3 BOND LENGTH (A) : 0.020 ; NULL
|
96 |
+
REMARK 3 ANGLE DISTANCE (A) : 1.970 ; NULL
|
97 |
+
REMARK 3 INTRAPLANAR 1-4 DISTANCE (A) : NULL ; NULL
|
98 |
+
REMARK 3 H-BOND OR METAL COORDINATION (A) : NULL ; NULL
|
99 |
+
REMARK 3
|
100 |
+
REMARK 3 PLANE RESTRAINT (A) : NULL ; NULL
|
101 |
+
REMARK 3 CHIRAL-CENTER RESTRAINT (A**3) : NULL ; NULL
|
102 |
+
REMARK 3
|
103 |
+
REMARK 3 NON-BONDED CONTACT RESTRAINTS.
|
104 |
+
REMARK 3 SINGLE TORSION (A) : NULL ; NULL
|
105 |
+
REMARK 3 MULTIPLE TORSION (A) : NULL ; NULL
|
106 |
+
REMARK 3 H-BOND (X...Y) (A) : NULL ; NULL
|
107 |
+
REMARK 3 H-BOND (X-H...Y) (A) : NULL ; NULL
|
108 |
+
REMARK 3
|
109 |
+
REMARK 3 CONFORMATIONAL TORSION ANGLE RESTRAINTS.
|
110 |
+
REMARK 3 SPECIFIED (DEGREES) : NULL ; NULL
|
111 |
+
REMARK 3 PLANAR (DEGREES) : NULL ; NULL
|
112 |
+
REMARK 3 STAGGERED (DEGREES) : NULL ; NULL
|
113 |
+
REMARK 3 TRANSVERSE (DEGREES) : NULL ; NULL
|
114 |
+
REMARK 3
|
115 |
+
REMARK 3 ISOTROPIC THERMAL FACTOR RESTRAINTS. RMS SIGMA
|
116 |
+
REMARK 3 MAIN-CHAIN BOND (A**2) : NULL ; NULL
|
117 |
+
REMARK 3 MAIN-CHAIN ANGLE (A**2) : NULL ; NULL
|
118 |
+
REMARK 3 SIDE-CHAIN BOND (A**2) : NULL ; NULL
|
119 |
+
REMARK 3 SIDE-CHAIN ANGLE (A**2) : NULL ; NULL
|
120 |
+
REMARK 3
|
121 |
+
REMARK 3 OTHER REFINEMENT REMARKS: NULL
|
122 |
+
REMARK 4
|
123 |
+
REMARK 4 1PGA COMPLIES WITH FORMAT V. 3.30, 13-JUL-11
|
124 |
+
REMARK 100
|
125 |
+
REMARK 100 THIS ENTRY HAS BEEN PROCESSED BY BNL.
|
126 |
+
REMARK 100 THE DEPOSITION ID IS D_1000175653.
|
127 |
+
REMARK 200
|
128 |
+
REMARK 200 EXPERIMENTAL DETAILS
|
129 |
+
REMARK 200 EXPERIMENT TYPE : X-RAY DIFFRACTION
|
130 |
+
REMARK 200 DATE OF DATA COLLECTION : NULL
|
131 |
+
REMARK 200 TEMPERATURE (KELVIN) : NULL
|
132 |
+
REMARK 200 PH : NULL
|
133 |
+
REMARK 200 NUMBER OF CRYSTALS USED : NULL
|
134 |
+
REMARK 200
|
135 |
+
REMARK 200 SYNCHROTRON (Y/N) : NULL
|
136 |
+
REMARK 200 RADIATION SOURCE : NULL
|
137 |
+
REMARK 200 BEAMLINE : NULL
|
138 |
+
REMARK 200 X-RAY GENERATOR MODEL : NULL
|
139 |
+
REMARK 200 MONOCHROMATIC OR LAUE (M/L) : NULL
|
140 |
+
REMARK 200 WAVELENGTH OR RANGE (A) : NULL
|
141 |
+
REMARK 200 MONOCHROMATOR : NULL
|
142 |
+
REMARK 200 OPTICS : NULL
|
143 |
+
REMARK 200
|
144 |
+
REMARK 200 DETECTOR TYPE : NULL
|
145 |
+
REMARK 200 DETECTOR MANUFACTURER : NULL
|
146 |
+
REMARK 200 INTENSITY-INTEGRATION SOFTWARE : NULL
|
147 |
+
REMARK 200 DATA SCALING SOFTWARE : NULL
|
148 |
+
REMARK 200
|
149 |
+
REMARK 200 NUMBER OF UNIQUE REFLECTIONS : NULL
|
150 |
+
REMARK 200 RESOLUTION RANGE HIGH (A) : NULL
|
151 |
+
REMARK 200 RESOLUTION RANGE LOW (A) : NULL
|
152 |
+
REMARK 200 REJECTION CRITERIA (SIGMA(I)) : NULL
|
153 |
+
REMARK 200
|
154 |
+
REMARK 200 OVERALL.
|
155 |
+
REMARK 200 COMPLETENESS FOR RANGE (%) : NULL
|
156 |
+
REMARK 200 DATA REDUNDANCY : NULL
|
157 |
+
REMARK 200 R MERGE (I) : NULL
|
158 |
+
REMARK 200 R SYM (I) : NULL
|
159 |
+
REMARK 200 <I/SIGMA(I)> FOR THE DATA SET : NULL
|
160 |
+
REMARK 200
|
161 |
+
REMARK 200 IN THE HIGHEST RESOLUTION SHELL.
|
162 |
+
REMARK 200 HIGHEST RESOLUTION SHELL, RANGE HIGH (A) : NULL
|
163 |
+
REMARK 200 HIGHEST RESOLUTION SHELL, RANGE LOW (A) : NULL
|
164 |
+
REMARK 200 COMPLETENESS FOR SHELL (%) : NULL
|
165 |
+
REMARK 200 DATA REDUNDANCY IN SHELL : NULL
|
166 |
+
REMARK 200 R MERGE FOR SHELL (I) : NULL
|
167 |
+
REMARK 200 R SYM FOR SHELL (I) : NULL
|
168 |
+
REMARK 200 <I/SIGMA(I)> FOR SHELL : NULL
|
169 |
+
REMARK 200
|
170 |
+
REMARK 200 DIFFRACTION PROTOCOL: NULL
|
171 |
+
REMARK 200 METHOD USED TO DETERMINE THE STRUCTURE: NULL
|
172 |
+
REMARK 200 SOFTWARE USED: X-PLOR
|
173 |
+
REMARK 200 STARTING MODEL: NULL
|
174 |
+
REMARK 200
|
175 |
+
REMARK 200 REMARK: NULL
|
176 |
+
REMARK 280
|
177 |
+
REMARK 280 CRYSTAL
|
178 |
+
REMARK 280 SOLVENT CONTENT, VS (%): 35.95
|
179 |
+
REMARK 280 MATTHEWS COEFFICIENT, VM (ANGSTROMS**3/DA): 1.92
|
180 |
+
REMARK 280
|
181 |
+
REMARK 280 CRYSTALLIZATION CONDITIONS: NULL
|
182 |
+
REMARK 290
|
183 |
+
REMARK 290 CRYSTALLOGRAPHIC SYMMETRY
|
184 |
+
REMARK 290 SYMMETRY OPERATORS FOR SPACE GROUP: P 21 21 21
|
185 |
+
REMARK 290
|
186 |
+
REMARK 290 SYMOP SYMMETRY
|
187 |
+
REMARK 290 NNNMMM OPERATOR
|
188 |
+
REMARK 290 1555 X,Y,Z
|
189 |
+
REMARK 290 2555 -X+1/2,-Y,Z+1/2
|
190 |
+
REMARK 290 3555 -X,Y+1/2,-Z+1/2
|
191 |
+
REMARK 290 4555 X+1/2,-Y+1/2,-Z
|
192 |
+
REMARK 290
|
193 |
+
REMARK 290 WHERE NNN -> OPERATOR NUMBER
|
194 |
+
REMARK 290 MMM -> TRANSLATION VECTOR
|
195 |
+
REMARK 290
|
196 |
+
REMARK 290 CRYSTALLOGRAPHIC SYMMETRY TRANSFORMATIONS
|
197 |
+
REMARK 290 THE FOLLOWING TRANSFORMATIONS OPERATE ON THE ATOM/HETATM
|
198 |
+
REMARK 290 RECORDS IN THIS ENTRY TO PRODUCE CRYSTALLOGRAPHICALLY
|
199 |
+
REMARK 290 RELATED MOLECULES.
|
200 |
+
REMARK 290 SMTRY1 1 1.000000 0.000000 0.000000 0.00000
|
201 |
+
REMARK 290 SMTRY2 1 0.000000 1.000000 0.000000 0.00000
|
202 |
+
REMARK 290 SMTRY3 1 0.000000 0.000000 1.000000 0.00000
|
203 |
+
REMARK 290 SMTRY1 2 -1.000000 0.000000 0.000000 18.51950
|
204 |
+
REMARK 290 SMTRY2 2 0.000000 -1.000000 0.000000 0.00000
|
205 |
+
REMARK 290 SMTRY3 2 0.000000 0.000000 1.000000 25.63850
|
206 |
+
REMARK 290 SMTRY1 3 -1.000000 0.000000 0.000000 0.00000
|
207 |
+
REMARK 290 SMTRY2 3 0.000000 1.000000 0.000000 12.54200
|
208 |
+
REMARK 290 SMTRY3 3 0.000000 0.000000 -1.000000 25.63850
|
209 |
+
REMARK 290 SMTRY1 4 1.000000 0.000000 0.000000 18.51950
|
210 |
+
REMARK 290 SMTRY2 4 0.000000 -1.000000 0.000000 12.54200
|
211 |
+
REMARK 290 SMTRY3 4 0.000000 0.000000 -1.000000 0.00000
|
212 |
+
REMARK 290
|
213 |
+
REMARK 290 REMARK: NULL
|
214 |
+
REMARK 300
|
215 |
+
REMARK 300 BIOMOLECULE: 1
|
216 |
+
REMARK 300 SEE REMARK 350 FOR THE AUTHOR PROVIDED AND/OR PROGRAM
|
217 |
+
REMARK 300 GENERATED ASSEMBLY INFORMATION FOR THE STRUCTURE IN
|
218 |
+
REMARK 300 THIS ENTRY. THE REMARK MAY ALSO PROVIDE INFORMATION ON
|
219 |
+
REMARK 300 BURIED SURFACE AREA.
|
220 |
+
REMARK 350
|
221 |
+
REMARK 350 COORDINATES FOR A COMPLETE MULTIMER REPRESENTING THE KNOWN
|
222 |
+
REMARK 350 BIOLOGICALLY SIGNIFICANT OLIGOMERIZATION STATE OF THE
|
223 |
+
REMARK 350 MOLECULE CAN BE GENERATED BY APPLYING BIOMT TRANSFORMATIONS
|
224 |
+
REMARK 350 GIVEN BELOW. BOTH NON-CRYSTALLOGRAPHIC AND
|
225 |
+
REMARK 350 CRYSTALLOGRAPHIC OPERATIONS ARE GIVEN.
|
226 |
+
REMARK 350
|
227 |
+
REMARK 350 BIOMOLECULE: 1
|
228 |
+
REMARK 350 AUTHOR DETERMINED BIOLOGICAL UNIT: MONOMERIC
|
229 |
+
REMARK 350 APPLY THE FOLLOWING TO CHAINS: A
|
230 |
+
REMARK 350 BIOMT1 1 1.000000 0.000000 0.000000 0.00000
|
231 |
+
REMARK 350 BIOMT2 1 0.000000 1.000000 0.000000 0.00000
|
232 |
+
REMARK 350 BIOMT3 1 0.000000 0.000000 1.000000 0.00000
|
233 |
+
REMARK 500
|
234 |
+
REMARK 500 GEOMETRY AND STEREOCHEMISTRY
|
235 |
+
REMARK 500 SUBTOPIC: TORSION ANGLES
|
236 |
+
REMARK 500
|
237 |
+
REMARK 500 TORSION ANGLES OUTSIDE THE EXPECTED RAMACHANDRAN REGIONS:
|
238 |
+
REMARK 500 (M=MODEL NUMBER; RES=RESIDUE NAME; C=CHAIN IDENTIFIER;
|
239 |
+
REMARK 500 SSEQ=SEQUENCE NUMBER; I=INSERTION CODE).
|
240 |
+
REMARK 500
|
241 |
+
REMARK 500 STANDARD TABLE:
|
242 |
+
REMARK 500 FORMAT:(10X,I3,1X,A3,1X,A1,I4,A1,4X,F7.2,3X,F7.2)
|
243 |
+
REMARK 500
|
244 |
+
REMARK 500 EXPECTED VALUES: GJ KLEYWEGT AND TA JONES (1996). PHI/PSI-
|
245 |
+
REMARK 500 CHOLOGY: RAMACHANDRAN REVISITED. STRUCTURE 4, 1395 - 1400
|
246 |
+
REMARK 500
|
247 |
+
REMARK 500 M RES CSSEQI PSI PHI
|
248 |
+
REMARK 500 ASN A 8 69.54 -117.60
|
249 |
+
REMARK 500
|
250 |
+
REMARK 500 REMARK: NULL
|
251 |
+
DBREF 1PGA A 2 56 UNP P06654 SPG1_STRSG 228 282
|
252 |
+
SEQRES 1 A 56 MET THR TYR LYS LEU ILE LEU ASN GLY LYS THR LEU LYS
|
253 |
+
SEQRES 2 A 56 GLY GLU THR THR THR GLU ALA VAL ASP ALA ALA THR ALA
|
254 |
+
SEQRES 3 A 56 GLU LYS VAL PHE LYS GLN TYR ALA ASN ASP ASN GLY VAL
|
255 |
+
SEQRES 4 A 56 ASP GLY GLU TRP THR TYR ASP ASP ALA THR LYS THR PHE
|
256 |
+
SEQRES 5 A 56 THR VAL THR GLU
|
257 |
+
FORMUL 2 HOH *20(H2 O)
|
258 |
+
HELIX 1 1 ALA A 23 ASP A 36 1 14
|
259 |
+
SHEET 1 S1 4 LEU A 12 ALA A 20 0
|
260 |
+
SHEET 2 S1 4 MET A 1 GLY A 9 -1
|
261 |
+
SHEET 3 S1 4 LYS A 50 GLU A 56 1
|
262 |
+
SHEET 4 S1 4 GLU A 42 ASP A 46 -1
|
263 |
+
CRYST1 37.039 25.084 51.277 90.00 90.00 90.00 P 21 21 21 4
|
264 |
+
ORIGX1 1.000000 0.000000 0.000000 0.00000
|
265 |
+
ORIGX2 0.000000 1.000000 0.000000 0.00000
|
266 |
+
ORIGX3 0.000000 0.000000 1.000000 0.00000
|
267 |
+
SCALE1 0.026999 0.000000 0.000000 0.00000
|
268 |
+
SCALE2 0.000000 0.039866 0.000000 0.00000
|
269 |
+
SCALE3 0.000000 0.000000 0.019502 0.00000
|
270 |
+
ATOM 1 N MET A 1 26.778 34.213 35.880 1.00 14.61 N
|
271 |
+
ATOM 2 CA MET A 1 26.659 32.769 36.242 1.00 16.66 C
|
272 |
+
ATOM 3 C MET A 1 27.468 31.927 35.268 1.00 16.16 C
|
273 |
+
ATOM 4 O MET A 1 27.699 32.342 34.110 1.00 15.79 O
|
274 |
+
ATOM 5 CB MET A 1 25.202 32.296 36.219 1.00 15.87 C
|
275 |
+
ATOM 6 CG MET A 1 24.345 32.901 37.319 1.00 18.67 C
|
276 |
+
ATOM 7 SD MET A 1 22.647 32.419 37.205 1.00 18.22 S
|
277 |
+
ATOM 8 CE MET A 1 22.101 32.510 39.040 1.00 18.66 C
|
278 |
+
ATOM 9 N THR A 2 27.942 30.785 35.765 1.00 12.62 N
|
279 |
+
ATOM 10 CA THR A 2 28.716 29.848 34.951 1.00 13.11 C
|
280 |
+
ATOM 11 C THR A 2 27.810 28.681 34.500 1.00 12.17 C
|
281 |
+
ATOM 12 O THR A 2 27.190 28.014 35.349 1.00 11.81 O
|
282 |
+
ATOM 13 CB THR A 2 29.874 29.309 35.740 1.00 11.99 C
|
283 |
+
ATOM 14 OG1 THR A 2 30.690 30.402 36.160 1.00 14.02 O
|
284 |
+
ATOM 15 CG2 THR A 2 30.703 28.380 34.901 1.00 12.76 C
|
285 |
+
ATOM 16 N TYR A 3 27.727 28.474 33.178 1.00 10.50 N
|
286 |
+
ATOM 17 CA TYR A 3 26.925 27.439 32.581 1.00 8.87 C
|
287 |
+
ATOM 18 C TYR A 3 27.786 26.384 31.926 1.00 10.84 C
|
288 |
+
ATOM 19 O TYR A 3 28.925 26.623 31.562 1.00 9.00 O
|
289 |
+
ATOM 20 CB TYR A 3 25.980 28.003 31.552 1.00 9.75 C
|
290 |
+
ATOM 21 CG TYR A 3 25.043 29.056 32.084 1.00 9.86 C
|
291 |
+
ATOM 22 CD1 TYR A 3 25.494 30.368 32.275 1.00 9.28 C
|
292 |
+
ATOM 23 CD2 TYR A 3 23.704 28.754 32.362 1.00 8.58 C
|
293 |
+
ATOM 24 CE1 TYR A 3 24.649 31.353 32.728 1.00 10.76 C
|
294 |
+
ATOM 25 CE2 TYR A 3 22.841 29.745 32.816 1.00 12.25 C
|
295 |
+
ATOM 26 CZ TYR A 3 23.334 31.057 32.992 1.00 9.45 C
|
296 |
+
ATOM 27 OH TYR A 3 22.507 32.070 33.389 1.00 10.01 O
|
297 |
+
ATOM 28 N LYS A 4 27.209 25.188 31.822 1.00 9.35 N
|
298 |
+
ATOM 29 CA LYS A 4 27.880 24.053 31.245 1.00 12.62 C
|
299 |
+
ATOM 30 C LYS A 4 27.146 23.549 30.005 1.00 10.41 C
|
300 |
+
ATOM 31 O LYS A 4 25.927 23.642 29.883 1.00 8.07 O
|
301 |
+
ATOM 32 CB LYS A 4 27.980 22.919 32.276 1.00 16.64 C
|
302 |
+
ATOM 33 CG LYS A 4 28.614 21.682 31.687 1.00 23.52 C
|
303 |
+
ATOM 34 CD LYS A 4 29.133 20.761 32.750 1.00 26.11 C
|
304 |
+
ATOM 35 CE LYS A 4 28.104 19.671 33.082 1.00 32.58 C
|
305 |
+
ATOM 36 NZ LYS A 4 28.622 18.689 34.151 1.00 33.40 N
|
306 |
+
ATOM 37 N LEU A 5 27.906 23.017 29.076 1.00 8.27 N
|
307 |
+
ATOM 38 CA LEU A 5 27.287 22.492 27.893 1.00 5.95 C
|
308 |
+
ATOM 39 C LEU A 5 27.787 21.089 27.755 1.00 6.29 C
|
309 |
+
ATOM 40 O LEU A 5 28.980 20.881 27.827 1.00 5.25 O
|
310 |
+
ATOM 41 CB LEU A 5 27.718 23.274 26.662 1.00 5.32 C
|
311 |
+
ATOM 42 CG LEU A 5 27.273 22.663 25.316 1.00 3.50 C
|
312 |
+
ATOM 43 CD1 LEU A 5 25.786 22.592 25.165 1.00 2.85 C
|
313 |
+
ATOM 44 CD2 LEU A 5 27.883 23.370 24.177 1.00 2.99 C
|
314 |
+
ATOM 45 N ILE A 6 26.872 20.127 27.677 1.00 4.84 N
|
315 |
+
ATOM 46 CA ILE A 6 27.234 18.718 27.430 1.00 6.82 C
|
316 |
+
ATOM 47 C ILE A 6 26.857 18.445 25.938 1.00 6.98 C
|
317 |
+
ATOM 48 O ILE A 6 25.684 18.610 25.488 1.00 5.70 O
|
318 |
+
ATOM 49 CB ILE A 6 26.539 17.774 28.431 1.00 7.70 C
|
319 |
+
ATOM 50 CG1 ILE A 6 26.929 18.189 29.827 1.00 8.62 C
|
320 |
+
ATOM 51 CG2 ILE A 6 26.965 16.283 28.223 1.00 8.79 C
|
321 |
+
ATOM 52 CD1 ILE A 6 26.270 17.302 30.804 1.00 10.87 C
|
322 |
+
ATOM 53 N LEU A 7 27.883 18.141 25.160 1.00 6.28 N
|
323 |
+
ATOM 54 CA LEU A 7 27.753 17.891 23.727 1.00 6.59 C
|
324 |
+
ATOM 55 C LEU A 7 27.760 16.412 23.441 1.00 6.58 C
|
325 |
+
ATOM 56 O LEU A 7 28.779 15.768 23.693 1.00 6.52 O
|
326 |
+
ATOM 57 CB LEU A 7 28.948 18.512 22.941 1.00 6.20 C
|
327 |
+
ATOM 58 CG LEU A 7 29.329 19.998 23.037 1.00 7.38 C
|
328 |
+
ATOM 59 CD1 LEU A 7 30.665 20.164 23.746 1.00 5.51 C
|
329 |
+
ATOM 60 CD2 LEU A 7 29.401 20.599 21.670 1.00 5.66 C
|
330 |
+
ATOM 61 N ASN A 8 26.656 15.886 22.895 1.00 7.07 N
|
331 |
+
ATOM 62 CA ASN A 8 26.607 14.472 22.512 1.00 8.36 C
|
332 |
+
ATOM 63 C ASN A 8 26.394 14.448 21.001 1.00 6.87 C
|
333 |
+
ATOM 64 O ASN A 8 25.320 14.170 20.496 1.00 4.58 O
|
334 |
+
ATOM 65 CB ASN A 8 25.509 13.703 23.253 1.00 11.84 C
|
335 |
+
ATOM 66 CG ASN A 8 25.427 12.198 22.812 1.00 17.44 C
|
336 |
+
ATOM 67 OD1 ASN A 8 26.442 11.493 22.723 1.00 17.86 O
|
337 |
+
ATOM 68 ND2 ASN A 8 24.216 11.740 22.470 1.00 19.85 N
|
338 |
+
ATOM 69 N GLY A 9 27.390 14.850 20.248 1.00 6.96 N
|
339 |
+
ATOM 70 CA GLY A 9 27.190 14.807 18.805 1.00 6.92 C
|
340 |
+
ATOM 71 C GLY A 9 27.687 13.461 18.292 1.00 8.02 C
|
341 |
+
ATOM 72 O GLY A 9 28.202 12.631 19.096 1.00 7.55 O
|
342 |
+
ATOM 73 N LYS A 10 27.644 13.275 16.967 1.00 7.38 N
|
343 |
+
ATOM 74 CA LYS A 10 28.097 12.053 16.383 1.00 7.81 C
|
344 |
+
ATOM 75 C LYS A 10 29.608 12.016 16.332 1.00 8.00 C
|
345 |
+
ATOM 76 O LYS A 10 30.227 10.985 16.633 1.00 5.03 O
|
346 |
+
ATOM 77 CB LYS A 10 27.505 11.913 15.016 1.00 11.98 C
|
347 |
+
ATOM 78 CG LYS A 10 26.053 11.530 15.078 1.00 16.38 C
|
348 |
+
ATOM 79 CD LYS A 10 25.221 12.127 13.918 1.00 24.20 C
|
349 |
+
ATOM 80 CE LYS A 10 25.741 11.707 12.492 1.00 27.12 C
|
350 |
+
ATOM 81 NZ LYS A 10 24.966 12.355 11.327 1.00 27.49 N
|
351 |
+
ATOM 82 N THR A 11 30.199 13.192 16.095 1.00 7.50 N
|
352 |
+
ATOM 83 CA THR A 11 31.651 13.369 15.973 1.00 8.20 C
|
353 |
+
ATOM 84 C THR A 11 32.334 13.991 17.218 1.00 7.89 C
|
354 |
+
ATOM 85 O THR A 11 33.420 13.607 17.586 1.00 7.61 O
|
355 |
+
ATOM 86 CB THR A 11 31.956 14.339 14.801 1.00 9.35 C
|
356 |
+
ATOM 87 OG1 THR A 11 31.318 13.897 13.603 1.00 10.85 O
|
357 |
+
ATOM 88 CG2 THR A 11 33.421 14.517 14.602 1.00 12.32 C
|
358 |
+
ATOM 89 N LEU A 12 31.689 14.980 17.820 1.00 8.58 N
|
359 |
+
ATOM 90 CA LEU A 12 32.240 15.708 18.937 1.00 7.27 C
|
360 |
+
ATOM 91 C LEU A 12 31.473 15.439 20.241 1.00 7.67 C
|
361 |
+
ATOM 92 O LEU A 12 30.249 15.645 20.358 1.00 7.27 O
|
362 |
+
ATOM 93 CB LEU A 12 32.162 17.199 18.564 1.00 8.71 C
|
363 |
+
ATOM 94 CG LEU A 12 33.156 18.300 18.949 1.00 10.48 C
|
364 |
+
ATOM 95 CD1 LEU A 12 32.341 19.601 19.228 1.00 9.21 C
|
365 |
+
ATOM 96 CD2 LEU A 12 34.036 17.907 20.136 1.00 8.42 C
|
366 |
+
ATOM 97 N LYS A 13 32.202 15.087 21.265 1.00 5.43 N
|
367 |
+
ATOM 98 CA LYS A 13 31.559 14.806 22.513 1.00 7.07 C
|
368 |
+
ATOM 99 C LYS A 13 32.382 15.429 23.592 1.00 7.64 C
|
369 |
+
ATOM 100 O LYS A 13 33.586 15.394 23.538 1.00 6.64 O
|
370 |
+
ATOM 101 CB LYS A 13 31.508 13.303 22.723 1.00 8.04 C
|
371 |
+
ATOM 102 CG LYS A 13 30.511 12.591 21.829 1.00 9.13 C
|
372 |
+
ATOM 103 CD LYS A 13 30.582 11.080 22.038 1.00 9.99 C
|
373 |
+
ATOM 104 CE LYS A 13 29.510 10.370 21.214 1.00 9.64 C
|
374 |
+
ATOM 105 NZ LYS A 13 29.903 10.422 19.840 1.00 9.79 N
|
375 |
+
ATOM 106 N GLY A 14 31.742 16.049 24.564 1.00 8.08 N
|
376 |
+
ATOM 107 CA GLY A 14 32.551 16.607 25.608 1.00 10.91 C
|
377 |
+
ATOM 108 C GLY A 14 31.784 17.507 26.519 1.00 13.82 C
|
378 |
+
ATOM 109 O GLY A 14 30.540 17.459 26.526 1.00 12.43 O
|
379 |
+
ATOM 110 N GLU A 15 32.511 18.353 27.246 1.00 12.18 N
|
380 |
+
ATOM 111 CA GLU A 15 31.885 19.251 28.169 1.00 13.37 C
|
381 |
+
ATOM 112 C GLU A 15 32.675 20.541 28.212 1.00 13.44 C
|
382 |
+
ATOM 113 O GLU A 15 33.918 20.512 28.139 1.00 11.68 O
|
383 |
+
ATOM 114 CB GLU A 15 31.955 18.585 29.514 1.00 16.38 C
|
384 |
+
ATOM 115 CG GLU A 15 31.160 19.175 30.617 1.00 20.75 C
|
385 |
+
ATOM 116 CD GLU A 15 30.988 18.128 31.732 1.00 22.61 C
|
386 |
+
ATOM 117 OE1 GLU A 15 30.231 17.132 31.558 1.00 24.56 O
|
387 |
+
ATOM 118 OE2 GLU A 15 31.675 18.255 32.749 1.00 22.88 O
|
388 |
+
ATOM 119 N THR A 16 31.962 21.662 28.166 1.00 10.94 N
|
389 |
+
ATOM 120 CA THR A 16 32.590 22.952 28.314 1.00 12.35 C
|
390 |
+
ATOM 121 C THR A 16 31.657 23.748 29.154 1.00 11.69 C
|
391 |
+
ATOM 122 O THR A 16 30.560 23.313 29.424 1.00 9.43 O
|
392 |
+
ATOM 123 CB THR A 16 32.843 23.745 27.020 1.00 13.36 C
|
393 |
+
ATOM 124 OG1 THR A 16 31.691 23.719 26.139 1.00 16.26 O
|
394 |
+
ATOM 125 CG2 THR A 16 34.010 23.231 26.342 1.00 20.68 C
|
395 |
+
ATOM 126 N THR A 17 32.102 24.933 29.549 1.00 12.87 N
|
396 |
+
ATOM 127 CA THR A 17 31.337 25.872 30.369 1.00 13.13 C
|
397 |
+
ATOM 128 C THR A 17 31.442 27.293 29.794 1.00 15.23 C
|
398 |
+
ATOM 129 O THR A 17 32.280 27.575 28.937 1.00 12.64 O
|
399 |
+
ATOM 130 CB THR A 17 31.906 25.957 31.777 1.00 13.66 C
|
400 |
+
ATOM 131 OG1 THR A 17 33.175 26.606 31.730 1.00 12.04 O
|
401 |
+
ATOM 132 CG2 THR A 17 32.089 24.590 32.337 1.00 12.62 C
|
402 |
+
ATOM 133 N THR A 18 30.560 28.182 30.238 1.00 13.46 N
|
403 |
+
ATOM 134 CA THR A 18 30.648 29.569 29.782 1.00 16.10 C
|
404 |
+
ATOM 135 C THR A 18 30.183 30.439 30.924 1.00 15.95 C
|
405 |
+
ATOM 136 O THR A 18 29.659 29.918 31.883 1.00 16.00 O
|
406 |
+
ATOM 137 CB THR A 18 29.809 29.875 28.486 1.00 15.44 C
|
407 |
+
ATOM 138 OG1 THR A 18 30.308 31.072 27.882 1.00 14.31 O
|
408 |
+
ATOM 139 CG2 THR A 18 28.342 30.070 28.789 1.00 15.16 C
|
409 |
+
ATOM 140 N GLU A 19 30.512 31.719 30.863 1.00 14.78 N
|
410 |
+
ATOM 141 CA GLU A 19 30.112 32.696 31.870 1.00 18.12 C
|
411 |
+
ATOM 142 C GLU A 19 29.090 33.566 31.129 1.00 14.65 C
|
412 |
+
ATOM 143 O GLU A 19 29.308 33.925 29.998 1.00 16.84 O
|
413 |
+
ATOM 144 CB GLU A 19 31.332 33.552 32.303 1.00 22.39 C
|
414 |
+
ATOM 145 CG GLU A 19 31.413 33.990 33.814 1.00 28.69 C
|
415 |
+
ATOM 146 CD GLU A 19 30.348 35.085 34.267 1.00 35.12 C
|
416 |
+
ATOM 147 OE1 GLU A 19 29.864 35.904 33.419 1.00 35.81 O
|
417 |
+
ATOM 148 OE2 GLU A 19 30.010 35.143 35.495 1.00 33.84 O
|
418 |
+
ATOM 149 N ALA A 20 27.930 33.807 31.698 1.00 11.79 N
|
419 |
+
ATOM 150 CA ALA A 20 26.954 34.653 31.011 1.00 11.11 C
|
420 |
+
ATOM 151 C ALA A 20 25.998 35.271 32.023 1.00 11.25 C
|
421 |
+
ATOM 152 O ALA A 20 25.861 34.745 33.095 1.00 10.25 O
|
422 |
+
ATOM 153 CB ALA A 20 26.175 33.859 29.917 1.00 10.30 C
|
423 |
+
ATOM 154 N VAL A 21 25.406 36.414 31.687 1.00 11.64 N
|
424 |
+
ATOM 155 CA VAL A 21 24.428 37.125 32.548 1.00 13.50 C
|
425 |
+
ATOM 156 C VAL A 21 23.176 36.342 32.872 1.00 13.35 C
|
426 |
+
ATOM 157 O VAL A 21 22.648 36.441 33.968 1.00 13.80 O
|
427 |
+
ATOM 158 CB VAL A 21 23.894 38.488 31.924 1.00 15.00 C
|
428 |
+
ATOM 159 CG1 VAL A 21 24.715 39.622 32.402 1.00 13.17 C
|
429 |
+
ATOM 160 CG2 VAL A 21 23.842 38.429 30.361 1.00 13.88 C
|
430 |
+
ATOM 161 N ASP A 22 22.687 35.605 31.888 1.00 12.32 N
|
431 |
+
ATOM 162 CA ASP A 22 21.526 34.808 32.082 1.00 10.39 C
|
432 |
+
ATOM 163 C ASP A 22 21.599 33.656 31.128 1.00 10.50 C
|
433 |
+
ATOM 164 O ASP A 22 22.473 33.619 30.238 1.00 9.88 O
|
434 |
+
ATOM 165 CB ASP A 22 20.243 35.635 31.899 1.00 11.05 C
|
435 |
+
ATOM 166 CG ASP A 22 20.069 36.160 30.520 1.00 12.87 C
|
436 |
+
ATOM 167 OD1 ASP A 22 20.821 35.774 29.607 1.00 16.26 O
|
437 |
+
ATOM 168 OD2 ASP A 22 19.146 36.972 30.319 1.00 16.47 O
|
438 |
+
ATOM 169 N ALA A 23 20.639 32.740 31.269 1.00 8.81 N
|
439 |
+
ATOM 170 CA ALA A 23 20.561 31.551 30.430 1.00 6.96 C
|
440 |
+
ATOM 171 C ALA A 23 20.321 31.844 28.931 1.00 5.92 C
|
441 |
+
ATOM 172 O ALA A 23 20.824 31.129 28.069 1.00 8.19 O
|
442 |
+
ATOM 173 CB ALA A 23 19.503 30.664 30.975 1.00 6.19 C
|
443 |
+
ATOM 174 N ALA A 24 19.543 32.880 28.616 1.00 4.63 N
|
444 |
+
ATOM 175 CA ALA A 24 19.237 33.239 27.218 1.00 5.79 C
|
445 |
+
ATOM 176 C ALA A 24 20.490 33.638 26.483 1.00 6.14 C
|
446 |
+
ATOM 177 O ALA A 24 20.643 33.370 25.310 1.00 8.27 O
|
447 |
+
ATOM 178 CB ALA A 24 18.162 34.389 27.146 1.00 5.79 C
|
448 |
+
ATOM 179 N THR A 25 21.411 34.253 27.198 1.00 7.31 N
|
449 |
+
ATOM 180 CA THR A 25 22.642 34.663 26.595 1.00 7.61 C
|
450 |
+
ATOM 181 C THR A 25 23.567 33.440 26.482 1.00 8.29 C
|
451 |
+
ATOM 182 O THR A 25 24.190 33.275 25.431 1.00 7.36 O
|
452 |
+
ATOM 183 CB THR A 25 23.295 35.861 27.358 1.00 9.87 C
|
453 |
+
ATOM 184 OG1 THR A 25 22.376 36.945 27.421 1.00 15.99 O
|
454 |
+
ATOM 185 CG2 THR A 25 24.436 36.418 26.612 1.00 7.83 C
|
455 |
+
ATOM 186 N ALA A 26 23.632 32.570 27.510 1.00 6.72 N
|
456 |
+
ATOM 187 CA ALA A 26 24.499 31.366 27.438 1.00 9.64 C
|
457 |
+
ATOM 188 C ALA A 26 24.004 30.444 26.304 1.00 10.01 C
|
458 |
+
ATOM 189 O ALA A 26 24.795 29.892 25.550 1.00 10.49 O
|
459 |
+
ATOM 190 CB ALA A 26 24.554 30.606 28.803 1.00 6.87 C
|
460 |
+
ATOM 191 N GLU A 27 22.691 30.378 26.130 1.00 11.53 N
|
461 |
+
ATOM 192 CA GLU A 27 22.101 29.590 25.062 1.00 13.51 C
|
462 |
+
ATOM 193 C GLU A 27 22.566 30.053 23.656 1.00 13.78 C
|
463 |
+
ATOM 194 O GLU A 27 22.766 29.254 22.743 1.00 12.47 O
|
464 |
+
ATOM 195 CB GLU A 27 20.587 29.689 25.128 1.00 15.82 C
|
465 |
+
ATOM 196 CG GLU A 27 19.983 28.615 24.307 1.00 21.36 C
|
466 |
+
ATOM 197 CD GLU A 27 18.724 29.052 23.663 1.00 23.07 C
|
467 |
+
ATOM 198 OE1 GLU A 27 17.994 29.851 24.306 1.00 25.94 O
|
468 |
+
ATOM 199 OE2 GLU A 27 18.462 28.615 22.521 1.00 23.21 O
|
469 |
+
ATOM 200 N LYS A 28 22.706 31.360 23.469 1.00 15.31 N
|
470 |
+
ATOM 201 CA LYS A 28 23.180 31.932 22.177 1.00 13.12 C
|
471 |
+
ATOM 202 C LYS A 28 24.673 31.606 21.915 1.00 9.68 C
|
472 |
+
ATOM 203 O LYS A 28 25.086 31.328 20.783 1.00 8.78 O
|
473 |
+
ATOM 204 CB LYS A 28 23.016 33.469 22.176 1.00 14.23 C
|
474 |
+
ATOM 205 CG LYS A 28 21.731 34.012 21.531 1.00 17.45 C
|
475 |
+
ATOM 206 CD LYS A 28 20.541 34.029 22.467 1.00 18.36 C
|
476 |
+
ATOM 207 CE LYS A 28 19.944 32.644 22.755 1.00 18.63 C
|
477 |
+
ATOM 208 NZ LYS A 28 18.765 32.791 23.728 1.00 17.32 N
|
478 |
+
ATOM 209 N VAL A 29 25.471 31.760 22.968 1.00 8.13 N
|
479 |
+
ATOM 210 CA VAL A 29 26.885 31.515 22.924 1.00 7.52 C
|
480 |
+
ATOM 211 C VAL A 29 27.147 30.039 22.603 1.00 6.40 C
|
481 |
+
ATOM 212 O VAL A 29 27.990 29.702 21.779 1.00 6.66 O
|
482 |
+
ATOM 213 CB VAL A 29 27.486 31.891 24.303 1.00 7.57 C
|
483 |
+
ATOM 214 CG1 VAL A 29 28.899 31.370 24.409 1.00 7.89 C
|
484 |
+
ATOM 215 CG2 VAL A 29 27.458 33.433 24.518 1.00 6.16 C
|
485 |
+
ATOM 216 N PHE A 30 26.469 29.154 23.332 1.00 7.49 N
|
486 |
+
ATOM 217 CA PHE A 30 26.606 27.707 23.121 1.00 7.01 C
|
487 |
+
ATOM 218 C PHE A 30 26.136 27.212 21.756 1.00 7.21 C
|
488 |
+
ATOM 219 O PHE A 30 26.792 26.404 21.128 1.00 6.86 O
|
489 |
+
ATOM 220 CB PHE A 30 25.893 26.960 24.228 1.00 7.00 C
|
490 |
+
ATOM 221 CG PHE A 30 26.665 26.936 25.514 1.00 6.05 C
|
491 |
+
ATOM 222 CD1 PHE A 30 28.066 26.954 25.508 1.00 4.97 C
|
492 |
+
ATOM 223 CD2 PHE A 30 26.001 26.842 26.735 1.00 4.70 C
|
493 |
+
ATOM 224 CE1 PHE A 30 28.786 26.873 26.704 1.00 3.77 C
|
494 |
+
ATOM 225 CE2 PHE A 30 26.724 26.763 27.921 1.00 4.13 C
|
495 |
+
ATOM 226 CZ PHE A 30 28.118 26.780 27.893 1.00 2.96 C
|
496 |
+
ATOM 227 N LYS A 31 25.007 27.737 21.289 1.00 9.22 N
|
497 |
+
ATOM 228 CA LYS A 31 24.465 27.362 20.003 1.00 9.74 C
|
498 |
+
ATOM 229 C LYS A 31 25.468 27.769 18.973 1.00 10.79 C
|
499 |
+
ATOM 230 O LYS A 31 25.726 27.029 18.067 1.00 11.32 O
|
500 |
+
ATOM 231 CB LYS A 31 23.164 28.080 19.739 1.00 10.71 C
|
501 |
+
ATOM 232 CG LYS A 31 21.959 27.448 20.394 1.00 15.00 C
|
502 |
+
ATOM 233 CD LYS A 31 21.142 26.655 19.377 1.00 18.28 C
|
503 |
+
ATOM 234 CE LYS A 31 19.630 26.666 19.692 1.00 20.79 C
|
504 |
+
ATOM 235 NZ LYS A 31 19.282 26.112 21.023 1.00 19.71 N
|
505 |
+
ATOM 236 N GLN A 32 26.018 28.963 19.088 1.00 9.07 N
|
506 |
+
ATOM 237 CA GLN A 32 27.009 29.365 18.127 1.00 10.35 C
|
507 |
+
ATOM 238 C GLN A 32 28.242 28.433 18.223 1.00 9.02 C
|
508 |
+
ATOM 239 O GLN A 32 28.852 28.088 17.218 1.00 8.60 O
|
509 |
+
ATOM 240 CB GLN A 32 27.401 30.823 18.374 1.00 11.61 C
|
510 |
+
ATOM 241 CG GLN A 32 28.527 31.312 17.476 1.00 11.88 C
|
511 |
+
ATOM 242 CD GLN A 32 28.791 32.813 17.645 1.00 13.83 C
|
512 |
+
ATOM 243 OE1 GLN A 32 28.586 33.364 18.726 1.00 15.61 O
|
513 |
+
ATOM 244 NE2 GLN A 32 29.172 33.478 16.571 1.00 12.31 N
|
514 |
+
ATOM 245 N TYR A 33 28.656 28.118 19.451 1.00 8.39 N
|
515 |
+
ATOM 246 CA TYR A 33 29.773 27.206 19.679 1.00 6.40 C
|
516 |
+
ATOM 247 C TYR A 33 29.509 25.862 18.941 1.00 5.87 C
|
517 |
+
ATOM 248 O TYR A 33 30.320 25.372 18.149 1.00 4.80 O
|
518 |
+
ATOM 249 CB TYR A 33 29.946 27.000 21.178 1.00 6.67 C
|
519 |
+
ATOM 250 CG TYR A 33 31.015 25.993 21.502 1.00 6.95 C
|
520 |
+
ATOM 251 CD1 TYR A 33 32.355 26.338 21.387 1.00 7.21 C
|
521 |
+
ATOM 252 CD2 TYR A 33 30.689 24.686 21.899 1.00 6.38 C
|
522 |
+
ATOM 253 CE1 TYR A 33 33.374 25.417 21.669 1.00 9.67 C
|
523 |
+
ATOM 254 CE2 TYR A 33 31.674 23.754 22.177 1.00 6.66 C
|
524 |
+
ATOM 255 CZ TYR A 33 33.027 24.125 22.072 1.00 8.46 C
|
525 |
+
ATOM 256 OH TYR A 33 34.039 23.263 22.408 1.00 9.40 O
|
526 |
+
ATOM 257 N ALA A 34 28.338 25.291 19.178 1.00 7.50 N
|
527 |
+
ATOM 258 CA ALA A 34 27.920 24.046 18.545 1.00 8.91 C
|
528 |
+
ATOM 259 C ALA A 34 27.949 24.186 17.057 1.00 10.19 C
|
529 |
+
ATOM 260 O ALA A 34 28.450 23.338 16.372 1.00 9.37 O
|
530 |
+
ATOM 261 CB ALA A 34 26.496 23.710 18.955 1.00 7.87 C
|
531 |
+
ATOM 262 N ASN A 35 27.384 25.279 16.574 1.00 11.90 N
|
532 |
+
ATOM 263 CA ASN A 35 27.274 25.513 15.161 1.00 14.15 C
|
533 |
+
ATOM 264 C ASN A 35 28.633 25.557 14.477 1.00 13.33 C
|
534 |
+
ATOM 265 O ASN A 35 28.846 24.927 13.425 1.00 10.58 O
|
535 |
+
ATOM 266 CB ASN A 35 26.487 26.810 14.914 1.00 20.29 C
|
536 |
+
ATOM 267 CG ASN A 35 24.932 26.584 14.787 1.00 23.22 C
|
537 |
+
ATOM 268 OD1 ASN A 35 24.309 27.068 13.800 1.00 26.74 O
|
538 |
+
ATOM 269 ND2 ASN A 35 24.299 25.919 15.788 1.00 21.89 N
|
539 |
+
ATOM 270 N ASP A 36 29.550 26.286 15.097 1.00 10.96 N
|
540 |
+
ATOM 271 CA ASP A 36 30.915 26.410 14.554 1.00 14.21 C
|
541 |
+
ATOM 272 C ASP A 36 31.675 25.089 14.557 1.00 9.94 C
|
542 |
+
ATOM 273 O ASP A 36 32.637 24.933 13.842 1.00 11.88 O
|
543 |
+
ATOM 274 CB ASP A 36 31.737 27.446 15.334 1.00 13.30 C
|
544 |
+
ATOM 275 CG ASP A 36 31.270 28.892 15.089 1.00 19.45 C
|
545 |
+
ATOM 276 OD1 ASP A 36 30.426 29.168 14.164 1.00 17.91 O
|
546 |
+
ATOM 277 OD2 ASP A 36 31.807 29.761 15.834 1.00 18.68 O
|
547 |
+
ATOM 278 N ASN A 37 31.237 24.154 15.379 1.00 10.35 N
|
548 |
+
ATOM 279 CA ASN A 37 31.910 22.848 15.442 1.00 10.08 C
|
549 |
+
ATOM 280 C ASN A 37 31.204 21.703 14.705 1.00 8.66 C
|
550 |
+
ATOM 281 O ASN A 37 31.499 20.533 14.960 1.00 10.48 O
|
551 |
+
ATOM 282 CB ASN A 37 32.217 22.467 16.889 1.00 9.61 C
|
552 |
+
ATOM 283 CG ASN A 37 33.232 23.388 17.496 1.00 10.43 C
|
553 |
+
ATOM 284 OD1 ASN A 37 34.434 23.277 17.242 1.00 10.40 O
|
554 |
+
ATOM 285 ND2 ASN A 37 32.760 24.275 18.360 1.00 10.05 N
|
555 |
+
ATOM 286 N GLY A 38 30.255 22.076 13.847 1.00 7.27 N
|
556 |
+
ATOM 287 CA GLY A 38 29.514 21.139 13.029 1.00 9.93 C
|
557 |
+
ATOM 288 C GLY A 38 28.423 20.349 13.682 1.00 9.26 C
|
558 |
+
ATOM 289 O GLY A 38 27.981 19.401 13.076 1.00 10.47 O
|
559 |
+
ATOM 290 N VAL A 39 28.018 20.735 14.895 1.00 9.93 N
|
560 |
+
ATOM 291 CA VAL A 39 26.982 20.057 15.673 1.00 11.05 C
|
561 |
+
ATOM 292 C VAL A 39 25.623 20.694 15.351 1.00 13.05 C
|
562 |
+
ATOM 293 O VAL A 39 25.519 21.922 15.147 1.00 13.46 O
|
563 |
+
ATOM 294 CB VAL A 39 27.256 20.156 17.179 1.00 11.99 C
|
564 |
+
ATOM 295 CG1 VAL A 39 26.190 19.386 17.992 1.00 11.01 C
|
565 |
+
ATOM 296 CG2 VAL A 39 28.618 19.623 17.474 1.00 12.09 C
|
566 |
+
ATOM 297 N ASP A 40 24.627 19.823 15.237 1.00 12.80 N
|
567 |
+
ATOM 298 CA ASP A 40 23.273 20.165 14.911 1.00 16.78 C
|
568 |
+
ATOM 299 C ASP A 40 22.364 19.106 15.560 1.00 16.32 C
|
569 |
+
ATOM 300 O ASP A 40 22.057 18.080 14.952 1.00 17.59 O
|
570 |
+
ATOM 301 CB ASP A 40 23.133 20.098 13.390 1.00 19.31 C
|
571 |
+
ATOM 302 CG ASP A 40 21.922 20.848 12.870 1.00 21.54 C
|
572 |
+
ATOM 303 OD1 ASP A 40 21.056 21.312 13.659 1.00 21.98 O
|
573 |
+
ATOM 304 OD2 ASP A 40 21.855 20.980 11.621 1.00 27.00 O
|
574 |
+
ATOM 305 N GLY A 41 21.933 19.353 16.786 1.00 15.38 N
|
575 |
+
ATOM 306 CA GLY A 41 21.070 18.388 17.442 1.00 14.55 C
|
576 |
+
ATOM 307 C GLY A 41 19.901 18.972 18.209 1.00 13.77 C
|
577 |
+
ATOM 308 O GLY A 41 19.433 20.086 17.910 1.00 14.74 O
|
578 |
+
ATOM 309 N GLU A 42 19.370 18.175 19.131 1.00 14.03 N
|
579 |
+
ATOM 310 CA GLU A 42 18.281 18.573 20.025 1.00 15.15 C
|
580 |
+
ATOM 311 C GLU A 42 18.921 19.078 21.289 1.00 13.42 C
|
581 |
+
ATOM 312 O GLU A 42 19.965 18.538 21.727 1.00 9.64 O
|
582 |
+
ATOM 313 CB GLU A 42 17.322 17.413 20.322 1.00 20.68 C
|
583 |
+
ATOM 314 CG GLU A 42 16.345 17.122 19.126 1.00 26.20 C
|
584 |
+
ATOM 315 CD GLU A 42 15.372 15.922 19.367 1.00 32.15 C
|
585 |
+
ATOM 316 OE1 GLU A 42 15.872 14.870 19.871 1.00 32.35 O
|
586 |
+
ATOM 317 OE2 GLU A 42 14.131 16.030 19.037 1.00 31.50 O
|
587 |
+
ATOM 318 N TRP A 43 18.309 20.141 21.827 1.00 10.40 N
|
588 |
+
ATOM 319 CA TRP A 43 18.773 20.830 23.024 1.00 8.43 C
|
589 |
+
ATOM 320 C TRP A 43 17.801 20.725 24.189 1.00 9.38 C
|
590 |
+
ATOM 321 O TRP A 43 16.599 20.589 24.004 1.00 10.29 O
|
591 |
+
ATOM 322 CB TRP A 43 18.916 22.349 22.770 1.00 8.33 C
|
592 |
+
ATOM 323 CG TRP A 43 19.989 22.746 21.842 1.00 7.08 C
|
593 |
+
ATOM 324 CD1 TRP A 43 19.989 22.613 20.492 1.00 8.75 C
|
594 |
+
ATOM 325 CD2 TRP A 43 21.244 23.292 22.191 1.00 7.08 C
|
595 |
+
ATOM 326 NE1 TRP A 43 21.189 23.036 19.961 1.00 5.66 N
|
596 |
+
ATOM 327 CE2 TRP A 43 21.986 23.454 20.988 1.00 7.08 C
|
597 |
+
ATOM 328 CE3 TRP A 43 21.832 23.656 23.393 1.00 7.63 C
|
598 |
+
ATOM 329 CZ2 TRP A 43 23.285 23.970 20.963 1.00 7.00 C
|
599 |
+
ATOM 330 CZ3 TRP A 43 23.098 24.165 23.376 1.00 7.78 C
|
600 |
+
ATOM 331 CH2 TRP A 43 23.826 24.318 22.161 1.00 7.62 C
|
601 |
+
ATOM 332 N THR A 44 18.341 20.860 25.397 1.00 6.73 N
|
602 |
+
ATOM 333 CA THR A 44 17.568 20.872 26.600 1.00 7.41 C
|
603 |
+
ATOM 334 C THR A 44 18.370 21.803 27.458 1.00 7.32 C
|
604 |
+
ATOM 335 O THR A 44 19.564 22.051 27.162 1.00 8.30 O
|
605 |
+
ATOM 336 CB THR A 44 17.477 19.475 27.325 1.00 6.34 C
|
606 |
+
ATOM 337 OG1 THR A 44 18.768 19.116 27.844 1.00 8.74 O
|
607 |
+
ATOM 338 CG2 THR A 44 16.965 18.331 26.382 1.00 4.42 C
|
608 |
+
ATOM 339 N TYR A 45 17.707 22.422 28.434 1.00 6.33 N
|
609 |
+
ATOM 340 CA TYR A 45 18.383 23.292 29.382 1.00 6.58 C
|
610 |
+
ATOM 341 C TYR A 45 17.795 22.951 30.738 1.00 6.24 C
|
611 |
+
ATOM 342 O TYR A 45 16.594 22.894 30.859 1.00 8.16 O
|
612 |
+
ATOM 343 CB TYR A 45 18.153 24.791 29.123 1.00 6.32 C
|
613 |
+
ATOM 344 CG TYR A 45 18.630 25.646 30.300 1.00 7.32 C
|
614 |
+
ATOM 345 CD1 TYR A 45 19.993 25.696 30.649 1.00 6.00 C
|
615 |
+
ATOM 346 CD2 TYR A 45 17.716 26.386 31.095 1.00 7.75 C
|
616 |
+
ATOM 347 CE1 TYR A 45 20.434 26.427 31.704 1.00 6.17 C
|
617 |
+
ATOM 348 CE2 TYR A 45 18.165 27.134 32.159 1.00 8.06 C
|
618 |
+
ATOM 349 CZ TYR A 45 19.531 27.144 32.461 1.00 6.37 C
|
619 |
+
ATOM 350 OH TYR A 45 20.003 27.846 33.547 1.00 7.74 O
|
620 |
+
ATOM 351 N ASP A 46 18.637 22.717 31.736 1.00 6.35 N
|
621 |
+
ATOM 352 CA ASP A 46 18.189 22.395 33.084 1.00 6.11 C
|
622 |
+
ATOM 353 C ASP A 46 18.762 23.422 34.046 1.00 7.28 C
|
623 |
+
ATOM 354 O ASP A 46 19.956 23.402 34.423 1.00 4.29 O
|
624 |
+
ATOM 355 CB ASP A 46 18.608 20.963 33.468 1.00 7.79 C
|
625 |
+
ATOM 356 CG ASP A 46 18.147 20.542 34.888 1.00 7.44 C
|
626 |
+
ATOM 357 OD1 ASP A 46 17.386 21.232 35.591 1.00 5.00 O
|
627 |
+
ATOM 358 OD2 ASP A 46 18.551 19.448 35.270 1.00 9.02 O
|
628 |
+
ATOM 359 N ASP A 47 17.863 24.323 34.417 1.00 6.68 N
|
629 |
+
ATOM 360 CA ASP A 47 18.172 25.408 35.266 1.00 8.65 C
|
630 |
+
ATOM 361 C ASP A 47 18.635 24.975 36.607 1.00 10.53 C
|
631 |
+
ATOM 362 O ASP A 47 19.331 25.709 37.256 1.00 10.10 O
|
632 |
+
ATOM 363 CB ASP A 47 16.952 26.264 35.444 1.00 9.98 C
|
633 |
+
ATOM 364 CG ASP A 47 17.294 27.588 36.038 1.00 13.07 C
|
634 |
+
ATOM 365 OD1 ASP A 47 18.182 28.307 35.517 1.00 11.85 O
|
635 |
+
ATOM 366 OD2 ASP A 47 16.710 27.874 37.084 1.00 14.99 O
|
636 |
+
ATOM 367 N ALA A 48 18.101 23.853 37.083 1.00 10.72 N
|
637 |
+
ATOM 368 CA ALA A 48 18.486 23.283 38.379 1.00 9.53 C
|
638 |
+
ATOM 369 C ALA A 48 19.959 22.961 38.447 1.00 8.82 C
|
639 |
+
ATOM 370 O ALA A 48 20.523 22.904 39.507 1.00 10.62 O
|
640 |
+
ATOM 371 CB ALA A 48 17.677 22.025 38.647 1.00 11.11 C
|
641 |
+
ATOM 372 N THR A 49 20.603 22.757 37.316 1.00 9.51 N
|
642 |
+
ATOM 373 CA THR A 49 22.029 22.470 37.333 1.00 8.40 C
|
643 |
+
ATOM 374 C THR A 49 22.748 23.435 36.395 1.00 7.98 C
|
644 |
+
ATOM 375 O THR A 49 23.941 23.324 36.212 1.00 9.23 O
|
645 |
+
ATOM 376 CB THR A 49 22.345 20.975 36.913 1.00 8.34 C
|
646 |
+
ATOM 377 OG1 THR A 49 22.050 20.810 35.525 1.00 6.78 O
|
647 |
+
ATOM 378 CG2 THR A 49 21.457 19.962 37.702 1.00 6.32 C
|
648 |
+
ATOM 379 N LYS A 50 22.009 24.371 35.800 1.00 7.05 N
|
649 |
+
ATOM 380 CA LYS A 50 22.552 25.343 34.873 1.00 8.49 C
|
650 |
+
ATOM 381 C LYS A 50 23.219 24.646 33.689 1.00 8.72 C
|
651 |
+
ATOM 382 O LYS A 50 24.189 25.166 33.141 1.00 8.51 O
|
652 |
+
ATOM 383 CB LYS A 50 23.573 26.291 35.570 1.00 11.17 C
|
653 |
+
ATOM 384 CG LYS A 50 23.028 27.095 36.711 1.00 10.11 C
|
654 |
+
ATOM 385 CD LYS A 50 21.867 27.977 36.252 1.00 13.37 C
|
655 |
+
ATOM 386 CE LYS A 50 21.143 28.680 37.483 1.00 12.12 C
|
656 |
+
ATOM 387 NZ LYS A 50 20.184 29.770 37.143 1.00 15.16 N
|
657 |
+
ATOM 388 N THR A 51 22.654 23.514 33.255 1.00 7.92 N
|
658 |
+
ATOM 389 CA THR A 51 23.221 22.742 32.156 1.00 7.95 C
|
659 |
+
ATOM 390 C THR A 51 22.435 22.672 30.858 1.00 5.18 C
|
660 |
+
ATOM 391 O THR A 51 21.235 22.535 30.854 1.00 3.35 O
|
661 |
+
ATOM 392 CB THR A 51 23.549 21.266 32.600 1.00 8.94 C
|
662 |
+
ATOM 393 OG1 THR A 51 24.412 21.311 33.730 1.00 10.06 O
|
663 |
+
ATOM 394 CG2 THR A 51 24.324 20.498 31.477 1.00 11.18 C
|
664 |
+
ATOM 395 N PHE A 52 23.152 22.808 29.756 1.00 3.88 N
|
665 |
+
ATOM 396 CA PHE A 52 22.568 22.724 28.431 1.00 5.35 C
|
666 |
+
ATOM 397 C PHE A 52 23.139 21.448 27.853 1.00 5.94 C
|
667 |
+
ATOM 398 O PHE A 52 24.298 21.110 28.112 1.00 7.60 O
|
668 |
+
ATOM 399 CB PHE A 52 23.077 23.828 27.506 1.00 4.56 C
|
669 |
+
ATOM 400 CG PHE A 52 22.484 25.155 27.766 1.00 5.80 C
|
670 |
+
ATOM 401 CD1 PHE A 52 22.962 25.955 28.824 1.00 6.35 C
|
671 |
+
ATOM 402 CD2 PHE A 52 21.488 25.630 26.943 1.00 6.87 C
|
672 |
+
ATOM 403 CE1 PHE A 52 22.460 27.242 29.066 1.00 6.65 C
|
673 |
+
ATOM 404 CE2 PHE A 52 20.946 26.900 27.152 1.00 7.62 C
|
674 |
+
ATOM 405 CZ PHE A 52 21.438 27.729 28.226 1.00 7.28 C
|
675 |
+
ATOM 406 N THR A 53 22.359 20.748 27.052 1.00 5.79 N
|
676 |
+
ATOM 407 CA THR A 53 22.885 19.561 26.411 1.00 5.92 C
|
677 |
+
ATOM 408 C THR A 53 22.419 19.621 24.955 1.00 5.65 C
|
678 |
+
ATOM 409 O THR A 53 21.309 20.087 24.688 1.00 6.81 O
|
679 |
+
ATOM 410 CB THR A 53 22.400 18.226 27.067 1.00 5.16 C
|
680 |
+
ATOM 411 OG1 THR A 53 21.054 17.997 26.672 1.00 9.40 O
|
681 |
+
ATOM 412 CG2 THR A 53 22.407 18.291 28.569 1.00 5.06 C
|
682 |
+
ATOM 413 N VAL A 54 23.285 19.248 24.008 1.00 5.98 N
|
683 |
+
ATOM 414 CA VAL A 54 22.856 19.172 22.598 1.00 5.44 C
|
684 |
+
ATOM 415 C VAL A 54 23.112 17.708 22.184 1.00 4.77 C
|
685 |
+
ATOM 416 O VAL A 54 24.161 17.151 22.491 1.00 3.99 O
|
686 |
+
ATOM 417 CB VAL A 54 23.576 20.167 21.671 1.00 3.09 C
|
687 |
+
ATOM 418 CG1 VAL A 54 25.091 20.092 21.843 1.00 3.65 C
|
688 |
+
ATOM 419 CG2 VAL A 54 23.136 19.922 20.206 1.00 5.10 C
|
689 |
+
ATOM 420 N THR A 55 22.210 17.134 21.421 1.00 5.48 N
|
690 |
+
ATOM 421 CA THR A 55 22.364 15.731 21.085 1.00 6.69 C
|
691 |
+
ATOM 422 C THR A 55 22.039 15.472 19.632 1.00 8.52 C
|
692 |
+
ATOM 423 O THR A 55 20.995 15.860 19.189 1.00 12.30 O
|
693 |
+
ATOM 424 CB THR A 55 21.406 14.955 21.979 1.00 5.30 C
|
694 |
+
ATOM 425 OG1 THR A 55 21.786 15.194 23.326 1.00 4.67 O
|
695 |
+
ATOM 426 CG2 THR A 55 21.441 13.470 21.755 1.00 6.00 C
|
696 |
+
ATOM 427 N GLU A 56 22.905 14.843 18.864 1.00 8.91 N
|
697 |
+
ATOM 428 CA GLU A 56 22.553 14.567 17.468 1.00 13.22 C
|
698 |
+
ATOM 429 C GLU A 56 22.022 13.143 17.330 1.00 13.01 C
|
699 |
+
ATOM 430 O GLU A 56 22.353 12.301 18.190 1.00 14.55 O
|
700 |
+
ATOM 431 CB GLU A 56 23.736 14.723 16.538 1.00 13.01 C
|
701 |
+
ATOM 432 CG GLU A 56 24.277 16.065 16.470 1.00 14.87 C
|
702 |
+
ATOM 433 CD GLU A 56 25.430 16.161 15.494 1.00 15.68 C
|
703 |
+
ATOM 434 OE1 GLU A 56 26.403 15.371 15.576 1.00 17.54 O
|
704 |
+
ATOM 435 OE2 GLU A 56 25.381 17.081 14.664 1.00 18.60 O
|
705 |
+
ATOM 436 OXT GLU A 56 21.296 12.892 16.369 1.00 15.04 O
|
706 |
+
TER 437 GLU A 56
|
707 |
+
HETATM 438 O HOH A 57 20.045 17.338 24.112 1.00 3.04 O
|
708 |
+
HETATM 439 O HOH A 58 29.284 15.933 16.005 1.00 3.90 O
|
709 |
+
HETATM 440 O HOH A 59 30.968 17.869 15.018 0.94 11.86 O
|
710 |
+
HETATM 441 O HOH A 60 36.384 21.652 27.812 0.96 15.46 O
|
711 |
+
HETATM 442 O HOH A 61 17.058 34.117 30.636 0.91 16.69 O
|
712 |
+
HETATM 443 O HOH A 62 27.844 16.414 13.404 1.00 23.36 O
|
713 |
+
HETATM 444 O HOH A 63 18.404 38.643 27.967 1.00 23.63 O
|
714 |
+
HETATM 445 O HOH A 64 19.968 31.460 34.797 1.00 23.75 O
|
715 |
+
HETATM 446 O HOH A 65 18.201 18.566 37.695 0.95 22.19 O
|
716 |
+
HETATM 447 O HOH A 66 28.632 36.880 26.524 1.00 24.51 O
|
717 |
+
HETATM 448 O HOH A 67 24.320 18.322 34.892 0.95 23.33 O
|
718 |
+
HETATM 449 O HOH A 68 34.515 20.297 15.278 0.95 24.44 O
|
719 |
+
HETATM 450 O HOH A 69 25.264 17.638 11.962 1.00 26.96 O
|
720 |
+
HETATM 451 O HOH A 70 27.030 30.620 14.393 1.00 30.28 O
|
721 |
+
HETATM 452 O HOH A 71 34.649 12.834 25.632 0.98 31.24 O
|
722 |
+
HETATM 453 O HOH A 72 18.195 33.437 33.740 0.88 30.66 O
|
723 |
+
HETATM 454 O HOH A 73 15.996 28.545 27.866 1.00 38.23 O
|
724 |
+
HETATM 455 O HOH A 74 22.964 13.047 25.143 0.94 34.64 O
|
725 |
+
HETATM 456 O HOH A 75 36.309 21.652 20.246 1.00 43.01 O
|
726 |
+
HETATM 457 O HOH A 76 15.334 21.462 20.777 0.91 37.63 O
|
727 |
+
MASTER 227 0 0 1 4 0 0 6 456 1 0 5
|
728 |
+
END
|
Dockerfile
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
FROM python:3.9
|
3 |
+
|
4 |
+
WORKDIR /code
|
5 |
+
|
6 |
+
COPY --link --chown=1000 . .
|
7 |
+
|
8 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
9 |
+
|
10 |
+
ENV PYTHONUNBUFFERED=1 GRADIO_ALLOW_FLAGGING=never GRADIO_NUM_PORTS=1 GRADIO_SERVER_NAME=0.0.0.0 GRADIO_SERVER_PORT=7860 SYSTEM=spaces
|
11 |
+
|
12 |
+
CMD ["python", "app.py"]
|
README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
|
|
1 |
---
|
2 |
-
|
3 |
-
|
4 |
-
colorFrom:
|
5 |
-
colorTo:
|
6 |
sdk: docker
|
7 |
pinned: false
|
|
|
8 |
---
|
9 |
-
|
10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
+
|
2 |
---
|
3 |
+
tags: [gradio-custom-component, gradio-template-File]
|
4 |
+
title: gradio_molecule3d V0.0.1
|
5 |
+
colorFrom: gray
|
6 |
+
colorTo: indigo
|
7 |
sdk: docker
|
8 |
pinned: false
|
9 |
+
license: apache-2.0
|
10 |
---
|
|
|
|
__init__.py
ADDED
File without changes
|
__pycache__/app.cpython-39.pyc
ADDED
Binary file (783 Bytes). View file
|
|
app.py
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
import gradio as gr
|
3 |
+
from gradio_molecule3d import Molecule3D
|
4 |
+
|
5 |
+
import os
|
6 |
+
|
7 |
+
example = Molecule3D().example_inputs()
|
8 |
+
|
9 |
+
|
10 |
+
reps = [
|
11 |
+
{
|
12 |
+
"model": 0,
|
13 |
+
"chain": "",
|
14 |
+
"resname": "",
|
15 |
+
"style": "cartoon",
|
16 |
+
"color": "whiteCarbon",
|
17 |
+
"residue_range": "",
|
18 |
+
"around": 0,
|
19 |
+
"byres": False,
|
20 |
+
"visible": False,
|
21 |
+
},
|
22 |
+
]
|
23 |
+
|
24 |
+
def predict(x):
|
25 |
+
print("predict function", x)
|
26 |
+
return x
|
27 |
+
|
28 |
+
#doesn't work
|
29 |
+
# demo = gr.Interface(
|
30 |
+
# predict,
|
31 |
+
# Molecule3D(label="Molecule3D", reps=reps), # interactive version of your component
|
32 |
+
# Molecule3D(), # static version of your component
|
33 |
+
# examples=[[example]], # uncomment this line to view the "example version" of your component
|
34 |
+
# )
|
35 |
+
|
36 |
+
#works
|
37 |
+
with gr.Blocks() as demo:
|
38 |
+
inp = Molecule3D("demo/1pga.pdb",label="Molecule3D", reps=reps)
|
39 |
+
out = Molecule3D(label="Molecule3D", reps=reps)
|
40 |
+
btn = gr.Button("Predict")
|
41 |
+
btn.click(predict, inputs=inp, outputs=out)
|
42 |
+
|
43 |
+
demo.launch()
|
44 |
+
# blocks.launch()
|
requirements.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
gradio_molecule3d-0.0.1-py3-none-any.whl
|
sample_file.pdf
ADDED
Binary file (10.6 kB). View file
|
|
src/.gitignore
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.eggs/
|
2 |
+
dist/
|
3 |
+
*.pyc
|
4 |
+
__pycache__/
|
5 |
+
*.py[cod]
|
6 |
+
*$py.class
|
7 |
+
__tmp/*
|
8 |
+
*.pyi
|
9 |
+
node_modules
|
10 |
+
flagged
|
src/LICENSE
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Copyright 2023 Simon Dürr
|
2 |
+
|
3 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4 |
+
|
5 |
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
6 |
+
|
7 |
+
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
src/README.md
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
# gradio_molecule3d
|
3 |
+
A Custom Gradio component to visualize molecules in pdb, sdf or mol2 format.
|
4 |
+
|
5 |
+
|
6 |
+
Developed by Simon Dürr.
|
7 |
+
|
8 |
+
If you use this component for academic work please cite:
|
9 |
+
3Dmol.js: molecular visualization with WebGL , Nicholas Rego, David Koes, Bioinformatics, Volume 31, Issue 8, April 2015, Pages 1322–1324, https://doi.org/10.1093/bioinformatics/btu829
|
10 |
+
|
11 |
+
## How to use
|
12 |
+
|
13 |
+
```python
|
14 |
+
import gradio as gr
|
15 |
+
from gradio_molecule3d import Molecule3D
|
16 |
+
```
|
src/backend/gradio_molecule3d/__init__.py
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
from .molecule3d import Molecule3D
|
3 |
+
|
4 |
+
__all__ = ['Molecule3D']
|
src/backend/gradio_molecule3d/molecule3d.py
ADDED
@@ -0,0 +1,205 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""gr.File() component"""
|
2 |
+
|
3 |
+
from __future__ import annotations
|
4 |
+
|
5 |
+
import tempfile
|
6 |
+
import warnings
|
7 |
+
from pathlib import Path
|
8 |
+
from typing import Any, Callable, List, Literal
|
9 |
+
|
10 |
+
from gradio_client.documentation import document, set_documentation_group
|
11 |
+
|
12 |
+
from gradio.components.base import Component
|
13 |
+
from gradio.data_classes import FileData, GradioRootModel
|
14 |
+
from gradio.events import Events
|
15 |
+
from gradio.utils import NamedString
|
16 |
+
|
17 |
+
set_documentation_group("component")
|
18 |
+
|
19 |
+
|
20 |
+
class ListFiles(GradioRootModel):
|
21 |
+
root: List[FileData]
|
22 |
+
|
23 |
+
def __getitem__(self, index):
|
24 |
+
return self.root[index]
|
25 |
+
|
26 |
+
def __iter__(self):
|
27 |
+
return iter(self.root)
|
28 |
+
|
29 |
+
|
30 |
+
@document()
|
31 |
+
class Molecule3D(Component):
|
32 |
+
"""
|
33 |
+
Creates a file component that allows uploading generic file (when used as an input) and or displaying generic files (output).
|
34 |
+
Preprocessing: passes the uploaded file as a {tempfile._TemporaryFileWrapper} or {List[tempfile._TemporaryFileWrapper]} depending on `file_count` (or a {bytes}/{List[bytes]} depending on `type`)
|
35 |
+
Postprocessing: expects function to return a {str} path to a file, or {List[str]} consisting of paths to files.
|
36 |
+
Examples-format: a {str} path to a local file that populates the component.
|
37 |
+
Demos: zip_to_json, zip_files
|
38 |
+
"""
|
39 |
+
|
40 |
+
EVENTS = [Events.change, Events.select, Events.clear, Events.upload]
|
41 |
+
|
42 |
+
def __init__(
|
43 |
+
self,
|
44 |
+
value: str | list[str] | Callable | None = None,
|
45 |
+
reps: Any | None = [],
|
46 |
+
config: Any | None = {
|
47 |
+
"backgroundColor": "white",
|
48 |
+
"orthographic": False,
|
49 |
+
"disableFog": False,
|
50 |
+
},
|
51 |
+
confidenceLabel: str | None = "pLDDT",
|
52 |
+
*,
|
53 |
+
file_count: Literal["single", "multiple", "directory"] = "single",
|
54 |
+
file_types: list[str] | None = None,
|
55 |
+
type: Literal["filepath", "binary"] = "filepath",
|
56 |
+
label: str | None = None,
|
57 |
+
every: float | None = None,
|
58 |
+
show_label: bool | None = None,
|
59 |
+
container: bool = True,
|
60 |
+
scale: int | None = None,
|
61 |
+
min_width: int = 160,
|
62 |
+
height: int | float | None = None,
|
63 |
+
interactive: bool | None = None,
|
64 |
+
visible: bool = True,
|
65 |
+
elem_id: str | None = None,
|
66 |
+
elem_classes: list[str] | str | None = None,
|
67 |
+
render: bool = True,
|
68 |
+
):
|
69 |
+
"""
|
70 |
+
Parameters:
|
71 |
+
value: Default file to display, given as str file path. If callable, the function will be called whenever the app loads to set the initial value of the component.
|
72 |
+
file_count: if single, allows user to upload one file. If "multiple", user uploads multiple files. If "directory", user uploads all files in selected directory. Return type will be list for each file in case of "multiple" or "directory".
|
73 |
+
file_types: List of file extensions or types of files to be uploaded (e.g. ['image', '.json', '.mp4']). "file" allows any file to be uploaded, "image" allows only image files to be uploaded, "audio" allows only audio files to be uploaded, "video" allows only video files to be uploaded, "text" allows only text files to be uploaded.
|
74 |
+
representations: list of representation objects
|
75 |
+
config: dictionary of config options
|
76 |
+
confidenceLabel: label for confidence values stored in the bfactor column of a pdb file
|
77 |
+
type: Type of value to be returned by component. "file" returns a temporary file object with the same base name as the uploaded file, whose full path can be retrieved by file_obj.name, "binary" returns an bytes object.
|
78 |
+
label: The label for this component. Appears above the component and is also used as the header if there are a table of examples for this component. If None and used in a `gr.Interface`, the label will be the name of the parameter this component is assigned to.
|
79 |
+
every: If `value` is a callable, run the function 'every' number of seconds while the client connection is open. Has no effect otherwise. Queue must be enabled. The event can be accessed (e.g. to cancel it) via this component's .load_event attribute.
|
80 |
+
show_label: if True, will display label.
|
81 |
+
container: If True, will place the component in a container - providing some extra padding around the border.
|
82 |
+
scale: relative width compared to adjacent Components in a Row. For example, if Component A has scale=2, and Component B has scale=1, A will be twice as wide as B. Should be an integer.
|
83 |
+
min_width: minimum pixel width, will wrap if not sufficient screen space to satisfy this value. If a certain scale value results in this Component being narrower than min_width, the min_width parameter will be respected first.
|
84 |
+
height: The maximum height of the file component, in pixels. If more files are uploaded than can fit in the height, a scrollbar will appear.
|
85 |
+
interactive: if True, will allow users to upload a file; if False, can only be used to display files. If not provided, this is inferred based on whether the component is used as an input or output.
|
86 |
+
visible: If False, component will be hidden.
|
87 |
+
elem_id: An optional string that is assigned as the id of this component in the HTML DOM. Can be used for targeting CSS styles.
|
88 |
+
elem_classes: An optional list of strings that are assigned as the classes of this component in the HTML DOM. Can be used for targeting CSS styles.
|
89 |
+
render: If False, component will not render be rendered in the Blocks context. Should be used if the intention is to assign event listeners now but render the component later.
|
90 |
+
"""
|
91 |
+
self.file_count = file_count
|
92 |
+
if self.file_count == "multiple":
|
93 |
+
self.data_model = ListFiles
|
94 |
+
else:
|
95 |
+
self.data_model = FileData
|
96 |
+
self.file_types = file_types
|
97 |
+
if file_types is not None and not isinstance(file_types, list):
|
98 |
+
raise ValueError(
|
99 |
+
f"Parameter file_types must be a list. Received {file_types.__class__.__name__}"
|
100 |
+
)
|
101 |
+
valid_types = [
|
102 |
+
"filepath",
|
103 |
+
"binary",
|
104 |
+
]
|
105 |
+
if type not in valid_types:
|
106 |
+
raise ValueError(
|
107 |
+
f"Invalid value for parameter `type`: {type}. Please choose from one of: {valid_types}"
|
108 |
+
)
|
109 |
+
if file_count == "directory" and file_types is not None:
|
110 |
+
warnings.warn(
|
111 |
+
"The `file_types` parameter is ignored when `file_count` is 'directory'."
|
112 |
+
)
|
113 |
+
super().__init__(
|
114 |
+
label=label,
|
115 |
+
every=every,
|
116 |
+
show_label=show_label,
|
117 |
+
container=container,
|
118 |
+
scale=scale,
|
119 |
+
min_width=min_width,
|
120 |
+
interactive=interactive,
|
121 |
+
visible=visible,
|
122 |
+
elem_id=elem_id,
|
123 |
+
elem_classes=elem_classes,
|
124 |
+
render=render,
|
125 |
+
value=value,
|
126 |
+
)
|
127 |
+
self.type = type
|
128 |
+
self.height = height
|
129 |
+
self.reps = reps
|
130 |
+
self.config = config
|
131 |
+
self.confidenceLabel = confidenceLabel
|
132 |
+
|
133 |
+
|
134 |
+
def _process_single_file(self, f: FileData) -> NamedString | bytes:
|
135 |
+
file_name = f.path
|
136 |
+
if self.type == "filepath":
|
137 |
+
file = tempfile.NamedTemporaryFile(delete=False, dir=self.GRADIO_CACHE)
|
138 |
+
file.name = file_name
|
139 |
+
return NamedString(file_name)
|
140 |
+
elif self.type == "binary":
|
141 |
+
with open(file_name, "rb") as file_data:
|
142 |
+
return file_data.read()
|
143 |
+
else:
|
144 |
+
raise ValueError(
|
145 |
+
"Unknown type: "
|
146 |
+
+ str(type)
|
147 |
+
+ ". Please choose from: 'filepath', 'binary'."
|
148 |
+
)
|
149 |
+
|
150 |
+
def preprocess(
|
151 |
+
self, payload: ListFiles | FileData | None
|
152 |
+
) -> bytes | NamedString | list[bytes | NamedString] | None:
|
153 |
+
print("preprocess", payload)
|
154 |
+
if payload is None:
|
155 |
+
return None
|
156 |
+
if self.file_count == "single":
|
157 |
+
if isinstance(payload, ListFiles):
|
158 |
+
return self._process_single_file(payload[0])
|
159 |
+
else:
|
160 |
+
return self._process_single_file(payload)
|
161 |
+
else:
|
162 |
+
if isinstance(payload, ListFiles):
|
163 |
+
return [self._process_single_file(f) for f in payload]
|
164 |
+
else:
|
165 |
+
return [self._process_single_file(payload)]
|
166 |
+
|
167 |
+
def postprocess(self, value: str | list[str] | None) -> ListFiles | FileData | None:
|
168 |
+
print("postprocess",value)
|
169 |
+
if value is None:
|
170 |
+
return None
|
171 |
+
|
172 |
+
|
173 |
+
if isinstance(value, list):
|
174 |
+
return ListFiles(
|
175 |
+
root=[
|
176 |
+
FileData(
|
177 |
+
path=file,
|
178 |
+
orig_name=Path(file).name,
|
179 |
+
size=Path(file).stat().st_size,
|
180 |
+
)
|
181 |
+
for file in value
|
182 |
+
]
|
183 |
+
)
|
184 |
+
else:
|
185 |
+
return FileData(
|
186 |
+
path=value,
|
187 |
+
orig_name=Path(value).name,
|
188 |
+
size=Path(value).stat().st_size,
|
189 |
+
)
|
190 |
+
|
191 |
+
def as_example(self, input_data: str | list | None) -> str:
|
192 |
+
if input_data is None:
|
193 |
+
return ""
|
194 |
+
elif isinstance(input_data, list):
|
195 |
+
return ", ".join([Path(file).name for file in input_data])
|
196 |
+
else:
|
197 |
+
return Path(input_data).name
|
198 |
+
|
199 |
+
def example_inputs(self) -> Any:
|
200 |
+
if self.file_count == "single":
|
201 |
+
return "/home/duerr/Dev/GradioBio/molecule3d/demo/sample_file.pdf"
|
202 |
+
else:
|
203 |
+
return [
|
204 |
+
"sample_file.pdf"
|
205 |
+
]
|
src/backend/gradio_molecule3d/molecule3d.pyi
ADDED
@@ -0,0 +1,355 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""gr.File() component"""
|
2 |
+
|
3 |
+
from __future__ import annotations
|
4 |
+
|
5 |
+
import tempfile
|
6 |
+
import warnings
|
7 |
+
from pathlib import Path
|
8 |
+
from typing import Any, Callable, List, Literal
|
9 |
+
|
10 |
+
from gradio_client.documentation import document, set_documentation_group
|
11 |
+
|
12 |
+
from gradio.components.base import Component
|
13 |
+
from gradio.data_classes import FileData, GradioRootModel
|
14 |
+
from gradio.events import Events
|
15 |
+
from gradio.utils import NamedString
|
16 |
+
|
17 |
+
set_documentation_group("component")
|
18 |
+
|
19 |
+
|
20 |
+
class ListFiles(GradioRootModel):
|
21 |
+
root: List[FileData]
|
22 |
+
|
23 |
+
def __getitem__(self, index):
|
24 |
+
return self.root[index]
|
25 |
+
|
26 |
+
def __iter__(self):
|
27 |
+
return iter(self.root)
|
28 |
+
|
29 |
+
from gradio.events import Dependency
|
30 |
+
|
31 |
+
@document()
|
32 |
+
class Molecule3D(Component):
|
33 |
+
"""
|
34 |
+
Creates a file component that allows uploading generic file (when used as an input) and or displaying generic files (output).
|
35 |
+
Preprocessing: passes the uploaded file as a {tempfile._TemporaryFileWrapper} or {List[tempfile._TemporaryFileWrapper]} depending on `file_count` (or a {bytes}/{List[bytes]} depending on `type`)
|
36 |
+
Postprocessing: expects function to return a {str} path to a file, or {List[str]} consisting of paths to files.
|
37 |
+
Examples-format: a {str} path to a local file that populates the component.
|
38 |
+
Demos: zip_to_json, zip_files
|
39 |
+
"""
|
40 |
+
|
41 |
+
EVENTS = [Events.change, Events.select, Events.clear, Events.upload]
|
42 |
+
|
43 |
+
def __init__(
|
44 |
+
self,
|
45 |
+
value: str | list[str] | Callable | None = None,
|
46 |
+
reps: Any | None = [],
|
47 |
+
config: Any | None = {
|
48 |
+
"backgroundColor": "white",
|
49 |
+
"orthographic": False,
|
50 |
+
"disableFog": False,
|
51 |
+
},
|
52 |
+
confidenceLabel: str | None = "pLDDT",
|
53 |
+
*,
|
54 |
+
file_count: Literal["single", "multiple", "directory"] = "single",
|
55 |
+
file_types: list[str] | None = None,
|
56 |
+
type: Literal["filepath", "binary"] = "filepath",
|
57 |
+
label: str | None = None,
|
58 |
+
every: float | None = None,
|
59 |
+
show_label: bool | None = None,
|
60 |
+
container: bool = True,
|
61 |
+
scale: int | None = None,
|
62 |
+
min_width: int = 160,
|
63 |
+
height: int | float | None = None,
|
64 |
+
interactive: bool | None = None,
|
65 |
+
visible: bool = True,
|
66 |
+
elem_id: str | None = None,
|
67 |
+
elem_classes: list[str] | str | None = None,
|
68 |
+
render: bool = True,
|
69 |
+
):
|
70 |
+
"""
|
71 |
+
Parameters:
|
72 |
+
value: Default file to display, given as str file path. If callable, the function will be called whenever the app loads to set the initial value of the component.
|
73 |
+
file_count: if single, allows user to upload one file. If "multiple", user uploads multiple files. If "directory", user uploads all files in selected directory. Return type will be list for each file in case of "multiple" or "directory".
|
74 |
+
file_types: List of file extensions or types of files to be uploaded (e.g. ['image', '.json', '.mp4']). "file" allows any file to be uploaded, "image" allows only image files to be uploaded, "audio" allows only audio files to be uploaded, "video" allows only video files to be uploaded, "text" allows only text files to be uploaded.
|
75 |
+
representations: list of representation objects
|
76 |
+
config: dictionary of config options
|
77 |
+
confidenceLabel: label for confidence values stored in the bfactor column of a pdb file
|
78 |
+
type: Type of value to be returned by component. "file" returns a temporary file object with the same base name as the uploaded file, whose full path can be retrieved by file_obj.name, "binary" returns an bytes object.
|
79 |
+
label: The label for this component. Appears above the component and is also used as the header if there are a table of examples for this component. If None and used in a `gr.Interface`, the label will be the name of the parameter this component is assigned to.
|
80 |
+
every: If `value` is a callable, run the function 'every' number of seconds while the client connection is open. Has no effect otherwise. Queue must be enabled. The event can be accessed (e.g. to cancel it) via this component's .load_event attribute.
|
81 |
+
show_label: if True, will display label.
|
82 |
+
container: If True, will place the component in a container - providing some extra padding around the border.
|
83 |
+
scale: relative width compared to adjacent Components in a Row. For example, if Component A has scale=2, and Component B has scale=1, A will be twice as wide as B. Should be an integer.
|
84 |
+
min_width: minimum pixel width, will wrap if not sufficient screen space to satisfy this value. If a certain scale value results in this Component being narrower than min_width, the min_width parameter will be respected first.
|
85 |
+
height: The maximum height of the file component, in pixels. If more files are uploaded than can fit in the height, a scrollbar will appear.
|
86 |
+
interactive: if True, will allow users to upload a file; if False, can only be used to display files. If not provided, this is inferred based on whether the component is used as an input or output.
|
87 |
+
visible: If False, component will be hidden.
|
88 |
+
elem_id: An optional string that is assigned as the id of this component in the HTML DOM. Can be used for targeting CSS styles.
|
89 |
+
elem_classes: An optional list of strings that are assigned as the classes of this component in the HTML DOM. Can be used for targeting CSS styles.
|
90 |
+
render: If False, component will not render be rendered in the Blocks context. Should be used if the intention is to assign event listeners now but render the component later.
|
91 |
+
"""
|
92 |
+
self.file_count = file_count
|
93 |
+
if self.file_count == "multiple":
|
94 |
+
self.data_model = ListFiles
|
95 |
+
else:
|
96 |
+
self.data_model = FileData
|
97 |
+
self.file_types = file_types
|
98 |
+
if file_types is not None and not isinstance(file_types, list):
|
99 |
+
raise ValueError(
|
100 |
+
f"Parameter file_types must be a list. Received {file_types.__class__.__name__}"
|
101 |
+
)
|
102 |
+
valid_types = [
|
103 |
+
"filepath",
|
104 |
+
"binary",
|
105 |
+
]
|
106 |
+
if type not in valid_types:
|
107 |
+
raise ValueError(
|
108 |
+
f"Invalid value for parameter `type`: {type}. Please choose from one of: {valid_types}"
|
109 |
+
)
|
110 |
+
if file_count == "directory" and file_types is not None:
|
111 |
+
warnings.warn(
|
112 |
+
"The `file_types` parameter is ignored when `file_count` is 'directory'."
|
113 |
+
)
|
114 |
+
super().__init__(
|
115 |
+
label=label,
|
116 |
+
every=every,
|
117 |
+
show_label=show_label,
|
118 |
+
container=container,
|
119 |
+
scale=scale,
|
120 |
+
min_width=min_width,
|
121 |
+
interactive=interactive,
|
122 |
+
visible=visible,
|
123 |
+
elem_id=elem_id,
|
124 |
+
elem_classes=elem_classes,
|
125 |
+
render=render,
|
126 |
+
value=value,
|
127 |
+
)
|
128 |
+
self.type = type
|
129 |
+
self.height = height
|
130 |
+
self.reps = reps
|
131 |
+
self.config = config
|
132 |
+
self.confidenceLabel = confidenceLabel
|
133 |
+
|
134 |
+
|
135 |
+
def _process_single_file(self, f: FileData) -> NamedString | bytes:
|
136 |
+
file_name = f.path
|
137 |
+
if self.type == "filepath":
|
138 |
+
file = tempfile.NamedTemporaryFile(delete=False, dir=self.GRADIO_CACHE)
|
139 |
+
file.name = file_name
|
140 |
+
return NamedString(file_name)
|
141 |
+
elif self.type == "binary":
|
142 |
+
with open(file_name, "rb") as file_data:
|
143 |
+
return file_data.read()
|
144 |
+
else:
|
145 |
+
raise ValueError(
|
146 |
+
"Unknown type: "
|
147 |
+
+ str(type)
|
148 |
+
+ ". Please choose from: 'filepath', 'binary'."
|
149 |
+
)
|
150 |
+
|
151 |
+
def preprocess(
|
152 |
+
self, payload: ListFiles | FileData | None
|
153 |
+
) -> bytes | NamedString | list[bytes | NamedString] | None:
|
154 |
+
print("preprocess", payload)
|
155 |
+
if payload is None:
|
156 |
+
return None
|
157 |
+
if self.file_count == "single":
|
158 |
+
if isinstance(payload, ListFiles):
|
159 |
+
return self._process_single_file(payload[0])
|
160 |
+
else:
|
161 |
+
return self._process_single_file(payload)
|
162 |
+
else:
|
163 |
+
if isinstance(payload, ListFiles):
|
164 |
+
return [self._process_single_file(f) for f in payload]
|
165 |
+
else:
|
166 |
+
return [self._process_single_file(payload)]
|
167 |
+
|
168 |
+
def postprocess(self, value: str | list[str] | None) -> ListFiles | FileData | None:
|
169 |
+
print("postprocess",value)
|
170 |
+
if value is None:
|
171 |
+
return None
|
172 |
+
|
173 |
+
|
174 |
+
if isinstance(value, list):
|
175 |
+
return ListFiles(
|
176 |
+
root=[
|
177 |
+
FileData(
|
178 |
+
path=file,
|
179 |
+
orig_name=Path(file).name,
|
180 |
+
size=Path(file).stat().st_size,
|
181 |
+
)
|
182 |
+
for file in value
|
183 |
+
]
|
184 |
+
)
|
185 |
+
else:
|
186 |
+
return FileData(
|
187 |
+
path=value,
|
188 |
+
orig_name=Path(value).name,
|
189 |
+
size=Path(value).stat().st_size,
|
190 |
+
)
|
191 |
+
|
192 |
+
def as_example(self, input_data: str | list | None) -> str:
|
193 |
+
if input_data is None:
|
194 |
+
return ""
|
195 |
+
elif isinstance(input_data, list):
|
196 |
+
return ", ".join([Path(file).name for file in input_data])
|
197 |
+
else:
|
198 |
+
return Path(input_data).name
|
199 |
+
|
200 |
+
def example_inputs(self) -> Any:
|
201 |
+
if self.file_count == "single":
|
202 |
+
return "/home/duerr/Dev/GradioBio/molecule3d/demo/sample_file.pdf"
|
203 |
+
else:
|
204 |
+
return [
|
205 |
+
"sample_file.pdf"
|
206 |
+
]
|
207 |
+
|
208 |
+
|
209 |
+
def change(self,
|
210 |
+
fn: Callable | None,
|
211 |
+
inputs: Component | Sequence[Component] | set[Component] | None = None,
|
212 |
+
outputs: Component | Sequence[Component] | None = None,
|
213 |
+
api_name: str | None | Literal[False] = None,
|
214 |
+
status_tracker: None = None,
|
215 |
+
scroll_to_output: bool = False,
|
216 |
+
show_progress: Literal["full", "minimal", "hidden"] = "full",
|
217 |
+
queue: bool | None = None,
|
218 |
+
batch: bool = False,
|
219 |
+
max_batch_size: int = 4,
|
220 |
+
preprocess: bool = True,
|
221 |
+
postprocess: bool = True,
|
222 |
+
cancels: dict[str, Any] | list[dict[str, Any]] | None = None,
|
223 |
+
every: float | None = None,
|
224 |
+
trigger_mode: Literal["once", "multiple", "always_last"] | None = None,
|
225 |
+
js: str | None = None,) -> Dependency:
|
226 |
+
"""
|
227 |
+
Parameters:
|
228 |
+
fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
|
229 |
+
inputs: List of gradio.components to use as inputs. If the function takes no inputs, this should be an empty list.
|
230 |
+
outputs: List of gradio.components to use as outputs. If the function returns no outputs, this should be an empty list.
|
231 |
+
api_name: Defines how the endpoint appears in the API docs. Can be a string, None, or False. If False, the endpoint will not be exposed in the api docs. If set to None, the endpoint will be exposed in the api docs as an unnamed endpoint, although this behavior will be changed in Gradio 4.0. If set to a string, the endpoint will be exposed in the api docs with the given name.
|
232 |
+
scroll_to_output: If True, will scroll to output component on completion
|
233 |
+
show_progress: If True, will show progress animation while pending
|
234 |
+
queue: If True, will place the request on the queue, if the queue has been enabled. If False, will not put this event on the queue, even if the queue has been enabled. If None, will use the queue setting of the gradio app.
|
235 |
+
batch: If True, then the function should process a batch of inputs, meaning that it should accept a list of input values for each parameter. The lists should be of equal length (and be up to length `max_batch_size`). The function is then *required* to return a tuple of lists (even if there is only 1 output component), with each list in the tuple corresponding to one output component.
|
236 |
+
max_batch_size: Maximum number of inputs to batch together if this is called from the queue (only relevant if batch=True)
|
237 |
+
preprocess: If False, will not run preprocessing of component data before running 'fn' (e.g. leaving it as a base64 string if this method is called with the `Image` component).
|
238 |
+
postprocess: If False, will not run postprocessing of component data before returning 'fn' output to the browser.
|
239 |
+
cancels: A list of other events to cancel when this listener is triggered. For example, setting cancels=[click_event] will cancel the click_event, where click_event is the return value of another components .click method. Functions that have not yet run (or generators that are iterating) will be cancelled, but functions that are currently running will be allowed to finish.
|
240 |
+
every: Run this event 'every' number of seconds while the client connection is open. Interpreted in seconds. Queue must be enabled.
|
241 |
+
trigger_mode: If "once" (default for all events except `.change()`) would not allow any submissions while an event is pending. If set to "multiple", unlimited submissions are allowed while pending, and "always_last" (default for `.change()` event) would allow a second submission after the pending event is complete.
|
242 |
+
js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
|
243 |
+
"""
|
244 |
+
...
|
245 |
+
|
246 |
+
def select(self,
|
247 |
+
fn: Callable | None,
|
248 |
+
inputs: Component | Sequence[Component] | set[Component] | None = None,
|
249 |
+
outputs: Component | Sequence[Component] | None = None,
|
250 |
+
api_name: str | None | Literal[False] = None,
|
251 |
+
status_tracker: None = None,
|
252 |
+
scroll_to_output: bool = False,
|
253 |
+
show_progress: Literal["full", "minimal", "hidden"] = "full",
|
254 |
+
queue: bool | None = None,
|
255 |
+
batch: bool = False,
|
256 |
+
max_batch_size: int = 4,
|
257 |
+
preprocess: bool = True,
|
258 |
+
postprocess: bool = True,
|
259 |
+
cancels: dict[str, Any] | list[dict[str, Any]] | None = None,
|
260 |
+
every: float | None = None,
|
261 |
+
trigger_mode: Literal["once", "multiple", "always_last"] | None = None,
|
262 |
+
js: str | None = None,) -> Dependency:
|
263 |
+
"""
|
264 |
+
Parameters:
|
265 |
+
fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
|
266 |
+
inputs: List of gradio.components to use as inputs. If the function takes no inputs, this should be an empty list.
|
267 |
+
outputs: List of gradio.components to use as outputs. If the function returns no outputs, this should be an empty list.
|
268 |
+
api_name: Defines how the endpoint appears in the API docs. Can be a string, None, or False. If False, the endpoint will not be exposed in the api docs. If set to None, the endpoint will be exposed in the api docs as an unnamed endpoint, although this behavior will be changed in Gradio 4.0. If set to a string, the endpoint will be exposed in the api docs with the given name.
|
269 |
+
scroll_to_output: If True, will scroll to output component on completion
|
270 |
+
show_progress: If True, will show progress animation while pending
|
271 |
+
queue: If True, will place the request on the queue, if the queue has been enabled. If False, will not put this event on the queue, even if the queue has been enabled. If None, will use the queue setting of the gradio app.
|
272 |
+
batch: If True, then the function should process a batch of inputs, meaning that it should accept a list of input values for each parameter. The lists should be of equal length (and be up to length `max_batch_size`). The function is then *required* to return a tuple of lists (even if there is only 1 output component), with each list in the tuple corresponding to one output component.
|
273 |
+
max_batch_size: Maximum number of inputs to batch together if this is called from the queue (only relevant if batch=True)
|
274 |
+
preprocess: If False, will not run preprocessing of component data before running 'fn' (e.g. leaving it as a base64 string if this method is called with the `Image` component).
|
275 |
+
postprocess: If False, will not run postprocessing of component data before returning 'fn' output to the browser.
|
276 |
+
cancels: A list of other events to cancel when this listener is triggered. For example, setting cancels=[click_event] will cancel the click_event, where click_event is the return value of another components .click method. Functions that have not yet run (or generators that are iterating) will be cancelled, but functions that are currently running will be allowed to finish.
|
277 |
+
every: Run this event 'every' number of seconds while the client connection is open. Interpreted in seconds. Queue must be enabled.
|
278 |
+
trigger_mode: If "once" (default for all events except `.change()`) would not allow any submissions while an event is pending. If set to "multiple", unlimited submissions are allowed while pending, and "always_last" (default for `.change()` event) would allow a second submission after the pending event is complete.
|
279 |
+
js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
|
280 |
+
"""
|
281 |
+
...
|
282 |
+
|
283 |
+
def clear(self,
|
284 |
+
fn: Callable | None,
|
285 |
+
inputs: Component | Sequence[Component] | set[Component] | None = None,
|
286 |
+
outputs: Component | Sequence[Component] | None = None,
|
287 |
+
api_name: str | None | Literal[False] = None,
|
288 |
+
status_tracker: None = None,
|
289 |
+
scroll_to_output: bool = False,
|
290 |
+
show_progress: Literal["full", "minimal", "hidden"] = "full",
|
291 |
+
queue: bool | None = None,
|
292 |
+
batch: bool = False,
|
293 |
+
max_batch_size: int = 4,
|
294 |
+
preprocess: bool = True,
|
295 |
+
postprocess: bool = True,
|
296 |
+
cancels: dict[str, Any] | list[dict[str, Any]] | None = None,
|
297 |
+
every: float | None = None,
|
298 |
+
trigger_mode: Literal["once", "multiple", "always_last"] | None = None,
|
299 |
+
js: str | None = None,) -> Dependency:
|
300 |
+
"""
|
301 |
+
Parameters:
|
302 |
+
fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
|
303 |
+
inputs: List of gradio.components to use as inputs. If the function takes no inputs, this should be an empty list.
|
304 |
+
outputs: List of gradio.components to use as outputs. If the function returns no outputs, this should be an empty list.
|
305 |
+
api_name: Defines how the endpoint appears in the API docs. Can be a string, None, or False. If False, the endpoint will not be exposed in the api docs. If set to None, the endpoint will be exposed in the api docs as an unnamed endpoint, although this behavior will be changed in Gradio 4.0. If set to a string, the endpoint will be exposed in the api docs with the given name.
|
306 |
+
scroll_to_output: If True, will scroll to output component on completion
|
307 |
+
show_progress: If True, will show progress animation while pending
|
308 |
+
queue: If True, will place the request on the queue, if the queue has been enabled. If False, will not put this event on the queue, even if the queue has been enabled. If None, will use the queue setting of the gradio app.
|
309 |
+
batch: If True, then the function should process a batch of inputs, meaning that it should accept a list of input values for each parameter. The lists should be of equal length (and be up to length `max_batch_size`). The function is then *required* to return a tuple of lists (even if there is only 1 output component), with each list in the tuple corresponding to one output component.
|
310 |
+
max_batch_size: Maximum number of inputs to batch together if this is called from the queue (only relevant if batch=True)
|
311 |
+
preprocess: If False, will not run preprocessing of component data before running 'fn' (e.g. leaving it as a base64 string if this method is called with the `Image` component).
|
312 |
+
postprocess: If False, will not run postprocessing of component data before returning 'fn' output to the browser.
|
313 |
+
cancels: A list of other events to cancel when this listener is triggered. For example, setting cancels=[click_event] will cancel the click_event, where click_event is the return value of another components .click method. Functions that have not yet run (or generators that are iterating) will be cancelled, but functions that are currently running will be allowed to finish.
|
314 |
+
every: Run this event 'every' number of seconds while the client connection is open. Interpreted in seconds. Queue must be enabled.
|
315 |
+
trigger_mode: If "once" (default for all events except `.change()`) would not allow any submissions while an event is pending. If set to "multiple", unlimited submissions are allowed while pending, and "always_last" (default for `.change()` event) would allow a second submission after the pending event is complete.
|
316 |
+
js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
|
317 |
+
"""
|
318 |
+
...
|
319 |
+
|
320 |
+
def upload(self,
|
321 |
+
fn: Callable | None,
|
322 |
+
inputs: Component | Sequence[Component] | set[Component] | None = None,
|
323 |
+
outputs: Component | Sequence[Component] | None = None,
|
324 |
+
api_name: str | None | Literal[False] = None,
|
325 |
+
status_tracker: None = None,
|
326 |
+
scroll_to_output: bool = False,
|
327 |
+
show_progress: Literal["full", "minimal", "hidden"] = "full",
|
328 |
+
queue: bool | None = None,
|
329 |
+
batch: bool = False,
|
330 |
+
max_batch_size: int = 4,
|
331 |
+
preprocess: bool = True,
|
332 |
+
postprocess: bool = True,
|
333 |
+
cancels: dict[str, Any] | list[dict[str, Any]] | None = None,
|
334 |
+
every: float | None = None,
|
335 |
+
trigger_mode: Literal["once", "multiple", "always_last"] | None = None,
|
336 |
+
js: str | None = None,) -> Dependency:
|
337 |
+
"""
|
338 |
+
Parameters:
|
339 |
+
fn: the function to call when this event is triggered. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component.
|
340 |
+
inputs: List of gradio.components to use as inputs. If the function takes no inputs, this should be an empty list.
|
341 |
+
outputs: List of gradio.components to use as outputs. If the function returns no outputs, this should be an empty list.
|
342 |
+
api_name: Defines how the endpoint appears in the API docs. Can be a string, None, or False. If False, the endpoint will not be exposed in the api docs. If set to None, the endpoint will be exposed in the api docs as an unnamed endpoint, although this behavior will be changed in Gradio 4.0. If set to a string, the endpoint will be exposed in the api docs with the given name.
|
343 |
+
scroll_to_output: If True, will scroll to output component on completion
|
344 |
+
show_progress: If True, will show progress animation while pending
|
345 |
+
queue: If True, will place the request on the queue, if the queue has been enabled. If False, will not put this event on the queue, even if the queue has been enabled. If None, will use the queue setting of the gradio app.
|
346 |
+
batch: If True, then the function should process a batch of inputs, meaning that it should accept a list of input values for each parameter. The lists should be of equal length (and be up to length `max_batch_size`). The function is then *required* to return a tuple of lists (even if there is only 1 output component), with each list in the tuple corresponding to one output component.
|
347 |
+
max_batch_size: Maximum number of inputs to batch together if this is called from the queue (only relevant if batch=True)
|
348 |
+
preprocess: If False, will not run preprocessing of component data before running 'fn' (e.g. leaving it as a base64 string if this method is called with the `Image` component).
|
349 |
+
postprocess: If False, will not run postprocessing of component data before returning 'fn' output to the browser.
|
350 |
+
cancels: A list of other events to cancel when this listener is triggered. For example, setting cancels=[click_event] will cancel the click_event, where click_event is the return value of another components .click method. Functions that have not yet run (or generators that are iterating) will be cancelled, but functions that are currently running will be allowed to finish.
|
351 |
+
every: Run this event 'every' number of seconds while the client connection is open. Interpreted in seconds. Queue must be enabled.
|
352 |
+
trigger_mode: If "once" (default for all events except `.change()`) would not allow any submissions while an event is pending. If set to "multiple", unlimited submissions are allowed while pending, and "always_last" (default for `.change()` event) would allow a second submission after the pending event is complete.
|
353 |
+
js: Optional frontend js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components.
|
354 |
+
"""
|
355 |
+
...
|
src/backend/gradio_molecule3d/templates/component/__vite-browser-external-2447137e.js
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
const e = {};
|
2 |
+
export {
|
3 |
+
e as default
|
4 |
+
};
|
src/backend/gradio_molecule3d/templates/component/index.js
ADDED
The diff for this file is too large to render.
See raw diff
|
|
src/backend/gradio_molecule3d/templates/component/style.css
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
.block.svelte-1t38q2d{position:relative;margin:0;box-shadow:var(--block-shadow);border-width:var(--block-border-width);border-color:var(--block-border-color);border-radius:var(--block-radius);background:var(--block-background-fill);width:100%;line-height:var(--line-sm)}.block.border_focus.svelte-1t38q2d{border-color:var(--color-accent)}.padded.svelte-1t38q2d{padding:var(--block-padding)}.hidden.svelte-1t38q2d{display:none}.hide-container.svelte-1t38q2d{margin:0;box-shadow:none;--block-border-width:0;background:transparent;padding:0;overflow:visible}div.svelte-1hnfib2{margin-bottom:var(--spacing-lg);color:var(--block-info-text-color);font-weight:var(--block-info-text-weight);font-size:var(--block-info-text-size);line-height:var(--line-sm)}span.has-info.svelte-22c38v{margin-bottom:var(--spacing-xs)}span.svelte-22c38v:not(.has-info){margin-bottom:var(--spacing-lg)}span.svelte-22c38v{display:inline-block;position:relative;z-index:var(--layer-4);border:solid var(--block-title-border-width) var(--block-title-border-color);border-radius:var(--block-title-radius);background:var(--block-title-background-fill);padding:var(--block-title-padding);color:var(--block-title-text-color);font-weight:var(--block-title-text-weight);font-size:var(--block-title-text-size);line-height:var(--line-sm)}.hide.svelte-22c38v{margin:0;height:0}label.svelte-9gxdi0{display:inline-flex;align-items:center;z-index:var(--layer-2);box-shadow:var(--block-label-shadow);border:var(--block-label-border-width) solid var(--border-color-primary);border-top:none;border-left:none;border-radius:var(--block-label-radius);background:var(--block-label-background-fill);padding:var(--block-label-padding);pointer-events:none;color:var(--block-label-text-color);font-weight:var(--block-label-text-weight);font-size:var(--block-label-text-size);line-height:var(--line-sm)}.gr-group label.svelte-9gxdi0{border-top-left-radius:0}label.float.svelte-9gxdi0{position:absolute;top:var(--block-label-margin);left:var(--block-label-margin)}label.svelte-9gxdi0:not(.float){position:static;margin-top:var(--block-label-margin);margin-left:var(--block-label-margin)}.hide.svelte-9gxdi0{height:0}span.svelte-9gxdi0{opacity:.8;margin-right:var(--size-2);width:calc(var(--block-label-text-size) - 1px);height:calc(var(--block-label-text-size) - 1px)}.hide-label.svelte-9gxdi0{box-shadow:none;border-width:0;background:transparent;overflow:visible}button.svelte-xtz2g8{display:flex;justify-content:center;align-items:center;gap:1px;z-index:var(--layer-2);border-radius:var(--radius-sm);color:var(--block-label-text-color);border:1px solid transparent}.padded.svelte-xtz2g8{padding:2px;background:var(--background-fill-primary);box-shadow:var(--shadow-drop);border:1px solid var(--button-secondary-border-color)}button.svelte-xtz2g8:hover{cursor:pointer;color:var(--color-accent)}.padded.svelte-xtz2g8:hover{border:2px solid var(--button-secondary-border-color-hover);padding:1px;color:var(--block-label-text-color)}span.svelte-xtz2g8{padding:0 1px;font-size:10px}div.svelte-xtz2g8{padding:2px;display:flex;align-items:flex-end}.small.svelte-xtz2g8{width:14px;height:14px}.large.svelte-xtz2g8{width:22px;height:22px}.pending.svelte-xtz2g8{animation:svelte-xtz2g8-flash .5s infinite}@keyframes svelte-xtz2g8-flash{0%{opacity:.5}50%{opacity:1}to{opacity:.5}}.empty.svelte-3w3rth{display:flex;justify-content:center;align-items:center;margin-top:calc(0px - var(--size-6));height:var(--size-full)}.icon.svelte-3w3rth{opacity:.5;height:var(--size-5);color:var(--body-text-color)}.small.svelte-3w3rth{min-height:calc(var(--size-32) - 20px)}.large.svelte-3w3rth{min-height:calc(var(--size-64) - 20px)}.unpadded_box.svelte-3w3rth{margin-top:0}.small_parent.svelte-3w3rth{min-height:100%!important}.dropdown-arrow.svelte-145leq6{fill:currentColor}.wrap.svelte-kzcjhc{display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:var(--size-60);color:var(--block-label-text-color);line-height:var(--line-md);height:100%;padding-top:var(--size-3)}.or.svelte-kzcjhc{color:var(--body-text-color-subdued);display:flex}.icon-wrap.svelte-kzcjhc{width:30px;margin-bottom:var(--spacing-lg)}@media (--screen-md){.wrap.svelte-kzcjhc{font-size:var(--text-lg)}}.hovered.svelte-kzcjhc{color:var(--color-accent)}div.svelte-1nba87b{border-top:1px solid transparent;display:flex;max-height:100%;justify-content:center;gap:var(--spacing-sm);height:auto;align-items:flex-end;box-shadow:var(--shadow-drop);padding:var(--spacing-xl) 0;color:var(--block-label-text-color);flex-shrink:0;width:95%}.show_border.svelte-1nba87b{border-top:1px solid var(--block-border-color);margin-top:var(--spacing-xxl)}td.svelte-usqupg.svelte-usqupg{width:45%}td.svelte-usqupg.svelte-usqupg:last-child{width:10%;text-align:right}.file-preview-holder.svelte-usqupg.svelte-usqupg{overflow-x:auto;overflow-y:auto}.file-preview.svelte-usqupg.svelte-usqupg{width:var(--size-full);max-height:var(--size-60);overflow-y:auto;margin-top:var(--size-1);color:var(--body-text-color)}.file.svelte-usqupg.svelte-usqupg{width:var(--size-full)}.file.svelte-usqupg>.svelte-usqupg{padding:var(--size-1) var(--size-2-5)}.download.svelte-usqupg.svelte-usqupg:hover{text-decoration:underline}.download.svelte-usqupg>a.svelte-usqupg{color:var(--link-text-color)}.download.svelte-usqupg>a.svelte-usqupg:hover{color:var(--link-text-color-hover)}.download.svelte-usqupg>a.svelte-usqupg:visited{color:var(--link-text-color-visited)}.download.svelte-usqupg>a.svelte-usqupg:active{color:var(--link-text-color-active)}.selectable.svelte-usqupg.svelte-usqupg{cursor:pointer}tbody.svelte-usqupg>tr.svelte-usqupg:nth-child(2n){background:var(--block-background-fill)}tbody.svelte-usqupg>tr.svelte-usqupg:nth-child(odd){background:var(--table-odd-background-fill)}.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5,.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:before,.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:before,.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:after{--tw-content:""}h5.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{font-size:inherit;font-weight:inherit}button.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5,input.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5,select.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5,select.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{text-transform:none}button.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5,[type=button].svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{-webkit-appearance:button;background-color:transparent;background-image:none}.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:-moz-focusring{outline:auto}.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:-moz-ui-invalid{box-shadow:none}.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5::-webkit-inner-spin-button,.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5::-webkit-outer-spin-button{height:auto}.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5::-webkit-search-decoration{-webkit-appearance:none}.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}h5.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{margin:0}input.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5::-moz-placeholder{opacity:1;color:#9ca3af}input.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5::placeholder{opacity:1;color:#9ca3af}button.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{cursor:pointer}.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:disabled{cursor:default}svg.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{display:block;vertical-align:middle}.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5,.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:before,.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:after{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgb(59 130 246 / .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.sr-only.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.absolute.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{position:absolute}.relative.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{position:relative}.bottom-0.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{bottom:0}.left-0.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{left:0}.right-0.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{right:0}.right-2\.5.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{right:.625rem}.top-0.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{top:0}.top-2\.5.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{top:.625rem}.z-10.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{z-index:10}.z-50.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{z-index:50}.my-2.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{margin-top:.5rem;margin-bottom:.5rem}.mb-2.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{margin-bottom:.5rem}.mb-4.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{margin-bottom:1rem}.mr-2.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{margin-right:.5rem}.ml-2.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{margin-left:.5rem}.mr-5.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{margin-right:1.25rem}.mt-2.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{margin-top:.5rem}.block.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{display:block}.flex.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{display:flex}.inline-flex.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{display:inline-flex}.h-2.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{height:.5rem}.h-5.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{height:1.25rem}.h-6.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{height:1.5rem}.h-8.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{height:2rem}.h-full.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{height:100%}.w-1\/2.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{width:50%}.w-1\/3.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{width:33.333333%}.w-11.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{width:2.75rem}.w-2\/3.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{width:66.666667%}.w-5.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{width:1.25rem}.w-8.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{width:2rem}.w-80.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{width:20rem}.w-full.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{width:100%}.rotate-90.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-rotate:90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.appearance-none.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{-webkit-appearance:none;-moz-appearance:none;appearance:none}.flex-col.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{flex-direction:column}.flex-wrap.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{flex-wrap:wrap}.items-center.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{align-items:center}.justify-center.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{justify-content:center}.gap-px.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{gap:1px}.space-x-1.svelte-1ib1ln5>.svelte-1ib1ln5:not([hidden])~.svelte-1ib1ln5:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2.svelte-1ib1ln5>.svelte-1ib1ln5:not([hidden])~.svelte-1ib1ln5:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.divide-x.svelte-1ib1ln5>.svelte-1ib1ln5:not([hidden])~.svelte-1ib1ln5:not([hidden]){--tw-divide-x-reverse:0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.divide-y.svelte-1ib1ln5>.svelte-1ib1ln5:not([hidden])~.svelte-1ib1ln5:not([hidden]){--tw-divide-y-reverse:0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.overflow-hidden.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{overflow:hidden}.overflow-y-auto.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{overflow-y:auto}.rounded-full.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{border-radius:9999px}.rounded-lg.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{border-radius:.5rem}.border.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{border-width:1px}.border-4.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{border-width:4px}.border-b.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{border-bottom-width:1px}.border-l.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{border-left-width:1px}.border-t.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{border-top-width:1px}.border-gray-200.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-border-opacity:1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-border-opacity:1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-400.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-border-opacity:1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.border-white.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-border-opacity:1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.bg-black.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-bg-opacity:1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-600.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-bg-opacity:1;background-color:rgb(37 99 235 / var(--tw-bg-opacity))}.bg-cyan-600.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-bg-opacity:1;background-color:rgb(8 145 178 / var(--tw-bg-opacity))}.bg-gray-100.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-bg-opacity:1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-bg-opacity:1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-50.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-bg-opacity:1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-600.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-bg-opacity:1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-green-600.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-bg-opacity:1;background-color:rgb(22 163 74 / var(--tw-bg-opacity))}.bg-orange-600.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-bg-opacity:1;background-color:rgb(234 88 12 / var(--tw-bg-opacity))}.bg-red-600.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-bg-opacity:1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.bg-transparent.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{background-color:transparent}.bg-white.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-1.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{padding:.25rem}.p-1\.5.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{padding:.375rem}.p-2.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{padding:.5rem}.p-2\.5.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{padding:.625rem}.p-4.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{padding:1rem}.px-4.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{padding-left:1rem;padding-right:1rem}.py-2.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{padding-top:.5rem;padding-bottom:.5rem}.py-4.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{padding-top:1rem;padding-bottom:1rem}.text-center.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{text-align:center}.text-base.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{font-size:1rem;line-height:1.5rem}.font-semibold.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{font-weight:600}.text-gray-400.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-600.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-text-opacity:1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-text-opacity:1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-orange-600.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-text-opacity:1;color:rgb(234 88 12 / var(--tw-text-opacity))}.transition-transform.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.sr-only.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{clip:rect(0,0,0,0);position:absolute;margin:-1px;border-width:0;padding:0;width:1px;height:1px;overflow:hidden;white-space:nowrap}.after\:absolute.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:after{content:var(--tw-content);position:absolute}.after\:left-\[2px\].svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:after{content:var(--tw-content);left:2px}.after\:top-0\.5.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:after{content:var(--tw-content);top:.125rem}.after\:h-5.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:after{content:var(--tw-content);height:1.25rem}.after\:w-5.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:after{content:var(--tw-content);width:1.25rem}.after\:rounded-full.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:after{content:var(--tw-content);border-radius:9999px}.after\:border.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:after{content:var(--tw-content);border-width:1px}.after\:border-gray-300.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:after{content:var(--tw-content);--tw-border-opacity:1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.after\:bg-white.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:after{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.after\:transition-all.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:after{content:var(--tw-content);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.after\:content-\[\'\'\].svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:after{--tw-content:"";content:var(--tw-content)}.hover\:bg-gray-200.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:hover{--tw-bg-opacity:1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\:text-gray-600.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:hover{--tw-text-opacity:1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\:text-gray-900.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:hover{--tw-text-opacity:1;color:rgb(17 24 39 / var(--tw-text-opacity))}.focus\:border-blue-500.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:focus{--tw-border-opacity:1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.focus\:ring-blue-500.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246 / var(--tw-ring-opacity))}.peer.svelte-1ib1ln5:checked~.peer-checked\:bg-orange-400.svelte-1ib1ln5.svelte-1ib1ln5{--tw-bg-opacity:1;background-color:rgb(251 146 60 / var(--tw-bg-opacity))}.peer.svelte-1ib1ln5:checked~.peer-checked\:after\:translate-x-full.svelte-1ib1ln5.svelte-1ib1ln5:after{content:var(--tw-content);--tw-translate-x:100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.peer.svelte-1ib1ln5:checked~.peer-checked\:after\:border-white.svelte-1ib1ln5.svelte-1ib1ln5:after{content:var(--tw-content);--tw-border-opacity:1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.peer.svelte-1ib1ln5:focus~.peer-focus\:ring-4.svelte-1ib1ln5.svelte-1ib1ln5{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.peer.svelte-1ib1ln5:focus~.peer-focus\:ring-orange-300.svelte-1ib1ln5.svelte-1ib1ln5{--tw-ring-opacity:1;--tw-ring-color:rgb(253 186 116 / var(--tw-ring-opacity))}@media (prefers-color-scheme: dark){.dark\:border-gray-600.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-border-opacity:1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.dark\:bg-gray-700.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-bg-opacity:1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.dark\:bg-gray-800.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-bg-opacity:1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark\:text-gray-400.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-text-opacity:1;color:rgb(156 163 175 / var(--tw-text-opacity))}.dark\:text-white.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:placeholder-gray-400.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.dark\:placeholder-gray-400.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5::placeholder{--tw-placeholder-opacity:1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.dark\:hover\:bg-gray-600.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:hover{--tw-bg-opacity:1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.dark\:hover\:text-white.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:hover{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity))}.dark\:focus\:border-blue-500.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:focus{--tw-border-opacity:1;border-color:rgb(59 130 246 / var(--tw-border-opacity))}.dark\:focus\:ring-blue-500.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(59 130 246 / var(--tw-ring-opacity))}.peer.svelte-1ib1ln5:focus~.dark\:peer-focus\:ring-orange-800.svelte-1ib1ln5.svelte-1ib1ln5{--tw-ring-opacity:1;--tw-ring-color:rgb(154 52 18 / var(--tw-ring-opacity))}}.minh.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{min-height:40vh;height:50vh}.-top-1.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{top:-.25rem}.left-6.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{left:1.5rem}.h-4.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{height:1rem}.w-4.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{width:1rem}.w-max.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{width:max-content}.cursor-pointer.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{cursor:pointer}.rounded.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{border-radius:.25rem}.bg-gray-900.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-bg-opacity:1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.fill-current.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{fill:currentColor}.px-2.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{padding-left:.5rem;padding-right:.5rem}.py-1.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{padding-top:.25rem;padding-bottom:.25rem}.text-sm.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{font-size:.875rem;line-height:1.25rem}.font-medium.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{font-weight:500}.text-gray-50.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-text-opacity:1;color:rgb(249 250 251 / var(--tw-text-opacity))}.text-gray-500.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-text-opacity:1;color:rgb(107 114 128 / var(--tw-text-opacity))}.opacity-0.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{opacity:0}.opacity-100.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{opacity:1}.shadow.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.transition-opacity.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\:text-orange-600.svelte-1ib1ln5.svelte-1ib1ln5.svelte-1ib1ln5:hover{--tw-text-opacity:1;color:rgb(234 88 12 / var(--tw-text-opacity))}button.svelte-18dlsnh{cursor:pointer;width:var(--size-full);height:var(--size-full)}.hidden.svelte-18dlsnh{display:none;height:0;position:absolute}.center.svelte-18dlsnh{display:flex;justify-content:center}.flex.svelte-18dlsnh{display:flex;justify-content:center;align-items:center}input.svelte-18dlsnh{display:none}div.svelte-1wj0ocy{display:flex;top:var(--size-2);right:var(--size-2);justify-content:flex-end;gap:var(--spacing-sm);z-index:var(--layer-1)}.not-absolute.svelte-1wj0ocy{margin:var(--size-1)}.py.svelte-18kpwjt{padding:10px 0}.btn.svelte-18kpwjt{margin:0 5px;padding:3px 15px;border:var(--button-border-width) solid var(--button-secondary-border-color);background:var(--button-secondary-background-fill);color:var(--button-secondary-text-color);border-radius:var(--button-large-radius);padding:var(--button-large-padding);font-weight:var(--button-large-text-weight);font-size:var(--button-large-text-size);cursor:pointer}.btn.svelte-18kpwjt:hover{border-color:var(--button-secondary-border-color-hover);background:var(--button-secondary-background-fill-hover);color:var(--button-secondary-text-color-hover);box-shadow:var(--button-shadow-hover)}.or.svelte-18kpwjt{color:var(--body-text-color-subdued);text-align:center;display:block}.wfull.svelte-18kpwjt{width:100%}.mt-2.svelte-18kpwjt{margin-top:2rem}.input.svelte-18kpwjt{box-shadow:var(--input-shadow);background:var(--input-background-fill);border:var(--input-border-width) solid var(--input-border-color);border-radius:var(--input-radius);margin:0 5px}.select.svelte-18kpwjt{outline:none;border:none}.flex.svelte-18kpwjt{display:flex;justify-content:space-between}.inp.svelte-18kpwjt{width:100%;border:0 #fff!important;outline:none!important}.inp.svelte-18kpwjt:focus,.inp.svelte-18kpwjt:hover{border:0!important;outline:none!important}.text-center.svelte-18kpwjt{text-align:center}svg.svelte-43sxxs.svelte-43sxxs{width:var(--size-20);height:var(--size-20)}svg.svelte-43sxxs path.svelte-43sxxs{fill:var(--loader-color)}div.svelte-43sxxs.svelte-43sxxs{z-index:var(--layer-2)}.margin.svelte-43sxxs.svelte-43sxxs{margin:var(--size-4)}.wrap.svelte-14miwb5.svelte-14miwb5{display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:var(--layer-5);transition:opacity .1s ease-in-out;border-radius:var(--block-radius);background:var(--block-background-fill);padding:0 var(--size-6);max-height:var(--size-screen-h);overflow:hidden;pointer-events:none}.wrap.center.svelte-14miwb5.svelte-14miwb5{top:0;right:0;left:0}.wrap.default.svelte-14miwb5.svelte-14miwb5{top:0;right:0;bottom:0;left:0}.hide.svelte-14miwb5.svelte-14miwb5{opacity:0;pointer-events:none}.generating.svelte-14miwb5.svelte-14miwb5{animation:svelte-14miwb5-pulse 2s cubic-bezier(.4,0,.6,1) infinite;border:2px solid var(--color-accent);background:transparent}.translucent.svelte-14miwb5.svelte-14miwb5{background:none}@keyframes svelte-14miwb5-pulse{0%,to{opacity:1}50%{opacity:.5}}.loading.svelte-14miwb5.svelte-14miwb5{z-index:var(--layer-2);color:var(--body-text-color)}.eta-bar.svelte-14miwb5.svelte-14miwb5{position:absolute;top:0;right:0;bottom:0;left:0;transform-origin:left;opacity:.8;z-index:var(--layer-1);transition:10ms;background:var(--background-fill-secondary)}.progress-bar-wrap.svelte-14miwb5.svelte-14miwb5{border:1px solid var(--border-color-primary);background:var(--background-fill-primary);width:55.5%;height:var(--size-4)}.progress-bar.svelte-14miwb5.svelte-14miwb5{transform-origin:left;background-color:var(--loader-color);width:var(--size-full);height:var(--size-full)}.progress-level.svelte-14miwb5.svelte-14miwb5{display:flex;flex-direction:column;align-items:center;gap:1;z-index:var(--layer-2);width:var(--size-full)}.progress-level-inner.svelte-14miwb5.svelte-14miwb5{margin:var(--size-2) auto;color:var(--body-text-color);font-size:var(--text-sm);font-family:var(--font-mono)}.meta-text.svelte-14miwb5.svelte-14miwb5{position:absolute;top:0;right:0;z-index:var(--layer-2);padding:var(--size-1) var(--size-2);font-size:var(--text-sm);font-family:var(--font-mono)}.meta-text-center.svelte-14miwb5.svelte-14miwb5{display:flex;position:absolute;top:0;right:0;justify-content:center;align-items:center;transform:translateY(var(--size-6));z-index:var(--layer-2);padding:var(--size-1) var(--size-2);font-size:var(--text-sm);font-family:var(--font-mono);text-align:center}.error.svelte-14miwb5.svelte-14miwb5{box-shadow:var(--shadow-drop);border:solid 1px var(--error-border-color);border-radius:var(--radius-full);background:var(--error-background-fill);padding-right:var(--size-4);padding-left:var(--size-4);color:var(--error-text-color);font-weight:var(--weight-semibold);font-size:var(--text-lg);line-height:var(--line-lg);font-family:var(--font)}.minimal.svelte-14miwb5 .progress-text.svelte-14miwb5{background:var(--block-background-fill)}.border.svelte-14miwb5.svelte-14miwb5{border:1px solid var(--border-color-primary)}.toast-body.svelte-solcu7{display:flex;position:relative;right:0;left:0;align-items:center;margin:var(--size-6) var(--size-4);margin:auto;border-radius:var(--container-radius);overflow:hidden;pointer-events:auto}.toast-body.error.svelte-solcu7{border:1px solid var(--color-red-700);background:var(--color-red-50)}.dark .toast-body.error.svelte-solcu7{border:1px solid var(--color-red-500);background-color:var(--color-grey-950)}.toast-body.warning.svelte-solcu7{border:1px solid var(--color-yellow-700);background:var(--color-yellow-50)}.dark .toast-body.warning.svelte-solcu7{border:1px solid var(--color-yellow-500);background-color:var(--color-grey-950)}.toast-body.info.svelte-solcu7{border:1px solid var(--color-grey-700);background:var(--color-grey-50)}.dark .toast-body.info.svelte-solcu7{border:1px solid var(--color-grey-500);background-color:var(--color-grey-950)}.toast-title.svelte-solcu7{display:flex;align-items:center;font-weight:var(--weight-bold);font-size:var(--text-lg);line-height:var(--line-sm);text-transform:capitalize}.toast-title.error.svelte-solcu7{color:var(--color-red-700)}.dark .toast-title.error.svelte-solcu7{color:var(--color-red-50)}.toast-title.warning.svelte-solcu7{color:var(--color-yellow-700)}.dark .toast-title.warning.svelte-solcu7{color:var(--color-yellow-50)}.toast-title.info.svelte-solcu7{color:var(--color-grey-700)}.dark .toast-title.info.svelte-solcu7{color:var(--color-grey-50)}.toast-close.svelte-solcu7{margin:0 var(--size-3);border-radius:var(--size-3);padding:0px var(--size-1-5);font-size:var(--size-5);line-height:var(--size-5)}.toast-close.error.svelte-solcu7{color:var(--color-red-700)}.dark .toast-close.error.svelte-solcu7{color:var(--color-red-500)}.toast-close.warning.svelte-solcu7{color:var(--color-yellow-700)}.dark .toast-close.warning.svelte-solcu7{color:var(--color-yellow-500)}.toast-close.info.svelte-solcu7{color:var(--color-grey-700)}.dark .toast-close.info.svelte-solcu7{color:var(--color-grey-500)}.toast-text.svelte-solcu7{font-size:var(--text-lg)}.toast-text.error.svelte-solcu7{color:var(--color-red-700)}.dark .toast-text.error.svelte-solcu7{color:var(--color-red-50)}.toast-text.warning.svelte-solcu7{color:var(--color-yellow-700)}.dark .toast-text.warning.svelte-solcu7{color:var(--color-yellow-50)}.toast-text.info.svelte-solcu7{color:var(--color-grey-700)}.dark .toast-text.info.svelte-solcu7{color:var(--color-grey-50)}.toast-details.svelte-solcu7{margin:var(--size-3) var(--size-3) var(--size-3) 0;width:100%}.toast-icon.svelte-solcu7{display:flex;position:absolute;position:relative;flex-shrink:0;justify-content:center;align-items:center;margin:var(--size-2);border-radius:var(--radius-full);padding:var(--size-1);padding-left:calc(var(--size-1) - 1px);width:35px;height:35px}.toast-icon.error.svelte-solcu7{color:var(--color-red-700)}.dark .toast-icon.error.svelte-solcu7{color:var(--color-red-500)}.toast-icon.warning.svelte-solcu7{color:var(--color-yellow-700)}.dark .toast-icon.warning.svelte-solcu7{color:var(--color-yellow-500)}.toast-icon.info.svelte-solcu7{color:var(--color-grey-700)}.dark .toast-icon.info.svelte-solcu7{color:var(--color-grey-500)}@keyframes svelte-solcu7-countdown{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.timer.svelte-solcu7{position:absolute;bottom:0;left:0;transform-origin:0 0;animation:svelte-solcu7-countdown 10s linear forwards;width:100%;height:var(--size-1)}.timer.error.svelte-solcu7{background:var(--color-red-700)}.dark .timer.error.svelte-solcu7{background:var(--color-red-500)}.timer.warning.svelte-solcu7{background:var(--color-yellow-700)}.dark .timer.warning.svelte-solcu7{background:var(--color-yellow-500)}.timer.info.svelte-solcu7{background:var(--color-grey-700)}.dark .timer.info.svelte-solcu7{background:var(--color-grey-500)}.toast-wrap.svelte-gatr8h{display:flex;position:fixed;top:var(--size-4);right:var(--size-4);flex-direction:column;align-items:end;gap:var(--size-2);z-index:var(--layer-top);width:calc(100% - var(--size-8))}@media (--screen-sm){.toast-wrap.svelte-gatr8h{width:calc(var(--size-96) + var(--size-10))}}div.svelte-1hgn91n{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gallery.svelte-1hgn91n{display:flex;align-items:center;cursor:pointer;padding:var(--size-1) var(--size-2);text-align:left}.sr-only.svelte-1j3z0by{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.mb-4.svelte-1j3z0by{margin-bottom:1rem}.ml-4.svelte-1j3z0by{margin-left:1rem}.mr-3.svelte-1j3z0by{margin-right:.75rem}.mt-1\.5.svelte-1j3z0by{margin-top:.375rem}.mt-\[2px\].svelte-1j3z0by{margin-top:2px}.inline.svelte-1j3z0by{display:inline}.flex.svelte-1j3z0by{display:flex}.h-4.svelte-1j3z0by{height:1rem}.w-4.svelte-1j3z0by{width:1rem}.flex-shrink-0.svelte-1j3z0by{flex-shrink:0}.list-inside.svelte-1j3z0by{list-style-position:inside}.list-disc.svelte-1j3z0by{list-style-type:disc}.rounded-lg.svelte-1j3z0by{border-radius:.5rem}.bg-red-50.svelte-1j3z0by{--tw-bg-opacity:1;background-color:rgb(254 242 242 / var(--tw-bg-opacity))}.m-2.svelte-1j3z0by{margin:.5rem}.p-4.svelte-1j3z0by{padding:1rem}.text-sm.svelte-1j3z0by{font-size:.875rem;line-height:1.25rem}.font-medium.svelte-1j3z0by{font-weight:500}.text-red-800.svelte-1j3z0by{--tw-text-opacity:1;color:rgb(153 27 27 / var(--tw-text-opacity))}@media (prefers-color-scheme: dark){.dark\:bg-gray-800.svelte-1j3z0by{--tw-bg-opacity:1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.dark\:text-red-400.svelte-1j3z0by{--tw-text-opacity:1;color:rgb(248 113 113 / var(--tw-text-opacity))}}
|
src/backend/gradio_molecule3d/templates/component/wrapper-98f94c21-f7f71f53.js
ADDED
@@ -0,0 +1,2449 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import S from "./__vite-browser-external-2447137e.js";
|
2 |
+
function z(s) {
|
3 |
+
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
4 |
+
}
|
5 |
+
function gt(s) {
|
6 |
+
if (s.__esModule)
|
7 |
+
return s;
|
8 |
+
var e = s.default;
|
9 |
+
if (typeof e == "function") {
|
10 |
+
var t = function r() {
|
11 |
+
return this instanceof r ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments);
|
12 |
+
};
|
13 |
+
t.prototype = e.prototype;
|
14 |
+
} else
|
15 |
+
t = {};
|
16 |
+
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(s).forEach(function(r) {
|
17 |
+
var i = Object.getOwnPropertyDescriptor(s, r);
|
18 |
+
Object.defineProperty(t, r, i.get ? i : {
|
19 |
+
enumerable: !0,
|
20 |
+
get: function() {
|
21 |
+
return s[r];
|
22 |
+
}
|
23 |
+
});
|
24 |
+
}), t;
|
25 |
+
}
|
26 |
+
const { Duplex: yt } = S;
|
27 |
+
function Oe(s) {
|
28 |
+
s.emit("close");
|
29 |
+
}
|
30 |
+
function vt() {
|
31 |
+
!this.destroyed && this._writableState.finished && this.destroy();
|
32 |
+
}
|
33 |
+
function Qe(s) {
|
34 |
+
this.removeListener("error", Qe), this.destroy(), this.listenerCount("error") === 0 && this.emit("error", s);
|
35 |
+
}
|
36 |
+
function St(s, e) {
|
37 |
+
let t = !0;
|
38 |
+
const r = new yt({
|
39 |
+
...e,
|
40 |
+
autoDestroy: !1,
|
41 |
+
emitClose: !1,
|
42 |
+
objectMode: !1,
|
43 |
+
writableObjectMode: !1
|
44 |
+
});
|
45 |
+
return s.on("message", function(n, o) {
|
46 |
+
const l = !o && r._readableState.objectMode ? n.toString() : n;
|
47 |
+
r.push(l) || s.pause();
|
48 |
+
}), s.once("error", function(n) {
|
49 |
+
r.destroyed || (t = !1, r.destroy(n));
|
50 |
+
}), s.once("close", function() {
|
51 |
+
r.destroyed || r.push(null);
|
52 |
+
}), r._destroy = function(i, n) {
|
53 |
+
if (s.readyState === s.CLOSED) {
|
54 |
+
n(i), process.nextTick(Oe, r);
|
55 |
+
return;
|
56 |
+
}
|
57 |
+
let o = !1;
|
58 |
+
s.once("error", function(f) {
|
59 |
+
o = !0, n(f);
|
60 |
+
}), s.once("close", function() {
|
61 |
+
o || n(i), process.nextTick(Oe, r);
|
62 |
+
}), t && s.terminate();
|
63 |
+
}, r._final = function(i) {
|
64 |
+
if (s.readyState === s.CONNECTING) {
|
65 |
+
s.once("open", function() {
|
66 |
+
r._final(i);
|
67 |
+
});
|
68 |
+
return;
|
69 |
+
}
|
70 |
+
s._socket !== null && (s._socket._writableState.finished ? (i(), r._readableState.endEmitted && r.destroy()) : (s._socket.once("finish", function() {
|
71 |
+
i();
|
72 |
+
}), s.close()));
|
73 |
+
}, r._read = function() {
|
74 |
+
s.isPaused && s.resume();
|
75 |
+
}, r._write = function(i, n, o) {
|
76 |
+
if (s.readyState === s.CONNECTING) {
|
77 |
+
s.once("open", function() {
|
78 |
+
r._write(i, n, o);
|
79 |
+
});
|
80 |
+
return;
|
81 |
+
}
|
82 |
+
s.send(i, o);
|
83 |
+
}, r.on("end", vt), r.on("error", Qe), r;
|
84 |
+
}
|
85 |
+
var Et = St;
|
86 |
+
const Vs = /* @__PURE__ */ z(Et);
|
87 |
+
var te = { exports: {} }, U = {
|
88 |
+
BINARY_TYPES: ["nodebuffer", "arraybuffer", "fragments"],
|
89 |
+
EMPTY_BUFFER: Buffer.alloc(0),
|
90 |
+
GUID: "258EAFA5-E914-47DA-95CA-C5AB0DC85B11",
|
91 |
+
kForOnEventAttribute: Symbol("kIsForOnEventAttribute"),
|
92 |
+
kListener: Symbol("kListener"),
|
93 |
+
kStatusCode: Symbol("status-code"),
|
94 |
+
kWebSocket: Symbol("websocket"),
|
95 |
+
NOOP: () => {
|
96 |
+
}
|
97 |
+
}, bt, xt;
|
98 |
+
const { EMPTY_BUFFER: kt } = U, Se = Buffer[Symbol.species];
|
99 |
+
function wt(s, e) {
|
100 |
+
if (s.length === 0)
|
101 |
+
return kt;
|
102 |
+
if (s.length === 1)
|
103 |
+
return s[0];
|
104 |
+
const t = Buffer.allocUnsafe(e);
|
105 |
+
let r = 0;
|
106 |
+
for (let i = 0; i < s.length; i++) {
|
107 |
+
const n = s[i];
|
108 |
+
t.set(n, r), r += n.length;
|
109 |
+
}
|
110 |
+
return r < e ? new Se(t.buffer, t.byteOffset, r) : t;
|
111 |
+
}
|
112 |
+
function Je(s, e, t, r, i) {
|
113 |
+
for (let n = 0; n < i; n++)
|
114 |
+
t[r + n] = s[n] ^ e[n & 3];
|
115 |
+
}
|
116 |
+
function et(s, e) {
|
117 |
+
for (let t = 0; t < s.length; t++)
|
118 |
+
s[t] ^= e[t & 3];
|
119 |
+
}
|
120 |
+
function Ot(s) {
|
121 |
+
return s.length === s.buffer.byteLength ? s.buffer : s.buffer.slice(s.byteOffset, s.byteOffset + s.length);
|
122 |
+
}
|
123 |
+
function Ee(s) {
|
124 |
+
if (Ee.readOnly = !0, Buffer.isBuffer(s))
|
125 |
+
return s;
|
126 |
+
let e;
|
127 |
+
return s instanceof ArrayBuffer ? e = new Se(s) : ArrayBuffer.isView(s) ? e = new Se(s.buffer, s.byteOffset, s.byteLength) : (e = Buffer.from(s), Ee.readOnly = !1), e;
|
128 |
+
}
|
129 |
+
te.exports = {
|
130 |
+
concat: wt,
|
131 |
+
mask: Je,
|
132 |
+
toArrayBuffer: Ot,
|
133 |
+
toBuffer: Ee,
|
134 |
+
unmask: et
|
135 |
+
};
|
136 |
+
if (!process.env.WS_NO_BUFFER_UTIL)
|
137 |
+
try {
|
138 |
+
const s = require("bufferutil");
|
139 |
+
xt = te.exports.mask = function(e, t, r, i, n) {
|
140 |
+
n < 48 ? Je(e, t, r, i, n) : s.mask(e, t, r, i, n);
|
141 |
+
}, bt = te.exports.unmask = function(e, t) {
|
142 |
+
e.length < 32 ? et(e, t) : s.unmask(e, t);
|
143 |
+
};
|
144 |
+
} catch {
|
145 |
+
}
|
146 |
+
var ne = te.exports;
|
147 |
+
const Ce = Symbol("kDone"), ue = Symbol("kRun");
|
148 |
+
let Ct = class {
|
149 |
+
/**
|
150 |
+
* Creates a new `Limiter`.
|
151 |
+
*
|
152 |
+
* @param {Number} [concurrency=Infinity] The maximum number of jobs allowed
|
153 |
+
* to run concurrently
|
154 |
+
*/
|
155 |
+
constructor(e) {
|
156 |
+
this[Ce] = () => {
|
157 |
+
this.pending--, this[ue]();
|
158 |
+
}, this.concurrency = e || 1 / 0, this.jobs = [], this.pending = 0;
|
159 |
+
}
|
160 |
+
/**
|
161 |
+
* Adds a job to the queue.
|
162 |
+
*
|
163 |
+
* @param {Function} job The job to run
|
164 |
+
* @public
|
165 |
+
*/
|
166 |
+
add(e) {
|
167 |
+
this.jobs.push(e), this[ue]();
|
168 |
+
}
|
169 |
+
/**
|
170 |
+
* Removes a job from the queue and runs it if possible.
|
171 |
+
*
|
172 |
+
* @private
|
173 |
+
*/
|
174 |
+
[ue]() {
|
175 |
+
if (this.pending !== this.concurrency && this.jobs.length) {
|
176 |
+
const e = this.jobs.shift();
|
177 |
+
this.pending++, e(this[Ce]);
|
178 |
+
}
|
179 |
+
}
|
180 |
+
};
|
181 |
+
var Tt = Ct;
|
182 |
+
const W = S, Te = ne, Lt = Tt, { kStatusCode: tt } = U, Nt = Buffer[Symbol.species], Pt = Buffer.from([0, 0, 255, 255]), se = Symbol("permessage-deflate"), w = Symbol("total-length"), V = Symbol("callback"), C = Symbol("buffers"), J = Symbol("error");
|
183 |
+
let K, Rt = class {
|
184 |
+
/**
|
185 |
+
* Creates a PerMessageDeflate instance.
|
186 |
+
*
|
187 |
+
* @param {Object} [options] Configuration options
|
188 |
+
* @param {(Boolean|Number)} [options.clientMaxWindowBits] Advertise support
|
189 |
+
* for, or request, a custom client window size
|
190 |
+
* @param {Boolean} [options.clientNoContextTakeover=false] Advertise/
|
191 |
+
* acknowledge disabling of client context takeover
|
192 |
+
* @param {Number} [options.concurrencyLimit=10] The number of concurrent
|
193 |
+
* calls to zlib
|
194 |
+
* @param {(Boolean|Number)} [options.serverMaxWindowBits] Request/confirm the
|
195 |
+
* use of a custom server window size
|
196 |
+
* @param {Boolean} [options.serverNoContextTakeover=false] Request/accept
|
197 |
+
* disabling of server context takeover
|
198 |
+
* @param {Number} [options.threshold=1024] Size (in bytes) below which
|
199 |
+
* messages should not be compressed if context takeover is disabled
|
200 |
+
* @param {Object} [options.zlibDeflateOptions] Options to pass to zlib on
|
201 |
+
* deflate
|
202 |
+
* @param {Object} [options.zlibInflateOptions] Options to pass to zlib on
|
203 |
+
* inflate
|
204 |
+
* @param {Boolean} [isServer=false] Create the instance in either server or
|
205 |
+
* client mode
|
206 |
+
* @param {Number} [maxPayload=0] The maximum allowed message length
|
207 |
+
*/
|
208 |
+
constructor(e, t, r) {
|
209 |
+
if (this._maxPayload = r | 0, this._options = e || {}, this._threshold = this._options.threshold !== void 0 ? this._options.threshold : 1024, this._isServer = !!t, this._deflate = null, this._inflate = null, this.params = null, !K) {
|
210 |
+
const i = this._options.concurrencyLimit !== void 0 ? this._options.concurrencyLimit : 10;
|
211 |
+
K = new Lt(i);
|
212 |
+
}
|
213 |
+
}
|
214 |
+
/**
|
215 |
+
* @type {String}
|
216 |
+
*/
|
217 |
+
static get extensionName() {
|
218 |
+
return "permessage-deflate";
|
219 |
+
}
|
220 |
+
/**
|
221 |
+
* Create an extension negotiation offer.
|
222 |
+
*
|
223 |
+
* @return {Object} Extension parameters
|
224 |
+
* @public
|
225 |
+
*/
|
226 |
+
offer() {
|
227 |
+
const e = {};
|
228 |
+
return this._options.serverNoContextTakeover && (e.server_no_context_takeover = !0), this._options.clientNoContextTakeover && (e.client_no_context_takeover = !0), this._options.serverMaxWindowBits && (e.server_max_window_bits = this._options.serverMaxWindowBits), this._options.clientMaxWindowBits ? e.client_max_window_bits = this._options.clientMaxWindowBits : this._options.clientMaxWindowBits == null && (e.client_max_window_bits = !0), e;
|
229 |
+
}
|
230 |
+
/**
|
231 |
+
* Accept an extension negotiation offer/response.
|
232 |
+
*
|
233 |
+
* @param {Array} configurations The extension negotiation offers/reponse
|
234 |
+
* @return {Object} Accepted configuration
|
235 |
+
* @public
|
236 |
+
*/
|
237 |
+
accept(e) {
|
238 |
+
return e = this.normalizeParams(e), this.params = this._isServer ? this.acceptAsServer(e) : this.acceptAsClient(e), this.params;
|
239 |
+
}
|
240 |
+
/**
|
241 |
+
* Releases all resources used by the extension.
|
242 |
+
*
|
243 |
+
* @public
|
244 |
+
*/
|
245 |
+
cleanup() {
|
246 |
+
if (this._inflate && (this._inflate.close(), this._inflate = null), this._deflate) {
|
247 |
+
const e = this._deflate[V];
|
248 |
+
this._deflate.close(), this._deflate = null, e && e(
|
249 |
+
new Error(
|
250 |
+
"The deflate stream was closed while data was being processed"
|
251 |
+
)
|
252 |
+
);
|
253 |
+
}
|
254 |
+
}
|
255 |
+
/**
|
256 |
+
* Accept an extension negotiation offer.
|
257 |
+
*
|
258 |
+
* @param {Array} offers The extension negotiation offers
|
259 |
+
* @return {Object} Accepted configuration
|
260 |
+
* @private
|
261 |
+
*/
|
262 |
+
acceptAsServer(e) {
|
263 |
+
const t = this._options, r = e.find((i) => !(t.serverNoContextTakeover === !1 && i.server_no_context_takeover || i.server_max_window_bits && (t.serverMaxWindowBits === !1 || typeof t.serverMaxWindowBits == "number" && t.serverMaxWindowBits > i.server_max_window_bits) || typeof t.clientMaxWindowBits == "number" && !i.client_max_window_bits));
|
264 |
+
if (!r)
|
265 |
+
throw new Error("None of the extension offers can be accepted");
|
266 |
+
return t.serverNoContextTakeover && (r.server_no_context_takeover = !0), t.clientNoContextTakeover && (r.client_no_context_takeover = !0), typeof t.serverMaxWindowBits == "number" && (r.server_max_window_bits = t.serverMaxWindowBits), typeof t.clientMaxWindowBits == "number" ? r.client_max_window_bits = t.clientMaxWindowBits : (r.client_max_window_bits === !0 || t.clientMaxWindowBits === !1) && delete r.client_max_window_bits, r;
|
267 |
+
}
|
268 |
+
/**
|
269 |
+
* Accept the extension negotiation response.
|
270 |
+
*
|
271 |
+
* @param {Array} response The extension negotiation response
|
272 |
+
* @return {Object} Accepted configuration
|
273 |
+
* @private
|
274 |
+
*/
|
275 |
+
acceptAsClient(e) {
|
276 |
+
const t = e[0];
|
277 |
+
if (this._options.clientNoContextTakeover === !1 && t.client_no_context_takeover)
|
278 |
+
throw new Error('Unexpected parameter "client_no_context_takeover"');
|
279 |
+
if (!t.client_max_window_bits)
|
280 |
+
typeof this._options.clientMaxWindowBits == "number" && (t.client_max_window_bits = this._options.clientMaxWindowBits);
|
281 |
+
else if (this._options.clientMaxWindowBits === !1 || typeof this._options.clientMaxWindowBits == "number" && t.client_max_window_bits > this._options.clientMaxWindowBits)
|
282 |
+
throw new Error(
|
283 |
+
'Unexpected or invalid parameter "client_max_window_bits"'
|
284 |
+
);
|
285 |
+
return t;
|
286 |
+
}
|
287 |
+
/**
|
288 |
+
* Normalize parameters.
|
289 |
+
*
|
290 |
+
* @param {Array} configurations The extension negotiation offers/reponse
|
291 |
+
* @return {Array} The offers/response with normalized parameters
|
292 |
+
* @private
|
293 |
+
*/
|
294 |
+
normalizeParams(e) {
|
295 |
+
return e.forEach((t) => {
|
296 |
+
Object.keys(t).forEach((r) => {
|
297 |
+
let i = t[r];
|
298 |
+
if (i.length > 1)
|
299 |
+
throw new Error(`Parameter "${r}" must have only a single value`);
|
300 |
+
if (i = i[0], r === "client_max_window_bits") {
|
301 |
+
if (i !== !0) {
|
302 |
+
const n = +i;
|
303 |
+
if (!Number.isInteger(n) || n < 8 || n > 15)
|
304 |
+
throw new TypeError(
|
305 |
+
`Invalid value for parameter "${r}": ${i}`
|
306 |
+
);
|
307 |
+
i = n;
|
308 |
+
} else if (!this._isServer)
|
309 |
+
throw new TypeError(
|
310 |
+
`Invalid value for parameter "${r}": ${i}`
|
311 |
+
);
|
312 |
+
} else if (r === "server_max_window_bits") {
|
313 |
+
const n = +i;
|
314 |
+
if (!Number.isInteger(n) || n < 8 || n > 15)
|
315 |
+
throw new TypeError(
|
316 |
+
`Invalid value for parameter "${r}": ${i}`
|
317 |
+
);
|
318 |
+
i = n;
|
319 |
+
} else if (r === "client_no_context_takeover" || r === "server_no_context_takeover") {
|
320 |
+
if (i !== !0)
|
321 |
+
throw new TypeError(
|
322 |
+
`Invalid value for parameter "${r}": ${i}`
|
323 |
+
);
|
324 |
+
} else
|
325 |
+
throw new Error(`Unknown parameter "${r}"`);
|
326 |
+
t[r] = i;
|
327 |
+
});
|
328 |
+
}), e;
|
329 |
+
}
|
330 |
+
/**
|
331 |
+
* Decompress data. Concurrency limited.
|
332 |
+
*
|
333 |
+
* @param {Buffer} data Compressed data
|
334 |
+
* @param {Boolean} fin Specifies whether or not this is the last fragment
|
335 |
+
* @param {Function} callback Callback
|
336 |
+
* @public
|
337 |
+
*/
|
338 |
+
decompress(e, t, r) {
|
339 |
+
K.add((i) => {
|
340 |
+
this._decompress(e, t, (n, o) => {
|
341 |
+
i(), r(n, o);
|
342 |
+
});
|
343 |
+
});
|
344 |
+
}
|
345 |
+
/**
|
346 |
+
* Compress data. Concurrency limited.
|
347 |
+
*
|
348 |
+
* @param {(Buffer|String)} data Data to compress
|
349 |
+
* @param {Boolean} fin Specifies whether or not this is the last fragment
|
350 |
+
* @param {Function} callback Callback
|
351 |
+
* @public
|
352 |
+
*/
|
353 |
+
compress(e, t, r) {
|
354 |
+
K.add((i) => {
|
355 |
+
this._compress(e, t, (n, o) => {
|
356 |
+
i(), r(n, o);
|
357 |
+
});
|
358 |
+
});
|
359 |
+
}
|
360 |
+
/**
|
361 |
+
* Decompress data.
|
362 |
+
*
|
363 |
+
* @param {Buffer} data Compressed data
|
364 |
+
* @param {Boolean} fin Specifies whether or not this is the last fragment
|
365 |
+
* @param {Function} callback Callback
|
366 |
+
* @private
|
367 |
+
*/
|
368 |
+
_decompress(e, t, r) {
|
369 |
+
const i = this._isServer ? "client" : "server";
|
370 |
+
if (!this._inflate) {
|
371 |
+
const n = `${i}_max_window_bits`, o = typeof this.params[n] != "number" ? W.Z_DEFAULT_WINDOWBITS : this.params[n];
|
372 |
+
this._inflate = W.createInflateRaw({
|
373 |
+
...this._options.zlibInflateOptions,
|
374 |
+
windowBits: o
|
375 |
+
}), this._inflate[se] = this, this._inflate[w] = 0, this._inflate[C] = [], this._inflate.on("error", Bt), this._inflate.on("data", st);
|
376 |
+
}
|
377 |
+
this._inflate[V] = r, this._inflate.write(e), t && this._inflate.write(Pt), this._inflate.flush(() => {
|
378 |
+
const n = this._inflate[J];
|
379 |
+
if (n) {
|
380 |
+
this._inflate.close(), this._inflate = null, r(n);
|
381 |
+
return;
|
382 |
+
}
|
383 |
+
const o = Te.concat(
|
384 |
+
this._inflate[C],
|
385 |
+
this._inflate[w]
|
386 |
+
);
|
387 |
+
this._inflate._readableState.endEmitted ? (this._inflate.close(), this._inflate = null) : (this._inflate[w] = 0, this._inflate[C] = [], t && this.params[`${i}_no_context_takeover`] && this._inflate.reset()), r(null, o);
|
388 |
+
});
|
389 |
+
}
|
390 |
+
/**
|
391 |
+
* Compress data.
|
392 |
+
*
|
393 |
+
* @param {(Buffer|String)} data Data to compress
|
394 |
+
* @param {Boolean} fin Specifies whether or not this is the last fragment
|
395 |
+
* @param {Function} callback Callback
|
396 |
+
* @private
|
397 |
+
*/
|
398 |
+
_compress(e, t, r) {
|
399 |
+
const i = this._isServer ? "server" : "client";
|
400 |
+
if (!this._deflate) {
|
401 |
+
const n = `${i}_max_window_bits`, o = typeof this.params[n] != "number" ? W.Z_DEFAULT_WINDOWBITS : this.params[n];
|
402 |
+
this._deflate = W.createDeflateRaw({
|
403 |
+
...this._options.zlibDeflateOptions,
|
404 |
+
windowBits: o
|
405 |
+
}), this._deflate[w] = 0, this._deflate[C] = [], this._deflate.on("data", Ut);
|
406 |
+
}
|
407 |
+
this._deflate[V] = r, this._deflate.write(e), this._deflate.flush(W.Z_SYNC_FLUSH, () => {
|
408 |
+
if (!this._deflate)
|
409 |
+
return;
|
410 |
+
let n = Te.concat(
|
411 |
+
this._deflate[C],
|
412 |
+
this._deflate[w]
|
413 |
+
);
|
414 |
+
t && (n = new Nt(n.buffer, n.byteOffset, n.length - 4)), this._deflate[V] = null, this._deflate[w] = 0, this._deflate[C] = [], t && this.params[`${i}_no_context_takeover`] && this._deflate.reset(), r(null, n);
|
415 |
+
});
|
416 |
+
}
|
417 |
+
};
|
418 |
+
var oe = Rt;
|
419 |
+
function Ut(s) {
|
420 |
+
this[C].push(s), this[w] += s.length;
|
421 |
+
}
|
422 |
+
function st(s) {
|
423 |
+
if (this[w] += s.length, this[se]._maxPayload < 1 || this[w] <= this[se]._maxPayload) {
|
424 |
+
this[C].push(s);
|
425 |
+
return;
|
426 |
+
}
|
427 |
+
this[J] = new RangeError("Max payload size exceeded"), this[J].code = "WS_ERR_UNSUPPORTED_MESSAGE_LENGTH", this[J][tt] = 1009, this.removeListener("data", st), this.reset();
|
428 |
+
}
|
429 |
+
function Bt(s) {
|
430 |
+
this[se]._inflate = null, s[tt] = 1007, this[V](s);
|
431 |
+
}
|
432 |
+
var re = { exports: {} };
|
433 |
+
const $t = {}, Mt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
434 |
+
__proto__: null,
|
435 |
+
default: $t
|
436 |
+
}, Symbol.toStringTag, { value: "Module" })), It = /* @__PURE__ */ gt(Mt);
|
437 |
+
var Le;
|
438 |
+
const { isUtf8: Ne } = S, Dt = [
|
439 |
+
0,
|
440 |
+
0,
|
441 |
+
0,
|
442 |
+
0,
|
443 |
+
0,
|
444 |
+
0,
|
445 |
+
0,
|
446 |
+
0,
|
447 |
+
0,
|
448 |
+
0,
|
449 |
+
0,
|
450 |
+
0,
|
451 |
+
0,
|
452 |
+
0,
|
453 |
+
0,
|
454 |
+
0,
|
455 |
+
// 0 - 15
|
456 |
+
0,
|
457 |
+
0,
|
458 |
+
0,
|
459 |
+
0,
|
460 |
+
0,
|
461 |
+
0,
|
462 |
+
0,
|
463 |
+
0,
|
464 |
+
0,
|
465 |
+
0,
|
466 |
+
0,
|
467 |
+
0,
|
468 |
+
0,
|
469 |
+
0,
|
470 |
+
0,
|
471 |
+
0,
|
472 |
+
// 16 - 31
|
473 |
+
0,
|
474 |
+
1,
|
475 |
+
0,
|
476 |
+
1,
|
477 |
+
1,
|
478 |
+
1,
|
479 |
+
1,
|
480 |
+
1,
|
481 |
+
0,
|
482 |
+
0,
|
483 |
+
1,
|
484 |
+
1,
|
485 |
+
0,
|
486 |
+
1,
|
487 |
+
1,
|
488 |
+
0,
|
489 |
+
// 32 - 47
|
490 |
+
1,
|
491 |
+
1,
|
492 |
+
1,
|
493 |
+
1,
|
494 |
+
1,
|
495 |
+
1,
|
496 |
+
1,
|
497 |
+
1,
|
498 |
+
1,
|
499 |
+
1,
|
500 |
+
0,
|
501 |
+
0,
|
502 |
+
0,
|
503 |
+
0,
|
504 |
+
0,
|
505 |
+
0,
|
506 |
+
// 48 - 63
|
507 |
+
0,
|
508 |
+
1,
|
509 |
+
1,
|
510 |
+
1,
|
511 |
+
1,
|
512 |
+
1,
|
513 |
+
1,
|
514 |
+
1,
|
515 |
+
1,
|
516 |
+
1,
|
517 |
+
1,
|
518 |
+
1,
|
519 |
+
1,
|
520 |
+
1,
|
521 |
+
1,
|
522 |
+
1,
|
523 |
+
// 64 - 79
|
524 |
+
1,
|
525 |
+
1,
|
526 |
+
1,
|
527 |
+
1,
|
528 |
+
1,
|
529 |
+
1,
|
530 |
+
1,
|
531 |
+
1,
|
532 |
+
1,
|
533 |
+
1,
|
534 |
+
1,
|
535 |
+
0,
|
536 |
+
0,
|
537 |
+
0,
|
538 |
+
1,
|
539 |
+
1,
|
540 |
+
// 80 - 95
|
541 |
+
1,
|
542 |
+
1,
|
543 |
+
1,
|
544 |
+
1,
|
545 |
+
1,
|
546 |
+
1,
|
547 |
+
1,
|
548 |
+
1,
|
549 |
+
1,
|
550 |
+
1,
|
551 |
+
1,
|
552 |
+
1,
|
553 |
+
1,
|
554 |
+
1,
|
555 |
+
1,
|
556 |
+
1,
|
557 |
+
// 96 - 111
|
558 |
+
1,
|
559 |
+
1,
|
560 |
+
1,
|
561 |
+
1,
|
562 |
+
1,
|
563 |
+
1,
|
564 |
+
1,
|
565 |
+
1,
|
566 |
+
1,
|
567 |
+
1,
|
568 |
+
1,
|
569 |
+
0,
|
570 |
+
1,
|
571 |
+
0,
|
572 |
+
1,
|
573 |
+
0
|
574 |
+
// 112 - 127
|
575 |
+
];
|
576 |
+
function Wt(s) {
|
577 |
+
return s >= 1e3 && s <= 1014 && s !== 1004 && s !== 1005 && s !== 1006 || s >= 3e3 && s <= 4999;
|
578 |
+
}
|
579 |
+
function be(s) {
|
580 |
+
const e = s.length;
|
581 |
+
let t = 0;
|
582 |
+
for (; t < e; )
|
583 |
+
if (!(s[t] & 128))
|
584 |
+
t++;
|
585 |
+
else if ((s[t] & 224) === 192) {
|
586 |
+
if (t + 1 === e || (s[t + 1] & 192) !== 128 || (s[t] & 254) === 192)
|
587 |
+
return !1;
|
588 |
+
t += 2;
|
589 |
+
} else if ((s[t] & 240) === 224) {
|
590 |
+
if (t + 2 >= e || (s[t + 1] & 192) !== 128 || (s[t + 2] & 192) !== 128 || s[t] === 224 && (s[t + 1] & 224) === 128 || // Overlong
|
591 |
+
s[t] === 237 && (s[t + 1] & 224) === 160)
|
592 |
+
return !1;
|
593 |
+
t += 3;
|
594 |
+
} else if ((s[t] & 248) === 240) {
|
595 |
+
if (t + 3 >= e || (s[t + 1] & 192) !== 128 || (s[t + 2] & 192) !== 128 || (s[t + 3] & 192) !== 128 || s[t] === 240 && (s[t + 1] & 240) === 128 || // Overlong
|
596 |
+
s[t] === 244 && s[t + 1] > 143 || s[t] > 244)
|
597 |
+
return !1;
|
598 |
+
t += 4;
|
599 |
+
} else
|
600 |
+
return !1;
|
601 |
+
return !0;
|
602 |
+
}
|
603 |
+
re.exports = {
|
604 |
+
isValidStatusCode: Wt,
|
605 |
+
isValidUTF8: be,
|
606 |
+
tokenChars: Dt
|
607 |
+
};
|
608 |
+
if (Ne)
|
609 |
+
Le = re.exports.isValidUTF8 = function(s) {
|
610 |
+
return s.length < 24 ? be(s) : Ne(s);
|
611 |
+
};
|
612 |
+
else if (!process.env.WS_NO_UTF_8_VALIDATE)
|
613 |
+
try {
|
614 |
+
const s = It;
|
615 |
+
Le = re.exports.isValidUTF8 = function(e) {
|
616 |
+
return e.length < 32 ? be(e) : s(e);
|
617 |
+
};
|
618 |
+
} catch {
|
619 |
+
}
|
620 |
+
var ae = re.exports;
|
621 |
+
const { Writable: At } = S, Pe = oe, {
|
622 |
+
BINARY_TYPES: Ft,
|
623 |
+
EMPTY_BUFFER: Re,
|
624 |
+
kStatusCode: jt,
|
625 |
+
kWebSocket: Gt
|
626 |
+
} = U, { concat: de, toArrayBuffer: Vt, unmask: Ht } = ne, { isValidStatusCode: zt, isValidUTF8: Ue } = ae, X = Buffer[Symbol.species], A = 0, Be = 1, $e = 2, Me = 3, _e = 4, Yt = 5;
|
627 |
+
let qt = class extends At {
|
628 |
+
/**
|
629 |
+
* Creates a Receiver instance.
|
630 |
+
*
|
631 |
+
* @param {Object} [options] Options object
|
632 |
+
* @param {String} [options.binaryType=nodebuffer] The type for binary data
|
633 |
+
* @param {Object} [options.extensions] An object containing the negotiated
|
634 |
+
* extensions
|
635 |
+
* @param {Boolean} [options.isServer=false] Specifies whether to operate in
|
636 |
+
* client or server mode
|
637 |
+
* @param {Number} [options.maxPayload=0] The maximum allowed message length
|
638 |
+
* @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or
|
639 |
+
* not to skip UTF-8 validation for text and close messages
|
640 |
+
*/
|
641 |
+
constructor(e = {}) {
|
642 |
+
super(), this._binaryType = e.binaryType || Ft[0], this._extensions = e.extensions || {}, this._isServer = !!e.isServer, this._maxPayload = e.maxPayload | 0, this._skipUTF8Validation = !!e.skipUTF8Validation, this[Gt] = void 0, this._bufferedBytes = 0, this._buffers = [], this._compressed = !1, this._payloadLength = 0, this._mask = void 0, this._fragmented = 0, this._masked = !1, this._fin = !1, this._opcode = 0, this._totalPayloadLength = 0, this._messageLength = 0, this._fragments = [], this._state = A, this._loop = !1;
|
643 |
+
}
|
644 |
+
/**
|
645 |
+
* Implements `Writable.prototype._write()`.
|
646 |
+
*
|
647 |
+
* @param {Buffer} chunk The chunk of data to write
|
648 |
+
* @param {String} encoding The character encoding of `chunk`
|
649 |
+
* @param {Function} cb Callback
|
650 |
+
* @private
|
651 |
+
*/
|
652 |
+
_write(e, t, r) {
|
653 |
+
if (this._opcode === 8 && this._state == A)
|
654 |
+
return r();
|
655 |
+
this._bufferedBytes += e.length, this._buffers.push(e), this.startLoop(r);
|
656 |
+
}
|
657 |
+
/**
|
658 |
+
* Consumes `n` bytes from the buffered data.
|
659 |
+
*
|
660 |
+
* @param {Number} n The number of bytes to consume
|
661 |
+
* @return {Buffer} The consumed bytes
|
662 |
+
* @private
|
663 |
+
*/
|
664 |
+
consume(e) {
|
665 |
+
if (this._bufferedBytes -= e, e === this._buffers[0].length)
|
666 |
+
return this._buffers.shift();
|
667 |
+
if (e < this._buffers[0].length) {
|
668 |
+
const r = this._buffers[0];
|
669 |
+
return this._buffers[0] = new X(
|
670 |
+
r.buffer,
|
671 |
+
r.byteOffset + e,
|
672 |
+
r.length - e
|
673 |
+
), new X(r.buffer, r.byteOffset, e);
|
674 |
+
}
|
675 |
+
const t = Buffer.allocUnsafe(e);
|
676 |
+
do {
|
677 |
+
const r = this._buffers[0], i = t.length - e;
|
678 |
+
e >= r.length ? t.set(this._buffers.shift(), i) : (t.set(new Uint8Array(r.buffer, r.byteOffset, e), i), this._buffers[0] = new X(
|
679 |
+
r.buffer,
|
680 |
+
r.byteOffset + e,
|
681 |
+
r.length - e
|
682 |
+
)), e -= r.length;
|
683 |
+
} while (e > 0);
|
684 |
+
return t;
|
685 |
+
}
|
686 |
+
/**
|
687 |
+
* Starts the parsing loop.
|
688 |
+
*
|
689 |
+
* @param {Function} cb Callback
|
690 |
+
* @private
|
691 |
+
*/
|
692 |
+
startLoop(e) {
|
693 |
+
let t;
|
694 |
+
this._loop = !0;
|
695 |
+
do
|
696 |
+
switch (this._state) {
|
697 |
+
case A:
|
698 |
+
t = this.getInfo();
|
699 |
+
break;
|
700 |
+
case Be:
|
701 |
+
t = this.getPayloadLength16();
|
702 |
+
break;
|
703 |
+
case $e:
|
704 |
+
t = this.getPayloadLength64();
|
705 |
+
break;
|
706 |
+
case Me:
|
707 |
+
this.getMask();
|
708 |
+
break;
|
709 |
+
case _e:
|
710 |
+
t = this.getData(e);
|
711 |
+
break;
|
712 |
+
default:
|
713 |
+
this._loop = !1;
|
714 |
+
return;
|
715 |
+
}
|
716 |
+
while (this._loop);
|
717 |
+
e(t);
|
718 |
+
}
|
719 |
+
/**
|
720 |
+
* Reads the first two bytes of a frame.
|
721 |
+
*
|
722 |
+
* @return {(RangeError|undefined)} A possible error
|
723 |
+
* @private
|
724 |
+
*/
|
725 |
+
getInfo() {
|
726 |
+
if (this._bufferedBytes < 2) {
|
727 |
+
this._loop = !1;
|
728 |
+
return;
|
729 |
+
}
|
730 |
+
const e = this.consume(2);
|
731 |
+
if (e[0] & 48)
|
732 |
+
return this._loop = !1, g(
|
733 |
+
RangeError,
|
734 |
+
"RSV2 and RSV3 must be clear",
|
735 |
+
!0,
|
736 |
+
1002,
|
737 |
+
"WS_ERR_UNEXPECTED_RSV_2_3"
|
738 |
+
);
|
739 |
+
const t = (e[0] & 64) === 64;
|
740 |
+
if (t && !this._extensions[Pe.extensionName])
|
741 |
+
return this._loop = !1, g(
|
742 |
+
RangeError,
|
743 |
+
"RSV1 must be clear",
|
744 |
+
!0,
|
745 |
+
1002,
|
746 |
+
"WS_ERR_UNEXPECTED_RSV_1"
|
747 |
+
);
|
748 |
+
if (this._fin = (e[0] & 128) === 128, this._opcode = e[0] & 15, this._payloadLength = e[1] & 127, this._opcode === 0) {
|
749 |
+
if (t)
|
750 |
+
return this._loop = !1, g(
|
751 |
+
RangeError,
|
752 |
+
"RSV1 must be clear",
|
753 |
+
!0,
|
754 |
+
1002,
|
755 |
+
"WS_ERR_UNEXPECTED_RSV_1"
|
756 |
+
);
|
757 |
+
if (!this._fragmented)
|
758 |
+
return this._loop = !1, g(
|
759 |
+
RangeError,
|
760 |
+
"invalid opcode 0",
|
761 |
+
!0,
|
762 |
+
1002,
|
763 |
+
"WS_ERR_INVALID_OPCODE"
|
764 |
+
);
|
765 |
+
this._opcode = this._fragmented;
|
766 |
+
} else if (this._opcode === 1 || this._opcode === 2) {
|
767 |
+
if (this._fragmented)
|
768 |
+
return this._loop = !1, g(
|
769 |
+
RangeError,
|
770 |
+
`invalid opcode ${this._opcode}`,
|
771 |
+
!0,
|
772 |
+
1002,
|
773 |
+
"WS_ERR_INVALID_OPCODE"
|
774 |
+
);
|
775 |
+
this._compressed = t;
|
776 |
+
} else if (this._opcode > 7 && this._opcode < 11) {
|
777 |
+
if (!this._fin)
|
778 |
+
return this._loop = !1, g(
|
779 |
+
RangeError,
|
780 |
+
"FIN must be set",
|
781 |
+
!0,
|
782 |
+
1002,
|
783 |
+
"WS_ERR_EXPECTED_FIN"
|
784 |
+
);
|
785 |
+
if (t)
|
786 |
+
return this._loop = !1, g(
|
787 |
+
RangeError,
|
788 |
+
"RSV1 must be clear",
|
789 |
+
!0,
|
790 |
+
1002,
|
791 |
+
"WS_ERR_UNEXPECTED_RSV_1"
|
792 |
+
);
|
793 |
+
if (this._payloadLength > 125 || this._opcode === 8 && this._payloadLength === 1)
|
794 |
+
return this._loop = !1, g(
|
795 |
+
RangeError,
|
796 |
+
`invalid payload length ${this._payloadLength}`,
|
797 |
+
!0,
|
798 |
+
1002,
|
799 |
+
"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH"
|
800 |
+
);
|
801 |
+
} else
|
802 |
+
return this._loop = !1, g(
|
803 |
+
RangeError,
|
804 |
+
`invalid opcode ${this._opcode}`,
|
805 |
+
!0,
|
806 |
+
1002,
|
807 |
+
"WS_ERR_INVALID_OPCODE"
|
808 |
+
);
|
809 |
+
if (!this._fin && !this._fragmented && (this._fragmented = this._opcode), this._masked = (e[1] & 128) === 128, this._isServer) {
|
810 |
+
if (!this._masked)
|
811 |
+
return this._loop = !1, g(
|
812 |
+
RangeError,
|
813 |
+
"MASK must be set",
|
814 |
+
!0,
|
815 |
+
1002,
|
816 |
+
"WS_ERR_EXPECTED_MASK"
|
817 |
+
);
|
818 |
+
} else if (this._masked)
|
819 |
+
return this._loop = !1, g(
|
820 |
+
RangeError,
|
821 |
+
"MASK must be clear",
|
822 |
+
!0,
|
823 |
+
1002,
|
824 |
+
"WS_ERR_UNEXPECTED_MASK"
|
825 |
+
);
|
826 |
+
if (this._payloadLength === 126)
|
827 |
+
this._state = Be;
|
828 |
+
else if (this._payloadLength === 127)
|
829 |
+
this._state = $e;
|
830 |
+
else
|
831 |
+
return this.haveLength();
|
832 |
+
}
|
833 |
+
/**
|
834 |
+
* Gets extended payload length (7+16).
|
835 |
+
*
|
836 |
+
* @return {(RangeError|undefined)} A possible error
|
837 |
+
* @private
|
838 |
+
*/
|
839 |
+
getPayloadLength16() {
|
840 |
+
if (this._bufferedBytes < 2) {
|
841 |
+
this._loop = !1;
|
842 |
+
return;
|
843 |
+
}
|
844 |
+
return this._payloadLength = this.consume(2).readUInt16BE(0), this.haveLength();
|
845 |
+
}
|
846 |
+
/**
|
847 |
+
* Gets extended payload length (7+64).
|
848 |
+
*
|
849 |
+
* @return {(RangeError|undefined)} A possible error
|
850 |
+
* @private
|
851 |
+
*/
|
852 |
+
getPayloadLength64() {
|
853 |
+
if (this._bufferedBytes < 8) {
|
854 |
+
this._loop = !1;
|
855 |
+
return;
|
856 |
+
}
|
857 |
+
const e = this.consume(8), t = e.readUInt32BE(0);
|
858 |
+
return t > Math.pow(2, 53 - 32) - 1 ? (this._loop = !1, g(
|
859 |
+
RangeError,
|
860 |
+
"Unsupported WebSocket frame: payload length > 2^53 - 1",
|
861 |
+
!1,
|
862 |
+
1009,
|
863 |
+
"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH"
|
864 |
+
)) : (this._payloadLength = t * Math.pow(2, 32) + e.readUInt32BE(4), this.haveLength());
|
865 |
+
}
|
866 |
+
/**
|
867 |
+
* Payload length has been read.
|
868 |
+
*
|
869 |
+
* @return {(RangeError|undefined)} A possible error
|
870 |
+
* @private
|
871 |
+
*/
|
872 |
+
haveLength() {
|
873 |
+
if (this._payloadLength && this._opcode < 8 && (this._totalPayloadLength += this._payloadLength, this._totalPayloadLength > this._maxPayload && this._maxPayload > 0))
|
874 |
+
return this._loop = !1, g(
|
875 |
+
RangeError,
|
876 |
+
"Max payload size exceeded",
|
877 |
+
!1,
|
878 |
+
1009,
|
879 |
+
"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"
|
880 |
+
);
|
881 |
+
this._masked ? this._state = Me : this._state = _e;
|
882 |
+
}
|
883 |
+
/**
|
884 |
+
* Reads mask bytes.
|
885 |
+
*
|
886 |
+
* @private
|
887 |
+
*/
|
888 |
+
getMask() {
|
889 |
+
if (this._bufferedBytes < 4) {
|
890 |
+
this._loop = !1;
|
891 |
+
return;
|
892 |
+
}
|
893 |
+
this._mask = this.consume(4), this._state = _e;
|
894 |
+
}
|
895 |
+
/**
|
896 |
+
* Reads data bytes.
|
897 |
+
*
|
898 |
+
* @param {Function} cb Callback
|
899 |
+
* @return {(Error|RangeError|undefined)} A possible error
|
900 |
+
* @private
|
901 |
+
*/
|
902 |
+
getData(e) {
|
903 |
+
let t = Re;
|
904 |
+
if (this._payloadLength) {
|
905 |
+
if (this._bufferedBytes < this._payloadLength) {
|
906 |
+
this._loop = !1;
|
907 |
+
return;
|
908 |
+
}
|
909 |
+
t = this.consume(this._payloadLength), this._masked && this._mask[0] | this._mask[1] | this._mask[2] | this._mask[3] && Ht(t, this._mask);
|
910 |
+
}
|
911 |
+
if (this._opcode > 7)
|
912 |
+
return this.controlMessage(t);
|
913 |
+
if (this._compressed) {
|
914 |
+
this._state = Yt, this.decompress(t, e);
|
915 |
+
return;
|
916 |
+
}
|
917 |
+
return t.length && (this._messageLength = this._totalPayloadLength, this._fragments.push(t)), this.dataMessage();
|
918 |
+
}
|
919 |
+
/**
|
920 |
+
* Decompresses data.
|
921 |
+
*
|
922 |
+
* @param {Buffer} data Compressed data
|
923 |
+
* @param {Function} cb Callback
|
924 |
+
* @private
|
925 |
+
*/
|
926 |
+
decompress(e, t) {
|
927 |
+
this._extensions[Pe.extensionName].decompress(e, this._fin, (i, n) => {
|
928 |
+
if (i)
|
929 |
+
return t(i);
|
930 |
+
if (n.length) {
|
931 |
+
if (this._messageLength += n.length, this._messageLength > this._maxPayload && this._maxPayload > 0)
|
932 |
+
return t(
|
933 |
+
g(
|
934 |
+
RangeError,
|
935 |
+
"Max payload size exceeded",
|
936 |
+
!1,
|
937 |
+
1009,
|
938 |
+
"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH"
|
939 |
+
)
|
940 |
+
);
|
941 |
+
this._fragments.push(n);
|
942 |
+
}
|
943 |
+
const o = this.dataMessage();
|
944 |
+
if (o)
|
945 |
+
return t(o);
|
946 |
+
this.startLoop(t);
|
947 |
+
});
|
948 |
+
}
|
949 |
+
/**
|
950 |
+
* Handles a data message.
|
951 |
+
*
|
952 |
+
* @return {(Error|undefined)} A possible error
|
953 |
+
* @private
|
954 |
+
*/
|
955 |
+
dataMessage() {
|
956 |
+
if (this._fin) {
|
957 |
+
const e = this._messageLength, t = this._fragments;
|
958 |
+
if (this._totalPayloadLength = 0, this._messageLength = 0, this._fragmented = 0, this._fragments = [], this._opcode === 2) {
|
959 |
+
let r;
|
960 |
+
this._binaryType === "nodebuffer" ? r = de(t, e) : this._binaryType === "arraybuffer" ? r = Vt(de(t, e)) : r = t, this.emit("message", r, !0);
|
961 |
+
} else {
|
962 |
+
const r = de(t, e);
|
963 |
+
if (!this._skipUTF8Validation && !Ue(r))
|
964 |
+
return this._loop = !1, g(
|
965 |
+
Error,
|
966 |
+
"invalid UTF-8 sequence",
|
967 |
+
!0,
|
968 |
+
1007,
|
969 |
+
"WS_ERR_INVALID_UTF8"
|
970 |
+
);
|
971 |
+
this.emit("message", r, !1);
|
972 |
+
}
|
973 |
+
}
|
974 |
+
this._state = A;
|
975 |
+
}
|
976 |
+
/**
|
977 |
+
* Handles a control message.
|
978 |
+
*
|
979 |
+
* @param {Buffer} data Data to handle
|
980 |
+
* @return {(Error|RangeError|undefined)} A possible error
|
981 |
+
* @private
|
982 |
+
*/
|
983 |
+
controlMessage(e) {
|
984 |
+
if (this._opcode === 8)
|
985 |
+
if (this._loop = !1, e.length === 0)
|
986 |
+
this.emit("conclude", 1005, Re), this.end();
|
987 |
+
else {
|
988 |
+
const t = e.readUInt16BE(0);
|
989 |
+
if (!zt(t))
|
990 |
+
return g(
|
991 |
+
RangeError,
|
992 |
+
`invalid status code ${t}`,
|
993 |
+
!0,
|
994 |
+
1002,
|
995 |
+
"WS_ERR_INVALID_CLOSE_CODE"
|
996 |
+
);
|
997 |
+
const r = new X(
|
998 |
+
e.buffer,
|
999 |
+
e.byteOffset + 2,
|
1000 |
+
e.length - 2
|
1001 |
+
);
|
1002 |
+
if (!this._skipUTF8Validation && !Ue(r))
|
1003 |
+
return g(
|
1004 |
+
Error,
|
1005 |
+
"invalid UTF-8 sequence",
|
1006 |
+
!0,
|
1007 |
+
1007,
|
1008 |
+
"WS_ERR_INVALID_UTF8"
|
1009 |
+
);
|
1010 |
+
this.emit("conclude", t, r), this.end();
|
1011 |
+
}
|
1012 |
+
else
|
1013 |
+
this._opcode === 9 ? this.emit("ping", e) : this.emit("pong", e);
|
1014 |
+
this._state = A;
|
1015 |
+
}
|
1016 |
+
};
|
1017 |
+
var rt = qt;
|
1018 |
+
function g(s, e, t, r, i) {
|
1019 |
+
const n = new s(
|
1020 |
+
t ? `Invalid WebSocket frame: ${e}` : e
|
1021 |
+
);
|
1022 |
+
return Error.captureStackTrace(n, g), n.code = i, n[jt] = r, n;
|
1023 |
+
}
|
1024 |
+
const qs = /* @__PURE__ */ z(rt), { randomFillSync: Kt } = S, Ie = oe, { EMPTY_BUFFER: Xt } = U, { isValidStatusCode: Zt } = ae, { mask: De, toBuffer: M } = ne, x = Symbol("kByteLength"), Qt = Buffer.alloc(4);
|
1025 |
+
let Jt = class P {
|
1026 |
+
/**
|
1027 |
+
* Creates a Sender instance.
|
1028 |
+
*
|
1029 |
+
* @param {(net.Socket|tls.Socket)} socket The connection socket
|
1030 |
+
* @param {Object} [extensions] An object containing the negotiated extensions
|
1031 |
+
* @param {Function} [generateMask] The function used to generate the masking
|
1032 |
+
* key
|
1033 |
+
*/
|
1034 |
+
constructor(e, t, r) {
|
1035 |
+
this._extensions = t || {}, r && (this._generateMask = r, this._maskBuffer = Buffer.alloc(4)), this._socket = e, this._firstFragment = !0, this._compress = !1, this._bufferedBytes = 0, this._deflating = !1, this._queue = [];
|
1036 |
+
}
|
1037 |
+
/**
|
1038 |
+
* Frames a piece of data according to the HyBi WebSocket protocol.
|
1039 |
+
*
|
1040 |
+
* @param {(Buffer|String)} data The data to frame
|
1041 |
+
* @param {Object} options Options object
|
1042 |
+
* @param {Boolean} [options.fin=false] Specifies whether or not to set the
|
1043 |
+
* FIN bit
|
1044 |
+
* @param {Function} [options.generateMask] The function used to generate the
|
1045 |
+
* masking key
|
1046 |
+
* @param {Boolean} [options.mask=false] Specifies whether or not to mask
|
1047 |
+
* `data`
|
1048 |
+
* @param {Buffer} [options.maskBuffer] The buffer used to store the masking
|
1049 |
+
* key
|
1050 |
+
* @param {Number} options.opcode The opcode
|
1051 |
+
* @param {Boolean} [options.readOnly=false] Specifies whether `data` can be
|
1052 |
+
* modified
|
1053 |
+
* @param {Boolean} [options.rsv1=false] Specifies whether or not to set the
|
1054 |
+
* RSV1 bit
|
1055 |
+
* @return {(Buffer|String)[]} The framed data
|
1056 |
+
* @public
|
1057 |
+
*/
|
1058 |
+
static frame(e, t) {
|
1059 |
+
let r, i = !1, n = 2, o = !1;
|
1060 |
+
t.mask && (r = t.maskBuffer || Qt, t.generateMask ? t.generateMask(r) : Kt(r, 0, 4), o = (r[0] | r[1] | r[2] | r[3]) === 0, n = 6);
|
1061 |
+
let l;
|
1062 |
+
typeof e == "string" ? (!t.mask || o) && t[x] !== void 0 ? l = t[x] : (e = Buffer.from(e), l = e.length) : (l = e.length, i = t.mask && t.readOnly && !o);
|
1063 |
+
let f = l;
|
1064 |
+
l >= 65536 ? (n += 8, f = 127) : l > 125 && (n += 2, f = 126);
|
1065 |
+
const a = Buffer.allocUnsafe(i ? l + n : n);
|
1066 |
+
return a[0] = t.fin ? t.opcode | 128 : t.opcode, t.rsv1 && (a[0] |= 64), a[1] = f, f === 126 ? a.writeUInt16BE(l, 2) : f === 127 && (a[2] = a[3] = 0, a.writeUIntBE(l, 4, 6)), t.mask ? (a[1] |= 128, a[n - 4] = r[0], a[n - 3] = r[1], a[n - 2] = r[2], a[n - 1] = r[3], o ? [a, e] : i ? (De(e, r, a, n, l), [a]) : (De(e, r, e, 0, l), [a, e])) : [a, e];
|
1067 |
+
}
|
1068 |
+
/**
|
1069 |
+
* Sends a close message to the other peer.
|
1070 |
+
*
|
1071 |
+
* @param {Number} [code] The status code component of the body
|
1072 |
+
* @param {(String|Buffer)} [data] The message component of the body
|
1073 |
+
* @param {Boolean} [mask=false] Specifies whether or not to mask the message
|
1074 |
+
* @param {Function} [cb] Callback
|
1075 |
+
* @public
|
1076 |
+
*/
|
1077 |
+
close(e, t, r, i) {
|
1078 |
+
let n;
|
1079 |
+
if (e === void 0)
|
1080 |
+
n = Xt;
|
1081 |
+
else {
|
1082 |
+
if (typeof e != "number" || !Zt(e))
|
1083 |
+
throw new TypeError("First argument must be a valid error code number");
|
1084 |
+
if (t === void 0 || !t.length)
|
1085 |
+
n = Buffer.allocUnsafe(2), n.writeUInt16BE(e, 0);
|
1086 |
+
else {
|
1087 |
+
const l = Buffer.byteLength(t);
|
1088 |
+
if (l > 123)
|
1089 |
+
throw new RangeError("The message must not be greater than 123 bytes");
|
1090 |
+
n = Buffer.allocUnsafe(2 + l), n.writeUInt16BE(e, 0), typeof t == "string" ? n.write(t, 2) : n.set(t, 2);
|
1091 |
+
}
|
1092 |
+
}
|
1093 |
+
const o = {
|
1094 |
+
[x]: n.length,
|
1095 |
+
fin: !0,
|
1096 |
+
generateMask: this._generateMask,
|
1097 |
+
mask: r,
|
1098 |
+
maskBuffer: this._maskBuffer,
|
1099 |
+
opcode: 8,
|
1100 |
+
readOnly: !1,
|
1101 |
+
rsv1: !1
|
1102 |
+
};
|
1103 |
+
this._deflating ? this.enqueue([this.dispatch, n, !1, o, i]) : this.sendFrame(P.frame(n, o), i);
|
1104 |
+
}
|
1105 |
+
/**
|
1106 |
+
* Sends a ping message to the other peer.
|
1107 |
+
*
|
1108 |
+
* @param {*} data The message to send
|
1109 |
+
* @param {Boolean} [mask=false] Specifies whether or not to mask `data`
|
1110 |
+
* @param {Function} [cb] Callback
|
1111 |
+
* @public
|
1112 |
+
*/
|
1113 |
+
ping(e, t, r) {
|
1114 |
+
let i, n;
|
1115 |
+
if (typeof e == "string" ? (i = Buffer.byteLength(e), n = !1) : (e = M(e), i = e.length, n = M.readOnly), i > 125)
|
1116 |
+
throw new RangeError("The data size must not be greater than 125 bytes");
|
1117 |
+
const o = {
|
1118 |
+
[x]: i,
|
1119 |
+
fin: !0,
|
1120 |
+
generateMask: this._generateMask,
|
1121 |
+
mask: t,
|
1122 |
+
maskBuffer: this._maskBuffer,
|
1123 |
+
opcode: 9,
|
1124 |
+
readOnly: n,
|
1125 |
+
rsv1: !1
|
1126 |
+
};
|
1127 |
+
this._deflating ? this.enqueue([this.dispatch, e, !1, o, r]) : this.sendFrame(P.frame(e, o), r);
|
1128 |
+
}
|
1129 |
+
/**
|
1130 |
+
* Sends a pong message to the other peer.
|
1131 |
+
*
|
1132 |
+
* @param {*} data The message to send
|
1133 |
+
* @param {Boolean} [mask=false] Specifies whether or not to mask `data`
|
1134 |
+
* @param {Function} [cb] Callback
|
1135 |
+
* @public
|
1136 |
+
*/
|
1137 |
+
pong(e, t, r) {
|
1138 |
+
let i, n;
|
1139 |
+
if (typeof e == "string" ? (i = Buffer.byteLength(e), n = !1) : (e = M(e), i = e.length, n = M.readOnly), i > 125)
|
1140 |
+
throw new RangeError("The data size must not be greater than 125 bytes");
|
1141 |
+
const o = {
|
1142 |
+
[x]: i,
|
1143 |
+
fin: !0,
|
1144 |
+
generateMask: this._generateMask,
|
1145 |
+
mask: t,
|
1146 |
+
maskBuffer: this._maskBuffer,
|
1147 |
+
opcode: 10,
|
1148 |
+
readOnly: n,
|
1149 |
+
rsv1: !1
|
1150 |
+
};
|
1151 |
+
this._deflating ? this.enqueue([this.dispatch, e, !1, o, r]) : this.sendFrame(P.frame(e, o), r);
|
1152 |
+
}
|
1153 |
+
/**
|
1154 |
+
* Sends a data message to the other peer.
|
1155 |
+
*
|
1156 |
+
* @param {*} data The message to send
|
1157 |
+
* @param {Object} options Options object
|
1158 |
+
* @param {Boolean} [options.binary=false] Specifies whether `data` is binary
|
1159 |
+
* or text
|
1160 |
+
* @param {Boolean} [options.compress=false] Specifies whether or not to
|
1161 |
+
* compress `data`
|
1162 |
+
* @param {Boolean} [options.fin=false] Specifies whether the fragment is the
|
1163 |
+
* last one
|
1164 |
+
* @param {Boolean} [options.mask=false] Specifies whether or not to mask
|
1165 |
+
* `data`
|
1166 |
+
* @param {Function} [cb] Callback
|
1167 |
+
* @public
|
1168 |
+
*/
|
1169 |
+
send(e, t, r) {
|
1170 |
+
const i = this._extensions[Ie.extensionName];
|
1171 |
+
let n = t.binary ? 2 : 1, o = t.compress, l, f;
|
1172 |
+
if (typeof e == "string" ? (l = Buffer.byteLength(e), f = !1) : (e = M(e), l = e.length, f = M.readOnly), this._firstFragment ? (this._firstFragment = !1, o && i && i.params[i._isServer ? "server_no_context_takeover" : "client_no_context_takeover"] && (o = l >= i._threshold), this._compress = o) : (o = !1, n = 0), t.fin && (this._firstFragment = !0), i) {
|
1173 |
+
const a = {
|
1174 |
+
[x]: l,
|
1175 |
+
fin: t.fin,
|
1176 |
+
generateMask: this._generateMask,
|
1177 |
+
mask: t.mask,
|
1178 |
+
maskBuffer: this._maskBuffer,
|
1179 |
+
opcode: n,
|
1180 |
+
readOnly: f,
|
1181 |
+
rsv1: o
|
1182 |
+
};
|
1183 |
+
this._deflating ? this.enqueue([this.dispatch, e, this._compress, a, r]) : this.dispatch(e, this._compress, a, r);
|
1184 |
+
} else
|
1185 |
+
this.sendFrame(
|
1186 |
+
P.frame(e, {
|
1187 |
+
[x]: l,
|
1188 |
+
fin: t.fin,
|
1189 |
+
generateMask: this._generateMask,
|
1190 |
+
mask: t.mask,
|
1191 |
+
maskBuffer: this._maskBuffer,
|
1192 |
+
opcode: n,
|
1193 |
+
readOnly: f,
|
1194 |
+
rsv1: !1
|
1195 |
+
}),
|
1196 |
+
r
|
1197 |
+
);
|
1198 |
+
}
|
1199 |
+
/**
|
1200 |
+
* Dispatches a message.
|
1201 |
+
*
|
1202 |
+
* @param {(Buffer|String)} data The message to send
|
1203 |
+
* @param {Boolean} [compress=false] Specifies whether or not to compress
|
1204 |
+
* `data`
|
1205 |
+
* @param {Object} options Options object
|
1206 |
+
* @param {Boolean} [options.fin=false] Specifies whether or not to set the
|
1207 |
+
* FIN bit
|
1208 |
+
* @param {Function} [options.generateMask] The function used to generate the
|
1209 |
+
* masking key
|
1210 |
+
* @param {Boolean} [options.mask=false] Specifies whether or not to mask
|
1211 |
+
* `data`
|
1212 |
+
* @param {Buffer} [options.maskBuffer] The buffer used to store the masking
|
1213 |
+
* key
|
1214 |
+
* @param {Number} options.opcode The opcode
|
1215 |
+
* @param {Boolean} [options.readOnly=false] Specifies whether `data` can be
|
1216 |
+
* modified
|
1217 |
+
* @param {Boolean} [options.rsv1=false] Specifies whether or not to set the
|
1218 |
+
* RSV1 bit
|
1219 |
+
* @param {Function} [cb] Callback
|
1220 |
+
* @private
|
1221 |
+
*/
|
1222 |
+
dispatch(e, t, r, i) {
|
1223 |
+
if (!t) {
|
1224 |
+
this.sendFrame(P.frame(e, r), i);
|
1225 |
+
return;
|
1226 |
+
}
|
1227 |
+
const n = this._extensions[Ie.extensionName];
|
1228 |
+
this._bufferedBytes += r[x], this._deflating = !0, n.compress(e, r.fin, (o, l) => {
|
1229 |
+
if (this._socket.destroyed) {
|
1230 |
+
const f = new Error(
|
1231 |
+
"The socket was closed while data was being compressed"
|
1232 |
+
);
|
1233 |
+
typeof i == "function" && i(f);
|
1234 |
+
for (let a = 0; a < this._queue.length; a++) {
|
1235 |
+
const c = this._queue[a], h = c[c.length - 1];
|
1236 |
+
typeof h == "function" && h(f);
|
1237 |
+
}
|
1238 |
+
return;
|
1239 |
+
}
|
1240 |
+
this._bufferedBytes -= r[x], this._deflating = !1, r.readOnly = !1, this.sendFrame(P.frame(l, r), i), this.dequeue();
|
1241 |
+
});
|
1242 |
+
}
|
1243 |
+
/**
|
1244 |
+
* Executes queued send operations.
|
1245 |
+
*
|
1246 |
+
* @private
|
1247 |
+
*/
|
1248 |
+
dequeue() {
|
1249 |
+
for (; !this._deflating && this._queue.length; ) {
|
1250 |
+
const e = this._queue.shift();
|
1251 |
+
this._bufferedBytes -= e[3][x], Reflect.apply(e[0], this, e.slice(1));
|
1252 |
+
}
|
1253 |
+
}
|
1254 |
+
/**
|
1255 |
+
* Enqueues a send operation.
|
1256 |
+
*
|
1257 |
+
* @param {Array} params Send operation parameters.
|
1258 |
+
* @private
|
1259 |
+
*/
|
1260 |
+
enqueue(e) {
|
1261 |
+
this._bufferedBytes += e[3][x], this._queue.push(e);
|
1262 |
+
}
|
1263 |
+
/**
|
1264 |
+
* Sends a frame.
|
1265 |
+
*
|
1266 |
+
* @param {Buffer[]} list The frame to send
|
1267 |
+
* @param {Function} [cb] Callback
|
1268 |
+
* @private
|
1269 |
+
*/
|
1270 |
+
sendFrame(e, t) {
|
1271 |
+
e.length === 2 ? (this._socket.cork(), this._socket.write(e[0]), this._socket.write(e[1], t), this._socket.uncork()) : this._socket.write(e[0], t);
|
1272 |
+
}
|
1273 |
+
};
|
1274 |
+
var it = Jt;
|
1275 |
+
const Ks = /* @__PURE__ */ z(it), { kForOnEventAttribute: F, kListener: pe } = U, We = Symbol("kCode"), Ae = Symbol("kData"), Fe = Symbol("kError"), je = Symbol("kMessage"), Ge = Symbol("kReason"), I = Symbol("kTarget"), Ve = Symbol("kType"), He = Symbol("kWasClean");
|
1276 |
+
class B {
|
1277 |
+
/**
|
1278 |
+
* Create a new `Event`.
|
1279 |
+
*
|
1280 |
+
* @param {String} type The name of the event
|
1281 |
+
* @throws {TypeError} If the `type` argument is not specified
|
1282 |
+
*/
|
1283 |
+
constructor(e) {
|
1284 |
+
this[I] = null, this[Ve] = e;
|
1285 |
+
}
|
1286 |
+
/**
|
1287 |
+
* @type {*}
|
1288 |
+
*/
|
1289 |
+
get target() {
|
1290 |
+
return this[I];
|
1291 |
+
}
|
1292 |
+
/**
|
1293 |
+
* @type {String}
|
1294 |
+
*/
|
1295 |
+
get type() {
|
1296 |
+
return this[Ve];
|
1297 |
+
}
|
1298 |
+
}
|
1299 |
+
Object.defineProperty(B.prototype, "target", { enumerable: !0 });
|
1300 |
+
Object.defineProperty(B.prototype, "type", { enumerable: !0 });
|
1301 |
+
class Y extends B {
|
1302 |
+
/**
|
1303 |
+
* Create a new `CloseEvent`.
|
1304 |
+
*
|
1305 |
+
* @param {String} type The name of the event
|
1306 |
+
* @param {Object} [options] A dictionary object that allows for setting
|
1307 |
+
* attributes via object members of the same name
|
1308 |
+
* @param {Number} [options.code=0] The status code explaining why the
|
1309 |
+
* connection was closed
|
1310 |
+
* @param {String} [options.reason=''] A human-readable string explaining why
|
1311 |
+
* the connection was closed
|
1312 |
+
* @param {Boolean} [options.wasClean=false] Indicates whether or not the
|
1313 |
+
* connection was cleanly closed
|
1314 |
+
*/
|
1315 |
+
constructor(e, t = {}) {
|
1316 |
+
super(e), this[We] = t.code === void 0 ? 0 : t.code, this[Ge] = t.reason === void 0 ? "" : t.reason, this[He] = t.wasClean === void 0 ? !1 : t.wasClean;
|
1317 |
+
}
|
1318 |
+
/**
|
1319 |
+
* @type {Number}
|
1320 |
+
*/
|
1321 |
+
get code() {
|
1322 |
+
return this[We];
|
1323 |
+
}
|
1324 |
+
/**
|
1325 |
+
* @type {String}
|
1326 |
+
*/
|
1327 |
+
get reason() {
|
1328 |
+
return this[Ge];
|
1329 |
+
}
|
1330 |
+
/**
|
1331 |
+
* @type {Boolean}
|
1332 |
+
*/
|
1333 |
+
get wasClean() {
|
1334 |
+
return this[He];
|
1335 |
+
}
|
1336 |
+
}
|
1337 |
+
Object.defineProperty(Y.prototype, "code", { enumerable: !0 });
|
1338 |
+
Object.defineProperty(Y.prototype, "reason", { enumerable: !0 });
|
1339 |
+
Object.defineProperty(Y.prototype, "wasClean", { enumerable: !0 });
|
1340 |
+
class le extends B {
|
1341 |
+
/**
|
1342 |
+
* Create a new `ErrorEvent`.
|
1343 |
+
*
|
1344 |
+
* @param {String} type The name of the event
|
1345 |
+
* @param {Object} [options] A dictionary object that allows for setting
|
1346 |
+
* attributes via object members of the same name
|
1347 |
+
* @param {*} [options.error=null] The error that generated this event
|
1348 |
+
* @param {String} [options.message=''] The error message
|
1349 |
+
*/
|
1350 |
+
constructor(e, t = {}) {
|
1351 |
+
super(e), this[Fe] = t.error === void 0 ? null : t.error, this[je] = t.message === void 0 ? "" : t.message;
|
1352 |
+
}
|
1353 |
+
/**
|
1354 |
+
* @type {*}
|
1355 |
+
*/
|
1356 |
+
get error() {
|
1357 |
+
return this[Fe];
|
1358 |
+
}
|
1359 |
+
/**
|
1360 |
+
* @type {String}
|
1361 |
+
*/
|
1362 |
+
get message() {
|
1363 |
+
return this[je];
|
1364 |
+
}
|
1365 |
+
}
|
1366 |
+
Object.defineProperty(le.prototype, "error", { enumerable: !0 });
|
1367 |
+
Object.defineProperty(le.prototype, "message", { enumerable: !0 });
|
1368 |
+
class xe extends B {
|
1369 |
+
/**
|
1370 |
+
* Create a new `MessageEvent`.
|
1371 |
+
*
|
1372 |
+
* @param {String} type The name of the event
|
1373 |
+
* @param {Object} [options] A dictionary object that allows for setting
|
1374 |
+
* attributes via object members of the same name
|
1375 |
+
* @param {*} [options.data=null] The message content
|
1376 |
+
*/
|
1377 |
+
constructor(e, t = {}) {
|
1378 |
+
super(e), this[Ae] = t.data === void 0 ? null : t.data;
|
1379 |
+
}
|
1380 |
+
/**
|
1381 |
+
* @type {*}
|
1382 |
+
*/
|
1383 |
+
get data() {
|
1384 |
+
return this[Ae];
|
1385 |
+
}
|
1386 |
+
}
|
1387 |
+
Object.defineProperty(xe.prototype, "data", { enumerable: !0 });
|
1388 |
+
const es = {
|
1389 |
+
/**
|
1390 |
+
* Register an event listener.
|
1391 |
+
*
|
1392 |
+
* @param {String} type A string representing the event type to listen for
|
1393 |
+
* @param {(Function|Object)} handler The listener to add
|
1394 |
+
* @param {Object} [options] An options object specifies characteristics about
|
1395 |
+
* the event listener
|
1396 |
+
* @param {Boolean} [options.once=false] A `Boolean` indicating that the
|
1397 |
+
* listener should be invoked at most once after being added. If `true`,
|
1398 |
+
* the listener would be automatically removed when invoked.
|
1399 |
+
* @public
|
1400 |
+
*/
|
1401 |
+
addEventListener(s, e, t = {}) {
|
1402 |
+
for (const i of this.listeners(s))
|
1403 |
+
if (!t[F] && i[pe] === e && !i[F])
|
1404 |
+
return;
|
1405 |
+
let r;
|
1406 |
+
if (s === "message")
|
1407 |
+
r = function(n, o) {
|
1408 |
+
const l = new xe("message", {
|
1409 |
+
data: o ? n : n.toString()
|
1410 |
+
});
|
1411 |
+
l[I] = this, Z(e, this, l);
|
1412 |
+
};
|
1413 |
+
else if (s === "close")
|
1414 |
+
r = function(n, o) {
|
1415 |
+
const l = new Y("close", {
|
1416 |
+
code: n,
|
1417 |
+
reason: o.toString(),
|
1418 |
+
wasClean: this._closeFrameReceived && this._closeFrameSent
|
1419 |
+
});
|
1420 |
+
l[I] = this, Z(e, this, l);
|
1421 |
+
};
|
1422 |
+
else if (s === "error")
|
1423 |
+
r = function(n) {
|
1424 |
+
const o = new le("error", {
|
1425 |
+
error: n,
|
1426 |
+
message: n.message
|
1427 |
+
});
|
1428 |
+
o[I] = this, Z(e, this, o);
|
1429 |
+
};
|
1430 |
+
else if (s === "open")
|
1431 |
+
r = function() {
|
1432 |
+
const n = new B("open");
|
1433 |
+
n[I] = this, Z(e, this, n);
|
1434 |
+
};
|
1435 |
+
else
|
1436 |
+
return;
|
1437 |
+
r[F] = !!t[F], r[pe] = e, t.once ? this.once(s, r) : this.on(s, r);
|
1438 |
+
},
|
1439 |
+
/**
|
1440 |
+
* Remove an event listener.
|
1441 |
+
*
|
1442 |
+
* @param {String} type A string representing the event type to remove
|
1443 |
+
* @param {(Function|Object)} handler The listener to remove
|
1444 |
+
* @public
|
1445 |
+
*/
|
1446 |
+
removeEventListener(s, e) {
|
1447 |
+
for (const t of this.listeners(s))
|
1448 |
+
if (t[pe] === e && !t[F]) {
|
1449 |
+
this.removeListener(s, t);
|
1450 |
+
break;
|
1451 |
+
}
|
1452 |
+
}
|
1453 |
+
};
|
1454 |
+
var ts = {
|
1455 |
+
CloseEvent: Y,
|
1456 |
+
ErrorEvent: le,
|
1457 |
+
Event: B,
|
1458 |
+
EventTarget: es,
|
1459 |
+
MessageEvent: xe
|
1460 |
+
};
|
1461 |
+
function Z(s, e, t) {
|
1462 |
+
typeof s == "object" && s.handleEvent ? s.handleEvent.call(s, t) : s.call(e, t);
|
1463 |
+
}
|
1464 |
+
const { tokenChars: j } = ae;
|
1465 |
+
function k(s, e, t) {
|
1466 |
+
s[e] === void 0 ? s[e] = [t] : s[e].push(t);
|
1467 |
+
}
|
1468 |
+
function ss(s) {
|
1469 |
+
const e = /* @__PURE__ */ Object.create(null);
|
1470 |
+
let t = /* @__PURE__ */ Object.create(null), r = !1, i = !1, n = !1, o, l, f = -1, a = -1, c = -1, h = 0;
|
1471 |
+
for (; h < s.length; h++)
|
1472 |
+
if (a = s.charCodeAt(h), o === void 0)
|
1473 |
+
if (c === -1 && j[a] === 1)
|
1474 |
+
f === -1 && (f = h);
|
1475 |
+
else if (h !== 0 && (a === 32 || a === 9))
|
1476 |
+
c === -1 && f !== -1 && (c = h);
|
1477 |
+
else if (a === 59 || a === 44) {
|
1478 |
+
if (f === -1)
|
1479 |
+
throw new SyntaxError(`Unexpected character at index ${h}`);
|
1480 |
+
c === -1 && (c = h);
|
1481 |
+
const v = s.slice(f, c);
|
1482 |
+
a === 44 ? (k(e, v, t), t = /* @__PURE__ */ Object.create(null)) : o = v, f = c = -1;
|
1483 |
+
} else
|
1484 |
+
throw new SyntaxError(`Unexpected character at index ${h}`);
|
1485 |
+
else if (l === void 0)
|
1486 |
+
if (c === -1 && j[a] === 1)
|
1487 |
+
f === -1 && (f = h);
|
1488 |
+
else if (a === 32 || a === 9)
|
1489 |
+
c === -1 && f !== -1 && (c = h);
|
1490 |
+
else if (a === 59 || a === 44) {
|
1491 |
+
if (f === -1)
|
1492 |
+
throw new SyntaxError(`Unexpected character at index ${h}`);
|
1493 |
+
c === -1 && (c = h), k(t, s.slice(f, c), !0), a === 44 && (k(e, o, t), t = /* @__PURE__ */ Object.create(null), o = void 0), f = c = -1;
|
1494 |
+
} else if (a === 61 && f !== -1 && c === -1)
|
1495 |
+
l = s.slice(f, h), f = c = -1;
|
1496 |
+
else
|
1497 |
+
throw new SyntaxError(`Unexpected character at index ${h}`);
|
1498 |
+
else if (i) {
|
1499 |
+
if (j[a] !== 1)
|
1500 |
+
throw new SyntaxError(`Unexpected character at index ${h}`);
|
1501 |
+
f === -1 ? f = h : r || (r = !0), i = !1;
|
1502 |
+
} else if (n)
|
1503 |
+
if (j[a] === 1)
|
1504 |
+
f === -1 && (f = h);
|
1505 |
+
else if (a === 34 && f !== -1)
|
1506 |
+
n = !1, c = h;
|
1507 |
+
else if (a === 92)
|
1508 |
+
i = !0;
|
1509 |
+
else
|
1510 |
+
throw new SyntaxError(`Unexpected character at index ${h}`);
|
1511 |
+
else if (a === 34 && s.charCodeAt(h - 1) === 61)
|
1512 |
+
n = !0;
|
1513 |
+
else if (c === -1 && j[a] === 1)
|
1514 |
+
f === -1 && (f = h);
|
1515 |
+
else if (f !== -1 && (a === 32 || a === 9))
|
1516 |
+
c === -1 && (c = h);
|
1517 |
+
else if (a === 59 || a === 44) {
|
1518 |
+
if (f === -1)
|
1519 |
+
throw new SyntaxError(`Unexpected character at index ${h}`);
|
1520 |
+
c === -1 && (c = h);
|
1521 |
+
let v = s.slice(f, c);
|
1522 |
+
r && (v = v.replace(/\\/g, ""), r = !1), k(t, l, v), a === 44 && (k(e, o, t), t = /* @__PURE__ */ Object.create(null), o = void 0), l = void 0, f = c = -1;
|
1523 |
+
} else
|
1524 |
+
throw new SyntaxError(`Unexpected character at index ${h}`);
|
1525 |
+
if (f === -1 || n || a === 32 || a === 9)
|
1526 |
+
throw new SyntaxError("Unexpected end of input");
|
1527 |
+
c === -1 && (c = h);
|
1528 |
+
const p = s.slice(f, c);
|
1529 |
+
return o === void 0 ? k(e, p, t) : (l === void 0 ? k(t, p, !0) : r ? k(t, l, p.replace(/\\/g, "")) : k(t, l, p), k(e, o, t)), e;
|
1530 |
+
}
|
1531 |
+
function rs(s) {
|
1532 |
+
return Object.keys(s).map((e) => {
|
1533 |
+
let t = s[e];
|
1534 |
+
return Array.isArray(t) || (t = [t]), t.map((r) => [e].concat(
|
1535 |
+
Object.keys(r).map((i) => {
|
1536 |
+
let n = r[i];
|
1537 |
+
return Array.isArray(n) || (n = [n]), n.map((o) => o === !0 ? i : `${i}=${o}`).join("; ");
|
1538 |
+
})
|
1539 |
+
).join("; ")).join(", ");
|
1540 |
+
}).join(", ");
|
1541 |
+
}
|
1542 |
+
var nt = { format: rs, parse: ss };
|
1543 |
+
const is = S, ns = S, os = S, ot = S, as = S, { randomBytes: ls, createHash: fs } = S, { URL: me } = S, T = oe, hs = rt, cs = it, {
|
1544 |
+
BINARY_TYPES: ze,
|
1545 |
+
EMPTY_BUFFER: Q,
|
1546 |
+
GUID: us,
|
1547 |
+
kForOnEventAttribute: ge,
|
1548 |
+
kListener: ds,
|
1549 |
+
kStatusCode: _s,
|
1550 |
+
kWebSocket: y,
|
1551 |
+
NOOP: at
|
1552 |
+
} = U, {
|
1553 |
+
EventTarget: { addEventListener: ps, removeEventListener: ms }
|
1554 |
+
} = ts, { format: gs, parse: ys } = nt, { toBuffer: vs } = ne, Ss = 30 * 1e3, lt = Symbol("kAborted"), ye = [8, 13], O = ["CONNECTING", "OPEN", "CLOSING", "CLOSED"], Es = /^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;
|
1555 |
+
let m = class d extends is {
|
1556 |
+
/**
|
1557 |
+
* Create a new `WebSocket`.
|
1558 |
+
*
|
1559 |
+
* @param {(String|URL)} address The URL to which to connect
|
1560 |
+
* @param {(String|String[])} [protocols] The subprotocols
|
1561 |
+
* @param {Object} [options] Connection options
|
1562 |
+
*/
|
1563 |
+
constructor(e, t, r) {
|
1564 |
+
super(), this._binaryType = ze[0], this._closeCode = 1006, this._closeFrameReceived = !1, this._closeFrameSent = !1, this._closeMessage = Q, this._closeTimer = null, this._extensions = {}, this._paused = !1, this._protocol = "", this._readyState = d.CONNECTING, this._receiver = null, this._sender = null, this._socket = null, e !== null ? (this._bufferedAmount = 0, this._isServer = !1, this._redirects = 0, t === void 0 ? t = [] : Array.isArray(t) || (typeof t == "object" && t !== null ? (r = t, t = []) : t = [t]), ht(this, e, t, r)) : this._isServer = !0;
|
1565 |
+
}
|
1566 |
+
/**
|
1567 |
+
* This deviates from the WHATWG interface since ws doesn't support the
|
1568 |
+
* required default "blob" type (instead we define a custom "nodebuffer"
|
1569 |
+
* type).
|
1570 |
+
*
|
1571 |
+
* @type {String}
|
1572 |
+
*/
|
1573 |
+
get binaryType() {
|
1574 |
+
return this._binaryType;
|
1575 |
+
}
|
1576 |
+
set binaryType(e) {
|
1577 |
+
ze.includes(e) && (this._binaryType = e, this._receiver && (this._receiver._binaryType = e));
|
1578 |
+
}
|
1579 |
+
/**
|
1580 |
+
* @type {Number}
|
1581 |
+
*/
|
1582 |
+
get bufferedAmount() {
|
1583 |
+
return this._socket ? this._socket._writableState.length + this._sender._bufferedBytes : this._bufferedAmount;
|
1584 |
+
}
|
1585 |
+
/**
|
1586 |
+
* @type {String}
|
1587 |
+
*/
|
1588 |
+
get extensions() {
|
1589 |
+
return Object.keys(this._extensions).join();
|
1590 |
+
}
|
1591 |
+
/**
|
1592 |
+
* @type {Boolean}
|
1593 |
+
*/
|
1594 |
+
get isPaused() {
|
1595 |
+
return this._paused;
|
1596 |
+
}
|
1597 |
+
/**
|
1598 |
+
* @type {Function}
|
1599 |
+
*/
|
1600 |
+
/* istanbul ignore next */
|
1601 |
+
get onclose() {
|
1602 |
+
return null;
|
1603 |
+
}
|
1604 |
+
/**
|
1605 |
+
* @type {Function}
|
1606 |
+
*/
|
1607 |
+
/* istanbul ignore next */
|
1608 |
+
get onerror() {
|
1609 |
+
return null;
|
1610 |
+
}
|
1611 |
+
/**
|
1612 |
+
* @type {Function}
|
1613 |
+
*/
|
1614 |
+
/* istanbul ignore next */
|
1615 |
+
get onopen() {
|
1616 |
+
return null;
|
1617 |
+
}
|
1618 |
+
/**
|
1619 |
+
* @type {Function}
|
1620 |
+
*/
|
1621 |
+
/* istanbul ignore next */
|
1622 |
+
get onmessage() {
|
1623 |
+
return null;
|
1624 |
+
}
|
1625 |
+
/**
|
1626 |
+
* @type {String}
|
1627 |
+
*/
|
1628 |
+
get protocol() {
|
1629 |
+
return this._protocol;
|
1630 |
+
}
|
1631 |
+
/**
|
1632 |
+
* @type {Number}
|
1633 |
+
*/
|
1634 |
+
get readyState() {
|
1635 |
+
return this._readyState;
|
1636 |
+
}
|
1637 |
+
/**
|
1638 |
+
* @type {String}
|
1639 |
+
*/
|
1640 |
+
get url() {
|
1641 |
+
return this._url;
|
1642 |
+
}
|
1643 |
+
/**
|
1644 |
+
* Set up the socket and the internal resources.
|
1645 |
+
*
|
1646 |
+
* @param {(net.Socket|tls.Socket)} socket The network socket between the
|
1647 |
+
* server and client
|
1648 |
+
* @param {Buffer} head The first packet of the upgraded stream
|
1649 |
+
* @param {Object} options Options object
|
1650 |
+
* @param {Function} [options.generateMask] The function used to generate the
|
1651 |
+
* masking key
|
1652 |
+
* @param {Number} [options.maxPayload=0] The maximum allowed message size
|
1653 |
+
* @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or
|
1654 |
+
* not to skip UTF-8 validation for text and close messages
|
1655 |
+
* @private
|
1656 |
+
*/
|
1657 |
+
setSocket(e, t, r) {
|
1658 |
+
const i = new hs({
|
1659 |
+
binaryType: this.binaryType,
|
1660 |
+
extensions: this._extensions,
|
1661 |
+
isServer: this._isServer,
|
1662 |
+
maxPayload: r.maxPayload,
|
1663 |
+
skipUTF8Validation: r.skipUTF8Validation
|
1664 |
+
});
|
1665 |
+
this._sender = new cs(e, this._extensions, r.generateMask), this._receiver = i, this._socket = e, i[y] = this, e[y] = this, i.on("conclude", ks), i.on("drain", ws), i.on("error", Os), i.on("message", Cs), i.on("ping", Ts), i.on("pong", Ls), e.setTimeout(0), e.setNoDelay(), t.length > 0 && e.unshift(t), e.on("close", ut), e.on("data", fe), e.on("end", dt), e.on("error", _t), this._readyState = d.OPEN, this.emit("open");
|
1666 |
+
}
|
1667 |
+
/**
|
1668 |
+
* Emit the `'close'` event.
|
1669 |
+
*
|
1670 |
+
* @private
|
1671 |
+
*/
|
1672 |
+
emitClose() {
|
1673 |
+
if (!this._socket) {
|
1674 |
+
this._readyState = d.CLOSED, this.emit("close", this._closeCode, this._closeMessage);
|
1675 |
+
return;
|
1676 |
+
}
|
1677 |
+
this._extensions[T.extensionName] && this._extensions[T.extensionName].cleanup(), this._receiver.removeAllListeners(), this._readyState = d.CLOSED, this.emit("close", this._closeCode, this._closeMessage);
|
1678 |
+
}
|
1679 |
+
/**
|
1680 |
+
* Start a closing handshake.
|
1681 |
+
*
|
1682 |
+
* +----------+ +-----------+ +----------+
|
1683 |
+
* - - -|ws.close()|-->|close frame|-->|ws.close()|- - -
|
1684 |
+
* | +----------+ +-----------+ +----------+ |
|
1685 |
+
* +----------+ +-----------+ |
|
1686 |
+
* CLOSING |ws.close()|<--|close frame|<--+-----+ CLOSING
|
1687 |
+
* +----------+ +-----------+ |
|
1688 |
+
* | | | +---+ |
|
1689 |
+
* +------------------------+-->|fin| - - - -
|
1690 |
+
* | +---+ | +---+
|
1691 |
+
* - - - - -|fin|<---------------------+
|
1692 |
+
* +---+
|
1693 |
+
*
|
1694 |
+
* @param {Number} [code] Status code explaining why the connection is closing
|
1695 |
+
* @param {(String|Buffer)} [data] The reason why the connection is
|
1696 |
+
* closing
|
1697 |
+
* @public
|
1698 |
+
*/
|
1699 |
+
close(e, t) {
|
1700 |
+
if (this.readyState !== d.CLOSED) {
|
1701 |
+
if (this.readyState === d.CONNECTING) {
|
1702 |
+
const r = "WebSocket was closed before the connection was established";
|
1703 |
+
b(this, this._req, r);
|
1704 |
+
return;
|
1705 |
+
}
|
1706 |
+
if (this.readyState === d.CLOSING) {
|
1707 |
+
this._closeFrameSent && (this._closeFrameReceived || this._receiver._writableState.errorEmitted) && this._socket.end();
|
1708 |
+
return;
|
1709 |
+
}
|
1710 |
+
this._readyState = d.CLOSING, this._sender.close(e, t, !this._isServer, (r) => {
|
1711 |
+
r || (this._closeFrameSent = !0, (this._closeFrameReceived || this._receiver._writableState.errorEmitted) && this._socket.end());
|
1712 |
+
}), this._closeTimer = setTimeout(
|
1713 |
+
this._socket.destroy.bind(this._socket),
|
1714 |
+
Ss
|
1715 |
+
);
|
1716 |
+
}
|
1717 |
+
}
|
1718 |
+
/**
|
1719 |
+
* Pause the socket.
|
1720 |
+
*
|
1721 |
+
* @public
|
1722 |
+
*/
|
1723 |
+
pause() {
|
1724 |
+
this.readyState === d.CONNECTING || this.readyState === d.CLOSED || (this._paused = !0, this._socket.pause());
|
1725 |
+
}
|
1726 |
+
/**
|
1727 |
+
* Send a ping.
|
1728 |
+
*
|
1729 |
+
* @param {*} [data] The data to send
|
1730 |
+
* @param {Boolean} [mask] Indicates whether or not to mask `data`
|
1731 |
+
* @param {Function} [cb] Callback which is executed when the ping is sent
|
1732 |
+
* @public
|
1733 |
+
*/
|
1734 |
+
ping(e, t, r) {
|
1735 |
+
if (this.readyState === d.CONNECTING)
|
1736 |
+
throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");
|
1737 |
+
if (typeof e == "function" ? (r = e, e = t = void 0) : typeof t == "function" && (r = t, t = void 0), typeof e == "number" && (e = e.toString()), this.readyState !== d.OPEN) {
|
1738 |
+
ve(this, e, r);
|
1739 |
+
return;
|
1740 |
+
}
|
1741 |
+
t === void 0 && (t = !this._isServer), this._sender.ping(e || Q, t, r);
|
1742 |
+
}
|
1743 |
+
/**
|
1744 |
+
* Send a pong.
|
1745 |
+
*
|
1746 |
+
* @param {*} [data] The data to send
|
1747 |
+
* @param {Boolean} [mask] Indicates whether or not to mask `data`
|
1748 |
+
* @param {Function} [cb] Callback which is executed when the pong is sent
|
1749 |
+
* @public
|
1750 |
+
*/
|
1751 |
+
pong(e, t, r) {
|
1752 |
+
if (this.readyState === d.CONNECTING)
|
1753 |
+
throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");
|
1754 |
+
if (typeof e == "function" ? (r = e, e = t = void 0) : typeof t == "function" && (r = t, t = void 0), typeof e == "number" && (e = e.toString()), this.readyState !== d.OPEN) {
|
1755 |
+
ve(this, e, r);
|
1756 |
+
return;
|
1757 |
+
}
|
1758 |
+
t === void 0 && (t = !this._isServer), this._sender.pong(e || Q, t, r);
|
1759 |
+
}
|
1760 |
+
/**
|
1761 |
+
* Resume the socket.
|
1762 |
+
*
|
1763 |
+
* @public
|
1764 |
+
*/
|
1765 |
+
resume() {
|
1766 |
+
this.readyState === d.CONNECTING || this.readyState === d.CLOSED || (this._paused = !1, this._receiver._writableState.needDrain || this._socket.resume());
|
1767 |
+
}
|
1768 |
+
/**
|
1769 |
+
* Send a data message.
|
1770 |
+
*
|
1771 |
+
* @param {*} data The message to send
|
1772 |
+
* @param {Object} [options] Options object
|
1773 |
+
* @param {Boolean} [options.binary] Specifies whether `data` is binary or
|
1774 |
+
* text
|
1775 |
+
* @param {Boolean} [options.compress] Specifies whether or not to compress
|
1776 |
+
* `data`
|
1777 |
+
* @param {Boolean} [options.fin=true] Specifies whether the fragment is the
|
1778 |
+
* last one
|
1779 |
+
* @param {Boolean} [options.mask] Specifies whether or not to mask `data`
|
1780 |
+
* @param {Function} [cb] Callback which is executed when data is written out
|
1781 |
+
* @public
|
1782 |
+
*/
|
1783 |
+
send(e, t, r) {
|
1784 |
+
if (this.readyState === d.CONNECTING)
|
1785 |
+
throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");
|
1786 |
+
if (typeof t == "function" && (r = t, t = {}), typeof e == "number" && (e = e.toString()), this.readyState !== d.OPEN) {
|
1787 |
+
ve(this, e, r);
|
1788 |
+
return;
|
1789 |
+
}
|
1790 |
+
const i = {
|
1791 |
+
binary: typeof e != "string",
|
1792 |
+
mask: !this._isServer,
|
1793 |
+
compress: !0,
|
1794 |
+
fin: !0,
|
1795 |
+
...t
|
1796 |
+
};
|
1797 |
+
this._extensions[T.extensionName] || (i.compress = !1), this._sender.send(e || Q, i, r);
|
1798 |
+
}
|
1799 |
+
/**
|
1800 |
+
* Forcibly close the connection.
|
1801 |
+
*
|
1802 |
+
* @public
|
1803 |
+
*/
|
1804 |
+
terminate() {
|
1805 |
+
if (this.readyState !== d.CLOSED) {
|
1806 |
+
if (this.readyState === d.CONNECTING) {
|
1807 |
+
const e = "WebSocket was closed before the connection was established";
|
1808 |
+
b(this, this._req, e);
|
1809 |
+
return;
|
1810 |
+
}
|
1811 |
+
this._socket && (this._readyState = d.CLOSING, this._socket.destroy());
|
1812 |
+
}
|
1813 |
+
}
|
1814 |
+
};
|
1815 |
+
Object.defineProperty(m, "CONNECTING", {
|
1816 |
+
enumerable: !0,
|
1817 |
+
value: O.indexOf("CONNECTING")
|
1818 |
+
});
|
1819 |
+
Object.defineProperty(m.prototype, "CONNECTING", {
|
1820 |
+
enumerable: !0,
|
1821 |
+
value: O.indexOf("CONNECTING")
|
1822 |
+
});
|
1823 |
+
Object.defineProperty(m, "OPEN", {
|
1824 |
+
enumerable: !0,
|
1825 |
+
value: O.indexOf("OPEN")
|
1826 |
+
});
|
1827 |
+
Object.defineProperty(m.prototype, "OPEN", {
|
1828 |
+
enumerable: !0,
|
1829 |
+
value: O.indexOf("OPEN")
|
1830 |
+
});
|
1831 |
+
Object.defineProperty(m, "CLOSING", {
|
1832 |
+
enumerable: !0,
|
1833 |
+
value: O.indexOf("CLOSING")
|
1834 |
+
});
|
1835 |
+
Object.defineProperty(m.prototype, "CLOSING", {
|
1836 |
+
enumerable: !0,
|
1837 |
+
value: O.indexOf("CLOSING")
|
1838 |
+
});
|
1839 |
+
Object.defineProperty(m, "CLOSED", {
|
1840 |
+
enumerable: !0,
|
1841 |
+
value: O.indexOf("CLOSED")
|
1842 |
+
});
|
1843 |
+
Object.defineProperty(m.prototype, "CLOSED", {
|
1844 |
+
enumerable: !0,
|
1845 |
+
value: O.indexOf("CLOSED")
|
1846 |
+
});
|
1847 |
+
[
|
1848 |
+
"binaryType",
|
1849 |
+
"bufferedAmount",
|
1850 |
+
"extensions",
|
1851 |
+
"isPaused",
|
1852 |
+
"protocol",
|
1853 |
+
"readyState",
|
1854 |
+
"url"
|
1855 |
+
].forEach((s) => {
|
1856 |
+
Object.defineProperty(m.prototype, s, { enumerable: !0 });
|
1857 |
+
});
|
1858 |
+
["open", "error", "close", "message"].forEach((s) => {
|
1859 |
+
Object.defineProperty(m.prototype, `on${s}`, {
|
1860 |
+
enumerable: !0,
|
1861 |
+
get() {
|
1862 |
+
for (const e of this.listeners(s))
|
1863 |
+
if (e[ge])
|
1864 |
+
return e[ds];
|
1865 |
+
return null;
|
1866 |
+
},
|
1867 |
+
set(e) {
|
1868 |
+
for (const t of this.listeners(s))
|
1869 |
+
if (t[ge]) {
|
1870 |
+
this.removeListener(s, t);
|
1871 |
+
break;
|
1872 |
+
}
|
1873 |
+
typeof e == "function" && this.addEventListener(s, e, {
|
1874 |
+
[ge]: !0
|
1875 |
+
});
|
1876 |
+
}
|
1877 |
+
});
|
1878 |
+
});
|
1879 |
+
m.prototype.addEventListener = ps;
|
1880 |
+
m.prototype.removeEventListener = ms;
|
1881 |
+
var ft = m;
|
1882 |
+
function ht(s, e, t, r) {
|
1883 |
+
const i = {
|
1884 |
+
protocolVersion: ye[1],
|
1885 |
+
maxPayload: 104857600,
|
1886 |
+
skipUTF8Validation: !1,
|
1887 |
+
perMessageDeflate: !0,
|
1888 |
+
followRedirects: !1,
|
1889 |
+
maxRedirects: 10,
|
1890 |
+
...r,
|
1891 |
+
createConnection: void 0,
|
1892 |
+
socketPath: void 0,
|
1893 |
+
hostname: void 0,
|
1894 |
+
protocol: void 0,
|
1895 |
+
timeout: void 0,
|
1896 |
+
method: "GET",
|
1897 |
+
host: void 0,
|
1898 |
+
path: void 0,
|
1899 |
+
port: void 0
|
1900 |
+
};
|
1901 |
+
if (!ye.includes(i.protocolVersion))
|
1902 |
+
throw new RangeError(
|
1903 |
+
`Unsupported protocol version: ${i.protocolVersion} (supported versions: ${ye.join(", ")})`
|
1904 |
+
);
|
1905 |
+
let n;
|
1906 |
+
if (e instanceof me)
|
1907 |
+
n = e, s._url = e.href;
|
1908 |
+
else {
|
1909 |
+
try {
|
1910 |
+
n = new me(e);
|
1911 |
+
} catch {
|
1912 |
+
throw new SyntaxError(`Invalid URL: ${e}`);
|
1913 |
+
}
|
1914 |
+
s._url = e;
|
1915 |
+
}
|
1916 |
+
const o = n.protocol === "wss:", l = n.protocol === "ws+unix:";
|
1917 |
+
let f;
|
1918 |
+
if (n.protocol !== "ws:" && !o && !l ? f = `The URL's protocol must be one of "ws:", "wss:", or "ws+unix:"` : l && !n.pathname ? f = "The URL's pathname is empty" : n.hash && (f = "The URL contains a fragment identifier"), f) {
|
1919 |
+
const u = new SyntaxError(f);
|
1920 |
+
if (s._redirects === 0)
|
1921 |
+
throw u;
|
1922 |
+
ee(s, u);
|
1923 |
+
return;
|
1924 |
+
}
|
1925 |
+
const a = o ? 443 : 80, c = ls(16).toString("base64"), h = o ? ns.request : os.request, p = /* @__PURE__ */ new Set();
|
1926 |
+
let v;
|
1927 |
+
if (i.createConnection = o ? xs : bs, i.defaultPort = i.defaultPort || a, i.port = n.port || a, i.host = n.hostname.startsWith("[") ? n.hostname.slice(1, -1) : n.hostname, i.headers = {
|
1928 |
+
...i.headers,
|
1929 |
+
"Sec-WebSocket-Version": i.protocolVersion,
|
1930 |
+
"Sec-WebSocket-Key": c,
|
1931 |
+
Connection: "Upgrade",
|
1932 |
+
Upgrade: "websocket"
|
1933 |
+
}, i.path = n.pathname + n.search, i.timeout = i.handshakeTimeout, i.perMessageDeflate && (v = new T(
|
1934 |
+
i.perMessageDeflate !== !0 ? i.perMessageDeflate : {},
|
1935 |
+
!1,
|
1936 |
+
i.maxPayload
|
1937 |
+
), i.headers["Sec-WebSocket-Extensions"] = gs({
|
1938 |
+
[T.extensionName]: v.offer()
|
1939 |
+
})), t.length) {
|
1940 |
+
for (const u of t) {
|
1941 |
+
if (typeof u != "string" || !Es.test(u) || p.has(u))
|
1942 |
+
throw new SyntaxError(
|
1943 |
+
"An invalid or duplicated subprotocol was specified"
|
1944 |
+
);
|
1945 |
+
p.add(u);
|
1946 |
+
}
|
1947 |
+
i.headers["Sec-WebSocket-Protocol"] = t.join(",");
|
1948 |
+
}
|
1949 |
+
if (i.origin && (i.protocolVersion < 13 ? i.headers["Sec-WebSocket-Origin"] = i.origin : i.headers.Origin = i.origin), (n.username || n.password) && (i.auth = `${n.username}:${n.password}`), l) {
|
1950 |
+
const u = i.path.split(":");
|
1951 |
+
i.socketPath = u[0], i.path = u[1];
|
1952 |
+
}
|
1953 |
+
let _;
|
1954 |
+
if (i.followRedirects) {
|
1955 |
+
if (s._redirects === 0) {
|
1956 |
+
s._originalIpc = l, s._originalSecure = o, s._originalHostOrSocketPath = l ? i.socketPath : n.host;
|
1957 |
+
const u = r && r.headers;
|
1958 |
+
if (r = { ...r, headers: {} }, u)
|
1959 |
+
for (const [E, $] of Object.entries(u))
|
1960 |
+
r.headers[E.toLowerCase()] = $;
|
1961 |
+
} else if (s.listenerCount("redirect") === 0) {
|
1962 |
+
const u = l ? s._originalIpc ? i.socketPath === s._originalHostOrSocketPath : !1 : s._originalIpc ? !1 : n.host === s._originalHostOrSocketPath;
|
1963 |
+
(!u || s._originalSecure && !o) && (delete i.headers.authorization, delete i.headers.cookie, u || delete i.headers.host, i.auth = void 0);
|
1964 |
+
}
|
1965 |
+
i.auth && !r.headers.authorization && (r.headers.authorization = "Basic " + Buffer.from(i.auth).toString("base64")), _ = s._req = h(i), s._redirects && s.emit("redirect", s.url, _);
|
1966 |
+
} else
|
1967 |
+
_ = s._req = h(i);
|
1968 |
+
i.timeout && _.on("timeout", () => {
|
1969 |
+
b(s, _, "Opening handshake has timed out");
|
1970 |
+
}), _.on("error", (u) => {
|
1971 |
+
_ === null || _[lt] || (_ = s._req = null, ee(s, u));
|
1972 |
+
}), _.on("response", (u) => {
|
1973 |
+
const E = u.headers.location, $ = u.statusCode;
|
1974 |
+
if (E && i.followRedirects && $ >= 300 && $ < 400) {
|
1975 |
+
if (++s._redirects > i.maxRedirects) {
|
1976 |
+
b(s, _, "Maximum redirects exceeded");
|
1977 |
+
return;
|
1978 |
+
}
|
1979 |
+
_.abort();
|
1980 |
+
let q;
|
1981 |
+
try {
|
1982 |
+
q = new me(E, e);
|
1983 |
+
} catch {
|
1984 |
+
const L = new SyntaxError(`Invalid URL: ${E}`);
|
1985 |
+
ee(s, L);
|
1986 |
+
return;
|
1987 |
+
}
|
1988 |
+
ht(s, q, t, r);
|
1989 |
+
} else
|
1990 |
+
s.emit("unexpected-response", _, u) || b(
|
1991 |
+
s,
|
1992 |
+
_,
|
1993 |
+
`Unexpected server response: ${u.statusCode}`
|
1994 |
+
);
|
1995 |
+
}), _.on("upgrade", (u, E, $) => {
|
1996 |
+
if (s.emit("upgrade", u), s.readyState !== m.CONNECTING)
|
1997 |
+
return;
|
1998 |
+
if (_ = s._req = null, u.headers.upgrade.toLowerCase() !== "websocket") {
|
1999 |
+
b(s, E, "Invalid Upgrade header");
|
2000 |
+
return;
|
2001 |
+
}
|
2002 |
+
const q = fs("sha1").update(c + us).digest("base64");
|
2003 |
+
if (u.headers["sec-websocket-accept"] !== q) {
|
2004 |
+
b(s, E, "Invalid Sec-WebSocket-Accept header");
|
2005 |
+
return;
|
2006 |
+
}
|
2007 |
+
const D = u.headers["sec-websocket-protocol"];
|
2008 |
+
let L;
|
2009 |
+
if (D !== void 0 ? p.size ? p.has(D) || (L = "Server sent an invalid subprotocol") : L = "Server sent a subprotocol but none was requested" : p.size && (L = "Server sent no subprotocol"), L) {
|
2010 |
+
b(s, E, L);
|
2011 |
+
return;
|
2012 |
+
}
|
2013 |
+
D && (s._protocol = D);
|
2014 |
+
const ke = u.headers["sec-websocket-extensions"];
|
2015 |
+
if (ke !== void 0) {
|
2016 |
+
if (!v) {
|
2017 |
+
b(s, E, "Server sent a Sec-WebSocket-Extensions header but no extension was requested");
|
2018 |
+
return;
|
2019 |
+
}
|
2020 |
+
let he;
|
2021 |
+
try {
|
2022 |
+
he = ys(ke);
|
2023 |
+
} catch {
|
2024 |
+
b(s, E, "Invalid Sec-WebSocket-Extensions header");
|
2025 |
+
return;
|
2026 |
+
}
|
2027 |
+
const we = Object.keys(he);
|
2028 |
+
if (we.length !== 1 || we[0] !== T.extensionName) {
|
2029 |
+
b(s, E, "Server indicated an extension that was not requested");
|
2030 |
+
return;
|
2031 |
+
}
|
2032 |
+
try {
|
2033 |
+
v.accept(he[T.extensionName]);
|
2034 |
+
} catch {
|
2035 |
+
b(s, E, "Invalid Sec-WebSocket-Extensions header");
|
2036 |
+
return;
|
2037 |
+
}
|
2038 |
+
s._extensions[T.extensionName] = v;
|
2039 |
+
}
|
2040 |
+
s.setSocket(E, $, {
|
2041 |
+
generateMask: i.generateMask,
|
2042 |
+
maxPayload: i.maxPayload,
|
2043 |
+
skipUTF8Validation: i.skipUTF8Validation
|
2044 |
+
});
|
2045 |
+
}), i.finishRequest ? i.finishRequest(_, s) : _.end();
|
2046 |
+
}
|
2047 |
+
function ee(s, e) {
|
2048 |
+
s._readyState = m.CLOSING, s.emit("error", e), s.emitClose();
|
2049 |
+
}
|
2050 |
+
function bs(s) {
|
2051 |
+
return s.path = s.socketPath, ot.connect(s);
|
2052 |
+
}
|
2053 |
+
function xs(s) {
|
2054 |
+
return s.path = void 0, !s.servername && s.servername !== "" && (s.servername = ot.isIP(s.host) ? "" : s.host), as.connect(s);
|
2055 |
+
}
|
2056 |
+
function b(s, e, t) {
|
2057 |
+
s._readyState = m.CLOSING;
|
2058 |
+
const r = new Error(t);
|
2059 |
+
Error.captureStackTrace(r, b), e.setHeader ? (e[lt] = !0, e.abort(), e.socket && !e.socket.destroyed && e.socket.destroy(), process.nextTick(ee, s, r)) : (e.destroy(r), e.once("error", s.emit.bind(s, "error")), e.once("close", s.emitClose.bind(s)));
|
2060 |
+
}
|
2061 |
+
function ve(s, e, t) {
|
2062 |
+
if (e) {
|
2063 |
+
const r = vs(e).length;
|
2064 |
+
s._socket ? s._sender._bufferedBytes += r : s._bufferedAmount += r;
|
2065 |
+
}
|
2066 |
+
if (t) {
|
2067 |
+
const r = new Error(
|
2068 |
+
`WebSocket is not open: readyState ${s.readyState} (${O[s.readyState]})`
|
2069 |
+
);
|
2070 |
+
process.nextTick(t, r);
|
2071 |
+
}
|
2072 |
+
}
|
2073 |
+
function ks(s, e) {
|
2074 |
+
const t = this[y];
|
2075 |
+
t._closeFrameReceived = !0, t._closeMessage = e, t._closeCode = s, t._socket[y] !== void 0 && (t._socket.removeListener("data", fe), process.nextTick(ct, t._socket), s === 1005 ? t.close() : t.close(s, e));
|
2076 |
+
}
|
2077 |
+
function ws() {
|
2078 |
+
const s = this[y];
|
2079 |
+
s.isPaused || s._socket.resume();
|
2080 |
+
}
|
2081 |
+
function Os(s) {
|
2082 |
+
const e = this[y];
|
2083 |
+
e._socket[y] !== void 0 && (e._socket.removeListener("data", fe), process.nextTick(ct, e._socket), e.close(s[_s])), e.emit("error", s);
|
2084 |
+
}
|
2085 |
+
function Ye() {
|
2086 |
+
this[y].emitClose();
|
2087 |
+
}
|
2088 |
+
function Cs(s, e) {
|
2089 |
+
this[y].emit("message", s, e);
|
2090 |
+
}
|
2091 |
+
function Ts(s) {
|
2092 |
+
const e = this[y];
|
2093 |
+
e.pong(s, !e._isServer, at), e.emit("ping", s);
|
2094 |
+
}
|
2095 |
+
function Ls(s) {
|
2096 |
+
this[y].emit("pong", s);
|
2097 |
+
}
|
2098 |
+
function ct(s) {
|
2099 |
+
s.resume();
|
2100 |
+
}
|
2101 |
+
function ut() {
|
2102 |
+
const s = this[y];
|
2103 |
+
this.removeListener("close", ut), this.removeListener("data", fe), this.removeListener("end", dt), s._readyState = m.CLOSING;
|
2104 |
+
let e;
|
2105 |
+
!this._readableState.endEmitted && !s._closeFrameReceived && !s._receiver._writableState.errorEmitted && (e = s._socket.read()) !== null && s._receiver.write(e), s._receiver.end(), this[y] = void 0, clearTimeout(s._closeTimer), s._receiver._writableState.finished || s._receiver._writableState.errorEmitted ? s.emitClose() : (s._receiver.on("error", Ye), s._receiver.on("finish", Ye));
|
2106 |
+
}
|
2107 |
+
function fe(s) {
|
2108 |
+
this[y]._receiver.write(s) || this.pause();
|
2109 |
+
}
|
2110 |
+
function dt() {
|
2111 |
+
const s = this[y];
|
2112 |
+
s._readyState = m.CLOSING, s._receiver.end(), this.end();
|
2113 |
+
}
|
2114 |
+
function _t() {
|
2115 |
+
const s = this[y];
|
2116 |
+
this.removeListener("error", _t), this.on("error", at), s && (s._readyState = m.CLOSING, this.destroy());
|
2117 |
+
}
|
2118 |
+
const Xs = /* @__PURE__ */ z(ft), { tokenChars: Ns } = ae;
|
2119 |
+
function Ps(s) {
|
2120 |
+
const e = /* @__PURE__ */ new Set();
|
2121 |
+
let t = -1, r = -1, i = 0;
|
2122 |
+
for (i; i < s.length; i++) {
|
2123 |
+
const o = s.charCodeAt(i);
|
2124 |
+
if (r === -1 && Ns[o] === 1)
|
2125 |
+
t === -1 && (t = i);
|
2126 |
+
else if (i !== 0 && (o === 32 || o === 9))
|
2127 |
+
r === -1 && t !== -1 && (r = i);
|
2128 |
+
else if (o === 44) {
|
2129 |
+
if (t === -1)
|
2130 |
+
throw new SyntaxError(`Unexpected character at index ${i}`);
|
2131 |
+
r === -1 && (r = i);
|
2132 |
+
const l = s.slice(t, r);
|
2133 |
+
if (e.has(l))
|
2134 |
+
throw new SyntaxError(`The "${l}" subprotocol is duplicated`);
|
2135 |
+
e.add(l), t = r = -1;
|
2136 |
+
} else
|
2137 |
+
throw new SyntaxError(`Unexpected character at index ${i}`);
|
2138 |
+
}
|
2139 |
+
if (t === -1 || r !== -1)
|
2140 |
+
throw new SyntaxError("Unexpected end of input");
|
2141 |
+
const n = s.slice(t, i);
|
2142 |
+
if (e.has(n))
|
2143 |
+
throw new SyntaxError(`The "${n}" subprotocol is duplicated`);
|
2144 |
+
return e.add(n), e;
|
2145 |
+
}
|
2146 |
+
var Rs = { parse: Ps };
|
2147 |
+
const Us = S, ie = S, { createHash: Bs } = S, qe = nt, N = oe, $s = Rs, Ms = ft, { GUID: Is, kWebSocket: Ds } = U, Ws = /^[+/0-9A-Za-z]{22}==$/, Ke = 0, Xe = 1, pt = 2;
|
2148 |
+
class As extends Us {
|
2149 |
+
/**
|
2150 |
+
* Create a `WebSocketServer` instance.
|
2151 |
+
*
|
2152 |
+
* @param {Object} options Configuration options
|
2153 |
+
* @param {Number} [options.backlog=511] The maximum length of the queue of
|
2154 |
+
* pending connections
|
2155 |
+
* @param {Boolean} [options.clientTracking=true] Specifies whether or not to
|
2156 |
+
* track clients
|
2157 |
+
* @param {Function} [options.handleProtocols] A hook to handle protocols
|
2158 |
+
* @param {String} [options.host] The hostname where to bind the server
|
2159 |
+
* @param {Number} [options.maxPayload=104857600] The maximum allowed message
|
2160 |
+
* size
|
2161 |
+
* @param {Boolean} [options.noServer=false] Enable no server mode
|
2162 |
+
* @param {String} [options.path] Accept only connections matching this path
|
2163 |
+
* @param {(Boolean|Object)} [options.perMessageDeflate=false] Enable/disable
|
2164 |
+
* permessage-deflate
|
2165 |
+
* @param {Number} [options.port] The port where to bind the server
|
2166 |
+
* @param {(http.Server|https.Server)} [options.server] A pre-created HTTP/S
|
2167 |
+
* server to use
|
2168 |
+
* @param {Boolean} [options.skipUTF8Validation=false] Specifies whether or
|
2169 |
+
* not to skip UTF-8 validation for text and close messages
|
2170 |
+
* @param {Function} [options.verifyClient] A hook to reject connections
|
2171 |
+
* @param {Function} [options.WebSocket=WebSocket] Specifies the `WebSocket`
|
2172 |
+
* class to use. It must be the `WebSocket` class or class that extends it
|
2173 |
+
* @param {Function} [callback] A listener for the `listening` event
|
2174 |
+
*/
|
2175 |
+
constructor(e, t) {
|
2176 |
+
if (super(), e = {
|
2177 |
+
maxPayload: 100 * 1024 * 1024,
|
2178 |
+
skipUTF8Validation: !1,
|
2179 |
+
perMessageDeflate: !1,
|
2180 |
+
handleProtocols: null,
|
2181 |
+
clientTracking: !0,
|
2182 |
+
verifyClient: null,
|
2183 |
+
noServer: !1,
|
2184 |
+
backlog: null,
|
2185 |
+
// use default (511 as implemented in net.js)
|
2186 |
+
server: null,
|
2187 |
+
host: null,
|
2188 |
+
path: null,
|
2189 |
+
port: null,
|
2190 |
+
WebSocket: Ms,
|
2191 |
+
...e
|
2192 |
+
}, e.port == null && !e.server && !e.noServer || e.port != null && (e.server || e.noServer) || e.server && e.noServer)
|
2193 |
+
throw new TypeError(
|
2194 |
+
'One and only one of the "port", "server", or "noServer" options must be specified'
|
2195 |
+
);
|
2196 |
+
if (e.port != null ? (this._server = ie.createServer((r, i) => {
|
2197 |
+
const n = ie.STATUS_CODES[426];
|
2198 |
+
i.writeHead(426, {
|
2199 |
+
"Content-Length": n.length,
|
2200 |
+
"Content-Type": "text/plain"
|
2201 |
+
}), i.end(n);
|
2202 |
+
}), this._server.listen(
|
2203 |
+
e.port,
|
2204 |
+
e.host,
|
2205 |
+
e.backlog,
|
2206 |
+
t
|
2207 |
+
)) : e.server && (this._server = e.server), this._server) {
|
2208 |
+
const r = this.emit.bind(this, "connection");
|
2209 |
+
this._removeListeners = js(this._server, {
|
2210 |
+
listening: this.emit.bind(this, "listening"),
|
2211 |
+
error: this.emit.bind(this, "error"),
|
2212 |
+
upgrade: (i, n, o) => {
|
2213 |
+
this.handleUpgrade(i, n, o, r);
|
2214 |
+
}
|
2215 |
+
});
|
2216 |
+
}
|
2217 |
+
e.perMessageDeflate === !0 && (e.perMessageDeflate = {}), e.clientTracking && (this.clients = /* @__PURE__ */ new Set(), this._shouldEmitClose = !1), this.options = e, this._state = Ke;
|
2218 |
+
}
|
2219 |
+
/**
|
2220 |
+
* Returns the bound address, the address family name, and port of the server
|
2221 |
+
* as reported by the operating system if listening on an IP socket.
|
2222 |
+
* If the server is listening on a pipe or UNIX domain socket, the name is
|
2223 |
+
* returned as a string.
|
2224 |
+
*
|
2225 |
+
* @return {(Object|String|null)} The address of the server
|
2226 |
+
* @public
|
2227 |
+
*/
|
2228 |
+
address() {
|
2229 |
+
if (this.options.noServer)
|
2230 |
+
throw new Error('The server is operating in "noServer" mode');
|
2231 |
+
return this._server ? this._server.address() : null;
|
2232 |
+
}
|
2233 |
+
/**
|
2234 |
+
* Stop the server from accepting new connections and emit the `'close'` event
|
2235 |
+
* when all existing connections are closed.
|
2236 |
+
*
|
2237 |
+
* @param {Function} [cb] A one-time listener for the `'close'` event
|
2238 |
+
* @public
|
2239 |
+
*/
|
2240 |
+
close(e) {
|
2241 |
+
if (this._state === pt) {
|
2242 |
+
e && this.once("close", () => {
|
2243 |
+
e(new Error("The server is not running"));
|
2244 |
+
}), process.nextTick(G, this);
|
2245 |
+
return;
|
2246 |
+
}
|
2247 |
+
if (e && this.once("close", e), this._state !== Xe)
|
2248 |
+
if (this._state = Xe, this.options.noServer || this.options.server)
|
2249 |
+
this._server && (this._removeListeners(), this._removeListeners = this._server = null), this.clients ? this.clients.size ? this._shouldEmitClose = !0 : process.nextTick(G, this) : process.nextTick(G, this);
|
2250 |
+
else {
|
2251 |
+
const t = this._server;
|
2252 |
+
this._removeListeners(), this._removeListeners = this._server = null, t.close(() => {
|
2253 |
+
G(this);
|
2254 |
+
});
|
2255 |
+
}
|
2256 |
+
}
|
2257 |
+
/**
|
2258 |
+
* See if a given request should be handled by this server instance.
|
2259 |
+
*
|
2260 |
+
* @param {http.IncomingMessage} req Request object to inspect
|
2261 |
+
* @return {Boolean} `true` if the request is valid, else `false`
|
2262 |
+
* @public
|
2263 |
+
*/
|
2264 |
+
shouldHandle(e) {
|
2265 |
+
if (this.options.path) {
|
2266 |
+
const t = e.url.indexOf("?");
|
2267 |
+
if ((t !== -1 ? e.url.slice(0, t) : e.url) !== this.options.path)
|
2268 |
+
return !1;
|
2269 |
+
}
|
2270 |
+
return !0;
|
2271 |
+
}
|
2272 |
+
/**
|
2273 |
+
* Handle a HTTP Upgrade request.
|
2274 |
+
*
|
2275 |
+
* @param {http.IncomingMessage} req The request object
|
2276 |
+
* @param {(net.Socket|tls.Socket)} socket The network socket between the
|
2277 |
+
* server and client
|
2278 |
+
* @param {Buffer} head The first packet of the upgraded stream
|
2279 |
+
* @param {Function} cb Callback
|
2280 |
+
* @public
|
2281 |
+
*/
|
2282 |
+
handleUpgrade(e, t, r, i) {
|
2283 |
+
t.on("error", Ze);
|
2284 |
+
const n = e.headers["sec-websocket-key"], o = +e.headers["sec-websocket-version"];
|
2285 |
+
if (e.method !== "GET") {
|
2286 |
+
R(this, e, t, 405, "Invalid HTTP method");
|
2287 |
+
return;
|
2288 |
+
}
|
2289 |
+
if (e.headers.upgrade.toLowerCase() !== "websocket") {
|
2290 |
+
R(this, e, t, 400, "Invalid Upgrade header");
|
2291 |
+
return;
|
2292 |
+
}
|
2293 |
+
if (!n || !Ws.test(n)) {
|
2294 |
+
R(this, e, t, 400, "Missing or invalid Sec-WebSocket-Key header");
|
2295 |
+
return;
|
2296 |
+
}
|
2297 |
+
if (o !== 8 && o !== 13) {
|
2298 |
+
R(this, e, t, 400, "Missing or invalid Sec-WebSocket-Version header");
|
2299 |
+
return;
|
2300 |
+
}
|
2301 |
+
if (!this.shouldHandle(e)) {
|
2302 |
+
H(t, 400);
|
2303 |
+
return;
|
2304 |
+
}
|
2305 |
+
const l = e.headers["sec-websocket-protocol"];
|
2306 |
+
let f = /* @__PURE__ */ new Set();
|
2307 |
+
if (l !== void 0)
|
2308 |
+
try {
|
2309 |
+
f = $s.parse(l);
|
2310 |
+
} catch {
|
2311 |
+
R(this, e, t, 400, "Invalid Sec-WebSocket-Protocol header");
|
2312 |
+
return;
|
2313 |
+
}
|
2314 |
+
const a = e.headers["sec-websocket-extensions"], c = {};
|
2315 |
+
if (this.options.perMessageDeflate && a !== void 0) {
|
2316 |
+
const h = new N(
|
2317 |
+
this.options.perMessageDeflate,
|
2318 |
+
!0,
|
2319 |
+
this.options.maxPayload
|
2320 |
+
);
|
2321 |
+
try {
|
2322 |
+
const p = qe.parse(a);
|
2323 |
+
p[N.extensionName] && (h.accept(p[N.extensionName]), c[N.extensionName] = h);
|
2324 |
+
} catch {
|
2325 |
+
R(this, e, t, 400, "Invalid or unacceptable Sec-WebSocket-Extensions header");
|
2326 |
+
return;
|
2327 |
+
}
|
2328 |
+
}
|
2329 |
+
if (this.options.verifyClient) {
|
2330 |
+
const h = {
|
2331 |
+
origin: e.headers[`${o === 8 ? "sec-websocket-origin" : "origin"}`],
|
2332 |
+
secure: !!(e.socket.authorized || e.socket.encrypted),
|
2333 |
+
req: e
|
2334 |
+
};
|
2335 |
+
if (this.options.verifyClient.length === 2) {
|
2336 |
+
this.options.verifyClient(h, (p, v, _, u) => {
|
2337 |
+
if (!p)
|
2338 |
+
return H(t, v || 401, _, u);
|
2339 |
+
this.completeUpgrade(
|
2340 |
+
c,
|
2341 |
+
n,
|
2342 |
+
f,
|
2343 |
+
e,
|
2344 |
+
t,
|
2345 |
+
r,
|
2346 |
+
i
|
2347 |
+
);
|
2348 |
+
});
|
2349 |
+
return;
|
2350 |
+
}
|
2351 |
+
if (!this.options.verifyClient(h))
|
2352 |
+
return H(t, 401);
|
2353 |
+
}
|
2354 |
+
this.completeUpgrade(c, n, f, e, t, r, i);
|
2355 |
+
}
|
2356 |
+
/**
|
2357 |
+
* Upgrade the connection to WebSocket.
|
2358 |
+
*
|
2359 |
+
* @param {Object} extensions The accepted extensions
|
2360 |
+
* @param {String} key The value of the `Sec-WebSocket-Key` header
|
2361 |
+
* @param {Set} protocols The subprotocols
|
2362 |
+
* @param {http.IncomingMessage} req The request object
|
2363 |
+
* @param {(net.Socket|tls.Socket)} socket The network socket between the
|
2364 |
+
* server and client
|
2365 |
+
* @param {Buffer} head The first packet of the upgraded stream
|
2366 |
+
* @param {Function} cb Callback
|
2367 |
+
* @throws {Error} If called more than once with the same socket
|
2368 |
+
* @private
|
2369 |
+
*/
|
2370 |
+
completeUpgrade(e, t, r, i, n, o, l) {
|
2371 |
+
if (!n.readable || !n.writable)
|
2372 |
+
return n.destroy();
|
2373 |
+
if (n[Ds])
|
2374 |
+
throw new Error(
|
2375 |
+
"server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration"
|
2376 |
+
);
|
2377 |
+
if (this._state > Ke)
|
2378 |
+
return H(n, 503);
|
2379 |
+
const a = [
|
2380 |
+
"HTTP/1.1 101 Switching Protocols",
|
2381 |
+
"Upgrade: websocket",
|
2382 |
+
"Connection: Upgrade",
|
2383 |
+
`Sec-WebSocket-Accept: ${Bs("sha1").update(t + Is).digest("base64")}`
|
2384 |
+
], c = new this.options.WebSocket(null);
|
2385 |
+
if (r.size) {
|
2386 |
+
const h = this.options.handleProtocols ? this.options.handleProtocols(r, i) : r.values().next().value;
|
2387 |
+
h && (a.push(`Sec-WebSocket-Protocol: ${h}`), c._protocol = h);
|
2388 |
+
}
|
2389 |
+
if (e[N.extensionName]) {
|
2390 |
+
const h = e[N.extensionName].params, p = qe.format({
|
2391 |
+
[N.extensionName]: [h]
|
2392 |
+
});
|
2393 |
+
a.push(`Sec-WebSocket-Extensions: ${p}`), c._extensions = e;
|
2394 |
+
}
|
2395 |
+
this.emit("headers", a, i), n.write(a.concat(`\r
|
2396 |
+
`).join(`\r
|
2397 |
+
`)), n.removeListener("error", Ze), c.setSocket(n, o, {
|
2398 |
+
maxPayload: this.options.maxPayload,
|
2399 |
+
skipUTF8Validation: this.options.skipUTF8Validation
|
2400 |
+
}), this.clients && (this.clients.add(c), c.on("close", () => {
|
2401 |
+
this.clients.delete(c), this._shouldEmitClose && !this.clients.size && process.nextTick(G, this);
|
2402 |
+
})), l(c, i);
|
2403 |
+
}
|
2404 |
+
}
|
2405 |
+
var Fs = As;
|
2406 |
+
function js(s, e) {
|
2407 |
+
for (const t of Object.keys(e))
|
2408 |
+
s.on(t, e[t]);
|
2409 |
+
return function() {
|
2410 |
+
for (const r of Object.keys(e))
|
2411 |
+
s.removeListener(r, e[r]);
|
2412 |
+
};
|
2413 |
+
}
|
2414 |
+
function G(s) {
|
2415 |
+
s._state = pt, s.emit("close");
|
2416 |
+
}
|
2417 |
+
function Ze() {
|
2418 |
+
this.destroy();
|
2419 |
+
}
|
2420 |
+
function H(s, e, t, r) {
|
2421 |
+
t = t || ie.STATUS_CODES[e], r = {
|
2422 |
+
Connection: "close",
|
2423 |
+
"Content-Type": "text/html",
|
2424 |
+
"Content-Length": Buffer.byteLength(t),
|
2425 |
+
...r
|
2426 |
+
}, s.once("finish", s.destroy), s.end(
|
2427 |
+
`HTTP/1.1 ${e} ${ie.STATUS_CODES[e]}\r
|
2428 |
+
` + Object.keys(r).map((i) => `${i}: ${r[i]}`).join(`\r
|
2429 |
+
`) + `\r
|
2430 |
+
\r
|
2431 |
+
` + t
|
2432 |
+
);
|
2433 |
+
}
|
2434 |
+
function R(s, e, t, r, i) {
|
2435 |
+
if (s.listenerCount("wsClientError")) {
|
2436 |
+
const n = new Error(i);
|
2437 |
+
Error.captureStackTrace(n, R), s.emit("wsClientError", n, t, e);
|
2438 |
+
} else
|
2439 |
+
H(t, r, i);
|
2440 |
+
}
|
2441 |
+
const Zs = /* @__PURE__ */ z(Fs);
|
2442 |
+
export {
|
2443 |
+
qs as Receiver,
|
2444 |
+
Ks as Sender,
|
2445 |
+
Xs as WebSocket,
|
2446 |
+
Zs as WebSocketServer,
|
2447 |
+
Vs as createWebSocketStream,
|
2448 |
+
Xs as default
|
2449 |
+
};
|
src/backend/gradio_molecule3d/templates/example/index.js
ADDED
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
const {
|
2 |
+
SvelteComponent: f,
|
3 |
+
append: u,
|
4 |
+
attr: d,
|
5 |
+
detach: o,
|
6 |
+
element: y,
|
7 |
+
init: g,
|
8 |
+
insert: v,
|
9 |
+
noop: r,
|
10 |
+
safe_not_equal: c,
|
11 |
+
set_data: m,
|
12 |
+
text: b,
|
13 |
+
toggle_class: _
|
14 |
+
} = window.__gradio__svelte__internal;
|
15 |
+
function A(t) {
|
16 |
+
let e, n = (Array.isArray(
|
17 |
+
/*value*/
|
18 |
+
t[0]
|
19 |
+
) ? (
|
20 |
+
/*value*/
|
21 |
+
t[0].join(", ")
|
22 |
+
) : (
|
23 |
+
/*value*/
|
24 |
+
t[0]
|
25 |
+
)) + "", s;
|
26 |
+
return {
|
27 |
+
c() {
|
28 |
+
e = y("div"), s = b(n), d(e, "class", "svelte-1hgn91n"), _(
|
29 |
+
e,
|
30 |
+
"table",
|
31 |
+
/*type*/
|
32 |
+
t[1] === "table"
|
33 |
+
), _(
|
34 |
+
e,
|
35 |
+
"gallery",
|
36 |
+
/*type*/
|
37 |
+
t[1] === "gallery"
|
38 |
+
), _(
|
39 |
+
e,
|
40 |
+
"selected",
|
41 |
+
/*selected*/
|
42 |
+
t[2]
|
43 |
+
);
|
44 |
+
},
|
45 |
+
m(l, a) {
|
46 |
+
v(l, e, a), u(e, s);
|
47 |
+
},
|
48 |
+
p(l, [a]) {
|
49 |
+
a & /*value*/
|
50 |
+
1 && n !== (n = (Array.isArray(
|
51 |
+
/*value*/
|
52 |
+
l[0]
|
53 |
+
) ? (
|
54 |
+
/*value*/
|
55 |
+
l[0].join(", ")
|
56 |
+
) : (
|
57 |
+
/*value*/
|
58 |
+
l[0]
|
59 |
+
)) + "") && m(s, n), a & /*type*/
|
60 |
+
2 && _(
|
61 |
+
e,
|
62 |
+
"table",
|
63 |
+
/*type*/
|
64 |
+
l[1] === "table"
|
65 |
+
), a & /*type*/
|
66 |
+
2 && _(
|
67 |
+
e,
|
68 |
+
"gallery",
|
69 |
+
/*type*/
|
70 |
+
l[1] === "gallery"
|
71 |
+
), a & /*selected*/
|
72 |
+
4 && _(
|
73 |
+
e,
|
74 |
+
"selected",
|
75 |
+
/*selected*/
|
76 |
+
l[2]
|
77 |
+
);
|
78 |
+
},
|
79 |
+
i: r,
|
80 |
+
o: r,
|
81 |
+
d(l) {
|
82 |
+
l && o(e);
|
83 |
+
}
|
84 |
+
};
|
85 |
+
}
|
86 |
+
function h(t, e, n) {
|
87 |
+
let { value: s } = e, { type: l } = e, { selected: a = !1 } = e;
|
88 |
+
return t.$$set = (i) => {
|
89 |
+
"value" in i && n(0, s = i.value), "type" in i && n(1, l = i.type), "selected" in i && n(2, a = i.selected);
|
90 |
+
}, [s, l, a];
|
91 |
+
}
|
92 |
+
class j extends f {
|
93 |
+
constructor(e) {
|
94 |
+
super(), g(this, e, h, A, c, { value: 0, type: 1, selected: 2 });
|
95 |
+
}
|
96 |
+
}
|
97 |
+
export {
|
98 |
+
j as default
|
99 |
+
};
|
src/backend/gradio_molecule3d/templates/example/style.css
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
div.svelte-1hgn91n{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gallery.svelte-1hgn91n{display:flex;align-items:center;cursor:pointer;padding:var(--size-1) var(--size-2);text-align:left}
|
src/demo/1pga.pdb
ADDED
@@ -0,0 +1,728 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
HEADER IMMUNOGLOBULIN BINDING PROTEIN 23-NOV-93 1PGA
|
2 |
+
TITLE TWO CRYSTAL STRUCTURES OF THE B1 IMMUNOGLOBULIN-BINDING DOMAIN OF
|
3 |
+
TITLE 2 STREPTOCOCCAL PROTEIN G AND COMPARISON WITH NMR
|
4 |
+
COMPND MOL_ID: 1;
|
5 |
+
COMPND 2 MOLECULE: PROTEIN G;
|
6 |
+
COMPND 3 CHAIN: A;
|
7 |
+
COMPND 4 ENGINEERED: YES
|
8 |
+
SOURCE MOL_ID: 1;
|
9 |
+
SOURCE 2 ORGANISM_SCIENTIFIC: STREPTOCOCCUS SP. GX7805;
|
10 |
+
SOURCE 3 ORGANISM_TAXID: 1325
|
11 |
+
KEYWDS IMMUNOGLOBULIN BINDING PROTEIN
|
12 |
+
EXPDTA X-RAY DIFFRACTION
|
13 |
+
AUTHOR T.GALLAGHER,P.ALEXANDER,P.BRYAN,G.L.GILLILAND
|
14 |
+
REVDAT 3 29-NOV-17 1PGA 1 HELIX
|
15 |
+
REVDAT 2 24-FEB-09 1PGA 1 VERSN
|
16 |
+
REVDAT 1 30-APR-94 1PGA 0
|
17 |
+
JRNL AUTH T.GALLAGHER,P.ALEXANDER,P.BRYAN,G.L.GILLILAND
|
18 |
+
JRNL TITL TWO CRYSTAL STRUCTURES OF THE B1 IMMUNOGLOBULIN-BINDING
|
19 |
+
JRNL TITL 2 DOMAIN OF STREPTOCOCCAL PROTEIN G AND COMPARISON WITH NMR.
|
20 |
+
JRNL REF BIOCHEMISTRY V. 33 4721 1994
|
21 |
+
JRNL REFN ISSN 0006-2960
|
22 |
+
JRNL PMID 8161530
|
23 |
+
JRNL DOI 10.1021/BI00181A032
|
24 |
+
REMARK 1
|
25 |
+
REMARK 1 REFERENCE 1
|
26 |
+
REMARK 1 AUTH A.ACHARI,S.P.HALE,A.J.HOWARD,G.M.CLORE,A.M.GRONENBORN,
|
27 |
+
REMARK 1 AUTH 2 K.D.HARDMAN,M.WHITLOW
|
28 |
+
REMARK 1 TITL 1.67 ANGSTROMS X-RAY STRUCTURE OF THE B2
|
29 |
+
REMARK 1 TITL 2 IMMUNOGLOBULIN-BINDING DOMAIN OF STREPTOCCOCAL PROTEIN G AND
|
30 |
+
REMARK 1 TITL 3 COMPARISON TO THE NMR STRUCTURE OF THE B1 DOMAIN
|
31 |
+
REMARK 1 REF BIOCHEMISTRY V. 31 10449 1992
|
32 |
+
REMARK 1 REFN ISSN 0006-2960
|
33 |
+
REMARK 1 REFERENCE 2
|
34 |
+
REMARK 1 AUTH A.M.GRONENBORN,D.R.FILPULA,N.Z.ESSIG,A.ACHARI,M.WHITLOW,
|
35 |
+
REMARK 1 AUTH 2 P.T.WINGFIELD,G.M.CLORE
|
36 |
+
REMARK 1 TITL A NOVEL, HIGHLY STABLE FOLD OF THE IMMUNOGLOBULIN BINDING
|
37 |
+
REMARK 1 TITL 2 DOMAIN OF STREPTOCOCCAL PROTEIN G
|
38 |
+
REMARK 1 REF SCIENCE V. 253 657 1991
|
39 |
+
REMARK 1 REFN ISSN 0036-8075
|
40 |
+
REMARK 2
|
41 |
+
REMARK 2 RESOLUTION. 2.07 ANGSTROMS.
|
42 |
+
REMARK 3
|
43 |
+
REMARK 3 REFINEMENT.
|
44 |
+
REMARK 3 PROGRAM : PROLSQ
|
45 |
+
REMARK 3 AUTHORS : KONNERT,HENDRICKSON
|
46 |
+
REMARK 3
|
47 |
+
REMARK 3 DATA USED IN REFINEMENT.
|
48 |
+
REMARK 3 RESOLUTION RANGE HIGH (ANGSTROMS) : 2.07
|
49 |
+
REMARK 3 RESOLUTION RANGE LOW (ANGSTROMS) : 6.00
|
50 |
+
REMARK 3 DATA CUTOFF (SIGMA(F)) : NULL
|
51 |
+
REMARK 3 COMPLETENESS FOR RANGE (%) : NULL
|
52 |
+
REMARK 3 NUMBER OF REFLECTIONS : 2567
|
53 |
+
REMARK 3
|
54 |
+
REMARK 3 FIT TO DATA USED IN REFINEMENT.
|
55 |
+
REMARK 3 CROSS-VALIDATION METHOD : NULL
|
56 |
+
REMARK 3 FREE R VALUE TEST SET SELECTION : NULL
|
57 |
+
REMARK 3 R VALUE (WORKING + TEST SET) : 0.174
|
58 |
+
REMARK 3 R VALUE (WORKING SET) : NULL
|
59 |
+
REMARK 3 FREE R VALUE : NULL
|
60 |
+
REMARK 3 FREE R VALUE TEST SET SIZE (%) : NULL
|
61 |
+
REMARK 3 FREE R VALUE TEST SET COUNT : NULL
|
62 |
+
REMARK 3
|
63 |
+
REMARK 3 FIT/AGREEMENT OF MODEL WITH ALL DATA.
|
64 |
+
REMARK 3 R VALUE (WORKING + TEST SET, NO CUTOFF) : NULL
|
65 |
+
REMARK 3 R VALUE (WORKING SET, NO CUTOFF) : NULL
|
66 |
+
REMARK 3 FREE R VALUE (NO CUTOFF) : NULL
|
67 |
+
REMARK 3 FREE R VALUE TEST SET SIZE (%, NO CUTOFF) : NULL
|
68 |
+
REMARK 3 FREE R VALUE TEST SET COUNT (NO CUTOFF) : NULL
|
69 |
+
REMARK 3 TOTAL NUMBER OF REFLECTIONS (NO CUTOFF) : NULL
|
70 |
+
REMARK 3
|
71 |
+
REMARK 3 NUMBER OF NON-HYDROGEN ATOMS USED IN REFINEMENT.
|
72 |
+
REMARK 3 PROTEIN ATOMS : 436
|
73 |
+
REMARK 3 NUCLEIC ACID ATOMS : 0
|
74 |
+
REMARK 3 HETEROGEN ATOMS : 0
|
75 |
+
REMARK 3 SOLVENT ATOMS : 20
|
76 |
+
REMARK 3
|
77 |
+
REMARK 3 B VALUES.
|
78 |
+
REMARK 3 FROM WILSON PLOT (A**2) : NULL
|
79 |
+
REMARK 3 MEAN B VALUE (OVERALL, A**2) : NULL
|
80 |
+
REMARK 3 OVERALL ANISOTROPIC B VALUE.
|
81 |
+
REMARK 3 B11 (A**2) : NULL
|
82 |
+
REMARK 3 B22 (A**2) : NULL
|
83 |
+
REMARK 3 B33 (A**2) : NULL
|
84 |
+
REMARK 3 B12 (A**2) : NULL
|
85 |
+
REMARK 3 B13 (A**2) : NULL
|
86 |
+
REMARK 3 B23 (A**2) : NULL
|
87 |
+
REMARK 3
|
88 |
+
REMARK 3 ESTIMATED COORDINATE ERROR.
|
89 |
+
REMARK 3 ESD FROM LUZZATI PLOT (A) : NULL
|
90 |
+
REMARK 3 ESD FROM SIGMAA (A) : NULL
|
91 |
+
REMARK 3 LOW RESOLUTION CUTOFF (A) : NULL
|
92 |
+
REMARK 3
|
93 |
+
REMARK 3 RMS DEVIATIONS FROM IDEAL VALUES.
|
94 |
+
REMARK 3 DISTANCE RESTRAINTS. RMS SIGMA
|
95 |
+
REMARK 3 BOND LENGTH (A) : 0.020 ; NULL
|
96 |
+
REMARK 3 ANGLE DISTANCE (A) : 1.970 ; NULL
|
97 |
+
REMARK 3 INTRAPLANAR 1-4 DISTANCE (A) : NULL ; NULL
|
98 |
+
REMARK 3 H-BOND OR METAL COORDINATION (A) : NULL ; NULL
|
99 |
+
REMARK 3
|
100 |
+
REMARK 3 PLANE RESTRAINT (A) : NULL ; NULL
|
101 |
+
REMARK 3 CHIRAL-CENTER RESTRAINT (A**3) : NULL ; NULL
|
102 |
+
REMARK 3
|
103 |
+
REMARK 3 NON-BONDED CONTACT RESTRAINTS.
|
104 |
+
REMARK 3 SINGLE TORSION (A) : NULL ; NULL
|
105 |
+
REMARK 3 MULTIPLE TORSION (A) : NULL ; NULL
|
106 |
+
REMARK 3 H-BOND (X...Y) (A) : NULL ; NULL
|
107 |
+
REMARK 3 H-BOND (X-H...Y) (A) : NULL ; NULL
|
108 |
+
REMARK 3
|
109 |
+
REMARK 3 CONFORMATIONAL TORSION ANGLE RESTRAINTS.
|
110 |
+
REMARK 3 SPECIFIED (DEGREES) : NULL ; NULL
|
111 |
+
REMARK 3 PLANAR (DEGREES) : NULL ; NULL
|
112 |
+
REMARK 3 STAGGERED (DEGREES) : NULL ; NULL
|
113 |
+
REMARK 3 TRANSVERSE (DEGREES) : NULL ; NULL
|
114 |
+
REMARK 3
|
115 |
+
REMARK 3 ISOTROPIC THERMAL FACTOR RESTRAINTS. RMS SIGMA
|
116 |
+
REMARK 3 MAIN-CHAIN BOND (A**2) : NULL ; NULL
|
117 |
+
REMARK 3 MAIN-CHAIN ANGLE (A**2) : NULL ; NULL
|
118 |
+
REMARK 3 SIDE-CHAIN BOND (A**2) : NULL ; NULL
|
119 |
+
REMARK 3 SIDE-CHAIN ANGLE (A**2) : NULL ; NULL
|
120 |
+
REMARK 3
|
121 |
+
REMARK 3 OTHER REFINEMENT REMARKS: NULL
|
122 |
+
REMARK 4
|
123 |
+
REMARK 4 1PGA COMPLIES WITH FORMAT V. 3.30, 13-JUL-11
|
124 |
+
REMARK 100
|
125 |
+
REMARK 100 THIS ENTRY HAS BEEN PROCESSED BY BNL.
|
126 |
+
REMARK 100 THE DEPOSITION ID IS D_1000175653.
|
127 |
+
REMARK 200
|
128 |
+
REMARK 200 EXPERIMENTAL DETAILS
|
129 |
+
REMARK 200 EXPERIMENT TYPE : X-RAY DIFFRACTION
|
130 |
+
REMARK 200 DATE OF DATA COLLECTION : NULL
|
131 |
+
REMARK 200 TEMPERATURE (KELVIN) : NULL
|
132 |
+
REMARK 200 PH : NULL
|
133 |
+
REMARK 200 NUMBER OF CRYSTALS USED : NULL
|
134 |
+
REMARK 200
|
135 |
+
REMARK 200 SYNCHROTRON (Y/N) : NULL
|
136 |
+
REMARK 200 RADIATION SOURCE : NULL
|
137 |
+
REMARK 200 BEAMLINE : NULL
|
138 |
+
REMARK 200 X-RAY GENERATOR MODEL : NULL
|
139 |
+
REMARK 200 MONOCHROMATIC OR LAUE (M/L) : NULL
|
140 |
+
REMARK 200 WAVELENGTH OR RANGE (A) : NULL
|
141 |
+
REMARK 200 MONOCHROMATOR : NULL
|
142 |
+
REMARK 200 OPTICS : NULL
|
143 |
+
REMARK 200
|
144 |
+
REMARK 200 DETECTOR TYPE : NULL
|
145 |
+
REMARK 200 DETECTOR MANUFACTURER : NULL
|
146 |
+
REMARK 200 INTENSITY-INTEGRATION SOFTWARE : NULL
|
147 |
+
REMARK 200 DATA SCALING SOFTWARE : NULL
|
148 |
+
REMARK 200
|
149 |
+
REMARK 200 NUMBER OF UNIQUE REFLECTIONS : NULL
|
150 |
+
REMARK 200 RESOLUTION RANGE HIGH (A) : NULL
|
151 |
+
REMARK 200 RESOLUTION RANGE LOW (A) : NULL
|
152 |
+
REMARK 200 REJECTION CRITERIA (SIGMA(I)) : NULL
|
153 |
+
REMARK 200
|
154 |
+
REMARK 200 OVERALL.
|
155 |
+
REMARK 200 COMPLETENESS FOR RANGE (%) : NULL
|
156 |
+
REMARK 200 DATA REDUNDANCY : NULL
|
157 |
+
REMARK 200 R MERGE (I) : NULL
|
158 |
+
REMARK 200 R SYM (I) : NULL
|
159 |
+
REMARK 200 <I/SIGMA(I)> FOR THE DATA SET : NULL
|
160 |
+
REMARK 200
|
161 |
+
REMARK 200 IN THE HIGHEST RESOLUTION SHELL.
|
162 |
+
REMARK 200 HIGHEST RESOLUTION SHELL, RANGE HIGH (A) : NULL
|
163 |
+
REMARK 200 HIGHEST RESOLUTION SHELL, RANGE LOW (A) : NULL
|
164 |
+
REMARK 200 COMPLETENESS FOR SHELL (%) : NULL
|
165 |
+
REMARK 200 DATA REDUNDANCY IN SHELL : NULL
|
166 |
+
REMARK 200 R MERGE FOR SHELL (I) : NULL
|
167 |
+
REMARK 200 R SYM FOR SHELL (I) : NULL
|
168 |
+
REMARK 200 <I/SIGMA(I)> FOR SHELL : NULL
|
169 |
+
REMARK 200
|
170 |
+
REMARK 200 DIFFRACTION PROTOCOL: NULL
|
171 |
+
REMARK 200 METHOD USED TO DETERMINE THE STRUCTURE: NULL
|
172 |
+
REMARK 200 SOFTWARE USED: X-PLOR
|
173 |
+
REMARK 200 STARTING MODEL: NULL
|
174 |
+
REMARK 200
|
175 |
+
REMARK 200 REMARK: NULL
|
176 |
+
REMARK 280
|
177 |
+
REMARK 280 CRYSTAL
|
178 |
+
REMARK 280 SOLVENT CONTENT, VS (%): 35.95
|
179 |
+
REMARK 280 MATTHEWS COEFFICIENT, VM (ANGSTROMS**3/DA): 1.92
|
180 |
+
REMARK 280
|
181 |
+
REMARK 280 CRYSTALLIZATION CONDITIONS: NULL
|
182 |
+
REMARK 290
|
183 |
+
REMARK 290 CRYSTALLOGRAPHIC SYMMETRY
|
184 |
+
REMARK 290 SYMMETRY OPERATORS FOR SPACE GROUP: P 21 21 21
|
185 |
+
REMARK 290
|
186 |
+
REMARK 290 SYMOP SYMMETRY
|
187 |
+
REMARK 290 NNNMMM OPERATOR
|
188 |
+
REMARK 290 1555 X,Y,Z
|
189 |
+
REMARK 290 2555 -X+1/2,-Y,Z+1/2
|
190 |
+
REMARK 290 3555 -X,Y+1/2,-Z+1/2
|
191 |
+
REMARK 290 4555 X+1/2,-Y+1/2,-Z
|
192 |
+
REMARK 290
|
193 |
+
REMARK 290 WHERE NNN -> OPERATOR NUMBER
|
194 |
+
REMARK 290 MMM -> TRANSLATION VECTOR
|
195 |
+
REMARK 290
|
196 |
+
REMARK 290 CRYSTALLOGRAPHIC SYMMETRY TRANSFORMATIONS
|
197 |
+
REMARK 290 THE FOLLOWING TRANSFORMATIONS OPERATE ON THE ATOM/HETATM
|
198 |
+
REMARK 290 RECORDS IN THIS ENTRY TO PRODUCE CRYSTALLOGRAPHICALLY
|
199 |
+
REMARK 290 RELATED MOLECULES.
|
200 |
+
REMARK 290 SMTRY1 1 1.000000 0.000000 0.000000 0.00000
|
201 |
+
REMARK 290 SMTRY2 1 0.000000 1.000000 0.000000 0.00000
|
202 |
+
REMARK 290 SMTRY3 1 0.000000 0.000000 1.000000 0.00000
|
203 |
+
REMARK 290 SMTRY1 2 -1.000000 0.000000 0.000000 18.51950
|
204 |
+
REMARK 290 SMTRY2 2 0.000000 -1.000000 0.000000 0.00000
|
205 |
+
REMARK 290 SMTRY3 2 0.000000 0.000000 1.000000 25.63850
|
206 |
+
REMARK 290 SMTRY1 3 -1.000000 0.000000 0.000000 0.00000
|
207 |
+
REMARK 290 SMTRY2 3 0.000000 1.000000 0.000000 12.54200
|
208 |
+
REMARK 290 SMTRY3 3 0.000000 0.000000 -1.000000 25.63850
|
209 |
+
REMARK 290 SMTRY1 4 1.000000 0.000000 0.000000 18.51950
|
210 |
+
REMARK 290 SMTRY2 4 0.000000 -1.000000 0.000000 12.54200
|
211 |
+
REMARK 290 SMTRY3 4 0.000000 0.000000 -1.000000 0.00000
|
212 |
+
REMARK 290
|
213 |
+
REMARK 290 REMARK: NULL
|
214 |
+
REMARK 300
|
215 |
+
REMARK 300 BIOMOLECULE: 1
|
216 |
+
REMARK 300 SEE REMARK 350 FOR THE AUTHOR PROVIDED AND/OR PROGRAM
|
217 |
+
REMARK 300 GENERATED ASSEMBLY INFORMATION FOR THE STRUCTURE IN
|
218 |
+
REMARK 300 THIS ENTRY. THE REMARK MAY ALSO PROVIDE INFORMATION ON
|
219 |
+
REMARK 300 BURIED SURFACE AREA.
|
220 |
+
REMARK 350
|
221 |
+
REMARK 350 COORDINATES FOR A COMPLETE MULTIMER REPRESENTING THE KNOWN
|
222 |
+
REMARK 350 BIOLOGICALLY SIGNIFICANT OLIGOMERIZATION STATE OF THE
|
223 |
+
REMARK 350 MOLECULE CAN BE GENERATED BY APPLYING BIOMT TRANSFORMATIONS
|
224 |
+
REMARK 350 GIVEN BELOW. BOTH NON-CRYSTALLOGRAPHIC AND
|
225 |
+
REMARK 350 CRYSTALLOGRAPHIC OPERATIONS ARE GIVEN.
|
226 |
+
REMARK 350
|
227 |
+
REMARK 350 BIOMOLECULE: 1
|
228 |
+
REMARK 350 AUTHOR DETERMINED BIOLOGICAL UNIT: MONOMERIC
|
229 |
+
REMARK 350 APPLY THE FOLLOWING TO CHAINS: A
|
230 |
+
REMARK 350 BIOMT1 1 1.000000 0.000000 0.000000 0.00000
|
231 |
+
REMARK 350 BIOMT2 1 0.000000 1.000000 0.000000 0.00000
|
232 |
+
REMARK 350 BIOMT3 1 0.000000 0.000000 1.000000 0.00000
|
233 |
+
REMARK 500
|
234 |
+
REMARK 500 GEOMETRY AND STEREOCHEMISTRY
|
235 |
+
REMARK 500 SUBTOPIC: TORSION ANGLES
|
236 |
+
REMARK 500
|
237 |
+
REMARK 500 TORSION ANGLES OUTSIDE THE EXPECTED RAMACHANDRAN REGIONS:
|
238 |
+
REMARK 500 (M=MODEL NUMBER; RES=RESIDUE NAME; C=CHAIN IDENTIFIER;
|
239 |
+
REMARK 500 SSEQ=SEQUENCE NUMBER; I=INSERTION CODE).
|
240 |
+
REMARK 500
|
241 |
+
REMARK 500 STANDARD TABLE:
|
242 |
+
REMARK 500 FORMAT:(10X,I3,1X,A3,1X,A1,I4,A1,4X,F7.2,3X,F7.2)
|
243 |
+
REMARK 500
|
244 |
+
REMARK 500 EXPECTED VALUES: GJ KLEYWEGT AND TA JONES (1996). PHI/PSI-
|
245 |
+
REMARK 500 CHOLOGY: RAMACHANDRAN REVISITED. STRUCTURE 4, 1395 - 1400
|
246 |
+
REMARK 500
|
247 |
+
REMARK 500 M RES CSSEQI PSI PHI
|
248 |
+
REMARK 500 ASN A 8 69.54 -117.60
|
249 |
+
REMARK 500
|
250 |
+
REMARK 500 REMARK: NULL
|
251 |
+
DBREF 1PGA A 2 56 UNP P06654 SPG1_STRSG 228 282
|
252 |
+
SEQRES 1 A 56 MET THR TYR LYS LEU ILE LEU ASN GLY LYS THR LEU LYS
|
253 |
+
SEQRES 2 A 56 GLY GLU THR THR THR GLU ALA VAL ASP ALA ALA THR ALA
|
254 |
+
SEQRES 3 A 56 GLU LYS VAL PHE LYS GLN TYR ALA ASN ASP ASN GLY VAL
|
255 |
+
SEQRES 4 A 56 ASP GLY GLU TRP THR TYR ASP ASP ALA THR LYS THR PHE
|
256 |
+
SEQRES 5 A 56 THR VAL THR GLU
|
257 |
+
FORMUL 2 HOH *20(H2 O)
|
258 |
+
HELIX 1 1 ALA A 23 ASP A 36 1 14
|
259 |
+
SHEET 1 S1 4 LEU A 12 ALA A 20 0
|
260 |
+
SHEET 2 S1 4 MET A 1 GLY A 9 -1
|
261 |
+
SHEET 3 S1 4 LYS A 50 GLU A 56 1
|
262 |
+
SHEET 4 S1 4 GLU A 42 ASP A 46 -1
|
263 |
+
CRYST1 37.039 25.084 51.277 90.00 90.00 90.00 P 21 21 21 4
|
264 |
+
ORIGX1 1.000000 0.000000 0.000000 0.00000
|
265 |
+
ORIGX2 0.000000 1.000000 0.000000 0.00000
|
266 |
+
ORIGX3 0.000000 0.000000 1.000000 0.00000
|
267 |
+
SCALE1 0.026999 0.000000 0.000000 0.00000
|
268 |
+
SCALE2 0.000000 0.039866 0.000000 0.00000
|
269 |
+
SCALE3 0.000000 0.000000 0.019502 0.00000
|
270 |
+
ATOM 1 N MET A 1 26.778 34.213 35.880 1.00 14.61 N
|
271 |
+
ATOM 2 CA MET A 1 26.659 32.769 36.242 1.00 16.66 C
|
272 |
+
ATOM 3 C MET A 1 27.468 31.927 35.268 1.00 16.16 C
|
273 |
+
ATOM 4 O MET A 1 27.699 32.342 34.110 1.00 15.79 O
|
274 |
+
ATOM 5 CB MET A 1 25.202 32.296 36.219 1.00 15.87 C
|
275 |
+
ATOM 6 CG MET A 1 24.345 32.901 37.319 1.00 18.67 C
|
276 |
+
ATOM 7 SD MET A 1 22.647 32.419 37.205 1.00 18.22 S
|
277 |
+
ATOM 8 CE MET A 1 22.101 32.510 39.040 1.00 18.66 C
|
278 |
+
ATOM 9 N THR A 2 27.942 30.785 35.765 1.00 12.62 N
|
279 |
+
ATOM 10 CA THR A 2 28.716 29.848 34.951 1.00 13.11 C
|
280 |
+
ATOM 11 C THR A 2 27.810 28.681 34.500 1.00 12.17 C
|
281 |
+
ATOM 12 O THR A 2 27.190 28.014 35.349 1.00 11.81 O
|
282 |
+
ATOM 13 CB THR A 2 29.874 29.309 35.740 1.00 11.99 C
|
283 |
+
ATOM 14 OG1 THR A 2 30.690 30.402 36.160 1.00 14.02 O
|
284 |
+
ATOM 15 CG2 THR A 2 30.703 28.380 34.901 1.00 12.76 C
|
285 |
+
ATOM 16 N TYR A 3 27.727 28.474 33.178 1.00 10.50 N
|
286 |
+
ATOM 17 CA TYR A 3 26.925 27.439 32.581 1.00 8.87 C
|
287 |
+
ATOM 18 C TYR A 3 27.786 26.384 31.926 1.00 10.84 C
|
288 |
+
ATOM 19 O TYR A 3 28.925 26.623 31.562 1.00 9.00 O
|
289 |
+
ATOM 20 CB TYR A 3 25.980 28.003 31.552 1.00 9.75 C
|
290 |
+
ATOM 21 CG TYR A 3 25.043 29.056 32.084 1.00 9.86 C
|
291 |
+
ATOM 22 CD1 TYR A 3 25.494 30.368 32.275 1.00 9.28 C
|
292 |
+
ATOM 23 CD2 TYR A 3 23.704 28.754 32.362 1.00 8.58 C
|
293 |
+
ATOM 24 CE1 TYR A 3 24.649 31.353 32.728 1.00 10.76 C
|
294 |
+
ATOM 25 CE2 TYR A 3 22.841 29.745 32.816 1.00 12.25 C
|
295 |
+
ATOM 26 CZ TYR A 3 23.334 31.057 32.992 1.00 9.45 C
|
296 |
+
ATOM 27 OH TYR A 3 22.507 32.070 33.389 1.00 10.01 O
|
297 |
+
ATOM 28 N LYS A 4 27.209 25.188 31.822 1.00 9.35 N
|
298 |
+
ATOM 29 CA LYS A 4 27.880 24.053 31.245 1.00 12.62 C
|
299 |
+
ATOM 30 C LYS A 4 27.146 23.549 30.005 1.00 10.41 C
|
300 |
+
ATOM 31 O LYS A 4 25.927 23.642 29.883 1.00 8.07 O
|
301 |
+
ATOM 32 CB LYS A 4 27.980 22.919 32.276 1.00 16.64 C
|
302 |
+
ATOM 33 CG LYS A 4 28.614 21.682 31.687 1.00 23.52 C
|
303 |
+
ATOM 34 CD LYS A 4 29.133 20.761 32.750 1.00 26.11 C
|
304 |
+
ATOM 35 CE LYS A 4 28.104 19.671 33.082 1.00 32.58 C
|
305 |
+
ATOM 36 NZ LYS A 4 28.622 18.689 34.151 1.00 33.40 N
|
306 |
+
ATOM 37 N LEU A 5 27.906 23.017 29.076 1.00 8.27 N
|
307 |
+
ATOM 38 CA LEU A 5 27.287 22.492 27.893 1.00 5.95 C
|
308 |
+
ATOM 39 C LEU A 5 27.787 21.089 27.755 1.00 6.29 C
|
309 |
+
ATOM 40 O LEU A 5 28.980 20.881 27.827 1.00 5.25 O
|
310 |
+
ATOM 41 CB LEU A 5 27.718 23.274 26.662 1.00 5.32 C
|
311 |
+
ATOM 42 CG LEU A 5 27.273 22.663 25.316 1.00 3.50 C
|
312 |
+
ATOM 43 CD1 LEU A 5 25.786 22.592 25.165 1.00 2.85 C
|
313 |
+
ATOM 44 CD2 LEU A 5 27.883 23.370 24.177 1.00 2.99 C
|
314 |
+
ATOM 45 N ILE A 6 26.872 20.127 27.677 1.00 4.84 N
|
315 |
+
ATOM 46 CA ILE A 6 27.234 18.718 27.430 1.00 6.82 C
|
316 |
+
ATOM 47 C ILE A 6 26.857 18.445 25.938 1.00 6.98 C
|
317 |
+
ATOM 48 O ILE A 6 25.684 18.610 25.488 1.00 5.70 O
|
318 |
+
ATOM 49 CB ILE A 6 26.539 17.774 28.431 1.00 7.70 C
|
319 |
+
ATOM 50 CG1 ILE A 6 26.929 18.189 29.827 1.00 8.62 C
|
320 |
+
ATOM 51 CG2 ILE A 6 26.965 16.283 28.223 1.00 8.79 C
|
321 |
+
ATOM 52 CD1 ILE A 6 26.270 17.302 30.804 1.00 10.87 C
|
322 |
+
ATOM 53 N LEU A 7 27.883 18.141 25.160 1.00 6.28 N
|
323 |
+
ATOM 54 CA LEU A 7 27.753 17.891 23.727 1.00 6.59 C
|
324 |
+
ATOM 55 C LEU A 7 27.760 16.412 23.441 1.00 6.58 C
|
325 |
+
ATOM 56 O LEU A 7 28.779 15.768 23.693 1.00 6.52 O
|
326 |
+
ATOM 57 CB LEU A 7 28.948 18.512 22.941 1.00 6.20 C
|
327 |
+
ATOM 58 CG LEU A 7 29.329 19.998 23.037 1.00 7.38 C
|
328 |
+
ATOM 59 CD1 LEU A 7 30.665 20.164 23.746 1.00 5.51 C
|
329 |
+
ATOM 60 CD2 LEU A 7 29.401 20.599 21.670 1.00 5.66 C
|
330 |
+
ATOM 61 N ASN A 8 26.656 15.886 22.895 1.00 7.07 N
|
331 |
+
ATOM 62 CA ASN A 8 26.607 14.472 22.512 1.00 8.36 C
|
332 |
+
ATOM 63 C ASN A 8 26.394 14.448 21.001 1.00 6.87 C
|
333 |
+
ATOM 64 O ASN A 8 25.320 14.170 20.496 1.00 4.58 O
|
334 |
+
ATOM 65 CB ASN A 8 25.509 13.703 23.253 1.00 11.84 C
|
335 |
+
ATOM 66 CG ASN A 8 25.427 12.198 22.812 1.00 17.44 C
|
336 |
+
ATOM 67 OD1 ASN A 8 26.442 11.493 22.723 1.00 17.86 O
|
337 |
+
ATOM 68 ND2 ASN A 8 24.216 11.740 22.470 1.00 19.85 N
|
338 |
+
ATOM 69 N GLY A 9 27.390 14.850 20.248 1.00 6.96 N
|
339 |
+
ATOM 70 CA GLY A 9 27.190 14.807 18.805 1.00 6.92 C
|
340 |
+
ATOM 71 C GLY A 9 27.687 13.461 18.292 1.00 8.02 C
|
341 |
+
ATOM 72 O GLY A 9 28.202 12.631 19.096 1.00 7.55 O
|
342 |
+
ATOM 73 N LYS A 10 27.644 13.275 16.967 1.00 7.38 N
|
343 |
+
ATOM 74 CA LYS A 10 28.097 12.053 16.383 1.00 7.81 C
|
344 |
+
ATOM 75 C LYS A 10 29.608 12.016 16.332 1.00 8.00 C
|
345 |
+
ATOM 76 O LYS A 10 30.227 10.985 16.633 1.00 5.03 O
|
346 |
+
ATOM 77 CB LYS A 10 27.505 11.913 15.016 1.00 11.98 C
|
347 |
+
ATOM 78 CG LYS A 10 26.053 11.530 15.078 1.00 16.38 C
|
348 |
+
ATOM 79 CD LYS A 10 25.221 12.127 13.918 1.00 24.20 C
|
349 |
+
ATOM 80 CE LYS A 10 25.741 11.707 12.492 1.00 27.12 C
|
350 |
+
ATOM 81 NZ LYS A 10 24.966 12.355 11.327 1.00 27.49 N
|
351 |
+
ATOM 82 N THR A 11 30.199 13.192 16.095 1.00 7.50 N
|
352 |
+
ATOM 83 CA THR A 11 31.651 13.369 15.973 1.00 8.20 C
|
353 |
+
ATOM 84 C THR A 11 32.334 13.991 17.218 1.00 7.89 C
|
354 |
+
ATOM 85 O THR A 11 33.420 13.607 17.586 1.00 7.61 O
|
355 |
+
ATOM 86 CB THR A 11 31.956 14.339 14.801 1.00 9.35 C
|
356 |
+
ATOM 87 OG1 THR A 11 31.318 13.897 13.603 1.00 10.85 O
|
357 |
+
ATOM 88 CG2 THR A 11 33.421 14.517 14.602 1.00 12.32 C
|
358 |
+
ATOM 89 N LEU A 12 31.689 14.980 17.820 1.00 8.58 N
|
359 |
+
ATOM 90 CA LEU A 12 32.240 15.708 18.937 1.00 7.27 C
|
360 |
+
ATOM 91 C LEU A 12 31.473 15.439 20.241 1.00 7.67 C
|
361 |
+
ATOM 92 O LEU A 12 30.249 15.645 20.358 1.00 7.27 O
|
362 |
+
ATOM 93 CB LEU A 12 32.162 17.199 18.564 1.00 8.71 C
|
363 |
+
ATOM 94 CG LEU A 12 33.156 18.300 18.949 1.00 10.48 C
|
364 |
+
ATOM 95 CD1 LEU A 12 32.341 19.601 19.228 1.00 9.21 C
|
365 |
+
ATOM 96 CD2 LEU A 12 34.036 17.907 20.136 1.00 8.42 C
|
366 |
+
ATOM 97 N LYS A 13 32.202 15.087 21.265 1.00 5.43 N
|
367 |
+
ATOM 98 CA LYS A 13 31.559 14.806 22.513 1.00 7.07 C
|
368 |
+
ATOM 99 C LYS A 13 32.382 15.429 23.592 1.00 7.64 C
|
369 |
+
ATOM 100 O LYS A 13 33.586 15.394 23.538 1.00 6.64 O
|
370 |
+
ATOM 101 CB LYS A 13 31.508 13.303 22.723 1.00 8.04 C
|
371 |
+
ATOM 102 CG LYS A 13 30.511 12.591 21.829 1.00 9.13 C
|
372 |
+
ATOM 103 CD LYS A 13 30.582 11.080 22.038 1.00 9.99 C
|
373 |
+
ATOM 104 CE LYS A 13 29.510 10.370 21.214 1.00 9.64 C
|
374 |
+
ATOM 105 NZ LYS A 13 29.903 10.422 19.840 1.00 9.79 N
|
375 |
+
ATOM 106 N GLY A 14 31.742 16.049 24.564 1.00 8.08 N
|
376 |
+
ATOM 107 CA GLY A 14 32.551 16.607 25.608 1.00 10.91 C
|
377 |
+
ATOM 108 C GLY A 14 31.784 17.507 26.519 1.00 13.82 C
|
378 |
+
ATOM 109 O GLY A 14 30.540 17.459 26.526 1.00 12.43 O
|
379 |
+
ATOM 110 N GLU A 15 32.511 18.353 27.246 1.00 12.18 N
|
380 |
+
ATOM 111 CA GLU A 15 31.885 19.251 28.169 1.00 13.37 C
|
381 |
+
ATOM 112 C GLU A 15 32.675 20.541 28.212 1.00 13.44 C
|
382 |
+
ATOM 113 O GLU A 15 33.918 20.512 28.139 1.00 11.68 O
|
383 |
+
ATOM 114 CB GLU A 15 31.955 18.585 29.514 1.00 16.38 C
|
384 |
+
ATOM 115 CG GLU A 15 31.160 19.175 30.617 1.00 20.75 C
|
385 |
+
ATOM 116 CD GLU A 15 30.988 18.128 31.732 1.00 22.61 C
|
386 |
+
ATOM 117 OE1 GLU A 15 30.231 17.132 31.558 1.00 24.56 O
|
387 |
+
ATOM 118 OE2 GLU A 15 31.675 18.255 32.749 1.00 22.88 O
|
388 |
+
ATOM 119 N THR A 16 31.962 21.662 28.166 1.00 10.94 N
|
389 |
+
ATOM 120 CA THR A 16 32.590 22.952 28.314 1.00 12.35 C
|
390 |
+
ATOM 121 C THR A 16 31.657 23.748 29.154 1.00 11.69 C
|
391 |
+
ATOM 122 O THR A 16 30.560 23.313 29.424 1.00 9.43 O
|
392 |
+
ATOM 123 CB THR A 16 32.843 23.745 27.020 1.00 13.36 C
|
393 |
+
ATOM 124 OG1 THR A 16 31.691 23.719 26.139 1.00 16.26 O
|
394 |
+
ATOM 125 CG2 THR A 16 34.010 23.231 26.342 1.00 20.68 C
|
395 |
+
ATOM 126 N THR A 17 32.102 24.933 29.549 1.00 12.87 N
|
396 |
+
ATOM 127 CA THR A 17 31.337 25.872 30.369 1.00 13.13 C
|
397 |
+
ATOM 128 C THR A 17 31.442 27.293 29.794 1.00 15.23 C
|
398 |
+
ATOM 129 O THR A 17 32.280 27.575 28.937 1.00 12.64 O
|
399 |
+
ATOM 130 CB THR A 17 31.906 25.957 31.777 1.00 13.66 C
|
400 |
+
ATOM 131 OG1 THR A 17 33.175 26.606 31.730 1.00 12.04 O
|
401 |
+
ATOM 132 CG2 THR A 17 32.089 24.590 32.337 1.00 12.62 C
|
402 |
+
ATOM 133 N THR A 18 30.560 28.182 30.238 1.00 13.46 N
|
403 |
+
ATOM 134 CA THR A 18 30.648 29.569 29.782 1.00 16.10 C
|
404 |
+
ATOM 135 C THR A 18 30.183 30.439 30.924 1.00 15.95 C
|
405 |
+
ATOM 136 O THR A 18 29.659 29.918 31.883 1.00 16.00 O
|
406 |
+
ATOM 137 CB THR A 18 29.809 29.875 28.486 1.00 15.44 C
|
407 |
+
ATOM 138 OG1 THR A 18 30.308 31.072 27.882 1.00 14.31 O
|
408 |
+
ATOM 139 CG2 THR A 18 28.342 30.070 28.789 1.00 15.16 C
|
409 |
+
ATOM 140 N GLU A 19 30.512 31.719 30.863 1.00 14.78 N
|
410 |
+
ATOM 141 CA GLU A 19 30.112 32.696 31.870 1.00 18.12 C
|
411 |
+
ATOM 142 C GLU A 19 29.090 33.566 31.129 1.00 14.65 C
|
412 |
+
ATOM 143 O GLU A 19 29.308 33.925 29.998 1.00 16.84 O
|
413 |
+
ATOM 144 CB GLU A 19 31.332 33.552 32.303 1.00 22.39 C
|
414 |
+
ATOM 145 CG GLU A 19 31.413 33.990 33.814 1.00 28.69 C
|
415 |
+
ATOM 146 CD GLU A 19 30.348 35.085 34.267 1.00 35.12 C
|
416 |
+
ATOM 147 OE1 GLU A 19 29.864 35.904 33.419 1.00 35.81 O
|
417 |
+
ATOM 148 OE2 GLU A 19 30.010 35.143 35.495 1.00 33.84 O
|
418 |
+
ATOM 149 N ALA A 20 27.930 33.807 31.698 1.00 11.79 N
|
419 |
+
ATOM 150 CA ALA A 20 26.954 34.653 31.011 1.00 11.11 C
|
420 |
+
ATOM 151 C ALA A 20 25.998 35.271 32.023 1.00 11.25 C
|
421 |
+
ATOM 152 O ALA A 20 25.861 34.745 33.095 1.00 10.25 O
|
422 |
+
ATOM 153 CB ALA A 20 26.175 33.859 29.917 1.00 10.30 C
|
423 |
+
ATOM 154 N VAL A 21 25.406 36.414 31.687 1.00 11.64 N
|
424 |
+
ATOM 155 CA VAL A 21 24.428 37.125 32.548 1.00 13.50 C
|
425 |
+
ATOM 156 C VAL A 21 23.176 36.342 32.872 1.00 13.35 C
|
426 |
+
ATOM 157 O VAL A 21 22.648 36.441 33.968 1.00 13.80 O
|
427 |
+
ATOM 158 CB VAL A 21 23.894 38.488 31.924 1.00 15.00 C
|
428 |
+
ATOM 159 CG1 VAL A 21 24.715 39.622 32.402 1.00 13.17 C
|
429 |
+
ATOM 160 CG2 VAL A 21 23.842 38.429 30.361 1.00 13.88 C
|
430 |
+
ATOM 161 N ASP A 22 22.687 35.605 31.888 1.00 12.32 N
|
431 |
+
ATOM 162 CA ASP A 22 21.526 34.808 32.082 1.00 10.39 C
|
432 |
+
ATOM 163 C ASP A 22 21.599 33.656 31.128 1.00 10.50 C
|
433 |
+
ATOM 164 O ASP A 22 22.473 33.619 30.238 1.00 9.88 O
|
434 |
+
ATOM 165 CB ASP A 22 20.243 35.635 31.899 1.00 11.05 C
|
435 |
+
ATOM 166 CG ASP A 22 20.069 36.160 30.520 1.00 12.87 C
|
436 |
+
ATOM 167 OD1 ASP A 22 20.821 35.774 29.607 1.00 16.26 O
|
437 |
+
ATOM 168 OD2 ASP A 22 19.146 36.972 30.319 1.00 16.47 O
|
438 |
+
ATOM 169 N ALA A 23 20.639 32.740 31.269 1.00 8.81 N
|
439 |
+
ATOM 170 CA ALA A 23 20.561 31.551 30.430 1.00 6.96 C
|
440 |
+
ATOM 171 C ALA A 23 20.321 31.844 28.931 1.00 5.92 C
|
441 |
+
ATOM 172 O ALA A 23 20.824 31.129 28.069 1.00 8.19 O
|
442 |
+
ATOM 173 CB ALA A 23 19.503 30.664 30.975 1.00 6.19 C
|
443 |
+
ATOM 174 N ALA A 24 19.543 32.880 28.616 1.00 4.63 N
|
444 |
+
ATOM 175 CA ALA A 24 19.237 33.239 27.218 1.00 5.79 C
|
445 |
+
ATOM 176 C ALA A 24 20.490 33.638 26.483 1.00 6.14 C
|
446 |
+
ATOM 177 O ALA A 24 20.643 33.370 25.310 1.00 8.27 O
|
447 |
+
ATOM 178 CB ALA A 24 18.162 34.389 27.146 1.00 5.79 C
|
448 |
+
ATOM 179 N THR A 25 21.411 34.253 27.198 1.00 7.31 N
|
449 |
+
ATOM 180 CA THR A 25 22.642 34.663 26.595 1.00 7.61 C
|
450 |
+
ATOM 181 C THR A 25 23.567 33.440 26.482 1.00 8.29 C
|
451 |
+
ATOM 182 O THR A 25 24.190 33.275 25.431 1.00 7.36 O
|
452 |
+
ATOM 183 CB THR A 25 23.295 35.861 27.358 1.00 9.87 C
|
453 |
+
ATOM 184 OG1 THR A 25 22.376 36.945 27.421 1.00 15.99 O
|
454 |
+
ATOM 185 CG2 THR A 25 24.436 36.418 26.612 1.00 7.83 C
|
455 |
+
ATOM 186 N ALA A 26 23.632 32.570 27.510 1.00 6.72 N
|
456 |
+
ATOM 187 CA ALA A 26 24.499 31.366 27.438 1.00 9.64 C
|
457 |
+
ATOM 188 C ALA A 26 24.004 30.444 26.304 1.00 10.01 C
|
458 |
+
ATOM 189 O ALA A 26 24.795 29.892 25.550 1.00 10.49 O
|
459 |
+
ATOM 190 CB ALA A 26 24.554 30.606 28.803 1.00 6.87 C
|
460 |
+
ATOM 191 N GLU A 27 22.691 30.378 26.130 1.00 11.53 N
|
461 |
+
ATOM 192 CA GLU A 27 22.101 29.590 25.062 1.00 13.51 C
|
462 |
+
ATOM 193 C GLU A 27 22.566 30.053 23.656 1.00 13.78 C
|
463 |
+
ATOM 194 O GLU A 27 22.766 29.254 22.743 1.00 12.47 O
|
464 |
+
ATOM 195 CB GLU A 27 20.587 29.689 25.128 1.00 15.82 C
|
465 |
+
ATOM 196 CG GLU A 27 19.983 28.615 24.307 1.00 21.36 C
|
466 |
+
ATOM 197 CD GLU A 27 18.724 29.052 23.663 1.00 23.07 C
|
467 |
+
ATOM 198 OE1 GLU A 27 17.994 29.851 24.306 1.00 25.94 O
|
468 |
+
ATOM 199 OE2 GLU A 27 18.462 28.615 22.521 1.00 23.21 O
|
469 |
+
ATOM 200 N LYS A 28 22.706 31.360 23.469 1.00 15.31 N
|
470 |
+
ATOM 201 CA LYS A 28 23.180 31.932 22.177 1.00 13.12 C
|
471 |
+
ATOM 202 C LYS A 28 24.673 31.606 21.915 1.00 9.68 C
|
472 |
+
ATOM 203 O LYS A 28 25.086 31.328 20.783 1.00 8.78 O
|
473 |
+
ATOM 204 CB LYS A 28 23.016 33.469 22.176 1.00 14.23 C
|
474 |
+
ATOM 205 CG LYS A 28 21.731 34.012 21.531 1.00 17.45 C
|
475 |
+
ATOM 206 CD LYS A 28 20.541 34.029 22.467 1.00 18.36 C
|
476 |
+
ATOM 207 CE LYS A 28 19.944 32.644 22.755 1.00 18.63 C
|
477 |
+
ATOM 208 NZ LYS A 28 18.765 32.791 23.728 1.00 17.32 N
|
478 |
+
ATOM 209 N VAL A 29 25.471 31.760 22.968 1.00 8.13 N
|
479 |
+
ATOM 210 CA VAL A 29 26.885 31.515 22.924 1.00 7.52 C
|
480 |
+
ATOM 211 C VAL A 29 27.147 30.039 22.603 1.00 6.40 C
|
481 |
+
ATOM 212 O VAL A 29 27.990 29.702 21.779 1.00 6.66 O
|
482 |
+
ATOM 213 CB VAL A 29 27.486 31.891 24.303 1.00 7.57 C
|
483 |
+
ATOM 214 CG1 VAL A 29 28.899 31.370 24.409 1.00 7.89 C
|
484 |
+
ATOM 215 CG2 VAL A 29 27.458 33.433 24.518 1.00 6.16 C
|
485 |
+
ATOM 216 N PHE A 30 26.469 29.154 23.332 1.00 7.49 N
|
486 |
+
ATOM 217 CA PHE A 30 26.606 27.707 23.121 1.00 7.01 C
|
487 |
+
ATOM 218 C PHE A 30 26.136 27.212 21.756 1.00 7.21 C
|
488 |
+
ATOM 219 O PHE A 30 26.792 26.404 21.128 1.00 6.86 O
|
489 |
+
ATOM 220 CB PHE A 30 25.893 26.960 24.228 1.00 7.00 C
|
490 |
+
ATOM 221 CG PHE A 30 26.665 26.936 25.514 1.00 6.05 C
|
491 |
+
ATOM 222 CD1 PHE A 30 28.066 26.954 25.508 1.00 4.97 C
|
492 |
+
ATOM 223 CD2 PHE A 30 26.001 26.842 26.735 1.00 4.70 C
|
493 |
+
ATOM 224 CE1 PHE A 30 28.786 26.873 26.704 1.00 3.77 C
|
494 |
+
ATOM 225 CE2 PHE A 30 26.724 26.763 27.921 1.00 4.13 C
|
495 |
+
ATOM 226 CZ PHE A 30 28.118 26.780 27.893 1.00 2.96 C
|
496 |
+
ATOM 227 N LYS A 31 25.007 27.737 21.289 1.00 9.22 N
|
497 |
+
ATOM 228 CA LYS A 31 24.465 27.362 20.003 1.00 9.74 C
|
498 |
+
ATOM 229 C LYS A 31 25.468 27.769 18.973 1.00 10.79 C
|
499 |
+
ATOM 230 O LYS A 31 25.726 27.029 18.067 1.00 11.32 O
|
500 |
+
ATOM 231 CB LYS A 31 23.164 28.080 19.739 1.00 10.71 C
|
501 |
+
ATOM 232 CG LYS A 31 21.959 27.448 20.394 1.00 15.00 C
|
502 |
+
ATOM 233 CD LYS A 31 21.142 26.655 19.377 1.00 18.28 C
|
503 |
+
ATOM 234 CE LYS A 31 19.630 26.666 19.692 1.00 20.79 C
|
504 |
+
ATOM 235 NZ LYS A 31 19.282 26.112 21.023 1.00 19.71 N
|
505 |
+
ATOM 236 N GLN A 32 26.018 28.963 19.088 1.00 9.07 N
|
506 |
+
ATOM 237 CA GLN A 32 27.009 29.365 18.127 1.00 10.35 C
|
507 |
+
ATOM 238 C GLN A 32 28.242 28.433 18.223 1.00 9.02 C
|
508 |
+
ATOM 239 O GLN A 32 28.852 28.088 17.218 1.00 8.60 O
|
509 |
+
ATOM 240 CB GLN A 32 27.401 30.823 18.374 1.00 11.61 C
|
510 |
+
ATOM 241 CG GLN A 32 28.527 31.312 17.476 1.00 11.88 C
|
511 |
+
ATOM 242 CD GLN A 32 28.791 32.813 17.645 1.00 13.83 C
|
512 |
+
ATOM 243 OE1 GLN A 32 28.586 33.364 18.726 1.00 15.61 O
|
513 |
+
ATOM 244 NE2 GLN A 32 29.172 33.478 16.571 1.00 12.31 N
|
514 |
+
ATOM 245 N TYR A 33 28.656 28.118 19.451 1.00 8.39 N
|
515 |
+
ATOM 246 CA TYR A 33 29.773 27.206 19.679 1.00 6.40 C
|
516 |
+
ATOM 247 C TYR A 33 29.509 25.862 18.941 1.00 5.87 C
|
517 |
+
ATOM 248 O TYR A 33 30.320 25.372 18.149 1.00 4.80 O
|
518 |
+
ATOM 249 CB TYR A 33 29.946 27.000 21.178 1.00 6.67 C
|
519 |
+
ATOM 250 CG TYR A 33 31.015 25.993 21.502 1.00 6.95 C
|
520 |
+
ATOM 251 CD1 TYR A 33 32.355 26.338 21.387 1.00 7.21 C
|
521 |
+
ATOM 252 CD2 TYR A 33 30.689 24.686 21.899 1.00 6.38 C
|
522 |
+
ATOM 253 CE1 TYR A 33 33.374 25.417 21.669 1.00 9.67 C
|
523 |
+
ATOM 254 CE2 TYR A 33 31.674 23.754 22.177 1.00 6.66 C
|
524 |
+
ATOM 255 CZ TYR A 33 33.027 24.125 22.072 1.00 8.46 C
|
525 |
+
ATOM 256 OH TYR A 33 34.039 23.263 22.408 1.00 9.40 O
|
526 |
+
ATOM 257 N ALA A 34 28.338 25.291 19.178 1.00 7.50 N
|
527 |
+
ATOM 258 CA ALA A 34 27.920 24.046 18.545 1.00 8.91 C
|
528 |
+
ATOM 259 C ALA A 34 27.949 24.186 17.057 1.00 10.19 C
|
529 |
+
ATOM 260 O ALA A 34 28.450 23.338 16.372 1.00 9.37 O
|
530 |
+
ATOM 261 CB ALA A 34 26.496 23.710 18.955 1.00 7.87 C
|
531 |
+
ATOM 262 N ASN A 35 27.384 25.279 16.574 1.00 11.90 N
|
532 |
+
ATOM 263 CA ASN A 35 27.274 25.513 15.161 1.00 14.15 C
|
533 |
+
ATOM 264 C ASN A 35 28.633 25.557 14.477 1.00 13.33 C
|
534 |
+
ATOM 265 O ASN A 35 28.846 24.927 13.425 1.00 10.58 O
|
535 |
+
ATOM 266 CB ASN A 35 26.487 26.810 14.914 1.00 20.29 C
|
536 |
+
ATOM 267 CG ASN A 35 24.932 26.584 14.787 1.00 23.22 C
|
537 |
+
ATOM 268 OD1 ASN A 35 24.309 27.068 13.800 1.00 26.74 O
|
538 |
+
ATOM 269 ND2 ASN A 35 24.299 25.919 15.788 1.00 21.89 N
|
539 |
+
ATOM 270 N ASP A 36 29.550 26.286 15.097 1.00 10.96 N
|
540 |
+
ATOM 271 CA ASP A 36 30.915 26.410 14.554 1.00 14.21 C
|
541 |
+
ATOM 272 C ASP A 36 31.675 25.089 14.557 1.00 9.94 C
|
542 |
+
ATOM 273 O ASP A 36 32.637 24.933 13.842 1.00 11.88 O
|
543 |
+
ATOM 274 CB ASP A 36 31.737 27.446 15.334 1.00 13.30 C
|
544 |
+
ATOM 275 CG ASP A 36 31.270 28.892 15.089 1.00 19.45 C
|
545 |
+
ATOM 276 OD1 ASP A 36 30.426 29.168 14.164 1.00 17.91 O
|
546 |
+
ATOM 277 OD2 ASP A 36 31.807 29.761 15.834 1.00 18.68 O
|
547 |
+
ATOM 278 N ASN A 37 31.237 24.154 15.379 1.00 10.35 N
|
548 |
+
ATOM 279 CA ASN A 37 31.910 22.848 15.442 1.00 10.08 C
|
549 |
+
ATOM 280 C ASN A 37 31.204 21.703 14.705 1.00 8.66 C
|
550 |
+
ATOM 281 O ASN A 37 31.499 20.533 14.960 1.00 10.48 O
|
551 |
+
ATOM 282 CB ASN A 37 32.217 22.467 16.889 1.00 9.61 C
|
552 |
+
ATOM 283 CG ASN A 37 33.232 23.388 17.496 1.00 10.43 C
|
553 |
+
ATOM 284 OD1 ASN A 37 34.434 23.277 17.242 1.00 10.40 O
|
554 |
+
ATOM 285 ND2 ASN A 37 32.760 24.275 18.360 1.00 10.05 N
|
555 |
+
ATOM 286 N GLY A 38 30.255 22.076 13.847 1.00 7.27 N
|
556 |
+
ATOM 287 CA GLY A 38 29.514 21.139 13.029 1.00 9.93 C
|
557 |
+
ATOM 288 C GLY A 38 28.423 20.349 13.682 1.00 9.26 C
|
558 |
+
ATOM 289 O GLY A 38 27.981 19.401 13.076 1.00 10.47 O
|
559 |
+
ATOM 290 N VAL A 39 28.018 20.735 14.895 1.00 9.93 N
|
560 |
+
ATOM 291 CA VAL A 39 26.982 20.057 15.673 1.00 11.05 C
|
561 |
+
ATOM 292 C VAL A 39 25.623 20.694 15.351 1.00 13.05 C
|
562 |
+
ATOM 293 O VAL A 39 25.519 21.922 15.147 1.00 13.46 O
|
563 |
+
ATOM 294 CB VAL A 39 27.256 20.156 17.179 1.00 11.99 C
|
564 |
+
ATOM 295 CG1 VAL A 39 26.190 19.386 17.992 1.00 11.01 C
|
565 |
+
ATOM 296 CG2 VAL A 39 28.618 19.623 17.474 1.00 12.09 C
|
566 |
+
ATOM 297 N ASP A 40 24.627 19.823 15.237 1.00 12.80 N
|
567 |
+
ATOM 298 CA ASP A 40 23.273 20.165 14.911 1.00 16.78 C
|
568 |
+
ATOM 299 C ASP A 40 22.364 19.106 15.560 1.00 16.32 C
|
569 |
+
ATOM 300 O ASP A 40 22.057 18.080 14.952 1.00 17.59 O
|
570 |
+
ATOM 301 CB ASP A 40 23.133 20.098 13.390 1.00 19.31 C
|
571 |
+
ATOM 302 CG ASP A 40 21.922 20.848 12.870 1.00 21.54 C
|
572 |
+
ATOM 303 OD1 ASP A 40 21.056 21.312 13.659 1.00 21.98 O
|
573 |
+
ATOM 304 OD2 ASP A 40 21.855 20.980 11.621 1.00 27.00 O
|
574 |
+
ATOM 305 N GLY A 41 21.933 19.353 16.786 1.00 15.38 N
|
575 |
+
ATOM 306 CA GLY A 41 21.070 18.388 17.442 1.00 14.55 C
|
576 |
+
ATOM 307 C GLY A 41 19.901 18.972 18.209 1.00 13.77 C
|
577 |
+
ATOM 308 O GLY A 41 19.433 20.086 17.910 1.00 14.74 O
|
578 |
+
ATOM 309 N GLU A 42 19.370 18.175 19.131 1.00 14.03 N
|
579 |
+
ATOM 310 CA GLU A 42 18.281 18.573 20.025 1.00 15.15 C
|
580 |
+
ATOM 311 C GLU A 42 18.921 19.078 21.289 1.00 13.42 C
|
581 |
+
ATOM 312 O GLU A 42 19.965 18.538 21.727 1.00 9.64 O
|
582 |
+
ATOM 313 CB GLU A 42 17.322 17.413 20.322 1.00 20.68 C
|
583 |
+
ATOM 314 CG GLU A 42 16.345 17.122 19.126 1.00 26.20 C
|
584 |
+
ATOM 315 CD GLU A 42 15.372 15.922 19.367 1.00 32.15 C
|
585 |
+
ATOM 316 OE1 GLU A 42 15.872 14.870 19.871 1.00 32.35 O
|
586 |
+
ATOM 317 OE2 GLU A 42 14.131 16.030 19.037 1.00 31.50 O
|
587 |
+
ATOM 318 N TRP A 43 18.309 20.141 21.827 1.00 10.40 N
|
588 |
+
ATOM 319 CA TRP A 43 18.773 20.830 23.024 1.00 8.43 C
|
589 |
+
ATOM 320 C TRP A 43 17.801 20.725 24.189 1.00 9.38 C
|
590 |
+
ATOM 321 O TRP A 43 16.599 20.589 24.004 1.00 10.29 O
|
591 |
+
ATOM 322 CB TRP A 43 18.916 22.349 22.770 1.00 8.33 C
|
592 |
+
ATOM 323 CG TRP A 43 19.989 22.746 21.842 1.00 7.08 C
|
593 |
+
ATOM 324 CD1 TRP A 43 19.989 22.613 20.492 1.00 8.75 C
|
594 |
+
ATOM 325 CD2 TRP A 43 21.244 23.292 22.191 1.00 7.08 C
|
595 |
+
ATOM 326 NE1 TRP A 43 21.189 23.036 19.961 1.00 5.66 N
|
596 |
+
ATOM 327 CE2 TRP A 43 21.986 23.454 20.988 1.00 7.08 C
|
597 |
+
ATOM 328 CE3 TRP A 43 21.832 23.656 23.393 1.00 7.63 C
|
598 |
+
ATOM 329 CZ2 TRP A 43 23.285 23.970 20.963 1.00 7.00 C
|
599 |
+
ATOM 330 CZ3 TRP A 43 23.098 24.165 23.376 1.00 7.78 C
|
600 |
+
ATOM 331 CH2 TRP A 43 23.826 24.318 22.161 1.00 7.62 C
|
601 |
+
ATOM 332 N THR A 44 18.341 20.860 25.397 1.00 6.73 N
|
602 |
+
ATOM 333 CA THR A 44 17.568 20.872 26.600 1.00 7.41 C
|
603 |
+
ATOM 334 C THR A 44 18.370 21.803 27.458 1.00 7.32 C
|
604 |
+
ATOM 335 O THR A 44 19.564 22.051 27.162 1.00 8.30 O
|
605 |
+
ATOM 336 CB THR A 44 17.477 19.475 27.325 1.00 6.34 C
|
606 |
+
ATOM 337 OG1 THR A 44 18.768 19.116 27.844 1.00 8.74 O
|
607 |
+
ATOM 338 CG2 THR A 44 16.965 18.331 26.382 1.00 4.42 C
|
608 |
+
ATOM 339 N TYR A 45 17.707 22.422 28.434 1.00 6.33 N
|
609 |
+
ATOM 340 CA TYR A 45 18.383 23.292 29.382 1.00 6.58 C
|
610 |
+
ATOM 341 C TYR A 45 17.795 22.951 30.738 1.00 6.24 C
|
611 |
+
ATOM 342 O TYR A 45 16.594 22.894 30.859 1.00 8.16 O
|
612 |
+
ATOM 343 CB TYR A 45 18.153 24.791 29.123 1.00 6.32 C
|
613 |
+
ATOM 344 CG TYR A 45 18.630 25.646 30.300 1.00 7.32 C
|
614 |
+
ATOM 345 CD1 TYR A 45 19.993 25.696 30.649 1.00 6.00 C
|
615 |
+
ATOM 346 CD2 TYR A 45 17.716 26.386 31.095 1.00 7.75 C
|
616 |
+
ATOM 347 CE1 TYR A 45 20.434 26.427 31.704 1.00 6.17 C
|
617 |
+
ATOM 348 CE2 TYR A 45 18.165 27.134 32.159 1.00 8.06 C
|
618 |
+
ATOM 349 CZ TYR A 45 19.531 27.144 32.461 1.00 6.37 C
|
619 |
+
ATOM 350 OH TYR A 45 20.003 27.846 33.547 1.00 7.74 O
|
620 |
+
ATOM 351 N ASP A 46 18.637 22.717 31.736 1.00 6.35 N
|
621 |
+
ATOM 352 CA ASP A 46 18.189 22.395 33.084 1.00 6.11 C
|
622 |
+
ATOM 353 C ASP A 46 18.762 23.422 34.046 1.00 7.28 C
|
623 |
+
ATOM 354 O ASP A 46 19.956 23.402 34.423 1.00 4.29 O
|
624 |
+
ATOM 355 CB ASP A 46 18.608 20.963 33.468 1.00 7.79 C
|
625 |
+
ATOM 356 CG ASP A 46 18.147 20.542 34.888 1.00 7.44 C
|
626 |
+
ATOM 357 OD1 ASP A 46 17.386 21.232 35.591 1.00 5.00 O
|
627 |
+
ATOM 358 OD2 ASP A 46 18.551 19.448 35.270 1.00 9.02 O
|
628 |
+
ATOM 359 N ASP A 47 17.863 24.323 34.417 1.00 6.68 N
|
629 |
+
ATOM 360 CA ASP A 47 18.172 25.408 35.266 1.00 8.65 C
|
630 |
+
ATOM 361 C ASP A 47 18.635 24.975 36.607 1.00 10.53 C
|
631 |
+
ATOM 362 O ASP A 47 19.331 25.709 37.256 1.00 10.10 O
|
632 |
+
ATOM 363 CB ASP A 47 16.952 26.264 35.444 1.00 9.98 C
|
633 |
+
ATOM 364 CG ASP A 47 17.294 27.588 36.038 1.00 13.07 C
|
634 |
+
ATOM 365 OD1 ASP A 47 18.182 28.307 35.517 1.00 11.85 O
|
635 |
+
ATOM 366 OD2 ASP A 47 16.710 27.874 37.084 1.00 14.99 O
|
636 |
+
ATOM 367 N ALA A 48 18.101 23.853 37.083 1.00 10.72 N
|
637 |
+
ATOM 368 CA ALA A 48 18.486 23.283 38.379 1.00 9.53 C
|
638 |
+
ATOM 369 C ALA A 48 19.959 22.961 38.447 1.00 8.82 C
|
639 |
+
ATOM 370 O ALA A 48 20.523 22.904 39.507 1.00 10.62 O
|
640 |
+
ATOM 371 CB ALA A 48 17.677 22.025 38.647 1.00 11.11 C
|
641 |
+
ATOM 372 N THR A 49 20.603 22.757 37.316 1.00 9.51 N
|
642 |
+
ATOM 373 CA THR A 49 22.029 22.470 37.333 1.00 8.40 C
|
643 |
+
ATOM 374 C THR A 49 22.748 23.435 36.395 1.00 7.98 C
|
644 |
+
ATOM 375 O THR A 49 23.941 23.324 36.212 1.00 9.23 O
|
645 |
+
ATOM 376 CB THR A 49 22.345 20.975 36.913 1.00 8.34 C
|
646 |
+
ATOM 377 OG1 THR A 49 22.050 20.810 35.525 1.00 6.78 O
|
647 |
+
ATOM 378 CG2 THR A 49 21.457 19.962 37.702 1.00 6.32 C
|
648 |
+
ATOM 379 N LYS A 50 22.009 24.371 35.800 1.00 7.05 N
|
649 |
+
ATOM 380 CA LYS A 50 22.552 25.343 34.873 1.00 8.49 C
|
650 |
+
ATOM 381 C LYS A 50 23.219 24.646 33.689 1.00 8.72 C
|
651 |
+
ATOM 382 O LYS A 50 24.189 25.166 33.141 1.00 8.51 O
|
652 |
+
ATOM 383 CB LYS A 50 23.573 26.291 35.570 1.00 11.17 C
|
653 |
+
ATOM 384 CG LYS A 50 23.028 27.095 36.711 1.00 10.11 C
|
654 |
+
ATOM 385 CD LYS A 50 21.867 27.977 36.252 1.00 13.37 C
|
655 |
+
ATOM 386 CE LYS A 50 21.143 28.680 37.483 1.00 12.12 C
|
656 |
+
ATOM 387 NZ LYS A 50 20.184 29.770 37.143 1.00 15.16 N
|
657 |
+
ATOM 388 N THR A 51 22.654 23.514 33.255 1.00 7.92 N
|
658 |
+
ATOM 389 CA THR A 51 23.221 22.742 32.156 1.00 7.95 C
|
659 |
+
ATOM 390 C THR A 51 22.435 22.672 30.858 1.00 5.18 C
|
660 |
+
ATOM 391 O THR A 51 21.235 22.535 30.854 1.00 3.35 O
|
661 |
+
ATOM 392 CB THR A 51 23.549 21.266 32.600 1.00 8.94 C
|
662 |
+
ATOM 393 OG1 THR A 51 24.412 21.311 33.730 1.00 10.06 O
|
663 |
+
ATOM 394 CG2 THR A 51 24.324 20.498 31.477 1.00 11.18 C
|
664 |
+
ATOM 395 N PHE A 52 23.152 22.808 29.756 1.00 3.88 N
|
665 |
+
ATOM 396 CA PHE A 52 22.568 22.724 28.431 1.00 5.35 C
|
666 |
+
ATOM 397 C PHE A 52 23.139 21.448 27.853 1.00 5.94 C
|
667 |
+
ATOM 398 O PHE A 52 24.298 21.110 28.112 1.00 7.60 O
|
668 |
+
ATOM 399 CB PHE A 52 23.077 23.828 27.506 1.00 4.56 C
|
669 |
+
ATOM 400 CG PHE A 52 22.484 25.155 27.766 1.00 5.80 C
|
670 |
+
ATOM 401 CD1 PHE A 52 22.962 25.955 28.824 1.00 6.35 C
|
671 |
+
ATOM 402 CD2 PHE A 52 21.488 25.630 26.943 1.00 6.87 C
|
672 |
+
ATOM 403 CE1 PHE A 52 22.460 27.242 29.066 1.00 6.65 C
|
673 |
+
ATOM 404 CE2 PHE A 52 20.946 26.900 27.152 1.00 7.62 C
|
674 |
+
ATOM 405 CZ PHE A 52 21.438 27.729 28.226 1.00 7.28 C
|
675 |
+
ATOM 406 N THR A 53 22.359 20.748 27.052 1.00 5.79 N
|
676 |
+
ATOM 407 CA THR A 53 22.885 19.561 26.411 1.00 5.92 C
|
677 |
+
ATOM 408 C THR A 53 22.419 19.621 24.955 1.00 5.65 C
|
678 |
+
ATOM 409 O THR A 53 21.309 20.087 24.688 1.00 6.81 O
|
679 |
+
ATOM 410 CB THR A 53 22.400 18.226 27.067 1.00 5.16 C
|
680 |
+
ATOM 411 OG1 THR A 53 21.054 17.997 26.672 1.00 9.40 O
|
681 |
+
ATOM 412 CG2 THR A 53 22.407 18.291 28.569 1.00 5.06 C
|
682 |
+
ATOM 413 N VAL A 54 23.285 19.248 24.008 1.00 5.98 N
|
683 |
+
ATOM 414 CA VAL A 54 22.856 19.172 22.598 1.00 5.44 C
|
684 |
+
ATOM 415 C VAL A 54 23.112 17.708 22.184 1.00 4.77 C
|
685 |
+
ATOM 416 O VAL A 54 24.161 17.151 22.491 1.00 3.99 O
|
686 |
+
ATOM 417 CB VAL A 54 23.576 20.167 21.671 1.00 3.09 C
|
687 |
+
ATOM 418 CG1 VAL A 54 25.091 20.092 21.843 1.00 3.65 C
|
688 |
+
ATOM 419 CG2 VAL A 54 23.136 19.922 20.206 1.00 5.10 C
|
689 |
+
ATOM 420 N THR A 55 22.210 17.134 21.421 1.00 5.48 N
|
690 |
+
ATOM 421 CA THR A 55 22.364 15.731 21.085 1.00 6.69 C
|
691 |
+
ATOM 422 C THR A 55 22.039 15.472 19.632 1.00 8.52 C
|
692 |
+
ATOM 423 O THR A 55 20.995 15.860 19.189 1.00 12.30 O
|
693 |
+
ATOM 424 CB THR A 55 21.406 14.955 21.979 1.00 5.30 C
|
694 |
+
ATOM 425 OG1 THR A 55 21.786 15.194 23.326 1.00 4.67 O
|
695 |
+
ATOM 426 CG2 THR A 55 21.441 13.470 21.755 1.00 6.00 C
|
696 |
+
ATOM 427 N GLU A 56 22.905 14.843 18.864 1.00 8.91 N
|
697 |
+
ATOM 428 CA GLU A 56 22.553 14.567 17.468 1.00 13.22 C
|
698 |
+
ATOM 429 C GLU A 56 22.022 13.143 17.330 1.00 13.01 C
|
699 |
+
ATOM 430 O GLU A 56 22.353 12.301 18.190 1.00 14.55 O
|
700 |
+
ATOM 431 CB GLU A 56 23.736 14.723 16.538 1.00 13.01 C
|
701 |
+
ATOM 432 CG GLU A 56 24.277 16.065 16.470 1.00 14.87 C
|
702 |
+
ATOM 433 CD GLU A 56 25.430 16.161 15.494 1.00 15.68 C
|
703 |
+
ATOM 434 OE1 GLU A 56 26.403 15.371 15.576 1.00 17.54 O
|
704 |
+
ATOM 435 OE2 GLU A 56 25.381 17.081 14.664 1.00 18.60 O
|
705 |
+
ATOM 436 OXT GLU A 56 21.296 12.892 16.369 1.00 15.04 O
|
706 |
+
TER 437 GLU A 56
|
707 |
+
HETATM 438 O HOH A 57 20.045 17.338 24.112 1.00 3.04 O
|
708 |
+
HETATM 439 O HOH A 58 29.284 15.933 16.005 1.00 3.90 O
|
709 |
+
HETATM 440 O HOH A 59 30.968 17.869 15.018 0.94 11.86 O
|
710 |
+
HETATM 441 O HOH A 60 36.384 21.652 27.812 0.96 15.46 O
|
711 |
+
HETATM 442 O HOH A 61 17.058 34.117 30.636 0.91 16.69 O
|
712 |
+
HETATM 443 O HOH A 62 27.844 16.414 13.404 1.00 23.36 O
|
713 |
+
HETATM 444 O HOH A 63 18.404 38.643 27.967 1.00 23.63 O
|
714 |
+
HETATM 445 O HOH A 64 19.968 31.460 34.797 1.00 23.75 O
|
715 |
+
HETATM 446 O HOH A 65 18.201 18.566 37.695 0.95 22.19 O
|
716 |
+
HETATM 447 O HOH A 66 28.632 36.880 26.524 1.00 24.51 O
|
717 |
+
HETATM 448 O HOH A 67 24.320 18.322 34.892 0.95 23.33 O
|
718 |
+
HETATM 449 O HOH A 68 34.515 20.297 15.278 0.95 24.44 O
|
719 |
+
HETATM 450 O HOH A 69 25.264 17.638 11.962 1.00 26.96 O
|
720 |
+
HETATM 451 O HOH A 70 27.030 30.620 14.393 1.00 30.28 O
|
721 |
+
HETATM 452 O HOH A 71 34.649 12.834 25.632 0.98 31.24 O
|
722 |
+
HETATM 453 O HOH A 72 18.195 33.437 33.740 0.88 30.66 O
|
723 |
+
HETATM 454 O HOH A 73 15.996 28.545 27.866 1.00 38.23 O
|
724 |
+
HETATM 455 O HOH A 74 22.964 13.047 25.143 0.94 34.64 O
|
725 |
+
HETATM 456 O HOH A 75 36.309 21.652 20.246 1.00 43.01 O
|
726 |
+
HETATM 457 O HOH A 76 15.334 21.462 20.777 0.91 37.63 O
|
727 |
+
MASTER 227 0 0 1 4 0 0 6 456 1 0 5
|
728 |
+
END
|
src/demo/__init__.py
ADDED
File without changes
|
src/demo/app.py
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
import gradio as gr
|
3 |
+
from gradio_molecule3d import Molecule3D
|
4 |
+
|
5 |
+
import os
|
6 |
+
|
7 |
+
example = Molecule3D().example_inputs()
|
8 |
+
|
9 |
+
|
10 |
+
reps = [
|
11 |
+
{
|
12 |
+
"model": 0,
|
13 |
+
"chain": "",
|
14 |
+
"resname": "",
|
15 |
+
"style": "cartoon",
|
16 |
+
"color": "whiteCarbon",
|
17 |
+
"residue_range": "",
|
18 |
+
"around": 0,
|
19 |
+
"byres": False,
|
20 |
+
"visible": False,
|
21 |
+
},
|
22 |
+
]
|
23 |
+
|
24 |
+
def predict(x):
|
25 |
+
print("predict function", x)
|
26 |
+
return x
|
27 |
+
|
28 |
+
#doesn't work
|
29 |
+
# demo = gr.Interface(
|
30 |
+
# predict,
|
31 |
+
# Molecule3D(label="Molecule3D", reps=reps), # interactive version of your component
|
32 |
+
# Molecule3D(), # static version of your component
|
33 |
+
# examples=[[example]], # uncomment this line to view the "example version" of your component
|
34 |
+
# )
|
35 |
+
|
36 |
+
#works
|
37 |
+
with gr.Blocks() as demo:
|
38 |
+
inp = Molecule3D("demo/1pga.pdb",label="Molecule3D", reps=reps)
|
39 |
+
out = Molecule3D(label="Molecule3D", reps=reps)
|
40 |
+
btn = gr.Button("Predict")
|
41 |
+
btn.click(predict, inputs=inp, outputs=out)
|
42 |
+
|
43 |
+
demo.launch()
|
44 |
+
# blocks.launch()
|
src/demo/sample_file.pdf
ADDED
Binary file (10.6 kB). View file
|
|
src/frontend/Example.svelte
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script lang="ts">
|
2 |
+
import type { FileData } from "@gradio/client";
|
3 |
+
|
4 |
+
export let value: FileData;
|
5 |
+
export let type: "gallery" | "table";
|
6 |
+
export let selected = false;
|
7 |
+
</script>
|
8 |
+
|
9 |
+
<div
|
10 |
+
class:table={type === "table"}
|
11 |
+
class:gallery={type === "gallery"}
|
12 |
+
class:selected
|
13 |
+
>
|
14 |
+
{Array.isArray(value) ? value.join(", ") : value}
|
15 |
+
</div>
|
16 |
+
|
17 |
+
<style>
|
18 |
+
div {
|
19 |
+
overflow: hidden;
|
20 |
+
text-overflow: ellipsis;
|
21 |
+
white-space: nowrap;
|
22 |
+
}
|
23 |
+
.gallery {
|
24 |
+
display: flex;
|
25 |
+
align-items: center;
|
26 |
+
cursor: pointer;
|
27 |
+
padding: var(--size-1) var(--size-2);
|
28 |
+
text-align: left;
|
29 |
+
}
|
30 |
+
</style>
|
src/frontend/Index.svelte
ADDED
@@ -0,0 +1,423 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<svelte:options accessors={true} />
|
2 |
+
|
3 |
+
<script context="module" lang="ts">
|
4 |
+
export { default as FilePreview } from "./shared/FilePreview.svelte";
|
5 |
+
export { default as BaseFileUpload } from "./shared/FileUpload.svelte";
|
6 |
+
export { default as BaseFile } from "./shared/File.svelte";
|
7 |
+
export { default as BaseExample } from "./Example.svelte";
|
8 |
+
</script>
|
9 |
+
|
10 |
+
<script lang="ts">
|
11 |
+
import type { Gradio, SelectData } from "@gradio/utils";
|
12 |
+
import File from "./shared/File.svelte";
|
13 |
+
import FileUpload from "./shared/FileUpload.svelte";
|
14 |
+
|
15 |
+
import { normalise_file, type FileData } from "@gradio/client";
|
16 |
+
import { Block, UploadText } from "@gradio/atoms";
|
17 |
+
|
18 |
+
import { StatusTracker } from "@gradio/statustracker";
|
19 |
+
import type { LoadingStatus } from "@gradio/statustracker";
|
20 |
+
|
21 |
+
export let elem_id = "";
|
22 |
+
export let elem_classes: string[] = [];
|
23 |
+
export let visible = true;
|
24 |
+
export let value: null | FileData | FileData[];
|
25 |
+
|
26 |
+
export let interactive: boolean;
|
27 |
+
export let root: string;
|
28 |
+
export let label: string;
|
29 |
+
export let show_label: boolean;
|
30 |
+
export let height: number | undefined = undefined;
|
31 |
+
|
32 |
+
//Molecule3D specific arguments
|
33 |
+
export let reps: any = [];
|
34 |
+
export let config: any = {};
|
35 |
+
export let confidenceLabel: string = "";
|
36 |
+
|
37 |
+
export let proxy_url: null | string;
|
38 |
+
export let _selectable = false;
|
39 |
+
export let loading_status: LoadingStatus;
|
40 |
+
export let container = true;
|
41 |
+
export let scale: number | null = null;
|
42 |
+
export let min_width: number | undefined = undefined;
|
43 |
+
export let gradio: Gradio<{
|
44 |
+
change: never;
|
45 |
+
error: string;
|
46 |
+
upload: never;
|
47 |
+
clear: never;
|
48 |
+
select: SelectData;
|
49 |
+
}>;
|
50 |
+
export let file_count: string;
|
51 |
+
export let file_types: string[] = ["file"];
|
52 |
+
$: _value = normalise_file(value, root, proxy_url);
|
53 |
+
|
54 |
+
let old_value = _value;
|
55 |
+
$: if (JSON.stringify(old_value) !== JSON.stringify(_value)) {
|
56 |
+
gradio.dispatch("change");
|
57 |
+
old_value = _value;
|
58 |
+
console.log("value change", _value);
|
59 |
+
}
|
60 |
+
|
61 |
+
let dragging = false;
|
62 |
+
let pending_upload = false;
|
63 |
+
|
64 |
+
//check for missing keys in reps
|
65 |
+
let keys_for_reps = {
|
66 |
+
model: {
|
67 |
+
type: Number,
|
68 |
+
default: 0,
|
69 |
+
},
|
70 |
+
chain: {
|
71 |
+
type: String,
|
72 |
+
default: "",
|
73 |
+
},
|
74 |
+
resname: {
|
75 |
+
type: String,
|
76 |
+
default: "",
|
77 |
+
},
|
78 |
+
style: {
|
79 |
+
type: String,
|
80 |
+
default: "cartoon",
|
81 |
+
choices: ["cartoon", "stick", "sphere", "surface"],
|
82 |
+
},
|
83 |
+
color: {
|
84 |
+
type: String,
|
85 |
+
default: "whiteCarbon",
|
86 |
+
choices: [
|
87 |
+
"whiteCarbon",
|
88 |
+
"orangeCarbon",
|
89 |
+
"redCarbon",
|
90 |
+
"blackCarbon",
|
91 |
+
"blueCarbon",
|
92 |
+
"grayCarbon",
|
93 |
+
"greenCarbon",
|
94 |
+
"cyanCarbon",
|
95 |
+
"alphafold",
|
96 |
+
"default",
|
97 |
+
"Jmol",
|
98 |
+
"chain",
|
99 |
+
"spectrum",
|
100 |
+
],
|
101 |
+
},
|
102 |
+
residue_range: {
|
103 |
+
type: String,
|
104 |
+
default: "",
|
105 |
+
},
|
106 |
+
around: {
|
107 |
+
type: Number,
|
108 |
+
default: 0,
|
109 |
+
},
|
110 |
+
byres: {
|
111 |
+
type: Boolean,
|
112 |
+
default: false,
|
113 |
+
},
|
114 |
+
visible: {
|
115 |
+
type: Boolean,
|
116 |
+
default: true,
|
117 |
+
},
|
118 |
+
};
|
119 |
+
|
120 |
+
let moldata = null;
|
121 |
+
|
122 |
+
let allowed_extensions = ["pdb", "sdf", "mol2"];
|
123 |
+
async function fetchFileContent(url) {
|
124 |
+
const response = await fetch(url);
|
125 |
+
const content = await response.text();
|
126 |
+
return content;
|
127 |
+
}
|
128 |
+
let promise = null;
|
129 |
+
let errors = [];
|
130 |
+
|
131 |
+
async function retrieveContent(value) {
|
132 |
+
if (value == null) {
|
133 |
+
return [];
|
134 |
+
} else if (Array.isArray(value)) {
|
135 |
+
let tempMoldata = [];
|
136 |
+
// get file extension
|
137 |
+
|
138 |
+
for (const element of value) {
|
139 |
+
let ext = element.orig_name.split(".").pop();
|
140 |
+
if (!allowed_extensions.includes(ext)) {
|
141 |
+
errors.push(
|
142 |
+
`Invalid file extension for ${
|
143 |
+
element.orig_name
|
144 |
+
}. Expected one of ${allowed_extensions.join(", ")}, got ${ext}`
|
145 |
+
);
|
146 |
+
moldata = null;
|
147 |
+
continue;
|
148 |
+
}
|
149 |
+
tempMoldata.push({
|
150 |
+
data: await fetchFileContent(element.url),
|
151 |
+
name: element.orig_name,
|
152 |
+
format: ext,
|
153 |
+
asFrames: false,
|
154 |
+
});
|
155 |
+
}
|
156 |
+
moldata = tempMoldata;
|
157 |
+
} else if (typeof value === "object" && value !== null) {
|
158 |
+
let ext = value.orig_name.split(".").pop();
|
159 |
+
if (!allowed_extensions.includes(ext)) {
|
160 |
+
errors.push(
|
161 |
+
`Invalid file extension for ${
|
162 |
+
value.orig_name
|
163 |
+
}. Expected one of ${allowed_extensions.join(", ")}, got ${ext}`
|
164 |
+
);
|
165 |
+
moldata = null;
|
166 |
+
} else {
|
167 |
+
let t = await fetchFileContent(value.url);
|
168 |
+
moldata = [
|
169 |
+
{ data: t, name: value.orig_name, format: "pdb", asFrames: false },
|
170 |
+
];
|
171 |
+
}
|
172 |
+
} else {
|
173 |
+
moldata = null;
|
174 |
+
}
|
175 |
+
// value is object
|
176 |
+
}
|
177 |
+
// go through each rep, do a type check and add missing keys to the rep
|
178 |
+
|
179 |
+
let lenMoldata = 0;
|
180 |
+
$: lenMoldata = moldata ? moldata.length : 0;
|
181 |
+
|
182 |
+
let representations = [];
|
183 |
+
//first add all missing keys
|
184 |
+
$: {
|
185 |
+
reps.forEach((rep) => {
|
186 |
+
for (const [key, value] of Object.entries(keys_for_reps)) {
|
187 |
+
if (rep[key] === undefined) {
|
188 |
+
rep[key] = value["default"];
|
189 |
+
}
|
190 |
+
if (rep[key].constructor != value["type"]) {
|
191 |
+
errors.push(
|
192 |
+
`Invalid type for ${key} in reps. Expected ${
|
193 |
+
value["type"]
|
194 |
+
}, got ${typeof rep[key]}`
|
195 |
+
);
|
196 |
+
}
|
197 |
+
}
|
198 |
+
});
|
199 |
+
// then check if model does exist and add to representations
|
200 |
+
reps.forEach((rep) => {
|
201 |
+
if (rep["model"] <= lenMoldata) {
|
202 |
+
representations.push(rep);
|
203 |
+
}
|
204 |
+
});
|
205 |
+
}
|
206 |
+
|
207 |
+
$: promise = retrieveContent(_value);
|
208 |
+
</script>
|
209 |
+
|
210 |
+
<Block
|
211 |
+
{visible}
|
212 |
+
variant={value === null ? "dashed" : "solid"}
|
213 |
+
border_mode={dragging ? "focus" : "base"}
|
214 |
+
padding={false}
|
215 |
+
{elem_id}
|
216 |
+
{elem_classes}
|
217 |
+
{container}
|
218 |
+
{scale}
|
219 |
+
{min_width}
|
220 |
+
allow_overflow={false}
|
221 |
+
>
|
222 |
+
<StatusTracker
|
223 |
+
autoscroll={gradio.autoscroll}
|
224 |
+
i18n={gradio.i18n}
|
225 |
+
{...loading_status}
|
226 |
+
status={pending_upload
|
227 |
+
? "generating"
|
228 |
+
: loading_status?.status || "complete"}
|
229 |
+
/>
|
230 |
+
|
231 |
+
{#if !interactive}
|
232 |
+
<File
|
233 |
+
on:select={({ detail }) => gradio.dispatch("select", detail)}
|
234 |
+
selectable={_selectable}
|
235 |
+
value={_value}
|
236 |
+
{label}
|
237 |
+
{show_label}
|
238 |
+
{height}
|
239 |
+
{representations}
|
240 |
+
{config}
|
241 |
+
{confidenceLabel}
|
242 |
+
{moldata}
|
243 |
+
{errors}
|
244 |
+
i18n={gradio.i18n}
|
245 |
+
/>
|
246 |
+
{:else}
|
247 |
+
<FileUpload
|
248 |
+
{label}
|
249 |
+
{show_label}
|
250 |
+
value={_value}
|
251 |
+
{file_count}
|
252 |
+
{file_types}
|
253 |
+
selectable={_selectable}
|
254 |
+
{root}
|
255 |
+
{height}
|
256 |
+
{representations}
|
257 |
+
{config}
|
258 |
+
{confidenceLabel}
|
259 |
+
{moldata}
|
260 |
+
on:change={({ detail }) => {
|
261 |
+
errors = [];
|
262 |
+
value = detail;
|
263 |
+
}}
|
264 |
+
on:drag={({ detail }) => (dragging = detail)}
|
265 |
+
on:clear={() => gradio.dispatch("clear")}
|
266 |
+
on:select={({ detail }) => gradio.dispatch("select", detail)}
|
267 |
+
on:notfound={() =>
|
268 |
+
gradio.dispatch(
|
269 |
+
"error",
|
270 |
+
"identifier not found in database, check spelling"
|
271 |
+
)}
|
272 |
+
on:upload={() => gradio.dispatch("upload")}
|
273 |
+
i18n={gradio.i18n}
|
274 |
+
>
|
275 |
+
<UploadText i18n={gradio.i18n} type="file" />
|
276 |
+
</FileUpload>
|
277 |
+
{/if}
|
278 |
+
|
279 |
+
{#if errors.length > 0 && _value !== null}
|
280 |
+
<div
|
281 |
+
class="flex m-2 p-4 mb-4 text-sm text-red-800 rounded-lg bg-red-50 dark:bg-gray-800 dark:text-red-400"
|
282 |
+
role="alert"
|
283 |
+
>
|
284 |
+
<svg
|
285 |
+
class="flex-shrink-0 inline w-4 h-4 mr-3 mt-[2px]"
|
286 |
+
xmlns="http://www.w3.org/2000/svg"
|
287 |
+
fill="none"
|
288 |
+
viewBox="0 0 24 24"
|
289 |
+
stroke-width="1.5"
|
290 |
+
stroke="currentColor"
|
291 |
+
>
|
292 |
+
<path
|
293 |
+
stroke-linecap="round"
|
294 |
+
stroke-linejoin="round"
|
295 |
+
d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126zM12 15.75h.007v.008H12v-.008z"
|
296 |
+
/>
|
297 |
+
</svg>
|
298 |
+
|
299 |
+
<span class="sr-only">Error in the representations</span>
|
300 |
+
<div>
|
301 |
+
<span class="font-medium"
|
302 |
+
>Couldn't display Molecule. Fix the following problems:</span
|
303 |
+
>
|
304 |
+
<ul class="mt-1.5 ml-4 list-disc list-inside">
|
305 |
+
{#each errors as error}
|
306 |
+
<li>{error}</li>
|
307 |
+
{/each}
|
308 |
+
</ul>
|
309 |
+
</div>
|
310 |
+
</div>
|
311 |
+
{/if}
|
312 |
+
</Block>
|
313 |
+
|
314 |
+
<style>
|
315 |
+
.sr-only {
|
316 |
+
position: absolute;
|
317 |
+
width: 1px;
|
318 |
+
height: 1px;
|
319 |
+
padding: 0;
|
320 |
+
margin: -1px;
|
321 |
+
overflow: hidden;
|
322 |
+
clip: rect(0, 0, 0, 0);
|
323 |
+
white-space: nowrap;
|
324 |
+
border-width: 0;
|
325 |
+
}
|
326 |
+
|
327 |
+
.mb-4 {
|
328 |
+
margin-bottom: 1rem;
|
329 |
+
}
|
330 |
+
|
331 |
+
.ml-4 {
|
332 |
+
margin-left: 1rem;
|
333 |
+
}
|
334 |
+
|
335 |
+
.mr-3 {
|
336 |
+
margin-right: 0.75rem;
|
337 |
+
}
|
338 |
+
|
339 |
+
.mt-1 {
|
340 |
+
margin-top: 0.25rem;
|
341 |
+
}
|
342 |
+
|
343 |
+
.mt-1\.5 {
|
344 |
+
margin-top: 0.375rem;
|
345 |
+
}
|
346 |
+
|
347 |
+
.mt-\[2px\] {
|
348 |
+
margin-top: 2px;
|
349 |
+
}
|
350 |
+
|
351 |
+
.inline {
|
352 |
+
display: inline;
|
353 |
+
}
|
354 |
+
|
355 |
+
.flex {
|
356 |
+
display: flex;
|
357 |
+
}
|
358 |
+
|
359 |
+
.h-4 {
|
360 |
+
height: 1rem;
|
361 |
+
}
|
362 |
+
|
363 |
+
.w-4 {
|
364 |
+
width: 1rem;
|
365 |
+
}
|
366 |
+
|
367 |
+
.flex-shrink-0 {
|
368 |
+
flex-shrink: 0;
|
369 |
+
}
|
370 |
+
|
371 |
+
.list-inside {
|
372 |
+
list-style-position: inside;
|
373 |
+
}
|
374 |
+
|
375 |
+
.list-disc {
|
376 |
+
list-style-type: disc;
|
377 |
+
}
|
378 |
+
|
379 |
+
.rounded-lg {
|
380 |
+
border-radius: 0.5rem;
|
381 |
+
}
|
382 |
+
|
383 |
+
.bg-red-50 {
|
384 |
+
--tw-bg-opacity: 1;
|
385 |
+
background-color: rgb(254 242 242 / var(--tw-bg-opacity));
|
386 |
+
}
|
387 |
+
.m-2 {
|
388 |
+
margin: 0.5rem;
|
389 |
+
}
|
390 |
+
.p-4 {
|
391 |
+
padding: 1rem;
|
392 |
+
}
|
393 |
+
|
394 |
+
.text-sm {
|
395 |
+
font-size: 0.875rem;
|
396 |
+
line-height: 1.25rem;
|
397 |
+
}
|
398 |
+
|
399 |
+
.font-medium {
|
400 |
+
font-weight: 500;
|
401 |
+
}
|
402 |
+
|
403 |
+
.lowercase {
|
404 |
+
text-transform: lowercase;
|
405 |
+
}
|
406 |
+
|
407 |
+
.text-red-800 {
|
408 |
+
--tw-text-opacity: 1;
|
409 |
+
color: rgb(153 27 27 / var(--tw-text-opacity));
|
410 |
+
}
|
411 |
+
|
412 |
+
@media (prefers-color-scheme: dark) {
|
413 |
+
.dark\:bg-gray-800 {
|
414 |
+
--tw-bg-opacity: 1;
|
415 |
+
background-color: rgb(31 41 55 / var(--tw-bg-opacity));
|
416 |
+
}
|
417 |
+
|
418 |
+
.dark\:text-red-400 {
|
419 |
+
--tw-text-opacity: 1;
|
420 |
+
color: rgb(248 113 113 / var(--tw-text-opacity));
|
421 |
+
}
|
422 |
+
}
|
423 |
+
</style>
|
src/frontend/package-lock.json
ADDED
@@ -0,0 +1,1774 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gradio_molecule3d",
|
3 |
+
"version": "0.2.1",
|
4 |
+
"lockfileVersion": 2,
|
5 |
+
"requires": true,
|
6 |
+
"packages": {
|
7 |
+
"": {
|
8 |
+
"name": "gradio_molecule3d",
|
9 |
+
"version": "0.2.1",
|
10 |
+
"license": "ISC",
|
11 |
+
"dependencies": {
|
12 |
+
"@gradio/atoms": "0.2.0",
|
13 |
+
"@gradio/client": "0.7.1",
|
14 |
+
"@gradio/icons": "0.2.0",
|
15 |
+
"@gradio/statustracker": "0.3.0",
|
16 |
+
"@gradio/upload": "0.3.1",
|
17 |
+
"@gradio/utils": "0.2.0",
|
18 |
+
"3dmol": "^2.0.6"
|
19 |
+
}
|
20 |
+
},
|
21 |
+
"node_modules/@ampproject/remapping": {
|
22 |
+
"version": "2.2.1",
|
23 |
+
"resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz",
|
24 |
+
"integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==",
|
25 |
+
"peer": true,
|
26 |
+
"dependencies": {
|
27 |
+
"@jridgewell/gen-mapping": "^0.3.0",
|
28 |
+
"@jridgewell/trace-mapping": "^0.3.9"
|
29 |
+
},
|
30 |
+
"engines": {
|
31 |
+
"node": ">=6.0.0"
|
32 |
+
}
|
33 |
+
},
|
34 |
+
"node_modules/@esbuild/android-arm": {
|
35 |
+
"version": "0.19.5",
|
36 |
+
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.5.tgz",
|
37 |
+
"integrity": "sha512-bhvbzWFF3CwMs5tbjf3ObfGqbl/17ict2/uwOSfr3wmxDE6VdS2GqY/FuzIPe0q0bdhj65zQsvqfArI9MY6+AA==",
|
38 |
+
"cpu": [
|
39 |
+
"arm"
|
40 |
+
],
|
41 |
+
"optional": true,
|
42 |
+
"os": [
|
43 |
+
"android"
|
44 |
+
],
|
45 |
+
"engines": {
|
46 |
+
"node": ">=12"
|
47 |
+
}
|
48 |
+
},
|
49 |
+
"node_modules/@esbuild/android-arm64": {
|
50 |
+
"version": "0.19.5",
|
51 |
+
"resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.5.tgz",
|
52 |
+
"integrity": "sha512-5d1OkoJxnYQfmC+Zd8NBFjkhyCNYwM4n9ODrycTFY6Jk1IGiZ+tjVJDDSwDt77nK+tfpGP4T50iMtVi4dEGzhQ==",
|
53 |
+
"cpu": [
|
54 |
+
"arm64"
|
55 |
+
],
|
56 |
+
"optional": true,
|
57 |
+
"os": [
|
58 |
+
"android"
|
59 |
+
],
|
60 |
+
"engines": {
|
61 |
+
"node": ">=12"
|
62 |
+
}
|
63 |
+
},
|
64 |
+
"node_modules/@esbuild/android-x64": {
|
65 |
+
"version": "0.19.5",
|
66 |
+
"resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.5.tgz",
|
67 |
+
"integrity": "sha512-9t+28jHGL7uBdkBjL90QFxe7DVA+KGqWlHCF8ChTKyaKO//VLuoBricQCgwhOjA1/qOczsw843Fy4cbs4H3DVA==",
|
68 |
+
"cpu": [
|
69 |
+
"x64"
|
70 |
+
],
|
71 |
+
"optional": true,
|
72 |
+
"os": [
|
73 |
+
"android"
|
74 |
+
],
|
75 |
+
"engines": {
|
76 |
+
"node": ">=12"
|
77 |
+
}
|
78 |
+
},
|
79 |
+
"node_modules/@esbuild/darwin-arm64": {
|
80 |
+
"version": "0.19.5",
|
81 |
+
"resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.5.tgz",
|
82 |
+
"integrity": "sha512-mvXGcKqqIqyKoxq26qEDPHJuBYUA5KizJncKOAf9eJQez+L9O+KfvNFu6nl7SCZ/gFb2QPaRqqmG0doSWlgkqw==",
|
83 |
+
"cpu": [
|
84 |
+
"arm64"
|
85 |
+
],
|
86 |
+
"optional": true,
|
87 |
+
"os": [
|
88 |
+
"darwin"
|
89 |
+
],
|
90 |
+
"engines": {
|
91 |
+
"node": ">=12"
|
92 |
+
}
|
93 |
+
},
|
94 |
+
"node_modules/@esbuild/darwin-x64": {
|
95 |
+
"version": "0.19.5",
|
96 |
+
"resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.5.tgz",
|
97 |
+
"integrity": "sha512-Ly8cn6fGLNet19s0X4unjcniX24I0RqjPv+kurpXabZYSXGM4Pwpmf85WHJN3lAgB8GSth7s5A0r856S+4DyiA==",
|
98 |
+
"cpu": [
|
99 |
+
"x64"
|
100 |
+
],
|
101 |
+
"optional": true,
|
102 |
+
"os": [
|
103 |
+
"darwin"
|
104 |
+
],
|
105 |
+
"engines": {
|
106 |
+
"node": ">=12"
|
107 |
+
}
|
108 |
+
},
|
109 |
+
"node_modules/@esbuild/freebsd-arm64": {
|
110 |
+
"version": "0.19.5",
|
111 |
+
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.5.tgz",
|
112 |
+
"integrity": "sha512-GGDNnPWTmWE+DMchq1W8Sd0mUkL+APvJg3b11klSGUDvRXh70JqLAO56tubmq1s2cgpVCSKYywEiKBfju8JztQ==",
|
113 |
+
"cpu": [
|
114 |
+
"arm64"
|
115 |
+
],
|
116 |
+
"optional": true,
|
117 |
+
"os": [
|
118 |
+
"freebsd"
|
119 |
+
],
|
120 |
+
"engines": {
|
121 |
+
"node": ">=12"
|
122 |
+
}
|
123 |
+
},
|
124 |
+
"node_modules/@esbuild/freebsd-x64": {
|
125 |
+
"version": "0.19.5",
|
126 |
+
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.5.tgz",
|
127 |
+
"integrity": "sha512-1CCwDHnSSoA0HNwdfoNY0jLfJpd7ygaLAp5EHFos3VWJCRX9DMwWODf96s9TSse39Br7oOTLryRVmBoFwXbuuQ==",
|
128 |
+
"cpu": [
|
129 |
+
"x64"
|
130 |
+
],
|
131 |
+
"optional": true,
|
132 |
+
"os": [
|
133 |
+
"freebsd"
|
134 |
+
],
|
135 |
+
"engines": {
|
136 |
+
"node": ">=12"
|
137 |
+
}
|
138 |
+
},
|
139 |
+
"node_modules/@esbuild/linux-arm": {
|
140 |
+
"version": "0.19.5",
|
141 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.5.tgz",
|
142 |
+
"integrity": "sha512-lrWXLY/vJBzCPC51QN0HM71uWgIEpGSjSZZADQhq7DKhPcI6NH1IdzjfHkDQws2oNpJKpR13kv7/pFHBbDQDwQ==",
|
143 |
+
"cpu": [
|
144 |
+
"arm"
|
145 |
+
],
|
146 |
+
"optional": true,
|
147 |
+
"os": [
|
148 |
+
"linux"
|
149 |
+
],
|
150 |
+
"engines": {
|
151 |
+
"node": ">=12"
|
152 |
+
}
|
153 |
+
},
|
154 |
+
"node_modules/@esbuild/linux-arm64": {
|
155 |
+
"version": "0.19.5",
|
156 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.5.tgz",
|
157 |
+
"integrity": "sha512-o3vYippBmSrjjQUCEEiTZ2l+4yC0pVJD/Dl57WfPwwlvFkrxoSO7rmBZFii6kQB3Wrn/6GwJUPLU5t52eq2meA==",
|
158 |
+
"cpu": [
|
159 |
+
"arm64"
|
160 |
+
],
|
161 |
+
"optional": true,
|
162 |
+
"os": [
|
163 |
+
"linux"
|
164 |
+
],
|
165 |
+
"engines": {
|
166 |
+
"node": ">=12"
|
167 |
+
}
|
168 |
+
},
|
169 |
+
"node_modules/@esbuild/linux-ia32": {
|
170 |
+
"version": "0.19.5",
|
171 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.5.tgz",
|
172 |
+
"integrity": "sha512-MkjHXS03AXAkNp1KKkhSKPOCYztRtK+KXDNkBa6P78F8Bw0ynknCSClO/ztGszILZtyO/lVKpa7MolbBZ6oJtQ==",
|
173 |
+
"cpu": [
|
174 |
+
"ia32"
|
175 |
+
],
|
176 |
+
"optional": true,
|
177 |
+
"os": [
|
178 |
+
"linux"
|
179 |
+
],
|
180 |
+
"engines": {
|
181 |
+
"node": ">=12"
|
182 |
+
}
|
183 |
+
},
|
184 |
+
"node_modules/@esbuild/linux-loong64": {
|
185 |
+
"version": "0.19.5",
|
186 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.5.tgz",
|
187 |
+
"integrity": "sha512-42GwZMm5oYOD/JHqHska3Jg0r+XFb/fdZRX+WjADm3nLWLcIsN27YKtqxzQmGNJgu0AyXg4HtcSK9HuOk3v1Dw==",
|
188 |
+
"cpu": [
|
189 |
+
"loong64"
|
190 |
+
],
|
191 |
+
"optional": true,
|
192 |
+
"os": [
|
193 |
+
"linux"
|
194 |
+
],
|
195 |
+
"engines": {
|
196 |
+
"node": ">=12"
|
197 |
+
}
|
198 |
+
},
|
199 |
+
"node_modules/@esbuild/linux-mips64el": {
|
200 |
+
"version": "0.19.5",
|
201 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.5.tgz",
|
202 |
+
"integrity": "sha512-kcjndCSMitUuPJobWCnwQ9lLjiLZUR3QLQmlgaBfMX23UEa7ZOrtufnRds+6WZtIS9HdTXqND4yH8NLoVVIkcg==",
|
203 |
+
"cpu": [
|
204 |
+
"mips64el"
|
205 |
+
],
|
206 |
+
"optional": true,
|
207 |
+
"os": [
|
208 |
+
"linux"
|
209 |
+
],
|
210 |
+
"engines": {
|
211 |
+
"node": ">=12"
|
212 |
+
}
|
213 |
+
},
|
214 |
+
"node_modules/@esbuild/linux-ppc64": {
|
215 |
+
"version": "0.19.5",
|
216 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.5.tgz",
|
217 |
+
"integrity": "sha512-yJAxJfHVm0ZbsiljbtFFP1BQKLc8kUF6+17tjQ78QjqjAQDnhULWiTA6u0FCDmYT1oOKS9PzZ2z0aBI+Mcyj7Q==",
|
218 |
+
"cpu": [
|
219 |
+
"ppc64"
|
220 |
+
],
|
221 |
+
"optional": true,
|
222 |
+
"os": [
|
223 |
+
"linux"
|
224 |
+
],
|
225 |
+
"engines": {
|
226 |
+
"node": ">=12"
|
227 |
+
}
|
228 |
+
},
|
229 |
+
"node_modules/@esbuild/linux-riscv64": {
|
230 |
+
"version": "0.19.5",
|
231 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.5.tgz",
|
232 |
+
"integrity": "sha512-5u8cIR/t3gaD6ad3wNt1MNRstAZO+aNyBxu2We8X31bA8XUNyamTVQwLDA1SLoPCUehNCymhBhK3Qim1433Zag==",
|
233 |
+
"cpu": [
|
234 |
+
"riscv64"
|
235 |
+
],
|
236 |
+
"optional": true,
|
237 |
+
"os": [
|
238 |
+
"linux"
|
239 |
+
],
|
240 |
+
"engines": {
|
241 |
+
"node": ">=12"
|
242 |
+
}
|
243 |
+
},
|
244 |
+
"node_modules/@esbuild/linux-s390x": {
|
245 |
+
"version": "0.19.5",
|
246 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.5.tgz",
|
247 |
+
"integrity": "sha512-Z6JrMyEw/EmZBD/OFEFpb+gao9xJ59ATsoTNlj39jVBbXqoZm4Xntu6wVmGPB/OATi1uk/DB+yeDPv2E8PqZGw==",
|
248 |
+
"cpu": [
|
249 |
+
"s390x"
|
250 |
+
],
|
251 |
+
"optional": true,
|
252 |
+
"os": [
|
253 |
+
"linux"
|
254 |
+
],
|
255 |
+
"engines": {
|
256 |
+
"node": ">=12"
|
257 |
+
}
|
258 |
+
},
|
259 |
+
"node_modules/@esbuild/linux-x64": {
|
260 |
+
"version": "0.19.5",
|
261 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.5.tgz",
|
262 |
+
"integrity": "sha512-psagl+2RlK1z8zWZOmVdImisMtrUxvwereIdyJTmtmHahJTKb64pAcqoPlx6CewPdvGvUKe2Jw+0Z/0qhSbG1A==",
|
263 |
+
"cpu": [
|
264 |
+
"x64"
|
265 |
+
],
|
266 |
+
"optional": true,
|
267 |
+
"os": [
|
268 |
+
"linux"
|
269 |
+
],
|
270 |
+
"engines": {
|
271 |
+
"node": ">=12"
|
272 |
+
}
|
273 |
+
},
|
274 |
+
"node_modules/@esbuild/netbsd-x64": {
|
275 |
+
"version": "0.19.5",
|
276 |
+
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.5.tgz",
|
277 |
+
"integrity": "sha512-kL2l+xScnAy/E/3119OggX8SrWyBEcqAh8aOY1gr4gPvw76la2GlD4Ymf832UCVbmuWeTf2adkZDK+h0Z/fB4g==",
|
278 |
+
"cpu": [
|
279 |
+
"x64"
|
280 |
+
],
|
281 |
+
"optional": true,
|
282 |
+
"os": [
|
283 |
+
"netbsd"
|
284 |
+
],
|
285 |
+
"engines": {
|
286 |
+
"node": ">=12"
|
287 |
+
}
|
288 |
+
},
|
289 |
+
"node_modules/@esbuild/openbsd-x64": {
|
290 |
+
"version": "0.19.5",
|
291 |
+
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.5.tgz",
|
292 |
+
"integrity": "sha512-sPOfhtzFufQfTBgRnE1DIJjzsXukKSvZxloZbkJDG383q0awVAq600pc1nfqBcl0ice/WN9p4qLc39WhBShRTA==",
|
293 |
+
"cpu": [
|
294 |
+
"x64"
|
295 |
+
],
|
296 |
+
"optional": true,
|
297 |
+
"os": [
|
298 |
+
"openbsd"
|
299 |
+
],
|
300 |
+
"engines": {
|
301 |
+
"node": ">=12"
|
302 |
+
}
|
303 |
+
},
|
304 |
+
"node_modules/@esbuild/sunos-x64": {
|
305 |
+
"version": "0.19.5",
|
306 |
+
"resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.5.tgz",
|
307 |
+
"integrity": "sha512-dGZkBXaafuKLpDSjKcB0ax0FL36YXCvJNnztjKV+6CO82tTYVDSH2lifitJ29jxRMoUhgkg9a+VA/B03WK5lcg==",
|
308 |
+
"cpu": [
|
309 |
+
"x64"
|
310 |
+
],
|
311 |
+
"optional": true,
|
312 |
+
"os": [
|
313 |
+
"sunos"
|
314 |
+
],
|
315 |
+
"engines": {
|
316 |
+
"node": ">=12"
|
317 |
+
}
|
318 |
+
},
|
319 |
+
"node_modules/@esbuild/win32-arm64": {
|
320 |
+
"version": "0.19.5",
|
321 |
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.5.tgz",
|
322 |
+
"integrity": "sha512-dWVjD9y03ilhdRQ6Xig1NWNgfLtf2o/STKTS+eZuF90fI2BhbwD6WlaiCGKptlqXlURVB5AUOxUj09LuwKGDTg==",
|
323 |
+
"cpu": [
|
324 |
+
"arm64"
|
325 |
+
],
|
326 |
+
"optional": true,
|
327 |
+
"os": [
|
328 |
+
"win32"
|
329 |
+
],
|
330 |
+
"engines": {
|
331 |
+
"node": ">=12"
|
332 |
+
}
|
333 |
+
},
|
334 |
+
"node_modules/@esbuild/win32-ia32": {
|
335 |
+
"version": "0.19.5",
|
336 |
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.5.tgz",
|
337 |
+
"integrity": "sha512-4liggWIA4oDgUxqpZwrDhmEfAH4d0iljanDOK7AnVU89T6CzHon/ony8C5LeOdfgx60x5cnQJFZwEydVlYx4iw==",
|
338 |
+
"cpu": [
|
339 |
+
"ia32"
|
340 |
+
],
|
341 |
+
"optional": true,
|
342 |
+
"os": [
|
343 |
+
"win32"
|
344 |
+
],
|
345 |
+
"engines": {
|
346 |
+
"node": ">=12"
|
347 |
+
}
|
348 |
+
},
|
349 |
+
"node_modules/@esbuild/win32-x64": {
|
350 |
+
"version": "0.19.5",
|
351 |
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.5.tgz",
|
352 |
+
"integrity": "sha512-czTrygUsB/jlM8qEW5MD8bgYU2Xg14lo6kBDXW6HdxKjh8M5PzETGiSHaz9MtbXBYDloHNUAUW2tMiKW4KM9Mw==",
|
353 |
+
"cpu": [
|
354 |
+
"x64"
|
355 |
+
],
|
356 |
+
"optional": true,
|
357 |
+
"os": [
|
358 |
+
"win32"
|
359 |
+
],
|
360 |
+
"engines": {
|
361 |
+
"node": ">=12"
|
362 |
+
}
|
363 |
+
},
|
364 |
+
"node_modules/@formatjs/ecma402-abstract": {
|
365 |
+
"version": "1.11.4",
|
366 |
+
"resolved": "https://registry.npmjs.org/@formatjs/ecma402-abstract/-/ecma402-abstract-1.11.4.tgz",
|
367 |
+
"integrity": "sha512-EBikYFp2JCdIfGEb5G9dyCkTGDmC57KSHhRQOC3aYxoPWVZvfWCDjZwkGYHN7Lis/fmuWl906bnNTJifDQ3sXw==",
|
368 |
+
"dependencies": {
|
369 |
+
"@formatjs/intl-localematcher": "0.2.25",
|
370 |
+
"tslib": "^2.1.0"
|
371 |
+
}
|
372 |
+
},
|
373 |
+
"node_modules/@formatjs/fast-memoize": {
|
374 |
+
"version": "1.2.1",
|
375 |
+
"resolved": "https://registry.npmjs.org/@formatjs/fast-memoize/-/fast-memoize-1.2.1.tgz",
|
376 |
+
"integrity": "sha512-Rg0e76nomkz3vF9IPlKeV+Qynok0r7YZjL6syLz4/urSg0IbjPZCB/iYUMNsYA643gh4mgrX3T7KEIFIxJBQeg==",
|
377 |
+
"dependencies": {
|
378 |
+
"tslib": "^2.1.0"
|
379 |
+
}
|
380 |
+
},
|
381 |
+
"node_modules/@formatjs/icu-messageformat-parser": {
|
382 |
+
"version": "2.1.0",
|
383 |
+
"resolved": "https://registry.npmjs.org/@formatjs/icu-messageformat-parser/-/icu-messageformat-parser-2.1.0.tgz",
|
384 |
+
"integrity": "sha512-Qxv/lmCN6hKpBSss2uQ8IROVnta2r9jd3ymUEIjm2UyIkUCHVcbUVRGL/KS/wv7876edvsPe+hjHVJ4z8YuVaw==",
|
385 |
+
"dependencies": {
|
386 |
+
"@formatjs/ecma402-abstract": "1.11.4",
|
387 |
+
"@formatjs/icu-skeleton-parser": "1.3.6",
|
388 |
+
"tslib": "^2.1.0"
|
389 |
+
}
|
390 |
+
},
|
391 |
+
"node_modules/@formatjs/icu-skeleton-parser": {
|
392 |
+
"version": "1.3.6",
|
393 |
+
"resolved": "https://registry.npmjs.org/@formatjs/icu-skeleton-parser/-/icu-skeleton-parser-1.3.6.tgz",
|
394 |
+
"integrity": "sha512-I96mOxvml/YLrwU2Txnd4klA7V8fRhb6JG/4hm3VMNmeJo1F03IpV2L3wWt7EweqNLES59SZ4d6hVOPCSf80Bg==",
|
395 |
+
"dependencies": {
|
396 |
+
"@formatjs/ecma402-abstract": "1.11.4",
|
397 |
+
"tslib": "^2.1.0"
|
398 |
+
}
|
399 |
+
},
|
400 |
+
"node_modules/@formatjs/intl-localematcher": {
|
401 |
+
"version": "0.2.25",
|
402 |
+
"resolved": "https://registry.npmjs.org/@formatjs/intl-localematcher/-/intl-localematcher-0.2.25.tgz",
|
403 |
+
"integrity": "sha512-YmLcX70BxoSopLFdLr1Ds99NdlTI2oWoLbaUW2M406lxOIPzE1KQhRz2fPUkq34xVZQaihCoU29h0KK7An3bhA==",
|
404 |
+
"dependencies": {
|
405 |
+
"tslib": "^2.1.0"
|
406 |
+
}
|
407 |
+
},
|
408 |
+
"node_modules/@gradio/atoms": {
|
409 |
+
"version": "0.2.0",
|
410 |
+
"resolved": "https://registry.npmjs.org/@gradio/atoms/-/atoms-0.2.0.tgz",
|
411 |
+
"integrity": "sha512-7pTXJTZv+KECtTG9vqeq9j7vz5OKkp+TRvh+O4yMbtkvxFEbhYaaUngkWFX26btGiveD+V4RG4qrP17jqpSdGA==",
|
412 |
+
"dependencies": {
|
413 |
+
"@gradio/icons": "^0.2.0",
|
414 |
+
"@gradio/utils": "^0.2.0"
|
415 |
+
}
|
416 |
+
},
|
417 |
+
"node_modules/@gradio/client": {
|
418 |
+
"version": "0.7.1",
|
419 |
+
"resolved": "https://registry.npmjs.org/@gradio/client/-/client-0.7.1.tgz",
|
420 |
+
"integrity": "sha512-capRFmuk0EDI7oIGmRiSGZwcvsXEO9qnwUHBcSmawXPTPnuuZlBOMVERancuO8RO8PtUAozTgBCaLXP9TFhypQ==",
|
421 |
+
"dependencies": {
|
422 |
+
"bufferutil": "^4.0.7",
|
423 |
+
"semiver": "^1.1.0",
|
424 |
+
"ws": "^8.13.0"
|
425 |
+
},
|
426 |
+
"engines": {
|
427 |
+
"node": ">=18.0.0"
|
428 |
+
}
|
429 |
+
},
|
430 |
+
"node_modules/@gradio/column": {
|
431 |
+
"version": "0.1.0",
|
432 |
+
"resolved": "https://registry.npmjs.org/@gradio/column/-/column-0.1.0.tgz",
|
433 |
+
"integrity": "sha512-P24nqqVnMXBaDA1f/zSN5HZRho4PxP8Dq+7VltPHlmxIEiZYik2AJ4J0LeuIha34FDO0guu/16evdrpvGIUAfw=="
|
434 |
+
},
|
435 |
+
"node_modules/@gradio/icons": {
|
436 |
+
"version": "0.2.0",
|
437 |
+
"resolved": "https://registry.npmjs.org/@gradio/icons/-/icons-0.2.0.tgz",
|
438 |
+
"integrity": "sha512-rfCSmOF+ALqBOjTWL1ICasyA8JuO0MPwFrtlVMyAWp7R14AN8YChC/gbz5fZ0kNBiGGEYOOfqpKxyvC95jGGlg=="
|
439 |
+
},
|
440 |
+
"node_modules/@gradio/statustracker": {
|
441 |
+
"version": "0.3.0",
|
442 |
+
"resolved": "https://registry.npmjs.org/@gradio/statustracker/-/statustracker-0.3.0.tgz",
|
443 |
+
"integrity": "sha512-8F3ezqPoGpq7B0EFYGVJkiYOrXCJLMEBcjLTOk2NeM2tXUoOCTieSvJEOstLzM0KkHwY7FvVrc3Dn5iqfIq2lQ==",
|
444 |
+
"dependencies": {
|
445 |
+
"@gradio/atoms": "^0.2.0",
|
446 |
+
"@gradio/column": "^0.1.0",
|
447 |
+
"@gradio/icons": "^0.2.0",
|
448 |
+
"@gradio/utils": "^0.2.0"
|
449 |
+
}
|
450 |
+
},
|
451 |
+
"node_modules/@gradio/theme": {
|
452 |
+
"version": "0.2.0",
|
453 |
+
"resolved": "https://registry.npmjs.org/@gradio/theme/-/theme-0.2.0.tgz",
|
454 |
+
"integrity": "sha512-33c68Nk7oRXLn08OxPfjcPm7S4tXGOUV1I1bVgzdM2YV5o1QBOS1GEnXPZPu/CEYPePLMB6bsDwffrLEyLGWVQ=="
|
455 |
+
},
|
456 |
+
"node_modules/@gradio/upload": {
|
457 |
+
"version": "0.3.1",
|
458 |
+
"resolved": "https://registry.npmjs.org/@gradio/upload/-/upload-0.3.1.tgz",
|
459 |
+
"integrity": "sha512-CuatwjSxngMFXlro07zjZZ4kTGL5YPjbASp3B5HS7oV/GUMufDgmSwWCcrFfH63H7iavDQc0pB5fxQ6zV/3qpA==",
|
460 |
+
"dependencies": {
|
461 |
+
"@gradio/atoms": "^0.2.0",
|
462 |
+
"@gradio/client": "^0.7.1",
|
463 |
+
"@gradio/icons": "^0.2.0",
|
464 |
+
"@gradio/upload": "^0.3.1",
|
465 |
+
"@gradio/utils": "^0.2.0"
|
466 |
+
}
|
467 |
+
},
|
468 |
+
"node_modules/@gradio/utils": {
|
469 |
+
"version": "0.2.0",
|
470 |
+
"resolved": "https://registry.npmjs.org/@gradio/utils/-/utils-0.2.0.tgz",
|
471 |
+
"integrity": "sha512-YkwzXufi6IxQrlMW+1sFo8Yn6F9NLL69ZoBsbo7QEhms0v5L7pmOTw+dfd7M3dwbRP2lgjrb52i1kAIN3n6aqQ==",
|
472 |
+
"dependencies": {
|
473 |
+
"@gradio/theme": "^0.2.0",
|
474 |
+
"svelte-i18n": "^3.6.0"
|
475 |
+
}
|
476 |
+
},
|
477 |
+
"node_modules/@jridgewell/gen-mapping": {
|
478 |
+
"version": "0.3.3",
|
479 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz",
|
480 |
+
"integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==",
|
481 |
+
"peer": true,
|
482 |
+
"dependencies": {
|
483 |
+
"@jridgewell/set-array": "^1.0.1",
|
484 |
+
"@jridgewell/sourcemap-codec": "^1.4.10",
|
485 |
+
"@jridgewell/trace-mapping": "^0.3.9"
|
486 |
+
},
|
487 |
+
"engines": {
|
488 |
+
"node": ">=6.0.0"
|
489 |
+
}
|
490 |
+
},
|
491 |
+
"node_modules/@jridgewell/resolve-uri": {
|
492 |
+
"version": "3.1.1",
|
493 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz",
|
494 |
+
"integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==",
|
495 |
+
"peer": true,
|
496 |
+
"engines": {
|
497 |
+
"node": ">=6.0.0"
|
498 |
+
}
|
499 |
+
},
|
500 |
+
"node_modules/@jridgewell/set-array": {
|
501 |
+
"version": "1.1.2",
|
502 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz",
|
503 |
+
"integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==",
|
504 |
+
"peer": true,
|
505 |
+
"engines": {
|
506 |
+
"node": ">=6.0.0"
|
507 |
+
}
|
508 |
+
},
|
509 |
+
"node_modules/@jridgewell/sourcemap-codec": {
|
510 |
+
"version": "1.4.15",
|
511 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz",
|
512 |
+
"integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==",
|
513 |
+
"peer": true
|
514 |
+
},
|
515 |
+
"node_modules/@jridgewell/trace-mapping": {
|
516 |
+
"version": "0.3.20",
|
517 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz",
|
518 |
+
"integrity": "sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==",
|
519 |
+
"peer": true,
|
520 |
+
"dependencies": {
|
521 |
+
"@jridgewell/resolve-uri": "^3.1.0",
|
522 |
+
"@jridgewell/sourcemap-codec": "^1.4.14"
|
523 |
+
}
|
524 |
+
},
|
525 |
+
"node_modules/@types/estree": {
|
526 |
+
"version": "1.0.4",
|
527 |
+
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.4.tgz",
|
528 |
+
"integrity": "sha512-2JwWnHK9H+wUZNorf2Zr6ves96WHoWDJIftkcxPKsS7Djta6Zu519LarhRNljPXkpsZR2ZMwNCPeW7omW07BJw==",
|
529 |
+
"peer": true
|
530 |
+
},
|
531 |
+
"node_modules/3dmol": {
|
532 |
+
"version": "2.0.6",
|
533 |
+
"resolved": "https://registry.npmjs.org/3dmol/-/3dmol-2.0.6.tgz",
|
534 |
+
"integrity": "sha512-KpfC7mR8fPDVG71Aarc5a7gOkARiW3xE1pJqh4DTmgRQRGT0yJxK1YxWPZOJ6B7IfPA2l5pbXbUo5gbl2TLfqg==",
|
535 |
+
"dependencies": {
|
536 |
+
"iobuffer": "^5.3.1",
|
537 |
+
"netcdfjs": "^3.0.0",
|
538 |
+
"pako": "^2.1.0",
|
539 |
+
"upng-js": "^2.1.0"
|
540 |
+
},
|
541 |
+
"engines": {
|
542 |
+
"node": ">=16.16.0",
|
543 |
+
"npm": ">=8.11"
|
544 |
+
}
|
545 |
+
},
|
546 |
+
"node_modules/acorn": {
|
547 |
+
"version": "8.11.2",
|
548 |
+
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz",
|
549 |
+
"integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==",
|
550 |
+
"peer": true,
|
551 |
+
"bin": {
|
552 |
+
"acorn": "bin/acorn"
|
553 |
+
},
|
554 |
+
"engines": {
|
555 |
+
"node": ">=0.4.0"
|
556 |
+
}
|
557 |
+
},
|
558 |
+
"node_modules/aria-query": {
|
559 |
+
"version": "5.3.0",
|
560 |
+
"resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz",
|
561 |
+
"integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==",
|
562 |
+
"peer": true,
|
563 |
+
"dependencies": {
|
564 |
+
"dequal": "^2.0.3"
|
565 |
+
}
|
566 |
+
},
|
567 |
+
"node_modules/axobject-query": {
|
568 |
+
"version": "3.2.1",
|
569 |
+
"resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.2.1.tgz",
|
570 |
+
"integrity": "sha512-jsyHu61e6N4Vbz/v18DHwWYKK0bSWLqn47eeDSKPB7m8tqMHF9YJ+mhIk2lVteyZrY8tnSj/jHOv4YiTCuCJgg==",
|
571 |
+
"peer": true,
|
572 |
+
"dependencies": {
|
573 |
+
"dequal": "^2.0.3"
|
574 |
+
}
|
575 |
+
},
|
576 |
+
"node_modules/bufferutil": {
|
577 |
+
"version": "4.0.8",
|
578 |
+
"resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.8.tgz",
|
579 |
+
"integrity": "sha512-4T53u4PdgsXqKaIctwF8ifXlRTTmEPJ8iEPWFdGZvcf7sbwYo6FKFEX9eNNAnzFZ7EzJAQ3CJeOtCRA4rDp7Pw==",
|
580 |
+
"hasInstallScript": true,
|
581 |
+
"dependencies": {
|
582 |
+
"node-gyp-build": "^4.3.0"
|
583 |
+
},
|
584 |
+
"engines": {
|
585 |
+
"node": ">=6.14.2"
|
586 |
+
}
|
587 |
+
},
|
588 |
+
"node_modules/cli-color": {
|
589 |
+
"version": "2.0.3",
|
590 |
+
"resolved": "https://registry.npmjs.org/cli-color/-/cli-color-2.0.3.tgz",
|
591 |
+
"integrity": "sha512-OkoZnxyC4ERN3zLzZaY9Emb7f/MhBOIpePv0Ycok0fJYT+Ouo00UBEIwsVsr0yoow++n5YWlSUgST9GKhNHiRQ==",
|
592 |
+
"dependencies": {
|
593 |
+
"d": "^1.0.1",
|
594 |
+
"es5-ext": "^0.10.61",
|
595 |
+
"es6-iterator": "^2.0.3",
|
596 |
+
"memoizee": "^0.4.15",
|
597 |
+
"timers-ext": "^0.1.7"
|
598 |
+
},
|
599 |
+
"engines": {
|
600 |
+
"node": ">=0.10"
|
601 |
+
}
|
602 |
+
},
|
603 |
+
"node_modules/code-red": {
|
604 |
+
"version": "1.0.4",
|
605 |
+
"resolved": "https://registry.npmjs.org/code-red/-/code-red-1.0.4.tgz",
|
606 |
+
"integrity": "sha512-7qJWqItLA8/VPVlKJlFXU+NBlo/qyfs39aJcuMT/2ere32ZqvF5OSxgdM5xOfJJ7O429gg2HM47y8v9P+9wrNw==",
|
607 |
+
"peer": true,
|
608 |
+
"dependencies": {
|
609 |
+
"@jridgewell/sourcemap-codec": "^1.4.15",
|
610 |
+
"@types/estree": "^1.0.1",
|
611 |
+
"acorn": "^8.10.0",
|
612 |
+
"estree-walker": "^3.0.3",
|
613 |
+
"periscopic": "^3.1.0"
|
614 |
+
}
|
615 |
+
},
|
616 |
+
"node_modules/css-tree": {
|
617 |
+
"version": "2.3.1",
|
618 |
+
"resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.3.1.tgz",
|
619 |
+
"integrity": "sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==",
|
620 |
+
"peer": true,
|
621 |
+
"dependencies": {
|
622 |
+
"mdn-data": "2.0.30",
|
623 |
+
"source-map-js": "^1.0.1"
|
624 |
+
},
|
625 |
+
"engines": {
|
626 |
+
"node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0"
|
627 |
+
}
|
628 |
+
},
|
629 |
+
"node_modules/d": {
|
630 |
+
"version": "1.0.1",
|
631 |
+
"resolved": "https://registry.npmjs.org/d/-/d-1.0.1.tgz",
|
632 |
+
"integrity": "sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==",
|
633 |
+
"dependencies": {
|
634 |
+
"es5-ext": "^0.10.50",
|
635 |
+
"type": "^1.0.1"
|
636 |
+
}
|
637 |
+
},
|
638 |
+
"node_modules/deepmerge": {
|
639 |
+
"version": "4.3.1",
|
640 |
+
"resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz",
|
641 |
+
"integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==",
|
642 |
+
"engines": {
|
643 |
+
"node": ">=0.10.0"
|
644 |
+
}
|
645 |
+
},
|
646 |
+
"node_modules/dequal": {
|
647 |
+
"version": "2.0.3",
|
648 |
+
"resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",
|
649 |
+
"integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",
|
650 |
+
"peer": true,
|
651 |
+
"engines": {
|
652 |
+
"node": ">=6"
|
653 |
+
}
|
654 |
+
},
|
655 |
+
"node_modules/es5-ext": {
|
656 |
+
"version": "0.10.62",
|
657 |
+
"resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.62.tgz",
|
658 |
+
"integrity": "sha512-BHLqn0klhEpnOKSrzn/Xsz2UIW8j+cGmo9JLzr8BiUapV8hPL9+FliFqjwr9ngW7jWdnxv6eO+/LqyhJVqgrjA==",
|
659 |
+
"hasInstallScript": true,
|
660 |
+
"dependencies": {
|
661 |
+
"es6-iterator": "^2.0.3",
|
662 |
+
"es6-symbol": "^3.1.3",
|
663 |
+
"next-tick": "^1.1.0"
|
664 |
+
},
|
665 |
+
"engines": {
|
666 |
+
"node": ">=0.10"
|
667 |
+
}
|
668 |
+
},
|
669 |
+
"node_modules/es6-iterator": {
|
670 |
+
"version": "2.0.3",
|
671 |
+
"resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz",
|
672 |
+
"integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==",
|
673 |
+
"dependencies": {
|
674 |
+
"d": "1",
|
675 |
+
"es5-ext": "^0.10.35",
|
676 |
+
"es6-symbol": "^3.1.1"
|
677 |
+
}
|
678 |
+
},
|
679 |
+
"node_modules/es6-symbol": {
|
680 |
+
"version": "3.1.3",
|
681 |
+
"resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.3.tgz",
|
682 |
+
"integrity": "sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA==",
|
683 |
+
"dependencies": {
|
684 |
+
"d": "^1.0.1",
|
685 |
+
"ext": "^1.1.2"
|
686 |
+
}
|
687 |
+
},
|
688 |
+
"node_modules/es6-weak-map": {
|
689 |
+
"version": "2.0.3",
|
690 |
+
"resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.3.tgz",
|
691 |
+
"integrity": "sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==",
|
692 |
+
"dependencies": {
|
693 |
+
"d": "1",
|
694 |
+
"es5-ext": "^0.10.46",
|
695 |
+
"es6-iterator": "^2.0.3",
|
696 |
+
"es6-symbol": "^3.1.1"
|
697 |
+
}
|
698 |
+
},
|
699 |
+
"node_modules/esbuild": {
|
700 |
+
"version": "0.19.5",
|
701 |
+
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.5.tgz",
|
702 |
+
"integrity": "sha512-bUxalY7b1g8vNhQKdB24QDmHeY4V4tw/s6Ak5z+jJX9laP5MoQseTOMemAr0gxssjNcH0MCViG8ONI2kksvfFQ==",
|
703 |
+
"hasInstallScript": true,
|
704 |
+
"bin": {
|
705 |
+
"esbuild": "bin/esbuild"
|
706 |
+
},
|
707 |
+
"engines": {
|
708 |
+
"node": ">=12"
|
709 |
+
},
|
710 |
+
"optionalDependencies": {
|
711 |
+
"@esbuild/android-arm": "0.19.5",
|
712 |
+
"@esbuild/android-arm64": "0.19.5",
|
713 |
+
"@esbuild/android-x64": "0.19.5",
|
714 |
+
"@esbuild/darwin-arm64": "0.19.5",
|
715 |
+
"@esbuild/darwin-x64": "0.19.5",
|
716 |
+
"@esbuild/freebsd-arm64": "0.19.5",
|
717 |
+
"@esbuild/freebsd-x64": "0.19.5",
|
718 |
+
"@esbuild/linux-arm": "0.19.5",
|
719 |
+
"@esbuild/linux-arm64": "0.19.5",
|
720 |
+
"@esbuild/linux-ia32": "0.19.5",
|
721 |
+
"@esbuild/linux-loong64": "0.19.5",
|
722 |
+
"@esbuild/linux-mips64el": "0.19.5",
|
723 |
+
"@esbuild/linux-ppc64": "0.19.5",
|
724 |
+
"@esbuild/linux-riscv64": "0.19.5",
|
725 |
+
"@esbuild/linux-s390x": "0.19.5",
|
726 |
+
"@esbuild/linux-x64": "0.19.5",
|
727 |
+
"@esbuild/netbsd-x64": "0.19.5",
|
728 |
+
"@esbuild/openbsd-x64": "0.19.5",
|
729 |
+
"@esbuild/sunos-x64": "0.19.5",
|
730 |
+
"@esbuild/win32-arm64": "0.19.5",
|
731 |
+
"@esbuild/win32-ia32": "0.19.5",
|
732 |
+
"@esbuild/win32-x64": "0.19.5"
|
733 |
+
}
|
734 |
+
},
|
735 |
+
"node_modules/estree-walker": {
|
736 |
+
"version": "3.0.3",
|
737 |
+
"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",
|
738 |
+
"integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",
|
739 |
+
"peer": true,
|
740 |
+
"dependencies": {
|
741 |
+
"@types/estree": "^1.0.0"
|
742 |
+
}
|
743 |
+
},
|
744 |
+
"node_modules/event-emitter": {
|
745 |
+
"version": "0.3.5",
|
746 |
+
"resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz",
|
747 |
+
"integrity": "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==",
|
748 |
+
"dependencies": {
|
749 |
+
"d": "1",
|
750 |
+
"es5-ext": "~0.10.14"
|
751 |
+
}
|
752 |
+
},
|
753 |
+
"node_modules/ext": {
|
754 |
+
"version": "1.7.0",
|
755 |
+
"resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz",
|
756 |
+
"integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==",
|
757 |
+
"dependencies": {
|
758 |
+
"type": "^2.7.2"
|
759 |
+
}
|
760 |
+
},
|
761 |
+
"node_modules/ext/node_modules/type": {
|
762 |
+
"version": "2.7.2",
|
763 |
+
"resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz",
|
764 |
+
"integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw=="
|
765 |
+
},
|
766 |
+
"node_modules/globalyzer": {
|
767 |
+
"version": "0.1.0",
|
768 |
+
"resolved": "https://registry.npmjs.org/globalyzer/-/globalyzer-0.1.0.tgz",
|
769 |
+
"integrity": "sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q=="
|
770 |
+
},
|
771 |
+
"node_modules/globrex": {
|
772 |
+
"version": "0.1.2",
|
773 |
+
"resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz",
|
774 |
+
"integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg=="
|
775 |
+
},
|
776 |
+
"node_modules/intl-messageformat": {
|
777 |
+
"version": "9.13.0",
|
778 |
+
"resolved": "https://registry.npmjs.org/intl-messageformat/-/intl-messageformat-9.13.0.tgz",
|
779 |
+
"integrity": "sha512-7sGC7QnSQGa5LZP7bXLDhVDtQOeKGeBFGHF2Y8LVBwYZoQZCgWeKoPGTa5GMG8g/TzDgeXuYJQis7Ggiw2xTOw==",
|
780 |
+
"dependencies": {
|
781 |
+
"@formatjs/ecma402-abstract": "1.11.4",
|
782 |
+
"@formatjs/fast-memoize": "1.2.1",
|
783 |
+
"@formatjs/icu-messageformat-parser": "2.1.0",
|
784 |
+
"tslib": "^2.1.0"
|
785 |
+
}
|
786 |
+
},
|
787 |
+
"node_modules/iobuffer": {
|
788 |
+
"version": "5.3.2",
|
789 |
+
"resolved": "https://registry.npmjs.org/iobuffer/-/iobuffer-5.3.2.tgz",
|
790 |
+
"integrity": "sha512-kO3CjNfLZ9t+tHxAMd+Xk4v3D/31E91rMs1dHrm7ikEQrlZ8mLDbQ4z3tZfDM48zOkReas2jx8MWSAmN9+c8Fw=="
|
791 |
+
},
|
792 |
+
"node_modules/is-promise": {
|
793 |
+
"version": "2.2.2",
|
794 |
+
"resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz",
|
795 |
+
"integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ=="
|
796 |
+
},
|
797 |
+
"node_modules/is-reference": {
|
798 |
+
"version": "3.0.2",
|
799 |
+
"resolved": "https://registry.npmjs.org/is-reference/-/is-reference-3.0.2.tgz",
|
800 |
+
"integrity": "sha512-v3rht/LgVcsdZa3O2Nqs+NMowLOxeOm7Ay9+/ARQ2F+qEoANRcqrjAZKGN0v8ymUetZGgkp26LTnGT7H0Qo9Pg==",
|
801 |
+
"peer": true,
|
802 |
+
"dependencies": {
|
803 |
+
"@types/estree": "*"
|
804 |
+
}
|
805 |
+
},
|
806 |
+
"node_modules/locate-character": {
|
807 |
+
"version": "3.0.0",
|
808 |
+
"resolved": "https://registry.npmjs.org/locate-character/-/locate-character-3.0.0.tgz",
|
809 |
+
"integrity": "sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==",
|
810 |
+
"peer": true
|
811 |
+
},
|
812 |
+
"node_modules/lru-queue": {
|
813 |
+
"version": "0.1.0",
|
814 |
+
"resolved": "https://registry.npmjs.org/lru-queue/-/lru-queue-0.1.0.tgz",
|
815 |
+
"integrity": "sha512-BpdYkt9EvGl8OfWHDQPISVpcl5xZthb+XPsbELj5AQXxIC8IriDZIQYjBJPEm5rS420sjZ0TLEzRcq5KdBhYrQ==",
|
816 |
+
"dependencies": {
|
817 |
+
"es5-ext": "~0.10.2"
|
818 |
+
}
|
819 |
+
},
|
820 |
+
"node_modules/magic-string": {
|
821 |
+
"version": "0.30.5",
|
822 |
+
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.5.tgz",
|
823 |
+
"integrity": "sha512-7xlpfBaQaP/T6Vh8MO/EqXSW5En6INHEvEXQiuff7Gku0PWjU3uf6w/j9o7O+SpB5fOAkrI5HeoNgwjEO0pFsA==",
|
824 |
+
"peer": true,
|
825 |
+
"dependencies": {
|
826 |
+
"@jridgewell/sourcemap-codec": "^1.4.15"
|
827 |
+
},
|
828 |
+
"engines": {
|
829 |
+
"node": ">=12"
|
830 |
+
}
|
831 |
+
},
|
832 |
+
"node_modules/mdn-data": {
|
833 |
+
"version": "2.0.30",
|
834 |
+
"resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz",
|
835 |
+
"integrity": "sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==",
|
836 |
+
"peer": true
|
837 |
+
},
|
838 |
+
"node_modules/memoizee": {
|
839 |
+
"version": "0.4.15",
|
840 |
+
"resolved": "https://registry.npmjs.org/memoizee/-/memoizee-0.4.15.tgz",
|
841 |
+
"integrity": "sha512-UBWmJpLZd5STPm7PMUlOw/TSy972M+z8gcyQ5veOnSDRREz/0bmpyTfKt3/51DhEBqCZQn1udM/5flcSPYhkdQ==",
|
842 |
+
"dependencies": {
|
843 |
+
"d": "^1.0.1",
|
844 |
+
"es5-ext": "^0.10.53",
|
845 |
+
"es6-weak-map": "^2.0.3",
|
846 |
+
"event-emitter": "^0.3.5",
|
847 |
+
"is-promise": "^2.2.2",
|
848 |
+
"lru-queue": "^0.1.0",
|
849 |
+
"next-tick": "^1.1.0",
|
850 |
+
"timers-ext": "^0.1.7"
|
851 |
+
}
|
852 |
+
},
|
853 |
+
"node_modules/mri": {
|
854 |
+
"version": "1.2.0",
|
855 |
+
"resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz",
|
856 |
+
"integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==",
|
857 |
+
"engines": {
|
858 |
+
"node": ">=4"
|
859 |
+
}
|
860 |
+
},
|
861 |
+
"node_modules/netcdfjs": {
|
862 |
+
"version": "3.0.0",
|
863 |
+
"resolved": "https://registry.npmjs.org/netcdfjs/-/netcdfjs-3.0.0.tgz",
|
864 |
+
"integrity": "sha512-LOvT8KkC308qtpUkcBPiCMBtii7ZQCN6LxcVheWgyUeZ6DQWcpSRFV9dcVXLj/2eHZ/bre9tV5HTH4Sf93vrFw==",
|
865 |
+
"dependencies": {
|
866 |
+
"iobuffer": "^5.3.2"
|
867 |
+
}
|
868 |
+
},
|
869 |
+
"node_modules/next-tick": {
|
870 |
+
"version": "1.1.0",
|
871 |
+
"resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz",
|
872 |
+
"integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ=="
|
873 |
+
},
|
874 |
+
"node_modules/node-gyp-build": {
|
875 |
+
"version": "4.6.1",
|
876 |
+
"resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.6.1.tgz",
|
877 |
+
"integrity": "sha512-24vnklJmyRS8ViBNI8KbtK/r/DmXQMRiOMXTNz2nrTnAYUwjmEEbnnpB/+kt+yWRv73bPsSPRFddrcIbAxSiMQ==",
|
878 |
+
"bin": {
|
879 |
+
"node-gyp-build": "bin.js",
|
880 |
+
"node-gyp-build-optional": "optional.js",
|
881 |
+
"node-gyp-build-test": "build-test.js"
|
882 |
+
}
|
883 |
+
},
|
884 |
+
"node_modules/pako": {
|
885 |
+
"version": "2.1.0",
|
886 |
+
"resolved": "https://registry.npmjs.org/pako/-/pako-2.1.0.tgz",
|
887 |
+
"integrity": "sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug=="
|
888 |
+
},
|
889 |
+
"node_modules/periscopic": {
|
890 |
+
"version": "3.1.0",
|
891 |
+
"resolved": "https://registry.npmjs.org/periscopic/-/periscopic-3.1.0.tgz",
|
892 |
+
"integrity": "sha512-vKiQ8RRtkl9P+r/+oefh25C3fhybptkHKCZSPlcXiJux2tJF55GnEj3BVn4A5gKfq9NWWXXrxkHBwVPUfH0opw==",
|
893 |
+
"peer": true,
|
894 |
+
"dependencies": {
|
895 |
+
"@types/estree": "^1.0.0",
|
896 |
+
"estree-walker": "^3.0.0",
|
897 |
+
"is-reference": "^3.0.0"
|
898 |
+
}
|
899 |
+
},
|
900 |
+
"node_modules/sade": {
|
901 |
+
"version": "1.8.1",
|
902 |
+
"resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz",
|
903 |
+
"integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==",
|
904 |
+
"dependencies": {
|
905 |
+
"mri": "^1.1.0"
|
906 |
+
},
|
907 |
+
"engines": {
|
908 |
+
"node": ">=6"
|
909 |
+
}
|
910 |
+
},
|
911 |
+
"node_modules/semiver": {
|
912 |
+
"version": "1.1.0",
|
913 |
+
"resolved": "https://registry.npmjs.org/semiver/-/semiver-1.1.0.tgz",
|
914 |
+
"integrity": "sha512-QNI2ChmuioGC1/xjyYwyZYADILWyW6AmS1UH6gDj/SFUUUS4MBAWs/7mxnkRPc/F4iHezDP+O8t0dO8WHiEOdg==",
|
915 |
+
"engines": {
|
916 |
+
"node": ">=6"
|
917 |
+
}
|
918 |
+
},
|
919 |
+
"node_modules/source-map-js": {
|
920 |
+
"version": "1.0.2",
|
921 |
+
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz",
|
922 |
+
"integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==",
|
923 |
+
"peer": true,
|
924 |
+
"engines": {
|
925 |
+
"node": ">=0.10.0"
|
926 |
+
}
|
927 |
+
},
|
928 |
+
"node_modules/svelte": {
|
929 |
+
"version": "4.2.2",
|
930 |
+
"resolved": "https://registry.npmjs.org/svelte/-/svelte-4.2.2.tgz",
|
931 |
+
"integrity": "sha512-My2tytF2e2NnHSpn2M7/3VdXT4JdTglYVUuSuK/mXL2XtulPYbeBfl8Dm1QiaKRn0zoULRnL+EtfZHHP0k4H3A==",
|
932 |
+
"peer": true,
|
933 |
+
"dependencies": {
|
934 |
+
"@ampproject/remapping": "^2.2.1",
|
935 |
+
"@jridgewell/sourcemap-codec": "^1.4.15",
|
936 |
+
"@jridgewell/trace-mapping": "^0.3.18",
|
937 |
+
"acorn": "^8.9.0",
|
938 |
+
"aria-query": "^5.3.0",
|
939 |
+
"axobject-query": "^3.2.1",
|
940 |
+
"code-red": "^1.0.3",
|
941 |
+
"css-tree": "^2.3.1",
|
942 |
+
"estree-walker": "^3.0.3",
|
943 |
+
"is-reference": "^3.0.1",
|
944 |
+
"locate-character": "^3.0.0",
|
945 |
+
"magic-string": "^0.30.4",
|
946 |
+
"periscopic": "^3.1.0"
|
947 |
+
},
|
948 |
+
"engines": {
|
949 |
+
"node": ">=16"
|
950 |
+
}
|
951 |
+
},
|
952 |
+
"node_modules/svelte-i18n": {
|
953 |
+
"version": "3.7.4",
|
954 |
+
"resolved": "https://registry.npmjs.org/svelte-i18n/-/svelte-i18n-3.7.4.tgz",
|
955 |
+
"integrity": "sha512-yGRCNo+eBT4cPuU7IVsYTYjxB7I2V8qgUZPlHnNctJj5IgbJgV78flsRzpjZ/8iUYZrS49oCt7uxlU3AZv/N5Q==",
|
956 |
+
"dependencies": {
|
957 |
+
"cli-color": "^2.0.3",
|
958 |
+
"deepmerge": "^4.2.2",
|
959 |
+
"esbuild": "^0.19.2",
|
960 |
+
"estree-walker": "^2",
|
961 |
+
"intl-messageformat": "^9.13.0",
|
962 |
+
"sade": "^1.8.1",
|
963 |
+
"tiny-glob": "^0.2.9"
|
964 |
+
},
|
965 |
+
"bin": {
|
966 |
+
"svelte-i18n": "dist/cli.js"
|
967 |
+
},
|
968 |
+
"engines": {
|
969 |
+
"node": ">= 16"
|
970 |
+
},
|
971 |
+
"peerDependencies": {
|
972 |
+
"svelte": "^3 || ^4"
|
973 |
+
}
|
974 |
+
},
|
975 |
+
"node_modules/svelte-i18n/node_modules/estree-walker": {
|
976 |
+
"version": "2.0.2",
|
977 |
+
"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz",
|
978 |
+
"integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w=="
|
979 |
+
},
|
980 |
+
"node_modules/timers-ext": {
|
981 |
+
"version": "0.1.7",
|
982 |
+
"resolved": "https://registry.npmjs.org/timers-ext/-/timers-ext-0.1.7.tgz",
|
983 |
+
"integrity": "sha512-b85NUNzTSdodShTIbky6ZF02e8STtVVfD+fu4aXXShEELpozH+bCpJLYMPZbsABN2wDH7fJpqIoXxJpzbf0NqQ==",
|
984 |
+
"dependencies": {
|
985 |
+
"es5-ext": "~0.10.46",
|
986 |
+
"next-tick": "1"
|
987 |
+
}
|
988 |
+
},
|
989 |
+
"node_modules/tiny-glob": {
|
990 |
+
"version": "0.2.9",
|
991 |
+
"resolved": "https://registry.npmjs.org/tiny-glob/-/tiny-glob-0.2.9.tgz",
|
992 |
+
"integrity": "sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==",
|
993 |
+
"dependencies": {
|
994 |
+
"globalyzer": "0.1.0",
|
995 |
+
"globrex": "^0.1.2"
|
996 |
+
}
|
997 |
+
},
|
998 |
+
"node_modules/tslib": {
|
999 |
+
"version": "2.6.2",
|
1000 |
+
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz",
|
1001 |
+
"integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q=="
|
1002 |
+
},
|
1003 |
+
"node_modules/type": {
|
1004 |
+
"version": "1.2.0",
|
1005 |
+
"resolved": "https://registry.npmjs.org/type/-/type-1.2.0.tgz",
|
1006 |
+
"integrity": "sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg=="
|
1007 |
+
},
|
1008 |
+
"node_modules/upng-js": {
|
1009 |
+
"version": "2.1.0",
|
1010 |
+
"resolved": "https://registry.npmjs.org/upng-js/-/upng-js-2.1.0.tgz",
|
1011 |
+
"integrity": "sha512-d3xzZzpMP64YkjP5pr8gNyvBt7dLk/uGI67EctzDuVp4lCZyVMo0aJO6l/VDlgbInJYDY6cnClLoBp29eKWI6g==",
|
1012 |
+
"dependencies": {
|
1013 |
+
"pako": "^1.0.5"
|
1014 |
+
}
|
1015 |
+
},
|
1016 |
+
"node_modules/upng-js/node_modules/pako": {
|
1017 |
+
"version": "1.0.11",
|
1018 |
+
"resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz",
|
1019 |
+
"integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw=="
|
1020 |
+
},
|
1021 |
+
"node_modules/ws": {
|
1022 |
+
"version": "8.14.2",
|
1023 |
+
"resolved": "https://registry.npmjs.org/ws/-/ws-8.14.2.tgz",
|
1024 |
+
"integrity": "sha512-wEBG1ftX4jcglPxgFCMJmZ2PLtSbJ2Peg6TmpJFTbe9GZYOQCDPdMYu/Tm0/bGZkw8paZnJY45J4K2PZrLYq8g==",
|
1025 |
+
"engines": {
|
1026 |
+
"node": ">=10.0.0"
|
1027 |
+
},
|
1028 |
+
"peerDependencies": {
|
1029 |
+
"bufferutil": "^4.0.1",
|
1030 |
+
"utf-8-validate": ">=5.0.2"
|
1031 |
+
},
|
1032 |
+
"peerDependenciesMeta": {
|
1033 |
+
"bufferutil": {
|
1034 |
+
"optional": true
|
1035 |
+
},
|
1036 |
+
"utf-8-validate": {
|
1037 |
+
"optional": true
|
1038 |
+
}
|
1039 |
+
}
|
1040 |
+
}
|
1041 |
+
},
|
1042 |
+
"dependencies": {
|
1043 |
+
"@ampproject/remapping": {
|
1044 |
+
"version": "2.2.1",
|
1045 |
+
"resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz",
|
1046 |
+
"integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==",
|
1047 |
+
"peer": true,
|
1048 |
+
"requires": {
|
1049 |
+
"@jridgewell/gen-mapping": "^0.3.0",
|
1050 |
+
"@jridgewell/trace-mapping": "^0.3.9"
|
1051 |
+
}
|
1052 |
+
},
|
1053 |
+
"@esbuild/android-arm": {
|
1054 |
+
"version": "0.19.5",
|
1055 |
+
"resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.5.tgz",
|
1056 |
+
"integrity": "sha512-bhvbzWFF3CwMs5tbjf3ObfGqbl/17ict2/uwOSfr3wmxDE6VdS2GqY/FuzIPe0q0bdhj65zQsvqfArI9MY6+AA==",
|
1057 |
+
"optional": true
|
1058 |
+
},
|
1059 |
+
"@esbuild/android-arm64": {
|
1060 |
+
"version": "0.19.5",
|
1061 |
+
"resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.5.tgz",
|
1062 |
+
"integrity": "sha512-5d1OkoJxnYQfmC+Zd8NBFjkhyCNYwM4n9ODrycTFY6Jk1IGiZ+tjVJDDSwDt77nK+tfpGP4T50iMtVi4dEGzhQ==",
|
1063 |
+
"optional": true
|
1064 |
+
},
|
1065 |
+
"@esbuild/android-x64": {
|
1066 |
+
"version": "0.19.5",
|
1067 |
+
"resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.5.tgz",
|
1068 |
+
"integrity": "sha512-9t+28jHGL7uBdkBjL90QFxe7DVA+KGqWlHCF8ChTKyaKO//VLuoBricQCgwhOjA1/qOczsw843Fy4cbs4H3DVA==",
|
1069 |
+
"optional": true
|
1070 |
+
},
|
1071 |
+
"@esbuild/darwin-arm64": {
|
1072 |
+
"version": "0.19.5",
|
1073 |
+
"resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.5.tgz",
|
1074 |
+
"integrity": "sha512-mvXGcKqqIqyKoxq26qEDPHJuBYUA5KizJncKOAf9eJQez+L9O+KfvNFu6nl7SCZ/gFb2QPaRqqmG0doSWlgkqw==",
|
1075 |
+
"optional": true
|
1076 |
+
},
|
1077 |
+
"@esbuild/darwin-x64": {
|
1078 |
+
"version": "0.19.5",
|
1079 |
+
"resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.5.tgz",
|
1080 |
+
"integrity": "sha512-Ly8cn6fGLNet19s0X4unjcniX24I0RqjPv+kurpXabZYSXGM4Pwpmf85WHJN3lAgB8GSth7s5A0r856S+4DyiA==",
|
1081 |
+
"optional": true
|
1082 |
+
},
|
1083 |
+
"@esbuild/freebsd-arm64": {
|
1084 |
+
"version": "0.19.5",
|
1085 |
+
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.5.tgz",
|
1086 |
+
"integrity": "sha512-GGDNnPWTmWE+DMchq1W8Sd0mUkL+APvJg3b11klSGUDvRXh70JqLAO56tubmq1s2cgpVCSKYywEiKBfju8JztQ==",
|
1087 |
+
"optional": true
|
1088 |
+
},
|
1089 |
+
"@esbuild/freebsd-x64": {
|
1090 |
+
"version": "0.19.5",
|
1091 |
+
"resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.5.tgz",
|
1092 |
+
"integrity": "sha512-1CCwDHnSSoA0HNwdfoNY0jLfJpd7ygaLAp5EHFos3VWJCRX9DMwWODf96s9TSse39Br7oOTLryRVmBoFwXbuuQ==",
|
1093 |
+
"optional": true
|
1094 |
+
},
|
1095 |
+
"@esbuild/linux-arm": {
|
1096 |
+
"version": "0.19.5",
|
1097 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.5.tgz",
|
1098 |
+
"integrity": "sha512-lrWXLY/vJBzCPC51QN0HM71uWgIEpGSjSZZADQhq7DKhPcI6NH1IdzjfHkDQws2oNpJKpR13kv7/pFHBbDQDwQ==",
|
1099 |
+
"optional": true
|
1100 |
+
},
|
1101 |
+
"@esbuild/linux-arm64": {
|
1102 |
+
"version": "0.19.5",
|
1103 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.5.tgz",
|
1104 |
+
"integrity": "sha512-o3vYippBmSrjjQUCEEiTZ2l+4yC0pVJD/Dl57WfPwwlvFkrxoSO7rmBZFii6kQB3Wrn/6GwJUPLU5t52eq2meA==",
|
1105 |
+
"optional": true
|
1106 |
+
},
|
1107 |
+
"@esbuild/linux-ia32": {
|
1108 |
+
"version": "0.19.5",
|
1109 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.5.tgz",
|
1110 |
+
"integrity": "sha512-MkjHXS03AXAkNp1KKkhSKPOCYztRtK+KXDNkBa6P78F8Bw0ynknCSClO/ztGszILZtyO/lVKpa7MolbBZ6oJtQ==",
|
1111 |
+
"optional": true
|
1112 |
+
},
|
1113 |
+
"@esbuild/linux-loong64": {
|
1114 |
+
"version": "0.19.5",
|
1115 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.5.tgz",
|
1116 |
+
"integrity": "sha512-42GwZMm5oYOD/JHqHska3Jg0r+XFb/fdZRX+WjADm3nLWLcIsN27YKtqxzQmGNJgu0AyXg4HtcSK9HuOk3v1Dw==",
|
1117 |
+
"optional": true
|
1118 |
+
},
|
1119 |
+
"@esbuild/linux-mips64el": {
|
1120 |
+
"version": "0.19.5",
|
1121 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.5.tgz",
|
1122 |
+
"integrity": "sha512-kcjndCSMitUuPJobWCnwQ9lLjiLZUR3QLQmlgaBfMX23UEa7ZOrtufnRds+6WZtIS9HdTXqND4yH8NLoVVIkcg==",
|
1123 |
+
"optional": true
|
1124 |
+
},
|
1125 |
+
"@esbuild/linux-ppc64": {
|
1126 |
+
"version": "0.19.5",
|
1127 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.5.tgz",
|
1128 |
+
"integrity": "sha512-yJAxJfHVm0ZbsiljbtFFP1BQKLc8kUF6+17tjQ78QjqjAQDnhULWiTA6u0FCDmYT1oOKS9PzZ2z0aBI+Mcyj7Q==",
|
1129 |
+
"optional": true
|
1130 |
+
},
|
1131 |
+
"@esbuild/linux-riscv64": {
|
1132 |
+
"version": "0.19.5",
|
1133 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.5.tgz",
|
1134 |
+
"integrity": "sha512-5u8cIR/t3gaD6ad3wNt1MNRstAZO+aNyBxu2We8X31bA8XUNyamTVQwLDA1SLoPCUehNCymhBhK3Qim1433Zag==",
|
1135 |
+
"optional": true
|
1136 |
+
},
|
1137 |
+
"@esbuild/linux-s390x": {
|
1138 |
+
"version": "0.19.5",
|
1139 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.5.tgz",
|
1140 |
+
"integrity": "sha512-Z6JrMyEw/EmZBD/OFEFpb+gao9xJ59ATsoTNlj39jVBbXqoZm4Xntu6wVmGPB/OATi1uk/DB+yeDPv2E8PqZGw==",
|
1141 |
+
"optional": true
|
1142 |
+
},
|
1143 |
+
"@esbuild/linux-x64": {
|
1144 |
+
"version": "0.19.5",
|
1145 |
+
"resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.5.tgz",
|
1146 |
+
"integrity": "sha512-psagl+2RlK1z8zWZOmVdImisMtrUxvwereIdyJTmtmHahJTKb64pAcqoPlx6CewPdvGvUKe2Jw+0Z/0qhSbG1A==",
|
1147 |
+
"optional": true
|
1148 |
+
},
|
1149 |
+
"@esbuild/netbsd-x64": {
|
1150 |
+
"version": "0.19.5",
|
1151 |
+
"resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.5.tgz",
|
1152 |
+
"integrity": "sha512-kL2l+xScnAy/E/3119OggX8SrWyBEcqAh8aOY1gr4gPvw76la2GlD4Ymf832UCVbmuWeTf2adkZDK+h0Z/fB4g==",
|
1153 |
+
"optional": true
|
1154 |
+
},
|
1155 |
+
"@esbuild/openbsd-x64": {
|
1156 |
+
"version": "0.19.5",
|
1157 |
+
"resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.5.tgz",
|
1158 |
+
"integrity": "sha512-sPOfhtzFufQfTBgRnE1DIJjzsXukKSvZxloZbkJDG383q0awVAq600pc1nfqBcl0ice/WN9p4qLc39WhBShRTA==",
|
1159 |
+
"optional": true
|
1160 |
+
},
|
1161 |
+
"@esbuild/sunos-x64": {
|
1162 |
+
"version": "0.19.5",
|
1163 |
+
"resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.5.tgz",
|
1164 |
+
"integrity": "sha512-dGZkBXaafuKLpDSjKcB0ax0FL36YXCvJNnztjKV+6CO82tTYVDSH2lifitJ29jxRMoUhgkg9a+VA/B03WK5lcg==",
|
1165 |
+
"optional": true
|
1166 |
+
},
|
1167 |
+
"@esbuild/win32-arm64": {
|
1168 |
+
"version": "0.19.5",
|
1169 |
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.5.tgz",
|
1170 |
+
"integrity": "sha512-dWVjD9y03ilhdRQ6Xig1NWNgfLtf2o/STKTS+eZuF90fI2BhbwD6WlaiCGKptlqXlURVB5AUOxUj09LuwKGDTg==",
|
1171 |
+
"optional": true
|
1172 |
+
},
|
1173 |
+
"@esbuild/win32-ia32": {
|
1174 |
+
"version": "0.19.5",
|
1175 |
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.5.tgz",
|
1176 |
+
"integrity": "sha512-4liggWIA4oDgUxqpZwrDhmEfAH4d0iljanDOK7AnVU89T6CzHon/ony8C5LeOdfgx60x5cnQJFZwEydVlYx4iw==",
|
1177 |
+
"optional": true
|
1178 |
+
},
|
1179 |
+
"@esbuild/win32-x64": {
|
1180 |
+
"version": "0.19.5",
|
1181 |
+
"resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.5.tgz",
|
1182 |
+
"integrity": "sha512-czTrygUsB/jlM8qEW5MD8bgYU2Xg14lo6kBDXW6HdxKjh8M5PzETGiSHaz9MtbXBYDloHNUAUW2tMiKW4KM9Mw==",
|
1183 |
+
"optional": true
|
1184 |
+
},
|
1185 |
+
"@formatjs/ecma402-abstract": {
|
1186 |
+
"version": "1.11.4",
|
1187 |
+
"resolved": "https://registry.npmjs.org/@formatjs/ecma402-abstract/-/ecma402-abstract-1.11.4.tgz",
|
1188 |
+
"integrity": "sha512-EBikYFp2JCdIfGEb5G9dyCkTGDmC57KSHhRQOC3aYxoPWVZvfWCDjZwkGYHN7Lis/fmuWl906bnNTJifDQ3sXw==",
|
1189 |
+
"requires": {
|
1190 |
+
"@formatjs/intl-localematcher": "0.2.25",
|
1191 |
+
"tslib": "^2.1.0"
|
1192 |
+
}
|
1193 |
+
},
|
1194 |
+
"@formatjs/fast-memoize": {
|
1195 |
+
"version": "1.2.1",
|
1196 |
+
"resolved": "https://registry.npmjs.org/@formatjs/fast-memoize/-/fast-memoize-1.2.1.tgz",
|
1197 |
+
"integrity": "sha512-Rg0e76nomkz3vF9IPlKeV+Qynok0r7YZjL6syLz4/urSg0IbjPZCB/iYUMNsYA643gh4mgrX3T7KEIFIxJBQeg==",
|
1198 |
+
"requires": {
|
1199 |
+
"tslib": "^2.1.0"
|
1200 |
+
}
|
1201 |
+
},
|
1202 |
+
"@formatjs/icu-messageformat-parser": {
|
1203 |
+
"version": "2.1.0",
|
1204 |
+
"resolved": "https://registry.npmjs.org/@formatjs/icu-messageformat-parser/-/icu-messageformat-parser-2.1.0.tgz",
|
1205 |
+
"integrity": "sha512-Qxv/lmCN6hKpBSss2uQ8IROVnta2r9jd3ymUEIjm2UyIkUCHVcbUVRGL/KS/wv7876edvsPe+hjHVJ4z8YuVaw==",
|
1206 |
+
"requires": {
|
1207 |
+
"@formatjs/ecma402-abstract": "1.11.4",
|
1208 |
+
"@formatjs/icu-skeleton-parser": "1.3.6",
|
1209 |
+
"tslib": "^2.1.0"
|
1210 |
+
}
|
1211 |
+
},
|
1212 |
+
"@formatjs/icu-skeleton-parser": {
|
1213 |
+
"version": "1.3.6",
|
1214 |
+
"resolved": "https://registry.npmjs.org/@formatjs/icu-skeleton-parser/-/icu-skeleton-parser-1.3.6.tgz",
|
1215 |
+
"integrity": "sha512-I96mOxvml/YLrwU2Txnd4klA7V8fRhb6JG/4hm3VMNmeJo1F03IpV2L3wWt7EweqNLES59SZ4d6hVOPCSf80Bg==",
|
1216 |
+
"requires": {
|
1217 |
+
"@formatjs/ecma402-abstract": "1.11.4",
|
1218 |
+
"tslib": "^2.1.0"
|
1219 |
+
}
|
1220 |
+
},
|
1221 |
+
"@formatjs/intl-localematcher": {
|
1222 |
+
"version": "0.2.25",
|
1223 |
+
"resolved": "https://registry.npmjs.org/@formatjs/intl-localematcher/-/intl-localematcher-0.2.25.tgz",
|
1224 |
+
"integrity": "sha512-YmLcX70BxoSopLFdLr1Ds99NdlTI2oWoLbaUW2M406lxOIPzE1KQhRz2fPUkq34xVZQaihCoU29h0KK7An3bhA==",
|
1225 |
+
"requires": {
|
1226 |
+
"tslib": "^2.1.0"
|
1227 |
+
}
|
1228 |
+
},
|
1229 |
+
"@gradio/atoms": {
|
1230 |
+
"version": "0.2.0",
|
1231 |
+
"resolved": "https://registry.npmjs.org/@gradio/atoms/-/atoms-0.2.0.tgz",
|
1232 |
+
"integrity": "sha512-7pTXJTZv+KECtTG9vqeq9j7vz5OKkp+TRvh+O4yMbtkvxFEbhYaaUngkWFX26btGiveD+V4RG4qrP17jqpSdGA==",
|
1233 |
+
"requires": {
|
1234 |
+
"@gradio/icons": "^0.2.0",
|
1235 |
+
"@gradio/utils": "^0.2.0"
|
1236 |
+
}
|
1237 |
+
},
|
1238 |
+
"@gradio/client": {
|
1239 |
+
"version": "0.7.1",
|
1240 |
+
"resolved": "https://registry.npmjs.org/@gradio/client/-/client-0.7.1.tgz",
|
1241 |
+
"integrity": "sha512-capRFmuk0EDI7oIGmRiSGZwcvsXEO9qnwUHBcSmawXPTPnuuZlBOMVERancuO8RO8PtUAozTgBCaLXP9TFhypQ==",
|
1242 |
+
"requires": {
|
1243 |
+
"bufferutil": "^4.0.7",
|
1244 |
+
"semiver": "^1.1.0",
|
1245 |
+
"ws": "^8.13.0"
|
1246 |
+
}
|
1247 |
+
},
|
1248 |
+
"@gradio/column": {
|
1249 |
+
"version": "0.1.0",
|
1250 |
+
"resolved": "https://registry.npmjs.org/@gradio/column/-/column-0.1.0.tgz",
|
1251 |
+
"integrity": "sha512-P24nqqVnMXBaDA1f/zSN5HZRho4PxP8Dq+7VltPHlmxIEiZYik2AJ4J0LeuIha34FDO0guu/16evdrpvGIUAfw=="
|
1252 |
+
},
|
1253 |
+
"@gradio/icons": {
|
1254 |
+
"version": "0.2.0",
|
1255 |
+
"resolved": "https://registry.npmjs.org/@gradio/icons/-/icons-0.2.0.tgz",
|
1256 |
+
"integrity": "sha512-rfCSmOF+ALqBOjTWL1ICasyA8JuO0MPwFrtlVMyAWp7R14AN8YChC/gbz5fZ0kNBiGGEYOOfqpKxyvC95jGGlg=="
|
1257 |
+
},
|
1258 |
+
"@gradio/statustracker": {
|
1259 |
+
"version": "0.3.0",
|
1260 |
+
"resolved": "https://registry.npmjs.org/@gradio/statustracker/-/statustracker-0.3.0.tgz",
|
1261 |
+
"integrity": "sha512-8F3ezqPoGpq7B0EFYGVJkiYOrXCJLMEBcjLTOk2NeM2tXUoOCTieSvJEOstLzM0KkHwY7FvVrc3Dn5iqfIq2lQ==",
|
1262 |
+
"requires": {
|
1263 |
+
"@gradio/atoms": "^0.2.0",
|
1264 |
+
"@gradio/column": "^0.1.0",
|
1265 |
+
"@gradio/icons": "^0.2.0",
|
1266 |
+
"@gradio/utils": "^0.2.0"
|
1267 |
+
}
|
1268 |
+
},
|
1269 |
+
"@gradio/theme": {
|
1270 |
+
"version": "0.2.0",
|
1271 |
+
"resolved": "https://registry.npmjs.org/@gradio/theme/-/theme-0.2.0.tgz",
|
1272 |
+
"integrity": "sha512-33c68Nk7oRXLn08OxPfjcPm7S4tXGOUV1I1bVgzdM2YV5o1QBOS1GEnXPZPu/CEYPePLMB6bsDwffrLEyLGWVQ=="
|
1273 |
+
},
|
1274 |
+
"@gradio/upload": {
|
1275 |
+
"version": "0.3.1",
|
1276 |
+
"resolved": "https://registry.npmjs.org/@gradio/upload/-/upload-0.3.1.tgz",
|
1277 |
+
"integrity": "sha512-CuatwjSxngMFXlro07zjZZ4kTGL5YPjbASp3B5HS7oV/GUMufDgmSwWCcrFfH63H7iavDQc0pB5fxQ6zV/3qpA==",
|
1278 |
+
"requires": {
|
1279 |
+
"@gradio/atoms": "^0.2.0",
|
1280 |
+
"@gradio/client": "^0.7.1",
|
1281 |
+
"@gradio/icons": "^0.2.0",
|
1282 |
+
"@gradio/upload": "^0.3.1",
|
1283 |
+
"@gradio/utils": "^0.2.0"
|
1284 |
+
}
|
1285 |
+
},
|
1286 |
+
"@gradio/utils": {
|
1287 |
+
"version": "0.2.0",
|
1288 |
+
"resolved": "https://registry.npmjs.org/@gradio/utils/-/utils-0.2.0.tgz",
|
1289 |
+
"integrity": "sha512-YkwzXufi6IxQrlMW+1sFo8Yn6F9NLL69ZoBsbo7QEhms0v5L7pmOTw+dfd7M3dwbRP2lgjrb52i1kAIN3n6aqQ==",
|
1290 |
+
"requires": {
|
1291 |
+
"@gradio/theme": "^0.2.0",
|
1292 |
+
"svelte-i18n": "^3.6.0"
|
1293 |
+
}
|
1294 |
+
},
|
1295 |
+
"@jridgewell/gen-mapping": {
|
1296 |
+
"version": "0.3.3",
|
1297 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz",
|
1298 |
+
"integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==",
|
1299 |
+
"peer": true,
|
1300 |
+
"requires": {
|
1301 |
+
"@jridgewell/set-array": "^1.0.1",
|
1302 |
+
"@jridgewell/sourcemap-codec": "^1.4.10",
|
1303 |
+
"@jridgewell/trace-mapping": "^0.3.9"
|
1304 |
+
}
|
1305 |
+
},
|
1306 |
+
"@jridgewell/resolve-uri": {
|
1307 |
+
"version": "3.1.1",
|
1308 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz",
|
1309 |
+
"integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==",
|
1310 |
+
"peer": true
|
1311 |
+
},
|
1312 |
+
"@jridgewell/set-array": {
|
1313 |
+
"version": "1.1.2",
|
1314 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz",
|
1315 |
+
"integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==",
|
1316 |
+
"peer": true
|
1317 |
+
},
|
1318 |
+
"@jridgewell/sourcemap-codec": {
|
1319 |
+
"version": "1.4.15",
|
1320 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz",
|
1321 |
+
"integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==",
|
1322 |
+
"peer": true
|
1323 |
+
},
|
1324 |
+
"@jridgewell/trace-mapping": {
|
1325 |
+
"version": "0.3.20",
|
1326 |
+
"resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.20.tgz",
|
1327 |
+
"integrity": "sha512-R8LcPeWZol2zR8mmH3JeKQ6QRCFb7XgUhV9ZlGhHLGyg4wpPiPZNQOOWhFZhxKw8u//yTbNGI42Bx/3paXEQ+Q==",
|
1328 |
+
"peer": true,
|
1329 |
+
"requires": {
|
1330 |
+
"@jridgewell/resolve-uri": "^3.1.0",
|
1331 |
+
"@jridgewell/sourcemap-codec": "^1.4.14"
|
1332 |
+
}
|
1333 |
+
},
|
1334 |
+
"@types/estree": {
|
1335 |
+
"version": "1.0.4",
|
1336 |
+
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.4.tgz",
|
1337 |
+
"integrity": "sha512-2JwWnHK9H+wUZNorf2Zr6ves96WHoWDJIftkcxPKsS7Djta6Zu519LarhRNljPXkpsZR2ZMwNCPeW7omW07BJw==",
|
1338 |
+
"peer": true
|
1339 |
+
},
|
1340 |
+
"3dmol": {
|
1341 |
+
"version": "2.0.6",
|
1342 |
+
"resolved": "https://registry.npmjs.org/3dmol/-/3dmol-2.0.6.tgz",
|
1343 |
+
"integrity": "sha512-KpfC7mR8fPDVG71Aarc5a7gOkARiW3xE1pJqh4DTmgRQRGT0yJxK1YxWPZOJ6B7IfPA2l5pbXbUo5gbl2TLfqg==",
|
1344 |
+
"requires": {
|
1345 |
+
"iobuffer": "^5.3.1",
|
1346 |
+
"netcdfjs": "^3.0.0",
|
1347 |
+
"pako": "^2.1.0",
|
1348 |
+
"upng-js": "^2.1.0"
|
1349 |
+
}
|
1350 |
+
},
|
1351 |
+
"acorn": {
|
1352 |
+
"version": "8.11.2",
|
1353 |
+
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz",
|
1354 |
+
"integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==",
|
1355 |
+
"peer": true
|
1356 |
+
},
|
1357 |
+
"aria-query": {
|
1358 |
+
"version": "5.3.0",
|
1359 |
+
"resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz",
|
1360 |
+
"integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==",
|
1361 |
+
"peer": true,
|
1362 |
+
"requires": {
|
1363 |
+
"dequal": "^2.0.3"
|
1364 |
+
}
|
1365 |
+
},
|
1366 |
+
"axobject-query": {
|
1367 |
+
"version": "3.2.1",
|
1368 |
+
"resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.2.1.tgz",
|
1369 |
+
"integrity": "sha512-jsyHu61e6N4Vbz/v18DHwWYKK0bSWLqn47eeDSKPB7m8tqMHF9YJ+mhIk2lVteyZrY8tnSj/jHOv4YiTCuCJgg==",
|
1370 |
+
"peer": true,
|
1371 |
+
"requires": {
|
1372 |
+
"dequal": "^2.0.3"
|
1373 |
+
}
|
1374 |
+
},
|
1375 |
+
"bufferutil": {
|
1376 |
+
"version": "4.0.8",
|
1377 |
+
"resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.8.tgz",
|
1378 |
+
"integrity": "sha512-4T53u4PdgsXqKaIctwF8ifXlRTTmEPJ8iEPWFdGZvcf7sbwYo6FKFEX9eNNAnzFZ7EzJAQ3CJeOtCRA4rDp7Pw==",
|
1379 |
+
"requires": {
|
1380 |
+
"node-gyp-build": "^4.3.0"
|
1381 |
+
}
|
1382 |
+
},
|
1383 |
+
"cli-color": {
|
1384 |
+
"version": "2.0.3",
|
1385 |
+
"resolved": "https://registry.npmjs.org/cli-color/-/cli-color-2.0.3.tgz",
|
1386 |
+
"integrity": "sha512-OkoZnxyC4ERN3zLzZaY9Emb7f/MhBOIpePv0Ycok0fJYT+Ouo00UBEIwsVsr0yoow++n5YWlSUgST9GKhNHiRQ==",
|
1387 |
+
"requires": {
|
1388 |
+
"d": "^1.0.1",
|
1389 |
+
"es5-ext": "^0.10.61",
|
1390 |
+
"es6-iterator": "^2.0.3",
|
1391 |
+
"memoizee": "^0.4.15",
|
1392 |
+
"timers-ext": "^0.1.7"
|
1393 |
+
}
|
1394 |
+
},
|
1395 |
+
"code-red": {
|
1396 |
+
"version": "1.0.4",
|
1397 |
+
"resolved": "https://registry.npmjs.org/code-red/-/code-red-1.0.4.tgz",
|
1398 |
+
"integrity": "sha512-7qJWqItLA8/VPVlKJlFXU+NBlo/qyfs39aJcuMT/2ere32ZqvF5OSxgdM5xOfJJ7O429gg2HM47y8v9P+9wrNw==",
|
1399 |
+
"peer": true,
|
1400 |
+
"requires": {
|
1401 |
+
"@jridgewell/sourcemap-codec": "^1.4.15",
|
1402 |
+
"@types/estree": "^1.0.1",
|
1403 |
+
"acorn": "^8.10.0",
|
1404 |
+
"estree-walker": "^3.0.3",
|
1405 |
+
"periscopic": "^3.1.0"
|
1406 |
+
}
|
1407 |
+
},
|
1408 |
+
"css-tree": {
|
1409 |
+
"version": "2.3.1",
|
1410 |
+
"resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.3.1.tgz",
|
1411 |
+
"integrity": "sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==",
|
1412 |
+
"peer": true,
|
1413 |
+
"requires": {
|
1414 |
+
"mdn-data": "2.0.30",
|
1415 |
+
"source-map-js": "^1.0.1"
|
1416 |
+
}
|
1417 |
+
},
|
1418 |
+
"d": {
|
1419 |
+
"version": "1.0.1",
|
1420 |
+
"resolved": "https://registry.npmjs.org/d/-/d-1.0.1.tgz",
|
1421 |
+
"integrity": "sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==",
|
1422 |
+
"requires": {
|
1423 |
+
"es5-ext": "^0.10.50",
|
1424 |
+
"type": "^1.0.1"
|
1425 |
+
}
|
1426 |
+
},
|
1427 |
+
"deepmerge": {
|
1428 |
+
"version": "4.3.1",
|
1429 |
+
"resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz",
|
1430 |
+
"integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A=="
|
1431 |
+
},
|
1432 |
+
"dequal": {
|
1433 |
+
"version": "2.0.3",
|
1434 |
+
"resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",
|
1435 |
+
"integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",
|
1436 |
+
"peer": true
|
1437 |
+
},
|
1438 |
+
"es5-ext": {
|
1439 |
+
"version": "0.10.62",
|
1440 |
+
"resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.62.tgz",
|
1441 |
+
"integrity": "sha512-BHLqn0klhEpnOKSrzn/Xsz2UIW8j+cGmo9JLzr8BiUapV8hPL9+FliFqjwr9ngW7jWdnxv6eO+/LqyhJVqgrjA==",
|
1442 |
+
"requires": {
|
1443 |
+
"es6-iterator": "^2.0.3",
|
1444 |
+
"es6-symbol": "^3.1.3",
|
1445 |
+
"next-tick": "^1.1.0"
|
1446 |
+
}
|
1447 |
+
},
|
1448 |
+
"es6-iterator": {
|
1449 |
+
"version": "2.0.3",
|
1450 |
+
"resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz",
|
1451 |
+
"integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==",
|
1452 |
+
"requires": {
|
1453 |
+
"d": "1",
|
1454 |
+
"es5-ext": "^0.10.35",
|
1455 |
+
"es6-symbol": "^3.1.1"
|
1456 |
+
}
|
1457 |
+
},
|
1458 |
+
"es6-symbol": {
|
1459 |
+
"version": "3.1.3",
|
1460 |
+
"resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.3.tgz",
|
1461 |
+
"integrity": "sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA==",
|
1462 |
+
"requires": {
|
1463 |
+
"d": "^1.0.1",
|
1464 |
+
"ext": "^1.1.2"
|
1465 |
+
}
|
1466 |
+
},
|
1467 |
+
"es6-weak-map": {
|
1468 |
+
"version": "2.0.3",
|
1469 |
+
"resolved": "https://registry.npmjs.org/es6-weak-map/-/es6-weak-map-2.0.3.tgz",
|
1470 |
+
"integrity": "sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==",
|
1471 |
+
"requires": {
|
1472 |
+
"d": "1",
|
1473 |
+
"es5-ext": "^0.10.46",
|
1474 |
+
"es6-iterator": "^2.0.3",
|
1475 |
+
"es6-symbol": "^3.1.1"
|
1476 |
+
}
|
1477 |
+
},
|
1478 |
+
"esbuild": {
|
1479 |
+
"version": "0.19.5",
|
1480 |
+
"resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.5.tgz",
|
1481 |
+
"integrity": "sha512-bUxalY7b1g8vNhQKdB24QDmHeY4V4tw/s6Ak5z+jJX9laP5MoQseTOMemAr0gxssjNcH0MCViG8ONI2kksvfFQ==",
|
1482 |
+
"requires": {
|
1483 |
+
"@esbuild/android-arm": "0.19.5",
|
1484 |
+
"@esbuild/android-arm64": "0.19.5",
|
1485 |
+
"@esbuild/android-x64": "0.19.5",
|
1486 |
+
"@esbuild/darwin-arm64": "0.19.5",
|
1487 |
+
"@esbuild/darwin-x64": "0.19.5",
|
1488 |
+
"@esbuild/freebsd-arm64": "0.19.5",
|
1489 |
+
"@esbuild/freebsd-x64": "0.19.5",
|
1490 |
+
"@esbuild/linux-arm": "0.19.5",
|
1491 |
+
"@esbuild/linux-arm64": "0.19.5",
|
1492 |
+
"@esbuild/linux-ia32": "0.19.5",
|
1493 |
+
"@esbuild/linux-loong64": "0.19.5",
|
1494 |
+
"@esbuild/linux-mips64el": "0.19.5",
|
1495 |
+
"@esbuild/linux-ppc64": "0.19.5",
|
1496 |
+
"@esbuild/linux-riscv64": "0.19.5",
|
1497 |
+
"@esbuild/linux-s390x": "0.19.5",
|
1498 |
+
"@esbuild/linux-x64": "0.19.5",
|
1499 |
+
"@esbuild/netbsd-x64": "0.19.5",
|
1500 |
+
"@esbuild/openbsd-x64": "0.19.5",
|
1501 |
+
"@esbuild/sunos-x64": "0.19.5",
|
1502 |
+
"@esbuild/win32-arm64": "0.19.5",
|
1503 |
+
"@esbuild/win32-ia32": "0.19.5",
|
1504 |
+
"@esbuild/win32-x64": "0.19.5"
|
1505 |
+
}
|
1506 |
+
},
|
1507 |
+
"estree-walker": {
|
1508 |
+
"version": "3.0.3",
|
1509 |
+
"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz",
|
1510 |
+
"integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==",
|
1511 |
+
"peer": true,
|
1512 |
+
"requires": {
|
1513 |
+
"@types/estree": "^1.0.0"
|
1514 |
+
}
|
1515 |
+
},
|
1516 |
+
"event-emitter": {
|
1517 |
+
"version": "0.3.5",
|
1518 |
+
"resolved": "https://registry.npmjs.org/event-emitter/-/event-emitter-0.3.5.tgz",
|
1519 |
+
"integrity": "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==",
|
1520 |
+
"requires": {
|
1521 |
+
"d": "1",
|
1522 |
+
"es5-ext": "~0.10.14"
|
1523 |
+
}
|
1524 |
+
},
|
1525 |
+
"ext": {
|
1526 |
+
"version": "1.7.0",
|
1527 |
+
"resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz",
|
1528 |
+
"integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==",
|
1529 |
+
"requires": {
|
1530 |
+
"type": "^2.7.2"
|
1531 |
+
},
|
1532 |
+
"dependencies": {
|
1533 |
+
"type": {
|
1534 |
+
"version": "2.7.2",
|
1535 |
+
"resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz",
|
1536 |
+
"integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw=="
|
1537 |
+
}
|
1538 |
+
}
|
1539 |
+
},
|
1540 |
+
"globalyzer": {
|
1541 |
+
"version": "0.1.0",
|
1542 |
+
"resolved": "https://registry.npmjs.org/globalyzer/-/globalyzer-0.1.0.tgz",
|
1543 |
+
"integrity": "sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q=="
|
1544 |
+
},
|
1545 |
+
"globrex": {
|
1546 |
+
"version": "0.1.2",
|
1547 |
+
"resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz",
|
1548 |
+
"integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg=="
|
1549 |
+
},
|
1550 |
+
"intl-messageformat": {
|
1551 |
+
"version": "9.13.0",
|
1552 |
+
"resolved": "https://registry.npmjs.org/intl-messageformat/-/intl-messageformat-9.13.0.tgz",
|
1553 |
+
"integrity": "sha512-7sGC7QnSQGa5LZP7bXLDhVDtQOeKGeBFGHF2Y8LVBwYZoQZCgWeKoPGTa5GMG8g/TzDgeXuYJQis7Ggiw2xTOw==",
|
1554 |
+
"requires": {
|
1555 |
+
"@formatjs/ecma402-abstract": "1.11.4",
|
1556 |
+
"@formatjs/fast-memoize": "1.2.1",
|
1557 |
+
"@formatjs/icu-messageformat-parser": "2.1.0",
|
1558 |
+
"tslib": "^2.1.0"
|
1559 |
+
}
|
1560 |
+
},
|
1561 |
+
"iobuffer": {
|
1562 |
+
"version": "5.3.2",
|
1563 |
+
"resolved": "https://registry.npmjs.org/iobuffer/-/iobuffer-5.3.2.tgz",
|
1564 |
+
"integrity": "sha512-kO3CjNfLZ9t+tHxAMd+Xk4v3D/31E91rMs1dHrm7ikEQrlZ8mLDbQ4z3tZfDM48zOkReas2jx8MWSAmN9+c8Fw=="
|
1565 |
+
},
|
1566 |
+
"is-promise": {
|
1567 |
+
"version": "2.2.2",
|
1568 |
+
"resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.2.2.tgz",
|
1569 |
+
"integrity": "sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ=="
|
1570 |
+
},
|
1571 |
+
"is-reference": {
|
1572 |
+
"version": "3.0.2",
|
1573 |
+
"resolved": "https://registry.npmjs.org/is-reference/-/is-reference-3.0.2.tgz",
|
1574 |
+
"integrity": "sha512-v3rht/LgVcsdZa3O2Nqs+NMowLOxeOm7Ay9+/ARQ2F+qEoANRcqrjAZKGN0v8ymUetZGgkp26LTnGT7H0Qo9Pg==",
|
1575 |
+
"peer": true,
|
1576 |
+
"requires": {
|
1577 |
+
"@types/estree": "*"
|
1578 |
+
}
|
1579 |
+
},
|
1580 |
+
"locate-character": {
|
1581 |
+
"version": "3.0.0",
|
1582 |
+
"resolved": "https://registry.npmjs.org/locate-character/-/locate-character-3.0.0.tgz",
|
1583 |
+
"integrity": "sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==",
|
1584 |
+
"peer": true
|
1585 |
+
},
|
1586 |
+
"lru-queue": {
|
1587 |
+
"version": "0.1.0",
|
1588 |
+
"resolved": "https://registry.npmjs.org/lru-queue/-/lru-queue-0.1.0.tgz",
|
1589 |
+
"integrity": "sha512-BpdYkt9EvGl8OfWHDQPISVpcl5xZthb+XPsbELj5AQXxIC8IriDZIQYjBJPEm5rS420sjZ0TLEzRcq5KdBhYrQ==",
|
1590 |
+
"requires": {
|
1591 |
+
"es5-ext": "~0.10.2"
|
1592 |
+
}
|
1593 |
+
},
|
1594 |
+
"magic-string": {
|
1595 |
+
"version": "0.30.5",
|
1596 |
+
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.5.tgz",
|
1597 |
+
"integrity": "sha512-7xlpfBaQaP/T6Vh8MO/EqXSW5En6INHEvEXQiuff7Gku0PWjU3uf6w/j9o7O+SpB5fOAkrI5HeoNgwjEO0pFsA==",
|
1598 |
+
"peer": true,
|
1599 |
+
"requires": {
|
1600 |
+
"@jridgewell/sourcemap-codec": "^1.4.15"
|
1601 |
+
}
|
1602 |
+
},
|
1603 |
+
"mdn-data": {
|
1604 |
+
"version": "2.0.30",
|
1605 |
+
"resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz",
|
1606 |
+
"integrity": "sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==",
|
1607 |
+
"peer": true
|
1608 |
+
},
|
1609 |
+
"memoizee": {
|
1610 |
+
"version": "0.4.15",
|
1611 |
+
"resolved": "https://registry.npmjs.org/memoizee/-/memoizee-0.4.15.tgz",
|
1612 |
+
"integrity": "sha512-UBWmJpLZd5STPm7PMUlOw/TSy972M+z8gcyQ5veOnSDRREz/0bmpyTfKt3/51DhEBqCZQn1udM/5flcSPYhkdQ==",
|
1613 |
+
"requires": {
|
1614 |
+
"d": "^1.0.1",
|
1615 |
+
"es5-ext": "^0.10.53",
|
1616 |
+
"es6-weak-map": "^2.0.3",
|
1617 |
+
"event-emitter": "^0.3.5",
|
1618 |
+
"is-promise": "^2.2.2",
|
1619 |
+
"lru-queue": "^0.1.0",
|
1620 |
+
"next-tick": "^1.1.0",
|
1621 |
+
"timers-ext": "^0.1.7"
|
1622 |
+
}
|
1623 |
+
},
|
1624 |
+
"mri": {
|
1625 |
+
"version": "1.2.0",
|
1626 |
+
"resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz",
|
1627 |
+
"integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA=="
|
1628 |
+
},
|
1629 |
+
"netcdfjs": {
|
1630 |
+
"version": "3.0.0",
|
1631 |
+
"resolved": "https://registry.npmjs.org/netcdfjs/-/netcdfjs-3.0.0.tgz",
|
1632 |
+
"integrity": "sha512-LOvT8KkC308qtpUkcBPiCMBtii7ZQCN6LxcVheWgyUeZ6DQWcpSRFV9dcVXLj/2eHZ/bre9tV5HTH4Sf93vrFw==",
|
1633 |
+
"requires": {
|
1634 |
+
"iobuffer": "^5.3.2"
|
1635 |
+
}
|
1636 |
+
},
|
1637 |
+
"next-tick": {
|
1638 |
+
"version": "1.1.0",
|
1639 |
+
"resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz",
|
1640 |
+
"integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ=="
|
1641 |
+
},
|
1642 |
+
"node-gyp-build": {
|
1643 |
+
"version": "4.6.1",
|
1644 |
+
"resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.6.1.tgz",
|
1645 |
+
"integrity": "sha512-24vnklJmyRS8ViBNI8KbtK/r/DmXQMRiOMXTNz2nrTnAYUwjmEEbnnpB/+kt+yWRv73bPsSPRFddrcIbAxSiMQ=="
|
1646 |
+
},
|
1647 |
+
"pako": {
|
1648 |
+
"version": "2.1.0",
|
1649 |
+
"resolved": "https://registry.npmjs.org/pako/-/pako-2.1.0.tgz",
|
1650 |
+
"integrity": "sha512-w+eufiZ1WuJYgPXbV/PO3NCMEc3xqylkKHzp8bxp1uW4qaSNQUkwmLLEc3kKsfz8lpV1F8Ht3U1Cm+9Srog2ug=="
|
1651 |
+
},
|
1652 |
+
"periscopic": {
|
1653 |
+
"version": "3.1.0",
|
1654 |
+
"resolved": "https://registry.npmjs.org/periscopic/-/periscopic-3.1.0.tgz",
|
1655 |
+
"integrity": "sha512-vKiQ8RRtkl9P+r/+oefh25C3fhybptkHKCZSPlcXiJux2tJF55GnEj3BVn4A5gKfq9NWWXXrxkHBwVPUfH0opw==",
|
1656 |
+
"peer": true,
|
1657 |
+
"requires": {
|
1658 |
+
"@types/estree": "^1.0.0",
|
1659 |
+
"estree-walker": "^3.0.0",
|
1660 |
+
"is-reference": "^3.0.0"
|
1661 |
+
}
|
1662 |
+
},
|
1663 |
+
"sade": {
|
1664 |
+
"version": "1.8.1",
|
1665 |
+
"resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz",
|
1666 |
+
"integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==",
|
1667 |
+
"requires": {
|
1668 |
+
"mri": "^1.1.0"
|
1669 |
+
}
|
1670 |
+
},
|
1671 |
+
"semiver": {
|
1672 |
+
"version": "1.1.0",
|
1673 |
+
"resolved": "https://registry.npmjs.org/semiver/-/semiver-1.1.0.tgz",
|
1674 |
+
"integrity": "sha512-QNI2ChmuioGC1/xjyYwyZYADILWyW6AmS1UH6gDj/SFUUUS4MBAWs/7mxnkRPc/F4iHezDP+O8t0dO8WHiEOdg=="
|
1675 |
+
},
|
1676 |
+
"source-map-js": {
|
1677 |
+
"version": "1.0.2",
|
1678 |
+
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz",
|
1679 |
+
"integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==",
|
1680 |
+
"peer": true
|
1681 |
+
},
|
1682 |
+
"svelte": {
|
1683 |
+
"version": "4.2.2",
|
1684 |
+
"resolved": "https://registry.npmjs.org/svelte/-/svelte-4.2.2.tgz",
|
1685 |
+
"integrity": "sha512-My2tytF2e2NnHSpn2M7/3VdXT4JdTglYVUuSuK/mXL2XtulPYbeBfl8Dm1QiaKRn0zoULRnL+EtfZHHP0k4H3A==",
|
1686 |
+
"peer": true,
|
1687 |
+
"requires": {
|
1688 |
+
"@ampproject/remapping": "^2.2.1",
|
1689 |
+
"@jridgewell/sourcemap-codec": "^1.4.15",
|
1690 |
+
"@jridgewell/trace-mapping": "^0.3.18",
|
1691 |
+
"acorn": "^8.9.0",
|
1692 |
+
"aria-query": "^5.3.0",
|
1693 |
+
"axobject-query": "^3.2.1",
|
1694 |
+
"code-red": "^1.0.3",
|
1695 |
+
"css-tree": "^2.3.1",
|
1696 |
+
"estree-walker": "^3.0.3",
|
1697 |
+
"is-reference": "^3.0.1",
|
1698 |
+
"locate-character": "^3.0.0",
|
1699 |
+
"magic-string": "^0.30.4",
|
1700 |
+
"periscopic": "^3.1.0"
|
1701 |
+
}
|
1702 |
+
},
|
1703 |
+
"svelte-i18n": {
|
1704 |
+
"version": "3.7.4",
|
1705 |
+
"resolved": "https://registry.npmjs.org/svelte-i18n/-/svelte-i18n-3.7.4.tgz",
|
1706 |
+
"integrity": "sha512-yGRCNo+eBT4cPuU7IVsYTYjxB7I2V8qgUZPlHnNctJj5IgbJgV78flsRzpjZ/8iUYZrS49oCt7uxlU3AZv/N5Q==",
|
1707 |
+
"requires": {
|
1708 |
+
"cli-color": "^2.0.3",
|
1709 |
+
"deepmerge": "^4.2.2",
|
1710 |
+
"esbuild": "^0.19.2",
|
1711 |
+
"estree-walker": "^2",
|
1712 |
+
"intl-messageformat": "^9.13.0",
|
1713 |
+
"sade": "^1.8.1",
|
1714 |
+
"tiny-glob": "^0.2.9"
|
1715 |
+
},
|
1716 |
+
"dependencies": {
|
1717 |
+
"estree-walker": {
|
1718 |
+
"version": "2.0.2",
|
1719 |
+
"resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz",
|
1720 |
+
"integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w=="
|
1721 |
+
}
|
1722 |
+
}
|
1723 |
+
},
|
1724 |
+
"timers-ext": {
|
1725 |
+
"version": "0.1.7",
|
1726 |
+
"resolved": "https://registry.npmjs.org/timers-ext/-/timers-ext-0.1.7.tgz",
|
1727 |
+
"integrity": "sha512-b85NUNzTSdodShTIbky6ZF02e8STtVVfD+fu4aXXShEELpozH+bCpJLYMPZbsABN2wDH7fJpqIoXxJpzbf0NqQ==",
|
1728 |
+
"requires": {
|
1729 |
+
"es5-ext": "~0.10.46",
|
1730 |
+
"next-tick": "1"
|
1731 |
+
}
|
1732 |
+
},
|
1733 |
+
"tiny-glob": {
|
1734 |
+
"version": "0.2.9",
|
1735 |
+
"resolved": "https://registry.npmjs.org/tiny-glob/-/tiny-glob-0.2.9.tgz",
|
1736 |
+
"integrity": "sha512-g/55ssRPUjShh+xkfx9UPDXqhckHEsHr4Vd9zX55oSdGZc/MD0m3sferOkwWtp98bv+kcVfEHtRJgBVJzelrzg==",
|
1737 |
+
"requires": {
|
1738 |
+
"globalyzer": "0.1.0",
|
1739 |
+
"globrex": "^0.1.2"
|
1740 |
+
}
|
1741 |
+
},
|
1742 |
+
"tslib": {
|
1743 |
+
"version": "2.6.2",
|
1744 |
+
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz",
|
1745 |
+
"integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q=="
|
1746 |
+
},
|
1747 |
+
"type": {
|
1748 |
+
"version": "1.2.0",
|
1749 |
+
"resolved": "https://registry.npmjs.org/type/-/type-1.2.0.tgz",
|
1750 |
+
"integrity": "sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg=="
|
1751 |
+
},
|
1752 |
+
"upng-js": {
|
1753 |
+
"version": "2.1.0",
|
1754 |
+
"resolved": "https://registry.npmjs.org/upng-js/-/upng-js-2.1.0.tgz",
|
1755 |
+
"integrity": "sha512-d3xzZzpMP64YkjP5pr8gNyvBt7dLk/uGI67EctzDuVp4lCZyVMo0aJO6l/VDlgbInJYDY6cnClLoBp29eKWI6g==",
|
1756 |
+
"requires": {
|
1757 |
+
"pako": "^1.0.5"
|
1758 |
+
},
|
1759 |
+
"dependencies": {
|
1760 |
+
"pako": {
|
1761 |
+
"version": "1.0.11",
|
1762 |
+
"resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz",
|
1763 |
+
"integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw=="
|
1764 |
+
}
|
1765 |
+
}
|
1766 |
+
},
|
1767 |
+
"ws": {
|
1768 |
+
"version": "8.14.2",
|
1769 |
+
"resolved": "https://registry.npmjs.org/ws/-/ws-8.14.2.tgz",
|
1770 |
+
"integrity": "sha512-wEBG1ftX4jcglPxgFCMJmZ2PLtSbJ2Peg6TmpJFTbe9GZYOQCDPdMYu/Tm0/bGZkw8paZnJY45J4K2PZrLYq8g==",
|
1771 |
+
"requires": {}
|
1772 |
+
}
|
1773 |
+
}
|
1774 |
+
}
|
src/frontend/package.json
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gradio_molecule3d",
|
3 |
+
"version": "0.2.1",
|
4 |
+
"description": "Gradio UI packages",
|
5 |
+
"type": "module",
|
6 |
+
"author": "",
|
7 |
+
"license": "ISC",
|
8 |
+
"private": false,
|
9 |
+
"dependencies": {
|
10 |
+
"@gradio/atoms": "0.2.0",
|
11 |
+
"@gradio/client": "0.7.1",
|
12 |
+
"@gradio/icons": "0.2.0",
|
13 |
+
"@gradio/statustracker": "0.3.0",
|
14 |
+
"@gradio/upload": "0.3.1",
|
15 |
+
"@gradio/utils": "0.2.0",
|
16 |
+
"3dmol": "^2.0.6"
|
17 |
+
},
|
18 |
+
"main": "./Index.svelte",
|
19 |
+
"main_changeset": true,
|
20 |
+
"exports": {
|
21 |
+
".": "./Index.svelte",
|
22 |
+
"./example": "./Example.svelte",
|
23 |
+
"./package.json": "./package.json"
|
24 |
+
}
|
25 |
+
}
|
src/frontend/shared/File.svelte
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script lang="ts">
|
2 |
+
import type { FileData } from "@gradio/client";
|
3 |
+
import { BlockLabel, Empty } from "@gradio/atoms";
|
4 |
+
import { File } from "@gradio/icons";
|
5 |
+
import FilePreview from "./FilePreview.svelte";
|
6 |
+
|
7 |
+
import MolecularViewer from "./MolecularViewer.svelte";
|
8 |
+
|
9 |
+
import type { I18nFormatter } from "@gradio/utils";
|
10 |
+
|
11 |
+
export let value: FileData | FileData[] | null = null;
|
12 |
+
export let label: string;
|
13 |
+
export let show_label = true;
|
14 |
+
export let selectable = false;
|
15 |
+
export let height: number | undefined = undefined;
|
16 |
+
export let i18n: I18nFormatter;
|
17 |
+
export let config = {};
|
18 |
+
export let confidenceLabel = "";
|
19 |
+
export let representations = [];
|
20 |
+
export let moldata = null;
|
21 |
+
export let errors = [];
|
22 |
+
</script>
|
23 |
+
|
24 |
+
<BlockLabel
|
25 |
+
{show_label}
|
26 |
+
float={value === null}
|
27 |
+
Icon={File}
|
28 |
+
label={label || "File"}
|
29 |
+
/>
|
30 |
+
|
31 |
+
{#if value}
|
32 |
+
<FilePreview {i18n} {selectable} on:select {value} {height} />
|
33 |
+
|
34 |
+
<!-- {JSON.stringify(moldata)} -->
|
35 |
+
{#if moldata != null}
|
36 |
+
<MolecularViewer {moldata} {config} {confidenceLabel} {representations} />
|
37 |
+
{/if}
|
38 |
+
{:else}
|
39 |
+
<Empty unpadded_box={true} size="large"><File /></Empty>
|
40 |
+
{/if}
|
src/frontend/shared/FilePreview.svelte
ADDED
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script lang="ts">
|
2 |
+
import type { FileData } from "@gradio/client";
|
3 |
+
import { display_file_name, display_file_size } from "./utils";
|
4 |
+
import { createEventDispatcher } from "svelte";
|
5 |
+
import type { I18nFormatter, SelectData } from "@gradio/utils";
|
6 |
+
|
7 |
+
const dispatch = createEventDispatcher<{
|
8 |
+
select: SelectData;
|
9 |
+
}>();
|
10 |
+
export let value: FileData | FileData[];
|
11 |
+
export let selectable = false;
|
12 |
+
export let height: number | undefined = undefined;
|
13 |
+
export let i18n: I18nFormatter;
|
14 |
+
</script>
|
15 |
+
|
16 |
+
<div
|
17 |
+
class="file-preview-holder"
|
18 |
+
style="max-height: {typeof height === undefined ? 'auto' : height + 'px'};"
|
19 |
+
>
|
20 |
+
<table class="file-preview">
|
21 |
+
<tbody>
|
22 |
+
{#each Array.isArray(value) ? value : [value] as file, i}
|
23 |
+
<tr
|
24 |
+
class="file"
|
25 |
+
class:selectable
|
26 |
+
on:click={() =>
|
27 |
+
dispatch("select", {
|
28 |
+
value: file.orig_name,
|
29 |
+
index: i
|
30 |
+
})}
|
31 |
+
>
|
32 |
+
<td>
|
33 |
+
{display_file_name(file)}
|
34 |
+
</td>
|
35 |
+
|
36 |
+
<td class="download">
|
37 |
+
{#if file.url}
|
38 |
+
<a
|
39 |
+
href={file.url}
|
40 |
+
target="_blank"
|
41 |
+
download={window.__is_colab__ ? null : file.orig_name}
|
42 |
+
>
|
43 |
+
{@html display_file_size(file)} ⇣
|
44 |
+
</a>
|
45 |
+
{:else}
|
46 |
+
{i18n("file.uploading")}
|
47 |
+
{/if}
|
48 |
+
</td>
|
49 |
+
</tr>
|
50 |
+
{/each}
|
51 |
+
</tbody>
|
52 |
+
</table>
|
53 |
+
</div>
|
54 |
+
|
55 |
+
<style>
|
56 |
+
td {
|
57 |
+
width: 45%;
|
58 |
+
}
|
59 |
+
|
60 |
+
td:last-child {
|
61 |
+
width: 10%;
|
62 |
+
text-align: right;
|
63 |
+
}
|
64 |
+
.file-preview-holder {
|
65 |
+
overflow-x: auto;
|
66 |
+
overflow-y: auto;
|
67 |
+
}
|
68 |
+
.file-preview {
|
69 |
+
width: var(--size-full);
|
70 |
+
max-height: var(--size-60);
|
71 |
+
overflow-y: auto;
|
72 |
+
margin-top: var(--size-1);
|
73 |
+
color: var(--body-text-color);
|
74 |
+
}
|
75 |
+
.file {
|
76 |
+
width: var(--size-full);
|
77 |
+
}
|
78 |
+
|
79 |
+
.file > * {
|
80 |
+
padding: var(--size-1) var(--size-2-5);
|
81 |
+
}
|
82 |
+
|
83 |
+
.download:hover {
|
84 |
+
text-decoration: underline;
|
85 |
+
}
|
86 |
+
.download > a {
|
87 |
+
color: var(--link-text-color);
|
88 |
+
}
|
89 |
+
|
90 |
+
.download > a:hover {
|
91 |
+
color: var(--link-text-color-hover);
|
92 |
+
}
|
93 |
+
.download > a:visited {
|
94 |
+
color: var(--link-text-color-visited);
|
95 |
+
}
|
96 |
+
.download > a:active {
|
97 |
+
color: var(--link-text-color-active);
|
98 |
+
}
|
99 |
+
.selectable {
|
100 |
+
cursor: pointer;
|
101 |
+
}
|
102 |
+
|
103 |
+
tbody > tr:nth-child(even) {
|
104 |
+
background: var(--block-background-fill);
|
105 |
+
}
|
106 |
+
|
107 |
+
tbody > tr:nth-child(odd) {
|
108 |
+
background: var(--table-odd-background-fill);
|
109 |
+
}
|
110 |
+
</style>
|
src/frontend/shared/FileRetrieval.svelte
ADDED
@@ -0,0 +1,236 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script lang="ts">
|
2 |
+
import { createEventDispatcher, tick, getContext } from "svelte";
|
3 |
+
|
4 |
+
// import { upload_files as default_upload_files } from "@gradio/client";
|
5 |
+
|
6 |
+
// import { blobToBase64, normalise_file } from "@gradio/upload";
|
7 |
+
import {
|
8 |
+
upload,
|
9 |
+
prepare_files,
|
10 |
+
normalise_file,
|
11 |
+
type FileData,
|
12 |
+
} from "@gradio/client";
|
13 |
+
|
14 |
+
import LoadingSpinner from "./loading_spinner.svelte";
|
15 |
+
let uploaded_files;
|
16 |
+
|
17 |
+
const dispatch = createEventDispatcher();
|
18 |
+
|
19 |
+
export let root: string;
|
20 |
+
|
21 |
+
const upload_fn = getContext<typeof upload_files>("upload_files");
|
22 |
+
|
23 |
+
async function handle_upload(file_data: FileData[]): Promise<void> {
|
24 |
+
await tick();
|
25 |
+
uploaded_files = await upload(file_data, root, upload_fn);
|
26 |
+
uploaded_files[0].orig_name = file_data.name;
|
27 |
+
uploaded_files[0].size = file_data.size;
|
28 |
+
dispatch("load", uploaded_files);
|
29 |
+
}
|
30 |
+
|
31 |
+
// async function handle_upload(file_data: FileData[]): Promise<void> {
|
32 |
+
// await tick();
|
33 |
+
// let files = (Array.isArray(file_data) ? file_data : [file_data]).map(
|
34 |
+
// (file_data) => file_data.blob!
|
35 |
+
// );
|
36 |
+
|
37 |
+
// await upload_files(root, files).then(async (response) => {
|
38 |
+
// if (response.error) {
|
39 |
+
// (Array.isArray(file_data) ? file_data : [file_data]).forEach(
|
40 |
+
// async (file_data, i) => {
|
41 |
+
// file_data.data = await blobToBase64(file_data.blob!);
|
42 |
+
// file_data.blob = undefined;
|
43 |
+
// }
|
44 |
+
// );
|
45 |
+
// } else {
|
46 |
+
// (Array.isArray(file_data) ? file_data : [file_data]).forEach((f, i) => {
|
47 |
+
// if (response.files) {
|
48 |
+
// f.orig_name = f.name;
|
49 |
+
// f.name = response.files[i];
|
50 |
+
// f.is_file = true;
|
51 |
+
// f.blob = undefined;
|
52 |
+
// normalise_file(f, root, null);
|
53 |
+
// }
|
54 |
+
// });
|
55 |
+
// }
|
56 |
+
// });
|
57 |
+
// console.log(file_data);
|
58 |
+
// dispatch("load", file_data);
|
59 |
+
// }
|
60 |
+
|
61 |
+
let loading = false;
|
62 |
+
|
63 |
+
async function fetchFromDB(identifier, database): Promise<void> {
|
64 |
+
let dbs = {
|
65 |
+
pdb_assym: {
|
66 |
+
url: "https://files.rcsb.org/view/",
|
67 |
+
ext: ".pdb",
|
68 |
+
},
|
69 |
+
pdb_bioass: {
|
70 |
+
url: "https://files.rcsb.org/view/",
|
71 |
+
ext: ".pdb1",
|
72 |
+
},
|
73 |
+
af: {
|
74 |
+
url: "https://alphafold.ebi.ac.uk/files/AF-",
|
75 |
+
ext: "-F1-model_v4.pdb",
|
76 |
+
},
|
77 |
+
esm: {
|
78 |
+
url: "https://api.esmatlas.com/fetchPredictedStructure/",
|
79 |
+
ext: ".pdb",
|
80 |
+
},
|
81 |
+
// pubchem: "pubchem",
|
82 |
+
// text: "text",
|
83 |
+
};
|
84 |
+
let url = dbs[database]["url"];
|
85 |
+
let ext = dbs[database]["ext"];
|
86 |
+
// load the file and save blob
|
87 |
+
|
88 |
+
// emulate file upload by fetching from the db and triggering upload
|
89 |
+
// check if response status is 200, then return blob
|
90 |
+
|
91 |
+
loading = true;
|
92 |
+
let file = null;
|
93 |
+
try {
|
94 |
+
file = await fetch(url + identifier + ext).then((r) => {
|
95 |
+
loading = false;
|
96 |
+
if (r.status == 200) {
|
97 |
+
let b = r.blob();
|
98 |
+
b.name = identifier + ext;
|
99 |
+
return b;
|
100 |
+
} else {
|
101 |
+
dispatch("notfound");
|
102 |
+
}
|
103 |
+
});
|
104 |
+
} catch (error) {
|
105 |
+
loading = false;
|
106 |
+
dispatch("notfound");
|
107 |
+
}
|
108 |
+
|
109 |
+
let file_data = {
|
110 |
+
name: identifier + ".pdb",
|
111 |
+
size: file.size,
|
112 |
+
data: "",
|
113 |
+
blob: file,
|
114 |
+
};
|
115 |
+
|
116 |
+
await handle_upload(file_data);
|
117 |
+
}
|
118 |
+
|
119 |
+
let selectedValue = "pdb_assym";
|
120 |
+
let placeholder = "";
|
121 |
+
let textInput = "";
|
122 |
+
function handleSelect(event) {
|
123 |
+
selectedValue = event.target.value;
|
124 |
+
}
|
125 |
+
let placeholders = {
|
126 |
+
pdb_assym: "Enter PDB identifier",
|
127 |
+
pdb_bioass: "Enter PDB identifier",
|
128 |
+
af: "Enter UniProt identifier",
|
129 |
+
esm: "Enter MGnify protein identifier",
|
130 |
+
// pubchem: "Enter PubChem identifier",
|
131 |
+
// text: "Enter molecule in PDB or mol2 format",
|
132 |
+
};
|
133 |
+
$: placeholder = placeholders[selectedValue];
|
134 |
+
|
135 |
+
function isEnterPressed(event) {
|
136 |
+
if (event.key === "Enter") {
|
137 |
+
fetchFromDB(textInput, selectedValue);
|
138 |
+
}
|
139 |
+
}
|
140 |
+
</script>
|
141 |
+
|
142 |
+
<div class="flex mt-2">
|
143 |
+
<div class="flex input wfull">
|
144 |
+
<input
|
145 |
+
type="text"
|
146 |
+
{placeholder}
|
147 |
+
class="wfull inp"
|
148 |
+
bind:value={textInput}
|
149 |
+
on:keydown={isEnterPressed}
|
150 |
+
/>
|
151 |
+
<select name="" id="" class="select" on:change={handleSelect}>
|
152 |
+
<option value="pdb_assym">PDB Assym. Unit</option>
|
153 |
+
<option value="pdb_bioass">PDB BioAssembly</option>
|
154 |
+
<option value="af">AlphaFold DB</option>
|
155 |
+
<option value="esm">ESMFold DB</option>
|
156 |
+
<!-- <option value="pubchem">Pubchem</option>
|
157 |
+
<option value="text">Text input</option> -->
|
158 |
+
</select>
|
159 |
+
</div>
|
160 |
+
<button
|
161 |
+
class="btn text-center"
|
162 |
+
on:click={() => fetchFromDB(textInput, selectedValue)}
|
163 |
+
>
|
164 |
+
{#if loading}
|
165 |
+
<LoadingSpinner />
|
166 |
+
{:else}
|
167 |
+
<span>Fetch</span>
|
168 |
+
{/if}
|
169 |
+
</button>
|
170 |
+
</div>
|
171 |
+
<span class="or py">- or -</span>
|
172 |
+
|
173 |
+
<style>
|
174 |
+
.py {
|
175 |
+
padding: 10px 0;
|
176 |
+
}
|
177 |
+
.btn {
|
178 |
+
margin: 0 5px;
|
179 |
+
padding: 3px 15px;
|
180 |
+
border: var(--button-border-width) solid
|
181 |
+
var(--button-secondary-border-color);
|
182 |
+
background: var(--button-secondary-background-fill);
|
183 |
+
color: var(--button-secondary-text-color);
|
184 |
+
border-radius: var(--button-large-radius);
|
185 |
+
padding: var(--button-large-padding);
|
186 |
+
font-weight: var(--button-large-text-weight);
|
187 |
+
font-size: var(--button-large-text-size);
|
188 |
+
cursor: pointer;
|
189 |
+
}
|
190 |
+
.btn:hover {
|
191 |
+
border-color: var(--button-secondary-border-color-hover);
|
192 |
+
background: var(--button-secondary-background-fill-hover);
|
193 |
+
color: var(--button-secondary-text-color-hover);
|
194 |
+
box-shadow: var(--button-shadow-hover);
|
195 |
+
}
|
196 |
+
.or {
|
197 |
+
color: var(--body-text-color-subdued);
|
198 |
+
text-align: center;
|
199 |
+
display: block;
|
200 |
+
}
|
201 |
+
.wfull {
|
202 |
+
width: 100%;
|
203 |
+
}
|
204 |
+
.mt-2 {
|
205 |
+
margin-top: 2rem;
|
206 |
+
}
|
207 |
+
|
208 |
+
.input {
|
209 |
+
box-shadow: var(--input-shadow);
|
210 |
+
background: var(--input-background-fill);
|
211 |
+
border: var(--input-border-width) solid var(--input-border-color);
|
212 |
+
border-radius: var(--input-radius);
|
213 |
+
margin: 0 5px;
|
214 |
+
}
|
215 |
+
.select {
|
216 |
+
outline: none;
|
217 |
+
border: none;
|
218 |
+
}
|
219 |
+
.flex {
|
220 |
+
display: flex;
|
221 |
+
justify-content: space-between;
|
222 |
+
}
|
223 |
+
.inp {
|
224 |
+
width: 100%;
|
225 |
+
border: 0 #fff !important;
|
226 |
+
outline: none !important;
|
227 |
+
}
|
228 |
+
.inp:focus,
|
229 |
+
.inp:hover {
|
230 |
+
border: 0 !important;
|
231 |
+
outline: none !important;
|
232 |
+
}
|
233 |
+
.text-center {
|
234 |
+
text-align: center;
|
235 |
+
}
|
236 |
+
</style>
|
src/frontend/shared/FileUpload.svelte
ADDED
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script lang="ts">
|
2 |
+
import { createEventDispatcher, tick } from "svelte";
|
3 |
+
import { Upload, ModifyUpload } from "@gradio/upload";
|
4 |
+
import type { FileData } from "@gradio/client";
|
5 |
+
import { BlockLabel } from "@gradio/atoms";
|
6 |
+
import { File } from "@gradio/icons";
|
7 |
+
import FileRetrieval from "./FileRetrieval.svelte";
|
8 |
+
|
9 |
+
import FilePreview from "./FilePreview.svelte";
|
10 |
+
import type { I18nFormatter } from "@gradio/utils";
|
11 |
+
import MolecularViewer from "./MolecularViewer.svelte";
|
12 |
+
|
13 |
+
export let value: null | FileData | FileData[];
|
14 |
+
|
15 |
+
export let label: string;
|
16 |
+
export let show_label = true;
|
17 |
+
export let file_count = "single";
|
18 |
+
export let file_types: string[] | null = null;
|
19 |
+
export let selectable = false;
|
20 |
+
export let root: string;
|
21 |
+
export let height: number | undefined = undefined;
|
22 |
+
export let i18n: I18nFormatter;
|
23 |
+
|
24 |
+
export let config = {};
|
25 |
+
export let confidenceLabel = "";
|
26 |
+
export let representations = [];
|
27 |
+
export let moldata = null;
|
28 |
+
|
29 |
+
async function handle_upload({
|
30 |
+
detail,
|
31 |
+
}: CustomEvent<FileData | FileData[]>): Promise<void> {
|
32 |
+
value = detail;
|
33 |
+
await tick();
|
34 |
+
dispatch("change", value);
|
35 |
+
dispatch("upload", detail);
|
36 |
+
}
|
37 |
+
|
38 |
+
function handle_clear(): void {
|
39 |
+
value = null;
|
40 |
+
dispatch("change", null);
|
41 |
+
dispatch("clear");
|
42 |
+
}
|
43 |
+
|
44 |
+
const dispatch = createEventDispatcher<{
|
45 |
+
change: FileData[] | FileData | null;
|
46 |
+
clear: undefined;
|
47 |
+
drag: boolean;
|
48 |
+
upload: FileData[] | FileData;
|
49 |
+
load: FileData[] | FileData;
|
50 |
+
error: string;
|
51 |
+
}>();
|
52 |
+
|
53 |
+
let accept_file_types: string | null;
|
54 |
+
if (file_types == null) {
|
55 |
+
accept_file_types = null;
|
56 |
+
} else {
|
57 |
+
file_types = file_types.map((x) => {
|
58 |
+
if (x.startsWith(".")) {
|
59 |
+
return x;
|
60 |
+
}
|
61 |
+
return x + "/*";
|
62 |
+
});
|
63 |
+
accept_file_types = file_types.join(", ");
|
64 |
+
}
|
65 |
+
|
66 |
+
let dragging = false;
|
67 |
+
$: dispatch("drag", dragging);
|
68 |
+
</script>
|
69 |
+
|
70 |
+
<BlockLabel
|
71 |
+
{show_label}
|
72 |
+
Icon={File}
|
73 |
+
float={value === null}
|
74 |
+
label={label || "File"}
|
75 |
+
/>
|
76 |
+
|
77 |
+
{#if value}
|
78 |
+
<ModifyUpload {i18n} on:clear={handle_clear} absolute />
|
79 |
+
<FilePreview {i18n} on:select {selectable} {value} {height} />
|
80 |
+
|
81 |
+
{#if moldata != null}
|
82 |
+
<MolecularViewer {moldata} {config} {confidenceLabel} {representations} />
|
83 |
+
{/if}
|
84 |
+
{:else}
|
85 |
+
<FileRetrieval
|
86 |
+
{root}
|
87 |
+
on:load={handle_upload}
|
88 |
+
on:notfound={() => dispatch("notfound")}
|
89 |
+
/>
|
90 |
+
<Upload
|
91 |
+
on:load={handle_upload}
|
92 |
+
filetype={accept_file_types}
|
93 |
+
{file_count}
|
94 |
+
{root}
|
95 |
+
bind:dragging
|
96 |
+
>
|
97 |
+
<slot />
|
98 |
+
</Upload>
|
99 |
+
{/if}
|
src/frontend/shared/MolecularViewer.svelte
ADDED
@@ -0,0 +1,2277 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<script lang="ts">
|
2 |
+
import * as mol from "3dmol/build/3Dmol.js";
|
3 |
+
let TDmol = mol.default;
|
4 |
+
|
5 |
+
import { onMount } from "svelte";
|
6 |
+
|
7 |
+
// import RepresentationsIcon from "../static/RepresentationsIcon.svelte";
|
8 |
+
// import JSZip from "jszip";
|
9 |
+
// import { saveAs } from "file-saver";
|
10 |
+
|
11 |
+
let viewer;
|
12 |
+
export let confidenceLabel = null;
|
13 |
+
|
14 |
+
export let moldata = null;
|
15 |
+
// [
|
16 |
+
// { data: propdata, name: "Input", format: "pdb", asFrames: false },
|
17 |
+
// { data: moldata2, name: "Output", format: "pdb", asFrames: true },
|
18 |
+
// ];
|
19 |
+
|
20 |
+
let settings = {
|
21 |
+
backgroundColor: {
|
22 |
+
type: "select",
|
23 |
+
options: ["white", "black", "gray", "lightgray", "beige", "orange"],
|
24 |
+
},
|
25 |
+
orthographic: {
|
26 |
+
type: "toggle",
|
27 |
+
},
|
28 |
+
disableFog: {
|
29 |
+
type: "toggle",
|
30 |
+
},
|
31 |
+
};
|
32 |
+
export let config = {};
|
33 |
+
|
34 |
+
// {
|
35 |
+
// backgroundColor: "white",
|
36 |
+
// orthographic: false,
|
37 |
+
// disableFog: false,
|
38 |
+
// };
|
39 |
+
|
40 |
+
$: {
|
41 |
+
if (view != undefined) {
|
42 |
+
view.setBackgroundColor(config.backgroundColor);
|
43 |
+
view.enableFog(!config.disableFog);
|
44 |
+
view.setCameraParameters({ orthographic: config.orthographic });
|
45 |
+
}
|
46 |
+
}
|
47 |
+
|
48 |
+
let labelHover = true;
|
49 |
+
|
50 |
+
let showCiteTooltip = false;
|
51 |
+
|
52 |
+
function toggleCiteTooltip() {
|
53 |
+
showCiteTooltip = !showCiteTooltip;
|
54 |
+
}
|
55 |
+
|
56 |
+
export let representations = [];
|
57 |
+
|
58 |
+
let showOffCanvas = false;
|
59 |
+
let showOffCanvasReps = false;
|
60 |
+
|
61 |
+
function toggleOffCanvas() {
|
62 |
+
showOffCanvas = !showOffCanvas;
|
63 |
+
}
|
64 |
+
|
65 |
+
function toggleOffCanvasReps() {
|
66 |
+
showOffCanvasReps = !showOffCanvasReps;
|
67 |
+
}
|
68 |
+
function deleteRep(index) {
|
69 |
+
representations.splice(index, 1);
|
70 |
+
representations = representations;
|
71 |
+
}
|
72 |
+
function insertRep() {
|
73 |
+
representations.push({
|
74 |
+
model: 0,
|
75 |
+
chain: "",
|
76 |
+
resname: "",
|
77 |
+
style: "cartoon",
|
78 |
+
color: "grayCarbon",
|
79 |
+
residue_range: "",
|
80 |
+
around: 0,
|
81 |
+
byres: false,
|
82 |
+
visible: true,
|
83 |
+
});
|
84 |
+
representations = representations;
|
85 |
+
}
|
86 |
+
|
87 |
+
function fade(node, { delay = 0, duration = 50 }) {
|
88 |
+
const o = +getComputedStyle(node).opacity;
|
89 |
+
|
90 |
+
return {
|
91 |
+
delay,
|
92 |
+
duration,
|
93 |
+
css: (t) => `opacity: ${t * o}`,
|
94 |
+
};
|
95 |
+
}
|
96 |
+
let colorAlpha = function (atom) {
|
97 |
+
if (atom.b < 50) {
|
98 |
+
return "OrangeRed";
|
99 |
+
} else if (atom.b < 70) {
|
100 |
+
return "Gold";
|
101 |
+
} else if (atom.b < 90) {
|
102 |
+
return "MediumTurquoise";
|
103 |
+
} else {
|
104 |
+
return "Blue";
|
105 |
+
}
|
106 |
+
};
|
107 |
+
let view;
|
108 |
+
|
109 |
+
function resetZoom(rep) {
|
110 |
+
// if is not pointerevent
|
111 |
+
if (rep.type != undefined) {
|
112 |
+
view.zoomTo();
|
113 |
+
} else {
|
114 |
+
let sel = {
|
115 |
+
model: rep.model,
|
116 |
+
};
|
117 |
+
if (rep.chain !== "") {
|
118 |
+
sel.chain = rep.chain;
|
119 |
+
}
|
120 |
+
if (rep.residue_range !== "") {
|
121 |
+
sel.resi = rep.residue_range;
|
122 |
+
}
|
123 |
+
if (rep.resname !== "") {
|
124 |
+
sel.resn = rep.resname;
|
125 |
+
}
|
126 |
+
view.zoomTo(sel);
|
127 |
+
}
|
128 |
+
}
|
129 |
+
function applyStyles(representations) {
|
130 |
+
if (view !== undefined) {
|
131 |
+
view.setStyle();
|
132 |
+
view.removeAllSurfaces();
|
133 |
+
representations.forEach((rep) => {
|
134 |
+
let colorObj;
|
135 |
+
|
136 |
+
if (rep.color === "alphafold") {
|
137 |
+
colorObj = { colorfunc: colorAlpha };
|
138 |
+
} else if (rep.color == "spectrum") {
|
139 |
+
colorObj = { color: "spectrum" };
|
140 |
+
} else {
|
141 |
+
colorObj = { colorscheme: rep.color };
|
142 |
+
}
|
143 |
+
let selObj = { model: rep.model };
|
144 |
+
if (rep.chain !== "") {
|
145 |
+
selObj.chain = rep.chain;
|
146 |
+
}
|
147 |
+
if (rep.residue_range !== "") {
|
148 |
+
selObj.resi = rep.residue_range;
|
149 |
+
}
|
150 |
+
if (rep.resname !== "") {
|
151 |
+
selObj.resn = rep.resname;
|
152 |
+
}
|
153 |
+
selObj.byres = rep.byres;
|
154 |
+
if (rep.around !== 0) {
|
155 |
+
selObj.expand = rep.around;
|
156 |
+
}
|
157 |
+
if (rep.sidechain) {
|
158 |
+
selObj = {
|
159 |
+
and: [selObj, { atom: ["N", "C", "O"], invert: true }],
|
160 |
+
};
|
161 |
+
}
|
162 |
+
if (rep.style === "surface") {
|
163 |
+
colorObj.opacity = 0.8;
|
164 |
+
view.addSurface(TDmol.SurfaceType.VDW, colorObj, selObj);
|
165 |
+
} else {
|
166 |
+
try {
|
167 |
+
if (view.getModel(selObj.model) != null) {
|
168 |
+
view.addStyle(selObj, {
|
169 |
+
[rep.style]: colorObj,
|
170 |
+
});
|
171 |
+
}
|
172 |
+
} catch (error) {
|
173 |
+
console.log(error);
|
174 |
+
}
|
175 |
+
}
|
176 |
+
});
|
177 |
+
|
178 |
+
view.render();
|
179 |
+
}
|
180 |
+
}
|
181 |
+
|
182 |
+
// function downloadFiles() {
|
183 |
+
// var zip = new JSZip();
|
184 |
+
// moldata.forEach((element, i) => {
|
185 |
+
// zip.file(element.name + "_" + i + "." + element.format, element.data);
|
186 |
+
// });
|
187 |
+
// zip.generateAsync({ type: "blob" }).then(function (content) {
|
188 |
+
// saveAs(content, "files.zip");
|
189 |
+
// });
|
190 |
+
// }
|
191 |
+
|
192 |
+
onMount(() => {
|
193 |
+
let startingConfig = { ...config, cartoonQuality: 7 };
|
194 |
+
|
195 |
+
view = TDmol.createViewer(viewer, startingConfig);
|
196 |
+
|
197 |
+
//filter duplicate representations
|
198 |
+
let uniqueReps = [];
|
199 |
+
representations.forEach((rep) => {
|
200 |
+
if (
|
201 |
+
!uniqueReps.some(
|
202 |
+
(uniqueRep) =>
|
203 |
+
uniqueRep.model === rep.model &&
|
204 |
+
uniqueRep.chain === rep.chain &&
|
205 |
+
uniqueRep.resname === rep.resname &&
|
206 |
+
uniqueRep.style === rep.style &&
|
207 |
+
uniqueRep.color === rep.color &&
|
208 |
+
uniqueRep.residue_range === rep.residue_range &&
|
209 |
+
uniqueRep.around === rep.around &&
|
210 |
+
uniqueRep.byres === rep.byres &&
|
211 |
+
uniqueRep.sidechain === rep.sidechain
|
212 |
+
)
|
213 |
+
) {
|
214 |
+
uniqueReps.push(rep);
|
215 |
+
}
|
216 |
+
});
|
217 |
+
representations = uniqueReps;
|
218 |
+
|
219 |
+
if (moldata.length > 0) {
|
220 |
+
moldata.forEach((element) => {
|
221 |
+
if (element.asFrames) {
|
222 |
+
view.addModelsAsFrames(element.data, element.format);
|
223 |
+
} else {
|
224 |
+
view.addModel(element.data, element.format);
|
225 |
+
}
|
226 |
+
});
|
227 |
+
}
|
228 |
+
|
229 |
+
applyStyles(representations);
|
230 |
+
view.zoomTo();
|
231 |
+
view.render();
|
232 |
+
view.zoom(0.8, 2000);
|
233 |
+
|
234 |
+
representations.forEach((rep) => {
|
235 |
+
if (rep.color === "alphafold") {
|
236 |
+
anyColorAlphaFold = true;
|
237 |
+
}
|
238 |
+
});
|
239 |
+
|
240 |
+
if (labelHover) {
|
241 |
+
view.setHoverable(
|
242 |
+
{},
|
243 |
+
true,
|
244 |
+
function (atom, view, event, container) {
|
245 |
+
if (!atom.label) {
|
246 |
+
let label;
|
247 |
+
if (anyColorAlphaFold) {
|
248 |
+
label =
|
249 |
+
atom.resn +
|
250 |
+
":" +
|
251 |
+
atom.resi +
|
252 |
+
":" +
|
253 |
+
atom.atom +
|
254 |
+
" (" +
|
255 |
+
confidenceLabel +
|
256 |
+
" " +
|
257 |
+
atom.b +
|
258 |
+
")";
|
259 |
+
} else {
|
260 |
+
label = atom.resn + ":" + atom.resi + ":" + atom.atom;
|
261 |
+
}
|
262 |
+
atom.label = view.addLabel(label, {
|
263 |
+
position: atom,
|
264 |
+
backgroundColor: "#ffffff",
|
265 |
+
borderColor: "#dddddd",
|
266 |
+
fontColor: "black",
|
267 |
+
});
|
268 |
+
}
|
269 |
+
},
|
270 |
+
function (atom, view) {
|
271 |
+
if (atom.label) {
|
272 |
+
view.removeLabel(atom.label);
|
273 |
+
delete atom.label;
|
274 |
+
}
|
275 |
+
}
|
276 |
+
);
|
277 |
+
}
|
278 |
+
});
|
279 |
+
|
280 |
+
$: applyStyles(representations);
|
281 |
+
let hasFrames = false;
|
282 |
+
$: {
|
283 |
+
moldata.forEach((element) => {
|
284 |
+
if (element.asFrames) {
|
285 |
+
hasFrames = true;
|
286 |
+
}
|
287 |
+
});
|
288 |
+
}
|
289 |
+
let isAnimated = false;
|
290 |
+
|
291 |
+
let anyColorAlphaFold = false;
|
292 |
+
$: {
|
293 |
+
anyColorAlphaFold = false;
|
294 |
+
representations.forEach((rep) => {
|
295 |
+
if (rep.color === "alphafold") {
|
296 |
+
anyColorAlphaFold = true;
|
297 |
+
}
|
298 |
+
});
|
299 |
+
}
|
300 |
+
function toggleAnimation() {
|
301 |
+
console.log(view.isAnimated());
|
302 |
+
if (isAnimated) {
|
303 |
+
view.pauseAnimate();
|
304 |
+
} else {
|
305 |
+
view.animate({ loop: "forward", reps: 0 });
|
306 |
+
}
|
307 |
+
view.render();
|
308 |
+
console.log(view.isAnimated());
|
309 |
+
isAnimated = !isAnimated;
|
310 |
+
}
|
311 |
+
</script>
|
312 |
+
|
313 |
+
<div class="bg-white w-full minh">
|
314 |
+
<div class="overflow-hidden flex gap-px w-full h-full flex-wrap">
|
315 |
+
<div class="gr-block gr-box relative w-full overflow-hidden">
|
316 |
+
<!-- <div
|
317 |
+
style=" "
|
318 |
+
class="absolute z-50 top-0 left-0 bg-white rounded-br border-b border-r border-gray-200 p-1"
|
319 |
+
>
|
320 |
+
<span class=" flex items-center space-x-1 text-xs text-gray-500"
|
321 |
+
><svg
|
322 |
+
xmlns="http://www.w3.org/2000/svg"
|
323 |
+
width="100%"
|
324 |
+
height="100%"
|
325 |
+
viewBox="0 0 24 24"
|
326 |
+
fill="none"
|
327 |
+
stroke="currentColor"
|
328 |
+
stroke-width="1.5"
|
329 |
+
stroke-linecap="round"
|
330 |
+
stroke-linejoin="round"
|
331 |
+
class="feather feather-file h-3 w-3"
|
332 |
+
><path
|
333 |
+
d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"
|
334 |
+
/><polyline points="13 2 13 9 20 9" /></svg
|
335 |
+
> <span>Molecule3D</span>
|
336 |
+
</span>
|
337 |
+
</div> -->
|
338 |
+
|
339 |
+
<div
|
340 |
+
class="absolute z-50 top-0 right-0 mr-2 flex flex-col divide-y border border-gray-200 mt-2 rounded items-center justify-center bg-white dark:bg-gray-800"
|
341 |
+
>
|
342 |
+
<button class="p-2" title="Reset View" on:click={resetZoom}>
|
343 |
+
<svg
|
344 |
+
xmlns="http://www.w3.org/2000/svg"
|
345 |
+
fill="none"
|
346 |
+
viewBox="0 0 24 24"
|
347 |
+
stroke-width="1.5"
|
348 |
+
stroke="currentColor"
|
349 |
+
class="w-4 h-4 text-gray-500 hover:text-orange-600 cursor-pointer"
|
350 |
+
>
|
351 |
+
<path
|
352 |
+
stroke-linecap="round"
|
353 |
+
stroke-linejoin="round"
|
354 |
+
d="M9 9V4.5M9 9H4.5M9 9L3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5l5.25 5.25"
|
355 |
+
/>
|
356 |
+
</svg>
|
357 |
+
</button>
|
358 |
+
<button class="p-2" title="Settings" on:click={toggleOffCanvas}>
|
359 |
+
<svg
|
360 |
+
xmlns="http://www.w3.org/2000/svg"
|
361 |
+
fill="none"
|
362 |
+
viewBox="0 0 24 24"
|
363 |
+
stroke-width="1.5"
|
364 |
+
stroke="currentColor"
|
365 |
+
class="w-5 h-5 text-gray-500 hover:text-orange-600 cursor-pointer"
|
366 |
+
>
|
367 |
+
<path
|
368 |
+
stroke-linecap="round"
|
369 |
+
stroke-linejoin="round"
|
370 |
+
d="M10.5 6h9.75M10.5 6a1.5 1.5 0 11-3 0m3 0a1.5 1.5 0 10-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 01-3 0m3 0a1.5 1.5 0 00-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 01-3 0m3 0a1.5 1.5 0 00-3 0m-9.75 0h9.75"
|
371 |
+
/>
|
372 |
+
</svg>
|
373 |
+
</button>
|
374 |
+
|
375 |
+
<button
|
376 |
+
class="p-2"
|
377 |
+
title="Representations"
|
378 |
+
on:click={toggleOffCanvasReps}
|
379 |
+
>
|
380 |
+
<!-- <svg
|
381 |
+
xmlns="http://www.w3.org/2000/svg"
|
382 |
+
fill="none"
|
383 |
+
viewBox="0 0 24 24"
|
384 |
+
stroke-width="1.5"
|
385 |
+
stroke="currentColor"
|
386 |
+
class="w-5 h-5 text-gray-500 hover:text-orange-600 cursor-pointer"
|
387 |
+
>
|
388 |
+
<path
|
389 |
+
stroke-linecap="round"
|
390 |
+
stroke-linejoin="round"
|
391 |
+
d="M21.75 6.75a4.5 4.5 0 01-4.884 4.484c-1.076-.091-2.264.071-2.95.904l-7.152 8.684a2.548 2.548 0 11-3.586-3.586l8.684-7.152c.833-.686.995-1.874.904-2.95a4.5 4.5 0 016.336-4.486l-3.276 3.276a3.004 3.004 0 002.25 2.25l3.276-3.276c.256.565.398 1.192.398 1.852z"
|
392 |
+
/>
|
393 |
+
<path
|
394 |
+
stroke-linecap="round"
|
395 |
+
stroke-linejoin="round"
|
396 |
+
d="M4.867 19.125h.008v.008h-.008v-.008z"
|
397 |
+
/>
|
398 |
+
</svg> -->
|
399 |
+
|
400 |
+
<!-- CC BY ND zwicon https://www.zwicon.com -->
|
401 |
+
<svg
|
402 |
+
class="w-5 h-5 text-gray-500 hover:text-orange-600 cursor-pointer"
|
403 |
+
viewBox="0 0 24 24"
|
404 |
+
xmlns="http://www.w3.org/2000/svg"
|
405 |
+
>
|
406 |
+
<path
|
407 |
+
d="M12.0281146,15 L12.5,15 C13.3284271,15 14,15.6715729 14,16.5 L14,20.5 C14,21.3284271 13.3284271,22 12.5,22 L10.5,22 C9.67157288,22 9,21.3284271 9,20.5 L9,16.5 C9,15.6715729 9.67157288,15 10.5,15 L11.0167145,15 C11.1492163,13.8570393 12.0552513,12.9352285 13.2239212,12.8053762 L18.6656473,12.20074 C19.4252963,12.1163346 20,11.4742382 20,10.7099144 L20,8.5 C20,7.67157288 19.3284271,7 18.5,7 C18.2238576,7 18,6.77614237 18,6.5 C18,6.22385763 18.2238576,6 18.5,6 C19.8807119,6 21,7.11928813 21,8.5 L21,10.7099144 C21,11.9837875 20.0421605,13.053948 18.7760788,13.1946238 L13.3343527,13.79926 C12.6731623,13.8727256 12.1520824,14.3686853 12.0281146,15 Z M10.5,16 C10.2238576,16 10,16.2238576 10,16.5 L10,20.5 C10,20.7761424 10.2238576,21 10.5,21 L12.5,21 C12.7761424,21 13,20.7761424 13,20.5 L13,16.5 C13,16.2238576 12.7761424,16 12.5,16 L10.5,16 Z M5.49996942,2.99995128 L16.5,2.99995128 C17.8807119,2.99995128 19,4.11923941 19,5.49995128 L19,7.5 C19,8.88071187 17.8807119,10 16.5,10 L5.49996942,10 C4.11925755,10 2.99996942,8.88071187 2.99996942,7.5 L2.99996942,5.49995128 C2.99996942,4.11923941 4.11925755,2.99995128 5.49996942,2.99995128 Z M5.49996942,3.99995128 C4.6715423,3.99995128 3.99996942,4.67152416 3.99996942,5.49995128 L3.99996942,7.5 C3.99996942,8.32842712 4.6715423,9 5.49996942,9 L16.5,9 C17.3284271,9 18,8.32842712 18,7.5 L18,5.49995128 C18,4.67152416 17.3284271,3.99995128 16.5,3.99995128 L5.49996942,3.99995128 Z"
|
408 |
+
/>
|
409 |
+
</svg>
|
410 |
+
</button>
|
411 |
+
|
412 |
+
<!-- <button class="p-2" title="Download files">
|
413 |
+
<svg
|
414 |
+
aria-hidden="true"
|
415 |
+
fill="currentColor"
|
416 |
+
viewBox="0 0 20 20"
|
417 |
+
xmlns="http://www.w3.org/2000/svg"
|
418 |
+
class="w-5 h-5 text-gray-500 hover:text-orange-600 cursor-pointer"
|
419 |
+
>
|
420 |
+
<path
|
421 |
+
d="M10.75 2.75a.75.75 0 00-1.5 0v8.614L6.295 8.235a.75.75 0 10-1.09 1.03l4.25 4.5a.75.75 0 001.09 0l4.25-4.5a.75.75 0 00-1.09-1.03l-2.955 3.129V2.75z"
|
422 |
+
/>
|
423 |
+
<path
|
424 |
+
d="M3.5 12.75a.75.75 0 00-1.5 0v2.5A2.75 2.75 0 004.75 18h10.5A2.75 2.75 0 0018 15.25v-2.5a.75.75 0 00-1.5 0v2.5c0 .69-.56 1.25-1.25 1.25H4.75c-.69 0-1.25-.56-1.25-1.25v-2.5z"
|
425 |
+
/>
|
426 |
+
</svg>
|
427 |
+
</button> -->
|
428 |
+
</div>
|
429 |
+
|
430 |
+
{#if anyColorAlphaFold}
|
431 |
+
<div class="absolute bottom-0 left-0 z-50 p-2 -mb-2 w-full bg-white">
|
432 |
+
<div class="flex text-sm items-center space-x-2 justify-center">
|
433 |
+
<div class="flex space-x-1 py-1 items-center">
|
434 |
+
<span class="w-4 h-4" style="background-color: rgb(0, 83, 214);"
|
435 |
+
> </span
|
436 |
+
><span class="legendlabel"
|
437 |
+
>Very high ({confidenceLabel} > 90)</span
|
438 |
+
>
|
439 |
+
</div>
|
440 |
+
<div class="flex space-x-1 py-1 items-center">
|
441 |
+
<span
|
442 |
+
class="w-4 h-4"
|
443 |
+
style="background-color: rgb(101, 203, 243);"> </span
|
444 |
+
><span class="legendlabel"
|
445 |
+
>Confident (90 > {confidenceLabel} > 70)</span
|
446 |
+
>
|
447 |
+
</div>
|
448 |
+
<div class="flex space-x-1 py-1 items-center">
|
449 |
+
<span class="w-4 h-4" style="background-color: rgb(255, 219, 19);"
|
450 |
+
> </span
|
451 |
+
><span class="legendlabel"
|
452 |
+
>Low (70 > {confidenceLabel} > 50)</span
|
453 |
+
>
|
454 |
+
</div>
|
455 |
+
<div class="flex space-x-1 py-1 items-center">
|
456 |
+
<span class="w-4 h-4" style="background-color: rgb(255, 125, 69);"
|
457 |
+
> </span
|
458 |
+
><span class="legendlabel"
|
459 |
+
>Very low ({confidenceLabel} < 50)</span
|
460 |
+
>
|
461 |
+
</div>
|
462 |
+
</div>
|
463 |
+
</div>
|
464 |
+
{/if}
|
465 |
+
|
466 |
+
{#if hasFrames}
|
467 |
+
<div
|
468 |
+
class="absolute z-50 bottom-0 right-0 mr-2 flex divide-x border border-gray-200 mb-2 rounded items-center justify-center"
|
469 |
+
>
|
470 |
+
{#if !isAnimated}
|
471 |
+
<button class="p-2" title="Play" on:click={toggleAnimation}>
|
472 |
+
<svg
|
473 |
+
xmlns="http://www.w3.org/2000/svg"
|
474 |
+
fill="none"
|
475 |
+
viewBox="0 0 24 24"
|
476 |
+
stroke-width="2"
|
477 |
+
stroke="currentColor"
|
478 |
+
class="w-4 h-4 text-gray-500 hover:text-orange-600 cursor-pointer"
|
479 |
+
>
|
480 |
+
<path
|
481 |
+
stroke-linecap="round"
|
482 |
+
stroke-linejoin="round"
|
483 |
+
d="M5.25 5.653c0-.856.917-1.398 1.667-.986l11.54 6.348a1.125 1.125 0 010 1.971l-11.54 6.347a1.125 1.125 0 01-1.667-.985V5.653z"
|
484 |
+
/>
|
485 |
+
</svg>
|
486 |
+
</button>
|
487 |
+
{:else}
|
488 |
+
<button class="p-2" title="Pause" on:click={toggleAnimation}>
|
489 |
+
<svg
|
490 |
+
xmlns="http://www.w3.org/2000/svg"
|
491 |
+
fill="none"
|
492 |
+
viewBox="0 0 24 24"
|
493 |
+
stroke-width="2"
|
494 |
+
stroke="currentColor"
|
495 |
+
class="w-4 h-4 text-gray-500 hover:text-orange-600 cursor-pointer"
|
496 |
+
>
|
497 |
+
<path
|
498 |
+
stroke-linecap="round"
|
499 |
+
stroke-linejoin="round"
|
500 |
+
d="M5.25 7.5A2.25 2.25 0 017.5 5.25h9a2.25 2.25 0 012.25 2.25v9a2.25 2.25 0 01-2.25 2.25h-9a2.25 2.25 0 01-2.25-2.25v-9z"
|
501 |
+
/>
|
502 |
+
</svg>
|
503 |
+
|
504 |
+
<!-- <svg
|
505 |
+
xmlns="http://www.w3.org/2000/svg"
|
506 |
+
fill="none"
|
507 |
+
viewBox="0 0 24 24"
|
508 |
+
stroke-width="2"
|
509 |
+
stroke="currentColor"
|
510 |
+
class="w-4 h-4 text-gray-500 hover:text-orange-600 cursor-pointer"
|
511 |
+
>
|
512 |
+
<path
|
513 |
+
stroke-linecap="round"
|
514 |
+
stroke-linejoin="round"
|
515 |
+
d="M15.75 5.25v13.5m-7.5-13.5v13.5"
|
516 |
+
/>
|
517 |
+
</svg> -->
|
518 |
+
</button>
|
519 |
+
{/if}
|
520 |
+
</div>
|
521 |
+
{/if}
|
522 |
+
|
523 |
+
<div
|
524 |
+
class="absolute z-50 bottom-0 left-0 ml-2 flex divide-x mb-2 rounded items-center justify-center"
|
525 |
+
>
|
526 |
+
<button
|
527 |
+
class="p-1"
|
528 |
+
title="How to cite 3Dmol.js"
|
529 |
+
on:click={toggleCiteTooltip}
|
530 |
+
>
|
531 |
+
<svg
|
532 |
+
class="w-4 h-4 text-gray-500 hover:text-orange-600 cursor-pointer fill-current"
|
533 |
+
viewBox="0 0 20 20"
|
534 |
+
xmlns="http://www.w3.org/2000/svg"
|
535 |
+
><g id="SVGRepo_bgCarrier" stroke-width="0" /><g
|
536 |
+
id="SVGRepo_tracerCarrier"
|
537 |
+
stroke-linecap="round"
|
538 |
+
stroke-linejoin="round"
|
539 |
+
/><g id="SVGRepo_iconCarrier"
|
540 |
+
><path
|
541 |
+
d="M12.6 7.6v3.9h-1.1v4.6h-3v-4.6H7.4V7.6c0-.3.3-.6.6-.6h4c.3 0 .6.3.6.6zM10 6.5c.7 0 1.3-.6 1.3-1.3 0-.7-.6-1.3-1.3-1.3-.7 0-1.3.6-1.3 1.3 0 .7.6 1.3 1.3 1.3zm9.6 3.5c0 2.7-.9 4.9-2.7 6.7-1.9 1.9-4.2 2.9-6.9 2.9-2.6 0-4.9-.9-6.8-2.8C1.3 14.9.4 12.7.4 10c0-2.6.9-4.9 2.8-6.8C5.1 1.3 7.3.4 10 .4s5 .9 6.8 2.8c1.9 1.8 2.8 4.1 2.8 6.8zm-1.7 0c0-2.2-.8-4-2.3-5.6C14 2.9 12.2 2.1 10 2.1c-2.2 0-4 .8-5.5 2.3C2.9 6 2.1 7.9 2.1 10c0 2.1.8 4 2.3 5.5s3.4 2.3 5.6 2.3c2.1 0 4-.8 5.6-2.4 1.5-1.4 2.3-3.2 2.3-5.4z"
|
542 |
+
/></g
|
543 |
+
></svg
|
544 |
+
>
|
545 |
+
</button>
|
546 |
+
|
547 |
+
<span
|
548 |
+
class=" absolute -top-1 left-6 w-max rounded bg-gray-900 px-2 py-1 text-sm font-medium text-gray-50 opacity-0 shadow transition-opacity"
|
549 |
+
class:opacity-100={showCiteTooltip}
|
550 |
+
>
|
551 |
+
Cite 3dmol.js as Rego & Koes, doi:10/gb5g5n
|
552 |
+
</span>
|
553 |
+
</div>
|
554 |
+
|
555 |
+
<div class="viewer w-full h-full z-10" bind:this={viewer} />
|
556 |
+
|
557 |
+
{#if showOffCanvas}
|
558 |
+
<div
|
559 |
+
id="settings-drawer"
|
560 |
+
class="absolute top-0 right-0 z-50 h-full overflow-y-auto transition-transform bg-gray-100 w-80 dark:bg-gray-800"
|
561 |
+
tabindex="-1"
|
562 |
+
aria-labelledby="settings-drawer-label"
|
563 |
+
>
|
564 |
+
<div class="p-4">
|
565 |
+
<h5
|
566 |
+
id="settings-drawer-label"
|
567 |
+
class="inline-flex items-center mb-4 text-base font-semibold text-gray-500 dark:text-gray-400"
|
568 |
+
>
|
569 |
+
Settings
|
570 |
+
</h5>
|
571 |
+
<button
|
572 |
+
type="button"
|
573 |
+
data-drawer-hide="drawer-example"
|
574 |
+
aria-controls="drawer-example"
|
575 |
+
class="text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 absolute top-2.5 right-2.5 inline-flex items-center dark:hover:bg-gray-600 dark:hover:text-white"
|
576 |
+
on:click={toggleOffCanvas}
|
577 |
+
>
|
578 |
+
<svg
|
579 |
+
aria-hidden="true"
|
580 |
+
class="w-5 h-5"
|
581 |
+
fill="currentColor"
|
582 |
+
viewBox="0 0 20 20"
|
583 |
+
xmlns="http://www.w3.org/2000/svg"
|
584 |
+
><path
|
585 |
+
fill-rule="evenodd"
|
586 |
+
d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"
|
587 |
+
clip-rule="evenodd"
|
588 |
+
/></svg
|
589 |
+
>
|
590 |
+
<span class="sr-only">Close menu</span>
|
591 |
+
</button>
|
592 |
+
</div>
|
593 |
+
{#each Object.keys(config) as setting}
|
594 |
+
<div class="flex flex-col mb-4 divide-y">
|
595 |
+
<div
|
596 |
+
class="flex items-center border-t border-b border-gray-200 bg-white px-4 py-2 space-x-2"
|
597 |
+
>
|
598 |
+
<label
|
599 |
+
for={setting}
|
600 |
+
class="text-sm font-medium text-gray-600 dark:text-gray-400 w-1/2"
|
601 |
+
>
|
602 |
+
{setting}
|
603 |
+
</label>
|
604 |
+
|
605 |
+
{#if settings[setting].type == "toggle"}
|
606 |
+
<label
|
607 |
+
class="relative inline-flex items-center mr-5 cursor-pointer text-center justify-center"
|
608 |
+
>
|
609 |
+
<input
|
610 |
+
type="checkbox"
|
611 |
+
value=""
|
612 |
+
class="sr-only peer"
|
613 |
+
bind:checked={config[setting]}
|
614 |
+
/>
|
615 |
+
<div
|
616 |
+
class="w-11 h-6 bg-gray-200 rounded-full peer dark:bg-gray-700 peer-focus:ring-4 peer-focus:ring-orange-300 dark:peer-focus:ring-orange-800 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-0.5 after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-orange-400"
|
617 |
+
/>
|
618 |
+
</label>
|
619 |
+
{/if}
|
620 |
+
{#if settings[setting].type == "range"}
|
621 |
+
<div class="flex items-center">
|
622 |
+
<input
|
623 |
+
id="medium-range"
|
624 |
+
type="range"
|
625 |
+
value={config[setting]}
|
626 |
+
min={settings[setting].min}
|
627 |
+
max={settings[setting].max}
|
628 |
+
step={settings[setting].step}
|
629 |
+
on:change={() => {
|
630 |
+
config[setting] = event.target.value;
|
631 |
+
}}
|
632 |
+
class="w-2/3 h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700"
|
633 |
+
/>
|
634 |
+
<span
|
635 |
+
class="w-1/3 text-center text-sm font-medium text-gray-600 dark:text-gray-400"
|
636 |
+
>{config[setting]}</span
|
637 |
+
>
|
638 |
+
</div>
|
639 |
+
{/if}
|
640 |
+
{#if settings[setting].type == "select"}
|
641 |
+
<label for={setting} class="sr-only">Select style</label>
|
642 |
+
<select
|
643 |
+
id={setting}
|
644 |
+
class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
|
645 |
+
bind:value={config[setting]}
|
646 |
+
>
|
647 |
+
{#each settings[setting].options as option}
|
648 |
+
<option
|
649 |
+
value={option}
|
650 |
+
selected={option == config[setting]}
|
651 |
+
>
|
652 |
+
{option}
|
653 |
+
</option>
|
654 |
+
{/each}
|
655 |
+
</select>
|
656 |
+
{/if}
|
657 |
+
</div>
|
658 |
+
</div>
|
659 |
+
{/each}
|
660 |
+
<div class="bg-white">
|
661 |
+
<div
|
662 |
+
class="flex items-center border-t border-b border-gray-200 bg-white px-4 py-2 space-x-2"
|
663 |
+
>
|
664 |
+
<label
|
665 |
+
class="text-sm font-medium text-gray-600 dark:text-gray-400 w-1/2"
|
666 |
+
>
|
667 |
+
Label atoms on hover
|
668 |
+
</label>
|
669 |
+
<label
|
670 |
+
class="relative inline-flex items-center mr-5 cursor-pointer text-center justify-center"
|
671 |
+
>
|
672 |
+
<input
|
673 |
+
type="checkbox"
|
674 |
+
class="sr-only peer"
|
675 |
+
bind:value={labelHover}
|
676 |
+
/>
|
677 |
+
<div
|
678 |
+
class="w-11 h-6 bg-gray-200 rounded-full peer dark:bg-gray-700 peer-focus:ring-4 peer-focus:ring-orange-300 dark:peer-focus:ring-orange-800 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-0.5 after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-orange-400"
|
679 |
+
/>
|
680 |
+
</label>
|
681 |
+
</div>
|
682 |
+
</div>
|
683 |
+
</div>
|
684 |
+
{/if}
|
685 |
+
{#if showOffCanvasReps}
|
686 |
+
<div
|
687 |
+
id="drawer-example"
|
688 |
+
class="absolute top-0 right-0 z-50 h-full overflow-y-auto transition-transform bg-gray-100 w-80 dark:bg-gray-800 border-l border-gray-200"
|
689 |
+
tabindex="-1"
|
690 |
+
aria-labelledby="drawer-label"
|
691 |
+
>
|
692 |
+
<div class="p-4">
|
693 |
+
<h5
|
694 |
+
id="drawer-label"
|
695 |
+
class="inline-flex items-center mb-4 text-base font-semibold text-gray-500 dark:text-gray-400"
|
696 |
+
>
|
697 |
+
Representations
|
698 |
+
</h5>
|
699 |
+
<button
|
700 |
+
type="button"
|
701 |
+
data-drawer-hide="drawer-example"
|
702 |
+
aria-controls="drawer-example"
|
703 |
+
class="text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 absolute top-2.5 right-2.5 inline-flex items-center dark:hover:bg-gray-600 dark:hover:text-white"
|
704 |
+
on:click={toggleOffCanvasReps}
|
705 |
+
>
|
706 |
+
<svg
|
707 |
+
aria-hidden="true"
|
708 |
+
class="w-5 h-5"
|
709 |
+
fill="currentColor"
|
710 |
+
viewBox="0 0 20 20"
|
711 |
+
xmlns="http://www.w3.org/2000/svg"
|
712 |
+
><path
|
713 |
+
fill-rule="evenodd"
|
714 |
+
d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z"
|
715 |
+
clip-rule="evenodd"
|
716 |
+
/></svg
|
717 |
+
>
|
718 |
+
<span class="sr-only">Close menu</span>
|
719 |
+
</button>
|
720 |
+
</div>
|
721 |
+
|
722 |
+
{#each representations as rep, index}
|
723 |
+
<div class="bg-white border-b border-t border-gray-200 py-4 px-2">
|
724 |
+
<div class="">
|
725 |
+
<div class="flex space-x-2 items-center cursor-pointer p-1">
|
726 |
+
<button
|
727 |
+
on:click={() => (rep.visible = !rep.visible)}
|
728 |
+
class="flex items-center space-x-2"
|
729 |
+
>
|
730 |
+
<svg
|
731 |
+
xmlns="http://www.w3.org/2000/svg"
|
732 |
+
fill="none"
|
733 |
+
viewBox="0 0 24 24"
|
734 |
+
stroke-width="1.5"
|
735 |
+
stroke="currentColor"
|
736 |
+
class={rep.visible
|
737 |
+
? "transform rotate-90 w-5 h-5 "
|
738 |
+
: "w-5 h-5 "}
|
739 |
+
>
|
740 |
+
<path
|
741 |
+
stroke-linecap="round"
|
742 |
+
stroke-linejoin="round"
|
743 |
+
d="M8.25 4.5l7.5 7.5-7.5 7.5"
|
744 |
+
/>
|
745 |
+
</svg>
|
746 |
+
<span>Representation #{index}</span>
|
747 |
+
</button>
|
748 |
+
<button on:click={() => deleteRep(index)}>
|
749 |
+
<!---->
|
750 |
+
<svg
|
751 |
+
xmlns="http://www.w3.org/2000/svg"
|
752 |
+
fill="none"
|
753 |
+
viewBox="0 0 24 24"
|
754 |
+
stroke-width="1.5"
|
755 |
+
stroke="currentColor"
|
756 |
+
class="w-5 h-5"
|
757 |
+
>
|
758 |
+
<path
|
759 |
+
stroke-linecap="round"
|
760 |
+
stroke-linejoin="round"
|
761 |
+
d="M14.74 9l-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 01-2.244 2.077H8.084a2.25 2.25 0 01-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 00-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 013.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 00-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 00-7.5 0"
|
762 |
+
/>
|
763 |
+
</svg>
|
764 |
+
</button>
|
765 |
+
<button
|
766 |
+
title="zoom to selection"
|
767 |
+
on:click={() => resetZoom(rep)}
|
768 |
+
>
|
769 |
+
<svg
|
770 |
+
xmlns="http://www.w3.org/2000/svg"
|
771 |
+
fill="none"
|
772 |
+
viewBox="0 0 24 24"
|
773 |
+
stroke-width="1.5"
|
774 |
+
stroke="currentColor"
|
775 |
+
class="w-4 h-4 text-gray-500 hover:text-orange-600 cursor-pointer"
|
776 |
+
>
|
777 |
+
<path
|
778 |
+
stroke-linecap="round"
|
779 |
+
stroke-linejoin="round"
|
780 |
+
d="M9 9V4.5M9 9H4.5M9 9L3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5l5.25 5.25"
|
781 |
+
/>
|
782 |
+
</svg>
|
783 |
+
</button>
|
784 |
+
</div>
|
785 |
+
{#if rep.visible}
|
786 |
+
<div in:fade>
|
787 |
+
<div class="p-1 flex space-x-1">
|
788 |
+
<select
|
789 |
+
id="style"
|
790 |
+
class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
|
791 |
+
bind:value={rep.model}
|
792 |
+
>
|
793 |
+
{#each moldata as mol, i}
|
794 |
+
<option value={i}>{mol.name} #{i}</option>
|
795 |
+
{/each}
|
796 |
+
</select>
|
797 |
+
<input
|
798 |
+
type="text"
|
799 |
+
id="chain"
|
800 |
+
class="w-1/2 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
|
801 |
+
placeholder="Chain"
|
802 |
+
bind:value={rep.chain}
|
803 |
+
/>
|
804 |
+
</div>
|
805 |
+
<div class="p-1 flex space-x-1">
|
806 |
+
<input
|
807 |
+
type="text"
|
808 |
+
id="chain"
|
809 |
+
class="w-1/2 bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
|
810 |
+
placeholder="Resname"
|
811 |
+
bind:value={rep.resname}
|
812 |
+
/>
|
813 |
+
<input
|
814 |
+
type="text"
|
815 |
+
id="residue_range"
|
816 |
+
class="w-full bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
|
817 |
+
placeholder="Residue range"
|
818 |
+
bind:value={rep.residue_range}
|
819 |
+
/>
|
820 |
+
</div>
|
821 |
+
<div class="p-1 flex space-x-1 items-center">
|
822 |
+
<label
|
823 |
+
for="countries"
|
824 |
+
class="block mb-2 text-sm w-1/3 font-medium text-gray-600 dark:text-white"
|
825 |
+
>Select style</label
|
826 |
+
>
|
827 |
+
<select
|
828 |
+
id="style"
|
829 |
+
class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
|
830 |
+
bind:value={rep.style}
|
831 |
+
>
|
832 |
+
<option value="stick">Stick</option>
|
833 |
+
<option value="cartoon">Cartoon</option>
|
834 |
+
<option value="surface">Surface</option>$
|
835 |
+
<option value="sphere">Sphere</option>
|
836 |
+
</select>
|
837 |
+
</div>
|
838 |
+
<div
|
839 |
+
class="flex p-1 items-center text-gray-700 space-x-1 text-sm"
|
840 |
+
>
|
841 |
+
<div class="">Expand selection</div>
|
842 |
+
<input
|
843 |
+
id="around"
|
844 |
+
type="range"
|
845 |
+
value={rep.around}
|
846 |
+
min="0"
|
847 |
+
max="10"
|
848 |
+
step="0.5"
|
849 |
+
on:change={(event) => {
|
850 |
+
rep.around = event.target.value;
|
851 |
+
}}
|
852 |
+
class="h-2 w-1/3 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700"
|
853 |
+
/>
|
854 |
+
<input type="text" bind:value={rep.around} class="w-8" />
|
855 |
+
<div>Å</div>
|
856 |
+
</div>
|
857 |
+
<div
|
858 |
+
class="flex p-1 items-center text-gray-700 space-x-1 text-sm"
|
859 |
+
>
|
860 |
+
<div class="flex space-x-1 w-1/2">
|
861 |
+
<span>Full residue</span>
|
862 |
+
<label
|
863 |
+
class="relative inline-flex items-center mr-5 cursor-pointer text-center"
|
864 |
+
>
|
865 |
+
<input
|
866 |
+
type="checkbox"
|
867 |
+
value=""
|
868 |
+
class="sr-only peer"
|
869 |
+
bind:checked={rep.byres}
|
870 |
+
/>
|
871 |
+
<div
|
872 |
+
class="w-11 h-6 bg-gray-200 rounded-full peer dark:bg-gray-700 peer-focus:ring-4 peer-focus:ring-orange-300 dark:peer-focus:ring-orange-800 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-0.5 after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-orange-400"
|
873 |
+
/>
|
874 |
+
</label>
|
875 |
+
</div>
|
876 |
+
<div class="flex space-x-1 w-1/2">
|
877 |
+
<span>Only sidechain</span>
|
878 |
+
<label
|
879 |
+
class="relative inline-flex items-center mr-5 cursor-pointer text-center"
|
880 |
+
>
|
881 |
+
<input
|
882 |
+
type="checkbox"
|
883 |
+
value=""
|
884 |
+
class="sr-only peer"
|
885 |
+
bind:checked={rep.sidechain}
|
886 |
+
/>
|
887 |
+
<div
|
888 |
+
class="w-11 h-6 bg-gray-200 rounded-full peer dark:bg-gray-700 peer-focus:ring-4 peer-focus:ring-orange-300 dark:peer-focus:ring-orange-800 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-0.5 after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-orange-400"
|
889 |
+
/>
|
890 |
+
</label>
|
891 |
+
</div>
|
892 |
+
</div>
|
893 |
+
|
894 |
+
<div class="flex space-x-2 mt-2">
|
895 |
+
<button
|
896 |
+
class={rep.color === "orangeCarbon"
|
897 |
+
? "bg-orange-600 rounded-full w-8 h-8 border-4 border-gray-300 cursor-pointer"
|
898 |
+
: "bg-orange-600 rounded-full w-8 h-8 border-4 border-white cursor-pointer"}
|
899 |
+
on:click={() => (rep.color = "orangeCarbon")}
|
900 |
+
/>
|
901 |
+
<button
|
902 |
+
class={rep.color === "redCarbon"
|
903 |
+
? "bg-red-600 rounded-full w-8 h-8 border-4 border-gray-300 cursor-pointer"
|
904 |
+
: "bg-red-600 rounded-full w-8 h-8 border-4 border-white cursor-pointer"}
|
905 |
+
on:click={() => (rep.color = "redCarbon")}
|
906 |
+
/>
|
907 |
+
<button
|
908 |
+
class={rep.color === "blackCarbon"
|
909 |
+
? "bg-black rounded-full w-8 h-8 border-4 border-gray-300 cursor-pointer"
|
910 |
+
: "bg-black rounded-full w-8 h-8 border-4 border-white cursor-pointer"}
|
911 |
+
on:click={() => (rep.color = "blackCarbon")}
|
912 |
+
/>
|
913 |
+
<button
|
914 |
+
class={rep.color === "blueCarbon"
|
915 |
+
? "bg-blue-600 rounded-full w-8 h-8 border-4 border-gray-300 cursor-pointer"
|
916 |
+
: "bg-blue-600 rounded-full w-8 h-8 border-4 border-white cursor-pointer"}
|
917 |
+
on:click={() => (rep.color = "blueCarbon")}
|
918 |
+
/>
|
919 |
+
<button
|
920 |
+
class={rep.color === "grayCarbon"
|
921 |
+
? "bg-gray-600 rounded-full w-8 h-8 border-4 border-gray-300 cursor-pointer"
|
922 |
+
: "bg-gray-600 rounded-full w-8 h-8 border-4 border-white cursor-pointer"}
|
923 |
+
on:click={() => (rep.color = "grayCarbon")}
|
924 |
+
/>
|
925 |
+
<button
|
926 |
+
class={rep.color === "greenCarbon"
|
927 |
+
? "bg-green-600 rounded-full w-8 h-8 border-4 border-gray-300 cursor-pointer"
|
928 |
+
: "bg-green-600 rounded-full w-8 h-8 border-4 border-white cursor-pointer"}
|
929 |
+
on:click={() => (rep.color = "greenCarbon")}
|
930 |
+
/>
|
931 |
+
<button
|
932 |
+
class={rep.color === "cyanCarbon"
|
933 |
+
? "bg-cyan-600 rounded-full w-8 h-8 border-4 border-gray-300 cursor-pointer"
|
934 |
+
: "bg-cyan-600 rounded-full w-8 h-8 border-4 border-white cursor-pointer"}
|
935 |
+
on:click={() => (rep.color = "cyanCarbon")}
|
936 |
+
/>
|
937 |
+
</div>
|
938 |
+
<div class="flex space-x-2 py-2 text-sm">
|
939 |
+
<button
|
940 |
+
class={rep.color === "alphafold"
|
941 |
+
? "rounded-lg p-1 border border-gray-400 cursor-pointer bg-gray-200"
|
942 |
+
: "rounded-lg p-1 border border-gray-200 cursor-pointer bg-white"}
|
943 |
+
on:click={() => (rep.color = "alphafold")}
|
944 |
+
>
|
945 |
+
AlphaFold
|
946 |
+
</button>
|
947 |
+
<button
|
948 |
+
class={rep.color === "default"
|
949 |
+
? "rounded-lg p-1 border border-gray-400 cursor-pointer bg-gray-200"
|
950 |
+
: "rounded-lg p-1 border border-gray-200 cursor-pointer bg-white"}
|
951 |
+
on:click={() => (rep.color = "default")}
|
952 |
+
>
|
953 |
+
PyMol
|
954 |
+
</button>
|
955 |
+
<button
|
956 |
+
class={rep.color === "Jmol"
|
957 |
+
? "rounded-lg p-1 border border-gray-400 cursor-pointer bg-gray-200"
|
958 |
+
: "rounded-lg p-1 border border-gray-200 cursor-pointer bg-white"}
|
959 |
+
on:click={() => (rep.color = "Jmol")}
|
960 |
+
>
|
961 |
+
Jmol
|
962 |
+
</button>
|
963 |
+
<button
|
964 |
+
class={rep.color === "chain"
|
965 |
+
? "rounded-lg p-1 border border-gray-400 cursor-pointer bg-gray-200"
|
966 |
+
: "rounded-lg p-1 border border-gray-200 cursor-pointer bg-white"}
|
967 |
+
on:click={() => (rep.color = "chain")}
|
968 |
+
>
|
969 |
+
Chain
|
970 |
+
</button>
|
971 |
+
<button
|
972 |
+
class={rep.color === "spectrum"
|
973 |
+
? "rounded-lg p-1 border border-gray-400 cursor-pointer bg-gray-200"
|
974 |
+
: "rounded-lg p-1 border border-gray-200 cursor-pointer bg-white"}
|
975 |
+
on:click={() => (rep.color = "spectrum")}
|
976 |
+
>
|
977 |
+
Spectrum
|
978 |
+
</button>
|
979 |
+
</div>
|
980 |
+
</div>
|
981 |
+
{/if}
|
982 |
+
</div>
|
983 |
+
</div>
|
984 |
+
{/each}
|
985 |
+
|
986 |
+
<button
|
987 |
+
class="w-full flex text-orange-600 justify-center my-2 text-sm space-x-2 items-center hover:text-gray-600 cursor-pointer"
|
988 |
+
on:click={insertRep}
|
989 |
+
>
|
990 |
+
<svg
|
991 |
+
xmlns="http://www.w3.org/2000/svg"
|
992 |
+
fill="none"
|
993 |
+
viewBox="0 0 24 24"
|
994 |
+
stroke-width="2"
|
995 |
+
stroke="currentColor"
|
996 |
+
class="w-4 h-4"
|
997 |
+
>
|
998 |
+
<path
|
999 |
+
stroke-linecap="round"
|
1000 |
+
stroke-linejoin="round"
|
1001 |
+
d="M12 9v6m3-3H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"
|
1002 |
+
/>
|
1003 |
+
</svg>
|
1004 |
+
|
1005 |
+
<div>Add representation</div>
|
1006 |
+
</button>
|
1007 |
+
</div>
|
1008 |
+
{/if}
|
1009 |
+
</div>
|
1010 |
+
</div>
|
1011 |
+
</div>
|
1012 |
+
|
1013 |
+
<style>
|
1014 |
+
*,
|
1015 |
+
:before,
|
1016 |
+
:after {
|
1017 |
+
box-sizing: border-box;
|
1018 |
+
border-width: 0;
|
1019 |
+
border-style: solid;
|
1020 |
+
border-color: #e5e7eb;
|
1021 |
+
}
|
1022 |
+
:before,
|
1023 |
+
:after {
|
1024 |
+
--tw-content: "";
|
1025 |
+
}
|
1026 |
+
html {
|
1027 |
+
line-height: 1.5;
|
1028 |
+
-webkit-text-size-adjust: 100%;
|
1029 |
+
-moz-tab-size: 4;
|
1030 |
+
-o-tab-size: 4;
|
1031 |
+
tab-size: 4;
|
1032 |
+
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
|
1033 |
+
Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif,
|
1034 |
+
"Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
|
1035 |
+
font-feature-settings: normal;
|
1036 |
+
}
|
1037 |
+
body {
|
1038 |
+
margin: 0;
|
1039 |
+
line-height: inherit;
|
1040 |
+
}
|
1041 |
+
hr {
|
1042 |
+
height: 0;
|
1043 |
+
color: inherit;
|
1044 |
+
border-top-width: 1px;
|
1045 |
+
}
|
1046 |
+
abbr:where([title]) {
|
1047 |
+
-webkit-text-decoration: underline dotted;
|
1048 |
+
text-decoration: underline dotted;
|
1049 |
+
}
|
1050 |
+
h1,
|
1051 |
+
h2,
|
1052 |
+
h3,
|
1053 |
+
h4,
|
1054 |
+
h5,
|
1055 |
+
h6 {
|
1056 |
+
font-size: inherit;
|
1057 |
+
font-weight: inherit;
|
1058 |
+
}
|
1059 |
+
a {
|
1060 |
+
color: inherit;
|
1061 |
+
text-decoration: inherit;
|
1062 |
+
}
|
1063 |
+
b,
|
1064 |
+
strong {
|
1065 |
+
font-weight: bolder;
|
1066 |
+
}
|
1067 |
+
code,
|
1068 |
+
kbd,
|
1069 |
+
samp,
|
1070 |
+
pre {
|
1071 |
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
1072 |
+
Liberation Mono, Courier New, monospace;
|
1073 |
+
font-size: 1em;
|
1074 |
+
}
|
1075 |
+
small {
|
1076 |
+
font-size: 80%;
|
1077 |
+
}
|
1078 |
+
sub,
|
1079 |
+
sup {
|
1080 |
+
font-size: 75%;
|
1081 |
+
line-height: 0;
|
1082 |
+
position: relative;
|
1083 |
+
vertical-align: baseline;
|
1084 |
+
}
|
1085 |
+
sub {
|
1086 |
+
bottom: -0.25em;
|
1087 |
+
}
|
1088 |
+
sup {
|
1089 |
+
top: -0.5em;
|
1090 |
+
}
|
1091 |
+
table {
|
1092 |
+
text-indent: 0;
|
1093 |
+
border-color: inherit;
|
1094 |
+
border-collapse: collapse;
|
1095 |
+
}
|
1096 |
+
button,
|
1097 |
+
input,
|
1098 |
+
optgroup,
|
1099 |
+
select,
|
1100 |
+
textarea {
|
1101 |
+
font-family: inherit;
|
1102 |
+
font-size: 100%;
|
1103 |
+
font-weight: inherit;
|
1104 |
+
line-height: inherit;
|
1105 |
+
color: inherit;
|
1106 |
+
margin: 0;
|
1107 |
+
padding: 0;
|
1108 |
+
}
|
1109 |
+
button,
|
1110 |
+
select {
|
1111 |
+
text-transform: none;
|
1112 |
+
}
|
1113 |
+
button,
|
1114 |
+
[type="button"],
|
1115 |
+
[type="reset"],
|
1116 |
+
[type="submit"] {
|
1117 |
+
-webkit-appearance: button;
|
1118 |
+
background-color: transparent;
|
1119 |
+
background-image: none;
|
1120 |
+
}
|
1121 |
+
:-moz-focusring {
|
1122 |
+
outline: auto;
|
1123 |
+
}
|
1124 |
+
:-moz-ui-invalid {
|
1125 |
+
box-shadow: none;
|
1126 |
+
}
|
1127 |
+
progress {
|
1128 |
+
vertical-align: baseline;
|
1129 |
+
}
|
1130 |
+
::-webkit-inner-spin-button,
|
1131 |
+
::-webkit-outer-spin-button {
|
1132 |
+
height: auto;
|
1133 |
+
}
|
1134 |
+
[type="search"] {
|
1135 |
+
-webkit-appearance: textfield;
|
1136 |
+
outline-offset: -2px;
|
1137 |
+
}
|
1138 |
+
::-webkit-search-decoration {
|
1139 |
+
-webkit-appearance: none;
|
1140 |
+
}
|
1141 |
+
::-webkit-file-upload-button {
|
1142 |
+
-webkit-appearance: button;
|
1143 |
+
font: inherit;
|
1144 |
+
}
|
1145 |
+
summary {
|
1146 |
+
display: list-item;
|
1147 |
+
}
|
1148 |
+
blockquote,
|
1149 |
+
dl,
|
1150 |
+
dd,
|
1151 |
+
h1,
|
1152 |
+
h2,
|
1153 |
+
h3,
|
1154 |
+
h4,
|
1155 |
+
h5,
|
1156 |
+
h6,
|
1157 |
+
hr,
|
1158 |
+
figure,
|
1159 |
+
p,
|
1160 |
+
pre {
|
1161 |
+
margin: 0;
|
1162 |
+
}
|
1163 |
+
fieldset {
|
1164 |
+
margin: 0;
|
1165 |
+
padding: 0;
|
1166 |
+
}
|
1167 |
+
legend {
|
1168 |
+
padding: 0;
|
1169 |
+
}
|
1170 |
+
ol,
|
1171 |
+
ul,
|
1172 |
+
menu {
|
1173 |
+
list-style: none;
|
1174 |
+
margin: 0;
|
1175 |
+
padding: 0;
|
1176 |
+
}
|
1177 |
+
textarea {
|
1178 |
+
resize: vertical;
|
1179 |
+
}
|
1180 |
+
input::-moz-placeholder,
|
1181 |
+
textarea::-moz-placeholder {
|
1182 |
+
opacity: 1;
|
1183 |
+
color: #9ca3af;
|
1184 |
+
}
|
1185 |
+
input::placeholder,
|
1186 |
+
textarea::placeholder {
|
1187 |
+
opacity: 1;
|
1188 |
+
color: #9ca3af;
|
1189 |
+
}
|
1190 |
+
button,
|
1191 |
+
[role="button"] {
|
1192 |
+
cursor: pointer;
|
1193 |
+
}
|
1194 |
+
:disabled {
|
1195 |
+
cursor: default;
|
1196 |
+
}
|
1197 |
+
img,
|
1198 |
+
svg,
|
1199 |
+
video,
|
1200 |
+
canvas,
|
1201 |
+
audio,
|
1202 |
+
iframe,
|
1203 |
+
embed,
|
1204 |
+
object {
|
1205 |
+
display: block;
|
1206 |
+
vertical-align: middle;
|
1207 |
+
}
|
1208 |
+
img,
|
1209 |
+
video {
|
1210 |
+
max-width: 100%;
|
1211 |
+
height: auto;
|
1212 |
+
}
|
1213 |
+
[hidden] {
|
1214 |
+
display: none;
|
1215 |
+
}
|
1216 |
+
*,
|
1217 |
+
:before,
|
1218 |
+
:after {
|
1219 |
+
--tw-border-spacing-x: 0;
|
1220 |
+
--tw-border-spacing-y: 0;
|
1221 |
+
--tw-translate-x: 0;
|
1222 |
+
--tw-translate-y: 0;
|
1223 |
+
--tw-rotate: 0;
|
1224 |
+
--tw-skew-x: 0;
|
1225 |
+
--tw-skew-y: 0;
|
1226 |
+
--tw-scale-x: 1;
|
1227 |
+
--tw-scale-y: 1;
|
1228 |
+
--tw-pan-x: ;
|
1229 |
+
--tw-pan-y: ;
|
1230 |
+
--tw-pinch-zoom: ;
|
1231 |
+
--tw-scroll-snap-strictness: proximity;
|
1232 |
+
--tw-ordinal: ;
|
1233 |
+
--tw-slashed-zero: ;
|
1234 |
+
--tw-numeric-figure: ;
|
1235 |
+
--tw-numeric-spacing: ;
|
1236 |
+
--tw-numeric-fraction: ;
|
1237 |
+
--tw-ring-inset: ;
|
1238 |
+
--tw-ring-offset-width: 0px;
|
1239 |
+
--tw-ring-offset-color: #fff;
|
1240 |
+
--tw-ring-color: rgb(59 130 246 / 0.5);
|
1241 |
+
--tw-ring-offset-shadow: 0 0 #0000;
|
1242 |
+
--tw-ring-shadow: 0 0 #0000;
|
1243 |
+
--tw-shadow: 0 0 #0000;
|
1244 |
+
--tw-shadow-colored: 0 0 #0000;
|
1245 |
+
--tw-blur: ;
|
1246 |
+
--tw-brightness: ;
|
1247 |
+
--tw-contrast: ;
|
1248 |
+
--tw-grayscale: ;
|
1249 |
+
--tw-hue-rotate: ;
|
1250 |
+
--tw-invert: ;
|
1251 |
+
--tw-saturate: ;
|
1252 |
+
--tw-sepia: ;
|
1253 |
+
--tw-drop-shadow: ;
|
1254 |
+
--tw-backdrop-blur: ;
|
1255 |
+
--tw-backdrop-brightness: ;
|
1256 |
+
--tw-backdrop-contrast: ;
|
1257 |
+
--tw-backdrop-grayscale: ;
|
1258 |
+
--tw-backdrop-hue-rotate: ;
|
1259 |
+
--tw-backdrop-invert: ;
|
1260 |
+
--tw-backdrop-opacity: ;
|
1261 |
+
--tw-backdrop-saturate: ;
|
1262 |
+
--tw-backdrop-sepia: ;
|
1263 |
+
}
|
1264 |
+
::backdrop {
|
1265 |
+
--tw-border-spacing-x: 0;
|
1266 |
+
--tw-border-spacing-y: 0;
|
1267 |
+
--tw-translate-x: 0;
|
1268 |
+
--tw-translate-y: 0;
|
1269 |
+
--tw-rotate: 0;
|
1270 |
+
--tw-skew-x: 0;
|
1271 |
+
--tw-skew-y: 0;
|
1272 |
+
--tw-scale-x: 1;
|
1273 |
+
--tw-scale-y: 1;
|
1274 |
+
--tw-pan-x: ;
|
1275 |
+
--tw-pan-y: ;
|
1276 |
+
--tw-pinch-zoom: ;
|
1277 |
+
--tw-scroll-snap-strictness: proximity;
|
1278 |
+
--tw-ordinal: ;
|
1279 |
+
--tw-slashed-zero: ;
|
1280 |
+
--tw-numeric-figure: ;
|
1281 |
+
--tw-numeric-spacing: ;
|
1282 |
+
--tw-numeric-fraction: ;
|
1283 |
+
--tw-ring-inset: ;
|
1284 |
+
--tw-ring-offset-width: 0px;
|
1285 |
+
--tw-ring-offset-color: #fff;
|
1286 |
+
--tw-ring-color: rgb(59 130 246 / 0.5);
|
1287 |
+
--tw-ring-offset-shadow: 0 0 #0000;
|
1288 |
+
--tw-ring-shadow: 0 0 #0000;
|
1289 |
+
--tw-shadow: 0 0 #0000;
|
1290 |
+
--tw-shadow-colored: 0 0 #0000;
|
1291 |
+
--tw-blur: ;
|
1292 |
+
--tw-brightness: ;
|
1293 |
+
--tw-contrast: ;
|
1294 |
+
--tw-grayscale: ;
|
1295 |
+
--tw-hue-rotate: ;
|
1296 |
+
--tw-invert: ;
|
1297 |
+
--tw-saturate: ;
|
1298 |
+
--tw-sepia: ;
|
1299 |
+
--tw-drop-shadow: ;
|
1300 |
+
--tw-backdrop-blur: ;
|
1301 |
+
--tw-backdrop-brightness: ;
|
1302 |
+
--tw-backdrop-contrast: ;
|
1303 |
+
--tw-backdrop-grayscale: ;
|
1304 |
+
--tw-backdrop-hue-rotate: ;
|
1305 |
+
--tw-backdrop-invert: ;
|
1306 |
+
--tw-backdrop-opacity: ;
|
1307 |
+
--tw-backdrop-saturate: ;
|
1308 |
+
--tw-backdrop-sepia: ;
|
1309 |
+
}
|
1310 |
+
.container {
|
1311 |
+
width: 100%;
|
1312 |
+
}
|
1313 |
+
@media (min-width: 640px) {
|
1314 |
+
.container {
|
1315 |
+
max-width: 640px;
|
1316 |
+
}
|
1317 |
+
}
|
1318 |
+
@media (min-width: 768px) {
|
1319 |
+
.container {
|
1320 |
+
max-width: 768px;
|
1321 |
+
}
|
1322 |
+
}
|
1323 |
+
@media (min-width: 1024px) {
|
1324 |
+
.container {
|
1325 |
+
max-width: 1024px;
|
1326 |
+
}
|
1327 |
+
}
|
1328 |
+
@media (min-width: 1280px) {
|
1329 |
+
.container {
|
1330 |
+
max-width: 1280px;
|
1331 |
+
}
|
1332 |
+
}
|
1333 |
+
@media (min-width: 1536px) {
|
1334 |
+
.container {
|
1335 |
+
max-width: 1536px;
|
1336 |
+
}
|
1337 |
+
}
|
1338 |
+
.sr-only {
|
1339 |
+
position: absolute;
|
1340 |
+
width: 1px;
|
1341 |
+
height: 1px;
|
1342 |
+
padding: 0;
|
1343 |
+
margin: -1px;
|
1344 |
+
overflow: hidden;
|
1345 |
+
clip: rect(0, 0, 0, 0);
|
1346 |
+
white-space: nowrap;
|
1347 |
+
border-width: 0;
|
1348 |
+
}
|
1349 |
+
.visible {
|
1350 |
+
visibility: visible;
|
1351 |
+
}
|
1352 |
+
.absolute {
|
1353 |
+
position: absolute;
|
1354 |
+
}
|
1355 |
+
.relative {
|
1356 |
+
position: relative;
|
1357 |
+
}
|
1358 |
+
.bottom-0 {
|
1359 |
+
bottom: 0px;
|
1360 |
+
}
|
1361 |
+
.left-0 {
|
1362 |
+
left: 0px;
|
1363 |
+
}
|
1364 |
+
.right-0 {
|
1365 |
+
right: 0px;
|
1366 |
+
}
|
1367 |
+
.right-2 {
|
1368 |
+
right: 0.5rem;
|
1369 |
+
}
|
1370 |
+
.right-2\.5 {
|
1371 |
+
right: 0.625rem;
|
1372 |
+
}
|
1373 |
+
.top-0 {
|
1374 |
+
top: 0px;
|
1375 |
+
}
|
1376 |
+
.top-2 {
|
1377 |
+
top: 0.5rem;
|
1378 |
+
}
|
1379 |
+
.top-2\.5 {
|
1380 |
+
top: 0.625rem;
|
1381 |
+
}
|
1382 |
+
.z-10 {
|
1383 |
+
z-index: 10;
|
1384 |
+
}
|
1385 |
+
.z-50 {
|
1386 |
+
z-index: 50;
|
1387 |
+
}
|
1388 |
+
.my-2 {
|
1389 |
+
margin-top: 0.5rem;
|
1390 |
+
margin-bottom: 0.5rem;
|
1391 |
+
}
|
1392 |
+
.mb-2 {
|
1393 |
+
margin-bottom: 0.5rem;
|
1394 |
+
}
|
1395 |
+
.mb-4 {
|
1396 |
+
margin-bottom: 1rem;
|
1397 |
+
}
|
1398 |
+
.mr-2 {
|
1399 |
+
margin-right: 0.5rem;
|
1400 |
+
}
|
1401 |
+
.ml-1 {
|
1402 |
+
margin-left: 0.25rem;
|
1403 |
+
}
|
1404 |
+
.ml-2 {
|
1405 |
+
margin-left: 0.5rem;
|
1406 |
+
}
|
1407 |
+
.mr-5 {
|
1408 |
+
margin-right: 1.25rem;
|
1409 |
+
}
|
1410 |
+
.mt-2 {
|
1411 |
+
margin-top: 0.5rem;
|
1412 |
+
}
|
1413 |
+
.block {
|
1414 |
+
display: block;
|
1415 |
+
}
|
1416 |
+
.flex {
|
1417 |
+
display: flex;
|
1418 |
+
}
|
1419 |
+
.inline-flex {
|
1420 |
+
display: inline-flex;
|
1421 |
+
}
|
1422 |
+
.contents {
|
1423 |
+
display: contents;
|
1424 |
+
}
|
1425 |
+
.h-2 {
|
1426 |
+
height: 0.5rem;
|
1427 |
+
}
|
1428 |
+
.h-3 {
|
1429 |
+
height: 0.75rem;
|
1430 |
+
}
|
1431 |
+
.h-4 {
|
1432 |
+
height: 1rem;
|
1433 |
+
}
|
1434 |
+
.h-5 {
|
1435 |
+
height: 1.25rem;
|
1436 |
+
}
|
1437 |
+
.h-6 {
|
1438 |
+
height: 1.5rem;
|
1439 |
+
}
|
1440 |
+
.h-8 {
|
1441 |
+
height: 2rem;
|
1442 |
+
}
|
1443 |
+
.h-96 {
|
1444 |
+
height: 24rem;
|
1445 |
+
}
|
1446 |
+
.h-full {
|
1447 |
+
height: 100%;
|
1448 |
+
}
|
1449 |
+
.h-screen {
|
1450 |
+
height: 100vh;
|
1451 |
+
}
|
1452 |
+
.w-1\/2 {
|
1453 |
+
width: 50%;
|
1454 |
+
}
|
1455 |
+
.w-1\/3 {
|
1456 |
+
width: 33.333333%;
|
1457 |
+
}
|
1458 |
+
.w-11 {
|
1459 |
+
width: 2.75rem;
|
1460 |
+
}
|
1461 |
+
.w-2\/3 {
|
1462 |
+
width: 66.666667%;
|
1463 |
+
}
|
1464 |
+
.w-3 {
|
1465 |
+
width: 0.75rem;
|
1466 |
+
}
|
1467 |
+
.w-4 {
|
1468 |
+
width: 1rem;
|
1469 |
+
}
|
1470 |
+
.w-5 {
|
1471 |
+
width: 1.25rem;
|
1472 |
+
}
|
1473 |
+
.w-8 {
|
1474 |
+
width: 2rem;
|
1475 |
+
}
|
1476 |
+
.w-80 {
|
1477 |
+
width: 20rem;
|
1478 |
+
}
|
1479 |
+
.w-full {
|
1480 |
+
width: 100%;
|
1481 |
+
}
|
1482 |
+
.max-w-4xl {
|
1483 |
+
max-width: 56rem;
|
1484 |
+
}
|
1485 |
+
.rotate-90 {
|
1486 |
+
--tw-rotate: 90deg;
|
1487 |
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y))
|
1488 |
+
rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y))
|
1489 |
+
scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
1490 |
+
}
|
1491 |
+
.transform {
|
1492 |
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y))
|
1493 |
+
rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y))
|
1494 |
+
scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
1495 |
+
}
|
1496 |
+
.cursor-pointer {
|
1497 |
+
cursor: pointer;
|
1498 |
+
}
|
1499 |
+
.appearance-none {
|
1500 |
+
-webkit-appearance: none;
|
1501 |
+
-moz-appearance: none;
|
1502 |
+
appearance: none;
|
1503 |
+
}
|
1504 |
+
.flex-col {
|
1505 |
+
flex-direction: column;
|
1506 |
+
}
|
1507 |
+
.fill-current {
|
1508 |
+
fill: currentColor;
|
1509 |
+
}
|
1510 |
+
.flex-wrap {
|
1511 |
+
flex-wrap: wrap;
|
1512 |
+
}
|
1513 |
+
.items-center {
|
1514 |
+
align-items: center;
|
1515 |
+
}
|
1516 |
+
.justify-center {
|
1517 |
+
justify-content: center;
|
1518 |
+
}
|
1519 |
+
.gap-px {
|
1520 |
+
gap: 1px;
|
1521 |
+
}
|
1522 |
+
.space-x-1 > :not([hidden]) ~ :not([hidden]) {
|
1523 |
+
--tw-space-x-reverse: 0;
|
1524 |
+
margin-right: calc(0.25rem * var(--tw-space-x-reverse));
|
1525 |
+
margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));
|
1526 |
+
}
|
1527 |
+
.space-x-2 > :not([hidden]) ~ :not([hidden]) {
|
1528 |
+
--tw-space-x-reverse: 0;
|
1529 |
+
margin-right: calc(0.5rem * var(--tw-space-x-reverse));
|
1530 |
+
margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
|
1531 |
+
}
|
1532 |
+
.divide-x > :not([hidden]) ~ :not([hidden]) {
|
1533 |
+
--tw-divide-x-reverse: 0;
|
1534 |
+
border-right-width: calc(1px * var(--tw-divide-x-reverse));
|
1535 |
+
border-left-width: calc(1px * calc(1 - var(--tw-divide-x-reverse)));
|
1536 |
+
}
|
1537 |
+
.divide-y > :not([hidden]) ~ :not([hidden]) {
|
1538 |
+
--tw-divide-y-reverse: 0;
|
1539 |
+
border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
|
1540 |
+
border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
|
1541 |
+
}
|
1542 |
+
.overflow-hidden {
|
1543 |
+
overflow: hidden;
|
1544 |
+
}
|
1545 |
+
.overflow-y-auto {
|
1546 |
+
overflow-y: auto;
|
1547 |
+
}
|
1548 |
+
.rounded {
|
1549 |
+
border-radius: 0.25rem;
|
1550 |
+
}
|
1551 |
+
.rounded-full {
|
1552 |
+
border-radius: 9999px;
|
1553 |
+
}
|
1554 |
+
.rounded-lg {
|
1555 |
+
border-radius: 0.5rem;
|
1556 |
+
}
|
1557 |
+
.rounded-br {
|
1558 |
+
border-bottom-right-radius: 0.25rem;
|
1559 |
+
}
|
1560 |
+
.border {
|
1561 |
+
border-width: 1px;
|
1562 |
+
}
|
1563 |
+
.border-4 {
|
1564 |
+
border-width: 4px;
|
1565 |
+
}
|
1566 |
+
.border-b {
|
1567 |
+
border-bottom-width: 1px;
|
1568 |
+
}
|
1569 |
+
.border-l {
|
1570 |
+
border-left-width: 1px;
|
1571 |
+
}
|
1572 |
+
.border-r {
|
1573 |
+
border-right-width: 1px;
|
1574 |
+
}
|
1575 |
+
.border-t {
|
1576 |
+
border-top-width: 1px;
|
1577 |
+
}
|
1578 |
+
.border-solid {
|
1579 |
+
border-style: solid;
|
1580 |
+
}
|
1581 |
+
.border-dashed {
|
1582 |
+
border-style: dashed;
|
1583 |
+
}
|
1584 |
+
.border-gray-200 {
|
1585 |
+
--tw-border-opacity: 1;
|
1586 |
+
border-color: rgb(229 231 235 / var(--tw-border-opacity));
|
1587 |
+
}
|
1588 |
+
.border-gray-300 {
|
1589 |
+
--tw-border-opacity: 1;
|
1590 |
+
border-color: rgb(209 213 219 / var(--tw-border-opacity));
|
1591 |
+
}
|
1592 |
+
.border-gray-400 {
|
1593 |
+
--tw-border-opacity: 1;
|
1594 |
+
border-color: rgb(156 163 175 / var(--tw-border-opacity));
|
1595 |
+
}
|
1596 |
+
.border-white {
|
1597 |
+
--tw-border-opacity: 1;
|
1598 |
+
border-color: rgb(255 255 255 / var(--tw-border-opacity));
|
1599 |
+
}
|
1600 |
+
.bg-black {
|
1601 |
+
--tw-bg-opacity: 1;
|
1602 |
+
background-color: rgb(0 0 0 / var(--tw-bg-opacity));
|
1603 |
+
}
|
1604 |
+
.bg-blue-600 {
|
1605 |
+
--tw-bg-opacity: 1;
|
1606 |
+
background-color: rgb(37 99 235 / var(--tw-bg-opacity));
|
1607 |
+
}
|
1608 |
+
.bg-cyan-600 {
|
1609 |
+
--tw-bg-opacity: 1;
|
1610 |
+
background-color: rgb(8 145 178 / var(--tw-bg-opacity));
|
1611 |
+
}
|
1612 |
+
.bg-gray-100 {
|
1613 |
+
--tw-bg-opacity: 1;
|
1614 |
+
background-color: rgb(243 244 246 / var(--tw-bg-opacity));
|
1615 |
+
}
|
1616 |
+
.bg-gray-200 {
|
1617 |
+
--tw-bg-opacity: 1;
|
1618 |
+
background-color: rgb(229 231 235 / var(--tw-bg-opacity));
|
1619 |
+
}
|
1620 |
+
.bg-gray-50 {
|
1621 |
+
--tw-bg-opacity: 1;
|
1622 |
+
background-color: rgb(249 250 251 / var(--tw-bg-opacity));
|
1623 |
+
}
|
1624 |
+
.bg-gray-600 {
|
1625 |
+
--tw-bg-opacity: 1;
|
1626 |
+
background-color: rgb(75 85 99 / var(--tw-bg-opacity));
|
1627 |
+
}
|
1628 |
+
.bg-green-600 {
|
1629 |
+
--tw-bg-opacity: 1;
|
1630 |
+
background-color: rgb(22 163 74 / var(--tw-bg-opacity));
|
1631 |
+
}
|
1632 |
+
.bg-orange-600 {
|
1633 |
+
--tw-bg-opacity: 1;
|
1634 |
+
background-color: rgb(234 88 12 / var(--tw-bg-opacity));
|
1635 |
+
}
|
1636 |
+
.bg-red-600 {
|
1637 |
+
--tw-bg-opacity: 1;
|
1638 |
+
background-color: rgb(220 38 38 / var(--tw-bg-opacity));
|
1639 |
+
}
|
1640 |
+
.bg-transparent {
|
1641 |
+
background-color: transparent;
|
1642 |
+
}
|
1643 |
+
.bg-white {
|
1644 |
+
--tw-bg-opacity: 1;
|
1645 |
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
1646 |
+
}
|
1647 |
+
.p-1 {
|
1648 |
+
padding: 0.25rem;
|
1649 |
+
}
|
1650 |
+
.p-1\.5 {
|
1651 |
+
padding: 0.375rem;
|
1652 |
+
}
|
1653 |
+
.p-2 {
|
1654 |
+
padding: 0.5rem;
|
1655 |
+
}
|
1656 |
+
.p-2\.5 {
|
1657 |
+
padding: 0.625rem;
|
1658 |
+
}
|
1659 |
+
.p-4 {
|
1660 |
+
padding: 1rem;
|
1661 |
+
}
|
1662 |
+
.p-5 {
|
1663 |
+
padding: 1.25rem;
|
1664 |
+
}
|
1665 |
+
.px-2 {
|
1666 |
+
padding-left: 0.5rem;
|
1667 |
+
padding-right: 0.5rem;
|
1668 |
+
}
|
1669 |
+
.px-4 {
|
1670 |
+
padding-left: 1rem;
|
1671 |
+
padding-right: 1rem;
|
1672 |
+
}
|
1673 |
+
.py-1 {
|
1674 |
+
padding-top: 0.25rem;
|
1675 |
+
padding-bottom: 0.25rem;
|
1676 |
+
}
|
1677 |
+
.py-2 {
|
1678 |
+
padding-top: 0.5rem;
|
1679 |
+
padding-bottom: 0.5rem;
|
1680 |
+
}
|
1681 |
+
.py-4 {
|
1682 |
+
padding-top: 1rem;
|
1683 |
+
padding-bottom: 1rem;
|
1684 |
+
}
|
1685 |
+
.text-center {
|
1686 |
+
text-align: center;
|
1687 |
+
}
|
1688 |
+
.text-base {
|
1689 |
+
font-size: 1rem;
|
1690 |
+
line-height: 1.5rem;
|
1691 |
+
}
|
1692 |
+
.text-sm {
|
1693 |
+
font-size: 0.875rem;
|
1694 |
+
line-height: 1.25rem;
|
1695 |
+
}
|
1696 |
+
.text-xs {
|
1697 |
+
font-size: 0.75rem;
|
1698 |
+
line-height: 1rem;
|
1699 |
+
}
|
1700 |
+
.font-medium {
|
1701 |
+
font-weight: 500;
|
1702 |
+
}
|
1703 |
+
.font-semibold {
|
1704 |
+
font-weight: 600;
|
1705 |
+
}
|
1706 |
+
.text-gray-400 {
|
1707 |
+
--tw-text-opacity: 1;
|
1708 |
+
color: rgb(156 163 175 / var(--tw-text-opacity));
|
1709 |
+
}
|
1710 |
+
.text-gray-500 {
|
1711 |
+
--tw-text-opacity: 1;
|
1712 |
+
color: rgb(107 114 128 / var(--tw-text-opacity));
|
1713 |
+
}
|
1714 |
+
.text-gray-600 {
|
1715 |
+
--tw-text-opacity: 1;
|
1716 |
+
color: rgb(75 85 99 / var(--tw-text-opacity));
|
1717 |
+
}
|
1718 |
+
.text-gray-700 {
|
1719 |
+
--tw-text-opacity: 1;
|
1720 |
+
color: rgb(55 65 81 / var(--tw-text-opacity));
|
1721 |
+
}
|
1722 |
+
.text-gray-900 {
|
1723 |
+
--tw-text-opacity: 1;
|
1724 |
+
color: rgb(17 24 39 / var(--tw-text-opacity));
|
1725 |
+
}
|
1726 |
+
.text-orange-600 {
|
1727 |
+
--tw-text-opacity: 1;
|
1728 |
+
color: rgb(234 88 12 / var(--tw-text-opacity));
|
1729 |
+
}
|
1730 |
+
.invert {
|
1731 |
+
--tw-invert: invert(100%);
|
1732 |
+
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast)
|
1733 |
+
var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert)
|
1734 |
+
var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
1735 |
+
}
|
1736 |
+
.transition-transform {
|
1737 |
+
transition-property: transform;
|
1738 |
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
1739 |
+
transition-duration: 0.15s;
|
1740 |
+
}
|
1741 |
+
.scroll-hide {
|
1742 |
+
-ms-overflow-style: none;
|
1743 |
+
scrollbar-width: none;
|
1744 |
+
}
|
1745 |
+
.sr-only {
|
1746 |
+
clip: rect(0, 0, 0, 0);
|
1747 |
+
position: absolute;
|
1748 |
+
margin: -1px;
|
1749 |
+
border-width: 0;
|
1750 |
+
padding: 0;
|
1751 |
+
width: 1px;
|
1752 |
+
height: 1px;
|
1753 |
+
overflow: hidden;
|
1754 |
+
white-space: nowrap;
|
1755 |
+
}
|
1756 |
+
.scroll-hide::-webkit-scrollbar {
|
1757 |
+
display: none;
|
1758 |
+
}
|
1759 |
+
.gradio-container {
|
1760 |
+
-webkit-text-size-adjust: 100%;
|
1761 |
+
line-height: 1.5;
|
1762 |
+
font-family: Source Sans Pro, ui-sans-serif, system-ui, -apple-system,
|
1763 |
+
BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans,
|
1764 |
+
sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol,
|
1765 |
+
"Noto Color Emoji";
|
1766 |
+
-moz-tab-size: 4;
|
1767 |
+
-o-tab-size: 4;
|
1768 |
+
tab-size: 4;
|
1769 |
+
}
|
1770 |
+
.cropper-container {
|
1771 |
+
position: relative;
|
1772 |
+
touch-action: none;
|
1773 |
+
font-size: 0;
|
1774 |
+
line-height: 0;
|
1775 |
+
direction: ltr;
|
1776 |
+
-webkit-user-select: none;
|
1777 |
+
-moz-user-select: none;
|
1778 |
+
user-select: none;
|
1779 |
+
}
|
1780 |
+
.cropper-container img {
|
1781 |
+
display: block;
|
1782 |
+
image-orientation: 0deg;
|
1783 |
+
width: 100%;
|
1784 |
+
min-width: 0 !important;
|
1785 |
+
max-width: none !important;
|
1786 |
+
height: 100%;
|
1787 |
+
min-height: 0 !important;
|
1788 |
+
max-height: none !important;
|
1789 |
+
}
|
1790 |
+
.cropper-wrap-box,
|
1791 |
+
.cropper-canvas,
|
1792 |
+
.cropper-drag-box,
|
1793 |
+
.cropper-crop-box,
|
1794 |
+
.cropper-modal {
|
1795 |
+
position: absolute;
|
1796 |
+
top: 0;
|
1797 |
+
right: 0;
|
1798 |
+
bottom: 0;
|
1799 |
+
left: 0;
|
1800 |
+
}
|
1801 |
+
.cropper-wrap-box,
|
1802 |
+
.cropper-canvas {
|
1803 |
+
overflow: hidden;
|
1804 |
+
}
|
1805 |
+
.cropper-drag-box {
|
1806 |
+
opacity: 0;
|
1807 |
+
background-color: #fff;
|
1808 |
+
}
|
1809 |
+
.cropper-modal {
|
1810 |
+
opacity: 0.5;
|
1811 |
+
background-color: #000;
|
1812 |
+
}
|
1813 |
+
.cropper-view-box {
|
1814 |
+
display: block;
|
1815 |
+
outline: 1px solid #39f;
|
1816 |
+
outline-color: #3399ffbf;
|
1817 |
+
width: 100%;
|
1818 |
+
height: 100%;
|
1819 |
+
overflow: hidden;
|
1820 |
+
}
|
1821 |
+
.cropper-dashed {
|
1822 |
+
display: block;
|
1823 |
+
position: absolute;
|
1824 |
+
opacity: 0.5;
|
1825 |
+
border: 0 dashed #eee;
|
1826 |
+
}
|
1827 |
+
.cropper-dashed.dashed-h {
|
1828 |
+
top: calc(100% / 3);
|
1829 |
+
left: 0;
|
1830 |
+
border-top-width: 1px;
|
1831 |
+
border-bottom-width: 1px;
|
1832 |
+
width: 100%;
|
1833 |
+
height: calc(100% / 3);
|
1834 |
+
}
|
1835 |
+
.cropper-dashed.dashed-v {
|
1836 |
+
top: 0;
|
1837 |
+
left: calc(100% / 3);
|
1838 |
+
border-right-width: 1px;
|
1839 |
+
border-left-width: 1px;
|
1840 |
+
width: calc(100% / 3);
|
1841 |
+
height: 100%;
|
1842 |
+
}
|
1843 |
+
.cropper-center {
|
1844 |
+
display: block;
|
1845 |
+
position: absolute;
|
1846 |
+
top: 50%;
|
1847 |
+
left: 50%;
|
1848 |
+
opacity: 0.75;
|
1849 |
+
width: 0;
|
1850 |
+
height: 0;
|
1851 |
+
}
|
1852 |
+
.cropper-center:before,
|
1853 |
+
.cropper-center:after {
|
1854 |
+
display: block;
|
1855 |
+
position: absolute;
|
1856 |
+
background-color: #eee;
|
1857 |
+
content: " ";
|
1858 |
+
}
|
1859 |
+
.cropper-center:before {
|
1860 |
+
top: 0;
|
1861 |
+
left: -3px;
|
1862 |
+
width: 7px;
|
1863 |
+
height: 1px;
|
1864 |
+
}
|
1865 |
+
.cropper-center:after {
|
1866 |
+
top: -3px;
|
1867 |
+
left: 0;
|
1868 |
+
width: 1px;
|
1869 |
+
height: 7px;
|
1870 |
+
}
|
1871 |
+
.cropper-face,
|
1872 |
+
.cropper-line,
|
1873 |
+
.cropper-point {
|
1874 |
+
display: block;
|
1875 |
+
position: absolute;
|
1876 |
+
opacity: 0.1;
|
1877 |
+
width: 100%;
|
1878 |
+
height: 100%;
|
1879 |
+
}
|
1880 |
+
.cropper-face {
|
1881 |
+
top: 0;
|
1882 |
+
left: 0;
|
1883 |
+
background-color: #fff;
|
1884 |
+
}
|
1885 |
+
.cropper-line {
|
1886 |
+
background-color: #39f;
|
1887 |
+
}
|
1888 |
+
.cropper-line.line-e {
|
1889 |
+
top: 0;
|
1890 |
+
right: -3px;
|
1891 |
+
cursor: ew-resize;
|
1892 |
+
width: 5px;
|
1893 |
+
}
|
1894 |
+
.cropper-line.line-n {
|
1895 |
+
top: -3px;
|
1896 |
+
left: 0;
|
1897 |
+
cursor: ns-resize;
|
1898 |
+
height: 5px;
|
1899 |
+
}
|
1900 |
+
.cropper-line.line-w {
|
1901 |
+
top: 0;
|
1902 |
+
left: -3px;
|
1903 |
+
cursor: ew-resize;
|
1904 |
+
width: 5px;
|
1905 |
+
}
|
1906 |
+
.cropper-line.line-s {
|
1907 |
+
bottom: -3px;
|
1908 |
+
left: 0;
|
1909 |
+
cursor: ns-resize;
|
1910 |
+
height: 5px;
|
1911 |
+
}
|
1912 |
+
.cropper-point {
|
1913 |
+
opacity: 0.75;
|
1914 |
+
background-color: #39f;
|
1915 |
+
width: 5px;
|
1916 |
+
height: 5px;
|
1917 |
+
}
|
1918 |
+
.cropper-point.point-e {
|
1919 |
+
top: 50%;
|
1920 |
+
right: -3px;
|
1921 |
+
cursor: ew-resize;
|
1922 |
+
margin-top: -3px;
|
1923 |
+
}
|
1924 |
+
.cropper-point.point-n {
|
1925 |
+
top: -3px;
|
1926 |
+
left: 50%;
|
1927 |
+
cursor: ns-resize;
|
1928 |
+
margin-left: -3px;
|
1929 |
+
}
|
1930 |
+
.cropper-point.point-w {
|
1931 |
+
top: 50%;
|
1932 |
+
left: -3px;
|
1933 |
+
cursor: ew-resize;
|
1934 |
+
margin-top: -3px;
|
1935 |
+
}
|
1936 |
+
.cropper-point.point-s {
|
1937 |
+
bottom: -3px;
|
1938 |
+
left: 50%;
|
1939 |
+
cursor: s-resize;
|
1940 |
+
margin-left: -3px;
|
1941 |
+
}
|
1942 |
+
.cropper-point.point-ne {
|
1943 |
+
top: -3px;
|
1944 |
+
right: -3px;
|
1945 |
+
cursor: nesw-resize;
|
1946 |
+
}
|
1947 |
+
.cropper-point.point-nw {
|
1948 |
+
top: -3px;
|
1949 |
+
left: -3px;
|
1950 |
+
cursor: nwse-resize;
|
1951 |
+
}
|
1952 |
+
.cropper-point.point-sw {
|
1953 |
+
bottom: -3px;
|
1954 |
+
left: -3px;
|
1955 |
+
cursor: nesw-resize;
|
1956 |
+
}
|
1957 |
+
.cropper-point.point-se {
|
1958 |
+
right: -3px;
|
1959 |
+
bottom: -3px;
|
1960 |
+
opacity: 1;
|
1961 |
+
cursor: nwse-resize;
|
1962 |
+
width: 20px;
|
1963 |
+
height: 20px;
|
1964 |
+
}
|
1965 |
+
@media (min-width: 768px) {
|
1966 |
+
.cropper-point.point-se {
|
1967 |
+
width: 15px;
|
1968 |
+
height: 15px;
|
1969 |
+
}
|
1970 |
+
}
|
1971 |
+
@media (min-width: 992px) {
|
1972 |
+
.cropper-point.point-se {
|
1973 |
+
width: 10px;
|
1974 |
+
height: 10px;
|
1975 |
+
}
|
1976 |
+
}
|
1977 |
+
@media (min-width: 1200px) {
|
1978 |
+
.cropper-point.point-se {
|
1979 |
+
opacity: 0.75;
|
1980 |
+
width: 5px;
|
1981 |
+
height: 5px;
|
1982 |
+
}
|
1983 |
+
}
|
1984 |
+
.cropper-point.point-se:before {
|
1985 |
+
display: block;
|
1986 |
+
position: absolute;
|
1987 |
+
right: -50%;
|
1988 |
+
bottom: -50%;
|
1989 |
+
opacity: 0;
|
1990 |
+
background-color: #39f;
|
1991 |
+
width: 200%;
|
1992 |
+
height: 200%;
|
1993 |
+
content: " ";
|
1994 |
+
}
|
1995 |
+
.cropper-invisible {
|
1996 |
+
opacity: 0;
|
1997 |
+
}
|
1998 |
+
.cropper-bg {
|
1999 |
+
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC);
|
2000 |
+
}
|
2001 |
+
.cropper-hide {
|
2002 |
+
display: block;
|
2003 |
+
position: absolute;
|
2004 |
+
width: 0;
|
2005 |
+
height: 0;
|
2006 |
+
}
|
2007 |
+
.cropper-hidden {
|
2008 |
+
display: none !important;
|
2009 |
+
}
|
2010 |
+
.cropper-move {
|
2011 |
+
cursor: move;
|
2012 |
+
}
|
2013 |
+
.cropper-crop {
|
2014 |
+
cursor: crosshair;
|
2015 |
+
}
|
2016 |
+
.cropper-disabled .cropper-drag-box,
|
2017 |
+
.cropper-disabled .cropper-face,
|
2018 |
+
.cropper-disabled .cropper-line,
|
2019 |
+
.cropper-disabled .cropper-point {
|
2020 |
+
cursor: not-allowed;
|
2021 |
+
}
|
2022 |
+
.after\:absolute:after {
|
2023 |
+
content: var(--tw-content);
|
2024 |
+
position: absolute;
|
2025 |
+
}
|
2026 |
+
.after\:left-\[2px\]:after {
|
2027 |
+
content: var(--tw-content);
|
2028 |
+
left: 2px;
|
2029 |
+
}
|
2030 |
+
.after\:top-0:after {
|
2031 |
+
content: var(--tw-content);
|
2032 |
+
top: 0px;
|
2033 |
+
}
|
2034 |
+
.after\:top-0\.5:after {
|
2035 |
+
content: var(--tw-content);
|
2036 |
+
top: 0.125rem;
|
2037 |
+
}
|
2038 |
+
.after\:h-5:after {
|
2039 |
+
content: var(--tw-content);
|
2040 |
+
height: 1.25rem;
|
2041 |
+
}
|
2042 |
+
.after\:w-5:after {
|
2043 |
+
content: var(--tw-content);
|
2044 |
+
width: 1.25rem;
|
2045 |
+
}
|
2046 |
+
.after\:rounded-full:after {
|
2047 |
+
content: var(--tw-content);
|
2048 |
+
border-radius: 9999px;
|
2049 |
+
}
|
2050 |
+
.after\:border:after {
|
2051 |
+
content: var(--tw-content);
|
2052 |
+
border-width: 1px;
|
2053 |
+
}
|
2054 |
+
.after\:border-gray-300:after {
|
2055 |
+
content: var(--tw-content);
|
2056 |
+
--tw-border-opacity: 1;
|
2057 |
+
border-color: rgb(209 213 219 / var(--tw-border-opacity));
|
2058 |
+
}
|
2059 |
+
.after\:bg-white:after {
|
2060 |
+
content: var(--tw-content);
|
2061 |
+
--tw-bg-opacity: 1;
|
2062 |
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
2063 |
+
}
|
2064 |
+
.after\:transition-all:after {
|
2065 |
+
content: var(--tw-content);
|
2066 |
+
transition-property: all;
|
2067 |
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
2068 |
+
transition-duration: 0.15s;
|
2069 |
+
}
|
2070 |
+
.after\:content-\[\'\'\]:after {
|
2071 |
+
--tw-content: "";
|
2072 |
+
content: var(--tw-content);
|
2073 |
+
}
|
2074 |
+
.hover\:bg-gray-200:hover {
|
2075 |
+
--tw-bg-opacity: 1;
|
2076 |
+
background-color: rgb(229 231 235 / var(--tw-bg-opacity));
|
2077 |
+
}
|
2078 |
+
.hover\:text-gray-600:hover {
|
2079 |
+
--tw-text-opacity: 1;
|
2080 |
+
color: rgb(75 85 99 / var(--tw-text-opacity));
|
2081 |
+
}
|
2082 |
+
.hover\:text-gray-900:hover {
|
2083 |
+
--tw-text-opacity: 1;
|
2084 |
+
color: rgb(17 24 39 / var(--tw-text-opacity));
|
2085 |
+
}
|
2086 |
+
.hover\:text-orange-600:hover {
|
2087 |
+
--tw-text-opacity: 1;
|
2088 |
+
color: rgb(234 88 12 / var(--tw-text-opacity));
|
2089 |
+
}
|
2090 |
+
.focus\:border-blue-500:focus {
|
2091 |
+
--tw-border-opacity: 1;
|
2092 |
+
border-color: rgb(59 130 246 / var(--tw-border-opacity));
|
2093 |
+
}
|
2094 |
+
.focus\:ring-blue-500:focus {
|
2095 |
+
--tw-ring-opacity: 1;
|
2096 |
+
--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity));
|
2097 |
+
}
|
2098 |
+
.peer:checked ~ .peer-checked\:bg-orange-400 {
|
2099 |
+
--tw-bg-opacity: 1;
|
2100 |
+
background-color: rgb(251 146 60 / var(--tw-bg-opacity));
|
2101 |
+
}
|
2102 |
+
.peer:checked ~ .peer-checked\:after\:translate-x-full:after {
|
2103 |
+
content: var(--tw-content);
|
2104 |
+
--tw-translate-x: 100%;
|
2105 |
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y))
|
2106 |
+
rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y))
|
2107 |
+
scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
2108 |
+
}
|
2109 |
+
.peer:checked ~ .peer-checked\:after\:border-white:after {
|
2110 |
+
content: var(--tw-content);
|
2111 |
+
--tw-border-opacity: 1;
|
2112 |
+
border-color: rgb(255 255 255 / var(--tw-border-opacity));
|
2113 |
+
}
|
2114 |
+
.peer:focus ~ .peer-focus\:ring-4 {
|
2115 |
+
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0
|
2116 |
+
var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
2117 |
+
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0
|
2118 |
+
calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
2119 |
+
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow),
|
2120 |
+
var(--tw-shadow, 0 0 #0000);
|
2121 |
+
}
|
2122 |
+
.peer:focus ~ .peer-focus\:ring-orange-300 {
|
2123 |
+
--tw-ring-opacity: 1;
|
2124 |
+
--tw-ring-color: rgb(253 186 116 / var(--tw-ring-opacity));
|
2125 |
+
}
|
2126 |
+
@media (prefers-color-scheme: dark) {
|
2127 |
+
.dark\:border-gray-600 {
|
2128 |
+
--tw-border-opacity: 1;
|
2129 |
+
border-color: rgb(75 85 99 / var(--tw-border-opacity));
|
2130 |
+
}
|
2131 |
+
.dark\:bg-gray-700 {
|
2132 |
+
--tw-bg-opacity: 1;
|
2133 |
+
background-color: rgb(55 65 81 / var(--tw-bg-opacity));
|
2134 |
+
}
|
2135 |
+
.dark\:bg-gray-800 {
|
2136 |
+
--tw-bg-opacity: 1;
|
2137 |
+
background-color: rgb(31 41 55 / var(--tw-bg-opacity));
|
2138 |
+
}
|
2139 |
+
.dark\:text-gray-400 {
|
2140 |
+
--tw-text-opacity: 1;
|
2141 |
+
color: rgb(156 163 175 / var(--tw-text-opacity));
|
2142 |
+
}
|
2143 |
+
.dark\:text-white {
|
2144 |
+
--tw-text-opacity: 1;
|
2145 |
+
color: rgb(255 255 255 / var(--tw-text-opacity));
|
2146 |
+
}
|
2147 |
+
.dark\:placeholder-gray-400::-moz-placeholder {
|
2148 |
+
--tw-placeholder-opacity: 1;
|
2149 |
+
color: rgb(156 163 175 / var(--tw-placeholder-opacity));
|
2150 |
+
}
|
2151 |
+
.dark\:placeholder-gray-400::placeholder {
|
2152 |
+
--tw-placeholder-opacity: 1;
|
2153 |
+
color: rgb(156 163 175 / var(--tw-placeholder-opacity));
|
2154 |
+
}
|
2155 |
+
.dark\:hover\:bg-gray-600:hover {
|
2156 |
+
--tw-bg-opacity: 1;
|
2157 |
+
background-color: rgb(75 85 99 / var(--tw-bg-opacity));
|
2158 |
+
}
|
2159 |
+
.dark\:hover\:text-white:hover {
|
2160 |
+
--tw-text-opacity: 1;
|
2161 |
+
color: rgb(255 255 255 / var(--tw-text-opacity));
|
2162 |
+
}
|
2163 |
+
.dark\:focus\:border-blue-500:focus {
|
2164 |
+
--tw-border-opacity: 1;
|
2165 |
+
border-color: rgb(59 130 246 / var(--tw-border-opacity));
|
2166 |
+
}
|
2167 |
+
.dark\:focus\:ring-blue-500:focus {
|
2168 |
+
--tw-ring-opacity: 1;
|
2169 |
+
--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity));
|
2170 |
+
}
|
2171 |
+
.peer:focus ~ .dark\:peer-focus\:ring-orange-800 {
|
2172 |
+
--tw-ring-opacity: 1;
|
2173 |
+
--tw-ring-color: rgb(154 52 18 / var(--tw-ring-opacity));
|
2174 |
+
}
|
2175 |
+
}
|
2176 |
+
.minh {
|
2177 |
+
min-height: 40vh;
|
2178 |
+
height: 50vh;
|
2179 |
+
}
|
2180 |
+
|
2181 |
+
.-top-1 {
|
2182 |
+
top: -0.25rem;
|
2183 |
+
}
|
2184 |
+
|
2185 |
+
.left-6 {
|
2186 |
+
left: 1.5rem;
|
2187 |
+
}
|
2188 |
+
|
2189 |
+
.h-4 {
|
2190 |
+
height: 1rem;
|
2191 |
+
}
|
2192 |
+
|
2193 |
+
.w-4 {
|
2194 |
+
width: 1rem;
|
2195 |
+
}
|
2196 |
+
|
2197 |
+
.w-max {
|
2198 |
+
width: max-content;
|
2199 |
+
}
|
2200 |
+
|
2201 |
+
.cursor-pointer {
|
2202 |
+
cursor: pointer;
|
2203 |
+
}
|
2204 |
+
|
2205 |
+
.rounded {
|
2206 |
+
border-radius: 0.25rem;
|
2207 |
+
}
|
2208 |
+
|
2209 |
+
.bg-gray-900 {
|
2210 |
+
--tw-bg-opacity: 1;
|
2211 |
+
background-color: rgb(17 24 39 / var(--tw-bg-opacity));
|
2212 |
+
}
|
2213 |
+
|
2214 |
+
.fill-current {
|
2215 |
+
fill: currentColor;
|
2216 |
+
}
|
2217 |
+
|
2218 |
+
.p-10 {
|
2219 |
+
padding: 2.5rem;
|
2220 |
+
}
|
2221 |
+
|
2222 |
+
.px-2 {
|
2223 |
+
padding-left: 0.5rem;
|
2224 |
+
padding-right: 0.5rem;
|
2225 |
+
}
|
2226 |
+
|
2227 |
+
.py-1 {
|
2228 |
+
padding-top: 0.25rem;
|
2229 |
+
padding-bottom: 0.25rem;
|
2230 |
+
}
|
2231 |
+
|
2232 |
+
.text-sm {
|
2233 |
+
font-size: 0.875rem;
|
2234 |
+
line-height: 1.25rem;
|
2235 |
+
}
|
2236 |
+
|
2237 |
+
.font-medium {
|
2238 |
+
font-weight: 500;
|
2239 |
+
}
|
2240 |
+
|
2241 |
+
.text-gray-50 {
|
2242 |
+
--tw-text-opacity: 1;
|
2243 |
+
color: rgb(249 250 251 / var(--tw-text-opacity));
|
2244 |
+
}
|
2245 |
+
|
2246 |
+
.text-gray-500 {
|
2247 |
+
--tw-text-opacity: 1;
|
2248 |
+
color: rgb(107 114 128 / var(--tw-text-opacity));
|
2249 |
+
}
|
2250 |
+
|
2251 |
+
.opacity-0 {
|
2252 |
+
opacity: 0;
|
2253 |
+
}
|
2254 |
+
|
2255 |
+
.opacity-100 {
|
2256 |
+
opacity: 1;
|
2257 |
+
}
|
2258 |
+
|
2259 |
+
.shadow {
|
2260 |
+
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
2261 |
+
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color),
|
2262 |
+
0 1px 2px -1px var(--tw-shadow-color);
|
2263 |
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000),
|
2264 |
+
var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
2265 |
+
}
|
2266 |
+
|
2267 |
+
.transition-opacity {
|
2268 |
+
transition-property: opacity;
|
2269 |
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
2270 |
+
transition-duration: 150ms;
|
2271 |
+
}
|
2272 |
+
|
2273 |
+
.hover\:text-orange-600:hover {
|
2274 |
+
--tw-text-opacity: 1;
|
2275 |
+
color: rgb(234 88 12 / var(--tw-text-opacity));
|
2276 |
+
}
|
2277 |
+
</style>
|
src/frontend/shared/loading_spinner.svelte
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!-- By Sam Herbert (@sherb), for everyone. More @ http://goo.gl/7AJzbL -->
|
2 |
+
<svg
|
3 |
+
width="20"
|
4 |
+
height="20 "
|
5 |
+
viewBox="0 0 38 38"
|
6 |
+
xmlns="http://www.w3.org/2000/svg"
|
7 |
+
>
|
8 |
+
<defs>
|
9 |
+
<linearGradient x1="8.042%" y1="0%" x2="65.682%" y2="23.865%" id="a">
|
10 |
+
<stop stop-color="#FF7C00" stop-opacity="0" offset="0%" />
|
11 |
+
<stop stop-color="#FF7C00" stop-opacity=".631" offset="63.146%" />
|
12 |
+
<stop stop-color="#FF7C00" offset="100%" />
|
13 |
+
</linearGradient>
|
14 |
+
</defs>
|
15 |
+
<g fill="none" fill-rule="evenodd">
|
16 |
+
<g transform="translate(1 1)">
|
17 |
+
<path
|
18 |
+
d="M36 18c0-9.94-8.06-18-18-18"
|
19 |
+
id="Oval-2"
|
20 |
+
stroke="url(#a)"
|
21 |
+
stroke-width="2"
|
22 |
+
>
|
23 |
+
<animateTransform
|
24 |
+
attributeName="transform"
|
25 |
+
type="rotate"
|
26 |
+
from="0 18 18"
|
27 |
+
to="360 18 18"
|
28 |
+
dur="0.9s"
|
29 |
+
repeatCount="indefinite"
|
30 |
+
/>
|
31 |
+
</path>
|
32 |
+
<circle fill="#FFf" cx="36" cy="18" r="1">
|
33 |
+
<animateTransform
|
34 |
+
attributeName="transform"
|
35 |
+
type="rotate"
|
36 |
+
from="0 18 18"
|
37 |
+
to="360 18 18"
|
38 |
+
dur="0.9s"
|
39 |
+
repeatCount="indefinite"
|
40 |
+
/>
|
41 |
+
</circle>
|
42 |
+
</g>
|
43 |
+
</g>
|
44 |
+
</svg>
|
src/frontend/shared/utils.ts
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import type { FileData } from "@gradio/client";
|
2 |
+
|
3 |
+
export const prettyBytes = (bytes: number): string => {
|
4 |
+
let units = ["B", "KB", "MB", "GB", "PB"];
|
5 |
+
let i = 0;
|
6 |
+
while (bytes > 1024) {
|
7 |
+
bytes /= 1024;
|
8 |
+
i++;
|
9 |
+
}
|
10 |
+
let unit = units[i];
|
11 |
+
return bytes.toFixed(1) + " " + unit;
|
12 |
+
};
|
13 |
+
|
14 |
+
export const display_file_name = (value: FileData): string => {
|
15 |
+
var str: string;
|
16 |
+
str = value.orig_name;
|
17 |
+
const max_length = 30;
|
18 |
+
|
19 |
+
if (str.length > max_length) {
|
20 |
+
const truncated_name = str.substring(0, max_length);
|
21 |
+
const file_extension_index = str.lastIndexOf(".");
|
22 |
+
if (file_extension_index !== -1) {
|
23 |
+
const file_extension = str.slice(file_extension_index);
|
24 |
+
return `${truncated_name}..${file_extension}`;
|
25 |
+
}
|
26 |
+
return truncated_name;
|
27 |
+
}
|
28 |
+
return str;
|
29 |
+
};
|
30 |
+
|
31 |
+
export const display_file_size = (value: FileData | FileData[]): string => {
|
32 |
+
var total_size = 0;
|
33 |
+
if (Array.isArray(value)) {
|
34 |
+
for (var file of value) {
|
35 |
+
if (file.size !== undefined) total_size += file.size;
|
36 |
+
}
|
37 |
+
} else {
|
38 |
+
total_size = value.size || 0;
|
39 |
+
}
|
40 |
+
return prettyBytes(total_size);
|
41 |
+
};
|
src/pyproject.toml
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[build-system]
|
2 |
+
requires = [
|
3 |
+
"hatchling",
|
4 |
+
"hatch-requirements-txt",
|
5 |
+
"hatch-fancy-pypi-readme>=22.5.0",
|
6 |
+
]
|
7 |
+
build-backend = "hatchling.build"
|
8 |
+
|
9 |
+
[project]
|
10 |
+
name = "gradio_molecule3d"
|
11 |
+
version = "0.0.1"
|
12 |
+
description = "Molecule3D custom component to visualize pdb or sdf files"
|
13 |
+
readme = "README.md"
|
14 |
+
license = "MIT"
|
15 |
+
requires-python = ">=3.8"
|
16 |
+
authors = [{ name = "Simon Dürr", email = "[email protected]" }]
|
17 |
+
keywords = [
|
18 |
+
"machine learning",
|
19 |
+
"reproducibility",
|
20 |
+
"visualization",
|
21 |
+
"gradio",
|
22 |
+
"gradio custom component",
|
23 |
+
"gradio-template-File",
|
24 |
+
"protein"
|
25 |
+
]
|
26 |
+
# Add dependencies here
|
27 |
+
dependencies = ["gradio>=4.0,<5.0"]
|
28 |
+
classifiers = [
|
29 |
+
'Development Status :: 3 - Alpha',
|
30 |
+
'License :: OSI Approved :: Apache Software License',
|
31 |
+
'Operating System :: OS Independent',
|
32 |
+
'Programming Language :: Python :: 3',
|
33 |
+
'Programming Language :: Python :: 3 :: Only',
|
34 |
+
'Programming Language :: Python :: 3.8',
|
35 |
+
'Programming Language :: Python :: 3.9',
|
36 |
+
'Programming Language :: Python :: 3.10',
|
37 |
+
'Programming Language :: Python :: 3.11',
|
38 |
+
'Topic :: Scientific/Engineering',
|
39 |
+
'Topic :: Scientific/Engineering :: Artificial Intelligence',
|
40 |
+
'Topic :: Scientific/Engineering :: Visualization',
|
41 |
+
]
|
42 |
+
|
43 |
+
[project.optional-dependencies]
|
44 |
+
dev = ["build", "twine"]
|
45 |
+
|
46 |
+
[tool.hatch.build]
|
47 |
+
artifacts = ["/backend/gradio_molecule3d/templates", "*.pyi", "backend/gradio_molecule3d/templates"]
|
48 |
+
|
49 |
+
[tool.hatch.build.targets.wheel]
|
50 |
+
packages = ["/backend/gradio_molecule3d"]
|