@thinkingai/ae-cli 6.0.48-customer.1 → 6.0.48-doubao.2
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.
- package/README.md +93 -36
- package/README.zh.md +93 -36
- package/assets/workbuddy-host-page/thinkingai.png +0 -0
- package/assets/workbuddy-host-page/thinkingai.svg +41 -0
- package/assets/workbuddy-host-page/workbuddy.png +0 -0
- package/bin/ae-cli-doubao.js +2 -0
- package/bin/ae-cli-workbuddy.js +7 -0
- package/dist/ae-cli-doubao.js +278 -0
- package/dist/assets/doubao-wordmark.svg +6 -0
- package/dist/assets/doubao.png +0 -0
- package/dist/assets/thinkingai-mark.svg +7 -0
- package/dist/assets/thinkingai.svg +41 -0
- package/dist/auth-HK246OGX.js +1035 -0
- package/dist/{capability-RUSV77CO.js → capability-JHYVQNQ4.js} +47 -34
- package/dist/chunk-2BDQB42E.js +15 -0
- package/dist/{chunk-GJXRF7Y6.js → chunk-6MXFJVNP.js} +47 -78
- package/dist/chunk-6ZIQV5GW.js +26 -0
- package/dist/{chunk-KZ6ZHF5J.js → chunk-ARTIHWVD.js} +27 -25
- package/dist/{chunk-6QK7SYYY.js → chunk-DU5MZQFQ.js} +29 -37
- package/dist/{chunk-BVDST5YT.js → chunk-JFOGWBAT.js} +8 -8
- package/dist/{chunk-JYMGHGCE.js → chunk-KSQGGXGA.js} +24 -13
- package/dist/{chunk-FR2EDAQM.js → chunk-NXRKDG6E.js} +89 -3
- package/dist/{chunk-NSIVXKJH.js → chunk-QSO4SA6C.js} +5 -5
- package/dist/{chunk-BE73PUFX.js → chunk-QYJ252CT.js} +2 -2
- package/dist/{chunk-B5HMQAOM.js → chunk-UL6SJDYE.js} +1 -1
- package/dist/chunk-Y3S2KNNR.js +623 -0
- package/dist/{chunk-KEWVSO64.js → chunk-ZCM47ROU.js} +5 -16
- package/dist/{community-report-client-6OL6GBQW.js → community-report-client-QE4RC2XG.js} +2 -4
- package/dist/{config-XNMACCKX.js → config-XMRP5NDA.js} +8 -9
- package/dist/{data-integration-FZQQC3KW.js → data-integration-SGRITHJS.js} +9 -12
- package/dist/index.js +53 -80
- package/dist/{local-data-upload-client-EFHDLXFG.js → local-data-upload-client-LMVS7YAR.js} +2 -4
- package/dist/{memory-HBJQ2GC5.js → memory-5ZC73XBC.js} +4 -6
- package/dist/{metadata-PGDJE5RQ.js → metadata-LBX6O24P.js} +7 -9
- package/dist/{model-BHLJ2QMT.js → model-CRDIVYN5.js} +4 -6
- package/dist/{personal-semantic-preference-E5NZ56DN.js → personal-semantic-preference-7FVUTJZF.js} +6 -8
- package/dist/{sync-MUWPRM5I.js → sync-VVNDHU7R.js} +9 -11
- package/dist/{te-agent-WQZTMEK4.js → te-agent-4T5TFHD6.js} +393 -90
- package/dist/{te-analysis-YWCSSLYL.js → te-analysis-TPYFOIFD.js} +97 -31
- package/dist/{te-community-BNE6KREL.js → te-community-PWOTHSEC.js} +9 -32
- package/dist/{te-dataops-TXLKM2W6.js → te-dataops-ZJV5QVJU.js} +19 -20
- package/dist/{te-engage-VEW4CJHK.js → te-engage-WVHBZAXH.js} +11 -13
- package/dist/{te-kb-BUD6N3NI.js → te-kb-PNM2ZKBP.js} +595 -85
- package/dist/{te-system-44LZJDTQ.js → te-system-MRCMLAWW.js} +6 -8
- package/dist/{te-team-XMP47YXE.js → te-team-Y36TG6AQ.js} +6 -8
- package/dist/{update-UODFOZ4P.js → update-UNKCZ5U5.js} +7 -8
- package/package.json +23 -12
- package/skills/ae-agent/SKILL.md +30 -13
- package/skills/ae-agent/references/agent-distribution.md +94 -0
- package/skills/ae-agent/references/approval-request.md +4 -0
- package/skills/ae-agent/references/command_index.md +9 -2
- package/skills/ae-agent/references/create-automation.md +20 -2
- package/skills/ae-agent/references/get-agent-context.md +70 -0
- package/skills/ae-agent/references/list-automations.md +18 -3
- package/skills/ae-agent/references/list-mcp-credentials.md +1 -1
- package/skills/ae-agent/references/mcp-token.md +3 -3
- package/skills/ae-agent/references/set-mcp-credential.md +0 -1
- package/skills/ae-agent/references/update-automation.md +18 -0
- package/skills/ae-analysis/SKILL.md +11 -2
- package/skills/ae-analysis/references/adhoc_run.md +2 -0
- package/skills/ae-analysis/references/ai_models.md +23 -3
- package/skills/ae-analysis/references/analysis_gateway_assets.md +2 -2
- package/skills/ae-analysis/references/command_index.md +7 -7
- package/skills/ae-analysis/references/cross_source_config.md +84 -0
- package/skills/ae-analysis/references/dashboard_update.md +1 -1
- package/skills/ae-analysis/references/user_tag_create.md +23 -1
- package/skills/ae-analysis/references/user_tag_models.md +9 -1
- package/skills/ae-analysis/references/user_tag_update.md +14 -2
- package/skills/ae-data-integration/SKILL.md +2 -1
- package/skills/ae-data-integration/references/dimension-routing.md +36 -0
- package/skills/ae-data-integration/references/local-analysis.md +2 -0
- package/skills/ae-data-integration/references/source-inspect.md +1 -1
- package/skills/ae-data-integration/references/ue-routing.md +17 -1
- package/skills/ae-generate-tracking-plan/SKILL.md +16 -5
- package/skills/ae-kb/SKILL.md +107 -36
- package/skills/ae-kb/references/query-workflow.md +59 -29
- package/skills/ae-kb/references/versions.md +46 -0
- package/skills/ae-system/SKILL.md +1 -1
- package/skills/ae-use-agent/SKILL.md +42 -0
- package/skills/ae-use-agent/references/local-agent.md +114 -0
- package/dist/auth-QPEVVBKT.js +0 -465
- package/dist/auth-UMJAA72O.js +0 -15
- package/dist/chunk-533JK3YX.js +0 -72
- package/dist/chunk-O6K2ODUE.js +0 -318
- package/dist/chunk-RWXIXOZG.js +0 -326
- package/dist/client-N7NGZUNI.js +0 -204
- package/skills/ae-agent/references/auto-provision-mcp-credentials.md +0 -57
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
// src/integrations/doubao/cli.ts
|
|
4
|
+
import { fileURLToPath } from "url";
|
|
5
|
+
|
|
6
|
+
// src/integrations/doubao/login.ts
|
|
7
|
+
import { execFile, spawn } from "child_process";
|
|
8
|
+
import os from "os";
|
|
9
|
+
import path from "path";
|
|
10
|
+
import { promisify } from "util";
|
|
11
|
+
|
|
12
|
+
// src/integrations/doubao/host-page.ts
|
|
13
|
+
import { randomBytes } from "crypto";
|
|
14
|
+
import { createServer } from "http";
|
|
15
|
+
import { readFileSync } from "fs";
|
|
16
|
+
|
|
17
|
+
// src/integrations/doubao/pages.ts
|
|
18
|
+
function escapeHtml(value) {
|
|
19
|
+
return value.replace(/[&<>"']/g, (character) => ({
|
|
20
|
+
"&": "&",
|
|
21
|
+
"<": "<",
|
|
22
|
+
">": ">",
|
|
23
|
+
'"': """,
|
|
24
|
+
"'": "'"
|
|
25
|
+
})[character]);
|
|
26
|
+
}
|
|
27
|
+
var globe = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7"><circle cx="12" cy="12" r="9"/><ellipse cx="12" cy="12" rx="4" ry="9"/><path d="M3 12h18"/></svg>';
|
|
28
|
+
var link = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7"><path d="m9 15 6-6M8 16l-1 1a4 4 0 0 1-6-6l4-4a4 4 0 0 1 6 0m2 1 1-1a4 4 0 0 1 6 6l-4 4a4 4 0 0 1-6 0" transform="translate(1 0)"/></svg>';
|
|
29
|
+
function document(body, nonce, sessionPath, script = "") {
|
|
30
|
+
return `<!doctype html><html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>ThinkingAI \xD7 \u8C46\u5305\u5DE5\u4F5C</title>
|
|
31
|
+
<style nonce="${nonce}">
|
|
32
|
+
*{box-sizing:border-box}body{margin:0;min-height:100vh;display:grid;place-items:center;padding:48px 24px;color:#17243c;font:15px Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:radial-gradient(ellipse at 12% 10%,#e8efff 0,transparent 42%),radial-gradient(ellipse at 90% 95%,#e8f6f3 0,transparent 35%),#f5f8fd}
|
|
33
|
+
main{width:min(940px,100%);padding:44px 50px 28px;background:#fff;border:1px solid #dfe6f1;border-radius:28px;box-shadow:0 24px 72px #233b601a}.brands{display:flex;align-items:center;justify-content:center;gap:24px;min-height:62px}.dots{display:flex;gap:6px}.dots i{width:6px;height:6px;background:#a5b3c7;border-radius:50%;animation:pulse 1.5s infinite}.dots i:nth-child(2){animation-delay:.2s}.dots i:nth-child(3){animation-delay:.4s}@keyframes pulse{50%{opacity:.3;transform:scale(.8)}}
|
|
34
|
+
h1{font-size:34px;line-height:1.25;letter-spacing:-1px;text-align:center;margin:26px 0 10px}.subtitle{text-align:center;color:#748198;line-height:1.6;margin:0 auto;max-width:560px}.routes{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:32px 0 24px}.route{position:relative;border:1px solid #dbe3ef;border-radius:19px;padding:25px;display:flex;flex-direction:column;min-height:300px}.route.primary{background:linear-gradient(145deg,#f5f9ff,#edf5ff);border-color:#9ebfff;box-shadow:0 10px 28px #1677ff0b}.badge{position:absolute;right:18px;top:19px;font-size:11px;font-weight:650;letter-spacing:.2px;color:#266bdd;background:#e4eeff;border-radius:30px;padding:6px 10px}.secondary .badge{background:#f0f3f7;color:#778397}.icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#1677ff;color:#fff;margin-bottom:24px;box-shadow:0 7px 18px #1677ff26}.icon svg{height:25px;width:25px}.secondary .icon{background:#edf2f9;color:#4b678f;box-shadow:none}h2{font-size:21px;letter-spacing:-.3px;margin:0 0 10px}.route p{color:#6d7b91;line-height:1.65;margin:0 0 14px}.route .aside{font-size:12px;color:#8a96a8}.action{display:flex;align-items:center;justify-content:center;gap:12px;min-height:48px;width:100%;padding:12px 16px;margin-top:auto;border:1px solid #ccd9eb;border-radius:10px;background:#fff;text-decoration:none;color:#34445f;font:650 14px Inter,system-ui,sans-serif;cursor:pointer}.primary .action,.submit{background:#1677ff;border-color:#1677ff;color:white}.action:hover{background:#f5f8fd}.primary .action:hover,.submit:hover{background:#0869ed}.action:focus-visible,input:focus-visible{outline:3px solid #abcaff;outline-offset:3px}.note{display:flex;gap:8px;align-items:center;justify-content:center;color:#8591a4;font-size:12px;line-height:1.7}.note svg{width:15px;height:15px;flex-shrink:0}footer{text-align:center;color:#99a3b3;font-size:12px;margin-top:22px;border-top:1px solid #edf0f6;padding-top:20px}.back{display:inline-flex;gap:8px;color:#7b879c;text-decoration:none;font-size:13px;margin-bottom:20px}.host-shell{width:min(720px,100%)}.host-shell h1{font-size:30px}.host-form{margin-top:30px}fieldset{border:0;padding:0;margin:0}legend,label.field{font-size:14px;font-weight:650;margin-bottom:11px;display:block}.saved-hosts{display:grid;gap:9px;max-height:190px;overflow:auto}.saved{display:flex;align-items:center;gap:12px;padding:15px;border:1px solid #dce4ef;border-radius:10px;cursor:pointer}.saved:has(input:checked){border-color:#1677ff;background:#f1f6ff}.saved input{accent-color:#1677ff;width:17px;height:17px}.saved span{overflow-wrap:anywhere;font-size:14px}.empty{padding:18px;color:#8894a7;background:#f8fafc;border:1px dashed #d8e0ec;border-radius:9px;font-size:13px;margin:0}.divider{display:flex;align-items:center;gap:14px;margin:22px 0;color:#a0aabb;font-size:12px}.divider:before,.divider:after{content:"";height:1px;background:#e3e9f1;flex:1}input[type=url]{width:100%;border:1px solid #cbd6e6;border-radius:8px;padding:13px 14px;font:14px system-ui;color:#263a58}.helper{font-size:12px;color:#929caf;margin:8px 0 20px}.info{padding:13px 15px;color:#597294;background:#f0f6ff;border:1px solid #dfebfc;border-radius:9px;font-size:12px;line-height:1.7;margin:20px 0}.actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.actions .action{margin-top:0}button:disabled{opacity:.55;cursor:wait}#status{font-size:13px;line-height:1.6;text-align:center;min-height:20px;color:#236c4b;margin:15px 0 0}#status.error{color:#b13b4b}
|
|
35
|
+
@media(prefers-reduced-motion:reduce){.dots i{animation:none}}@media(max-width:700px){body{padding:0;background:#fff}main{border:0;border-radius:0;box-shadow:none;min-height:100vh;padding:32px 20px}.routes{grid-template-columns:1fr}.route{min-height:260px}.brands{gap:14px}h1{font-size:29px}.badge{font-size:10px}.host-shell h1{font-size:27px}}
|
|
36
|
+
.brands .thinkingai-logo{width:228px;height:auto}.brand-lockup{display:flex;align-items:center;gap:5px;flex-shrink:0}.brands .doubao-logo{width:48px;height:48px;object-fit:contain}.doubao-wordmark{width:112px;height:auto;filter:brightness(0)}@media(max-width:700px){.brands .thinkingai-logo{width:160px}.brands .doubao-logo{width:38px;height:38px}.doubao-wordmark{width:88px}.brands{gap:12px}}@media(max-width:380px){.brands .thinkingai-logo{width:132px}.brands .doubao-logo{width:32px;height:32px}.doubao-wordmark{width:78px}.brands{gap:8px}.dots{gap:4px}.dots i{width:4px;height:4px}}
|
|
37
|
+
</style></head><body>${body}<script nonce="${nonce}">let pageTransition=false;document.addEventListener('click',event=>{const anchor=event.target.closest('a');if(anchor&&anchor.origin===location.origin&&[${JSON.stringify(sessionPath)},${JSON.stringify(sessionPath + "host")}].includes(anchor.pathname))pageTransition=true;});window.addEventListener('pagehide',()=>{if(!pageTransition)navigator.sendBeacon('${sessionPath}cancel',new Blob(['{}'],{type:'application/json'}));});${script}</script></body></html>`;
|
|
38
|
+
}
|
|
39
|
+
function brands(sessionPath) {
|
|
40
|
+
return `<div class="brands" aria-label="ThinkingAI \u4E0E\u8C46\u5305\u5DE5\u4F5C"><img class="thinkingai-logo" src="${sessionPath}thinkingai.svg" alt="ThinkingAI"><span class="dots" aria-hidden="true"><i></i><i></i><i></i></span><div class="brand-lockup"><img class="doubao-logo" src="${sessionPath}doubao.png" alt=""><img class="doubao-wordmark" src="${sessionPath}doubao-wordmark.svg" alt="\u8C46\u5305\u5DE5\u4F5C"></div></div>`;
|
|
41
|
+
}
|
|
42
|
+
function renderDoubaoEntryPage(sessionPath, nonce) {
|
|
43
|
+
return document(`<main>${brands(sessionPath)}<h1>\u8FDE\u63A5 ThinkingAI AE</h1><p class="subtitle">\u8FDE\u63A5\u4F01\u4E1A AE \u73AF\u5883\uFF0C\u5728\u8C46\u5305\u4E2D\u5206\u6790\u4E1A\u52A1\u6570\u636E\u3002</p>
|
|
44
|
+
<section class="routes" aria-label="\u4F7F\u7528\u65B9\u5F0F"><article class="route primary"><span class="badge">\u72EC\u7ACB\u4F7F\u7528</span><div class="icon" aria-hidden="true">${globe}</div><h2>\u524D\u5F80 ThinkingAI \u5B98\u7F51</h2><p>\u4E86\u89E3\u4EA7\u54C1\u3001\u7533\u8BF7\u4F53\u9A8C\uFF0C\u6216\u76F4\u63A5\u5728\u5B98\u7F51\u767B\u5F55\u4F7F\u7528 ThinkingAI\u3002</p><p class="aside">\u5B98\u7F51\u5C06\u5728\u65B0\u6807\u7B7E\u9875\u6253\u5F00\uFF0C\u672C\u9875\u4FDD\u7559\uFF0C\u53EF\u968F\u65F6\u7EE7\u7EED\u8FDE\u63A5\u3002</p><a class="action" href="${sessionPath}website" target="_blank" rel="noopener noreferrer">\u524D\u5F80\u5B98\u7F51 <span aria-hidden="true">\u2197</span></a></article>
|
|
45
|
+
<article class="route secondary"><span class="badge">\u5728\u8C46\u5305\u4E2D\u4F7F\u7528</span><div class="icon" aria-hidden="true">${link}</div><h2>\u8FDE\u63A5\u5DF2\u6709 AE \u73AF\u5883</h2><p>\u9009\u62E9\u5DF2\u4FDD\u5B58\u7684\u73AF\u5883\uFF0C\u6216\u8F93\u5165\u4F01\u4E1A AE \u5730\u5740\u3002\u5B8C\u6210\u767B\u5F55\u540E\uFF0C\u5373\u53EF\u5728\u8C46\u5305\u4E2D\u67E5\u8BE2\u548C\u5206\u6790\u6570\u636E\u3002</p><a class="action" href="${sessionPath}host">\u9009\u62E9 AE \u73AF\u5883 <span aria-hidden="true">\u2192</span></a></article></section>
|
|
46
|
+
<p class="note"><span aria-hidden="true">\u25C7</span> \u8D26\u53F7\u5BC6\u7801\u4EC5\u5728 AE \u7EDF\u4E00\u767B\u5F55\u9875\u8F93\u5165\uFF0C\u672C\u9875\u9762\u4E0D\u4F1A\u6536\u96C6\u5BC6\u7801\u3002</p><footer>ThinkingAI AE \xB7 \u8C46\u5305\u5DE5\u4F5C\u8FDE\u63A5</footer></main>`, nonce, sessionPath);
|
|
47
|
+
}
|
|
48
|
+
function renderDoubaoEnvironmentPage(hosts, sessionPath, nonce) {
|
|
49
|
+
const saved = hosts.length ? hosts.map((host, index) => `<label class="saved"><input type="radio" name="saved-host" value="${escapeHtml(host)}"${index === 0 ? " checked" : ""}><span>${escapeHtml(host)}</span></label>`).join("") : '<p class="empty">\u8FD8\u6CA1\u6709\u4FDD\u5B58\u7684\u73AF\u5883\uFF0C\u8BF7\u5728\u4E0B\u65B9\u8F93\u5165\u4F01\u4E1A AE \u5730\u5740\u3002</p>';
|
|
50
|
+
return document(`<main class="host-shell"><a class="back" href="${sessionPath}">\u2190 \u8FD4\u56DE\u9009\u62E9\u4F7F\u7528\u65B9\u5F0F</a>${brands(sessionPath)}<h1>\u8FDE\u63A5 ThinkingAI</h1><p class="subtitle">\u9009\u62E9\u8981\u5728\u8C46\u5305\u4E2D\u4F7F\u7528\u7684 AE \u73AF\u5883\u3002</p><form id="form" class="host-form" novalidate><fieldset><legend>\u5DF2\u4FDD\u5B58\u7684\u73AF\u5883</legend><div class="saved-hosts">${saved}</div></fieldset><div class="divider">\u6216</div><label class="field" for="host">\u4F7F\u7528\u5176\u4ED6 AE \u73AF\u5883</label><input id="host" type="url" placeholder="https://your-ae.example.com" autocomplete="url"><p class="helper">\u8BF7\u8F93\u5165\u4F01\u4E1A\u7BA1\u7406\u5458\u63D0\u4F9B\u7684 HTTPS \u5730\u5740\u3002</p><div class="info">\u672C\u9875\u9762\u4EC5\u7528\u4E8E\u9009\u62E9\u73AF\u5883\uFF0C\u8D26\u53F7\u5BC6\u7801\u5C06\u5728 AE \u7EDF\u4E00\u767B\u5F55\u9875\u8F93\u5165\u3002</div><div class="actions"><a class="action" href="${sessionPath}">\u8FD4\u56DE</a><button class="action submit" id="continue">\u7EE7\u7EED\u524D\u5F80 AE \u767B\u5F55 \u2192</button></div><p id="status" role="status"></p></form><footer>\u73AF\u5883\u914D\u7F6E\u4EC5\u7528\u4E8E\u8C46\u5305\u5DE5\u4F5C\uFF0C\u4E0E\u5176\u4ED6\u5E94\u7528\u76F8\u4E92\u72EC\u7ACB\u3002</footer></main>`, nonce, sessionPath, `const form=document.getElementById('form'),input=document.getElementById('host'),radios=[...document.querySelectorAll('input[name="saved-host"]')];input.addEventListener('input',()=>{if(input.value.trim())radios.forEach(r=>r.checked=false)});radios.forEach(r=>r.addEventListener('change',()=>input.value=''));form.addEventListener('submit',async e=>{e.preventDefault();const button=document.getElementById('continue'),status=document.getElementById('status');button.disabled=true;status.classList.remove('error');try{const host=input.value.trim()||radios.find(r=>r.checked)?.value||'';const response=await fetch('${sessionPath}select',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({host})});const result=await response.json();if(!response.ok)throw new Error(result.message);pageTransition=true;status.textContent='\u73AF\u5883\u5DF2\u4FDD\u5B58\uFF0C\u6B63\u5728\u6253\u5F00 AE \u767B\u5F55\u9875\uFF0C\u53EF\u4EE5\u5173\u95ED\u6B64\u9875\u9762\u3002';}catch(error){status.textContent=error.message;status.classList.add('error');button.disabled=false;}});`);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// src/integrations/doubao/host-page.ts
|
|
54
|
+
function validateDoubaoHost(value) {
|
|
55
|
+
if (typeof value !== "string" || !value.trim()) throw new Error("\u8BF7\u8F93\u5165\u4F01\u4E1A AE \u73AF\u5883\u5730\u5740\u3002");
|
|
56
|
+
let url;
|
|
57
|
+
try {
|
|
58
|
+
url = new URL(value.trim());
|
|
59
|
+
} catch {
|
|
60
|
+
throw new Error("\u8BF7\u8F93\u5165\u6709\u6548\u7684 HTTPS \u5730\u5740\u3002");
|
|
61
|
+
}
|
|
62
|
+
if (url.protocol !== "https:" || url.username || url.password || url.search || url.hash) {
|
|
63
|
+
throw new Error("\u8BF7\u4F7F\u7528 HTTPS \u5730\u5740\uFF0C\u4E0D\u8981\u5305\u542B\u7528\u6237\u540D\u3001\u5BC6\u7801\u3001\u67E5\u8BE2\u53C2\u6570\u6216\u7247\u6BB5\u3002");
|
|
64
|
+
}
|
|
65
|
+
return `${url.origin}${url.pathname.replace(/\/+$/, "")}`;
|
|
66
|
+
}
|
|
67
|
+
async function startDoubaoHostPage(options) {
|
|
68
|
+
const sessionPath = `/doubao/${randomBytes(24).toString("base64url")}/`;
|
|
69
|
+
const nonce = randomBytes(18).toString("base64url");
|
|
70
|
+
let settle;
|
|
71
|
+
const selection = new Promise((resolve) => {
|
|
72
|
+
settle = resolve;
|
|
73
|
+
});
|
|
74
|
+
let busy = false;
|
|
75
|
+
let selected = false;
|
|
76
|
+
let origin = "";
|
|
77
|
+
let cancellationTimer;
|
|
78
|
+
const assets = {
|
|
79
|
+
"thinkingai.svg": { type: "image/svg+xml", bytes: readFileSync(new URL("./assets/thinkingai.svg", import.meta.url)) },
|
|
80
|
+
"doubao.png": { type: "image/png", bytes: readFileSync(new URL("./assets/doubao.png", import.meta.url)) },
|
|
81
|
+
"doubao-wordmark.svg": { type: "image/svg+xml", bytes: readFileSync(new URL("./assets/doubao-wordmark.svg", import.meta.url)) }
|
|
82
|
+
};
|
|
83
|
+
const server = createServer(async (request, response) => {
|
|
84
|
+
response.setHeader("Cache-Control", "no-store");
|
|
85
|
+
response.setHeader("Referrer-Policy", "no-referrer");
|
|
86
|
+
response.setHeader("X-Content-Type-Options", "nosniff");
|
|
87
|
+
response.setHeader("Content-Security-Policy", `default-src 'none'; img-src 'self'; style-src 'nonce-${nonce}'; script-src 'nonce-${nonce}'; connect-src 'self'; base-uri 'none'; frame-ancestors 'none'; form-action 'self'`);
|
|
88
|
+
const reply = (status, value) => {
|
|
89
|
+
response.writeHead(status, { "Content-Type": "application/json; charset=utf-8" });
|
|
90
|
+
response.end(JSON.stringify(value));
|
|
91
|
+
};
|
|
92
|
+
if (`http://${request.headers.host}` !== origin) {
|
|
93
|
+
reply(403, { message: "Invalid request host." });
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
if (request.method === "GET" && request.url === `${sessionPath}website`) {
|
|
97
|
+
if (busy || selected) {
|
|
98
|
+
reply(409, { message: "An environment selection is already in progress." });
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
response.writeHead(302, { Location: "https://www.thinkingai.cn/" });
|
|
102
|
+
response.end();
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
if (request.method === "GET" && (request.url === sessionPath || request.url === `${sessionPath}host`)) {
|
|
106
|
+
clearTimeout(cancellationTimer);
|
|
107
|
+
cancellationTimer = void 0;
|
|
108
|
+
response.writeHead(200, { "Content-Type": "text/html; charset=utf-8" });
|
|
109
|
+
response.end(request.url === sessionPath ? renderDoubaoEntryPage(sessionPath, nonce) : renderDoubaoEnvironmentPage(options.hosts, sessionPath, nonce));
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
for (const [name, asset] of Object.entries(assets)) {
|
|
113
|
+
if (request.method === "GET" && request.url === `${sessionPath}${name}`) {
|
|
114
|
+
response.writeHead(200, { "Content-Type": asset.type });
|
|
115
|
+
response.end(asset.bytes);
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
if (request.method === "POST" && request.url === `${sessionPath}cancel`) {
|
|
120
|
+
if (request.headers.origin !== origin || request.headers["content-type"] !== "application/json") {
|
|
121
|
+
reply(403, { message: "Invalid request origin or content type." });
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
if (!selected && !cancellationTimer) {
|
|
125
|
+
cancellationTimer = setTimeout(() => {
|
|
126
|
+
cancellationTimer = void 0;
|
|
127
|
+
settle(void 0);
|
|
128
|
+
}, 800);
|
|
129
|
+
}
|
|
130
|
+
reply(200, { ok: true });
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
if (request.method !== "POST" || request.url !== `${sessionPath}select`) {
|
|
134
|
+
reply(404, { message: "Not found." });
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
if (request.headers.origin !== origin || request.headers["content-type"] !== "application/json") {
|
|
138
|
+
reply(403, { message: "Invalid request origin or content type." });
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
if (busy || selected) {
|
|
142
|
+
reply(409, { message: "An environment selection is already in progress." });
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
busy = true;
|
|
146
|
+
try {
|
|
147
|
+
let body = "";
|
|
148
|
+
for await (const chunk of request) {
|
|
149
|
+
body += chunk.toString();
|
|
150
|
+
if (Buffer.byteLength(body) > 4096) throw new Error("\u8BF7\u6C42\u5185\u5BB9\u8FC7\u957F\uFF0C\u8BF7\u91CD\u65B0\u8F93\u5165\u73AF\u5883\u5730\u5740\u3002");
|
|
151
|
+
}
|
|
152
|
+
const host = validateDoubaoHost(JSON.parse(body).host);
|
|
153
|
+
await options.onSelect(host);
|
|
154
|
+
selected = true;
|
|
155
|
+
response.once("finish", () => settle(host));
|
|
156
|
+
reply(200, { ok: true });
|
|
157
|
+
} catch (error) {
|
|
158
|
+
reply(400, { message: error instanceof Error ? error.message : "\u73AF\u5883\u5730\u5740\u65E0\u6548\u3002" });
|
|
159
|
+
} finally {
|
|
160
|
+
busy = false;
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
server.requestTimeout = 5e3;
|
|
164
|
+
await new Promise((resolve, reject) => {
|
|
165
|
+
server.once("error", reject);
|
|
166
|
+
server.listen(0, "127.0.0.1", resolve);
|
|
167
|
+
});
|
|
168
|
+
const address = server.address();
|
|
169
|
+
if (!address || typeof address === "string") throw new Error("Cannot start the Doubao host page.");
|
|
170
|
+
origin = `http://127.0.0.1:${address.port}`;
|
|
171
|
+
const abort = () => settle(void 0);
|
|
172
|
+
options.signal.addEventListener("abort", abort, { once: true });
|
|
173
|
+
if (options.signal.aborted) abort();
|
|
174
|
+
return {
|
|
175
|
+
url: `${origin}${sessionPath}`,
|
|
176
|
+
selection,
|
|
177
|
+
async close() {
|
|
178
|
+
options.signal.removeEventListener("abort", abort);
|
|
179
|
+
clearTimeout(cancellationTimer);
|
|
180
|
+
await new Promise((resolve, reject) => {
|
|
181
|
+
server.close((error) => error ? reject(error) : resolve());
|
|
182
|
+
server.closeAllConnections();
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// src/integrations/doubao/login.ts
|
|
189
|
+
var exec = promisify(execFile);
|
|
190
|
+
function doubaoConfigDir(home = os.homedir(), platform = process.platform, localAppData = process.env.LOCALAPPDATA) {
|
|
191
|
+
return platform === "win32" ? path.join(localAppData || path.join(home, "AppData", "Local"), "ThinkingAI", "Doubao", "config") : path.join(home, ".config", "thinkingai-doubao", "ae-cli");
|
|
192
|
+
}
|
|
193
|
+
async function runDoubaoLogin(options) {
|
|
194
|
+
const page = await startDoubaoHostPage({
|
|
195
|
+
hosts: await options.listHosts(),
|
|
196
|
+
signal: options.signal,
|
|
197
|
+
onSelect: options.saveHost
|
|
198
|
+
});
|
|
199
|
+
try {
|
|
200
|
+
options.report(page.url);
|
|
201
|
+
await options.open(page.url);
|
|
202
|
+
const host = await page.selection;
|
|
203
|
+
if (!host || options.signal.aborted) return 1;
|
|
204
|
+
} finally {
|
|
205
|
+
await page.close();
|
|
206
|
+
}
|
|
207
|
+
return options.login();
|
|
208
|
+
}
|
|
209
|
+
async function openDoubaoBrowser(url) {
|
|
210
|
+
if (process.platform === "darwin") await exec("open", [url]);
|
|
211
|
+
else if (process.platform === "win32") await exec("rundll32.exe", ["url.dll,FileProtocolHandler", url]);
|
|
212
|
+
else await exec("xdg-open", [url]);
|
|
213
|
+
}
|
|
214
|
+
async function runBaseCli(entry, args, signal) {
|
|
215
|
+
if (signal.aborted) return 1;
|
|
216
|
+
return new Promise((resolve, reject) => {
|
|
217
|
+
const child = spawn(process.execPath, [entry, ...args], {
|
|
218
|
+
env: { ...process.env, AE_CLI_CONFIG_DIR: doubaoConfigDir() },
|
|
219
|
+
stdio: "inherit",
|
|
220
|
+
signal
|
|
221
|
+
});
|
|
222
|
+
child.once("error", (error) => error.name === "AbortError" ? resolve(1) : reject(error));
|
|
223
|
+
child.once("exit", (code) => resolve(code ?? 1));
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
async function readDoubaoHosts(entry) {
|
|
227
|
+
const { stdout } = await exec(process.execPath, [entry, "config", "list", "--format", "json"], {
|
|
228
|
+
env: { ...process.env, AE_CLI_CONFIG_DIR: doubaoConfigDir() },
|
|
229
|
+
timeout: 1e4
|
|
230
|
+
});
|
|
231
|
+
const result = JSON.parse(stdout);
|
|
232
|
+
if (!result.ok || !Array.isArray(result.data?.hosts)) throw new Error("Cannot read the Doubao environment list.");
|
|
233
|
+
return result.data.hosts.map((host) => host.url);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
// src/integrations/doubao/cli.ts
|
|
237
|
+
var baseEntry = fileURLToPath(new URL("./index.js", import.meta.url));
|
|
238
|
+
var controller = new AbortController();
|
|
239
|
+
var stop = () => controller.abort();
|
|
240
|
+
process.once("SIGINT", stop);
|
|
241
|
+
process.once("SIGTERM", stop);
|
|
242
|
+
var timer;
|
|
243
|
+
try {
|
|
244
|
+
const args = process.argv.slice(2);
|
|
245
|
+
if (args.length === 2 && args[0] === "auth" && args[1] === "login") {
|
|
246
|
+
timer = setTimeout(stop, 28e4);
|
|
247
|
+
timer.unref();
|
|
248
|
+
process.exitCode = await runDoubaoLogin({
|
|
249
|
+
signal: controller.signal,
|
|
250
|
+
listHosts: () => readDoubaoHosts(baseEntry),
|
|
251
|
+
saveHost: async (host) => {
|
|
252
|
+
if (await runBaseCli(baseEntry, ["config", "set-host", host], controller.signal) !== 0) {
|
|
253
|
+
throw new Error("Cannot save the Doubao AE environment.");
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
login: () => runBaseCli(baseEntry, ["auth", "login"], controller.signal),
|
|
257
|
+
open: async (url) => {
|
|
258
|
+
try {
|
|
259
|
+
await openDoubaoBrowser(url);
|
|
260
|
+
} catch {
|
|
261
|
+
process.stderr.write("[ae-cli-doubao] Open the local sign-in URL printed above in your browser.\n");
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
report: (url) => process.stderr.write(`[ae-cli-doubao] Select your AE environment: ${url}
|
|
265
|
+
`)
|
|
266
|
+
});
|
|
267
|
+
} else {
|
|
268
|
+
process.exitCode = await runBaseCli(baseEntry, args, controller.signal);
|
|
269
|
+
}
|
|
270
|
+
} catch (error) {
|
|
271
|
+
process.stdout.write(`${JSON.stringify({ ok: false, error: { type: "config", message: error instanceof Error ? error.message : "Doubao CLI failed." } })}
|
|
272
|
+
`);
|
|
273
|
+
process.exitCode = 1;
|
|
274
|
+
} finally {
|
|
275
|
+
clearTimeout(timer);
|
|
276
|
+
process.off("SIGINT", stop);
|
|
277
|
+
process.off("SIGTERM", stop);
|
|
278
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<svg preserveAspectRatio="none" overflow="visible" width="80.5693" height="18.8113" viewBox="0 0 80.5693 18.8113" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M68.7812 9.48852C68.1458 8.74269 67.6348 8.1488 67.2481 7.70683C68.8779 5.45555 70.0864 2.88661 70.8736 0L73.194 0.45578C72.9039 1.32591 72.6139 2.13388 72.3238 2.8797H80.5693V5.07573H74.4163V7.7897H79.5127V9.92358H74.4163V12.6375H80.0514V14.7714H74.4163V18.8113H72.1374V5.07573H71.3915C70.6319 6.69168 69.7618 8.16261 68.7812 9.48852ZM62.711 11.726C62.4486 10.6072 62.2207 9.66807 62.0273 8.90843C63.6709 6.38092 64.9554 3.41145 65.8808 0L68.1597 0.600801C67.7453 1.92671 67.2688 3.2319 66.7302 4.51637V18.7906H64.5134V8.94987C63.8781 10.041 63.2773 10.9663 62.711 11.726Z" fill="white"/>
|
|
3
|
+
<path d="M42.6563 3.95573V1.57324H58.5464V3.95573H51.8547V15.2052H59.5615V17.5463H41.6411V15.2052H49.3065V3.95573H42.6563Z" fill="white"/>
|
|
4
|
+
<path d="M26.248 18.2934C25.0325 18.2934 24.1693 18.0309 23.6583 17.5061C23.1473 16.9813 22.8918 16.1111 22.8918 14.8957V7.33392C22.2702 7.98306 21.7799 8.47337 21.4208 8.80484C21.2137 8.04521 20.9582 7.21652 20.6543 6.31877C22.6017 4.45422 24.0588 2.34796 25.0256 0L27.5946 0.248608C27.2355 1.00824 26.9731 1.5538 26.8073 1.88527H37.1867C37.1452 5.37959 37.0762 8.33525 36.9795 10.7523C36.9381 11.9262 36.6826 12.7757 36.213 13.3005C35.7434 13.8253 35.0045 14.1016 33.9962 14.1292C33.3609 14.1568 32.4562 14.1706 31.2823 14.1706C31.1165 13.4939 30.9646 12.9276 30.8265 12.4718H25.1292V14.585C25.1292 15.2065 25.2535 15.6346 25.5021 15.8694C25.7369 16.0904 26.1858 16.2009 26.8488 16.2009H34.742C35.2945 16.2009 35.7088 16.1042 35.9851 15.9109C36.2475 15.7175 36.427 15.3998 36.5237 14.9579C36.6618 14.2535 36.7792 13.487 36.8759 12.6583C37.5112 12.8654 38.264 13.0864 39.1341 13.3212C38.9407 14.6057 38.775 15.5449 38.6369 16.1388C38.4435 16.926 38.1051 17.4785 37.6217 17.7961C37.1107 18.1276 36.3304 18.2934 35.2807 18.2934H26.248ZM25.5021 4.06059C25.1983 4.51637 24.7287 5.14479 24.0934 5.94586H31.9866V11.8917C32.4148 11.8917 32.843 11.8917 33.2711 11.8917C33.7683 11.8917 34.1274 11.7812 34.3484 11.5602C34.5694 11.3393 34.6937 10.9802 34.7213 10.4829C34.8318 8.42503 34.8871 6.28424 34.8871 4.06059H25.5021ZM25.1292 7.97615V10.4622H29.7492V7.97615H25.1292Z" fill="white"/>
|
|
5
|
+
<path d="M2.05101 12.1198V5.17952H16.3045V12.1198H12.8447L15.02 13.0728C13.846 14.7578 13.1624 15.7384 12.969 16.0147H18.3348V18.0657H0V16.0147H5.26219C4.72354 15.1721 4.06749 14.2261 3.29405 13.1764L5.2829 12.1612C5.80774 12.838 6.53975 13.8462 7.47893 15.186L5.90442 16.0147H10.4001C11.063 15.0478 11.8434 13.7496 12.7411 12.1198H2.05101ZM0.600801 3.33568V1.28467H17.7547V3.33568H0.600801ZM4.4335 7.18909V10.1102H13.922V7.18909H4.4335Z" fill="white"/>
|
|
6
|
+
</svg>
|
|
Binary file
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-50.495 -46 255.69 255.69" width="512" height="512"><g fill="#004bff">
|
|
2
|
+
<rect x="12.36" y="24.17" width="12.61" height="12.5" rx="1.01" ry="1.01" />
|
|
3
|
+
<rect x="30.78" width="9.98" height="9.91" rx="1.01" ry="1.01" />
|
|
4
|
+
<rect y="51.88" width="9.06" height="8.99" rx="1.01" ry="1.01" />
|
|
5
|
+
<path d="M154.7,91.73c0-.38-.07-.75-.21-1.09-.04-.1-.08-.19-.13-.28-.02-.03-.03-.06-.05-.09-.01-.02-.02-.04-.03-.06-.02-.03-.03-.05-.05-.07-.16-.26-.35-.5-.57-.72-.05-.07-.09-.12-.09-.12l-14.3-17.03c-.71-.81-.71-2.12-.71-2.12-8.15-51.18-60.23-43.6-60.23-43.6-4.25,.44-7.65,1.2-9.72,1.76-.43-.37-.7-.91-.7-1.52V14.31c0-1.11-.9-2.01-2.01-2.01h-12.6c-1.11,0-2.01,.9-2.01,2.01v12.47c0,1.11,.9,2.01,2.01,2.01h12.6c.14,0,.27-.01,.41-.04,.26-.05,.51-.16,.72-.3-.21,.14-.46,.25-.72,.3-.13,.03-.27,.04-.41,.04,.25,0,.49,.05,.71,.14,.05,.02,.1,.04,.15,.07,.06,.03,.12,.06,.17,.09,.04,.03,.09,.05,.13,.08,.07,.05,.13,.1,.19,.16,.03,.02,.05,.04,.08,.07,.08,.08,.15,.17,.21,.26,.02,.03,.04,.07,.06,.1,.04,.07,.08,.14,.11,.21,.02,.04,.03,.08,.05,.12,.03,.08,.05,.16,.07,.24,0,.04,.02,.07,.03,.11,.02,.12,.04,.24,.04,.37h0s0,0,0,0v12.47c0,1.11-.9,2.01-2.01,2.01h-12.6c-1.11,0-2.01-.9-2.01-2.01v-5.68s0,0-.01,.01v-6.8c0-1.11-.9-2.01-2.01-2.01h-12.6c-1.11,0-2.01,.9-2.01,2.01v12.47c0,1.11,.9,2.01,2.01,2.01h12.6c1.11,0,2.01,.9,2.01,2.01v12.47c0,1.11-.9,2.01-2.01,2.01h-12.6c-1.07,0-1.93-.83-2-1.88v-4.95c0-1.11-.9-2.01-2.01-2.01h-11.14c-1.11,0-2.01,.9-2.01,2.01v11.02c0,1.11,.9,2.01,2.01,2.01h8.79c-.14,.86-.18,1.37-.18,1.37-.24,2.86-.22,5.73-.15,8.22,.6,21.6,12.08,31.3,15.42,34.77,2.27,2.36,7.34,6.45,10.21,11.71,1.83,3.35,3.44,9.68,2.22,17.19-.19,1.15-.34,2.12-.47,2.97-.57,3.17-1.68,8.15-3.36,11.22,0,0-1.09,2.04,.89,2.73,.1,.04,.66,.22,1.26,.4,.27,.08,1.18,.36,1.38,.43,6.71,2.25,31.9,9.18,65.83,.21,.05-.01,.21-.05,.42-.09h0c3.27-.82,1.9-2.44,1.9-2.44-1.59-2.92-2.15-5.99-2.31-8.3-.07-1.67-.03-3.17,.08-4.02h0c.01-.09,.02-.18,.03-.28,.12-1.07,.26-3.21,.84-3.5,2.85-1.43,7.76-2.34,11.49-2.92,6.62-1.01,11.19-4.36,12.15-7.6,.96-3.25-1.98-6.9-2.89-10.14-.91-3.25,1.04-3.83,2.1-5.2,1.06-1.37-.21-2-1.43-3.08-1.22-1.08-1.29-1.89,.4-3.52,1.69-1.62,2.64-1.82-.4-5.28-3.04-3.45,.34-5.44,.34-5.44,0,0,3.28-1.12,5.93-2.36,1.33-.48,2.32-1.44,2.61-2.6,.06-.2,.09-.39,.09-.58,0-.02,0-.05,0-.07,0-.02,0-.04,0-.07ZM67.75,27.57c-.1,.24-.25,.46-.43,.64,.18-.18,.33-.4,.43-.64Zm.02,19.74c0-1.11,.9-2.01,2.01-2.01h12.6c1.11,0,2.01,.9,2.01,2.01v12.47c0,1.11-.9,2.01-2.01,2.01h-12.6c-1.11,0-2.01-.9-2.01-2.01v-12.47Zm-14.48,30.98c-1.11,0-2.01-.9-2.01-2.01v-12.47c0-1.11,.9-2.01,2.01-2.01h12.6c1.11,0,2.01,.9,2.01,2.01v12.47c0,1.11-.9,2.01-2.01,2.01h-12.6Z" />
|
|
6
|
+
</g>
|
|
7
|
+
</svg>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg id="_图层_2" data-name="图层 2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 736.82 163.69">
|
|
3
|
+
<defs>
|
|
4
|
+
<style>
|
|
5
|
+
.cls-1 {
|
|
6
|
+
fill: #004bff;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.cls-2 {
|
|
10
|
+
fill: #231815;
|
|
11
|
+
}
|
|
12
|
+
</style>
|
|
13
|
+
</defs>
|
|
14
|
+
<g id="_图层_1-2" data-name="图层 1">
|
|
15
|
+
<g>
|
|
16
|
+
<g>
|
|
17
|
+
<rect class="cls-1" x="12.36" y="24.17" width="12.61" height="12.5" rx="1.01" ry="1.01"/>
|
|
18
|
+
<rect class="cls-1" x="30.78" width="9.98" height="9.91" rx="1.01" ry="1.01"/>
|
|
19
|
+
<rect class="cls-1" y="51.88" width="9.06" height="8.99" rx="1.01" ry="1.01"/>
|
|
20
|
+
<path class="cls-1" d="M154.7,91.73c0-.38-.07-.75-.21-1.09-.04-.1-.08-.19-.13-.28-.02-.03-.03-.06-.05-.09-.01-.02-.02-.04-.03-.06-.02-.03-.03-.05-.05-.07-.16-.26-.35-.5-.57-.72-.05-.07-.09-.12-.09-.12l-14.3-17.03c-.71-.81-.71-2.12-.71-2.12-8.15-51.18-60.23-43.6-60.23-43.6-4.25,.44-7.65,1.2-9.72,1.76-.43-.37-.7-.91-.7-1.52V14.31c0-1.11-.9-2.01-2.01-2.01h-12.6c-1.11,0-2.01,.9-2.01,2.01v12.47c0,1.11,.9,2.01,2.01,2.01h12.6c.14,0,.27-.01,.41-.04,.26-.05,.51-.16,.72-.3-.21,.14-.46,.25-.72,.3-.13,.03-.27,.04-.41,.04,.25,0,.49,.05,.71,.14,.05,.02,.1,.04,.15,.07,.06,.03,.12,.06,.17,.09,.04,.03,.09,.05,.13,.08,.07,.05,.13,.1,.19,.16,.03,.02,.05,.04,.08,.07,.08,.08,.15,.17,.21,.26,.02,.03,.04,.07,.06,.1,.04,.07,.08,.14,.11,.21,.02,.04,.03,.08,.05,.12,.03,.08,.05,.16,.07,.24,0,.04,.02,.07,.03,.11,.02,.12,.04,.24,.04,.37h0s0,0,0,0v12.47c0,1.11-.9,2.01-2.01,2.01h-12.6c-1.11,0-2.01-.9-2.01-2.01v-5.68s0,0-.01,.01v-6.8c0-1.11-.9-2.01-2.01-2.01h-12.6c-1.11,0-2.01,.9-2.01,2.01v12.47c0,1.11,.9,2.01,2.01,2.01h12.6c1.11,0,2.01,.9,2.01,2.01v12.47c0,1.11-.9,2.01-2.01,2.01h-12.6c-1.07,0-1.93-.83-2-1.88v-4.95c0-1.11-.9-2.01-2.01-2.01h-11.14c-1.11,0-2.01,.9-2.01,2.01v11.02c0,1.11,.9,2.01,2.01,2.01h8.79c-.14,.86-.18,1.37-.18,1.37-.24,2.86-.22,5.73-.15,8.22,.6,21.6,12.08,31.3,15.42,34.77,2.27,2.36,7.34,6.45,10.21,11.71,1.83,3.35,3.44,9.68,2.22,17.19-.19,1.15-.34,2.12-.47,2.97-.57,3.17-1.68,8.15-3.36,11.22,0,0-1.09,2.04,.89,2.73,.1,.04,.66,.22,1.26,.4,.27,.08,1.18,.36,1.38,.43,6.71,2.25,31.9,9.18,65.83,.21,.05-.01,.21-.05,.42-.09h0c3.27-.82,1.9-2.44,1.9-2.44-1.59-2.92-2.15-5.99-2.31-8.3-.07-1.67-.03-3.17,.08-4.02h0c.01-.09,.02-.18,.03-.28,.12-1.07,.26-3.21,.84-3.5,2.85-1.43,7.76-2.34,11.49-2.92,6.62-1.01,11.19-4.36,12.15-7.6,.96-3.25-1.98-6.9-2.89-10.14-.91-3.25,1.04-3.83,2.1-5.2,1.06-1.37-.21-2-1.43-3.08-1.22-1.08-1.29-1.89,.4-3.52,1.69-1.62,2.64-1.82-.4-5.28-3.04-3.45,.34-5.44,.34-5.44,0,0,3.28-1.12,5.93-2.36,1.33-.48,2.32-1.44,2.61-2.6,.06-.2,.09-.39,.09-.58,0-.02,0-.05,0-.07,0-.02,0-.04,0-.07ZM67.75,27.57c-.1,.24-.25,.46-.43,.64,.18-.18,.33-.4,.43-.64Zm.02,19.74c0-1.11,.9-2.01,2.01-2.01h12.6c1.11,0,2.01,.9,2.01,2.01v12.47c0,1.11-.9,2.01-2.01,2.01h-12.6c-1.11,0-2.01-.9-2.01-2.01v-12.47Zm-14.48,30.98c-1.11,0-2.01-.9-2.01-2.01v-12.47c0-1.11,.9-2.01,2.01-2.01h12.6c1.11,0,2.01,.9,2.01,2.01v12.47c0,1.11-.9,2.01-2.01,2.01h-12.6Z"/>
|
|
21
|
+
</g>
|
|
22
|
+
<g>
|
|
23
|
+
<path class="cls-2" d="M282.9,47.37c.12,.06,.24,.14,.36,.19,1.29,.5,1.94,1.41,1.97,2.8,.01,.54,0,1.08,0,1.62-.02,8.69-.05,17.38-.07,26.07,0,.25,0,.51,0,.83,.23-.08,.39-.11,.53-.18,2.92-1.45,6.03-2.25,9.25-2.66,3.56-.45,7.1-.38,10.62,.3,3.39,.65,6.58,1.81,9.34,3.95,3.54,2.76,5.7,6.4,6.72,10.74,.51,2.18,.79,4.4,.86,6.64,.05,1.81,.09,3.62,.09,5.44,0,8.55,0,17.1,0,25.64,0,.42-.02,.85-.11,1.26-.25,1.15-1.28,2.02-2.45,2.1-.16,.01-.33,.01-.49,.01-3.98,0-7.96,0-11.94,0-.44,0-.91-.05-1.31-.21-1.04-.43-1.62-1.25-1.71-2.39-.02-.28,0-.56,0-.85,0-9.23,0-18.46,0-27.69,0-2.71-1-5-3.02-6.82-1.66-1.49-3.63-2.25-5.85-2.31-1.3-.04-2.59-.02-3.85,.34-3.81,1.09-6.58,4.64-6.57,8.72,.04,9.25,.01,18.51,0,27.76,0,.33,0,.66-.04,.99-.21,1.49-1.29,2.45-2.8,2.46-2.31,.02-4.62,0-6.93,0-1.53,0-3.07-.06-4.59,.02-1.85,.09-3.13-1.32-3.12-3.11,.04-14.83,.04-29.67,.04-44.51,0-11.23,.01-22.46,.02-33.7,0-.33,0-.66,.05-.98,.17-1.09,.78-1.84,1.81-2.25,.17-.07,.33-.16,.5-.24,4.24,0,8.48,0,12.72,0Z"/>
|
|
24
|
+
<path class="cls-2" d="M436.14,47.37c.17,.08,.34,.16,.51,.22,1.17,.45,1.84,1.4,1.87,2.65,0,.28,0,.57,0,.85,0,12.62,0,25.24,0,37.86,0,.26,0,.52,0,.78,.02,.52,.27,.89,.76,1.09,.47,.19,.88,.04,1.24-.27,.12-.11,.24-.23,.35-.34,4.68-4.61,9.37-9.21,14.03-13.85,.86-.86,1.81-1.26,3.02-1.25,5.3,.03,10.6,.01,15.9,.01,.26,0,.52-.01,.77,.04,.89,.17,1.23,1.06,.68,1.78-.13,.17-.28,.31-.43,.47-11.71,12.1-23.41,24.21-35.13,36.3-.82,.85-1.22,1.77-1.21,2.96,.04,4.19,.02,8.38,.01,12.57,0,1.42-.81,2.5-2.1,2.83-.27,.07-.56,.08-.84,.08-3.7,0-7.4,.01-11.09,0-1.73,0-2.87-1.15-2.9-2.87,0-.24,0-.47,0-.71,0-25.85,0-51.7,0-77.56,0-.12,0-.24,0-.35,0-1.78,.55-2.55,2.22-3.17,.06-.02,.12-.07,.18-.11,4.05,0,8.11,0,12.16,0Z"/>
|
|
25
|
+
<path class="cls-2" d="M616.79,78.52c.02-.27,.04-.43,.05-.59,.07-1.54,1.05-2.6,2.58-2.78,.23-.03,.47-.02,.71-.03,3.39,0,6.79,0,10.18,0,.21,0,.43,0,.64,.02,1.5,.16,2.49,1.17,2.63,2.67,.02,.23,.01,.47,.01,.71,0,16.65,0,33.3,0,49.95,0,3.83-.33,7.62-1.38,11.32-.93,3.27-2.35,6.3-4.49,8.96-2.61,3.24-5.91,5.51-9.8,6.93-4.52,1.66-9.19,2.16-13.97,1.79-5.43-.42-10.42-2.25-15.14-4.88-2.8-1.57-5.43-3.4-7.93-5.41-1.52-1.23-1.62-3-.24-4.42,1.74-1.79,3.5-3.56,5.26-5.34,1.17-1.18,2.42-1.33,3.83-.45,3.04,1.92,6.26,3.47,9.68,4.57,1.95,.62,3.91,1.22,5.96,1.41,3.64,.33,6.55-.95,8.67-3.95,1.4-1.98,2.14-4.23,2.51-6.61,.15-.99,.22-2,.34-3.12-.3,.12-.48,.17-.64,.25-3.46,1.82-7.16,2.68-11.04,2.91-3.36,.2-6.68-.03-9.95-.87-4.23-1.08-7.91-3.11-10.92-6.31-2.51-2.67-4.25-5.8-5.4-9.26-1.65-4.96-2.09-10.07-1.73-15.26,.25-3.57,.96-7.04,2.31-10.36,1.78-4.4,4.48-8.1,8.39-10.85,2.78-1.96,5.87-3.2,9.19-3.83,4.74-.89,9.47-.77,14.13,.52,1.69,.47,3.3,1.12,4.84,1.95,.2,.11,.41,.21,.72,.36Zm-24.72,25.62c.14,1.19,.21,2.39,.43,3.57,.62,3.29,2.02,6.21,4.45,8.57,4.42,4.3,10.72,4.28,15.13-.03,1.12-1.1,2.05-2.34,2.75-3.74,2.24-4.45,2.6-9.09,1.2-13.85-.89-3.03-2.49-5.63-5-7.6-3.94-3.1-9.03-3.11-13-.06-1.09,.84-2.03,1.83-2.81,2.96-2.12,3.06-3.06,6.48-3.14,10.19Z"/>
|
|
26
|
+
<path class="cls-2" d="M375.11,78.9c.22-.09,.35-.13,.47-.19,2.92-1.46,6.03-2.25,9.25-2.66,2.06-.27,4.13-.34,6.2-.23,3.24,.17,6.41,.74,9.42,2,5.53,2.31,9.08,6.4,10.78,12.12,.67,2.24,.99,4.55,1.11,6.88,.1,1.88,.13,3.76,.13,5.65,.01,8.76,0,17.52,0,26.28,0,.35,0,.71-.07,1.05-.23,1.38-1.3,2.3-2.69,2.34-.12,0-.24,0-.35,0-3.96,0-7.92,0-11.87,0-.37,0-.76-.03-1.11-.14-1.13-.34-1.88-1.33-1.94-2.51-.01-.28,0-.57,0-.85,0-9.21,0-18.41,0-27.62,0-3.14-1.29-5.64-3.83-7.49-1.2-.88-2.55-1.41-4.03-1.58-1.77-.19-3.53-.2-5.24,.37-3.64,1.21-6.2,4.67-6.19,8.57,.03,9.25,0,18.51,0,27.76,0,.35,0,.71-.05,1.06-.22,1.45-1.29,2.4-2.76,2.43-.71,.02-1.41,0-2.12,0-3.23,0-6.45,0-9.68,0-1.4,0-2.5-.86-2.78-2.15-.08-.34-.07-.7-.07-1.05,0-5.51,0-11.02,0-16.53,0-11.09,0-22.18,0-33.27,0-.28,0-.57,0-.85,.08-1.21,.95-2.25,2.13-2.5,.32-.07,.65-.1,.98-.1,3.72,0,7.44,0,11.17,0,.26,0,.52,.02,.77,.07,1.32,.24,2.21,1.24,2.31,2.57,.01,.16,.03,.33,.05,.58Z"/>
|
|
27
|
+
<path class="cls-2" d="M530.62,78.9c.22-.09,.35-.13,.47-.19,2.92-1.46,6.03-2.25,9.25-2.66,2.06-.27,4.13-.34,6.2-.23,3.24,.17,6.41,.74,9.42,2,5.53,2.31,9.08,6.4,10.78,12.12,.67,2.24,.99,4.55,1.11,6.88,.1,1.88,.13,3.76,.13,5.65,.01,8.76,0,17.52,0,26.28,0,.35,0,.71-.07,1.05-.23,1.38-1.3,2.3-2.69,2.34-.12,0-.24,0-.35,0-3.96,0-7.92,0-11.87,0-.37,0-.76-.03-1.11-.14-1.13-.34-1.88-1.34-1.94-2.51-.01-.28,0-.57,0-.85,0-9.21,0-18.41,0-27.62,0-2.74-1.01-5.05-3.06-6.88-1.65-1.47-3.59-2.21-5.79-2.28-1.3-.04-2.59-.03-3.85,.33-3.86,1.1-6.61,4.68-6.59,8.7,.03,9.25,.01,18.51,0,27.76,0,.35,0,.71-.05,1.06-.22,1.45-1.29,2.4-2.76,2.43-.75,.02-1.51,0-2.26,0-3.18,0-6.36,0-9.54,0-1.4,0-2.5-.86-2.78-2.15-.08-.34-.07-.7-.07-1.05,0-5.6,0-11.21,0-16.81,0-11,0-21.99,0-32.99,0-.31,0-.61,.01-.92,.09-1.15,.94-2.15,2.06-2.42,.32-.08,.65-.11,.98-.11,3.77,0,7.54,0,11.31,0,.23,0,.47,.03,.7,.07,1.32,.24,2.21,1.24,2.31,2.57,.01,.16,.03,.33,.05,.58Z"/>
|
|
28
|
+
<path class="cls-2" d="M224.75,54.2c10.15,0,20.31,0,30.46,0,.33,0,.66,0,.99,.05,1.35,.2,2.25,1.1,2.44,2.45,.04,.25,.04,.52,.04,.77,0,3.46,0,6.92,0,10.38,0,.35-.02,.71-.09,1.05-.25,1.22-1.29,2.11-2.54,2.18-.26,.01-.52,0-.78,0-6.24,0-12.48,0-18.73,0-.4,0-.81,.02-1.19,.12-1.22,.3-2.05,1.35-2.11,2.6-.02,.35,0,.71,0,1.06,0,17.92,0,35.84,0,53.75,0,.38,0,.76-.06,1.13-.23,1.41-1.3,2.35-2.73,2.37-1.37,.02-2.73,0-4.1,0-2.26,0-4.53-.07-6.78,.02-1.91,.08-3.26-1.24-3.25-3.28,.04-18.11,.03-36.21,.02-54.32,0-.37,0-.76-.07-1.12-.26-1.33-1.31-2.24-2.66-2.33-.26-.02-.52,0-.78,0-6.24,0-12.49,0-18.73,0-.35,0-.71,0-1.05-.07-1.27-.28-2.14-1.37-2.15-2.71-.02-1.6,0-3.2,0-4.8,0-2.05,.06-4.1-.02-6.14-.07-1.74,1.1-3.21,3.22-3.18,3.11,.05,6.22,.01,9.33,.01,7.11,0,14.23,0,21.34,0Z"/>
|
|
29
|
+
<path class="cls-2" d="M331.68,103.92c0-8.31,0-16.62,0-24.93,0-.38,0-.76,.07-1.12,.28-1.28,1.36-2.13,2.77-2.18,.71-.03,1.41,0,2.12,0,2.87,0,5.75,0,8.62,0,.28,0,.57,0,.84,.04,1.35,.2,2.25,1.1,2.44,2.46,.04,.3,.04,.61,.04,.92,0,16.55,0,33.1,0,49.65,0,.35,0,.71-.07,1.05-.23,1.38-1.3,2.3-2.69,2.34-.71,.02-1.41,0-2.12,0-3.01,0-6.03,0-9.04,0-.76,0-1.45-.18-2.02-.68-.59-.52-.92-1.18-.96-1.97-.01-.28,0-.56,0-.85,0-8.24,0-16.48,0-24.72Z"/>
|
|
30
|
+
<path class="cls-2" d="M487.18,103.96c0-8.33,0-16.67,0-25,0-.35-.02-.72,.06-1.05,.28-1.15,1-1.9,2.18-2.14,.32-.07,.65-.08,.98-.09,3.49,0,6.97,0,10.46,0,.33,0,.66,.02,.98,.09,1.17,.26,1.9,.99,2.15,2.16,.08,.39,.09,.79,.09,1.19,0,16.53,0,33.05,0,49.58,0,.21,0,.42,0,.64-.09,1.69-1.23,2.79-2.92,2.8-3.34,.01-6.69,0-10.03,0-.4,0-.8,0-1.2,0-1.55-.05-2.7-1.19-2.74-2.75-.02-.68,0-1.37,0-2.05,0-7.79,0-15.58,0-23.38Z"/>
|
|
31
|
+
<path class="cls-2" d="M467.79,132.14c-2.64,0-5.28-.02-7.91,.01-.7,0-1.14-.24-1.5-.83-3.64-6.02-7.29-12.04-10.93-18.06-.45-.75-.41-1.15,.18-1.76,3.36-3.44,6.72-6.87,10.07-10.3,.33-.34,.69-.57,1.19-.46,.44,.09,.66,.42,.87,.77,.84,1.42,1.69,2.83,2.53,4.24,4.81,8.06,9.62,16.13,14.43,24.19,.11,.18,.23,.36,.32,.55,.39,.83-.07,1.6-.99,1.64-.68,.03-1.37,0-2.05,0-2.07,0-4.14,0-6.22,0Z"/>
|
|
32
|
+
<path class="cls-1" d="M340.14,54.32c1.88,0,3.77,0,5.65,0,.98,0,1.71,.44,2.26,1.22,.35,.51,.42,1.08,.42,1.68,0,2.54,0,5.09,0,7.63,0,1.11-.04,2.21,0,3.32,.06,1.43-.97,2.87-2.9,2.87-3.65,0-7.3,.01-10.95,0-1.71,0-2.88-1.19-2.88-2.91-.01-2.92,0-5.84,0-8.76,0-.68,.01-1.37,0-2.05-.04-1.87,1.28-3.08,2.97-3.02,1.81,.06,3.63,.01,5.44,.01h0Z"/>
|
|
33
|
+
<path class="cls-1" d="M495.64,54.32c1.88,0,3.77,0,5.65,0,.98,0,1.71,.44,2.26,1.22,.35,.51,.42,1.08,.42,1.68,0,2.54,0,5.09,0,7.63,0,1.11-.04,2.21,0,3.32,.06,1.43-.97,2.86-2.9,2.87-3.65,0-7.3,.01-10.95,0-1.71,0-2.88-1.19-2.88-2.91-.01-2.92,0-5.84,0-8.76,0-.68,.01-1.37,0-2.05-.04-1.87,1.28-3.08,2.97-3.02,1.81,.06,3.63,.01,5.44,.01h0Z"/>
|
|
34
|
+
</g>
|
|
35
|
+
<g>
|
|
36
|
+
<path class="cls-2" d="M688.47,115.07h-22.05c-1.08,0-2.03,.7-2.35,1.73l-4.15,13.3c-.38,1.22-1.51,2.05-2.79,2.05h-10.37c-2,0-3.41-1.96-2.77-3.85l24.73-73.33c.4-1.19,1.51-1.99,2.77-1.99h12.06c1.25,0,2.37,.8,2.77,1.99l24.63,73.33c.64,1.89-.77,3.85-2.77,3.85h-10.38c-1.27,0-2.4-.83-2.79-2.04l-4.2-13.31c-.32-1.02-1.27-1.72-2.34-1.72Zm-11.76-38.37l-7.6,24.08c-.29,.91,.39,1.85,1.35,1.85h14.02c.96,0,1.64-.93,1.35-1.84l-7.55-24.06c-.27-.8-1.33-.79-1.58-.02Z"/>
|
|
37
|
+
<path class="cls-2" d="M733.89,132.14h-10.02c-1.62,0-2.93-1.31-2.93-2.93V55.9c0-1.62,1.31-2.93,2.93-2.93h10.02c1.62,0,2.93,1.31,2.93,2.93v73.31c0,1.62-1.31,2.93-2.93,2.93Z"/>
|
|
38
|
+
</g>
|
|
39
|
+
</g>
|
|
40
|
+
</g>
|
|
41
|
+
</svg>
|