@nice2dev/ui-tools 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/README.md +36 -0
  2. package/dist/access-control.d.ts +726 -0
  3. package/dist/access-control.d.ts.map +1 -0
  4. package/dist/accessibility-i18n.d.ts +1017 -0
  5. package/dist/accessibility-i18n.d.ts.map +1 -0
  6. package/dist/ai-assistant.d.ts +263 -0
  7. package/dist/ai-assistant.d.ts.map +1 -0
  8. package/dist/ai-playgrounds.d.ts +842 -0
  9. package/dist/ai-playgrounds.d.ts.map +1 -0
  10. package/dist/alerting-incidents.d.ts +558 -0
  11. package/dist/alerting-incidents.d.ts.map +1 -0
  12. package/dist/api-designer.d.ts +1568 -0
  13. package/dist/api-designer.d.ts.map +1 -0
  14. package/dist/api-testing.d.ts +1146 -0
  15. package/dist/api-testing.d.ts.map +1 -0
  16. package/dist/apm-profiling.d.ts +656 -0
  17. package/dist/apm-profiling.d.ts.map +1 -0
  18. package/dist/artifacts.d.ts +421 -0
  19. package/dist/artifacts.d.ts.map +1 -0
  20. package/dist/audit-compliance.d.ts +752 -0
  21. package/dist/audit-compliance.d.ts.map +1 -0
  22. package/dist/certificates.d.ts +256 -0
  23. package/dist/certificates.d.ts.map +1 -0
  24. package/dist/chart-builder.d.ts +1404 -0
  25. package/dist/chart-builder.d.ts.map +1 -0
  26. package/dist/cloud-instances.d.ts +169 -0
  27. package/dist/cloud-instances.d.ts.map +1 -0
  28. package/dist/config-management.d.ts +350 -0
  29. package/dist/config-management.d.ts.map +1 -0
  30. package/dist/containers.d.ts +256 -0
  31. package/dist/containers.d.ts.map +1 -0
  32. package/dist/dashboard-designer.d.ts +1238 -0
  33. package/dist/dashboard-designer.d.ts.map +1 -0
  34. package/dist/data-management.d.ts +496 -0
  35. package/dist/data-management.d.ts.map +1 -0
  36. package/dist/data-pipeline.d.ts +1105 -0
  37. package/dist/data-pipeline.d.ts.map +1 -0
  38. package/dist/data-warehouse.d.ts +1097 -0
  39. package/dist/data-warehouse.d.ts.map +1 -0
  40. package/dist/dataset-management.d.ts +782 -0
  41. package/dist/dataset-management.d.ts.map +1 -0
  42. package/dist/db-adapters.d.ts +704 -0
  43. package/dist/db-adapters.d.ts.map +1 -0
  44. package/dist/db-admin.d.ts +699 -0
  45. package/dist/db-admin.d.ts.map +1 -0
  46. package/dist/db-designer.d.ts +366 -0
  47. package/dist/db-designer.d.ts.map +1 -0
  48. package/dist/debugger.d.ts +356 -0
  49. package/dist/debugger.d.ts.map +1 -0
  50. package/dist/device-management.d.ts +871 -0
  51. package/dist/device-management.d.ts.map +1 -0
  52. package/dist/distributed-tracing.d.ts +427 -0
  53. package/dist/distributed-tracing.d.ts.map +1 -0
  54. package/dist/dns-management.d.ts +215 -0
  55. package/dist/dns-management.d.ts.map +1 -0
  56. package/dist/download-manager.d.ts +271 -0
  57. package/dist/download-manager.d.ts.map +1 -0
  58. package/dist/download-torrent.d.ts +1062 -0
  59. package/dist/download-torrent.d.ts.map +1 -0
  60. package/dist/edge-computing.d.ts +720 -0
  61. package/dist/edge-computing.d.ts.map +1 -0
  62. package/dist/education.d.ts +1135 -0
  63. package/dist/education.d.ts.map +1 -0
  64. package/dist/email-template.d.ts +1141 -0
  65. package/dist/email-template.d.ts.map +1 -0
  66. package/dist/erp-enterprise.d.ts +1270 -0
  67. package/dist/erp-enterprise.d.ts.map +1 -0
  68. package/dist/form-builder.d.ts +1117 -0
  69. package/dist/form-builder.d.ts.map +1 -0
  70. package/dist/game-engine-advanced.d.ts +1049 -0
  71. package/dist/game-engine-advanced.d.ts.map +1 -0
  72. package/dist/git.d.ts +415 -0
  73. package/dist/git.d.ts.map +1 -0
  74. package/dist/hardware-integration.d.ts +966 -0
  75. package/dist/hardware-integration.d.ts.map +1 -0
  76. package/dist/iac.d.ts +318 -0
  77. package/dist/iac.d.ts.map +1 -0
  78. package/dist/icon-tools.d.ts +1023 -0
  79. package/dist/icon-tools.d.ts.map +1 -0
  80. package/dist/ide.d.ts +322 -0
  81. package/dist/ide.d.ts.map +1 -0
  82. package/dist/index.cjs +2 -0
  83. package/dist/index.cjs.map +1 -0
  84. package/dist/index.d.ts +176 -0
  85. package/dist/index.d.ts.map +1 -0
  86. package/dist/index.mjs +1887 -0
  87. package/dist/index.mjs.map +1 -0
  88. package/dist/integration-platform.d.ts +857 -0
  89. package/dist/integration-platform.d.ts.map +1 -0
  90. package/dist/kubernetes.d.ts +278 -0
  91. package/dist/kubernetes.d.ts.map +1 -0
  92. package/dist/life-management.d.ts +1132 -0
  93. package/dist/life-management.d.ts.map +1 -0
  94. package/dist/log-management.d.ts +473 -0
  95. package/dist/log-management.d.ts.map +1 -0
  96. package/dist/mathematics.d.ts +870 -0
  97. package/dist/mathematics.d.ts.map +1 -0
  98. package/dist/message-queue.d.ts +1006 -0
  99. package/dist/message-queue.d.ts.map +1 -0
  100. package/dist/metrics-dashboard.d.ts +596 -0
  101. package/dist/metrics-dashboard.d.ts.map +1 -0
  102. package/dist/mobile-components.d.ts +766 -0
  103. package/dist/mobile-components.d.ts.map +1 -0
  104. package/dist/model-deployment.d.ts +787 -0
  105. package/dist/model-deployment.d.ts.map +1 -0
  106. package/dist/model-registry.d.ts +740 -0
  107. package/dist/model-registry.d.ts.map +1 -0
  108. package/dist/model-training.d.ts +706 -0
  109. package/dist/model-training.d.ts.map +1 -0
  110. package/dist/network-config.d.ts +334 -0
  111. package/dist/network-config.d.ts.map +1 -0
  112. package/dist/network-monitoring.d.ts +291 -0
  113. package/dist/network-monitoring.d.ts.map +1 -0
  114. package/dist/pdf-tools.d.ts +1003 -0
  115. package/dist/pdf-tools.d.ts.map +1 -0
  116. package/dist/pipelines.d.ts +250 -0
  117. package/dist/pipelines.d.ts.map +1 -0
  118. package/dist/remote-desktop.d.ts +207 -0
  119. package/dist/remote-desktop.d.ts.map +1 -0
  120. package/dist/report-designer.d.ts +1153 -0
  121. package/dist/report-designer.d.ts.map +1 -0
  122. package/dist/scada-industrial.d.ts +848 -0
  123. package/dist/scada-industrial.d.ts.map +1 -0
  124. package/dist/scientific-research.d.ts +1149 -0
  125. package/dist/scientific-research.d.ts.map +1 -0
  126. package/dist/secret-management.d.ts +617 -0
  127. package/dist/secret-management.d.ts.map +1 -0
  128. package/dist/security-scanning.d.ts +714 -0
  129. package/dist/security-scanning.d.ts.map +1 -0
  130. package/dist/self-service-analytics.d.ts +1208 -0
  131. package/dist/self-service-analytics.d.ts.map +1 -0
  132. package/dist/sensor-dashboard.d.ts +845 -0
  133. package/dist/sensor-dashboard.d.ts.map +1 -0
  134. package/dist/server-management.d.ts +331 -0
  135. package/dist/server-management.d.ts.map +1 -0
  136. package/dist/smart-home.d.ts +861 -0
  137. package/dist/smart-home.d.ts.map +1 -0
  138. package/dist/spreadsheet.d.ts +1043 -0
  139. package/dist/spreadsheet.d.ts.map +1 -0
  140. package/dist/sql-editor.d.ts +402 -0
  141. package/dist/sql-editor.d.ts.map +1 -0
  142. package/dist/terminal.d.ts +245 -0
  143. package/dist/terminal.d.ts.map +1 -0
  144. package/dist/testing-qa.d.ts +1013 -0
  145. package/dist/testing-qa.d.ts.map +1 -0
  146. package/dist/torrent-client.d.ts +298 -0
  147. package/dist/torrent-client.d.ts.map +1 -0
  148. package/dist/traceless.d.ts +759 -0
  149. package/dist/traceless.d.ts.map +1 -0
  150. package/dist/virtual-machines.d.ts +199 -0
  151. package/dist/virtual-machines.d.ts.map +1 -0
  152. package/dist/visual-scripting.d.ts +381 -0
  153. package/dist/visual-scripting.d.ts.map +1 -0
  154. package/dist/word-processor.d.ts +1124 -0
  155. package/dist/word-processor.d.ts.map +1 -0
  156. package/dist/workspace.d.ts +333 -0
  157. package/dist/workspace.d.ts.map +1 -0
  158. package/package.json +62 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon-tools.d.ts","sourceRoot":"","sources":["../src/icon-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH;;GAEG;AACH,MAAM,MAAM,SAA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,qCAAqC;IACrC,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,cAAc;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,mBAAmB,EAyFlD,CAAC"}
