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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AI Analysis Suite | HTS Investigation Suite</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
    <script src="https://cdn.tailwindcss.com"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Rubik:wght@300;400;500;600;700&display=swap');
        body {
            font-family: 'Rubik', sans-serif;
        }
        .code-font {
            font-family: 'JetBrains Mono', monospace;
        }
        .vanta-canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            opacity: 0.15;
        }
    </style>
</head>
<body class="bg-gray-50">
    <div id="vanta-bg" class="vanta-canvas"></div>
    
    <!-- Header -->
    <header class="relative z-10 bg-white shadow-lg border-b border-gray-200">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4">
            <div class="flex items-center justify-between">
                <div class="flex items-center space-x-4">
                    <div class="bg-blue-600 p-2 rounded-lg">
                        <i data-feather="shield" class="text-white w-6 h-6"></i>
                    </div>
                    <div>
                        <h1 class="text-2xl font-bold text-gray-900">HIGH TECH SECURITY</h1>
                        <p class="text-sm text-gray-600">HTS Investigation Suite v2.1</p>
                    </div>
                </div>
                
                <div class="hidden md:flex items-center space-x-6">
                    <div class="text-right">
                        <div class="text-gray-600">203-205 The Vale, London W3 7QS</div>
                        <div class="text-gray-600">UK: +44 7591 665201 | Company: 7849187</div>
                    </div>
                    <div class="flex items-center space-x-2">
                        <i data-feather="lock" class="w-5 h-5 text-green-500"></i>
                        <span class="text-sm text-green-600 font-medium">SΓ©curisΓ©</span>
                    </div>
                </div>
            </div>
        </div>
    </header>

    <!-- Navigation -->
    <nav class="relative z-10 bg-gray-800 text-white">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex space-x-1 overflow-x-auto py-2 hide-scrollbar">
                <a href="/" class="flex items-center space-x-2 px-4 py-3 border-b-2 border-transparent hover:border-gray-600 transition-colors">
                    <i data-feather="trending-up" class="w-4 h-4"></i>
                    <span>Dashboard</span>
                </a>
                <a href="/darkbert" class="flex items-center space-x-2 px-4 py-3 border-b-2 border-blue-400 text-blue-400 transition-colors">
<i data-feather="brain" class="w-4 h-4"></i>
                    <span>AI Analysis Suite</span>
                </a>
<a href="/investigations" class="flex items-center space-x-2 px-4 py-3 border-b-2 border-transparent hover:border-gray-600 transition-colors">
                    <i data-feather="search" class="w-4 h-4"></i>
                    <span>Investigations</span>
                </a>
                <a href="/monitoring" class="flex items-center space-x-2 px-4 py-3 border-b-2 border-transparent hover:border-gray-600 transition-colors">
                    <i data-feather="eye" class="w-4 h-4"></i>
                    <span>Monitoring</span>
                </a>
            </div>
        </div>
    </nav>
    <!-- Main Content -->
    <main class="relative z-10 max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
        <div class="bg-white rounded-xl shadow-lg p-6 mb-8">
            <h2 class="text-2xl font-bold text-gray-900 mb-6">AI Analysis Suite - Deux IA pour la paye AI</h2>
            
            <!-- Model Selection -->
            <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-8">
                <!-- KAT-Dev Model -->
                <div class="bg-gradient-to-br from-blue-50 to-blue-100 rounded-xl shadow-lg p-6 border border-blue-200">
                    <div class="flex items-center justify-between mb-4">
                        <div class="flex items-center space-x-3">
                            <div class="bg-blue-600 p-2 rounded-lg">
                                <i data-feather="cpu" class="text-white w-6 h-6"></i>
                            </div>
                            <div>
                                <h3 class="text-lg font-semibold text-gray-900">KAT-Dev Model</h3>
                                <p class="text-sm text-gray-600">Kwaipilot/KAT-Dev</p>
                            </div>
                        </div>
                        <span class="px-3 py-1 bg-green-100 text-green-800 text-xs font-medium rounded-full">Fast</span>
                    </div>
                    <p class="text-sm text-gray-700 mb-4">Specialized AI model for rapid analysis and processing of investigative data with enhanced security capabilities.</p>
                    <div class="space-y-3">
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-2">Input Text</label>
                            <textarea id="kat-input" placeholder="Enter text for analysis..." class="w-full h-24 p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 text-sm mb-2"></textarea>
                            <div class="mb-2">
                                <label class="block text-sm font-medium text-gray-700 mb-1">Or upload files</label>
                                <div class="flex items-center justify-center w-full">
                                    <label for="kat-files" class="flex flex-col items-center justify-center w-full h-32 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-gray-50 hover:bg-gray-100">
                                        <div class="flex flex-col items-center justify-center pt-5 pb-6">
                                            <i data-feather="upload" class="w-8 h-8 text-gray-500 mb-2"></i>
                                            <p class="text-sm text-gray-500">Click to upload or drag and drop</p>
                                            <p class="text-xs text-gray-500">PDF, DOCX, TXT (Max 10MB)</p>
                                        </div>
                                        <input id="kat-files" type="file" class="hidden" multiple>
                                    </label>
                                </div>
                            </div>
