@hsupu/copilot-api 0.8.0 → 0.8.1-beta.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.
Files changed (61) hide show
  1. package/README.md +172 -110
  2. package/README.zh.md +39 -0
  3. package/config.example.yaml +341 -0
  4. package/dist/dist-B3gFwWti.mjs +428 -0
  5. package/dist/dist-B3gFwWti.mjs.map +1 -0
  6. package/dist/main.mjs +11129 -0
  7. package/dist/main.mjs.map +1 -0
  8. package/package.json +65 -27
  9. package/ui/history-v3/dist/assets/BaseSelect-CttLMFCN.js +1 -0
  10. package/ui/history-v3/dist/assets/BaseSelect-N-W6HPTu.css +1 -0
  11. package/ui/history-v3/dist/assets/DashboardPage-BYXNxjXb.css +1 -0
  12. package/ui/history-v3/dist/assets/DashboardPage-CgXivoWS.js +1 -0
  13. package/ui/history-v3/dist/assets/DetailPanel-CGpPxDDa.css +1 -0
  14. package/ui/history-v3/dist/assets/DetailPanel-EOQma5fZ.js +3 -0
  15. package/ui/history-v3/dist/assets/HistoryPage-PA0Yh3n3.css +1 -0
  16. package/ui/history-v3/dist/assets/HistoryPage-rhEb_UZG.js +1 -0
  17. package/ui/history-v3/dist/assets/LogsPage-BuPou1cg.css +1 -0
  18. package/ui/history-v3/dist/assets/LogsPage-CNXQuqMj.js +1 -0
  19. package/ui/history-v3/dist/assets/ModelsPage-Bpi7Y9GS.js +1 -0
  20. package/ui/history-v3/dist/assets/ModelsPage-F2KTxq2i.css +1 -0
  21. package/ui/history-v3/dist/assets/ProgressBar-6xzx-ZSc.js +1 -0
  22. package/ui/history-v3/dist/assets/ProgressBar-CtfiTXLy.css +1 -0
  23. package/ui/history-v3/dist/assets/UsagePage-COyq-DOU.css +1 -0
  24. package/ui/history-v3/dist/assets/UsagePage-CZfgTYCP.js +1 -0
  25. package/ui/history-v3/dist/assets/VChip-9UyCCNyg.js +1 -0
  26. package/ui/history-v3/dist/assets/VChip-B_fbAfwz.css +1 -0
  27. package/ui/history-v3/dist/assets/VDashboardPage-DXtj4agW.js +1 -0
  28. package/ui/history-v3/dist/assets/VDashboardPage-axfQtTiR.css +1 -0
  29. package/ui/history-v3/dist/assets/VDivider-D8zdArq0.js +1 -0
  30. package/ui/history-v3/dist/assets/VDivider-DITF6qCr.css +1 -0
  31. package/ui/history-v3/dist/assets/VHistoryPage-Dj0qUmWz.js +1 -0
  32. package/ui/history-v3/dist/assets/VHistoryPage-DqpLWYXo.css +1 -0
  33. package/ui/history-v3/dist/assets/VList-Bf0AJT_N.css +1 -0
  34. package/ui/history-v3/dist/assets/VList-Ct6gdZ-F.js +1 -0
  35. package/ui/history-v3/dist/assets/VLogsPage-BOA_17HS.js +1 -0
  36. package/ui/history-v3/dist/assets/VLogsPage-Dr3my9y3.css +1 -0
  37. package/ui/history-v3/dist/assets/VModelsPage-Bkon7sFs.css +1 -0
  38. package/ui/history-v3/dist/assets/VModelsPage-D-IbiiwR.js +1 -0
  39. package/ui/history-v3/dist/assets/VSpacer-DfbUir7X.css +1 -0
  40. package/ui/history-v3/dist/assets/VSpacer-F4vloCsf.js +1 -0
  41. package/ui/history-v3/dist/assets/VTable-B4qROCQu.js +1 -0
  42. package/ui/history-v3/dist/assets/VTable-BTui1tPX.css +1 -0
  43. package/ui/history-v3/dist/assets/VTooltip-9iBP-JhF.js +1 -0
  44. package/ui/history-v3/dist/assets/VTooltip-C1DKovoh.css +1 -0
  45. package/ui/history-v3/dist/assets/VUsagePage-B8WkBKET.js +1 -0
  46. package/ui/history-v3/dist/assets/VUsagePage-Se7R-H-Y.css +1 -0
  47. package/ui/history-v3/dist/assets/index-B8CP-fZd.css +1 -0
  48. package/ui/history-v3/dist/assets/index-cupXJxSz.js +18 -0
  49. package/ui/history-v3/dist/assets/materialdesignicons-webfont-B7mPwVP_.ttf +0 -0
  50. package/ui/history-v3/dist/assets/materialdesignicons-webfont-CSr8KVlo.eot +0 -0
  51. package/ui/history-v3/dist/assets/materialdesignicons-webfont-Dp5v-WZN.woff2 +0 -0
  52. package/ui/history-v3/dist/assets/materialdesignicons-webfont-PXm3-2wK.woff +0 -0
  53. package/ui/history-v3/dist/assets/useFormatters-BBIZmSf2.js +1 -0
  54. package/ui/history-v3/dist/assets/useInjectedHistoryStore-Dx7UlhLw.js +1 -0
  55. package/ui/history-v3/dist/assets/useLogs-Bz9naVOB.js +1 -0
  56. package/ui/history-v3/dist/assets/usePolling-CRd-nhvF.js +1 -0
  57. package/ui/history-v3/dist/assets/vendor-CmGvxZwr.js +125 -0
  58. package/ui/history-v3/dist/assets/vue-Bmo88J5t.js +1 -0
  59. package/ui/history-v3/dist/index.html +14 -0
  60. package/dist/main.js +0 -4571
  61. package/dist/main.js.map +0 -1