package/dist/ide.d.ts ADDED
@@ -0,0 +1,322 @@
1
+ /**
2
+ * IDE & Code Editor types (PRO-9.6.1, PRO-9.6.2)
3
+ *
4
+ * Multi-language code editor, LSP integration, live preview, hot reload.
5
+ *
6
+ * @module @nice2dev/ui-tools/ide
7
+ */
8
+ export interface IdeConfig {
9
+ /** Theme */
10
+ theme: 'light' | 'dark' | 'high-contrast' | string;
11
+ /** Font */
12
+ fontFamily: string;
13
+ fontSize: number;
14
+ fontLigatures: boolean;
15
+ /** Tab settings */
16
+ tabSize: number;
17
+ insertSpaces: boolean;
18
+ /** Display */
19
+ minimap: boolean;
20
+ lineNumbers: 'on' | 'off' | 'relative' | 'interval';
21
+ wordWrap: 'on' | 'off' | 'wordWrapColumn' | 'bounded';
22
+ wordWrapColumn: number;
23
+ /** Rulers */
24
+ rulers: number[];
25
+ /** Whitespace */
26
+ renderWhitespace: 'none' | 'boundary' | 'selection' | 'trailing' | 'all';
27
+ /** Bracket matching */
28
+ bracketPairColorization: boolean;
29
+ /** Guides */
30
+ indentGuides: boolean;
31
+ /** Scrolling */
32
+ smoothScrolling: boolean;
33
+ cursorSmoothCaretAnimation: boolean;
34
+ /** Auto-save */
35
+ autoSave: 'off' | 'afterDelay' | 'onFocusChange' | 'onWindowChange';
36
+ autoSaveDelay: number;
37
+ }
38
+ export interface EditorPane {
39
+ id: string;
40
+ /** Files open in this pane */
41
+ tabs: EditorTab[];
42
+ activeTabId: string;
43
+ /** Split direction */
44
+ splitDirection?: 'horizontal' | 'vertical';
45
+ /** Size (percentage) */
46
+ size: number;
47
+ /** Child panes (for splits) */
48
+ children?: EditorPane[];
49
+ }
50
+ export interface EditorTab {
51
+ id: string;
52
+ /** File path */
53
+ filePath: string;
54
+ /** Language */
55
+ language: string;
56
+ /** Modified */
57
+ dirty: boolean;
58
+ /** Preview mode */
59
+ preview: boolean;
60
+ /** Cursor position */
61
+ cursor: {
62
+ line: number;
63
+ column: number;
64
+ };
65
+ /** Scroll position */
66
+ scrollTop: number;
67
+ /** Pinned */
68
+ pinned: boolean;
69
+ }
70
+ export type SupportedLanguage = 'typescript' | 'javascript' | 'csharp' | 'gdscript' | 'lua' | 'python' | 'rust' | 'cpp' | 'c' | 'java' | 'go' | 'glsl' | 'hlsl' | 'wgsl' | 'json' | 'yaml' | 'toml' | 'xml' | 'html' | 'css' | 'scss' | 'markdown' | 'sql' | 'shell' | 'powershell' | 'dockerfile';
71
+ export interface LanguageConfig {
72
+ languageId: SupportedLanguage;
73
+ /** File extensions */
74
+ extensions: string[];
75
+ /** File names (exact match) */
76
+ filenames?: string[];
77
+ /** First line pattern */
78
+ firstLine?: string;
79
+ /** LSP server command */
80
+ lspCommand?: string;
81
+ lspArgs?: string[];
82
+ /** Formatter command */
83
+ formatterCommand?: string;
84
+ /** Comment syntax */
85
+ lineComment?: string;
86
+ blockCommentStart?: string;
87
+ blockCommentEnd?: string;
88
+ /** Brackets */
89
+ brackets: Array<[string, string]>;
90
+ /** Auto-closing pairs */
91
+ autoClosingPairs: Array<{
92
+ open: string;
93
+ close: string;
94
+ }>;
95
+ /** Indent rules */
96
+ indentationRules?: {
97
+ increaseIndentPattern: string;
98
+ decreaseIndentPattern: string;
99
+ };
100
+ }
101
+ export interface LspServerConfig {
102
+ id: string;
103
+ name: string;
104
+ languages: SupportedLanguage[];
105
+ /** Command to start */
106
+ command: string;
107
+ args: string[];
108
+ /** Transport */
109
+ transport: 'stdio' | 'tcp' | 'pipe';
110
+ /** TCP port (if transport = tcp) */
111
+ port?: number;
112
+ /** Initialization options */
113
+ initializationOptions?: Record<string, unknown>;
114
+ /** Server capabilities (filled after init) */
115
+ capabilities?: LspServerCapabilities;
116
+ /** Status */
117
+ status: 'stopped' | 'starting' | 'running' | 'error';
118
+ }
119
+ export interface LspServerCapabilities {
120
+ completionProvider: boolean;
121
+ hoverProvider: boolean;
122
+ signatureHelpProvider: boolean;
123
+ definitionProvider: boolean;
124
+ typeDefinitionProvider: boolean;
125
+ implementationProvider: boolean;
126
+ referencesProvider: boolean;
127
+ documentHighlightProvider: boolean;
128
+ documentSymbolProvider: boolean;
129
+ workspaceSymbolProvider: boolean;
130
+ codeActionProvider: boolean;
131
+ codeLensProvider: boolean;
132
+ documentFormattingProvider: boolean;
133
+ documentRangeFormattingProvider: boolean;
134
+ documentOnTypeFormattingProvider: boolean;
135
+ renameProvider: boolean;
136
+ foldingRangeProvider: boolean;
137
+ selectionRangeProvider: boolean;
138
+ callHierarchyProvider: boolean;
139
+ semanticTokensProvider: boolean;
140
+ inlayHintProvider: boolean;
141
+ }
142
+ export interface LspCompletionItem {
143
+ label: string;
144
+ kind: LspCompletionKind;
145
+ detail?: string;
146
+ documentation?: string | {
147
+ kind: 'markdown' | 'plaintext';
148
+ value: string;
149
+ };
150
+ deprecated?: boolean;
151
+ preselect?: boolean;
152
+ sortText?: string;
153
+ filterText?: string;
154
+ insertText?: string;
155
+ insertTextFormat?: 'plaintext' | 'snippet';
156
+ textEdit?: {
157
+ range: LspRange;
158
+ newText: string;
159
+ };
160
+ additionalTextEdits?: Array<{
161
+ range: LspRange;
162
+ newText: string;
163
+ }>;
164
+ commitCharacters?: string[];
165
+ command?: LspCommand;
166
+ }
167
+ export type LspCompletionKind = 'Text' | 'Method' | 'Function' | 'Constructor' | 'Field' | 'Variable' | 'Class' | 'Interface' | 'Module' | 'Property' | 'Unit' | 'Value' | 'Enum' | 'Keyword' | 'Snippet' | 'Color' | 'File' | 'Reference' | 'Folder' | 'EnumMember' | 'Constant' | 'Struct' | 'Event' | 'Operator' | 'TypeParameter';
168
+ export interface LspRange {
169
+ start: {
170
+ line: number;
171
+ character: number;
172
+ };
173
+ end: {
174
+ line: number;
175
+ character: number;
176
+ };
177
+ }
178
+ export interface LspLocation {
179
+ uri: string;
180
+ range: LspRange;
181
+ }
182
+ export interface LspDiagnostic {
183
+ range: LspRange;
184
+ severity: 'error' | 'warning' | 'information' | 'hint';
185
+ code?: string | number;
186
+ source?: string;
187
+ message: string;
188
+ relatedInformation?: Array<{
189
+ location: LspLocation;
190
+ message: string;
191
+ }>;
192
+ tags?: Array<'unnecessary' | 'deprecated'>;
193
+ }
194
+ export interface LspHover {
195
+ contents: string | {
196
+ kind: 'markdown' | 'plaintext';
197
+ value: string;
198
+ };
199
+ range?: LspRange;
200
+ }
201
+ export interface LspSignatureHelp {
202
+ signatures: Array<{
203
+ label: string;
204
+ documentation?: string;
205
+ parameters?: Array<{
206
+ label: string | [number, number];
207
+ documentation?: string;
208
+ }>;
209
+ activeParameter?: number;
210
+ }>;
211
+ activeSignature: number;
212
+ activeParameter: number;
213
+ }
214
+ export interface LspCodeAction {
215
+ title: string;
216
+ kind?: string;
217
+ diagnostics?: LspDiagnostic[];
218
+ isPreferred?: boolean;
219
+ disabled?: {
220
+ reason: string;
221
+ };
222
+ edit?: LspWorkspaceEdit;
223
+ command?: LspCommand;
224
+ }
225
+ export interface LspWorkspaceEdit {
226
+ changes?: Record<string, Array<{
227
+ range: LspRange;
228
+ newText: string;
229
+ }>>;
230
+ documentChanges?: Array<{
231
+ kind: 'create' | 'rename' | 'delete' | 'textDocumentEdit';
232
+ uri?: string;
233
+ newUri?: string;
234
+ oldUri?: string;
235
+ edits?: Array<{
236
+ range: LspRange;
237
+ newText: string;
238
+ }>;
239
+ }>;
240
+ }
241
+ export interface LspCommand {
242
+ title: string;
243
+ command: string;
244
+ arguments?: unknown[];
245
+ }
246
+ export interface LspSymbol {
247
+ name: string;
248
+ kind: LspSymbolKind;
249
+ deprecated?: boolean;
250
+ location: LspLocation;
251
+ containerName?: string;
252
+ /** For DocumentSymbol hierarchy */
253
+ children?: LspSymbol[];
254
+ range?: LspRange;
255
+ selectionRange?: LspRange;
256
+ }
257
+ export type LspSymbolKind = 'File' | 'Module' | 'Namespace' | 'Package' | 'Class' | 'Method' | 'Property' | 'Field' | 'Constructor' | 'Enum' | 'Interface' | 'Function' | 'Variable' | 'Constant' | 'String' | 'Number' | 'Boolean' | 'Array' | 'Object' | 'Key' | 'Null' | 'EnumMember' | 'Struct' | 'Event' | 'Operator' | 'TypeParameter';
258
+ export interface LivePreviewConfig {
259
+ /** Preview type */
260
+ type: 'html' | 'react' | 'shader' | 'markdown' | 'json' | 'yaml' | 'game-scene';
261
+ /** Source file */
262
+ sourceFile: string;
263
+ /** Auto-refresh */
264
+ autoRefresh: boolean;
265
+ /** Refresh delay (ms) */
266
+ refreshDelay: number;
267
+ /** Show errors inline */
268
+ showErrors: boolean;
269
+ /** Custom CSS */
270
+ customCss?: string;
271
+ /** Sandbox options (for HTML/React) */
272
+ sandbox?: {
273
+ allowScripts: boolean;
274
+ allowForms: boolean;
275
+ allowSameOrigin: boolean;
276
+ };
277
+ }
278
+ export interface LivePreviewState {
279
+ config: LivePreviewConfig;
280
+ /** Compiled output */
281
+ output?: string;
282
+ /** Errors */
283
+ errors: Array<{
284
+ line?: number;
285
+ column?: number;
286
+ message: string;
287
+ severity: 'error' | 'warning';
288
+ }>;
289
+ /** Loading */
290
+ loading: boolean;
291
+ /** Last refresh */
292
+ lastRefresh: string;
293
+ }
294
+ export interface HotReloadConfig {
295
+ /** Enabled */
296
+ enabled: boolean;
297
+ /** Watch patterns */
298
+ watchPatterns: string[];
299
+ /** Ignore patterns */
300
+ ignorePatterns: string[];
301
+ /** Debounce (ms) */
302
+ debounce: number;
303
+ /** Preserve state */
304
+ preserveState: boolean;
305
+ /** Full reload on error */
306
+ fullReloadOnError: boolean;
307
+ /** External commands */
308
+ preReloadCommand?: string;
309
+ postReloadCommand?: string;
310
+ }
311
+ export interface HotReloadEvent {
312
+ type: 'file-change' | 'hot-reload' | 'full-reload' | 'error';
313
+ timestamp: string;
314
+ files: string[];
315
+ /** Duration (ms) */
316
+ duration?: number;
317
+ /** Error */
318
+ error?: string;
319
+ /** State preserved */
320
+ statePreserved?: boolean;
321
+ }
322
+ //# sourceMappingURL=ide.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ide.d.ts","sourceRoot":"","sources":["../src/ide.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,WAAW,SAAS;IACxB,YAAY;IACZ,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,eAAe,GAAG,MAAM,CAAC;IACnD,WAAW;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,OAAO,CAAC;IACvB,mBAAmB;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,OAAO,CAAC;IACtB,cAAc;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,IAAI,GAAG,KAAK,GAAG,UAAU,GAAG,UAAU,CAAC;IACpD,QAAQ,EAAE,IAAI,GAAG,KAAK,GAAG,gBAAgB,GAAG,SAAS,CAAC;IACtD,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa;IACb,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,iBAAiB;IACjB,gBAAgB,EAAE,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,UAAU,GAAG,KAAK,CAAC;IACzE,uBAAuB;IACvB,uBAAuB,EAAE,OAAO,CAAC;IACjC,aAAa;IACb,YAAY,EAAE,OAAO,CAAC;IACtB,gBAAgB;IAChB,eAAe,EAAE,OAAO,CAAC;IACzB,0BAA0B,EAAE,OAAO,CAAC;IACpC,gBAAgB;IAChB,QAAQ,EAAE,KAAK,GAAG,YAAY,GAAG,eAAe,GAAG,gBAAgB,CAAC;IACpE,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,8BAA8B;IAC9B,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,sBAAsB;IACt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EAAE,OAAO,CAAC;CAC1B"}
package/dist/index.cjs ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@nice2dev/ui"),u=require("react"),B=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),U=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),H=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Q=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),q=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),$=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),G=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),W=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),X=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),K=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),J=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Y=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Z=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),ee=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),te=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),re=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),oe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),ne=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),ae=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),ie=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),se=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),le=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),de=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),ce=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),ue=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),pe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),ge=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),fe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),me=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),be=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),he=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),ye=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),we=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Se=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),_e=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),ve={"operation-operationId":{name:"operation-operationId",description:"Operation must have an operationId",severity:"error",category:"structure",fixable:!1},"operation-description":{name:"operation-description",description:"Operation should have a description",severity:"warn",category:"documentation",fixable:!1},"info-contact":{name:"info-contact",description:"Info object should have contact information",severity:"warn",category:"documentation",fixable:!1},"no-$ref-siblings":{name:"no-$ref-siblings",description:"A $ref object must not have sibling properties",severity:"error",category:"structure",fixable:!1},"path-params":{name:"path-params",description:"Path parameters must be defined",severity:"error",category:"structure",fixable:!1}},Oe=Object.freeze(Object.defineProperty({__proto__:null,OPENAPI_LINT_RULES:ve},Symbol.toStringTag,{value:"Module"})),Pe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),je=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Me=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Te=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),De=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Ce=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Ae=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),ke=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),ze=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Ne=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),xe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Le=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Ie=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Ee=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Fe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Ve=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Re=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Be=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Ue=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),He=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Qe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),qe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),$e=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Ge=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),We=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Xe=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Ke=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Je=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Ye=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Ze=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),et=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),tt=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),rt=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));function ot(a,e=2){if(a===0)return"0 B";const t=1024,r=e<0?0:e,o=["B","KB","MB","GB","TB","PB"],i=Math.floor(Math.log(a)/Math.log(t));return parseFloat((a/Math.pow(t,i)).toFixed(r))+" "+o[i]}function f(a){let t="B/s",r=a;return a>=1024*1024*1024?(t="GB/s",r=a/(1024*1024*1024)):a>=1024*1024?(t="MB/s",r=a/(1024*1024)):a>=1024&&(t="KB/s",r=a/1024),{bytesPerSecond:a,displayValue:r.toFixed(2),displayUnit:t}}function nt(a){if(!isFinite(a)||a<0)return"∞";const e=Math.floor(a/3600),t=Math.floor(a%3600/60),r=Math.floor(a%60);return e>0?`${e}h ${t}m`:t>0?`${t}m ${r}s`:`${r}s`}function _(a,e){if(!(e<=0))return Math.ceil(a/e)}function D(a){var e;if(a.startsWith("magnet:"))return C(a);try{const t=new URL(a),o=decodeURIComponent(t.pathname).split("/").pop()||"download",i=o.includes(".")?(e=o.split(".").pop())==null?void 0:e.toLowerCase():void 0;let s="https";return t.protocol==="http:"?s="http":t.protocol==="ftp:"?s="ftp":t.protocol==="sftp:"&&(s="sftp"),{url:a,protocol:s,host:t.host,filename:o,extension:i,fileType:i?A(i):void 0,resumable:s==="https"||s==="http",requiresAuth:!!t.username,isMagnet:!1,isMetalink:!1}}catch{return{url:a,protocol:"https",host:"unknown",filename:"download",resumable:!1,isMagnet:!1,isMetalink:!1}}}function C(a){var b;const e=new URLSearchParams(a.replace("magnet:?","")),r=(e.get("xt")||"").replace("urn:btih:",""),o=e.get("dn")||"Unknown Torrent",i=e.getAll("tr"),s=e.get("xl")?parseInt(e.get("xl"),10):void 0,c=((b=e.get("kt"))==null?void 0:b.split("+"))||[];return{url:a,protocol:"bittorrent",host:"bittorrent",filename:o,size:s,resumable:!0,isMagnet:!0,isMetalink:!1,magnetInfo:{infoHash:r,displayName:o,trackers:i,exactLength:s,keywords:c}}}function A(a){const e={video:["mp4","mkv","avi","mov","wmv","flv","webm","m4v","mpeg","mpg","3gp"],audio:["mp3","flac","wav","aac","ogg","wma","m4a","opus","aiff"],image:["jpg","jpeg","png","gif","bmp","svg","webp","ico","tiff","raw"],document:["pdf","doc","docx","xls","xlsx","ppt","pptx","txt","rtf","odt"],archive:["zip","rar","7z","tar","gz","bz2","xz","iso"],executable:["exe","msi","dmg","app","deb","rpm","apk"],code:["js","ts","py","java","cpp","c","cs","go","rs","rb","php"]};for(const[t,r]of Object.entries(e))if(r.includes(a.toLowerCase()))return t;return"other"}function k(){return`dl_${Date.now().toString(36)}_${Math.random().toString(36).substring(2,9)}`}async function z(a,e){if(typeof crypto>"u"||!crypto.subtle)return console.warn("Web Crypto API not available for checksum validation"),!0;const r={sha256:"SHA-256",sha512:"SHA-512",sha1:"SHA-1"}[e.algorithm];if(!r)return console.warn(`Unsupported checksum algorithm: ${e.algorithm}`),!0;const o=await crypto.subtle.digest(r,a);return Array.from(new Uint8Array(o)).map(c=>c.toString(16).padStart(2,"0")).join("").toLowerCase()===e.value.toLowerCase()}function at(a,e){if(a<=0||e<=0)return[];const t=Math.ceil(a/e),r=[];for(let o=0;o<e;o++){const i=o*t,s=Math.min(i+t-1,a-1);r.push({index:o,start:i,end:s,downloaded:0,status:"pending",retries:0})}return r}class N{constructor(e={}){this.downloads=new Map,this.activeDownloads=new Set,this.abortControllers=new Map,this.speedSamples=new Map,this.eventListeners=new Map,this.updateInterval=null,this.config={defaultDownloadPath:e.defaultDownloadPath??"/downloads",maxConcurrentDownloads:e.maxConcurrentDownloads??3,bandwidthLimit:e.bandwidthLimit,retryAttempts:e.retryAttempts??3,retryDelay:e.retryDelay??5e3,autoStart:e.autoStart??!0,resumeOnStartup:e.resumeOnStartup??!0,categories:e.categories??[],fileTypeFilters:e.fileTypeFilters??[]}}on(e,t){return this.eventListeners.has(e)||this.eventListeners.set(e,new Set),this.eventListeners.get(e).add(t),()=>{var r;return(r=this.eventListeners.get(e))==null?void 0:r.delete(t)}}emit(e){const t=this.eventListeners.get(e.type);if(t)for(const r of t)try{r(e)}catch(o){console.error("Download event listener error:",o)}}addDownload(e,t={}){const r=D(e),o=k(),i={id:o,url:e,filename:t.filename??r.filename,path:t.path??this.config.defaultDownloadPath,status:"queued",priority:t.priority??"normal",size:r.size,downloadedBytes:0,progress:0,speed:f(0),addedDate:new Date,retryCount:0,category:t.category??this.detectCategory(r.extension),source:{type:r.isMagnet?"magnet":"direct",protocol:r.protocol,host:r.host},checksum:t.checksum};return this.downloads.set(o,i),this.emit({type:"added",download:i}),this.emitQueueChanged(),(t.autoStart??this.config.autoStart)&&this.activeDownloads.size<this.config.maxConcurrentDownloads&&this.startDownload(o),i}addDownloads(e,t={}){return e.map(r=>this.addDownload(r,t))}removeDownload(e,t=!1){return this.downloads.get(e)?(this.cancelDownload(e),this.downloads.delete(e),this.emitQueueChanged(),t&&console.warn("File deletion not implemented in browser environment"),!0):!1}getDownload(e){return this.downloads.get(e)}getAllDownloads(){return Array.from(this.downloads.values())}getQueue(){const e=this.getAllDownloads(),t=e.reduce((o,i)=>o+(i.size??0),0),r=e.reduce((o,i)=>o+i.downloadedBytes,0);return{items:e,totalSize:t,totalProgress:t>0?r/t*100:0,activeDownloads:this.activeDownloads.size,queuedDownloads:e.filter(o=>o.status==="queued").length,completedDownloads:e.filter(o=>o.status==="completed").length}}getDownloadsByStatus(e){return this.getAllDownloads().filter(t=>t.status===e)}getDownloadsByCategory(e){return this.getAllDownloads().filter(t=>t.category===e)}async startDownload(e){const t=this.downloads.get(e);if(!t||t.status==="downloading")return;if(this.activeDownloads.size>=this.config.maxConcurrentDownloads){t.status="queued";return}t.status="downloading",t.startedDate=new Date,this.activeDownloads.add(e);const r=new AbortController;this.abortControllers.set(e,r),this.speedSamples.set(e,[]),this.emit({type:"started",download:t});try{await this.executeDownload(t,r.signal),t.status="completed",t.completedDate=new Date,t.progress=100,this.emit({type:"completed",download:t})}catch(o){if(r.signal.aborted)return;t.errorMessage=o instanceof Error?o.message:"Download failed",t.retryCount<this.config.retryAttempts?(t.retryCount++,t.status="queued",setTimeout(()=>this.startDownload(e),this.config.retryDelay)):(t.status="failed",this.emit({type:"failed",download:t,error:o instanceof Error?o:new Error(String(o))}))}finally{this.activeDownloads.delete(e),this.abortControllers.delete(e),this.speedSamples.delete(e),this.emitQueueChanged(),this.processQueue()}}pauseDownload(e){const t=this.downloads.get(e);if(!t||t.status!=="downloading")return;const r=this.abortControllers.get(e);r&&r.abort(),t.status="paused",this.activeDownloads.delete(e),this.emit({type:"paused",download:t}),this.emitQueueChanged(),this.processQueue()}resumeDownload(e){const t=this.downloads.get(e);!t||t.status!=="paused"||(t.status="queued",this.emit({type:"resumed",download:t}),this.startDownload(e))}cancelDownload(e){const t=this.downloads.get(e);if(!t)return;const r=this.abortControllers.get(e);r&&r.abort(),t.status="cancelled",this.activeDownloads.delete(e),this.emit({type:"cancelled",download:t}),this.emitQueueChanged(),this.processQueue()}pauseAll(){for(const e of this.activeDownloads)this.pauseDownload(e)}resumeAll(){for(const e of this.downloads.values())e.status==="paused"&&this.resumeDownload(e.id)}cancelAll(){for(const e of this.downloads.keys())this.cancelDownload(e)}setPriority(e,t){const r=this.downloads.get(e);r&&(r.priority=t,this.emitQueueChanged())}moveInQueue(e,t){const r=this.getAllDownloads().filter(i=>i.status==="queued"),o=r.findIndex(i=>i.id===e);if(o!==-1){switch(t){case"top":r[o].priority="critical";break;case"up":r[o].priority==="normal"?r[o].priority="high":r[o].priority==="low"&&(r[o].priority="normal");break;case"down":r[o].priority==="normal"?r[o].priority="low":r[o].priority==="high"&&(r[o].priority="normal");break;case"bottom":r[o].priority="low";break}this.emitQueueChanged()}}getConfig(){return{...this.config}}updateConfig(e){this.config={...this.config,...e}}setBandwidthLimit(e){this.config.bandwidthLimit=e}setMaxConcurrentDownloads(e){this.config.maxConcurrentDownloads=e,this.processQueue()}addCategory(e){this.config.categories=[...this.config.categories??[],e]}getStats(){const e=this.getAllDownloads(),t=e.reduce((i,s)=>i+s.downloadedBytes,0),r=e.reduce((i,s)=>i+(s.size??0),0);let o=0;for(const i of this.activeDownloads){const s=this.downloads.get(i);s&&(o+=s.speed.bytesPerSecond)}return{downloaded:t,uploaded:0,remaining:r-t,total:r,progress:r>0?t/r*100:0,downloadSpeed:f(o),uploadSpeed:f(0),eta:o>0?_(r-t,o):void 0}}async executeDownload(e,t){var g,d;const r=await fetch(e.url,{signal:t,headers:(g=e.source)!=null&&g.auth?this.buildAuthHeaders(e.source.auth):void 0});if(!r.ok)throw new Error(`HTTP ${r.status}: ${r.statusText}`);const o=r.headers.get("content-length");o&&(e.size=parseInt(o,10));const i=(d=r.body)==null?void 0:d.getReader();if(!i)throw new Error("Response body is not readable");const s=[];let c=Date.now(),m=0;for(;;){const{done:p,value:h}=await i.read();if(p)break;s.push(h),e.downloadedBytes+=h.length,m+=h.length,e.size&&(e.progress=e.downloadedBytes/e.size*100);const S=Date.now(),T=S-c;if(T>=500){const O=m/T*1e3;this.updateSpeed(e.id,O),e.speed=f(O),e.eta=e.size?_(e.size-e.downloadedBytes,O):void 0,this.emit({type:"progress",download:e}),c=S,m=0}}const b=new Uint8Array(e.downloadedBytes);let l=0;for(const p of s)b.set(p,l),l+=p.length;if(e.checksum){if(!await z(b.buffer,e.checksum))throw new Error("Checksum validation failed");e.checksum.verified=!0}this.handleDownloadComplete(e,b)}handleDownloadComplete(e,t){if(typeof window<"u"&&typeof document<"u"){const r=new Blob([new Uint8Array(t)]),o=URL.createObjectURL(r),i=document.createElement("a");i.href=o,i.download=e.filename,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(o)}}buildAuthHeaders(e){if(!e)return{};switch(e.type){case"basic":return{Authorization:`Basic ${btoa(`${e.username}:${e.password}`)}`};case"bearer":return{Authorization:`Bearer ${e.token}`};case"api_key":return{"X-API-Key":e.apiKey??""};default:return{}}}updateSpeed(e,t){const r=this.speedSamples.get(e)||[];r.push(t),r.length>10&&r.shift(),this.speedSamples.set(e,r)}processQueue(){if(this.activeDownloads.size>=this.config.maxConcurrentDownloads)return;const e=this.getDownloadsByStatus("queued").sort((t,r)=>{const o={critical:0,high:1,normal:2,low:3};return o[t.priority]-o[r.priority]});for(const t of e){if(this.activeDownloads.size>=this.config.maxConcurrentDownloads)break;this.startDownload(t.id)}}detectCategory(e){var t;if(!(!e||!this.config.categories)){for(const r of this.config.categories)if((t=r.fileTypes)!=null&&t.includes(e.toLowerCase()))return r.id}}emitQueueChanged(){this.emit({type:"queue-changed",queue:this.getQueue()})}dispose(){this.cancelAll(),this.updateInterval&&clearInterval(this.updateInterval),this.eventListeners.clear(),this.downloads.clear()}}let y=null;function x(a){return y||(y=new N(a)),y}function it(){y==null||y.dispose(),y=null}function st(a={}){const{config:e,autoRefresh:t=!0,refreshInterval:r=1e3}=a,o=u.useMemo(()=>x(e),[e]),[i,s]=u.useState(o.getQueue()),[c,m]=u.useState(o.getStats());u.useEffect(()=>{const d=()=>{s(o.getQueue()),m(o.getStats())},p=[o.on("added",d),o.on("started",d),o.on("progress",d),o.on("paused",d),o.on("resumed",d),o.on("completed",d),o.on("failed",d),o.on("cancelled",d),o.on("queue-changed",d)];let h;return t&&(h=setInterval(()=>{o.getQueue().activeDownloads>0&&d()},r)),()=>{p.forEach(S=>S()),h&&clearInterval(h)}},[o,t,r]);const b=u.useMemo(()=>i.items.filter(d=>d.status==="downloading"),[i]),l=u.useCallback((d,p)=>o.addDownload(d,p),[o]),g=u.useCallback((d,p)=>o.addDownloads(d,p),[o]);return{queue:i,stats:c,activeDownloads:b,addDownload:l,addDownloads:g,startDownload:u.useCallback(d=>o.startDownload(d),[o]),pauseDownload:u.useCallback(d=>o.pauseDownload(d),[o]),resumeDownload:u.useCallback(d=>o.resumeDownload(d),[o]),cancelDownload:u.useCallback(d=>o.cancelDownload(d),[o]),removeDownload:u.useCallback((d,p)=>o.removeDownload(d,p),[o]),pauseAll:u.useCallback(()=>o.pauseAll(),[o]),resumeAll:u.useCallback(()=>o.resumeAll(),[o]),setBandwidthLimit:u.useCallback(d=>o.setBandwidthLimit(d),[o]),setPriority:u.useCallback((d,p)=>o.setPriority(d,p),[o])}}function j(){const a="0123456789abcdef";let e="";for(let t=0;t<40;t++)e+=a[Math.floor(Math.random()*a.length)];return e}function L(){const a="-NI0100-",e=Array.from({length:12},()=>Math.floor(Math.random()*256).toString(16).padStart(2,"0")).join("");return a+e}function I(a){var m;if(!a.startsWith("magnet:?"))return null;const e=new URLSearchParams(a.replace("magnet:?","")),t=e.get("xt");if(!t)return null;const r=t.replace("urn:btih:",""),o=e.get("dn")||void 0,i=e.getAll("tr"),s=e.get("xl")?parseInt(e.get("xl"),10):void 0,c=((m=e.get("kt"))==null?void 0:m.split("+"))||void 0;return{infoHash:r,displayName:o,trackers:i.length>0?i:void 0,exactLength:s,keywords:c}}function E(a){const e=new URLSearchParams;if(e.set("xt",`urn:btih:${a.infoHash}`),e.set("dn",a.name),a.size&&e.set("xl",a.size.toString()),a.trackers)for(const t of a.trackers)e.append("tr",t);return`magnet:?${e.toString()}`}function v(a,e=262144){return Math.ceil(a/e)}function P(a){return Array.from({length:a},()=>"missing")}function lt(a,e){return`${a}/${e}`}function dt(a,e){if(a===0)return"dead";const t=a/(e+1);return t>=2&&a>=10?"excellent":t>=1&&a>=5?"good":a>=1?"fair":"poor"}function ct(a){return new Map(a.map(e=>[e.index,e.wanted]))}function M(a,e){return a.filter(t=>{var o;const r=(o=t.name.split(".").pop())==null?void 0:o.toLowerCase();return r&&e.includes(r)})}function ut(a){return M(a,["mp4","mkv","avi","mov","wmv","flv","webm","m4v","mpeg","mpg"])}function pt(a){return M(a,["mp3","flac","wav","aac","ogg","wma","m4a","opus"])}function gt(a){return a.reduce((e,t)=>t.size>((e==null?void 0:e.size)??0)?t:e,void 0)}class F{constructor(e={}){this.torrents=new Map,this.eventListeners=new Map,this.updateIntervals=new Map,this.peerId=L(),this.config={downloadPath:e.downloadPath??"/downloads/torrents",tempPath:e.tempPath,maxActiveTorrents:e.maxActiveTorrents??5,maxActiveSeedsperTorrent:e.maxActiveSeedsperTorrent??50,maxConnectionsPerTorrent:e.maxConnectionsPerTorrent??50,maxGlobalConnections:e.maxGlobalConnections??200,bandwidthLimit:e.bandwidthLimit??{enabled:!1,unit:"MB/s"},dhtEnabled:e.dhtEnabled??!0,pexEnabled:e.pexEnabled??!0,lpdEnabled:e.lpdEnabled??!0,upnpEnabled:e.upnpEnabled??!0,natPmpEnabled:e.natPmpEnabled??!0,encryptionMode:e.encryptionMode??"enabled",ipv6Enabled:e.ipv6Enabled??!0,listeningPort:e.listeningPort??6881,proxySettings:e.proxySettings},this.config.dhtEnabled&&this.initDHT(),this.config.pexEnabled&&this.initPEX()}on(e,t){return this.eventListeners.has(e)||this.eventListeners.set(e,new Set),this.eventListeners.get(e).add(t),()=>{var r;return(r=this.eventListeners.get(e))==null?void 0:r.delete(t)}}emit(e){const t=this.eventListeners.get(e.type);if(t)for(const r of t)try{r(e)}catch(o){console.error("Torrent event listener error:",o)}}addMagnet(e,t={}){const r=I(e);if(!r)return console.error("Invalid magnet URI"),null;if(this.torrents.has(r.infoHash))return this.torrents.get(r.infoHash);const o=this.createTorrent({infoHash:r.infoHash,name:r.displayName??"Unknown Torrent",size:r.exactLength,trackers:r.trackers,magnetUri:e,...t});return this.torrents.set(o.infoHash,o),this.emit({type:"added",torrent:o}),t.autoStart!==!1&&this.startTorrent(o.infoHash),o}addTorrentFile(e,t={}){const r=j(),o=this.createTorrent({infoHash:r,name:"Torrent from file",...t});return this.torrents.set(o.infoHash,o),this.emit({type:"added",torrent:o}),t.autoStart!==!1&&this.startTorrent(o.infoHash),o}createTorrent(e){const t=e.size?v(e.size):0,r=(e.trackers||this.getDefaultTrackers()).filter((o,i,s)=>s.indexOf(o)===i).map((o,i)=>({url:o,tier:Math.floor(i/3),status:"not_contacted",seeds:void 0,leechers:void 0}));return{id:`torrent_${Date.now().toString(36)}_${Math.random().toString(36).substring(2,9)}`,infoHash:e.infoHash,name:e.name,status:"queued",priority:e.priority??"normal",size:e.size??0,downloadedBytes:0,uploadedBytes:0,progress:0,ratio:0,downloadSpeed:f(0),uploadSpeed:f(0),seeds:0,peers:0,trackers:r,files:[],pieces:P(t),savePath:e.path??this.config.downloadPath,isPrivate:!1,magnetUri:e.magnetUri,addedDate:new Date,sequentialDownload:e.sequentialDownload??!1,selectedFiles:e.selectedFiles??[]}}removeTorrent(e,t=!1){const r=this.torrents.get(e);return r?(this.stopTorrent(e),this.torrents.delete(e),this.emit({type:"removed",torrent:r}),t&&console.warn("Data deletion not implemented in browser environment"),!0):!1}getTorrent(e){return this.torrents.get(e)}getAllTorrents(){return Array.from(this.torrents.values())}getTorrentsByStatus(e){return this.getAllTorrents().filter(t=>t.status===e)}startTorrent(e){const t=this.torrents.get(e);t&&(t.status==="downloading"||t.status==="seeding"||(t.files.length===0&&t.magnetUri?(t.status="checking",this.fetchMetadata(t)):(t.status="downloading",t.startedDate=new Date),this.emit({type:"started",torrent:t}),this.simulateTorrentProgress(e)))}pauseTorrent(e){const t=this.torrents.get(e);if(!t)return;const r=this.updateIntervals.get(e);r&&(clearInterval(r),this.updateIntervals.delete(e)),t.status="paused",t.downloadSpeed=f(0),t.uploadSpeed=f(0),this.emit({type:"paused",torrent:t})}resumeTorrent(e){const t=this.torrents.get(e);!t||t.status!=="paused"||(t.status=t.progress>=100?"seeding":"downloading",this.emit({type:"resumed",torrent:t}),this.simulateTorrentProgress(e))}stopTorrent(e){const t=this.torrents.get(e);if(!t)return;const r=this.updateIntervals.get(e);r&&(clearInterval(r),this.updateIntervals.delete(e)),t.status="stopped",t.downloadSpeed=f(0),t.uploadSpeed=f(0)}recheckTorrent(e){const t=this.torrents.get(e);t&&(t.status="checking",setTimeout(()=>{t.status==="checking"&&(t.status=t.progress>=100?"seeding":"queued")},2e3))}announceToTrackers(e){const t=this.torrents.get(e);if(t)for(const r of t.trackers)r.status="updating",setTimeout(()=>{r.status="working",r.lastAnnounce=new Date,r.seeds=Math.floor(Math.random()*100),r.leechers=Math.floor(Math.random()*50),this.emit({type:"tracker-update",torrent:t,tracker:r})},1e3+Math.random()*2e3)}setFileSelection(e,t,r){const o=this.torrents.get(e);if(!o)return;const i=o.files.find(s=>s.index===t);i&&(i.wanted=r,i.priority=r?"normal":"skip",o.selectedFiles&&(r&&!o.selectedFiles.includes(t)?o.selectedFiles.push(t):r||(o.selectedFiles=o.selectedFiles.filter(s=>s!==t))))}setFilePriority(e,t,r){const o=this.torrents.get(e);if(!o)return;const i=o.files.find(s=>s.index===t);i&&(i.priority=r,i.wanted=r!=="skip")}selectAllFiles(e){const t=this.torrents.get(e);if(t){for(const r of t.files)r.wanted=!0,r.priority="normal";t.selectedFiles!==void 0&&(t.selectedFiles=t.files.map(r=>r.index))}}deselectAllFiles(e){const t=this.torrents.get(e);if(t){for(const r of t.files)r.wanted=!1,r.priority="skip";t.selectedFiles!==void 0&&(t.selectedFiles=[])}}setSequentialDownload(e,t){const r=this.torrents.get(e);r&&(r.sequentialDownload=t)}getConfig(){return{...this.config}}updateConfig(e){this.config={...this.config,...e}}setDownloadLimit(e){e!==void 0?this.config.bandwidthLimit={...this.config.bandwidthLimit,download:e,enabled:!0}:this.config.bandwidthLimit={...this.config.bandwidthLimit,download:void 0}}setUploadLimit(e){e!==void 0?this.config.bandwidthLimit={...this.config.bandwidthLimit,upload:e,enabled:!0}:this.config.bandwidthLimit={...this.config.bandwidthLimit,upload:void 0}}setDHTEnabled(e){this.config.dhtEnabled=e,e&&this.initDHT()}setPEXEnabled(e){this.config.pexEnabled=e,e&&this.initPEX()}getStatistics(){const e=this.getAllTorrents();let t=0,r=0,o=0,i=0,s=0;for(const c of e)t+=c.downloadedBytes,r+=c.uploadedBytes,o+=c.downloadSpeed.bytesPerSecond,i+=c.uploadSpeed.bytesPerSecond,s+=c.peers;return{activeSeeders:e.filter(c=>c.status==="seeding").length,activeDownloads:e.filter(c=>c.status==="downloading").length,totalDownloaded:t,totalUploaded:r,downloadSpeed:f(o),uploadSpeed:f(i),globalRatio:t>0?r/t:0,dhtNodes:this.config.dhtEnabled?Math.floor(Math.random()*500+100):0,totalPeers:s,sessionDuration:0}}getDefaultTrackers(){return["udp://tracker.opentrackr.org:1337/announce","udp://tracker.openbittorrent.com:6969/announce","udp://open.stealth.si:80/announce","udp://tracker.torrent.eu.org:451/announce"]}initDHT(){console.log("DHT initialized")}initPEX(){console.log("PEX initialized")}fetchMetadata(e){setTimeout(()=>{e.status==="checking"&&(e.files=[{index:0,name:`${e.name}.mkv`,path:`${e.name}/${e.name}.mkv`,size:Math.floor(Math.random()*2e9)+5e8,progress:0,downloaded:0,priority:"normal",wanted:!0},{index:1,name:"sample.mp4",path:`${e.name}/sample.mp4`,size:Math.floor(Math.random()*5e7)+1e7,progress:0,downloaded:0,priority:"normal",wanted:!0},{index:2,name:"readme.txt",path:`${e.name}/readme.txt`,size:1024,progress:0,downloaded:0,priority:"low",wanted:!0}],e.size=e.files.reduce((t,r)=>t+r.size,0),e.selectedFiles=e.files.map(t=>t.index),e.pieces=P(v(e.size)),e.status="downloading",this.emit({type:"metadata",torrent:e}),this.emit({type:"started",torrent:e}))},2e3+Math.random()*3e3)}simulateTorrentProgress(e){this.updateIntervals.has(e)&&clearInterval(this.updateIntervals.get(e));const t=setInterval(()=>{const r=this.torrents.get(e);if(!r){clearInterval(t);return}if(!(r.status!=="downloading"&&r.status!=="seeding")){if(r.status==="downloading"&&r.size>0){const o=1e6+Math.random()*5e6,i=this.config.bandwidthLimit.download?Math.min(o,this.config.bandwidthLimit.download):o,s=i*(1+Math.random()*.5);r.downloadedBytes=Math.min(r.downloadedBytes+s,r.size),r.progress=r.downloadedBytes/r.size*100,r.downloadSpeed=f(i),r.uploadSpeed=f(i*.1*Math.random());for(const c of r.files)c.wanted&&(c.downloaded=Math.min(c.downloaded+s*(c.size/r.size),c.size),c.progress=c.downloaded/c.size*100);r.peers=Math.floor(Math.random()*30)+5,r.seeds=Math.floor(r.peers*.6),r.eta=_(r.size-r.downloadedBytes,i),this.emit({type:"progress",torrent:r}),r.progress>=100&&(r.status="seeding",r.completedDate=new Date,r.progress=100,r.downloadedBytes=r.size,this.emit({type:"completed",torrent:r}),this.emit({type:"seeding",torrent:r}))}if(r.status==="seeding"){const o=5e5+Math.random()*2e6;r.uploadedBytes+=o,r.uploadSpeed=f(o),r.downloadSpeed=f(0),r.ratio=r.size>0?r.uploadedBytes/r.size:0,r.peers=Math.floor(Math.random()*10)+1,r.seeds=0}}},1e3);this.updateIntervals.set(e,t)}dispose(){for(const e of this.updateIntervals.values())clearInterval(e);this.updateIntervals.clear(),this.torrents.clear(),this.eventListeners.clear()}}async function V(a){const{name:e,files:t,trackers:r=[],comment:o,isPrivate:i=!1,pieceSize:s=262144,webSeeds:c=[]}=a,m=t.reduce((h,S)=>h+S.size,0),b=j(),l=v(m,s),g=E({infoHash:b,name:e,trackers:r,size:m}),p=new TextEncoder().encode(JSON.stringify({announce:r[0]||"",info:{name:e,"piece length":s,length:m,private:i?1:0},comment:o,"url-list":c}));return{infoHash:b,magnetLink:g,torrentFile:p,size:m,pieceCount:l,pieceSize:s}}let w=null;function R(a){return w||(w=new F(a)),w}function ft(){w==null||w.dispose(),w=null}function mt(a={}){const{config:e,autoRefresh:t=!0,refreshInterval:r=1e3}=a,o=u.useMemo(()=>R(e),[e]),[i,s]=u.useState(o.getAllTorrents()),[c,m]=u.useState(o.getStatistics());u.useEffect(()=>{const l=()=>{s([...o.getAllTorrents()]),m(o.getStatistics())},g=[o.on("added",l),o.on("metadata",l),o.on("started",l),o.on("progress",l),o.on("paused",l),o.on("resumed",l),o.on("completed",l),o.on("seeding",l),o.on("failed",l),o.on("removed",l)];let d;return t&&(d=setInterval(()=>{(o.getStatistics().activeDownloads>0||o.getStatistics().activeSeeders>0)&&l()},r)),()=>{g.forEach(p=>p()),d&&clearInterval(d)}},[o,t,r]);const b=u.useMemo(()=>i.filter(l=>l.status==="downloading"||l.status==="seeding"),[i]);return{torrents:i,statistics:c,activeTorrents:b,addMagnet:u.useCallback((l,g)=>o.addMagnet(l,g),[o]),addTorrentFile:u.useCallback((l,g)=>o.addTorrentFile(l,g),[o]),removeTorrent:u.useCallback((l,g)=>o.removeTorrent(l,g),[o]),startTorrent:u.useCallback(l=>o.startTorrent(l),[o]),pauseTorrent:u.useCallback(l=>o.pauseTorrent(l),[o]),resumeTorrent:u.useCallback(l=>o.resumeTorrent(l),[o]),stopTorrent:u.useCallback(l=>o.stopTorrent(l),[o]),setFileSelection:u.useCallback((l,g,d)=>o.setFileSelection(l,g,d),[o]),setSequentialDownload:u.useCallback((l,g)=>o.setSequentialDownload(l,g),[o]),setDownloadLimit:u.useCallback(l=>o.setDownloadLimit(l),[o]),setUploadLimit:u.useCallback(l=>o.setUploadLimit(l),[o]),createTorrent:V}}const bt={cookiesAllowed:!1,localStorageAllowed:!1,sessionStorageAllowed:!1,indexedDBAllowed:!1,webSQLAllowed:!1,serviceWorkerCacheAllowed:!1,effectiveMode:"traceless",consentRequired:!1,canPersist:!1,policySource:"instance",resolvedAt:new Date().toISOString()},ht={cookiesAllowed:!0,localStorageAllowed:!0,sessionStorageAllowed:!0,indexedDBAllowed:!0,webSQLAllowed:!0,serviceWorkerCacheAllowed:!0,effectiveMode:"full",consentRequired:!0,canPersist:!0,policySource:"instance",resolvedAt:new Date().toISOString()},yt={traceless:{cookiesAllowed:!1,localStorageAllowed:!1,sessionStorageAllowed:!1,indexedDBAllowed:!1,webSQLAllowed:!1,serviceWorkerCacheAllowed:!1},ephemeral:{cookiesAllowed:!1,localStorageAllowed:!1,sessionStorageAllowed:!0,indexedDBAllowed:!1,webSQLAllowed:!1,serviceWorkerCacheAllowed:!1},private:{cookiesAllowed:!1,localStorageAllowed:!1,sessionStorageAllowed:!0,indexedDBAllowed:!1,webSQLAllowed:!1,serviceWorkerCacheAllowed:!1},balanced:{cookiesAllowed:!1,localStorageAllowed:!0,sessionStorageAllowed:!0,indexedDBAllowed:!0,webSQLAllowed:!1,serviceWorkerCacheAllowed:!0},full:{cookiesAllowed:!0,localStorageAllowed:!0,sessionStorageAllowed:!0,indexedDBAllowed:!0,webSQLAllowed:!0,serviceWorkerCacheAllowed:!0},custom:{cookiesAllowed:!1,localStorageAllowed:!1,sessionStorageAllowed:!1,indexedDBAllowed:!1,webSQLAllowed:!1,serviceWorkerCacheAllowed:!1}},wt=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_FULL_POLICY:ht,DEFAULT_TRACELESS_POLICY:bt,MODE_CAPABILITIES:yt},Symbol.toStringTag,{value:"Module"})),St={normalText:4.5,largeText:3,uiComponents:3,graphicalObjects:3,focusIndicators:3},_t={normalText:7,largeText:4.5,uiComponents:3,graphicalObjects:3,focusIndicators:4.5},vt={targetLevel:"AA",wcagVersion:"2.1",screenReaderOptimizations:!0,keyboardNavigation:!0,enforceColorContrast:!0,minContrastRatio:4.5,respectReducedMotion:!0,focusVisible:!0,highContrastSupport:!0,forcedColorsSupport:!0,automatedTesting:!0},Ot=["en","en-US","en-GB","es","es-ES","es-MX","fr","fr-FR","fr-CA","de","de-DE","it","it-IT","pt","pt-BR","pt-PT","ru","ru-RU","zh","zh-CN","zh-TW","ja","ja-JP","ko","ko-KR","ar","ar-SA","he","he-IL","hi","hi-IN","pl","pl-PL","nl","nl-NL","tr","tr-TR","sv","sv-SE","da","da-DK","no","nb-NO","fi","fi-FI","cs","cs-CZ","sk","sk-SK","hu","hu-HU","ro","ro-RO","bg","bg-BG","uk","uk-UA","el","el-GR","th","th-TH","vi","vi-VN","id","id-ID","ms","ms-MY"],Pt=["ar","ar-SA","ar-AE","ar-EG","ar-MA","he","he-IL","fa","fa-IR","ur","ur-PK","ps","sd","yi"],jt=Object.freeze(Object.defineProperty({__proto__:null,COMMON_LOCALES:Ot,DEFAULT_ACCESSIBILITY_CONFIG:vt,RTL_LOCALES:Pt,WCAG_AAA_CONTRAST:_t,WCAG_AA_CONTRAST:St},Symbol.toStringTag,{value:"Module"})),Mt=[{width:16,height:16,purpose:"favicon",format:"ico"},{width:32,height:32,purpose:"favicon",format:"png"},{width:48,height:48,purpose:"favicon",format:"png"},{width:180,height:180,purpose:"apple-touch",format:"png"},{width:192,height:192,purpose:"any",format:"png"},{width:512,height:512,purpose:"any",format:"png"},{width:512,height:512,purpose:"maskable",format:"png"}],Tt=[{name:"Business Icons",npmName:"@nice2dev/icons-business",description:"All ERP-related icons for business applications",iconCount:500,categories:["accounting","hr","crm","production","warehouse","sales","purchasing"],domains:["business","finance","hr","logistics"],dependencies:[],version:"1.0.0"},{name:"Education Icons",npmName:"@nice2dev/icons-education",description:"Educational, scientific, and mathematical icons",iconCount:300,categories:["subjects","learning","school","science","math"],domains:["education","science"],dependencies:[],version:"1.0.0"},{name:"Tech Icons",npmName:"@nice2dev/icons-tech",description:"Development tools, infrastructure, cloud, and containers",iconCount:400,categories:["devtools","infrastructure","cloud","containers","networking"],domains:["technology"],dependencies:[],version:"1.0.0"},{name:"Media Icons",npmName:"@nice2dev/icons-media",description:"Audio, video, graphics, 3D, and streaming icons",iconCount:350,categories:["audio","video","graphics","3d","streaming"],domains:["creative"],dependencies:[],version:"1.0.0"},{name:"Social Icons",npmName:"@nice2dev/icons-social",description:"Social platforms, reactions, and messaging icons",iconCount:200,categories:["platforms","reactions","messaging"],domains:[],dependencies:[],version:"1.0.0"},{name:"Game Icons",npmName:"@nice2dev/icons-game",description:"Characters, items, UI elements, and game actions",iconCount:400,categories:["characters","items","ui","actions"],domains:["gaming"],dependencies:[],version:"1.0.0"},{name:"Life Management Icons",npmName:"@nice2dev/icons-life",description:"Personal finance, health, productivity, and home icons",iconCount:300,categories:["finance","health","productivity","home","family"],domains:["life-management"],dependencies:[],version:"1.0.0"},{name:"All Icons",npmName:"@nice2dev/icons-all",description:"Meta-package containing all icon packs",iconCount:2500,categories:[],domains:[],dependencies:["@nice2dev/icons-business","@nice2dev/icons-education","@nice2dev/icons-tech","@nice2dev/icons-media","@nice2dev/icons-social","@nice2dev/icons-game","@nice2dev/icons-life"],version:"1.0.0"}],Dt=Object.freeze(Object.defineProperty({__proto__:null,STANDARD_FAVICON_SIZES:Mt,THEMATIC_PACKAGES:Tt},Symbol.toStringTag,{value:"Module"})),Ct=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));Object.defineProperty(exports,"CURRENT_SCHEMA_VERSION",{enumerable:!0,get:()=>n.CURRENT_SCHEMA_VERSION});Object.defineProperty(exports,"NiceAuditLog",{enumerable:!0,get:()=>n.NiceAuditLog});Object.defineProperty(exports,"NiceChat",{enumerable:!0,get:()=>n.NiceChat});Object.defineProperty(exports,"NiceColumnChooser",{enumerable:!0,get:()=>n.NiceColumnChooser});Object.defineProperty(exports,"NiceComponentTypeMapping",{enumerable:!0,get:()=>n.NiceComponentTypeMapping});Object.defineProperty(exports,"NiceDesignTokens",{enumerable:!0,get:()=>n.NiceDesignTokens});Object.defineProperty(exports,"NiceDiagramDesigner",{enumerable:!0,get:()=>n.NiceDiagramDesigner});Object.defineProperty(exports,"NiceDisplayStylePicker",{enumerable:!0,get:()=>n.NiceDisplayStylePicker});Object.defineProperty(exports,"NiceDocumentViewer",{enumerable:!0,get:()=>n.NiceDocumentViewer});Object.defineProperty(exports,"NiceDraggable",{enumerable:!0,get:()=>n.NiceDraggable});Object.defineProperty(exports,"NiceFeatureFlagsProvider",{enumerable:!0,get:()=>n.NiceFeatureFlagsProvider});Object.defineProperty(exports,"NiceFeatureGate",{enumerable:!0,get:()=>n.NiceFeatureGate});Object.defineProperty(exports,"NiceFileManager",{enumerable:!0,get:()=>n.NiceFileManager});Object.defineProperty(exports,"NiceFileUploader",{enumerable:!0,get:()=>n.NiceFileUploader});Object.defineProperty(exports,"NiceFilterBuilder",{enumerable:!0,get:()=>n.NiceFilterBuilder});Object.defineProperty(exports,"NiceGallery",{enumerable:!0,get:()=>n.NiceGallery});Object.defineProperty(exports,"NiceGitManager",{enumerable:!0,get:()=>n.NiceGitManager});Object.defineProperty(exports,"NiceMap",{enumerable:!0,get:()=>n.NiceMap});Object.defineProperty(exports,"NiceModuleHotSwap",{enumerable:!0,get:()=>n.NiceModuleHotSwap});Object.defineProperty(exports,"NiceModuleLoaderProvider",{enumerable:!0,get:()=>n.NiceModuleLoaderProvider});Object.defineProperty(exports,"NiceModuleRoute",{enumerable:!0,get:()=>n.NiceModuleRoute});Object.defineProperty(exports,"NicePermissionMatrix",{enumerable:!0,get:()=>n.NicePermissionMatrix});Object.defineProperty(exports,"NicePrintPreview",{enumerable:!0,get:()=>n.NicePrintPreview});Object.defineProperty(exports,"NiceShowcase",{enumerable:!0,get:()=>n.NiceShowcase});Object.defineProperty(exports,"NiceSortable",{enumerable:!0,get:()=>n.NiceSortable});Object.defineProperty(exports,"NiceSpeechToText",{enumerable:!0,get:()=>n.NiceSpeechToText});Object.defineProperty(exports,"NiceThemeBuilder",{enumerable:!0,get:()=>n.NiceThemeBuilder});Object.defineProperty(exports,"NiceThemeDesigner",{enumerable:!0,get:()=>n.NiceThemeDesigner});Object.defineProperty(exports,"NiceUndoManager",{enumerable:!0,get:()=>n.NiceUndoManager});Object.defineProperty(exports,"NiceUndoProvider",{enumerable:!0,get:()=>n.NiceUndoProvider});Object.defineProperty(exports,"NiceValidationGroup",{enumerable:!0,get:()=>n.NiceValidationGroup});Object.defineProperty(exports,"NiceValidationSummary",{enumerable:!0,get:()=>n.NiceValidationSummary});Object.defineProperty(exports,"NiceValidator",{enumerable:!0,get:()=>n.NiceValidator});Object.defineProperty(exports,"NiceViewCache",{enumerable:!0,get:()=>n.NiceViewCache});Object.defineProperty(exports,"NiceViewFetchError",{enumerable:!0,get:()=>n.NiceViewFetchError});Object.defineProperty(exports,"NiceViewFetcher",{enumerable:!0,get:()=>n.NiceViewFetcher});Object.defineProperty(exports,"NiceViewHotReload",{enumerable:!0,get:()=>n.NiceViewHotReload});Object.defineProperty(exports,"NiceViewRegistry",{enumerable:!0,get:()=>n.NiceViewRegistry});Object.defineProperty(exports,"NiceViewRenderer",{enumerable:!0,get:()=>n.NiceViewRenderer});Object.defineProperty(exports,"autoDetectColumns",{enumerable:!0,get:()=>n.autoDetectColumns});Object.defineProperty(exports,"checkModuleHealth",{enumerable:!0,get:()=>n.checkModuleHealth});Object.defineProperty(exports,"checkPermissions",{enumerable:!0,get:()=>n.checkPermissions});Object.defineProperty(exports,"checkSingleModule",{enumerable:!0,get:()=>n.checkSingleModule});Object.defineProperty(exports,"compareSemver",{enumerable:!0,get:()=>n.compareSemver});Object.defineProperty(exports,"createStandardErpContracts",{enumerable:!0,get:()=>n.createStandardErpContracts});Object.defineProperty(exports,"createUndoMiddleware",{enumerable:!0,get:()=>n.createUndoMiddleware});Object.defineProperty(exports,"defaultTypeMapping",{enumerable:!0,get:()=>n.defaultTypeMapping});Object.defineProperty(exports,"defaultViewRegistry",{enumerable:!0,get:()=>n.defaultViewRegistry});Object.defineProperty(exports,"deserializeManifest",{enumerable:!0,get:()=>n.deserializeManifest});Object.defineProperty(exports,"deserializeRbacPolicy",{enumerable:!0,get:()=>n.deserializeRbacPolicy});Object.defineProperty(exports,"deserializeViewV2",{enumerable:!0,get:()=>n.deserializeViewV2});Object.defineProperty(exports,"diffObjects",{enumerable:!0,get:()=>n.diffObjects});Object.defineProperty(exports,"diffViews",{enumerable:!0,get:()=>n.diffViews});Object.defineProperty(exports,"downloadCSV",{enumerable:!0,get:()=>n.downloadCSV});Object.defineProperty(exports,"downloadHTML",{enumerable:!0,get:()=>n.downloadHTML});Object.defineProperty(exports,"downloadJSON",{enumerable:!0,get:()=>n.downloadJSON});Object.defineProperty(exports,"downloadPDF",{enumerable:!0,get:()=>n.downloadPDF});Object.defineProperty(exports,"downloadXLSX",{enumerable:!0,get:()=>n.downloadXLSX});Object.defineProperty(exports,"exportToCSV",{enumerable:!0,get:()=>n.exportToCSV});Object.defineProperty(exports,"exportToHTML",{enumerable:!0,get:()=>n.exportToHTML});Object.defineProperty(exports,"exportToJSON",{enumerable:!0,get:()=>n.exportToJSON});Object.defineProperty(exports,"exportToPDF",{enumerable:!0,get:()=>n.exportToPDF});Object.defineProperty(exports,"exportToXLSX",{enumerable:!0,get:()=>n.exportToXLSX});Object.defineProperty(exports,"extractControlTypes",{enumerable:!0,get:()=>n.extractControlTypes});Object.defineProperty(exports,"extractTokensFromTheme",{enumerable:!0,get:()=>n.extractTokensFromTheme});Object.defineProperty(exports,"formatDiffAsText",{enumerable:!0,get:()=>n.formatDiffAsText});Object.defineProperty(exports,"generateAllForRbac",{enumerable:!0,get:()=>n.generateAllForRbac});Object.defineProperty(exports,"generateAllForView",{enumerable:!0,get:()=>n.generateAllForView});Object.defineProperty(exports,"generateDartModel",{enumerable:!0,get:()=>n.generateDartModel});Object.defineProperty(exports,"generateMermaidSyntax",{enumerable:!0,get:()=>n.generateMermaidSyntax});Object.defineProperty(exports,"generateRbacDart",{enumerable:!0,get:()=>n.generateRbacDart});Object.defineProperty(exports,"generateRbacTypescript",{enumerable:!0,get:()=>n.generateRbacTypescript});Object.defineProperty(exports,"generateScaffold",{enumerable:!0,get:()=>n.generateScaffold});Object.defineProperty(exports,"generateStoriesFromViews",{enumerable:!0,get:()=>n.generateStoriesFromViews});Object.defineProperty(exports,"generateStoryFromView",{enumerable:!0,get:()=>n.generateStoryFromView});Object.defineProperty(exports,"generateTokens",{enumerable:!0,get:()=>n.generateTokens});Object.defineProperty(exports,"generateTypescriptModel",{enumerable:!0,get:()=>n.generateTypescriptModel});Object.defineProperty(exports,"generateViewCatalog",{enumerable:!0,get:()=>n.generateViewCatalog});Object.defineProperty(exports,"isAllowed",{enumerable:!0,get:()=>n.isAllowed});Object.defineProperty(exports,"isVersionCompatible",{enumerable:!0,get:()=>n.isVersionCompatible});Object.defineProperty(exports,"isViewCompatibleWith",{enumerable:!0,get:()=>n.isViewCompatibleWith});Object.defineProperty(exports,"listScaffoldTemplates",{enumerable:!0,get:()=>n.listScaffoldTemplates});Object.defineProperty(exports,"niceExport",{enumerable:!0,get:()=>n.niceExport});Object.defineProperty(exports,"resolvePermissions",{enumerable:!0,get:()=>n.resolvePermissions});Object.defineProperty(exports,"runContractTests",{enumerable:!0,get:()=>n.runContractTests});Object.defineProperty(exports,"serializeManifest",{enumerable:!0,get:()=>n.serializeManifest});Object.defineProperty(exports,"serializeRbacPolicy",{enumerable:!0,get:()=>n.serializeRbacPolicy});Object.defineProperty(exports,"serializeViewV2",{enumerable:!0,get:()=>n.serializeViewV2});Object.defineProperty(exports,"useAuditLog",{enumerable:!0,get:()=>n.useAuditLog});Object.defineProperty(exports,"useColumnChooser",{enumerable:!0,get:()=>n.useColumnChooser});Object.defineProperty(exports,"useFeatureFlag",{enumerable:!0,get:()=>n.useFeatureFlag});Object.defineProperty(exports,"useFeatureFlags",{enumerable:!0,get:()=>n.useFeatureFlags});Object.defineProperty(exports,"useModuleLoader",{enumerable:!0,get:()=>n.useModuleLoader});Object.defineProperty(exports,"useNiceValidation",{enumerable:!0,get:()=>n.useNiceValidation});Object.defineProperty(exports,"usePrintPreview",{enumerable:!0,get:()=>n.usePrintPreview});Object.defineProperty(exports,"useUndoKeyboard",{enumerable:!0,get:()=>n.useUndoKeyboard});Object.defineProperty(exports,"useUndoManager",{enumerable:!0,get:()=>n.useUndoManager});Object.defineProperty(exports,"validateCrossPlatformView",{enumerable:!0,get:()=>n.validateCrossPlatformView});Object.defineProperty(exports,"validateDiagramSchema",{enumerable:!0,get:()=>n.validateDiagramSchema});Object.defineProperty(exports,"validateModuleManifest",{enumerable:!0,get:()=>n.validateModuleManifest});Object.defineProperty(exports,"validateRbacPolicy",{enumerable:!0,get:()=>n.validateRbacPolicy});Object.defineProperty(exports,"validateViewDefinitionV2",{enumerable:!0,get:()=>n.validateViewDefinitionV2});Object.defineProperty(exports,"validateViewForDeploy",{enumerable:!0,get:()=>n.validateViewForDeploy});Object.defineProperty(exports,"validateViewsBatch",{enumerable:!0,get:()=>n.validateViewsBatch});exports.AIAssistant=ae;exports.AIPlaygrounds=Ge;exports.APMProfiling=be;exports.AccessControl=Se;exports.AccessibilityI18n=jt;exports.AlertingIncidents=he;exports.ApiDesigner=Oe;exports.ApiTesting=Pe;exports.Artifacts=re;exports.AuditCompliance=_e;exports.Certificates=J;exports.ChartBuilder=xe;exports.CloudInstances=q;exports.ConfigManagement=ee;exports.Containers=U;exports.DashboardDesigner=Ne;exports.DataManagement=ce;exports.DataPipeline=Le;exports.DataWarehouse=Ie;exports.DatasetManagement=He;exports.DbAdapters=ue;exports.DbAdmin=pe;exports.DbDesigner=de;exports.Debugger=ie;exports.DeviceManagement=Fe;exports.DistributedTracing=me;exports.DnsManagement=K;exports.DownloadManager=N;exports.DownloadTorrent=rt;exports.EdgeComputing=Re;exports.Education=Je;exports.EmailTemplate=ze;exports.ErpEnterprise=Ye;exports.FormBuilder=Ae;exports.GameEngineAdvanced=Ct;exports.Git=te;exports.HardwareIntegration=Xe;exports.IDE=oe;exports.IaC=Z;exports.IconTools=Dt;exports.IntegrationPlatform=je;exports.Kubernetes=H;exports.LifeManagement=Ze;exports.LogManagement=fe;exports.Mathematics=tt;exports.MessageQueue=Me;exports.MetricsDashboard=ge;exports.MobileComponents=We;exports.ModelDeployment=$e;exports.ModelRegistry=qe;exports.ModelTraining=Qe;exports.NetworkConfig=G;exports.NetworkMonitoring=W;exports.PdfTools=Te;exports.Pipelines=Y;exports.RemoteDesktop=B;exports.ReportDesigner=ke;exports.ScadaIndustrial=Be;exports.ScientificResearch=et;exports.SecretManagement=we;exports.SecurityScanning=ye;exports.SelfServiceAnalytics=Ee;exports.SensorDashboard=Ve;exports.ServerManagement=X;exports.SmartHome=Ue;exports.Spreadsheet=De;exports.SqlEditor=le;exports.Terminal=$;exports.TestingQA=Ke;exports.TorrentClient=F;exports.Traceless=wt;exports.VirtualMachines=Q;exports.VisualScripting=ne;exports.WordProcessor=Ce;exports.Workspace=se;exports.calculateETA=_;exports.calculatePieces=v;exports.calculateTorrentHealth=dt;exports.createDownloadSegments=at;exports.createFileSelection=ct;exports.createMagnetUri=E;exports.createPieceStatus=P;exports.createTorrent=V;exports.disposeDownloadManager=it;exports.disposeTorrentClient=ft;exports.filterFilesByExtension=M;exports.formatBytes=ot;exports.formatDuration=nt;exports.formatPeerCount=lt;exports.formatSpeed=f;exports.generateDownloadId=k;exports.generateInfoHash=j;exports.generatePeerId=L;exports.getAudioFiles=pt;exports.getDownloadManager=x;exports.getFileType=A;exports.getLargestFile=gt;exports.getTorrentClient=R;exports.getVideoFiles=ut;exports.parseDownloadUrl=D;exports.parseMagnetLink=C;exports.parseMagnetUri=I;exports.useDownloadManager=st;exports.useTorrentClient=mt;exports.validateChecksum=z;
2
+ //# sourceMappingURL=index.cjs.map