pcm-agents 0.3.6 → 0.3.7

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 (125) hide show
  1. package/dist/cjs/{index-DCBX_2cF.js → index-RyBZibgz.js} +3 -3
  2. package/dist/cjs/index-RyBZibgz.js.map +1 -0
  3. package/dist/cjs/index-SU3eqPPs.js.map +1 -1
  4. package/dist/cjs/index.cjs.js +1 -1
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/my-component.cjs.entry.js +1 -1
  7. package/dist/cjs/pcm-agents.cjs.js +1 -1
  8. package/dist/cjs/pcm-app-chat-modal.pcm-button.pcm-card.pcm-chat-message.pcm-hr-chat-modal.pcm-htws-modal.pcm-hyzj-modal.pcm-jd-modal.pcm-jlpp-modal.pcm-mnct-modal.pcm-mnms-modal.pcm-msbg-modal.pcm-video-chat-modal.pcm-zsk-chat-modal.pcm-zygh-modal.entry.cjs.js.map +1 -0
  9. package/dist/cjs/{pcm-app-chat-modal_13.cjs.entry.js → pcm-app-chat-modal_15.cjs.entry.js} +265 -77
  10. package/dist/cjs/pcm-app-chat-modal_15.cjs.entry.js.map +1 -0
  11. package/dist/cjs/pcm-chat-modal.cjs.entry.js +1 -1
  12. package/dist/collection/collection-manifest.json +2 -0
  13. package/dist/collection/components/pcm-button/pcm-button.css +199 -0
  14. package/dist/collection/components/pcm-button/pcm-button.js +374 -0
  15. package/dist/collection/components/pcm-button/pcm-button.js.map +1 -0
  16. package/dist/collection/components/pcm-card/pcm-card.css +260 -0
  17. package/dist/collection/components/pcm-card/pcm-card.js +360 -0
  18. package/dist/collection/components/pcm-card/pcm-card.js.map +1 -0
  19. package/dist/collection/components/pcm-chat-message/pcm-chat-message.js +1 -1
  20. package/dist/collection/components/pcm-htws-modal/pcm-htws-modal.js +7 -14
  21. package/dist/collection/components/pcm-htws-modal/pcm-htws-modal.js.map +1 -1
  22. package/dist/collection/components/pcm-jd-modal/pcm-jd-modal.js +8 -14
  23. package/dist/collection/components/pcm-jd-modal/pcm-jd-modal.js.map +1 -1
  24. package/dist/collection/components/pcm-jlpp-modal/pcm-jlpp-modal.js +5 -11
  25. package/dist/collection/components/pcm-jlpp-modal/pcm-jlpp-modal.js.map +1 -1
  26. package/dist/collection/components/pcm-mnct-modal/pcm-mnct-modal.js +5 -12
  27. package/dist/collection/components/pcm-mnct-modal/pcm-mnct-modal.js.map +1 -1
  28. package/dist/collection/components/pcm-mnms-modal/pcm-mnms-modal.js +5 -12
  29. package/dist/collection/components/pcm-mnms-modal/pcm-mnms-modal.js.map +1 -1
  30. package/dist/collection/components/pcm-msbg-modal/pcm-msbg-modal.js +5 -8
  31. package/dist/collection/components/pcm-msbg-modal/pcm-msbg-modal.js.map +1 -1
  32. package/dist/collection/components/pcm-zygh-modal/pcm-zygh-modal.js +5 -9
  33. package/dist/collection/components/pcm-zygh-modal/pcm-zygh-modal.js.map +1 -1
  34. package/dist/collection/utils/utils.js +1 -1
  35. package/dist/collection/utils/utils.js.map +1 -1
  36. package/dist/components/index.js +3 -1241
  37. package/dist/components/index.js.map +1 -1
  38. package/dist/components/my-component.js +2 -1
  39. package/dist/components/my-component.js.map +1 -1
  40. package/dist/components/{p-D9vi7W4P.js → p-B2bm_L0r.js} +5 -4
  41. package/dist/components/p-B2bm_L0r.js.map +1 -0
  42. package/dist/components/{p-DCTUqujT.js → p-C0LW1Pyi.js} +5 -4
  43. package/dist/components/p-C0LW1Pyi.js.map +1 -0
  44. package/dist/components/p-CgDy4pJp.js +1244 -0
  45. package/dist/components/p-CgDy4pJp.js.map +1 -0
  46. package/dist/components/pcm-app-chat-modal.js +1 -1
  47. package/dist/components/pcm-button.d.ts +11 -0
  48. package/dist/components/pcm-button.js +138 -0
  49. package/dist/components/pcm-button.js.map +1 -0
  50. package/dist/components/pcm-card.d.ts +11 -0
  51. package/dist/components/pcm-card.js +169 -0
  52. package/dist/components/pcm-card.js.map +1 -0
  53. package/dist/components/pcm-chat-message.js +1 -1
  54. package/dist/components/pcm-chat-modal.js +3 -2
  55. package/dist/components/pcm-chat-modal.js.map +1 -1
  56. package/dist/components/pcm-hr-chat-modal.js +3 -2
  57. package/dist/components/pcm-hr-chat-modal.js.map +1 -1
  58. package/dist/components/pcm-htws-modal.js +10 -16
  59. package/dist/components/pcm-htws-modal.js.map +1 -1
  60. package/dist/components/pcm-hyzj-modal.js +4 -3
  61. package/dist/components/pcm-hyzj-modal.js.map +1 -1
  62. package/dist/components/pcm-jd-modal.js +11 -16
  63. package/dist/components/pcm-jd-modal.js.map +1 -1
  64. package/dist/components/pcm-jlpp-modal.js +8 -13
  65. package/dist/components/pcm-jlpp-modal.js.map +1 -1
  66. package/dist/components/pcm-mnct-modal.js +8 -14
  67. package/dist/components/pcm-mnct-modal.js.map +1 -1
  68. package/dist/components/pcm-mnms-modal.js +8 -14
  69. package/dist/components/pcm-mnms-modal.js.map +1 -1
  70. package/dist/components/pcm-msbg-modal.js +8 -10
  71. package/dist/components/pcm-msbg-modal.js.map +1 -1
  72. package/dist/components/pcm-video-chat-modal.js +3 -2
  73. package/dist/components/pcm-video-chat-modal.js.map +1 -1
  74. package/dist/components/pcm-zsk-chat-modal.js +3 -2
  75. package/dist/components/pcm-zsk-chat-modal.js.map +1 -1
  76. package/dist/components/pcm-zygh-modal.js +8 -11
  77. package/dist/components/pcm-zygh-modal.js.map +1 -1
  78. package/dist/esm/index-DaMwkrv5.js.map +1 -1
  79. package/dist/esm/{index-DeB7C5mC.js → index-yV78EAJR.js} +3 -3
  80. package/dist/esm/index-yV78EAJR.js.map +1 -0
  81. package/dist/esm/index.js +1 -1
  82. package/dist/esm/loader.js +1 -1
  83. package/dist/esm/my-component.entry.js +1 -1
  84. package/dist/esm/pcm-agents.js +1 -1
  85. package/dist/esm/pcm-app-chat-modal.pcm-button.pcm-card.pcm-chat-message.pcm-hr-chat-modal.pcm-htws-modal.pcm-hyzj-modal.pcm-jd-modal.pcm-jlpp-modal.pcm-mnct-modal.pcm-mnms-modal.pcm-msbg-modal.pcm-video-chat-modal.pcm-zsk-chat-modal.pcm-zygh-modal.entry.js.map +1 -0
  86. package/dist/esm/{pcm-app-chat-modal_13.entry.js → pcm-app-chat-modal_15.entry.js} +264 -78
  87. package/dist/esm/pcm-app-chat-modal_15.entry.js.map +1 -0
  88. package/dist/esm/pcm-chat-modal.entry.js +1 -1
  89. package/dist/pcm-agents/index.esm.js +1 -1
  90. package/dist/pcm-agents/p-598e7711.entry.js +2 -0
  91. package/dist/pcm-agents/p-598e7711.entry.js.map +1 -0
  92. package/dist/pcm-agents/{p-d4b60d1c.entry.js → p-764d383a.entry.js} +2 -2
  93. package/dist/pcm-agents/p-DaMwkrv5.js.map +1 -1
  94. package/dist/pcm-agents/{p-2996e980.entry.js → p-d9c926c4.entry.js} +2 -2
  95. package/dist/pcm-agents/p-yV78EAJR.js +2 -0
  96. package/dist/pcm-agents/p-yV78EAJR.js.map +1 -0
  97. package/dist/pcm-agents/pcm-agents.esm.js +1 -1
  98. package/dist/pcm-agents/pcm-app-chat-modal.pcm-button.pcm-card.pcm-chat-message.pcm-hr-chat-modal.pcm-htws-modal.pcm-hyzj-modal.pcm-jd-modal.pcm-jlpp-modal.pcm-mnct-modal.pcm-mnms-modal.pcm-msbg-modal.pcm-video-chat-modal.pcm-zsk-chat-modal.pcm-zygh-modal.entry.esm.js.map +1 -0
  99. package/dist/types/components/pcm-button/pcm-button.d.ts +64 -0
  100. package/dist/types/components/pcm-card/pcm-card.d.ts +71 -0
  101. package/dist/types/components/pcm-htws-modal/pcm-htws-modal.d.ts +1 -6
  102. package/dist/types/components/pcm-jd-modal/pcm-jd-modal.d.ts +1 -5
  103. package/dist/types/components/pcm-jlpp-modal/pcm-jlpp-modal.d.ts +1 -5
  104. package/dist/types/components/pcm-mnct-modal/pcm-mnct-modal.d.ts +1 -6
  105. package/dist/types/components/pcm-mnms-modal/pcm-mnms-modal.d.ts +1 -6
  106. package/dist/types/components/pcm-msbg-modal/pcm-msbg-modal.d.ts +1 -2
  107. package/dist/types/components/pcm-zygh-modal/pcm-zygh-modal.d.ts +1 -5
  108. package/dist/types/components.d.ts +256 -14
  109. package/dist/types/utils/utils.d.ts +1 -1
  110. package/package.json +1 -1
  111. package/dist/cjs/index-DCBX_2cF.js.map +0 -1
  112. package/dist/cjs/pcm-app-chat-modal.pcm-chat-message.pcm-hr-chat-modal.pcm-htws-modal.pcm-hyzj-modal.pcm-jd-modal.pcm-jlpp-modal.pcm-mnct-modal.pcm-mnms-modal.pcm-msbg-modal.pcm-video-chat-modal.pcm-zsk-chat-modal.pcm-zygh-modal.entry.cjs.js.map +0 -1
  113. package/dist/cjs/pcm-app-chat-modal_13.cjs.entry.js.map +0 -1
  114. package/dist/components/p-D9vi7W4P.js.map +0 -1
  115. package/dist/components/p-DCTUqujT.js.map +0 -1
  116. package/dist/esm/index-DeB7C5mC.js.map +0 -1
  117. package/dist/esm/pcm-app-chat-modal.pcm-chat-message.pcm-hr-chat-modal.pcm-htws-modal.pcm-hyzj-modal.pcm-jd-modal.pcm-jlpp-modal.pcm-mnct-modal.pcm-mnms-modal.pcm-msbg-modal.pcm-video-chat-modal.pcm-zsk-chat-modal.pcm-zygh-modal.entry.js.map +0 -1
  118. package/dist/esm/pcm-app-chat-modal_13.entry.js.map +0 -1
  119. package/dist/pcm-agents/p-DeB7C5mC.js +0 -2
  120. package/dist/pcm-agents/p-DeB7C5mC.js.map +0 -1
  121. package/dist/pcm-agents/p-b21c3438.entry.js +0 -2
  122. package/dist/pcm-agents/p-b21c3438.entry.js.map +0 -1
  123. package/dist/pcm-agents/pcm-app-chat-modal.pcm-chat-message.pcm-hr-chat-modal.pcm-htws-modal.pcm-hyzj-modal.pcm-jd-modal.pcm-jlpp-modal.pcm-mnct-modal.pcm-mnms-modal.pcm-msbg-modal.pcm-video-chat-modal.pcm-zsk-chat-modal.pcm-zygh-modal.entry.esm.js.map +0 -1
  124. /package/dist/pcm-agents/{p-d4b60d1c.entry.js.map → p-764d383a.entry.js.map} +0 -0
  125. /package/dist/pcm-agents/{p-2996e980.entry.js.map → p-d9c926c4.entry.js.map} +0 -0