</div>
                        <button onclick="runKATAnalysis()" class="w-full bg-blue-600 hover:bg-blue-700 text-white font-semibold py-3 px-6 rounded-lg transition-colors flex items-center justify-center gap-2">
                            <i data-feather="zap" class="w-4 h-4"></i>
                            Run KAT-Dev Analysis
                        </button>
                    </div>
                </div>

                <!-- DeepSeek-V3.1-Terminus Model -->
                <div class="bg-gradient-to-br from-purple-50 to-purple-100 rounded-xl shadow-lg p-6 border border-purple-200">
                    <div class="flex items-center justify-between mb-4">
                        <div class="flex items-center space-x-3">
                            <div class="bg-purple-600 p-2 rounded-lg">
                                <i data-feather="brain" class="text-white w-6 h-6"></i>
                            </div>
                            <div>
                                <h3 class="text-lg font-semibold text-gray-900">DeepSeek-V3.1-Terminus</h3>
                                <p class="text-sm text-gray-600">deepseek-ai/DeepSeek-V3.1-Terminus</p>
                            </div>
                        </div>
                        <span class="px-3 py-1 bg-purple-100 text-purple-800 text-xs font-medium rounded-full">Advanced</span>
                    </div>
                    <p class="text-sm text-gray-700 mb-4">Advanced AI model for comprehensive analysis with deep contextual understanding and superior reasoning capabilities.</p>
                    <div class="space-y-3">
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-2">Input Text</label>
                            <textarea id="deepseek-input" placeholder="Enter text for analysis..." class="w-full h-24 p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-purple-500 text-sm mb-2"></textarea>
                            <div class="mb-2">
                                <label class="block text-sm font-medium text-gray-700 mb-1">Or upload files</label>
                                <div class="flex items-center justify-center w-full">
                                    <label for="deepseek-files" class="flex flex-col items-center justify-center w-full h-32 border-2 border-gray-300 border-dashed rounded-lg cursor-pointer bg-gray-50 hover:bg-gray-100">
                                        <div class="flex flex-col items-center justify-center pt-5 pb-6">
                                            <i data-feather="upload" class="w-8 h-8 text-gray-500 mb-2"></i>
                                            <p class="text-sm text-gray-500">Click to upload or drag and drop</p>
                                            <p class="text-xs text-gray-500">PDF, DOCX, TXT (Max 10MB)</p>
                                        </div>
                                        <input id="deepseek-files" type="file" class="hidden" multiple>
                                    </label>
                                </div>
                            </div>
