manifest
Version:
Self-hosted Manifest LLM router with embedded server, SQLite database, and dashboard
2 lines (1 loc) • 28.5 kB
JavaScript
import{e as v}from"./index-C4Qw7vZo.js";import{h as r,B as n,s as p,t as l}from"./vendor-C-Y5oNOq.js";function D(t="24h",i){return v("/overview",{range:t,...i?{agent_name:i}:{}})}function W(){return v("/health")}function N(){return v("/model-prices")}var w=l('<svg viewBox="0 0 24 24"fill=currentColor xmlns=http://www.w3.org/2000/svg aria-hidden=true><path d="M9.205 8.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357 1.356-.523 2.117-.523 2.854 0 4.662 2.212 4.662 4.566 0 .167 0 .357-.024.547l-4.71-2.759a.797.797 0 00-.856 0l-5.97 3.473zm10.609 8.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473 1.95-1.118a.433.433 0 01.476 0l4.543 2.617c1.309.76 2.189 2.378 2.189 3.948 0 1.808-1.07 3.473-2.76 4.163zM7.802 12.703l-1.95-1.142c-.167-.095-.239-.238-.239-.428V5.899c0-2.545 1.95-4.472 4.591-4.472 1 0 1.927.333 2.712.928L8.23 5.067c-.285.166-.428.404-.428.737v6.898zM12 15.128l-2.795-1.57v-3.33L12 8.658l2.795 1.57v3.33L12 15.128zm1.796 7.23c-1 0-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974 1.142c.167.095.238.238.238.428v5.233c0 2.545-1.974 4.472-4.614 4.472zm-5.637-5.303l-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.482 4.482 0 014.21 6.327v5.423c0 .333.143.571.428.738l5.947 3.449-1.95 1.118a.432.432 0 01-.476 0zm-.262 3.9c-2.688 0-4.662-2.021-4.662-4.519 0-.19.024-.38.047-.57l4.686 2.71c.286.167.571.167.856 0l5.97-3.448v2.26c0 .19-.07.333-.237.428l-4.543 2.616c-.619.357-1.356.523-2.117.523zm5.899 2.83a5.947 5.947 0 005.827-4.756C22.287 18.339 24 15.84 24 13.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498 0-3.401-2.759-5.947-5.946-5.947-.642 0-1.26.095-1.88.31A5.962 5.962 0 0010.205 0a5.947 5.947 0 00-5.827 4.757C1.713 5.447 0 7.945 0 10.49c0 1.666.713 3.283 1.998 4.448-.119.5-.19 1-.19 1.499 0 3.401 2.759 5.946 5.946 5.946.642 0 1.26-.095 1.88-.309a5.96 5.96 0 004.162 1.713z">'),k=l('<svg viewBox="0 0 24 24"fill=currentColor fill-rule=evenodd xmlns=http://www.w3.org/2000/svg aria-hidden=true><path d="M13.827 3.52h3.603L24 20h-3.603l-6.57-16.48zm-7.258 0h3.767L16.906 20h-3.674l-1.343-3.461H5.017l-1.344 3.46H0L6.57 3.522zm4.132 9.959L8.453 7.687 6.205 13.48H10.7z">'),x=l('<svg viewBox="0 0 24 24"fill=#4285f4 xmlns=http://www.w3.org/2000/svg aria-hidden=true><path d="M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z">'),P=l('<svg viewBox="0 0 24 24"fill=currentColor fill-rule=evenodd xmlns=http://www.w3.org/2000/svg aria-hidden=true><path d="M19.245 5.364c1.322 1.36 1.877 3.216 2.11 5.817.622 0 1.2.135 1.592.654l.73.964c.21.278.323.61.323.955v2.62c0 .339-.173.669-.453.868C20.239 19.602 16.157 21.5 12 21.5c-4.6 0-9.205-2.583-11.547-4.258-.28-.2-.452-.53-.453-.868v-2.62c0-.345.113-.679.321-.956l.73-.963c.392-.517.974-.654 1.593-.654l.029-.297c.25-2.446.81-4.213 2.082-5.52 2.461-2.54 5.71-2.851 7.146-2.864h.198c1.436.013 4.685.323 7.146 2.864zm-7.244 4.328c-.284 0-.613.016-.962.05-.123.447-.305.85-.57 1.108-1.05 1.023-2.316 1.18-2.994 1.18-.638 0-1.306-.13-1.851-.464-.516.165-1.012.403-1.044.996a65.882 65.882 0 00-.063 2.884l-.002.48c-.002.563-.005 1.126-.013 1.69.002.326.204.63.51.765 2.482 1.102 4.83 1.657 6.99 1.657 2.156 0 4.504-.555 6.985-1.657a.854.854 0 00.51-.766c.03-1.682.006-3.372-.076-5.053-.031-.596-.528-.83-1.046-.996-.546.333-1.212.464-1.85.464-.677 0-1.942-.157-2.993-1.18-.266-.258-.447-.661-.57-1.108-.32-.032-.64-.049-.96-.05zm-2.525 4.013c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zm5 0c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zM7.635 5.087c-1.05.102-1.935.438-2.385.906-.975 1.037-.765 3.668-.21 4.224.405.394 1.17.657 1.995.657h.09c.649-.013 1.785-.176 2.73-1.11.435-.41.705-1.433.675-2.47-.03-.834-.27-1.52-.63-1.813-.39-.336-1.275-.482-2.265-.394zm6.465.394c-.36.292-.6.98-.63 1.813-.03 1.037.24 2.06.675 2.47.968.957 2.136 1.104 2.776 1.11h.044c.825 0 1.59-.263 1.995-.657.555-.556.765-3.187-.21-4.224-.45-.468-1.335-.804-2.385-.906-.99-.088-1.875.058-2.265.394zM12 7.615c-.24 0-.525.015-.84.044.03.16.045.336.06.526l-.001.159a2.94 2.94 0 01-.014.25c.225-.022.425-.027.612-.028h.366c.187 0 .387.006.612.028-.015-.146-.015-.277-.015-.409.015-.19.03-.365.06-.526a9.29 9.29 0 00-.84-.044z">'),M=l('<svg viewBox="0 0 24 24"fill=#4D6BFE xmlns=http://www.w3.org/2000/svg aria-hidden=true><path d="M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526 5.526 0 01-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 00-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 01-.465.137 9.597 9.597 0 00-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.035-.237.23-.256a4.173 4.173 0 001.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 011.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306 0 01.415-.287.302.302 0 01.2.288.306.306 0 01-.31.307.303.303 0 01-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 01-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 01.016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 01-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z">'),y=l('<svg viewBox="0 0 24 24"xmlns=http://www.w3.org/2000/svg aria-hidden=true><path d="M3.428 3.4h3.429v3.428H3.428V3.4zm13.714 0h3.43v3.428h-3.43V3.4z"fill=#F7D046></path><path d="M3.428 6.828h6.857v3.429H3.429V6.828zm10.286 0h6.857v3.429h-6.857V6.828z"fill=#FFAF00></path><path d="M3.428 10.258h17.144v3.428H3.428v-3.428z"fill=#FF8205></path><path d="M3.428 13.686h3.429v3.428H3.428v-3.428zm6.858 0h3.429v3.428h-3.429v-3.428zm6.856 0h3.43v3.428h-3.43v-3.428z"fill=#FA500F></path><path d="M0 17.114h10.286v3.429H0v-3.429zm13.714 0H24v3.429H13.714v-3.429z"fill=#E10500>'),z=l('<svg viewBox="0 0 24 24"fill=currentColor fill-rule=evenodd xmlns=http://www.w3.org/2000/svg aria-hidden=true><path d="M9.27 15.29l7.978-5.897c.391-.29.95-.177 1.137.272.98 2.369.542 5.215-1.41 7.169-1.951 1.954-4.667 2.382-7.149 1.406l-2.711 1.257c3.889 2.661 8.611 2.003 11.562-.953 2.341-2.344 3.066-5.539 2.388-8.42l.006.007c-.983-4.232.242-5.924 2.75-9.383.06-.082.12-.164.179-.248l-3.301 3.305v-.01L9.267 15.292M7.623 16.723c-2.792-2.67-2.31-6.801.071-9.184 1.761-1.763 4.647-2.483 7.166-1.425l2.705-1.25a7.808 7.808 0 00-1.829-1A8.975 8.975 0 005.984 5.83c-2.533 2.536-3.33 6.436-1.962 9.764 1.022 2.487-.653 4.246-2.34 6.022-.599.63-1.199 1.259-1.682 1.925l7.62-6.815">'),L=l('<svg viewBox="0 0 24 24"fill=#FF6003 fill-rule=evenodd xmlns=http://www.w3.org/2000/svg aria-hidden=true><path d="M24 14.014c-2.8 1.512-5.62 2.896-8.759 3.524-.7.139-1.476.139-2.187.043-.678-.085-1.017-.682-.776-1.31.23-.585.536-1.181.93-1.671.852-1.065 1.814-2.034 2.678-3.088a15.75 15.75 0 001.422-2.054c.306-.511.164-1.129-.372-1.384-.897-.437-1.859-.745-2.81-1.075-.11-.043-.274.074-.492.149.273.244.47.425.743.67-2.821.48-5.49 1.16-8.08 2.098-.012.053-.033.095-.023.117.383.585.208 1.032-.35 1.394a2.365 2.365 0 00-.568.522c1.706.5 3.226.213 4.68-.735-.087-.127-.175-.244-.262-.372.546.096.874.394.918.862.011.107-.054.213-.087.32-.077-.086-.175-.17-.24-.267-.045-.064-.056-.138-.088-.245-1.728 1.15-3.587 1.438-5.632.842 0 .404-.022.745.011 1.075.022.287-.098.415-.36.564-.591.362-1.204.735-1.696 1.214-.59.585-.371 1.299.427 1.597.907.34 1.859.35 2.81.234 1.126-.139 2.23-.32 3.456-.49-1.433.67-2.844 1.14-4.33 1.33-1.04.14-2.078.214-3.106-.084-1.476-.415-2.133-1.501-1.75-2.96.361-1.363 1.236-2.449 2.176-3.45 3.139-3.332 7.108-5.024 11.7-5.365 1.072-.074 2.155.064 3.16.511 1.411.639 2.002 1.99 1.313 3.354-.448.905-1.072 1.735-1.695 2.555-.612.809-1.301 1.554-1.946 2.331-.186.234-.361.48-.503.745-.274.5-.088.83.492.778 1.213-.118 2.45-.213 3.62-.511 1.716-.437 3.389-1.054 5.084-1.597.175-.043.339-.107.492-.17z">'),C=l('<svg viewBox="0 0 24 24"fill=currentColor fill-rule=evenodd xmlns=http://www.w3.org/2000/svg aria-hidden=true><path d="M1.052 16.916l9.539 2.552a21.007 21.007 0 00.06 2.033l5.956 1.593a11.997 11.997 0 01-5.586.865l-.18-.016-.044-.004-.084-.009-.094-.01a11.605 11.605 0 01-.157-.02l-.107-.014-.11-.016a11.962 11.962 0 01-.32-.051l-.042-.008-.075-.013-.107-.02-.07-.015-.093-.019-.075-.016-.095-.02-.097-.023-.094-.022-.068-.017-.088-.022-.09-.024-.095-.025-.082-.023-.109-.03-.062-.02-.084-.025-.093-.028-.105-.034-.058-.019-.08-.026-.09-.031-.066-.024a6.293 6.293 0 01-.044-.015l-.068-.025-.101-.037-.057-.022-.08-.03-.087-.035-.088-.035-.079-.032-.095-.04-.063-.028-.063-.027a5.655 5.655 0 01-.041-.018l-.066-.03-.103-.047-.052-.024-.096-.046-.062-.03-.084-.04-.086-.044-.093-.047-.052-.027-.103-.055-.057-.03-.058-.032a6.49 6.49 0 01-.046-.026l-.094-.053-.06-.034-.051-.03-.072-.041-.082-.05-.093-.056-.052-.032-.084-.053-.061-.039-.079-.05-.07-.047-.053-.035a7.785 7.785 0 01-.054-.036l-.044-.03-.044-.03a6.066 6.066 0 01-.04-.028l-.057-.04-.076-.054-.069-.05-.074-.054-.056-.042-.076-.057-.076-.059-.086-.067-.045-.035-.064-.052-.074-.06-.089-.073-.046-.039-.046-.039a7.516 7.516 0 01-.043-.037l-.045-.04-.061-.053-.07-.062-.068-.06-.062-.058-.067-.062-.053-.05-.088-.084a13.28 13.28 0 01-.099-.097l-.029-.028-.041-.042-.069-.07-.05-.051-.05-.053a6.457 6.457 0 01-.168-.179l-.08-.088-.062-.07-.071-.08-.042-.049-.053-.062-.058-.068-.046-.056a7.175 7.175 0 01-.027-.033l-.045-.055-.066-.082-.041-.052-.05-.064-.02-.025a11.99 11.99 0 01-1.44-2.402zm-1.02-5.794l11.353 3.037a20.468 20.468 0 00-.469 2.011l10.817 2.894a12.076 12.076 0 01-1.845 2.005L.657 15.923l-.016-.046-.035-.104a11.965 11.965 0 01-.05-.153l-.007-.023a11.896 11.896 0 01-.207-.741l-.03-.126-.018-.08-.021-.097-.018-.081-.018-.09-.017-.084-.018-.094c-.026-.141-.05-.283-.071-.426l-.017-.118-.011-.083-.013-.102a12.01 12.01 0 01-.019-.161l-.005-.047a12.12 12.12 0 01-.034-2.145zm1.593-5.15l11.948 3.196c-.368.605-.705 1.231-1.01 1.875l11.295 3.022c-.142.82-.368 1.612-.668 2.365l-11.55-3.09L.124 10.26l.015-.1.008-.049.01-.067.015-.087.018-.098c.026-.148.056-.295.088-.442l.028-.124.02-.085.024-.097c.022-.09.045-.18.07-.268l.028-.102.023-.083.03-.1.025-.082.03-.096.026-.082.031-.095a11.896 11.896 0 011.01-2.232zm4.442-4.4L17.352 4.59a20.77 20.77 0 00-1.688 1.721l7.823 2.093c.267.852.442 1.744.513 2.665L2.106 5.213l.045-.065.027-.04.04-.055.046-.065.055-.076.054-.072.064-.086.05-.065.057-.073.055-.07.06-.074.055-.069.065-.077.054-.066.066-.077.053-.06.072-.082.053-.06.067-.074.054-.058.073-.078.058-.06.063-.067.168-.17.1-.098.059-.056.076-.071a12.084 12.084 0 012.272-1.677zM12.017 0h.097l.082.001.069.001.054.002.068.002.046.001.076.003.047.002.06.003.054.002.087.005.105.007.144.011.088.007.044.004.077.008.082.008.047.005.102.012.05.006.108.014.081.01.042.006.065.01.207.032.07.012.065.011.14.026.092.018.11.022.046.01.075.016.041.01L14.7.3l.042.01.065.015.049.012.071.017.096.024.112.03.113.03.113.032.05.015.07.02.078.024.073.023.05.016.05.016.076.025.099.033.102.036.048.017.064.023.093.034.11.041.116.045.1.04.047.02.06.024.041.018.063.026.04.018.057.025.11.048.1.046.074.035.075.036.06.028.092.046.091.045.102.052.053.028.049.026.046.024.06.033.041.022.052.029.088.05.106.06.087.051.057.034.053.032.096.059.088.055.098.062.036.024.064.041.084.056.04.027.062.042.062.043.023.017c.054.037.108.075.161.114l.083.06.065.048.056.043.086.065.082.064.04.03.05.041.086.069.079.065.085.071c.712.6 1.353 1.283 1.909 2.031L7.222.994l.062-.027.065-.028.081-.034.086-.035c.113-.045.227-.09.341-.131l.096-.035.093-.033.084-.03.096-.031c.087-.03.176-.058.264-.085l.091-.027.086-.025.102-.03.085-.023.1-.026L9.04.37l.09-.023.091-.022.095-.022.09-.02.098-.021.091-.02.095-.018.092-.018.1-.018.091-.016.098-.017.092-.014.097-.015.092-.013.102-.013.091-.012.105-.012.09-.01.105-.01c.093-.01.186-.018.28-.024l.106-.008.09-.005.11-.006.093-.004.1-.004.097-.002.099-.002.197-.002z">'),_=l('<svg viewBox="0 0 24 24"fill=#E73562 xmlns=http://www.w3.org/2000/svg aria-hidden=true><path d="M11.43 3.92a.86.86 0 1 0-1.718 0v14.236a1.999 1.999 0 0 1-3.997 0V9.022a.86.86 0 1 0-1.718 0v3.87a1.999 1.999 0 0 1-3.997 0V11.49a.57.57 0 0 1 1.139 0v1.404a.86.86 0 0 0 1.719 0V9.022a1.999 1.999 0 0 1 3.997 0v9.134a.86.86 0 0 0 1.719 0V3.92a1.998 1.998 0 1 1 3.996 0v11.788a.57.57 0 1 1-1.139 0zm10.572 3.105a2 2 0 0 0-1.999 1.997v7.63a.86.86 0 0 1-1.718 0V3.923a1.999 1.999 0 0 0-3.997 0v16.16a.86.86 0 0 1-1.719 0V18.08a.57.57 0 1 0-1.138 0v2a1.998 1.998 0 0 0 3.996 0V3.92a.86.86 0 0 1 1.719 0v12.73a1.999 1.999 0 0 0 3.996 0V9.023a.86.86 0 1 1 1.72 0v6.686a.57.57 0 0 0 1.138 0V9.022a2 2 0 0 0-1.998-1.997">'),O=l('<svg viewBox="0 0 24 24"fill=currentColor xmlns=http://www.w3.org/2000/svg aria-hidden=true><path d="M4.5 4.5h15v3.75H9.375L19.5 16.5v3H4.5v-3.75h10.125L4.5 7.5z">'),$=l('<svg viewBox="0 0 24 24"fill=#6366f1 xmlns=http://www.w3.org/2000/svg aria-hidden=true><path d="M16.778 1.844v1.919q-.569-.026-1.138-.032-.708-.008-1.415.037c-1.93.126-4.023.728-6.149 2.237-2.911 2.066-2.731 1.95-4.14 2.75-.396.223-1.342.574-2.185.798-.841.225-1.753.333-1.751.333v4.229s.768.108 1.61.333c.842.224 1.789.575 2.185.799 1.41.798 1.228.683 4.14 2.75 2.126 1.509 4.22 2.11 6.148 2.236.88.058 1.716.041 2.555.005v1.918l7.222-4.168-7.222-4.17v2.176c-.86.038-1.611.065-2.278.021-1.364-.09-2.417-.357-3.979-1.465-2.244-1.593-2.866-2.027-3.68-2.508.889-.518 1.449-.906 3.822-2.59 1.56-1.109 2.614-1.377 3.978-1.466.667-.044 1.418-.017 2.278.02v2.176L24 6.014Z">'),G=l('<svg viewBox="0 0 24 24"fill=currentColor fill-rule=evenodd xmlns=http://www.w3.org/2000/svg aria-hidden=true><path d="M7.905 1.09c.216.085.411.225.588.41.295.306.544.744.734 1.263.191.522.315 1.1.362 1.68a5.054 5.054 0 012.049-.636l.051-.004c.87-.07 1.73.087 2.48.474.101.053.2.11.297.17.05-.569.172-1.134.36-1.644.19-.52.439-.957.733-1.264a1.67 1.67 0 01.589-.41c.257-.1.53-.118.796-.042.401.114.745.368 1.016.737.248.337.434.769.561 1.287.23.934.27 2.163.115 3.645l.053.04.026.019c.757.576 1.284 1.397 1.563 2.35.435 1.487.216 3.155-.534 4.088l-.018.021.002.003c.417.762.67 1.567.724 2.4l.002.03c.064 1.065-.2 2.137-.814 3.19l-.007.01.01.024c.472 1.157.62 2.322.438 3.486l-.006.039a.651.651 0 01-.747.536.648.648 0 01-.54-.742c.167-1.033.01-2.069-.48-3.123a.643.643 0 01.04-.617l.004-.006c.604-.924.854-1.83.8-2.72-.046-.779-.325-1.544-.8-2.273a.644.644 0 01.18-.886l.009-.006c.243-.159.467-.565.58-1.12a4.229 4.229 0 00-.095-1.974c-.205-.7-.58-1.284-1.105-1.683-.595-.454-1.383-.673-2.38-.61a.653.653 0 01-.632-.371c-.314-.665-.772-1.141-1.343-1.436a3.288 3.288 0 00-1.772-.332c-1.245.099-2.343.801-2.67 1.686a.652.652 0 01-.61.425c-1.067.002-1.893.252-2.497.703-.522.39-.878.935-1.066 1.588a4.07 4.07 0 00-.068 1.886c.112.558.331 1.02.582 1.269l.008.007c.212.207.257.53.109.785-.36.622-.629 1.549-.673 2.44-.05 1.018.186 1.902.719 2.536l.016.019a.643.643 0 01.095.69c-.576 1.236-.753 2.252-.562 3.052a.652.652 0 01-1.269.298c-.243-1.018-.078-2.184.473-3.498l.014-.035-.008-.012a4.339 4.339 0 01-.598-1.309l-.005-.019a5.764 5.764 0 01-.177-1.785c.044-.91.278-1.842.622-2.59l.012-.026-.002-.002c-.293-.418-.51-.953-.63-1.545l-.005-.024a5.352 5.352 0 01.093-2.49c.262-.915.777-1.701 1.536-2.269.06-.045.123-.09.186-.132-.159-1.493-.119-2.73.112-3.67.127-.518.314-.95.562-1.287.27-.368.614-.622 1.015-.737.266-.076.54-.059.797.042zm4.116 9.09c.936 0 1.8.313 2.446.855.63.527 1.005 1.235 1.005 1.94 0 .888-.406 1.58-1.133 2.022-.62.375-1.451.557-2.403.557-1.009 0-1.871-.259-2.493-.734-.617-.47-.963-1.13-.963-1.845 0-.707.398-1.417 1.056-1.946.668-.537 1.55-.849 2.485-.849zm0 .896a3.07 3.07 0 00-1.916.65c-.461.37-.722.835-.722 1.25 0 .428.21.829.61 1.134.455.347 1.124.548 1.943.548.799 0 1.473-.147 1.932-.426.463-.28.7-.686.7-1.257 0-.423-.246-.89-.683-1.256-.484-.405-1.14-.643-1.864-.643zm.662 1.21l.004.004c.12.151.095.37-.056.49l-.292.23v.446a.375.375 0 01-.376.373.375.375 0 01-.376-.373v-.46l-.271-.218a.347.347 0 01-.052-.49.353.353 0 01.494-.051l.215.172.22-.174a.353.353 0 01.49.051zm-5.04-1.919c.478 0 .867.39.867.871a.87.87 0 01-.868.871.87.87 0 01-.867-.87.87.87 0 01.867-.872zm8.706 0c.48 0 .868.39.868.871a.87.87 0 01-.868.871.87.87 0 01-.867-.87.87.87 0 01.867-.872zM7.44 2.3l-.003.002a.659.659 0 00-.285.238l-.005.006c-.138.189-.258.467-.348.832-.17.692-.216 1.631-.124 2.782.43-.128.899-.208 1.404-.237l.01-.001.019-.034c.046-.082.095-.161.148-.239.123-.771.022-1.692-.253-2.444-.134-.364-.297-.65-.453-.813a.628.628 0 00-.107-.09L7.44 2.3zm9.174.04l-.002.001a.628.628 0 00-.107.09c-.156.163-.32.45-.453.814-.29.794-.387 1.776-.23 2.572l.058.097.008.014h.03a5.184 5.184 0 011.466.212c.086-1.124.038-2.043-.128-2.722-.09-.365-.21-.643-.349-.832l-.004-.006a.659.659 0 00-.285-.239h-.004z">'),A=l("<img style=display:block;object-fit:contain>");function U(t,i=20){const o={width:`${i}px`,height:`${i}px`};switch(t){case"openai":return(()=>{var e=w();return r(a=>n(e,o,a)),e})();case"anthropic":return(()=>{var e=k();return r(a=>n(e,o,a)),e})();case"gemini":return(()=>{var e=x();return r(a=>n(e,o,a)),e})();case"copilot":return(()=>{var e=P();return r(a=>n(e,o,a)),e})();case"deepseek":return(()=>{var e=M();return r(a=>n(e,o,a)),e})();case"mistral":return(()=>{var e=y();return r(a=>n(e,o,a)),e})();case"xai":return(()=>{var e=z();return r(a=>n(e,o,a)),e})();case"qwen":return(()=>{var e=L();return r(a=>n(e,o,a)),e})();case"moonshot":return(()=>{var e=C();return r(a=>n(e,o,a)),e})();case"minimax":return(()=>{var e=_();return r(a=>n(e,o,a)),e})();case"zai":return(()=>{var e=O();return r(a=>n(e,o,a)),e})();case"openrouter":return(()=>{var e=$();return r(a=>n(e,o,a)),e})();case"ollama":return(()=>{var e=G();return r(a=>n(e,o,a)),e})();default:return null}}const h={cohere:"/icons/cohere.svg",gemini:"/icons/gemini.svg",nvidia:"/icons/nvidia.svg",qwen:"/icons/qwen.svg","kilo code":"/icons/kilocode.jpg",kilocode:"/icons/kilocode.jpg"},T=[[/cohere\.ai/i,"cohere"],[/generativelanguage\.googleapis\.com/i,"gemini"],[/kilo\.ai/i,"kilo code"]],S=[[/gemini/i,"gemini"],[/^qwen\//i,"qwen"],[/^nvidia\//i,"nvidia"],[/^stepfun\//i,"stepfun"],[/^corethink/i,"corethink"]];function I(t,i,o){if(o){for(const[a,s]of S)if(a.test(o)){const u=h[s];if(u)return u;break}}const e=h[t.toLowerCase()];if(e)return e;if(i){for(const[a,s]of T)if(a.test(i))return h[s]??null}return null}function Q(t,i=16,o,e){const a=I(t,o,e);return a?(()=>{var s=A();return p(s,"src",a),p(s,"alt",t),p(s,"width",i),p(s,"height",i),s})():null}const d=[{id:"qwen",name:"Alibaba",color:"#FF6003",initial:"Al",subtitle:"Qwen3, Qwen2.5, QwQ",keyPrefix:"sk-",minKeyLength:30,keyPlaceholder:"sk-...",models:[]},{id:"anthropic",name:"Anthropic",color:"#d97757",initial:"A",subtitle:"Claude Opus 4, Sonnet 4.5, Haiku",keyPrefix:"sk-ant-",minKeyLength:50,keyPlaceholder:"sk-ant-...",supportsSubscription:!0,subscriptionLabel:"Claude Max / Pro subscription",subscriptionAuthMode:"token",subscriptionKeyPlaceholder:"Paste your setup-token",subscriptionCommand:"claude setup-token",models:[]},{id:"deepseek",name:"DeepSeek",color:"#4d6bfe",initial:"D",subtitle:"DeepSeek V3, R1",keyPrefix:"sk-",minKeyLength:30,keyPlaceholder:"sk-...",models:[]},{id:"copilot",name:"GitHub Copilot",color:"#000000",initial:"GH",subtitle:"Claude, GPT, Gemini via Copilot",keyPrefix:"",minKeyLength:0,keyPlaceholder:"",supportsSubscription:!0,subscriptionLabel:"GitHub Copilot subscription",subscriptionAuthMode:"device_code",deviceLogin:!0,subscriptionOnly:!0,models:[{label:"Claude Opus 4.6",value:"copilot/claude-opus-4.6"},{label:"Claude Sonnet 4.6",value:"copilot/claude-sonnet-4.6"},{label:"Claude Haiku 4.5",value:"copilot/claude-haiku-4.5"},{label:"GPT-5.4",value:"copilot/gpt-5.4"},{label:"GPT-5.2 Codex",value:"copilot/gpt-5.2-codex"},{label:"GPT-5 Mini",value:"copilot/gpt-5-mini"},{label:"GPT-4.1",value:"copilot/gpt-4.1"},{label:"GPT-4o",value:"copilot/gpt-4o"},{label:"GPT-4o Mini",value:"copilot/gpt-4o-mini"},{label:"Gemini 3.1 Pro",value:"copilot/gemini-3.1-pro-preview"},{label:"Grok Code Fast 1",value:"copilot/grok-code-fast-1"}]},{id:"gemini",name:"Google",color:"#4285f4",initial:"G",subtitle:"Gemini 2.5, Gemini 2.0 Flash",keyPrefix:"AIza",minKeyLength:39,keyPlaceholder:"AIza...",models:[]},{id:"minimax",name:"MiniMax",color:"#E73562",initial:"Mm",subtitle:"MiniMax M2.5, M1, M2",keyPrefix:"sk-",minKeyLength:30,keyPlaceholder:"sk-...",supportsSubscription:!0,subscriptionLabel:"MiniMax Coding Plan",subscriptionAuthMode:"device_code",models:[]},{id:"mistral",name:"Mistral",color:"#f97316",initial:"M",subtitle:"Mistral Large, Codestral, Pixtral",keyPrefix:"",minKeyLength:32,keyPlaceholder:"API key",models:[]},{id:"moonshot",name:"Moonshot",color:"#1a1a2e",initial:"Mo",subtitle:"Kimi k2, Moonshot v1",keyPrefix:"sk-",minKeyLength:30,keyPlaceholder:"sk-...",models:[]},{id:"ollama",name:"Ollama",color:"#1a1a1a",initial:"Ol",subtitle:"Llama, Mistral, Gemma, and more",keyPrefix:"",minKeyLength:0,keyPlaceholder:"",noKeyRequired:!0,models:[],localOnly:!0},{id:"openai",name:"OpenAI",color:"#10a37f",initial:"O",subtitle:"GPT-4o, GPT-4.1, o3, o4",keyPrefix:"sk-",minKeyLength:50,keyPlaceholder:"sk-...",supportsSubscription:!0,subscriptionLabel:"ChatGPT Plus/Pro/Team",subscriptionAuthMode:"popup_oauth",models:[{label:"GPT-4o",value:"gpt-4o"},{label:"GPT-4o Mini",value:"gpt-4o-mini"},{label:"GPT-4o (2024-11-20)",value:"gpt-4o-2024-11-20"},{label:"GPT-4.1",value:"gpt-4.1"},{label:"GPT-4.1 Mini",value:"gpt-4.1-mini"},{label:"GPT-4.1 Nano",value:"gpt-4.1-nano"},{label:"GPT-4 Turbo",value:"gpt-4-turbo"},{label:"GPT-4 Turbo (2024-04-09)",value:"gpt-4-turbo-2024-04-09"},{label:"GPT-3.5 Turbo",value:"gpt-3.5-turbo"},{label:"o3",value:"o3"},{label:"o3 Mini",value:"o3-mini"},{label:"o4 Mini",value:"o4-mini"},{label:"o1",value:"o1"},{label:"o1 Mini",value:"o1-mini"},{label:"o1 Preview",value:"o1-preview"}]},{id:"openrouter",name:"OpenRouter",color:"#6366f1",initial:"OR",subtitle:"Auto-route to 300+ models",keyPrefix:"sk-or-",minKeyLength:60,keyPlaceholder:"sk-or-...",models:[]},{id:"xai",name:"xAI",color:"#555555",initial:"X",subtitle:"Grok 3, Grok 2",keyPrefix:"xai-",minKeyLength:50,keyPlaceholder:"xai-...",models:[]},{id:"zai",name:"Z.ai",color:"#2d2d2d",initial:"Z",subtitle:"GLM 5, GLM 4.7, GLM 4.5",keyPrefix:"",minKeyLength:30,keyPlaceholder:"API key",models:[]}],X=[{id:"simple",step:1,label:"Simple",desc:"Heartbeats, greetings, and low-cost tasks that any model can handle."},{id:"standard",step:2,label:"Standard",desc:"General-purpose requests that need a good balance of quality and cost."},{id:"complex",step:3,label:"Complex",desc:"Tasks requiring high quality, nuance, or multi-step reasoning."},{id:"reasoning",step:4,label:"Reasoning",desc:"Advanced reasoning, planning, and critical decision-making."}];function K(t){return d.find(i=>i.id===t)}function Z(t,i){if(t.noKeyRequired)return{valid:!0};const o=i.replace(/\s/g,"");return o?t.keyPrefix&&!o.startsWith(t.keyPrefix)?{valid:!1,error:`${t.name} keys start with "${t.keyPrefix}"`}:t.minKeyLength&&o.length<t.minKeyLength?{valid:!1,error:`Key is too short (minimum ${t.minKeyLength} characters)`}:{valid:!0}:{valid:!1,error:"API key is required"}}const R={anthropic:"sk-ant-oat"},E={openai:"sk-"};function J(t,i){const o=i.replace(/\s/g,"");if(!o)return{valid:!1,error:"Token is required"};if(o.length<10)return{valid:!1,error:"Token is too short (minimum 10 characters)"};const e=R[t.id];if(e&&!o.startsWith(e))return{valid:!1,error:`${t.name} subscription tokens start with "${e}"`};const a=E[t.id];return a&&o.startsWith(a)?{valid:!1,error:"This looks like an API key. Use the API Key tab instead."}:{valid:!0}}function g(t){return t.replace(/-/g," ").replace(/\b\w/g,i=>i.toUpperCase())}function Y(t,i){const o=K(t);if(!o)return i;const e=o.models.find(c=>c.value===i);if(e)return e.label;const a=i.replace(/-\d{8}$/,"");if(a!==i){const c=o.models.find(m=>m.value===a);if(c)return c.label}const s=o.models.find(c=>i.startsWith(c.value+"-"));if(s)return s.label;const u=i.indexOf("/");if(u!==-1){const c=i.substring(u+1);for(const m of d){const f=m.models.find(b=>b.value===c);if(f)return f.label}return g(c)}return g(i)}const F=[[/^openrouter\//,"openrouter"],[/^claude-/,"anthropic"],[/^gpt-|^o[134]-|^o[134] |^chatgpt-/,"openai"],[/^gemini-|^gemma-/,"gemini"],[/^deepseek-/,"deepseek"],[/^grok-/,"xai"],[/^mistral-|^codestral|^pixtral|^open-mistral/,"mistral"],[/^kimi-|^moonshot-/,"moonshot"],[/^minimax-/i,"minimax"],[/^glm-/,"zai"],[/^qwen[23]|^qwq-/,"qwen"],[/^copilot\//,"copilot"],[/^[a-z][\w-]*\//,"openrouter"]];function B(t){if(t.startsWith("custom:"))return"custom";if(!t.includes("/")&&/:/.test(t)&&!t.endsWith(":free"))return"ollama";const i=t.toLowerCase();for(const[o,e]of F)if(o.test(i))return e}const q=Object.freeze({anthropic:Object.freeze({supportsSubscription:!0,subscriptionLabel:"Claude Max / Pro subscription",subscriptionAuthMode:"token",subscriptionKeyPlaceholder:"Paste your setup-token",subscriptionCommand:"claude setup-token",subscriptionTokenPrefix:"sk-ant-oat",knownModels:Object.freeze(["claude-opus-4","claude-sonnet-4","claude-haiku-4"]),subscriptionCapabilities:Object.freeze({maxContextWindow:2e5,supportsPromptCaching:!1,supportsBatching:!1})}),openai:Object.freeze({supportsSubscription:!0,subscriptionLabel:"ChatGPT Plus/Pro/Team",subscriptionAuthMode:"popup_oauth",subscriptionOAuth:!0,knownModels:Object.freeze(["gpt-5.4","gpt-5.3-codex","gpt-5.2-codex","gpt-5.2","gpt-5.1-codex-max","gpt-5.1-codex"]),subscriptionCapabilities:Object.freeze({maxContextWindow:2e5,supportsPromptCaching:!1,supportsBatching:!1})}),minimax:Object.freeze({supportsSubscription:!0,subscriptionLabel:"MiniMax Coding Plan",subscriptionAuthMode:"device_code",knownModels:Object.freeze(["MiniMax-M2.5","MiniMax-M2.5-highspeed","MiniMax-M2.1","MiniMax-M2.1-highspeed","MiniMax-M2"]),subscriptionCapabilities:Object.freeze({maxContextWindow:2e5,supportsPromptCaching:!1,supportsBatching:!1})}),copilot:Object.freeze({supportsSubscription:!0,subscriptionLabel:"GitHub Copilot subscription",subscriptionAuthMode:"device_code",knownModels:Object.freeze(["copilot/claude-opus-4.6","copilot/claude-sonnet-4.6","copilot/claude-haiku-4.5","copilot/gpt-5.4","copilot/gpt-5.2-codex","copilot/gpt-5-mini","copilot/gpt-4.1","copilot/gpt-4o","copilot/gpt-4o-mini","copilot/gemini-3.1-pro-preview","copilot/grok-code-fast-1"]),subscriptionCapabilities:Object.freeze({maxContextWindow:2e5,supportsPromptCaching:!1,supportsBatching:!1})})});Object.freeze(Object.keys(q));function e0(t){if(t==null)return"—";const i=Number(t)*1e6;return i===0?"Free":i<.01?"< $0.01":i<1?`$${i.toFixed(3)}`:`$${i.toFixed(2)}`}const H={google:"gemini",alibaba:"qwen",copilot:"copilot",moonshot:"moonshot",kimi:"moonshot",meta:"meta",cohere:"cohere",ollama:"ollama",openrouter:"openrouter"};function t0(t){if(t.startsWith("custom:"))return t;const i=t.toLowerCase(),o=H[i];return d.find(e=>e.id===i||e.id===o||e.name.toLowerCase()===i)?.id}function i0(t){const i=B(t);if(i)return d.find(o=>o.id===i)?.name}function o0(t){return t.match(/^custom:[^/]+\/(.+)$/)?.[1]??t}export{d as P,X as S,i0 as a,e0 as b,Q as c,Z as d,N as e,W as f,D as g,Y as h,B as i,U as p,t0 as r,o0 as s,J as v};