@@ -0,0 +1,18 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/HistoryPage-rhEb_UZG.js","assets/DetailPanel-EOQma5fZ.js","assets/vue-Bmo88J5t.js","assets/BaseSelect-CttLMFCN.js","assets/vendor-CmGvxZwr.js","assets/BaseSelect-N-W6HPTu.css","assets/useInjectedHistoryStore-Dx7UlhLw.js","assets/useFormatters-BBIZmSf2.js","assets/DetailPanel-CGpPxDDa.css","assets/HistoryPage-PA0Yh3n3.css","assets/LogsPage-CNXQuqMj.js","assets/useLogs-Bz9naVOB.js","assets/LogsPage-BuPou1cg.css","assets/DashboardPage-CgXivoWS.js","assets/ProgressBar-6xzx-ZSc.js","assets/ProgressBar-CtfiTXLy.css","assets/usePolling-CRd-nhvF.js","assets/DashboardPage-BYXNxjXb.css","assets/ModelsPage-Bpi7Y9GS.js","assets/ModelsPage-F2KTxq2i.css","assets/UsagePage-CZfgTYCP.js","assets/UsagePage-COyq-DOU.css","assets/VHistoryPage-Dj0qUmWz.js","assets/VChip-9UyCCNyg.js","assets/VSpacer-F4vloCsf.js","assets/VSpacer-DfbUir7X.css","assets/VChip-B_fbAfwz.css","assets/VTooltip-9iBP-JhF.js","assets/VDivider-D8zdArq0.js","assets/VDivider-DITF6qCr.css","assets/VList-Ct6gdZ-F.js","assets/VList-Bf0AJT_N.css","assets/VTooltip-C1DKovoh.css","assets/VHistoryPage-DqpLWYXo.css","assets/VLogsPage-BOA_17HS.js","assets/VTable-B4qROCQu.js","assets/VTable-BTui1tPX.css","assets/VLogsPage-Dr3my9y3.css","assets/VDashboardPage-DXtj4agW.js","assets/VDashboardPage-axfQtTiR.css","assets/VModelsPage-D-IbiiwR.js","assets/VModelsPage-Bkon7sFs.css","assets/VUsagePage-B8WkBKET.js","assets/VUsagePage-Se7R-H-Y.css"])))=>i.map(i=>d[i]);
2
+ import{d as be,g as ae,h as Ze,i as ce,o as G,j as L,F as _e,k as Ht,c as O,l as he,u as q,t as Te,m as N,f as b,p as Wt,q as Bt,s as qe,e as lt,r as w,T as En,v as xn,w as $e,x as C,b as U,y as R,z as Cn,A as Tn,B as An,C as Mn,D as In,E as ue,G as Yt,a as ne,H as jt,I as Xe,J as On,K as Pn,L as Fn,M as Qe,N as Ue,O as _n,P as $n,Q as Ln,R as Rn,S as Nn,U as Vn,V as Hn,n as Wn,W as Bn,X as Yn,Y as jn}from"./vue-Bmo88J5t.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const a of s)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const a={};return s.integrity&&(a.integrity=s.integrity),s.referrerPolicy&&(a.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?a.credentials="include":s.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(s){if(s.ep)return;s.ep=!0;const a=n(s);fetch(s.href,a)}})();const Un=be({__name:"StatusDot",props:{status:{},size:{default:8}},setup(e){return(t,n)=>(G(),ae("span",{class:ce(["status-dot","status-"+e.status]),style:Ze({width:e.size+"px",height:e.size+"px"})},null,6))}}),Le=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n},zn=Le(Un,[["__scopeId","data-v-3f3b5f04"]]);function Je(e){return e.startsWith("/v/")}function Gn(e){return e==="/"?"/v/dashboard":Je(e)?e.replace("/v/","/"):`/v${e}`}const Kn={class:"navbar"},Zn={class:"navbar-center"},qn={class:"navbar-right"},Xn={class:"ws-label"},Qn=be({__name:"NavBar",setup(e){const t=N("historyStore");if(!t)throw new Error("historyStore injection missing");const n=Bt(),r=b(()=>Je(n.path)),s=[{to:"/v/history",label:"History"},{to:"/v/logs",label:"Logs"},{to:"/v/dashboard",label:"Dashboard"},{to:"/v/models",label:"Models"},{to:"/v/usage",label:"Usage"}],a=[{to:"/history",label:"History"},{to:"/logs",label:"Logs"},{to:"/dashboard",label:"Dashboard"},{to:"/models",label:"Models"},{to:"/usage",label:"Usage"}],o=b(()=>r.value?s:a),i=b(()=>Gn(n.path)),u=b(()=>r.value?"Legacy":"Vuetify");function c(l){return n.path===l}return(l,f)=>{const m=Wt("router-link");return G(),ae("nav",Kn,[f[0]||(f[0]=L("div",{class:"navbar-left"},[L("span",{class:"navbar-brand"},"copilot-api")],-1)),L("div",Zn,[(G(!0),ae(_e,null,Ht(o.value,v=>(G(),qe(m,{key:v.to,to:v.to,class:ce(["nav-link",{active:c(v.to)}])},{default:he(()=>[lt(Te(v.label),1)]),_:2},1032,["to","class"]))),128))]),L("div",qn,[O(m,{to:i.value,class:"switch-link"},{default:he(()=>[lt(Te(u.value),1)]),_:1},8,["to"]),O(zn,{status:q(t).wsConnected.value?"success":"error",size:6},null,8,["status"]),L("span",Xn,Te(q(t).wsConnected.value?"Live":"Offline"),1)])])}}}),ft=Le(Qn,[["__scopeId","data-v-21776911"]]);let Jn=0;const ke=w([]);function Ut(){function e(t,n="info",r=3e3){const s=Jn++;ke.value.push({id:s,text:t,type:n}),setTimeout(()=>{ke.value=ke.value.filter(a=>a.id!==s)},r)}return{messages:ke,show:e}}const er={class:"toast-container"},tr=be({__name:"BaseToast",setup(e){const{messages:t}=Ut();return(n,r)=>(G(),qe(xn,{to:"body"},[L("div",er,[O(En,{name:"slide-up"},{default:he(()=>[(G(!0),ae(_e,null,Ht(q(t),s=>(G(),ae("div",{key:s.id,class:ce(["toast-item","toast-"+s.type])},Te(s.text),3))),128))]),_:1})])]))}}),nr=Le(tr,[["__scopeId","data-v-40f42fcd"]]),zt="/history/api";class Gt extends Error{constructor(t,n){super(n),this.status=t,this.name="ApiError"}}async function Z(e,t){const n=await fetch(zt+e,{headers:{"Content-Type":"application/json"},...t});if(!n.ok){const r=await n.text().catch(()=>"Unknown error");throw new Gt(n.status,`${n.status}: ${r}`)}return n.json()}async function We(e,t){const n=await fetch(e,{headers:{"Content-Type":"application/json"},...t});if(!n.ok){const r=await n.text().catch(()=>"Unknown error");throw new Gt(n.status,`${n.status}: ${r}`)}return n.json()}const fe={async fetchEntries(e={}){const t=new URLSearchParams;e.cursor&&t.set("cursor",e.cursor),e.limit&&t.set("limit",String(e.limit)),e.direction&&t.set("direction",e.direction),e.model&&t.set("model",e.model),e.endpoint&&t.set("endpoint",e.endpoint),e.success!==void 0&&t.set("success",String(e.success)),e.from&&t.set("from",String(e.from)),e.to&&t.set("to",String(e.to)),e.search&&t.set("search",e.search),e.sessionId&&t.set("sessionId",e.sessionId);const n=t.toString();return Z("/entries"+(n?"?"+n:""))},async fetchEntry(e){return Z("/entries/"+e)},async deleteEntries(){await Z("/entries",{method:"DELETE"})},async fetchSessions(){return Z("/sessions")},async fetchSession(e){return Z("/sessions/"+e)},async deleteSession(e){await Z("/sessions/"+e,{method:"DELETE"})},async fetchStats(){return Z("/stats")},getExportUrl(e){return zt+"/export?format="+e},async fetchStatus(){return We("/api/status")},async fetchConfig(){return We("/api/config")},async fetchLogs(e=100){return Z(`/entries?limit=${String(e)}`)},async fetchModels(e=!1){return We("/models"+(e?"?detail=true":""))}};function rr(e){const t=w([]),n=w(null),r=w([]),s=w(null),a=w(""),o=w(null),i=w(null),u=w(null),c=w(null),l=w(null),f=w(0),m=w(!1),v=w(!1),g=w(null),S=20,T=b(()=>n.value!==null),d=b(()=>n.value?t.value.findIndex(D=>D.id===n.value?.id):-1);async function h(D,F){v.value=!0,g.value=null;try{const A=await fe.fetchEntries({cursor:D,direction:F,limit:S,endpoint:o.value,success:i.value===null?void 0:i.value==="true",search:a.value||void 0,sessionId:u.value||void 0});t.value=A.entries,c.value=A.nextCursor,l.value=A.prevCursor,f.value=A.total,m.value=A.nextCursor!==null,n.value===null&&t.value.length>0&&await I(t.value[0].id)}catch(A){const Q=A instanceof Error?A.message:"Failed to load entries";g.value=Q,e(Q,"error")}finally{v.value=!1}}async function y(){try{s.value=await fe.fetchStats()}catch{}}async function x(){try{const D=await fe.fetchSessions();r.value=D.sessions}catch{}}async function I(D){try{n.value=await fe.fetchEntry(D)}catch(F){const A=F instanceof Error?F.message:"Failed to load entry";e(A,"error")}}function p(D){const F=d.value;if(t.value.length===0)return;let A;F===-1?A=0:D==="next"?A=Math.min(F+1,t.value.length-1):A=Math.max(F-1,0);const Q=t.value[A];Q&&I(Q.id)}function E(){n.value=null}async function _(){try{await fe.deleteEntries(),t.value=[],n.value=null,s.value=null,f.value=0,c.value=null,l.value=null,m.value=!1,e("History cleared","success"),await y()}catch(D){const F=D instanceof Error?D.message:"Failed to clear history";e(F,"error")}}async function k(){const D=n.value?.id;await Promise.all([h(),y(),x()]),D&&await I(D)}function $(){c.value&&h(c.value,"older")}function H(){l.value&&h(l.value,"newer")}function W(){c.value=null,l.value=null}function X(D){u.value=D,W(),h()}function re(D){o.value=D,W(),h()}function ct(D){i.value=D,W(),h()}function De(D){a.value=D,W(),h()}return{entries:t,selectedEntry:n,sessions:r,stats:s,searchQuery:a,filterEndpoint:o,filterSuccess:i,selectedSessionId:u,nextCursor:c,prevCursor:l,total:f,hasMore:m,loading:v,error:g,hasSelection:T,selectedIndex:d,pageSize:S,fetchEntries:h,fetchStats:y,fetchSessions:x,selectEntry:I,selectAdjacentEntry:p,clearSelection:E,clearAll:_,refresh:k,loadNext:$,loadPrev:H,setSessionFilter:X,setEndpointFilter:re,setSuccessFilter:ct,setSearch:De}}class sr{constructor(t){this.options=t}ws=null;reconnectTimer=null;reconnectDelay=1e3;maxReconnectDelay=3e4;intentionalClose=!1;connect(){this.intentionalClose=!1,this.createConnection()}disconnect(){this.intentionalClose=!0,this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.ws&&(this.ws.close(),this.ws=null),this.options.onStatusChange?.(!1)}get isConnected(){return this.ws?.readyState===WebSocket.OPEN}createConnection(){const n=`${location.protocol==="https:"?"wss:":"ws:"}//${location.host}/ws`;try{this.ws=new WebSocket(n)}catch{this.scheduleReconnect();return}this.ws.addEventListener("open",()=>{this.reconnectDelay=1e3,this.options.onStatusChange?.(!0),this.options.topics&&this.ws?.send(JSON.stringify({type:"subscribe",topics:this.options.topics}))}),this.ws.addEventListener("close",()=>{this.options.onStatusChange?.(!1),this.intentionalClose||this.scheduleReconnect()}),this.ws.addEventListener("error",()=>{}),this.ws.addEventListener("message",r=>{try{const s=JSON.parse(r.data);this.handleMessage(s)}catch{}})}handleMessage(t){switch(t.type){case"entry_added":{this.options.onEntryAdded?.(t.data);break}case"entry_updated":{this.options.onEntryUpdated?.(t.data);break}case"stats_updated":{this.options.onStatsUpdated?.(t.data);break}case"connected":{this.options.onConnected?.(t.data.clientCount);break}case"history_cleared":{this.options.onHistoryCleared?.();break}case"session_deleted":{this.options.onSessionDeleted?.(t.data.sessionId);break}case"active_request_changed":{this.options.onActiveRequestChanged?.(t.data);break}case"rate_limiter_changed":{this.options.onRateLimiterChanged?.(t.data);break}case"shutdown_phase_changed":{this.options.onShutdownPhaseChanged?.(t.data);break}}}scheduleReconnect(){this.reconnectTimer||(this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.createConnection()},this.reconnectDelay),this.reconnectDelay=Math.min(this.reconnectDelay*2,this.maxReconnectDelay))}}function or({entries:e,prevCursor:t,total:n,stats:r,selectedEntry:s,wsConnected:a,pageSize:o,refresh:i,selectEntry:u}){let c=null;function l(S){t.value===null&&(e.value=[S,...e.value.slice(0,o-1)],n.value++)}function f(S){const T=e.value.findIndex(d=>d.id===S.id);T!==-1&&(e.value=e.value.map((d,h)=>h===T?S:d)),s.value?.id===S.id&&u(S.id)}function m(S){r.value=S}function v(){i(),c=new sr({topics:["history"],onEntryAdded:l,onEntryUpdated:f,onStatsUpdated:m,onHistoryCleared:()=>{i()},onSessionDeleted:()=>{i()},onStatusChange:S=>{a.value=S}}),c.connect()}function g(){c?.disconnect(),c=null}return{init:v,destroy:g}}function ar(){const{show:e}=Ut(),t=rr(e),n=w(!1),r=w(""),s=w(""),a=w(""),o=w(!0),i=w(null),u=w(!1),c=or({entries:t.entries,prevCursor:t.prevCursor,total:t.total,stats:t.stats,selectedEntry:t.selectedEntry,wsConnected:n,pageSize:t.pageSize,refresh:t.refresh,selectEntry:t.selectEntry});return{entries:t.entries,selectedEntry:t.selectedEntry,sessions:t.sessions,stats:t.stats,searchQuery:t.searchQuery,filterEndpoint:t.filterEndpoint,filterSuccess:t.filterSuccess,selectedSessionId:t.selectedSessionId,nextCursor:t.nextCursor,prevCursor:t.prevCursor,total:t.total,hasMore:t.hasMore,loading:t.loading,error:t.error,wsConnected:n,detailSearch:r,detailFilterRole:s,detailFilterType:a,aggregateTools:o,detailViewMode:i,showOnlyRewritten:u,hasSelection:t.hasSelection,selectedIndex:t.selectedIndex,fetchEntries:t.fetchEntries,fetchStats:t.fetchStats,fetchSessions:t.fetchSessions,selectEntry:t.selectEntry,selectAdjacentEntry:t.selectAdjacentEntry,clearSelection:t.clearSelection,clearAll:t.clearAll,refresh:t.refresh,loadNext:t.loadNext,loadPrev:t.loadPrev,setSessionFilter:t.setSessionFilter,setEndpointFilter:t.setEndpointFilter,setSuccessFilter:t.setSuccessFilter,setSearch:t.setSearch,init:c.init,destroy:c.destroy}}function V(e,t){return n=>Object.keys(e).reduce((r,s)=>{const o=typeof e[s]=="object"&&e[s]!=null&&!Array.isArray(e[s])?e[s]:{type:e[s]};return n&&s in n?r[s]={...o,default:n[s]}:r[s]=o,t&&!r[s].source&&(r[s].source=t),r},{})}const Kt=V({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component");function ir(e,t){t=Array.isArray(t)?t.slice(0,-1).map(n=>`'${n}'`).join(", ")+` or '${t.at(-1)}'`:`'${t}'`}const P=typeof window<"u",Mo=P&&"IntersectionObserver"in window,cr=P&&("ontouchstart"in window||window.navigator.maxTouchPoints>0),Zt=P&&"matchMedia"in window&&typeof window.matchMedia=="function",ur=()=>Zt&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;function qt(e,t,n){const r=t.length-1;if(r<0)return e===void 0?n:e;for(let s=0;s<r;s++){if(e==null)return n;e=e[t[s]]}return e==null||e[t[r]]===void 0?n:e[t[r]]}function ze(e,t,n){return e==null||!t||typeof t!="string"?n:e[t]!==void 0?e[t]:(t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,""),qt(e,t.split("."),n))}function Io(e,t,n){if(t===!0)return e===void 0?n:e;if(t==null||typeof t=="boolean")return n;if(e!==Object(e)){if(typeof t!="function")return n;const s=t(e,n);return typeof s>"u"?n:s}if(typeof t=="string")return ze(e,t,n);if(Array.isArray(t))return qt(e,t,n);if(typeof t!="function")return n;const r=t(e,n);return typeof r>"u"?n:r}function Xt(e,t=0){return Array.from({length:e},(n,r)=>t+r)}function Y(e,t="px"){if(e==null||e==="")return;const n=Number(e);return isNaN(n)?String(e):isFinite(n)?`${n}${t}`:void 0}function Oo(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function dt(e){let t;return e!==null&&typeof e=="object"&&((t=Object.getPrototypeOf(e))===Object.prototype||t===null)}function Qt(e){if(e&&"$el"in e){const t=e.$el;return t?.nodeType===Node.TEXT_NODE?t.nextElementSibling:t}return e}function Be(e,t){return t.every(n=>e.hasOwnProperty(n))}function lr(e,t){const n={};for(const r of t)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function mt(e,t,n){const r=Object.create(null),s=Object.create(null);for(const a in e)t.some(o=>o instanceof RegExp?o.test(a):o===a)?r[a]=e[a]:s[a]=e[a];return[r,s]}function Jt(e,t){const n={...e};return t.forEach(r=>delete n[r]),n}const en=/^on[^a-z]/,Po=e=>en.test(e),fr=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"];function Fo(e){const[t,n]=mt(e,[en]),r=Jt(t,fr),[s,a]=mt(n,["class","style","id","inert",/^data-/]);return Object.assign(s,t),Object.assign(a,r),[s,a]}function _o(e){return e==null?[]:Array.isArray(e)?e:[e]}function $o(e,t){let n=0;const r=(...s)=>{clearTimeout(n),n=setTimeout(()=>e(...s),q(t))};return r.clear=()=>{clearTimeout(n)},r.immediate=e,r}function et(e,t=0,n=1){return Math.max(t,Math.min(n,e))}function ht(e,t,n="0"){return e+n.repeat(Math.max(0,t-e.length))}function pt(e,t,n="0"){return n.repeat(Math.max(0,t-e.length))+e}function dr(e,t=1){const n=[];let r=0;for(;r<e.length;)n.push(e.substr(r,t)),r+=t;return n}function M(e={},t={},n,r){const s={};for(const a in e)s[a]=e[a];for(const a in t){const o=t[a];if(r&&!r(a,o))continue;const i=e[a];if(dt(i)&&dt(o)){s[a]=M(i,o,n,r);continue}s[a]=o}return s}function mr(e){return e.map(t=>t.type===_e?mr(t.children):t).flat()}function ee(e=""){if(ee.cache.has(e))return ee.cache.get(e);const t=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return ee.cache.set(e,t),t}ee.cache=new Map;function de(e,t){if(!t||typeof t!="object")return[];if(Array.isArray(t))return t.map(n=>de(e,n)).flat(1);if(t.suspense)return de(e,t.ssContent);if(Array.isArray(t.children))return t.children.map(n=>de(e,n)).flat(1);if(t.component){if(Object.getOwnPropertyDescriptor(t.component.provides,e))return[t.component];if(t.component.subTree)return de(e,t.component.subTree).flat(1)}return[]}class Lo{#t=[];#e=0;constructor(t){this.size=t}get isFull(){return this.#t.length===this.size}push(t){this.#t[this.#e]=t,this.#e=(this.#e+1)%this.size}values(){return this.#t.slice(this.#e).concat(this.#t.slice(0,this.#e))}clear(){this.#t.length=0,this.#e=0}}function Ro(e){const t=U({});$e(()=>{const r=e();for(const s in r)t[s]=r[s]},{flush:"sync"});const n={};for(const r in t)n[r]=C(()=>t[r]);return n}function No(e,t){return e.includes(t)}function Vo(e){return e[2].toLowerCase()+e.slice(3)}const Ho=()=>[Function,Array];function Wo(e,t){return t="on"+Cn(t),!!(e[t]||e[`${t}Once`]||e[`${t}Capture`]||e[`${t}OnceCapture`]||e[`${t}CaptureOnce`])}function Bo(e,...t){if(Array.isArray(e))for(const n of e)n(...t);else typeof e=="function"&&e(...t)}function hr(e,t=!0){const n=["button","[href]",'input:not([type="hidden"])',"select","textarea","details:not(:has(> summary))","details > summary","[tabindex]",'[contenteditable]:not([contenteditable="false"])',"audio[controls]","video[controls]"].map(s=>`${s}${t?':not([tabindex="-1"])':""}:not([disabled], [inert])`).join(", ");let r;try{r=[...e.querySelectorAll(n)]}catch{return[]}return r.filter(s=>!s.closest("[inert]")).filter(s=>!!s.offsetParent||s.getClientRects().length>0).filter(s=>!s.parentElement?.closest("details:not([open])")||s.tagName==="SUMMARY"&&s.parentElement?.tagName==="DETAILS")}function pr(e,t,n){let r,s=e.indexOf(document.activeElement);const a=t==="next"?1:-1;do s+=a,r=e[s];while((!r||r.offsetParent==null||!(n?.(r)??!0))&&s<e.length&&s>=0);return r}function yr(e,t){const n=hr(e);if(t==null)(e===document.activeElement||!e.contains(document.activeElement))&&n[0]?.focus();else if(t==="first")n[0]?.focus();else if(t==="last")n.at(-1)?.focus();else if(typeof t=="number")n[t]?.focus();else{const r=pr(n,t);r?r.focus():yr(e,t==="next"?"first":"last")}}function Yo(e,t){if(!(P&&typeof CSS<"u"&&typeof CSS.supports<"u"&&CSS.supports(`selector(${t})`)))return null;try{return!!e&&e.matches(t)}catch{return null}}function vr(e){return e.some(t=>An(t)?t.type===Mn?!1:t.type!==_e||vr(t.children):!0)?e:null}function jo(e,t){if(!P||e===0)return t(),()=>{};const n=window.setTimeout(t,e);return()=>window.clearTimeout(n)}function Uo(e,t){const n=e.clientX,r=e.clientY,s=t.getBoundingClientRect(),a=s.left,o=s.top,i=s.right,u=s.bottom;return n>=a&&n<=i&&r>=o&&r<=u}function gr(){const e=R(),t=n=>{e.value=n};return Object.defineProperty(t,"value",{enumerable:!0,get:()=>e.value,set:n=>e.value=n}),Object.defineProperty(t,"el",{enumerable:!0,get:()=>Qt(e.value)}),t}function zo(e){const t=e.key.length===1,n=!e.ctrlKey&&!e.metaKey&&!e.altKey;return t&&n}function Go(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="bigint"}function Ko(e){const t={};for(const n in e)t[Tn(n)]=e[n];return t}function Zo(e){const t=["checked","disabled"];return Object.fromEntries(Object.entries(e).filter(([n,r])=>t.includes(n)?!!r:r!==void 0))}const se=2.4,yt=.2126729,vt=.7151522,gt=.072175,br=.55,wr=.58,Sr=.57,Dr=.62,Ee=.03,bt=1.45,kr=5e-4,Er=1.25,xr=1.25,wt=.078,St=12.82051282051282,xe=.06,Dt=.001;function kt(e,t){const n=(e.r/255)**se,r=(e.g/255)**se,s=(e.b/255)**se,a=(t.r/255)**se,o=(t.g/255)**se,i=(t.b/255)**se;let u=n*yt+r*vt+s*gt,c=a*yt+o*vt+i*gt;if(u<=Ee&&(u+=(Ee-u)**bt),c<=Ee&&(c+=(Ee-c)**bt),Math.abs(c-u)<kr)return 0;let l;if(c>u){const f=(c**br-u**wr)*Er;l=f<Dt?0:f<wt?f-f*St*xe:f-xe}else{const f=(c**Dr-u**Sr)*xr;l=f>-Dt?0:f>-wt?f-f*St*xe:f+xe}return l*100}const Ae=.20689655172413793,Cr=e=>e>Ae**3?Math.cbrt(e):e/(3*Ae**2)+4/29,Tr=e=>e>Ae?e**3:3*Ae**2*(e-4/29);function tn(e){const t=Cr,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function nn(e){const t=Tr,n=(e[0]+16)/116;return[t(n+e[1]/500)*.95047,t(n),t(n-e[2]/200)*1.08883]}const Ar=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],Mr=e=>e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055,Ir=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],Or=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function rn(e){const t=Array(3),n=Mr,r=Ar;for(let s=0;s<3;++s)t[s]=Math.round(et(n(r[s][0]*e[0]+r[s][1]*e[1]+r[s][2]*e[2]))*255);return{r:t[0],g:t[1],b:t[2]}}function tt({r:e,g:t,b:n}){const r=[0,0,0],s=Or,a=Ir;e=s(e/255),t=s(t/255),n=s(n/255);for(let o=0;o<3;++o)r[o]=a[o][0]*e+a[o][1]*t+a[o][2]*n;return r}function Pr(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function qo(e){return Pr(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const Et=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,Fr={rgb:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),rgba:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),hsl:(e,t,n,r)=>xt({h:e,s:t,l:n,a:r}),hsla:(e,t,n,r)=>xt({h:e,s:t,l:n,a:r}),hsv:(e,t,n,r)=>pe({h:e,s:t,v:n,a:r}),hsva:(e,t,n,r)=>pe({h:e,s:t,v:n,a:r})};function z(e){if(typeof e=="number")return{r:(e&16711680)>>16,g:(e&65280)>>8,b:e&255};if(typeof e=="string"&&Et.test(e)){const{groups:t}=e.match(Et),{fn:n,values:r}=t,s=r.split(/,\s*|\s*\/\s*|\s+/).map((a,o)=>a.endsWith("%")||o>0&&o<3&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(a)/100:parseFloat(a));return Fr[n](...s)}else if(typeof e=="string"){let t=e.startsWith("#")?e.slice(1):e;return[3,4].includes(t.length)?t=t.split("").map(n=>n+n).join(""):[6,8].includes(t.length),$r(t)}else if(typeof e=="object"){if(Be(e,["r","g","b"]))return e;if(Be(e,["h","s","l"]))return pe(sn(e));if(Be(e,["h","s","v"]))return pe(e)}throw new TypeError(`Invalid color: ${e==null?e:String(e)||e.constructor.name}
3
+ Expected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function pe(e){const{h:t,s:n,v:r,a:s}=e,a=i=>{const u=(i+t/60)%6;return r-r*n*Math.max(Math.min(u,4-u,1),0)},o=[a(5),a(3),a(1)].map(i=>Math.round(i*255));return{r:o[0],g:o[1],b:o[2],a:s}}function xt(e){return pe(sn(e))}function sn(e){const{h:t,s:n,l:r,a:s}=e,a=r+n*Math.min(r,1-r),o=a===0?0:2-2*r/a;return{h:t,s:o,v:a,a:s}}function Ce(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function _r({r:e,g:t,b:n,a:r}){return`#${[Ce(e),Ce(t),Ce(n),r!==void 0?Ce(Math.round(r*255)):""].join("")}`}function $r(e){e=Lr(e);let[t,n,r,s]=dr(e,2).map(a=>parseInt(a,16));return s=s===void 0?s:s/255,{r:t,g:n,b:r,a:s}}function Lr(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),(e.length===3||e.length===4)&&(e=e.split("").map(t=>t+t).join("")),e.length!==6&&(e=ht(ht(e,6),8,"F")),e}function Rr(e,t){const n=tn(tt(e));return n[0]=n[0]+t*10,rn(nn(n))}function Nr(e,t){const n=tn(tt(e));return n[0]=n[0]-t*10,rn(nn(n))}function Vr(e){const t=z(e);return tt(t)[1]}function Hr(e){const t=Math.abs(kt(z(0),z(e)));return Math.abs(kt(z(16777215),z(e)))>Math.min(t,50)}function K(e,t){const n=In();if(!n)throw new Error(`[Vuetify] ${e} must be called from inside a setup function`);return n}function Wr(e="composables"){const t=K(e).type;return ee(t?.aliasName||t?.name)}function Br(e,t=K("injectSelf")){const{provides:n}=t;if(n&&e in n)return n[e]}const ie=Symbol.for("vuetify:defaults");function Yr(e){return w(e)}function nt(){const e=N(ie);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function Xo(e,t){const n=nt(),r=w(e),s=b(()=>{if(q(t?.disabled))return n.value;const o=q(t?.scoped),i=q(t?.reset),u=q(t?.root);if(r.value==null&&!(o||i||u))return n.value;let c=M(r.value,{prev:n.value});if(o)return c;if(i||u){const l=Number(i||1/0);for(let f=0;f<=l&&!(!c||!("prev"in c));f++)c=c.prev;return c&&typeof u=="string"&&u in c&&(c=M(M(c,{prev:c}),c[u])),c}return c.prev?M(c.prev,c,void 0,(l,f)=>f!==void 0):c});return ue(ie,s),s}function jr(e,t){return e.props&&(typeof e.props[t]<"u"||typeof e.props[ee(t)]<"u")}function Ur(e={},t,n=nt()){const r=K("useDefaults");if(t=t??r.type.name??r.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const s=b(()=>n.value?.[e._as??t]),a=new Proxy(e,{get(u,c){const l=Reflect.get(u,c);if(c==="class"||c==="style")return[s.value?.[c],l].filter(v=>v!=null);if(jr(r.vnode,c))return l;const f=s.value?.[c];if(f!==void 0)return f;const m=n.value?.global?.[c];return m!==void 0?m:l}}),o=R();$e(()=>{if(s.value){const u=Object.entries(s.value).filter(([c])=>c.startsWith(c[0].toUpperCase()));o.value=u.length?Object.fromEntries(u):void 0}else o.value=void 0});function i(){const u=Br(ie,r);ue(ie,b(()=>o.value?M(u?.value??{},o.value):u?.value))}return{props:a,provideSubDefaults:i}}function we(e){if(e._setup=e._setup??e.setup,!e.name)return e;if(e._setup){e.props=V(e.props??{},e.name)();const t=Object.keys(e.props).filter(n=>n!=="class"&&n!=="style");e.filterProps=function(r){return lr(r,t)},e.props._as=String,e.setup=function(r,s){const a=nt();if(!a.value)return e._setup(r,s);const{props:o,provideSubDefaults:i}=Ur(r,r._as??e.name,a),u=e._setup(o,s);return i(),u}}return e}function rt(e=!0){return t=>(e?we:be)(t)}const Qo="cubic-bezier(0.4, 0, 0.2, 1)",Jo="cubic-bezier(0.0, 0, 0.2, 1)",ea="cubic-bezier(0.4, 0, 1, 1)",zr={linear:e=>e,easeInQuad:e=>e**2,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e**2:-1+(4-2*e)*e,easeInCubic:e=>e**3,easeOutCubic:e=>--e**3+1,easeInOutCubic:e=>e<.5?4*e**3:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e**4,easeOutQuart:e=>1- --e**4,easeInOutQuart:e=>e<.5?8*e**4:1-8*--e**4,easeInQuint:e=>e**5,easeOutQuint:e=>1+--e**5,easeInOutQuint:e=>e<.5?16*e**5:1+16*--e**5,instant:e=>1};function on(e){const t=K("useRender");t.render=e}function Gr(e,t="content"){const n=gr(),r=w();if(P){const s=new ResizeObserver(a=>{e?.(a,s),a.length&&(t==="content"?r.value=a[0].contentRect:r.value=a[0].target.getBoundingClientRect())});Yt(()=>{s.disconnect()}),ne(()=>n.el,(a,o)=>{o&&(s.unobserve(o),r.value=void 0),a&&s.observe(a)},{flush:"post"})}return{resizeRef:n,contentRect:jt(r)}}const Me=Symbol.for("vuetify:layout"),an=Symbol.for("vuetify:layout-item"),Ct=1e3,Kr=V({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),ta=V({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function Zr(){const e=N(Me);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function na(e){const t=N(Me);if(!t)throw new Error("[Vuetify] Could not find injected layout");const n=e.id??`layout-item-${On()}`,r=K("useLayoutItem");ue(an,{id:n});const s=R(!1);Pn(()=>s.value=!0),Fn(()=>s.value=!1);const{layoutItemStyles:a,layoutItemScrimStyles:o}=t.register(r,{...e,active:b(()=>s.value?!1:e.active.value),id:n});return Yt(()=>t.unregister(n)),{layoutItemStyles:a,layoutRect:t.layoutRect,layoutItemScrimStyles:o}}const qr=(e,t,n,r)=>{let s={top:0,left:0,right:0,bottom:0};const a=[{id:"",layer:{...s}}];for(const o of e){const i=t.get(o),u=n.get(o),c=r.get(o);if(!i||!u||!c)continue;const l={...s,[i.value]:parseInt(s[i.value],10)+(c.value?parseInt(u.value,10):0)};a.push({id:o,layer:l}),s=l}return a};function Xr(e){const t=N(Me,null),n=b(()=>t?t.rootZIndex.value-100:Ct),r=w([]),s=U(new Map),a=U(new Map),o=U(new Map),i=U(new Map),u=U(new Map),{resizeRef:c,contentRect:l}=Gr(),f=b(()=>{const p=new Map,E=e.overlaps??[];for(const _ of E.filter(k=>k.includes(":"))){const[k,$]=_.split(":");if(!r.value.includes(k)||!r.value.includes($))continue;const H=s.get(k),W=s.get($),X=a.get(k),re=a.get($);!H||!W||!X||!re||(p.set($,{position:H.value,amount:parseInt(X.value,10)}),p.set(k,{position:W.value,amount:-parseInt(re.value,10)}))}return p}),m=b(()=>{const p=[...new Set([...o.values()].map(_=>_.value))].sort((_,k)=>_-k),E=[];for(const _ of p){const k=r.value.filter($=>o.get($)?.value===_);E.push(...k)}return qr(E,s,a,i)}),v=b(()=>!Array.from(u.values()).some(p=>p.value)),g=b(()=>m.value[m.value.length-1].layer),S=C(()=>({"--v-layout-left":Y(g.value.left),"--v-layout-right":Y(g.value.right),"--v-layout-top":Y(g.value.top),"--v-layout-bottom":Y(g.value.bottom),...v.value?void 0:{transition:"none"}})),T=b(()=>m.value.slice(1).map(({id:p},E)=>{const{layer:_}=m.value[E],k=a.get(p),$=s.get(p);return{id:p,..._,size:Number(k.value),position:$.value}})),d=p=>T.value.find(E=>E.id===p),h=K("createLayout"),y=R(!1);Xe(()=>{y.value=!0}),ue(Me,{register:(p,{id:E,order:_,position:k,layoutSize:$,elementSize:H,active:W,disableTransitions:X,absolute:re})=>{o.set(E,_),s.set(E,k),a.set(E,$),i.set(E,W),X&&u.set(E,X);const De=de(an,h?.vnode).indexOf(p);De>-1?r.value.splice(De,0,E):r.value.push(E);const D=b(()=>T.value.findIndex(le=>le.id===E)),F=b(()=>n.value+m.value.length*2-D.value*2),A=b(()=>{const le=k.value==="left"||k.value==="right",Ne=k.value==="right",wn=k.value==="bottom",Ve=Number(H.value??$.value),Sn=`translate${le?"X":"Y"}`,Dn=W.value?0:(Ve===0?100:Ve+1)*(Ne||wn?1:-1),kn=Ve===0?"%":"px",ut={[k.value]:0,zIndex:F.value,transform:`${Sn}(${Dn}${kn})`,position:re.value||n.value!==Ct?"absolute":"fixed",...v.value?void 0:{transition:"none"}};if(!y.value)return ut;const j=T.value[D.value],He=f.value.get(E);return He&&(j[He.position]+=He.amount),{...ut,height:le?`calc(100% - ${j.top}px - ${j.bottom}px)`:H.value?`${H.value}px`:void 0,left:Ne?void 0:`${j.left}px`,right:Ne?`${j.right}px`:void 0,top:k.value!=="bottom"?`${j.top}px`:void 0,bottom:k.value!=="top"?`${j.bottom}px`:void 0,width:le?H.value?`${H.value}px`:void 0:`calc(100% - ${j.left}px - ${j.right}px)`}}),Q=b(()=>({zIndex:F.value-1}));return{layoutItemStyles:A,layoutItemScrimStyles:Q,zIndex:F}},unregister:p=>{o.delete(p),s.delete(p),a.delete(p),i.delete(p),u.delete(p),r.value=r.value.filter(E=>E!==p)},mainRect:g,mainStyles:S,getLayoutItem:d,items:T,layoutRect:l,rootZIndex:n});const x=C(()=>["v-layout",{"v-layout--full-height":e.fullHeight}]),I=C(()=>({zIndex:t?n.value:void 0,position:t?"relative":void 0,overflow:t?"hidden":void 0}));return{layoutClasses:x,layoutStyles:I,getLayoutItem:d,items:T,layoutRect:l,layoutRef:c}}function Qr(e,t){let n;function r(){n=Ue(),n.run(()=>t.length?t(()=>{n?.stop(),r()}):t())}ne(e,s=>{s&&!n?r():s||(n?.stop(),n=void 0)},{immediate:!0}),Qe(()=>{n?.stop()})}function Jr(e,t,n,r=a=>a,s=a=>a){const a=K("useProxiedModel"),o=w(e[t]!==void 0?e[t]:n),i=ee(t),c=i!==t?b(()=>(e[t],!!((a.vnode.props?.hasOwnProperty(t)||a.vnode.props?.hasOwnProperty(i))&&(a.vnode.props?.hasOwnProperty(`onUpdate:${t}`)||a.vnode.props?.hasOwnProperty(`onUpdate:${i}`))))):b(()=>(e[t],!!(a.vnode.props?.hasOwnProperty(t)&&a.vnode.props?.hasOwnProperty(`onUpdate:${t}`))));Qr(()=>!c.value,()=>{ne(()=>e[t],f=>{o.value=f})});const l=b({get(){const f=e[t];return r(c.value?f:o.value)},set(f){const m=s(f),v=_n(c.value?e[t]:o.value);v===m||r(v)===f||(o.value=m,a?.emit(`update:${t}`,m))}});return Object.defineProperty(l,"externalValue",{get:()=>c.value?e[t]:o.value}),l}const es={badge:"Badge",open:"Open",close:"Close",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"},ariaLabel:{previousMonth:"Previous month",nextMonth:"Next month",selectYear:"Select year",previousYear:"Previous year",nextYear:"Next year",selectMonth:"Select month",selectDate:"{0}",currentDate:"Today, {0}"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},fileUpload:{title:"Drag and drop files here",divider:"or",browse:"Browse Files"},timePicker:{am:"AM",pm:"PM",title:"Select Time",hour:"Hour",minute:"Minute",second:"Second",notAllowed:"Value is not allowed"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"},rules:{required:"This field is required",email:"Please enter a valid email",number:"This field can only contain numbers",integer:"This field can only contain integer values",capital:"This field can only contain uppercase letters",maxLength:"You must enter a maximum of {0} characters",minLength:"You must enter a minimum of {0} characters",strictLength:"The length of the entered field is invalid",exclude:"The {0} character is not allowed",notEmpty:"Please choose at least one value",pattern:"Invalid format"},command:{search:"Type a command or search..."},hotkey:{then:"then",ctrl:"Ctrl",command:"Command",space:"Space",shift:"Shift",alt:"Alt",enter:"Enter",escape:"Escape",upArrow:"Up Arrow",downArrow:"Down Arrow",leftArrow:"Left Arrow",rightArrow:"Right Arrow",backspace:"Backspace",option:"Option",plus:"plus",shortcut:"Keyboard shortcut: {0}",or:"or"},video:{play:"Play",pause:"Pause",seek:"Seek",volume:"Volume",showVolume:"Show volume control",mute:"Mute",unmute:"Unmute",enterFullscreen:"Full screen",exitFullscreen:"Exit full screen"},colorPicker:{ariaLabel:{eyedropper:"Select color with eyedropper",hueSlider:"Hue",alphaSlider:"Alpha",redInput:"Red value",greenInput:"Green value",blueInput:"Blue value",alphaInput:"Alpha value",hueInput:"Hue value",saturationInput:"Saturation value",lightnessInput:"Lightness value",hexInput:"HEX value",hexaInput:"HEX with alpha value",changeFormat:"Change color format"}}},Tt="$vuetify.",At=(e,t)=>e.replace(/\{(\d+)\}/g,(n,r)=>String(t[Number(r)])),cn=(e,t,n)=>(r,...s)=>{if(!r.startsWith(Tt))return At(r,s);const a=r.replace(Tt,""),o=e.value&&n.value[e.value],i=t.value&&n.value[t.value];let u=ze(o,a,null);return u||(`${r}${e.value}`,u=ze(i,a,null)),u||(u=r),typeof u!="string"&&(u=r),At(u,s)};function st(e,t){return(n,r)=>new Intl.NumberFormat([e.value,t.value],r).format(n)}function un(e,t){return st(e,t)(.1).includes(",")?",":"."}function Ye(e,t,n){const r=Jr(e,t,e[t]??n.value);return r.value=e[t]??n.value,ne(n,s=>{e[t]==null&&(r.value=n.value)}),r}function ln(e){return t=>{const n=Ye(t,"locale",e.current),r=Ye(t,"fallback",e.fallback),s=Ye(t,"messages",e.messages);return{name:"vuetify",current:n,fallback:r,messages:s,decimalSeparator:C(()=>un(n,r)),t:cn(n,r,s),n:st(n,r),provide:ln({current:n,fallback:r,messages:s})}}}function ts(e){const t=R(e?.locale??"en"),n=R(e?.fallback??"en"),r=w({en:es,...e?.messages});return{name:"vuetify",current:t,fallback:n,messages:r,decimalSeparator:C(()=>e?.decimalSeparator??un(t,n)),t:cn(t,n,r),n:st(t,n),provide:ln({current:t,fallback:n,messages:r})}}const Ie=Symbol.for("vuetify:locale");function ns(e){return e.name!=null}function rs(e){const t=e?.adapter&&ns(e?.adapter)?e?.adapter:ts(e),n=os(t,e);return{...t,...n}}function ra(){const e=N(Ie);if(!e)throw new Error("[Vuetify] Could not find injected locale instance");return e}function ss(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function os(e,t){const n=w(t?.rtl??ss()),r=b(()=>n.value[e.current.value]??!1);return{isRtl:r,rtl:n,rtlClasses:C(()=>`v-locale--is-${r.value?"rtl":"ltr"}`)}}function fn(){const e=N(Ie);if(!e)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:e.isRtl,rtlClasses:e.rtlClasses}}const ye=Symbol.for("vuetify:theme"),as=V({theme:String},"theme");function Mt(){return{defaultTheme:"system",prefix:"v-",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"shadow-color":"#000000","high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#EEEEEE","theme-on-kbd":"#000000","theme-code":"#F5F5F5","theme-on-code":"#000000","theme-on-dark":"#FFF","theme-on-light":"#000","elevation-overlay-color":"black","elevation-overlay-opacity-step":"2%"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#c8c8c8","on-surface-variant":"#000000",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"shadow-color":"#000000","high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#424242","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC","theme-on-dark":"#FFF","theme-on-light":"#000","elevation-overlay-color":"white","elevation-overlay-opacity-step":"2%"}}},stylesheetId:"vuetify-theme-stylesheet",scoped:!1,utilities:!0}}function is(e=Mt()){const t=Mt();return e?M(t,e):{...t,isDisabled:!0}}function J(e,t,n,r){e.push(`${fs(t,r)} {
4
+ `,...n.map(s=>` ${s};
5
+ `),`}
6
+ `)}function It(e,t){const n=e.dark?2:1,r=e.dark?1:2,s=[];for(const[a,o]of Object.entries(e.colors)){const i=z(o);s.push(`--${t}theme-${a}: ${i.r},${i.g},${i.b}`+(i.a==null?"":`,${i.a}`)),a.startsWith("on-")||s.push(`--${t}theme-${a}-overlay-multiplier: ${Vr(o)>.18?n:r}`)}for(const[a,o]of Object.entries(e.variables)){const i=typeof o=="string"&&o.startsWith("#")?z(o):void 0,u=i?`${i.r}, ${i.g}, ${i.b}`:void 0;s.push(`--${t}${a}: ${u??o}`)}return s}function cs(e,t,n){const r={};if(n)for(const s of["lighten","darken"]){const a=s==="lighten"?Rr:Nr;for(const o of Xt(n[s],1))r[`${e}-${s}-${o}`]=_r(a(z(t),o))}return r}function us(e,t){if(!t)return{};let n={};for(const r of t.colors){const s=e[r];s&&(n={...n,...cs(r,s,t)})}return n}function ls(e,t){const n={};for(const r of Object.keys(e)){if(r.startsWith("on-")||e[`on-${r}`])continue;const s=`on-${r}`,a=z(e[r]);n[s]=Hr(a)?t["theme-on-dark"]:t["theme-on-light"]}return n}function fs(e,t){if(!t)return e;const n=`:where(${t})`;return e===":root"?n:`${n} ${e}`}function ds(e,t,n){const r=ms(e,t);r&&(r.innerHTML=n)}function ms(e,t){if(!P)return null;let n=document.getElementById(e);return n||(n=document.createElement("style"),n.id=e,n.type="text/css",t&&n.setAttribute("nonce",t),document.head.appendChild(n)),n}function hs(e){const t=is(e),n=R(t.defaultTheme),r=w(t.themes),s=R("light"),a=b({get(){return n.value==="system"?s.value:n.value},set(d){n.value=d}}),o=b(()=>{const d={};for(const[h,y]of Object.entries(r.value)){const x=y.dark||h==="dark"?r.value.dark:r.value.light,I=M(x,y),p={...I.colors,...us(I.colors,t.variations)};d[h]={...I,colors:{...p,...ls(p,I.variables)}}}return d}),i=C(()=>o.value[a.value]),u=C(()=>n.value==="system"),c=b(()=>{const d=[],h=t.scoped?t.prefix:"";d.push(`@layer theme-base {
7
+ `),i.value?.dark&&J(d,":root",["color-scheme: dark"],t.scope),J(d,":root",It(i.value,t.prefix),t.scope);for(const[y,x]of Object.entries(o.value))J(d,`.${t.prefix}theme--${y}`,[`color-scheme: ${x.dark?"dark":"normal"}`,...It(x,t.prefix)],t.scope);if(d.push(`}
8
+ `),t.utilities){const y=[],x=[],I=new Set(Object.values(o.value).flatMap(p=>Object.keys(p.colors)));for(const p of I)p.startsWith("on-")?J(x,`.${p}`,[`color: rgb(var(--${t.prefix}theme-${p}))`],t.scope):(J(y,`.${h}bg-${p}`,[`--${t.prefix}theme-overlay-multiplier: var(--${t.prefix}theme-${p}-overlay-multiplier)`,`background-color: rgb(var(--${t.prefix}theme-${p}))`,`color: rgb(var(--${t.prefix}theme-on-${p}))`],t.scope),J(x,`.${h}text-${p}`,[`color: rgb(var(--${t.prefix}theme-${p}))`],t.scope),J(x,`.${h}border-${p}`,[`--${t.prefix}border-color: var(--${t.prefix}theme-${p})`],t.scope));d.push(`@layer theme-background {
9
+ `,...y.map(p=>` ${p}`),`}
10
+ `,`@layer theme-foreground {
11
+ `,...x.map(p=>` ${p}`),`}
12
+ `)}return`@layer vuetify-utilities {
13
+ `+d.map(y=>` ${y}`).join("")+`
14
+ }`}),l=C(()=>t.isDisabled?void 0:`${t.prefix}theme--${a.value}`),f=C(()=>Object.keys(o.value));if(Zt){let h=function(){s.value=d.matches?"dark":"light"};const d=window.matchMedia("(prefers-color-scheme: dark)");h(),d.addEventListener("change",h,{passive:!0}),$n()&&Qe(()=>{d.removeEventListener("change",h)})}function m(d){if(t.isDisabled)return;const h=d._context.provides.usehead;if(h){let y=function(){return{style:[{textContent:c.value,id:t.stylesheetId,nonce:t.cspNonce||!1,tagPosition:"bodyOpen"}]}};if(h.push){const x=h.push(y);P&&ne(c,()=>{x.patch(y)})}else P?(h.addHeadObjs(C(y)),$e(()=>h.updateDOM())):h.addHeadObjs(y())}else{let y=function(){ds(t.stylesheetId,t.cspNonce,c.value)};P?ne(c,y,{immediate:!0}):y()}}function v(d){d!=="system"&&!f.value.includes(d)||(a.value=d)}function g(d=f.value){const h=d.indexOf(a.value),y=h===-1?0:(h+1)%d.length;v(d[y])}function S(d=["light","dark"]){g(d)}const T=new Proxy(a,{get(d,h){return Reflect.get(d,h)},set(d,h,y){return h==="value"&&ir(`theme.global.name.value = ${y}`,`theme.change('${y}')`),Reflect.set(d,h,y)}});return{install:m,change:v,cycle:g,toggle:S,isDisabled:t.isDisabled,isSystem:u,name:a,themes:r,current:i,computedThemes:o,prefix:t.prefix,themeClasses:l,styles:c,global:{name:T,current:i}}}function ps(e){K("provideTheme");const t=N(ye,null);if(!t)throw new Error("Could not find Vuetify theme injection");const n=C(()=>e.theme??t.name.value),r=C(()=>t.themes.value[n.value]),s=C(()=>t.isDisabled?void 0:`${t.prefix}theme--${n.value}`),a={...t,name:n,current:r,themeClasses:s};return ue(ye,a),a}function sa(){K("useTheme");const e=N(ye,null);if(!e)throw new Error("Could not find Vuetify theme injection");return e}const ys=V({...Kt(),...Jt(Kr(),["fullHeight"]),...as()},"VApp"),vs=rt()({name:"VApp",props:ys(),setup(e,{slots:t}){const n=ps(e),{layoutClasses:r,getLayoutItem:s,items:a,layoutRef:o}=Xr({...e,fullHeight:!0}),{rtlClasses:i}=fn();return on(()=>L("div",{ref:o,class:ce(["v-application",n.themeClasses.value,r.value,i.value,e.class]),style:Ze([e.style])},[L("div",{class:"v-application__wrap"},[t.default?.()])])),{getLayoutItem:s,items:a,theme:n}}}),gs=V({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function bs(e){return{dimensionStyles:b(()=>{const n={},r=Y(e.height),s=Y(e.maxHeight),a=Y(e.maxWidth),o=Y(e.minHeight),i=Y(e.minWidth),u=Y(e.width);return r!=null&&(n.height=r),s!=null&&(n.maxHeight=s),a!=null&&(n.maxWidth=a),o!=null&&(n.minHeight=o),i!=null&&(n.minWidth=i),u!=null&&(n.width=u),n})}}function ws(){const e=R(!1);return Xe(()=>{window.requestAnimationFrame(()=>{e.value=!0})}),{ssrBootStyles:C(()=>e.value?void 0:{transition:"none !important"}),isBooted:jt(e)}}const Ss=V({tag:{type:[String,Object,Function],default:"div"}},"tag"),Ds=V({scrollable:Boolean,...Kt(),...gs(),...Ss({tag:"main"})},"VMain"),ks=rt()({name:"VMain",props:Ds(),setup(e,{slots:t}){const{dimensionStyles:n}=bs(e),{mainStyles:r}=Zr(),{ssrBootStyles:s}=ws();return on(()=>O(e.tag,{class:ce(["v-main",{"v-main--scrollable":e.scrollable},e.class]),style:Ze([r.value,s.value,n.value,e.style])},{default:()=>[e.scrollable?L("div",{class:"v-main__scroller"},[t.default?.()]):t.default?.()]})),{}}}),Es={key:1,class:"app"},xs=be({__name:"App",setup(e){const t=ar();ue("historyStore",t);const n=Bt(),r=b(()=>Je(n.path));return Xe(()=>t.init()),Ln(()=>t.destroy()),(s,a)=>{const o=Wt("router-view");return r.value?(G(),qe(vs,{key:0},{default:he(()=>[O(ft),O(ks,null,{default:he(()=>[O(o)]),_:1})]),_:1})):(G(),ae("div",Es,[O(ft),O(o),O(nr)]))}}}),Cs=Le(xs,[["__scopeId","data-v-f9b76585"]]),Ts=[String,Function,Object,Array],Ge=Symbol.for("vuetify:icons"),Re=V({icon:{type:Ts},tag:{type:[String,Object,Function],required:!0}},"icon"),Ot=rt()({name:"VComponentIcon",props:Re(),setup(e,{slots:t}){return()=>{const n=e.icon;return O(e.tag,null,{default:()=>[e.icon?O(n,null,null):t.default?.()]})}}}),dn=we({name:"VSvgIcon",inheritAttrs:!1,props:Re(),setup(e,{attrs:t}){return()=>O(e.tag,Rn(t,{style:null}),{default:()=>[L("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(e.icon)?e.icon.map(n=>Array.isArray(n)?L("path",{d:n[0],"fill-opacity":n[1]},null):L("path",{d:n},null)):L("path",{d:e.icon},null)])]})}});we({name:"VLigatureIcon",props:Re(),setup(e){return()=>O(e.tag,null,{default:()=>[e.icon]})}});const mn=we({name:"VClassIcon",props:Re(),setup(e){return()=>O(e.tag,{class:ce(e.icon)},null)}}),oa=e=>{const t=N(Ge);if(!t)throw new Error("Missing Vuetify Icons provide!");return{iconData:b(()=>{const r=Nn(e);if(!r)return{component:Ot};let s=r;if(typeof s=="string"&&(s=s.trim(),s.startsWith("$")&&(s=t.aliases?.[s.slice(1)])),Array.isArray(s))return{component:dn,icon:s};if(typeof s!="string")return{component:Ot,icon:s};const a=Object.keys(t.sets).find(u=>typeof s=="string"&&s.startsWith(`${u}:`)),o=a?s.slice(a.length+1):s;return{component:t.sets[a??t.defaultSet].component,icon:o}})}},As={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",tableGroupCollapse:"mdi-chevron-down",tableGroupExpand:"mdi-chevron-right",eyeDropper:"mdi-eyedropper",upload:"mdi-cloud-upload",color:"mdi-palette",command:"mdi-apple-keyboard-command",ctrl:"mdi-apple-keyboard-control",space:"mdi-keyboard-space",shift:"mdi-apple-keyboard-shift",alt:"mdi-apple-keyboard-option",enter:"mdi-keyboard-return",arrowup:"mdi-arrow-up",arrowdown:"mdi-arrow-down",arrowleft:"mdi-arrow-left",arrowright:"mdi-arrow-right",backspace:"mdi-backspace",play:"mdi-play",pause:"mdi-pause",fullscreen:"mdi-fullscreen",fullscreenExit:"mdi-fullscreen-exit",volumeHigh:"mdi-volume-high",volumeMedium:"mdi-volume-medium",volumeLow:"mdi-volume-low",volumeOff:"mdi-volume-variant-off",search:"mdi-magnify"},Ms={component:e=>Vn(mn,{...e,class:"mdi"})};function Is(){return{svg:{component:dn},class:{component:mn}}}function Os(e){const t=Is(),n=e?.defaultSet??"mdi";return n==="mdi"&&!t.mdi&&(t.mdi=Ms),M({defaultSet:n,sets:t,aliases:{...As,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z","vuetify-play":["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z",["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z",.6]]}},e)}function Se(e){const t=e.slice(-2).toUpperCase();switch(!0){case e==="GB-alt-variant":return{firstDay:0,firstWeekSize:4};case e==="001":return{firstDay:1,firstWeekSize:1};case`AG AS BD BR BS BT BW BZ CA CO DM DO ET GT GU HK HN ID IL IN JM JP KE
15
+ KH KR LA MH MM MO MT MX MZ NI NP PA PE PH PK PR PY SA SG SV TH TT TW UM US
16
+ VE VI WS YE ZA ZW`.includes(t):return{firstDay:0,firstWeekSize:1};case`AI AL AM AR AU AZ BA BM BN BY CL CM CN CR CY EC GE HR KG KZ LB LK LV
17
+ MD ME MK MN MY NZ RO RS SI TJ TM TR UA UY UZ VN XK`.includes(t):return{firstDay:1,firstWeekSize:1};case`AD AN AT AX BE BG CH CZ DE DK EE ES FI FJ FO FR GB GF GP GR HU IE IS
18
+ IT LI LT LU MC MQ NL NO PL RE RU SE SK SM VA`.includes(t):return{firstDay:1,firstWeekSize:4};case"AE AF BH DJ DZ EG IQ IR JO KW LY OM QA SD SY".includes(t):return{firstDay:6,firstWeekSize:1};case t==="MV":return{firstDay:5,firstWeekSize:1};case t==="PT":return{firstDay:0,firstWeekSize:4};default:return null}}function Ps(e,t,n){const r=[];let s=[];const a=hn(e),o=pn(e),i=n??Se(t)?.firstDay??0,u=(a.getDay()-i+7)%7,c=(o.getDay()-i+7)%7;for(let l=0;l<u;l++){const f=new Date(a);f.setDate(f.getDate()-(u-l)),s.push(f)}for(let l=1;l<=o.getDate();l++){const f=new Date(e.getFullYear(),e.getMonth(),l);s.push(f),s.length===7&&(r.push(s),s=[])}for(let l=1;l<7-c;l++){const f=new Date(o);f.setDate(f.getDate()+l),s.push(f)}return s.length>0&&r.push(s),r}function me(e,t,n){let r=(n??Se(t)?.firstDay??0)%7;[0,1,2,3,4,5,6].includes(r)||(r=0);const s=new Date(e);for(;s.getDay()!==r;)s.setDate(s.getDate()-1);return s}function Fs(e,t){const n=new Date(e),r=((Se(t)?.firstDay??0)+6)%7;for(;n.getDay()!==r;)n.setDate(n.getDate()+1);return n}function hn(e){return new Date(e.getFullYear(),e.getMonth(),1)}function pn(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function _s(e){const t=e.split("-").map(Number);return new Date(t[0],t[1]-1,t[2])}const $s=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function yn(e){if(e==null)return new Date;if(e instanceof Date)return e;if(typeof e=="string"){let t;if($s.test(e))return _s(e);if(t=Date.parse(e),!isNaN(t))return new Date(t)}return null}const Pt=new Date(2e3,0,2);function Ls(e,t,n){const r=t??Se(e)?.firstDay??0;return Xt(7).map(s=>{const a=new Date(Pt);return a.setDate(Pt.getDate()+r+s),new Intl.DateTimeFormat(e,{weekday:n??"narrow"}).format(a)})}function Rs(e,t,n,r){const s=yn(e)??new Date,a=r?.[t];if(typeof a=="function")return a(s,t,n);let o={};switch(t){case"fullDate":o={year:"numeric",month:"short",day:"numeric"};break;case"fullDateWithWeekday":o={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const i=s.getDate(),u=new Intl.DateTimeFormat(n,{month:"long"}).format(s);return`${i} ${u}`;case"normalDateWithWeekday":o={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":o={month:"short",day:"numeric"};break;case"year":o={year:"numeric"};break;case"month":o={month:"long"};break;case"monthShort":o={month:"short"};break;case"monthAndYear":o={month:"long",year:"numeric"};break;case"monthAndDate":o={month:"long",day:"numeric"};break;case"weekday":o={weekday:"long"};break;case"weekdayShort":o={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(n).format(s.getDate());case"hours12h":o={hour:"numeric",hour12:!0};break;case"hours24h":o={hour:"numeric",hour12:!1};break;case"minutes":o={minute:"numeric"};break;case"seconds":o={second:"numeric"};break;case"fullTime":o={hour:"numeric",minute:"numeric"};break;case"fullTime12h":o={hour:"numeric",minute:"numeric",hour12:!0};break;case"fullTime24h":o={hour:"numeric",minute:"numeric",hour12:!1};break;case"fullDateTime":o={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"};break;case"fullDateTime12h":o={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!0};break;case"fullDateTime24h":o={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!1};break;case"keyboardDate":o={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":return o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric"},new Intl.DateTimeFormat(n,o).format(s).replace(/, /g," ");case"keyboardDateTime12h":return o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",hour12:!0},new Intl.DateTimeFormat(n,o).format(s).replace(/, /g," ");case"keyboardDateTime24h":return o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",hour12:!1},new Intl.DateTimeFormat(n,o).format(s).replace(/, /g," ");default:o=a??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(n,o).format(s)}function Ns(e,t){const n=e.toJsDate(t),r=n.getFullYear(),s=pt(String(n.getMonth()+1),2,"0"),a=pt(String(n.getDate()),2,"0");return`${r}-${s}-${a}`}function Vs(e){const[t,n,r]=e.split("-").map(Number);return new Date(t,n-1,r)}function Hs(e,t){const n=new Date(e);return n.setMinutes(n.getMinutes()+t),n}function Ws(e,t){const n=new Date(e);return n.setHours(n.getHours()+t),n}function te(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function Bs(e,t){const n=new Date(e);return n.setDate(n.getDate()+t*7),n}function Ys(e,t){const n=new Date(e);return n.setDate(1),n.setMonth(n.getMonth()+t),n}function ve(e){return e.getFullYear()}function js(e){return e.getMonth()}function Us(e,t,n,r){const s=Se(t),a=n??s?.firstDay??0,o=s?.firstWeekSize??1;return r!==void 0?zs(e,t,a,r):Gs(e,t,a,o)}function zs(e,t,n,r){const s=(7+r-n)%7,a=me(e,t,n),o=te(a,6);function i(m){return(7+new Date(m,0,1).getDay()-n)%7}let u=ve(a);u<ve(o)&&i(u+1)<=s&&u++;const c=new Date(u,0,1),l=i(u),f=l<=s?te(c,-l):te(c,7-l);return 1+Fe(ot(a),ge(f),"weeks")}function Gs(e,t,n,r){const s=me(e,t,n),a=te(me(e,t,n),6);function o(f){const m=new Date(f,0,1);return 7-Fe(m,me(m,t,n),"days")}let i=ve(s);i<ve(a)&&o(i+1)>=r&&i++;const u=new Date(i,0,1),c=o(i),l=c>=r?te(u,c-7):te(u,c);return 1+Fe(ot(s),ge(l),"weeks")}function Ks(e){return e.getDate()}function Zs(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function qs(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function Xs(e){return e.getHours()}function Qs(e){return e.getMinutes()}function Js(e){return new Date(e.getFullYear(),0,1)}function eo(e){return new Date(e.getFullYear(),11,31)}function to(e,t){return Pe(e,t[0])||Pe(e,t[1])||Oe(e,t[0])&&so(e,t[1])}function no(e){const t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())}function Oe(e,t){return e.getTime()>t.getTime()}function ro(e,t){return Oe(ge(e),ge(t))}function so(e,t){return e.getTime()<t.getTime()}function Pe(e,t){return e.getTime()===t.getTime()}function oo(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function ao(e,t){return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function io(e,t){return e.getFullYear()===t.getFullYear()}function Fe(e,t,n){const r=new Date(e),s=new Date(t);switch(n){case"years":return r.getFullYear()-s.getFullYear();case"quarters":return Math.floor((r.getMonth()-s.getMonth()+(r.getFullYear()-s.getFullYear())*12)/4);case"months":return r.getMonth()-s.getMonth()+(r.getFullYear()-s.getFullYear())*12;case"weeks":return Math.floor((r.getTime()-s.getTime())/(1e3*60*60*24*7));case"days":return Math.floor((r.getTime()-s.getTime())/(1e3*60*60*24));case"hours":return Math.floor((r.getTime()-s.getTime())/(1e3*60*60));case"minutes":return Math.floor((r.getTime()-s.getTime())/(1e3*60));case"seconds":return Math.floor((r.getTime()-s.getTime())/1e3);default:return r.getTime()-s.getTime()}}function co(e,t){const n=new Date(e);return n.setHours(t),n}function uo(e,t){const n=new Date(e);return n.setMinutes(t),n}function lo(e,t){const n=new Date(e);return n.setMonth(t),n}function fo(e,t){const n=new Date(e);return n.setDate(t),n}function mo(e,t){const n=new Date(e);return n.setFullYear(t),n}function ge(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)}function ot(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999)}class ho{constructor(t){this.locale=t.locale,this.formats=t.formats}date(t){return yn(t)}toJsDate(t){return t}toISO(t){return Ns(this,t)}parseISO(t){return Vs(t)}addMinutes(t,n){return Hs(t,n)}addHours(t,n){return Ws(t,n)}addDays(t,n){return te(t,n)}addWeeks(t,n){return Bs(t,n)}addMonths(t,n){return Ys(t,n)}getWeekArray(t,n){const r=n!==void 0?Number(n):void 0;return Ps(t,this.locale,r)}startOfWeek(t,n){const r=n!==void 0?Number(n):void 0;return me(t,this.locale,r)}endOfWeek(t){return Fs(t,this.locale)}startOfMonth(t){return hn(t)}endOfMonth(t){return pn(t)}format(t,n){return Rs(t,n,this.locale,this.formats)}isEqual(t,n){return Pe(t,n)}isValid(t){return no(t)}isWithinRange(t,n){return to(t,n)}isAfter(t,n){return Oe(t,n)}isAfterDay(t,n){return ro(t,n)}isBefore(t,n){return!Oe(t,n)&&!Pe(t,n)}isSameDay(t,n){return oo(t,n)}isSameMonth(t,n){return ao(t,n)}isSameYear(t,n){return io(t,n)}setMinutes(t,n){return uo(t,n)}setHours(t,n){return co(t,n)}setMonth(t,n){return lo(t,n)}setDate(t,n){return fo(t,n)}setYear(t,n){return mo(t,n)}getDiff(t,n,r){return Fe(t,n,r)}getWeekdays(t,n){const r=t!==void 0?Number(t):void 0;return Ls(this.locale,r,n)}getYear(t){return ve(t)}getMonth(t){return js(t)}getWeek(t,n,r){const s=n!==void 0?Number(n):void 0,a=r!==void 0?Number(r):void 0;return Us(t,this.locale,s,a)}getDate(t){return Ks(t)}getNextMonth(t){return Zs(t)}getPreviousMonth(t){return qs(t)}getHours(t){return Xs(t)}getMinutes(t){return Qs(t)}startOfDay(t){return ge(t)}endOfDay(t){return ot(t)}startOfYear(t){return Js(t)}endOfYear(t){return eo(t)}}const po=Symbol.for("vuetify:date-options"),Ft=Symbol.for("vuetify:date-adapter");function yo(e,t){const n=M({adapter:ho,locale:{af:"af-ZA",bg:"bg-BG",ca:"ca-ES",ckb:"",cs:"cs-CZ",de:"de-DE",el:"el-GR",en:"en-US",et:"et-EE",fa:"fa-IR",fi:"fi-FI",hr:"hr-HR",hu:"hu-HU",he:"he-IL",id:"id-ID",it:"it-IT",ja:"ja-JP",ko:"ko-KR",lv:"lv-LV",lt:"lt-LT",nl:"nl-NL",no:"no-NO",pl:"pl-PL",pt:"pt-PT",ro:"ro-RO",ru:"ru-RU",sk:"sk-SK",sl:"sl-SI",srCyrl:"sr-SP",srLatn:"sr-SP",sv:"sv-SE",th:"th-TH",tr:"tr-TR",az:"az-AZ",uk:"uk-UA",vi:"vi-VN",zhHans:"zh-CN",zhHant:"zh-TW"}},e);return{options:n,instance:vo(n,t)}}function vo(e,t){const n=U(typeof e.adapter=="function"?new e.adapter({locale:e.locale[t.current.value]??t.current.value,formats:e.formats}):e.adapter);return ne(t.current,r=>{n.locale=e.locale[r]??r??n.locale}),n}const Ke=Symbol.for("vuetify:display"),_t={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:840,lg:1145,xl:1545,xxl:2138}},go=(e=_t)=>M(_t,e);function $t(e){return P&&!e?window.innerWidth:typeof e=="object"&&e.clientWidth||0}function Lt(e){return P&&!e?window.innerHeight:typeof e=="object"&&e.clientHeight||0}function Rt(e){const t=P&&!e?window.navigator.userAgent:"ssr";function n(g){return!!t.match(g)}const r=n(/android/i),s=n(/iphone|ipad|ipod/i),a=n(/cordova/i),o=n(/electron/i),i=n(/chrome/i),u=n(/edge/i),c=n(/firefox/i),l=n(/opera/i),f=n(/win/i),m=n(/mac/i),v=n(/linux/i);return{android:r,ios:s,cordova:a,electron:o,chrome:i,edge:u,firefox:c,opera:l,win:f,mac:m,linux:v,touch:cr,ssr:t==="ssr"}}function bo(e,t){const{thresholds:n,mobileBreakpoint:r}=go(e),s=R(Lt(t)),a=R(Rt(t)),o=U({}),i=R($t(t));function u(){s.value=Lt(),i.value=$t()}function c(){u(),a.value=Rt()}return $e(()=>{const l=i.value<n.sm,f=i.value<n.md&&!l,m=i.value<n.lg&&!(f||l),v=i.value<n.xl&&!(m||f||l),g=i.value<n.xxl&&!(v||m||f||l),S=i.value>=n.xxl,T=l?"xs":f?"sm":m?"md":v?"lg":g?"xl":"xxl",d=typeof r=="number"?r:n[r],h=i.value<d;o.xs=l,o.sm=f,o.md=m,o.lg=v,o.xl=g,o.xxl=S,o.smAndUp=!l,o.mdAndUp=!(l||f),o.lgAndUp=!(l||f||m),o.xlAndUp=!(l||f||m||v),o.smAndDown=!(m||v||g||S),o.mdAndDown=!(v||g||S),o.lgAndDown=!(g||S),o.xlAndDown=!S,o.name=T,o.height=s.value,o.width=i.value,o.mobile=h,o.mobileBreakpoint=r,o.platform=a.value,o.thresholds=n}),P&&(window.addEventListener("resize",u,{passive:!0}),Qe(()=>{window.removeEventListener("resize",u)},!0)),{...Hn(o),update:c,ssr:!!t}}const aa=V({mobile:{type:Boolean,default:!1},mobileBreakpoint:[Number,String]},"display");function ia(e={mobile:null},t=Wr()){const n=N(Ke);if(!n)throw new Error("Could not find Vuetify display injection");const r=b(()=>e.mobile?!0:typeof e.mobileBreakpoint=="number"?n.width.value<e.mobileBreakpoint:e.mobileBreakpoint?n.width.value<n.thresholds.value[e.mobileBreakpoint]:e.mobile===null?n.mobile.value:!1),s=C(()=>t?{[`${t}--mobile`]:r.value}:{});return{...n,displayClasses:s,mobile:r}}const vn=Symbol.for("vuetify:goto");function gn(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:zr}}function wo(e){return at(e)??(document.scrollingElement||document.body)}function at(e){return typeof e=="string"?document.querySelector(e):Qt(e)}function je(e,t,n){if(typeof e=="number")return t&&n?-e:e;let r=at(e),s=0;for(;r;)s+=t?r.offsetLeft:r.offsetTop,r=r.offsetParent;return s}function So(e,t){return{rtl:t.isRtl,options:M(gn(),e)}}async function Nt(e,t,n,r){const s=n?"scrollLeft":"scrollTop",a=M(r?.options??gn(),t),o=r?.rtl.value,i=(typeof e=="number"?e:at(e))??0,u=a.container==="parent"&&i instanceof HTMLElement?i.parentElement:wo(a.container),c=ur()?a.patterns.instant:typeof a.easing=="function"?a.easing:a.patterns[a.easing];if(!c)throw new TypeError(`Easing function "${a.easing}" not found.`);let l;if(typeof i=="number")l=je(i,n,o);else if(l=je(i,n,o)-je(u,n,o),a.layout){const g=window.getComputedStyle(i).getPropertyValue("--v-layout-top");g&&(l-=parseInt(g,10))}l+=a.offset,l=Do(u,l,!!o,!!n);const f=u[s]??0;if(l===f)return Promise.resolve(l);const m=performance.now();return new Promise(v=>requestAnimationFrame(function g(S){const d=(S-m)/a.duration,h=Math.floor(f+(l-f)*c(et(d,0,1)));if(u[s]=h,d>=1&&Math.abs(h-u[s])<10)return v(l);if(d>2)return v(u[s]);requestAnimationFrame(g)}))}function ca(e={}){const t=N(vn),{isRtl:n}=fn();if(!t)throw new Error("[Vuetify] Could not find injected goto instance");const r={...t,rtl:C(()=>t.rtl.value||n.value)};async function s(a,o){return Nt(a,M(e,o),!1,r)}return s.horizontal=async(a,o)=>Nt(a,M(e,o),!0,r),s}function Do(e,t,n,r){const{scrollWidth:s,scrollHeight:a}=e,[o,i]=e===document.scrollingElement?[window.innerWidth,window.innerHeight]:[e.offsetWidth,e.offsetHeight];let u,c;return r?n?(u=-(s-o),c=0):(u=0,c=s-o):(u=0,c=a+-i),et(t,u,c)}function bn(e={}){const{blueprint:t,...n}=e,r=M(t,n),{aliases:s={},components:a={},directives:o={}}=r,i=Ue();return i.run(()=>{const u=Yr(r.defaults),c=bo(r.display,r.ssr),l=hs(r.theme),f=Os(r.icons),m=rs(r.locale),v=yo(r.date,m),g=So(r.goTo,m);function S(d){for(const y in o)d.directive(y,o[y]);for(const y in a)d.component(y,a[y]);for(const y in s)d.component(y,we({...s[y],name:y,aliasName:s[y].name}));const h=Ue();if(h.run(()=>{l.install(d)}),d.onUnmount(()=>h.stop()),d.provide(ie,u),d.provide(Ke,c),d.provide(ye,l),d.provide(Ge,f),d.provide(Ie,m),d.provide(po,v.options),d.provide(Ft,v.instance),d.provide(vn,g),P&&r.ssr)if(d.$nuxt)d.$nuxt.hook("app:suspense:resolve",()=>{c.update()});else{const{mount:y}=d;d.mount=(...x)=>{const I=y(...x);return Wn(()=>c.update()),d.mount=y,I}}d.mixin({computed:{$vuetify(){return U({defaults:oe.call(this,ie),display:oe.call(this,Ke),theme:oe.call(this,ye),icons:oe.call(this,Ge),locale:oe.call(this,Ie),date:oe.call(this,Ft)})}}})}function T(){i.stop()}return{install:S,unmount:T,defaults:u,display:c,theme:l,icons:f,locale:m,date:v,goTo:g}})}const ko="4.0.4";bn.version=ko;function oe(e){const t=this.$,n=t.parent?.provides??t.vnode.appContext?.provides;if(n&&e in n)return n[e]}const Eo=bn({theme:{defaultTheme:"dark",themes:{dark:{dark:!0,colors:{background:"#0d1117",surface:"#161b22","surface-variant":"#21262d",primary:"#58a6ff",secondary:"#8b949e",success:"#3fb950",error:"#f85149",warning:"#d29922",info:"#58a6ff"}},light:{dark:!1,colors:{background:"#ffffff",surface:"#f6f8fa","surface-variant":"#eaeef2",primary:"#0969da",secondary:"#57606a",success:"#1a7f37",error:"#cf222e",warning:"#9a6700",info:"#0969da"}}}},defaults:{VCard:{variant:"outlined",density:"comfortable"},VChip:{size:"small",variant:"tonal"},VTextField:{variant:"outlined",density:"compact",hideDetails:!0},VSelect:{variant:"outlined",density:"compact",hideDetails:!0},VBtn:{variant:"text",size:"small"}}}),xo="modulepreload",Co=function(e){return"/ui/"+e},Vt={},B=function(t,n,r){let s=Promise.resolve();if(n&&n.length>0){let u=function(c){return Promise.all(c.map(l=>Promise.resolve(l).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),i=o?.nonce||o?.getAttribute("nonce");s=u(n.map(c=>{if(c=Co(c),c in Vt)return;Vt[c]=!0;const l=c.endsWith(".css"),f=l?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${f}`))return;const m=document.createElement("link");if(m.rel=l?"stylesheet":xo,l||(m.as="script"),m.crossOrigin="",m.href=c,i&&m.setAttribute("nonce",i),document.head.appendChild(m),l)return new Promise((v,g)=>{m.addEventListener("load",v),m.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${c}`)))})}))}function a(o){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=o,window.dispatchEvent(i),!i.defaultPrevented)throw o}return s.then(o=>{for(const i of o||[])i.status==="rejected"&&a(i.reason);return t().catch(a)})},To=Bn({history:Yn("/ui/"),routes:[{path:"/",redirect:"/v/dashboard"},{path:"/history",name:"history",component:()=>B(()=>import("./HistoryPage-rhEb_UZG.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9]))},{path:"/logs",name:"logs",component:()=>B(()=>import("./LogsPage-CNXQuqMj.js"),__vite__mapDeps([10,7,11,2,12]))},{path:"/dashboard",name:"dashboard",component:()=>B(()=>import("./DashboardPage-CgXivoWS.js"),__vite__mapDeps([13,14,2,15,7,16,17]))},{path:"/models",name:"models",component:()=>B(()=>import("./ModelsPage-Bpi7Y9GS.js"),__vite__mapDeps([18,2,3,4,5,19]))},{path:"/usage",name:"usage",component:()=>B(()=>import("./UsagePage-CZfgTYCP.js"),__vite__mapDeps([20,2,14,15,7,6,16,21]))},{path:"/v/history",name:"v-history",component:()=>B(()=>import("./VHistoryPage-Dj0qUmWz.js"),__vite__mapDeps([22,1,2,3,4,5,6,7,8,23,24,25,26,27,28,29,30,31,32,33]))},{path:"/v/logs",name:"v-logs",component:()=>B(()=>import("./VLogsPage-BOA_17HS.js"),__vite__mapDeps([34,7,11,2,24,25,23,26,35,36,37]))},{path:"/v/dashboard",name:"v-dashboard",component:()=>B(()=>import("./VDashboardPage-DXtj4agW.js"),__vite__mapDeps([38,28,2,24,25,29,35,23,26,36,30,31,7,16,39]))},{path:"/v/models",name:"v-models",component:()=>B(()=>import("./VModelsPage-D-IbiiwR.js"),__vite__mapDeps([40,2,27,23,24,25,26,28,29,30,31,32,35,36,41]))},{path:"/v/usage",name:"v-usage",component:()=>B(()=>import("./VUsagePage-B8WkBKET.js"),__vite__mapDeps([42,7,6,2,16,24,25,28,29,43]))}]}),it=jn(Cs);it.use(Eo);it.use(To);it.mount("#app");export{Io as $,ea as A,Qo as B,Lo as C,Jo as D,jo as E,P as F,hr as G,K as H,Ts as I,Ho as J,Fo as K,Yo as L,_o as M,ra as N,Bo as O,ur as P,lr as Q,Ro as R,zn as S,gr as T,pr as U,yr as V,sr as W,Uo as X,Gr as Y,$o as Z,Le as _,fe as a,zo as a0,Ko as a1,vr as a2,we as a3,ir as a4,Go as a5,de as a6,No as a7,sa as a8,oa as a9,mr as aa,Wo as ab,Oo as ac,Zo as ad,mt as ae,Mo as af,ca as ag,Pr as ah,qo as ai,z as aj,Hr as ak,et as b,Y as c,fn as d,ia as e,Jr as f,rt as g,ws as h,na as i,Xo as j,on as k,V as l,as as m,Ss as n,Jt as o,ps as p,ta as q,aa as r,Kt as s,Ut as t,Qr as u,bs as v,gs as w,Po as x,Vo as y,Wr as z};
@@ -0,0 +1 @@
1
+ function f(){function i(t){const e=new Date(t),r=String(e.getHours()).padStart(2,"0"),n=String(e.getMinutes()).padStart(2,"0"),a=String(e.getSeconds()).padStart(2,"0");return`${r}:${n}:${a}`}function c(t){const e=new Date(t),r=new Date;if(e.toDateString()===r.toDateString())return i(t);const n=e.getFullYear(),a=String(e.getMonth()+1).padStart(2,"0"),s=String(e.getDate()).padStart(2,"0");return`${n}-${a}-${s} ${i(t)}`}function u(t){return t==null?"-":t>=1e6?(t/1e6).toFixed(1)+"M":t>=1e3?(t/1e3).toFixed(1)+"K":t.toString()}function l(t){return t?t<1e3?`${t}ms`:`${(t/1e3).toFixed(1)}s`:"-"}function o(t){return t?t.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;"):""}function g(t,e){if(!e||!t)return o(t);const r=o(t),n=e.replaceAll(/[.*+?^${}()|[\]\\]/g,String.raw`\$&`),a=new RegExp("("+o(n)+")","gi");return r.replace(a,'<mark class="search-highlight">$1</mark>')}return{formatTime:i,formatDate:c,formatNumber:u,formatDuration:l,escapeHtml:o,highlightSearch:g}}export{f as u};
@@ -0,0 +1 @@
1
+ import{m as t}from"./vue-Bmo88J5t.js";function e(){const r=t("historyStore");if(!r)throw new Error("historyStore injection missing");return r}export{e as u};
@@ -0,0 +1 @@
1
+ import{a as r,W as c}from"./index-cupXJxSz.js";import{I as f,Q as v,r as o}from"./vue-Bmo88J5t.js";const p=200;function h(){const t=o([]),a=o(!0),l=o(!1);let e=null;function s(n){t.value=[n,...t.value].slice(0,p)}function u(n){t.value=t.value.map(i=>i.id===n.id?n:i)}async function d(){a.value=!0;try{const n=await r.fetchEntries({limit:100});t.value=n.entries}catch{}finally{a.value=!1}}return f(()=>{d(),e=new c({topics:["history"],onEntryAdded:s,onEntryUpdated:u,onHistoryCleared:()=>{t.value=[]},onStatusChange:n=>{l.value=n}}),e.connect()}),v(()=>{e?.disconnect(),e=null}),{entries:t,loading:a,wsConnected:l}}export{h as u};
@@ -0,0 +1 @@
1
+ import{I as i,Q as c,r}from"./vue-Bmo88J5t.js";function v(u,s){const a=r(null),o=r(!0),l=r(null);let e=null;async function t(){try{const n=await u();a.value=n,l.value=null}catch(n){l.value=n instanceof Error?n.message:"Failed to fetch"}finally{o.value=!1}}return i(()=>{t(),e=setInterval(()=>{t()},s)}),c(()=>{e&&(clearInterval(e),e=null)}),{data:a,loading:o,error:l,refresh:t}}export{v as u};
@@ -0,0 +1,125 @@
1
+ import{w as ot,a as at,r as st,b as lt,n as ct,d as ut,c as dt,e as ft,f as ht,F as pt}from"./vue-Bmo88J5t.js";var mt={207:(r,n,t)=>{r.exports=t(452)},452:r=>{var n=(function(t){var e,i=Object.prototype,c=i.hasOwnProperty,a=typeof Symbol=="function"?Symbol:{},s=a.iterator||"@@iterator",p=a.asyncIterator||"@@asyncIterator",h=a.toStringTag||"@@toStringTag";function v(d,f,x){return Object.defineProperty(d,f,{value:x,enumerable:!0,configurable:!0,writable:!0}),d[f]}try{v({},"")}catch{v=function(f,x,D){return f[x]=D}}function j(d,f,x,D){var l=f&&f.prototype instanceof E?f:E,O=Object.create(l.prototype),y=new L(D||[]);return O._invoke=(function(_,G,V){var z=u;return function($,X){if(z===N)throw new Error("Generator is already running");if(z===g){if($==="throw")throw X;return R()}for(V.method=$,V.arg=X;;){var Y=V.delegate;if(Y){var J=F(Y,V);if(J){if(J===C)continue;return J}}if(V.method==="next")V.sent=V._sent=V.arg;else if(V.method==="throw"){if(z===u)throw z=g,V.arg;V.dispatchException(V.arg)}else V.method==="return"&&V.abrupt("return",V.arg);z=N;var ee=H(_,G,V);if(ee.type==="normal"){if(z=V.done?g:m,ee.arg===C)continue;return{value:ee.arg,done:V.done}}ee.type==="throw"&&(z=g,V.method="throw",V.arg=ee.arg)}}})(d,x,y),O}function H(d,f,x){try{return{type:"normal",arg:d.call(f,x)}}catch(D){return{type:"throw",arg:D}}}t.wrap=j;var u="suspendedStart",m="suspendedYield",N="executing",g="completed",C={};function E(){}function S(){}function M(){}var A={};v(A,s,(function(){return this}));var I=Object.getPrototypeOf,B=I&&I(I(k([])));B&&B!==i&&c.call(B,s)&&(A=B);var o=M.prototype=E.prototype=Object.create(A);function b(d){["next","throw","return"].forEach((function(f){v(d,f,(function(x){return this._invoke(f,x)}))}))}function w(d,f){function x(l,O,y,_){var G=H(d[l],d,O);if(G.type!=="throw"){var V=G.arg,z=V.value;return z&&typeof z=="object"&&c.call(z,"__await")?f.resolve(z.__await).then((function($){x("next",$,y,_)}),(function($){x("throw",$,y,_)})):f.resolve(z).then((function($){V.value=$,y(V)}),(function($){return x("throw",$,y,_)}))}_(G.arg)}var D;this._invoke=function(l,O){function y(){return new f((function(_,G){x(l,O,_,G)}))}return D=D?D.then(y,y):y()}}function F(d,f){var x=d.iterator[f.method];if(x===e){if(f.delegate=null,f.method==="throw"){if(d.iterator.return&&(f.method="return",f.arg=e,F(d,f),f.method==="throw"))return C;f.method="throw",f.arg=new TypeError("The iterator does not provide a 'throw' method")}return C}var D=H(x,d.iterator,f.arg);if(D.type==="throw")return f.method="throw",f.arg=D.arg,f.delegate=null,C;var l=D.arg;return l?l.done?(f[d.resultName]=l.value,f.next=d.nextLoc,f.method!=="return"&&(f.method="next",f.arg=e),f.delegate=null,C):l:(f.method="throw",f.arg=new TypeError("iterator result is not an object"),f.delegate=null,C)}function W(d){var f={tryLoc:d[0]};1 in d&&(f.catchLoc=d[1]),2 in d&&(f.finallyLoc=d[2],f.afterLoc=d[3]),this.tryEntries.push(f)}function T(d){var f=d.completion||{};f.type="normal",delete f.arg,d.completion=f}function L(d){this.tryEntries=[{tryLoc:"root"}],d.forEach(W,this),this.reset(!0)}function k(d){if(d){var f=d[s];if(f)return f.call(d);if(typeof d.next=="function")return d;if(!isNaN(d.length)){var x=-1,D=function l(){for(;++x<d.length;)if(c.call(d,x))return l.value=d[x],l.done=!1,l;return l.value=e,l.done=!0,l};return D.next=D}}return{next:R}}function R(){return{value:e,done:!0}}return S.prototype=M,v(o,"constructor",M),v(M,"constructor",S),S.displayName=v(M,h,"GeneratorFunction"),t.isGeneratorFunction=function(d){var f=typeof d=="function"&&d.constructor;return!!f&&(f===S||(f.displayName||f.name)==="GeneratorFunction")},t.mark=function(d){return Object.setPrototypeOf?Object.setPrototypeOf(d,M):(d.__proto__=M,v(d,h,"GeneratorFunction")),d.prototype=Object.create(o),d},t.awrap=function(d){return{__await:d}},b(w.prototype),v(w.prototype,p,(function(){return this})),t.AsyncIterator=w,t.async=function(d,f,x,D,l){l===void 0&&(l=Promise);var O=new w(j(d,f,x,D),l);return t.isGeneratorFunction(f)?O:O.next().then((function(y){return y.done?y.value:O.next()}))},b(o),v(o,h,"Generator"),v(o,s,(function(){return this})),v(o,"toString",(function(){return"[object Generator]"})),t.keys=function(d){var f=[];for(var x in d)f.push(x);return f.reverse(),function D(){for(;f.length;){var l=f.pop();if(l in d)return D.value=l,D.done=!1,D}return D.done=!0,D}},t.values=k,L.prototype={constructor:L,reset:function(d){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(T),!d)for(var f in this)f.charAt(0)==="t"&&c.call(this,f)&&!isNaN(+f.slice(1))&&(this[f]=e)},stop:function(){this.done=!0;var d=this.tryEntries[0].completion;if(d.type==="throw")throw d.arg;return this.rval},dispatchException:function(d){if(this.done)throw d;var f=this;function x(G,V){return O.type="throw",O.arg=d,f.next=G,V&&(f.method="next",f.arg=e),!!V}for(var D=this.tryEntries.length-1;D>=0;--D){var l=this.tryEntries[D],O=l.completion;if(l.tryLoc==="root")return x("end");if(l.tryLoc<=this.prev){var y=c.call(l,"catchLoc"),_=c.call(l,"finallyLoc");if(y&&_){if(this.prev<l.catchLoc)return x(l.catchLoc,!0);if(this.prev<l.finallyLoc)return x(l.finallyLoc)}else if(y){if(this.prev<l.catchLoc)return x(l.catchLoc,!0)}else{if(!_)throw new Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return x(l.finallyLoc)}}}},abrupt:function(d,f){for(var x=this.tryEntries.length-1;x>=0;--x){var D=this.tryEntries[x];if(D.tryLoc<=this.prev&&c.call(D,"finallyLoc")&&this.prev<D.finallyLoc){var l=D;break}}l&&(d==="break"||d==="continue")&&l.tryLoc<=f&&f<=l.finallyLoc&&(l=null);var O=l?l.completion:{};return O.type=d,O.arg=f,l?(this.method="next",this.next=l.finallyLoc,C):this.complete(O)},complete:function(d,f){if(d.type==="throw")throw d.arg;return d.type==="break"||d.type==="continue"?this.next=d.arg:d.type==="return"?(this.rval=this.arg=d.arg,this.method="return",this.next="end"):d.type==="normal"&&f&&(this.next=f),C},finish:function(d){for(var f=this.tryEntries.length-1;f>=0;--f){var x=this.tryEntries[f];if(x.finallyLoc===d)return this.complete(x.completion,x.afterLoc),T(x),C}},catch:function(d){for(var f=this.tryEntries.length-1;f>=0;--f){var x=this.tryEntries[f];if(x.tryLoc===d){var D=x.completion;if(D.type==="throw"){var l=D.arg;T(x)}return l}}throw new Error("illegal catch attempt")},delegateYield:function(d,f,x){return this.delegate={iterator:k(d),resultName:f,nextLoc:x},this.method==="next"&&(this.arg=e),C}},t})(r.exports);try{regeneratorRuntime=n}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}},je={};function te(r){var n=je[r];if(n!==void 0)return n.exports;var t=je[r]={exports:{}};return mt[r](t,t.exports,te),t.exports}te.n=r=>{var n=r&&r.__esModule?()=>r.default:()=>r;return te.d(n,{a:n}),n},te.d=(r,n)=>{for(var t in n)te.o(n,t)&&!te.o(r,t)&&Object.defineProperty(r,t,{enumerable:!0,get:n[t]})},te.o=(r,n)=>Object.prototype.hasOwnProperty.call(r,n);var Xe={};function Ne(r,n){(n==null||n>r.length)&&(n=r.length);for(var t=0,e=new Array(n);t<n;t++)e[t]=r[t];return e}function Ye(r,n){if(r){if(typeof r=="string")return Ne(r,n);var t=Object.prototype.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Ne(r,n):void 0}}function de(r){return(function(n){if(Array.isArray(n))return Ne(n)})(r)||(function(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)})(r)||Ye(r)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function ue(r,n,t){return n in r?Object.defineProperty(r,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[n]=t,r}te.d(Xe,{A:()=>Nt});const P=(Pe={Fragment:()=>pt,computed:()=>ht,createTextVNode:()=>ft,createVNode:()=>dt,defineComponent:()=>ut,nextTick:()=>ct,reactive:()=>lt,ref:()=>st,watch:()=>at,watchEffect:()=>ot},ge={},te.d(ge,Pe),ge),gt=(0,P.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var r=this.data,n=this.onClick;return(0,P.createVNode)("span",{class:"vjs-tree-brackets",onClick:n},[r])}}),bt=(0,P.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(r,n){var t=n.emit;return{uiType:(0,P.computed)((function(){return r.isMultiple?"checkbox":"radio"})),model:(0,P.computed)({get:function(){return r.checked},set:function(e){return t("update:modelValue",e)}})}},render:function(){var r=this.uiType,n=this.model,t=this.$emit;return(0,P.createVNode)("label",{class:["vjs-check-controller",n?"is-checked":""],onClick:function(e){return e.stopPropagation()}},[(0,P.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(r)},null),(0,P.createVNode)("input",{checked:n,class:"vjs-check-controller-original is-".concat(r),type:r,onChange:function(){return t("change",n)}},null)])}}),vt=(0,P.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var r=this.nodeType,n=this.onClick,t=r==="objectStart"||r==="arrayStart";return t||r==="objectCollapsed"||r==="arrayCollapsed"?(0,P.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(t?"open":"close"),onClick:n},[(0,P.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,P.createVNode)("path",{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"},null)])]):null}});var Pe,ge;function xe(r){return xe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xe(r)}function Qe(r){return Object.prototype.toString.call(r).slice(8,-1).toLowerCase()}function oe(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,e=(arguments.length>3?arguments[3]:void 0)||{},i=e.key,c=e.index,a=e.type,s=a===void 0?"content":a,p=e.showComma,h=p!==void 0&&p,v=e.length,j=v===void 0?1:v,H=Qe(r);if(H==="array"){var u=Ie(r.map((function(g,C,E){return oe(g,"".concat(n,"[").concat(C,"]"),t+1,{index:C,showComma:C!==E.length-1,length:j,type:s})})));return[oe("[",n,t,{showComma:!1,key:i,length:r.length,type:"arrayStart"})[0]].concat(u,oe("]",n,t,{showComma:h,length:r.length,type:"arrayEnd"})[0])}if(H==="object"){var m=Object.keys(r),N=Ie(m.map((function(g,C,E){return oe(r[g],/^[a-zA-Z_]\w*$/.test(g)?"".concat(n,".").concat(g):"".concat(n,'["').concat(g,'"]'),t+1,{key:g,showComma:C!==E.length-1,length:j,type:s})})));return[oe("{",n,t,{showComma:!1,key:i,index:c,length:m.length,type:"objectStart"})[0]].concat(N,oe("}",n,t,{showComma:h,length:m.length,type:"objectEnd"})[0])}return[{content:r,level:t,key:i,index:c,path:n,showComma:h,length:j,type:s}]}function Ie(r){if(typeof Array.prototype.flat=="function")return r.flat();for(var n=de(r),t=[];n.length;){var e=n.shift();Array.isArray(e)?n.unshift.apply(n,de(e)):t.push(e)}return t}function Ce(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(r==null)return r;if(r instanceof Date)return new Date(r);if(r instanceof RegExp)return new RegExp(r);if(xe(r)!=="object")return r;if(n.get(r))return n.get(r);if(Array.isArray(r)){var t=r.map((function(c){return Ce(c,n)}));return n.set(r,t),t}var e={};for(var i in r)e[i]=Ce(r[i],n);return n.set(r,e),e}function Fe(r,n,t,e,i,c,a){try{var s=r[c](a),p=s.value}catch(h){return void t(h)}s.done?n(p):Promise.resolve(p).then(e,i)}var yt=te(207),Ae=te.n(yt);function De(r,n){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(r);n&&(e=e.filter((function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),t.push.apply(t,e)}return t}function He(r){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?De(Object(t),!0).forEach((function(e){ue(r,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):De(Object(t)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))}))}return r}var Je={data:{type:[String,Number,Boolean,Array,Object],default:null},rootPath:{type:String,default:"root"},indent:{type:Number,default:2},showLength:{type:Boolean,default:!1},showDoubleQuotes:{type:Boolean,default:!0},renderNodeKey:Function,renderNodeValue:Function,renderNodeActions:{type:[Boolean,Function],default:void 0},selectableType:String,showSelectController:{type:Boolean,default:!1},showLine:{type:Boolean,default:!0},showLineNumber:{type:Boolean,default:!1},selectOnClickNode:{type:Boolean,default:!0},nodeSelectable:{type:Function,default:function(){return!0}},highlightSelectedNode:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!1},theme:{type:String,default:"light"},showKeyValueSpace:{type:Boolean,default:!0},editable:{type:Boolean,default:!1},editableTrigger:{type:String,default:"click"},onNodeClick:{type:Function},onNodeMouseover:{type:Function},onBracketsClick:{type:Function},onIconClick:{type:Function},onValueChange:{type:Function}};const wt=(0,P.defineComponent)({name:"TreeNode",props:He(He({},Je),{},{node:{type:Object,required:!0},collapsed:Boolean,checked:Boolean,style:Object,onSelectedChange:{type:Function}}),emits:["nodeClick","nodeMouseover","bracketsClick","iconClick","selectedChange","valueChange"],setup:function(r,n){var t=n.emit,e=(0,P.computed)((function(){return Qe(r.node.content)})),i=(0,P.computed)((function(){return"vjs-value vjs-value-".concat(e.value)})),c=(0,P.computed)((function(){return r.showDoubleQuotes?'"'.concat(r.node.key,'"'):r.node.key})),a=(0,P.computed)((function(){return r.selectableType==="multiple"})),s=(0,P.computed)((function(){return r.selectableType==="single"})),p=(0,P.computed)((function(){return r.nodeSelectable(r.node)&&(a.value||s.value)})),h=(0,P.reactive)({editing:!1}),v=function(I){var B,o,b=(o=(B=I.target)===null||B===void 0?void 0:B.value)==="null"?null:o==="undefined"?void 0:o==="true"||o!=="false"&&(o[0]+o[o.length-1]==='""'||o[0]+o[o.length-1]==="''"?o.slice(1,-1):typeof Number(o)=="number"&&!isNaN(Number(o))||o==="NaN"?Number(o):o);t("valueChange",b,r.node.path)},j=(0,P.computed)((function(){var I,B=(I=r.node)===null||I===void 0?void 0:I.content;return B===null?B="null":B===void 0&&(B="undefined"),e.value==="string"?'"'.concat(B,'"'):B+""})),H=function(){var I=r.renderNodeValue;return I?I({node:r.node,defaultValue:j.value}):j.value},u=function(){t("bracketsClick",!r.collapsed,r.node)},m=function(){t("iconClick",!r.collapsed,r.node)},N=function(){t("selectedChange",r.node)},g=function(){t("nodeClick",r.node),p.value&&r.selectOnClickNode&&t("selectedChange",r.node)},C=function(){t("nodeMouseover",r.node)},E=function(I){if(r.editable&&!h.editing){h.editing=!0;var B=function o(b){var w;b.target!==I.target&&((w=b.target)===null||w===void 0?void 0:w.parentElement)!==I.target&&(h.editing=!1,document.removeEventListener("click",o))};document.removeEventListener("click",B),document.addEventListener("click",B)}},S=(function(){var I=(0,P.ref)(!1),B=(function(){var o,b=(o=Ae().mark((function w(F){return Ae().wrap((function(W){for(;;)switch(W.prev=W.next){case 0:return W.prev=0,W.next=3,navigator.clipboard.writeText(F);case 3:I.value=!0,setTimeout((function(){I.value=!1}),300),W.next=10;break;case 7:W.prev=7,W.t0=W.catch(0),console.error("[vue-json-pretty] Copy failed: ",W.t0);case 10:case"end":return W.stop()}}),w,null,[[0,7]])})),function(){var w=this,F=arguments;return new Promise((function(W,T){var L=o.apply(w,F);function k(d){Fe(L,W,T,k,R,"next",d)}function R(d){Fe(L,W,T,k,R,"throw",d)}k(void 0)}))});return function(w){return b.apply(this,arguments)}})();return{copy:B}})().copy,M=function(){var I=r.node,B=I.key,o=I.path,b=r.rootPath,w=new Function("data","return data".concat(o.slice(b.length)))(r.data),F=JSON.stringify(B?ue({},B,w):w,null,2);S(F)},A=function(){var I=r.renderNodeActions;if(!I)return null;var B={copy:M};return typeof I=="function"?I({node:r.node,defaultActions:B}):(0,P.createVNode)("span",{onClick:M,class:"vjs-tree-node-actions-item"},[(0,P.createTextVNode)("copy")])};return function(){var I,B=r.node;return(0,P.createVNode)("div",{class:{"vjs-tree-node":!0,"has-selector":r.showSelectController,"has-carets":r.showIcon,"is-highlight":r.highlightSelectedNode&&r.checked,dark:r.theme==="dark"},onClick:g,onMouseover:C,style:r.style},[r.showLineNumber&&(0,P.createVNode)("span",{class:"vjs-node-index"},[B.id+1]),r.showSelectController&&p.value&&B.type!=="objectEnd"&&B.type!=="arrayEnd"&&(0,P.createVNode)(bt,{isMultiple:a.value,checked:r.checked,onChange:N},null),(0,P.createVNode)("div",{class:"vjs-indent"},[Array.from(Array(B.level)).map((function(o,b){return(0,P.createVNode)("div",{key:b,class:{"vjs-indent-unit":!0,"has-line":r.showLine}},[Array.from(Array(r.indent)).map((function(){return(0,P.createVNode)(P.Fragment,null,[(0,P.createTextVNode)(" ")])}))])})),r.showIcon&&(0,P.createVNode)(vt,{nodeType:B.type,onClick:m},null)]),B.key&&(0,P.createVNode)("span",{class:"vjs-key"},[(I=r.renderNodeKey,I?I({node:r.node,defaultKey:c.value||""}):c.value),(0,P.createVNode)("span",{class:"vjs-colon"},[":".concat(r.showKeyValueSpace?" ":"")])]),(0,P.createVNode)("span",null,[B.type!=="content"&&B.content?(0,P.createVNode)(gt,{data:B.content.toString(),onClick:u},null):(0,P.createVNode)("span",{class:i.value,onClick:!r.editable||r.editableTrigger&&r.editableTrigger!=="click"?void 0:E,onDblclick:r.editable&&r.editableTrigger==="dblclick"?E:void 0},[r.editable&&h.editing?(0,P.createVNode)("input",{value:j.value,onChange:v,style:{padding:"3px 8px",border:"1px solid #eee",boxShadow:"none",boxSizing:"border-box",borderRadius:5,fontFamily:"inherit"}},null):H()]),B.showComma&&(0,P.createVNode)("span",null,[","]),r.showLength&&r.collapsed&&(0,P.createVNode)("span",{class:"vjs-comment"},[(0,P.createTextVNode)(" // "),B.length,(0,P.createTextVNode)(" items ")])]),r.renderNodeActions&&(0,P.createVNode)("span",{class:"vjs-tree-node-actions"},[A()])])}}});function Me(r,n){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(r);n&&(e=e.filter((function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),t.push.apply(t,e)}return t}function Z(r){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?arguments[n]:{};n%2?Me(Object(t),!0).forEach((function(e){ue(r,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Me(Object(t)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))}))}return r}const Nt=(0,P.defineComponent)({name:"Tree",props:Z(Z({},Je),{},{collapsedNodeLength:{type:Number,default:1/0},deep:{type:Number,default:1/0},pathCollapsible:{type:Function,default:function(){return!1}},virtual:{type:Boolean,default:!1},height:{type:Number,default:400},itemHeight:{type:Number,default:20},dynamicHeight:{type:Boolean,default:!0},selectedValue:{type:[String,Array],default:function(){return""}},collapsedOnClickBrackets:{type:Boolean,default:!0},style:Object,onSelectedChange:{type:Function},theme:{type:String,default:"light"}}),slots:["renderNodeKey","renderNodeValue","renderNodeActions"],emits:["nodeClick","nodeMouseover","bracketsClick","iconClick","selectedChange","update:selectedValue","update:data"],setup:function(r,n){var t=n.emit,e=n.slots,i=(0,P.ref)(),c=(0,P.computed)((function(){return oe(r.data,r.rootPath)})),a=function(T,L){return c.value.reduce((function(k,R){var d,f=R.level>=T||R.length>=L,x=(d=r.pathCollapsible)===null||d===void 0?void 0:d.call(r,R);return R.type!=="objectStart"&&R.type!=="arrayStart"||!f&&!x?k:Z(Z({},k),{},ue({},R.path,1))}),{})},s=(0,P.reactive)({translateY:0,visibleData:null,hiddenPaths:a(r.deep,r.collapsedNodeLength),startIndex:0,endIndex:0}),p=[],h=[],v=0,j={},H=function(T){p=Array(T).fill(0).map((function(){return r.itemHeight||20})),(h=new Array(T+1))[0]=0;for(var L=0;L<T;L++)h[L+1]=h[L]+p[L];v=h[T]||0},u=function(T){var L=p.length;T<0&&(T=0),T>L&&(T=L);for(var k=T;k<L;k++)h[k+1]=h[k]+p[k];v=h[L]||0},m=function(T,L){for(var k=0,R=T.length-1;k<R;){var d=k+R>>>1;T[d]<L?k=d+1:R=d}return k},N=(0,P.computed)((function(){for(var T=null,L=[],k=c.value.length,R=0;R<k;R++){var d=Z(Z({},c.value[R]),{},{id:R}),f=s.hiddenPaths[d.path];if(T&&T.path===d.path){var x=T.type==="objectStart",D=Z(Z(Z({},d),T),{},{showComma:d.showComma,content:x?"{...}":"[...]",type:x?"objectCollapsed":"arrayCollapsed"});T=null,L.push(D)}else{if(f&&!T){T=d;continue}if(T)continue;L.push(d)}}return L})),g=(0,P.computed)((function(){var T=r.selectedValue;return T&&r.selectableType==="multiple"&&Array.isArray(T)?T:[T]})),C=(0,P.computed)((function(){return!r.selectableType||r.selectOnClickNode||r.showSelectController?"":"When selectableType is not null, selectOnClickNode and showSelectController cannot be false at the same time, because this will cause the selection to fail."})),E=(0,P.computed)((function(){return r.dynamicHeight?v||0:N.value.length*r.itemHeight})),S=function T(){var L=N.value;if(L)if(r.virtual){var k,R=((k=i.value)===null||k===void 0?void 0:k.scrollTop)||0;if(r.dynamicHeight){p.length!==L.length&&H(L.length);var d=(function(G){var V=m(h,G+1e-4);return Math.max(0,Math.min(V-1,p.length-1))})(R),f=(function(G,V){var z=m(h,G+V);return Math.max(0,Math.min(z+1,p.length))})(R,r.height),x=Math.max(0,d-5),D=Math.min(L.length,f+5);s.startIndex=x,s.endIndex=D,s.translateY=h[x]||0,s.visibleData=L.slice(x,D),(0,P.nextTick)().then((function(){for(var G=!1,V=s.startIndex;V<s.endIndex;V++){var z=j[V];if(z){var $=z.offsetHeight;$&&p[V]!==$&&(p[V]=$,h[V+1]=h[V]+p[V],u(V+1),G=!0)}}G&&T()}))}else{var l=r.height/r.itemHeight,O=Math.floor(R/r.itemHeight),y=O<0?0:O+l>L.length?L.length-l:O;y<0&&(y=0);var _=y+l;s.translateY=y*r.itemHeight,s.startIndex=y,s.endIndex=_,s.visibleData=L.slice(y,_)}}else s.translateY=0,s.startIndex=0,s.endIndex=L.length,s.visibleData=L},M=null,A=function(){M&&cancelAnimationFrame(M),M=requestAnimationFrame((function(){S()}))},I=function(T){var L,k,R=T.path,d=r.selectableType;if(d==="multiple"){var f=g.value.findIndex((function(O){return O===R})),x=de(g.value);f!==-1?x.splice(f,1):x.push(R),t("update:selectedValue",x),t("selectedChange",x,de(g.value))}else if(d==="single"&&g.value[0]!==R){var D=(L=g.value,k=1,(function(O){if(Array.isArray(O))return O})(L)||(function(O,y){var _=O==null?null:typeof Symbol<"u"&&O[Symbol.iterator]||O["@@iterator"];if(_!=null){var G,V,z=[],$=!0,X=!1;try{for(_=_.call(O);!($=(G=_.next()).done)&&(z.push(G.value),!y||z.length!==y);$=!0);}catch(Y){X=!0,V=Y}finally{try{$||_.return==null||_.return()}finally{if(X)throw V}}return z}})(L,k)||Ye(L,k)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})())[0],l=R;t("update:selectedValue",l),t("selectedChange",l,D)}},B=function(T){t("nodeClick",T)},o=function(T){t("nodeMouseover",T)},b=function(T,L){if(T)s.hiddenPaths=Z(Z({},s.hiddenPaths),{},ue({},L,1));else{var k=Z({},s.hiddenPaths);delete k[L],s.hiddenPaths=k}},w=function(T,L){r.collapsedOnClickBrackets&&b(T,L.path),t("bracketsClick",T,L)},F=function(T,L){b(T,L.path),t("iconClick",T,L)},W=function(T,L){var k=Ce(r.data),R=r.rootPath;new Function("data","val","data".concat(L.slice(R.length),"=val"))(k,T),t("update:data",k)};return(0,P.watchEffect)((function(){C.value&&(function(T){throw new Error("[VueJSONPretty] ".concat(T))})(C.value)})),(0,P.watchEffect)((function(){N.value&&(r.virtual&&r.dynamicHeight&&p.length!==N.value.length&&H(N.value.length),S())})),(0,P.watch)((function(){return[r.dynamicHeight,r.itemHeight,c.value.length]}),(function(){r.virtual&&r.dynamicHeight&&(H(N.value.length),(0,P.nextTick)(S))})),(0,P.watch)((function(){return r.deep}),(function(T){T&&(s.hiddenPaths=a(T,r.collapsedNodeLength))})),(0,P.watch)((function(){return r.collapsedNodeLength}),(function(T){T&&(s.hiddenPaths=a(r.deep,T))})),function(){var T,L,k,R,d,f=(T=r.renderNodeKey)!==null&&T!==void 0?T:e.renderNodeKey,x=(L=r.renderNodeValue)!==null&&L!==void 0?L:e.renderNodeValue,D=(k=(R=r.renderNodeActions)!==null&&R!==void 0?R:e.renderNodeActions)!==null&&k!==void 0&&k,l=(d=s.visibleData)===null||d===void 0?void 0:d.map((function(O,y){var _=s.startIndex+y;return(0,P.createVNode)("div",{key:O.id,ref:function(G){return(function(V,z){z?j[V]=z:delete j[V]})(_,G||null)}},[(0,P.createVNode)(wt,{data:r.data,rootPath:r.rootPath,indent:r.indent,node:O,collapsed:!!s.hiddenPaths[O.path],theme:r.theme,showDoubleQuotes:r.showDoubleQuotes,showLength:r.showLength,checked:g.value.includes(O.path),selectableType:r.selectableType,showLine:r.showLine,showLineNumber:r.showLineNumber,showSelectController:r.showSelectController,selectOnClickNode:r.selectOnClickNode,nodeSelectable:r.nodeSelectable,highlightSelectedNode:r.highlightSelectedNode,editable:r.editable,editableTrigger:r.editableTrigger,showIcon:r.showIcon,showKeyValueSpace:r.showKeyValueSpace,renderNodeKey:f,renderNodeValue:x,renderNodeActions:D,onNodeClick:B,onNodeMouseover:o,onBracketsClick:w,onIconClick:F,onSelectedChange:I,onValueChange:W,class:r.dynamicHeight?"dynamic-height":void 0,style:r.dynamicHeight?{}:r.itemHeight&&r.itemHeight!==20?{lineHeight:"".concat(r.itemHeight,"px")}:{}},null)])}));return(0,P.createVNode)("div",{ref:i,class:{"vjs-tree":!0,"is-virtual":r.virtual,dark:r.theme==="dark"},onScroll:r.virtual?A:void 0,style:r.showLineNumber?Z({paddingLeft:"".concat(12*Number(c.value.length.toString().length),"px")},r.style):r.style},[r.virtual?(0,P.createVNode)("div",{class:"vjs-tree-list",style:{height:"".concat(r.height,"px")}},[(0,P.createVNode)("div",{class:"vjs-tree-list-holder",style:{height:"".concat(E.value,"px")}},[(0,P.createVNode)("div",{class:"vjs-tree-list-holder-inner",style:{transform:"translateY(".concat(s.translateY,"px)")}},[l])])]):l])}}});var fn=Xe.A;class Te{diff(n,t,e={}){let i;typeof e=="function"?(i=e,e={}):"callback"in e&&(i=e.callback);const c=this.castInput(n,e),a=this.castInput(t,e),s=this.removeEmpty(this.tokenize(c,e)),p=this.removeEmpty(this.tokenize(a,e));return this.diffWithOptionsObj(s,p,e,i)}diffWithOptionsObj(n,t,e,i){var c;const a=E=>{if(E=this.postProcess(E,e),i){setTimeout(function(){i(E)},0);return}else return E},s=t.length,p=n.length;let h=1,v=s+p;e.maxEditLength!=null&&(v=Math.min(v,e.maxEditLength));const j=(c=e.timeout)!==null&&c!==void 0?c:1/0,H=Date.now()+j,u=[{oldPos:-1,lastComponent:void 0}];let m=this.extractCommon(u[0],t,n,0,e);if(u[0].oldPos+1>=p&&m+1>=s)return a(this.buildValues(u[0].lastComponent,t,n));let N=-1/0,g=1/0;const C=()=>{for(let E=Math.max(N,-h);E<=Math.min(g,h);E+=2){let S;const M=u[E-1],A=u[E+1];M&&(u[E-1]=void 0);let I=!1;if(A){const o=A.oldPos-E;I=A&&0<=o&&o<s}const B=M&&M.oldPos+1<p;if(!I&&!B){u[E]=void 0;continue}if(!B||I&&M.oldPos<A.oldPos?S=this.addToPath(A,!0,!1,0,e):S=this.addToPath(M,!1,!0,1,e),m=this.extractCommon(S,t,n,E,e),S.oldPos+1>=p&&m+1>=s)return a(this.buildValues(S.lastComponent,t,n))||!0;u[E]=S,S.oldPos+1>=p&&(g=Math.min(g,E-1)),m+1>=s&&(N=Math.max(N,E+1))}h++};if(i)(function E(){setTimeout(function(){if(h>v||Date.now()>H)return i(void 0);C()||E()},0)})();else for(;h<=v&&Date.now()<=H;){const E=C();if(E)return E}}addToPath(n,t,e,i,c){const a=n.lastComponent;return a&&!c.oneChangePerToken&&a.added===t&&a.removed===e?{oldPos:n.oldPos+i,lastComponent:{count:a.count+1,added:t,removed:e,previousComponent:a.previousComponent}}:{oldPos:n.oldPos+i,lastComponent:{count:1,added:t,removed:e,previousComponent:a}}}extractCommon(n,t,e,i,c){const a=t.length,s=e.length;let p=n.oldPos,h=p-i,v=0;for(;h+1<a&&p+1<s&&this.equals(e[p+1],t[h+1],c);)h++,p++,v++,c.oneChangePerToken&&(n.lastComponent={count:1,previousComponent:n.lastComponent,added:!1,removed:!1});return v&&!c.oneChangePerToken&&(n.lastComponent={count:v,previousComponent:n.lastComponent,added:!1,removed:!1}),n.oldPos=p,h}equals(n,t,e){return e.comparator?e.comparator(n,t):n===t||!!e.ignoreCase&&n.toLowerCase()===t.toLowerCase()}removeEmpty(n){const t=[];for(let e=0;e<n.length;e++)n[e]&&t.push(n[e]);return t}castInput(n,t){return n}tokenize(n,t){return Array.from(n)}join(n){return n.join("")}postProcess(n,t){return n}get useLongestToken(){return!1}buildValues(n,t,e){const i=[];let c;for(;n;)i.push(n),c=n.previousComponent,delete n.previousComponent,n=c;i.reverse();const a=i.length;let s=0,p=0,h=0;for(;s<a;s++){const v=i[s];if(v.removed)v.value=this.join(e.slice(h,h+v.count)),h+=v.count;else{if(!v.added&&this.useLongestToken){let j=t.slice(p,p+v.count);j=j.map(function(H,u){const m=e[h+u];return m.length>H.length?m:H}),v.value=this.join(j)}else v.value=this.join(t.slice(p,p+v.count));p+=v.count,v.added||(h+=v.count)}}return i}}class xt extends Te{}const Ct=new xt;function Tt(r,n,t){return Ct.diff(r,n,t)}const Ve="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}";class St extends Te{tokenize(n){const t=new RegExp(`(\\r?\\n)|[${Ve}]+|[^\\S\\n\\r]+|[^${Ve}]`,"ug");return n.match(t)||[]}}const Lt=new St;function Et(r,n,t){return Lt.diff(r,n,t)}class kt extends Te{constructor(){super(...arguments),this.tokenize=jt}equals(n,t,e){return e.ignoreWhitespace?((!e.newlineIsToken||!n.includes(`
4
+ `))&&(n=n.trim()),(!e.newlineIsToken||!t.includes(`
5
+ `))&&(t=t.trim())):e.ignoreNewlineAtEof&&!e.newlineIsToken&&(n.endsWith(`
6
+ `)&&(n=n.slice(0,-1)),t.endsWith(`
7
+ `)&&(t=t.slice(0,-1))),super.equals(n,t,e)}}const Ot=new kt;function Be(r,n,t){return Ot.diff(r,n,t)}function jt(r,n){n.stripTrailingCr&&(r=r.replace(/\r\n/g,`
8
+ `));const t=[],e=r.split(/(\n|\r\n)/);e[e.length-1]||e.pop();for(let i=0;i<e.length;i++){const c=e[i];i%2&&!n.newlineIsToken?t[t.length-1]+=c:t.push(c)}return t}const Pt={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function It(r,n,t,e,i,c,a){let s;s={},typeof s.context>"u"&&(s.context=4);const p=s.context;if(s.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(s.callback){const{callback:v}=s;Be(t,e,Object.assign(Object.assign({},s),{callback:j=>{const H=h(j);v(H)}}))}else return h(Be(t,e,s));function h(v){if(!v)return;v.push({value:"",lines:[]});function j(E){return E.map(function(S){return" "+S})}const H=[];let u=0,m=0,N=[],g=1,C=1;for(let E=0;E<v.length;E++){const S=v[E],M=S.lines||Ft(S.value);if(S.lines=M,S.added||S.removed){if(!u){const A=v[E-1];u=g,m=C,A&&(N=p>0?j(A.lines.slice(-p)):[],u-=N.length,m-=N.length)}for(const A of M)N.push((S.added?"+":"-")+A);S.added?C+=M.length:g+=M.length}else{if(u)if(M.length<=p*2&&E<v.length-2)for(const A of j(M))N.push(A);else{const A=Math.min(M.length,p);for(const B of j(M.slice(0,A)))N.push(B);const I={oldStart:u,oldLines:g-u+A,newStart:m,newLines:C-m+A,lines:N};H.push(I),u=0,m=0,N=[]}g+=M.length,C+=M.length}}for(const E of H)for(let S=0;S<E.lines.length;S++)E.lines[S].endsWith(`
9
+ `)?E.lines[S]=E.lines[S].slice(0,-1):(E.lines.splice(S+1,0,"\"),S++);return{oldFileName:r,newFileName:n,oldHeader:i,newHeader:c,hunks:H}}}function Ze(r,n){if(n||(n=Pt),Array.isArray(r)){if(r.length>1&&!n.includeFileHeaders)throw new Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return r.map(e=>Ze(e,n)).join(`
10
+ `)}const t=[];n.includeIndex&&r.oldFileName==r.newFileName&&t.push("Index: "+r.oldFileName),n.includeUnderline&&t.push("==================================================================="),n.includeFileHeaders&&(t.push("--- "+r.oldFileName+(typeof r.oldHeader>"u"?"":" "+r.oldHeader)),t.push("+++ "+r.newFileName+(typeof r.newHeader>"u"?"":" "+r.newHeader)));for(let e=0;e<r.hunks.length;e++){const i=r.hunks[e];i.oldLines===0&&(i.oldStart-=1),i.newLines===0&&(i.newStart-=1),t.push("@@ -"+i.oldStart+","+i.oldLines+" +"+i.newStart+","+i.newLines+" @@");for(const c of i.lines)t.push(c)}return t.join(`
11
+ `)+`
12
+ `}function hn(r,n,t,e,i,c,a){{const s=It(r,n,t,e,i,c);return s?Ze(s,void 0):void 0}}function Ft(r){const n=r.endsWith(`
13
+ `),t=r.split(`
14
+ `).map(e=>e+`
15
+ `);return n?t.pop():t.push(t.pop().slice(0,-1)),t}var K;(function(r){r.INSERT="insert",r.DELETE="delete",r.CONTEXT="context"})(K||(K={}));const At={LINE_BY_LINE:"line-by-line"},Dt={NONE:"none"},Ht={WORD:"word"};var ae;(function(r){r.AUTO="auto",r.DARK="dark",r.LIGHT="light"})(ae||(ae={}));const Mt=["-","[","]","/","{","}","(",")","*","+","?",".","\\","^","$","|"],Vt=RegExp("["+Mt.join("\\")+"]","g");function Bt(r){return r.replace(Vt,"\\$&")}function Re(r){return r&&r.replace(/\\/g,"/")}function Rt(r){let n,t,e,i=0;for(n=0,e=r.length;n<e;n++)t=r.charCodeAt(n),i=(i<<5)-i+t,i|=0;return i}function et(r){const n=r.length;let t=-1/0;for(let e=0;e<n;e++)t=Math.max(t,r[e]);return t}function We(r,n){const t=r.split(".");return t.length>1?t[t.length-1]:n}function _e(r,n){return n.reduce((t,e)=>t||r.startsWith(e),!1)}const ze=["a/","b/","i/","w/","c/","o/"];function ie(r,n,t){const e=t!==void 0?[...ze,t]:ze,i=n?new RegExp(`^${Bt(n)} "?(.+?)"?$`):new RegExp('^"?(.+?)"?$'),[,c=""]=i.exec(r)||[],a=e.find(p=>c.indexOf(p)===0);return(a?c.slice(a.length):c).replace(/\s+\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}(?:\.\d+)? [+-]\d{4}.*$/,"")}function Wt(r,n){return ie(r,"---",n)}function _t(r,n){return ie(r,"+++",n)}function zt(r,n={}){const t=[];let e=null,i=null,c=null,a=null,s=null,p=null,h=null;const v="--- ",j="+++ ",H="@@",u=/^old mode (\d{6})/,m=/^new mode (\d{6})/,N=/^deleted file mode (\d{6})/,g=/^new file mode (\d{6})/,C=/^copy from "?(.+)"?/,E=/^copy to "?(.+)"?/,S=/^rename from "?(.+)"?/,M=/^rename to "?(.+)"?/,A=/^similarity index (\d+)%/,I=/^dissimilarity index (\d+)%/,B=/^index ([\da-z]+)\.\.([\da-z]+)\s*(\d{6})?/,o=/^Binary files (.*) and (.*) differ/,b=/^GIT binary patch/,w=/^index ([\da-z]+),([\da-z]+)\.\.([\da-z]+)/,F=/^mode (\d{6}),(\d{6})\.\.(\d{6})/,W=/^new file mode (\d{6})/,T=/^deleted file mode (\d{6}),(\d{6})/,L=r.replace(/\/g,"").replace(/\r\n?/g,`
16
+ `).split(`
17
+ `);function k(){i!==null&&e!==null&&(e.blocks.push(i),i=null)}function R(){e!==null&&(!e.oldName&&p!==null&&(e.oldName=p),!e.newName&&h!==null&&(e.newName=h),e.newName&&(t.push(e),e=null)),p=null,h=null}function d(){k(),R(),e={blocks:[],deletedLines:0,addedLines:0}}function f(l){k();let O;e!==null&&((O=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@.*/.exec(l))?(e.isCombined=!1,c=parseInt(O[1],10),s=parseInt(O[2],10)):(O=/^@@@ -(\d+)(?:,\d+)? -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@@.*/.exec(l))?(e.isCombined=!0,c=parseInt(O[1],10),a=parseInt(O[2],10),s=parseInt(O[3],10)):(l.startsWith(H)&&console.error("Failed to parse lines, starting in 0!"),c=0,s=0,e.isCombined=!1)),i={lines:[],oldStartLine:c,oldStartLine2:a,newStartLine:s,header:l}}function x(l){if(e===null||i===null||c===null||s===null)return;const O={content:l},y=e.isCombined?["+ "," +","++"]:["+"],_=e.isCombined?["- "," -","--"]:["-"];_e(l,y)?(e.addedLines++,O.type=K.INSERT,O.oldNumber=void 0,O.newNumber=s++):_e(l,_)?(e.deletedLines++,O.type=K.DELETE,O.oldNumber=c++,O.newNumber=void 0):(O.type=K.CONTEXT,O.oldNumber=c++,O.newNumber=s++),i.lines.push(O)}function D(l,O){let y=O;for(;y<L.length-3;){if(l.startsWith("diff"))return!1;if(L[y].startsWith(v)&&L[y+1].startsWith(j)&&L[y+2].startsWith(H))return!0;y++}return!1}return L.forEach((l,O)=>{if(!l||l.startsWith("*"))return;let y;const _=L[O-1],G=L[O+1],V=L[O+2];if(l.startsWith("diff --git")||l.startsWith("diff --combined")){if(d(),(y=/^diff --git "?([a-ciow]\/.+)"? "?([a-ciow]\/.+)"?/.exec(l))&&(p=ie(y[1],void 0,n.dstPrefix),h=ie(y[2],void 0,n.srcPrefix)),e===null)throw new Error("Where is my file !!!");e.isGitDiff=!0;return}if(l.startsWith("Binary files")&&!e?.isGitDiff){if(d(),(y=/^Binary files "?([a-ciow]\/.+)"? and "?([a-ciow]\/.+)"? differ/.exec(l))&&(p=ie(y[1],void 0,n.dstPrefix),h=ie(y[2],void 0,n.srcPrefix)),e===null)throw new Error("Where is my file !!!");e.isBinary=!0;return}if((!e||!e.isGitDiff&&e&&l.startsWith(v)&&G.startsWith(j)&&V.startsWith(H))&&d(),e?.isTooBig)return;if(e&&(typeof n.diffMaxChanges=="number"&&e.addedLines+e.deletedLines>n.diffMaxChanges||typeof n.diffMaxLineLength=="number"&&l.length>n.diffMaxLineLength)){e.isTooBig=!0,e.addedLines=0,e.deletedLines=0,e.blocks=[],i=null;const $=typeof n.diffTooBigMessage=="function"?n.diffTooBigMessage(t.length):"Diff too big to be displayed";f($);return}if(l.startsWith(v)&&G.startsWith(j)||l.startsWith(j)&&_.startsWith(v)){if(e&&!e.oldName&&l.startsWith("--- ")&&(y=Wt(l,n.srcPrefix))){e.oldName=y,e.language=We(e.oldName,e.language);return}if(e&&!e.newName&&l.startsWith("+++ ")&&(y=_t(l,n.dstPrefix))){e.newName=y,e.language=We(e.newName,e.language);return}}if(e&&(l.startsWith(H)||e.isGitDiff&&e.oldName&&e.newName&&!i)){f(l);return}if(i&&(l.startsWith("+")||l.startsWith("-")||l.startsWith(" "))){x(l);return}const z=!D(l,O);if(e===null)throw new Error("Where is my file !!!");(y=u.exec(l))?e.oldMode=y[1]:(y=m.exec(l))?e.newMode=y[1]:(y=N.exec(l))?(e.deletedFileMode=y[1],e.isDeleted=!0):(y=g.exec(l))?(e.newFileMode=y[1],e.isNew=!0):(y=C.exec(l))?(z&&(e.oldName=y[1]),e.isCopy=!0):(y=E.exec(l))?(z&&(e.newName=y[1]),e.isCopy=!0):(y=S.exec(l))?(z&&(e.oldName=y[1]),e.isRename=!0):(y=M.exec(l))?(z&&(e.newName=y[1]),e.isRename=!0):(y=o.exec(l))?(e.isBinary=!0,e.oldName=ie(y[1],void 0,n.srcPrefix),e.newName=ie(y[2],void 0,n.dstPrefix),f("Binary file")):b.test(l)?(e.isBinary=!0,f(l)):(y=A.exec(l))?e.unchangedPercentage=parseInt(y[1],10):(y=I.exec(l))?e.changedPercentage=parseInt(y[1],10):(y=B.exec(l))?(e.checksumBefore=y[1],e.checksumAfter=y[2],y[3]&&(e.mode=y[3])):(y=w.exec(l))?(e.checksumBefore=[y[2],y[3]],e.checksumAfter=y[1]):(y=F.exec(l))?(e.oldMode=[y[2],y[3]],e.newMode=y[1]):(y=W.exec(l))?(e.newFileMode=y[1],e.isNew=!0):(y=T.exec(l))&&(e.deletedFileMode=y[1],e.isDeleted=!0)}),k(),R(),t}function Gt(r,n){if(r.length===0)return n.length;if(n.length===0)return r.length;const t=[];let e;for(e=0;e<=n.length;e++)t[e]=[e];let i;for(i=0;i<=r.length;i++)t[0][i]=i;for(e=1;e<=n.length;e++)for(i=1;i<=r.length;i++)n.charAt(e-1)===r.charAt(i-1)?t[e][i]=t[e-1][i-1]:t[e][i]=Math.min(t[e-1][i-1]+1,Math.min(t[e][i-1]+1,t[e-1][i]+1));return t[n.length][r.length]}function Se(r){return(n,t)=>{const e=r(n).trim(),i=r(t).trim();return Gt(e,i)/(e.length+i.length)}}function Le(r){function n(e,i,c=new Map){let a=1/0,s;for(let p=0;p<e.length;++p)for(let h=0;h<i.length;++h){const v=JSON.stringify([e[p],i[h]]);let j;c.has(v)&&(j=c.get(v))||(j=r(e[p],i[h]),c.set(v,j)),j<a&&(a=j,s={indexA:p,indexB:h,score:a})}return s}function t(e,i,c=0,a=new Map){const s=n(e,i,a);if(!s||e.length+i.length<3)return[[e,i]];const p=e.slice(0,s.indexA),h=i.slice(0,s.indexB),v=[e[s.indexA]],j=[i[s.indexB]],H=s.indexA+1,u=s.indexB+1,m=e.slice(H),N=i.slice(u),g=t(p,h,c+1,a),C=t(v,j,c+1,a),E=t(m,N,c+1,a);let S=C;return(s.indexA>0||s.indexB>0)&&(S=g.concat(S)),(e.length>H||i.length>u)&&(S=S.concat(E)),S}return t}const Q={INSERTS:"d2h-ins",DELETES:"d2h-del",CONTEXT:"d2h-cntx",INFO:"d2h-info",INSERT_CHANGES:"d2h-ins d2h-change",DELETE_CHANGES:"d2h-del d2h-change"},he={matching:Dt.NONE,matchWordsThreshold:.25,maxLineLengthHighlight:1e4,diffStyle:Ht.WORD,colorScheme:ae.LIGHT},ne="/",tt=Se(r=>r.value),$t=Le(tt);function be(r){return r.indexOf("dev/null")!==-1}function Ut(r){return r.replace(/(<ins[^>]*>((.|\n)*?)<\/ins>)/g,"")}function Kt(r){return r.replace(/(<del[^>]*>((.|\n)*?)<\/del>)/g,"")}function fe(r){switch(r){case K.CONTEXT:return Q.CONTEXT;case K.INSERT:return Q.INSERTS;case K.DELETE:return Q.DELETES}}function Ee(r){switch(r){case ae.DARK:return"d2h-dark-color-scheme";case ae.AUTO:return"d2h-auto-color-scheme";case ae.LIGHT:default:return"d2h-light-color-scheme"}}function qt(r){return r?2:1}function se(r){return r.slice(0).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}function re(r,n,t=!0){const e=qt(n);return{prefix:r.substring(0,e),content:t?se(r.substring(e)):r.substring(e)}}function pe(r){const n=Re(r.oldName),t=Re(r.newName);if(n!==t&&!be(n)&&!be(t)){const e=[],i=[],c=n.split(ne),a=t.split(ne),s=c.length,p=a.length;let h=0,v=s-1,j=p-1;for(;h<v&&h<j&&c[h]===a[h];)e.push(a[h]),h+=1;for(;v>h&&j>h&&c[v]===a[j];)i.unshift(a[j]),v-=1,j-=1;const H=e.join(ne),u=i.join(ne),m=c.slice(h,v+1).join(ne),N=a.slice(h,j+1).join(ne);return H.length&&u.length?H+ne+"{"+m+" → "+N+"}"+ne+u:H.length?H+ne+"{"+m+" → "+N+"}":u.length?"{"+m+" → "+N+"}"+ne+u:n+" → "+t}else return be(t)?n:t}function ke(r){return`d2h-${Rt(pe(r)).toString().slice(-6)}`}function Oe(r){let n="file-changed";return r.isRename||r.isCopy?n="file-renamed":r.isNew?n="file-added":r.isDeleted?n="file-deleted":r.newName!==r.oldName&&(n="file-renamed"),n}function nt(r,n,t,e={}){const{matching:i,maxLineLengthHighlight:c,matchWordsThreshold:a,diffStyle:s}=Object.assign(Object.assign({},he),e),p=re(r,t,!1),h=re(n,t,!1);if(p.content.length>c||h.content.length>c)return{oldLine:{prefix:p.prefix,content:se(p.content)},newLine:{prefix:h.prefix,content:se(h.content)}};const v=s==="char"?Tt(p.content,h.content):Et(p.content,h.content),j=[];if(s==="word"&&i==="words"){const u=v.filter(g=>g.removed),m=v.filter(g=>g.added);$t(m,u).forEach(g=>{g[0].length===1&&g[1].length===1&&tt(g[0][0],g[1][0])<a&&(j.push(g[0][0]),j.push(g[1][0]))})}const H=v.reduce((u,m)=>{const N=m.added?"ins":m.removed?"del":null,g=j.indexOf(m)>-1?' class="d2h-change"':"",C=se(m.value);return N!==null?`${u}<${N}${g}>${C}</${N}>`:`${u}${C}`},"");return{oldLine:{prefix:p.prefix,content:Ut(H)},newLine:{prefix:h.prefix,content:Kt(H)}}}const Ge="file-summary",Xt="icon",Yt={colorScheme:he.colorScheme};class Qt{constructor(n,t={}){this.hoganUtils=n,this.config=Object.assign(Object.assign({},Yt),t)}render(n){const t=n.map(e=>this.hoganUtils.render(Ge,"line",{fileHtmlId:ke(e),oldName:e.oldName,newName:e.newName,fileName:pe(e),deletedLines:"-"+e.deletedLines,addedLines:"+"+e.addedLines},{fileIcon:this.hoganUtils.template(Xt,Oe(e))})).join(`
18
+ `);return this.hoganUtils.render(Ge,"wrapper",{colorScheme:Ee(this.config.colorScheme),filesNumber:n.length,files:t})}}const rt=Object.assign(Object.assign({},he),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),le="generic",$e="line-by-line",Jt="icon",Zt="tag";class en{constructor(n,t={}){this.hoganUtils=n,this.config=Object.assign(Object.assign({},rt),t)}render(n){const t=n.map(e=>{let i;return e.blocks.length?i=this.generateFileHtml(e):i=this.generateEmptyDiff(),this.makeFileDiffHtml(e,i)}).join(`
19
+ `);return this.hoganUtils.render(le,"wrapper",{colorScheme:Ee(this.config.colorScheme),content:t})}makeFileDiffHtml(n,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(n.blocks)&&n.blocks.length===0)return"";const e=this.hoganUtils.template($e,"file-diff"),i=this.hoganUtils.template(le,"file-path"),c=this.hoganUtils.template(Jt,"file"),a=this.hoganUtils.template(Zt,Oe(n));return e.render({file:n,fileHtmlId:ke(n),diffs:t,filePath:i.render({fileDiffName:pe(n)},{fileIcon:c,fileTag:a})})}generateEmptyDiff(){return this.hoganUtils.render(le,"empty-diff",{contentClass:"d2h-code-line",CSSLineClass:Q})}generateFileHtml(n){const t=Le(Se(e=>re(e.content,n.isCombined).content));return n.blocks.map(e=>{let i=this.hoganUtils.render(le,"block-header",{CSSLineClass:Q,blockHeader:n.isTooBig?e.header:se(e.header),lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line"});return this.applyLineGroupping(e).forEach(([c,a,s])=>{if(a.length&&s.length&&!c.length)this.applyRematchMatching(a,s,t).map(([p,h])=>{const{left:v,right:j}=this.processChangedLines(n,n.isCombined,p,h);i+=v,i+=j});else if(c.length)c.forEach(p=>{const{prefix:h,content:v}=re(p.content,n.isCombined);i+=this.generateSingleLineHtml(n,{type:Q.CONTEXT,prefix:h,content:v,oldNumber:p.oldNumber,newNumber:p.newNumber})});else if(a.length||s.length){const{left:p,right:h}=this.processChangedLines(n,n.isCombined,a,s);i+=p,i+=h}else console.error("Unknown state reached while processing groups of lines",c,a,s)}),i}).join(`
20
+ `)}applyLineGroupping(n){const t=[];let e=[],i=[];for(let c=0;c<n.lines.length;c++){const a=n.lines[c];(a.type!==K.INSERT&&i.length||a.type===K.CONTEXT&&e.length>0)&&(t.push([[],e,i]),e=[],i=[]),a.type===K.CONTEXT?t.push([[a],[],[]]):a.type===K.INSERT&&e.length===0?t.push([[],[],[a]]):a.type===K.INSERT&&e.length>0?i.push(a):a.type===K.DELETE&&e.push(a)}return(e.length||i.length)&&(t.push([[],e,i]),e=[],i=[]),t}applyRematchMatching(n,t,e){const i=n.length*t.length,c=et(n.concat(t).map(s=>s.content.length));return i<this.config.matchingMaxComparisons&&c<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?e(n,t):[[n,t]]}processChangedLines(n,t,e,i){const c={right:"",left:""},a=Math.max(e.length,i.length);for(let s=0;s<a;s++){const p=e[s],h=i[s],v=p!==void 0&&h!==void 0?nt(p.content,h.content,t,this.config):void 0,j=p!==void 0&&p.oldNumber!==void 0?Object.assign(Object.assign({},v!==void 0?{prefix:v.oldLine.prefix,content:v.oldLine.content,type:Q.DELETE_CHANGES}:Object.assign(Object.assign({},re(p.content,t)),{type:fe(p.type)})),{oldNumber:p.oldNumber,newNumber:p.newNumber}):void 0,H=h!==void 0&&h.newNumber!==void 0?Object.assign(Object.assign({},v!==void 0?{prefix:v.newLine.prefix,content:v.newLine.content,type:Q.INSERT_CHANGES}:Object.assign(Object.assign({},re(h.content,t)),{type:fe(h.type)})),{oldNumber:h.oldNumber,newNumber:h.newNumber}):void 0,{left:u,right:m}=this.generateLineHtml(n,j,H);c.left+=u,c.right+=m}return c}generateLineHtml(n,t,e){return{left:this.generateSingleLineHtml(n,t),right:this.generateSingleLineHtml(n,e)}}generateSingleLineHtml(n,t){if(t===void 0)return"";const e=this.hoganUtils.render($e,"numbers",{oldNumber:t.oldNumber||"",newNumber:t.newNumber||""});return this.hoganUtils.render(le,"line",{type:t.type,lineClass:"d2h-code-linenumber",contentClass:"d2h-code-line",prefix:t.prefix===" "?"&nbsp;":t.prefix,content:t.content,lineNumber:e,line:t,file:n})}}const it=Object.assign(Object.assign({},he),{renderNothingWhenEmpty:!1,matchingMaxComparisons:2500,maxLineSizeInBlockForComparison:200}),ce="generic",tn="side-by-side",nn="icon",rn="tag";class on{constructor(n,t={}){this.hoganUtils=n,this.config=Object.assign(Object.assign({},it),t)}render(n){const t=n.map(e=>{let i;return e.blocks.length?i=this.generateFileHtml(e):i=this.generateEmptyDiff(),this.makeFileDiffHtml(e,i)}).join(`
21
+ `);return this.hoganUtils.render(ce,"wrapper",{colorScheme:Ee(this.config.colorScheme),content:t})}makeFileDiffHtml(n,t){if(this.config.renderNothingWhenEmpty&&Array.isArray(n.blocks)&&n.blocks.length===0)return"";const e=this.hoganUtils.template(tn,"file-diff"),i=this.hoganUtils.template(ce,"file-path"),c=this.hoganUtils.template(nn,"file"),a=this.hoganUtils.template(rn,Oe(n));return e.render({file:n,fileHtmlId:ke(n),diffs:t,filePath:i.render({fileDiffName:pe(n)},{fileIcon:c,fileTag:a})})}generateEmptyDiff(){return{right:"",left:this.hoganUtils.render(ce,"empty-diff",{contentClass:"d2h-code-side-line",CSSLineClass:Q})}}generateFileHtml(n){const t=Le(Se(e=>re(e.content,n.isCombined).content));return n.blocks.map(e=>{const i={left:this.makeHeaderHtml(e.header,n),right:this.makeHeaderHtml("")};return this.applyLineGroupping(e).forEach(([c,a,s])=>{if(a.length&&s.length&&!c.length)this.applyRematchMatching(a,s,t).map(([p,h])=>{const{left:v,right:j}=this.processChangedLines(n.isCombined,p,h);i.left+=v,i.right+=j});else if(c.length)c.forEach(p=>{const{prefix:h,content:v}=re(p.content,n.isCombined),{left:j,right:H}=this.generateLineHtml({type:Q.CONTEXT,prefix:h,content:v,number:p.oldNumber},{type:Q.CONTEXT,prefix:h,content:v,number:p.newNumber});i.left+=j,i.right+=H});else if(a.length||s.length){const{left:p,right:h}=this.processChangedLines(n.isCombined,a,s);i.left+=p,i.right+=h}else console.error("Unknown state reached while processing groups of lines",c,a,s)}),i}).reduce((e,i)=>({left:e.left+i.left,right:e.right+i.right}),{left:"",right:""})}applyLineGroupping(n){const t=[];let e=[],i=[];for(let c=0;c<n.lines.length;c++){const a=n.lines[c];(a.type!==K.INSERT&&i.length||a.type===K.CONTEXT&&e.length>0)&&(t.push([[],e,i]),e=[],i=[]),a.type===K.CONTEXT?t.push([[a],[],[]]):a.type===K.INSERT&&e.length===0?t.push([[],[],[a]]):a.type===K.INSERT&&e.length>0?i.push(a):a.type===K.DELETE&&e.push(a)}return(e.length||i.length)&&(t.push([[],e,i]),e=[],i=[]),t}applyRematchMatching(n,t,e){const i=n.length*t.length,c=et(n.concat(t).map(s=>s.content.length));return i<this.config.matchingMaxComparisons&&c<this.config.maxLineSizeInBlockForComparison&&(this.config.matching==="lines"||this.config.matching==="words")?e(n,t):[[n,t]]}makeHeaderHtml(n,t){return this.hoganUtils.render(ce,"block-header",{CSSLineClass:Q,blockHeader:t?.isTooBig?n:se(n),lineClass:"d2h-code-side-linenumber",contentClass:"d2h-code-side-line"})}processChangedLines(n,t,e){const i={right:"",left:""},c=Math.max(t.length,e.length);for(let a=0;a<c;a++){const s=t[a],p=e[a],h=s!==void 0&&p!==void 0?nt(s.content,p.content,n,this.config):void 0,v=s!==void 0&&s.oldNumber!==void 0?Object.assign(Object.assign({},h!==void 0?{prefix:h.oldLine.prefix,content:h.oldLine.content,type:Q.DELETE_CHANGES}:Object.assign(Object.assign({},re(s.content,n)),{type:fe(s.type)})),{number:s.oldNumber}):void 0,j=p!==void 0&&p.newNumber!==void 0?Object.assign(Object.assign({},h!==void 0?{prefix:h.newLine.prefix,content:h.newLine.content,type:Q.INSERT_CHANGES}:Object.assign(Object.assign({},re(p.content,n)),{type:fe(p.type)})),{number:p.newNumber}):void 0,{left:H,right:u}=this.generateLineHtml(v,j);i.left+=H,i.right+=u}return i}generateLineHtml(n,t){return{left:this.generateSingleHtml(n),right:this.generateSingleHtml(t)}}generateSingleHtml(n){const t="d2h-code-side-linenumber",e="d2h-code-side-line";return this.hoganUtils.render(ce,"line",{type:n?.type||`${Q.CONTEXT} d2h-emptyplaceholder`,lineClass:n!==void 0?t:`${t} d2h-code-side-emptyplaceholder`,contentClass:n!==void 0?e:`${e} d2h-code-side-emptyplaceholder`,prefix:n?.prefix===" "?"&nbsp;":n?.prefix,content:n?.content,lineNumber:n?.number})}}var ve={},Ue;function an(){return Ue||(Ue=1,(function(r){(function(n){var t=/\S/,e=/\"/g,i=/\n/g,c=/\r/g,a=/\\/g,s=/\u2028/,p=/\u2029/;n.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},n.scan=function(b,w){var F=b.length,W=0,T=1,L=2,k=W,R=null,d=null,f="",x=[],D=!1,l=0,O=0,y="{{",_="}}";function G(){f.length>0&&(x.push({tag:"_t",text:new String(f)}),f="")}function V(){for(var X=!0,Y=O;Y<x.length;Y++)if(X=n.tags[x[Y].tag]<n.tags._v||x[Y].tag=="_t"&&x[Y].text.match(t)===null,!X)return!1;return X}function z(X,Y){if(G(),X&&V())for(var J=O,ee;J<x.length;J++)x[J].text&&((ee=x[J+1])&&ee.tag==">"&&(ee.indent=x[J].text.toString()),x.splice(J,1));else Y||x.push({tag:`
22
+ `});D=!1,O=x.length}function $(X,Y){var J="="+_,ee=X.indexOf(J,Y),me=v(X.substring(X.indexOf("=",Y)+1,ee)).split(" ");return y=me[0],_=me[me.length-1],ee+J.length-1}for(w&&(w=w.split(" "),y=w[0],_=w[1]),l=0;l<F;l++)k==W?j(y,b,l)?(--l,G(),k=T):b.charAt(l)==`
23
+ `?z(D):f+=b.charAt(l):k==T?(l+=y.length-1,d=n.tags[b.charAt(l+1)],R=d?b.charAt(l+1):"_v",R=="="?(l=$(b,l),k=W):(d&&l++,k=L),D=l):j(_,b,l)?(x.push({tag:R,n:v(f),otag:y,ctag:_,i:R=="/"?D-y.length:l+_.length}),f="",l+=_.length-1,k=W,R=="{"&&(_=="}}"?l++:h(x[x.length-1]))):f+=b.charAt(l);return z(D,!0),x};function h(o){o.n.substr(o.n.length-1)==="}"&&(o.n=o.n.substring(0,o.n.length-1))}function v(o){return o.trim?o.trim():o.replace(/^\s*|\s*$/g,"")}function j(o,b,w){if(b.charAt(w)!=o.charAt(0))return!1;for(var F=1,W=o.length;F<W;F++)if(b.charAt(w+F)!=o.charAt(F))return!1;return!0}var H={_t:!0,"\n":!0,$:!0,"/":!0};function u(o,b,w,F){var W=[],T=null,L=null,k=null;for(L=w[w.length-1];o.length>0;){if(k=o.shift(),L&&L.tag=="<"&&!(k.tag in H))throw new Error("Illegal content in < super tag.");if(n.tags[k.tag]<=n.tags.$||m(k,F))w.push(k),k.nodes=u(o,k.tag,w,F);else if(k.tag=="/"){if(w.length===0)throw new Error("Closing tag without opener: /"+k.n);if(T=w.pop(),k.n!=T.n&&!N(k.n,T.n,F))throw new Error("Nesting error: "+T.n+" vs. "+k.n);return T.end=k.i,W}else k.tag==`
24
+ `&&(k.last=o.length==0||o[0].tag==`
25
+ `);W.push(k)}if(w.length>0)throw new Error("missing closing tag: "+w.pop().n);return W}function m(o,b){for(var w=0,F=b.length;w<F;w++)if(b[w].o==o.n)return o.tag="#",!0}function N(o,b,w){for(var F=0,W=w.length;F<W;F++)if(w[F].c==o&&w[F].o==b)return!0}function g(o){var b=[];for(var w in o)b.push('"'+S(w)+'": function(c,p,t,i) {'+o[w]+"}");return"{ "+b.join(",")+" }"}function C(o){var b=[];for(var w in o.partials)b.push('"'+S(w)+'":{name:"'+S(o.partials[w].name)+'", '+C(o.partials[w])+"}");return"partials: {"+b.join(",")+"}, subs: "+g(o.subs)}n.stringify=function(o,b,w){return"{code: function (c,p,i) { "+n.wrapMain(o.code)+" },"+C(o)+"}"};var E=0;n.generate=function(o,b,w){E=0;var F={code:"",subs:{},partials:{}};return n.walk(o,F),w.asString?this.stringify(F,b,w):this.makeTemplate(F,b,w)},n.wrapMain=function(o){return'var t=this;t.b(i=i||"");'+o+"return t.fl();"},n.template=n.Template,n.makeTemplate=function(o,b,w){var F=this.makePartials(o);return F.code=new Function("c","p","i",this.wrapMain(o.code)),new this.template(F,b,this,w)},n.makePartials=function(o){var b,w={subs:{},partials:o.partials,name:o.name};for(b in w.partials)w.partials[b]=this.makePartials(w.partials[b]);for(b in o.subs)w.subs[b]=new Function("c","p","t","i",o.subs[b]);return w};function S(o){return o.replace(a,"\\\\").replace(e,'\\"').replace(i,"\\n").replace(c,"\\r").replace(s,"\\u2028").replace(p,"\\u2029")}function M(o){return~o.indexOf(".")?"d":"f"}function A(o,b){var w="<"+(b.prefix||""),F=w+o.n+E++;return b.partials[F]={name:o.n,partials:{}},b.code+='t.b(t.rp("'+S(F)+'",c,p,"'+(o.indent||"")+'"));',F}n.codegen={"#":function(o,b){b.code+="if(t.s(t."+M(o.n)+'("'+S(o.n)+'",c,p,1),c,p,0,'+o.i+","+o.end+',"'+o.otag+" "+o.ctag+'")){t.rs(c,p,function(c,p,t){',n.walk(o.nodes,b),b.code+="});c.pop();}"},"^":function(o,b){b.code+="if(!t.s(t."+M(o.n)+'("'+S(o.n)+'",c,p,1),c,p,1,0,0,"")){',n.walk(o.nodes,b),b.code+="};"},">":A,"<":function(o,b){var w={partials:{},code:"",subs:{},inPartial:!0};n.walk(o.nodes,w);var F=b.partials[A(o,b)];F.subs=w.subs,F.partials=w.partials},$:function(o,b){var w={subs:{},code:"",partials:b.partials,prefix:o.n};n.walk(o.nodes,w),b.subs[o.n]=w.code,b.inPartial||(b.code+='t.sub("'+S(o.n)+'",c,p,i);')},"\n":function(o,b){b.code+=B('"\\n"'+(o.last?"":" + i"))},_v:function(o,b){b.code+="t.b(t.v(t."+M(o.n)+'("'+S(o.n)+'",c,p,0)));'},_t:function(o,b){b.code+=B('"'+S(o.text)+'"')},"{":I,"&":I};function I(o,b){b.code+="t.b(t.t(t."+M(o.n)+'("'+S(o.n)+'",c,p,0)));'}function B(o){return"t.b("+o+");"}n.walk=function(o,b){for(var w,F=0,W=o.length;F<W;F++)w=n.codegen[o[F].tag],w&&w(o[F],b);return b},n.parse=function(o,b,w){return w=w||{},u(o,"",[],w.sectionTags||[])},n.cache={},n.cacheKey=function(o,b){return[o,!!b.asString,!!b.disableLambda,b.delimiters,!!b.modelGet].join("||")},n.compile=function(o,b){b=b||{};var w=n.cacheKey(o,b),F=this.cache[w];if(F){var W=F.partials;for(var T in W)delete W[T].instance;return F}return F=this.generate(this.parse(this.scan(o,b.delimiters),o,b),o,b),this.cache[w]=F}})(r)})(ve)),ve}var ye={},Ke;function sn(){return Ke||(Ke=1,(function(r){(function(n){n.Template=function(u,m,N,g){u=u||{},this.r=u.code||this.r,this.c=N,this.options=g||{},this.text=m||"",this.partials=u.partials||{},this.subs=u.subs||{},this.buf=""},n.Template.prototype={r:function(u,m,N){return""},v:j,t:v,render:function(m,N,g){return this.ri([m],N||{},g)},ri:function(u,m,N){return this.r(u,m,N)},ep:function(u,m){var N=this.partials[u],g=m[N.name];if(N.instance&&N.base==g)return N.instance;if(typeof g=="string"){if(!this.c)throw new Error("No compiler available.");g=this.c.compile(g,this.options)}if(!g)return null;if(this.partials[u].base=g,N.subs){m.stackText||(m.stackText={});for(key in N.subs)m.stackText[key]||(m.stackText[key]=this.activeSub!==void 0&&m.stackText[this.activeSub]?m.stackText[this.activeSub]:this.text);g=e(g,N.subs,N.partials,this.stackSubs,this.stackPartials,m.stackText)}return this.partials[u].instance=g,g},rp:function(u,m,N,g){var C=this.ep(u,N);return C?C.ri(m,N,g):""},rs:function(u,m,N){var g=u[u.length-1];if(!H(g)){N(u,m,this);return}for(var C=0;C<g.length;C++)u.push(g[C]),N(u,m,this),u.pop()},s:function(u,m,N,g,C,E,S){var M;return H(u)&&u.length===0?!1:(typeof u=="function"&&(u=this.ms(u,m,N,g,C,E,S)),M=!!u,!g&&M&&m&&m.push(typeof u=="object"?u:m[m.length-1]),M)},d:function(u,m,N,g){var C,E=u.split("."),S=this.f(E[0],m,N,g),M=this.options.modelGet,A=null;if(u==="."&&H(m[m.length-2]))S=m[m.length-1];else for(var I=1;I<E.length;I++)C=t(E[I],S,M),C!==void 0?(A=S,S=C):S="";return g&&!S?!1:(!g&&typeof S=="function"&&(m.push(A),S=this.mv(S,m,N),m.pop()),S)},f:function(u,m,N,g){for(var C=!1,E=null,S=!1,M=this.options.modelGet,A=m.length-1;A>=0;A--)if(E=m[A],C=t(u,E,M),C!==void 0){S=!0;break}return S?(!g&&typeof C=="function"&&(C=this.mv(C,m,N)),C):g?!1:""},ls:function(u,m,N,g,C,E){var S=this.options.delimiters;return this.options.delimiters=E,this.b(this.ct(v(u.call(m,C,N)),m,g)),this.options.delimiters=S,!1},ct:function(u,m,N){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(u,this.options).render(m,N)},b:function(u){this.buf+=u},fl:function(){var u=this.buf;return this.buf="",u},ms:function(u,m,N,g,C,E,S){var M,A=m[m.length-1],I=u.call(A);return typeof I=="function"?g?!0:(M=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(I,A,m,N,M.substring(C,E),S)):I},mv:function(u,m,N){var g=m[m.length-1],C=u.call(g);return typeof C=="function"?this.ct(v(C.call(g)),g,N):C},sub:function(u,m,N,g){var C=this.subs[u];C&&(this.activeSub=u,C(m,N,this,g),this.activeSub=!1)}};function t(u,m,N){var g;return m&&typeof m=="object"&&(m[u]!==void 0?g=m[u]:N&&m.get&&typeof m.get=="function"&&(g=m.get(u))),g}function e(u,m,N,g,C,E){function S(){}S.prototype=u;function M(){}M.prototype=u.subs;var A,I=new S;I.subs=new M,I.subsText={},I.buf="",g=g||{},I.stackSubs=g,I.subsText=E;for(A in m)g[A]||(g[A]=m[A]);for(A in g)I.subs[A]=g[A];C=C||{},I.stackPartials=C;for(A in N)C[A]||(C[A]=N[A]);for(A in C)I.partials[A]=C[A];return I}var i=/&/g,c=/</g,a=/>/g,s=/\'/g,p=/\"/g,h=/[&<>\"\']/;function v(u){return String(u??"")}function j(u){return u=v(u),h.test(u)?u.replace(i,"&amp;").replace(c,"&lt;").replace(a,"&gt;").replace(s,"&#39;").replace(p,"&quot;"):u}var H=Array.isArray||function(u){return Object.prototype.toString.call(u)==="[object Array]"}})(r)})(ye)),ye}var we,qe;function ln(){if(qe)return we;qe=1;var r=an();return r.Template=sn().Template,r.template=r.Template,we=r,we}var U=ln();const q={};q["file-summary-line"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<li class="d2h-file-list-line">'),e.b(`
26
+ `+t),e.b(' <span class="d2h-file-name-wrapper">'),e.b(`
27
+ `+t),e.b(e.rp("<fileIcon0",r,n," ")),e.b(' <a href="#'),e.b(e.v(e.f("fileHtmlId",r,n,0))),e.b('" class="d2h-file-name">'),e.b(e.v(e.f("fileName",r,n,0))),e.b("</a>"),e.b(`
28
+ `+t),e.b(' <span class="d2h-file-stats">'),e.b(`
29
+ `+t),e.b(' <span class="d2h-lines-added">'),e.b(e.v(e.f("addedLines",r,n,0))),e.b("</span>"),e.b(`
30
+ `+t),e.b(' <span class="d2h-lines-deleted">'),e.b(e.v(e.f("deletedLines",r,n,0))),e.b("</span>"),e.b(`
31
+ `+t),e.b(" </span>"),e.b(`
32
+ `+t),e.b(" </span>"),e.b(`
33
+ `+t),e.b("</li>"),e.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}}},subs:{}});q["file-summary-wrapper"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<div class="d2h-file-list-wrapper '),e.b(e.v(e.f("colorScheme",r,n,0))),e.b('">'),e.b(`
34
+ `+t),e.b(' <div class="d2h-file-list-header">'),e.b(`
35
+ `+t),e.b(' <span class="d2h-file-list-title">Files changed ('),e.b(e.v(e.f("filesNumber",r,n,0))),e.b(")</span>"),e.b(`
36
+ `+t),e.b(' <a class="d2h-file-switch d2h-hide">hide</a>'),e.b(`
37
+ `+t),e.b(' <a class="d2h-file-switch d2h-show">show</a>'),e.b(`
38
+ `+t),e.b(" </div>"),e.b(`
39
+ `+t),e.b(' <ol class="d2h-file-list">'),e.b(`
40
+ `+t),e.b(" "),e.b(e.t(e.f("files",r,n,0))),e.b(`
41
+ `+t),e.b(" </ol>"),e.b(`
42
+ `+t),e.b("</div>"),e.fl()},partials:{},subs:{}});q["generic-block-header"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b("<tr>"),e.b(`
43
+ `+t),e.b(' <td class="'),e.b(e.v(e.f("lineClass",r,n,0))),e.b(" "),e.b(e.v(e.d("CSSLineClass.INFO",r,n,0))),e.b('"></td>'),e.b(`
44
+ `+t),e.b(' <td class="'),e.b(e.v(e.d("CSSLineClass.INFO",r,n,0))),e.b('">'),e.b(`
45
+ `+t),e.b(' <div class="'),e.b(e.v(e.f("contentClass",r,n,0))),e.b('">'),e.s(e.f("blockHeader",r,n,1),r,n,0,156,173,"{{ }}")&&(e.rs(r,n,function(i,c,a){a.b(a.t(a.f("blockHeader",i,c,0)))}),r.pop()),e.s(e.f("blockHeader",r,n,1),r,n,1,0,0,"")||e.b("&nbsp;"),e.b("</div>"),e.b(`
46
+ `+t),e.b(" </td>"),e.b(`
47
+ `+t),e.b("</tr>"),e.fl()},partials:{},subs:{}});q["generic-empty-diff"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b("<tr>"),e.b(`
48
+ `+t),e.b(' <td class="'),e.b(e.v(e.d("CSSLineClass.INFO",r,n,0))),e.b('">'),e.b(`
49
+ `+t),e.b(' <div class="'),e.b(e.v(e.f("contentClass",r,n,0))),e.b('">'),e.b(`
50
+ `+t),e.b(" File without changes"),e.b(`
51
+ `+t),e.b(" </div>"),e.b(`
52
+ `+t),e.b(" </td>"),e.b(`
53
+ `+t),e.b("</tr>"),e.fl()},partials:{},subs:{}});q["generic-file-path"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<span class="d2h-file-name-wrapper">'),e.b(`
54
+ `+t),e.b(e.rp("<fileIcon0",r,n," ")),e.b(' <span class="d2h-file-name">'),e.b(e.v(e.f("fileDiffName",r,n,0))),e.b("</span>"),e.b(`
55
+ `+t),e.b(e.rp("<fileTag1",r,n," ")),e.b("</span>"),e.b(`
56
+ `+t),e.b('<label class="d2h-file-collapse">'),e.b(`
57
+ `+t),e.b(' <input class="d2h-file-collapse-input" type="checkbox" name="viewed" value="viewed">'),e.b(`
58
+ `+t),e.b(" Viewed"),e.b(`
59
+ `+t),e.b("</label>"),e.fl()},partials:{"<fileIcon0":{name:"fileIcon",partials:{},subs:{}},"<fileTag1":{name:"fileTag",partials:{},subs:{}}},subs:{}});q["generic-line"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b("<tr>"),e.b(`
60
+ `+t),e.b(' <td class="'),e.b(e.v(e.f("lineClass",r,n,0))),e.b(" "),e.b(e.v(e.f("type",r,n,0))),e.b('">'),e.b(`
61
+ `+t),e.b(" "),e.b(e.t(e.f("lineNumber",r,n,0))),e.b(`
62
+ `+t),e.b(" </td>"),e.b(`
63
+ `+t),e.b(' <td class="'),e.b(e.v(e.f("type",r,n,0))),e.b('">'),e.b(`
64
+ `+t),e.b(' <div class="'),e.b(e.v(e.f("contentClass",r,n,0))),e.b('">'),e.b(`
65
+ `+t),e.s(e.f("prefix",r,n,1),r,n,0,162,238,"{{ }}")&&(e.rs(r,n,function(i,c,a){a.b(' <span class="d2h-code-line-prefix">'),a.b(a.t(a.f("prefix",i,c,0))),a.b("</span>"),a.b(`
66
+ `+t)}),r.pop()),e.s(e.f("prefix",r,n,1),r,n,1,0,0,"")||(e.b(' <span class="d2h-code-line-prefix">&nbsp;</span>'),e.b(`
67
+ `+t)),e.s(e.f("content",r,n,1),r,n,0,371,445,"{{ }}")&&(e.rs(r,n,function(i,c,a){a.b(' <span class="d2h-code-line-ctn">'),a.b(a.t(a.f("content",i,c,0))),a.b("</span>"),a.b(`
68
+ `+t)}),r.pop()),e.s(e.f("content",r,n,1),r,n,1,0,0,"")||(e.b(' <span class="d2h-code-line-ctn"><br></span>'),e.b(`
69
+ `+t)),e.b(" </div>"),e.b(`
70
+ `+t),e.b(" </td>"),e.b(`
71
+ `+t),e.b("</tr>"),e.fl()},partials:{},subs:{}});q["generic-wrapper"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<div class="d2h-wrapper '),e.b(e.v(e.f("colorScheme",r,n,0))),e.b('">'),e.b(`
72
+ `+t),e.b(" "),e.b(e.t(e.f("content",r,n,0))),e.b(`
73
+ `+t),e.b("</div>"),e.fl()},partials:{},subs:{}});q["icon-file-added"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<svg aria-hidden="true" class="d2h-icon d2h-added" height="16" title="added" version="1.1" viewBox="0 0 14 16"'),e.b(`
74
+ `+t),e.b(' width="14">'),e.b(`
75
+ `+t),e.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM6 9H3V7h3V4h2v3h3v2H8v3H6V9z"></path>'),e.b(`
76
+ `+t),e.b("</svg>"),e.fl()},partials:{},subs:{}});q["icon-file-changed"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<svg aria-hidden="true" class="d2h-icon d2h-changed" height="16" title="modified" version="1.1"'),e.b(`
77
+ `+t),e.b(' viewBox="0 0 14 16" width="14">'),e.b(`
78
+ `+t),e.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM4 8c0-1.66 1.34-3 3-3s3 1.34 3 3-1.34 3-3 3-3-1.34-3-3z"></path>'),e.b(`
79
+ `+t),e.b("</svg>"),e.fl()},partials:{},subs:{}});q["icon-file-deleted"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<svg aria-hidden="true" class="d2h-icon d2h-deleted" height="16" title="removed" version="1.1"'),e.b(`
80
+ `+t),e.b(' viewBox="0 0 14 16" width="14">'),e.b(`
81
+ `+t),e.b(' <path d="M13 1H1C0.45 1 0 1.45 0 2v12c0 0.55 0.45 1 1 1h12c0.55 0 1-0.45 1-1V2c0-0.55-0.45-1-1-1z m0 13H1V2h12v12zM11 9H3V7h8v2z"></path>'),e.b(`
82
+ `+t),e.b("</svg>"),e.fl()},partials:{},subs:{}});q["icon-file-renamed"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<svg aria-hidden="true" class="d2h-icon d2h-moved" height="16" title="renamed" version="1.1"'),e.b(`
83
+ `+t),e.b(' viewBox="0 0 14 16" width="14">'),e.b(`
84
+ `+t),e.b(' <path d="M6 9H3V7h3V4l5 4-5 4V9z m8-7v12c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h12c0.55 0 1 0.45 1 1z m-1 0H1v12h12V2z"></path>'),e.b(`
85
+ `+t),e.b("</svg>"),e.fl()},partials:{},subs:{}});q["icon-file"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<svg aria-hidden="true" class="d2h-icon" height="16" version="1.1" viewBox="0 0 12 16" width="12">'),e.b(`
86
+ `+t),e.b(' <path d="M6 5H2v-1h4v1zM2 8h7v-1H2v1z m0 2h7v-1H2v1z m0 2h7v-1H2v1z m10-7.5v9.5c0 0.55-0.45 1-1 1H1c-0.55 0-1-0.45-1-1V2c0-0.55 0.45-1 1-1h7.5l3.5 3.5z m-1 0.5L8 2H1v12h10V5z"></path>'),e.b(`
87
+ `+t),e.b("</svg>"),e.fl()},partials:{},subs:{}});q["line-by-line-file-diff"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<div id="'),e.b(e.v(e.f("fileHtmlId",r,n,0))),e.b('" class="d2h-file-wrapper" data-lang="'),e.b(e.v(e.d("file.language",r,n,0))),e.b('">'),e.b(`
88
+ `+t),e.b(' <div class="d2h-file-header">'),e.b(`
89
+ `+t),e.b(" "),e.b(e.t(e.f("filePath",r,n,0))),e.b(`
90
+ `+t),e.b(" </div>"),e.b(`
91
+ `+t),e.b(' <div class="d2h-file-diff">'),e.b(`
92
+ `+t),e.b(' <div class="d2h-code-wrapper">'),e.b(`
93
+ `+t),e.b(' <table class="d2h-diff-table">'),e.b(`
94
+ `+t),e.b(' <tbody class="d2h-diff-tbody">'),e.b(`
95
+ `+t),e.b(" "),e.b(e.t(e.f("diffs",r,n,0))),e.b(`
96
+ `+t),e.b(" </tbody>"),e.b(`
97
+ `+t),e.b(" </table>"),e.b(`
98
+ `+t),e.b(" </div>"),e.b(`
99
+ `+t),e.b(" </div>"),e.b(`
100
+ `+t),e.b("</div>"),e.fl()},partials:{},subs:{}});q["line-by-line-numbers"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<div class="line-num1">'),e.b(e.v(e.f("oldNumber",r,n,0))),e.b("</div>"),e.b(`
101
+ `+t),e.b('<div class="line-num2">'),e.b(e.v(e.f("newNumber",r,n,0))),e.b("</div>"),e.fl()},partials:{},subs:{}});q["side-by-side-file-diff"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<div id="'),e.b(e.v(e.f("fileHtmlId",r,n,0))),e.b('" class="d2h-file-wrapper" data-lang="'),e.b(e.v(e.d("file.language",r,n,0))),e.b('">'),e.b(`
102
+ `+t),e.b(' <div class="d2h-file-header">'),e.b(`
103
+ `+t),e.b(" "),e.b(e.t(e.f("filePath",r,n,0))),e.b(`
104
+ `+t),e.b(" </div>"),e.b(`
105
+ `+t),e.b(' <div class="d2h-files-diff">'),e.b(`
106
+ `+t),e.b(' <div class="d2h-file-side-diff">'),e.b(`
107
+ `+t),e.b(' <div class="d2h-code-wrapper">'),e.b(`
108
+ `+t),e.b(' <table class="d2h-diff-table">'),e.b(`
109
+ `+t),e.b(' <tbody class="d2h-diff-tbody">'),e.b(`
110
+ `+t),e.b(" "),e.b(e.t(e.d("diffs.left",r,n,0))),e.b(`
111
+ `+t),e.b(" </tbody>"),e.b(`
112
+ `+t),e.b(" </table>"),e.b(`
113
+ `+t),e.b(" </div>"),e.b(`
114
+ `+t),e.b(" </div>"),e.b(`
115
+ `+t),e.b(' <div class="d2h-file-side-diff">'),e.b(`
116
+ `+t),e.b(' <div class="d2h-code-wrapper">'),e.b(`
117
+ `+t),e.b(' <table class="d2h-diff-table">'),e.b(`
118
+ `+t),e.b(' <tbody class="d2h-diff-tbody">'),e.b(`
119
+ `+t),e.b(" "),e.b(e.t(e.d("diffs.right",r,n,0))),e.b(`
120
+ `+t),e.b(" </tbody>"),e.b(`
121
+ `+t),e.b(" </table>"),e.b(`
122
+ `+t),e.b(" </div>"),e.b(`
123
+ `+t),e.b(" </div>"),e.b(`
124
+ `+t),e.b(" </div>"),e.b(`
125
+ `+t),e.b("</div>"),e.fl()},partials:{},subs:{}});q["tag-file-added"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<span class="d2h-tag d2h-added d2h-added-tag">ADDED</span>'),e.fl()},partials:{},subs:{}});q["tag-file-changed"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<span class="d2h-tag d2h-changed d2h-changed-tag">CHANGED</span>'),e.fl()},partials:{},subs:{}});q["tag-file-deleted"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<span class="d2h-tag d2h-deleted d2h-deleted-tag">DELETED</span>'),e.fl()},partials:{},subs:{}});q["tag-file-renamed"]=new U.Template({code:function(r,n,t){var e=this;return e.b(t=t||""),e.b('<span class="d2h-tag d2h-moved d2h-moved-tag">RENAMED</span>'),e.fl()},partials:{},subs:{}});class cn{constructor({compiledTemplates:n={},rawTemplates:t={}}){const e=Object.entries(t).reduce((i,[c,a])=>{const s=U.compile(a,{asString:!1});return Object.assign(Object.assign({},i),{[c]:s})},{});this.preCompiledTemplates=Object.assign(Object.assign(Object.assign({},q),n),e)}static compile(n){return U.compile(n,{asString:!1})}render(n,t,e,i,c){const a=this.templateKey(n,t);try{return this.preCompiledTemplates[a].render(e,i,c)}catch{throw new Error(`Could not find template to render '${a}'`)}}template(n,t){return this.preCompiledTemplates[this.templateKey(n,t)]}templateKey(n,t){return`${n}-${t}`}}const un=Object.assign(Object.assign(Object.assign({},rt),it),{outputFormat:At.LINE_BY_LINE,drawFileList:!0});function pn(r,n={}){const t=Object.assign(Object.assign({},un),n),e=typeof r=="string"?zt(r,t):r,i=new cn(t),{colorScheme:c}=t,a={colorScheme:c},s=t.drawFileList?new Qt(i,a).render(e):"",p=t.outputFormat==="side-by-side"?new on(i,t).render(e):new en(i,t).render(e);return s+p}export{fn as P,hn as c,pn as h};