</div>
                        <button onclick="runDeepSeekAnalysis()" class="w-full bg-purple-600 hover:bg-purple-700 text-white font-semibold py-3 px-6 rounded-lg transition-colors flex items-center justify-center gap-2">
                            <i data-feather="layers" class="w-4 h-4"></i>
                            Run DeepSeek Analysis
                        </button>
                    </div>
                </div>
            </div>

            <!-- Common Configuration -->
            <div class="bg-gray-50 rounded-xl shadow-lg p-6 border border-gray-200">
                <h3 class="text-lg font-semibold text-gray-900 mb-4">Analysis Configuration</h3>
                <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
                    <div>
                        <label class="block text-sm font-medium text-gray-700 mb-2">Client Type</label>
                        <select id="client-type" class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 bg-white">
                            <option value="police">Police Forces</option>
                            <option value="fiscal">Tax Administration</option>
                            <option value="customs">Customs Services</option>
                            <option value="court">Courts</option>
                        </select>
                    </div>
                    
                    <div>
                        <label class="block text-sm font-medium text-gray-700 mb-2">Investigation Title</label>
                        <input id="investigation-title" type="text" placeholder="Ex: Criminal Network Investigation 2025" class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 bg-white">
                    </div>
                    
                    <div>
                        <label class="block text-sm font-medium text-gray-700 mb-2">Security Level</label>
                        <select id="security-level" class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 bg-white">
                            <option value="standard">Standard</option>
                            <option value="enhanced">Enhanced</option>
                            <option value="maximum">Maximum</option>
                        </select>
                    </div>
                </div>
                
                <div class="mt-6">
                    <label class="block text-sm font-medium text-gray-700 mb-2">Documents to Analyze (one per line)</label>
                    <textarea id="documents-input" placeholder="Insert your documents here, one per line..." class="w-full h-32 p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 font-mono text-sm bg-white"></textarea>
                    <p class="text-xs text-gray-500 mt-1">0 documents | Minimum 3 documents required for batch processing</p>
                </div>
            </div>

            <!-- Results Section -->
            <div class="mt-8 bg-white rounded-xl shadow-lg p-6 border border-gray-200">
                <h3 class="text-lg font-semibold text-gray-900 mb-4">Analysis Results</h3>
                <div id="results-container" class="bg-gray-50 rounded-lg p-4 min-h-32">
                    <p class="text-gray-500 text-center">Run an analysis to see results here...</p>
                </div>
            </div>
        </div>
    </main>