@@ -5,7 +5,7 @@
5
5
  */
6
6
  // export const API_DOMAIN = 'http://127.0.0.1:8001';
7
7
  // export const API_DOMAIN = 'https://tagents.ylzhaopin.com/agents/api';
8
- const API_DOMAIN = 'https://www.pincaimao.com/agents/api';
8
+ const API_DOMAIN = 'https://api.pincaimao.com/agents/platform';
9
9
  function format(first, middle, last) {
10
10
  return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');
11
11
  }
@@ -225,6 +225,6 @@ exports.sendHttpRequest = sendHttpRequest;
225
225
  exports.sendSSERequest = sendSSERequest;
226
226
  exports.uploadFileToBackend = uploadFileToBackend;
227
227
  exports.verifyApiKey = verifyApiKey;
228
- //# sourceMappingURL=index-DCBX_2cF.js.map
228
+ //# sourceMappingURL=index-RyBZibgz.js.map
229
229
 
230
- //# sourceMappingURL=index-DCBX_2cF.js.map
230
+ //# sourceMappingURL=index-RyBZibgz.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-RyBZibgz.js","sources":["src/utils/utils.ts"],"sourcesContent":["/**\r\n * API域名配置\r\n */\r\n// export const API_DOMAIN = 'http://127.0.0.1:8001';\r\n// export const API_DOMAIN = 'https://tagents.ylzhaopin.com/agents/api';\r\nexport const API_DOMAIN = 'https://api.pincaimao.com/agents/platform';\r\n\r\n\r\nexport function format(first?: string, middle?: string, last?: string): string {\r\n return (first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : '');\r\n}\r\n\r\n// 添加类型定义\r\nexport interface UserInputMessageType {\r\n message: string;\r\n [key: string]: any;\r\n}\r\n\r\nexport interface WorkFlowNode {\r\n message_id?: string;\r\n conversation_id?: string;\r\n created_at?: string;\r\n event?: string;\r\n answer?: string;\r\n data?: {\r\n outputs?: {\r\n answer?: string;\r\n };\r\n status?: string;\r\n error?: any;\r\n };\r\n}\r\n\r\nexport interface MessageRound extends UserInputMessageType {\r\n id?: string;\r\n conversation_id?: string;\r\n created_at?: string;\r\n answer?: string;\r\n status?: string;\r\n error?: any;\r\n}\r\n\r\n/**\r\n * 将工作流节点转换为消息轮次\r\n * @param message_event 消息事件类型\r\n * @param inputMessage 用户输入消息\r\n * @param streamNode 工作流节点\r\n * @returns 消息轮次\r\n */\r\nexport const convertWorkflowStreamNodeToMessageRound = (\r\n message_event: string,\r\n inputMessage: UserInputMessageType,\r\n streamNode: WorkFlowNode,\r\n): MessageRound => {\r\n const messageRound: MessageRound = {\r\n ...inputMessage,\r\n };\r\n if (message_event === 'workflow_finished') messageRound.answer = streamNode.data?.outputs?.answer;\r\n if (message_event === 'agent_message' || message_event === 'message') messageRound.answer = streamNode?.answer;\r\n messageRound.id = streamNode.message_id;\r\n messageRound.conversation_id = streamNode.conversation_id;\r\n messageRound.created_at = streamNode.created_at;\r\n messageRound.status = streamNode.data?.status;\r\n messageRound.error = streamNode.data?.error;\r\n return messageRound;\r\n};\r\n\r\n/**\r\n * SSE 流式请求配置接口\r\n */\r\nexport interface SSERequestConfig {\r\n url: string;\r\n method: string;\r\n headers?: Record<string, string>;\r\n data?: any;\r\n onMessage?: (data: any) => void;\r\n onError?: (error: any) => void;\r\n onComplete?: () => void;\r\n}\r\n\r\n/**\r\n * 发送 SSE 流式请求\r\n * @param config 请求配置\r\n * @returns Promise<void>\r\n */\r\nexport const sendSSERequest = async (config: SSERequestConfig): Promise<void> => {\r\n const { url, method, headers = {}, data, onMessage, onError, onComplete } = config;\r\n \r\n try {\r\n // 使用 API_DOMAIN 拼接完整的请求URL\r\n const requestUrl = `${API_DOMAIN}${url}`;\r\n \r\n const response = await fetch(requestUrl, {\r\n method,\r\n headers: {\r\n 'Accept': 'text/event-stream',\r\n 'Content-Type': 'application/json',\r\n ...headers\r\n },\r\n body: data ? JSON.stringify(data) : undefined\r\n });\r\n\r\n if (!response.ok) {\r\n throw new Error(`HTTP error! status: ${response.status}`);\r\n }\r\n\r\n const reader = response.body?.getReader();\r\n if (!reader) throw new Error('No reader available');\r\n \r\n const decoder = new TextDecoder();\r\n let buffer = '';\r\n\r\n while (true) {\r\n const { value, done } = await reader.read();\r\n if (done) break;\r\n\r\n buffer += decoder.decode(value, { stream: true });\r\n\r\n // 处理缓冲区中的完整消息\r\n const lines = buffer.split('\\n');\r\n buffer = lines.pop() || ''; // 保留最后一个不完整的行\r\n\r\n for (const line of lines) {\r\n if (line.startsWith('data:')) {\r\n try {\r\n const jsonStr = line.substring(5).trim();\r\n if (!jsonStr) continue;\r\n \r\n const data = JSON.parse(jsonStr);\r\n onMessage?.(data);\r\n } catch (e) {\r\n console.error('解析 SSE 数据错误:', e, '原始数据:', line);\r\n }\r\n }\r\n }\r\n }\r\n \r\n onComplete?.();\r\n } catch (error) {\r\n console.error('SSE 请求错误:', error);\r\n onError?.(error);\r\n }\r\n};\r\n\r\n/**\r\n * HTTP请求配置接口\r\n */\r\nexport interface HttpRequestConfig {\r\n url: string;\r\n method?: string;\r\n headers?: Record<string, string>;\r\n params?: Record<string, any>;\r\n data?: any;\r\n formData?: FormData; // 添加FormData支持\r\n onMessage?: (data: any) => void;\r\n onError?: (error: any) => void;\r\n onComplete?: () => void;\r\n}\r\n\r\n/**\r\n * 统一的API响应接口\r\n */\r\nexport interface ApiResponse<T = any> {\r\n code: number;\r\n message: string;\r\n data?: T;\r\n}\r\n\r\n/**\r\n * HTTP响应接口\r\n */\r\nexport interface HttpResponse<T = any> {\r\n success: boolean;\r\n data?: T;\r\n error?: any;\r\n message?: string;\r\n}\r\n\r\n/**\r\n * 发送HTTP请求\r\n * @param config 请求配置\r\n * @returns Promise<HttpResponse>\r\n */\r\nexport const sendHttpRequest = async <T = any>(config: HttpRequestConfig): Promise<HttpResponse<T>> => {\r\n const { url, method = 'GET', headers = {}, params = {}, data, formData, onMessage } = config;\r\n \r\n try {\r\n // 构建URL和查询参数\r\n const queryParams = new URLSearchParams();\r\n Object.entries(params).forEach(([key, value]) => {\r\n if (value !== undefined && value !== null) {\r\n queryParams.append(key, String(value));\r\n }\r\n });\r\n \r\n // 使用 API_DOMAIN 拼接完整的请求URL\r\n let requestUrl = `${API_DOMAIN}${url}${queryParams.toString() ? `?${queryParams.toString()}` : ''}`;\r\n \r\n // 创建请求配置对象\r\n const requestConfig: RequestInit = {\r\n method,\r\n headers: formData ? { ...headers } : {\r\n 'Content-Type': 'application/json',\r\n ...headers\r\n }\r\n };\r\n\r\n // 处理请求体\r\n if (formData) {\r\n // 如果提供了FormData,直接使用\r\n requestConfig.body = formData;\r\n } else if (method !== 'GET' && method !== 'HEAD' && data) {\r\n // 否则,如果是非GET/HEAD请求且有data,将其JSON序列化\r\n requestConfig.body = JSON.stringify(data);\r\n }\r\n\r\n // 如果是 GET 方法且有 data,将其作为查询参数添加到 URL\r\n if (method === 'GET' && data) {\r\n const dataParams = new URLSearchParams();\r\n Object.entries(data).forEach(([key, value]) => {\r\n if (value !== undefined && value !== null) {\r\n dataParams.append(key, String(value));\r\n }\r\n });\r\n requestUrl += (queryParams.toString() ? '&' : '?') + dataParams.toString();\r\n }\r\n\r\n const response = await fetch(requestUrl, requestConfig);\r\n const responseData: ApiResponse<T> = await response.json();\r\n \r\n // 调用 onMessage 回调\r\n if (onMessage) {\r\n onMessage(responseData);\r\n }\r\n \r\n // 检查响应状态\r\n if (!response.ok) {\r\n console.error(`HTTP错误: ${response.status} ${response.statusText}`);\r\n return {\r\n success: false,\r\n message: responseData.message || `HTTP错误: ${response.status}`,\r\n error: responseData\r\n };\r\n }\r\n \r\n // 检查业务状态码\r\n if (responseData.code !== 0) {\r\n console.error(`API错误: ${responseData.message}`);\r\n return {\r\n success: false,\r\n message: responseData.message,\r\n error: responseData\r\n };\r\n }\r\n \r\n // 直接返回data\r\n return {\r\n success: true,\r\n data: responseData.data\r\n };\r\n } catch (error) {\r\n console.error('HTTP请求错误:', error);\r\n if (config.onError) {\r\n config.onError(error);\r\n }\r\n return {\r\n success: false,\r\n error,\r\n message: error instanceof Error ? error.message : '未知错误'\r\n };\r\n } finally {\r\n if (config.onComplete) {\r\n config.onComplete();\r\n }\r\n }\r\n};\r\n\r\n/**\r\n * 验证API密钥\r\n * @param token API密钥\r\n * @returns Promise<boolean> 验证是否成功\r\n */\r\nexport const verifyApiKey = async (token: string): Promise<boolean> => {\r\n if (!token) {\r\n return false;\r\n }\r\n \r\n try {\r\n const response = await sendHttpRequest({\r\n url: '/sdk/v1/user',\r\n method: 'GET',\r\n headers: {\r\n 'Authorization': `Bearer ${token}`\r\n }\r\n });\r\n\r\n return response.success;\r\n } catch (error) {\r\n console.error('API密钥验证错误:', error);\r\n return false;\r\n }\r\n};\r\n\r\n/**\r\n * 文件上传响应数据接口\r\n */\r\nexport interface FileUploadResponse {\r\n /** 文件在对象存储中的唯一标识符 */\r\n cos_key: string;\r\n /** 文件名称 */\r\n file_name: string;\r\n /** 文件大小(带单位的字符串,如 \"1.5MB\") */\r\n file_size: string;\r\n /** 文件的预签名URL */\r\n presigned_url: string;\r\n /** 文件扩展名 */\r\n ext: string;\r\n}\r\n\r\n/**\r\n * 通过后端API上传文件\r\n * @param file 要上传的文件\r\n * @param params 可选的额外参数\r\n * @param headers 可选的请求头\r\n * @returns Promise 包含上传结果\r\n */\r\nexport const uploadFileToBackend = async (\r\n file: File,\r\n headers?: Record<string, string>,\r\n params?: Record<string, any>\r\n): Promise<FileUploadResponse> => {\r\n const formData = new FormData();\r\n formData.append('file', file);\r\n \r\n // 添加额外参数到 formData\r\n if (params) {\r\n Object.entries(params).forEach(([key, value]) => {\r\n if (value !== undefined && value !== null) {\r\n formData.append(key, String(value));\r\n }\r\n });\r\n }\r\n \r\n try {\r\n const response = await sendHttpRequest<{cos_key: string, file_name: string, file_size: string, presigned_url: string, ext: string}>({\r\n url: '/sdk/v1/files/upload',\r\n method: 'POST',\r\n headers: {\r\n ...headers\r\n },\r\n formData\r\n });\r\n \r\n if (!response.success || !response.data) {\r\n throw new Error(response.message || '文件上传失败');\r\n }\r\n \r\n return response.data;\r\n } catch (error) {\r\n console.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