<script>
        feather.replace();
        VANTA.GLOBE({
            el: "#vanta-bg",
            mouseControls: true,
            touchControls: true,
            gyroControls: false,
            minHeight: 200.00,
            minWidth: 200.00,
            scale: 1.00,
            scaleMobile: 1.00,
            color: 0x3b82f6,
            backgroundColor: 0xf8fafc,
            size: 0.8
        });
        function runKATAnalysis() {
            const input = document.getElementById('kat-input').value;
            const clientType = document.getElementById('client-type').value;
            const investigationTitle = document.getElementById('investigation-title').value;
            const securityLevel = document.getElementById('security-level').value;
            const documents = document.getElementById('documents-input').value.split('\n').filter(doc => doc.trim() !== '');
            const files = document.getElementById('kat-files').files;
            
            if (!input.trim() && files.length === 0) {
                alert('Please enter some text or upload files for analysis');
                return;
            }
if (!input.trim()) {
                alert('Please enter some text for analysis');
                return;
            }
            
            document.getElementById('results-container').innerHTML = `
                <div class="space-y-3">
                    <div class="flex items-center space-x-2">
                        <div class="w-3 h-3 rounded-full bg-blue-500 animate-pulse"></div>
                        <span class="text-sm font-medium">Running KAT-Dev Analysis...</span>
                    </div>
                    <div class="bg-white p-4 rounded border">
                        <p class="text-sm text-gray-700">Processing your request with Kwaipilot/KAT-Dev model...</p>
                    </div>
                </div>
            `;
            
            // Simulate API call
            setTimeout(() => {
                document.getElementById('results-container').innerHTML = `
                    <div class="space-y-4">
                        <div class="flex items-center space-x-2 text-green-600">
                            <i data-feather="check-circle" class="w-5 h-5"></i>
                            <span class="font-medium">Analysis Complete</span>
                        </div>
                        <div class="bg-white p-4 rounded border">
                            <h4 class="font-medium mb-2">KAT-Dev Analysis Results:</h4>
                            <p class="text-sm text-gray-700">Input processed successfully. The model has analyzed the provided content and identified key patterns and insights relevant to your investigation.</p>
                            <div class="mt-3 p-3 bg-blue-50 rounded">
                                <p class="text-xs font-mono">Model: Kwaipilot/KAT-Dev<br>Client: ${clientType}<br>Security Level: ${securityLevel}<br>Documents Processed: ${documents.length}</p>
                            </div>
                        </div>
                    </div>
                `;
                feather.replace();
            }, 2000);
        }
        function runDeepSeekAnalysis() {
            const input = document.getElementById('deepseek-input').value;
            const clientType = document.getElementById('client-type').value;
            const investigationTitle = document.getElementById('investigation-title').value;
            const securityLevel = document.getElementById('security-level').value;
            const documents = document.getElementById('documents-input').value.split('\n').filter(doc => doc.trim() !== '');
            const files = document.getElementById('deepseek-files').files;
            
            if (!input.trim() && files.length === 0) {
                alert('Please enter some text or upload files for analysis');
                return;
            }
if (!input.trim()) {
                alert('Please enter some text for analysis');
                return;
            }
            
            document.getElementById('results-container').innerHTML = `
                <div class="space-y-3">
                    <div class="flex items-center space-x-2">
                        <div class="w-3 h-3 rounded-full bg-purple-500 animate-pulse"></div>
                        <span class="text-sm font-medium">Running DeepSeek Analysis...</span>
                    </div>
                    <div class="bg-white p-4 rounded border">
                        <p class="text-sm text-gray-700">Processing your request with deepseek-ai/DeepSeek-V3.1-Terminus model...</p>
                    </div>
                </div>
            `;
            
            // Simulate API call
            setTimeout(() => {
                document.getElementById('results-container').innerHTML = `
                    <div class="space-y-4">
                        <div class="flex items-center space-x-2 text-green-600">
                            <i data-feather="check-circle" class="w-5 h-5"></i>
                            <span class="font-medium">Analysis Complete</span>
                        </div>
                        <div class="bg-white p-4 rounded border">
                            <h4 class="font-medium mb-2">DeepSeek Analysis Results:</h4>
                            <p class="text-sm text-gray-700">Comprehensive analysis completed. The DeepSeek model has provided detailed insights and contextual understanding of the input data, highlighting relevant patterns and potential connections.</p>
                            <div class="mt-3 p-3 bg-purple-50 rounded">
                                <p class="text-xs font-mono">Model: deepseek-ai/DeepSeek-V3.1-Terminus<br>Client: ${clientType}<br>Security Level: ${securityLevel}<br>Documents Processed: ${documents.length}</p>
                            </div>
                        </div>
                    </div>
                `;
                feather.replace();
            }, 3000);
        }
        // Update document count
        document.getElementById('documents-input').addEventListener('input', function() {
            const count = this.value.split('\n').filter(doc => doc.trim() !== '').length;
            document.querySelector('.text-xs.text-gray-500').textContent = `${count} documents | Minimum 3 documents required for batch processing`;
        });

        // Handle file upload display
        document.getElementById('kat-files').addEventListener('change', function() {
            if (this.files.length > 0) {
                document.getElementById('kat-input').placeholder = `${this.files.length} file(s) selected for analysis`;
            }
        });

        document.getElementById('deepseek-files').addEventListener('change', function() {
            if (this.files.length > 0) {
                document.getElementById('deepseek-input').placeholder = `${this.files.length} file(s) selected for analysis`;
            }
        });
</script>
</body>
</html>