@vitest/browser 4.1.2 → 4.1.3

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.
@@ -36,20 +36,20 @@ ${h}`)},{edgeSpacing:n.spacingOuter,min:n.min,spacing:n.spacingInner},n.colors)}
36
36
  `,spacingOuter:e?.min?"":`
37
37
  `,maxOutputLength:e?.maxOutputLength??Sr.maxOutputLength,_outputLengthPerDepth:[]}}function ML(e){return Array.from({length:e+1}).join(" ")}function V0(e,t){if(t&&(AL(t),t.plugins)){const i=xS(t.plugins,e);if(i!==null)return wS(i,e,U0(t),"",0,[])}const n=yS(e,_S(t),kS(t),TS(t));return n!==null?n:bS(e,U0(t),"",0,[])}const LL={AsymmetricMatcher:xM,DOMCollection:AM,DOMElement:zM,Immutable:eL,ReactElement:hL,ReactTestComponent:yL},G0={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},OL={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},$l="…";function RL(e,t){const n=G0[OL[t]]||G0[t]||"";return n?`\x1B[${n[0]}m${String(e)}\x1B[${n[1]}m`:String(e)}function PL({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:i=!0,showProxy:o=!1,maxArrayLength:l=1/0,breakLength:u=1/0,seen:f=[],truncate:h=1/0,stylize:p=String}={},g){const v={showHidden:!!e,depth:Number(t),colors:!!n,customInspect:!!i,showProxy:!!o,maxArrayLength:Number(l),breakLength:Number(u),truncate:Number(h),seen:f,inspect:g,stylize:p};return v.colors&&(v.stylize=RL),v}function IL(e){return e>="\uD800"&&e<="\uDBFF"}function zo(e,t,n=$l){e=String(e);const i=n.length,o=e.length;if(i>t&&o>i)return n;if(o>t&&o>i){let l=t-i;return l>0&&IL(e[l-1])&&(l=l-1),`${e.slice(0,l)}${n}`}return e}function Gr(e,t,n,i=", "){n=n||t.inspect;const o=e.length;if(o===0)return"";const l=t.truncate;let u="",f="",h="";for(let p=0;p<o;p+=1){const g=p+1===e.length,v=p+2===e.length;h=`${$l}(${e.length-p})`;const y=e[p];t.truncate=l-u.length-(g?0:i.length);const w=f||n(y,t)+(g?"":i),$=u.length+w.length,_=$+h.length;if(g&&$>l&&u.length+h.length<=l||!g&&!v&&_>l||(f=g?"":n(e[p+1],t)+(v?"":i),!g&&v&&_>l&&$+f.length>l))break;if(u+=w,!g&&!v&&$+f.length>=l){h=`${$l}(${e.length-p-1})`;break}h=""}return`${u}${h}`}function DL(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}function ac([e,t],n){return n.truncate-=2,typeof e=="string"?e=DL(e):typeof e!="number"&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,t=n.inspect(t,n),`${e}: ${t}`}function FL(e,t){const n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return"[]";t.truncate-=4;const i=Gr(e,t);t.truncate-=i.length;let o="";return n.length&&(o=Gr(n.map(l=>[l,e[l]]),t,ac)),`[ ${i}${o?`, ${o}`:""} ]`}const zL=e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name;function Ei(e,t){const n=zL(e);t.truncate-=n.length+4;const i=Object.keys(e).slice(e.length);if(!e.length&&!i.length)return`${n}[]`;let o="";for(let u=0;u<e.length;u++){const f=`${t.stylize(zo(e[u],t.truncate),"number")}${u===e.length-1?"":", "}`;if(t.truncate-=f.length,e[u]!==e.length&&t.truncate<=3){o+=`${$l}(${e.length-e[u]+1})`;break}o+=f}let l="";return i.length&&(l=Gr(i.map(u=>[u,e[u]]),t,ac)),`${n}[ ${o}${l?`, ${l}`:""} ]`}function HL(e,t){const n=e.toJSON();if(n===null)return"Invalid Date";const i=n.split("T"),o=i[0];return t.stylize(`${o}T${zo(i[1],t.truncate-o.length-1)}`,"date")}function K0(e,t){const n=e[Symbol.toStringTag]||"Function",i=e.name;return i?t.stylize(`[${n} ${zo(i,t.truncate-11)}]`,"special"):t.stylize(`[${n}]`,"special")}function BL([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,t=n.inspect(t,n),`${e} => ${t}`}function jL(e){const t=[];return e.forEach((n,i)=>{t.push([i,n])}),t}function WL(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Gr(jL(e),t,BL)} }`)}const qL=Number.isNaN||(e=>e!==e);function Y0(e,t){return qL(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(zo(String(e),t.truncate),"number")}function X0(e,t){let n=zo(e.toString(),t.truncate-1);return n!==$l&&(n+="n"),t.stylize(n,"bigint")}function UL(e,t){const n=e.toString().split("/")[2],i=t.truncate-(2+n.length),o=e.source;return t.stylize(`/${zo(o,i)}/${n}`,"regexp")}function VL(e){const t=[];return e.forEach(n=>{t.push(n)}),t}function GL(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Gr(VL(e),t)} }`)}const J0=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),KL={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},YL=16;function XL(e){return KL[e]||`\\u${`0000${e.charCodeAt(0).toString(YL)}`.slice(-4)}`}function Z0(e,t){return J0.test(e)&&(e=e.replace(J0,XL)),t.stylize(`'${zo(e,t.truncate-2)}'`,"string")}function Q0(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}const JL=()=>"Promise{…}";function Hu(e,t){const n=Object.getOwnPropertyNames(e),i=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(n.length===0&&i.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);const o=Gr(n.map(f=>[f,e[f]]),t,ac),l=Gr(i.map(f=>[f,e[f]]),t,ac);t.seen.pop();let u="";return o&&l&&(u=", "),`{ ${o}${u}${l} }`}const Rh=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function ZL(e,t){let n="";return Rh&&Rh in e&&(n=e[Rh]),n=n||e.constructor.name,(!n||n==="_class")&&(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${Hu(e,t)}`}function QL(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Gr(e,t)} ]`)}const eO=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function tO(e,t){const n=Object.getOwnPropertyNames(e).filter(u=>eO.indexOf(u)===-1),i=e.name;t.truncate-=i.length;let o="";if(typeof e.message=="string"?o=zo(e.message,t.truncate):n.unshift("message"),o=o?`: ${o}`:"",t.truncate-=o.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);const l=Gr(n.map(u=>[u,e[u]]),t,ac);return`${i}${o}${l?` { ${l} }`:""}`}function nO([e,t],n){return n.truncate-=3,t?`${n.stylize(String(e),"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(String(e),"yellow")}`}function Sp(e,t){return Gr(e,t,rO,`
38
38
  `)}function rO(e,t){switch(e.nodeType){case 1:return CS(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}function CS(e,t){const n=e.getAttributeNames(),i=e.tagName.toLowerCase(),o=t.stylize(`<${i}`,"special"),l=t.stylize(">","special"),u=t.stylize(`</${i}>`,"special");t.truncate-=i.length*2+5;let f="";n.length>0&&(f+=" ",f+=Gr(n.map(g=>[g,e.getAttribute(g)]),t,nO," ")),t.truncate-=f.length;const h=t.truncate;let p=Sp(e.children,t);return p&&p.length>h&&(p=`${$l}(${e.children.length})`),`${o}${f}${l}${p}${u}`}const iO=typeof Symbol=="function"&&typeof Symbol.for=="function",Ph=iO?Symbol.for("chai/inspect"):"@@chai/inspect",Ih=Symbol.for("nodejs.util.inspect.custom"),eb=new WeakMap,tb={},nb={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize("null","null"),boolean:(e,t)=>t.stylize(String(e),"boolean"),Boolean:(e,t)=>t.stylize(String(e),"boolean"),number:Y0,Number:Y0,bigint:X0,BigInt:X0,string:Z0,String:Z0,function:K0,Function:K0,symbol:Q0,Symbol:Q0,Array:FL,Date:HL,Map:WL,Set:GL,RegExp:UL,Promise:JL,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:QL,Int8Array:Ei,Uint8Array:Ei,Uint8ClampedArray:Ei,Int16Array:Ei,Uint16Array:Ei,Int32Array:Ei,Uint32Array:Ei,Float32Array:Ei,Float64Array:Ei,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:tO,HTMLCollection:Sp,NodeList:Sp},oO=(e,t,n,i)=>Ph in e&&typeof e[Ph]=="function"?e[Ph](t):Ih in e&&typeof e[Ih]=="function"?e[Ih](t.depth,t,i):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&eb.has(e.constructor)?eb.get(e.constructor)(e,t):tb[n]?tb[n](e,t):"",sO=Object.prototype.toString;function Bu(e,t={}){const n=PL(t,Bu),{customInspect:i}=n;let o=e===null?"null":typeof e;if(o==="object"&&(o=sO.call(e).slice(8,-1)),o in nb)return nb[o](e,n);if(i&&e){const u=oO(e,n,o,Bu);if(u)return typeof u=="string"?u:Bu(u,n)}const l=e?Object.getPrototypeOf(e):!1;return l===Object.prototype||l===null?Hu(e,n):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?CS(e,n):"constructor"in e?e.constructor!==Object?ZL(e,n):Hu(e,n):e===Object(e)?Hu(e,n):n.stylize(String(e),o)}const{AsymmetricMatcher:ES,DOMCollection:AS,DOMElement:lO,Immutable:$S,ReactElement:NS,ReactTestComponent:MS}=LL,aO=[MS,NS,lO,AS,$S,ES];function LS(e,t=10,{maxLength:n,filterNode:i,...o}={}){const l=n??1e4;let u;const f=typeof i=="string"?cO(i):i,h=f?[MS,NS,FM(f),AS,$S,ES]:aO;try{u=V0(e,{maxDepth:t,escapeString:!1,plugins:h,...o})}catch{u=V0(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:h,...o})}return u.length>=l&&t>1?LS(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:n,filterNode:i,...o}):u}function cO(e){return i=>{if(i.nodeType===8)return!1;if(i.nodeType===1&&i.matches)try{return!i.matches(e)}catch{return!0}return!0}}const OS=/%[sdjifoOc%]/g;function uO(e,t={}){const n=(f,h)=>t.prettifyObject?LS(f,void 0,{printBasicPrototype:!1,escapeString:!1}):RS(f,h);if(typeof e[0]!="string"){const f=[];for(let h=0;h<e.length;h++)f.push(n(e[h],{depth:0,colors:!1}));return f.join(" ")}const i=e.length;let o=1;const l=e[0];let u=String(l).replace(OS,f=>{if(f==="%%")return"%";if(o>=i)return f;switch(f){case"%s":{const h=e[o++];return typeof h=="bigint"?`${h.toString()}n`:typeof h=="number"&&h===0&&1/h<0?"-0":typeof h=="object"&&h!==null?typeof h.toString=="function"&&h.toString!==Object.prototype.toString?h.toString():n(h,{depth:0,colors:!1}):String(h)}case"%d":{const h=e[o++];return typeof h=="bigint"?`${h.toString()}n`:typeof h=="symbol"?"NaN":Number(h).toString()}case"%i":{const h=e[o++];return typeof h=="bigint"?`${h.toString()}n`:Number.parseInt(String(h)).toString()}case"%f":return Number.parseFloat(String(e[o++])).toString();case"%o":return n(e[o++],{showHidden:!0,showProxy:!0});case"%O":return n(e[o++]);case"%c":return o++,"";case"%j":try{return JSON.stringify(e[o++])}catch(h){const p=h.message;if(p.includes("circular structure")||p.includes("cyclic structures")||p.includes("cyclic object"))return"[Circular]";throw h}default:return f}});for(let f=e[o];o<i;f=e[++o])f===null||typeof f!="object"?u+=` ${typeof f=="symbol"?f.toString():f}`:u+=` ${n(f)}`;return u}function fO(...e){return uO(e)}function RS(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),Bu(e,t)}function dO(e,t={}){typeof t.truncate>"u"&&(t.truncate=40);const n=RS(e,t),i=Object.prototype.toString.call(e);if(t.truncate&&n.length>=t.truncate)if(i==="[object Function]"){const o=e;return o.name?`[Function: ${o.name}]`:"[Function]"}else{if(i==="[object Array]")return`[ Array(${e.length}) ]`;if(i==="[object Object]"){const o=Object.keys(e);return`{ Object (${o.length>2?`${o.splice(0,2).join(", ")}, ...`:o.join(", ")}) }`}else return n}return n}function PS(e){return e!=null}function Hl(e,t,n){const i=typeof e;if(!n.includes(i))throw new TypeError(`${t} value must be ${n.join(" or ")}, received "${i}"`)}function hO(e){const t=[];let n="none";for(let i=0;i<e.length;++i)n==="singleline"?e[i]===`
39
- `&&(n="none"):n==="multiline"?e[i-1]==="*"&&e[i]==="/"&&(n="none"):n==="none"&&(e[i]==="/"&&e[i+1]==="/"?n="singleline":e[i]==="/"&&e[i+1]==="*"?(n="multiline",i+=2):t.push(e[i]));return t.join("")}function bs(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}function IS(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function rb(e,t,n=void 0){const i=t.replace(/\[(\d+)\]/g,".$1").split(".");let o=e;for(const l of i)if(o=new Object(o)[l],o===void 0)return n;return o}function ib(){let e=null,t=null;const n=new Promise((i,o)=>{e=i,t=o});return n.resolve=e,n.reject=t,n}function pO(e){if(!Number.isNaN(e))return!1;const t=new Float64Array(1);return t[0]=e,new Uint32Array(t.buffer)[1]>>>31===1}function ob(e){const t=e%10,n=e%100;return t===1&&n!==11?`${e}st`:t===2&&n!==12?`${e}nd`:t===3&&n!==13?`${e}rd`:`${e}th`}function sb(e){return Array.from(new Set(e))}const lb=Symbol("vitest:SAFE_TIMERS");function DS(){const{setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:i,setImmediate:o,clearImmediate:l,queueMicrotask:u}=globalThis[lb]||globalThis,{nextTick:f}=globalThis[lb]||globalThis.process||{};return{nextTick:f,setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:i,setImmediate:o,clearImmediate:l,queueMicrotask:u}}const gO=/^[A-Za-z]:\//;function mO(e=""){return e&&e.replace(/\\/g,"/").replace(gO,t=>t.toUpperCase())}const vO=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function yO(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const FS=function(...e){e=e.map(i=>mO(i));let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const o=i>=0?e[i]:yO();!o||o.length===0||(t=`${o}/${t}`,n=ab(o))}return t=bO(t,!n),n&&!ab(t)?`/${t}`:t.length>0?t:"."};function bO(e,t){let n="",i=0,o=-1,l=0,u=null;for(let f=0;f<=e.length;++f){if(f<e.length)u=e[f];else{if(u==="/")break;u="/"}if(u==="/"){if(!(o===f-1||l===1))if(l===2){if(n.length<2||i!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){const h=n.lastIndexOf("/");h===-1?(n="",i=0):(n=n.slice(0,h),i=n.length-1-n.lastIndexOf("/")),o=f,l=0;continue}else if(n.length>0){n="",i=0,o=f,l=0;continue}}t&&(n+=n.length>0?"/..":"..",i=2)}else n.length>0?n+=`/${e.slice(o+1,f)}`:n=e.slice(o+1,f),i=f-o-1;o=f,l=0}else u==="."&&l!==-1?++l:l=-1}return n}const ab=function(e){return vO.test(e)};var wO=44,cb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xO=new Uint8Array(64),zS=new Uint8Array(128);for(let e=0;e<cb.length;e++){const t=cb.charCodeAt(e);xO[e]=t,zS[t]=e}function _a(e,t){let n=0,i=0,o=0;do{const u=e.next();o=zS[u],n|=(o&31)<<i,i+=5}while(o&32);const l=n&1;return n>>>=1,l&&(n=-2147483648|-n),t+n}function ub(e,t){return e.pos>=t?!1:e.peek()!==wO}var SO=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:n}=this,i=t.indexOf(e,n);return i===-1?t.length:i}};function _O(e){const{length:t}=e,n=new SO(e),i=[];let o=0,l=0,u=0,f=0,h=0;do{const p=n.indexOf(";"),g=[];let v=!0,y=0;for(o=0;n.pos<p;){let w;o=_a(n,o),o<y&&(v=!1),y=o,ub(n,p)?(l=_a(n,l),u=_a(n,u),f=_a(n,f),ub(n,p)?(h=_a(n,h),w=[o,l,u,f,h]):w=[o,l,u,f]):w=[o],g.push(w),n.pos++}v||kO(g),i.push(g),n.pos=p+1}while(n.pos<=t);return i}function kO(e){e.sort(TO)}function TO(e,t){return e[0]-t[0]}var cd=0,CO=1,EO=2,AO=3,$O=4,yf=!1;function NO(e,t,n,i){for(;n<=i;){const o=n+(i-n>>1),l=e[o][cd]-t;if(l===0)return yf=!0,o;l<0?n=o+1:i=o-1}return yf=!1,n-1}function MO(e,t,n){for(let i=n+1;i<e.length&&e[i][cd]===t;n=i++);return n}function LO(e,t,n){for(let i=n-1;i>=0&&e[i][cd]===t;n=i--);return n}function OO(e,t,n,i){const{lastKey:o,lastNeedle:l,lastIndex:u}=n;let f=0,h=e.length-1;if(i===o){if(t===l)return yf=u!==-1&&e[u][cd]===t,u;t>=l?f=u===-1?0:u:h=u}return n.lastKey=i,n.lastNeedle=t,n.lastIndex=NO(e,t,f,h)}var RO="`line` must be greater than 0 (lines start at line 1)",PO="`column` must be greater than or equal to 0 (columns start at column 0)",fb=-1,IO=1;function DO(e){var t;return(t=e)._decoded||(t._decoded=_O(e._encoded))}function FO(e,t){let{line:n,column:i,bias:o}=t;if(n--,n<0)throw new Error(RO);if(i<0)throw new Error(PO);const l=DO(e);if(n>=l.length)return ku(null,null,null,null);const u=l[n],f=zO(u,e._decodedMemo,n,i,o||IO);if(f===-1)return ku(null,null,null,null);const h=u[f];if(h.length===1)return ku(null,null,null,null);const{names:p,resolvedSources:g}=e;return ku(g[h[CO]],h[EO]+1,h[AO],h.length===5?p[h[$O]]:null)}function ku(e,t,n,i){return{source:e,line:t,column:n,name:i}}function zO(e,t,n,i,o){let l=OO(e,i,t,n);return yf?l=(o===fb?MO:LO)(e,i,l):o===fb&&l++,l===-1||l===e.length?-1:l}const zg=/^\s*at .*(?:\S:\d+|\(native\))/m,HO=/^(?:eval@)?(?:\[native code\])?$/,BO=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/node_modules/chai/","/node_modules/tinyspy/","/vite/dist/node/module-runner","/rolldown-vite/dist/node/module-runner","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai","/browser-playwright/dist/locators.js","/browser-webdriverio/dist/locators.js","/browser-preview/dist/locators.js",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,"/@id/__x00__vitest/browser",/\/deps\/vitest_/],jO=Date.now().toString().length,WO=new RegExp(`vitest=\\d{${jO}}`);function HS(e){if(!e.includes(":"))return[e];const n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!n)return[e];let i=n[1];if(i.startsWith("async ")&&(i=i.slice(6)),i.startsWith("http:")||i.startsWith("https:")){const o=new URL(i);o.searchParams.delete("import"),o.searchParams.delete("browserv"),i=o.pathname+o.hash+o.search}if(i.startsWith("/@fs/")){const o=/^\/@fs\/[a-zA-Z]:\//.test(i);i=i.slice(o?5:4)}return i.includes("vitest=")&&(i=i.replace(WO,"").replace(/[?&]$/,"")),[i,n[2]||void 0,n[3]||void 0]}function BS(e){let t=e.trim();if(HO.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")))return null;let n=-1,i="",o;for(let h=0;h<t.length;h++)if(t[h]==="@"){const p=t.slice(h+1);if(p.includes(":")&&p.length>=3){n=h,i=p,o=h>0?t.slice(0,h):void 0;break}}if(n===-1||!i.includes(":")||i.length<3)return null;const[l,u,f]=HS(i);return!l||!u||!f?null:{file:l,method:o||"",line:Number.parseInt(u),column:Number.parseInt(f)}}function qO(e){const t=e.trim();return zg.test(t)?jS(t):BS(t)}function jS(e){let t=e.trim();if(!zg.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const i=n.match(/ (\(.+\)$)/);n=i?n.replace(i[0],""):n;const[o,l,u]=HS(i?i[1]:n);let f=i&&n||"",h=o&&["eval","<anonymous>"].includes(o)?void 0:o;return!h||!l||!u?null:(f.startsWith("async ")&&(f=f.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=h.startsWith("node:")||h.startsWith("internal:")?h:FS(h),f&&(f=f.replace(/\(0\s?,\s?__vite_ssr_import_\d+__.(\w+)\)/g,"$1").replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:f,file:h,line:Number.parseInt(l),column:Number.parseInt(u)})}function UO(e,t={}){const{ignoreStackEntries:n=BO}=t;let i=zg.test(e)?GO(e):VO(e);const o=i.findLastIndex(l=>l.method==="__VITEST_HELPER__"||l.method==="async*__VITEST_HELPER__");return o>=0&&(i=i.slice(o+1)),i.map(l=>{t.getUrlId&&(l.file=t.getUrlId(l.file));const u=t.getSourceMap?.(l.file);if(!u||typeof u!="object"||!u.version)return db(n,l.file)?null:l;const f=new KO(u,l.file),h=XO(f,l);if(!h)return l;const{line:p,column:g,source:v,name:y}=h;let w=v||l.file;return w.match(/\/\w:\//)&&(w=w.slice(1)),db(n,w)?null:p!=null&&g!=null?{line:p,column:g,file:w,method:y||l.method}:l}).filter(l=>l!=null)}function db(e,t){return e.some(n=>t.match(n))}function VO(e){return e.split(`
39
+ `&&(n="none"):n==="multiline"?e[i-1]==="*"&&e[i]==="/"&&(n="none"):n==="none"&&(e[i]==="/"&&e[i+1]==="/"?n="singleline":e[i]==="/"&&e[i+1]==="*"?(n="multiline",i+=2):t.push(e[i]));return t.join("")}function bs(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}function IS(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function rb(e,t,n=void 0){const i=t.replace(/\[(\d+)\]/g,".$1").split(".");let o=e;for(const l of i)if(o=new Object(o)[l],o===void 0)return n;return o}function ib(){let e=null,t=null;const n=new Promise((i,o)=>{e=i,t=o});return n.resolve=e,n.reject=t,n}function pO(e){if(!Number.isNaN(e))return!1;const t=new Float64Array(1);return t[0]=e,new Uint32Array(t.buffer)[1]>>>31===1}function ob(e){const t=e%10,n=e%100;return t===1&&n!==11?`${e}st`:t===2&&n!==12?`${e}nd`:t===3&&n!==13?`${e}rd`:`${e}th`}function sb(e){return Array.from(new Set(e))}const lb=Symbol("vitest:SAFE_TIMERS");function DS(){const{setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:i,setImmediate:o,clearImmediate:l,queueMicrotask:u}=globalThis[lb]||globalThis,{nextTick:f}=globalThis[lb]||globalThis.process||{};return{nextTick:f,setTimeout:e,setInterval:t,clearInterval:n,clearTimeout:i,setImmediate:o,clearImmediate:l,queueMicrotask:u}}const gO=/^[A-Za-z]:\//;function mO(e=""){return e&&e.replace(/\\/g,"/").replace(gO,t=>t.toUpperCase())}const vO=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function yO(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const FS=function(...e){e=e.map(i=>mO(i));let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const o=i>=0?e[i]:yO();!o||o.length===0||(t=`${o}/${t}`,n=ab(o))}return t=bO(t,!n),n&&!ab(t)?`/${t}`:t.length>0?t:"."};function bO(e,t){let n="",i=0,o=-1,l=0,u=null;for(let f=0;f<=e.length;++f){if(f<e.length)u=e[f];else{if(u==="/")break;u="/"}if(u==="/"){if(!(o===f-1||l===1))if(l===2){if(n.length<2||i!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){const h=n.lastIndexOf("/");h===-1?(n="",i=0):(n=n.slice(0,h),i=n.length-1-n.lastIndexOf("/")),o=f,l=0;continue}else if(n.length>0){n="",i=0,o=f,l=0;continue}}t&&(n+=n.length>0?"/..":"..",i=2)}else n.length>0?n+=`/${e.slice(o+1,f)}`:n=e.slice(o+1,f),i=f-o-1;o=f,l=0}else u==="."&&l!==-1?++l:l=-1}return n}const ab=function(e){return vO.test(e)};var wO=44,cb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xO=new Uint8Array(64),zS=new Uint8Array(128);for(let e=0;e<cb.length;e++){const t=cb.charCodeAt(e);xO[e]=t,zS[t]=e}function _a(e,t){let n=0,i=0,o=0;do{const u=e.next();o=zS[u],n|=(o&31)<<i,i+=5}while(o&32);const l=n&1;return n>>>=1,l&&(n=-2147483648|-n),t+n}function ub(e,t){return e.pos>=t?!1:e.peek()!==wO}var SO=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:n}=this,i=t.indexOf(e,n);return i===-1?t.length:i}};function _O(e){const{length:t}=e,n=new SO(e),i=[];let o=0,l=0,u=0,f=0,h=0;do{const p=n.indexOf(";"),g=[];let v=!0,y=0;for(o=0;n.pos<p;){let w;o=_a(n,o),o<y&&(v=!1),y=o,ub(n,p)?(l=_a(n,l),u=_a(n,u),f=_a(n,f),ub(n,p)?(h=_a(n,h),w=[o,l,u,f,h]):w=[o,l,u,f]):w=[o],g.push(w),n.pos++}v||kO(g),i.push(g),n.pos=p+1}while(n.pos<=t);return i}function kO(e){e.sort(TO)}function TO(e,t){return e[0]-t[0]}var cd=0,CO=1,EO=2,AO=3,$O=4,yf=!1;function NO(e,t,n,i){for(;n<=i;){const o=n+(i-n>>1),l=e[o][cd]-t;if(l===0)return yf=!0,o;l<0?n=o+1:i=o-1}return yf=!1,n-1}function MO(e,t,n){for(let i=n+1;i<e.length&&e[i][cd]===t;n=i++);return n}function LO(e,t,n){for(let i=n-1;i>=0&&e[i][cd]===t;n=i--);return n}function OO(e,t,n,i){const{lastKey:o,lastNeedle:l,lastIndex:u}=n;let f=0,h=e.length-1;if(i===o){if(t===l)return yf=u!==-1&&e[u][cd]===t,u;t>=l?f=u===-1?0:u:h=u}return n.lastKey=i,n.lastNeedle=t,n.lastIndex=NO(e,t,f,h)}var RO="`line` must be greater than 0 (lines start at line 1)",PO="`column` must be greater than or equal to 0 (columns start at column 0)",fb=-1,IO=1;function DO(e){var t;return(t=e)._decoded||(t._decoded=_O(e._encoded))}function FO(e,t){let{line:n,column:i,bias:o}=t;if(n--,n<0)throw new Error(RO);if(i<0)throw new Error(PO);const l=DO(e);if(n>=l.length)return ku(null,null,null,null);const u=l[n],f=zO(u,e._decodedMemo,n,i,o||IO);if(f===-1)return ku(null,null,null,null);const h=u[f];if(h.length===1)return ku(null,null,null,null);const{names:p,resolvedSources:g}=e;return ku(g[h[CO]],h[EO]+1,h[AO],h.length===5?p[h[$O]]:null)}function ku(e,t,n,i){return{source:e,line:t,column:n,name:i}}function zO(e,t,n,i,o){let l=OO(e,i,t,n);return yf?l=(o===fb?MO:LO)(e,i,l):o===fb&&l++,l===-1||l===e.length?-1:l}const zg=/^\s*at .*(?:\S:\d+|\(native\))/m,HO=/^(?:eval@)?(?:\[native code\])?$/,BO=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/node_modules/chai/","/node_modules/tinyspy/","/vite/dist/node/module-runner","/rolldown-vite/dist/node/module-runner","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai","/browser-playwright/dist/locators.js","/browser-webdriverio/dist/locators.js","/browser-preview/dist/locators.js",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,"/@id/__x00__vitest/browser",/\/deps\/vitest_/],jO=Date.now().toString().length,WO=new RegExp(`vitest=\\d{${jO}}`);function HS(e){if(!e.includes(":"))return[e];const n=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!n)return[e];let i=n[1];if(i.startsWith("async ")&&(i=i.slice(6)),i.startsWith("http:")||i.startsWith("https:")){const o=new URL(i);o.searchParams.delete("import"),o.searchParams.delete("browserv"),i=o.pathname+o.hash+o.search}if(i.startsWith("/@fs/")){const o=/^\/@fs\/[a-zA-Z]:\//.test(i);i=i.slice(o?5:4)}return i.includes("vitest=")&&(i=i.replace(WO,"").replace(/[?&]$/,"")),[i,n[2]||void 0,n[3]||void 0]}function BS(e){let t=e.trim();if(HO.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")))return null;let n=-1,i="",o;for(let h=0;h<t.length;h++)if(t[h]==="@"){const p=t.slice(h+1);if(p.includes(":")&&p.length>=3){n=h,i=p,o=h>0?t.slice(0,h):void 0;break}}if(n===-1||!i.includes(":")||i.length<3)return null;const[l,u,f]=HS(i);return!l||!u||!f?null:{file:l,method:o||"",line:Number.parseInt(u),column:Number.parseInt(f)}}function qO(e){const t=e.trim();return zg.test(t)?jS(t):BS(t)}function jS(e){let t=e.trim();if(!zg.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let n=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const i=n.match(/ (\(.+\)$)/);n=i?n.replace(i[0],""):n;const[o,l,u]=HS(i?i[1]:n);let f=i&&n||"",h=o&&["eval","<anonymous>"].includes(o)?void 0:o;return!h||!l||!u?null:(f.startsWith("async ")&&(f=f.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=h.startsWith("node:")||h.startsWith("internal:")?h:FS(h),f&&(f=f.replace(/\(0\s?,\s?__vite_ssr_import_\d+__.(\w+)\)/g,"$1").replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:f,file:h,line:Number.parseInt(l),column:Number.parseInt(u)})}function UO(e,t={}){const{ignoreStackEntries:n=BO}=t;let i=zg.test(e)?GO(e):VO(e);const o=i.findLastIndex(l=>l.method==="__VITEST_HELPER__"||l.method==="async*__VITEST_HELPER__"||l.method==="async __VITEST_HELPER__");return o>=0&&(i=i.slice(o+1)),i.map(l=>{t.getUrlId&&(l.file=t.getUrlId(l.file));const u=t.getSourceMap?.(l.file);if(!u||typeof u!="object"||!u.version)return db(n,l.file)?null:l;const f=new KO(u,l.file),h=XO(f,l);if(!h)return l;const{line:p,column:g,source:v,name:y}=h;let w=v||l.file;return w.match(/\/\w:\//)&&(w=w.slice(1)),db(n,w)?null:p!=null&&g!=null?{line:p,column:g,file:w,method:y||l.method}:l}).filter(l=>l!=null)}function db(e,t){return e.some(n=>t.match(n))}function VO(e){return e.split(`
40
40
  `).map(t=>BS(t)).filter(PS)}function GO(e){return e.split(`
41
- `).map(t=>jS(t)).filter(PS)}class KO{_encoded;_decoded;_decodedMemo;url;version;names=[];resolvedSources;constructor(t,n){this.map=t;const{mappings:i,names:o,sources:l}=t;this.version=t.version,this.names=o||[],this._encoded=i||"",this._decodedMemo=YO(),this.url=n,this.resolvedSources=(l||[]).map(u=>FS(n,"..",u||""))}}function YO(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function XO(e,t){const n=FO(e,t);return n.column==null?null:n}const JO=/^[A-Za-z]:\//;function Hg(e=""){return e&&e.replace(/\\/g,"/").replace(JO,t=>t.toUpperCase())}const ZO=/^[/\\]{2}/,QO=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,eR=/^[A-Za-z]:$/,hb=/^\/([A-Za-z]:)?$/,tR=function(e){if(e.length===0)return".";e=Hg(e);const t=e.match(ZO),n=bf(e),i=e[e.length-1]==="/";return e=WS(e,!n),e.length===0?n?"/":i?"./":".":(i&&(e+="/"),eR.test(e)&&(e+="/"),t?n?`//${e}`:`//./${e}`:n&&!bf(e)?`/${e}`:e)},nR=function(...e){let t="";for(const n of e)if(n)if(t.length>0){const i=t[t.length-1]==="/",o=n[0]==="/";i&&o?t+=n.slice(1):t+=i||o?n:`/${n}`}else t+=n;return tR(t)};function rR(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const pb=function(...e){e=e.map(i=>Hg(i));let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const o=i>=0?e[i]:rR();!o||o.length===0||(t=`${o}/${t}`,n=bf(o))}return t=WS(t,!n),n&&!bf(t)?`/${t}`:t.length>0?t:"."};function WS(e,t){let n="",i=0,o=-1,l=0,u=null;for(let f=0;f<=e.length;++f){if(f<e.length)u=e[f];else{if(u==="/")break;u="/"}if(u==="/"){if(!(o===f-1||l===1))if(l===2){if(n.length<2||i!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){const h=n.lastIndexOf("/");h===-1?(n="",i=0):(n=n.slice(0,h),i=n.length-1-n.lastIndexOf("/")),o=f,l=0;continue}else if(n.length>0){n="",i=0,o=f,l=0;continue}}t&&(n+=n.length>0?"/..":"..",i=2)}else n.length>0?n+=`/${e.slice(o+1,f)}`:n=e.slice(o+1,f),i=f-o-1;o=f,l=0}else u==="."&&l!==-1?++l:l=-1}return n}const bf=function(e){return QO.test(e)},ud=function(e,t){const n=pb(e).replace(hb,"$1").split("/"),i=pb(t).replace(hb,"$1").split("/");if(i[0][1]===":"&&n[0][1]===":"&&n[0]!==i[0])return i.join("/");const o=[...n];for(const l of o){if(i[0]!==l)break;n.shift(),i.shift()}return[...n.map(()=>".."),...i].join("/")},iR=function(e,t){const n=Hg(e).split("/");let i="";for(let o=n.length-1;o>=0;o--){const l=n[o];if(l){i=l;break}}return t&&i.endsWith(t)?i.slice(0,-t.length):i};class oR extends Error{code="VITEST_PENDING";taskId;constructor(t,n,i){super(t),this.message=t,this.note=i,this.taskId=n.id}}class mo extends Error{name="FixtureDependencyError"}class sR extends Error{name="FixtureAccessError"}class gb extends Error{name="FixtureParseError"}const lR=new WeakMap,qS=new WeakMap,US=new WeakMap;function aR(e,t){lR.set(e,t)}function cR(e,t){qS.set(e,t)}function uR(e){return qS.get(e)}function fR(e,t){US.set(e,t)}function dR(e){return US.get(e)}const ju=Symbol.for("VITEST_FIXTURE_STACK_TRACE");class un{_suiteContexts;_overrides=new WeakMap;_registrations;static _definitions=[];static _builtinFixtures=["task","signal","onTestFailed","onTestFinished","skip","annotate"];static _fixtureOptionKeys=["auto","injected","scope"];static _fixtureScopes=["test","file","worker"];static _workerContextSuite={type:"worker"};static clearDefinitions(){un._definitions.length=0}static getWorkerContexts(){return un._definitions.map(t=>t.getWorkerContext())}static getFileContexts(t){return un._definitions.map(n=>n.getFileContext(t))}static isFixtureOptions(t){return IS(t)&&Object.keys(t).some(n=>un._fixtureOptionKeys.includes(n))}constructor(t){this._registrations=t??new Map,this._suiteContexts=new WeakMap,un._definitions.push(this)}extend(t,n){const{suite:i}=pi(),o=!i||i.file===i,l=this.parseUserFixtures(t,n,o);return new un(l)}get(t){let n=t;for(;n;){const i=this._overrides.get(n);if(i)return i;if(n===n.file)break;n=n.suite||n.file}return this._registrations}override(t,n){const{suite:i,file:o}=pi(),l=i||o,u=!i||i.file===i,f=new Map(this.get(l)),h=this.parseUserFixtures(t,n,u,f);u?this._registrations=h:this._overrides.set(l,h)}getFileContext(t){return this._suiteContexts.has(t)||this._suiteContexts.set(t,Object.create(null)),this._suiteContexts.get(t)}getWorkerContext(){return this._suiteContexts.has(un._workerContextSuite)||this._suiteContexts.set(un._workerContextSuite,Object.create(null)),this._suiteContexts.get(un._workerContextSuite)}parseUserFixtures(t,n,i,o=new Map(this._registrations)){const l=[];Object.entries(n).forEach(([u,f])=>{let h,p,g;Array.isArray(f)&&f.length>=2&&un.isFixtureOptions(f[1])?(g=f[1],h={auto:g.auto??!1,scope:g.scope??"test",injected:g.injected??!1},p=h.injected?t.injectValue?.(u)??f[0]:f[0]):p=f;const v=o.get(u);v&&h?(v.scope!==h.scope&&l.push(new mo(`The "${u}" fixture was already registered with a "${h.scope}" scope.`)),v.auto!==h.auto&&l.push(new mo(`The "${u}" fixture was already registered as { auto: ${h.auto} }.`))):v?h={auto:v.auto,scope:v.scope,injected:v.injected}:h||(h={auto:!1,injected:!1,scope:"test"}),h.scope&&!un._fixtureScopes.includes(h.scope)&&l.push(new mo(`The "${u}" fixture has unknown scope "${h.scope}".`)),!i&&h.scope!=="test"&&l.push(new mo(`The "${u}" fixture cannot be defined with a ${h.scope} scope${!g?.scope&&v?.scope?" (inherited from the base fixture)":""} inside the describe block. Define it at the top level of the file instead.`));const y=cc(p)?Bg(p):new Set,w={name:u,value:p,auto:h.auto??!1,injected:h.injected??!1,scope:h.scope??"test",deps:y,parent:v};cc(p)&&Object.assign(p,{[ju]:new Error("STACK_TRACE_ERROR")}),o.set(u,w),w.scope==="worker"&&(t.pool==="vmThreads"||t.pool==="vmForks")&&(w.scope="file")});for(const u of o.values())for(const f of u.deps){if(un._builtinFixtures.includes(f))continue;const h=o.get(f);if(!h){l.push(new mo(`The "${u.name}" fixture depends on unknown fixture "${f}".`));continue}if(f===u.name&&!u.parent){l.push(new mo(`The "${u.name}" fixture depends on itself, but does not have a base implementation.`));continue}if(un._fixtureScopes.indexOf(u.scope)>un._fixtureScopes.indexOf(h.scope)){l.push(new mo(`The ${u.scope} "${u.name}" fixture cannot depend on a ${h.scope} fixture "${h.name}".`));continue}}if(l.length===1)throw l[0];if(l.length>1)throw new AggregateError(l,"Cannot resolve user fixtures. See errors for more information.");return o}}const pl=new WeakMap,Dh=new WeakMap;function Ec(e,t){const n=pi(),i=t?.suite||n.suite||n.file;return async o=>{const l=o||t?.context;if(!l)return t?.suiteHook&&gR(e,t.suiteHook,t.stackTraceError),e({});const u=t?.fixtures||uR(l);if(!u)return e(l);const f=u.get(i);if(!f.size)return e(l);const h=[],p=Bg(e);for(const w of f.values())(w.auto||p.has(w.name))&&h.push(w);if(!h.length)return e(l);pl.has(l)||pl.set(l,[]);const g=pl.get(l),v=GS(h,f);if(!v.length)return e(l);if(t?.suiteHook){const w=v.filter($=>$.scope==="test");if(w.length>0){const $=w.map(E=>`"${E.name}"`).join(", "),_={aroundAll:"aroundEach",beforeAll:"beforeEach",afterAll:"afterEach"},C=new mo(`Test-scoped fixtures cannot be used inside ${t.suiteHook} hook. The following fixtures are test-scoped: ${$}. Use { scope: 'file' } or { scope: 'worker' } fixtures instead, or move the logic to ${_[t.suiteHook]} hook.`);throw t.stackTraceError?.stack&&(C.stack=C.message+t.stackTraceError.stack.replace(t.stackTraceError.message,"")),C}}Dh.has(l)||Dh.set(l,new WeakSet);const y=Dh.get(l);for(const w of v)if(w.scope==="test"){if(y.has(w))continue;y.add(w);const $=await hR(w,l,g);l[w.name]=$,g.push(()=>{y.delete(w)})}else{const $=await pR(u,i,w);l[w.name]=$}return e(l)}}function cc(e){return typeof e=="function"}function hR(e,t,n){return cc(e.value)?VS(e.value,e.name,t,n):e.value}const Tu=new WeakMap;async function pR(e,t,n){const i=e.getWorkerContext(),o=e.getFileContext(t.file),l=n.scope==="worker"?i:o;if(!cc(n.value))return l[n.name]=n.value,n.value;if(n.name in l)return l[n.name];if(Tu.has(n))return Tu.get(n);pl.has(l)||pl.set(l,[]);const u=pl.get(l),f=VS(n.value,n.name,n.scope==="file"?{...i,...o}:l,u).then(h=>(l[n.name]=h,Tu.delete(n),h));return Tu.set(n,f),f}async function VS(e,t,n,i){const o=ib(),l=ju in e&&e[ju]instanceof Error?e[ju]:void 0;let u=!1;const f=e(n,async h=>{u=!0,o.resolve(h);const p=ib();i.push(async()=>{p.resolve(),await f}),await p}).then(()=>{if(!u){const h=new Error(`Fixture "${t}" returned without calling "use". Make sure to call "use" in every code path of the fixture function.`);l?.stack&&(h.stack=h.message+l.stack.replace(l.message,"")),o.reject(h)}}).catch(h=>{if(!u){o.reject(h);return}throw h});return o}function GS(e,t,n=new Set,i=[]){return e.forEach(o=>{if(!i.includes(o)){if(!cc(o.value)||!o.deps){i.push(o);return}if(n.has(o))if(o.parent)o=o.parent;else throw new Error(`Circular fixture dependency detected: ${o.name} <- ${[...n].reverse().map(l=>l.name).join(" <- ")}`);n.add(o),GS([...o.deps].map(l=>l===o.name?o.parent:t.get(l)).filter(l=>!!l),t,n,i),i.push(o),n.clear()}}),i}function gR(e,t,n){const i=Bg(e,{sourceError:n,suiteHook:t});if(i.size){const o=new sR(`The ${t} hook uses fixtures "${[...i].join('", "')}", but has no access to context. Did you forget to call it as "test.${t}()" instead of "${t}()"?
42
- If you used internal "suite" task as the first argument previously, access it in the second argument instead. See https://vitest.dev/guide/test-context#suite-level-hooks`);throw n&&(o.stack=n.stack?.replace(n.message,o.message)),o}}const _p=Symbol("$vitest:fixture-props"),kp=Symbol("$vitest:fixture-prop-names");function wf(e,t){Object.defineProperty(e,_p,{value:t,enumerable:!1})}function Cu(e,t){return e[kp]=t,t}function Bg(e,{sourceError:t,suiteHook:n}={}){if(kp in e)return e[kp];const{index:i=0,original:o=e}=_p in e?e[_p]:{};let l=hO(o.toString());/__async\((?:this|null), (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(l)&&(l=l.split(/__async\((?:this|null),/)[1]);const u=l.match(/[^(]*\(([^)]*)/);if(!u)return Cu(e,new Set);const f=mb(u[1]);if(!f.length)return Cu(e,new Set);const h=f[i];if(!h)return Cu(e,new Set);if(!(h[0]==="{"&&h.endsWith("}"))){const y=ob(i+1),w=new gb(`The ${y} argument inside a fixture must use object destructuring pattern, e.g. ({ task } => {}). Instead, received "${h}".${n?` If you used internal "suite" task as the ${y} argument previously, access it in the ${ob(i+2)} argument instead.`:""}`);throw t&&(w.stack=t.stack?.replace(t.message,w.message)),w}const p=h.slice(1,-1).replace(/\s/g,""),g=mb(p).map(y=>y.replace(/:.*|=.*/g,"")),v=g.at(-1);if(v&&v.startsWith("...")){const y=new gb(`Rest parameters are not supported in fixtures, received "${v}".`);throw t&&(y.stack=t.stack?.replace(t.message,y.message)),y}return Cu(e,new Set(g))}function mb(e){const t=[],n=[];let i=0;for(let l=0;l<e.length;l++)if(e[l]==="{"||e[l]==="[")n.push(e[l]==="{"?"}":"]");else if(e[l]===n.at(-1))n.pop();else if(!n.length&&e[l]===","){const u=e.substring(i,l).trim();u&&t.push(u),i=l+1}const o=e.substring(i).trim();return o&&t.push(o),t}const KS=Symbol("kChainableContext");function Ii(e){return e?.[KS]}function YS(e,t,n){function i(l){const u=function(...f){return t.apply(l,f)};Object.assign(u,t),Object.defineProperty(u,KS,{value:{withContext:()=>u.bind(l),getFixtures:()=>l.fixtures,setContext:(f,h)=>{l[f]=h},mergeContext:f=>{Object.assign(l,f)}},enumerable:!1});for(const f of e)Object.defineProperty(u,f,{get(){return i({...l,[f]:!0})}});return u}const o=i(n??{});return Object.defineProperty(o,"fn",{value:t,enumerable:!1}),o}function ws(){return qg().config.hookTimeout}const XS=Symbol.for("VITEST_CLEANUP_TIMEOUT"),JS=Symbol.for("VITEST_CLEANUP_STACK_TRACE"),ZS=Symbol.for("VITEST_AROUND_TIMEOUT"),QS=Symbol.for("VITEST_AROUND_STACK_TRACE");function mR(e,t=ws()){Hl(e,'"beforeAll" callback',["function"]);const n=new Error("STACK_TRACE_ERROR"),i=Ii(this);return pi().on("beforeAll",Object.assign(xs(jg("beforeAll",e,i,n),t,!0,n),{[XS]:t,[JS]:n}))}function vR(e,t){Hl(e,'"afterAll" callback',["function"]);const n=Ii(this),i=new Error("STACK_TRACE_ERROR");return pi().on("afterAll",xs(jg("afterAll",e,n,i),t??ws(),!0,i))}function yR(e,t=ws()){Hl(e,'"beforeEach" callback',["function"]);const n=new Error("STACK_TRACE_ERROR"),i=(o,l)=>Ec(e,{suite:l})(o);return pi().on("beforeEach",Object.assign(xs(i,t??ws(),!0,n,Vg),{[XS]:t,[JS]:n}))}function bR(e,t){Hl(e,'"afterEach" callback',["function"]);const n=(i,o)=>Ec(e,{suite:o})(i);return pi().on("afterEach",xs(n,t??ws(),!0,new Error("STACK_TRACE_ERROR"),Vg))}function wR(e,t){Hl(e,'"aroundAll" callback',["function"]);const n=new Error("STACK_TRACE_ERROR"),i=t??ws(),o=Ii(this);return pi().on("aroundAll",Object.assign(jg("aroundAll",e,o,n,1),{[ZS]:i,[QS]:n}))}function xR(e,t){Hl(e,'"aroundEach" callback',["function"]);const n=new Error("STACK_TRACE_ERROR"),i=t??ws(),o=(l,u,f)=>{const h=g=>e(l,g,f);return wf(h,{index:1,original:e}),Ec(h,{suite:f})(u)};return pi().on("aroundEach",Object.assign(o,{[ZS]:i,[QS]:n}))}function jg(e,t,n,i,o=0){return(...l)=>{const u=l.at(-1),f=l.slice(0,-1),h=y=>t(...f,y,u);wf(h,{index:o,original:t});const p=n?.getFixtures(),g=p?.getFileContext(u.file);return Ec(h,{suiteHook:e,fixtures:p,context:g,stackTraceError:i})()}}function SR(e){let t=0;if(e.length===0)return`${t}`;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);t=(t<<5)-t+i,t=t&t}return`${t}`}function e_(e,t,n,i,o){const l=ud(t,e),u={id:_R(l,n),name:l,fullName:l,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:n,file:void 0,pool:i,viteEnvironment:o};return u.file=u,u}function _R(e,t){return SR(`${e}${t||""}`)}function t_(e,t){const n=t.split(`
43
- `).slice(1);for(const i of n){const o=qO(i);if(o&&o.file===e)return o}}function kR(e,t){if(!e.strictTags)return;const n=new Set(e.tags.map(i=>i.name));for(const i of t)if(!n.has(i))throw xf(e.tags,i)}function xf(e,t,n="tag"){throw e.length?new Error(`The ${n} "${t}" is not defined in the configuration. Available tags are:
41
+ `).map(t=>jS(t)).filter(PS)}class KO{_encoded;_decoded;_decodedMemo;url;version;names=[];resolvedSources;constructor(t,n){this.map=t;const{mappings:i,names:o,sources:l}=t;this.version=t.version,this.names=o||[],this._encoded=i||"",this._decodedMemo=YO(),this.url=n,this.resolvedSources=(l||[]).map(u=>FS(n,"..",u||""))}}function YO(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function XO(e,t){const n=FO(e,t);return n.column==null?null:n}const JO=/^[A-Za-z]:\//;function Hg(e=""){return e&&e.replace(/\\/g,"/").replace(JO,t=>t.toUpperCase())}const ZO=/^[/\\]{2}/,QO=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,eR=/^[A-Za-z]:$/,hb=/^\/([A-Za-z]:)?$/,tR=function(e){if(e.length===0)return".";e=Hg(e);const t=e.match(ZO),n=bf(e),i=e[e.length-1]==="/";return e=WS(e,!n),e.length===0?n?"/":i?"./":".":(i&&(e+="/"),eR.test(e)&&(e+="/"),t?n?`//${e}`:`//./${e}`:n&&!bf(e)?`/${e}`:e)},nR=function(...e){let t="";for(const n of e)if(n)if(t.length>0){const i=t[t.length-1]==="/",o=n[0]==="/";i&&o?t+=n.slice(1):t+=i||o?n:`/${n}`}else t+=n;return tR(t)};function rR(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const pb=function(...e){e=e.map(i=>Hg(i));let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){const o=i>=0?e[i]:rR();!o||o.length===0||(t=`${o}/${t}`,n=bf(o))}return t=WS(t,!n),n&&!bf(t)?`/${t}`:t.length>0?t:"."};function WS(e,t){let n="",i=0,o=-1,l=0,u=null;for(let f=0;f<=e.length;++f){if(f<e.length)u=e[f];else{if(u==="/")break;u="/"}if(u==="/"){if(!(o===f-1||l===1))if(l===2){if(n.length<2||i!==2||n[n.length-1]!=="."||n[n.length-2]!=="."){if(n.length>2){const h=n.lastIndexOf("/");h===-1?(n="",i=0):(n=n.slice(0,h),i=n.length-1-n.lastIndexOf("/")),o=f,l=0;continue}else if(n.length>0){n="",i=0,o=f,l=0;continue}}t&&(n+=n.length>0?"/..":"..",i=2)}else n.length>0?n+=`/${e.slice(o+1,f)}`:n=e.slice(o+1,f),i=f-o-1;o=f,l=0}else u==="."&&l!==-1?++l:l=-1}return n}const bf=function(e){return QO.test(e)},ud=function(e,t){const n=pb(e).replace(hb,"$1").split("/"),i=pb(t).replace(hb,"$1").split("/");if(i[0][1]===":"&&n[0][1]===":"&&n[0]!==i[0])return i.join("/");const o=[...n];for(const l of o){if(i[0]!==l)break;n.shift(),i.shift()}return[...n.map(()=>".."),...i].join("/")},iR=function(e,t){const n=Hg(e).split("/");let i="";for(let o=n.length-1;o>=0;o--){const l=n[o];if(l){i=l;break}}return t&&i.endsWith(t)?i.slice(0,-t.length):i};class oR extends Error{code="VITEST_PENDING";taskId;constructor(t,n,i){super(t),this.message=t,this.note=i,this.taskId=n.id}}class mo extends Error{name="FixtureDependencyError"}class sR extends Error{name="FixtureAccessError"}class gb extends Error{name="FixtureParseError"}const lR=new WeakMap,qS=new WeakMap,US=new WeakMap;function aR(e,t){lR.set(e,t)}function cR(e,t){qS.set(e,t)}function uR(e){return qS.get(e)}function fR(e,t){US.set(e,t)}function dR(e){return US.get(e)}const ju=Symbol.for("VITEST_FIXTURE_STACK_TRACE");class un{_suiteContexts;_overrides=new WeakMap;_registrations;static _definitions=[];static _builtinFixtures=["task","signal","onTestFailed","onTestFinished","skip","annotate"];static _fixtureOptionKeys=["auto","injected","scope"];static _fixtureScopes=["test","file","worker"];static _workerContextSuite={type:"worker"};static clearDefinitions(){un._definitions.length=0}static getWorkerContexts(){return un._definitions.map(t=>t.getWorkerContext())}static getFileContexts(t){return un._definitions.map(n=>n.getFileContext(t))}static isFixtureOptions(t){return IS(t)&&Object.keys(t).some(n=>un._fixtureOptionKeys.includes(n))}constructor(t){this._registrations=t??new Map,this._suiteContexts=new WeakMap,un._definitions.push(this)}extend(t,n){const{suite:i}=pi(),o=!i||i.file===i,l=this.parseUserFixtures(t,n,o);return new un(l)}get(t){let n=t;for(;n;){const i=this._overrides.get(n);if(i)return i;if(n===n.file)break;n=n.suite||n.file}return this._registrations}override(t,n){const{suite:i,file:o}=pi(),l=i||o,u=!i||i.file===i,f=new Map(this.get(l)),h=this.parseUserFixtures(t,n,u,f);u?this._registrations=h:this._overrides.set(l,h)}getFileContext(t){return this._suiteContexts.has(t)||this._suiteContexts.set(t,Object.create(null)),this._suiteContexts.get(t)}getWorkerContext(){return this._suiteContexts.has(un._workerContextSuite)||this._suiteContexts.set(un._workerContextSuite,Object.create(null)),this._suiteContexts.get(un._workerContextSuite)}parseUserFixtures(t,n,i,o=new Map(this._registrations)){const l=[];Object.entries(n).forEach(([u,f])=>{let h,p,g;Array.isArray(f)&&f.length>=2&&un.isFixtureOptions(f[1])?(g=f[1],h={auto:g.auto??!1,scope:g.scope??"test",injected:g.injected??!1},p=h.injected?t.injectValue?.(u)??f[0]:f[0]):p=f;const v=o.get(u);v&&h?(v.scope!==h.scope&&l.push(new mo(`The "${u}" fixture was already registered with a "${h.scope}" scope.`)),v.auto!==h.auto&&l.push(new mo(`The "${u}" fixture was already registered as { auto: ${h.auto} }.`))):v?h={auto:v.auto,scope:v.scope,injected:v.injected}:h||(h={auto:!1,injected:!1,scope:"test"}),h.scope&&!un._fixtureScopes.includes(h.scope)&&l.push(new mo(`The "${u}" fixture has unknown scope "${h.scope}".`)),!i&&h.scope!=="test"&&l.push(new mo(`The "${u}" fixture cannot be defined with a ${h.scope} scope${!g?.scope&&v?.scope?" (inherited from the base fixture)":""} inside the describe block. Define it at the top level of the file instead.`));const y=cc(p)?Bg(p):new Set,w={name:u,value:p,auto:h.auto??!1,injected:h.injected??!1,scope:h.scope??"test",deps:y,parent:v};cc(p)&&Object.assign(p,{[ju]:new Error("STACK_TRACE_ERROR")}),o.set(u,w),w.scope==="worker"&&(t.pool==="vmThreads"||t.pool==="vmForks")&&(w.scope="file")});for(const u of o.values())for(const f of u.deps){if(un._builtinFixtures.includes(f))continue;const h=o.get(f);if(!h){l.push(new mo(`The "${u.name}" fixture depends on unknown fixture "${f}".`));continue}if(f===u.name&&!u.parent){l.push(new mo(`The "${u.name}" fixture depends on itself, but does not have a base implementation.`));continue}if(un._fixtureScopes.indexOf(u.scope)>un._fixtureScopes.indexOf(h.scope)){l.push(new mo(`The ${u.scope} "${u.name}" fixture cannot depend on a ${h.scope} fixture "${h.name}".`));continue}}if(l.length===1)throw l[0];if(l.length>1)throw new AggregateError(l,"Cannot resolve user fixtures. See errors for more information.");return o}}const pl=new WeakMap,Dh=new WeakMap;function Ec(e,t){const n=pi(),i=t?.suite||n.suite||n.file;return async o=>{const l=o||t?.context;if(!l)return t?.suiteHook&&mR(e,t.suiteHook,t.stackTraceError),e({});const u=t?.fixtures||uR(l);if(!u)return e(l);const f=u.get(i);if(!f.size)return e(l);const h=[],p=Bg(e);for(const w of f.values())(hR(w,t)||p.has(w.name))&&h.push(w);if(!h.length)return e(l);pl.has(l)||pl.set(l,[]);const g=pl.get(l),v=GS(h,f);if(!v.length)return e(l);if(t?.suiteHook){const w=v.filter($=>$.scope==="test");if(w.length>0){const $=w.map(E=>`"${E.name}"`).join(", "),_={aroundAll:"aroundEach",beforeAll:"beforeEach",afterAll:"afterEach"},C=new mo(`Test-scoped fixtures cannot be used inside ${t.suiteHook} hook. The following fixtures are test-scoped: ${$}. Use { scope: 'file' } or { scope: 'worker' } fixtures instead, or move the logic to ${_[t.suiteHook]} hook.`);throw t.stackTraceError?.stack&&(C.stack=C.message+t.stackTraceError.stack.replace(t.stackTraceError.message,"")),C}}Dh.has(l)||Dh.set(l,new WeakSet);const y=Dh.get(l);for(const w of v)if(w.scope==="test"){if(y.has(w))continue;y.add(w);const $=await pR(w,l,g);l[w.name]=$,g.push(()=>{y.delete(w)})}else{const $=await gR(u,i,w);l[w.name]=$}return e(l)}}function hR(e,t){return!(!e.auto||t?.suiteHook&&e.scope==="test")}function cc(e){return typeof e=="function"}function pR(e,t,n){return cc(e.value)?VS(e.value,e.name,t,n):e.value}const Tu=new WeakMap;async function gR(e,t,n){const i=e.getWorkerContext(),o=e.getFileContext(t.file),l=n.scope==="worker"?i:o;if(!cc(n.value))return l[n.name]=n.value,n.value;if(n.name in l)return l[n.name];if(Tu.has(n))return Tu.get(n);pl.has(l)||pl.set(l,[]);const u=pl.get(l),f=VS(n.value,n.name,n.scope==="file"?{...i,...o}:l,u).then(h=>(l[n.name]=h,Tu.delete(n),h));return Tu.set(n,f),f}async function VS(e,t,n,i){const o=ib(),l=ju in e&&e[ju]instanceof Error?e[ju]:void 0;let u=!1;const f=e(n,async h=>{u=!0,o.resolve(h);const p=ib();i.push(async()=>{p.resolve(),await f}),await p}).then(()=>{if(!u){const h=new Error(`Fixture "${t}" returned without calling "use". Make sure to call "use" in every code path of the fixture function.`);l?.stack&&(h.stack=h.message+l.stack.replace(l.message,"")),o.reject(h)}}).catch(h=>{if(!u){o.reject(h);return}throw h});return o}function GS(e,t,n=new Set,i=[]){return e.forEach(o=>{if(!i.includes(o)){if(!cc(o.value)||!o.deps){i.push(o);return}if(n.has(o))if(o.parent)o=o.parent;else throw new Error(`Circular fixture dependency detected: ${o.name} <- ${[...n].reverse().map(l=>l.name).join(" <- ")}`);n.add(o),GS([...o.deps].map(l=>l===o.name?o.parent:t.get(l)).filter(l=>!!l),t,n,i),i.push(o),n.clear()}}),i}function mR(e,t,n){const i=Bg(e,{sourceError:n,suiteHook:t});if(i.size){const o=new sR(`The ${t} hook uses fixtures "${[...i].join('", "')}", but has no access to context. Did you forget to call it as "test.${t}()" instead of "${t}()"?
42
+ If you used internal "suite" task as the first argument previously, access it in the second argument instead. See https://vitest.dev/guide/test-context#suite-level-hooks`);throw n&&(o.stack=n.stack?.replace(n.message,o.message)),o}}const _p=Symbol("$vitest:fixture-props"),kp=Symbol("$vitest:fixture-prop-names");function wf(e,t){Object.defineProperty(e,_p,{value:t,enumerable:!1})}function Cu(e,t){return e[kp]=t,t}function Bg(e,{sourceError:t,suiteHook:n}={}){if(kp in e)return e[kp];const{index:i=0,original:o=e}=_p in e?e[_p]:{};let l=hO(o.toString());/__async\((?:this|null), (?:null|arguments|\[[_0-9, ]*\]), function\*/.test(l)&&(l=l.split(/__async\((?:this|null),/)[1]);const u=l.match(/[^(]*\(([^)]*)/);if(!u)return Cu(e,new Set);const f=mb(u[1]);if(!f.length)return Cu(e,new Set);const h=f[i];if(!h)return Cu(e,new Set);if(!(h[0]==="{"&&h.endsWith("}"))){const y=ob(i+1),w=new gb(`The ${y} argument inside a fixture must use object destructuring pattern, e.g. ({ task } => {}). Instead, received "${h}".${n?` If you used internal "suite" task as the ${y} argument previously, access it in the ${ob(i+2)} argument instead.`:""}`);throw t&&(w.stack=t.stack?.replace(t.message,w.message)),w}const p=h.slice(1,-1).replace(/\s/g,""),g=mb(p).map(y=>y.replace(/:.*|=.*/g,"")),v=g.at(-1);if(v&&v.startsWith("...")){const y=new gb(`Rest parameters are not supported in fixtures, received "${v}".`);throw t&&(y.stack=t.stack?.replace(t.message,y.message)),y}return Cu(e,new Set(g))}function mb(e){const t=[],n=[];let i=0;for(let l=0;l<e.length;l++)if(e[l]==="{"||e[l]==="[")n.push(e[l]==="{"?"}":"]");else if(e[l]===n.at(-1))n.pop();else if(!n.length&&e[l]===","){const u=e.substring(i,l).trim();u&&t.push(u),i=l+1}const o=e.substring(i).trim();return o&&t.push(o),t}const KS=Symbol("kChainableContext");function Ii(e){return e?.[KS]}function YS(e,t,n){function i(l){const u=function(...f){return t.apply(l,f)};Object.assign(u,t),Object.defineProperty(u,KS,{value:{withContext:()=>u.bind(l),getFixtures:()=>l.fixtures,setContext:(f,h)=>{l[f]=h},mergeContext:f=>{Object.assign(l,f)}},enumerable:!1});for(const f of e)Object.defineProperty(u,f,{get(){return i({...l,[f]:!0})}});return u}const o=i(n??{});return Object.defineProperty(o,"fn",{value:t,enumerable:!1}),o}function ws(){return qg().config.hookTimeout}const XS=Symbol.for("VITEST_CLEANUP_TIMEOUT"),JS=Symbol.for("VITEST_CLEANUP_STACK_TRACE"),ZS=Symbol.for("VITEST_AROUND_TIMEOUT"),QS=Symbol.for("VITEST_AROUND_STACK_TRACE");function vR(e,t=ws()){Hl(e,'"beforeAll" callback',["function"]);const n=new Error("STACK_TRACE_ERROR"),i=Ii(this);return pi().on("beforeAll",Object.assign(xs(jg("beforeAll",e,i,n),t,!0,n),{[XS]:t,[JS]:n}))}function yR(e,t){Hl(e,'"afterAll" callback',["function"]);const n=Ii(this),i=new Error("STACK_TRACE_ERROR");return pi().on("afterAll",xs(jg("afterAll",e,n,i),t??ws(),!0,i))}function bR(e,t=ws()){Hl(e,'"beforeEach" callback',["function"]);const n=new Error("STACK_TRACE_ERROR"),i=(o,l)=>Ec(e,{suite:l})(o);return pi().on("beforeEach",Object.assign(xs(i,t??ws(),!0,n,Vg),{[XS]:t,[JS]:n}))}function wR(e,t){Hl(e,'"afterEach" callback',["function"]);const n=(i,o)=>Ec(e,{suite:o})(i);return pi().on("afterEach",xs(n,t??ws(),!0,new Error("STACK_TRACE_ERROR"),Vg))}function xR(e,t){Hl(e,'"aroundAll" callback',["function"]);const n=new Error("STACK_TRACE_ERROR"),i=t??ws(),o=Ii(this);return pi().on("aroundAll",Object.assign(jg("aroundAll",e,o,n,1),{[ZS]:i,[QS]:n}))}function SR(e,t){Hl(e,'"aroundEach" callback',["function"]);const n=new Error("STACK_TRACE_ERROR"),i=t??ws(),o=(l,u,f)=>{const h=g=>e(l,g,f);return wf(h,{index:1,original:e}),Ec(h,{suite:f})(u)};return pi().on("aroundEach",Object.assign(o,{[ZS]:i,[QS]:n}))}function jg(e,t,n,i,o=0){return(...l)=>{const u=l.at(-1),f=l.slice(0,-1),h=y=>t(...f,y,u);wf(h,{index:o,original:t});const p=n?.getFixtures(),g=p?.getFileContext(u.file);return Ec(h,{suiteHook:e,fixtures:p,context:g,stackTraceError:i})()}}function _R(e){let t=0;if(e.length===0)return`${t}`;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);t=(t<<5)-t+i,t=t&t}return`${t}`}function e_(e,t,n,i,o){const l=ud(t,e),u={id:kR(l,n),name:l,fullName:l,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:n,file:void 0,pool:i,viteEnvironment:o};return u.file=u,u}function kR(e,t){return _R(`${e}${t||""}`)}function t_(e,t){const n=t.split(`
43
+ `).slice(1);for(const i of n){const o=qO(i);if(o&&o.file===e)return o}}function TR(e,t){if(!e.strictTags)return;const n=new Set(e.tags.map(i=>i.name));for(const i of t)if(!n.has(i))throw xf(e.tags,i)}function xf(e,t,n="tag"){throw e.length?new Error(`The ${n} "${t}" is not defined in the configuration. Available tags are:
44
44
  ${e.map(i=>`- ${i.name}${i.description?`: ${i.description}`:""}`).join(`
45
- `)}`):new Error(`The Vitest config does't define any "tags", cannot apply "${t}" ${n} for this test. See: https://vitest.dev/guide/test-tags`)}function TR(e,t){const n=e.map(i=>CR(i,t));return i=>n.every(o=>o(i))}function CR(e,t){const n=ER(e),i=new AR(n,e),o=r_(i,t);if(i.peek().type!=="EOF")throw new Error(`Invalid tags expression: unexpected "${Tp(i.peek())}" in "${e}"`);return l=>nl(o,l)}function Tp(e){switch(e.type){case"TAG":return e.value;default:return n_(e.type)}}function ER(e){const t=[];let n=0;for(;n<e.length;){if(e[n]===" "||e[n]===" "){n++;continue}if(e[n]==="("){t.push({type:"LPAREN"}),n++;continue}if(e[n]===")"){t.push({type:"RPAREN"}),n++;continue}if(e[n]==="!"){t.push({type:"NOT"}),n++;continue}if(e.slice(n,n+2)==="&&"){t.push({type:"AND"}),n+=2;continue}if(e.slice(n,n+2)==="||"){t.push({type:"OR"}),n+=2;continue}if(/^and(?:\s|\)|$)/i.test(e.slice(n))){t.push({type:"AND"}),n+=3;continue}if(/^or(?:\s|\)|$)/i.test(e.slice(n))){t.push({type:"OR"}),n+=2;continue}if(/^not\s/i.test(e.slice(n))){t.push({type:"NOT"}),n+=3;continue}let i="";for(;n<e.length&&e[n]!==" "&&e[n]!==" "&&e[n]!=="("&&e[n]!==")"&&e[n]!=="!"&&e[n]!=="&"&&e[n]!=="|";){const o=e.slice(n);if(i===""&&(/^and(?:\s|\)|$)/i.test(o)||/^or(?:\s|\)|$)/i.test(o)||/^not\s/i.test(o)))break;i+=e[n],n++}i&&t.push({type:"TAG",value:i})}return t.push({type:"EOF"}),t}class AR{pos=0;constructor(t,n){this.tokens=t,this.expr=n}peek(){return this.tokens[this.pos]}next(){return this.tokens[this.pos++]}expect(t){const n=this.next();if(n.type!==t)throw t==="RPAREN"&&n.type==="EOF"?new Error(`Invalid tags expression: missing closing ")" in "${this.expr}"`):new Error(`Invalid tags expression: expected "${n_(t)}" but got "${Tp(n)}" in "${this.expr}"`);return n}unexpectedToken(){const t=this.peek();throw t.type==="EOF"?new Error(`Invalid tags expression: unexpected end of expression in "${this.expr}"`):new Error(`Invalid tags expression: unexpected "${Tp(t)}" in "${this.expr}"`)}}function n_(e){switch(e){case"TAG":return"tag";case"AND":return"and";case"OR":return"or";case"NOT":return"not";case"LPAREN":return"(";case"RPAREN":return")";case"EOF":return"end of expression"}}function r_(e,t){let n=vb(e,t);for(;e.peek().type==="OR";){e.next();const i=vb(e,t);n={type:"or",left:n,right:i}}return n}function vb(e,t){let n=Cp(e,t);for(;e.peek().type==="AND";){e.next();const i=Cp(e,t);n={type:"and",left:n,right:i}}return n}function Cp(e,t){return e.peek().type==="NOT"?(e.next(),{type:"not",operand:Cp(e,t)}):$R(e,t)}function $R(e,t){const n=e.peek();if(n.type==="LPAREN"){e.next();const i=r_(e,t);return e.expect("RPAREN"),i}if(n.type==="TAG"){e.next();const i=n.value,o=MR(i,t);return{type:"tag",value:i,pattern:o}}e.unexpectedToken()}function NR(e){return new RegExp(`^${e.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*")}$`)}function MR(e,t){if(e.includes("*")){const n=NR(e);if(!t.some(o=>n.test(o.name)))throw xf(t,e,"tag pattern");return n}if(!t.length||!t.some(n=>n.name===e))throw xf(t,e,"tag pattern");return null}function nl(e,t){switch(e.type){case"tag":return e.pattern?t.some(n=>e.pattern.test(n)):t.includes(e.value);case"not":return!nl(e.operand,t);case"and":return nl(e.left,t)&&nl(e.right,t);case"or":return nl(e.left,t)||nl(e.right,t)}}function Nl(e){return e.type==="test"}function i_(e){const t=[],n=bs(e);for(const i of n)if(Nl(i))t.push(i);else for(const o of i.tasks)if(Nl(o))t.push(o);else{const l=i_(o);for(const u of l)t.push(u)}return t}function Wg(e=[]){return bs(e).flatMap(t=>Nl(t)?[t]:[t,...Wg(t.tasks)])}function LR(e){const t=[e.name];let n=e;for(;n?.suite;)n=n.suite,n?.name&&t.unshift(n.name);return n!==e.file&&t.unshift(e.file.name),t}function Eu(e,t=" > "){return e.filter(n=>n!==void 0).join(t)}const cs=DR();Ug(function(e,t,n){pi().test.fn.call(this,Mo(e),t,n)});let Hn,o_,OR;function s_(e,t){if(!e)throw new Error(`Vitest failed to find ${t}. One of the following is possible:
45
+ `)}`):new Error(`The Vitest config does't define any "tags", cannot apply "${t}" ${n} for this test. See: https://vitest.dev/guide/test-tags`)}function CR(e,t){const n=e.map(i=>ER(i,t));return i=>n.every(o=>o(i))}function ER(e,t){const n=AR(e),i=new $R(n,e),o=r_(i,t);if(i.peek().type!=="EOF")throw new Error(`Invalid tags expression: unexpected "${Tp(i.peek())}" in "${e}"`);return l=>nl(o,l)}function Tp(e){switch(e.type){case"TAG":return e.value;default:return n_(e.type)}}function AR(e){const t=[];let n=0;for(;n<e.length;){if(e[n]===" "||e[n]===" "){n++;continue}if(e[n]==="("){t.push({type:"LPAREN"}),n++;continue}if(e[n]===")"){t.push({type:"RPAREN"}),n++;continue}if(e[n]==="!"){t.push({type:"NOT"}),n++;continue}if(e.slice(n,n+2)==="&&"){t.push({type:"AND"}),n+=2;continue}if(e.slice(n,n+2)==="||"){t.push({type:"OR"}),n+=2;continue}if(/^and(?:\s|\)|$)/i.test(e.slice(n))){t.push({type:"AND"}),n+=3;continue}if(/^or(?:\s|\)|$)/i.test(e.slice(n))){t.push({type:"OR"}),n+=2;continue}if(/^not\s/i.test(e.slice(n))){t.push({type:"NOT"}),n+=3;continue}let i="";for(;n<e.length&&e[n]!==" "&&e[n]!==" "&&e[n]!=="("&&e[n]!==")"&&e[n]!=="!"&&e[n]!=="&"&&e[n]!=="|";){const o=e.slice(n);if(i===""&&(/^and(?:\s|\)|$)/i.test(o)||/^or(?:\s|\)|$)/i.test(o)||/^not\s/i.test(o)))break;i+=e[n],n++}i&&t.push({type:"TAG",value:i})}return t.push({type:"EOF"}),t}class $R{pos=0;constructor(t,n){this.tokens=t,this.expr=n}peek(){return this.tokens[this.pos]}next(){return this.tokens[this.pos++]}expect(t){const n=this.next();if(n.type!==t)throw t==="RPAREN"&&n.type==="EOF"?new Error(`Invalid tags expression: missing closing ")" in "${this.expr}"`):new Error(`Invalid tags expression: expected "${n_(t)}" but got "${Tp(n)}" in "${this.expr}"`);return n}unexpectedToken(){const t=this.peek();throw t.type==="EOF"?new Error(`Invalid tags expression: unexpected end of expression in "${this.expr}"`):new Error(`Invalid tags expression: unexpected "${Tp(t)}" in "${this.expr}"`)}}function n_(e){switch(e){case"TAG":return"tag";case"AND":return"and";case"OR":return"or";case"NOT":return"not";case"LPAREN":return"(";case"RPAREN":return")";case"EOF":return"end of expression"}}function r_(e,t){let n=vb(e,t);for(;e.peek().type==="OR";){e.next();const i=vb(e,t);n={type:"or",left:n,right:i}}return n}function vb(e,t){let n=Cp(e,t);for(;e.peek().type==="AND";){e.next();const i=Cp(e,t);n={type:"and",left:n,right:i}}return n}function Cp(e,t){return e.peek().type==="NOT"?(e.next(),{type:"not",operand:Cp(e,t)}):NR(e,t)}function NR(e,t){const n=e.peek();if(n.type==="LPAREN"){e.next();const i=r_(e,t);return e.expect("RPAREN"),i}if(n.type==="TAG"){e.next();const i=n.value,o=LR(i,t);return{type:"tag",value:i,pattern:o}}e.unexpectedToken()}function MR(e){return new RegExp(`^${e.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*")}$`)}function LR(e,t){if(e.includes("*")){const n=MR(e);if(!t.some(o=>n.test(o.name)))throw xf(t,e,"tag pattern");return n}if(!t.length||!t.some(n=>n.name===e))throw xf(t,e,"tag pattern");return null}function nl(e,t){switch(e.type){case"tag":return e.pattern?t.some(n=>e.pattern.test(n)):t.includes(e.value);case"not":return!nl(e.operand,t);case"and":return nl(e.left,t)&&nl(e.right,t);case"or":return nl(e.left,t)||nl(e.right,t)}}function Nl(e){return e.type==="test"}function i_(e){const t=[],n=bs(e);for(const i of n)if(Nl(i))t.push(i);else for(const o of i.tasks)if(Nl(o))t.push(o);else{const l=i_(o);for(const u of l)t.push(u)}return t}function Wg(e=[]){return bs(e).flatMap(t=>Nl(t)?[t]:[t,...Wg(t.tasks)])}function OR(e){const t=[e.name];let n=e;for(;n?.suite;)n=n.suite,n?.name&&t.unshift(n.name);return n!==e.file&&t.unshift(e.file.name),t}function Eu(e,t=" > "){return e.filter(n=>n!==void 0).join(t)}const cs=FR();Ug(function(e,t,n){pi().test.fn.call(this,Mo(e),t,n)});let Hn,o_,RR;function s_(e,t){if(!e)throw new Error(`Vitest failed to find ${t}. One of the following is possible:
46
46
  - "vitest" is imported directly without running "vitest" command
47
47
  - "vitest" is imported inside "globalSetup" (to fix this, use "setupFiles" instead, because "globalSetup" runs in a different context)
48
48
  - "vitest" is imported inside Vite / Vitest config file
49
49
  - Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues
50
- `)}function qg(){return s_(Hn,"the runner"),Hn}function pi(){const e=Jn.currentSuite||o_;return s_(e,"the current suite"),e}function RR(){return{beforeAll:[],afterAll:[],beforeEach:[],afterEach:[],aroundEach:[],aroundAll:[]}}const yb=Number.POSITIVE_INFINITY;function gl(e,t){if(t!=null&&typeof t=="object")throw new TypeError('Signature "test(name, fn, { ... })" was deprecated in Vitest 3 and removed in Vitest 4. Please, provide options as a second argument instead.');let n={},i;if(typeof t=="number"?n={timeout:t}:typeof e=="object"&&(n=e),typeof e=="function"){if(typeof t=="function")throw new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");i=e}else typeof t=="function"&&(i=t);return{options:n,handler:i}}function PR(e,t=()=>{},n,i,o){const l=[];let u;v();const f=function($="",_={}){const C=Jn.currentSuite?.suite,L=(C??Jn.currentSuite?.file)?.tags||[],D=sb([...L,...bs(_.tags)]),N=D.map(S=>{const R=Hn.config.tags?.find(B=>B.name===S);if(!R&&Hn.config.strictTags)throw xf(Hn.config.tags,S);return R}).filter(S=>S!=null).sort((S,R)=>(R.priority??yb)-(S.priority??yb)).reduce((S,R)=>{const{name:B,description:ae,priority:ve,meta:_e,...Be}=R;return Object.assign(S,Be),_e&&(S.meta=Object.assign(S.meta??Object.create(null),_e)),S},{}),I=_.meta;_={...N,..._};const q=_.timeout??Hn.config.testTimeout,X=C?.meta,ie=N.meta,J=Object.create(null);ie&&Object.assign(J,ie),X&&Object.assign(J,X),I&&Object.assign(J,I);const U={id:"",name:$,fullName:Eu([C?.fullName??Jn.currentSuite?.file?.fullName,$]),fullTestName:Eu([C?.fullTestName,$]),suite:C,each:_.each,fails:_.fails,context:void 0,type:"test",file:C?.file??Jn.currentSuite?.file,timeout:q,retry:_.retry??Hn.config.retry,repeats:_.repeats,mode:_.only?"only":_.skip?"skip":_.todo?"todo":"run",meta:J,annotations:[],artifacts:[],tags:D},K=_.handler;U.mode==="run"&&!K&&(U.mode="todo"),(_.concurrent||!_.sequential&&Hn.config.sequence.concurrent)&&(U.concurrent=!0),U.shuffle=o?.shuffle;const P=qR(U,Hn);Object.defineProperty(U,"context",{value:P,enumerable:!1}),cR(P,_.fixtures??new un);const O=Error.stackTraceLimit;Error.stackTraceLimit=10;const k=new Error("STACK_TRACE_ERROR");if(Error.stackTraceLimit=O,K&&aR(U,xs(jR(IR(Ec(K,{context:P}),U),U.context.signal),q,!1,k,(S,R)=>Vg([P],R))),Hn.config.includeTaskLocation){const S=k.stack,R=t_(OR,S);R&&(U.location={line:R.line,column:R.column})}return l.push(U),U},h=Ug(function($,_,C){let{options:E,handler:L}=gl(_,C);typeof o=="object"&&(E=Object.assign({},o,E));const D=this.concurrent??(!this.sequential&&E?.concurrent);E.concurrent!=null&&D!=null&&(E.concurrent=D);const N=this.sequential??(!this.concurrent&&E?.sequential);E.sequential!=null&&N!=null&&(E.sequential=N);const I=f(Mo($),{...this,...E,handler:L});I.type="test"}),p={type:"collector",name:e,mode:n,suite:u,options:o,test:h,file:u.file,tasks:l,collect:w,task:f,clear:y,on:g};function g($,..._){dR(u)[$].push(..._)}function v($){typeof o=="number"&&(o={timeout:o});const _=Jn.currentSuite?.suite,C=_??Jn.currentSuite?.file,E=bs(o?.tags);kR(Hn.config,E),u={id:"",type:"suite",name:e,fullName:Eu([_?.fullName??Jn.currentSuite?.file?.fullName,e]),fullTestName:Eu([_?.fullTestName,e]),suite:_,mode:n,each:i,file:_?.file??Jn.currentSuite?.file,shuffle:o?.shuffle,tasks:[],meta:o?.meta??Object.create(null),concurrent:o?.concurrent,tags:sb([...C?.tags||[],...E])},fR(u,RR())}function y(){l.length=0,v()}async function w($){if(!$)throw new TypeError("File is required to collect tasks.");t&&await BR(p,()=>t(h));const _=[];for(const C of l)_.push(C.type==="collector"?await C.collect($):C);return u.tasks=_,u}return HR(p),p}function IR(e,t){return(async(...n)=>{const i=await e(...n);if(t.promises){const l=(await Promise.allSettled(t.promises)).map(u=>u.status==="rejected"?u.reason:void 0).filter(Boolean);if(l.length)throw l}return i})}function DR(){function e(t,n,i){const o=Jn.currentSuite||o_;let{options:l,handler:u}=gl(n,i);const f=l.concurrent||this.concurrent||l.sequential===!1,h=l.sequential||this.sequential||l.concurrent===!1,{meta:p,...g}=o?.options||{};l={...g,...l};const v=this.shuffle??l.shuffle??o?.options?.shuffle??Hn?.config.sequence.shuffle;v!=null&&(l.shuffle=v);let y=this.only??l.only?"only":this.skip??l.skip?"skip":this.todo??l.todo?"todo":"run";y==="run"&&!u&&(y="todo");const w=f||l.concurrent&&!h,$=h||l.sequential&&!f;return w!=null&&(l.concurrent=w&&!$),$!=null&&(l.sequential=$&&!w),p&&(l.meta=Object.assign(Object.create(null),p,l.meta)),PR(Mo(t),u,y,this.each,l)}return e.each=function(t,...n){const i=Ii(this),o=i.withContext();return i.setContext("each",!0),Array.isArray(t)&&n.length&&(t=Sf(t,n)),(l,u,f)=>{const h=Mo(l),p=t.every(Array.isArray),{options:g,handler:v}=gl(u,f),y=typeof u=="function";t.forEach((w,$)=>{const _=Array.isArray(w)?w:[w];y?p?o(li(h,_,$),v?()=>v(..._):void 0,g.timeout):o(li(h,_,$),v?()=>v(w):void 0,g.timeout):p?o(li(h,_,$),g,v?()=>v(..._):void 0):o(li(h,_,$),g,v?()=>v(w):void 0)}),i.setContext("each",void 0)}},e.for=function(t,...n){return Array.isArray(t)&&n.length&&(t=Sf(t,n)),(i,o,l)=>{const u=Mo(i),{options:f,handler:h}=gl(o,l);t.forEach((p,g)=>{cs(li(u,bs(p),g),f,h?()=>h(p):void 0)})}},e.skipIf=t=>t?cs.skip:cs,e.runIf=t=>t?cs:cs.skip,YS(["concurrent","sequential","shuffle","skip","only","todo"],e)}function FR(e){const t=e;t.each=function(o,...l){const u=Ii(this),f=u.withContext();return u.setContext("each",!0),Array.isArray(o)&&l.length&&(o=Sf(o,l)),(h,p,g)=>{const v=Mo(h),y=o.every(Array.isArray),{options:w,handler:$}=gl(p,g),_=typeof p=="function";o.forEach((C,E)=>{const L=Array.isArray(C)?C:[C];_?y?f(li(v,L,E),$?()=>$(...L):void 0,w.timeout):f(li(v,L,E),$?()=>$(C):void 0,w.timeout):y?f(li(v,L,E),w,$?()=>$(...L):void 0):f(li(v,L,E),w,$?()=>$(C):void 0)}),u.setContext("each",void 0)}},t.for=function(o,...l){const f=Ii(this).withContext();return Array.isArray(o)&&l.length&&(o=Sf(o,l)),(h,p,g)=>{const v=Mo(h),{options:y,handler:w}=gl(p,g);o.forEach(($,_)=>{const C=w?E=>w($,E):void 0;C&&wf(C,{index:1,original:w}),f(li(v,bs($),_),y,C)})}},t.skipIf=function(o){return o?this.skip:this},t.runIf=function(o){return o?this:this.skip};function n(o,l,u){if(typeof o!="string")return o;const f=o;let h,p;if(u!==void 0?(h=l,p=u):l!==null&&typeof l=="object"&&!Array.isArray(l)&&un.isFixtureOptions(l)?(h=l,p={}):(h=void 0,p=l),typeof p=="function"){const g=p,v=async(y,w)=>{let $;const C=await g(y,{onCleanup:E=>{if($!==void 0)throw new Error("onCleanup can only be called once per fixture. Define separate fixtures if you need multiple cleanup functions.");$=E}});await w(C),$&&await $()};return wf(v,{original:g}),h?{[f]:[v,h]}:{[f]:v}}return h?{[f]:[p,h]}:{[f]:p}}return t.override=function(o,l,u){const f=n(o,l,u);return Ii(this).getFixtures().override(Hn,f),this},t.scoped=function(o){return console.warn("test.scoped() is deprecated and will be removed in future versions. Please use test.override() instead."),this.override(o)},t.extend=function(o,l,u){const f=n(o,l,u),h=Ii(this).getFixtures().extend(Hn,f),p=Ug(function(g,v,y){e.call(this,Mo(g),v,y)});return Ii(p).mergeContext({fixtures:h}),p},t.describe=cs,t.suite=cs,t.beforeEach=yR,t.afterEach=bR,t.beforeAll=mR,t.afterAll=vR,t.aroundEach=xR,t.aroundAll=wR,YS(["concurrent","sequential","skip","only","todo","fails"],t,{fixtures:new un})}function Ug(e){return FR(e)}function Mo(e){return typeof e=="string"?e:typeof e=="function"?e.name||"<anonymous>":String(e)}function li(e,t,n){(e.includes("%#")||e.includes("%$"))&&(e=e.replace(/%%/g,"__vitest_escaped_%__").replace(/%#/g,`${n}`).replace(/%\$/g,`${n+1}`).replace(/__vitest_escaped_%__/g,"%%"));const i=e.split("%").length-1;e.includes("%f")&&(e.match(/%f/g)||[]).forEach((p,g)=>{if(pO(t[g])||Object.is(t[g],-0)){let v=0;e=e.replace(/%f/g,y=>(v++,v===g+1?"-%f":y))}});const o=IS(t[0]);function l(h){return h.replace(/\$([$\w.]+)/g,(p,g)=>{const v=/^\d+$/.test(g);if(!o&&!v)return`$${g}`;const y=v?rb(t,g):void 0,w=o?rb(t[0],g,y):y;return dO(w,{truncate:Hn?.config?.chaiConfig?.truncateThreshold})})}let u="",f=0;return zR(e,OS,h=>{f<i?u+=fO(h[0],t[f++]):u+=h[0]},h=>{u+=l(h)}),u}function zR(e,t,n,i){let o=0;for(const l of e.matchAll(t))o<l.index&&i(e.slice(o,l.index)),n(l),o=l.index+l[0].length;o<e.length&&i(e.slice(o))}function Sf(e,t){const n=e.join("").trim().replace(/ /g,"").split(`
51
- `).map(o=>o.split("|"))[0],i=[];for(let o=0;o<Math.floor(t.length/n.length);o++){const l={};for(let u=0;u<n.length;u++)l[n[u]]=t[o*n.length+u];i.push(l)}return i}const bb=globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now,Jn={currentSuite:null};function HR(e){Jn.currentSuite?.tasks.push(e)}async function BR(e,t){const n=Jn.currentSuite;Jn.currentSuite=e,await t(),Jn.currentSuite=n}function xs(e,t,n=!1,i,o){if(t<=0||t===Number.POSITIVE_INFINITY)return e;const{setTimeout:l,clearTimeout:u}=DS();return(function(...h){const p=bb(),g=qg();return g._currentTaskStartTime=p,g._currentTaskTimeout=t,new Promise((v,y)=>{const w=l(()=>{u(w),$()},t);w.unref?.();function $(){const E=UR(n,t,i);o?.(h,E),y(E)}function _(E){if(g._currentTaskStartTime=void 0,g._currentTaskTimeout=void 0,u(w),bb()-p>=t){$();return}v(E)}function C(E){g._currentTaskStartTime=void 0,g._currentTaskTimeout=void 0,u(w),y(E)}try{const E=e(...h);typeof E=="object"&&E!=null&&typeof E.then=="function"?E.then(_,C):_(E)}catch(E){C(E)}})})}function jR(e,t){return(function(...i){return new Promise((o,l)=>{t.addEventListener("abort",()=>l(t.reason));try{const u=e(...i);typeof u=="object"&&u!=null&&typeof u.then=="function"?u.then(o,l):o(u)}catch(u){l(u)}})})}const Ep=new WeakMap;function Vg([e],t){e&&WR(e,t)}function WR(e,t){Ep.get(e)?.abort(t)}function qR(e,t){const n=function(){throw new Error("done() callback is deprecated, use promise instead")};let i=Ep.get(n);return i||(i=new AbortController,Ep.set(n,i)),n.signal=i.signal,n.task=e,n.skip=(o,l)=>{if(o!==!1)throw e.result??={state:"skip"},e.result.pending=!0,new oR("test is skipped; abort execution",e,typeof o=="string"?o:l)},n.annotate=((o,l,u)=>{if(e.result&&e.result.state!=="run")throw new Error(`Cannot annotate tests outside of the test run. The test "${e.name}" finished running with the "${e.result.state}" state already.`);const f={message:o,type:typeof l=="object"||l===void 0?"notice":l},h=typeof l=="object"?l:u;return h&&(f.attachment=h,a_(f.attachment)),YR(e,GR(e,{type:"internal:annotation",annotation:f}).then(async({annotation:p})=>{if(!t.onTestAnnotate)throw new Error("Test runner doesn't support test annotations.");await l_(t);const g=await t.onTestAnnotate(e,p);return e.annotations.push(g),g}))}),n.onTestFailed=(o,l)=>{e.onFailed||=[],e.onFailed.push(xs(o,l??t.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR"),(u,f)=>i.abort(f)))},n.onTestFinished=(o,l)=>{e.onFinished||=[],e.onFinished.push(xs(o,l??t.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR"),(u,f)=>i.abort(f)))},t.extendTaskContext?.(n)||n}function UR(e,t,n){const i=`${e?"Hook":"Test"} timed out in ${t}ms.
52
- If this is a long-running ${e?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "${e?"hookTimeout":"testTimeout"}".`,o=new Error(i);return n?.stack&&(o.stack=n.stack.replace(o.message,n.message)),o}globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;DS();const Fh=new Map,wb=[],Wu=[];function VR(e){if(Fh.size){const t=Array.from(Fh).map(([i,o])=>[i,o[0],o[1]]),n=e.onTaskUpdate?.(t,wb);n&&(Wu.push(n),n.then(()=>Wu.splice(Wu.indexOf(n),1),()=>{})),wb.length=0,Fh.clear()}}async function l_(e){VR(e),await Promise.all(Wu)}async function GR(e,t){const n=qg(),i=t_(e.file.filepath,new Error("STACK_TRACE").stack);if(i&&(t.location={file:i.file,line:i.line,column:i.column},t.type==="internal:annotation"&&(t.annotation.location=t.location)),Array.isArray(t.attachments))for(const l of t.attachments)a_(l);if(t.type==="internal:annotation")return t;if(!n.onTestArtifactRecord)throw new Error("Test runner doesn't support test artifacts.");await l_(n);const o=await n.onTestArtifactRecord(e,t);return e.artifacts.push(o),o}const ar=[];for(let e=65;e<91;e++)ar.push(String.fromCharCode(e));for(let e=97;e<123;e++)ar.push(String.fromCharCode(e));for(let e=0;e<10;e++)ar.push(e.toString(10));ar.push("+","/");function KR(e){let t="";const n=e.byteLength;for(let i=0;i<n;i+=3)if(n===i+1){const o=(e[i]&252)>>2,l=(e[i]&3)<<4;t+=ar[o],t+=ar[l],t+="=="}else if(n===i+2){const o=(e[i]&252)>>2,l=(e[i]&3)<<4|(e[i+1]&240)>>4,u=(e[i+1]&15)<<2;t+=ar[o],t+=ar[l],t+=ar[u],t+="="}else{const o=(e[i]&252)>>2,l=(e[i]&3)<<4|(e[i+1]&240)>>4,u=(e[i+1]&15)<<2|(e[i+2]&192)>>6,f=e[i+2]&63;t+=ar[o],t+=ar[l],t+=ar[u],t+=ar[f]}return t}function YR(e,t){return t=t.finally(()=>{if(!e.promises)return;const n=e.promises.indexOf(t);n!==-1&&e.promises.splice(n,1)}),e.promises||(e.promises=[]),e.promises.push(t),t}function a_(e){if(e.body==null&&!e.path)throw new TypeError('Test attachment requires "body" or "path" to be set. Both are missing.');if(e.body&&e.path)throw new TypeError('Test attachment requires only one of "body" or "path" to be set. Both are specified.');e.body instanceof Uint8Array&&(e.body=KR(e.body))}const xb="q",Sb="s";function XR(){let e,t;return{promise:new Promise((n,i)=>{e=n,t=i}),resolve:e,reject:t}}const JR=Math.random.bind(Math),ZR="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function QR(e=21){let t="",n=e;for(;n--;)t+=ZR[JR()*64|0];return t}const eP=6e4,c_=e=>e,tP=c_,{clearTimeout:_b,setTimeout:nP}=globalThis;function rP(e,t){const{post:n,on:i,off:o=()=>{},eventNames:l=[],serialize:u=c_,deserialize:f=tP,resolver:h,bind:p="rpc",timeout:g=eP,proxify:v=!0}=t;let y=!1;const w=new Map;let $,_;async function C(I,q,X,ie){if(y)throw new Error(`[birpc] rpc is closed, cannot call "${I}"`);const J={m:I,a:q,t:xb};ie&&(J.o=!0);const U=async B=>n(u(B));if(X){await U(J);return}if($)try{await $}finally{$=void 0}let{promise:K,resolve:P,reject:O}=XR();const k=QR();J.i=k;let S;async function R(B=J){return g>=0&&(S=nP(()=>{try{if(t.onTimeoutError?.call(_,I,q)!==!0)throw new Error(`[birpc] timeout on calling "${I}"`)}catch(ae){O(ae)}w.delete(k)},g),typeof S=="object"&&(S=S.unref?.())),w.set(k,{resolve:P,reject:O,timeoutId:S,method:I}),await U(B),K}try{t.onRequest?await t.onRequest.call(_,J,R,P):await R()}catch(B){if(t.onGeneralError?.call(_,B)!==!0)throw B;return}finally{_b(S),w.delete(k)}return K}const E={$call:(I,...q)=>C(I,q,!1),$callOptional:(I,...q)=>C(I,q,!1,!0),$callEvent:(I,...q)=>C(I,q,!0),$callRaw:I=>C(I.method,I.args,I.event,I.optional),$rejectPendingCalls:D,get $closed(){return y},get $meta(){return t.meta},$close:L,$functions:e};v?_=new Proxy({},{get(I,q){if(Object.prototype.hasOwnProperty.call(E,q))return E[q];if(q==="then"&&!l.includes("then")&&!("then"in e))return;const X=(...J)=>C(q,J,!0);if(l.includes(q))return X.asEvent=X,X;const ie=(...J)=>C(q,J,!1);return ie.asEvent=X,ie}}):_=E;function L(I){y=!0,w.forEach(({reject:q,method:X})=>{const ie=new Error(`[birpc] rpc is closed, cannot call "${X}"`);if(I)return I.cause??=ie,q(I);q(ie)}),w.clear(),o(N)}function D(I){const q=Array.from(w.values()).map(({method:X,reject:ie})=>I?I({method:X,reject:ie}):ie(new Error(`[birpc]: rejected pending call "${X}".`)));return w.clear(),q}async function N(I,...q){let X;try{X=f(I)}catch(ie){if(t.onGeneralError?.call(_,ie)!==!0)throw ie;return}if(X.t===xb){const{m:ie,a:J,o:U}=X;let K,P,O=await(h?h.call(_,ie,e[ie]):e[ie]);if(U&&(O||=()=>{}),!O)P=new Error(`[birpc] function "${ie}" not found`);else try{K=await O.apply(p==="rpc"?_:e,J)}catch(k){P=k}if(X.i){if(P&&t.onFunctionError&&t.onFunctionError.call(_,P,ie,J)===!0)return;if(!P)try{await n(u({t:Sb,i:X.i,r:K}),...q);return}catch(k){if(P=k,t.onGeneralError?.call(_,k,ie,J)!==!0)throw k}try{await n(u({t:Sb,i:X.i,e:P}),...q)}catch(k){if(t.onGeneralError?.call(_,k,ie,J)!==!0)throw k}}}else{const{i:ie,r:J,e:U}=X,K=w.get(ie);K&&(_b(K.timeoutId),U?K.reject(U):K.resolve(J)),w.delete(ie)}}return $=i(N),_}const{parse:u_,stringify:iP}=JSON,{keys:oP}=Object,uc=String,f_="string",kb={},_f="object",d_=(e,t)=>t,sP=e=>e instanceof uc?uc(e):e,lP=(e,t)=>typeof t===f_?new uc(t):t,aP=(e,t,n,i)=>o=>{for(let l=oP(o),{length:u}=l,f=0;f<u;f++){const h=l[f],p=o[h];if(p instanceof uc){const g=e[+p];typeof g===_f&&!n.has(g)?(n.add(g),o[h]=kb,t.push({o,k:h,r:g})):o[h]=i.call(o,h,g)}else o[h]!==kb&&(o[h]=i.call(o,h,p))}return o},Tb=(e,t,n)=>{const i=uc(t.push(n)-1);return e.set(n,i),i},Ap=(e,t)=>{const n=u_(e,lP).map(sP),i=t||d_;let o=n[0];if(typeof o===_f&&o){const l=[],u=aP(n,l,new Set,i);o=u(o);let f=0;for(;f<l.length;){const{o:h,k:p,r:g}=l[f++];h[p]=i.call(h,p,u(g))}}return i.call({"":o},"",o)},h_=(e,t,n)=>{const i=t&&typeof t===_f?(g,v)=>g===""||-1<t.indexOf(g)?v:void 0:t||d_,o=new Map,l=[],u=[];let f=+Tb(o,l,i.call({"":e},"",e)),h=!f;for(;f<l.length;)h=!0,u[f]=iP(l[f++],p,n);return"["+u.join(",")+"]";function p(g,v){if(h)return h=!h,v;const y=i.call(this,g,v);switch(typeof y){case _f:if(y===null)return y;case f_:return o.get(y)||Tb(o,l,y)}return y}},cP=e=>u_(h_(e));class p_{filesMap=new Map;pathsSet=new Set;idMap=new Map;getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(n=>this.filesMap.get(n)).flat().filter(n=>n&&!n.local):Array.from(this.filesMap.values()).flat().filter(n=>!n.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>t.result?.state==="fail").map(t=>t.filepath)}collectPaths(t=[]){t.forEach(n=>{this.pathsSet.add(n)})}collectFiles(t=[]){t.forEach(n=>{const i=this.filesMap.get(n.filepath)||[],o=i.filter(u=>u.projectName!==n.projectName||u.meta.typecheck!==n.meta.typecheck),l=i.find(u=>u.projectName===n.projectName);l&&(n.logs=l.logs),o.push(n),this.filesMap.set(n.filepath,o),this.updateId(n)})}clearFiles(t,n=[]){const i=t;n.forEach(o=>{const l=this.filesMap.get(o),u=e_(o,i.config.root,i.config.name||"");if(u.local=!0,this.idMap.set(u.id,u),!l){this.filesMap.set(o,[u]);return}const f=l.filter(h=>h.projectName!==i.config.name);f.length?this.filesMap.set(o,[...f,u]):this.filesMap.set(o,[u])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(n=>{this.updateId(n)}))}updateTasks(t){for(const[n,i,o]of t){const l=this.idMap.get(n);l&&(l.result=i,l.meta=o,i?.state==="skip"&&(l.mode="skip"))}}updateUserLog(t){const n=t.taskId&&this.idMap.get(t.taskId);n&&(n.logs||(n.logs=[]),n.logs.push(t))}}function uP(e,t={}){const{handlers:n={},autoReconnect:i=!0,reconnectInterval:o=2e3,reconnectTries:l=10,connectTimeout:u=6e4,reactive:f=L=>L,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=l;const g=f({ws:new h(e),state:new p_,waitForConnection:E,reconnect:_},"state");g.state.filesMap=f(g.state.filesMap,"filesMap"),g.state.idMap=f(g.state.idMap,"idMap");let v;const y={onTestAnnotate(L,D){n.onTestAnnotate?.(L,D)},onTestArtifactRecord(L,D){n.onTestArtifactRecord?.(L,D)},onSpecsCollected(L,D){L?.forEach(([N,I])=>{g.state.clearFiles({config:N},[I])}),n.onSpecsCollected?.(L,D)},onPathsCollected(L){g.state.collectPaths(L),n.onPathsCollected?.(L)},onCollected(L){g.state.collectFiles(L),n.onCollected?.(L)},onTaskUpdate(L,D){g.state.updateTasks(L),n.onTaskUpdate?.(L,D)},onUserConsoleLog(L){g.state.updateUserLog(L),n.onUserConsoleLog?.(L)},onFinished(L,D,N,I){n.onFinished?.(L,D,N,I)},onFinishedReportCoverage(){n.onFinishedReportCoverage?.()}},w={post:L=>g.ws.send(L),on:L=>v=L,serialize:L=>h_(L,(D,N)=>N instanceof Error?{name:N.name,message:N.message,stack:N.stack}:N),deserialize:Ap,timeout:-1};g.rpc=rP(y,w);let $;function _(L=!1){L&&(p=l),g.ws=new h(e),C()}function C(){$=new Promise((L,D)=>{const N=setTimeout(()=>{D(new Error(`Cannot connect to the server in ${u/1e3} seconds`))},u)?.unref?.();g.ws.OPEN===g.ws.readyState&&L(),g.ws.addEventListener("open",()=>{p=l,L(),clearTimeout(N)})}),g.ws.addEventListener("message",L=>{v(L.data)}),g.ws.addEventListener("close",()=>{p-=1,i&&p>0&&setTimeout(_,o)})}C();function E(){return $}return g}const Po=oM(),fP=BN(Po);function Ac(e){return Object.hasOwn(e,"tasks")}function dP(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function us(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${Math.round(e)}ms`}function zh(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(2)}ms`}function hP(e){const t=new Map,n=new Map,i=[];for(;;){let o=0;if(e.forEach((l,u)=>{const{splits:f,finished:h}=l;if(h){o++;const{raw:g,candidate:v}=l;t.set(g,v);return}if(f.length===0){l.finished=!0;return}const p=f[0];n.has(p)?(l.candidate+=l.candidate===""?p:`/${p}`,n.get(p)?.push(u),f.shift()):(n.set(p,[u]),i.push(u))}),i.forEach(l=>{const u=e[l],f=u.splits.shift();u.candidate+=u.candidate===""?f:`/${f}`}),n.forEach(l=>{if(l.length===1){const u=l[0];e[u].finished=!0}}),n.clear(),i.length=0,o===e.length)break}return t}function g_(e){let t=e;t.includes("/node_modules/")&&(t=e.split(/\/node_modules\//g).pop());const n=t.split(/\//g);return{raw:t,splits:n,splitsCopy:[...n],candidate:"",finished:!1,id:e}}function pP(e){return g_(e).raw}function qu(e){if(e>=500)return"danger";if(e>=100)return"warning"}function kf(e){const t=qu(e);if(t==="danger")return"text-red";if(t==="warning")return"text-orange"}function Uu(e,t=!1){if(!e)return"";const n=e.split("").reduce((l,u,f)=>l+u.charCodeAt(0)+f,0),i=Po.value?["yellow","cyan","#006800","magenta"]:["#ff5400","#02a4a4","green","magenta"],o=Po.value?["#ffff0091","#0ff6","#5dbb5dc9","#ff00ff80"]:["#ff540091","#00828266","#5dbb5dc9","#ff00ff80"];return(t?o:i)[n%i.length]}function m_(e){switch(e){case"blue":case"green":case"magenta":case"black":case"red":return"white";case"yellow":case"cyan":case"white":default:return"black"}}const $p=Vt([]),rr=Vt([]),Kr=Cc("vitest-ui_task-tree-opened",[],{shallow:!0}),Bl="__vitest_ui_all_projects__",Tf=Se(()=>new Set(Kr.value)),Ht=Cc("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,slow:!1,onlyTests:!1,search:"",project:Bl,projectSort:void 0}),Fr=Ke(Ht.value.projectSort||"default"),ml=Vt(Ht.value?.project||Bl),Np=Se(()=>rm.value.length>1),gP=Se(()=>ml.value===Bl),Gg=Se(()=>!Np.value||ml.value===Bl?void 0:ml.value),Hr=Ke(Ht.value.search),Cb=new Map,vo=Se(()=>{if(Hr.value.startsWith("tag:")){if(!pt.value.tags)return{matcher:()=>!0};const e=Hr.value.slice(4).trim();let t=Cb.get(e);return t||(t=mP(e),Cb.set(e,t)),{matcher:n=>t.matcher(n.tags||[]),error:t.error}}return{matcher:e=>Hr.value===""||dP(e.name,Hr.value)}});function mP(e){if(!e)return{matcher:()=>!0};try{return{matcher:TR([e],pt.value.tags||[])}}catch(t){return{matcher:()=>!1,error:t.message}}}const vP={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function v_(e){return e.replace(/[&<>"']/g,t=>vP[t])}const yP=Se(()=>{const e=Hr.value.toLowerCase();return e.length?new RegExp(`(${v_(e)})`,"gi"):null}),y_=Se(()=>Hr.value.trim()!==""),Ze=dr({failed:Ht.value.failed,success:Ht.value.success,skipped:Ht.value.skipped,slow:Ht.value.slow,onlyTests:Ht.value.onlyTests}),Mp=Se(()=>!!(Ze.failed||Ze.success||Ze.skipped||Ze.slow)),fd=Vt([]),Ml=Ke(!1),Eb=Se(()=>{const e=Ht.value.expandAll;return Kr.value.length>0?e!==!0:e!==!1}),bP=Se(()=>{const e=y_.value,t=Mp.value,n=Gg.value,i=Ze.onlyTests,o=$e.summary.filesFailed,l=$e.summary.filesSuccess,u=$e.summary.filesSkipped,f=$e.summary.filesRunning,h=fd.value;return $e.collectTestsTotal(e||t||!!n,i,h,{failed:o,success:l,skipped:u,running:f})});function wP(e){return e.type==="test"}function xP(e){return e.mode==="run"&&e.type==="test"}function Wn(e){return e.type==="file"}function Ui(e){return e.type==="file"||e.type==="suite"}function Lp(e){if(e.type!=="test")return!1;const t=e.result?.duration;if(typeof t!="number")return!1;const n=pt.value.slowTestThreshold;return typeof n=="number"&&t>n}function SP(e,t=$e.root.tasks){const n=[...t];return n.sort((i,o)=>{if(e==="duration-desc"||e==="duration-asc"){const l=i.duration??0,u=o.duration??0;if(l!==u)return e==="duration-desc"?u-l:l-u}else if(e==="asc"||e==="desc"){const l=i.projectName||"",u=o.projectName||"";if(l!==u)return e==="asc"?l.localeCompare(u):u.localeCompare(l)}return`${i.filepath}:${i.projectName}`.localeCompare(`${o.filepath}:${o.projectName}`)}),n}function fc(e,t=!1){let n=$e.nodes.get(e.id);if(n?(n.typecheck=!!e.meta&&"typecheck"in e.meta,n.state=e.result?.state,n.mode=e.mode,n.duration=typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,n.slow=!1,n.collectDuration=e.collectDuration,n.setupDuration=e.setupDuration,n.environmentLoad=e.environmentLoad,n.prepareDuration=e.prepareDuration):(n={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:Tf.value.size>0&&Tf.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,slow:!1,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:$e.colors.get(e.projectName||"")||Uu(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:e.result?.state},$e.nodes.set(e.id,n),$e.root.tasks.push(n)),t)for(let i=0;i<e.tasks.length;i++)$c(e.id,e.tasks[i],!0)}function b_(e,t){const n=$e.nodes.get(e);if(!n||!Ui(n))return;const i=ft.state.idMap.get(e);if(!(!i||!Ac(i)))return $c(n.parentId,i,t&&i.tasks.length>0),[n,i]}function _P(e){const t=$e.nodes.get(e);if(!t)return;const n=ft.state.idMap.get(e);!n||!Nl(n)||$c(t.parentId,n,!1)}function $c(e,t,n){const i=$e.nodes.get(e);let o;const l=typeof t.result?.duration=="number"?Math.round(t.result.duration):void 0;if(i&&(o=$e.nodes.get(t.id),o?(i.children.has(t.id)||(i.tasks.push(o),i.children.add(t.id)),o.name=t.name,o.mode=t.mode,o.duration=l,o.slow=Lp(t),o.state=t.result?.state):(Nl(t)?o={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:i.indent+1,duration:l,slow:Lp(t),state:t.result?.state}:o={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:Tf.value.size>0&&Tf.value.has(t.id),children:new Set,tasks:[],indent:i.indent+1,duration:l,slow:!1,state:t.result?.state},$e.nodes.set(t.id,o),i.tasks.push(o),i.children.add(t.id)),o&&n&&Ac(t)))for(let u=0;u<t.tasks.length;u++)$c(o.id,t.tasks[u],n)}function kP(e){const t=$e.nodes.get(e);if(!t||!Ui(t))return;const n=new Set(Kr.value);n.delete(t.id);const i=[...CP(t)];Kr.value=Array.from(n),rr.value=i}function TP(){Op($e.root.tasks);const e=[...rr.value.filter(Wn)];Op(e),Kr.value=[],Ht.value.expandAll=!0,rr.value=e}function Op(e){for(const t of e)Ui(t)&&(t.expanded=!1,Op(t.tasks))}function*w_(e,t){if(t&&(yield e.id),Ui(e))for(let n=0;n<e.tasks.length;n++)yield*w_(e.tasks[n],!0)}function*CP(e){const t=e.id,n=new Set(w_(e,!1));for(let i=0;i<rr.value.length;i++){const o=rr.value[i];if(o.id===t){o.expanded=!1,yield o;continue}if(n.has(o.id)){n.delete(o.id);continue}yield o}}const dd=Ke("idle"),ol=Se(()=>dd.value==="idle"),So=Ke([]),EP=Se(()=>(pt.value.tags||[]).reduce((t,n)=>(t[n.name]=n,t),{}));function AP(e,t,n){return e?__(e,t,n):!1}function Kg(e,t){const n=[...x_(e,t)];rr.value=n,fd.value=n.filter(Wn).map(i=>Cr(i.id))}function*x_(e,t){const n=Gg.value,i=SP(Fr.value);for(const o of i)n&&o.projectName!==n||(yield*S_(o,e,t))}function*S_(e,t,n){const i=new Set,o=new Map,l=[];let u;if(n.onlyTests)for(const[v,y]of Rp(e,i,w=>Ab(w,t,n)))l.push([v,y]);else{for(const[v,y]of Rp(e,i,w=>Ab(w,t,n)))Ui(y)?(o.set(y.id,v),Wn(y)?(v&&(u=y.id),l.push([v,y])):l.push([v||o.get(y.parentId)===!0,y])):l.push([v||o.get(y.parentId)===!0,y]);!u&&!Wn(e)&&"fileId"in e&&(u=e.fileId)}const f=new Set,h=[...NP(l,n.onlyTests,i,f,u)].reverse(),p=$e.nodes;for(const v of i){const y=p.get(v);y&&"expanded"in y&&(y.expanded=!0)}const g=new Set(h.filter(v=>Wn(v)||Ui(v)&&p.get(v.parentId)?.expanded).map(v=>v.id));yield*h.filter(v=>Wn(v)||g.has(v.parentId)&&p.get(v.parentId)?.expanded)}function $P(e,t,n,i,o){if(i){if(Wn(t))return o.has(t.id)?t:void 0;if(n.has(t.id)){const l=$e.nodes.get(t.parentId);return l&&Wn(l)&&o.add(l.id),t}}else if(e||n.has(t.id)||o.has(t.id)){const l=$e.nodes.get(t.parentId);return l&&Wn(l)&&o.add(l.id),t}}function*NP(e,t,n,i,o){for(let l=e.length-1;l>=0;l--){const[u,f]=e[l],h=Ui(f);if(!t&&o&&n.has(o)&&"fileId"in f&&f.fileId===o){h&&n.add(f.id);let p=$e.nodes.get(f.parentId);for(;p;)n.add(p.id),Wn(p)&&i.add(p.id),p=$e.nodes.get(p.parentId);yield f;continue}if(h){const p=$P(u,f,n,t,i);p&&(yield p)}else if(u){const p=$e.nodes.get(f.parentId);p&&Wn(p)&&i.add(p.id),yield f}}}function MP(e,t){if(t.slow&&e.type==="test"){const n=pt.value.slowTestThreshold;if(typeof n=="number"&&typeof e.result?.duration=="number"&&e.result.duration>n)return!0}return(t.success||t.failed)&&"result"in e&&(t.success&&e.result?.state==="pass"||t.failed&&e.result?.state==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function __(e,t,n){if(t(e))if(n.success||n.failed||n.skipped||n.slow){if(MP(e,n))return!0}else return!0;return!1}function*Rp(e,t,n){const i=n(e);if(i)if(wP(e)){let o=$e.nodes.get(e.parentId);for(;o;)t.add(o.id),o=$e.nodes.get(o.parentId)}else if(Wn(e))t.add(e.id);else{t.add(e.id);let o=$e.nodes.get(e.parentId);for(;o;)t.add(o.id),o=$e.nodes.get(o.parentId)}if(yield[i,e],Ui(e))for(let o=0;o<e.tasks.length;o++)yield*Rp(e.tasks[o],t,n)}function Ab(e,t,n){const i=ft.state.idMap.get(e.id);return i?__(i,t,n):!1}function LP(e,t,n){const i=b_(e,!1);if(!i)return;const[o,l]=i;for(const p of l.tasks)$c(o.id,p,!1);o.expanded=!0;const u=new Set(Kr.value);u.add(o.id);const f=new Set(S_(o,t,n)),h=[...PP(o,f)];Kr.value=Array.from(u),rr.value=h}function OP(e,t){Yg($e.root.tasks,!1);const n=[...x_(e,t)];Ht.value.expandAll=!1,Kr.value=[],rr.value=n,fd.value=n.filter(Wn).map(i=>Cr(i.id))}function RP(e,t){if(e.size)for(const n of rr.value)e.has(n.id)&&(n.expanded=!0);else t&&Yg(rr.value.filter(Wn),!0)}function Yg(e,t){for(const n of e)Ui(n)&&(n.expanded=!0,Yg(n.tasks,!1));t&&(Ht.value.expandAll=!1,Kr.value=[])}function*PP(e,t){const n=e.id,i=new Set(Array.from(t).map(o=>o.id));for(const o of rr.value)o.id===n?(o.expanded=!0,i.has(o.id)||(yield e),yield*t):i.has(o.id)||(yield o)}function Xg(e){return i_(e).some(t=>t.result?.errors?.some(n=>typeof n?.message=="string"&&n.message.match(/Snapshot .* mismatched/)))}function IP(e,t,n,i){e.map(o=>[`${o.filepath}:${o.projectName||""}`,o]).sort(([o],[l])=>o.localeCompare(l)).map(([,o])=>fc(o,t)),$p.value=[...$e.root.tasks],Kg(n,{failed:i.failed,success:i.success,skipped:i.skipped,slow:i.slow,onlyTests:i.onlyTests})}function DP(e){queueMicrotask(()=>{const t=$e.pendingTasks,n=ft.state.idMap;for(const i of e)if(i[1]){const l=n.get(i[0]);if(l){let u=t.get(l.file.id);u||(u=new Set,t.set(l.file.id,u)),u.add(l.id)}}})}function FP(e,t){const n=$e.pendingTasks,o=ft.state.idMap.get(e);if(o?.type==="test"){let l=n.get(o.file.id);l||(l=new Set,n.set(o.file.id,l)),l.add(o.id),t.type==="internal:annotation"?o.annotations.push(t.annotation):o.artifacts.push(t)}}function $b(e,t,n,i,o,l){e&&qP(n);const u=!e;queueMicrotask(()=>{t?BP(u):jP(u)}),queueMicrotask(()=>{UP(n,l)}),queueMicrotask(()=>{t&&(n.failedSnapshot=$p.value&&Xg($p.value.map(f=>Cr(f.id))),n.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{WP(i,o,t)})}function*zP(){yield*rr.value.filter(xP)}function HP(){const e=ft.state.idMap;let t;for(const n of zP())t=e.get(n.parentId),t&&Ac(t)&&t.mode==="todo"&&(t=e.get(n.id),t&&(t.mode="todo"))}function BP(e){const t=ft.state.getFiles(),n=$e.nodes,i=t.filter(l=>!n.has(l.id));for(let l=0;l<i.length;l++)fc(i[l],e),Cf(i[l].tasks);const o=$e.root.tasks;for(let l=0;l<o.length;l++){const u=o[l],f=Cr(u.id);!f||(fc(f,e),!f.tasks?.length)||Cf(f.tasks)}}function jP(e){const t=new Map($e.pendingTasks.entries());$e.pendingTasks.clear();const n=$e.nodes,i=Array.from(t.keys()).filter(f=>!n.has(f)).map(f=>Cr(f)).filter(Boolean);let o;for(let f=0;f<i.length;f++)o=i[f],fc(o,!1),Cf(o.tasks),t.delete(o.id);const l=ft.state.idMap,u=$e.root.tasks;for(let f=0;f<u.length;f++){const h=u[f],p=Cr(h.id);if(!p)continue;const g=t.get(p.id);g&&(fc(p,e),Cf(Array.from(g,v=>l.get(v)).filter(Boolean)))}}function WP(e,t,n=!1){const i=Ht.value.expandAll,o=i!==!0,l=new Set(Kr.value),u=l.size>0&&i===!1||o;queueMicrotask(()=>{Nb(e,t,n)}),Ml.value||queueMicrotask(()=>{(rr.value.length||n)&&(Ml.value=!0)}),u&&(queueMicrotask(()=>{RP(l,n),o&&(Ht.value.expandAll=!1)}),queueMicrotask(()=>{Nb(e,t,n)}))}function Nb(e,t,n){Kg(e,t),n&&(HP(),dd.value="idle")}function Cf(e){let t;for(let n=0;n<e.length;n++)t=e[n],Ac(t)?b_(t.id,!0):_P(t.id)}function qP(e){e.files=0,e.time="",e.filesFailed=0,e.filesSuccess=0,e.filesIgnore=0,e.filesRunning=0,e.filesSkipped=0,e.filesTodo=0,e.testsFailed=0,e.testsSuccess=0,e.testsIgnore=0,e.testsSkipped=0,e.testsTodo=0,e.testsExpectedFail=0,e.testsSlow=0,e.totalTests=0,e.failedSnapshotEnabled=!1}function UP(e,t){const n=ft.state.idMap,i=new Map($e.root.tasks.filter(u=>n.has(u.id)).map(u=>[u.id,u])),o=Array.from(i.values(),u=>[u.id,Cr(u.id)]),l={files:i.size,time:t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`,filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,testsExpectedFail:0,testsSlow:0,totalTests:0};for(const[u,f]of o){if(!f)continue;f.result?.state==="fail"?l.filesFailed++:f.result?.state==="pass"?l.filesSuccess++:f.mode==="skip"?(l.filesIgnore++,l.filesSkipped++):f.mode==="todo"?(l.filesIgnore++,l.filesTodo++):l.filesRunning++;const{failed:h,success:p,skipped:g,total:v,ignored:y,todo:w,expectedFail:$,slow:_}=k_(f);l.totalTests+=v,l.testsFailed+=h,l.testsSuccess+=p,l.testsSkipped+=g,l.testsTodo+=w,l.testsExpectedFail+=$,l.testsSlow+=_,l.testsIgnore+=y}e.files=l.files,e.time=l.time,e.filesFailed=l.filesFailed,e.filesSuccess=l.filesSuccess,e.filesIgnore=l.filesIgnore,e.filesRunning=l.filesRunning,e.filesSkipped=l.filesSkipped,e.filesTodo=l.filesTodo,e.testsFailed=l.testsFailed,e.testsSuccess=l.testsSuccess,e.testsTodo=l.testsTodo,e.testsExpectedFail=l.testsExpectedFail,e.testsSlow=l.testsSlow,e.testsIgnore=l.testsIgnore,e.testsSkipped=l.testsSkipped,e.totalTests=l.totalTests}function k_(e,t=()=>!0,n){const i={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0,expectedFail:0,slow:0};for(const o of T_(e))(!n||AP(o,t,n))&&(i.total++,Lp(o)&&i.slow++,o.result?.state==="fail"?i.failed++:o.result?.state==="pass"?o.fails?i.expectedFail++:i.success++:o.mode==="skip"?(i.ignored++,i.skipped++):o.mode==="todo"&&(i.ignored++,i.todo++));return i.running=i.total-i.failed-i.success-i.ignored-i.expectedFail,i}function VP(e,t,n,i,o,l){if(t)return n.map(u=>k_(u,o,l)).reduce((u,{failed:f,success:h,ignored:p,running:g})=>(u.failed+=f,u.success+=h,u.skipped+=p,u.running+=g,u),{failed:0,success:0,skipped:0,running:0});if(e){const u={failed:0,success:0,skipped:0,running:0},f=!l.success&&!l.failed,h=l.failed||f,p=l.success||f;for(const g of n)g.result?.state==="fail"?u.failed+=h?1:0:g.result?.state==="pass"?u.success+=p?1:0:g.mode==="skip"||g.mode==="todo"||u.running++;return u}return i}function*T_(e){const t=bs(e);let n;for(let i=0;i<t.length;i++)n=t[i],Nl(n)?yield n:yield*T_(n.tasks)}class GP{constructor(t=[],n=new Map,i=!1,o=500,l={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},u=new Map,f=new Map,h=dr({files:0,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesSnapshotFailed:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,testsExpectedFail:0,testsSlow:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1})){this.projects=t,this.colors=n,this.onTaskUpdateCalled=i,this.resumeEndTimeout=o,this.root=l,this.pendingTasks=u,this.nodes=f,this.summary=h,this.rafCollector=YN(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}rafCollector;resumeEndRunId;startTime=0;executionTime=0;loadFiles(t,n){this.projects.splice(0,this.projects.length,...n.map(i=>i.name)),this.colors=new Map(n.map(i=>[i.name,i.color])),IP(t,!0,vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})}startRun(){this.startTime=performance.now(),this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}recordTestArtifact(t,n){FP(t,n),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}resumeRun(t,n){DP(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(t=performance.now()-this.startTime){this.executionTime=t,this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,n,i=!0){i?queueMicrotask(()=>{$b(t,n,this.summary,vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests},n?this.executionTime:performance.now()-this.startTime)}):$b(t,n,this.summary,vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests},n?this.executionTime:performance.now()-this.startTime)}collectTestsTotal(t,n,i,o){return VP(t,n,i,o,vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})}collapseNode(t){queueMicrotask(()=>{kP(t)})}expandNode(t){queueMicrotask(()=>{LP(t,vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{TP()})}expandAllNodes(){queueMicrotask(()=>{OP(vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})})}filterNodes(){queueMicrotask(()=>{Kg(vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})})}}const $e=new GP;function Jg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vu={exports:{}},KP=Vu.exports,Mb;function Ho(){return Mb||(Mb=1,(function(e,t){(function(n,i){e.exports=i()})(KP,(function(){var n=navigator.userAgent,i=navigator.platform,o=/gecko\/\d/i.test(n),l=/MSIE \d/.test(n),u=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),f=/Edge\/(\d+)/.exec(n),h=l||u||f,p=h&&(l?document.documentMode||6:+(f||u)[1]),g=!f&&/WebKit\//.test(n),v=g&&/Qt\/\d+\.\d+/.test(n),y=!f&&/Chrome\/(\d+)/.exec(n),w=y&&+y[1],$=/Opera\//.test(n),_=/Apple Computer/.test(navigator.vendor),C=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),E=/PhantomJS/.test(n),L=_&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),D=/Android/.test(n),N=L||D||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),I=L||/Mac/.test(i),q=/\bCrOS\b/.test(n),X=/win/i.test(i),ie=$&&n.match(/Version\/(\d*\.\d*)/);ie&&(ie=Number(ie[1])),ie&&ie>=15&&($=!1,g=!0);var J=I&&(v||$&&(ie==null||ie<12.11)),U=o||h&&p>=9;function K(r){return new RegExp("(^|\\s)"+r+"(?:$|\\s)\\s*")}var P=function(r,s){var c=r.className,a=K(s).exec(c);if(a){var d=c.slice(a.index+a[0].length);r.className=c.slice(0,a.index)+(d?a[1]+d:"")}};function O(r){for(var s=r.childNodes.length;s>0;--s)r.removeChild(r.firstChild);return r}function k(r,s){return O(r).appendChild(s)}function S(r,s,c,a){var d=document.createElement(r);if(c&&(d.className=c),a&&(d.style.cssText=a),typeof s=="string")d.appendChild(document.createTextNode(s));else if(s)for(var m=0;m<s.length;++m)d.appendChild(s[m]);return d}function R(r,s,c,a){var d=S(r,s,c,a);return d.setAttribute("role","presentation"),d}var B;document.createRange?B=function(r,s,c,a){var d=document.createRange();return d.setEnd(a||r,c),d.setStart(r,s),d}:B=function(r,s,c){var a=document.body.createTextRange();try{a.moveToElementText(r.parentNode)}catch{return a}return a.collapse(!0),a.moveEnd("character",c),a.moveStart("character",s),a};function ae(r,s){if(s.nodeType==3&&(s=s.parentNode),r.contains)return r.contains(s);do if(s.nodeType==11&&(s=s.host),s==r)return!0;while(s=s.parentNode)}function ve(r){var s=r.ownerDocument||r,c;try{c=r.activeElement}catch{c=s.body||null}for(;c&&c.shadowRoot&&c.shadowRoot.activeElement;)c=c.shadowRoot.activeElement;return c}function _e(r,s){var c=r.className;K(s).test(c)||(r.className+=(c?" ":"")+s)}function Be(r,s){for(var c=r.split(" "),a=0;a<c.length;a++)c[a]&&!K(c[a]).test(s)&&(s+=" "+c[a]);return s}var Ee=function(r){r.select()};L?Ee=function(r){r.selectionStart=0,r.selectionEnd=r.value.length}:h&&(Ee=function(r){try{r.select()}catch{}});function Ge(r){return r.display.wrapper.ownerDocument}function Ue(r){return He(r.display.wrapper)}function He(r){return r.getRootNode?r.getRootNode():r.ownerDocument}function Re(r){return Ge(r).defaultView}function z(r){var s=Array.prototype.slice.call(arguments,1);return function(){return r.apply(null,s)}}function Z(r,s,c){s||(s={});for(var a in r)r.hasOwnProperty(a)&&(c!==!1||!s.hasOwnProperty(a))&&(s[a]=r[a]);return s}function re(r,s,c,a,d){s==null&&(s=r.search(/[^\s\u00a0]/),s==-1&&(s=r.length));for(var m=a||0,b=d||0;;){var x=r.indexOf(" ",m);if(x<0||x>=s)return b+(s-m);b+=x-m,b+=c-b%c,m=x+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=z(this.onTimeout,this)};le.prototype.onTimeout=function(r){r.id=0,r.time<=+new Date?r.f():setTimeout(r.handler,r.time-+new Date)},le.prototype.set=function(r,s){this.f=s;var c=+new Date+r;(!this.id||c<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,r),this.time=c)};function ce(r,s){for(var c=0;c<r.length;++c)if(r[c]==s)return c;return-1}var F=50,j={toString:function(){return"CodeMirror.Pass"}},ee={scroll:!1},de={origin:"*mouse"},he={origin:"+move"};function me(r,s,c){for(var a=0,d=0;;){var m=r.indexOf(" ",a);m==-1&&(m=r.length);var b=m-a;if(m==r.length||d+b>=s)return a+Math.min(b,s-d);if(d+=m-a,d+=c-d%c,a=m+1,d>=s)return a}}var Ce=[""];function Ae(r){for(;Ce.length<=r;)Ce.push(xe(Ce)+" ");return Ce[r]}function xe(r){return r[r.length-1]}function be(r,s){for(var c=[],a=0;a<r.length;a++)c[a]=s(r[a],a);return c}function Q(r,s,c){for(var a=0,d=c(s);a<r.length&&c(r[a])<=d;)a++;r.splice(a,0,s)}function ue(){}function oe(r,s){var c;return Object.create?c=Object.create(r):(ue.prototype=r,c=new ue),s&&Z(s,c),c}var Pe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function et(r){return/\w/.test(r)||r>"€"&&(r.toUpperCase()!=r.toLowerCase()||Pe.test(r))}function ct(r,s){return s?s.source.indexOf("\\w")>-1&&et(r)?!0:s.test(r):et(r)}function dt(r){for(var s in r)if(r.hasOwnProperty(s)&&r[s])return!1;return!0}var Ot=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ut(r){return r.charCodeAt(0)>=768&&Ot.test(r)}function en(r,s,c){for(;(c<0?s>0:s<r.length)&&ut(r.charAt(s));)s+=c;return s}function Gt(r,s,c){for(var a=s>c?-1:1;;){if(s==c)return s;var d=(s+c)/2,m=a<0?Math.ceil(d):Math.floor(d);if(m==s)return r(m)?s:c;r(m)?c=m:s=m+a}}function Vn(r,s,c,a){if(!r)return a(s,c,"ltr",0);for(var d=!1,m=0;m<r.length;++m){var b=r[m];(b.from<c&&b.to>s||s==c&&b.to==s)&&(a(Math.max(b.from,s),Math.min(b.to,c),b.level==1?"rtl":"ltr",m),d=!0)}d||a(s,c,"ltr")}var Jr=null;function Wt(r,s,c){var a;Jr=null;for(var d=0;d<r.length;++d){var m=r[d];if(m.from<s&&m.to>s)return d;m.to==s&&(m.from!=m.to&&c=="before"?a=d:Jr=d),m.from==s&&(m.from!=m.to&&c!="before"?a=d:Jr=d)}return a??Jr}var Gn=(function(){var r="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",s="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function c(A){return A<=247?r.charAt(A):1424<=A&&A<=1524?"R":1536<=A&&A<=1785?s.charAt(A-1536):1774<=A&&A<=2220?"r":8192<=A&&A<=8203?"w":A==8204?"b":"L"}var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,d=/[stwN]/,m=/[LRr]/,b=/[Lb1n]/,x=/[1n]/;function T(A,H,G){this.level=A,this.from=H,this.to=G}return function(A,H){var G=H=="ltr"?"L":"R";if(A.length==0||H=="ltr"&&!a.test(A))return!1;for(var se=A.length,ne=[],pe=0;pe<se;++pe)ne.push(c(A.charCodeAt(pe)));for(var we=0,Te=G;we<se;++we){var Le=ne[we];Le=="m"?ne[we]=Te:Te=Le}for(var De=0,Oe=G;De<se;++De){var ze=ne[De];ze=="1"&&Oe=="r"?ne[De]="n":m.test(ze)&&(Oe=ze,ze=="r"&&(ne[De]="R"))}for(var Je=1,Ve=ne[0];Je<se-1;++Je){var lt=ne[Je];lt=="+"&&Ve=="1"&&ne[Je+1]=="1"?ne[Je]="1":lt==","&&Ve==ne[Je+1]&&(Ve=="1"||Ve=="n")&&(ne[Je]=Ve),Ve=lt}for(var Ct=0;Ct<se;++Ct){var sn=ne[Ct];if(sn==",")ne[Ct]="N";else if(sn=="%"){var Rt=void 0;for(Rt=Ct+1;Rt<se&&ne[Rt]=="%";++Rt);for(var Xn=Ct&&ne[Ct-1]=="!"||Rt<se&&ne[Rt]=="1"?"1":"N",Ln=Ct;Ln<Rt;++Ln)ne[Ln]=Xn;Ct=Rt-1}}for(var Kt=0,On=G;Kt<se;++Kt){var cn=ne[Kt];On=="L"&&cn=="1"?ne[Kt]="L":m.test(cn)&&(On=cn)}for(var Jt=0;Jt<se;++Jt)if(d.test(ne[Jt])){var Yt=void 0;for(Yt=Jt+1;Yt<se&&d.test(ne[Yt]);++Yt);for(var zt=(Jt?ne[Jt-1]:G)=="L",Rn=(Yt<se?ne[Yt]:G)=="L",Xs=zt==Rn?zt?"L":"R":G,co=Jt;co<Yt;++co)ne[co]=Xs;Jt=Yt-1}for(var mn=[],ni,ln=0;ln<se;)if(b.test(ne[ln])){var dh=ln;for(++ln;ln<se&&b.test(ne[ln]);++ln);mn.push(new T(0,dh,ln))}else{var ki=ln,Jo=mn.length,Zo=H=="rtl"?1:0;for(++ln;ln<se&&ne[ln]!="L";++ln);for(var _n=ki;_n<ln;)if(x.test(ne[_n])){ki<_n&&(mn.splice(Jo,0,new T(1,ki,_n)),Jo+=Zo);var Js=_n;for(++_n;_n<ln&&x.test(ne[_n]);++_n);mn.splice(Jo,0,new T(2,Js,_n)),Jo+=Zo,ki=_n}else++_n;ki<ln&&mn.splice(Jo,0,new T(1,ki,ln))}return H=="ltr"&&(mn[0].level==1&&(ni=A.match(/^\s+/))&&(mn[0].from=ni[0].length,mn.unshift(new T(0,0,ni[0].length))),xe(mn).level==1&&(ni=A.match(/\s+$/))&&(xe(mn).to-=ni[0].length,mn.push(new T(0,se-ni[0].length,se)))),H=="rtl"?mn.reverse():mn}})();function at(r,s){var c=r.order;return c==null&&(c=r.order=Gn(r.text,s)),c}var Bo=[],Xe=function(r,s,c){if(r.addEventListener)r.addEventListener(s,c,!1);else if(r.attachEvent)r.attachEvent("on"+s,c);else{var a=r._handlers||(r._handlers={});a[s]=(a[s]||Bo).concat(c)}};function vi(r,s){return r._handlers&&r._handlers[s]||Bo}function hn(r,s,c){if(r.removeEventListener)r.removeEventListener(s,c,!1);else if(r.detachEvent)r.detachEvent("on"+s,c);else{var a=r._handlers,d=a&&a[s];if(d){var m=ce(d,c);m>-1&&(a[s]=d.slice(0,m).concat(d.slice(m+1)))}}}function It(r,s){var c=vi(r,s);if(c.length)for(var a=Array.prototype.slice.call(arguments,2),d=0;d<c.length;++d)c[d].apply(null,a)}function Dt(r,s,c){return typeof s=="string"&&(s={type:s,preventDefault:function(){this.defaultPrevented=!0}}),It(r,c||s.type,r,s),An(s)||s.codemirrorIgnore}function yr(r){var s=r._handlers&&r._handlers.cursorActivity;if(s)for(var c=r.curOp.cursorActivityHandlers||(r.curOp.cursorActivityHandlers=[]),a=0;a<s.length;++a)ce(c,s[a])==-1&&c.push(s[a])}function Kn(r,s){return vi(r,s).length>0}function Er(r){r.prototype.on=function(s,c){Xe(this,s,c)},r.prototype.off=function(s,c){hn(this,s,c)}}function pn(r){r.preventDefault?r.preventDefault():r.returnValue=!1}function Ts(r){r.stopPropagation?r.stopPropagation():r.cancelBubble=!0}function An(r){return r.defaultPrevented!=null?r.defaultPrevented:r.returnValue==!1}function Ji(r){pn(r),Ts(r)}function jl(r){return r.target||r.srcElement}function Ar(r){var s=r.which;return s==null&&(r.button&1?s=1:r.button&2?s=3:r.button&4&&(s=2)),I&&r.ctrlKey&&s==1&&(s=3),s}var bd=(function(){if(h&&p<9)return!1;var r=S("div");return"draggable"in r||"dragDrop"in r})(),Cs;function Pc(r){if(Cs==null){var s=S("span","​");k(r,S("span",[s,document.createTextNode("x")])),r.firstChild.offsetHeight!=0&&(Cs=s.offsetWidth<=1&&s.offsetHeight>2&&!(h&&p<8))}var c=Cs?S("span","​"):S("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return c.setAttribute("cm-text",""),c}var Wl;function Zi(r){if(Wl!=null)return Wl;var s=k(r,document.createTextNode("AخA")),c=B(s,0,1).getBoundingClientRect(),a=B(s,1,2).getBoundingClientRect();return O(r),!c||c.left==c.right?!1:Wl=a.right-c.right<3}var br=`
50
+ `)}function qg(){return s_(Hn,"the runner"),Hn}function pi(){const e=Jn.currentSuite||o_;return s_(e,"the current suite"),e}function PR(){return{beforeAll:[],afterAll:[],beforeEach:[],afterEach:[],aroundEach:[],aroundAll:[]}}const yb=Number.POSITIVE_INFINITY;function gl(e,t){if(t!=null&&typeof t=="object")throw new TypeError('Signature "test(name, fn, { ... })" was deprecated in Vitest 3 and removed in Vitest 4. Please, provide options as a second argument instead.');let n={},i;if(typeof t=="number"?n={timeout:t}:typeof e=="object"&&(n=e),typeof e=="function"){if(typeof t=="function")throw new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");i=e}else typeof t=="function"&&(i=t);return{options:n,handler:i}}function IR(e,t=()=>{},n,i,o){const l=[];let u;v();const f=function($="",_={}){const C=Jn.currentSuite?.suite,L=(C??Jn.currentSuite?.file)?.tags||[],D=sb([...L,...bs(_.tags)]),N=D.map(S=>{const R=Hn.config.tags?.find(B=>B.name===S);if(!R&&Hn.config.strictTags)throw xf(Hn.config.tags,S);return R}).filter(S=>S!=null).sort((S,R)=>(R.priority??yb)-(S.priority??yb)).reduce((S,R)=>{const{name:B,description:ae,priority:ve,meta:_e,...Be}=R;return Object.assign(S,Be),_e&&(S.meta=Object.assign(S.meta??Object.create(null),_e)),S},{}),I=_.meta;_={...N,..._};const q=_.timeout??Hn.config.testTimeout,X=C?.meta,ie=N.meta,J=Object.create(null);ie&&Object.assign(J,ie),X&&Object.assign(J,X),I&&Object.assign(J,I);const U={id:"",name:$,fullName:Eu([C?.fullName??Jn.currentSuite?.file?.fullName,$]),fullTestName:Eu([C?.fullTestName,$]),suite:C,each:_.each,fails:_.fails,context:void 0,type:"test",file:C?.file??Jn.currentSuite?.file,timeout:q,retry:_.retry??Hn.config.retry,repeats:_.repeats,mode:_.only?"only":_.skip?"skip":_.todo?"todo":"run",meta:J,annotations:[],artifacts:[],tags:D},K=_.handler;U.mode==="run"&&!K&&(U.mode="todo"),(_.concurrent||!_.sequential&&Hn.config.sequence.concurrent)&&(U.concurrent=!0),U.shuffle=o?.shuffle;const P=UR(U,Hn);Object.defineProperty(U,"context",{value:P,enumerable:!1}),cR(P,_.fixtures??new un);const O=Error.stackTraceLimit;Error.stackTraceLimit=10;const k=new Error("STACK_TRACE_ERROR");if(Error.stackTraceLimit=O,K&&aR(U,xs(WR(DR(Ec(K,{context:P}),U),U.context.signal),q,!1,k,(S,R)=>Vg([P],R))),Hn.config.includeTaskLocation){const S=k.stack,R=t_(RR,S);R&&(U.location={line:R.line,column:R.column})}return l.push(U),U},h=Ug(function($,_,C){let{options:E,handler:L}=gl(_,C);typeof o=="object"&&(E=Object.assign({},o,E));const D=this.concurrent??(!this.sequential&&E?.concurrent);E.concurrent!=null&&D!=null&&(E.concurrent=D);const N=this.sequential??(!this.concurrent&&E?.sequential);E.sequential!=null&&N!=null&&(E.sequential=N);const I=f(Mo($),{...this,...E,handler:L});I.type="test"}),p={type:"collector",name:e,mode:n,suite:u,options:o,test:h,file:u.file,tasks:l,collect:w,task:f,clear:y,on:g};function g($,..._){dR(u)[$].push(..._)}function v($){typeof o=="number"&&(o={timeout:o});const _=Jn.currentSuite?.suite,C=_??Jn.currentSuite?.file,E=bs(o?.tags);TR(Hn.config,E),u={id:"",type:"suite",name:e,fullName:Eu([_?.fullName??Jn.currentSuite?.file?.fullName,e]),fullTestName:Eu([_?.fullTestName,e]),suite:_,mode:n,each:i,file:_?.file??Jn.currentSuite?.file,shuffle:o?.shuffle,tasks:[],meta:o?.meta??Object.create(null),concurrent:o?.concurrent,tags:sb([...C?.tags||[],...E])},fR(u,PR())}function y(){l.length=0,v()}async function w($){if(!$)throw new TypeError("File is required to collect tasks.");t&&await jR(p,()=>t(h));const _=[];for(const C of l)_.push(C.type==="collector"?await C.collect($):C);return u.tasks=_,u}return BR(p),p}function DR(e,t){return(async(...n)=>{const i=await e(...n);if(t.promises){const l=(await Promise.allSettled(t.promises)).map(u=>u.status==="rejected"?u.reason:void 0).filter(Boolean);if(l.length)throw l}return i})}function FR(){function e(t,n,i){const o=Jn.currentSuite||o_;let{options:l,handler:u}=gl(n,i);const f=l.concurrent||this.concurrent||l.sequential===!1,h=l.sequential||this.sequential||l.concurrent===!1,{meta:p,...g}=o?.options||{};l={...g,...l};const v=this.shuffle??l.shuffle??o?.options?.shuffle??Hn?.config.sequence.shuffle;v!=null&&(l.shuffle=v);let y=this.only??l.only?"only":this.skip??l.skip?"skip":this.todo??l.todo?"todo":"run";y==="run"&&!u&&(y="todo");const w=f||l.concurrent&&!h,$=h||l.sequential&&!f;return w!=null&&(l.concurrent=w&&!$),$!=null&&(l.sequential=$&&!w),p&&(l.meta=Object.assign(Object.create(null),p,l.meta)),IR(Mo(t),u,y,this.each,l)}return e.each=function(t,...n){const i=Ii(this),o=i.withContext();return i.setContext("each",!0),Array.isArray(t)&&n.length&&(t=Sf(t,n)),(l,u,f)=>{const h=Mo(l),p=t.every(Array.isArray),{options:g,handler:v}=gl(u,f),y=typeof u=="function";t.forEach((w,$)=>{const _=Array.isArray(w)?w:[w];y?p?o(li(h,_,$),v?()=>v(..._):void 0,g.timeout):o(li(h,_,$),v?()=>v(w):void 0,g.timeout):p?o(li(h,_,$),g,v?()=>v(..._):void 0):o(li(h,_,$),g,v?()=>v(w):void 0)}),i.setContext("each",void 0)}},e.for=function(t,...n){return Array.isArray(t)&&n.length&&(t=Sf(t,n)),(i,o,l)=>{const u=Mo(i),{options:f,handler:h}=gl(o,l);t.forEach((p,g)=>{cs(li(u,bs(p),g),f,h?()=>h(p):void 0)})}},e.skipIf=t=>t?cs.skip:cs,e.runIf=t=>t?cs:cs.skip,YS(["concurrent","sequential","shuffle","skip","only","todo"],e)}function zR(e){const t=e;t.each=function(o,...l){const u=Ii(this),f=u.withContext();return u.setContext("each",!0),Array.isArray(o)&&l.length&&(o=Sf(o,l)),(h,p,g)=>{const v=Mo(h),y=o.every(Array.isArray),{options:w,handler:$}=gl(p,g),_=typeof p=="function";o.forEach((C,E)=>{const L=Array.isArray(C)?C:[C];_?y?f(li(v,L,E),$?()=>$(...L):void 0,w.timeout):f(li(v,L,E),$?()=>$(C):void 0,w.timeout):y?f(li(v,L,E),w,$?()=>$(...L):void 0):f(li(v,L,E),w,$?()=>$(C):void 0)}),u.setContext("each",void 0)}},t.for=function(o,...l){const f=Ii(this).withContext();return Array.isArray(o)&&l.length&&(o=Sf(o,l)),(h,p,g)=>{const v=Mo(h),{options:y,handler:w}=gl(p,g);o.forEach(($,_)=>{const C=w?E=>w($,E):void 0;C&&wf(C,{index:1,original:w}),f(li(v,bs($),_),y,C)})}},t.skipIf=function(o){return o?this.skip:this},t.runIf=function(o){return o?this:this.skip};function n(o,l,u){if(typeof o!="string")return o;const f=o;let h,p;if(u!==void 0?(h=l,p=u):l!==null&&typeof l=="object"&&!Array.isArray(l)&&un.isFixtureOptions(l)?(h=l,p={}):(h=void 0,p=l),typeof p=="function"){const g=p,v=async(y,w)=>{let $;const C=await g(y,{onCleanup:E=>{if($!==void 0)throw new Error("onCleanup can only be called once per fixture. Define separate fixtures if you need multiple cleanup functions.");$=E}});await w(C),$&&await $()};return wf(v,{original:g}),h?{[f]:[v,h]}:{[f]:v}}return h?{[f]:[p,h]}:{[f]:p}}return t.override=function(o,l,u){const f=n(o,l,u);return Ii(this).getFixtures().override(Hn,f),this},t.scoped=function(o){return console.warn("test.scoped() is deprecated and will be removed in future versions. Please use test.override() instead."),this.override(o)},t.extend=function(o,l,u){const f=n(o,l,u),h=Ii(this).getFixtures().extend(Hn,f),p=Ug(function(g,v,y){e.call(this,Mo(g),v,y)});return Ii(p).mergeContext({fixtures:h}),p},t.describe=cs,t.suite=cs,t.beforeEach=bR,t.afterEach=wR,t.beforeAll=vR,t.afterAll=yR,t.aroundEach=SR,t.aroundAll=xR,YS(["concurrent","sequential","skip","only","todo","fails"],t,{fixtures:new un})}function Ug(e){return zR(e)}function Mo(e){return typeof e=="string"?e:typeof e=="function"?e.name||"<anonymous>":String(e)}function li(e,t,n){(e.includes("%#")||e.includes("%$"))&&(e=e.replace(/%%/g,"__vitest_escaped_%__").replace(/%#/g,`${n}`).replace(/%\$/g,`${n+1}`).replace(/__vitest_escaped_%__/g,"%%"));const i=e.split("%").length-1;e.includes("%f")&&(e.match(/%f/g)||[]).forEach((p,g)=>{if(pO(t[g])||Object.is(t[g],-0)){let v=0;e=e.replace(/%f/g,y=>(v++,v===g+1?"-%f":y))}});const o=IS(t[0]);function l(h){return h.replace(/\$([$\w.]+)/g,(p,g)=>{const v=/^\d+$/.test(g);if(!o&&!v)return`$${g}`;const y=v?rb(t,g):void 0,w=o?rb(t[0],g,y):y;return dO(w,{truncate:Hn?.config?.chaiConfig?.truncateThreshold})})}let u="",f=0;return HR(e,OS,h=>{f<i?u+=fO(h[0],t[f++]):u+=h[0]},h=>{u+=l(h)}),u}function HR(e,t,n,i){let o=0;for(const l of e.matchAll(t))o<l.index&&i(e.slice(o,l.index)),n(l),o=l.index+l[0].length;o<e.length&&i(e.slice(o))}function Sf(e,t){const n=e.join("").trim().replace(/ /g,"").split(`
51
+ `).map(o=>o.split("|"))[0],i=[];for(let o=0;o<Math.floor(t.length/n.length);o++){const l={};for(let u=0;u<n.length;u++)l[n[u]]=t[o*n.length+u];i.push(l)}return i}const bb=globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now,Jn={currentSuite:null};function BR(e){Jn.currentSuite?.tasks.push(e)}async function jR(e,t){const n=Jn.currentSuite;Jn.currentSuite=e,await t(),Jn.currentSuite=n}function xs(e,t,n=!1,i,o){if(t<=0||t===Number.POSITIVE_INFINITY)return e;const{setTimeout:l,clearTimeout:u}=DS();return(function(...h){const p=bb(),g=qg();return g._currentTaskStartTime=p,g._currentTaskTimeout=t,new Promise((v,y)=>{const w=l(()=>{u(w),$()},t);w.unref?.();function $(){const E=VR(n,t,i);o?.(h,E),y(E)}function _(E){if(g._currentTaskStartTime=void 0,g._currentTaskTimeout=void 0,u(w),bb()-p>=t){$();return}v(E)}function C(E){g._currentTaskStartTime=void 0,g._currentTaskTimeout=void 0,u(w),y(E)}try{const E=e(...h);typeof E=="object"&&E!=null&&typeof E.then=="function"?E.then(_,C):_(E)}catch(E){C(E)}})})}function WR(e,t){return(function(...i){return new Promise((o,l)=>{t.addEventListener("abort",()=>l(t.reason));try{const u=e(...i);typeof u=="object"&&u!=null&&typeof u.then=="function"?u.then(o,l):o(u)}catch(u){l(u)}})})}const Ep=new WeakMap;function Vg([e],t){e&&qR(e,t)}function qR(e,t){Ep.get(e)?.abort(t)}function UR(e,t){const n=function(){throw new Error("done() callback is deprecated, use promise instead")};let i=Ep.get(n);return i||(i=new AbortController,Ep.set(n,i)),n.signal=i.signal,n.task=e,n.skip=(o,l)=>{if(o!==!1)throw e.result??={state:"skip"},e.result.pending=!0,new oR("test is skipped; abort execution",e,typeof o=="string"?o:l)},n.annotate=((o,l,u)=>{if(e.result&&e.result.state!=="run")throw new Error(`Cannot annotate tests outside of the test run. The test "${e.name}" finished running with the "${e.result.state}" state already.`);const f={message:o,type:typeof l=="object"||l===void 0?"notice":l},h=typeof l=="object"?l:u;return h&&(f.attachment=h,a_(f.attachment)),XR(e,KR(e,{type:"internal:annotation",annotation:f}).then(async({annotation:p})=>{if(!t.onTestAnnotate)throw new Error("Test runner doesn't support test annotations.");await l_(t);const g=await t.onTestAnnotate(e,p);return e.annotations.push(g),g}))}),n.onTestFailed=(o,l)=>{e.onFailed||=[],e.onFailed.push(xs(o,l??t.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR"),(u,f)=>i.abort(f)))},n.onTestFinished=(o,l)=>{e.onFinished||=[],e.onFinished.push(xs(o,l??t.config.hookTimeout,!0,new Error("STACK_TRACE_ERROR"),(u,f)=>i.abort(f)))},t.extendTaskContext?.(n)||n}function VR(e,t,n){const i=`${e?"Hook":"Test"} timed out in ${t}ms.
52
+ If this is a long-running ${e?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "${e?"hookTimeout":"testTimeout"}".`,o=new Error(i);return n?.stack&&(o.stack=n.stack.replace(o.message,n.message)),o}globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;globalThis.performance?globalThis.performance.now.bind(globalThis.performance):Date.now;DS();const Fh=new Map,wb=[],Wu=[];function GR(e){if(Fh.size){const t=Array.from(Fh).map(([i,o])=>[i,o[0],o[1]]),n=e.onTaskUpdate?.(t,wb);n&&(Wu.push(n),n.then(()=>Wu.splice(Wu.indexOf(n),1),()=>{})),wb.length=0,Fh.clear()}}async function l_(e){GR(e),await Promise.all(Wu)}async function KR(e,t){const n=qg(),i=t_(e.file.filepath,new Error("STACK_TRACE").stack);if(i&&(t.location={file:i.file,line:i.line,column:i.column},t.type==="internal:annotation"&&(t.annotation.location=t.location)),Array.isArray(t.attachments))for(const l of t.attachments)a_(l);if(t.type==="internal:annotation")return t;if(!n.onTestArtifactRecord)throw new Error("Test runner doesn't support test artifacts.");await l_(n);const o=await n.onTestArtifactRecord(e,t);return e.artifacts.push(o),o}const ar=[];for(let e=65;e<91;e++)ar.push(String.fromCharCode(e));for(let e=97;e<123;e++)ar.push(String.fromCharCode(e));for(let e=0;e<10;e++)ar.push(e.toString(10));ar.push("+","/");function YR(e){let t="";const n=e.byteLength;for(let i=0;i<n;i+=3)if(n===i+1){const o=(e[i]&252)>>2,l=(e[i]&3)<<4;t+=ar[o],t+=ar[l],t+="=="}else if(n===i+2){const o=(e[i]&252)>>2,l=(e[i]&3)<<4|(e[i+1]&240)>>4,u=(e[i+1]&15)<<2;t+=ar[o],t+=ar[l],t+=ar[u],t+="="}else{const o=(e[i]&252)>>2,l=(e[i]&3)<<4|(e[i+1]&240)>>4,u=(e[i+1]&15)<<2|(e[i+2]&192)>>6,f=e[i+2]&63;t+=ar[o],t+=ar[l],t+=ar[u],t+=ar[f]}return t}function XR(e,t){return t=t.finally(()=>{if(!e.promises)return;const n=e.promises.indexOf(t);n!==-1&&e.promises.splice(n,1)}),e.promises||(e.promises=[]),e.promises.push(t),t}function a_(e){if(e.body==null&&!e.path)throw new TypeError('Test attachment requires "body" or "path" to be set. Both are missing.');if(e.body&&e.path)throw new TypeError('Test attachment requires only one of "body" or "path" to be set. Both are specified.');if(e.path&&e.bodyEncoding)throw new TypeError('Test attachment with "path" should not have "bodyEncoding" specified.');e.body instanceof Uint8Array&&(e.body=YR(e.body)),e.body!=null&&(e.bodyEncoding??="base64")}const xb="q",Sb="s";function JR(){let e,t;return{promise:new Promise((n,i)=>{e=n,t=i}),resolve:e,reject:t}}const ZR=Math.random.bind(Math),QR="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function eP(e=21){let t="",n=e;for(;n--;)t+=QR[ZR()*64|0];return t}const tP=6e4,c_=e=>e,nP=c_,{clearTimeout:_b,setTimeout:rP}=globalThis;function iP(e,t){const{post:n,on:i,off:o=()=>{},eventNames:l=[],serialize:u=c_,deserialize:f=nP,resolver:h,bind:p="rpc",timeout:g=tP,proxify:v=!0}=t;let y=!1;const w=new Map;let $,_;async function C(I,q,X,ie){if(y)throw new Error(`[birpc] rpc is closed, cannot call "${I}"`);const J={m:I,a:q,t:xb};ie&&(J.o=!0);const U=async B=>n(u(B));if(X){await U(J);return}if($)try{await $}finally{$=void 0}let{promise:K,resolve:P,reject:O}=JR();const k=eP();J.i=k;let S;async function R(B=J){return g>=0&&(S=rP(()=>{try{if(t.onTimeoutError?.call(_,I,q)!==!0)throw new Error(`[birpc] timeout on calling "${I}"`)}catch(ae){O(ae)}w.delete(k)},g),typeof S=="object"&&(S=S.unref?.())),w.set(k,{resolve:P,reject:O,timeoutId:S,method:I}),await U(B),K}try{t.onRequest?await t.onRequest.call(_,J,R,P):await R()}catch(B){if(t.onGeneralError?.call(_,B)!==!0)throw B;return}finally{_b(S),w.delete(k)}return K}const E={$call:(I,...q)=>C(I,q,!1),$callOptional:(I,...q)=>C(I,q,!1,!0),$callEvent:(I,...q)=>C(I,q,!0),$callRaw:I=>C(I.method,I.args,I.event,I.optional),$rejectPendingCalls:D,get $closed(){return y},get $meta(){return t.meta},$close:L,$functions:e};v?_=new Proxy({},{get(I,q){if(Object.prototype.hasOwnProperty.call(E,q))return E[q];if(q==="then"&&!l.includes("then")&&!("then"in e))return;const X=(...J)=>C(q,J,!0);if(l.includes(q))return X.asEvent=X,X;const ie=(...J)=>C(q,J,!1);return ie.asEvent=X,ie}}):_=E;function L(I){y=!0,w.forEach(({reject:q,method:X})=>{const ie=new Error(`[birpc] rpc is closed, cannot call "${X}"`);if(I)return I.cause??=ie,q(I);q(ie)}),w.clear(),o(N)}function D(I){const q=Array.from(w.values()).map(({method:X,reject:ie})=>I?I({method:X,reject:ie}):ie(new Error(`[birpc]: rejected pending call "${X}".`)));return w.clear(),q}async function N(I,...q){let X;try{X=f(I)}catch(ie){if(t.onGeneralError?.call(_,ie)!==!0)throw ie;return}if(X.t===xb){const{m:ie,a:J,o:U}=X;let K,P,O=await(h?h.call(_,ie,e[ie]):e[ie]);if(U&&(O||=()=>{}),!O)P=new Error(`[birpc] function "${ie}" not found`);else try{K=await O.apply(p==="rpc"?_:e,J)}catch(k){P=k}if(X.i){if(P&&t.onFunctionError&&t.onFunctionError.call(_,P,ie,J)===!0)return;if(!P)try{await n(u({t:Sb,i:X.i,r:K}),...q);return}catch(k){if(P=k,t.onGeneralError?.call(_,k,ie,J)!==!0)throw k}try{await n(u({t:Sb,i:X.i,e:P}),...q)}catch(k){if(t.onGeneralError?.call(_,k,ie,J)!==!0)throw k}}}else{const{i:ie,r:J,e:U}=X,K=w.get(ie);K&&(_b(K.timeoutId),U?K.reject(U):K.resolve(J)),w.delete(ie)}}return $=i(N),_}const{parse:u_,stringify:oP}=JSON,{keys:sP}=Object,uc=String,f_="string",kb={},_f="object",d_=(e,t)=>t,lP=e=>e instanceof uc?uc(e):e,aP=(e,t)=>typeof t===f_?new uc(t):t,cP=(e,t,n,i)=>o=>{for(let l=sP(o),{length:u}=l,f=0;f<u;f++){const h=l[f],p=o[h];if(p instanceof uc){const g=e[+p];typeof g===_f&&!n.has(g)?(n.add(g),o[h]=kb,t.push({o,k:h,r:g})):o[h]=i.call(o,h,g)}else o[h]!==kb&&(o[h]=i.call(o,h,p))}return o},Tb=(e,t,n)=>{const i=uc(t.push(n)-1);return e.set(n,i),i},Ap=(e,t)=>{const n=u_(e,aP).map(lP),i=t||d_;let o=n[0];if(typeof o===_f&&o){const l=[],u=cP(n,l,new Set,i);o=u(o);let f=0;for(;f<l.length;){const{o:h,k:p,r:g}=l[f++];h[p]=i.call(h,p,u(g))}}return i.call({"":o},"",o)},h_=(e,t,n)=>{const i=t&&typeof t===_f?(g,v)=>g===""||-1<t.indexOf(g)?v:void 0:t||d_,o=new Map,l=[],u=[];let f=+Tb(o,l,i.call({"":e},"",e)),h=!f;for(;f<l.length;)h=!0,u[f]=oP(l[f++],p,n);return"["+u.join(",")+"]";function p(g,v){if(h)return h=!h,v;const y=i.call(this,g,v);switch(typeof y){case _f:if(y===null)return y;case f_:return o.get(y)||Tb(o,l,y)}return y}},uP=e=>u_(h_(e));class p_{filesMap=new Map;pathsSet=new Set;idMap=new Map;getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(n=>this.filesMap.get(n)).flat().filter(n=>n&&!n.local):Array.from(this.filesMap.values()).flat().filter(n=>!n.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>t.result?.state==="fail").map(t=>t.filepath)}collectPaths(t=[]){t.forEach(n=>{this.pathsSet.add(n)})}collectFiles(t=[]){t.forEach(n=>{const i=this.filesMap.get(n.filepath)||[],o=i.filter(u=>u.projectName!==n.projectName||u.meta.typecheck!==n.meta.typecheck),l=i.find(u=>u.projectName===n.projectName);l&&(n.logs=l.logs),o.push(n),this.filesMap.set(n.filepath,o),this.updateId(n)})}clearFiles(t,n=[]){const i=t;n.forEach(o=>{const l=this.filesMap.get(o),u=e_(o,i.config.root,i.config.name||"");if(u.local=!0,this.idMap.set(u.id,u),!l){this.filesMap.set(o,[u]);return}const f=l.filter(h=>h.projectName!==i.config.name);f.length?this.filesMap.set(o,[...f,u]):this.filesMap.set(o,[u])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(n=>{this.updateId(n)}))}updateTasks(t){for(const[n,i,o]of t){const l=this.idMap.get(n);l&&(l.result=i,l.meta=o,i?.state==="skip"&&(l.mode="skip"))}}updateUserLog(t){const n=t.taskId&&this.idMap.get(t.taskId);n&&(n.logs||(n.logs=[]),n.logs.push(t))}}function fP(e,t={}){const{handlers:n={},autoReconnect:i=!0,reconnectInterval:o=2e3,reconnectTries:l=10,connectTimeout:u=6e4,reactive:f=L=>L,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=l;const g=f({ws:new h(e),state:new p_,waitForConnection:E,reconnect:_},"state");g.state.filesMap=f(g.state.filesMap,"filesMap"),g.state.idMap=f(g.state.idMap,"idMap");let v;const y={onTestAnnotate(L,D){n.onTestAnnotate?.(L,D)},onTestArtifactRecord(L,D){n.onTestArtifactRecord?.(L,D)},onSpecsCollected(L,D){L?.forEach(([N,I])=>{g.state.clearFiles({config:N},[I])}),n.onSpecsCollected?.(L,D)},onPathsCollected(L){g.state.collectPaths(L),n.onPathsCollected?.(L)},onCollected(L){g.state.collectFiles(L),n.onCollected?.(L)},onTaskUpdate(L,D){g.state.updateTasks(L),n.onTaskUpdate?.(L,D)},onUserConsoleLog(L){g.state.updateUserLog(L),n.onUserConsoleLog?.(L)},onFinished(L,D,N,I){n.onFinished?.(L,D,N,I)},onFinishedReportCoverage(){n.onFinishedReportCoverage?.()}},w={post:L=>g.ws.send(L),on:L=>v=L,serialize:L=>h_(L,(D,N)=>N instanceof Error?{name:N.name,message:N.message,stack:N.stack}:N),deserialize:Ap,timeout:-1};g.rpc=iP(y,w);let $;function _(L=!1){L&&(p=l),g.ws=new h(e),C()}function C(){$=new Promise((L,D)=>{const N=setTimeout(()=>{D(new Error(`Cannot connect to the server in ${u/1e3} seconds`))},u)?.unref?.();g.ws.OPEN===g.ws.readyState&&L(),g.ws.addEventListener("open",()=>{p=l,L(),clearTimeout(N)})}),g.ws.addEventListener("message",L=>{v(L.data)}),g.ws.addEventListener("close",()=>{p-=1,i&&p>0&&setTimeout(_,o)})}C();function E(){return $}return g}const Po=oM(),dP=BN(Po);function Ac(e){return Object.hasOwn(e,"tasks")}function hP(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function us(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${Math.round(e)}ms`}function zh(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(2)}ms`}function pP(e){const t=new Map,n=new Map,i=[];for(;;){let o=0;if(e.forEach((l,u)=>{const{splits:f,finished:h}=l;if(h){o++;const{raw:g,candidate:v}=l;t.set(g,v);return}if(f.length===0){l.finished=!0;return}const p=f[0];n.has(p)?(l.candidate+=l.candidate===""?p:`/${p}`,n.get(p)?.push(u),f.shift()):(n.set(p,[u]),i.push(u))}),i.forEach(l=>{const u=e[l],f=u.splits.shift();u.candidate+=u.candidate===""?f:`/${f}`}),n.forEach(l=>{if(l.length===1){const u=l[0];e[u].finished=!0}}),n.clear(),i.length=0,o===e.length)break}return t}function g_(e){let t=e;t.includes("/node_modules/")&&(t=e.split(/\/node_modules\//g).pop());const n=t.split(/\//g);return{raw:t,splits:n,splitsCopy:[...n],candidate:"",finished:!1,id:e}}function gP(e){return g_(e).raw}function qu(e){if(e>=500)return"danger";if(e>=100)return"warning"}function kf(e){const t=qu(e);if(t==="danger")return"text-red";if(t==="warning")return"text-orange"}function Uu(e,t=!1){if(!e)return"";const n=e.split("").reduce((l,u,f)=>l+u.charCodeAt(0)+f,0),i=Po.value?["yellow","cyan","#006800","magenta"]:["#ff5400","#02a4a4","green","magenta"],o=Po.value?["#ffff0091","#0ff6","#5dbb5dc9","#ff00ff80"]:["#ff540091","#00828266","#5dbb5dc9","#ff00ff80"];return(t?o:i)[n%i.length]}function m_(e){switch(e){case"blue":case"green":case"magenta":case"black":case"red":return"white";case"yellow":case"cyan":case"white":default:return"black"}}const $p=Vt([]),rr=Vt([]),Kr=Cc("vitest-ui_task-tree-opened",[],{shallow:!0}),Bl="__vitest_ui_all_projects__",Tf=Se(()=>new Set(Kr.value)),Ht=Cc("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,slow:!1,onlyTests:!1,search:"",project:Bl,projectSort:void 0}),Fr=Ke(Ht.value.projectSort||"default"),ml=Vt(Ht.value?.project||Bl),Np=Se(()=>rm.value.length>1),mP=Se(()=>ml.value===Bl),Gg=Se(()=>!Np.value||ml.value===Bl?void 0:ml.value),Hr=Ke(Ht.value.search),Cb=new Map,vo=Se(()=>{if(Hr.value.startsWith("tag:")){if(!pt.value.tags)return{matcher:()=>!0};const e=Hr.value.slice(4).trim();let t=Cb.get(e);return t||(t=vP(e),Cb.set(e,t)),{matcher:n=>t.matcher(n.tags||[]),error:t.error}}return{matcher:e=>Hr.value===""||hP(e.name,Hr.value)}});function vP(e){if(!e)return{matcher:()=>!0};try{return{matcher:CR([e],pt.value.tags||[])}}catch(t){return{matcher:()=>!1,error:t.message}}}const yP={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function v_(e){return e.replace(/[&<>"']/g,t=>yP[t])}const bP=Se(()=>{const e=Hr.value.toLowerCase();return e.length?new RegExp(`(${v_(e)})`,"gi"):null}),y_=Se(()=>Hr.value.trim()!==""),Ze=dr({failed:Ht.value.failed,success:Ht.value.success,skipped:Ht.value.skipped,slow:Ht.value.slow,onlyTests:Ht.value.onlyTests}),Mp=Se(()=>!!(Ze.failed||Ze.success||Ze.skipped||Ze.slow)),fd=Vt([]),Ml=Ke(!1),Eb=Se(()=>{const e=Ht.value.expandAll;return Kr.value.length>0?e!==!0:e!==!1}),wP=Se(()=>{const e=y_.value,t=Mp.value,n=Gg.value,i=Ze.onlyTests,o=$e.summary.filesFailed,l=$e.summary.filesSuccess,u=$e.summary.filesSkipped,f=$e.summary.filesRunning,h=fd.value;return $e.collectTestsTotal(e||t||!!n,i,h,{failed:o,success:l,skipped:u,running:f})});function xP(e){return e.type==="test"}function SP(e){return e.mode==="run"&&e.type==="test"}function Wn(e){return e.type==="file"}function Ui(e){return e.type==="file"||e.type==="suite"}function Lp(e){if(e.type!=="test")return!1;const t=e.result?.duration;if(typeof t!="number")return!1;const n=pt.value.slowTestThreshold;return typeof n=="number"&&t>n}function _P(e,t=$e.root.tasks){const n=[...t];return n.sort((i,o)=>{if(e==="duration-desc"||e==="duration-asc"){const l=i.duration??0,u=o.duration??0;if(l!==u)return e==="duration-desc"?u-l:l-u}else if(e==="asc"||e==="desc"){const l=i.projectName||"",u=o.projectName||"";if(l!==u)return e==="asc"?l.localeCompare(u):u.localeCompare(l)}return`${i.filepath}:${i.projectName}`.localeCompare(`${o.filepath}:${o.projectName}`)}),n}function fc(e,t=!1){let n=$e.nodes.get(e.id);if(n?(n.typecheck=!!e.meta&&"typecheck"in e.meta,n.state=e.result?.state,n.mode=e.mode,n.duration=typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,n.slow=!1,n.collectDuration=e.collectDuration,n.setupDuration=e.setupDuration,n.environmentLoad=e.environmentLoad,n.prepareDuration=e.prepareDuration):(n={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:Tf.value.size>0&&Tf.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,slow:!1,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:$e.colors.get(e.projectName||"")||Uu(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:e.result?.state},$e.nodes.set(e.id,n),$e.root.tasks.push(n)),t)for(let i=0;i<e.tasks.length;i++)$c(e.id,e.tasks[i],!0)}function b_(e,t){const n=$e.nodes.get(e);if(!n||!Ui(n))return;const i=ft.state.idMap.get(e);if(!(!i||!Ac(i)))return $c(n.parentId,i,t&&i.tasks.length>0),[n,i]}function kP(e){const t=$e.nodes.get(e);if(!t)return;const n=ft.state.idMap.get(e);!n||!Nl(n)||$c(t.parentId,n,!1)}function $c(e,t,n){const i=$e.nodes.get(e);let o;const l=typeof t.result?.duration=="number"?Math.round(t.result.duration):void 0;if(i&&(o=$e.nodes.get(t.id),o?(i.children.has(t.id)||(i.tasks.push(o),i.children.add(t.id)),o.name=t.name,o.mode=t.mode,o.duration=l,o.slow=Lp(t),o.state=t.result?.state):(Nl(t)?o={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:i.indent+1,duration:l,slow:Lp(t),state:t.result?.state}:o={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:Tf.value.size>0&&Tf.value.has(t.id),children:new Set,tasks:[],indent:i.indent+1,duration:l,slow:!1,state:t.result?.state},$e.nodes.set(t.id,o),i.tasks.push(o),i.children.add(t.id)),o&&n&&Ac(t)))for(let u=0;u<t.tasks.length;u++)$c(o.id,t.tasks[u],n)}function TP(e){const t=$e.nodes.get(e);if(!t||!Ui(t))return;const n=new Set(Kr.value);n.delete(t.id);const i=[...EP(t)];Kr.value=Array.from(n),rr.value=i}function CP(){Op($e.root.tasks);const e=[...rr.value.filter(Wn)];Op(e),Kr.value=[],Ht.value.expandAll=!0,rr.value=e}function Op(e){for(const t of e)Ui(t)&&(t.expanded=!1,Op(t.tasks))}function*w_(e,t){if(t&&(yield e.id),Ui(e))for(let n=0;n<e.tasks.length;n++)yield*w_(e.tasks[n],!0)}function*EP(e){const t=e.id,n=new Set(w_(e,!1));for(let i=0;i<rr.value.length;i++){const o=rr.value[i];if(o.id===t){o.expanded=!1,yield o;continue}if(n.has(o.id)){n.delete(o.id);continue}yield o}}const dd=Ke("idle"),ol=Se(()=>dd.value==="idle"),So=Ke([]),AP=Se(()=>(pt.value.tags||[]).reduce((t,n)=>(t[n.name]=n,t),{}));function $P(e,t,n){return e?__(e,t,n):!1}function Kg(e,t){const n=[...x_(e,t)];rr.value=n,fd.value=n.filter(Wn).map(i=>Cr(i.id))}function*x_(e,t){const n=Gg.value,i=_P(Fr.value);for(const o of i)n&&o.projectName!==n||(yield*S_(o,e,t))}function*S_(e,t,n){const i=new Set,o=new Map,l=[];let u;if(n.onlyTests)for(const[v,y]of Rp(e,i,w=>Ab(w,t,n)))l.push([v,y]);else{for(const[v,y]of Rp(e,i,w=>Ab(w,t,n)))Ui(y)?(o.set(y.id,v),Wn(y)?(v&&(u=y.id),l.push([v,y])):l.push([v||o.get(y.parentId)===!0,y])):l.push([v||o.get(y.parentId)===!0,y]);!u&&!Wn(e)&&"fileId"in e&&(u=e.fileId)}const f=new Set,h=[...MP(l,n.onlyTests,i,f,u)].reverse(),p=$e.nodes;for(const v of i){const y=p.get(v);y&&"expanded"in y&&(y.expanded=!0)}const g=new Set(h.filter(v=>Wn(v)||Ui(v)&&p.get(v.parentId)?.expanded).map(v=>v.id));yield*h.filter(v=>Wn(v)||g.has(v.parentId)&&p.get(v.parentId)?.expanded)}function NP(e,t,n,i,o){if(i){if(Wn(t))return o.has(t.id)?t:void 0;if(n.has(t.id)){const l=$e.nodes.get(t.parentId);return l&&Wn(l)&&o.add(l.id),t}}else if(e||n.has(t.id)||o.has(t.id)){const l=$e.nodes.get(t.parentId);return l&&Wn(l)&&o.add(l.id),t}}function*MP(e,t,n,i,o){for(let l=e.length-1;l>=0;l--){const[u,f]=e[l],h=Ui(f);if(!t&&o&&n.has(o)&&"fileId"in f&&f.fileId===o){h&&n.add(f.id);let p=$e.nodes.get(f.parentId);for(;p;)n.add(p.id),Wn(p)&&i.add(p.id),p=$e.nodes.get(p.parentId);yield f;continue}if(h){const p=NP(u,f,n,t,i);p&&(yield p)}else if(u){const p=$e.nodes.get(f.parentId);p&&Wn(p)&&i.add(p.id),yield f}}}function LP(e,t){if(t.slow&&e.type==="test"){const n=pt.value.slowTestThreshold;if(typeof n=="number"&&typeof e.result?.duration=="number"&&e.result.duration>n)return!0}return(t.success||t.failed)&&"result"in e&&(t.success&&e.result?.state==="pass"||t.failed&&e.result?.state==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function __(e,t,n){if(t(e))if(n.success||n.failed||n.skipped||n.slow){if(LP(e,n))return!0}else return!0;return!1}function*Rp(e,t,n){const i=n(e);if(i)if(xP(e)){let o=$e.nodes.get(e.parentId);for(;o;)t.add(o.id),o=$e.nodes.get(o.parentId)}else if(Wn(e))t.add(e.id);else{t.add(e.id);let o=$e.nodes.get(e.parentId);for(;o;)t.add(o.id),o=$e.nodes.get(o.parentId)}if(yield[i,e],Ui(e))for(let o=0;o<e.tasks.length;o++)yield*Rp(e.tasks[o],t,n)}function Ab(e,t,n){const i=ft.state.idMap.get(e.id);return i?__(i,t,n):!1}function OP(e,t,n){const i=b_(e,!1);if(!i)return;const[o,l]=i;for(const p of l.tasks)$c(o.id,p,!1);o.expanded=!0;const u=new Set(Kr.value);u.add(o.id);const f=new Set(S_(o,t,n)),h=[...IP(o,f)];Kr.value=Array.from(u),rr.value=h}function RP(e,t){Yg($e.root.tasks,!1);const n=[...x_(e,t)];Ht.value.expandAll=!1,Kr.value=[],rr.value=n,fd.value=n.filter(Wn).map(i=>Cr(i.id))}function PP(e,t){if(e.size)for(const n of rr.value)e.has(n.id)&&(n.expanded=!0);else t&&Yg(rr.value.filter(Wn),!0)}function Yg(e,t){for(const n of e)Ui(n)&&(n.expanded=!0,Yg(n.tasks,!1));t&&(Ht.value.expandAll=!1,Kr.value=[])}function*IP(e,t){const n=e.id,i=new Set(Array.from(t).map(o=>o.id));for(const o of rr.value)o.id===n?(o.expanded=!0,i.has(o.id)||(yield e),yield*t):i.has(o.id)||(yield o)}function Xg(e){return i_(e).some(t=>t.result?.errors?.some(n=>typeof n?.message=="string"&&n.message.match(/Snapshot .* mismatched/)))}function DP(e,t,n,i){e.map(o=>[`${o.filepath}:${o.projectName||""}`,o]).sort(([o],[l])=>o.localeCompare(l)).map(([,o])=>fc(o,t)),$p.value=[...$e.root.tasks],Kg(n,{failed:i.failed,success:i.success,skipped:i.skipped,slow:i.slow,onlyTests:i.onlyTests})}function FP(e){queueMicrotask(()=>{const t=$e.pendingTasks,n=ft.state.idMap;for(const i of e)if(i[1]){const l=n.get(i[0]);if(l){let u=t.get(l.file.id);u||(u=new Set,t.set(l.file.id,u)),u.add(l.id)}}})}function zP(e,t){const n=$e.pendingTasks,o=ft.state.idMap.get(e);if(o?.type==="test"){let l=n.get(o.file.id);l||(l=new Set,n.set(o.file.id,l)),l.add(o.id),t.type==="internal:annotation"?o.annotations.push(t.annotation):o.artifacts.push(t)}}function $b(e,t,n,i,o,l){e&&UP(n);const u=!e;queueMicrotask(()=>{t?jP(u):WP(u)}),queueMicrotask(()=>{VP(n,l)}),queueMicrotask(()=>{t&&(n.failedSnapshot=$p.value&&Xg($p.value.map(f=>Cr(f.id))),n.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{qP(i,o,t)})}function*HP(){yield*rr.value.filter(SP)}function BP(){const e=ft.state.idMap;let t;for(const n of HP())t=e.get(n.parentId),t&&Ac(t)&&t.mode==="todo"&&(t=e.get(n.id),t&&(t.mode="todo"))}function jP(e){const t=ft.state.getFiles(),n=$e.nodes,i=t.filter(l=>!n.has(l.id));for(let l=0;l<i.length;l++)fc(i[l],e),Cf(i[l].tasks);const o=$e.root.tasks;for(let l=0;l<o.length;l++){const u=o[l],f=Cr(u.id);!f||(fc(f,e),!f.tasks?.length)||Cf(f.tasks)}}function WP(e){const t=new Map($e.pendingTasks.entries());$e.pendingTasks.clear();const n=$e.nodes,i=Array.from(t.keys()).filter(f=>!n.has(f)).map(f=>Cr(f)).filter(Boolean);let o;for(let f=0;f<i.length;f++)o=i[f],fc(o,!1),Cf(o.tasks),t.delete(o.id);const l=ft.state.idMap,u=$e.root.tasks;for(let f=0;f<u.length;f++){const h=u[f],p=Cr(h.id);if(!p)continue;const g=t.get(p.id);g&&(fc(p,e),Cf(Array.from(g,v=>l.get(v)).filter(Boolean)))}}function qP(e,t,n=!1){const i=Ht.value.expandAll,o=i!==!0,l=new Set(Kr.value),u=l.size>0&&i===!1||o;queueMicrotask(()=>{Nb(e,t,n)}),Ml.value||queueMicrotask(()=>{(rr.value.length||n)&&(Ml.value=!0)}),u&&(queueMicrotask(()=>{PP(l,n),o&&(Ht.value.expandAll=!1)}),queueMicrotask(()=>{Nb(e,t,n)}))}function Nb(e,t,n){Kg(e,t),n&&(BP(),dd.value="idle")}function Cf(e){let t;for(let n=0;n<e.length;n++)t=e[n],Ac(t)?b_(t.id,!0):kP(t.id)}function UP(e){e.files=0,e.time="",e.filesFailed=0,e.filesSuccess=0,e.filesIgnore=0,e.filesRunning=0,e.filesSkipped=0,e.filesTodo=0,e.testsFailed=0,e.testsSuccess=0,e.testsIgnore=0,e.testsSkipped=0,e.testsTodo=0,e.testsExpectedFail=0,e.testsSlow=0,e.totalTests=0,e.failedSnapshotEnabled=!1}function VP(e,t){const n=ft.state.idMap,i=new Map($e.root.tasks.filter(u=>n.has(u.id)).map(u=>[u.id,u])),o=Array.from(i.values(),u=>[u.id,Cr(u.id)]),l={files:i.size,time:t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`,filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,testsExpectedFail:0,testsSlow:0,totalTests:0};for(const[u,f]of o){if(!f)continue;f.result?.state==="fail"?l.filesFailed++:f.result?.state==="pass"?l.filesSuccess++:f.mode==="skip"?(l.filesIgnore++,l.filesSkipped++):f.mode==="todo"?(l.filesIgnore++,l.filesTodo++):l.filesRunning++;const{failed:h,success:p,skipped:g,total:v,ignored:y,todo:w,expectedFail:$,slow:_}=k_(f);l.totalTests+=v,l.testsFailed+=h,l.testsSuccess+=p,l.testsSkipped+=g,l.testsTodo+=w,l.testsExpectedFail+=$,l.testsSlow+=_,l.testsIgnore+=y}e.files=l.files,e.time=l.time,e.filesFailed=l.filesFailed,e.filesSuccess=l.filesSuccess,e.filesIgnore=l.filesIgnore,e.filesRunning=l.filesRunning,e.filesSkipped=l.filesSkipped,e.filesTodo=l.filesTodo,e.testsFailed=l.testsFailed,e.testsSuccess=l.testsSuccess,e.testsTodo=l.testsTodo,e.testsExpectedFail=l.testsExpectedFail,e.testsSlow=l.testsSlow,e.testsIgnore=l.testsIgnore,e.testsSkipped=l.testsSkipped,e.totalTests=l.totalTests}function k_(e,t=()=>!0,n){const i={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0,expectedFail:0,slow:0};for(const o of T_(e))(!n||$P(o,t,n))&&(i.total++,Lp(o)&&i.slow++,o.result?.state==="fail"?i.failed++:o.result?.state==="pass"?o.fails?i.expectedFail++:i.success++:o.mode==="skip"?(i.ignored++,i.skipped++):o.mode==="todo"&&(i.ignored++,i.todo++));return i.running=i.total-i.failed-i.success-i.ignored-i.expectedFail,i}function GP(e,t,n,i,o,l){if(t)return n.map(u=>k_(u,o,l)).reduce((u,{failed:f,success:h,ignored:p,running:g})=>(u.failed+=f,u.success+=h,u.skipped+=p,u.running+=g,u),{failed:0,success:0,skipped:0,running:0});if(e){const u={failed:0,success:0,skipped:0,running:0},f=!l.success&&!l.failed,h=l.failed||f,p=l.success||f;for(const g of n)g.result?.state==="fail"?u.failed+=h?1:0:g.result?.state==="pass"?u.success+=p?1:0:g.mode==="skip"||g.mode==="todo"||u.running++;return u}return i}function*T_(e){const t=bs(e);let n;for(let i=0;i<t.length;i++)n=t[i],Nl(n)?yield n:yield*T_(n.tasks)}class KP{constructor(t=[],n=new Map,i=!1,o=500,l={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},u=new Map,f=new Map,h=dr({files:0,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesSnapshotFailed:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,testsExpectedFail:0,testsSlow:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1})){this.projects=t,this.colors=n,this.onTaskUpdateCalled=i,this.resumeEndTimeout=o,this.root=l,this.pendingTasks=u,this.nodes=f,this.summary=h,this.rafCollector=YN(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}rafCollector;resumeEndRunId;startTime=0;executionTime=0;loadFiles(t,n){this.projects.splice(0,this.projects.length,...n.map(i=>i.name)),this.colors=new Map(n.map(i=>[i.name,i.color])),DP(t,!0,vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})}startRun(){this.startTime=performance.now(),this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}recordTestArtifact(t,n){zP(t,n),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}resumeRun(t,n){FP(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(t=performance.now()-this.startTime){this.executionTime=t,this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,n,i=!0){i?queueMicrotask(()=>{$b(t,n,this.summary,vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests},n?this.executionTime:performance.now()-this.startTime)}):$b(t,n,this.summary,vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests},n?this.executionTime:performance.now()-this.startTime)}collectTestsTotal(t,n,i,o){return GP(t,n,i,o,vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})}collapseNode(t){queueMicrotask(()=>{TP(t)})}expandNode(t){queueMicrotask(()=>{OP(t,vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{CP()})}expandAllNodes(){queueMicrotask(()=>{RP(vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})})}filterNodes(){queueMicrotask(()=>{Kg(vo.value.matcher,{failed:Ze.failed,success:Ze.success,skipped:Ze.skipped,slow:Ze.slow,onlyTests:Ze.onlyTests})})}}const $e=new KP;function Jg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vu={exports:{}},YP=Vu.exports,Mb;function Ho(){return Mb||(Mb=1,(function(e,t){(function(n,i){e.exports=i()})(YP,(function(){var n=navigator.userAgent,i=navigator.platform,o=/gecko\/\d/i.test(n),l=/MSIE \d/.test(n),u=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),f=/Edge\/(\d+)/.exec(n),h=l||u||f,p=h&&(l?document.documentMode||6:+(f||u)[1]),g=!f&&/WebKit\//.test(n),v=g&&/Qt\/\d+\.\d+/.test(n),y=!f&&/Chrome\/(\d+)/.exec(n),w=y&&+y[1],$=/Opera\//.test(n),_=/Apple Computer/.test(navigator.vendor),C=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),E=/PhantomJS/.test(n),L=_&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),D=/Android/.test(n),N=L||D||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),I=L||/Mac/.test(i),q=/\bCrOS\b/.test(n),X=/win/i.test(i),ie=$&&n.match(/Version\/(\d*\.\d*)/);ie&&(ie=Number(ie[1])),ie&&ie>=15&&($=!1,g=!0);var J=I&&(v||$&&(ie==null||ie<12.11)),U=o||h&&p>=9;function K(r){return new RegExp("(^|\\s)"+r+"(?:$|\\s)\\s*")}var P=function(r,s){var c=r.className,a=K(s).exec(c);if(a){var d=c.slice(a.index+a[0].length);r.className=c.slice(0,a.index)+(d?a[1]+d:"")}};function O(r){for(var s=r.childNodes.length;s>0;--s)r.removeChild(r.firstChild);return r}function k(r,s){return O(r).appendChild(s)}function S(r,s,c,a){var d=document.createElement(r);if(c&&(d.className=c),a&&(d.style.cssText=a),typeof s=="string")d.appendChild(document.createTextNode(s));else if(s)for(var m=0;m<s.length;++m)d.appendChild(s[m]);return d}function R(r,s,c,a){var d=S(r,s,c,a);return d.setAttribute("role","presentation"),d}var B;document.createRange?B=function(r,s,c,a){var d=document.createRange();return d.setEnd(a||r,c),d.setStart(r,s),d}:B=function(r,s,c){var a=document.body.createTextRange();try{a.moveToElementText(r.parentNode)}catch{return a}return a.collapse(!0),a.moveEnd("character",c),a.moveStart("character",s),a};function ae(r,s){if(s.nodeType==3&&(s=s.parentNode),r.contains)return r.contains(s);do if(s.nodeType==11&&(s=s.host),s==r)return!0;while(s=s.parentNode)}function ve(r){var s=r.ownerDocument||r,c;try{c=r.activeElement}catch{c=s.body||null}for(;c&&c.shadowRoot&&c.shadowRoot.activeElement;)c=c.shadowRoot.activeElement;return c}function _e(r,s){var c=r.className;K(s).test(c)||(r.className+=(c?" ":"")+s)}function Be(r,s){for(var c=r.split(" "),a=0;a<c.length;a++)c[a]&&!K(c[a]).test(s)&&(s+=" "+c[a]);return s}var Ee=function(r){r.select()};L?Ee=function(r){r.selectionStart=0,r.selectionEnd=r.value.length}:h&&(Ee=function(r){try{r.select()}catch{}});function Ge(r){return r.display.wrapper.ownerDocument}function Ue(r){return He(r.display.wrapper)}function He(r){return r.getRootNode?r.getRootNode():r.ownerDocument}function Re(r){return Ge(r).defaultView}function z(r){var s=Array.prototype.slice.call(arguments,1);return function(){return r.apply(null,s)}}function Z(r,s,c){s||(s={});for(var a in r)r.hasOwnProperty(a)&&(c!==!1||!s.hasOwnProperty(a))&&(s[a]=r[a]);return s}function re(r,s,c,a,d){s==null&&(s=r.search(/[^\s\u00a0]/),s==-1&&(s=r.length));for(var m=a||0,b=d||0;;){var x=r.indexOf(" ",m);if(x<0||x>=s)return b+(s-m);b+=x-m,b+=c-b%c,m=x+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=z(this.onTimeout,this)};le.prototype.onTimeout=function(r){r.id=0,r.time<=+new Date?r.f():setTimeout(r.handler,r.time-+new Date)},le.prototype.set=function(r,s){this.f=s;var c=+new Date+r;(!this.id||c<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,r),this.time=c)};function ce(r,s){for(var c=0;c<r.length;++c)if(r[c]==s)return c;return-1}var F=50,j={toString:function(){return"CodeMirror.Pass"}},ee={scroll:!1},de={origin:"*mouse"},he={origin:"+move"};function me(r,s,c){for(var a=0,d=0;;){var m=r.indexOf(" ",a);m==-1&&(m=r.length);var b=m-a;if(m==r.length||d+b>=s)return a+Math.min(b,s-d);if(d+=m-a,d+=c-d%c,a=m+1,d>=s)return a}}var Ce=[""];function Ae(r){for(;Ce.length<=r;)Ce.push(xe(Ce)+" ");return Ce[r]}function xe(r){return r[r.length-1]}function be(r,s){for(var c=[],a=0;a<r.length;a++)c[a]=s(r[a],a);return c}function Q(r,s,c){for(var a=0,d=c(s);a<r.length&&c(r[a])<=d;)a++;r.splice(a,0,s)}function ue(){}function oe(r,s){var c;return Object.create?c=Object.create(r):(ue.prototype=r,c=new ue),s&&Z(s,c),c}var Pe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function et(r){return/\w/.test(r)||r>"€"&&(r.toUpperCase()!=r.toLowerCase()||Pe.test(r))}function ct(r,s){return s?s.source.indexOf("\\w")>-1&&et(r)?!0:s.test(r):et(r)}function dt(r){for(var s in r)if(r.hasOwnProperty(s)&&r[s])return!1;return!0}var Ot=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ut(r){return r.charCodeAt(0)>=768&&Ot.test(r)}function en(r,s,c){for(;(c<0?s>0:s<r.length)&&ut(r.charAt(s));)s+=c;return s}function Gt(r,s,c){for(var a=s>c?-1:1;;){if(s==c)return s;var d=(s+c)/2,m=a<0?Math.ceil(d):Math.floor(d);if(m==s)return r(m)?s:c;r(m)?c=m:s=m+a}}function Vn(r,s,c,a){if(!r)return a(s,c,"ltr",0);for(var d=!1,m=0;m<r.length;++m){var b=r[m];(b.from<c&&b.to>s||s==c&&b.to==s)&&(a(Math.max(b.from,s),Math.min(b.to,c),b.level==1?"rtl":"ltr",m),d=!0)}d||a(s,c,"ltr")}var Jr=null;function Wt(r,s,c){var a;Jr=null;for(var d=0;d<r.length;++d){var m=r[d];if(m.from<s&&m.to>s)return d;m.to==s&&(m.from!=m.to&&c=="before"?a=d:Jr=d),m.from==s&&(m.from!=m.to&&c!="before"?a=d:Jr=d)}return a??Jr}var Gn=(function(){var r="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",s="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function c(A){return A<=247?r.charAt(A):1424<=A&&A<=1524?"R":1536<=A&&A<=1785?s.charAt(A-1536):1774<=A&&A<=2220?"r":8192<=A&&A<=8203?"w":A==8204?"b":"L"}var a=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,d=/[stwN]/,m=/[LRr]/,b=/[Lb1n]/,x=/[1n]/;function T(A,H,G){this.level=A,this.from=H,this.to=G}return function(A,H){var G=H=="ltr"?"L":"R";if(A.length==0||H=="ltr"&&!a.test(A))return!1;for(var se=A.length,ne=[],pe=0;pe<se;++pe)ne.push(c(A.charCodeAt(pe)));for(var we=0,Te=G;we<se;++we){var Le=ne[we];Le=="m"?ne[we]=Te:Te=Le}for(var De=0,Oe=G;De<se;++De){var ze=ne[De];ze=="1"&&Oe=="r"?ne[De]="n":m.test(ze)&&(Oe=ze,ze=="r"&&(ne[De]="R"))}for(var Je=1,Ve=ne[0];Je<se-1;++Je){var lt=ne[Je];lt=="+"&&Ve=="1"&&ne[Je+1]=="1"?ne[Je]="1":lt==","&&Ve==ne[Je+1]&&(Ve=="1"||Ve=="n")&&(ne[Je]=Ve),Ve=lt}for(var Ct=0;Ct<se;++Ct){var sn=ne[Ct];if(sn==",")ne[Ct]="N";else if(sn=="%"){var Rt=void 0;for(Rt=Ct+1;Rt<se&&ne[Rt]=="%";++Rt);for(var Xn=Ct&&ne[Ct-1]=="!"||Rt<se&&ne[Rt]=="1"?"1":"N",Ln=Ct;Ln<Rt;++Ln)ne[Ln]=Xn;Ct=Rt-1}}for(var Kt=0,On=G;Kt<se;++Kt){var cn=ne[Kt];On=="L"&&cn=="1"?ne[Kt]="L":m.test(cn)&&(On=cn)}for(var Jt=0;Jt<se;++Jt)if(d.test(ne[Jt])){var Yt=void 0;for(Yt=Jt+1;Yt<se&&d.test(ne[Yt]);++Yt);for(var zt=(Jt?ne[Jt-1]:G)=="L",Rn=(Yt<se?ne[Yt]:G)=="L",Xs=zt==Rn?zt?"L":"R":G,co=Jt;co<Yt;++co)ne[co]=Xs;Jt=Yt-1}for(var mn=[],ni,ln=0;ln<se;)if(b.test(ne[ln])){var dh=ln;for(++ln;ln<se&&b.test(ne[ln]);++ln);mn.push(new T(0,dh,ln))}else{var ki=ln,Jo=mn.length,Zo=H=="rtl"?1:0;for(++ln;ln<se&&ne[ln]!="L";++ln);for(var _n=ki;_n<ln;)if(x.test(ne[_n])){ki<_n&&(mn.splice(Jo,0,new T(1,ki,_n)),Jo+=Zo);var Js=_n;for(++_n;_n<ln&&x.test(ne[_n]);++_n);mn.splice(Jo,0,new T(2,Js,_n)),Jo+=Zo,ki=_n}else++_n;ki<ln&&mn.splice(Jo,0,new T(1,ki,ln))}return H=="ltr"&&(mn[0].level==1&&(ni=A.match(/^\s+/))&&(mn[0].from=ni[0].length,mn.unshift(new T(0,0,ni[0].length))),xe(mn).level==1&&(ni=A.match(/\s+$/))&&(xe(mn).to-=ni[0].length,mn.push(new T(0,se-ni[0].length,se)))),H=="rtl"?mn.reverse():mn}})();function at(r,s){var c=r.order;return c==null&&(c=r.order=Gn(r.text,s)),c}var Bo=[],Xe=function(r,s,c){if(r.addEventListener)r.addEventListener(s,c,!1);else if(r.attachEvent)r.attachEvent("on"+s,c);else{var a=r._handlers||(r._handlers={});a[s]=(a[s]||Bo).concat(c)}};function vi(r,s){return r._handlers&&r._handlers[s]||Bo}function hn(r,s,c){if(r.removeEventListener)r.removeEventListener(s,c,!1);else if(r.detachEvent)r.detachEvent("on"+s,c);else{var a=r._handlers,d=a&&a[s];if(d){var m=ce(d,c);m>-1&&(a[s]=d.slice(0,m).concat(d.slice(m+1)))}}}function It(r,s){var c=vi(r,s);if(c.length)for(var a=Array.prototype.slice.call(arguments,2),d=0;d<c.length;++d)c[d].apply(null,a)}function Dt(r,s,c){return typeof s=="string"&&(s={type:s,preventDefault:function(){this.defaultPrevented=!0}}),It(r,c||s.type,r,s),An(s)||s.codemirrorIgnore}function yr(r){var s=r._handlers&&r._handlers.cursorActivity;if(s)for(var c=r.curOp.cursorActivityHandlers||(r.curOp.cursorActivityHandlers=[]),a=0;a<s.length;++a)ce(c,s[a])==-1&&c.push(s[a])}function Kn(r,s){return vi(r,s).length>0}function Er(r){r.prototype.on=function(s,c){Xe(this,s,c)},r.prototype.off=function(s,c){hn(this,s,c)}}function pn(r){r.preventDefault?r.preventDefault():r.returnValue=!1}function Ts(r){r.stopPropagation?r.stopPropagation():r.cancelBubble=!0}function An(r){return r.defaultPrevented!=null?r.defaultPrevented:r.returnValue==!1}function Ji(r){pn(r),Ts(r)}function jl(r){return r.target||r.srcElement}function Ar(r){var s=r.which;return s==null&&(r.button&1?s=1:r.button&2?s=3:r.button&4&&(s=2)),I&&r.ctrlKey&&s==1&&(s=3),s}var bd=(function(){if(h&&p<9)return!1;var r=S("div");return"draggable"in r||"dragDrop"in r})(),Cs;function Pc(r){if(Cs==null){var s=S("span","​");k(r,S("span",[s,document.createTextNode("x")])),r.firstChild.offsetHeight!=0&&(Cs=s.offsetWidth<=1&&s.offsetHeight>2&&!(h&&p<8))}var c=Cs?S("span","​"):S("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return c.setAttribute("cm-text",""),c}var Wl;function Zi(r){if(Wl!=null)return Wl;var s=k(r,document.createTextNode("AخA")),c=B(s,0,1).getBoundingClientRect(),a=B(s,1,2).getBoundingClientRect();return O(r),!c||c.left==c.right?!1:Wl=a.right-c.right<3}var br=`
53
53
 
54
54
  b`.split(/\n/).length!=3?function(r){for(var s=0,c=[],a=r.length;s<=a;){var d=r.indexOf(`
55
55
  `,s);d==-1&&(d=r.length);var m=r.slice(s,r.charAt(d-1)=="\r"?d-1:d),b=m.indexOf("\r");b!=-1?(c.push(m.slice(0,b)),s+=b+1):(c.push(m),s=d+1)}return c}:function(r){return r.split(/\r\n?|\n/)},Qi=window.getSelection?function(r){try{return r.selectionStart!=r.selectionEnd}catch{return!1}}:function(r){var s;try{s=r.ownerDocument.selection.createRange()}catch{}return!s||s.parentElement()!=r?!1:s.compareEndPoints("StartToEnd",s)!=0},Ic=(function(){var r=S("div");return"oncopy"in r?!0:(r.setAttribute("oncopy","return;"),typeof r.oncopy=="function")})(),$r=null;function wd(r){if($r!=null)return $r;var s=k(r,S("span","x")),c=s.getBoundingClientRect(),a=B(s,0,1).getBoundingClientRect();return $r=Math.abs(c.left-a.left)>1}var Es={},Nr={};function Mr(r,s){arguments.length>2&&(s.dependencies=Array.prototype.slice.call(arguments,2)),Es[r]=s}function jo(r,s){Nr[r]=s}function As(r){if(typeof r=="string"&&Nr.hasOwnProperty(r))r=Nr[r];else if(r&&typeof r.name=="string"&&Nr.hasOwnProperty(r.name)){var s=Nr[r.name];typeof s=="string"&&(s={name:s}),r=oe(s,r),r.name=s.name}else{if(typeof r=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(r))return As("application/xml");if(typeof r=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(r))return As("application/json")}return typeof r=="string"?{name:r}:r||{name:"null"}}function $s(r,s){s=As(s);var c=Es[s.name];if(!c)return $s(r,"text/plain");var a=c(r,s);if(eo.hasOwnProperty(s.name)){var d=eo[s.name];for(var m in d)d.hasOwnProperty(m)&&(a.hasOwnProperty(m)&&(a["_"+m]=a[m]),a[m]=d[m])}if(a.name=s.name,s.helperType&&(a.helperType=s.helperType),s.modeProps)for(var b in s.modeProps)a[b]=s.modeProps[b];return a}var eo={};function Ns(r,s){var c=eo.hasOwnProperty(r)?eo[r]:eo[r]={};Z(s,c)}function Zr(r,s){if(s===!0)return s;if(r.copyState)return r.copyState(s);var c={};for(var a in s){var d=s[a];d instanceof Array&&(d=d.concat([])),c[a]=d}return c}function ql(r,s){for(var c;r.innerMode&&(c=r.innerMode(s),!(!c||c.mode==r));)s=c.state,r=c.mode;return c||{mode:r,state:s}}function Ms(r,s,c){return r.startState?r.startState(s,c):!0}var Ft=function(r,s,c){this.pos=this.start=0,this.string=r,this.tabSize=s||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=c};Ft.prototype.eol=function(){return this.pos>=this.string.length},Ft.prototype.sol=function(){return this.pos==this.lineStart},Ft.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ft.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ft.prototype.eat=function(r){var s=this.string.charAt(this.pos),c;if(typeof r=="string"?c=s==r:c=s&&(r.test?r.test(s):r(s)),c)return++this.pos,s},Ft.prototype.eatWhile=function(r){for(var s=this.pos;this.eat(r););return this.pos>s},Ft.prototype.eatSpace=function(){for(var r=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>r},Ft.prototype.skipToEnd=function(){this.pos=this.string.length},Ft.prototype.skipTo=function(r){var s=this.string.indexOf(r,this.pos);if(s>-1)return this.pos=s,!0},Ft.prototype.backUp=function(r){this.pos-=r},Ft.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=re(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?re(this.string,this.lineStart,this.tabSize):0)},Ft.prototype.indentation=function(){return re(this.string,null,this.tabSize)-(this.lineStart?re(this.string,this.lineStart,this.tabSize):0)},Ft.prototype.match=function(r,s,c){if(typeof r=="string"){var a=function(b){return c?b.toLowerCase():b},d=this.string.substr(this.pos,r.length);if(a(d)==a(r))return s!==!1&&(this.pos+=r.length),!0}else{var m=this.string.slice(this.pos).match(r);return m&&m.index>0?null:(m&&s!==!1&&(this.pos+=m[0].length),m)}},Ft.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ft.prototype.hideFirstChars=function(r,s){this.lineStart+=r;try{return s()}finally{this.lineStart-=r}},Ft.prototype.lookAhead=function(r){var s=this.lineOracle;return s&&s.lookAhead(r)},Ft.prototype.baseToken=function(){var r=this.lineOracle;return r&&r.baseToken(this.pos)};function qe(r,s){if(s-=r.first,s<0||s>=r.size)throw new Error("There is no line "+(s+r.first)+" in the document.");for(var c=r;!c.lines;)for(var a=0;;++a){var d=c.children[a],m=d.chunkSize();if(s<m){c=d;break}s-=m}return c.lines[s]}function yi(r,s,c){var a=[],d=s.line;return r.iter(s.line,c.line+1,function(m){var b=m.text;d==c.line&&(b=b.slice(0,c.ch)),d==s.line&&(b=b.slice(s.ch)),a.push(b),++d}),a}function Ul(r,s,c){var a=[];return r.iter(s,c,function(d){a.push(d.text)}),a}function or(r,s){var c=s-r.height;if(c)for(var a=r;a;a=a.parent)a.height+=c}function M(r){if(r.parent==null)return null;for(var s=r.parent,c=ce(s.lines,r),a=s.parent;a;s=a,a=a.parent)for(var d=0;a.children[d]!=s;++d)c+=a.children[d].chunkSize();return c+s.first}function V(r,s){var c=r.first;e:do{for(var a=0;a<r.children.length;++a){var d=r.children[a],m=d.height;if(s<m){r=d;continue e}s-=m,c+=d.chunkSize()}return c}while(!r.lines);for(var b=0;b<r.lines.length;++b){var x=r.lines[b],T=x.height;if(s<T)break;s-=T}return c+b}function ye(r,s){return s>=r.first&&s<r.first+r.size}function ke(r,s){return String(r.lineNumberFormatter(s+r.firstLineNumber))}function fe(r,s,c){if(c===void 0&&(c=null),!(this instanceof fe))return new fe(r,s,c);this.line=r,this.ch=s,this.sticky=c}function Ie(r,s){return r.line-s.line||r.ch-s.ch}function gt(r,s){return r.sticky==s.sticky&&Ie(r,s)==0}function tn(r){return fe(r.line,r.ch)}function $n(r,s){return Ie(r,s)<0?s:r}function Ls(r,s){return Ie(r,s)<0?r:s}function xm(r,s){return Math.max(r.first,Math.min(s,r.first+r.size-1))}function it(r,s){if(s.line<r.first)return fe(r.first,0);var c=r.first+r.size-1;return s.line>c?fe(c,qe(r,c).text.length):Zk(s,qe(r,s.line).text.length)}function Zk(r,s){var c=r.ch;return c==null||c>s?fe(r.line,s):c<0?fe(r.line,0):r}function Sm(r,s){for(var c=[],a=0;a<s.length;a++)c[a]=it(r,s[a]);return c}var Dc=function(r,s){this.state=r,this.lookAhead=s},Qr=function(r,s,c,a){this.state=s,this.doc=r,this.line=c,this.maxLookAhead=a||0,this.baseTokens=null,this.baseTokenPos=1};Qr.prototype.lookAhead=function(r){var s=this.doc.getLine(this.line+r);return s!=null&&r>this.maxLookAhead&&(this.maxLookAhead=r),s},Qr.prototype.baseToken=function(r){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=r;)this.baseTokenPos+=2;var s=this.baseTokens[this.baseTokenPos+1];return{type:s&&s.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-r}},Qr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Qr.fromSaved=function(r,s,c){return s instanceof Dc?new Qr(r,Zr(r.mode,s.state),c,s.lookAhead):new Qr(r,Zr(r.mode,s),c)},Qr.prototype.save=function(r){var s=r!==!1?Zr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Dc(s,this.maxLookAhead):s};function _m(r,s,c,a){var d=[r.state.modeGen],m={};$m(r,s.text,r.doc.mode,c,function(A,H){return d.push(A,H)},m,a);for(var b=c.state,x=function(A){c.baseTokens=d;var H=r.state.overlays[A],G=1,se=0;c.state=!0,$m(r,s.text,H.mode,c,function(ne,pe){for(var we=G;se<ne;){var Te=d[G];Te>ne&&d.splice(G,1,ne,d[G+1],Te),G+=2,se=Math.min(ne,Te)}if(pe)if(H.opaque)d.splice(we,G-we,ne,"overlay "+pe),G=we+2;else for(;we<G;we+=2){var Le=d[we+1];d[we+1]=(Le?Le+" ":"")+"overlay "+pe}},m),c.state=b,c.baseTokens=null,c.baseTokenPos=1},T=0;T<r.state.overlays.length;++T)x(T);return{styles:d,classes:m.bgClass||m.textClass?m:null}}function km(r,s,c){if(!s.styles||s.styles[0]!=r.state.modeGen){var a=Vl(r,M(s)),d=s.text.length>r.options.maxHighlightLength&&Zr(r.doc.mode,a.state),m=_m(r,s,a);d&&(a.state=d),s.stateAfter=a.save(!d),s.styles=m.styles,m.classes?s.styleClasses=m.classes:s.styleClasses&&(s.styleClasses=null),c===r.doc.highlightFrontier&&(r.doc.modeFrontier=Math.max(r.doc.modeFrontier,++r.doc.highlightFrontier))}return s.styles}function Vl(r,s,c){var a=r.doc,d=r.display;if(!a.mode.startState)return new Qr(a,!0,s);var m=Qk(r,s,c),b=m>a.first&&qe(a,m-1).stateAfter,x=b?Qr.fromSaved(a,b,m):new Qr(a,Ms(a.mode),m);return a.iter(m,s,function(T){xd(r,T.text,x);var A=x.line;T.stateAfter=A==s-1||A%5==0||A>=d.viewFrom&&A<d.viewTo?x.save():null,x.nextLine()}),c&&(a.modeFrontier=x.line),x}function xd(r,s,c,a){var d=r.doc.mode,m=new Ft(s,r.options.tabSize,c);for(m.start=m.pos=a||0,s==""&&Tm(d,c.state);!m.eol();)Sd(d,m,c.state),m.start=m.pos}function Tm(r,s){if(r.blankLine)return r.blankLine(s);if(r.innerMode){var c=ql(r,s);if(c.mode.blankLine)return c.mode.blankLine(c.state)}}function Sd(r,s,c,a){for(var d=0;d<10;d++){a&&(a[0]=ql(r,c).mode);var m=r.token(s,c);if(s.pos>s.start)return m}throw new Error("Mode "+r.name+" failed to advance stream.")}var Cm=function(r,s,c){this.start=r.start,this.end=r.pos,this.string=r.current(),this.type=s||null,this.state=c};function Em(r,s,c,a){var d=r.doc,m=d.mode,b;s=it(d,s);var x=qe(d,s.line),T=Vl(r,s.line,c),A=new Ft(x.text,r.options.tabSize,T),H;for(a&&(H=[]);(a||A.pos<s.ch)&&!A.eol();)A.start=A.pos,b=Sd(m,A,T.state),a&&H.push(new Cm(A,b,Zr(d.mode,T.state)));return a?H:new Cm(A,b,T.state)}function Am(r,s){if(r)for(;;){var c=r.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!c)break;r=r.slice(0,c.index)+r.slice(c.index+c[0].length);var a=c[1]?"bgClass":"textClass";s[a]==null?s[a]=c[2]:new RegExp("(?:^|\\s)"+c[2]+"(?:$|\\s)").test(s[a])||(s[a]+=" "+c[2])}return r}function $m(r,s,c,a,d,m,b){var x=c.flattenSpans;x==null&&(x=r.options.flattenSpans);var T=0,A=null,H=new Ft(s,r.options.tabSize,a),G,se=r.options.addModeClass&&[null];for(s==""&&Am(Tm(c,a.state),m);!H.eol();){if(H.pos>r.options.maxHighlightLength?(x=!1,b&&xd(r,s,a,H.pos),H.pos=s.length,G=null):G=Am(Sd(c,H,a.state,se),m),se){var ne=se[0].name;ne&&(G="m-"+(G?ne+" "+G:ne))}if(!x||A!=G){for(;T<H.start;)T=Math.min(H.start,T+5e3),d(T,A);A=G}H.start=H.pos}for(;T<H.pos;){var pe=Math.min(H.pos,T+5e3);d(pe,A),T=pe}}function Qk(r,s,c){for(var a,d,m=r.doc,b=c?-1:s-(r.doc.mode.innerMode?1e3:100),x=s;x>b;--x){if(x<=m.first)return m.first;var T=qe(m,x-1),A=T.stateAfter;if(A&&(!c||x+(A instanceof Dc?A.lookAhead:0)<=m.modeFrontier))return x;var H=re(T.text,null,r.options.tabSize);(d==null||a>H)&&(d=x-1,a=H)}return d}function eT(r,s){if(r.modeFrontier=Math.min(r.modeFrontier,s),!(r.highlightFrontier<s-10)){for(var c=r.first,a=s-1;a>c;a--){var d=qe(r,a).stateAfter;if(d&&(!(d instanceof Dc)||a+d.lookAhead<s)){c=a+1;break}}r.highlightFrontier=Math.min(r.highlightFrontier,c)}}var Nm=!1,bi=!1;function tT(){Nm=!0}function nT(){bi=!0}function Fc(r,s,c){this.marker=r,this.from=s,this.to=c}function Gl(r,s){if(r)for(var c=0;c<r.length;++c){var a=r[c];if(a.marker==s)return a}}function rT(r,s){for(var c,a=0;a<r.length;++a)r[a]!=s&&(c||(c=[])).push(r[a]);return c}function iT(r,s,c){var a=c&&window.WeakSet&&(c.markedSpans||(c.markedSpans=new WeakSet));a&&r.markedSpans&&a.has(r.markedSpans)?r.markedSpans.push(s):(r.markedSpans=r.markedSpans?r.markedSpans.concat([s]):[s],a&&a.add(r.markedSpans)),s.marker.attachLine(r)}function oT(r,s,c){var a;if(r)for(var d=0;d<r.length;++d){var m=r[d],b=m.marker,x=m.from==null||(b.inclusiveLeft?m.from<=s:m.from<s);if(x||m.from==s&&b.type=="bookmark"&&(!c||!m.marker.insertLeft)){var T=m.to==null||(b.inclusiveRight?m.to>=s:m.to>s);(a||(a=[])).push(new Fc(b,m.from,T?null:m.to))}}return a}function sT(r,s,c){var a;if(r)for(var d=0;d<r.length;++d){var m=r[d],b=m.marker,x=m.to==null||(b.inclusiveRight?m.to>=s:m.to>s);if(x||m.from==s&&b.type=="bookmark"&&(!c||m.marker.insertLeft)){var T=m.from==null||(b.inclusiveLeft?m.from<=s:m.from<s);(a||(a=[])).push(new Fc(b,T?null:m.from-s,m.to==null?null:m.to-s))}}return a}function _d(r,s){if(s.full)return null;var c=ye(r,s.from.line)&&qe(r,s.from.line).markedSpans,a=ye(r,s.to.line)&&qe(r,s.to.line).markedSpans;if(!c&&!a)return null;var d=s.from.ch,m=s.to.ch,b=Ie(s.from,s.to)==0,x=oT(c,d,b),T=sT(a,m,b),A=s.text.length==1,H=xe(s.text).length+(A?d:0);if(x)for(var G=0;G<x.length;++G){var se=x[G];if(se.to==null){var ne=Gl(T,se.marker);ne?A&&(se.to=ne.to==null?null:ne.to+H):se.to=d}}if(T)for(var pe=0;pe<T.length;++pe){var we=T[pe];if(we.to!=null&&(we.to+=H),we.from==null){var Te=Gl(x,we.marker);Te||(we.from=H,A&&(x||(x=[])).push(we))}else we.from+=H,A&&(x||(x=[])).push(we)}x&&(x=Mm(x)),T&&T!=x&&(T=Mm(T));var Le=[x];if(!A){var De=s.text.length-2,Oe;if(De>0&&x)for(var ze=0;ze<x.length;++ze)x[ze].to==null&&(Oe||(Oe=[])).push(new Fc(x[ze].marker,null,null));for(var Je=0;Je<De;++Je)Le.push(Oe);Le.push(T)}return Le}function Mm(r){for(var s=0;s<r.length;++s){var c=r[s];c.from!=null&&c.from==c.to&&c.marker.clearWhenEmpty!==!1&&r.splice(s--,1)}return r.length?r:null}function lT(r,s,c){var a=null;if(r.iter(s.line,c.line+1,function(ne){if(ne.markedSpans)for(var pe=0;pe<ne.markedSpans.length;++pe){var we=ne.markedSpans[pe].marker;we.readOnly&&(!a||ce(a,we)==-1)&&(a||(a=[])).push(we)}}),!a)return null;for(var d=[{from:s,to:c}],m=0;m<a.length;++m)for(var b=a[m],x=b.find(0),T=0;T<d.length;++T){var A=d[T];if(!(Ie(A.to,x.from)<0||Ie(A.from,x.to)>0)){var H=[T,1],G=Ie(A.from,x.from),se=Ie(A.to,x.to);(G<0||!b.inclusiveLeft&&!G)&&H.push({from:A.from,to:x.from}),(se>0||!b.inclusiveRight&&!se)&&H.push({from:x.to,to:A.to}),d.splice.apply(d,H),T+=H.length-3}}return d}function Lm(r){var s=r.markedSpans;if(s){for(var c=0;c<s.length;++c)s[c].marker.detachLine(r);r.markedSpans=null}}function Om(r,s){if(s){for(var c=0;c<s.length;++c)s[c].marker.attachLine(r);r.markedSpans=s}}function zc(r){return r.inclusiveLeft?-1:0}function Hc(r){return r.inclusiveRight?1:0}function kd(r,s){var c=r.lines.length-s.lines.length;if(c!=0)return c;var a=r.find(),d=s.find(),m=Ie(a.from,d.from)||zc(r)-zc(s);if(m)return-m;var b=Ie(a.to,d.to)||Hc(r)-Hc(s);return b||s.id-r.id}function Rm(r,s){var c=bi&&r.markedSpans,a;if(c)for(var d=void 0,m=0;m<c.length;++m)d=c[m],d.marker.collapsed&&(s?d.from:d.to)==null&&(!a||kd(a,d.marker)<0)&&(a=d.marker);return a}function Pm(r){return Rm(r,!0)}function Bc(r){return Rm(r,!1)}function aT(r,s){var c=bi&&r.markedSpans,a;if(c)for(var d=0;d<c.length;++d){var m=c[d];m.marker.collapsed&&(m.from==null||m.from<s)&&(m.to==null||m.to>s)&&(!a||kd(a,m.marker)<0)&&(a=m.marker)}return a}function Im(r,s,c,a,d){var m=qe(r,s),b=bi&&m.markedSpans;if(b)for(var x=0;x<b.length;++x){var T=b[x];if(T.marker.collapsed){var A=T.marker.find(0),H=Ie(A.from,c)||zc(T.marker)-zc(d),G=Ie(A.to,a)||Hc(T.marker)-Hc(d);if(!(H>=0&&G<=0||H<=0&&G>=0)&&(H<=0&&(T.marker.inclusiveRight&&d.inclusiveLeft?Ie(A.to,c)>=0:Ie(A.to,c)>0)||H>=0&&(T.marker.inclusiveRight&&d.inclusiveLeft?Ie(A.from,a)<=0:Ie(A.from,a)<0)))return!0}}}function Lr(r){for(var s;s=Pm(r);)r=s.find(-1,!0).line;return r}function cT(r){for(var s;s=Bc(r);)r=s.find(1,!0).line;return r}function uT(r){for(var s,c;s=Bc(r);)r=s.find(1,!0).line,(c||(c=[])).push(r);return c}function Td(r,s){var c=qe(r,s),a=Lr(c);return c==a?s:M(a)}function Dm(r,s){if(s>r.lastLine())return s;var c=qe(r,s),a;if(!to(r,c))return s;for(;a=Bc(c);)c=a.find(1,!0).line;return M(c)+1}function to(r,s){var c=bi&&s.markedSpans;if(c){for(var a=void 0,d=0;d<c.length;++d)if(a=c[d],!!a.marker.collapsed){if(a.from==null)return!0;if(!a.marker.widgetNode&&a.from==0&&a.marker.inclusiveLeft&&Cd(r,s,a))return!0}}}function Cd(r,s,c){if(c.to==null){var a=c.marker.find(1,!0);return Cd(r,a.line,Gl(a.line.markedSpans,c.marker))}if(c.marker.inclusiveRight&&c.to==s.text.length)return!0;for(var d=void 0,m=0;m<s.markedSpans.length;++m)if(d=s.markedSpans[m],d.marker.collapsed&&!d.marker.widgetNode&&d.from==c.to&&(d.to==null||d.to!=c.from)&&(d.marker.inclusiveLeft||c.marker.inclusiveRight)&&Cd(r,s,d))return!0}function wi(r){r=Lr(r);for(var s=0,c=r.parent,a=0;a<c.lines.length;++a){var d=c.lines[a];if(d==r)break;s+=d.height}for(var m=c.parent;m;c=m,m=c.parent)for(var b=0;b<m.children.length;++b){var x=m.children[b];if(x==c)break;s+=x.height}return s}function jc(r){if(r.height==0)return 0;for(var s=r.text.length,c,a=r;c=Pm(a);){var d=c.find(0,!0);a=d.from.line,s+=d.from.ch-d.to.ch}for(a=r;c=Bc(a);){var m=c.find(0,!0);s-=a.text.length-m.from.ch,a=m.to.line,s+=a.text.length-m.to.ch}return s}function Ed(r){var s=r.display,c=r.doc;s.maxLine=qe(c,c.first),s.maxLineLength=jc(s.maxLine),s.maxLineChanged=!0,c.iter(function(a){var d=jc(a);d>s.maxLineLength&&(s.maxLineLength=d,s.maxLine=a)})}var Os=function(r,s,c){this.text=r,Om(this,s),this.height=c?c(this):1};Os.prototype.lineNo=function(){return M(this)},Er(Os);function fT(r,s,c,a){r.text=s,r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null),r.order!=null&&(r.order=null),Lm(r),Om(r,c);var d=a?a(r):1;d!=r.height&&or(r,d)}function dT(r){r.parent=null,Lm(r)}var hT={},pT={};function Fm(r,s){if(!r||/^\s*$/.test(r))return null;var c=s.addModeClass?pT:hT;return c[r]||(c[r]=r.replace(/\S+/g,"cm-$&"))}function zm(r,s){var c=R("span",null,null,g?"padding-right: .1px":null),a={pre:R("pre",[c],"CodeMirror-line"),content:c,col:0,pos:0,cm:r,trailingSpace:!1,splitSpaces:r.getOption("lineWrapping")};s.measure={};for(var d=0;d<=(s.rest?s.rest.length:0);d++){var m=d?s.rest[d-1]:s.line,b=void 0;a.pos=0,a.addToken=mT,Zi(r.display.measure)&&(b=at(m,r.doc.direction))&&(a.addToken=yT(a.addToken,b)),a.map=[];var x=s!=r.display.externalMeasured&&M(m);bT(m,a,km(r,m,x)),m.styleClasses&&(m.styleClasses.bgClass&&(a.bgClass=Be(m.styleClasses.bgClass,a.bgClass||"")),m.styleClasses.textClass&&(a.textClass=Be(m.styleClasses.textClass,a.textClass||""))),a.map.length==0&&a.map.push(0,0,a.content.appendChild(Pc(r.display.measure))),d==0?(s.measure.map=a.map,s.measure.cache={}):((s.measure.maps||(s.measure.maps=[])).push(a.map),(s.measure.caches||(s.measure.caches=[])).push({}))}if(g){var T=a.content.lastChild;(/\bcm-tab\b/.test(T.className)||T.querySelector&&T.querySelector(".cm-tab"))&&(a.content.className="cm-tab-wrap-hack")}return It(r,"renderLine",r,s.line,a.pre),a.pre.className&&(a.textClass=Be(a.pre.className,a.textClass||"")),a}function gT(r){var s=S("span","•","cm-invalidchar");return s.title="\\u"+r.charCodeAt(0).toString(16),s.setAttribute("aria-label",s.title),s}function mT(r,s,c,a,d,m,b){if(s){var x=r.splitSpaces?vT(s,r.trailingSpace):s,T=r.cm.state.specialChars,A=!1,H;if(!T.test(s))r.col+=s.length,H=document.createTextNode(x),r.map.push(r.pos,r.pos+s.length,H),h&&p<9&&(A=!0),r.pos+=s.length;else{H=document.createDocumentFragment();for(var G=0;;){T.lastIndex=G;var se=T.exec(s),ne=se?se.index-G:s.length-G;if(ne){var pe=document.createTextNode(x.slice(G,G+ne));h&&p<9?H.appendChild(S("span",[pe])):H.appendChild(pe),r.map.push(r.pos,r.pos+ne,pe),r.col+=ne,r.pos+=ne}if(!se)break;G+=ne+1;var we=void 0;if(se[0]==" "){var Te=r.cm.options.tabSize,Le=Te-r.col%Te;we=H.appendChild(S("span",Ae(Le),"cm-tab")),we.setAttribute("role","presentation"),we.setAttribute("cm-text"," "),r.col+=Le}else se[0]=="\r"||se[0]==`
@@ -72,23 +72,23 @@ b`.split(/\n/).length!=3?function(r){for(var s=0,c=[],a=r.length;s<=a;){var d=r.
72
72
  `)>-1?c.value=r.prevInput="":r.prevInput=d,r.composing&&(r.composing.range.clear(),r.composing.range=s.markText(r.composing.start,s.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},qt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},qt.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},qt.prototype.onContextMenu=function(r){var s=this,c=s.cm,a=c.display,d=s.textarea;s.contextMenuPending&&s.contextMenuPending();var m=Uo(c,r),b=a.scroller.scrollTop;if(!m||$)return;var x=c.options.resetSelectionOnContextMenu;x&&c.doc.sel.contains(m)==-1&&rn(c,gn)(c.doc,io(m),ee);var T=d.style.cssText,A=s.wrapper.style.cssText,H=s.wrapper.offsetParent.getBoundingClientRect();s.wrapper.style.cssText="position: static",d.style.cssText=`position: absolute; width: 30px; height: 30px;
73
73
  top: `+(r.clientY-H.top-5)+"px; left: "+(r.clientX-H.left-5)+`px;
74
74
  z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
75
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var G;g&&(G=d.ownerDocument.defaultView.scrollY),a.input.focus(),g&&d.ownerDocument.defaultView.scrollTo(null,G),a.input.reset(),c.somethingSelected()||(d.value=s.prevInput=" "),s.contextMenuPending=ne,a.selForContextMenu=c.doc.sel,clearTimeout(a.detectingSelectAll);function se(){if(d.selectionStart!=null){var we=c.somethingSelected(),Te="​"+(we?d.value:"");d.value="⇚",d.value=Te,s.prevInput=we?"":"​",d.selectionStart=1,d.selectionEnd=Te.length,a.selForContextMenu=c.doc.sel}}function ne(){if(s.contextMenuPending==ne&&(s.contextMenuPending=!1,s.wrapper.style.cssText=A,d.style.cssText=T,h&&p<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=b),d.selectionStart!=null)){(!h||h&&p<9)&&se();var we=0,Te=function(){a.selForContextMenu==c.doc.sel&&d.selectionStart==0&&d.selectionEnd>0&&s.prevInput=="​"?rn(c,Fv)(c):we++<10?a.detectingSelectAll=setTimeout(Te,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(Te,200)}}if(h&&p>=9&&se(),U){Ji(r);var pe=function(){hn(window,"mouseup",pe),setTimeout(ne,20)};Xe(window,"mouseup",pe)}else setTimeout(ne,50)},qt.prototype.readOnlyChanged=function(r){r||this.reset(),this.textarea.disabled=r=="nocursor",this.textarea.readOnly=!!r},qt.prototype.setUneditable=function(){},qt.prototype.needsContentAttribute=!1;function KC(r,s){if(s=s?Z(s):{},s.value=r.value,!s.tabindex&&r.tabIndex&&(s.tabindex=r.tabIndex),!s.placeholder&&r.placeholder&&(s.placeholder=r.placeholder),s.autofocus==null){var c=ve(He(r));s.autofocus=c==r||r.getAttribute("autofocus")!=null&&c==document.body}function a(){r.value=x.getValue()}var d;if(r.form&&(Xe(r.form,"submit",a),!s.leaveSubmitMethodAlone)){var m=r.form;d=m.submit;try{var b=m.submit=function(){a(),m.submit=d,m.submit(),m.submit=b}}catch{}}s.finishInit=function(T){T.save=a,T.getTextArea=function(){return r},T.toTextArea=function(){T.toTextArea=isNaN,a(),r.parentNode.removeChild(T.getWrapperElement()),r.style.display="",r.form&&(hn(r.form,"submit",a),!s.leaveSubmitMethodAlone&&typeof r.form.submit=="function"&&(r.form.submit=d))}},r.style.display="none";var x=Nt(function(T){return r.parentNode.insertBefore(T,r.nextSibling)},s);return x}function YC(r){r.off=hn,r.on=Xe,r.wheelEventPixels=nC,r.Doc=Mn,r.splitLines=br,r.countColumn=re,r.findColumn=me,r.isWordChar=et,r.Pass=j,r.signal=It,r.Line=Os,r.changeEnd=oo,r.scrollbarModel=pv,r.Pos=fe,r.cmpPos=Ie,r.modes=Es,r.mimeModes=Nr,r.resolveMode=As,r.getMode=$s,r.modeExtensions=eo,r.extendMode=Ns,r.copyState=Zr,r.startState=Ms,r.innerMode=ql,r.commands=pa,r.keyMap=_i,r.keyName=ey,r.isModifierKey=Zv,r.lookupKey=Vs,r.normalizeKeyMap=kC,r.StringStream=Ft,r.SharedTextMarker=fa,r.TextMarker=lo,r.LineWidget=ua,r.e_preventDefault=pn,r.e_stopPropagation=Ts,r.e_stop=Ji,r.addClass=_e,r.contains=ae,r.rmClass=P,r.keyNames=ao}HC(Nt),qC(Nt);var XC="iter insert remove copy getEditor constructor".split(" ");for(var du in Mn.prototype)Mn.prototype.hasOwnProperty(du)&&ce(XC,du)<0&&(Nt.prototype[du]=(function(r){return function(){return r.apply(this.doc,arguments)}})(Mn.prototype[du]));return Er(Mn),Nt.inputStyles={textarea:qt,contenteditable:xt},Nt.defineMode=function(r){!Nt.defaults.mode&&r!="null"&&(Nt.defaults.mode=r),Mr.apply(this,arguments)},Nt.defineMIME=jo,Nt.defineMode("null",function(){return{token:function(r){return r.skipToEnd()}}}),Nt.defineMIME("text/plain","null"),Nt.defineExtension=function(r,s){Nt.prototype[r]=s},Nt.defineDocExtension=function(r,s){Mn.prototype[r]=s},Nt.fromTextArea=KC,YC(Nt),Nt.version="5.65.18",Nt}))})(Vu)),Vu.exports}var YP=Ho();const XP=Jg(YP);var Hh={},Ir={};const JP="Á",ZP="á",QP="Ă",eI="ă",tI="∾",nI="∿",rI="∾̳",iI="Â",oI="â",sI="´",lI="А",aI="а",cI="Æ",uI="æ",fI="⁡",dI="𝔄",hI="𝔞",pI="À",gI="à",mI="ℵ",vI="ℵ",yI="Α",bI="α",wI="Ā",xI="ā",SI="⨿",_I="&",kI="&",TI="⩕",CI="⩓",EI="∧",AI="⩜",$I="⩘",NI="⩚",MI="∠",LI="⦤",OI="∠",RI="⦨",PI="⦩",II="⦪",DI="⦫",FI="⦬",zI="⦭",HI="⦮",BI="⦯",jI="∡",WI="∟",qI="⊾",UI="⦝",VI="∢",GI="Å",KI="⍼",YI="Ą",XI="ą",JI="𝔸",ZI="𝕒",QI="⩯",e2="≈",t2="⩰",n2="≊",r2="≋",i2="'",o2="⁡",s2="≈",l2="≊",a2="Å",c2="å",u2="𝒜",f2="𝒶",d2="≔",h2="*",p2="≈",g2="≍",m2="Ã",v2="ã",y2="Ä",b2="ä",w2="∳",x2="⨑",S2="≌",_2="϶",k2="‵",T2="∽",C2="⋍",E2="∖",A2="⫧",$2="⊽",N2="⌅",M2="⌆",L2="⌅",O2="⎵",R2="⎶",P2="≌",I2="Б",D2="б",F2="„",z2="∵",H2="∵",B2="∵",j2="⦰",W2="϶",q2="ℬ",U2="ℬ",V2="Β",G2="β",K2="ℶ",Y2="≬",X2="𝔅",J2="𝔟",Z2="⋂",Q2="◯",eD="⋃",tD="⨀",nD="⨁",rD="⨂",iD="⨆",oD="★",sD="▽",lD="△",aD="⨄",cD="⋁",uD="⋀",fD="⤍",dD="⧫",hD="▪",pD="▴",gD="▾",mD="◂",vD="▸",yD="␣",bD="▒",wD="░",xD="▓",SD="█",_D="=⃥",kD="≡⃥",TD="⫭",CD="⌐",ED="𝔹",AD="𝕓",$D="⊥",ND="⊥",MD="⋈",LD="⧉",OD="┐",RD="╕",PD="╖",ID="╗",DD="┌",FD="╒",zD="╓",HD="╔",BD="─",jD="═",WD="┬",qD="╤",UD="╥",VD="╦",GD="┴",KD="╧",YD="╨",XD="╩",JD="⊟",ZD="⊞",QD="⊠",eF="┘",tF="╛",nF="╜",rF="╝",iF="└",oF="╘",sF="╙",lF="╚",aF="│",cF="║",uF="┼",fF="╪",dF="╫",hF="╬",pF="┤",gF="╡",mF="╢",vF="╣",yF="├",bF="╞",wF="╟",xF="╠",SF="‵",_F="˘",kF="˘",TF="¦",CF="𝒷",EF="ℬ",AF="⁏",$F="∽",NF="⋍",MF="⧅",LF="\\",OF="⟈",RF="•",PF="•",IF="≎",DF="⪮",FF="≏",zF="≎",HF="≏",BF="Ć",jF="ć",WF="⩄",qF="⩉",UF="⩋",VF="∩",GF="⋒",KF="⩇",YF="⩀",XF="ⅅ",JF="∩︀",ZF="⁁",QF="ˇ",ez="ℭ",tz="⩍",nz="Č",rz="č",iz="Ç",oz="ç",sz="Ĉ",lz="ĉ",az="∰",cz="⩌",uz="⩐",fz="Ċ",dz="ċ",hz="¸",pz="¸",gz="⦲",mz="¢",vz="·",yz="·",bz="𝔠",wz="ℭ",xz="Ч",Sz="ч",_z="✓",kz="✓",Tz="Χ",Cz="χ",Ez="ˆ",Az="≗",$z="↺",Nz="↻",Mz="⊛",Lz="⊚",Oz="⊝",Rz="⊙",Pz="®",Iz="Ⓢ",Dz="⊖",Fz="⊕",zz="⊗",Hz="○",Bz="⧃",jz="≗",Wz="⨐",qz="⫯",Uz="⧂",Vz="∲",Gz="”",Kz="’",Yz="♣",Xz="♣",Jz=":",Zz="∷",Qz="⩴",e3="≔",t3="≔",n3=",",r3="@",i3="∁",o3="∘",s3="∁",l3="ℂ",a3="≅",c3="⩭",u3="≡",f3="∮",d3="∯",h3="∮",p3="𝕔",g3="ℂ",m3="∐",v3="∐",y3="©",b3="©",w3="℗",x3="∳",S3="↵",_3="✗",k3="⨯",T3="𝒞",C3="𝒸",E3="⫏",A3="⫑",$3="⫐",N3="⫒",M3="⋯",L3="⤸",O3="⤵",R3="⋞",P3="⋟",I3="↶",D3="⤽",F3="⩈",z3="⩆",H3="≍",B3="∪",j3="⋓",W3="⩊",q3="⊍",U3="⩅",V3="∪︀",G3="↷",K3="⤼",Y3="⋞",X3="⋟",J3="⋎",Z3="⋏",Q3="¤",eH="↶",tH="↷",nH="⋎",rH="⋏",iH="∲",oH="∱",sH="⌭",lH="†",aH="‡",cH="ℸ",uH="↓",fH="↡",dH="⇓",hH="‐",pH="⫤",gH="⊣",mH="⤏",vH="˝",yH="Ď",bH="ď",wH="Д",xH="д",SH="‡",_H="⇊",kH="ⅅ",TH="ⅆ",CH="⤑",EH="⩷",AH="°",$H="∇",NH="Δ",MH="δ",LH="⦱",OH="⥿",RH="𝔇",PH="𝔡",IH="⥥",DH="⇃",FH="⇂",zH="´",HH="˙",BH="˝",jH="`",WH="˜",qH="⋄",UH="⋄",VH="⋄",GH="♦",KH="♦",YH="¨",XH="ⅆ",JH="ϝ",ZH="⋲",QH="÷",eB="÷",tB="⋇",nB="⋇",rB="Ђ",iB="ђ",oB="⌞",sB="⌍",lB="$",aB="𝔻",cB="𝕕",uB="¨",fB="˙",dB="⃜",hB="≐",pB="≑",gB="≐",mB="∸",vB="∔",yB="⊡",bB="⌆",wB="∯",xB="¨",SB="⇓",_B="⇐",kB="⇔",TB="⫤",CB="⟸",EB="⟺",AB="⟹",$B="⇒",NB="⊨",MB="⇑",LB="⇕",OB="∥",RB="⤓",PB="↓",IB="↓",DB="⇓",FB="⇵",zB="̑",HB="⇊",BB="⇃",jB="⇂",WB="⥐",qB="⥞",UB="⥖",VB="↽",GB="⥟",KB="⥗",YB="⇁",XB="↧",JB="⊤",ZB="⤐",QB="⌟",ej="⌌",tj="𝒟",nj="𝒹",rj="Ѕ",ij="ѕ",oj="⧶",sj="Đ",lj="đ",aj="⋱",cj="▿",uj="▾",fj="⇵",dj="⥯",hj="⦦",pj="Џ",gj="џ",mj="⟿",vj="É",yj="é",bj="⩮",wj="Ě",xj="ě",Sj="Ê",_j="ê",kj="≖",Tj="≕",Cj="Э",Ej="э",Aj="⩷",$j="Ė",Nj="ė",Mj="≑",Lj="ⅇ",Oj="≒",Rj="𝔈",Pj="𝔢",Ij="⪚",Dj="È",Fj="è",zj="⪖",Hj="⪘",Bj="⪙",jj="∈",Wj="⏧",qj="ℓ",Uj="⪕",Vj="⪗",Gj="Ē",Kj="ē",Yj="∅",Xj="∅",Jj="◻",Zj="∅",Qj="▫",e5=" ",t5=" ",n5=" ",r5="Ŋ",i5="ŋ",o5=" ",s5="Ę",l5="ę",a5="𝔼",c5="𝕖",u5="⋕",f5="⧣",d5="⩱",h5="ε",p5="Ε",g5="ε",m5="ϵ",v5="≖",y5="≕",b5="≂",w5="⪖",x5="⪕",S5="⩵",_5="=",k5="≂",T5="≟",C5="⇌",E5="≡",A5="⩸",$5="⧥",N5="⥱",M5="≓",L5="ℯ",O5="ℰ",R5="≐",P5="⩳",I5="≂",D5="Η",F5="η",z5="Ð",H5="ð",B5="Ë",j5="ë",W5="€",q5="!",U5="∃",V5="∃",G5="ℰ",K5="ⅇ",Y5="ⅇ",X5="≒",J5="Ф",Z5="ф",Q5="♀",e8="ffi",t8="ff",n8="ffl",r8="𝔉",i8="𝔣",o8="fi",s8="◼",l8="▪",a8="fj",c8="♭",u8="fl",f8="▱",d8="ƒ",h8="𝔽",p8="𝕗",g8="∀",m8="∀",v8="⋔",y8="⫙",b8="ℱ",w8="⨍",x8="½",S8="⅓",_8="¼",k8="⅕",T8="⅙",C8="⅛",E8="⅔",A8="⅖",$8="¾",N8="⅗",M8="⅜",L8="⅘",O8="⅚",R8="⅝",P8="⅞",I8="⁄",D8="⌢",F8="𝒻",z8="ℱ",H8="ǵ",B8="Γ",j8="γ",W8="Ϝ",q8="ϝ",U8="⪆",V8="Ğ",G8="ğ",K8="Ģ",Y8="Ĝ",X8="ĝ",J8="Г",Z8="г",Q8="Ġ",e4="ġ",t4="≥",n4="≧",r4="⪌",i4="⋛",o4="≥",s4="≧",l4="⩾",a4="⪩",c4="⩾",u4="⪀",f4="⪂",d4="⪄",h4="⋛︀",p4="⪔",g4="𝔊",m4="𝔤",v4="≫",y4="⋙",b4="⋙",w4="ℷ",x4="Ѓ",S4="ѓ",_4="⪥",k4="≷",T4="⪒",C4="⪤",E4="⪊",A4="⪊",$4="⪈",N4="≩",M4="⪈",L4="≩",O4="⋧",R4="𝔾",P4="𝕘",I4="`",D4="≥",F4="⋛",z4="≧",H4="⪢",B4="≷",j4="⩾",W4="≳",q4="𝒢",U4="ℊ",V4="≳",G4="⪎",K4="⪐",Y4="⪧",X4="⩺",J4=">",Z4=">",Q4="≫",eW="⋗",tW="⦕",nW="⩼",rW="⪆",iW="⥸",oW="⋗",sW="⋛",lW="⪌",aW="≷",cW="≳",uW="≩︀",fW="≩︀",dW="ˇ",hW=" ",pW="½",gW="ℋ",mW="Ъ",vW="ъ",yW="⥈",bW="↔",wW="⇔",xW="↭",SW="^",_W="ℏ",kW="Ĥ",TW="ĥ",CW="♥",EW="♥",AW="…",$W="⊹",NW="𝔥",MW="ℌ",LW="ℋ",OW="⤥",RW="⤦",PW="⇿",IW="∻",DW="↩",FW="↪",zW="𝕙",HW="ℍ",BW="―",jW="─",WW="𝒽",qW="ℋ",UW="ℏ",VW="Ħ",GW="ħ",KW="≎",YW="≏",XW="⁃",JW="‐",ZW="Í",QW="í",eq="⁣",tq="Î",nq="î",rq="И",iq="и",oq="İ",sq="Е",lq="е",aq="¡",cq="⇔",uq="𝔦",fq="ℑ",dq="Ì",hq="ì",pq="ⅈ",gq="⨌",mq="∭",vq="⧜",yq="℩",bq="IJ",wq="ij",xq="Ī",Sq="ī",_q="ℑ",kq="ⅈ",Tq="ℐ",Cq="ℑ",Eq="ı",Aq="ℑ",$q="⊷",Nq="Ƶ",Mq="⇒",Lq="℅",Oq="∞",Rq="⧝",Pq="ı",Iq="⊺",Dq="∫",Fq="∬",zq="ℤ",Hq="∫",Bq="⊺",jq="⋂",Wq="⨗",qq="⨼",Uq="⁣",Vq="⁢",Gq="Ё",Kq="ё",Yq="Į",Xq="į",Jq="𝕀",Zq="𝕚",Qq="Ι",eU="ι",tU="⨼",nU="¿",rU="𝒾",iU="ℐ",oU="∈",sU="⋵",lU="⋹",aU="⋴",cU="⋳",uU="∈",fU="⁢",dU="Ĩ",hU="ĩ",pU="І",gU="і",mU="Ï",vU="ï",yU="Ĵ",bU="ĵ",wU="Й",xU="й",SU="𝔍",_U="𝔧",kU="ȷ",TU="𝕁",CU="𝕛",EU="𝒥",AU="𝒿",$U="Ј",NU="ј",MU="Є",LU="є",OU="Κ",RU="κ",PU="ϰ",IU="Ķ",DU="ķ",FU="К",zU="к",HU="𝔎",BU="𝔨",jU="ĸ",WU="Х",qU="х",UU="Ќ",VU="ќ",GU="𝕂",KU="𝕜",YU="𝒦",XU="𝓀",JU="⇚",ZU="Ĺ",QU="ĺ",e6="⦴",t6="ℒ",n6="Λ",r6="λ",i6="⟨",o6="⟪",s6="⦑",l6="⟨",a6="⪅",c6="ℒ",u6="«",f6="⇤",d6="⤟",h6="←",p6="↞",g6="⇐",m6="⤝",v6="↩",y6="↫",b6="⤹",w6="⥳",x6="↢",S6="⤙",_6="⤛",k6="⪫",T6="⪭",C6="⪭︀",E6="⤌",A6="⤎",$6="❲",N6="{",M6="[",L6="⦋",O6="⦏",R6="⦍",P6="Ľ",I6="ľ",D6="Ļ",F6="ļ",z6="⌈",H6="{",B6="Л",j6="л",W6="⤶",q6="“",U6="„",V6="⥧",G6="⥋",K6="↲",Y6="≤",X6="≦",J6="⟨",Z6="⇤",Q6="←",eV="←",tV="⇐",nV="⇆",rV="↢",iV="⌈",oV="⟦",sV="⥡",lV="⥙",aV="⇃",cV="⌊",uV="↽",fV="↼",dV="⇇",hV="↔",pV="↔",gV="⇔",mV="⇆",vV="⇋",yV="↭",bV="⥎",wV="↤",xV="⊣",SV="⥚",_V="⋋",kV="⧏",TV="⊲",CV="⊴",EV="⥑",AV="⥠",$V="⥘",NV="↿",MV="⥒",LV="↼",OV="⪋",RV="⋚",PV="≤",IV="≦",DV="⩽",FV="⪨",zV="⩽",HV="⩿",BV="⪁",jV="⪃",WV="⋚︀",qV="⪓",UV="⪅",VV="⋖",GV="⋚",KV="⪋",YV="⋚",XV="≦",JV="≶",ZV="≶",QV="⪡",e9="≲",t9="⩽",n9="≲",r9="⥼",i9="⌊",o9="𝔏",s9="𝔩",l9="≶",a9="⪑",c9="⥢",u9="↽",f9="↼",d9="⥪",h9="▄",p9="Љ",g9="љ",m9="⇇",v9="≪",y9="⋘",b9="⌞",w9="⇚",x9="⥫",S9="◺",_9="Ŀ",k9="ŀ",T9="⎰",C9="⎰",E9="⪉",A9="⪉",$9="⪇",N9="≨",M9="⪇",L9="≨",O9="⋦",R9="⟬",P9="⇽",I9="⟦",D9="⟵",F9="⟵",z9="⟸",H9="⟷",B9="⟷",j9="⟺",W9="⟼",q9="⟶",U9="⟶",V9="⟹",G9="↫",K9="↬",Y9="⦅",X9="𝕃",J9="𝕝",Z9="⨭",Q9="⨴",eG="∗",tG="_",nG="↙",rG="↘",iG="◊",oG="◊",sG="⧫",lG="(",aG="⦓",cG="⇆",uG="⌟",fG="⇋",dG="⥭",hG="‎",pG="⊿",gG="‹",mG="𝓁",vG="ℒ",yG="↰",bG="↰",wG="≲",xG="⪍",SG="⪏",_G="[",kG="‘",TG="‚",CG="Ł",EG="ł",AG="⪦",$G="⩹",NG="<",MG="<",LG="≪",OG="⋖",RG="⋋",PG="⋉",IG="⥶",DG="⩻",FG="◃",zG="⊴",HG="◂",BG="⦖",jG="⥊",WG="⥦",qG="≨︀",UG="≨︀",VG="¯",GG="♂",KG="✠",YG="✠",XG="↦",JG="↦",ZG="↧",QG="↤",eK="↥",tK="▮",nK="⨩",rK="М",iK="м",oK="—",sK="∺",lK="∡",aK=" ",cK="ℳ",uK="𝔐",fK="𝔪",dK="℧",hK="µ",pK="*",gK="⫰",mK="∣",vK="·",yK="⊟",bK="−",wK="∸",xK="⨪",SK="∓",_K="⫛",kK="…",TK="∓",CK="⊧",EK="𝕄",AK="𝕞",$K="∓",NK="𝓂",MK="ℳ",LK="∾",OK="Μ",RK="μ",PK="⊸",IK="⊸",DK="∇",FK="Ń",zK="ń",HK="∠⃒",BK="≉",jK="⩰̸",WK="≋̸",qK="ʼn",UK="≉",VK="♮",GK="ℕ",KK="♮",YK=" ",XK="≎̸",JK="≏̸",ZK="⩃",QK="Ň",e7="ň",t7="Ņ",n7="ņ",r7="≇",i7="⩭̸",o7="⩂",s7="Н",l7="н",a7="–",c7="⤤",u7="↗",f7="⇗",d7="↗",h7="≠",p7="≐̸",g7="​",m7="​",v7="​",y7="​",b7="≢",w7="⤨",x7="≂̸",S7="≫",_7="≪",k7=`
76
- `,T7="∄",C7="∄",E7="𝔑",A7="𝔫",$7="≧̸",N7="≱",M7="≱",L7="≧̸",O7="⩾̸",R7="⩾̸",P7="⋙̸",I7="≵",D7="≫⃒",F7="≯",z7="≯",H7="≫̸",B7="↮",j7="⇎",W7="⫲",q7="∋",U7="⋼",V7="⋺",G7="∋",K7="Њ",Y7="њ",X7="↚",J7="⇍",Z7="‥",Q7="≦̸",eY="≰",tY="↚",nY="⇍",rY="↮",iY="⇎",oY="≰",sY="≦̸",lY="⩽̸",aY="⩽̸",cY="≮",uY="⋘̸",fY="≴",dY="≪⃒",hY="≮",pY="⋪",gY="⋬",mY="≪̸",vY="∤",yY="⁠",bY=" ",wY="𝕟",xY="ℕ",SY="⫬",_Y="¬",kY="≢",TY="≭",CY="∦",EY="∉",AY="≠",$Y="≂̸",NY="∄",MY="≯",LY="≱",OY="≧̸",RY="≫̸",PY="≹",IY="⩾̸",DY="≵",FY="≎̸",zY="≏̸",HY="∉",BY="⋵̸",jY="⋹̸",WY="∉",qY="⋷",UY="⋶",VY="⧏̸",GY="⋪",KY="⋬",YY="≮",XY="≰",JY="≸",ZY="≪̸",QY="⩽̸",eX="≴",tX="⪢̸",nX="⪡̸",rX="∌",iX="∌",oX="⋾",sX="⋽",lX="⊀",aX="⪯̸",cX="⋠",uX="∌",fX="⧐̸",dX="⋫",hX="⋭",pX="⊏̸",gX="⋢",mX="⊐̸",vX="⋣",yX="⊂⃒",bX="⊈",wX="⊁",xX="⪰̸",SX="⋡",_X="≿̸",kX="⊃⃒",TX="⊉",CX="≁",EX="≄",AX="≇",$X="≉",NX="∤",MX="∦",LX="∦",OX="⫽⃥",RX="∂̸",PX="⨔",IX="⊀",DX="⋠",FX="⊀",zX="⪯̸",HX="⪯̸",BX="⤳̸",jX="↛",WX="⇏",qX="↝̸",UX="↛",VX="⇏",GX="⋫",KX="⋭",YX="⊁",XX="⋡",JX="⪰̸",ZX="𝒩",QX="𝓃",eJ="∤",tJ="∦",nJ="≁",rJ="≄",iJ="≄",oJ="∤",sJ="∦",lJ="⋢",aJ="⋣",cJ="⊄",uJ="⫅̸",fJ="⊈",dJ="⊂⃒",hJ="⊈",pJ="⫅̸",gJ="⊁",mJ="⪰̸",vJ="⊅",yJ="⫆̸",bJ="⊉",wJ="⊃⃒",xJ="⊉",SJ="⫆̸",_J="≹",kJ="Ñ",TJ="ñ",CJ="≸",EJ="⋪",AJ="⋬",$J="⋫",NJ="⋭",MJ="Ν",LJ="ν",OJ="#",RJ="№",PJ=" ",IJ="≍⃒",DJ="⊬",FJ="⊭",zJ="⊮",HJ="⊯",BJ="≥⃒",jJ=">⃒",WJ="⤄",qJ="⧞",UJ="⤂",VJ="≤⃒",GJ="<⃒",KJ="⊴⃒",YJ="⤃",XJ="⊵⃒",JJ="∼⃒",ZJ="⤣",QJ="↖",eZ="⇖",tZ="↖",nZ="⤧",rZ="Ó",iZ="ó",oZ="⊛",sZ="Ô",lZ="ô",aZ="⊚",cZ="О",uZ="о",fZ="⊝",dZ="Ő",hZ="ő",pZ="⨸",gZ="⊙",mZ="⦼",vZ="Œ",yZ="œ",bZ="⦿",wZ="𝔒",xZ="𝔬",SZ="˛",_Z="Ò",kZ="ò",TZ="⧁",CZ="⦵",EZ="Ω",AZ="∮",$Z="↺",NZ="⦾",MZ="⦻",LZ="‾",OZ="⧀",RZ="Ō",PZ="ō",IZ="Ω",DZ="ω",FZ="Ο",zZ="ο",HZ="⦶",BZ="⊖",jZ="𝕆",WZ="𝕠",qZ="⦷",UZ="“",VZ="‘",GZ="⦹",KZ="⊕",YZ="↻",XZ="⩔",JZ="∨",ZZ="⩝",QZ="ℴ",eQ="ℴ",tQ="ª",nQ="º",rQ="⊶",iQ="⩖",oQ="⩗",sQ="⩛",lQ="Ⓢ",aQ="𝒪",cQ="ℴ",uQ="Ø",fQ="ø",dQ="⊘",hQ="Õ",pQ="õ",gQ="⨶",mQ="⨷",vQ="⊗",yQ="Ö",bQ="ö",wQ="⌽",xQ="‾",SQ="⏞",_Q="⎴",kQ="⏜",TQ="¶",CQ="∥",EQ="∥",AQ="⫳",$Q="⫽",NQ="∂",MQ="∂",LQ="П",OQ="п",RQ="%",PQ=".",IQ="‰",DQ="⊥",FQ="‱",zQ="𝔓",HQ="𝔭",BQ="Φ",jQ="φ",WQ="ϕ",qQ="ℳ",UQ="☎",VQ="Π",GQ="π",KQ="⋔",YQ="ϖ",XQ="ℏ",JQ="ℎ",ZQ="ℏ",QQ="⨣",eee="⊞",tee="⨢",nee="+",ree="∔",iee="⨥",oee="⩲",see="±",lee="±",aee="⨦",cee="⨧",uee="±",fee="ℌ",dee="⨕",hee="𝕡",pee="ℙ",gee="£",mee="⪷",vee="⪻",yee="≺",bee="≼",wee="⪷",xee="≺",See="≼",_ee="≺",kee="⪯",Tee="≼",Cee="≾",Eee="⪯",Aee="⪹",$ee="⪵",Nee="⋨",Mee="⪯",Lee="⪳",Oee="≾",Ree="′",Pee="″",Iee="ℙ",Dee="⪹",Fee="⪵",zee="⋨",Hee="∏",Bee="∏",jee="⌮",Wee="⌒",qee="⌓",Uee="∝",Vee="∝",Gee="∷",Kee="∝",Yee="≾",Xee="⊰",Jee="𝒫",Zee="𝓅",Qee="Ψ",ete="ψ",tte=" ",nte="𝔔",rte="𝔮",ite="⨌",ote="𝕢",ste="ℚ",lte="⁗",ate="𝒬",cte="𝓆",ute="ℍ",fte="⨖",dte="?",hte="≟",pte='"',gte='"',mte="⇛",vte="∽̱",yte="Ŕ",bte="ŕ",wte="√",xte="⦳",Ste="⟩",_te="⟫",kte="⦒",Tte="⦥",Cte="⟩",Ete="»",Ate="⥵",$te="⇥",Nte="⤠",Mte="⤳",Lte="→",Ote="↠",Rte="⇒",Pte="⤞",Ite="↪",Dte="↬",Fte="⥅",zte="⥴",Hte="⤖",Bte="↣",jte="↝",Wte="⤚",qte="⤜",Ute="∶",Vte="ℚ",Gte="⤍",Kte="⤏",Yte="⤐",Xte="❳",Jte="}",Zte="]",Qte="⦌",ene="⦎",tne="⦐",nne="Ř",rne="ř",ine="Ŗ",one="ŗ",sne="⌉",lne="}",ane="Р",cne="р",une="⤷",fne="⥩",dne="”",hne="”",pne="↳",gne="ℜ",mne="ℛ",vne="ℜ",yne="ℝ",bne="ℜ",wne="▭",xne="®",Sne="®",_ne="∋",kne="⇋",Tne="⥯",Cne="⥽",Ene="⌋",Ane="𝔯",$ne="ℜ",Nne="⥤",Mne="⇁",Lne="⇀",One="⥬",Rne="Ρ",Pne="ρ",Ine="ϱ",Dne="⟩",Fne="⇥",zne="→",Hne="→",Bne="⇒",jne="⇄",Wne="↣",qne="⌉",Une="⟧",Vne="⥝",Gne="⥕",Kne="⇂",Yne="⌋",Xne="⇁",Jne="⇀",Zne="⇄",Qne="⇌",ere="⇉",tre="↝",nre="↦",rre="⊢",ire="⥛",ore="⋌",sre="⧐",lre="⊳",are="⊵",cre="⥏",ure="⥜",fre="⥔",dre="↾",hre="⥓",pre="⇀",gre="˚",mre="≓",vre="⇄",yre="⇌",bre="‏",wre="⎱",xre="⎱",Sre="⫮",_re="⟭",kre="⇾",Tre="⟧",Cre="⦆",Ere="𝕣",Are="ℝ",$re="⨮",Nre="⨵",Mre="⥰",Lre=")",Ore="⦔",Rre="⨒",Pre="⇉",Ire="⇛",Dre="›",Fre="𝓇",zre="ℛ",Hre="↱",Bre="↱",jre="]",Wre="’",qre="’",Ure="⋌",Vre="⋊",Gre="▹",Kre="⊵",Yre="▸",Xre="⧎",Jre="⧴",Zre="⥨",Qre="℞",eie="Ś",tie="ś",nie="‚",rie="⪸",iie="Š",oie="š",sie="⪼",lie="≻",aie="≽",cie="⪰",uie="⪴",fie="Ş",die="ş",hie="Ŝ",pie="ŝ",gie="⪺",mie="⪶",vie="⋩",yie="⨓",bie="≿",wie="С",xie="с",Sie="⊡",_ie="⋅",kie="⩦",Tie="⤥",Cie="↘",Eie="⇘",Aie="↘",$ie="§",Nie=";",Mie="⤩",Lie="∖",Oie="∖",Rie="✶",Pie="𝔖",Iie="𝔰",Die="⌢",Fie="♯",zie="Щ",Hie="щ",Bie="Ш",jie="ш",Wie="↓",qie="←",Uie="∣",Vie="∥",Gie="→",Kie="↑",Yie="­",Xie="Σ",Jie="σ",Zie="ς",Qie="ς",eoe="∼",toe="⩪",noe="≃",roe="≃",ioe="⪞",ooe="⪠",soe="⪝",loe="⪟",aoe="≆",coe="⨤",uoe="⥲",foe="←",doe="∘",hoe="∖",poe="⨳",goe="⧤",moe="∣",voe="⌣",yoe="⪪",boe="⪬",woe="⪬︀",xoe="Ь",Soe="ь",_oe="⌿",koe="⧄",Toe="/",Coe="𝕊",Eoe="𝕤",Aoe="♠",$oe="♠",Noe="∥",Moe="⊓",Loe="⊓︀",Ooe="⊔",Roe="⊔︀",Poe="√",Ioe="⊏",Doe="⊑",Foe="⊏",zoe="⊑",Hoe="⊐",Boe="⊒",joe="⊐",Woe="⊒",qoe="□",Uoe="□",Voe="⊓",Goe="⊏",Koe="⊑",Yoe="⊐",Xoe="⊒",Joe="⊔",Zoe="▪",Qoe="□",ese="▪",tse="→",nse="𝒮",rse="𝓈",ise="∖",ose="⌣",sse="⋆",lse="⋆",ase="☆",cse="★",use="ϵ",fse="ϕ",dse="¯",hse="⊂",pse="⋐",gse="⪽",mse="⫅",vse="⊆",yse="⫃",bse="⫁",wse="⫋",xse="⊊",Sse="⪿",_se="⥹",kse="⊂",Tse="⋐",Cse="⊆",Ese="⫅",Ase="⊆",$se="⊊",Nse="⫋",Mse="⫇",Lse="⫕",Ose="⫓",Rse="⪸",Pse="≻",Ise="≽",Dse="≻",Fse="⪰",zse="≽",Hse="≿",Bse="⪰",jse="⪺",Wse="⪶",qse="⋩",Use="≿",Vse="∋",Gse="∑",Kse="∑",Yse="♪",Xse="¹",Jse="²",Zse="³",Qse="⊃",ele="⋑",tle="⪾",nle="⫘",rle="⫆",ile="⊇",ole="⫄",sle="⊃",lle="⊇",ale="⟉",cle="⫗",ule="⥻",fle="⫂",dle="⫌",hle="⊋",ple="⫀",gle="⊃",mle="⋑",vle="⊇",yle="⫆",ble="⊋",wle="⫌",xle="⫈",Sle="⫔",_le="⫖",kle="⤦",Tle="↙",Cle="⇙",Ele="↙",Ale="⤪",$le="ß",Nle=" ",Mle="⌖",Lle="Τ",Ole="τ",Rle="⎴",Ple="Ť",Ile="ť",Dle="Ţ",Fle="ţ",zle="Т",Hle="т",Ble="⃛",jle="⌕",Wle="𝔗",qle="𝔱",Ule="∴",Vle="∴",Gle="∴",Kle="Θ",Yle="θ",Xle="ϑ",Jle="ϑ",Zle="≈",Qle="∼",eae="  ",tae=" ",nae=" ",rae="≈",iae="∼",oae="Þ",sae="þ",lae="˜",aae="∼",cae="≃",uae="≅",fae="≈",dae="⨱",hae="⊠",pae="×",gae="⨰",mae="∭",vae="⤨",yae="⌶",bae="⫱",wae="⊤",xae="𝕋",Sae="𝕥",_ae="⫚",kae="⤩",Tae="‴",Cae="™",Eae="™",Aae="▵",$ae="▿",Nae="◃",Mae="⊴",Lae="≜",Oae="▹",Rae="⊵",Pae="◬",Iae="≜",Dae="⨺",Fae="⃛",zae="⨹",Hae="⧍",Bae="⨻",jae="⏢",Wae="𝒯",qae="𝓉",Uae="Ц",Vae="ц",Gae="Ћ",Kae="ћ",Yae="Ŧ",Xae="ŧ",Jae="≬",Zae="↞",Qae="↠",ece="Ú",tce="ú",nce="↑",rce="↟",ice="⇑",oce="⥉",sce="Ў",lce="ў",ace="Ŭ",cce="ŭ",uce="Û",fce="û",dce="У",hce="у",pce="⇅",gce="Ű",mce="ű",vce="⥮",yce="⥾",bce="𝔘",wce="𝔲",xce="Ù",Sce="ù",_ce="⥣",kce="↿",Tce="↾",Cce="▀",Ece="⌜",Ace="⌜",$ce="⌏",Nce="◸",Mce="Ū",Lce="ū",Oce="¨",Rce="_",Pce="⏟",Ice="⎵",Dce="⏝",Fce="⋃",zce="⊎",Hce="Ų",Bce="ų",jce="𝕌",Wce="𝕦",qce="⤒",Uce="↑",Vce="↑",Gce="⇑",Kce="⇅",Yce="↕",Xce="↕",Jce="⇕",Zce="⥮",Qce="↿",eue="↾",tue="⊎",nue="↖",rue="↗",iue="υ",oue="ϒ",sue="ϒ",lue="Υ",aue="υ",cue="↥",uue="⊥",fue="⇈",due="⌝",hue="⌝",pue="⌎",gue="Ů",mue="ů",vue="◹",yue="𝒰",bue="𝓊",wue="⋰",xue="Ũ",Sue="ũ",_ue="▵",kue="▴",Tue="⇈",Cue="Ü",Eue="ü",Aue="⦧",$ue="⦜",Nue="ϵ",Mue="ϰ",Lue="∅",Oue="ϕ",Rue="ϖ",Pue="∝",Iue="↕",Due="⇕",Fue="ϱ",zue="ς",Hue="⊊︀",Bue="⫋︀",jue="⊋︀",Wue="⫌︀",que="ϑ",Uue="⊲",Vue="⊳",Gue="⫨",Kue="⫫",Yue="⫩",Xue="В",Jue="в",Zue="⊢",Que="⊨",efe="⊩",tfe="⊫",nfe="⫦",rfe="⊻",ife="∨",ofe="⋁",sfe="≚",lfe="⋮",afe="|",cfe="‖",ufe="|",ffe="‖",dfe="∣",hfe="|",pfe="❘",gfe="≀",mfe=" ",vfe="𝔙",yfe="𝔳",bfe="⊲",wfe="⊂⃒",xfe="⊃⃒",Sfe="𝕍",_fe="𝕧",kfe="∝",Tfe="⊳",Cfe="𝒱",Efe="𝓋",Afe="⫋︀",$fe="⊊︀",Nfe="⫌︀",Mfe="⊋︀",Lfe="⊪",Ofe="⦚",Rfe="Ŵ",Pfe="ŵ",Ife="⩟",Dfe="∧",Ffe="⋀",zfe="≙",Hfe="℘",Bfe="𝔚",jfe="𝔴",Wfe="𝕎",qfe="𝕨",Ufe="℘",Vfe="≀",Gfe="≀",Kfe="𝒲",Yfe="𝓌",Xfe="⋂",Jfe="◯",Zfe="⋃",Qfe="▽",ede="𝔛",tde="𝔵",nde="⟷",rde="⟺",ide="Ξ",ode="ξ",sde="⟵",lde="⟸",ade="⟼",cde="⋻",ude="⨀",fde="𝕏",dde="𝕩",hde="⨁",pde="⨂",gde="⟶",mde="⟹",vde="𝒳",yde="𝓍",bde="⨆",wde="⨄",xde="△",Sde="⋁",_de="⋀",kde="Ý",Tde="ý",Cde="Я",Ede="я",Ade="Ŷ",$de="ŷ",Nde="Ы",Mde="ы",Lde="¥",Ode="𝔜",Rde="𝔶",Pde="Ї",Ide="ї",Dde="𝕐",Fde="𝕪",zde="𝒴",Hde="𝓎",Bde="Ю",jde="ю",Wde="ÿ",qde="Ÿ",Ude="Ź",Vde="ź",Gde="Ž",Kde="ž",Yde="З",Xde="з",Jde="Ż",Zde="ż",Qde="ℨ",ehe="​",the="Ζ",nhe="ζ",rhe="𝔷",ihe="ℨ",ohe="Ж",she="ж",lhe="⇝",ahe="𝕫",che="ℤ",uhe="𝒵",fhe="𝓏",dhe="‍",hhe="‌",C_={Aacute:JP,aacute:ZP,Abreve:QP,abreve:eI,ac:tI,acd:nI,acE:rI,Acirc:iI,acirc:oI,acute:sI,Acy:lI,acy:aI,AElig:cI,aelig:uI,af:fI,Afr:dI,afr:hI,Agrave:pI,agrave:gI,alefsym:mI,aleph:vI,Alpha:yI,alpha:bI,Amacr:wI,amacr:xI,amalg:SI,amp:_I,AMP:kI,andand:TI,And:CI,and:EI,andd:AI,andslope:$I,andv:NI,ang:MI,ange:LI,angle:OI,angmsdaa:RI,angmsdab:PI,angmsdac:II,angmsdad:DI,angmsdae:FI,angmsdaf:zI,angmsdag:HI,angmsdah:BI,angmsd:jI,angrt:WI,angrtvb:qI,angrtvbd:UI,angsph:VI,angst:GI,angzarr:KI,Aogon:YI,aogon:XI,Aopf:JI,aopf:ZI,apacir:QI,ap:e2,apE:t2,ape:n2,apid:r2,apos:i2,ApplyFunction:o2,approx:s2,approxeq:l2,Aring:a2,aring:c2,Ascr:u2,ascr:f2,Assign:d2,ast:h2,asymp:p2,asympeq:g2,Atilde:m2,atilde:v2,Auml:y2,auml:b2,awconint:w2,awint:x2,backcong:S2,backepsilon:_2,backprime:k2,backsim:T2,backsimeq:C2,Backslash:E2,Barv:A2,barvee:$2,barwed:N2,Barwed:M2,barwedge:L2,bbrk:O2,bbrktbrk:R2,bcong:P2,Bcy:I2,bcy:D2,bdquo:F2,becaus:z2,because:H2,Because:B2,bemptyv:j2,bepsi:W2,bernou:q2,Bernoullis:U2,Beta:V2,beta:G2,beth:K2,between:Y2,Bfr:X2,bfr:J2,bigcap:Z2,bigcirc:Q2,bigcup:eD,bigodot:tD,bigoplus:nD,bigotimes:rD,bigsqcup:iD,bigstar:oD,bigtriangledown:sD,bigtriangleup:lD,biguplus:aD,bigvee:cD,bigwedge:uD,bkarow:fD,blacklozenge:dD,blacksquare:hD,blacktriangle:pD,blacktriangledown:gD,blacktriangleleft:mD,blacktriangleright:vD,blank:yD,blk12:bD,blk14:wD,blk34:xD,block:SD,bne:_D,bnequiv:kD,bNot:TD,bnot:CD,Bopf:ED,bopf:AD,bot:$D,bottom:ND,bowtie:MD,boxbox:LD,boxdl:OD,boxdL:RD,boxDl:PD,boxDL:ID,boxdr:DD,boxdR:FD,boxDr:zD,boxDR:HD,boxh:BD,boxH:jD,boxhd:WD,boxHd:qD,boxhD:UD,boxHD:VD,boxhu:GD,boxHu:KD,boxhU:YD,boxHU:XD,boxminus:JD,boxplus:ZD,boxtimes:QD,boxul:eF,boxuL:tF,boxUl:nF,boxUL:rF,boxur:iF,boxuR:oF,boxUr:sF,boxUR:lF,boxv:aF,boxV:cF,boxvh:uF,boxvH:fF,boxVh:dF,boxVH:hF,boxvl:pF,boxvL:gF,boxVl:mF,boxVL:vF,boxvr:yF,boxvR:bF,boxVr:wF,boxVR:xF,bprime:SF,breve:_F,Breve:kF,brvbar:TF,bscr:CF,Bscr:EF,bsemi:AF,bsim:$F,bsime:NF,bsolb:MF,bsol:LF,bsolhsub:OF,bull:RF,bullet:PF,bump:IF,bumpE:DF,bumpe:FF,Bumpeq:zF,bumpeq:HF,Cacute:BF,cacute:jF,capand:WF,capbrcup:qF,capcap:UF,cap:VF,Cap:GF,capcup:KF,capdot:YF,CapitalDifferentialD:XF,caps:JF,caret:ZF,caron:QF,Cayleys:ez,ccaps:tz,Ccaron:nz,ccaron:rz,Ccedil:iz,ccedil:oz,Ccirc:sz,ccirc:lz,Cconint:az,ccups:cz,ccupssm:uz,Cdot:fz,cdot:dz,cedil:hz,Cedilla:pz,cemptyv:gz,cent:mz,centerdot:vz,CenterDot:yz,cfr:bz,Cfr:wz,CHcy:xz,chcy:Sz,check:_z,checkmark:kz,Chi:Tz,chi:Cz,circ:Ez,circeq:Az,circlearrowleft:$z,circlearrowright:Nz,circledast:Mz,circledcirc:Lz,circleddash:Oz,CircleDot:Rz,circledR:Pz,circledS:Iz,CircleMinus:Dz,CirclePlus:Fz,CircleTimes:zz,cir:Hz,cirE:Bz,cire:jz,cirfnint:Wz,cirmid:qz,cirscir:Uz,ClockwiseContourIntegral:Vz,CloseCurlyDoubleQuote:Gz,CloseCurlyQuote:Kz,clubs:Yz,clubsuit:Xz,colon:Jz,Colon:Zz,Colone:Qz,colone:e3,coloneq:t3,comma:n3,commat:r3,comp:i3,compfn:o3,complement:s3,complexes:l3,cong:a3,congdot:c3,Congruent:u3,conint:f3,Conint:d3,ContourIntegral:h3,copf:p3,Copf:g3,coprod:m3,Coproduct:v3,copy:y3,COPY:b3,copysr:w3,CounterClockwiseContourIntegral:x3,crarr:S3,cross:_3,Cross:k3,Cscr:T3,cscr:C3,csub:E3,csube:A3,csup:$3,csupe:N3,ctdot:M3,cudarrl:L3,cudarrr:O3,cuepr:R3,cuesc:P3,cularr:I3,cularrp:D3,cupbrcap:F3,cupcap:z3,CupCap:H3,cup:B3,Cup:j3,cupcup:W3,cupdot:q3,cupor:U3,cups:V3,curarr:G3,curarrm:K3,curlyeqprec:Y3,curlyeqsucc:X3,curlyvee:J3,curlywedge:Z3,curren:Q3,curvearrowleft:eH,curvearrowright:tH,cuvee:nH,cuwed:rH,cwconint:iH,cwint:oH,cylcty:sH,dagger:lH,Dagger:aH,daleth:cH,darr:uH,Darr:fH,dArr:dH,dash:hH,Dashv:pH,dashv:gH,dbkarow:mH,dblac:vH,Dcaron:yH,dcaron:bH,Dcy:wH,dcy:xH,ddagger:SH,ddarr:_H,DD:kH,dd:TH,DDotrahd:CH,ddotseq:EH,deg:AH,Del:$H,Delta:NH,delta:MH,demptyv:LH,dfisht:OH,Dfr:RH,dfr:PH,dHar:IH,dharl:DH,dharr:FH,DiacriticalAcute:zH,DiacriticalDot:HH,DiacriticalDoubleAcute:BH,DiacriticalGrave:jH,DiacriticalTilde:WH,diam:qH,diamond:UH,Diamond:VH,diamondsuit:GH,diams:KH,die:YH,DifferentialD:XH,digamma:JH,disin:ZH,div:QH,divide:eB,divideontimes:tB,divonx:nB,DJcy:rB,djcy:iB,dlcorn:oB,dlcrop:sB,dollar:lB,Dopf:aB,dopf:cB,Dot:uB,dot:fB,DotDot:dB,doteq:hB,doteqdot:pB,DotEqual:gB,dotminus:mB,dotplus:vB,dotsquare:yB,doublebarwedge:bB,DoubleContourIntegral:wB,DoubleDot:xB,DoubleDownArrow:SB,DoubleLeftArrow:_B,DoubleLeftRightArrow:kB,DoubleLeftTee:TB,DoubleLongLeftArrow:CB,DoubleLongLeftRightArrow:EB,DoubleLongRightArrow:AB,DoubleRightArrow:$B,DoubleRightTee:NB,DoubleUpArrow:MB,DoubleUpDownArrow:LB,DoubleVerticalBar:OB,DownArrowBar:RB,downarrow:PB,DownArrow:IB,Downarrow:DB,DownArrowUpArrow:FB,DownBreve:zB,downdownarrows:HB,downharpoonleft:BB,downharpoonright:jB,DownLeftRightVector:WB,DownLeftTeeVector:qB,DownLeftVectorBar:UB,DownLeftVector:VB,DownRightTeeVector:GB,DownRightVectorBar:KB,DownRightVector:YB,DownTeeArrow:XB,DownTee:JB,drbkarow:ZB,drcorn:QB,drcrop:ej,Dscr:tj,dscr:nj,DScy:rj,dscy:ij,dsol:oj,Dstrok:sj,dstrok:lj,dtdot:aj,dtri:cj,dtrif:uj,duarr:fj,duhar:dj,dwangle:hj,DZcy:pj,dzcy:gj,dzigrarr:mj,Eacute:vj,eacute:yj,easter:bj,Ecaron:wj,ecaron:xj,Ecirc:Sj,ecirc:_j,ecir:kj,ecolon:Tj,Ecy:Cj,ecy:Ej,eDDot:Aj,Edot:$j,edot:Nj,eDot:Mj,ee:Lj,efDot:Oj,Efr:Rj,efr:Pj,eg:Ij,Egrave:Dj,egrave:Fj,egs:zj,egsdot:Hj,el:Bj,Element:jj,elinters:Wj,ell:qj,els:Uj,elsdot:Vj,Emacr:Gj,emacr:Kj,empty:Yj,emptyset:Xj,EmptySmallSquare:Jj,emptyv:Zj,EmptyVerySmallSquare:Qj,emsp13:e5,emsp14:t5,emsp:n5,ENG:r5,eng:i5,ensp:o5,Eogon:s5,eogon:l5,Eopf:a5,eopf:c5,epar:u5,eparsl:f5,eplus:d5,epsi:h5,Epsilon:p5,epsilon:g5,epsiv:m5,eqcirc:v5,eqcolon:y5,eqsim:b5,eqslantgtr:w5,eqslantless:x5,Equal:S5,equals:_5,EqualTilde:k5,equest:T5,Equilibrium:C5,equiv:E5,equivDD:A5,eqvparsl:$5,erarr:N5,erDot:M5,escr:L5,Escr:O5,esdot:R5,Esim:P5,esim:I5,Eta:D5,eta:F5,ETH:z5,eth:H5,Euml:B5,euml:j5,euro:W5,excl:q5,exist:U5,Exists:V5,expectation:G5,exponentiale:K5,ExponentialE:Y5,fallingdotseq:X5,Fcy:J5,fcy:Z5,female:Q5,ffilig:e8,fflig:t8,ffllig:n8,Ffr:r8,ffr:i8,filig:o8,FilledSmallSquare:s8,FilledVerySmallSquare:l8,fjlig:a8,flat:c8,fllig:u8,fltns:f8,fnof:d8,Fopf:h8,fopf:p8,forall:g8,ForAll:m8,fork:v8,forkv:y8,Fouriertrf:b8,fpartint:w8,frac12:x8,frac13:S8,frac14:_8,frac15:k8,frac16:T8,frac18:C8,frac23:E8,frac25:A8,frac34:$8,frac35:N8,frac38:M8,frac45:L8,frac56:O8,frac58:R8,frac78:P8,frasl:I8,frown:D8,fscr:F8,Fscr:z8,gacute:H8,Gamma:B8,gamma:j8,Gammad:W8,gammad:q8,gap:U8,Gbreve:V8,gbreve:G8,Gcedil:K8,Gcirc:Y8,gcirc:X8,Gcy:J8,gcy:Z8,Gdot:Q8,gdot:e4,ge:t4,gE:n4,gEl:r4,gel:i4,geq:o4,geqq:s4,geqslant:l4,gescc:a4,ges:c4,gesdot:u4,gesdoto:f4,gesdotol:d4,gesl:h4,gesles:p4,Gfr:g4,gfr:m4,gg:v4,Gg:y4,ggg:b4,gimel:w4,GJcy:x4,gjcy:S4,gla:_4,gl:k4,glE:T4,glj:C4,gnap:E4,gnapprox:A4,gne:$4,gnE:N4,gneq:M4,gneqq:L4,gnsim:O4,Gopf:R4,gopf:P4,grave:I4,GreaterEqual:D4,GreaterEqualLess:F4,GreaterFullEqual:z4,GreaterGreater:H4,GreaterLess:B4,GreaterSlantEqual:j4,GreaterTilde:W4,Gscr:q4,gscr:U4,gsim:V4,gsime:G4,gsiml:K4,gtcc:Y4,gtcir:X4,gt:J4,GT:Z4,Gt:Q4,gtdot:eW,gtlPar:tW,gtquest:nW,gtrapprox:rW,gtrarr:iW,gtrdot:oW,gtreqless:sW,gtreqqless:lW,gtrless:aW,gtrsim:cW,gvertneqq:uW,gvnE:fW,Hacek:dW,hairsp:hW,half:pW,hamilt:gW,HARDcy:mW,hardcy:vW,harrcir:yW,harr:bW,hArr:wW,harrw:xW,Hat:SW,hbar:_W,Hcirc:kW,hcirc:TW,hearts:CW,heartsuit:EW,hellip:AW,hercon:$W,hfr:NW,Hfr:MW,HilbertSpace:LW,hksearow:OW,hkswarow:RW,hoarr:PW,homtht:IW,hookleftarrow:DW,hookrightarrow:FW,hopf:zW,Hopf:HW,horbar:BW,HorizontalLine:jW,hscr:WW,Hscr:qW,hslash:UW,Hstrok:VW,hstrok:GW,HumpDownHump:KW,HumpEqual:YW,hybull:XW,hyphen:JW,Iacute:ZW,iacute:QW,ic:eq,Icirc:tq,icirc:nq,Icy:rq,icy:iq,Idot:oq,IEcy:sq,iecy:lq,iexcl:aq,iff:cq,ifr:uq,Ifr:fq,Igrave:dq,igrave:hq,ii:pq,iiiint:gq,iiint:mq,iinfin:vq,iiota:yq,IJlig:bq,ijlig:wq,Imacr:xq,imacr:Sq,image:_q,ImaginaryI:kq,imagline:Tq,imagpart:Cq,imath:Eq,Im:Aq,imof:$q,imped:Nq,Implies:Mq,incare:Lq,in:"∈",infin:Oq,infintie:Rq,inodot:Pq,intcal:Iq,int:Dq,Int:Fq,integers:zq,Integral:Hq,intercal:Bq,Intersection:jq,intlarhk:Wq,intprod:qq,InvisibleComma:Uq,InvisibleTimes:Vq,IOcy:Gq,iocy:Kq,Iogon:Yq,iogon:Xq,Iopf:Jq,iopf:Zq,Iota:Qq,iota:eU,iprod:tU,iquest:nU,iscr:rU,Iscr:iU,isin:oU,isindot:sU,isinE:lU,isins:aU,isinsv:cU,isinv:uU,it:fU,Itilde:dU,itilde:hU,Iukcy:pU,iukcy:gU,Iuml:mU,iuml:vU,Jcirc:yU,jcirc:bU,Jcy:wU,jcy:xU,Jfr:SU,jfr:_U,jmath:kU,Jopf:TU,jopf:CU,Jscr:EU,jscr:AU,Jsercy:$U,jsercy:NU,Jukcy:MU,jukcy:LU,Kappa:OU,kappa:RU,kappav:PU,Kcedil:IU,kcedil:DU,Kcy:FU,kcy:zU,Kfr:HU,kfr:BU,kgreen:jU,KHcy:WU,khcy:qU,KJcy:UU,kjcy:VU,Kopf:GU,kopf:KU,Kscr:YU,kscr:XU,lAarr:JU,Lacute:ZU,lacute:QU,laemptyv:e6,lagran:t6,Lambda:n6,lambda:r6,lang:i6,Lang:o6,langd:s6,langle:l6,lap:a6,Laplacetrf:c6,laquo:u6,larrb:f6,larrbfs:d6,larr:h6,Larr:p6,lArr:g6,larrfs:m6,larrhk:v6,larrlp:y6,larrpl:b6,larrsim:w6,larrtl:x6,latail:S6,lAtail:_6,lat:k6,late:T6,lates:C6,lbarr:E6,lBarr:A6,lbbrk:$6,lbrace:N6,lbrack:M6,lbrke:L6,lbrksld:O6,lbrkslu:R6,Lcaron:P6,lcaron:I6,Lcedil:D6,lcedil:F6,lceil:z6,lcub:H6,Lcy:B6,lcy:j6,ldca:W6,ldquo:q6,ldquor:U6,ldrdhar:V6,ldrushar:G6,ldsh:K6,le:Y6,lE:X6,LeftAngleBracket:J6,LeftArrowBar:Z6,leftarrow:Q6,LeftArrow:eV,Leftarrow:tV,LeftArrowRightArrow:nV,leftarrowtail:rV,LeftCeiling:iV,LeftDoubleBracket:oV,LeftDownTeeVector:sV,LeftDownVectorBar:lV,LeftDownVector:aV,LeftFloor:cV,leftharpoondown:uV,leftharpoonup:fV,leftleftarrows:dV,leftrightarrow:hV,LeftRightArrow:pV,Leftrightarrow:gV,leftrightarrows:mV,leftrightharpoons:vV,leftrightsquigarrow:yV,LeftRightVector:bV,LeftTeeArrow:wV,LeftTee:xV,LeftTeeVector:SV,leftthreetimes:_V,LeftTriangleBar:kV,LeftTriangle:TV,LeftTriangleEqual:CV,LeftUpDownVector:EV,LeftUpTeeVector:AV,LeftUpVectorBar:$V,LeftUpVector:NV,LeftVectorBar:MV,LeftVector:LV,lEg:OV,leg:RV,leq:PV,leqq:IV,leqslant:DV,lescc:FV,les:zV,lesdot:HV,lesdoto:BV,lesdotor:jV,lesg:WV,lesges:qV,lessapprox:UV,lessdot:VV,lesseqgtr:GV,lesseqqgtr:KV,LessEqualGreater:YV,LessFullEqual:XV,LessGreater:JV,lessgtr:ZV,LessLess:QV,lesssim:e9,LessSlantEqual:t9,LessTilde:n9,lfisht:r9,lfloor:i9,Lfr:o9,lfr:s9,lg:l9,lgE:a9,lHar:c9,lhard:u9,lharu:f9,lharul:d9,lhblk:h9,LJcy:p9,ljcy:g9,llarr:m9,ll:v9,Ll:y9,llcorner:b9,Lleftarrow:w9,llhard:x9,lltri:S9,Lmidot:_9,lmidot:k9,lmoustache:T9,lmoust:C9,lnap:E9,lnapprox:A9,lne:$9,lnE:N9,lneq:M9,lneqq:L9,lnsim:O9,loang:R9,loarr:P9,lobrk:I9,longleftarrow:D9,LongLeftArrow:F9,Longleftarrow:z9,longleftrightarrow:H9,LongLeftRightArrow:B9,Longleftrightarrow:j9,longmapsto:W9,longrightarrow:q9,LongRightArrow:U9,Longrightarrow:V9,looparrowleft:G9,looparrowright:K9,lopar:Y9,Lopf:X9,lopf:J9,loplus:Z9,lotimes:Q9,lowast:eG,lowbar:tG,LowerLeftArrow:nG,LowerRightArrow:rG,loz:iG,lozenge:oG,lozf:sG,lpar:lG,lparlt:aG,lrarr:cG,lrcorner:uG,lrhar:fG,lrhard:dG,lrm:hG,lrtri:pG,lsaquo:gG,lscr:mG,Lscr:vG,lsh:yG,Lsh:bG,lsim:wG,lsime:xG,lsimg:SG,lsqb:_G,lsquo:kG,lsquor:TG,Lstrok:CG,lstrok:EG,ltcc:AG,ltcir:$G,lt:NG,LT:MG,Lt:LG,ltdot:OG,lthree:RG,ltimes:PG,ltlarr:IG,ltquest:DG,ltri:FG,ltrie:zG,ltrif:HG,ltrPar:BG,lurdshar:jG,luruhar:WG,lvertneqq:qG,lvnE:UG,macr:VG,male:GG,malt:KG,maltese:YG,Map:"⤅",map:XG,mapsto:JG,mapstodown:ZG,mapstoleft:QG,mapstoup:eK,marker:tK,mcomma:nK,Mcy:rK,mcy:iK,mdash:oK,mDDot:sK,measuredangle:lK,MediumSpace:aK,Mellintrf:cK,Mfr:uK,mfr:fK,mho:dK,micro:hK,midast:pK,midcir:gK,mid:mK,middot:vK,minusb:yK,minus:bK,minusd:wK,minusdu:xK,MinusPlus:SK,mlcp:_K,mldr:kK,mnplus:TK,models:CK,Mopf:EK,mopf:AK,mp:$K,mscr:NK,Mscr:MK,mstpos:LK,Mu:OK,mu:RK,multimap:PK,mumap:IK,nabla:DK,Nacute:FK,nacute:zK,nang:HK,nap:BK,napE:jK,napid:WK,napos:qK,napprox:UK,natural:VK,naturals:GK,natur:KK,nbsp:YK,nbump:XK,nbumpe:JK,ncap:ZK,Ncaron:QK,ncaron:e7,Ncedil:t7,ncedil:n7,ncong:r7,ncongdot:i7,ncup:o7,Ncy:s7,ncy:l7,ndash:a7,nearhk:c7,nearr:u7,neArr:f7,nearrow:d7,ne:h7,nedot:p7,NegativeMediumSpace:g7,NegativeThickSpace:m7,NegativeThinSpace:v7,NegativeVeryThinSpace:y7,nequiv:b7,nesear:w7,nesim:x7,NestedGreaterGreater:S7,NestedLessLess:_7,NewLine:k7,nexist:T7,nexists:C7,Nfr:E7,nfr:A7,ngE:$7,nge:N7,ngeq:M7,ngeqq:L7,ngeqslant:O7,nges:R7,nGg:P7,ngsim:I7,nGt:D7,ngt:F7,ngtr:z7,nGtv:H7,nharr:B7,nhArr:j7,nhpar:W7,ni:q7,nis:U7,nisd:V7,niv:G7,NJcy:K7,njcy:Y7,nlarr:X7,nlArr:J7,nldr:Z7,nlE:Q7,nle:eY,nleftarrow:tY,nLeftarrow:nY,nleftrightarrow:rY,nLeftrightarrow:iY,nleq:oY,nleqq:sY,nleqslant:lY,nles:aY,nless:cY,nLl:uY,nlsim:fY,nLt:dY,nlt:hY,nltri:pY,nltrie:gY,nLtv:mY,nmid:vY,NoBreak:yY,NonBreakingSpace:bY,nopf:wY,Nopf:xY,Not:SY,not:_Y,NotCongruent:kY,NotCupCap:TY,NotDoubleVerticalBar:CY,NotElement:EY,NotEqual:AY,NotEqualTilde:$Y,NotExists:NY,NotGreater:MY,NotGreaterEqual:LY,NotGreaterFullEqual:OY,NotGreaterGreater:RY,NotGreaterLess:PY,NotGreaterSlantEqual:IY,NotGreaterTilde:DY,NotHumpDownHump:FY,NotHumpEqual:zY,notin:HY,notindot:BY,notinE:jY,notinva:WY,notinvb:qY,notinvc:UY,NotLeftTriangleBar:VY,NotLeftTriangle:GY,NotLeftTriangleEqual:KY,NotLess:YY,NotLessEqual:XY,NotLessGreater:JY,NotLessLess:ZY,NotLessSlantEqual:QY,NotLessTilde:eX,NotNestedGreaterGreater:tX,NotNestedLessLess:nX,notni:rX,notniva:iX,notnivb:oX,notnivc:sX,NotPrecedes:lX,NotPrecedesEqual:aX,NotPrecedesSlantEqual:cX,NotReverseElement:uX,NotRightTriangleBar:fX,NotRightTriangle:dX,NotRightTriangleEqual:hX,NotSquareSubset:pX,NotSquareSubsetEqual:gX,NotSquareSuperset:mX,NotSquareSupersetEqual:vX,NotSubset:yX,NotSubsetEqual:bX,NotSucceeds:wX,NotSucceedsEqual:xX,NotSucceedsSlantEqual:SX,NotSucceedsTilde:_X,NotSuperset:kX,NotSupersetEqual:TX,NotTilde:CX,NotTildeEqual:EX,NotTildeFullEqual:AX,NotTildeTilde:$X,NotVerticalBar:NX,nparallel:MX,npar:LX,nparsl:OX,npart:RX,npolint:PX,npr:IX,nprcue:DX,nprec:FX,npreceq:zX,npre:HX,nrarrc:BX,nrarr:jX,nrArr:WX,nrarrw:qX,nrightarrow:UX,nRightarrow:VX,nrtri:GX,nrtrie:KX,nsc:YX,nsccue:XX,nsce:JX,Nscr:ZX,nscr:QX,nshortmid:eJ,nshortparallel:tJ,nsim:nJ,nsime:rJ,nsimeq:iJ,nsmid:oJ,nspar:sJ,nsqsube:lJ,nsqsupe:aJ,nsub:cJ,nsubE:uJ,nsube:fJ,nsubset:dJ,nsubseteq:hJ,nsubseteqq:pJ,nsucc:gJ,nsucceq:mJ,nsup:vJ,nsupE:yJ,nsupe:bJ,nsupset:wJ,nsupseteq:xJ,nsupseteqq:SJ,ntgl:_J,Ntilde:kJ,ntilde:TJ,ntlg:CJ,ntriangleleft:EJ,ntrianglelefteq:AJ,ntriangleright:$J,ntrianglerighteq:NJ,Nu:MJ,nu:LJ,num:OJ,numero:RJ,numsp:PJ,nvap:IJ,nvdash:DJ,nvDash:FJ,nVdash:zJ,nVDash:HJ,nvge:BJ,nvgt:jJ,nvHarr:WJ,nvinfin:qJ,nvlArr:UJ,nvle:VJ,nvlt:GJ,nvltrie:KJ,nvrArr:YJ,nvrtrie:XJ,nvsim:JJ,nwarhk:ZJ,nwarr:QJ,nwArr:eZ,nwarrow:tZ,nwnear:nZ,Oacute:rZ,oacute:iZ,oast:oZ,Ocirc:sZ,ocirc:lZ,ocir:aZ,Ocy:cZ,ocy:uZ,odash:fZ,Odblac:dZ,odblac:hZ,odiv:pZ,odot:gZ,odsold:mZ,OElig:vZ,oelig:yZ,ofcir:bZ,Ofr:wZ,ofr:xZ,ogon:SZ,Ograve:_Z,ograve:kZ,ogt:TZ,ohbar:CZ,ohm:EZ,oint:AZ,olarr:$Z,olcir:NZ,olcross:MZ,oline:LZ,olt:OZ,Omacr:RZ,omacr:PZ,Omega:IZ,omega:DZ,Omicron:FZ,omicron:zZ,omid:HZ,ominus:BZ,Oopf:jZ,oopf:WZ,opar:qZ,OpenCurlyDoubleQuote:UZ,OpenCurlyQuote:VZ,operp:GZ,oplus:KZ,orarr:YZ,Or:XZ,or:JZ,ord:ZZ,order:QZ,orderof:eQ,ordf:tQ,ordm:nQ,origof:rQ,oror:iQ,orslope:oQ,orv:sQ,oS:lQ,Oscr:aQ,oscr:cQ,Oslash:uQ,oslash:fQ,osol:dQ,Otilde:hQ,otilde:pQ,otimesas:gQ,Otimes:mQ,otimes:vQ,Ouml:yQ,ouml:bQ,ovbar:wQ,OverBar:xQ,OverBrace:SQ,OverBracket:_Q,OverParenthesis:kQ,para:TQ,parallel:CQ,par:EQ,parsim:AQ,parsl:$Q,part:NQ,PartialD:MQ,Pcy:LQ,pcy:OQ,percnt:RQ,period:PQ,permil:IQ,perp:DQ,pertenk:FQ,Pfr:zQ,pfr:HQ,Phi:BQ,phi:jQ,phiv:WQ,phmmat:qQ,phone:UQ,Pi:VQ,pi:GQ,pitchfork:KQ,piv:YQ,planck:XQ,planckh:JQ,plankv:ZQ,plusacir:QQ,plusb:eee,pluscir:tee,plus:nee,plusdo:ree,plusdu:iee,pluse:oee,PlusMinus:see,plusmn:lee,plussim:aee,plustwo:cee,pm:uee,Poincareplane:fee,pointint:dee,popf:hee,Popf:pee,pound:gee,prap:mee,Pr:vee,pr:yee,prcue:bee,precapprox:wee,prec:xee,preccurlyeq:See,Precedes:_ee,PrecedesEqual:kee,PrecedesSlantEqual:Tee,PrecedesTilde:Cee,preceq:Eee,precnapprox:Aee,precneqq:$ee,precnsim:Nee,pre:Mee,prE:Lee,precsim:Oee,prime:Ree,Prime:Pee,primes:Iee,prnap:Dee,prnE:Fee,prnsim:zee,prod:Hee,Product:Bee,profalar:jee,profline:Wee,profsurf:qee,prop:Uee,Proportional:Vee,Proportion:Gee,propto:Kee,prsim:Yee,prurel:Xee,Pscr:Jee,pscr:Zee,Psi:Qee,psi:ete,puncsp:tte,Qfr:nte,qfr:rte,qint:ite,qopf:ote,Qopf:ste,qprime:lte,Qscr:ate,qscr:cte,quaternions:ute,quatint:fte,quest:dte,questeq:hte,quot:pte,QUOT:gte,rAarr:mte,race:vte,Racute:yte,racute:bte,radic:wte,raemptyv:xte,rang:Ste,Rang:_te,rangd:kte,range:Tte,rangle:Cte,raquo:Ete,rarrap:Ate,rarrb:$te,rarrbfs:Nte,rarrc:Mte,rarr:Lte,Rarr:Ote,rArr:Rte,rarrfs:Pte,rarrhk:Ite,rarrlp:Dte,rarrpl:Fte,rarrsim:zte,Rarrtl:Hte,rarrtl:Bte,rarrw:jte,ratail:Wte,rAtail:qte,ratio:Ute,rationals:Vte,rbarr:Gte,rBarr:Kte,RBarr:Yte,rbbrk:Xte,rbrace:Jte,rbrack:Zte,rbrke:Qte,rbrksld:ene,rbrkslu:tne,Rcaron:nne,rcaron:rne,Rcedil:ine,rcedil:one,rceil:sne,rcub:lne,Rcy:ane,rcy:cne,rdca:une,rdldhar:fne,rdquo:dne,rdquor:hne,rdsh:pne,real:gne,realine:mne,realpart:vne,reals:yne,Re:bne,rect:wne,reg:xne,REG:Sne,ReverseElement:_ne,ReverseEquilibrium:kne,ReverseUpEquilibrium:Tne,rfisht:Cne,rfloor:Ene,rfr:Ane,Rfr:$ne,rHar:Nne,rhard:Mne,rharu:Lne,rharul:One,Rho:Rne,rho:Pne,rhov:Ine,RightAngleBracket:Dne,RightArrowBar:Fne,rightarrow:zne,RightArrow:Hne,Rightarrow:Bne,RightArrowLeftArrow:jne,rightarrowtail:Wne,RightCeiling:qne,RightDoubleBracket:Une,RightDownTeeVector:Vne,RightDownVectorBar:Gne,RightDownVector:Kne,RightFloor:Yne,rightharpoondown:Xne,rightharpoonup:Jne,rightleftarrows:Zne,rightleftharpoons:Qne,rightrightarrows:ere,rightsquigarrow:tre,RightTeeArrow:nre,RightTee:rre,RightTeeVector:ire,rightthreetimes:ore,RightTriangleBar:sre,RightTriangle:lre,RightTriangleEqual:are,RightUpDownVector:cre,RightUpTeeVector:ure,RightUpVectorBar:fre,RightUpVector:dre,RightVectorBar:hre,RightVector:pre,ring:gre,risingdotseq:mre,rlarr:vre,rlhar:yre,rlm:bre,rmoustache:wre,rmoust:xre,rnmid:Sre,roang:_re,roarr:kre,robrk:Tre,ropar:Cre,ropf:Ere,Ropf:Are,roplus:$re,rotimes:Nre,RoundImplies:Mre,rpar:Lre,rpargt:Ore,rppolint:Rre,rrarr:Pre,Rrightarrow:Ire,rsaquo:Dre,rscr:Fre,Rscr:zre,rsh:Hre,Rsh:Bre,rsqb:jre,rsquo:Wre,rsquor:qre,rthree:Ure,rtimes:Vre,rtri:Gre,rtrie:Kre,rtrif:Yre,rtriltri:Xre,RuleDelayed:Jre,ruluhar:Zre,rx:Qre,Sacute:eie,sacute:tie,sbquo:nie,scap:rie,Scaron:iie,scaron:oie,Sc:sie,sc:lie,sccue:aie,sce:cie,scE:uie,Scedil:fie,scedil:die,Scirc:hie,scirc:pie,scnap:gie,scnE:mie,scnsim:vie,scpolint:yie,scsim:bie,Scy:wie,scy:xie,sdotb:Sie,sdot:_ie,sdote:kie,searhk:Tie,searr:Cie,seArr:Eie,searrow:Aie,sect:$ie,semi:Nie,seswar:Mie,setminus:Lie,setmn:Oie,sext:Rie,Sfr:Pie,sfr:Iie,sfrown:Die,sharp:Fie,SHCHcy:zie,shchcy:Hie,SHcy:Bie,shcy:jie,ShortDownArrow:Wie,ShortLeftArrow:qie,shortmid:Uie,shortparallel:Vie,ShortRightArrow:Gie,ShortUpArrow:Kie,shy:Yie,Sigma:Xie,sigma:Jie,sigmaf:Zie,sigmav:Qie,sim:eoe,simdot:toe,sime:noe,simeq:roe,simg:ioe,simgE:ooe,siml:soe,simlE:loe,simne:aoe,simplus:coe,simrarr:uoe,slarr:foe,SmallCircle:doe,smallsetminus:hoe,smashp:poe,smeparsl:goe,smid:moe,smile:voe,smt:yoe,smte:boe,smtes:woe,SOFTcy:xoe,softcy:Soe,solbar:_oe,solb:koe,sol:Toe,Sopf:Coe,sopf:Eoe,spades:Aoe,spadesuit:$oe,spar:Noe,sqcap:Moe,sqcaps:Loe,sqcup:Ooe,sqcups:Roe,Sqrt:Poe,sqsub:Ioe,sqsube:Doe,sqsubset:Foe,sqsubseteq:zoe,sqsup:Hoe,sqsupe:Boe,sqsupset:joe,sqsupseteq:Woe,square:qoe,Square:Uoe,SquareIntersection:Voe,SquareSubset:Goe,SquareSubsetEqual:Koe,SquareSuperset:Yoe,SquareSupersetEqual:Xoe,SquareUnion:Joe,squarf:Zoe,squ:Qoe,squf:ese,srarr:tse,Sscr:nse,sscr:rse,ssetmn:ise,ssmile:ose,sstarf:sse,Star:lse,star:ase,starf:cse,straightepsilon:use,straightphi:fse,strns:dse,sub:hse,Sub:pse,subdot:gse,subE:mse,sube:vse,subedot:yse,submult:bse,subnE:wse,subne:xse,subplus:Sse,subrarr:_se,subset:kse,Subset:Tse,subseteq:Cse,subseteqq:Ese,SubsetEqual:Ase,subsetneq:$se,subsetneqq:Nse,subsim:Mse,subsub:Lse,subsup:Ose,succapprox:Rse,succ:Pse,succcurlyeq:Ise,Succeeds:Dse,SucceedsEqual:Fse,SucceedsSlantEqual:zse,SucceedsTilde:Hse,succeq:Bse,succnapprox:jse,succneqq:Wse,succnsim:qse,succsim:Use,SuchThat:Vse,sum:Gse,Sum:Kse,sung:Yse,sup1:Xse,sup2:Jse,sup3:Zse,sup:Qse,Sup:ele,supdot:tle,supdsub:nle,supE:rle,supe:ile,supedot:ole,Superset:sle,SupersetEqual:lle,suphsol:ale,suphsub:cle,suplarr:ule,supmult:fle,supnE:dle,supne:hle,supplus:ple,supset:gle,Supset:mle,supseteq:vle,supseteqq:yle,supsetneq:ble,supsetneqq:wle,supsim:xle,supsub:Sle,supsup:_le,swarhk:kle,swarr:Tle,swArr:Cle,swarrow:Ele,swnwar:Ale,szlig:$le,Tab:Nle,target:Mle,Tau:Lle,tau:Ole,tbrk:Rle,Tcaron:Ple,tcaron:Ile,Tcedil:Dle,tcedil:Fle,Tcy:zle,tcy:Hle,tdot:Ble,telrec:jle,Tfr:Wle,tfr:qle,there4:Ule,therefore:Vle,Therefore:Gle,Theta:Kle,theta:Yle,thetasym:Xle,thetav:Jle,thickapprox:Zle,thicksim:Qle,ThickSpace:eae,ThinSpace:tae,thinsp:nae,thkap:rae,thksim:iae,THORN:oae,thorn:sae,tilde:lae,Tilde:aae,TildeEqual:cae,TildeFullEqual:uae,TildeTilde:fae,timesbar:dae,timesb:hae,times:pae,timesd:gae,tint:mae,toea:vae,topbot:yae,topcir:bae,top:wae,Topf:xae,topf:Sae,topfork:_ae,tosa:kae,tprime:Tae,trade:Cae,TRADE:Eae,triangle:Aae,triangledown:$ae,triangleleft:Nae,trianglelefteq:Mae,triangleq:Lae,triangleright:Oae,trianglerighteq:Rae,tridot:Pae,trie:Iae,triminus:Dae,TripleDot:Fae,triplus:zae,trisb:Hae,tritime:Bae,trpezium:jae,Tscr:Wae,tscr:qae,TScy:Uae,tscy:Vae,TSHcy:Gae,tshcy:Kae,Tstrok:Yae,tstrok:Xae,twixt:Jae,twoheadleftarrow:Zae,twoheadrightarrow:Qae,Uacute:ece,uacute:tce,uarr:nce,Uarr:rce,uArr:ice,Uarrocir:oce,Ubrcy:sce,ubrcy:lce,Ubreve:ace,ubreve:cce,Ucirc:uce,ucirc:fce,Ucy:dce,ucy:hce,udarr:pce,Udblac:gce,udblac:mce,udhar:vce,ufisht:yce,Ufr:bce,ufr:wce,Ugrave:xce,ugrave:Sce,uHar:_ce,uharl:kce,uharr:Tce,uhblk:Cce,ulcorn:Ece,ulcorner:Ace,ulcrop:$ce,ultri:Nce,Umacr:Mce,umacr:Lce,uml:Oce,UnderBar:Rce,UnderBrace:Pce,UnderBracket:Ice,UnderParenthesis:Dce,Union:Fce,UnionPlus:zce,Uogon:Hce,uogon:Bce,Uopf:jce,uopf:Wce,UpArrowBar:qce,uparrow:Uce,UpArrow:Vce,Uparrow:Gce,UpArrowDownArrow:Kce,updownarrow:Yce,UpDownArrow:Xce,Updownarrow:Jce,UpEquilibrium:Zce,upharpoonleft:Qce,upharpoonright:eue,uplus:tue,UpperLeftArrow:nue,UpperRightArrow:rue,upsi:iue,Upsi:oue,upsih:sue,Upsilon:lue,upsilon:aue,UpTeeArrow:cue,UpTee:uue,upuparrows:fue,urcorn:due,urcorner:hue,urcrop:pue,Uring:gue,uring:mue,urtri:vue,Uscr:yue,uscr:bue,utdot:wue,Utilde:xue,utilde:Sue,utri:_ue,utrif:kue,uuarr:Tue,Uuml:Cue,uuml:Eue,uwangle:Aue,vangrt:$ue,varepsilon:Nue,varkappa:Mue,varnothing:Lue,varphi:Oue,varpi:Rue,varpropto:Pue,varr:Iue,vArr:Due,varrho:Fue,varsigma:zue,varsubsetneq:Hue,varsubsetneqq:Bue,varsupsetneq:jue,varsupsetneqq:Wue,vartheta:que,vartriangleleft:Uue,vartriangleright:Vue,vBar:Gue,Vbar:Kue,vBarv:Yue,Vcy:Xue,vcy:Jue,vdash:Zue,vDash:Que,Vdash:efe,VDash:tfe,Vdashl:nfe,veebar:rfe,vee:ife,Vee:ofe,veeeq:sfe,vellip:lfe,verbar:afe,Verbar:cfe,vert:ufe,Vert:ffe,VerticalBar:dfe,VerticalLine:hfe,VerticalSeparator:pfe,VerticalTilde:gfe,VeryThinSpace:mfe,Vfr:vfe,vfr:yfe,vltri:bfe,vnsub:wfe,vnsup:xfe,Vopf:Sfe,vopf:_fe,vprop:kfe,vrtri:Tfe,Vscr:Cfe,vscr:Efe,vsubnE:Afe,vsubne:$fe,vsupnE:Nfe,vsupne:Mfe,Vvdash:Lfe,vzigzag:Ofe,Wcirc:Rfe,wcirc:Pfe,wedbar:Ife,wedge:Dfe,Wedge:Ffe,wedgeq:zfe,weierp:Hfe,Wfr:Bfe,wfr:jfe,Wopf:Wfe,wopf:qfe,wp:Ufe,wr:Vfe,wreath:Gfe,Wscr:Kfe,wscr:Yfe,xcap:Xfe,xcirc:Jfe,xcup:Zfe,xdtri:Qfe,Xfr:ede,xfr:tde,xharr:nde,xhArr:rde,Xi:ide,xi:ode,xlarr:sde,xlArr:lde,xmap:ade,xnis:cde,xodot:ude,Xopf:fde,xopf:dde,xoplus:hde,xotime:pde,xrarr:gde,xrArr:mde,Xscr:vde,xscr:yde,xsqcup:bde,xuplus:wde,xutri:xde,xvee:Sde,xwedge:_de,Yacute:kde,yacute:Tde,YAcy:Cde,yacy:Ede,Ycirc:Ade,ycirc:$de,Ycy:Nde,ycy:Mde,yen:Lde,Yfr:Ode,yfr:Rde,YIcy:Pde,yicy:Ide,Yopf:Dde,yopf:Fde,Yscr:zde,yscr:Hde,YUcy:Bde,yucy:jde,yuml:Wde,Yuml:qde,Zacute:Ude,zacute:Vde,Zcaron:Gde,zcaron:Kde,Zcy:Yde,zcy:Xde,Zdot:Jde,zdot:Zde,zeetrf:Qde,ZeroWidthSpace:ehe,Zeta:the,zeta:nhe,zfr:rhe,Zfr:ihe,ZHcy:ohe,zhcy:she,zigrarr:lhe,zopf:ahe,Zopf:che,Zscr:uhe,zscr:fhe,zwj:dhe,zwnj:hhe},phe="Á",ghe="á",mhe="Â",vhe="â",yhe="´",bhe="Æ",whe="æ",xhe="À",She="à",_he="&",khe="&",The="Å",Che="å",Ehe="Ã",Ahe="ã",$he="Ä",Nhe="ä",Mhe="¦",Lhe="Ç",Ohe="ç",Rhe="¸",Phe="¢",Ihe="©",Dhe="©",Fhe="¤",zhe="°",Hhe="÷",Bhe="É",jhe="é",Whe="Ê",qhe="ê",Uhe="È",Vhe="è",Ghe="Ð",Khe="ð",Yhe="Ë",Xhe="ë",Jhe="½",Zhe="¼",Qhe="¾",epe=">",tpe=">",npe="Í",rpe="í",ipe="Î",ope="î",spe="¡",lpe="Ì",ape="ì",cpe="¿",upe="Ï",fpe="ï",dpe="«",hpe="<",ppe="<",gpe="¯",mpe="µ",vpe="·",ype=" ",bpe="¬",wpe="Ñ",xpe="ñ",Spe="Ó",_pe="ó",kpe="Ô",Tpe="ô",Cpe="Ò",Epe="ò",Ape="ª",$pe="º",Npe="Ø",Mpe="ø",Lpe="Õ",Ope="õ",Rpe="Ö",Ppe="ö",Ipe="¶",Dpe="±",Fpe="£",zpe='"',Hpe='"',Bpe="»",jpe="®",Wpe="®",qpe="§",Upe="­",Vpe="¹",Gpe="²",Kpe="³",Ype="ß",Xpe="Þ",Jpe="þ",Zpe="×",Qpe="Ú",ege="ú",tge="Û",nge="û",rge="Ù",ige="ù",oge="¨",sge="Ü",lge="ü",age="Ý",cge="ý",uge="¥",fge="ÿ",dge={Aacute:phe,aacute:ghe,Acirc:mhe,acirc:vhe,acute:yhe,AElig:bhe,aelig:whe,Agrave:xhe,agrave:She,amp:_he,AMP:khe,Aring:The,aring:Che,Atilde:Ehe,atilde:Ahe,Auml:$he,auml:Nhe,brvbar:Mhe,Ccedil:Lhe,ccedil:Ohe,cedil:Rhe,cent:Phe,copy:Ihe,COPY:Dhe,curren:Fhe,deg:zhe,divide:Hhe,Eacute:Bhe,eacute:jhe,Ecirc:Whe,ecirc:qhe,Egrave:Uhe,egrave:Vhe,ETH:Ghe,eth:Khe,Euml:Yhe,euml:Xhe,frac12:Jhe,frac14:Zhe,frac34:Qhe,gt:epe,GT:tpe,Iacute:npe,iacute:rpe,Icirc:ipe,icirc:ope,iexcl:spe,Igrave:lpe,igrave:ape,iquest:cpe,Iuml:upe,iuml:fpe,laquo:dpe,lt:hpe,LT:ppe,macr:gpe,micro:mpe,middot:vpe,nbsp:ype,not:bpe,Ntilde:wpe,ntilde:xpe,Oacute:Spe,oacute:_pe,Ocirc:kpe,ocirc:Tpe,Ograve:Cpe,ograve:Epe,ordf:Ape,ordm:$pe,Oslash:Npe,oslash:Mpe,Otilde:Lpe,otilde:Ope,Ouml:Rpe,ouml:Ppe,para:Ipe,plusmn:Dpe,pound:Fpe,quot:zpe,QUOT:Hpe,raquo:Bpe,reg:jpe,REG:Wpe,sect:qpe,shy:Upe,sup1:Vpe,sup2:Gpe,sup3:Kpe,szlig:Ype,THORN:Xpe,thorn:Jpe,times:Zpe,Uacute:Qpe,uacute:ege,Ucirc:tge,ucirc:nge,Ugrave:rge,ugrave:ige,uml:oge,Uuml:sge,uuml:lge,Yacute:age,yacute:cge,yen:uge,yuml:fge},hge="&",pge="'",gge=">",mge="<",vge='"',E_={amp:hge,apos:pge,gt:gge,lt:mge,quot:vge};var Qs={};const yge={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var Lb;function bge(){if(Lb)return Qs;Lb=1;var e=Qs&&Qs.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Qs,"__esModule",{value:!0});var t=e(yge),n=String.fromCodePoint||function(o){var l="";return o>65535&&(o-=65536,l+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),l+=String.fromCharCode(o),l};function i(o){return o>=55296&&o<=57343||o>1114111?"�":(o in t.default&&(o=t.default[o]),n(o))}return Qs.default=i,Qs}var Ob;function Rb(){if(Ob)return Ir;Ob=1;var e=Ir&&Ir.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.decodeHTML=Ir.decodeHTMLStrict=Ir.decodeXML=void 0;var t=e(C_),n=e(dge),i=e(E_),o=e(bge()),l=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Ir.decodeXML=u(i.default),Ir.decodeHTMLStrict=u(t.default);function u(p){var g=h(p);return function(v){return String(v).replace(l,g)}}var f=function(p,g){return p<g?1:-1};Ir.decodeHTML=(function(){for(var p=Object.keys(n.default).sort(f),g=Object.keys(t.default).sort(f),v=0,y=0;v<g.length;v++)p[y]===g[v]?(g[v]+=";?",y++):g[v]+=";";var w=new RegExp("&(?:"+g.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),$=h(t.default);function _(C){return C.substr(-1)!==";"&&(C+=";"),$(C)}return function(C){return String(C).replace(w,_)}})();function h(p){return function(v){if(v.charAt(1)==="#"){var y=v.charAt(2);return y==="X"||y==="x"?o.default(parseInt(v.substr(3),16)):o.default(parseInt(v.substr(2),10))}return p[v.slice(1,-1)]||v}}return Ir}var Pn={},Pb;function Ib(){if(Pb)return Pn;Pb=1;var e=Pn&&Pn.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.escapeUTF8=Pn.escape=Pn.encodeNonAsciiHTML=Pn.encodeHTML=Pn.encodeXML=void 0;var t=e(E_),n=f(t.default),i=h(n);Pn.encodeXML=C(n);var o=e(C_),l=f(o.default),u=h(l);Pn.encodeHTML=y(l,u),Pn.encodeNonAsciiHTML=C(l);function f(E){return Object.keys(E).sort().reduce(function(L,D){return L[E[D]]="&"+D+";",L},{})}function h(E){for(var L=[],D=[],N=0,I=Object.keys(E);N<I.length;N++){var q=I[N];q.length===1?L.push("\\"+q):D.push(q)}L.sort();for(var X=0;X<L.length-1;X++){for(var ie=X;ie<L.length-1&&L[ie].charCodeAt(1)+1===L[ie+1].charCodeAt(1);)ie+=1;var J=1+ie-X;J<3||L.splice(X,J,L[X]+"-"+L[ie])}return D.unshift("["+L.join("")+"]"),new RegExp(D.join("|"),"g")}var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,g=String.prototype.codePointAt!=null?function(E){return E.codePointAt(0)}:function(E){return(E.charCodeAt(0)-55296)*1024+E.charCodeAt(1)-56320+65536};function v(E){return"&#x"+(E.length>1?g(E):E.charCodeAt(0)).toString(16).toUpperCase()+";"}function y(E,L){return function(D){return D.replace(L,function(N){return E[N]}).replace(p,v)}}var w=new RegExp(i.source+"|"+p.source,"g");function $(E){return E.replace(w,v)}Pn.escape=$;function _(E){return E.replace(i,v)}Pn.escapeUTF8=_;function C(E){return function(L){return L.replace(w,function(D){return E[D]||v(D)})}}return Pn}var Db;function wge(){return Db||(Db=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=Rb(),n=Ib();function i(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTML)(h)}e.decode=i;function o(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTMLStrict)(h)}e.decodeStrict=o;function l(h,p){return(!p||p<=0?n.encodeXML:n.encodeHTML)(h)}e.encode=l;var u=Ib();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return u.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return u.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return u.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return u.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return u.encodeHTML}});var f=Rb();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return f.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return f.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return f.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return f.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return f.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return f.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return f.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return f.decodeXML}})})(Hh)),Hh}var Bh,Fb;function xge(){if(Fb)return Bh;Fb=1;function e(P,O){if(!(P instanceof O))throw new TypeError("Cannot call a class as a function")}function t(P,O){for(var k=0;k<O.length;k++){var S=O[k];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(P,S.key,S)}}function n(P,O,k){return O&&t(P.prototype,O),P}function i(P,O){var k=typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(!k){if(Array.isArray(P)||(k=o(P))||O){k&&(P=k);var S=0,R=function(){};return{s:R,n:function(){return S>=P.length?{done:!0}:{done:!1,value:P[S++]}},e:function(Be){throw Be},f:R}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
77
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var B=!0,ae=!1,ve;return{s:function(){k=k.call(P)},n:function(){var Be=k.next();return B=Be.done,Be},e:function(Be){ae=!0,ve=Be},f:function(){try{!B&&k.return!=null&&k.return()}finally{if(ae)throw ve}}}}function o(P,O){if(P){if(typeof P=="string")return l(P,O);var k=Object.prototype.toString.call(P).slice(8,-1);if(k==="Object"&&P.constructor&&(k=P.constructor.name),k==="Map"||k==="Set")return Array.from(P);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return l(P,O)}}function l(P,O){(O==null||O>P.length)&&(O=P.length);for(var k=0,S=new Array(O);k<O;k++)S[k]=P[k];return S}var u=wge(),f={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var P={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return C(0,5).forEach(function(O){C(0,5).forEach(function(k){C(0,5).forEach(function(S){return p(O,k,S,P)})})}),C(0,23).forEach(function(O){var k=O+232,S=g(O*10+8);P[k]="#"+S+S+S}),P}function p(P,O,k,S){var R=16+P*36+O*6+k,B=P>0?P*40+55:0,ae=O>0?O*40+55:0,ve=k>0?k*40+55:0;S[R]=v([B,ae,ve])}function g(P){for(var O=P.toString(16);O.length<2;)O="0"+O;return O}function v(P){var O=[],k=i(P),S;try{for(k.s();!(S=k.n()).done;){var R=S.value;O.push(g(R))}}catch(B){k.e(B)}finally{k.f()}return"#"+O.join("")}function y(P,O,k,S){var R;return O==="text"?R=D(k,S):O==="display"?R=$(P,k,S):O==="xterm256Foreground"?R=q(P,S.colors[k]):O==="xterm256Background"?R=X(P,S.colors[k]):O==="rgb"&&(R=w(P,k)),R}function w(P,O){O=O.substring(2).slice(0,-1);var k=+O.substr(0,2),S=O.substring(5).split(";"),R=S.map(function(B){return("0"+Number(B).toString(16)).substr(-2)}).join("");return I(P,(k===38?"color:#":"background-color:#")+R)}function $(P,O,k){O=parseInt(O,10);var S={"-1":function(){return"<br/>"},0:function(){return P.length&&_(P)},1:function(){return N(P,"b")},3:function(){return N(P,"i")},4:function(){return N(P,"u")},8:function(){return I(P,"display:none")},9:function(){return N(P,"strike")},22:function(){return I(P,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return ie(P,"i")},24:function(){return ie(P,"u")},39:function(){return q(P,k.fg)},49:function(){return X(P,k.bg)},53:function(){return I(P,"text-decoration:overline")}},R;return S[O]?R=S[O]():4<O&&O<7?R=N(P,"blink"):29<O&&O<38?R=q(P,k.colors[O-30]):39<O&&O<48?R=X(P,k.colors[O-40]):89<O&&O<98?R=q(P,k.colors[8+(O-90)]):99<O&&O<108&&(R=X(P,k.colors[8+(O-100)])),R}function _(P){var O=P.slice(0);return P.length=0,O.reverse().map(function(k){return"</"+k+">"}).join("")}function C(P,O){for(var k=[],S=P;S<=O;S++)k.push(S);return k}function E(P){return function(O){return(P===null||O.category!==P)&&P!=="all"}}function L(P){P=parseInt(P,10);var O=null;return P===0?O="all":P===1?O="bold":2<P&&P<5?O="underline":4<P&&P<7?O="blink":P===8?O="hide":P===9?O="strike":29<P&&P<38||P===39||89<P&&P<98?O="foreground-color":(39<P&&P<48||P===49||99<P&&P<108)&&(O="background-color"),O}function D(P,O){return O.escapeXML?u.encodeXML(P):P}function N(P,O,k){return k||(k=""),P.push(O),"<".concat(O).concat(k?' style="'.concat(k,'"'):"",">")}function I(P,O){return N(P,"span",O)}function q(P,O){return N(P,"span","color:"+O)}function X(P,O){return N(P,"span","background-color:"+O)}function ie(P,O){var k;if(P.slice(-1)[0]===O&&(k=P.pop()),k)return"</"+O+">"}function J(P,O,k){var S=!1,R=3;function B(){return""}function ae(j,ee){return k("xterm256Foreground",ee),""}function ve(j,ee){return k("xterm256Background",ee),""}function _e(j){return O.newline?k("display",-1):k("text",j),""}function Be(j,ee){S=!0,ee.trim().length===0&&(ee="0"),ee=ee.trimRight(";").split(";");var de=i(ee),he;try{for(de.s();!(he=de.n()).done;){var me=he.value;k("display",me)}}catch(Ce){de.e(Ce)}finally{de.f()}return""}function Ee(j){return k("text",j),""}function Ge(j){return k("rgb",j),""}var Ue=[{pattern:/^\x08+/,sub:B},{pattern:/^\x1b\[[012]?K/,sub:B},{pattern:/^\x1b\[\(B/,sub:B},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Ge},{pattern:/^\x1b\[38;5;(\d+)m/,sub:ae},{pattern:/^\x1b\[48;5;(\d+)m/,sub:ve},{pattern:/^\n/,sub:_e},{pattern:/^\r+\n/,sub:_e},{pattern:/^\r/,sub:_e},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Be},{pattern:/^\x1b\[\d?J/,sub:B},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:B},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:B},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:Ee}];function He(j,ee){ee>R&&S||(S=!1,P=P.replace(j.pattern,j.sub))}var Re=[],z=P,Z=z.length;e:for(;Z>0;){for(var re=0,le=0,ce=Ue.length;le<ce;re=++le){var F=Ue[re];if(He(F,re),P.length!==Z){Z=P.length;continue e}}if(P.length===Z)break;Re.push(0),Z=P.length}return Re}function U(P,O,k){return O!=="text"&&(P=P.filter(E(L(k))),P.push({token:O,data:k,category:L(k)})),P}var K=(function(){function P(O){e(this,P),O=O||{},O.colors&&(O.colors=Object.assign({},f.colors,O.colors)),this.options=Object.assign({},f,O),this.stack=[],this.stickyStack=[]}return n(P,[{key:"toHtml",value:function(k){var S=this;k=typeof k=="string"?[k]:k;var R=this.stack,B=this.options,ae=[];return this.stickyStack.forEach(function(ve){var _e=y(R,ve.token,ve.data,B);_e&&ae.push(_e)}),J(k.join(""),B,function(ve,_e){var Be=y(R,ve,_e,B);Be&&ae.push(Be),B.stream&&(S.stickyStack=U(S.stickyStack,ve,_e))}),R.length&&ae.push(_(R)),ae.join("")}}]),P})();return Bh=K,Bh}var Sge=xge();const _ge=Jg(Sge);function Wa(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function kge(e,t){return t&&e.endsWith(t)}async function Zg(e,t,n){const i=encodeURI(`${e}:${t}:${n}`);await fetch(`/__open-in-editor?file=${i}`)}function Qg(e){return new _ge({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function Tge(e){return e===null||typeof e!="function"&&typeof e!="object"}function A_(e){let t=e;if(Tge(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:"",stacks:[]}),!e){const n=new Error("unknown error");t={message:n.message,stack:n.stack,name:"",stacks:[]}}return t.stacks=UO(t.stack||"",{ignoreStackEntries:[]}),t}function Cge(e,t){let n="";return t.message?.includes("\x1B")&&(n=`<b>${t.name}</b>: ${e.toHtml(Wa(t.message))}`),t.stack?.includes("\x1B")&&(n.length>0?n+=e.toHtml(Wa(t.stack)):n=`<b>${t.name}</b>: ${t.message}${e.toHtml(Wa(t.stack))}`),n.length>0?n:null}function $_(e,t){const n=Qg(e);return t.map(i=>{const o=i.result;if(!o||o.htmlError)return i;const l=o.errors?.map(u=>Cge(n,u)).filter(u=>u!=null).join("<br><br>");return l?.length&&(o.htmlError=l),i})}const Nc=dM("hash",{initialValue:{file:"",view:null,line:null,test:null,column:null}}),Io=ks(Nc,"file"),yn=ks(Nc,"view"),N_=ks(Nc,"line"),M_=ks(Nc,"column"),Fi=ks(Nc,"test");var zb={exports:{}},Hb;function em(){return Hb||(Hb=1,(function(e,t){(function(n){n(Ho())})(function(n){n.defineMode("javascript",function(i,o){var l=i.indentUnit,u=o.statementIndent,f=o.jsonld,h=o.json||f,p=o.trackScope!==!1,g=o.typescript,v=o.wordCharacters||/[\w$\xa1-\uffff]/,y=(function(){function M(tn){return{type:tn,style:"keyword"}}var V=M("keyword a"),ye=M("keyword b"),ke=M("keyword c"),fe=M("keyword d"),Ie=M("operator"),gt={type:"atom",style:"atom"};return{if:M("if"),while:V,with:V,else:ye,do:ye,try:ye,finally:ye,return:fe,break:fe,continue:fe,new:M("new"),delete:ke,void:ke,throw:ke,debugger:M("debugger"),var:M("var"),const:M("var"),let:M("var"),function:M("function"),catch:M("catch"),for:M("for"),switch:M("switch"),case:M("case"),default:M("default"),in:Ie,typeof:Ie,instanceof:Ie,true:gt,false:gt,null:gt,undefined:gt,NaN:gt,Infinity:gt,this:M("this"),class:M("class"),super:M("atom"),yield:ke,export:M("export"),import:M("import"),extends:ke,await:ke}})(),w=/[+\-*&%=<>!?|~^@]/,$=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function _(M){for(var V=!1,ye,ke=!1;(ye=M.next())!=null;){if(!V){if(ye=="/"&&!ke)return;ye=="["?ke=!0:ke&&ye=="]"&&(ke=!1)}V=!V&&ye=="\\"}}var C,E;function L(M,V,ye){return C=M,E=ye,V}function D(M,V){var ye=M.next();if(ye=='"'||ye=="'")return V.tokenize=N(ye),V.tokenize(M,V);if(ye=="."&&M.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return L("number","number");if(ye=="."&&M.match(".."))return L("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(ye))return L(ye);if(ye=="="&&M.eat(">"))return L("=>","operator");if(ye=="0"&&M.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return L("number","number");if(/\d/.test(ye))return M.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),L("number","number");if(ye=="/")return M.eat("*")?(V.tokenize=I,I(M,V)):M.eat("/")?(M.skipToEnd(),L("comment","comment")):or(M,V,1)?(_(M),M.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),L("regexp","string-2")):(M.eat("="),L("operator","operator",M.current()));if(ye=="`")return V.tokenize=q,q(M,V);if(ye=="#"&&M.peek()=="!")return M.skipToEnd(),L("meta","meta");if(ye=="#"&&M.eatWhile(v))return L("variable","property");if(ye=="<"&&M.match("!--")||ye=="-"&&M.match("->")&&!/\S/.test(M.string.slice(0,M.start)))return M.skipToEnd(),L("comment","comment");if(w.test(ye))return(ye!=">"||!V.lexical||V.lexical.type!=">")&&(M.eat("=")?(ye=="!"||ye=="=")&&M.eat("="):/[<>*+\-|&?]/.test(ye)&&(M.eat(ye),ye==">"&&M.eat(ye))),ye=="?"&&M.eat(".")?L("."):L("operator","operator",M.current());if(v.test(ye)){M.eatWhile(v);var ke=M.current();if(V.lastType!="."){if(y.propertyIsEnumerable(ke)){var fe=y[ke];return L(fe.type,fe.style,ke)}if(ke=="async"&&M.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return L("async","keyword",ke)}return L("variable","variable",ke)}}function N(M){return function(V,ye){var ke=!1,fe;if(f&&V.peek()=="@"&&V.match($))return ye.tokenize=D,L("jsonld-keyword","meta");for(;(fe=V.next())!=null&&!(fe==M&&!ke);)ke=!ke&&fe=="\\";return ke||(ye.tokenize=D),L("string","string")}}function I(M,V){for(var ye=!1,ke;ke=M.next();){if(ke=="/"&&ye){V.tokenize=D;break}ye=ke=="*"}return L("comment","comment")}function q(M,V){for(var ye=!1,ke;(ke=M.next())!=null;){if(!ye&&(ke=="`"||ke=="$"&&M.eat("{"))){V.tokenize=D;break}ye=!ye&&ke=="\\"}return L("quasi","string-2",M.current())}var X="([{}])";function ie(M,V){V.fatArrowAt&&(V.fatArrowAt=null);var ye=M.string.indexOf("=>",M.start);if(!(ye<0)){if(g){var ke=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(M.string.slice(M.start,ye));ke&&(ye=ke.index)}for(var fe=0,Ie=!1,gt=ye-1;gt>=0;--gt){var tn=M.string.charAt(gt),$n=X.indexOf(tn);if($n>=0&&$n<3){if(!fe){++gt;break}if(--fe==0){tn=="("&&(Ie=!0);break}}else if($n>=3&&$n<6)++fe;else if(v.test(tn))Ie=!0;else if(/["'\/`]/.test(tn))for(;;--gt){if(gt==0)return;var Ls=M.string.charAt(gt-1);if(Ls==tn&&M.string.charAt(gt-2)!="\\"){gt--;break}}else if(Ie&&!fe){++gt;break}}Ie&&!fe&&(V.fatArrowAt=gt)}}var J={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function U(M,V,ye,ke,fe,Ie){this.indented=M,this.column=V,this.type=ye,this.prev=fe,this.info=Ie,ke!=null&&(this.align=ke)}function K(M,V){if(!p)return!1;for(var ye=M.localVars;ye;ye=ye.next)if(ye.name==V)return!0;for(var ke=M.context;ke;ke=ke.prev)for(var ye=ke.vars;ye;ye=ye.next)if(ye.name==V)return!0}function P(M,V,ye,ke,fe){var Ie=M.cc;for(O.state=M,O.stream=fe,O.marked=null,O.cc=Ie,O.style=V,M.lexical.hasOwnProperty("align")||(M.lexical.align=!0);;){var gt=Ie.length?Ie.pop():h?ce:re;if(gt(ye,ke)){for(;Ie.length&&Ie[Ie.length-1].lex;)Ie.pop()();return O.marked?O.marked:ye=="variable"&&K(M,ke)?"variable-2":V}}}var O={state:null,marked:null,cc:null};function k(){for(var M=arguments.length-1;M>=0;M--)O.cc.push(arguments[M])}function S(){return k.apply(null,arguments),!0}function R(M,V){for(var ye=V;ye;ye=ye.next)if(ye.name==M)return!0;return!1}function B(M){var V=O.state;if(O.marked="def",!!p){if(V.context){if(V.lexical.info=="var"&&V.context&&V.context.block){var ye=ae(M,V.context);if(ye!=null){V.context=ye;return}}else if(!R(M,V.localVars)){V.localVars=new Be(M,V.localVars);return}}o.globalVars&&!R(M,V.globalVars)&&(V.globalVars=new Be(M,V.globalVars))}}function ae(M,V){if(V)if(V.block){var ye=ae(M,V.prev);return ye?ye==V.prev?V:new _e(ye,V.vars,!0):null}else return R(M,V.vars)?V:new _e(V.prev,new Be(M,V.vars),!1);else return null}function ve(M){return M=="public"||M=="private"||M=="protected"||M=="abstract"||M=="readonly"}function _e(M,V,ye){this.prev=M,this.vars=V,this.block=ye}function Be(M,V){this.name=M,this.next=V}var Ee=new Be("this",new Be("arguments",null));function Ge(){O.state.context=new _e(O.state.context,O.state.localVars,!1),O.state.localVars=Ee}function Ue(){O.state.context=new _e(O.state.context,O.state.localVars,!0),O.state.localVars=null}Ge.lex=Ue.lex=!0;function He(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}He.lex=!0;function Re(M,V){var ye=function(){var ke=O.state,fe=ke.indented;if(ke.lexical.type=="stat")fe=ke.lexical.indented;else for(var Ie=ke.lexical;Ie&&Ie.type==")"&&Ie.align;Ie=Ie.prev)fe=Ie.indented;ke.lexical=new U(fe,O.stream.column(),M,null,ke.lexical,V)};return ye.lex=!0,ye}function z(){var M=O.state;M.lexical.prev&&(M.lexical.type==")"&&(M.indented=M.lexical.indented),M.lexical=M.lexical.prev)}z.lex=!0;function Z(M){function V(ye){return ye==M?S():M==";"||ye=="}"||ye==")"||ye=="]"?k():S(V)}return V}function re(M,V){return M=="var"?S(Re("vardef",V),Ts,Z(";"),z):M=="keyword a"?S(Re("form"),j,re,z):M=="keyword b"?S(Re("form"),re,z):M=="keyword d"?O.stream.match(/^\s*$/,!1)?S():S(Re("stat"),de,Z(";"),z):M=="debugger"?S(Z(";")):M=="{"?S(Re("}"),Ue,Gt,z,He):M==";"?S():M=="if"?(O.state.lexical.info=="else"&&O.state.cc[O.state.cc.length-1]==z&&O.state.cc.pop()(),S(Re("form"),j,re,z,Cs)):M=="function"?S(br):M=="for"?S(Re("form"),Ue,Pc,re,He,z):M=="class"||g&&V=="interface"?(O.marked="keyword",S(Re("form",M=="class"?M:V),Es,z)):M=="variable"?g&&V=="declare"?(O.marked="keyword",S(re)):g&&(V=="module"||V=="enum"||V=="type")&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword",V=="enum"?S(qe):V=="type"?S(Ic,Z("operator"),at,Z(";")):S(Re("form"),An,Z("{"),Re("}"),Gt,z,z)):g&&V=="namespace"?(O.marked="keyword",S(Re("form"),ce,re,z)):g&&V=="abstract"?(O.marked="keyword",S(re)):S(Re("stat"),Pe):M=="switch"?S(Re("form"),j,Z("{"),Re("}","switch"),Ue,Gt,z,z,He):M=="case"?S(ce,Z(":")):M=="default"?S(Z(":")):M=="catch"?S(Re("form"),Ge,le,re,z,He):M=="export"?S(Re("stat"),As,z):M=="import"?S(Re("stat"),eo,z):M=="async"?S(re):V=="@"?S(ce,re):k(Re("stat"),ce,Z(";"),z)}function le(M){if(M=="(")return S($r,Z(")"))}function ce(M,V){return ee(M,V,!1)}function F(M,V){return ee(M,V,!0)}function j(M){return M!="("?k():S(Re(")"),de,Z(")"),z)}function ee(M,V,ye){if(O.state.fatArrowAt==O.stream.start){var ke=ye?be:xe;if(M=="(")return S(Ge,Re(")"),ut($r,")"),z,Z("=>"),ke,He);if(M=="variable")return k(Ge,An,Z("=>"),ke,He)}var fe=ye?me:he;return J.hasOwnProperty(M)?S(fe):M=="function"?S(br,fe):M=="class"||g&&V=="interface"?(O.marked="keyword",S(Re("form"),wd,z)):M=="keyword c"||M=="async"?S(ye?F:ce):M=="("?S(Re(")"),de,Z(")"),z,fe):M=="operator"||M=="spread"?S(ye?F:ce):M=="["?S(Re("]"),Ft,z,fe):M=="{"?en(ct,"}",null,fe):M=="quasi"?k(Ce,fe):M=="new"?S(Q(ye)):S()}function de(M){return M.match(/[;\}\)\],]/)?k():k(ce)}function he(M,V){return M==","?S(de):me(M,V,!1)}function me(M,V,ye){var ke=ye==!1?he:me,fe=ye==!1?ce:F;if(M=="=>")return S(Ge,ye?be:xe,He);if(M=="operator")return/\+\+|--/.test(V)||g&&V=="!"?S(ke):g&&V=="<"&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?S(Re(">"),ut(at,">"),z,ke):V=="?"?S(ce,Z(":"),fe):S(fe);if(M=="quasi")return k(Ce,ke);if(M!=";"){if(M=="(")return en(F,")","call",ke);if(M==".")return S(et,ke);if(M=="[")return S(Re("]"),de,Z("]"),z,ke);if(g&&V=="as")return O.marked="keyword",S(at,ke);if(M=="regexp")return O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),S(fe)}}function Ce(M,V){return M!="quasi"?k():V.slice(V.length-2)!="${"?S(Ce):S(de,Ae)}function Ae(M){if(M=="}")return O.marked="string-2",O.state.tokenize=q,S(Ce)}function xe(M){return ie(O.stream,O.state),k(M=="{"?re:ce)}function be(M){return ie(O.stream,O.state),k(M=="{"?re:F)}function Q(M){return function(V){return V=="."?S(M?oe:ue):V=="variable"&&g?S(Kn,M?me:he):k(M?F:ce)}}function ue(M,V){if(V=="target")return O.marked="keyword",S(he)}function oe(M,V){if(V=="target")return O.marked="keyword",S(me)}function Pe(M){return M==":"?S(z,re):k(he,Z(";"),z)}function et(M){if(M=="variable")return O.marked="property",S()}function ct(M,V){if(M=="async")return O.marked="property",S(ct);if(M=="variable"||O.style=="keyword"){if(O.marked="property",V=="get"||V=="set")return S(dt);var ye;return g&&O.state.fatArrowAt==O.stream.start&&(ye=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+ye[0].length),S(Ot)}else{if(M=="number"||M=="string")return O.marked=f?"property":O.style+" property",S(Ot);if(M=="jsonld-keyword")return S(Ot);if(g&&ve(V))return O.marked="keyword",S(ct);if(M=="[")return S(ce,Vn,Z("]"),Ot);if(M=="spread")return S(F,Ot);if(V=="*")return O.marked="keyword",S(ct);if(M==":")return k(Ot)}}function dt(M){return M!="variable"?k(Ot):(O.marked="property",S(br))}function Ot(M){if(M==":")return S(F);if(M=="(")return k(br)}function ut(M,V,ye){function ke(fe,Ie){if(ye?ye.indexOf(fe)>-1:fe==","){var gt=O.state.lexical;return gt.info=="call"&&(gt.pos=(gt.pos||0)+1),S(function(tn,$n){return tn==V||$n==V?k():k(M)},ke)}return fe==V||Ie==V?S():ye&&ye.indexOf(";")>-1?k(M):S(Z(V))}return function(fe,Ie){return fe==V||Ie==V?S():k(M,ke)}}function en(M,V,ye){for(var ke=3;ke<arguments.length;ke++)O.cc.push(arguments[ke]);return S(Re(V,ye),ut(M,V),z)}function Gt(M){return M=="}"?S():k(re,Gt)}function Vn(M,V){if(g){if(M==":")return S(at);if(V=="?")return S(Vn)}}function Jr(M,V){if(g&&(M==":"||V=="in"))return S(at)}function Wt(M){if(g&&M==":")return O.stream.match(/^\s*\w+\s+is\b/,!1)?S(ce,Gn,at):S(at)}function Gn(M,V){if(V=="is")return O.marked="keyword",S()}function at(M,V){if(V=="keyof"||V=="typeof"||V=="infer"||V=="readonly")return O.marked="keyword",S(V=="typeof"?F:at);if(M=="variable"||V=="void")return O.marked="type",S(yr);if(V=="|"||V=="&")return S(at);if(M=="string"||M=="number"||M=="atom")return S(yr);if(M=="[")return S(Re("]"),ut(at,"]",","),z,yr);if(M=="{")return S(Re("}"),Xe,z,yr);if(M=="(")return S(ut(Dt,")"),Bo,yr);if(M=="<")return S(ut(at,">"),at);if(M=="quasi")return k(hn,yr)}function Bo(M){if(M=="=>")return S(at)}function Xe(M){return M.match(/[\}\)\]]/)?S():M==","||M==";"?S(Xe):k(vi,Xe)}function vi(M,V){if(M=="variable"||O.style=="keyword")return O.marked="property",S(vi);if(V=="?"||M=="number"||M=="string")return S(vi);if(M==":")return S(at);if(M=="[")return S(Z("variable"),Jr,Z("]"),vi);if(M=="(")return k(Qi,vi);if(!M.match(/[;\}\)\],]/))return S()}function hn(M,V){return M!="quasi"?k():V.slice(V.length-2)!="${"?S(hn):S(at,It)}function It(M){if(M=="}")return O.marked="string-2",O.state.tokenize=q,S(hn)}function Dt(M,V){return M=="variable"&&O.stream.match(/^\s*[?:]/,!1)||V=="?"?S(Dt):M==":"?S(at):M=="spread"?S(Dt):k(at)}function yr(M,V){if(V=="<")return S(Re(">"),ut(at,">"),z,yr);if(V=="|"||M=="."||V=="&")return S(at);if(M=="[")return S(at,Z("]"),yr);if(V=="extends"||V=="implements")return O.marked="keyword",S(at);if(V=="?")return S(at,Z(":"),at)}function Kn(M,V){if(V=="<")return S(Re(">"),ut(at,">"),z,yr)}function Er(){return k(at,pn)}function pn(M,V){if(V=="=")return S(at)}function Ts(M,V){return V=="enum"?(O.marked="keyword",S(qe)):k(An,Vn,Ar,bd)}function An(M,V){if(g&&ve(V))return O.marked="keyword",S(An);if(M=="variable")return B(V),S();if(M=="spread")return S(An);if(M=="[")return en(jl,"]");if(M=="{")return en(Ji,"}")}function Ji(M,V){return M=="variable"&&!O.stream.match(/^\s*:/,!1)?(B(V),S(Ar)):(M=="variable"&&(O.marked="property"),M=="spread"?S(An):M=="}"?k():M=="["?S(ce,Z("]"),Z(":"),Ji):S(Z(":"),An,Ar))}function jl(){return k(An,Ar)}function Ar(M,V){if(V=="=")return S(F)}function bd(M){if(M==",")return S(Ts)}function Cs(M,V){if(M=="keyword b"&&V=="else")return S(Re("form","else"),re,z)}function Pc(M,V){if(V=="await")return S(Pc);if(M=="(")return S(Re(")"),Wl,z)}function Wl(M){return M=="var"?S(Ts,Zi):M=="variable"?S(Zi):k(Zi)}function Zi(M,V){return M==")"?S():M==";"?S(Zi):V=="in"||V=="of"?(O.marked="keyword",S(ce,Zi)):k(ce,Zi)}function br(M,V){if(V=="*")return O.marked="keyword",S(br);if(M=="variable")return B(V),S(br);if(M=="(")return S(Ge,Re(")"),ut($r,")"),z,Wt,re,He);if(g&&V=="<")return S(Re(">"),ut(Er,">"),z,br)}function Qi(M,V){if(V=="*")return O.marked="keyword",S(Qi);if(M=="variable")return B(V),S(Qi);if(M=="(")return S(Ge,Re(")"),ut($r,")"),z,Wt,He);if(g&&V=="<")return S(Re(">"),ut(Er,">"),z,Qi)}function Ic(M,V){if(M=="keyword"||M=="variable")return O.marked="type",S(Ic);if(V=="<")return S(Re(">"),ut(Er,">"),z)}function $r(M,V){return V=="@"&&S(ce,$r),M=="spread"?S($r):g&&ve(V)?(O.marked="keyword",S($r)):g&&M=="this"?S(Vn,Ar):k(An,Vn,Ar)}function wd(M,V){return M=="variable"?Es(M,V):Nr(M,V)}function Es(M,V){if(M=="variable")return B(V),S(Nr)}function Nr(M,V){if(V=="<")return S(Re(">"),ut(Er,">"),z,Nr);if(V=="extends"||V=="implements"||g&&M==",")return V=="implements"&&(O.marked="keyword"),S(g?at:ce,Nr);if(M=="{")return S(Re("}"),Mr,z)}function Mr(M,V){if(M=="async"||M=="variable"&&(V=="static"||V=="get"||V=="set"||g&&ve(V))&&O.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return O.marked="keyword",S(Mr);if(M=="variable"||O.style=="keyword")return O.marked="property",S(jo,Mr);if(M=="number"||M=="string")return S(jo,Mr);if(M=="[")return S(ce,Vn,Z("]"),jo,Mr);if(V=="*")return O.marked="keyword",S(Mr);if(g&&M=="(")return k(Qi,Mr);if(M==";"||M==",")return S(Mr);if(M=="}")return S();if(V=="@")return S(ce,Mr)}function jo(M,V){if(V=="!"||V=="?")return S(jo);if(M==":")return S(at,Ar);if(V=="=")return S(F);var ye=O.state.lexical.prev,ke=ye&&ye.info=="interface";return k(ke?Qi:br)}function As(M,V){return V=="*"?(O.marked="keyword",S(Ms,Z(";"))):V=="default"?(O.marked="keyword",S(ce,Z(";"))):M=="{"?S(ut($s,"}"),Ms,Z(";")):k(re)}function $s(M,V){if(V=="as")return O.marked="keyword",S(Z("variable"));if(M=="variable")return k(F,$s)}function eo(M){return M=="string"?S():M=="("?k(ce):M=="."?k(he):k(Ns,Zr,Ms)}function Ns(M,V){return M=="{"?en(Ns,"}"):(M=="variable"&&B(V),V=="*"&&(O.marked="keyword"),S(ql))}function Zr(M){if(M==",")return S(Ns,Zr)}function ql(M,V){if(V=="as")return O.marked="keyword",S(Ns)}function Ms(M,V){if(V=="from")return O.marked="keyword",S(ce)}function Ft(M){return M=="]"?S():k(ut(F,"]"))}function qe(){return k(Re("form"),An,Z("{"),Re("}"),ut(yi,"}"),z,z)}function yi(){return k(An,Ar)}function Ul(M,V){return M.lastType=="operator"||M.lastType==","||w.test(V.charAt(0))||/[,.]/.test(V.charAt(0))}function or(M,V,ye){return V.tokenize==D&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(V.lastType)||V.lastType=="quasi"&&/\{\s*$/.test(M.string.slice(0,M.pos-(ye||0)))}return{startState:function(M){var V={tokenize:D,lastType:"sof",cc:[],lexical:new U((M||0)-l,0,"block",!1),localVars:o.localVars,context:o.localVars&&new _e(null,null,!1),indented:M||0};return o.globalVars&&typeof o.globalVars=="object"&&(V.globalVars=o.globalVars),V},token:function(M,V){if(M.sol()&&(V.lexical.hasOwnProperty("align")||(V.lexical.align=!1),V.indented=M.indentation(),ie(M,V)),V.tokenize!=I&&M.eatSpace())return null;var ye=V.tokenize(M,V);return C=="comment"?ye:(V.lastType=C=="operator"&&(E=="++"||E=="--")?"incdec":C,P(V,ye,C,E,M))},indent:function(M,V){if(M.tokenize==I||M.tokenize==q)return n.Pass;if(M.tokenize!=D)return 0;var ye=V&&V.charAt(0),ke=M.lexical,fe;if(!/^\s*else\b/.test(V))for(var Ie=M.cc.length-1;Ie>=0;--Ie){var gt=M.cc[Ie];if(gt==z)ke=ke.prev;else if(gt!=Cs&&gt!=He)break}for(;(ke.type=="stat"||ke.type=="form")&&(ye=="}"||(fe=M.cc[M.cc.length-1])&&(fe==he||fe==me)&&!/^[,\.=+\-*:?[\(]/.test(V));)ke=ke.prev;u&&ke.type==")"&&ke.prev.type=="stat"&&(ke=ke.prev);var tn=ke.type,$n=ye==tn;return tn=="vardef"?ke.indented+(M.lastType=="operator"||M.lastType==","?ke.info.length+1:0):tn=="form"&&ye=="{"?ke.indented:tn=="form"?ke.indented+l:tn=="stat"?ke.indented+(Ul(M,V)?u||l:0):ke.info=="switch"&&!$n&&o.doubleIndentSwitch!=!1?ke.indented+(/^(?:case|default)\b/.test(V)?l:2*l):ke.align?ke.column+($n?0:1):ke.indented+($n?0:l)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:h?null:"/*",blockCommentEnd:h?null:"*/",blockCommentContinue:h?null:" * ",lineComment:h?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:h?"json":"javascript",jsonldMode:f,jsonMode:h,expressionAllowed:or,skipExpression:function(M){P(M,"atom","atom","true",new n.StringStream("",2,null))}}}),n.registerHelper("wordChars","javascript",/[\w$]/),n.defineMIME("text/javascript","javascript"),n.defineMIME("text/ecmascript","javascript"),n.defineMIME("application/javascript","javascript"),n.defineMIME("application/x-javascript","javascript"),n.defineMIME("application/ecmascript","javascript"),n.defineMIME("application/json",{name:"javascript",json:!0}),n.defineMIME("application/x-json",{name:"javascript",json:!0}),n.defineMIME("application/manifest+json",{name:"javascript",json:!0}),n.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),n.defineMIME("text/typescript",{name:"javascript",typescript:!0}),n.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})()),zb.exports}em();var Bb={exports:{}},jb;function tm(){return jb||(jb=1,(function(e,t){(function(n){n(Ho())})(function(n){var i={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},o={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};n.defineMode("xml",function(l,u){var f=l.indentUnit,h={},p=u.htmlMode?i:o;for(var g in p)h[g]=p[g];for(var g in u)h[g]=u[g];var v,y;function w(S,R){function B(_e){return R.tokenize=_e,_e(S,R)}var ae=S.next();if(ae=="<")return S.eat("!")?S.eat("[")?S.match("CDATA[")?B(C("atom","]]>")):null:S.match("--")?B(C("comment","-->")):S.match("DOCTYPE",!0,!0)?(S.eatWhile(/[\w\._\-]/),B(E(1))):null:S.eat("?")?(S.eatWhile(/[\w\._\-]/),R.tokenize=C("meta","?>"),"meta"):(v=S.eat("/")?"closeTag":"openTag",R.tokenize=$,"tag bracket");if(ae=="&"){var ve;return S.eat("#")?S.eat("x")?ve=S.eatWhile(/[a-fA-F\d]/)&&S.eat(";"):ve=S.eatWhile(/[\d]/)&&S.eat(";"):ve=S.eatWhile(/[\w\.\-:]/)&&S.eat(";"),ve?"atom":"error"}else return S.eatWhile(/[^&<]/),null}w.isInText=!0;function $(S,R){var B=S.next();if(B==">"||B=="/"&&S.eat(">"))return R.tokenize=w,v=B==">"?"endTag":"selfcloseTag","tag bracket";if(B=="=")return v="equals",null;if(B=="<"){R.tokenize=w,R.state=q,R.tagName=R.tagStart=null;var ae=R.tokenize(S,R);return ae?ae+" tag error":"tag error"}else return/[\'\"]/.test(B)?(R.tokenize=_(B),R.stringStartCol=S.column(),R.tokenize(S,R)):(S.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function _(S){var R=function(B,ae){for(;!B.eol();)if(B.next()==S){ae.tokenize=$;break}return"string"};return R.isInAttribute=!0,R}function C(S,R){return function(B,ae){for(;!B.eol();){if(B.match(R)){ae.tokenize=w;break}B.next()}return S}}function E(S){return function(R,B){for(var ae;(ae=R.next())!=null;){if(ae=="<")return B.tokenize=E(S+1),B.tokenize(R,B);if(ae==">")if(S==1){B.tokenize=w;break}else return B.tokenize=E(S-1),B.tokenize(R,B)}return"meta"}}function L(S){return S&&S.toLowerCase()}function D(S,R,B){this.prev=S.context,this.tagName=R||"",this.indent=S.indented,this.startOfLine=B,(h.doNotIndent.hasOwnProperty(R)||S.context&&S.context.noIndent)&&(this.noIndent=!0)}function N(S){S.context&&(S.context=S.context.prev)}function I(S,R){for(var B;;){if(!S.context||(B=S.context.tagName,!h.contextGrabbers.hasOwnProperty(L(B))||!h.contextGrabbers[L(B)].hasOwnProperty(L(R))))return;N(S)}}function q(S,R,B){return S=="openTag"?(B.tagStart=R.column(),X):S=="closeTag"?ie:q}function X(S,R,B){return S=="word"?(B.tagName=R.current(),y="tag",K):h.allowMissingTagName&&S=="endTag"?(y="tag bracket",K(S,R,B)):(y="error",X)}function ie(S,R,B){if(S=="word"){var ae=R.current();return B.context&&B.context.tagName!=ae&&h.implicitlyClosed.hasOwnProperty(L(B.context.tagName))&&N(B),B.context&&B.context.tagName==ae||h.matchClosing===!1?(y="tag",J):(y="tag error",U)}else return h.allowMissingTagName&&S=="endTag"?(y="tag bracket",J(S,R,B)):(y="error",U)}function J(S,R,B){return S!="endTag"?(y="error",J):(N(B),q)}function U(S,R,B){return y="error",J(S,R,B)}function K(S,R,B){if(S=="word")return y="attribute",P;if(S=="endTag"||S=="selfcloseTag"){var ae=B.tagName,ve=B.tagStart;return B.tagName=B.tagStart=null,S=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(L(ae))?I(B,ae):(I(B,ae),B.context=new D(B,ae,ve==B.indented)),q}return y="error",K}function P(S,R,B){return S=="equals"?O:(h.allowMissing||(y="error"),K(S,R,B))}function O(S,R,B){return S=="string"?k:S=="word"&&h.allowUnquoted?(y="string",K):(y="error",K(S,R,B))}function k(S,R,B){return S=="string"?k:K(S,R,B)}return{startState:function(S){var R={tokenize:w,state:q,indented:S||0,tagName:null,tagStart:null,context:null};return S!=null&&(R.baseIndent=S),R},token:function(S,R){if(!R.tagName&&S.sol()&&(R.indented=S.indentation()),S.eatSpace())return null;v=null;var B=R.tokenize(S,R);return(B||v)&&B!="comment"&&(y=null,R.state=R.state(v||B,S,R),y&&(B=y=="error"?B+" error":y)),B},indent:function(S,R,B){var ae=S.context;if(S.tokenize.isInAttribute)return S.tagStart==S.indented?S.stringStartCol+1:S.indented+f;if(ae&&ae.noIndent)return n.Pass;if(S.tokenize!=$&&S.tokenize!=w)return B?B.match(/^(\s*)/)[0].length:0;if(S.tagName)return h.multilineTagIndentPastTag!==!1?S.tagStart+S.tagName.length+2:S.tagStart+f*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(R))return 0;var ve=R&&/^<(\/)?([\w_:\.-]*)/.exec(R);if(ve&&ve[1])for(;ae;)if(ae.tagName==ve[2]){ae=ae.prev;break}else if(h.implicitlyClosed.hasOwnProperty(L(ae.tagName)))ae=ae.prev;else break;else if(ve)for(;ae;){var _e=h.contextGrabbers[L(ae.tagName)];if(_e&&_e.hasOwnProperty(L(ve[2])))ae=ae.prev;else break}for(;ae&&ae.prev&&!ae.startOfLine;)ae=ae.prev;return ae?ae.indent+f:S.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(S){S.state==O&&(S.state=K)},xmlCurrentTag:function(S){return S.tagName?{name:S.tagName,close:S.type=="closeTag"}:null},xmlCurrentContext:function(S){for(var R=[],B=S.context;B;B=B.prev)R.push(B.tagName);return R.reverse()}}}),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})})()),Bb.exports}tm();var Wb={exports:{}},qb={exports:{}},Ub;function Ege(){return Ub||(Ub=1,(function(e,t){(function(n){n(Ho())})(function(n){n.defineMode("css",function(U,K){var P=K.inline;K.propertyKeywords||(K=n.resolveMode("text/css"));var O=U.indentUnit,k=K.tokenHooks,S=K.documentTypes||{},R=K.mediaTypes||{},B=K.mediaFeatures||{},ae=K.mediaValueKeywords||{},ve=K.propertyKeywords||{},_e=K.nonStandardPropertyKeywords||{},Be=K.fontProperties||{},Ee=K.counterDescriptors||{},Ge=K.colorKeywords||{},Ue=K.valueKeywords||{},He=K.allowNested,Re=K.lineComment,z=K.supportsAtComponent===!0,Z=U.highlightNonStandardPropertyKeywords!==!1,re,le;function ce(Q,ue){return re=ue,Q}function F(Q,ue){var oe=Q.next();if(k[oe]){var Pe=k[oe](Q,ue);if(Pe!==!1)return Pe}if(oe=="@")return Q.eatWhile(/[\w\\\-]/),ce("def",Q.current());if(oe=="="||(oe=="~"||oe=="|")&&Q.eat("="))return ce(null,"compare");if(oe=='"'||oe=="'")return ue.tokenize=j(oe),ue.tokenize(Q,ue);if(oe=="#")return Q.eatWhile(/[\w\\\-]/),ce("atom","hash");if(oe=="!")return Q.match(/^\s*\w*/),ce("keyword","important");if(/\d/.test(oe)||oe=="."&&Q.eat(/\d/))return Q.eatWhile(/[\w.%]/),ce("number","unit");if(oe==="-"){if(/[\d.]/.test(Q.peek()))return Q.eatWhile(/[\w.%]/),ce("number","unit");if(Q.match(/^-[\w\\\-]*/))return Q.eatWhile(/[\w\\\-]/),Q.match(/^\s*:/,!1)?ce("variable-2","variable-definition"):ce("variable-2","variable");if(Q.match(/^\w+-/))return ce("meta","meta")}else return/[,+>*\/]/.test(oe)?ce(null,"select-op"):oe=="."&&Q.match(/^-?[_a-z][_a-z0-9-]*/i)?ce("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(oe)?ce(null,oe):Q.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(Q.current())&&(ue.tokenize=ee),ce("variable callee","variable")):/[\w\\\-]/.test(oe)?(Q.eatWhile(/[\w\\\-]/),ce("property","word")):ce(null,null)}function j(Q){return function(ue,oe){for(var Pe=!1,et;(et=ue.next())!=null;){if(et==Q&&!Pe){Q==")"&&ue.backUp(1);break}Pe=!Pe&&et=="\\"}return(et==Q||!Pe&&Q!=")")&&(oe.tokenize=null),ce("string","string")}}function ee(Q,ue){return Q.next(),Q.match(/^\s*[\"\')]/,!1)?ue.tokenize=null:ue.tokenize=j(")"),ce(null,"(")}function de(Q,ue,oe){this.type=Q,this.indent=ue,this.prev=oe}function he(Q,ue,oe,Pe){return Q.context=new de(oe,ue.indentation()+(Pe===!1?0:O),Q.context),oe}function me(Q){return Q.context.prev&&(Q.context=Q.context.prev),Q.context.type}function Ce(Q,ue,oe){return be[oe.context.type](Q,ue,oe)}function Ae(Q,ue,oe,Pe){for(var et=Pe||1;et>0;et--)oe.context=oe.context.prev;return Ce(Q,ue,oe)}function xe(Q){var ue=Q.current().toLowerCase();Ue.hasOwnProperty(ue)?le="atom":Ge.hasOwnProperty(ue)?le="keyword":le="variable"}var be={};return be.top=function(Q,ue,oe){if(Q=="{")return he(oe,ue,"block");if(Q=="}"&&oe.context.prev)return me(oe);if(z&&/@component/i.test(Q))return he(oe,ue,"atComponentBlock");if(/^@(-moz-)?document$/i.test(Q))return he(oe,ue,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(Q))return he(oe,ue,"atBlock");if(/^@(font-face|counter-style)/i.test(Q))return oe.stateArg=Q,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(Q))return"keyframes";if(Q&&Q.charAt(0)=="@")return he(oe,ue,"at");if(Q=="hash")le="builtin";else if(Q=="word")le="tag";else{if(Q=="variable-definition")return"maybeprop";if(Q=="interpolation")return he(oe,ue,"interpolation");if(Q==":")return"pseudo";if(He&&Q=="(")return he(oe,ue,"parens")}return oe.context.type},be.block=function(Q,ue,oe){if(Q=="word"){var Pe=ue.current().toLowerCase();return ve.hasOwnProperty(Pe)?(le="property","maybeprop"):_e.hasOwnProperty(Pe)?(le=Z?"string-2":"property","maybeprop"):He?(le=ue.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(le+=" error","maybeprop")}else return Q=="meta"?"block":!He&&(Q=="hash"||Q=="qualifier")?(le="error","block"):be.top(Q,ue,oe)},be.maybeprop=function(Q,ue,oe){return Q==":"?he(oe,ue,"prop"):Ce(Q,ue,oe)},be.prop=function(Q,ue,oe){if(Q==";")return me(oe);if(Q=="{"&&He)return he(oe,ue,"propBlock");if(Q=="}"||Q=="{")return Ae(Q,ue,oe);if(Q=="(")return he(oe,ue,"parens");if(Q=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(ue.current()))le+=" error";else if(Q=="word")xe(ue);else if(Q=="interpolation")return he(oe,ue,"interpolation");return"prop"},be.propBlock=function(Q,ue,oe){return Q=="}"?me(oe):Q=="word"?(le="property","maybeprop"):oe.context.type},be.parens=function(Q,ue,oe){return Q=="{"||Q=="}"?Ae(Q,ue,oe):Q==")"?me(oe):Q=="("?he(oe,ue,"parens"):Q=="interpolation"?he(oe,ue,"interpolation"):(Q=="word"&&xe(ue),"parens")},be.pseudo=function(Q,ue,oe){return Q=="meta"?"pseudo":Q=="word"?(le="variable-3",oe.context.type):Ce(Q,ue,oe)},be.documentTypes=function(Q,ue,oe){return Q=="word"&&S.hasOwnProperty(ue.current())?(le="tag",oe.context.type):be.atBlock(Q,ue,oe)},be.atBlock=function(Q,ue,oe){if(Q=="(")return he(oe,ue,"atBlock_parens");if(Q=="}"||Q==";")return Ae(Q,ue,oe);if(Q=="{")return me(oe)&&he(oe,ue,He?"block":"top");if(Q=="interpolation")return he(oe,ue,"interpolation");if(Q=="word"){var Pe=ue.current().toLowerCase();Pe=="only"||Pe=="not"||Pe=="and"||Pe=="or"?le="keyword":R.hasOwnProperty(Pe)?le="attribute":B.hasOwnProperty(Pe)?le="property":ae.hasOwnProperty(Pe)?le="keyword":ve.hasOwnProperty(Pe)?le="property":_e.hasOwnProperty(Pe)?le=Z?"string-2":"property":Ue.hasOwnProperty(Pe)?le="atom":Ge.hasOwnProperty(Pe)?le="keyword":le="error"}return oe.context.type},be.atComponentBlock=function(Q,ue,oe){return Q=="}"?Ae(Q,ue,oe):Q=="{"?me(oe)&&he(oe,ue,He?"block":"top",!1):(Q=="word"&&(le="error"),oe.context.type)},be.atBlock_parens=function(Q,ue,oe){return Q==")"?me(oe):Q=="{"||Q=="}"?Ae(Q,ue,oe,2):be.atBlock(Q,ue,oe)},be.restricted_atBlock_before=function(Q,ue,oe){return Q=="{"?he(oe,ue,"restricted_atBlock"):Q=="word"&&oe.stateArg=="@counter-style"?(le="variable","restricted_atBlock_before"):Ce(Q,ue,oe)},be.restricted_atBlock=function(Q,ue,oe){return Q=="}"?(oe.stateArg=null,me(oe)):Q=="word"?(oe.stateArg=="@font-face"&&!Be.hasOwnProperty(ue.current().toLowerCase())||oe.stateArg=="@counter-style"&&!Ee.hasOwnProperty(ue.current().toLowerCase())?le="error":le="property","maybeprop"):"restricted_atBlock"},be.keyframes=function(Q,ue,oe){return Q=="word"?(le="variable","keyframes"):Q=="{"?he(oe,ue,"top"):Ce(Q,ue,oe)},be.at=function(Q,ue,oe){return Q==";"?me(oe):Q=="{"||Q=="}"?Ae(Q,ue,oe):(Q=="word"?le="tag":Q=="hash"&&(le="builtin"),"at")},be.interpolation=function(Q,ue,oe){return Q=="}"?me(oe):Q=="{"||Q==";"?Ae(Q,ue,oe):(Q=="word"?le="variable":Q!="variable"&&Q!="("&&Q!=")"&&(le="error"),"interpolation")},{startState:function(Q){return{tokenize:null,state:P?"block":"top",stateArg:null,context:new de(P?"block":"top",Q||0,null)}},token:function(Q,ue){if(!ue.tokenize&&Q.eatSpace())return null;var oe=(ue.tokenize||F)(Q,ue);return oe&&typeof oe=="object"&&(re=oe[1],oe=oe[0]),le=oe,re!="comment"&&(ue.state=be[ue.state](re,Q,ue)),le},indent:function(Q,ue){var oe=Q.context,Pe=ue&&ue.charAt(0),et=oe.indent;return oe.type=="prop"&&(Pe=="}"||Pe==")")&&(oe=oe.prev),oe.prev&&(Pe=="}"&&(oe.type=="block"||oe.type=="top"||oe.type=="interpolation"||oe.type=="restricted_atBlock")?(oe=oe.prev,et=oe.indent):(Pe==")"&&(oe.type=="parens"||oe.type=="atBlock_parens")||Pe=="{"&&(oe.type=="at"||oe.type=="atBlock"))&&(et=Math.max(0,oe.indent-O))),et},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:Re,fold:"brace"}});function i(U){for(var K={},P=0;P<U.length;++P)K[U[P].toLowerCase()]=!0;return K}var o=["domain","regexp","url","url-prefix"],l=i(o),u=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],f=i(u),h=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],p=i(h),g=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],v=i(g),y=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],w=i(y),$=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],_=i($),C=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],E=i(C),L=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],D=i(L),N=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],I=i(N),q=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],X=i(q),ie=o.concat(u).concat(h).concat(g).concat(y).concat($).concat(N).concat(q);n.registerHelper("hintWords","css",ie);function J(U,K){for(var P=!1,O;(O=U.next())!=null;){if(P&&O=="/"){K.tokenize=null;break}P=O=="*"}return["comment","comment"]}n.defineMIME("text/css",{documentTypes:l,mediaTypes:f,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:_,fontProperties:E,counterDescriptors:D,colorKeywords:I,valueKeywords:X,tokenHooks:{"/":function(U,K){return U.eat("*")?(K.tokenize=J,J(U,K)):!1}},name:"css"}),n.defineMIME("text/x-scss",{mediaTypes:f,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:_,colorKeywords:I,valueKeywords:X,fontProperties:E,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(U,K){return U.eat("/")?(U.skipToEnd(),["comment","comment"]):U.eat("*")?(K.tokenize=J,J(U,K)):["operator","operator"]},":":function(U){return U.match(/^\s*\{/,!1)?[null,null]:!1},$:function(U){return U.match(/^[\w-]+/),U.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(U){return U.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),n.defineMIME("text/x-less",{mediaTypes:f,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:_,colorKeywords:I,valueKeywords:X,fontProperties:E,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(U,K){return U.eat("/")?(U.skipToEnd(),["comment","comment"]):U.eat("*")?(K.tokenize=J,J(U,K)):["operator","operator"]},"@":function(U){return U.eat("{")?[null,"interpolation"]:U.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(U.eatWhile(/[\w\\\-]/),U.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),n.defineMIME("text/x-gss",{documentTypes:l,mediaTypes:f,mediaFeatures:p,propertyKeywords:w,nonStandardPropertyKeywords:_,fontProperties:E,counterDescriptors:D,colorKeywords:I,valueKeywords:X,supportsAtComponent:!0,tokenHooks:{"/":function(U,K){return U.eat("*")?(K.tokenize=J,J(U,K)):!1}},name:"css",helperType:"gss"})})})()),qb.exports}var Vb;function Age(){return Vb||(Vb=1,(function(e,t){(function(n){n(Ho(),tm(),em(),Ege())})(function(n){var i={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function o(v,y,w){var $=v.current(),_=$.search(y);return _>-1?v.backUp($.length-_):$.match(/<\/?$/)&&(v.backUp($.length),v.match(y,!1)||v.match($)),w}var l={};function u(v){var y=l[v];return y||(l[v]=new RegExp("\\s+"+v+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function f(v,y){var w=v.match(u(y));return w?/^\s*(.*?)\s*$/.exec(w[2])[1]:""}function h(v,y){return new RegExp((y?"^":"")+"</\\s*"+v+"\\s*>","i")}function p(v,y){for(var w in v)for(var $=y[w]||(y[w]=[]),_=v[w],C=_.length-1;C>=0;C--)$.unshift(_[C])}function g(v,y){for(var w=0;w<v.length;w++){var $=v[w];if(!$[0]||$[1].test(f(y,$[0])))return $[2]}}n.defineMode("htmlmixed",function(v,y){var w=n.getMode(v,{name:"xml",htmlMode:!0,multilineTagIndentFactor:y.multilineTagIndentFactor,multilineTagIndentPastTag:y.multilineTagIndentPastTag,allowMissingTagName:y.allowMissingTagName}),$={},_=y&&y.tags,C=y&&y.scriptTypes;if(p(i,$),_&&p(_,$),C)for(var E=C.length-1;E>=0;E--)$.script.unshift(["type",C[E].matches,C[E].mode]);function L(D,N){var I=w.token(D,N.htmlState),q=/\btag\b/.test(I),X;if(q&&!/[<>\s\/]/.test(D.current())&&(X=N.htmlState.tagName&&N.htmlState.tagName.toLowerCase())&&$.hasOwnProperty(X))N.inTag=X+" ";else if(N.inTag&&q&&/>$/.test(D.current())){var ie=/^([\S]+) (.*)/.exec(N.inTag);N.inTag=null;var J=D.current()==">"&&g($[ie[1]],ie[2]),U=n.getMode(v,J),K=h(ie[1],!0),P=h(ie[1],!1);N.token=function(O,k){return O.match(K,!1)?(k.token=L,k.localState=k.localMode=null,null):o(O,P,k.localMode.token(O,k.localState))},N.localMode=U,N.localState=n.startState(U,w.indent(N.htmlState,"",""))}else N.inTag&&(N.inTag+=D.current(),D.eol()&&(N.inTag+=" "));return I}return{startState:function(){var D=n.startState(w);return{token:L,inTag:null,localMode:null,localState:null,htmlState:D}},copyState:function(D){var N;return D.localState&&(N=n.copyState(D.localMode,D.localState)),{token:D.token,inTag:D.inTag,localMode:D.localMode,localState:N,htmlState:n.copyState(w,D.htmlState)}},token:function(D,N){return N.token(D,N)},indent:function(D,N,I){return!D.localMode||/^\s*<\//.test(N)?w.indent(D.htmlState,N,I):D.localMode.indent?D.localMode.indent(D.localState,N,I):n.Pass},innerMode:function(D){return{state:D.localState||D.htmlState,mode:D.localMode||w}}}},"xml","javascript","css"),n.defineMIME("text/html","htmlmixed")})})()),Wb.exports}Age();var Gb={exports:{}},Kb;function $ge(){return Kb||(Kb=1,(function(e,t){(function(n){n(Ho(),tm(),em())})(function(n){function i(l,u,f,h){this.state=l,this.mode=u,this.depth=f,this.prev=h}function o(l){return new i(n.copyState(l.mode,l.state),l.mode,l.depth,l.prev&&o(l.prev))}n.defineMode("jsx",function(l,u){var f=n.getMode(l,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=n.getMode(l,u&&u.base||"javascript");function p(w){var $=w.tagName;w.tagName=null;var _=f.indent(w,"","");return w.tagName=$,_}function g(w,$){return $.context.mode==f?v(w,$,$.context):y(w,$,$.context)}function v(w,$,_){if(_.depth==2)return w.match(/^.*?\*\//)?_.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){f.skipAttribute(_.state);var C=p(_.state),E=_.state.context;if(E&&w.match(/^[^>]*>\s*$/,!1)){for(;E.prev&&!E.startOfLine;)E=E.prev;E.startOfLine?C-=l.indentUnit:_.prev.state.lexical&&(C=_.prev.state.lexical.indented)}else _.depth==1&&(C+=l.indentUnit);return $.context=new i(n.startState(h,C),h,0,$.context),null}if(_.depth==1){if(w.peek()=="<")return f.skipAttribute(_.state),$.context=new i(n.startState(f,p(_.state)),f,0,$.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return _.depth=2,g(w,$)}var L=f.token(w,_.state),D=w.current(),N;return/\btag\b/.test(L)?/>$/.test(D)?_.state.context?_.depth=0:$.context=$.context.prev:/^</.test(D)&&(_.depth=1):!L&&(N=D.indexOf("{"))>-1&&w.backUp(D.length-N),L}function y(w,$,_){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(w,_.state))return $.context=new i(n.startState(f,h.indent(_.state,"","")),f,0,$.context),h.skipExpression(_.state),null;var C=h.token(w,_.state);if(!C&&_.depth!=null){var E=w.current();E=="{"?_.depth++:E=="}"&&--_.depth==0&&($.context=$.context.prev)}return C}return{startState:function(){return{context:new i(n.startState(h),h)}},copyState:function(w){return{context:o(w.context)}},token:g,indent:function(w,$,_){return w.context.mode.indent(w.context.state,$,_)},innerMode:function(w){return w.context}}},"xml","javascript"),n.defineMIME("text/jsx","jsx"),n.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})()),Gb.exports}$ge();var Yb={exports:{}},Xb;function Nge(){return Xb||(Xb=1,(function(e,t){(function(n){n(Ho())})(function(n){n.defineOption("placeholder","",function(p,g,v){var y=v&&v!=n.Init;if(g&&!y)p.on("blur",u),p.on("change",f),p.on("swapDoc",f),n.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){l(p)}),f(p);else if(!g&&y){p.off("blur",u),p.off("change",f),p.off("swapDoc",f),n.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),i(p);var w=p.getWrapperElement();w.className=w.className.replace(" CodeMirror-empty","")}g&&!p.hasFocus()&&u(p)});function i(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function o(p){i(p);var g=p.state.placeholder=document.createElement("pre");g.style.cssText="height: 0; overflow: visible",g.style.direction=p.getOption("direction"),g.className="CodeMirror-placeholder CodeMirror-line-like";var v=p.getOption("placeholder");typeof v=="string"&&(v=document.createTextNode(v)),g.appendChild(v),p.display.lineSpace.insertBefore(g,p.display.lineSpace.firstChild)}function l(p){setTimeout(function(){var g=!1;if(p.lineCount()==1){var v=p.getInputField();g=v.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(v.querySelector(".CodeMirror-line").textContent)}g?o(p):i(p)},20)}function u(p){h(p)&&o(p)}function f(p){var g=p.getWrapperElement(),v=h(p);g.className=g.className.replace(" CodeMirror-empty","")+(v?" CodeMirror-empty":""),v?o(p):i(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})})()),Yb.exports}Nge();var Jb={exports:{}},Zb;function Mge(){return Zb||(Zb=1,(function(e,t){(function(n){n(Ho())})(function(n){function i(u,f,h){this.orientation=f,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=u+"-"+f,this.inner=this.node.appendChild(document.createElement("div"));var p=this;n.on(this.inner,"mousedown",function(v){if(v.which!=1)return;n.e_preventDefault(v);var y=p.orientation=="horizontal"?"pageX":"pageY",w=v[y],$=p.pos;function _(){n.off(document,"mousemove",C),n.off(document,"mouseup",_)}function C(E){if(E.which!=1)return _();p.moveTo($+(E[y]-w)*(p.total/p.size))}n.on(document,"mousemove",C),n.on(document,"mouseup",_)}),n.on(this.node,"click",function(v){n.e_preventDefault(v);var y=p.inner.getBoundingClientRect(),w;p.orientation=="horizontal"?w=v.clientX<y.left?-1:v.clientX>y.right?1:0:w=v.clientY<y.top?-1:v.clientY>y.bottom?1:0,p.moveTo(p.pos+w*p.screen)});function g(v){var y=n.wheelEventPixels(v)[p.orientation=="horizontal"?"x":"y"],w=p.pos;p.moveTo(p.pos+y),p.pos!=w&&n.e_preventDefault(v)}n.on(this.node,"mousewheel",g),n.on(this.node,"DOMMouseScroll",g)}i.prototype.setPos=function(u,f){return u<0&&(u=0),u>this.total-this.screen&&(u=this.total-this.screen),!f&&u==this.pos?!1:(this.pos=u,this.inner.style[this.orientation=="horizontal"?"left":"top"]=u*(this.size/this.total)+"px",!0)},i.prototype.moveTo=function(u){this.setPos(u)&&this.scroll(u,this.orientation)};var o=10;i.prototype.update=function(u,f,h){var p=this.screen!=f||this.total!=u||this.size!=h;p&&(this.screen=f,this.total=u,this.size=h);var g=this.screen*(this.size/this.total);g<o&&(this.size-=o-g,g=o),this.inner.style[this.orientation=="horizontal"?"width":"height"]=g+"px",this.setPos(this.pos,p)};function l(u,f,h){this.addClass=u,this.horiz=new i(u,"horizontal",h),f(this.horiz.node),this.vert=new i(u,"vertical",h),f(this.vert.node),this.width=null}l.prototype.update=function(u){if(this.width==null){var f=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;f&&(this.width=parseInt(f.height))}var h=this.width||0,p=u.scrollWidth>u.clientWidth+1,g=u.scrollHeight>u.clientHeight+1;return this.vert.node.style.display=g?"block":"none",this.horiz.node.style.display=p?"block":"none",g&&(this.vert.update(u.scrollHeight,u.clientHeight,u.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(u.scrollWidth,u.clientWidth,u.viewWidth-(g?h:0)-u.barLeft),this.horiz.node.style.right=g?h+"px":"0",this.horiz.node.style.left=u.barLeft+"px"),{right:g?h:0,bottom:p?h:0}},l.prototype.setScrollTop=function(u){this.vert.setPos(u)},l.prototype.setScrollLeft=function(u){this.horiz.setPos(u)},l.prototype.clear=function(){var u=this.horiz.node.parentNode;u.removeChild(this.horiz.node),u.removeChild(this.vert.node)},n.scrollbarModel.simple=function(u,f){return new l("CodeMirror-simplescroll",u,f)},n.scrollbarModel.overlay=function(u,f){return new l("CodeMirror-overlayscroll",u,f)}})})()),Jb.exports}Mge();const Fn=Vt();function Lge(e,t,n={}){const i=XP.fromTextArea(e.value,{theme:"vars",...n,scrollbarStyle:"simple"});let o=!1;return i.on("change",()=>{if(o){o=!1;return}t.value=i.getValue()}),yt(t,l=>{if(l!==i.getValue()){o=!0;const u=i.listSelections();i.replaceRange(l,i.posFromIndex(0),i.posFromIndex(Number.POSITIVE_INFINITY)),i.setSelections(u)}},{immediate:!0}),_c(()=>{Fn.value=void 0}),Vf(i)}async function L_(e){dc({file:e.file.id,line:e.location?.line??1,view:"editor",test:e.id,column:null})}function Oge(e,t){dc({file:e,column:t.column-1,line:t.line,view:"editor",test:Fi.value})}function Rge(e,t){if(!t)return;const{line:n,column:i,file:o}=t;if(e.file.filepath!==o)return Zg(o,n,i);dc({file:e.file.id,column:i-1,line:n,view:"editor",test:Fi.value})}const Tr=Ke(),vl=Ke(!0),Do=Ke(!1),Ef=Ke(!0),O_=Se(()=>pt.value?.coverage),Pp=Se(()=>O_.value?.enabled),$a=Se(()=>Pp.value&&!!O_.value?.htmlDir),yl=Cc("vitest-ui_splitpanes-mainSizes",[33,67]),ms=Cc("vitest-ui_splitpanes-detailSizes",[window.__vitest_browser_runner__?.provider==="webdriverio"?lr.value[0]/window.outerWidth*100:33,67]),Bi=Cc("vitest-ui_details-panel-visible",!0),Tn=Ke("right");At(()=>{yt(pt,()=>{pt.value?.browser?.detailsPanelPosition&&(Tn.value=pt.value.browser.detailsPanelPosition)})});function Pge(){setTimeout(()=>{Bi.value=!1},0)}function Ige(){Bi.value=!0}const fn=dr({navigation:yl.value[0],details:{size:yl.value[1],browser:ms.value[0],main:ms.value[1]}});yt(dd,e=>{Ef.value=e==="running"},{immediate:!0});function Dge(){const e=Io.value;if(e&&e.length>0){const t=Cr(e);t?(Tr.value=t,vl.value=!1,Do.value=!1):qN(()=>ft.state.getFiles(),()=>{Tr.value=Cr(e),vl.value=!1,Do.value=!1})}return vl}function Af(e){vl.value=e,Do.value=!1,e&&(Tr.value=void 0,Io.value="")}function dc({file:e,line:t,view:n,test:i,column:o}){Io.value=e,N_.value=t,M_.value=o,yn.value=n,Fi.value=i,Tr.value=Cr(e),Af(!1)}function Fge(e){e.type==="test"?yn.value==="editor"?L_(e):dc({file:e.file.id,line:null,column:null,view:yn.value,test:e.id}):dc({file:e.file.id,test:null,line:null,view:yn.value,column:null})}function zge(){Do.value=!0,vl.value=!1,Tr.value=void 0,Io.value=""}function Hge(){if(gr?.provider==="webdriverio"){const e=window.outerWidth*(fn.details.size/100);return(lr.value[0]+20)/e*100}return 33}function Bge(){fn.navigation=33,fn.details.size=67,yl.value=[33,67]}function R_(){fn.details.main!==0&&(fn.details.browser=Hge(),fn.details.main=100-fn.details.browser,ms.value=[fn.details.browser,fn.details.main])}function jge(){Tn.value=Tn.value==="right"?"bottom":"right";const e=Tn.value==="bottom"?33:50;ms.value=[e,100-e],fn.details.browser=e,fn.details.main=100-e}const Wge={setCurrentFileId(e){Io.value=e,Tr.value=Cr(e),Af(!1)},async setIframeViewport(e,t){lr.value=[e,t],gr?.provider==="webdriverio"&&R_(),await new Promise(n=>requestAnimationFrame(n))}},qge=location.port,Uge=[location.hostname,qge].filter(Boolean).join(":"),Vge=`${location.protocol==="https:"?"wss:":"ws:"}//${Uge}/__vitest_api__?token=${window.VITEST_API_TOKEN||"0"}`,pr=!!window.METADATA_PATH;var ur=Uint8Array,sl=Uint16Array,Gge=Int32Array,P_=new ur([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),I_=new ur([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Kge=new ur([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),D_=function(e,t){for(var n=new sl(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];for(var o=new Gge(n[30]),i=1;i<30;++i)for(var l=n[i];l<n[i+1];++l)o[l]=l-n[i]<<5|i;return{b:n,r:o}},F_=D_(P_,2),z_=F_.b,Yge=F_.r;z_[28]=258,Yge[258]=28;var Xge=D_(I_,0),Jge=Xge.b,Ip=new sl(32768);for(var Mt=0;Mt<32768;++Mt){var fo=(Mt&43690)>>1|(Mt&21845)<<1;fo=(fo&52428)>>2|(fo&13107)<<2,fo=(fo&61680)>>4|(fo&3855)<<4,Ip[Mt]=((fo&65280)>>8|(fo&255)<<8)>>1}var qa=(function(e,t,n){for(var i=e.length,o=0,l=new sl(t);o<i;++o)e[o]&&++l[e[o]-1];var u=new sl(t);for(o=1;o<t;++o)u[o]=u[o-1]+l[o-1]<<1;var f;if(n){f=new sl(1<<t);var h=15-t;for(o=0;o<i;++o)if(e[o])for(var p=o<<4|e[o],g=t-e[o],v=u[e[o]-1]++<<g,y=v|(1<<g)-1;v<=y;++v)f[Ip[v]>>h]=p}else for(f=new sl(i),o=0;o<i;++o)e[o]&&(f[o]=Ip[u[e[o]-1]++]>>15-e[o]);return f}),Mc=new ur(288);for(var Mt=0;Mt<144;++Mt)Mc[Mt]=8;for(var Mt=144;Mt<256;++Mt)Mc[Mt]=9;for(var Mt=256;Mt<280;++Mt)Mc[Mt]=7;for(var Mt=280;Mt<288;++Mt)Mc[Mt]=8;var H_=new ur(32);for(var Mt=0;Mt<32;++Mt)H_[Mt]=5;var Zge=qa(Mc,9,1),Qge=qa(H_,5,1),jh=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},Dr=function(e,t,n){var i=t/8|0;return(e[i]|e[i+1]<<8)>>(t&7)&n},Wh=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},eme=function(e){return(e+7)/8|0},B_=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new ur(e.subarray(t,n))},tme=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Zn=function(e,t,n){var i=new Error(t||tme[e]);if(i.code=e,Error.captureStackTrace&&Error.captureStackTrace(i,Zn),!n)throw i;return i},nm=function(e,t,n,i){var o=e.length,l=0;if(!o||t.f&&!t.l)return n||new ur(0);var u=!n,f=u||t.i!=2,h=t.i;u&&(n=new ur(o*3));var p=function(ce){var F=n.length;if(ce>F){var j=new ur(Math.max(F*2,ce));j.set(n),n=j}},g=t.f||0,v=t.p||0,y=t.b||0,w=t.l,$=t.d,_=t.m,C=t.n,E=o*8;do{if(!w){g=Dr(e,v,1);var L=Dr(e,v+1,3);if(v+=3,L)if(L==1)w=Zge,$=Qge,_=9,C=5;else if(L==2){var q=Dr(e,v,31)+257,X=Dr(e,v+10,15)+4,ie=q+Dr(e,v+5,31)+1;v+=14;for(var J=new ur(ie),U=new ur(19),K=0;K<X;++K)U[Kge[K]]=Dr(e,v+K*3,7);v+=X*3;for(var P=jh(U),O=(1<<P)-1,k=qa(U,P,1),K=0;K<ie;){var S=k[Dr(e,v,O)];v+=S&15;var D=S>>4;if(D<16)J[K++]=D;else{var R=0,B=0;for(D==16?(B=3+Dr(e,v,3),v+=2,R=J[K-1]):D==17?(B=3+Dr(e,v,7),v+=3):D==18&&(B=11+Dr(e,v,127),v+=7);B--;)J[K++]=R}}var ae=J.subarray(0,q),ve=J.subarray(q);_=jh(ae),C=jh(ve),w=qa(ae,_,1),$=qa(ve,C,1)}else Zn(1);else{var D=eme(v)+4,N=e[D-4]|e[D-3]<<8,I=D+N;if(I>o){h&&Zn(0);break}f&&p(y+N),n.set(e.subarray(D,I),y),t.b=y+=N,t.p=v=I*8,t.f=g;continue}if(v>E){h&&Zn(0);break}}f&&p(y+131072);for(var _e=(1<<_)-1,Be=(1<<C)-1,Ee=v;;Ee=v){var R=w[Wh(e,v)&_e],Ge=R>>4;if(v+=R&15,v>E){h&&Zn(0);break}if(R||Zn(2),Ge<256)n[y++]=Ge;else if(Ge==256){Ee=v,w=null;break}else{var Ue=Ge-254;if(Ge>264){var K=Ge-257,He=P_[K];Ue=Dr(e,v,(1<<He)-1)+z_[K],v+=He}var Re=$[Wh(e,v)&Be],z=Re>>4;Re||Zn(3),v+=Re&15;var ve=Jge[z];if(z>3){var He=I_[z];ve+=Wh(e,v)&(1<<He)-1,v+=He}if(v>E){h&&Zn(0);break}f&&p(y+131072);var Z=y+Ue;if(y<ve){var re=l-ve,le=Math.min(ve,Z);for(re+y<0&&Zn(3);y<le;++y)n[y]=i[re+y]}for(;y<Z;++y)n[y]=n[y-ve]}}t.l=w,t.p=Ee,t.b=y,t.f=g,w&&(g=1,t.m=_,t.d=$,t.n=C)}while(!g);return y!=n.length&&u?B_(n,0,y):n.subarray(0,y)},nme=new ur(0),rme=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Zn(6,"invalid gzip data");var t=e[3],n=10;t&4&&(n+=(e[10]|e[11]<<8)+2);for(var i=(t>>3&1)+(t>>4&1);i>0;i-=!e[n++]);return n+(t&2)},ime=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},ome=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Zn(6,"invalid zlib data"),(e[1]>>5&1)==1&&Zn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function sme(e,t){return nm(e,{i:2},t,t)}function lme(e,t){var n=rme(e);return n+8>e.length&&Zn(6,"invalid gzip data"),nm(e.subarray(n,-8),{i:2},new ur(ime(e)),t)}function ame(e,t){return nm(e.subarray(ome(e),-4),{i:2},t,t)}function cme(e,t){return e[0]==31&&e[1]==139&&e[2]==8?lme(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?sme(e,t):ame(e,t)}var Dp=typeof TextDecoder<"u"&&new TextDecoder,ume=0;try{Dp.decode(nme,{stream:!0}),ume=1}catch{}var fme=function(e){for(var t="",n=0;;){var i=e[n++],o=(i>127)+(i>223)+(i>239);if(n+o>e.length)return{s:t,r:B_(e,n-1)};o?o==3?(i=((i&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,t+=String.fromCharCode(55296|i>>10,56320|i&1023)):o&1?t+=String.fromCharCode((i&31)<<6|e[n++]&63):t+=String.fromCharCode((i&15)<<12|(e[n++]&63)<<6|e[n++]&63):t+=String.fromCharCode(i)}};function Qb(e,t){var n;if(Dp)return Dp.decode(e);var i=fme(e),o=i.s,n=i.r;return n.length&&Zn(8),o}const ew=()=>{},vn=()=>Promise.resolve();function dme(){const e=dr({state:new p_,waitForConnection:u,reconnect:o,ws:new EventTarget});e.state.filesMap=dr(e.state.filesMap),e.state.idMap=dr(e.state.idMap);let t;const n={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getResolvedProjectNames:()=>t.projects,getResolvedProjectLabels:()=>[],getModuleGraph:async(f,h)=>t.moduleGraph[f]?.[h],getUnhandledErrors:()=>t.unhandledErrors,getExternalResult:vn,getTransformResult:vn,onDone:ew,writeFile:vn,rerun:vn,rerunTask:vn,updateSnapshot:vn,resolveSnapshotPath:vn,snapshotSaved:vn,onAfterSuiteRun:vn,onCancel:vn,getCountOfFailedTests:()=>0,sendLog:vn,resolveSnapshotRawPath:vn,readSnapshotFile:vn,saveSnapshotFile:vn,readTestFile:async f=>t.sources[f],removeSnapshotFile:vn,onUnhandledError:ew,saveTestFile:vn,getProvidedContext:()=>({}),getTestFiles:vn};e.rpc=n;const i=Promise.resolve();function o(){l()}async function l(){const f=await fetch(window.METADATA_PATH),h=new Uint8Array(await f.arrayBuffer());if(h.length>=2&&h[0]===31&&h[1]===139){const g=Qb(cme(h));t=Ap(g)}else t=Ap(Qb(h));const p=new Event("open");e.ws.dispatchEvent(p)}l();function u(){return i}return e}const ft=(function(){return pr?dme():uP(Vge,{reactive:(t,n)=>n==="state"?dr(t):Vt(t),handlers:{onTestAnnotate(t,n){$e.recordTestArtifact(t,{type:"internal:annotation",annotation:n,location:n.location})},onTestArtifactRecord(t,n){$e.recordTestArtifact(t,n)},onTaskUpdate(t,n){$e.resumeRun(t,n),dd.value="running"},onSpecsCollected(t,n){$e.startTime=n||performance.now()},onFinished(t,n,i,o){$e.endRun(o),So.value=(n||[]).map(A_)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})})(),pt=Vt({}),ll=Ke("CONNECTING"),rm=Vt([]),Xt=Se(()=>{const e=Io.value;return e?Cr(e):void 0}),j_=Se(()=>Wg(Xt.value).map(e=>e?.logs||[]).flat()||[]);function Cr(e){const t=ft.state.idMap.get(e);return t||void 0}const hme=Se(()=>ll.value==="OPEN"),qh=Se(()=>ll.value==="CONNECTING");function pme(){return im(ft.state.getFiles())}function W_(e){delete e.result;const t=$e.nodes.get(e.id);if(t&&(t.state=void 0,e.mode="run",t.duration=void 0,Ac(e)))for(const n of e.tasks)W_(n)}function gme(e){const t=$e.nodes;e.forEach(n=>{delete n.result,Wg(n).forEach(o=>{if(delete o.result,t.has(o.id)){const l=t.get(o.id);l&&(l.state=void 0,l.mode="run",l.duration=void 0)}});const i=t.get(n.id);i&&(i.state=void 0,i.mode="run",i.duration=void 0,Wn(i)&&(i.collectDuration=void 0))})}function im(e){return gme(e),$e.startRun(),ft.rpc.rerun(e.map(t=>t.filepath),!0)}function mme(e){return W_(e),$e.startRun(),ft.rpc.rerunTask(e.id)}const gr=window.__vitest_browser_runner__;window.__vitest_ui_api__=Wge;yt(()=>ft.ws,e=>{ll.value=pr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{ll.value="OPEN",ft.state.filesMap.clear();let[t,n,i,o]=await Promise.all([ft.rpc.getFiles(),ft.rpc.getConfig(),ft.rpc.getUnhandledErrors(),ft.rpc.getResolvedProjectLabels()]);n.standalone&&(t=(await ft.rpc.getTestFiles()).map(([{name:u,root:f},h])=>{const p=e_(h,f,u);return p.mode="skip",p})),rm.value=o.map(l=>l.name),$e.loadFiles(t,o),ft.state.collectFiles(t),$e.startRun(),So.value=(i||[]).map(A_),pt.value=n}),e.addEventListener("close",()=>{setTimeout(()=>{ll.value==="CONNECTING"&&(ll.value="CLOSED")},1e3)})},{immediate:!0});const vme=["aria-label","opacity","disabled","hover"],Tt=tt({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,n)=>(te(),ge("button",{"aria-label":e.title,role:"button",opacity:e.disabled?10:70,rounded:"",disabled:e.disabled,hover:e.disabled||e.active?"":"bg-active op100",class:ot(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":e.active}]])},[Bt(t.$slots,"default",{},()=>[Y("span",{class:ot(e.icon),ma:"",block:""},null,2)])],10,vme))}}),yme={h:"full",flex:"~ col"},bme={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},wme={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},xme={class:"pointer-events-none","text-sm":""},Sme={key:0},_me={id:"tester-container",relative:""},kme=["data-scale"],tw=20,Tme=100,Cme=tt({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function n(p){const g=t[p];return lr.value[0]===g[0]&&lr.value[1]===g[1]}const{width:i,height:o}=rS();async function l(p){lr.value=t[p],gr?.provider==="webdriverio"&&R_()}const u=Se(()=>{if(gr?.provider==="webdriverio"){const[w,$]=lr.value;return{width:w,height:$}}const v=i.value*(fn.details.size/100)*(fn.details.browser/100)-tw,y=o.value-Tme;return{width:v,height:y}}),f=Se(()=>{if(gr?.provider==="webdriverio")return 1;const[p,g]=lr.value,{width:v,height:y}=u.value,w=v>p?1:v/p,$=y>g?1:y/g;return Math.min(1,w,$)}),h=Se(()=>{const p=u.value.width,g=lr.value[0];return`${Math.trunc((p+tw-g)/2)}px`});return(p,g)=>{const v=ir("tooltip");return te(),ge("div",yme,[Y("div",bme,[st(Ne(Tt,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:g[0]||(g[0]=y=>W(Bge)())},null,512),[[Co,W(fn).navigation<=15],[v,"Show Navigation Panel",void 0,{bottom:!0}]]),g[5]||(g[5]=Y("div",{class:"i-carbon-content-delivery-network"},null,-1)),g[6]||(g[6]=Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),st(Ne(Tt,{title:"Show Details Panel",icon:"i-carbon:side-panel-close",onClick:g[1]||(g[1]=y=>Bi.value=!0)},null,512),[[Co,W(Tn)==="right"&&!W(Bi)],[v,"Show Details Panel",void 0,{bottom:!0}]])]),Y("div",wme,[st(Ne(Tt,{title:"Small mobile",icon:"i-carbon:mobile",active:n("small-mobile"),onClick:g[2]||(g[2]=y=>l("small-mobile"))},null,8,["active"]),[[v,"Small mobile",void 0,{bottom:!0}]]),st(Ne(Tt,{title:"Large mobile",icon:"i-carbon:mobile-add",active:n("large-mobile"),onClick:g[3]||(g[3]=y=>l("large-mobile"))},null,8,["active"]),[[v,"Large mobile",void 0,{bottom:!0}]]),st(Ne(Tt,{title:"Tablet",icon:"i-carbon:tablet",active:n("tablet"),onClick:g[4]||(g[4]=y=>l("tablet"))},null,8,["active"]),[[v,"Tablet",void 0,{bottom:!0}]]),Y("span",xme,[Qe(Me(W(lr)[0])+"x"+Me(W(lr)[1])+"px ",1),f.value<1?(te(),ge("span",Sme,"("+Me((f.value*100).toFixed(0))+"%)",1)):Fe("",!0)])]),Y("div",_me,[Y("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":f.value,style:Pt({"--viewport-width":`${W(lr)[0]}px`,"--viewport-height":`${W(lr)[1]}px`,"--tester-transform":`scale(${f.value})`,"--tester-margin-left":h.value})}," Select a test to run ",12,kme)])])}}}),Eme=Xi(Cme,[["__scopeId","data-v-f70ca3ae"]]),hd=tt({__name:"DetailsHeaderButtons",setup(e){function t(n){return Tn.value==="right"?n==="hide"?"rotate-180":"":n==="hide"?"-rotate-90":"rotate-90"}return(n,i)=>{const o=ir("tooltip");return te(),ge(nt,null,[st(Ne(Tt,{title:`Switch panel position (${W(Tn)==="bottom"?"right":"bottom"})`,icon:"i-carbon-split-screen",class:ot({"rotate-90":W(Tn)==="right"}),onClick:W(jge)},null,8,["title","class","onClick"]),[[o,`Switch panel position (${W(Tn)==="bottom"?"right":"bottom"})`,void 0,{bottom:!0}]]),W(Bi)?st((te(),We(Tt,{key:0,title:W(Tn)==="right"?"Hide Right Panel":"Hide Bottom Panel",icon:"i-carbon:side-panel-close",class:ot(t("hide")),onClick:W(Pge)},null,8,["title","class","onClick"])),[[o,W(Tn)==="right"?"Hide Right Panel":"Hide Bottom Panel",void 0,{bottom:!0}]]):Fe("",!0),st(Ne(Tt,{title:W(Tn)==="right"?"Show Right Panel":"Show Bottom Panel",icon:"i-carbon:side-panel-close",class:ot(t("show")),onClick:W(Ige)},null,8,["title","class","onClick"]),[[Co,!W(Bi)],[o,W(Tn)==="right"?"Show Right Panel":"Show Bottom Panel",void 0,{bottom:!0}]])],64)}}}),Ame={p:"2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},$me=tt({__name:"ClosedDetailsHeader",setup(e){return(t,n)=>(te(),ge("div",Ame,[n[0]||(n[0]=Y("div",{"flex-1":""},null,-1)),Ne(hd)]))}}),Nme={"text-2xl":""},Mme={"text-lg":"",op50:""},Lme=tt({__name:"ConnectionOverlay",setup(e){return(t,n)=>W(hme)?Fe("",!0):(te(),ge("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:n[0]||(n[0]=(...i)=>W(ft).reconnect&&W(ft).reconnect(...i))},[Y("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:ot(W(qh)?"animate-pulse":"")},[Y("div",{text:"5xl",class:ot(W(qh)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),Y("div",Nme,Me(W(qh)?"Connecting...":"Disconnected"),1),Y("div",Mme," Check your terminal or start a new server with `"+Me(W(gr)?`vitest --browser=${W(gr).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),Ome={h:"full",flex:"~ col"},Rme={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},nw=tt({__name:"Coverage",setup(e){return(t,n)=>(te(),ge("div",Ome,[Y("div",Rme,[n[0]||(n[0]=Y("div",{class:"i-carbon:folder-details-reference"},null,-1)),n[1]||(n[1]=Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage",-1)),W(gr)?(te(),We(hd,{key:0})):Fe("",!0)]),n[2]||(n[2]=Y("div",{"flex-auto":"","py-1":"","bg-white":""},[Y("iframe",{id:"vitest-ui-coverage",src:"./coverage/index.html"})],-1))]))}}),Pme={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},Ime={"font-bold":""},Dme={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},Fme=["font-bold"],zme={text:"red500/70"},Hme={key:1,text:"sm","mb-2":""},Bme={"font-bold":""},jme={key:2,text:"sm","mb-2":""},Wme={"font-bold":""},qme=tt({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,n)=>(te(),ge(nt,null,[Y("h4",Pme,[Y("span",Ime,[Qe(Me(e.error.name||e.error.nameStr||"Unknown Error"),1),e.error.message?(te(),ge(nt,{key:0},[Qe(":")],64)):Fe("",!0)]),Qe(" "+Me(e.error.message),1)]),e.error.stacks?.length?(te(),ge("p",Dme,[(te(!0),ge(nt,null,xn(e.error.stacks,(i,o)=>(te(),ge("span",{key:o,"whitespace-pre":"","font-bold":o===0?"":null},[Qe("❯ "+Me(i.method)+" "+Me(i.file)+":",1),Y("span",zme,Me(i.line)+":"+Me(i.column),1),n[0]||(n[0]=Y("br",null,null,-1))],8,Fme))),128))])):Fe("",!0),e.error.VITEST_TEST_PATH?(te(),ge("p",Hme,[n[1]||(n[1]=Qe(" This error originated in ",-1)),Y("span",Bme,Me(e.error.VITEST_TEST_PATH),1),n[2]||(n[2]=Qe(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ",-1))])):Fe("",!0),e.error.VITEST_TEST_NAME?(te(),ge("div",jme,[n[3]||(n[3]=Qe(" The latest test that might've caused the error is ",-1)),Y("span",Wme,Me(e.error.VITEST_TEST_NAME),1),n[4]||(n[4]=Qe(". It might mean one of the following:",-1)),n[5]||(n[5]=Y("br",null,null,-1)),n[6]||(n[6]=Y("ul",null,[Y("li",null," The error was thrown, while Vitest was running this test. "),Y("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):Fe("",!0)],64))}}),Ume={"data-testid":"test-files-entry",grid:"~ cols-[min-content_1fr_min-content]","items-center":"",gap:"x-2 y-3",p:"x4",relative:"","font-light":"","w-80":"",op80:""},Vme={class:"number","data-testid":"num-files"},Gme={class:"number"},Kme={class:"number","text-purple-700":"","dark:text-purple-400":""},Yme={class:"number","text-red-700":"","dark:text-red-500":""},Xme={class:"number","text-red-700":"","dark:text-red-500":""},Jme={class:"number","text-red-700":"","dark:text-red-500":""},Zme={class:"number","data-testid":"run-time"},Qme={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},eve={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},tve={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},nve=tt({__name:"TestFilesEntry",setup(e){return(t,n)=>(te(),ge(nt,null,[Y("div",Ume,[n[10]||(n[10]=Y("div",{"i-carbon-document":""},null,-1)),n[11]||(n[11]=Y("div",null,"Files",-1)),Y("div",Vme,Me(W($e).summary.files),1),W($e).summary.filesSuccess?(te(),ge(nt,{key:0},[n[0]||(n[0]=Y("div",{"i-carbon-checkmark":""},null,-1)),n[1]||(n[1]=Y("div",null,"Pass",-1)),Y("div",Gme,Me(W($e).summary.filesSuccess),1)],64)):Fe("",!0),W($e).summary.filesSkipped?(te(),ge(nt,{key:1},[n[2]||(n[2]=Y("div",{"i-carbon:redo":"","rotate-90":""},null,-1)),n[3]||(n[3]=Y("div",null," Skip ",-1)),Y("div",Kme,Me(W($e).summary.filesSkipped),1)],64)):Fe("",!0),W($e).summary.filesFailed?(te(),ge(nt,{key:2},[n[4]||(n[4]=Y("div",{"i-carbon-close":""},null,-1)),n[5]||(n[5]=Y("div",null," Fail ",-1)),Y("div",Yme,Me(W($e).summary.filesFailed),1)],64)):Fe("",!0),W($e).summary.filesSnapshotFailed?(te(),ge(nt,{key:3},[n[6]||(n[6]=Y("div",{"i-carbon-compare":""},null,-1)),n[7]||(n[7]=Y("div",null," Snapshot Fail ",-1)),Y("div",Xme,Me(W($e).summary.filesSnapshotFailed),1)],64)):Fe("",!0),W(So).length?(te(),ge(nt,{key:4},[n[8]||(n[8]=Y("div",{"i-carbon-checkmark-outline-error":""},null,-1)),n[9]||(n[9]=Y("div",null," Errors ",-1)),Y("div",Jme,Me(W(So).length),1)],64)):Fe("",!0),n[12]||(n[12]=Y("div",{"i-carbon-timer":""},null,-1)),n[13]||(n[13]=Y("div",null,"Time",-1)),Y("div",Zme,Me(W($e).summary.time),1)]),W(So).length?(te(),ge("div",Qme,[n[17]||(n[17]=Y("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),Y("p",eve,[Qe(" Vitest caught "+Me(W(So).length)+" error"+Me(W(So).length>1?"s":"")+" during the test run.",1),n[14]||(n[14]=Y("br",null,null,-1)),n[15]||(n[15]=Qe(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ",-1))]),Y("details",tve,[n[16]||(n[16]=Y("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(te(!0),ge(nt,null,xn(W(So),(i,o)=>(te(),We(qme,{key:o,error:i},null,8,["error"]))),128))])])):Fe("",!0)],64))}}),rve=Xi(nve,[["__scopeId","data-v-cfae3633"]]),ive={"p-2":"","text-center":"",flex:""},ove={"text-4xl":"","min-w-2em":""},sve={"text-md":""},is=tt({__name:"DashboardEntry",setup(e){return(t,n)=>(te(),ge("div",ive,[Y("div",null,[Y("div",ove,[Bt(t.$slots,"body")]),Y("div",sve,[Bt(t.$slots,"header")])])]))}}),lve={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},ave=tt({__name:"TestsEntry",setup(e){function t(n){Ze.success=!1,Ze.failed=!1,Ze.skipped=!1,Ze.slow=!1,n!=="total"&&(Ze[n]=!0)}return(n,i)=>(te(),ge("div",lve,[Ne(is,{"text-green-700":"","dark:text-green-500":"","data-testid":"pass-entry","cursor-pointer":"",hover:"op80",onClick:i[0]||(i[0]=o=>t("success"))},{header:je(()=>[...i[5]||(i[5]=[Qe(" Pass ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsSuccess),1)]),_:1}),Ne(is,{class:ot({"text-red-700 dark:text-red-500":W($e).summary.testsFailed,op50:!W($e).summary.testsFailed}),"data-testid":"fail-entry","cursor-pointer":"",hover:"op80",onClick:i[1]||(i[1]=o=>t("failed"))},{header:je(()=>[...i[6]||(i[6]=[Qe(" Fail ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsFailed),1)]),_:1},8,["class"]),W($e).summary.testsExpectedFail?(te(),We(is,{key:0,"text-cyan-700":"","dark:text-cyan-500":"","data-testid":"expected-fail-entry"},{header:je(()=>[...i[7]||(i[7]=[Qe(" Expected Fail ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsExpectedFail),1)]),_:1})):Fe("",!0),W($e).summary.testsSkipped?(te(),We(is,{key:1,"text-purple-700":"","dark:text-purple-400":"","data-testid":"skipped-entry","cursor-pointer":"",hover:"op80",onClick:i[2]||(i[2]=o=>t("skipped"))},{header:je(()=>[...i[8]||(i[8]=[Qe(" Skip ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsSkipped),1)]),_:1})):Fe("",!0),W($e).summary.testsTodo?(te(),We(is,{key:2,op50:"","data-testid":"todo-entry"},{header:je(()=>[...i[9]||(i[9]=[Qe(" Todo ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsTodo),1)]),_:1})):Fe("",!0),Ne(is,{tail:!0,"data-testid":"total-entry","cursor-pointer":"",hover:"op80",onClick:i[3]||(i[3]=o=>t("total"))},{header:je(()=>[...i[10]||(i[10]=[Qe(" Total ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.totalTests),1)]),_:1}),W($e).summary.testsSlow?(te(),We(is,{key:3,"text-yellow-700":"","dark:text-yellow-500":"","data-testid":"slow-entry","cursor-pointer":"",hover:"op80",onClick:i[4]||(i[4]=o=>t("slow"))},{header:je(()=>[...i[11]||(i[11]=[Qe(" Slow ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsSlow),1)]),_:1})):Fe("",!0)]))}}),cve={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},uve={key:0,class:"text-gray-5"},fve={"aria-labelledby":"tests",m:"y-4 x-2"},dve=tt({__name:"TestsFilesContainer",setup(e){return(t,n)=>(te(),ge("div",cve,[W($e).summary.files===0&&W(ol)?(te(),ge("div",uve," No tests found ")):Fe("",!0),Y("section",fve,[Ne(ave)]),Ne(rve)]))}}),hve={h:"full",flex:"~ col"},pve={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},gve={class:"scrolls","flex-auto":"","py-1":""},rw=tt({__name:"Dashboard",setup(e){return(t,n)=>(te(),ge("div",hve,[Y("div",pve,[n[0]||(n[0]=Y("div",{class:"i-carbon-dashboard"},null,-1)),n[1]||(n[1]=Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard",-1)),W(gr)?(te(),We(hd,{key:0})):Fe("",!0)]),Y("div",gve,[Ne(dve)])]))}});var Uh,iw;function mve(){if(iw)return Uh;iw=1;var e=function(L){return t(L)&&!n(L)};function t(E){return!!E&&typeof E=="object"}function n(E){var L=Object.prototype.toString.call(E);return L==="[object RegExp]"||L==="[object Date]"||l(E)}var i=typeof Symbol=="function"&&Symbol.for,o=i?Symbol.for("react.element"):60103;function l(E){return E.$$typeof===o}function u(E){return Array.isArray(E)?[]:{}}function f(E,L){return L.clone!==!1&&L.isMergeableObject(E)?_(u(E),E,L):E}function h(E,L,D){return E.concat(L).map(function(N){return f(N,D)})}function p(E,L){if(!L.customMerge)return _;var D=L.customMerge(E);return typeof D=="function"?D:_}function g(E){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(E).filter(function(L){return Object.propertyIsEnumerable.call(E,L)}):[]}function v(E){return Object.keys(E).concat(g(E))}function y(E,L){try{return L in E}catch{return!1}}function w(E,L){return y(E,L)&&!(Object.hasOwnProperty.call(E,L)&&Object.propertyIsEnumerable.call(E,L))}function $(E,L,D){var N={};return D.isMergeableObject(E)&&v(E).forEach(function(I){N[I]=f(E[I],D)}),v(L).forEach(function(I){w(E,I)||(y(E,I)&&D.isMergeableObject(L[I])?N[I]=p(I,D)(E[I],L[I],D):N[I]=f(L[I],D))}),N}function _(E,L,D){D=D||{},D.arrayMerge=D.arrayMerge||h,D.isMergeableObject=D.isMergeableObject||e,D.cloneUnlessOtherwiseSpecified=f;var N=Array.isArray(L),I=Array.isArray(E),q=N===I;return q?N?D.arrayMerge(E,L,D):$(E,L,D):f(L,D)}_.all=function(L,D){if(!Array.isArray(L))throw new Error("first argument should be an array");return L.reduce(function(N,I){return _(N,I,D)},{})};var C=_;return Uh=C,Uh}var vve=mve();const yve=Jg(vve);function bve(e,t){let n;return(...i)=>{n!==void 0&&clearTimeout(n),n=setTimeout(()=>e(...i),t)}}var Fp="http://www.w3.org/1999/xhtml";const ow={svg:"http://www.w3.org/2000/svg",xhtml:Fp,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function pd(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),ow.hasOwnProperty(t)?{space:ow[t],local:e}:e}function wve(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Fp&&t.documentElement.namespaceURI===Fp?t.createElement(e):t.createElementNS(n,e)}}function xve(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function q_(e){var t=pd(e);return(t.local?xve:wve)(t)}function Sve(){}function om(e){return e==null?Sve:function(){return this.querySelector(e)}}function _ve(e){typeof e!="function"&&(e=om(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var l=t[o],u=l.length,f=i[o]=new Array(u),h,p,g=0;g<u;++g)(h=l[g])&&(p=e.call(h,h.__data__,g,l))&&("__data__"in h&&(p.__data__=h.__data__),f[g]=p);return new vr(i,this._parents)}function kve(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Tve(){return[]}function U_(e){return e==null?Tve:function(){return this.querySelectorAll(e)}}function Cve(e){return function(){return kve(e.apply(this,arguments))}}function Eve(e){typeof e=="function"?e=Cve(e):e=U_(e);for(var t=this._groups,n=t.length,i=[],o=[],l=0;l<n;++l)for(var u=t[l],f=u.length,h,p=0;p<f;++p)(h=u[p])&&(i.push(e.call(h,h.__data__,p,u)),o.push(h));return new vr(i,o)}function V_(e){return function(){return this.matches(e)}}function G_(e){return function(t){return t.matches(e)}}var Ave=Array.prototype.find;function $ve(e){return function(){return Ave.call(this.children,e)}}function Nve(){return this.firstElementChild}function Mve(e){return this.select(e==null?Nve:$ve(typeof e=="function"?e:G_(e)))}var Lve=Array.prototype.filter;function Ove(){return Array.from(this.children)}function Rve(e){return function(){return Lve.call(this.children,e)}}function Pve(e){return this.selectAll(e==null?Ove:Rve(typeof e=="function"?e:G_(e)))}function Ive(e){typeof e!="function"&&(e=V_(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var l=t[o],u=l.length,f=i[o]=[],h,p=0;p<u;++p)(h=l[p])&&e.call(h,h.__data__,p,l)&&f.push(h);return new vr(i,this._parents)}function K_(e){return new Array(e.length)}function Dve(){return new vr(this._enter||this._groups.map(K_),this._parents)}function $f(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}$f.prototype={constructor:$f,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Fve(e){return function(){return e}}function zve(e,t,n,i,o,l){for(var u=0,f,h=t.length,p=l.length;u<p;++u)(f=t[u])?(f.__data__=l[u],i[u]=f):n[u]=new $f(e,l[u]);for(;u<h;++u)(f=t[u])&&(o[u]=f)}function Hve(e,t,n,i,o,l,u){var f,h,p=new Map,g=t.length,v=l.length,y=new Array(g),w;for(f=0;f<g;++f)(h=t[f])&&(y[f]=w=u.call(h,h.__data__,f,t)+"",p.has(w)?o[f]=h:p.set(w,h));for(f=0;f<v;++f)w=u.call(e,l[f],f,l)+"",(h=p.get(w))?(i[f]=h,h.__data__=l[f],p.delete(w)):n[f]=new $f(e,l[f]);for(f=0;f<g;++f)(h=t[f])&&p.get(y[f])===h&&(o[f]=h)}function Bve(e){return e.__data__}function jve(e,t){if(!arguments.length)return Array.from(this,Bve);var n=t?Hve:zve,i=this._parents,o=this._groups;typeof e!="function"&&(e=Fve(e));for(var l=o.length,u=new Array(l),f=new Array(l),h=new Array(l),p=0;p<l;++p){var g=i[p],v=o[p],y=v.length,w=Wve(e.call(g,g&&g.__data__,p,i)),$=w.length,_=f[p]=new Array($),C=u[p]=new Array($),E=h[p]=new Array(y);n(g,v,_,C,E,w,t);for(var L=0,D=0,N,I;L<$;++L)if(N=_[L]){for(L>=D&&(D=L+1);!(I=C[D])&&++D<$;);N._next=I||null}}return u=new vr(u,i),u._enter=f,u._exit=h,u}function Wve(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function qve(){return new vr(this._exit||this._groups.map(K_),this._parents)}function Uve(e,t,n){var i=this.enter(),o=this,l=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(o=t(o),o&&(o=o.selection())),n==null?l.remove():n(l),i&&o?i.merge(o).order():o}function Vve(e){for(var t=e.selection?e.selection():e,n=this._groups,i=t._groups,o=n.length,l=i.length,u=Math.min(o,l),f=new Array(o),h=0;h<u;++h)for(var p=n[h],g=i[h],v=p.length,y=f[h]=new Array(v),w,$=0;$<v;++$)(w=p[$]||g[$])&&(y[$]=w);for(;h<o;++h)f[h]=n[h];return new vr(f,this._parents)}function Gve(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i=e[t],o=i.length-1,l=i[o],u;--o>=0;)(u=i[o])&&(l&&u.compareDocumentPosition(l)^4&&l.parentNode.insertBefore(u,l),l=u);return this}function Kve(e){e||(e=Yve);function t(v,y){return v&&y?e(v.__data__,y.__data__):!v-!y}for(var n=this._groups,i=n.length,o=new Array(i),l=0;l<i;++l){for(var u=n[l],f=u.length,h=o[l]=new Array(f),p,g=0;g<f;++g)(p=u[g])&&(h[g]=p);h.sort(t)}return new vr(o,this._parents).order()}function Yve(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Xve(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Jve(){return Array.from(this)}function Zve(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],o=0,l=i.length;o<l;++o){var u=i[o];if(u)return u}return null}function Qve(){let e=0;for(const t of this)++e;return e}function eye(){return!this.node()}function tye(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var o=t[n],l=0,u=o.length,f;l<u;++l)(f=o[l])&&e.call(f,f.__data__,l,o);return this}function nye(e){return function(){this.removeAttribute(e)}}function rye(e){return function(){this.removeAttributeNS(e.space,e.local)}}function iye(e,t){return function(){this.setAttribute(e,t)}}function oye(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function sye(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function lye(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function aye(e,t){var n=pd(e);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((t==null?n.local?rye:nye:typeof t=="function"?n.local?lye:sye:n.local?oye:iye)(n,t))}function Y_(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function cye(e){return function(){this.style.removeProperty(e)}}function uye(e,t,n){return function(){this.style.setProperty(e,t,n)}}function fye(e,t,n){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function dye(e,t,n){return arguments.length>1?this.each((t==null?cye:typeof t=="function"?fye:uye)(e,t,n??"")):Ll(this.node(),e)}function Ll(e,t){return e.style.getPropertyValue(t)||Y_(e).getComputedStyle(e,null).getPropertyValue(t)}function hye(e){return function(){delete this[e]}}function pye(e,t){return function(){this[e]=t}}function gye(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function mye(e,t){return arguments.length>1?this.each((t==null?hye:typeof t=="function"?gye:pye)(e,t)):this.node()[e]}function X_(e){return e.trim().split(/^|\s+/)}function sm(e){return e.classList||new J_(e)}function J_(e){this._node=e,this._names=X_(e.getAttribute("class")||"")}J_.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Z_(e,t){for(var n=sm(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function Q_(e,t){for(var n=sm(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function vye(e){return function(){Z_(this,e)}}function yye(e){return function(){Q_(this,e)}}function bye(e,t){return function(){(t.apply(this,arguments)?Z_:Q_)(this,e)}}function wye(e,t){var n=X_(e+"");if(arguments.length<2){for(var i=sm(this.node()),o=-1,l=n.length;++o<l;)if(!i.contains(n[o]))return!1;return!0}return this.each((typeof t=="function"?bye:t?vye:yye)(n,t))}function xye(){this.textContent=""}function Sye(e){return function(){this.textContent=e}}function _ye(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function kye(e){return arguments.length?this.each(e==null?xye:(typeof e=="function"?_ye:Sye)(e)):this.node().textContent}function Tye(){this.innerHTML=""}function Cye(e){return function(){this.innerHTML=e}}function Eye(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Aye(e){return arguments.length?this.each(e==null?Tye:(typeof e=="function"?Eye:Cye)(e)):this.node().innerHTML}function $ye(){this.nextSibling&&this.parentNode.appendChild(this)}function Nye(){return this.each($ye)}function Mye(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Lye(){return this.each(Mye)}function Oye(e){var t=typeof e=="function"?e:q_(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Rye(){return null}function Pye(e,t){var n=typeof e=="function"?e:q_(e),i=t==null?Rye:typeof t=="function"?t:om(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function Iye(){var e=this.parentNode;e&&e.removeChild(this)}function Dye(){return this.each(Iye)}function Fye(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function zye(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Hye(e){return this.select(e?zye:Fye)}function Bye(e){return arguments.length?this.property("__data__",e):this.node().__data__}function jye(e){return function(t){e.call(this,t,this.__data__)}}function Wye(e){return e.trim().split(/^|\s+/).map(function(t){var n="",i=t.indexOf(".");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{type:t,name:n}})}function qye(e){return function(){var t=this.__on;if(t){for(var n=0,i=-1,o=t.length,l;n<o;++n)l=t[n],(!e.type||l.type===e.type)&&l.name===e.name?this.removeEventListener(l.type,l.listener,l.options):t[++i]=l;++i?t.length=i:delete this.__on}}}function Uye(e,t,n){return function(){var i=this.__on,o,l=jye(t);if(i){for(var u=0,f=i.length;u<f;++u)if((o=i[u]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=l,o.options=n),o.value=t;return}}this.addEventListener(e.type,l,n),o={type:e.type,name:e.name,value:t,listener:l,options:n},i?i.push(o):this.__on=[o]}}function Vye(e,t,n){var i=Wye(e+""),o,l=i.length,u;if(arguments.length<2){var f=this.node().__on;if(f){for(var h=0,p=f.length,g;h<p;++h)for(o=0,g=f[h];o<l;++o)if((u=i[o]).type===g.type&&u.name===g.name)return g.value}return}for(f=t?Uye:qye,o=0;o<l;++o)this.each(f(i[o],t,n));return this}function ek(e,t,n){var i=Y_(e),o=i.CustomEvent;typeof o=="function"?o=new o(t,n):(o=i.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function Gye(e,t){return function(){return ek(this,e,t)}}function Kye(e,t){return function(){return ek(this,e,t.apply(this,arguments))}}function Yye(e,t){return this.each((typeof t=="function"?Kye:Gye)(e,t))}function*Xye(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],o=0,l=i.length,u;o<l;++o)(u=i[o])&&(yield u)}var tk=[null];function vr(e,t){this._groups=e,this._parents=t}function Lc(){return new vr([[document.documentElement]],tk)}function Jye(){return this}vr.prototype=Lc.prototype={constructor:vr,select:_ve,selectAll:Eve,selectChild:Mve,selectChildren:Pve,filter:Ive,data:jve,enter:Dve,exit:qve,join:Uve,merge:Vve,selection:Jye,order:Gve,sort:Kve,call:Xve,nodes:Jve,node:Zve,size:Qve,empty:eye,each:tye,attr:aye,style:dye,property:mye,classed:wye,text:kye,html:Aye,raise:Nye,lower:Lye,append:Oye,insert:Pye,remove:Dye,clone:Hye,datum:Bye,on:Vye,dispatch:Yye,[Symbol.iterator]:Xye};function er(e){return typeof e=="string"?new vr([[document.querySelector(e)]],[document.documentElement]):new vr([[e]],tk)}function Zye(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Li(e,t){if(e=Zye(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,i=i.matrixTransform(t.getScreenCTM().inverse()),[i.x,i.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}var Ol=class Ni{x;y;static of([t,n]){return new Ni(t,n)}constructor(t,n){this.x=t,this.y=n}add(t){return new Ni(this.x+t.x,this.y+t.y)}subtract(t){return new Ni(this.x-t.x,this.y-t.y)}multiply(t){return new Ni(this.x*t,this.y*t)}divide(t){return new Ni(this.x/t,this.y/t)}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-t.x*this.y}hadamard(t){return new Ni(this.x*t.x,this.y*t.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const t=this.length();return new Ni(this.x/t,this.y/t)}rotateByRadians(t){const n=Math.cos(t),i=Math.sin(t);return new Ni(this.x*n-this.y*i,this.x*i+this.y*n)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}},Qye={value:()=>{}};function Oc(){for(var e=0,t=arguments.length,n={},i;e<t;++e){if(!(i=arguments[e]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new Gu(n)}function Gu(e){this._=e}function e0e(e,t){return e.trim().split(/^|\s+/).map(function(n){var i="",o=n.indexOf(".");if(o>=0&&(i=n.slice(o+1),n=n.slice(0,o)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}Gu.prototype=Oc.prototype={constructor:Gu,on:function(e,t){var n=this._,i=e0e(e+"",n),o,l=-1,u=i.length;if(arguments.length<2){for(;++l<u;)if((o=(e=i[l]).type)&&(o=t0e(n[o],e.name)))return o;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++l<u;)if(o=(e=i[l]).type)n[o]=sw(n[o],e.name,t);else if(t==null)for(o in n)n[o]=sw(n[o],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Gu(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var n=new Array(o),i=0,o,l;i<o;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(l=this._[e],i=0,o=l.length;i<o;++i)l[i].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],o=0,l=i.length;o<l;++o)i[o].value.apply(t,n)}};function t0e(e,t){for(var n=0,i=e.length,o;n<i;++n)if((o=e[n]).name===t)return o.value}function sw(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=Qye,e=e.slice(0,i).concat(e.slice(i+1));break}return n!=null&&e.push({name:t,value:n}),e}const n0e={passive:!1},hc={capture:!0,passive:!1};function Vh(e){e.stopImmediatePropagation()}function bl(e){e.preventDefault(),e.stopImmediatePropagation()}function nk(e){var t=e.document.documentElement,n=er(e).on("dragstart.drag",bl,hc);"onselectstart"in t?n.on("selectstart.drag",bl,hc):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function rk(e,t){var n=e.document.documentElement,i=er(e).on("dragstart.drag",null);t&&(i.on("click.drag",bl,hc),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const Au=e=>()=>e;function zp(e,{sourceEvent:t,subject:n,target:i,identifier:o,active:l,x:u,y:f,dx:h,dy:p,dispatch:g}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:l,enumerable:!0,configurable:!0},x:{value:u,enumerable:!0,configurable:!0},y:{value:f,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:g}})}zp.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function r0e(e){return!e.ctrlKey&&!e.button}function i0e(){return this.parentNode}function o0e(e,t){return t??{x:e.x,y:e.y}}function s0e(){return navigator.maxTouchPoints||"ontouchstart"in this}function l0e(){var e=r0e,t=i0e,n=o0e,i=s0e,o={},l=Oc("start","drag","end"),u=0,f,h,p,g,v=0;function y(N){N.on("mousedown.drag",w).filter(i).on("touchstart.drag",C).on("touchmove.drag",E,n0e).on("touchend.drag touchcancel.drag",L).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(N,I){if(!(g||!e.call(this,N,I))){var q=D(this,t.call(this,N,I),N,I,"mouse");q&&(er(N.view).on("mousemove.drag",$,hc).on("mouseup.drag",_,hc),nk(N.view),Vh(N),p=!1,f=N.clientX,h=N.clientY,q("start",N))}}function $(N){if(bl(N),!p){var I=N.clientX-f,q=N.clientY-h;p=I*I+q*q>v}o.mouse("drag",N)}function _(N){er(N.view).on("mousemove.drag mouseup.drag",null),rk(N.view,p),bl(N),o.mouse("end",N)}function C(N,I){if(e.call(this,N,I)){var q=N.changedTouches,X=t.call(this,N,I),ie=q.length,J,U;for(J=0;J<ie;++J)(U=D(this,X,N,I,q[J].identifier,q[J]))&&(Vh(N),U("start",N,q[J]))}}function E(N){var I=N.changedTouches,q=I.length,X,ie;for(X=0;X<q;++X)(ie=o[I[X].identifier])&&(bl(N),ie("drag",N,I[X]))}function L(N){var I=N.changedTouches,q=I.length,X,ie;for(g&&clearTimeout(g),g=setTimeout(function(){g=null},500),X=0;X<q;++X)(ie=o[I[X].identifier])&&(Vh(N),ie("end",N,I[X]))}function D(N,I,q,X,ie,J){var U=l.copy(),K=Li(J||q,I),P,O,k;if((k=n.call(N,new zp("beforestart",{sourceEvent:q,target:y,identifier:ie,active:u,x:K[0],y:K[1],dx:0,dy:0,dispatch:U}),X))!=null)return P=k.x-K[0]||0,O=k.y-K[1]||0,function S(R,B,ae){var ve=K,_e;switch(R){case"start":o[ie]=S,_e=u++;break;case"end":delete o[ie],--u;case"drag":K=Li(ae||B,I),_e=u;break}U.call(R,N,new zp(R,{sourceEvent:B,subject:k,target:y,identifier:ie,active:_e,x:K[0]+P,y:K[1]+O,dx:K[0]-ve[0],dy:K[1]-ve[1],dispatch:U}),X)}}return y.filter=function(N){return arguments.length?(e=typeof N=="function"?N:Au(!!N),y):e},y.container=function(N){return arguments.length?(t=typeof N=="function"?N:Au(N),y):t},y.subject=function(N){return arguments.length?(n=typeof N=="function"?N:Au(N),y):n},y.touchable=function(N){return arguments.length?(i=typeof N=="function"?N:Au(!!N),y):i},y.on=function(){var N=l.on.apply(l,arguments);return N===l?y:N},y.clickDistance=function(N){return arguments.length?(v=(N=+N)*N,y):Math.sqrt(v)},y}function lm(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ik(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Rc(){}var pc=.7,Nf=1/pc,wl="\\s*([+-]?\\d+)\\s*",gc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",di="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",a0e=/^#([0-9a-f]{3,8})$/,c0e=new RegExp(`^rgb\\(${wl},${wl},${wl}\\)$`),u0e=new RegExp(`^rgb\\(${di},${di},${di}\\)$`),f0e=new RegExp(`^rgba\\(${wl},${wl},${wl},${gc}\\)$`),d0e=new RegExp(`^rgba\\(${di},${di},${di},${gc}\\)$`),h0e=new RegExp(`^hsl\\(${gc},${di},${di}\\)$`),p0e=new RegExp(`^hsla\\(${gc},${di},${di},${gc}\\)$`),lw={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};lm(Rc,mc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:aw,formatHex:aw,formatHex8:g0e,formatHsl:m0e,formatRgb:cw,toString:cw});function aw(){return this.rgb().formatHex()}function g0e(){return this.rgb().formatHex8()}function m0e(){return ok(this).formatHsl()}function cw(){return this.rgb().formatRgb()}function mc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=a0e.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?uw(t):n===3?new nr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?$u(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?$u(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=c0e.exec(e))?new nr(t[1],t[2],t[3],1):(t=u0e.exec(e))?new nr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=f0e.exec(e))?$u(t[1],t[2],t[3],t[4]):(t=d0e.exec(e))?$u(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=h0e.exec(e))?hw(t[1],t[2]/100,t[3]/100,1):(t=p0e.exec(e))?hw(t[1],t[2]/100,t[3]/100,t[4]):lw.hasOwnProperty(e)?uw(lw[e]):e==="transparent"?new nr(NaN,NaN,NaN,0):null}function uw(e){return new nr(e>>16&255,e>>8&255,e&255,1)}function $u(e,t,n,i){return i<=0&&(e=t=n=NaN),new nr(e,t,n,i)}function v0e(e){return e instanceof Rc||(e=mc(e)),e?(e=e.rgb(),new nr(e.r,e.g,e.b,e.opacity)):new nr}function Hp(e,t,n,i){return arguments.length===1?v0e(e):new nr(e,t,n,i??1)}function nr(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}lm(nr,Hp,ik(Rc,{brighter(e){return e=e==null?Nf:Math.pow(Nf,e),new nr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?pc:Math.pow(pc,e),new nr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new nr(vs(this.r),vs(this.g),vs(this.b),Mf(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:fw,formatHex:fw,formatHex8:y0e,formatRgb:dw,toString:dw}));function fw(){return`#${fs(this.r)}${fs(this.g)}${fs(this.b)}`}function y0e(){return`#${fs(this.r)}${fs(this.g)}${fs(this.b)}${fs((isNaN(this.opacity)?1:this.opacity)*255)}`}function dw(){const e=Mf(this.opacity);return`${e===1?"rgb(":"rgba("}${vs(this.r)}, ${vs(this.g)}, ${vs(this.b)}${e===1?")":`, ${e})`}`}function Mf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function vs(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function fs(e){return e=vs(e),(e<16?"0":"")+e.toString(16)}function hw(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Br(e,t,n,i)}function ok(e){if(e instanceof Br)return new Br(e.h,e.s,e.l,e.opacity);if(e instanceof Rc||(e=mc(e)),!e)return new Br;if(e instanceof Br)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),l=Math.max(t,n,i),u=NaN,f=l-o,h=(l+o)/2;return f?(t===l?u=(n-i)/f+(n<i)*6:n===l?u=(i-t)/f+2:u=(t-n)/f+4,f/=h<.5?l+o:2-l-o,u*=60):f=h>0&&h<1?0:u,new Br(u,f,h,e.opacity)}function b0e(e,t,n,i){return arguments.length===1?ok(e):new Br(e,t,n,i??1)}function Br(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}lm(Br,b0e,ik(Rc,{brighter(e){return e=e==null?Nf:Math.pow(Nf,e),new Br(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?pc:Math.pow(pc,e),new Br(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i;return new nr(Gh(e>=240?e-240:e+120,o,i),Gh(e,o,i),Gh(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Br(pw(this.h),Nu(this.s),Nu(this.l),Mf(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Mf(this.opacity);return`${e===1?"hsl(":"hsla("}${pw(this.h)}, ${Nu(this.s)*100}%, ${Nu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function pw(e){return e=(e||0)%360,e<0?e+360:e}function Nu(e){return Math.max(0,Math.min(1,e||0))}function Gh(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const sk=e=>()=>e;function w0e(e,t){return function(n){return e+n*t}}function x0e(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}function S0e(e){return(e=+e)==1?lk:function(t,n){return n-t?x0e(t,n,e):sk(isNaN(t)?n:t)}}function lk(e,t){var n=t-e;return n?w0e(e,n):sk(isNaN(e)?t:e)}const gw=(function e(t){var n=S0e(t);function i(o,l){var u=n((o=Hp(o)).r,(l=Hp(l)).r),f=n(o.g,l.g),h=n(o.b,l.b),p=lk(o.opacity,l.opacity);return function(g){return o.r=u(g),o.g=f(g),o.b=h(g),o.opacity=p(g),o+""}}return i.gamma=e,i})(1);function _o(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Bp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Kh=new RegExp(Bp.source,"g");function _0e(e){return function(){return e}}function k0e(e){return function(t){return e(t)+""}}function T0e(e,t){var n=Bp.lastIndex=Kh.lastIndex=0,i,o,l,u=-1,f=[],h=[];for(e=e+"",t=t+"";(i=Bp.exec(e))&&(o=Kh.exec(t));)(l=o.index)>n&&(l=t.slice(n,l),f[u]?f[u]+=l:f[++u]=l),(i=i[0])===(o=o[0])?f[u]?f[u]+=o:f[++u]=o:(f[++u]=null,h.push({i:u,x:_o(i,o)})),n=Kh.lastIndex;return n<t.length&&(l=t.slice(n),f[u]?f[u]+=l:f[++u]=l),f.length<2?h[0]?k0e(h[0].x):_0e(t):(t=h.length,function(p){for(var g=0,v;g<t;++g)f[(v=h[g]).i]=v.x(p);return f.join("")})}var mw=180/Math.PI,jp={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ak(e,t,n,i,o,l){var u,f,h;return(u=Math.sqrt(e*e+t*t))&&(e/=u,t/=u),(h=e*n+t*i)&&(n-=e*h,i-=t*h),(f=Math.sqrt(n*n+i*i))&&(n/=f,i/=f,h/=f),e*i<t*n&&(e=-e,t=-t,h=-h,u=-u),{translateX:o,translateY:l,rotate:Math.atan2(t,e)*mw,skewX:Math.atan(h)*mw,scaleX:u,scaleY:f}}var Mu;function C0e(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?jp:ak(t.a,t.b,t.c,t.d,t.e,t.f)}function E0e(e){return e==null||(Mu||(Mu=document.createElementNS("http://www.w3.org/2000/svg","g")),Mu.setAttribute("transform",e),!(e=Mu.transform.baseVal.consolidate()))?jp:(e=e.matrix,ak(e.a,e.b,e.c,e.d,e.e,e.f))}function ck(e,t,n,i){function o(p){return p.length?p.pop()+" ":""}function l(p,g,v,y,w,$){if(p!==v||g!==y){var _=w.push("translate(",null,t,null,n);$.push({i:_-4,x:_o(p,v)},{i:_-2,x:_o(g,y)})}else(v||y)&&w.push("translate("+v+t+y+n)}function u(p,g,v,y){p!==g?(p-g>180?g+=360:g-p>180&&(p+=360),y.push({i:v.push(o(v)+"rotate(",null,i)-2,x:_o(p,g)})):g&&v.push(o(v)+"rotate("+g+i)}function f(p,g,v,y){p!==g?y.push({i:v.push(o(v)+"skewX(",null,i)-2,x:_o(p,g)}):g&&v.push(o(v)+"skewX("+g+i)}function h(p,g,v,y,w,$){if(p!==v||g!==y){var _=w.push(o(w)+"scale(",null,",",null,")");$.push({i:_-4,x:_o(p,v)},{i:_-2,x:_o(g,y)})}else(v!==1||y!==1)&&w.push(o(w)+"scale("+v+","+y+")")}return function(p,g){var v=[],y=[];return p=e(p),g=e(g),l(p.translateX,p.translateY,g.translateX,g.translateY,v,y),u(p.rotate,g.rotate,v,y),f(p.skewX,g.skewX,v,y),h(p.scaleX,p.scaleY,g.scaleX,g.scaleY,v,y),p=g=null,function(w){for(var $=-1,_=y.length,C;++$<_;)v[(C=y[$]).i]=C.x(w);return v.join("")}}}var A0e=ck(C0e,"px, ","px)","deg)"),$0e=ck(E0e,", ",")",")"),N0e=1e-12;function vw(e){return((e=Math.exp(e))+1/e)/2}function M0e(e){return((e=Math.exp(e))-1/e)/2}function L0e(e){return((e=Math.exp(2*e))-1)/(e+1)}const O0e=(function e(t,n,i){function o(l,u){var f=l[0],h=l[1],p=l[2],g=u[0],v=u[1],y=u[2],w=g-f,$=v-h,_=w*w+$*$,C,E;if(_<N0e)E=Math.log(y/p)/t,C=function(X){return[f+X*w,h+X*$,p*Math.exp(t*X*E)]};else{var L=Math.sqrt(_),D=(y*y-p*p+i*_)/(2*p*n*L),N=(y*y-p*p-i*_)/(2*y*n*L),I=Math.log(Math.sqrt(D*D+1)-D),q=Math.log(Math.sqrt(N*N+1)-N);E=(q-I)/t,C=function(X){var ie=X*E,J=vw(I),U=p/(n*L)*(J*L0e(t*ie+I)-M0e(I));return[f+U*w,h+U*$,p*J/vw(t*ie+I)]}}return C.duration=E*1e3*t/Math.SQRT2,C}return o.rho=function(l){var u=Math.max(.001,+l),f=u*u,h=f*f;return e(u,f,h)},o})(Math.SQRT2,2,4);var Rl=0,Na=0,ka=0,uk=1e3,Lf,Ma,Of=0,Ss=0,gd=0,vc=typeof performance=="object"&&performance.now?performance:Date,fk=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function am(){return Ss||(fk(R0e),Ss=vc.now()+gd)}function R0e(){Ss=0}function Rf(){this._call=this._time=this._next=null}Rf.prototype=cm.prototype={constructor:Rf,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?am():+n)+(t==null?0:+t),!this._next&&Ma!==this&&(Ma?Ma._next=this:Lf=this,Ma=this),this._call=e,this._time=n,Wp()},stop:function(){this._call&&(this._call=null,this._time=1/0,Wp())}};function cm(e,t,n){var i=new Rf;return i.restart(e,t,n),i}function P0e(){am(),++Rl;for(var e=Lf,t;e;)(t=Ss-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Rl}function yw(){Ss=(Of=vc.now())+gd,Rl=Na=0;try{P0e()}finally{Rl=0,D0e(),Ss=0}}function I0e(){var e=vc.now(),t=e-Of;t>uk&&(gd-=t,Of=e)}function D0e(){for(var e,t=Lf,n,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Lf=n);Ma=e,Wp(i)}function Wp(e){if(!Rl){Na&&(Na=clearTimeout(Na));var t=e-Ss;t>24?(e<1/0&&(Na=setTimeout(yw,e-vc.now()-gd)),ka&&(ka=clearInterval(ka))):(ka||(Of=vc.now(),ka=setInterval(I0e,uk)),Rl=1,fk(yw))}}function bw(e,t,n){var i=new Rf;return t=t==null?0:+t,i.restart(o=>{i.stop(),e(o+t)},t,n),i}var F0e=Oc("start","end","cancel","interrupt"),z0e=[],dk=0,ww=1,qp=2,Ku=3,xw=4,Up=5,Yu=6;function md(e,t,n,i,o,l){var u=e.__transition;if(!u)e.__transition={};else if(n in u)return;H0e(e,n,{name:t,index:i,group:o,on:F0e,tween:z0e,time:l.time,delay:l.delay,duration:l.duration,ease:l.ease,timer:null,state:dk})}function um(e,t){var n=Xr(e,t);if(n.state>dk)throw new Error("too late; already scheduled");return n}function mi(e,t){var n=Xr(e,t);if(n.state>Ku)throw new Error("too late; already running");return n}function Xr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function H0e(e,t,n){var i=e.__transition,o;i[t]=n,n.timer=cm(l,0,n.time);function l(p){n.state=ww,n.timer.restart(u,n.delay,n.time),n.delay<=p&&u(p-n.delay)}function u(p){var g,v,y,w;if(n.state!==ww)return h();for(g in i)if(w=i[g],w.name===n.name){if(w.state===Ku)return bw(u);w.state===xw?(w.state=Yu,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete i[g]):+g<t&&(w.state=Yu,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete i[g])}if(bw(function(){n.state===Ku&&(n.state=xw,n.timer.restart(f,n.delay,n.time),f(p))}),n.state=qp,n.on.call("start",e,e.__data__,n.index,n.group),n.state===qp){for(n.state=Ku,o=new Array(y=n.tween.length),g=0,v=-1;g<y;++g)(w=n.tween[g].value.call(e,e.__data__,n.index,n.group))&&(o[++v]=w);o.length=v+1}}function f(p){for(var g=p<n.duration?n.ease.call(null,p/n.duration):(n.timer.restart(h),n.state=Up,1),v=-1,y=o.length;++v<y;)o[v].call(e,g);n.state===Up&&(n.on.call("end",e,e.__data__,n.index,n.group),h())}function h(){n.state=Yu,n.timer.stop(),delete i[t];for(var p in i)return;delete e.__transition}}function Xu(e,t){var n=e.__transition,i,o,l=!0,u;if(n){t=t==null?null:t+"";for(u in n){if((i=n[u]).name!==t){l=!1;continue}o=i.state>qp&&i.state<Up,i.state=Yu,i.timer.stop(),i.on.call(o?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete n[u]}l&&delete e.__transition}}function B0e(e){return this.each(function(){Xu(this,e)})}function j0e(e,t){var n,i;return function(){var o=mi(this,e),l=o.tween;if(l!==n){i=n=l;for(var u=0,f=i.length;u<f;++u)if(i[u].name===t){i=i.slice(),i.splice(u,1);break}}o.tween=i}}function W0e(e,t,n){var i,o;if(typeof n!="function")throw new Error;return function(){var l=mi(this,e),u=l.tween;if(u!==i){o=(i=u).slice();for(var f={name:t,value:n},h=0,p=o.length;h<p;++h)if(o[h].name===t){o[h]=f;break}h===p&&o.push(f)}l.tween=o}}function q0e(e,t){var n=this._id;if(e+="",arguments.length<2){for(var i=Xr(this.node(),n).tween,o=0,l=i.length,u;o<l;++o)if((u=i[o]).name===e)return u.value;return null}return this.each((t==null?j0e:W0e)(n,e,t))}function fm(e,t,n){var i=e._id;return e.each(function(){var o=mi(this,i);(o.value||(o.value={}))[t]=n.apply(this,arguments)}),function(o){return Xr(o,i).value[t]}}function hk(e,t){var n;return(typeof t=="number"?_o:t instanceof mc?gw:(n=mc(t))?(t=n,gw):T0e)(e,t)}function U0e(e){return function(){this.removeAttribute(e)}}function V0e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function G0e(e,t,n){var i,o=n+"",l;return function(){var u=this.getAttribute(e);return u===o?null:u===i?l:l=t(i=u,n)}}function K0e(e,t,n){var i,o=n+"",l;return function(){var u=this.getAttributeNS(e.space,e.local);return u===o?null:u===i?l:l=t(i=u,n)}}function Y0e(e,t,n){var i,o,l;return function(){var u,f=n(this),h;return f==null?void this.removeAttribute(e):(u=this.getAttribute(e),h=f+"",u===h?null:u===i&&h===o?l:(o=h,l=t(i=u,f)))}}function X0e(e,t,n){var i,o,l;return function(){var u,f=n(this),h;return f==null?void this.removeAttributeNS(e.space,e.local):(u=this.getAttributeNS(e.space,e.local),h=f+"",u===h?null:u===i&&h===o?l:(o=h,l=t(i=u,f)))}}function J0e(e,t){var n=pd(e),i=n==="transform"?$0e:hk;return this.attrTween(e,typeof t=="function"?(n.local?X0e:Y0e)(n,i,fm(this,"attr."+e,t)):t==null?(n.local?V0e:U0e)(n):(n.local?K0e:G0e)(n,i,t))}function Z0e(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Q0e(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function ebe(e,t){var n,i;function o(){var l=t.apply(this,arguments);return l!==i&&(n=(i=l)&&Q0e(e,l)),n}return o._value=t,o}function tbe(e,t){var n,i;function o(){var l=t.apply(this,arguments);return l!==i&&(n=(i=l)&&Z0e(e,l)),n}return o._value=t,o}function nbe(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var i=pd(e);return this.tween(n,(i.local?ebe:tbe)(i,t))}function rbe(e,t){return function(){um(this,e).delay=+t.apply(this,arguments)}}function ibe(e,t){return t=+t,function(){um(this,e).delay=t}}function obe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?rbe:ibe)(t,e)):Xr(this.node(),t).delay}function sbe(e,t){return function(){mi(this,e).duration=+t.apply(this,arguments)}}function lbe(e,t){return t=+t,function(){mi(this,e).duration=t}}function abe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?sbe:lbe)(t,e)):Xr(this.node(),t).duration}function cbe(e,t){if(typeof t!="function")throw new Error;return function(){mi(this,e).ease=t}}function ube(e){var t=this._id;return arguments.length?this.each(cbe(t,e)):Xr(this.node(),t).ease}function fbe(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;mi(this,e).ease=n}}function dbe(e){if(typeof e!="function")throw new Error;return this.each(fbe(this._id,e))}function hbe(e){typeof e!="function"&&(e=V_(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var l=t[o],u=l.length,f=i[o]=[],h,p=0;p<u;++p)(h=l[p])&&e.call(h,h.__data__,p,l)&&f.push(h);return new Vi(i,this._parents,this._name,this._id)}function pbe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,i=t.length,o=n.length,l=Math.min(i,o),u=new Array(i),f=0;f<l;++f)for(var h=t[f],p=n[f],g=h.length,v=u[f]=new Array(g),y,w=0;w<g;++w)(y=h[w]||p[w])&&(v[w]=y);for(;f<i;++f)u[f]=t[f];return new Vi(u,this._parents,this._name,this._id)}function gbe(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function mbe(e,t,n){var i,o,l=gbe(t)?um:mi;return function(){var u=l(this,e),f=u.on;f!==i&&(o=(i=f).copy()).on(t,n),u.on=o}}function vbe(e,t){var n=this._id;return arguments.length<2?Xr(this.node(),n).on.on(e):this.each(mbe(n,e,t))}function ybe(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function bbe(){return this.on("end.remove",ybe(this._id))}function wbe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=om(e));for(var i=this._groups,o=i.length,l=new Array(o),u=0;u<o;++u)for(var f=i[u],h=f.length,p=l[u]=new Array(h),g,v,y=0;y<h;++y)(g=f[y])&&(v=e.call(g,g.__data__,y,f))&&("__data__"in g&&(v.__data__=g.__data__),p[y]=v,md(p[y],t,n,y,p,Xr(g,n)));return new Vi(l,this._parents,t,n)}function xbe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=U_(e));for(var i=this._groups,o=i.length,l=[],u=[],f=0;f<o;++f)for(var h=i[f],p=h.length,g,v=0;v<p;++v)if(g=h[v]){for(var y=e.call(g,g.__data__,v,h),w,$=Xr(g,n),_=0,C=y.length;_<C;++_)(w=y[_])&&md(w,t,n,_,y,$);l.push(y),u.push(g)}return new Vi(l,u,t,n)}var Sbe=Lc.prototype.constructor;function _be(){return new Sbe(this._groups,this._parents)}function kbe(e,t){var n,i,o;return function(){var l=Ll(this,e),u=(this.style.removeProperty(e),Ll(this,e));return l===u?null:l===n&&u===i?o:o=t(n=l,i=u)}}function pk(e){return function(){this.style.removeProperty(e)}}function Tbe(e,t,n){var i,o=n+"",l;return function(){var u=Ll(this,e);return u===o?null:u===i?l:l=t(i=u,n)}}function Cbe(e,t,n){var i,o,l;return function(){var u=Ll(this,e),f=n(this),h=f+"";return f==null&&(h=f=(this.style.removeProperty(e),Ll(this,e))),u===h?null:u===i&&h===o?l:(o=h,l=t(i=u,f))}}function Ebe(e,t){var n,i,o,l="style."+t,u="end."+l,f;return function(){var h=mi(this,e),p=h.on,g=h.value[l]==null?f||(f=pk(t)):void 0;(p!==n||o!==g)&&(i=(n=p).copy()).on(u,o=g),h.on=i}}function Abe(e,t,n){var i=(e+="")=="transform"?A0e:hk;return t==null?this.styleTween(e,kbe(e,i)).on("end.style."+e,pk(e)):typeof t=="function"?this.styleTween(e,Cbe(e,i,fm(this,"style."+e,t))).each(Ebe(this._id,e)):this.styleTween(e,Tbe(e,i,t),n).on("end.style."+e,null)}function $be(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}function Nbe(e,t,n){var i,o;function l(){var u=t.apply(this,arguments);return u!==o&&(i=(o=u)&&$be(e,u,n)),i}return l._value=t,l}function Mbe(e,t,n){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,Nbe(e,t,n??""))}function Lbe(e){return function(){this.textContent=e}}function Obe(e){return function(){var t=e(this);this.textContent=t??""}}function Rbe(e){return this.tween("text",typeof e=="function"?Obe(fm(this,"text",e)):Lbe(e==null?"":e+""))}function Pbe(e){return function(t){this.textContent=e.call(this,t)}}function Ibe(e){var t,n;function i(){var o=e.apply(this,arguments);return o!==n&&(t=(n=o)&&Pbe(o)),t}return i._value=e,i}function Dbe(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Ibe(e))}function Fbe(){for(var e=this._name,t=this._id,n=gk(),i=this._groups,o=i.length,l=0;l<o;++l)for(var u=i[l],f=u.length,h,p=0;p<f;++p)if(h=u[p]){var g=Xr(h,t);md(h,e,n,p,u,{time:g.time+g.delay+g.duration,delay:0,duration:g.duration,ease:g.ease})}return new Vi(i,this._parents,e,n)}function zbe(){var e,t,n=this,i=n._id,o=n.size();return new Promise(function(l,u){var f={value:u},h={value:function(){--o===0&&l()}};n.each(function(){var p=mi(this,i),g=p.on;g!==e&&(t=(e=g).copy(),t._.cancel.push(f),t._.interrupt.push(f),t._.end.push(h)),p.on=t}),o===0&&l()})}var Hbe=0;function Vi(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function gk(){return++Hbe}var Ai=Lc.prototype;Vi.prototype={constructor:Vi,select:wbe,selectAll:xbe,selectChild:Ai.selectChild,selectChildren:Ai.selectChildren,filter:hbe,merge:pbe,selection:_be,transition:Fbe,call:Ai.call,nodes:Ai.nodes,node:Ai.node,size:Ai.size,empty:Ai.empty,each:Ai.each,on:vbe,attr:J0e,attrTween:nbe,style:Abe,styleTween:Mbe,text:Rbe,textTween:Dbe,remove:bbe,tween:q0e,delay:obe,duration:abe,ease:ube,easeVarying:dbe,end:zbe,[Symbol.iterator]:Ai[Symbol.iterator]};function Bbe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var jbe={time:null,delay:0,duration:250,ease:Bbe};function Wbe(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function qbe(e){var t,n;e instanceof Vi?(t=e._id,e=e._name):(t=gk(),(n=jbe).time=am(),e=e==null?null:e+"");for(var i=this._groups,o=i.length,l=0;l<o;++l)for(var u=i[l],f=u.length,h,p=0;p<f;++p)(h=u[p])&&md(h,e,t,p,u,n||Wbe(h,t));return new Vi(i,this._parents,e,t)}Lc.prototype.interrupt=B0e;Lc.prototype.transition=qbe;const Lu=e=>()=>e;function Ube(e,{sourceEvent:t,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function zi(e,t,n){this.k=e,this.x=t,this.y=n}zi.prototype={constructor:zi,scale:function(e){return e===1?this:new zi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new zi(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var dm=new zi(1,0,0);zi.prototype;function Yh(e){e.stopImmediatePropagation()}function Ta(e){e.preventDefault(),e.stopImmediatePropagation()}function Vbe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Gbe(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Sw(){return this.__zoom||dm}function Kbe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Ybe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Xbe(e,t,n){var i=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],l=e.invertY(t[0][1])-n[0][1],u=e.invertY(t[1][1])-n[1][1];return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),u>l?(l+u)/2:Math.min(0,l)||Math.max(0,u))}function Jbe(){var e=Vbe,t=Gbe,n=Xbe,i=Kbe,o=Ybe,l=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],f=250,h=O0e,p=Oc("start","zoom","end"),g,v,y,w=500,$=150,_=0,C=10;function E(k){k.property("__zoom",Sw).on("wheel.zoom",ie,{passive:!1}).on("mousedown.zoom",J).on("dblclick.zoom",U).filter(o).on("touchstart.zoom",K).on("touchmove.zoom",P).on("touchend.zoom touchcancel.zoom",O).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}E.transform=function(k,S,R,B){var ae=k.selection?k.selection():k;ae.property("__zoom",Sw),k!==ae?I(k,S,R,B):ae.interrupt().each(function(){q(this,arguments).event(B).start().zoom(null,typeof S=="function"?S.apply(this,arguments):S).end()})},E.scaleBy=function(k,S,R,B){E.scaleTo(k,function(){var ae=this.__zoom.k,ve=typeof S=="function"?S.apply(this,arguments):S;return ae*ve},R,B)},E.scaleTo=function(k,S,R,B){E.transform(k,function(){var ae=t.apply(this,arguments),ve=this.__zoom,_e=R==null?N(ae):typeof R=="function"?R.apply(this,arguments):R,Be=ve.invert(_e),Ee=typeof S=="function"?S.apply(this,arguments):S;return n(D(L(ve,Ee),_e,Be),ae,u)},R,B)},E.translateBy=function(k,S,R,B){E.transform(k,function(){return n(this.__zoom.translate(typeof S=="function"?S.apply(this,arguments):S,typeof R=="function"?R.apply(this,arguments):R),t.apply(this,arguments),u)},null,B)},E.translateTo=function(k,S,R,B,ae){E.transform(k,function(){var ve=t.apply(this,arguments),_e=this.__zoom,Be=B==null?N(ve):typeof B=="function"?B.apply(this,arguments):B;return n(dm.translate(Be[0],Be[1]).scale(_e.k).translate(typeof S=="function"?-S.apply(this,arguments):-S,typeof R=="function"?-R.apply(this,arguments):-R),ve,u)},B,ae)};function L(k,S){return S=Math.max(l[0],Math.min(l[1],S)),S===k.k?k:new zi(S,k.x,k.y)}function D(k,S,R){var B=S[0]-R[0]*k.k,ae=S[1]-R[1]*k.k;return B===k.x&&ae===k.y?k:new zi(k.k,B,ae)}function N(k){return[(+k[0][0]+ +k[1][0])/2,(+k[0][1]+ +k[1][1])/2]}function I(k,S,R,B){k.on("start.zoom",function(){q(this,arguments).event(B).start()}).on("interrupt.zoom end.zoom",function(){q(this,arguments).event(B).end()}).tween("zoom",function(){var ae=this,ve=arguments,_e=q(ae,ve).event(B),Be=t.apply(ae,ve),Ee=R==null?N(Be):typeof R=="function"?R.apply(ae,ve):R,Ge=Math.max(Be[1][0]-Be[0][0],Be[1][1]-Be[0][1]),Ue=ae.__zoom,He=typeof S=="function"?S.apply(ae,ve):S,Re=h(Ue.invert(Ee).concat(Ge/Ue.k),He.invert(Ee).concat(Ge/He.k));return function(z){if(z===1)z=He;else{var Z=Re(z),re=Ge/Z[2];z=new zi(re,Ee[0]-Z[0]*re,Ee[1]-Z[1]*re)}_e.zoom(null,z)}})}function q(k,S,R){return!R&&k.__zooming||new X(k,S)}function X(k,S){this.that=k,this.args=S,this.active=0,this.sourceEvent=null,this.extent=t.apply(k,S),this.taps=0}X.prototype={event:function(k){return k&&(this.sourceEvent=k),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(k,S){return this.mouse&&k!=="mouse"&&(this.mouse[1]=S.invert(this.mouse[0])),this.touch0&&k!=="touch"&&(this.touch0[1]=S.invert(this.touch0[0])),this.touch1&&k!=="touch"&&(this.touch1[1]=S.invert(this.touch1[0])),this.that.__zoom=S,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(k){var S=er(this.that).datum();p.call(k,this.that,new Ube(k,{sourceEvent:this.sourceEvent,target:E,transform:this.that.__zoom,dispatch:p}),S)}};function ie(k,...S){if(!e.apply(this,arguments))return;var R=q(this,S).event(k),B=this.__zoom,ae=Math.max(l[0],Math.min(l[1],B.k*Math.pow(2,i.apply(this,arguments)))),ve=Li(k);if(R.wheel)(R.mouse[0][0]!==ve[0]||R.mouse[0][1]!==ve[1])&&(R.mouse[1]=B.invert(R.mouse[0]=ve)),clearTimeout(R.wheel);else{if(B.k===ae)return;R.mouse=[ve,B.invert(ve)],Xu(this),R.start()}Ta(k),R.wheel=setTimeout(_e,$),R.zoom("mouse",n(D(L(B,ae),R.mouse[0],R.mouse[1]),R.extent,u));function _e(){R.wheel=null,R.end()}}function J(k,...S){if(y||!e.apply(this,arguments))return;var R=k.currentTarget,B=q(this,S,!0).event(k),ae=er(k.view).on("mousemove.zoom",Ee,!0).on("mouseup.zoom",Ge,!0),ve=Li(k,R),_e=k.clientX,Be=k.clientY;nk(k.view),Yh(k),B.mouse=[ve,this.__zoom.invert(ve)],Xu(this),B.start();function Ee(Ue){if(Ta(Ue),!B.moved){var He=Ue.clientX-_e,Re=Ue.clientY-Be;B.moved=He*He+Re*Re>_}B.event(Ue).zoom("mouse",n(D(B.that.__zoom,B.mouse[0]=Li(Ue,R),B.mouse[1]),B.extent,u))}function Ge(Ue){ae.on("mousemove.zoom mouseup.zoom",null),rk(Ue.view,B.moved),Ta(Ue),B.event(Ue).end()}}function U(k,...S){if(e.apply(this,arguments)){var R=this.__zoom,B=Li(k.changedTouches?k.changedTouches[0]:k,this),ae=R.invert(B),ve=R.k*(k.shiftKey?.5:2),_e=n(D(L(R,ve),B,ae),t.apply(this,S),u);Ta(k),f>0?er(this).transition().duration(f).call(I,_e,B,k):er(this).call(E.transform,_e,B,k)}}function K(k,...S){if(e.apply(this,arguments)){var R=k.touches,B=R.length,ae=q(this,S,k.changedTouches.length===B).event(k),ve,_e,Be,Ee;for(Yh(k),_e=0;_e<B;++_e)Be=R[_e],Ee=Li(Be,this),Ee=[Ee,this.__zoom.invert(Ee),Be.identifier],ae.touch0?!ae.touch1&&ae.touch0[2]!==Ee[2]&&(ae.touch1=Ee,ae.taps=0):(ae.touch0=Ee,ve=!0,ae.taps=1+!!g);g&&(g=clearTimeout(g)),ve&&(ae.taps<2&&(v=Ee[0],g=setTimeout(function(){g=null},w)),Xu(this),ae.start())}}function P(k,...S){if(this.__zooming){var R=q(this,S).event(k),B=k.changedTouches,ae=B.length,ve,_e,Be,Ee;for(Ta(k),ve=0;ve<ae;++ve)_e=B[ve],Be=Li(_e,this),R.touch0&&R.touch0[2]===_e.identifier?R.touch0[0]=Be:R.touch1&&R.touch1[2]===_e.identifier&&(R.touch1[0]=Be);if(_e=R.that.__zoom,R.touch1){var Ge=R.touch0[0],Ue=R.touch0[1],He=R.touch1[0],Re=R.touch1[1],z=(z=He[0]-Ge[0])*z+(z=He[1]-Ge[1])*z,Z=(Z=Re[0]-Ue[0])*Z+(Z=Re[1]-Ue[1])*Z;_e=L(_e,Math.sqrt(z/Z)),Be=[(Ge[0]+He[0])/2,(Ge[1]+He[1])/2],Ee=[(Ue[0]+Re[0])/2,(Ue[1]+Re[1])/2]}else if(R.touch0)Be=R.touch0[0],Ee=R.touch0[1];else return;R.zoom("touch",n(D(_e,Be,Ee),R.extent,u))}}function O(k,...S){if(this.__zooming){var R=q(this,S).event(k),B=k.changedTouches,ae=B.length,ve,_e;for(Yh(k),y&&clearTimeout(y),y=setTimeout(function(){y=null},w),ve=0;ve<ae;++ve)_e=B[ve],R.touch0&&R.touch0[2]===_e.identifier?delete R.touch0:R.touch1&&R.touch1[2]===_e.identifier&&delete R.touch1;if(R.touch1&&!R.touch0&&(R.touch0=R.touch1,delete R.touch1),R.touch0)R.touch0[1]=this.__zoom.invert(R.touch0[0]);else if(R.end(),R.taps===2&&(_e=Li(_e,this),Math.hypot(v[0]-_e[0],v[1]-_e[1])<C)){var Be=er(this).on("dblclick.zoom");Be&&Be.apply(this,arguments)}}}return E.wheelDelta=function(k){return arguments.length?(i=typeof k=="function"?k:Lu(+k),E):i},E.filter=function(k){return arguments.length?(e=typeof k=="function"?k:Lu(!!k),E):e},E.touchable=function(k){return arguments.length?(o=typeof k=="function"?k:Lu(!!k),E):o},E.extent=function(k){return arguments.length?(t=typeof k=="function"?k:Lu([[+k[0][0],+k[0][1]],[+k[1][0],+k[1][1]]]),E):t},E.scaleExtent=function(k){return arguments.length?(l[0]=+k[0],l[1]=+k[1],E):[l[0],l[1]]},E.translateExtent=function(k){return arguments.length?(u[0][0]=+k[0][0],u[1][0]=+k[1][0],u[0][1]=+k[0][1],u[1][1]=+k[1][1],E):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},E.constrain=function(k){return arguments.length?(n=k,E):n},E.duration=function(k){return arguments.length?(f=+k,E):f},E.interpolate=function(k){return arguments.length?(h=k,E):h},E.on=function(){var k=p.on.apply(p,arguments);return k===p?E:k},E.clickDistance=function(k){return arguments.length?(_=(k=+k)*k,E):Math.sqrt(_)},E.tapDistance=function(k){return arguments.length?(C=+k,E):C},E}function Zbe(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return mk(this.cover(t,n),t,n,e)}function mk(e,t,n,i){if(isNaN(t)||isNaN(n))return e;var o,l=e._root,u={data:i},f=e._x0,h=e._y0,p=e._x1,g=e._y1,v,y,w,$,_,C,E,L;if(!l)return e._root=u,e;for(;l.length;)if((_=t>=(v=(f+p)/2))?f=v:p=v,(C=n>=(y=(h+g)/2))?h=y:g=y,o=l,!(l=l[E=C<<1|_]))return o[E]=u,e;if(w=+e._x.call(null,l.data),$=+e._y.call(null,l.data),t===w&&n===$)return u.next=l,o?o[E]=u:e._root=u,e;do o=o?o[E]=new Array(4):e._root=new Array(4),(_=t>=(v=(f+p)/2))?f=v:p=v,(C=n>=(y=(h+g)/2))?h=y:g=y;while((E=C<<1|_)===(L=($>=y)<<1|w>=v));return o[L]=l,o[E]=u,e}function Qbe(e){var t,n,i=e.length,o,l,u=new Array(i),f=new Array(i),h=1/0,p=1/0,g=-1/0,v=-1/0;for(n=0;n<i;++n)isNaN(o=+this._x.call(null,t=e[n]))||isNaN(l=+this._y.call(null,t))||(u[n]=o,f[n]=l,o<h&&(h=o),o>g&&(g=o),l<p&&(p=l),l>v&&(v=l));if(h>g||p>v)return this;for(this.cover(h,p).cover(g,v),n=0;n<i;++n)mk(this,u[n],f[n],e[n]);return this}function ewe(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,i=this._y0,o=this._x1,l=this._y1;if(isNaN(n))o=(n=Math.floor(e))+1,l=(i=Math.floor(t))+1;else{for(var u=o-n||1,f=this._root,h,p;n>e||e>=o||i>t||t>=l;)switch(p=(t<i)<<1|e<n,h=new Array(4),h[p]=f,f=h,u*=2,p){case 0:o=n+u,l=i+u;break;case 1:n=o-u,l=i+u;break;case 2:o=n+u,i=l-u;break;case 3:n=o-u,i=l-u;break}this._root&&this._root.length&&(this._root=f)}return this._x0=n,this._y0=i,this._x1=o,this._y1=l,this}function twe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function nwe(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function jn(e,t,n,i,o){this.node=e,this.x0=t,this.y0=n,this.x1=i,this.y1=o}function rwe(e,t,n){var i,o=this._x0,l=this._y0,u,f,h,p,g=this._x1,v=this._y1,y=[],w=this._root,$,_;for(w&&y.push(new jn(w,o,l,g,v)),n==null?n=1/0:(o=e-n,l=t-n,g=e+n,v=t+n,n*=n);$=y.pop();)if(!(!(w=$.node)||(u=$.x0)>g||(f=$.y0)>v||(h=$.x1)<o||(p=$.y1)<l))if(w.length){var C=(u+h)/2,E=(f+p)/2;y.push(new jn(w[3],C,E,h,p),new jn(w[2],u,E,C,p),new jn(w[1],C,f,h,E),new jn(w[0],u,f,C,E)),(_=(t>=E)<<1|e>=C)&&($=y[y.length-1],y[y.length-1]=y[y.length-1-_],y[y.length-1-_]=$)}else{var L=e-+this._x.call(null,w.data),D=t-+this._y.call(null,w.data),N=L*L+D*D;if(N<n){var I=Math.sqrt(n=N);o=e-I,l=t-I,g=e+I,v=t+I,i=w.data}}return i}function iwe(e){if(isNaN(g=+this._x.call(null,e))||isNaN(v=+this._y.call(null,e)))return this;var t,n=this._root,i,o,l,u=this._x0,f=this._y0,h=this._x1,p=this._y1,g,v,y,w,$,_,C,E;if(!n)return this;if(n.length)for(;;){if(($=g>=(y=(u+h)/2))?u=y:h=y,(_=v>=(w=(f+p)/2))?f=w:p=w,t=n,!(n=n[C=_<<1|$]))return this;if(!n.length)break;(t[C+1&3]||t[C+2&3]||t[C+3&3])&&(i=t,E=C)}for(;n.data!==e;)if(o=n,!(n=n.next))return this;return(l=n.next)&&delete n.next,o?(l?o.next=l:delete o.next,this):t?(l?t[C]=l:delete t[C],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(i?i[E]=n:this._root=n),this):(this._root=l,this)}function owe(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function swe(){return this._root}function lwe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function awe(e){var t=[],n,i=this._root,o,l,u,f,h;for(i&&t.push(new jn(i,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(i=n.node,l=n.x0,u=n.y0,f=n.x1,h=n.y1)&&i.length){var p=(l+f)/2,g=(u+h)/2;(o=i[3])&&t.push(new jn(o,p,g,f,h)),(o=i[2])&&t.push(new jn(o,l,g,p,h)),(o=i[1])&&t.push(new jn(o,p,u,f,g)),(o=i[0])&&t.push(new jn(o,l,u,p,g))}return this}function cwe(e){var t=[],n=[],i;for(this._root&&t.push(new jn(this._root,this._x0,this._y0,this._x1,this._y1));i=t.pop();){var o=i.node;if(o.length){var l,u=i.x0,f=i.y0,h=i.x1,p=i.y1,g=(u+h)/2,v=(f+p)/2;(l=o[0])&&t.push(new jn(l,u,f,g,v)),(l=o[1])&&t.push(new jn(l,g,f,h,v)),(l=o[2])&&t.push(new jn(l,u,v,g,p)),(l=o[3])&&t.push(new jn(l,g,v,h,p))}n.push(i)}for(;i=n.pop();)e(i.node,i.x0,i.y0,i.x1,i.y1);return this}function uwe(e){return e[0]}function fwe(e){return arguments.length?(this._x=e,this):this._x}function dwe(e){return e[1]}function hwe(e){return arguments.length?(this._y=e,this):this._y}function hm(e,t,n){var i=new pm(t??uwe,n??dwe,NaN,NaN,NaN,NaN);return e==null?i:i.addAll(e)}function pm(e,t,n,i,o,l){this._x=e,this._y=t,this._x0=n,this._y0=i,this._x1=o,this._y1=l,this._root=void 0}function _w(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Un=hm.prototype=pm.prototype;Un.copy=function(){var e=new pm(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,i;if(!t)return e;if(!t.length)return e._root=_w(t),e;for(n=[{source:t,target:e._root=new Array(4)}];t=n.pop();)for(var o=0;o<4;++o)(i=t.source[o])&&(i.length?n.push({source:i,target:t.target[o]=new Array(4)}):t.target[o]=_w(i));return e};Un.add=Zbe;Un.addAll=Qbe;Un.cover=ewe;Un.data=twe;Un.extent=nwe;Un.find=rwe;Un.remove=iwe;Un.removeAll=owe;Un.root=swe;Un.size=lwe;Un.visit=awe;Un.visitAfter=cwe;Un.x=fwe;Un.y=hwe;function qn(e){return function(){return e}}function Eo(e){return(e()-.5)*1e-6}function pwe(e){return e.x+e.vx}function gwe(e){return e.y+e.vy}function mwe(e){var t,n,i,o=1,l=1;typeof e!="function"&&(e=qn(e==null?1:+e));function u(){for(var p,g=t.length,v,y,w,$,_,C,E=0;E<l;++E)for(v=hm(t,pwe,gwe).visitAfter(f),p=0;p<g;++p)y=t[p],_=n[y.index],C=_*_,w=y.x+y.vx,$=y.y+y.vy,v.visit(L);function L(D,N,I,q,X){var ie=D.data,J=D.r,U=_+J;if(ie){if(ie.index>y.index){var K=w-ie.x-ie.vx,P=$-ie.y-ie.vy,O=K*K+P*P;O<U*U&&(K===0&&(K=Eo(i),O+=K*K),P===0&&(P=Eo(i),O+=P*P),O=(U-(O=Math.sqrt(O)))/O*o,y.vx+=(K*=O)*(U=(J*=J)/(C+J)),y.vy+=(P*=O)*U,ie.vx-=K*(U=1-U),ie.vy-=P*U)}return}return N>w+U||q<w-U||I>$+U||X<$-U}}function f(p){if(p.data)return p.r=n[p.data.index];for(var g=p.r=0;g<4;++g)p[g]&&p[g].r>p.r&&(p.r=p[g].r)}function h(){if(t){var p,g=t.length,v;for(n=new Array(g),p=0;p<g;++p)v=t[p],n[v.index]=+e(v,p,t)}}return u.initialize=function(p,g){t=p,i=g,h()},u.iterations=function(p){return arguments.length?(l=+p,u):l},u.strength=function(p){return arguments.length?(o=+p,u):o},u.radius=function(p){return arguments.length?(e=typeof p=="function"?p:qn(+p),h(),u):e},u}function vwe(e){return e.index}function kw(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function ywe(e){var t=vwe,n=v,i,o=qn(30),l,u,f,h,p,g=1;e==null&&(e=[]);function v(C){return 1/Math.min(f[C.source.index],f[C.target.index])}function y(C){for(var E=0,L=e.length;E<g;++E)for(var D=0,N,I,q,X,ie,J,U;D<L;++D)N=e[D],I=N.source,q=N.target,X=q.x+q.vx-I.x-I.vx||Eo(p),ie=q.y+q.vy-I.y-I.vy||Eo(p),J=Math.sqrt(X*X+ie*ie),J=(J-l[D])/J*C*i[D],X*=J,ie*=J,q.vx-=X*(U=h[D]),q.vy-=ie*U,I.vx+=X*(U=1-U),I.vy+=ie*U}function w(){if(u){var C,E=u.length,L=e.length,D=new Map(u.map((I,q)=>[t(I,q,u),I])),N;for(C=0,f=new Array(E);C<L;++C)N=e[C],N.index=C,typeof N.source!="object"&&(N.source=kw(D,N.source)),typeof N.target!="object"&&(N.target=kw(D,N.target)),f[N.source.index]=(f[N.source.index]||0)+1,f[N.target.index]=(f[N.target.index]||0)+1;for(C=0,h=new Array(L);C<L;++C)N=e[C],h[C]=f[N.source.index]/(f[N.source.index]+f[N.target.index]);i=new Array(L),$(),l=new Array(L),_()}}function $(){if(u)for(var C=0,E=e.length;C<E;++C)i[C]=+n(e[C],C,e)}function _(){if(u)for(var C=0,E=e.length;C<E;++C)l[C]=+o(e[C],C,e)}return y.initialize=function(C,E){u=C,p=E,w()},y.links=function(C){return arguments.length?(e=C,w(),y):e},y.id=function(C){return arguments.length?(t=C,y):t},y.iterations=function(C){return arguments.length?(g=+C,y):g},y.strength=function(C){return arguments.length?(n=typeof C=="function"?C:qn(+C),$(),y):n},y.distance=function(C){return arguments.length?(o=typeof C=="function"?C:qn(+C),_(),y):o},y}const bwe=1664525,wwe=1013904223,Tw=4294967296;function xwe(){let e=1;return()=>(e=(bwe*e+wwe)%Tw)/Tw}function Swe(e){return e.x}function _we(e){return e.y}var kwe=10,Twe=Math.PI*(3-Math.sqrt(5));function Cwe(e){var t,n=1,i=.001,o=1-Math.pow(i,1/300),l=0,u=.6,f=new Map,h=cm(v),p=Oc("tick","end"),g=xwe();e==null&&(e=[]);function v(){y(),p.call("tick",t),n<i&&(h.stop(),p.call("end",t))}function y(_){var C,E=e.length,L;_===void 0&&(_=1);for(var D=0;D<_;++D)for(n+=(l-n)*o,f.forEach(function(N){N(n)}),C=0;C<E;++C)L=e[C],L.fx==null?L.x+=L.vx*=u:(L.x=L.fx,L.vx=0),L.fy==null?L.y+=L.vy*=u:(L.y=L.fy,L.vy=0);return t}function w(){for(var _=0,C=e.length,E;_<C;++_){if(E=e[_],E.index=_,E.fx!=null&&(E.x=E.fx),E.fy!=null&&(E.y=E.fy),isNaN(E.x)||isNaN(E.y)){var L=kwe*Math.sqrt(.5+_),D=_*Twe;E.x=L*Math.cos(D),E.y=L*Math.sin(D)}(isNaN(E.vx)||isNaN(E.vy))&&(E.vx=E.vy=0)}}function $(_){return _.initialize&&_.initialize(e,g),_}return w(),t={tick:y,restart:function(){return h.restart(v),t},stop:function(){return h.stop(),t},nodes:function(_){return arguments.length?(e=_,w(),f.forEach($),t):e},alpha:function(_){return arguments.length?(n=+_,t):n},alphaMin:function(_){return arguments.length?(i=+_,t):i},alphaDecay:function(_){return arguments.length?(o=+_,t):+o},alphaTarget:function(_){return arguments.length?(l=+_,t):l},velocityDecay:function(_){return arguments.length?(u=1-_,t):1-u},randomSource:function(_){return arguments.length?(g=_,f.forEach($),t):g},force:function(_,C){return arguments.length>1?(C==null?f.delete(_):f.set(_,$(C)),t):f.get(_)},find:function(_,C,E){var L=0,D=e.length,N,I,q,X,ie;for(E==null?E=1/0:E*=E,L=0;L<D;++L)X=e[L],N=_-X.x,I=C-X.y,q=N*N+I*I,q<E&&(ie=X,E=q);return ie},on:function(_,C){return arguments.length>1?(p.on(_,C),t):p.on(_)}}}function Ewe(){var e,t,n,i,o=qn(-30),l,u=1,f=1/0,h=.81;function p(w){var $,_=e.length,C=hm(e,Swe,_we).visitAfter(v);for(i=w,$=0;$<_;++$)t=e[$],C.visit(y)}function g(){if(e){var w,$=e.length,_;for(l=new Array($),w=0;w<$;++w)_=e[w],l[_.index]=+o(_,w,e)}}function v(w){var $=0,_,C,E=0,L,D,N;if(w.length){for(L=D=N=0;N<4;++N)(_=w[N])&&(C=Math.abs(_.value))&&($+=_.value,E+=C,L+=C*_.x,D+=C*_.y);w.x=L/E,w.y=D/E}else{_=w,_.x=_.data.x,_.y=_.data.y;do $+=l[_.data.index];while(_=_.next)}w.value=$}function y(w,$,_,C){if(!w.value)return!0;var E=w.x-t.x,L=w.y-t.y,D=C-$,N=E*E+L*L;if(D*D/h<N)return N<f&&(E===0&&(E=Eo(n),N+=E*E),L===0&&(L=Eo(n),N+=L*L),N<u&&(N=Math.sqrt(u*N)),t.vx+=E*w.value*i/N,t.vy+=L*w.value*i/N),!0;if(w.length||N>=f)return;(w.data!==t||w.next)&&(E===0&&(E=Eo(n),N+=E*E),L===0&&(L=Eo(n),N+=L*L),N<u&&(N=Math.sqrt(u*N)));do w.data!==t&&(D=l[w.data.index]*i/N,t.vx+=E*D,t.vy+=L*D);while(w=w.next)}return p.initialize=function(w,$){e=w,n=$,g()},p.strength=function(w){return arguments.length?(o=typeof w=="function"?w:qn(+w),g(),p):o},p.distanceMin=function(w){return arguments.length?(u=w*w,p):Math.sqrt(u)},p.distanceMax=function(w){return arguments.length?(f=w*w,p):Math.sqrt(f)},p.theta=function(w){return arguments.length?(h=w*w,p):Math.sqrt(h)},p}function Awe(e){var t=qn(.1),n,i,o;typeof e!="function"&&(e=qn(e==null?0:+e));function l(f){for(var h=0,p=n.length,g;h<p;++h)g=n[h],g.vx+=(o[h]-g.x)*i[h]*f}function u(){if(n){var f,h=n.length;for(i=new Array(h),o=new Array(h),f=0;f<h;++f)i[f]=isNaN(o[f]=+e(n[f],f,n))?0:+t(n[f],f,n)}}return l.initialize=function(f){n=f,u()},l.strength=function(f){return arguments.length?(t=typeof f=="function"?f:qn(+f),u(),l):t},l.x=function(f){return arguments.length?(e=typeof f=="function"?f:qn(+f),u(),l):e},l}function $we(e){var t=qn(.1),n,i,o;typeof e!="function"&&(e=qn(e==null?0:+e));function l(f){for(var h=0,p=n.length,g;h<p;++h)g=n[h],g.vy+=(o[h]-g.y)*i[h]*f}function u(){if(n){var f,h=n.length;for(i=new Array(h),o=new Array(h),f=0;f<h;++f)i[f]=isNaN(o[f]=+e(n[f],f,n))?0:+t(n[f],f,n)}}return l.initialize=function(f){n=f,u()},l.strength=function(f){return arguments.length?(t=typeof f=="function"?f:qn(+f),u(),l):t},l.y=function(f){return arguments.length?(e=typeof f=="function"?f:qn(+f),u(),l):e},l}function Nwe(){return{drag:{end:0,start:.1},filter:{link:1,type:.1,unlinked:{include:.1,exclude:.1}},focus:{acquire:()=>.1,release:()=>.1},initialize:1,labels:{links:{hide:0,show:0},nodes:{hide:0,show:0}},resize:.5}}function Mwe(){return{centering:{enabled:!0,strength:.1},charge:{enabled:!0,strength:-1},collision:{enabled:!0,strength:1,radiusMultiplier:2},link:{enabled:!0,strength:1,length:128}}}function Lwe(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function vk(e){e.preventDefault(),e.stopPropagation()}function yk(e){return typeof e=="number"}function Fo(e,t){return yk(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function Owe(e){return`${e.source.id}-${e.target.id}`}function bk(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function Rwe(e){return`url(#${bk(e.color)})`}function Pwe(e){return{size:e,padding:(t,n)=>Fo(n,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const wk={Arrow:e=>Pwe(e)},Iwe=(e,t,n)=>[t/2,n/2],Dwe=(e,t,n)=>[Cw(0,t),Cw(0,n)];function Cw(e,t){return Math.random()*(t-e)+e}const Vp={Centered:Iwe,Randomized:Dwe};function Fwe(){return{autoResize:!1,callbacks:{},hooks:{},initial:Lwe(),nodeRadius:16,marker:wk.Arrow(4),modifiers:{},positionInitializer:Vp.Centered,simulation:{alphas:Nwe(),forces:Mwe()},zoom:{initial:1,min:.1,max:2}}}function zwe(e={}){return yve(Fwe(),e,{arrayMerge:(t,n)=>n})}function Hwe({applyZoom:e,container:t,onDoubleClick:n,onPointerMoved:i,onPointerUp:o,offset:[l,u],scale:f,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",g=>vk(g)).on("dblclick",g=>n?.(g)).on("dblclick.zoom",null).on("pointermove",g=>i?.(g)).on("pointerup",g=>o?.(g)).style("cursor","grab");return e&&p.call(h.transform,dm.translate(l,u).scale(f)),p.append("g")}function Bwe({canvas:e,scale:t,xOffset:n,yOffset:i}){e?.attr("transform",`translate(${n},${i})scale(${t})`)}function jwe({config:e,onDragStart:t,onDragEnd:n}){const i=l0e().filter(o=>o.type==="mousedown"?o.button===0:o.type==="touchstart"?o.touches.length===1:!1).on("start",(o,l)=>{o.active===0&&t(o,l),er(o.sourceEvent.target).classed("grabbed",!0),l.fx=l.x,l.fy=l.y}).on("drag",(o,l)=>{l.fx=o.x,l.fy=o.y}).on("end",(o,l)=>{o.active===0&&n(o,l),er(o.sourceEvent.target).classed("grabbed",!1),l.fx=void 0,l.fy=void 0});return e.modifiers.drag?.(i),i}function Wwe({graph:e,filter:t,focusedNode:n,includeUnlinked:i,linkFilter:o}){const l=e.links.filter(h=>t.includes(h.source.type)&&t.includes(h.target.type)&&o(h)),u=h=>l.find(p=>p.source.id===h.id||p.target.id===h.id)!==void 0,f=e.nodes.filter(h=>t.includes(h.type)&&(i||u(h)));return n===void 0||!t.includes(n.type)?{nodes:f,links:l}:qwe({links:l},n)}function qwe(e,t){const n=[...Uwe(e,t),...Vwe(e,t)],i=n.flatMap(o=>[o.source,o.target]);return{nodes:[...new Set([...i,t])],links:[...new Set(n)]}}function Uwe(e,t){return xk(e,t,(n,i)=>n.target.id===i.id)}function Vwe(e,t){return xk(e,t,(n,i)=>n.source.id===i.id)}function xk(e,t,n){const i=new Set(e.links),o=new Set([t]),l=[];for(;i.size>0;){const u=[...i].filter(f=>[...o].some(h=>n(f,h)));if(u.length===0)return l;u.forEach(f=>{o.add(f.source),o.add(f.target),l.push(f),i.delete(f)})}return l}function Gp(e){return e.x??0}function Kp(e){return e.y??0}function gm({source:e,target:t}){const n=new Ol(Gp(e),Kp(e)),i=new Ol(Gp(t),Kp(t)),o=i.subtract(n),l=o.length(),u=o.normalize();return{s:n,t:i,dist:l,norm:u,endNorm:u.multiply(-1)}}function Sk({center:e,node:t}){const n=new Ol(Gp(t),Kp(t));let i=e;return n.x===i.x&&n.y===i.y&&(i=i.add(new Ol(0,1))),{n,c:i}}function _k({config:e,source:t,target:n}){const{s:i,t:o,norm:l}=gm({source:t,target:n});return{start:i.add(l.multiply(Fo(e,t)-1)),end:o.subtract(l.multiply(e.marker.padding(n,e)))}}function Gwe(e){const{start:t,end:n}=_k(e);return`M${t.x},${t.y}
78
- L${n.x},${n.y}`}function Kwe(e){const{start:t,end:n}=_k(e),i=n.subtract(t).multiply(.5),o=t.add(i);return`translate(${o.x-8},${o.y-4})`}function Ywe({config:e,source:t,target:n}){const{s:i,t:o,dist:l,norm:u,endNorm:f}=gm({source:t,target:n}),h=10,p=u.rotateByDegrees(-h).multiply(Fo(e,t)-1).add(i),g=f.rotateByDegrees(h).multiply(Fo(e,n)).add(o).add(f.rotateByDegrees(h).multiply(2*e.marker.size)),v=1.2*l;return`M${p.x},${p.y}
79
- A${v},${v},0,0,1,${g.x},${g.y}`}function Xwe({center:e,config:t,node:n}){const{n:i,c:o}=Sk({center:e,node:n}),l=Fo(t,n),u=i.subtract(o),f=u.multiply(1/u.length()),h=40,p=f.rotateByDegrees(h).multiply(l-1).add(i),g=f.rotateByDegrees(-h).multiply(l).add(i).add(f.rotateByDegrees(-h).multiply(2*t.marker.size));return`M${p.x},${p.y}
80
- A${l},${l},0,1,0,${g.x},${g.y}`}function Jwe({config:e,source:t,target:n}){const{t:i,dist:o,endNorm:l}=gm({source:t,target:n}),u=l.rotateByDegrees(10).multiply(.5*o).add(i);return`translate(${u.x},${u.y})`}function Zwe({center:e,config:t,node:n}){const{n:i,c:o}=Sk({center:e,node:n}),l=i.subtract(o),u=l.multiply(1/l.length()).multiply(3*Fo(t,n)+8).add(i);return`translate(${u.x},${u.y})`}const xl={line:{labelTransform:Kwe,path:Gwe},arc:{labelTransform:Jwe,path:Ywe},reflexive:{labelTransform:Zwe,path:Xwe}};function Qwe(e){return e.append("g").classed("links",!0).selectAll("path")}function exe({config:e,graph:t,selection:n,showLabels:i}){const o=n?.data(t.links,l=>Owe(l)).join(l=>{const u=l.append("g"),f=u.append("path").classed("link",!0).style("marker-end",p=>Rwe(p)).style("stroke",p=>p.color);e.modifiers.link?.(f);const h=u.append("text").classed("link__label",!0).style("fill",p=>p.label?p.label.color:null).style("font-size",p=>p.label?p.label.fontSize:null).text(p=>p.label?p.label.text:null);return e.modifiers.linkLabel?.(h),u});return o?.select(".link__label").attr("opacity",l=>l.label&&i?1:0),o}function txe(e){nxe(e),rxe(e)}function nxe({center:e,config:t,graph:n,selection:i}){i?.selectAll("path").attr("d",o=>o.source.x===void 0||o.source.y===void 0||o.target.x===void 0||o.target.y===void 0?"":o.source.id===o.target.id?xl.reflexive.path({config:t,node:o.source,center:e}):kk(n,o.source,o.target)?xl.arc.path({config:t,source:o.source,target:o.target}):xl.line.path({config:t,source:o.source,target:o.target}))}function rxe({config:e,center:t,graph:n,selection:i}){i?.select(".link__label").attr("transform",o=>o.source.x===void 0||o.source.y===void 0||o.target.x===void 0||o.target.y===void 0?"translate(0, 0)":o.source.id===o.target.id?xl.reflexive.labelTransform({config:e,node:o.source,center:t}):kk(n,o.source,o.target)?xl.arc.labelTransform({config:e,source:o.source,target:o.target}):xl.line.labelTransform({config:e,source:o.source,target:o.target}))}function kk(e,t,n){return t.id!==n.id&&e.links.some(i=>i.target.id===t.id&&i.source.id===n.id)&&e.links.some(i=>i.target.id===n.id&&i.source.id===t.id)}function ixe(e){return e.append("defs").selectAll("marker")}function oxe({config:e,graph:t,selection:n}){return n?.data(sxe(t),i=>i).join(i=>{const o=i.append("marker").attr("id",l=>bk(l)).attr("markerHeight",4*e.marker.size).attr("markerWidth",4*e.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",e.marker.ref[0]).attr("refY",e.marker.ref[1]).attr("viewBox",e.marker.viewBox).style("fill",l=>l);return o.append("path").attr("d",lxe(e.marker.path)),o})}function sxe(e){return[...new Set(e.links.map(t=>t.color))]}function lxe(e){const[t,...n]=e;if(!t)return"M0,0";const[i,o]=t;return n.reduce((l,[u,f])=>`${l}L${u},${f}`,`M${i},${o}`)}function axe(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function cxe({config:e,drag:t,graph:n,onNodeContext:i,onNodeSelected:o,selection:l,showLabels:u}){const f=l?.data(n.nodes,h=>h.id).join(h=>{const p=h.append("g");t!==void 0&&p.call(t);const g=p.append("circle").classed("node",!0).attr("r",y=>Fo(e,y)).on("contextmenu",(y,w)=>{vk(y),i(w)}).on("pointerdown",(y,w)=>fxe(y,w,o??i)).style("fill",y=>y.color);e.modifiers.node?.(g);const v=p.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",y=>y.label?y.label.color:null).style("font-size",y=>y.label?y.label.fontSize:null).style("stroke","none").text(y=>y.label?y.label.text:null);return e.modifiers.nodeLabel?.(v),p});return f?.select(".node").classed("focused",h=>h.isFocused),f?.select(".node__label").attr("opacity",u?1:0),f}const uxe=500;function fxe(e,t,n){if(e.button!==void 0&&e.button!==0)return;const i=t.lastInteractionTimestamp,o=Date.now();if(i===void 0||o-i>uxe){t.lastInteractionTimestamp=o;return}t.lastInteractionTimestamp=void 0,n(t)}function dxe(e){e?.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function hxe({center:e,config:t,graph:n,onTick:i}){const o=Cwe(n.nodes),l=t.simulation.forces.centering;if(l&&l.enabled){const p=l.strength;o.force("x",Awe(()=>e().x).strength(p)).force("y",$we(()=>e().y).strength(p))}const u=t.simulation.forces.charge;u&&u.enabled&&o.force("charge",Ewe().strength(u.strength));const f=t.simulation.forces.collision;f&&f.enabled&&o.force("collision",mwe().radius(p=>f.radiusMultiplier*Fo(t,p)));const h=t.simulation.forces.link;return h&&h.enabled&&o.force("link",ywe(n.links).id(p=>p.id).distance(t.simulation.forces.link.length).strength(h.strength)),o.on("tick",()=>i()),t.modifiers.simulation?.(o),o}function pxe({canvasContainer:e,config:t,min:n,max:i,onZoom:o}){const l=Jbe().scaleExtent([n,i]).filter(u=>u.button===0||u.touches?.length>=2).on("start",()=>e().classed("grabbed",!0)).on("zoom",u=>o(u)).on("end",()=>e().classed("grabbed",!1));return t.modifiers.zoom?.(l),l}var gxe=class{nodeTypes;_nodeTypeFilter;_includeUnlinked=!0;_linkFilter=()=>!0;_showLinkLabels=!0;_showNodeLabels=!0;filteredGraph;width=0;height=0;simulation;canvas;linkSelection;nodeSelection;markerSelection;zoom;drag;xOffset=0;yOffset=0;scale;focusedNode=void 0;resizeObserver;container;graph;config;constructor(e,t,n){if(this.container=e,this.graph=t,this.config=n,this.scale=n.zoom.initial,this.resetView(),this.graph.nodes.forEach(i=>{const[o,l]=n.positionInitializer(i,this.effectiveWidth,this.effectiveHeight);i.x=i.x??o,i.y=i.y??l}),this.nodeTypes=[...new Set(t.nodes.map(i=>i.type))],this._nodeTypeFilter=[...this.nodeTypes],n.initial){const{includeUnlinked:i,nodeTypeFilter:o,linkFilter:l,showLinkLabels:u,showNodeLabels:f}=n.initial;this._includeUnlinked=i??this._includeUnlinked,this._showLinkLabels=u??this._showLinkLabels,this._showNodeLabels=f??this._showNodeLabels,this._nodeTypeFilter=o??this._nodeTypeFilter,this._linkFilter=l??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(n.simulation.alphas.initialize),n.autoResize&&(this.resizeObserver=new ResizeObserver(bve(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(e){this._includeUnlinked=e,this.filterGraph(this.focusedNode);const{include:t,exclude:n}=this.config.simulation.alphas.filter.unlinked,i=e?t:n;this.restart(i)}set linkFilter(e){this._linkFilter=e,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(e){this._showNodeLabels=e;const{hide:t,show:n}=this.config.simulation.alphas.labels.nodes,i=e?n:t;this.restart(i)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(e){this._showLinkLabels=e;const{hide:t,show:n}=this.config.simulation.alphas.labels.links,i=e?n:t;this.restart(i)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return Ol.of([this.width,this.height]).divide(2).subtract(Ol.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const e=this.width,t=this.height,n=this.container.getBoundingClientRect().width,i=this.container.getBoundingClientRect().height,o=e.toFixed()!==n.toFixed(),l=t.toFixed()!==i.toFixed();if(!o&&!l)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const u=this.config.simulation.alphas.resize;this.restart(yk(u)?u:u({oldWidth:e,oldHeight:t,newWidth:n,newHeight:i}))}restart(e){this.markerSelection=oxe({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=exe({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=cxe({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:t=>this.toggleNodeFocus(t),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),this.simulation?.stop(),this.simulation=hxe({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(e).restart()}filterNodesByType(e,t){e?this._nodeTypeFilter.push(t):this._nodeTypeFilter=this._nodeTypeFilter.filter(n=>n!==t),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),this.resizeObserver?.unobserve(this.container),this.simulation?.stop()}initGraph(){this.zoom=pxe({config:this.config,canvasContainer:()=>er(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:e=>this.onZoom(e)}),this.canvas=Hwe({applyZoom:this.scale!==1,container:er(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Qwe(this.canvas),this.nodeSelection=axe(this.canvas),this.markerSelection=ixe(this.canvas),this.drag=jwe({config:this.config,onDragStart:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.start).restart(),onDragEnd:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.end).restart()})}onTick(){dxe(this.nodeSelection),txe({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){this.simulation?.stop(),er(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(e){this.xOffset=e.transform.x,this.yOffset=e.transform.y,this.scale=e.transform.k,this.applyZoom(),this.config.hooks.afterZoom?.(this.scale,this.xOffset,this.yOffset),this.simulation?.restart()}applyZoom(){Bwe({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(e){e.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(e))):this.focusNode(e)}focusNode(e){this.filterGraph(e),this.restart(this.config.simulation.alphas.focus.acquire(e))}filterGraph(e){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),e!==void 0&&this._nodeTypeFilter.includes(e.type)&&(e.isFocused=!0,this.focusedNode=e),this.filteredGraph=Wwe({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}};function Ew({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function mxe(e){return{...e}}function mm(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}function Aw(e){const t=e.map(i=>g_(i)),n=hP(t);return t.map(({raw:i,id:o,splitsCopy:l})=>mm({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:o.includes("node_modules")?n.get(i)??i:l[l.length-1]},isFocused:!1,id:o,type:"external"}))}function vxe(e,t){return mm({color:t?"var(--color-node-root)":"var(--color-node-inline)",label:{color:t?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:e.split(/\//g).pop()},isFocused:!1,id:e,type:"inline"})}function yxe(e,t){if(!e)return Ew({});const n=pt.value.experimental?.viteModuleRunner?Aw(e.externalized):Aw([...e.inlined,...e.externalized]),i=pt.value.experimental?.viteModuleRunner?e.inlined.map(f=>vxe(f,f===t))??[]:[],o=[...n,...i],l=Object.fromEntries(o.map(f=>[f.id,f])),u=Object.entries(e.graph).flatMap(([f,h])=>h.map(p=>{const g=l[f],v=l[p];if(!(g===void 0||v===void 0))return mxe({source:g,target:v,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return Ew({nodes:o,links:u})}const bxe={key:0,"text-green-700":"","dark:text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},wxe={key:1,"text-red-700":"","dark:text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},xxe={key:2,"text-red-700":"","dark:text-red-500":"","flex-shrink-0":"","i-carbon:close":""},Sxe={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},_xe={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},kxe={key:5,"text-yellow-700":"","dark:text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},Tk=tt({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,n)=>{const i=ir("tooltip");return e.state==="pass"?(te(),ge("div",bxe)):e.failedSnapshot?st((te(),ge("div",wxe,null,512)),[[i,"Contains failed snapshot",void 0,{right:!0}]]):e.state==="fail"?(te(),ge("div",xxe)):e.mode==="todo"?st((te(),ge("div",Sxe,null,512)),[[i,"Todo",void 0,{right:!0}]]):e.mode==="skip"||e.state==="skip"?st((te(),ge("div",_xe,null,512)),[[i,"Skipped",void 0,{right:!0}]]):(te(),ge("div",kxe))}}}),Txe={border:"b base","p-4":""},Cxe=["innerHTML"],Exe=tt({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(n){return new Date(n).toLocaleTimeString()}return(n,i)=>(te(),ge("div",Txe,[Y("div",{"text-xs":"","mb-1":"",class:ot(e.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Me(t(e.time))+" | "+Me(e.taskName)+" | "+Me(e.type),3),Y("pre",{"data-type":"html",innerHTML:e.content},null,8,Cxe)]))}}),Axe={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},$xe={key:1,p6:""},Nxe=tt({__name:"ViewConsoleOutput",setup(e){const t=Se(()=>{const i=j_.value;if(i){const o=Qg(Po.value);return i.map(({taskId:l,type:u,time:f,content:h})=>({taskId:l,type:u,time:f,content:o.toHtml(Wa(h))}))}});function n(i){const o=i&&ft.state.idMap.get(i);return o&&"filepath"in o?o.name:(o?LR(o).slice(1).join(" > "):"-")||"-"}return(i,o)=>t.value?.length?(te(),ge("div",Axe,[(te(!0),ge(nt,null,xn(t.value,({taskId:l,type:u,time:f,content:h})=>(te(),ge("div",{key:l,"font-mono":""},[Ne(Exe,{"task-name":n(l),type:u,time:f,content:h},null,8,["task-name","type","time","content"])]))),128))])):(te(),ge("div",$xe,[...o[0]||(o[0]=[Qe(" Log something in your test and it would print here. (e.g. ",-1),Y("pre",{inline:""},"console.log(foo)",-1),Qe(") ",-1)])]))}}),Ck={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(Ck);var xr=function(e,t,n,i){if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(e):i?i.value:t.get(e)},rl,La,as;class Mxe{constructor(...t){rl.set(this,new Map),La.set(this,new Map),as.set(this,new Map);for(const n of t)this.define(n)}define(t,n=!1){for(let[i,o]of Object.entries(t)){i=i.toLowerCase(),o=o.map(f=>f.toLowerCase()),xr(this,as,"f").has(i)||xr(this,as,"f").set(i,new Set);const l=xr(this,as,"f").get(i);let u=!0;for(let f of o){const h=f.startsWith("*");if(f=h?f.slice(1):f,l?.add(f),u&&xr(this,La,"f").set(i,f),u=!1,h)continue;const p=xr(this,rl,"f").get(f);if(p&&p!=i&&!n)throw new Error(`"${i} -> ${f}" conflicts with "${p} -> ${f}". Pass \`force=true\` to override this definition.`);xr(this,rl,"f").set(f,i)}}return this}getType(t){if(typeof t!="string")return null;const n=t.replace(/^.*[/\\]/s,"").toLowerCase(),i=n.replace(/^.*\./s,"").toLowerCase(),o=n.length<t.length;return!(i.length<n.length-1)&&o?null:xr(this,rl,"f").get(i)??null}getExtension(t){return typeof t!="string"?null:(t=t?.split?.(";")[0],(t&&xr(this,La,"f").get(t.trim().toLowerCase()))??null)}getAllExtensions(t){return typeof t!="string"?null:xr(this,as,"f").get(t.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const t of xr(this,as,"f").values())Object.freeze(t);return this}_getTestState(){return{types:xr(this,rl,"f"),extensions:xr(this,La,"f")}}}rl=new WeakMap,La=new WeakMap,as=new WeakMap;const Lxe=new Mxe(Ck)._freeze();function Pl(e){const t=e.contentType??"application/octet-stream";return e.path?pr?`./data/${iR(e.path)}`:`/__vitest_attachment__?path=${encodeURIComponent(e.path)}&contentType=${t}&token=${window.VITEST_API_TOKEN}`:`data:${t};base64,${e.body}`}function Ek(e,t){const n=t?Lxe.getExtension(t):null;return e.replace(/[\x00-\x2C\x2E\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/g,"-")+(n?`.${n}`:"")}function Ak(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))}function Yp(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))?t:Pl(e)}const Ju=tt({__name:"CodeMirrorContainer",props:Xa({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:Xa(["save","codemirror"],["update:modelValue"]),setup(e,{emit:t}){const n=t,i=Jf(e,"modelValue"),o=fA(),l={html:"htmlmixed",vue:"htmlmixed",svelte:"htmlmixed",js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},u=Ke();return Yi(async()=>{const f=Lge(u,i,{...o,mode:l[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){h.getOption("readOnly")||n("save",h.getValue())},"Ctrl-S":function(h){h.getOption("readOnly")||n("save",h.getValue())}}});f.on("refresh",()=>{n("codemirror",f)}),f.on("change",()=>{n("codemirror",f)}),f.setSize("100%","100%"),f.clearHistory(),Fn.value=f,setTimeout(()=>Fn.value?.refresh(),100)}),(f,h)=>(te(),ge("div",{relative:"","font-mono":"","text-sm":"",class:ot(["codemirror-scrolls",e.saving?"codemirror-busy":void 0])},[Y("textarea",{ref_key:"el",ref:u},null,512)],2))}}),Oxe=tt({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const n=e,i=t,o=Ke(""),l=Vt(void 0),u=Ke(!1),f=Ke(!0),h=Ke(!1),p=Ke();yt(()=>n.file,async()=>{if(!h.value){f.value=!0;try{if(!n.file||!n.file?.filepath){o.value="",l.value=o.value,u.value=!1,f.value=!1;return}o.value=await ft.rpc.readTestFile(n.file.filepath)||"",l.value=o.value,u.value=!1}catch(J){console.error("cannot fetch file",J)}await At(),f.value=!1}},{immediate:!0}),yt(()=>[f.value,h.value,n.file,N_.value,M_.value],([J,U,K,P,O])=>{!J&&!U&&(P!=null?At(()=>{const k=p.value,S=k??{line:(P??1)-1,ch:O??0};k?p.value=void 0:(Fn.value?.scrollIntoView(S,100),At(()=>{Fn.value?.focus(),Fn.value?.setCursor(S)}))}):At(()=>{Fn.value?.focus()}))},{flush:"post"});const g=Se(()=>n.file?.filepath?.split(/\./g).pop()||"js"),v=Ke(),y=Se(()=>{const J=[];function U(K){K.result?.errors&&J.push(...K.result.errors),K.type==="suite"&&K.tasks.forEach(U)}return n.file?.tasks.forEach(U),J}),w=Se(()=>{const J=[];function U(K){K.type==="test"&&J.push(...K.annotations),K.type==="suite"&&K.tasks.forEach(U)}return n.file?.tasks.forEach(U),J}),$=[],_=[],C=[],E=Ke(!1);function L(){C.forEach(([J,U,K])=>{J.removeEventListener("click",U),K()}),C.length=0}fM(v,()=>{Fn.value?.refresh()});function D(){u.value=l.value!==Fn.value.getValue()}yt(u,J=>{i("draft",J)},{immediate:!0});function N(J){const K=(J?.stacks||[]).filter(R=>R.file&&R.file===n.file?.filepath)?.[0];if(!K)return;const P=document.createElement("div");P.className="op80 flex gap-x-2 items-center";const O=document.createElement("pre");O.className="c-red-700 dark:c-red-400",O.textContent=`${" ".repeat(K.column)}^ ${J.name}: ${J?.message||""}`,P.appendChild(O);const k=document.createElement("span");k.className="i-carbon-launch c-red-700 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",k.tabIndex=0,k.ariaLabel="Open in Editor",B1(k,{content:"Open in Editor",placement:"bottom"},!1);const S=async()=>{await Zg(K.file,K.line,K.column)};k.addEventListener("click",S),P.appendChild(k),C.push([k,S,()=>Eg(k)]),_.push(Fn.value.addLineClass(K.line-1,"wrap","bg-red-500/10")),$.push(Fn.value.addLineWidget(K.line-1,P))}function I(J){if(!J.location)return;const{line:U,file:K}=J.location;if(K!==n.file?.filepath)return;const P=document.createElement("div");P.classList.add("wrap","bg-active","py-3","px-6","my-1"),P.role="note";const O=document.createElement("div");O.classList.add("block","text-black","dark:text-white");const k=document.createElement("span");k.textContent=`${J.type}: `,k.classList.add("font-bold");const S=document.createElement("span");S.classList.add("whitespace-pre"),S.textContent=J.message.replace(/[^\r]\n/,`\r
81
- `),O.append(k,S),P.append(O);const R=J.attachment;if(R?.path||R?.body)if(R.contentType?.startsWith("image/")){const B=document.createElement("a"),ae=document.createElement("img");B.classList.add("inline-block","mt-3"),B.style.maxWidth="50vw";const ve=R.path||R.body;typeof ve=="string"&&(ve.startsWith("http://")||ve.startsWith("https://"))?(ae.setAttribute("src",ve),B.referrerPolicy="no-referrer"):ae.setAttribute("src",Pl(R)),B.target="_blank",B.href=ae.src,B.append(ae),P.append(B)}else{const B=document.createElement("a");B.href=Pl(R),B.download=Ek(J.message,R.contentType),B.classList.add("flex","w-min","gap-2","items-center","font-sans","underline","cursor-pointer");const ae=document.createElement("div");ae.classList.add("i-carbon:download","block");const ve=document.createElement("span");ve.textContent="Download",B.append(ae,ve),P.append(B)}$.push(Fn.value.addLineWidget(U-1,P))}const{pause:q,resume:X}=yt([Fn,y,w,ol],([J,U,K,P])=>{if(!J){$.length=0,_.length=0,L();return}P&&(J.off("changes",D),L(),$.forEach(O=>O.clear()),_.forEach(O=>J?.removeLineClass(O,"wrap")),$.length=0,_.length=0,setTimeout(()=>{U.forEach(N),K.forEach(I),E.value||J.clearHistory(),J.on("changes",D)},100))},{flush:"post"});K1(()=>[ol.value,h.value,p.value],([J,U],K)=>{J&&!U&&K&&K[2]&&Fn.value?.setCursor(K[2])},{debounce:100,flush:"post"});async function ie(J){if(h.value)return;q(),h.value=!0,await At();const U=Fn.value;U&&(U.setOption("readOnly",!0),await At(),U.refresh()),p.value=U?.getCursor(),U?.off("changes",D),L(),$.forEach(K=>K.clear()),_.forEach(K=>U?.removeLineClass(K,"wrap")),$.length=0,_.length=0;try{E.value=!0,await ft.rpc.saveTestFile(n.file.filepath,J),l.value=J,u.value=!1}catch(K){console.error("error saving file",K)}E.value||U?.clearHistory();try{await $0(ol).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await $0(ol).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}y.value.forEach(N),w.value.forEach(I),U?.on("changes",D),h.value=!1,await At(),U&&(U.setOption("readOnly",!1),await At(),U.refresh()),X()}return Sc(L),(J,U)=>(te(),We(Ju,ci({ref_key:"editor",ref:v,modelValue:o.value,"onUpdate:modelValue":U[0]||(U[0]=K=>o.value=K),"h-full":""},{lineNumbers:!0,readOnly:W(pr)||!W(pt).api?.allowWrite,saving:h.value},{mode:g.value,"data-testid":"code-mirror",onSave:ie}),null,16,["modelValue","mode"]))}}),$k=tt({__name:"Modal",props:Xa({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Jf(e,"modelValue"),n=Se(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),i=Se(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),o=()=>t.value=!1;return(l,u)=>(te(),ge("div",{class:ot(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[Y("div",{class:ot(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:o},null,2),Y("div",{class:ot(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[n.value]]),style:Pt(t.value?{}:{transform:i.value})},[Bt(l.$slots,"default")],6)],2))}}),Rxe={class:"overflow-auto max-h-120"},Pxe={"my-2":"","mx-4":"","text-sm":"","font-light":"","op-90":""},Ixe=["onClick"],Dxe=tt({__name:"ModuleGraphImportBreakdown",emits:["select"],setup(e,{emit:t}){const n=t,i=Se(()=>{const u=Tr.value?.importDurations,f=pt.value.root;if(!u||!f)return[];const h=[];for(const p in u){const g=u[p],v=g.external?pP(p):ud(f,p);h.push({importedFile:p,relativeFile:o(v),selfTime:g.selfTime,totalTime:g.totalTime,formattedSelfTime:us(g.selfTime),formattedTotalTime:us(g.totalTime),selfTimeClass:kf(g.selfTime),totalTimeClass:kf(g.totalTime),external:g.external})}return h.sort((p,g)=>g.totalTime-p.totalTime)});function o(l){return l.length<=45?l:`...${l.slice(-45)}`}return(l,u)=>(te(),ge("div",Rxe,[u[1]||(u[1]=Y("h1",{"my-2":"","mx-4":""},[Qe(" Import Duration Breakdown "),Y("span",{"op-70":""},"(ordered by Total Time)")],-1)),Y("table",Pxe,[u[0]||(u[0]=Y("thead",null,[Y("tr",null,[Y("th",null," Module "),Y("th",null," Self "),Y("th",null," Total "),Y("th",null," % ")])],-1)),Y("tbody",null,[(te(!0),ge(nt,null,xn(i.value,f=>(te(),ge("tr",{key:f.importedFile},[Y("td",{class:"cursor-pointer pr-2",style:Pt({color:f.external?"var(--color-node-external)":void 0}),onClick:h=>n("select",f.importedFile,f.external?"external":"inline")},Me(f.relativeFile),13,Ixe),Y("td",{"pr-2":"",class:ot(f.selfTimeClass)},Me(f.formattedSelfTime),3),Y("td",{"pr-2":"",class:ot(f.totalTimeClass)},Me(f.formattedTotalTime),3),Y("td",{"pr-2":"",class:ot(f.totalTimeClass)},Me(Math.round(f.totalTime/i.value[0].totalTime*100))+"% ",3)]))),128))])])]))}}),el=tt({__name:"Badge",props:{type:{default:"info"}},setup(e){return(t,n)=>(te(),ge("span",{class:ot(["rounded-full py-0.5 px-2 text-xs text-white select-none",{"bg-red":e.type==="danger","bg-orange":e.type==="warning","bg-gray":e.type==="info","bg-indigo/60":e.type==="tip"}])},[Bt(t.$slots,"default")],2))}}),Fxe={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},zxe={"p-4":"",relative:""},Hxe={flex:"","justify-between":""},Bxe={"mr-8":"",flex:"","gap-2":"","items-center":""},jxe={op50:"","font-mono":"","text-sm":""},Wxe={key:0,"p-5":""},qxe={key:0,p:"x3 y-1","bg-overlay":"",border:"base b t"},Uxe={key:0},Vxe={p:"x3 y-1","bg-overlay":"",border:"base b t"},Gxe=tt({__name:"ModuleTransformResultView",props:{id:{},projectName:{},type:{},canUndo:{type:Boolean}},emits:["close","select","back"],setup(e,{emit:t}){const n=e,i=t,o=VN(()=>{if(Tr.value?.id){if(n.type==="inline")return ft.rpc.getTransformResult(n.projectName,n.id,Tr.value.id,!!gr);if(n.type==="external")return ft.rpc.getExternalResult(n.id,Tr.value.id)}}),l=Se(()=>{const D=Tr.value?.importDurations||{};return D[n.id]||D[nR("/@fs/",n.id)]||{}}),u=Se(()=>n.id?.split(/\./g).pop()||"js"),f=Se(()=>o.value?.source?.trim()||""),h=Se(()=>!o.value||!("code"in o.value)||!pt.value.experimental?.fsModuleCache?void 0:o.value.code.lastIndexOf("vitestCache=")!==-1),p=Se(()=>!o.value||!("code"in o.value)?null:o.value.code.replace(/\/\/# sourceMappingURL=.*\n/,"").replace(/\/\/# sourceMappingSource=.*\n/,"").replace(/\/\/# vitestCache=.*\n?/,"").trim()||""),g=Se(()=>!o.value||!("map"in o.value)?{mappings:""}:{mappings:o.value?.map?.mappings??"",version:o.value?.map?.version}),v=[],y=[],w=[];function $(D,N){const I=D.coordsChar({left:N.clientX,top:N.clientY}),q=D.findMarksAt(I);if(q.length!==1)return;const X=q[0].title;if(X){const ie=q[0].attributes?.["data-external"]==="true"?"external":"inline";i("select",X,ie)}}function _(D){const N=document.createElement("div");N.classList.add("mb-5");const I=pt.value.root;if(I)return D.forEach(({resolvedId:q,totalTime:X,external:ie})=>{const J=document.createElement("div");J.append(document.createTextNode("import "));const U=document.createElement("span"),K=ud(I,q);U.textContent=`"/${K}"`,U.className="hover:underline decoration-gray cursor-pointer select-none",J.append(U),U.addEventListener("click",()=>{i("select",q,ie?"external":"inline")});const P=document.createElement("span");P.textContent=` ${us(X)}`;const O=kf(X);O&&P.classList.add(O),J.append(P),N.append(J)}),N}function C(D){const N=document.createElement("div");N.className="flex ml-2",N.textContent=us(D);const I=kf(D);return I&&N.classList.add(I),N}function E(D){if(w.forEach(N=>N.clear()),w.length=0,v.forEach(N=>N.remove()),v.length=0,y.forEach(N=>N.clear()),y.length=0,o.value&&"modules"in o.value){D.off("mousedown",$),D.on("mousedown",$);const N=o.value.untrackedModules;if(N?.length){const I=_(N);if(!I)return;v.push(I),w.push(D.addLineWidget(0,I,{above:!0}))}o.value.modules?.forEach(I=>{const q={line:I.start.line-1,ch:I.start.column},X={line:I.end.line-1,ch:I.end.column},ie=D.markText(q,X,{title:I.resolvedId,attributes:{"data-external":String(I.external===!0)},className:"hover:underline decoration-red cursor-pointer select-none"});y.push(ie);const J=C(I.totalTime+(I.transformTime||0));N?.length||J.classList.add("-mt-5"),v.push(J),D.addWidget({line:I.end.line-1,ch:I.end.column+1},J,!1)})}}function L(){i("back")}return J1("Escape",()=>{i("close")}),(D,N)=>{const I=ir("tooltip");return te(),ge("div",Fxe,[Y("div",zxe,[Y("div",Hxe,[Y("p",null,[e.canUndo?st((te(),We(Tt,{key:0,icon:"i-carbon-arrow-left",class:"flex-inline",onClick:N[0]||(N[0]=q=>L())},null,512)),[[I,"Go Back",void 0,{bottom:!0}]]):Fe("",!0),N[7]||(N[7]=Qe(" Module Info ",-1)),Ne(W(wo),{class:"inline","cursor-help":""},{popper:je(()=>[Qe(" This is module is "+Me(e.type==="external"?"externalized":"inlined")+". ",1),e.type==="external"?(te(),ge(nt,{key:0},[Qe(" It means that the module was not processed by Vite plugins, but instead was directly imported by the environment. ")],64)):(te(),ge(nt,{key:1},[Qe(" It means that the module was processed by Vite plugins. ")],64))]),default:je(()=>[Ne(el,{type:"custom","ml-1":"",style:Pt({backgroundColor:`var(--color-node-${e.type})`})},{default:je(()=>[Qe(Me(e.type),1)]),_:1},8,["style"])]),_:1}),h.value===!0?(te(),We(W(wo),{key:1,class:"inline","cursor-help":""},{popper:je(()=>[...N[4]||(N[4]=[Qe(' This module is cached on the file system under `experimental.fsModuleCachePath` ("node_modules/.exprtimental-vitest-cache" by default). ',-1)])]),default:je(()=>[Ne(el,{type:"tip","ml-2":""},{default:je(()=>[...N[3]||(N[3]=[Qe(" cached ",-1)])]),_:1})]),_:1})):Fe("",!0),h.value===!1?(te(),We(W(wo),{key:2,class:"inline","cursor-help":""},{popper:je(()=>[...N[6]||(N[6]=[Y("p",null,"This module is not cached on the file system. It might be the first test run after cache invalidation or",-1),Y("p",null,"it was excluded manually via `experimental_defineCacheKeyGenerator`, or it cannot be cached (modules with `import.meta.glob`, for example).",-1)])]),default:je(()=>[Ne(el,{type:"warning","ml-2":""},{default:je(()=>[...N[5]||(N[5]=[Qe(" not cached ",-1)])]),_:1})]),_:1})):Fe("",!0)]),Y("div",Bxe,[l.value.selfTime!=null&&l.value.external!==!0?(te(),We(W(wo),{key:0,class:"inline","cursor-help":""},{popper:je(()=>[Qe(" It took "+Me(W(zh)(l.value.selfTime))+" to import this module, excluding static imports. ",1)]),default:je(()=>[Ne(el,{type:W(qu)(l.value.selfTime)},{default:je(()=>[Qe(" self: "+Me(W(us)(l.value.selfTime)),1)]),_:1},8,["type"])]),_:1})):Fe("",!0),l.value.totalTime!=null?(te(),We(W(wo),{key:1,class:"inline","cursor-help":""},{popper:je(()=>[Qe(" It took "+Me(W(zh)(l.value.totalTime))+" to import the whole module, including static imports. ",1)]),default:je(()=>[Ne(el,{type:W(qu)(l.value.totalTime)},{default:je(()=>[Qe(" total: "+Me(W(us)(l.value.totalTime)),1)]),_:1},8,["type"])]),_:1})):Fe("",!0),W(o)&&"transformTime"in W(o)&&W(o).transformTime?(te(),We(W(wo),{key:2,class:"inline","cursor-help":""},{popper:je(()=>[Qe(" It took "+Me(W(zh)(W(o).transformTime))+" to transform this module by Vite plugins. ",1)]),default:je(()=>[Ne(el,{type:W(qu)(W(o).transformTime)},{default:je(()=>[Qe(" transform: "+Me(W(us)(W(o).transformTime)),1)]),_:1},8,["type"])]),_:1})):Fe("",!0)])]),Y("p",jxe,Me(e.id),1),Ne(Tt,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:N[1]||(N[1]=q=>i("close"))})]),W(o)?(te(),ge(nt,{key:1},[Y("div",{grid:"~ rows-[min-content_auto]","overflow-hidden":"","flex-auto":"",class:ot({"cols-2":p.value!=null})},[N[8]||(N[8]=Y("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),p.value!=null?(te(),ge("div",qxe," Transformed ")):Fe("",!0),(te(),We(Ju,ci({key:e.id,"h-full":"","model-value":f.value,"read-only":""},{lineNumbers:!0},{mode:u.value,onCodemirror:N[2]||(N[2]=q=>E(q))}),null,16,["model-value","mode"])),p.value!=null?(te(),We(Ju,ci({key:1,"h-full":"","model-value":p.value,"read-only":""},{lineNumbers:!0},{mode:"js"}),null,16,["model-value"])):Fe("",!0)],2),g.value.mappings!==""?(te(),ge("div",Uxe,[Y("div",Vxe," Source map (v"+Me(g.value.version)+") ",1),Ne(Ju,ci({"model-value":g.value.mappings,"read-only":""},{lineNumbers:!0}),null,16,["model-value"])])):Fe("",!0)],64)):(te(),ge("div",Wxe," No transform result found for this module. "))])}}}),Kxe={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Yxe={flex:"","items-center":"","gap-2":"","px-3":"","py-2":""},Xxe={flex:"~ gap-1","items-center":"","select-none":""},Jxe={class:"pr-2"},Zxe=["id","checked","onChange"],Qxe=["for"],e1e={key:0,class:"absolute bg-[#eee] dark:bg-[#222] border-base right-0 mr-2 rounded-xl mt-2"},t1e=tt({__name:"ViewModuleGraph",props:Xa({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=Jf(e,"modelValue"),{graph:i}=OE(t),o=Ke(),l=Ke(!1),u=Ke(),f=uM(u),h=Ke(),p=Ke(null),g=Vt(i.value),v=Se(()=>{let K="";const P=Tr.value?.importDurations,O=pt.value.experimental?.importDurations.thresholds;if(!P||!O)return K;for(const k in P){const{totalTime:S}=P[k];if(S>=O.danger){K="text-red";break}else S>=O.warn&&(K="text-orange")}return K}),y=Ke(v.value==="text-red");Yi(()=>{g.value=_(i.value,null,2),X()}),_c(()=>{h.value?.shutdown()}),yt(i,()=>{g.value=_(i.value,p.value,2),X()});function w(){g.value=i.value,X()}function $(){y.value=!y.value}function _(K,P,O=2){if(!K.nodes.length||K.nodes.length<=50)return K;const k=new Map;K.nodes.forEach(Ee=>k.set(Ee.id,new Set)),K.links.forEach(Ee=>{const Ge=typeof Ee.source=="object"?Ee.source.id:String(Ee.source),Ue=typeof Ee.target=="object"?Ee.target.id:String(Ee.target);k.get(Ge)?.add(Ue),k.get(Ue)?.add(Ge)});let S;if(P)S=[P];else{const Ee=new Set(K.links.map(Ue=>typeof Ue.target=="object"?Ue.target.id:String(Ue.target))),Ge=K.nodes.filter(Ue=>Ue.type==="inline"&&!Ee.has(Ue.id));S=Ge.length>0?[Ge[0].id]:[K.nodes[0].id]}const R=new Set,B=S.map(Ee=>({id:Ee,level:0}));for(;B.length>0;){const{id:Ee,level:Ge}=B.shift();R.has(Ee)||Ge>O||(R.add(Ee),Ge<O&&(k.get(Ee)||new Set).forEach(He=>{R.has(He)||B.push({id:He,level:Ge+1})}))}const ae=new Map(K.nodes.map(Ee=>[Ee.id,Ee])),ve=Array.from(R).map(Ee=>ae.get(Ee)).filter(Ee=>Ee!==void 0),_e=new Map(ve.map(Ee=>[Ee.id,Ee])),Be=K.links.map(Ee=>{const Ge=typeof Ee.source=="object"?Ee.source.id:String(Ee.source),Ue=typeof Ee.target=="object"?Ee.target.id:String(Ee.target);if(R.has(Ge)&&R.has(Ue)){const He=_e.get(Ge),Re=_e.get(Ue);if(He&&Re)return{...Ee,source:He,target:Re}}return null}).filter(Ee=>Ee!==null);return{nodes:ve,links:Be}}function C(K,P){h.value?.filterNodesByType(P,K)}function E(K,P){u.value={id:K,type:P},l.value=!0}function L(){f.undo()}function D(){l.value=!1,f.clear()}function N(K){p.value=K,g.value=_(i.value,K,2),q(),X()}function I(){p.value=null,g.value=_(i.value,null,2),q(),X()}function q(){const K=g.value.nodes.map(k=>{let S,R;return k.id===p.value?(S="var(--color-node-focused)",R="var(--color-node-focused)"):k.type==="inline"?(S=k.color==="var(--color-node-root)"?"var(--color-node-root)":"var(--color-node-inline)",R=S):(S="var(--color-node-external)",R="var(--color-node-external)"),mm({...k,color:S,label:k.label?{...k.label,color:R}:k.label})}),P=new Map(K.map(k=>[k.id,k])),O=g.value.links.map(k=>{const S=typeof k.source=="object"?k.source.id:String(k.source),R=typeof k.target=="object"?k.target.id:String(k.target);return{...k,source:P.get(S),target:P.get(R)}});g.value={nodes:K,links:O}}function X(K=!1){if(h.value?.shutdown(),K&&!n.value){n.value=!0;return}if(!g.value||!o.value)return;const P=g.value.nodes.length;let O=1,k=.5;P>300?(O=.3,k=.2):P>200?(O=.4,k=.3):P>100?(O=.5,k=.3):P>50&&(O=.7,O=.4),h.value=new gxe(o.value,g.value,zwe({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:S,newWidth:R})=>S===0&&R===0?0:.05},forces:{collision:{radiusMultiplier:10},link:{length:140}}},marker:wk.Arrow(2),modifiers:{node:U},positionInitializer:i.value.nodes.length===1?Vp.Centered:Vp.Randomized,zoom:{initial:O,min:k,max:1.5}}))}const ie=K=>K.button===0,J=K=>K.button===2;function U(K){if(pr)return;let P=0,O=0,k=0,S=!1;K.on("pointerdown",(R,B)=>{!B.x||!B.y||(S=J(R),!(!ie(R)&&!S)&&(P=B.x,O=B.y,k=Date.now()))}).on("pointerup",(R,B)=>{if(!B.x||!B.y)return;const ae=J(R);if(!ie(R)&&!ae||Date.now()-k>500)return;const ve=B.x-P,_e=B.y-O;ve**2+_e**2<100&&(!ae&&!R.shiftKey?E(B.id,B.type):(ae||R.shiftKey)&&(R.preventDefault(),B.type==="inline"&&N(B.id)))}).on("contextmenu",R=>{R.preventDefault()})}return(K,P)=>{const O=ir("tooltip");return te(),ge("div",Kxe,[Y("div",null,[Y("div",Yxe,[Y("div",Xxe,[Y("div",Jxe,Me(g.value.nodes.length)+"/"+Me(W(i).nodes.length)+" "+Me(g.value.nodes.length===1?"module":"modules"),1),st(Y("input",{id:"hide-node-modules","onUpdate:modelValue":P[0]||(P[0]=k=>n.value=k),type:"checkbox"},null,512),[[b1,n.value]]),P[9]||(P[9]=Y("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"","select-none":"",truncate:"",for:"hide-node-modules","border-b-2":"",border:"$cm-namespace"},"Hide node_modules",-1))]),(te(!0),ge(nt,null,xn(h.value?.nodeTypes.sort(),k=>(te(),ge("div",{key:k,flex:"~ gap-1","items-center":"","select-none":""},[Y("input",{id:`type-${k}`,type:"checkbox",checked:h.value?.nodeTypeFilter.includes(k),onChange:S=>C(k,S.target.checked)},null,40,Zxe),Y("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${k}`,"border-b-2":"",style:Pt({"border-color":`var(--color-node-${k})`})},Me(k)+" Modules",13,Qxe)]))),128)),P[10]||(P[10]=Y("div",{"flex-auto":""},null,-1)),P[11]||(P[11]=Y("div",{flex:"~ gap-2","items-center":"","text-xs":"","opacity-60":""},[Y("span",null,"Click on node: details • Right-click/Shift: expand graph")],-1)),Y("div",null,[st(Ne(Tt,{icon:"i-carbon-notebook",class:ot(v.value),onClick:P[1]||(P[1]=k=>$())},null,8,["class"]),[[O,`${y.value?"Hide":"Show"} Import Breakdown`,void 0,{bottom:!0}]])]),Y("div",null,[st(Ne(Tt,{icon:"i-carbon-ibm-cloud-direct-link-2-connect",onClick:P[2]||(P[2]=k=>w())},null,512),[[O,"Show Full Graph",void 0,{bottom:!0}]])]),Y("div",null,[st(Ne(Tt,{icon:"i-carbon-reset",onClick:P[3]||(P[3]=k=>I())},null,512),[[O,"Reset",void 0,{bottom:!0}]])])])]),y.value?(te(),ge("div",e1e,[Ne(Dxe,{onSelect:P[4]||(P[4]=(k,S)=>E(k,S))})])):Fe("",!0),Y("div",{ref_key:"el",ref:o},null,512),Ne($k,{modelValue:l.value,"onUpdate:modelValue":P[8]||(P[8]=k=>l.value=k),direction:"right"},{default:je(()=>[u.value?(te(),We(IA,{key:0},{default:je(()=>[Ne(Gxe,{id:u.value.id,"project-name":e.projectName,type:u.value.type,"can-undo":W(f).undoStack.value.length>1,onClose:P[5]||(P[5]=k=>D()),onSelect:P[6]||(P[6]=(k,S)=>E(k,S)),onBack:P[7]||(P[7]=k=>L())},null,8,["id","project-name","type","can-undo"])]),_:1})):Fe("",!0)]),_:1},8,["modelValue"])])}}}),n1e={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},r1e={"p-4":"",relative:"",border:"base b"},i1e={op50:"","font-mono":"","text-sm":""},o1e={op50:"","font-mono":"","text-sm":""},s1e={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},l1e=["src","alt"],a1e={key:1},c1e=tt({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const n=t;return J1("Escape",()=>{n("close")}),(i,o)=>(te(),ge("div",n1e,[Y("div",r1e,[o[1]||(o[1]=Y("p",null,"Screenshot error",-1)),Y("p",i1e,Me(e.file),1),Y("p",o1e,Me(e.name),1),Ne(Tt,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:o[0]||(o[0]=l=>n("close"))})]),Y("div",s1e,[e.url?(te(),ge("img",{key:0,src:e.url,alt:`Screenshot error for '${e.name}' test in file '${e.file}'`,border:"base t r b l dotted red-500"},null,8,l1e)):(te(),ge("div",a1e," Something was wrong, the image cannot be resolved. "))])]))}}),u1e=Xi(c1e,[["__scopeId","data-v-08ce44b7"]]),f1e={flex:"~ gap-2 items-center"},Nk=tt({__name:"FailureScreenshot",props:{task:{}},setup(e){const t=Ke(!1),n=Se(()=>{if(e.task.type==="test"){const l=e.task.artifacts.find(u=>u.type==="internal:failureScreenshot");if(l!==void 0)return l}return null}),i=Se(()=>n.value&&n.value.attachments.length&&Pl(n.value.attachments[0]));function o(){if(n.value===null||n.value.attachments.length===0)return;const l=n.value.attachments[0].originalPath;fetch(`/__open-in-editor?file=${encodeURIComponent(l)}`)}return(l,u)=>{const f=ir("tooltip");return i.value?(te(),ge(nt,{key:0},[Y("div",f1e,[st(Ne(Tt,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:u[0]||(u[0]=h=>t.value=!0)},null,512),[[f,"View screenshot error",void 0,{bottom:!0}]]),W(pr)?Fe("",!0):st((te(),We(Tt,{key:0,class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:o},null,512)),[[f,"Open screenshot error in editor",void 0,{bottom:!0}]])]),(te(),We($k,{key:i.value,modelValue:t.value,"onUpdate:modelValue":u[2]||(u[2]=h=>t.value=h),direction:"right"},{default:je(()=>[Ne(u1e,{file:e.task.file.filepath,name:e.task.name,url:i.value,onClose:u[1]||(u[1]=h=>t.value=!1)},null,8,["file","name","url"])]),_:1},8,["modelValue"]))],64)):Fe("",!0)}}}),d1e={class:"scrolls scrolls-rounded task-error"},h1e=["onClickPassive"],p1e=["innerHTML"],g1e=tt({__name:"ViewReportError",props:{fileId:{},root:{},filename:{},error:{}},setup(e){const t=e;function n(f){return f.startsWith(t.root)?f.slice(t.root.length):f}const i=Se(()=>Qg(Po.value)),o=Se(()=>!!t.error?.diff),l=Se(()=>t.error.diff?i.value.toHtml(Wa(t.error.diff)):void 0);function u(f){return kge(f.file,t.filename)?Oge(t.fileId,f):Zg(f.file,f.line,f.column)}return(f,h)=>{const p=ir("tooltip");return te(),ge("div",d1e,[Y("pre",null,[Y("b",null,Me(e.error.name),1),Qe(": "+Me(e.error.message),1)]),(te(!0),ge(nt,null,xn(e.error.stacks,(g,v)=>(te(),ge("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[Y("pre",null," - "+Me(n(g.file))+":"+Me(g.line)+":"+Me(g.column),1),st(Y("div",{class:"i-carbon-launch c-red-700 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:y=>u(g)},null,40,h1e),[[p,"Open in Editor",void 0,{bottom:!0}]])]))),128)),o.value?(te(),ge("pre",{key:0,"data-testid":"diff",innerHTML:l.value},null,8,p1e)):Fe("",!0)])}}}),Mk=Xi(g1e,[["__scopeId","data-v-bd36ee9a"]]),m1e={"h-full":"",class:"scrolls"},v1e=["id"],y1e={flex:"~ gap-2 items-center"},b1e={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},w1e=["innerHTML"],x1e={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},S1e=tt({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function n(o,l){return o.result?.state!=="fail"?[]:o.type==="test"?[{...o,level:l}]:[{...o,level:l},...o.tasks.flatMap(u=>n(u,l+1))]}const i=Se(()=>{const o=t.file,l=o.tasks?.flatMap(h=>n(h,0))??[],u=o.result;if(u?.errors?.[0]){const h={id:o.id,file:o,name:o.name,fullName:o.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:u};l.unshift(h)}return l.length>0?$_(Po.value,l):l});return(o,l)=>(te(),ge("div",m1e,[i.value.length?(te(!0),ge(nt,{key:0},xn(i.value,u=>(te(),ge("div",{id:u.id,key:u.id},[Y("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:Pt({"margin-left":`${u.result?.htmlError?.5:2*u.level+.5}rem`})},[Y("div",y1e,[Y("span",null,Me(u.name),1),Ne(Nk,{task:u},null,8,["task"])]),u.result?.htmlError?(te(),ge("div",b1e,[Y("pre",{innerHTML:u.result.htmlError},null,8,w1e)])):u.result?.errors&&W(pt).root?(te(!0),ge(nt,{key:1},xn(u.result.errors,(f,h)=>(te(),We(Mk,{key:h,error:f,filename:e.file.name,root:W(pt).root,"file-id":e.file.id},null,8,["error","filename","root","file-id"]))),128)):Fe("",!0)],4)],8,v1e))),128)):(te(),ge("div",x1e," All tests passed in this file "))]))}}),_1e=Xi(S1e,[["__scopeId","data-v-13572615"]]);function Lk(e,t){return Rge(e,t)}function Pf(e){const t=pt.value.root;return`${t?ud(t,e.file):e.file}:${e.line}:${e.column}`}const k1e=["href","referrerPolicy"],T1e=["src"],C1e=tt({__name:"AnnotationAttachmentImage",props:{annotation:{}},setup(e){const t=e,n=Se(()=>{const i=t.annotation.attachment,o=i.path||i.body;return typeof o=="string"&&(o.startsWith("http://")||o.startsWith("https://"))?o:Pl(i)});return(i,o)=>e.annotation.attachment&&e.annotation.attachment.contentType?.startsWith("image/")?(te(),ge("a",{key:0,target:"_blank",class:"inline-block mt-2",style:{maxWidth:"600px"},href:n.value,referrerPolicy:W(Ak)(e.annotation.attachment)?"no-referrer":void 0},[Y("img",{src:n.value},null,8,T1e)],8,k1e)):Fe("",!0)}}),E1e={class:"flex flex-col gap-4"},A1e={key:0},$1e=tt({__name:"ArtifactTemplate",setup(e){const t=Bx();return(n,i)=>(te(),ge("article",E1e,[Y("h1",null,[Bt(n.$slots,"title")]),W(t).message?(te(),ge("p",A1e,[Bt(n.$slots,"message")])):Fe("",!0),Bt(n.$slots,"default")]))}}),Ok=Symbol("tabContext"),If={tab:(e,t)=>`${t}-${e}-tab`,tabpanel:(e,t)=>`${t}-${e}-tabpanel`},N1e={class:"flex flex-col items-center gap-6"},M1e={role:"tablist","aria-orientation":"horizontal",class:"flex gap-4"},L1e=["id","aria-selected","aria-controls","onClick"],O1e=tt({__name:"SmallTabs",setup(e){const t=Ke(null),n=Ke([]),i=mg();return _r(Ok,{id:i,activeTab:t,registerTab:o=>{n.value.some(({id:l})=>l===o.id)||n.value.push(o),n.value.length===1&&(t.value=o.id)},unregisterTab:o=>{const l=n.value.findIndex(({id:u})=>u===o.id);l>-1&&n.value.splice(l,1),t.value===o.id&&(t.value=n.value[0]?.id??null)}}),(o,l)=>(te(),ge("div",N1e,[Y("div",M1e,[(te(!0),ge(nt,null,xn(n.value,u=>(te(),ge("button",{id:W(If).tab(u.id,W(i)),key:u.id,role:"tab","aria-selected":t.value===u.id,"aria-controls":W(If).tabpanel(u.id,W(i)),type:"button",class:"aria-[selected=true]:underline underline-offset-4",onClick:f=>t.value=u.id},Me(u.title),9,L1e))),128))]),Bt(o.$slots,"default")]))}}),R1e=["id","aria-labelledby","hidden"],Ou=tt({__name:"SmallTabsPane",props:{title:{}},setup(e){const t=e,n=bn(Ok);if(!n)throw new Error("TabPane must be used within Tabs");const i=mg(),o=Se(()=>n.activeTab.value===i);return Yi(()=>{n.registerTab({...t,id:i})}),_c(()=>{n.unregisterTab({...t,id:i})}),(l,u)=>(te(),ge("div",{id:W(If).tabpanel(W(i),W(n).id),role:"tabpanel","aria-labelledby":W(If).tab(W(i),W(n).id),hidden:!o.value,class:"max-w-full"},[Bt(l.$slots,"default")],8,R1e))}}),Rk=tt({__name:"VisualRegressionImageContainer",setup(e){const t=`url("${CSS.escape('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path d="M1 2V0h1v1H0v1z" fill-opacity=".05"/></svg>')}")`;return(n,i)=>(te(),ge("div",{class:"max-w-full w-fit mx-auto bg-[size:16px_16px] bg-[#fafafa] dark:bg-[#3a3a3a] bg-center p-4 rounded user-select-none outline-0 outline-black dark:outline-white outline-offset-4 outline-solid focus-within:has-focus-visible:outline-2",style:Pt({backgroundImage:t})},[Bt(n.$slots,"default")],4))}}),P1e=["href","referrerPolicy"],I1e=["src"],Xh=tt({__name:"VisualRegressionImage",props:{attachment:{}},setup(e){const t=Se(()=>Yp(e.attachment));return(n,i)=>(te(),We(Rk,null,{default:je(()=>[Y("a",{target:"_blank",href:t.value,referrerPolicy:W(Ak)(e.attachment)?"no-referrer":void 0},[Y("img",{src:t.value},null,8,I1e)],8,P1e)]),_:1}))}}),D1e={class:"absolute w-full h-full place-content-center place-items-center [clip-path:polygon(0%_0%,var(--split)_0%,var(--split)_100%,0%_100%)]","aria-hidden":"true",role:"presentation"},F1e=["src"],z1e={class:"absolute w-full h-full place-content-center place-items-center [clip-path:polygon(var(--split)_0%,100%_0%,100%_100%,var(--split)_100%)]","aria-hidden":"true",role:"presentation"},H1e=["src"],B1e=["id"],j1e=["for"],W1e=tt({__name:"VisualRegressionSlider",props:{reference:{},actual:{}},setup(e){const t=Se(()=>Yp(e.reference)),n=Se(()=>Yp(e.actual)),i=Se(()=>Math.max(e.reference.width,e.actual.width)),o=Se(()=>Math.max(e.reference.height,e.actual.height)),l=Ke(50),u=mg();return(f,h)=>(te(),We(Rk,null,{default:je(()=>[Y("div",{"aria-label":"Image comparison slider showing reference and actual screenshots",class:"relative max-w-full h-full overflow-hidden",style:Pt({"--split":`${l.value}%`,aspectRatio:`${i.value} / ${o.value}`,width:`${i.value}px`})},[Y("div",D1e,[Y("img",{src:t.value},null,8,F1e)]),Y("div",z1e,[Y("img",{src:n.value},null,8,H1e)]),h[1]||(h[1]=Y("div",{class:"absolute left-[--split] h-full w-[2px] -translate-x-1/2 bg-white shadow-[0_0_3px_rgb(0_0_0/.2),0_0_10px_rgb(0_0_0/.5)] before:content-[''] before:absolute before:top-1/2 before:size-[16px] before:bg-white before:border-[2px] before:border-black before:rounded-full before:-translate-y-1/2 before:translate-x-[calc(-50%+1px)]","aria-hidden":"true",role:"presentation"},null,-1)),st(Y("input",{id:W(u),"onUpdate:modelValue":h[0]||(h[0]=p=>l.value=p),type:"range",min:"0",max:"100",step:"0.1","aria-label":"Adjust slider to compare reference and actual images",class:"absolute inset-0 opacity-0 cursor-col-resize"},null,8,B1e),[[y1,l.value]]),Y("output",{for:W(u),class:"sr-only"}," Showing "+Me(l.value)+"% reference, "+Me(100-l.value)+"% actual ",9,j1e)],4)]),_:1}))}}),q1e=tt({__name:"VisualRegression",props:{regression:{}},setup(e){const t=Se(()=>({diff:e.regression.attachments.find(n=>n.name==="diff"),reference:e.regression.attachments.find(n=>n.name==="reference"),actual:e.regression.attachments.find(n=>n.name==="actual")}));return(n,i)=>(te(),We($1e,null,{title:je(()=>[...i[0]||(i[0]=[Qe(" Visual Regression ",-1)])]),message:je(()=>[Qe(Me(e.regression.message),1)]),default:je(()=>[Ne(O1e,null,{default:je(()=>[t.value.diff?(te(),We(Ou,{key:t.value.diff.path,title:"Diff"},{default:je(()=>[Ne(Xh,{attachment:t.value.diff},null,8,["attachment"])]),_:1})):Fe("",!0),t.value.reference?(te(),We(Ou,{key:t.value.reference.path,title:"Reference"},{default:je(()=>[Ne(Xh,{attachment:t.value.reference},null,8,["attachment"])]),_:1})):Fe("",!0),t.value.actual?(te(),We(Ou,{key:t.value.actual.path,title:"Actual"},{default:je(()=>[Ne(Xh,{attachment:t.value.actual},null,8,["attachment"])]),_:1})):Fe("",!0),t.value.reference&&t.value.actual?(te(),We(Ou,{key:(t.value.reference.path??"")+(t.value.actual.path??""),title:"Slider"},{default:je(()=>[Ne(W1e,{actual:t.value.actual,reference:t.value.reference},null,8,["actual","reference"])]),_:1})):Fe("",!0)]),_:1})]),_:1}))}}),U1e={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},V1e=["onClick"],G1e={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},K1e=tt({__name:"Artifacts",props:{test:{}},setup(e){const t=Se(()=>{const n=[];for(const i of e.test.artifacts)switch(i.type){case"internal:toMatchScreenshot":{i.kind==="visual-regression"&&n.push({artifact:i,component:q1e,props:{regression:i}});continue}}return n});return(n,i)=>{const o=ir("tooltip");return t.value.length?(te(),ge(nt,{key:0},[i[0]||(i[0]=Y("h1",{"m-2":""}," Test Artifacts ",-1)),(te(!0),ge(nt,null,xn(t.value,({artifact:l,component:u,props:f},h)=>(te(),ge("div",{key:l.type+h,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[Y("div",U1e,[Y("div",null,[l.location&&l.location.file===e.test.file.filepath?st((te(),ge("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:p=>W(Lk)(e.test,l.location)},[Qe(Me(W(Pf)(l.location)),1)],8,V1e)),[[o,"Open in Editor",void 0,{bottom:!0}]]):l.location&&l.location.file!==e.test.file.filepath?(te(),ge("span",G1e,Me(W(Pf)(l.location)),1)):Fe("",!0)])]),(te(),We(sf(u),ci({ref_for:!0},f),null,16))]))),128))],64)):Fe("",!0)}}}),Y1e={"h-full":"",class:"scrolls"},X1e={key:0},J1e={bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:""},Z1e={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Q1e=["innerHTML"],eSe={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},tSe={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},nSe={class:"flex gap-2","overflow-hidden":""},rSe={class:"font-bold","ws-nowrap":"",truncate:""},iSe=["href","download"],oSe=["onClick"],sSe={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},lSe={class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},aSe={bg:"gray/10",text:"black-100 sm",p:"x3 y2","m-2":"",rounded:"",class:"grid grid-cols-1 md:grid-cols-[200px_1fr] gap-2","overflow-hidden":""},cSe={"font-bold":"","ws-nowrap":"",truncate:"","py-2":""},uSe={"overflow-auto":"",bg:"gray/30",rounded:"","p-2":""},fSe=tt({__name:"ViewTestReport",props:{test:{}},setup(e){const t=e,n=Se(()=>!t.test.result||!t.test.result.errors?.length?null:$_(Po.value,[t.test])[0]),i=new Set(["benchmark","typecheck"]),o=Se(()=>Object.entries(t.test.meta).filter(([l])=>!i.has(l)));return(l,u)=>{const f=ir("tooltip");return te(),ge("div",Y1e,[n.value?(te(),ge("div",X1e,[Y("div",J1e,[Ne(Nk,{task:e.test},null,8,["task"]),e.test.result?.htmlError?(te(),ge("div",Z1e,[Y("pre",{innerHTML:e.test.result.htmlError},null,8,Q1e)])):e.test.result?.errors&&W(pt).root?(te(!0),ge(nt,{key:1},xn(e.test.result.errors,(h,p)=>(te(),We(Mk,{key:p,"file-id":e.test.file.id,error:h,filename:e.test.file.name,root:W(pt).root},null,8,["file-id","error","filename","root"]))),128)):Fe("",!0)])])):(te(),ge("div",eSe," The test has passed without any errors ")),e.test.annotations.length?(te(),ge(nt,{key:2},[u[1]||(u[1]=Y("h1",{"m-2":""}," Test Annotations ",-1)),(te(!0),ge(nt,null,xn(e.test.annotations,h=>(te(),ge("div",{key:h.type+h.message,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[Y("div",tSe,[Y("div",nSe,[Y("span",rSe,Me(h.type),1),h.attachment&&!h.attachment.contentType?.startsWith("image/")?(te(),ge("a",{key:0,class:"flex gap-1 items-center text-yellow-500/80 cursor-pointer",href:W(Pl)(h.attachment),download:W(Ek)(h.message,h.attachment.contentType)},[...u[0]||(u[0]=[Y("span",{class:"i-carbon:download block"},null,-1),Qe(" Download ",-1)])],8,iSe)):Fe("",!0)]),Y("div",null,[h.location&&h.location.file===e.test.file.filepath?st((te(),ge("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:p=>W(Lk)(e.test,h.location)},[Qe(Me(W(Pf)(h.location)),1)],8,oSe)),[[f,"Open in Editor",void 0,{bottom:!0}]]):h.location&&h.location.file!==e.test.file.filepath?(te(),ge("span",sSe,Me(W(Pf)(h.location)),1)):Fe("",!0)])]),Y("div",lSe,Me(h.message),1),Ne(C1e,{annotation:h},null,8,["annotation"])]))),128))],64)):Fe("",!0),Ne(K1e,{test:e.test},null,8,["test"]),o.value.length?(te(),ge(nt,{key:3},[u[2]||(u[2]=Y("h1",{"m-2":""}," Test Meta ",-1)),Y("div",aSe,[(te(!0),ge(nt,null,xn(o.value,([h,p])=>(te(),ge(nt,{key:h},[Y("div",cSe,Me(h),1),Y("pre",uSe,Me(p),1)],64))),128))])],64)):Fe("",!0)])}}}),dSe=Xi(fSe,[["__scopeId","data-v-da767a0b"]]),hSe={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},pSe={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},gSe={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},mSe={"flex-1":"","font-light":"","overflow-hidden":"","text-sm":"",flex:""},vSe={"op-50":"",truncate:""},ySe=["title"],bSe={class:"flex text-lg"},wSe={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},xSe={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},SSe={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},_Se={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},kSe=["flex-1"],$w=tt({__name:"FileDetails",setup(e){const t=Ke({nodes:[],links:[]}),n=Ke(!1),i=Ke(!1),o=Ke(!1),l=Ke(void 0),u=Ke(!0),f=Se(()=>Fi.value?ft.state.idMap.get(Fi.value):void 0),h=Se(()=>{const I=Xt.value;if(!(!I||!I.filepath))return{filepath:I.filepath,projectName:I.file.projectName||""}}),p=Se(()=>Xt.value&&Xg(Xt.value)),g=Se(()=>!!Xt.value?.meta?.typecheck);function v(){const I=Xt.value?.filepath;I&&fetch(`/__open-in-editor?file=${encodeURIComponent(I)}`)}function y(I){I==="graph"&&(i.value=!0),yn.value=I}const w=Se(()=>j_.value?.reduce((I,{size:q})=>I+q,0)??0);function $(I){n.value=I}const _=/[/\\]node_modules[/\\]/;async function C(I=!1){if(!(o.value||h.value?.filepath===l.value&&!I)){o.value=!0,await At();try{const q=h.value;if(!q){o.value=!1;return}if(I||!l.value||q.filepath!==l.value||!t.value.nodes.length&&!t.value.links.length){let X=await ft.rpc.getModuleGraph(q.projectName,q.filepath,!!gr);u.value&&(pr&&(X=typeof window.structuredClone<"u"?window.structuredClone(X):cP(X)),X.inlined=X.inlined.filter(ie=>!_.test(ie)),X.externalized=X.externalized.filter(ie=>!_.test(ie))),t.value=yxe(X,q.filepath),l.value=q.filepath}y("graph")}finally{await new Promise(q=>setTimeout(q,100)),o.value=!1}}}Y1(()=>[h.value,yn.value,u.value],([,I,q],X)=>{I==="graph"&&C(X&&q!==X[2])},{debounce:100,immediate:!0});const E=Se(()=>{const I=Xt.value?.file.projectName||"";return $e.colors.get(I)||Uu(Xt.value?.file.projectName)}),L=Se(()=>m_(E.value)),D=Se(()=>{const I=Fi.value;if(!I)return Xt.value?.name;const q=[];let X=ft.state.idMap.get(I);for(;X;)q.push(X.name),X=X.suite;return q.reverse().join(" > ")}),N=Se(()=>{const I=Fi.value;return I?(ft.state.idMap.get(I)?.tags||[]).map(X=>({name:X,description:EP.value[X]?.description,bg:Uu(X,!0),border:Uu(X),text:"white"})):[]});return(I,q)=>{const X=ir("tooltip");return W(Xt)?(te(),ge("div",hSe,[Y("div",null,[Y("div",pSe,[Ne(Tk,{state:W(Xt).result?.state,mode:W(Xt).mode,"failed-snapshot":p.value},null,8,["state","mode","failed-snapshot"]),g.value?st((te(),ge("div",gSe,null,512)),[[X,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Fe("",!0),W(Xt)?.file.projectName?(te(),ge("span",{key:1,class:"rounded-full py-0.5 px-2 text-xs font-light",style:Pt({backgroundColor:E.value,color:L.value}),"cursor-default":""},Me(W(Xt).file.projectName),5)):Fe("",!0),Y("div",mSe,[Y("span",vSe,Me(D.value),1),(te(!0),ge(nt,null,xn(N.value,ie=>st((te(),ge("span",{key:ie.name,class:"rounded-full ml-2 px-2 text-xs font-light",style:Pt({backgroundColor:ie.bg,color:ie.text,border:`1px solid ${ie.border}`}),title:ie.description,"cursor-default":"",flex:"","items-center":""},[Qe(Me(ie.name),1)],12,ySe)),[[X,ie.description,void 0,{bottom:!0}]])),128))]),Y("div",bSe,[W(pr)?Fe("",!0):st((te(),We(Tt,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!W(Xt)?.filepath,onClick:v},null,8,["disabled"])),[[X,"Open in editor",void 0,{bottom:!0}]]),W(gr)?(te(),We(hd,{key:1})):Fe("",!0)])]),Y("div",wSe,[Y("button",{"tab-button":"",class:ot(["flex items-center gap-2",{"tab-button-active":W(yn)==null}]),"data-testid":"btn-report",onClick:q[0]||(q[0]=ie=>y(null))},[...q[5]||(q[5]=[Y("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),Qe(" Report ",-1)])],2),Y("button",{"tab-button":"","data-testid":"btn-graph",class:ot(["flex items-center gap-2",{"tab-button-active":W(yn)==="graph"}]),onClick:q[1]||(q[1]=ie=>y("graph"))},[o.value?(te(),ge("span",xSe)):(te(),ge("span",SSe)),q[6]||(q[6]=Qe(" Module Graph ",-1))],2),Y("button",{"tab-button":"","data-testid":"btn-code",class:ot(["flex items-center gap-2",{"tab-button-active":W(yn)==="editor"}]),onClick:q[2]||(q[2]=ie=>y("editor"))},[q[7]||(q[7]=Y("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),Qe(" "+Me(n.value?"* ":"")+"Code ",1)],2),Y("button",{"tab-button":"","data-testid":"btn-console",class:ot(["flex items-center gap-2",{"tab-button-active":W(yn)==="console",op20:W(yn)!=="console"&&w.value===0}]),onClick:q[3]||(q[3]=ie=>y("console"))},[q[8]||(q[8]=Y("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),Qe(" Console ("+Me(w.value)+") ",1)],2)])]),Y("div",_Se,[i.value?(te(),ge("div",{key:0,"flex-1":W(yn)==="graph"&&""},[st(Ne(t1e,{modelValue:u.value,"onUpdate:modelValue":q[4]||(q[4]=ie=>u.value=ie),graph:t.value,"data-testid":"graph","project-name":W(Xt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[Co,W(yn)==="graph"&&!o.value]])],8,kSe)):Fe("",!0),W(yn)==="editor"?(te(),We(Oxe,{key:W(Xt).id,file:W(Xt),"data-testid":"editor",onDraft:$},null,8,["file"])):W(yn)==="console"?(te(),We(Nxe,{key:2,file:W(Xt),"data-testid":"console"},null,8,["file"])):!W(yn)&&!f.value&&W(Xt)?(te(),We(_1e,{key:3,file:W(Xt),"data-testid":"report"},null,8,["file"])):!W(yn)&&f.value?(te(),We(dSe,{key:4,test:f.value,"data-testid":"report"},null,8,["test"])):Fe("",!0)])])):Fe("",!0)}}}),TSe=""+new URL("../favicon.svg",import.meta.url).href;function CSe(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var o=e.indexOf("Edge/");return o>0?parseInt(e.substring(o+5,e.indexOf(".",o)),10):-1}let Zu;function Xp(){Xp.init||(Xp.init=!0,Zu=CSe()!==-1)}var vd={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Xp(),At(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Zu&&this.$el.appendChild(e),e.data="about:blank",Zu||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Zu&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const ESe=Ex();Tx("data-v-b329ee4c");const ASe={class:"resize-observer",tabindex:"-1"};Cx();const $Se=ESe((e,t,n,i,o,l)=>(te(),We("div",ASe)));vd.render=$Se;vd.__scopeId="data-v-b329ee4c";vd.__file="src/components/ResizeObserver.vue";function Qu(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qu=function(t){return typeof t}:Qu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qu(e)}function NSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MSe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function LSe(e,t,n){return t&&MSe(e.prototype,t),e}function Nw(e){return OSe(e)||RSe(e)||PSe(e)||ISe()}function OSe(e){if(Array.isArray(e))return Jp(e)}function RSe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function PSe(e,t){if(e){if(typeof e=="string")return Jp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jp(e,t)}}function Jp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function ISe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
82
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DSe(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function FSe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,l,u=function(h){for(var p=arguments.length,g=new Array(p>1?p-1:0),v=1;v<p;v++)g[v-1]=arguments[v];if(l=g,!(i&&h===o)){var y=n.leading;typeof y=="function"&&(y=y(h,o)),(!i||h!==o)&&y&&e.apply(void 0,[h].concat(Nw(l))),o=h,clearTimeout(i),i=setTimeout(function(){e.apply(void 0,[h].concat(Nw(l))),i=0},t)}};return u._clear=function(){clearTimeout(i),i=null},u}function Pk(e,t){if(e===t)return!0;if(Qu(e)==="object"){for(var n in e)if(!Pk(e[n],t[n]))return!1;return!0}return!1}var zSe=(function(){function e(t,n,i){NSe(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,i)}return LSe(e,[{key:"createObserver",value:function(n,i){var o=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=DSe(n),this.callback=function(f,h){o.options.callback(f,h),f&&o.options.once&&(o.frozen=!0,o.destroyObserver())},this.callback&&this.options.throttle){var l=this.options.throttleOptions||{},u=l.leading;this.callback=FSe(this.callback,this.options.throttle,{leading:function(h){return u==="both"||u==="visible"&&h||u==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(f){var h=f[0];if(f.length>1){var p=f.find(function(v){return v.isIntersecting});p&&(h=p)}if(o.callback){var g=h.isIntersecting&&h.intersectionRatio>=o.threshold;if(g===o.oldResult)return;o.oldResult=g,o.callback(g,h)}},this.options.intersection),At(function(){o.observer&&o.observer.observe(o.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e})();function Ik(e,t,n){var i=t.value;if(i)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var o=new zSe(e,i,n);e._vue_visibilityState=o}}function HSe(e,t,n){var i=t.value,o=t.oldValue;if(!Pk(i,o)){var l=e._vue_visibilityState;if(!i){Dk(e);return}l?l.createObserver(i,n):Ik(e,{value:i},n)}}function Dk(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var BSe={beforeMount:Ik,updated:HSe,unmounted:Dk},jSe={itemsLimit:1e3},WSe=/(auto|scroll)/;function Fk(e,t){return e.parentNode===null?t:Fk(e.parentNode,t.concat([e]))}var Jh=function(t,n){return getComputedStyle(t,null).getPropertyValue(n)},qSe=function(t){return Jh(t,"overflow")+Jh(t,"overflow-y")+Jh(t,"overflow-x")},USe=function(t){return WSe.test(qSe(t))};function Mw(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=Fk(e.parentNode,[]),n=0;n<t.length;n+=1)if(USe(t[n]))return t[n];return document.scrollingElement||document.documentElement}}function Zp(e){"@babel/helpers - typeof";return Zp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zp(e)}var VSe={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function GSe(){return this.items.length&&Zp(this.items[0])!=="object"}var Qp=!1;if(typeof window<"u"){Qp=!1;try{var KSe=Object.defineProperty({},"passive",{get:function(){Qp=!0}});window.addEventListener("test",null,KSe)}catch{}}let YSe=0;var vm={name:"RecycleScroller",components:{ResizeObserver:vd},directives:{ObserveVisibility:BSe},props:{...VSe,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,n=this.sizeField,i=this.minItemSize;let o=1e4,l=0,u;for(let f=0,h=t.length;f<h;f++)u=t[f][n]||i,u<o&&(o=u),l+=u,e[f]={accumulator:l,size:u};return this.$_computedMinItemSize=o,e}return[]},simpleArray:GSe,itemIndexByKey(){const{keyField:e,items:t}=this,n={};for(let i=0,o=t.length;i<o;i++)n[t[i][e]]=i;return n}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,n,i,o){const l=Vf({id:YSe++,index:t,used:!0,key:i,type:o}),u=hg({item:n,position:0,nr:l});return e.push(u),u},unuseView(e,t=!1){const n=this.$_unusedViews,i=e.nr.type;let o=n.get(i);o||(o=[],n.set(i,o)),o.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:n}=this.updateVisibleItems(!1,!0);n||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const n=this.itemSize,i=this.gridItems||1,o=this.itemSecondarySize||n,l=this.$_computedMinItemSize,u=this.typeField,f=this.simpleArray?null:this.keyField,h=this.items,p=h.length,g=this.sizes,v=this.$_views,y=this.$_unusedViews,w=this.pool,$=this.itemIndexByKey;let _,C,E,L,D;if(!p)_=C=L=D=E=0;else if(this.$_prerender)_=L=0,C=D=Math.min(this.prerender,h.length),E=null;else{const U=this.getScroll();if(t){let O=U.start-this.$_lastUpdateScrollPosition;if(O<0&&(O=-O),n===null&&O<l||O<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=U.start;const K=this.buffer;U.start-=K,U.end+=K;let P=0;if(this.$refs.before&&(P=this.$refs.before.scrollHeight,U.start-=P),this.$refs.after){const O=this.$refs.after.scrollHeight;U.end+=O}if(n===null){let O,k=0,S=p-1,R=~~(p/2),B;do B=R,O=g[R].accumulator,O<U.start?k=R:R<p-1&&g[R+1].accumulator>U.start&&(S=R),R=~~((k+S)/2);while(R!==B);for(R<0&&(R=0),_=R,E=g[p-1].accumulator,C=R;C<p&&g[C].accumulator<U.end;C++);for(C===-1?C=h.length-1:(C++,C>p&&(C=p)),L=_;L<p&&P+g[L].accumulator<U.start;L++);for(D=L;D<p&&P+g[D].accumulator<U.end;D++);}else{_=~~(U.start/n*i);const O=_%i;_-=O,C=Math.ceil(U.end/n*i),L=Math.max(0,Math.floor((U.start-P)/n*i)),D=Math.floor((U.end-P)/n*i),_<0&&(_=0),C>p&&(C=p),L<0&&(L=0),D>p&&(D=p),E=Math.ceil(p/i)*n}}C-_>jSe.itemsLimit&&this.itemsLimitError(),this.totalSize=E;let N;const I=_<=this.$_endIndex&&C>=this.$_startIndex;if(I)for(let U=0,K=w.length;U<K;U++)N=w[U],N.nr.used&&(e&&(N.nr.index=$[N.item[f]]),(N.nr.index==null||N.nr.index<_||N.nr.index>=C)&&this.unuseView(N));const q=I?null:new Map;let X,ie,J;for(let U=_;U<C;U++){X=h[U];const K=f?X[f]:X;if(K==null)throw new Error(`Key is ${K} on item (keyField is '${f}')`);if(N=v.get(K),!n&&!g[U].size){N&&this.unuseView(N);continue}ie=X[u];let P=y.get(ie),O=!1;if(!N)I?P&&P.length?N=P.pop():N=this.addView(w,U,X,K,ie):(J=q.get(ie)||0,(!P||J>=P.length)&&(N=this.addView(w,U,X,K,ie),this.unuseView(N,!0),P=y.get(ie)),N=P[J],q.set(ie,J+1)),v.delete(N.nr.key),N.nr.used=!0,N.nr.index=U,N.nr.key=K,N.nr.type=ie,v.set(K,N),O=!0;else if(!N.nr.used&&(N.nr.used=!0,O=!0,P)){const k=P.indexOf(N);k!==-1&&P.splice(k,1)}N.item=X,O&&(U===h.length-1&&this.$emit("scroll-end"),U===0&&this.$emit("scroll-start")),n===null?(N.position=g[U-1].accumulator,N.offset=0):(N.position=Math.floor(U/i)*n,N.offset=U%i*o)}return this.$_startIndex=_,this.$_endIndex=C,this.emitUpdate&&this.$emit("update",_,C,L,D),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:I}},getListenerTarget(){let e=Mw(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,n=t==="vertical";let i;if(this.pageMode){const o=e.getBoundingClientRect(),l=n?o.height:o.width;let u=-(n?o.top:o.left),f=n?window.innerHeight:window.innerWidth;u<0&&(f+=u,u=0),u+f>l&&(f=l-u),i={start:u,end:u+f}}else n?i={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:i={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return i},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,Qp?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const n=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let n,i,o;if(this.pageMode){const l=Mw(this.$el),u=l.tagName==="HTML"?0:l[t.scroll],f=l.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-f[t.start];n=l,i=t.scroll,o=e+u+p}else n=this.$el,i=t.scroll,o=e;n[i]=o},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const XSe={key:0,ref:"before",class:"vue-recycle-scroller__slot"},JSe={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function ZSe(e,t,n,i,o,l){const u=ys("ResizeObserver"),f=ir("observe-visibility");return st((te(),ge("div",{class:ot(["vue-recycle-scroller",{ready:o.ready,"page-mode":n.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...h)=>l.handleScroll&&l.handleScroll(...h))},[e.$slots.before?(te(),ge("div",XSe,[Bt(e.$slots,"before")],512)):Fe("v-if",!0),(te(),We(sf(n.listTag),{ref:"wrapper",style:Pt({[e.direction==="vertical"?"minHeight":"minWidth"]:o.totalSize+"px"}),class:ot(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:je(()=>[(te(!0),ge(nt,null,xn(o.pool,h=>(te(),We(sf(n.itemTag),ci({key:h.nr.id,style:o.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${h.position}px) translate${e.direction==="vertical"?"X":"Y"}(${h.offset}px)`,width:n.gridItems?`${e.direction==="vertical"&&n.itemSecondarySize||n.itemSize}px`:void 0,height:n.gridItems?`${e.direction==="horizontal"&&n.itemSecondarySize||n.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[n.itemClass,{hover:!n.skipHover&&o.hoverKey===h.nr.key}]]},cA(n.skipHover?{}:{mouseenter:()=>{o.hoverKey=h.nr.key},mouseleave:()=>{o.hoverKey=null}})),{default:je(()=>[Bt(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),Bt(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(te(),ge("div",JSe,[Bt(e.$slots,"after")],512)):Fe("v-if",!0),Ne(u,{onNotify:l.handleResize},null,8,["onNotify"])],34)),[[f,l.handleVisibilityChange]])}vm.render=ZSe;vm.__file="src/components/RecycleScroller.vue";function QSe(e,t,n){const i=Se(()=>Mp.value?!1:!Ze.onlyTests),o=Se(()=>Hr.value===""),l=Ke(Hr.value),u=Se(()=>Fr.value==="default");yt(()=>Np.value,w=>{!w&&(Fr.value==="asc"||Fr.value==="desc")&&(Fr.value="default")}),Y1(()=>Hr.value,w=>{l.value=w?.trim()??""},{debounce:256});function f(w){Hr.value="",w&&e.value?.focus()}function h(w){Ze.failed=!1,Ze.success=!1,Ze.skipped=!1,Ze.slow=!1,Ze.onlyTests=!1,w&&e.value?.focus()}function p(w){ml.value=Bl,w&&t.value?.focus()}function g(w){Fr.value="default",w&&n.value?.focus()}function v(){h(!1),f(!0),p(!1),g(!1)}function y(w,$,_,C,E,L,D,N){Ml.value&&(Ht.value.search=w?.trim()??"",Ht.value.failed=$,Ht.value.success=_,Ht.value.skipped=C,Ht.value.slow=E,Ht.value.onlyTests=L,Ht.value.project=D,Ht.value.projectSort=N==="default"?void 0:N)}return yt(()=>[l.value,Ze.failed,Ze.success,Ze.skipped,Ze.slow,Ze.onlyTests,ml.value,Fr.value],([w,$,_,C,E,L,D,N])=>{y(w,$,_,C,E,L,D,N),$e.filterNodes()},{flush:"post"}),yt(()=>Kr.value.length,w=>{w&&(Ht.value.expandAll=void 0)},{flush:"post"}),{initialized:Ml,filter:Ze,search:Hr,disableFilter:i,isFiltered:y_,isFilteredByStatus:Mp,disableClearSearch:o,clearAll:v,clearSearch:f,clearFilter:h,filteredFiles:fd,testsTotal:bP,uiEntries:rr,searchMatcher:vo,enableProjects:Np,disableClearProjects:gP,currentProject:ml,currentProjectName:Gg,clearProject:p,projectSort:Fr,clearProjectSort:g,disableClearProjectSort:u}}const e_e=["disabled"],t_e={"flex-1":"","ms-2":"","select-none":"","whitespace-nowrap":"",truncate:""},Ca=tt({__name:"FilterStatus",props:Xa({label:{},disabled:{type:Boolean,default:!1}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Jf(e,"modelValue");function n(){e.disabled||(t.value=!t.value)}return(i,o)=>(te(),ge("label",ci({class:["font-light text-sm checkbox w-fit flex items-center py-1 gap-y-1 mb-1px overflow-hidden",e.disabled?"cursor-not-allowed op50":"cursor-pointer"]},i.$attrs,{onClick:Fu(n,["prevent"])}),[Y("span",{class:ot([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","flex-shrink-0":"","aria-hidden":"true"},null,2),st(Y("input",{"onUpdate:modelValue":o[0]||(o[0]=l=>t.value=l),type:"checkbox",disabled:e.disabled,"sr-only":""},null,8,e_e),[[b1,t.value]]),Y("span",t_e,Me(e.label),1)],16))}}),n_e=["open"],r_e=tt({__name:"ResultsPanel",props:{color:{}},setup(e){const t=Ke(!0);return(n,i)=>(te(),ge("div",{open:t.value,class:"results-panel","data-testid":"results-panel",onToggle:i[0]||(i[0]=o=>t.value=o.target.open)},[Y("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:ot(e.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[i[1]||(i[1]=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),Bt(n.$slots,"summary",{open:t.value}),i[2]||(i[2]=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),Bt(n.$slots,"default")],40,n_e))}}),i_e={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},o_e=tt({__name:"IconAction",props:{icon:{}},setup(e){return(t,n)=>(te(),ge("button",i_e,[Y("span",{block:"",class:ot([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}}),s_e=["aria-label","data-current"],l_e={key:1,"w-4":""},a_e={flex:"","items-baseline":"","gap-2":"","overflow-hidden":""},c_e={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},u_e={"text-sm":"",truncate:"","font-light":""},f_e=["innerHTML"],d_e={"gap-1":"","justify-end":"","items-center":"","flex-grow-1":"","pl-1":"",class:"test-actions"},h_e={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},p_e={key:1},g_e=tt({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},duration:{},slow:{type:Boolean},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){const t=Se(()=>ft.state.idMap.get(e.taskId)),n=Se(()=>{if(pr)return!1;const C=t.value;return C&&Xg(C)});function i(){if(!e.expandable){e.onItemClick?.(t.value);return}e.opened?$e.collapseNode(e.taskId):$e.expandNode(e.taskId)}async function o(C){e.onItemClick?.(C),$a.value&&(Ef.value=!0,await At()),e.type==="file"?await im([C.file]):await mme(C)}function l(C){return ft.rpc.updateSnapshot(C.file)}const u=Se(()=>e.indent<=0?[]:Array.from({length:e.indent},(C,E)=>`${e.taskId}-${E}`)),f=Se(()=>{const C=u.value,E=[];return(e.type==="file"||e.type==="suite")&&E.push("min-content"),E.push("min-content"),e.type==="suite"&&e.typecheck&&E.push("min-content"),E.push("minmax(0, 1fr)"),E.push("min-content"),`grid-template-columns: ${C.map(()=>"1rem").join(" ")} ${E.join(" ")};`}),h=Se(()=>pt.value.api?.allowExec===!1?"Cannot run tests when `api.allowExec` is `false`. Did you expose UI to the internet?":e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=Se(()=>v_(e.name)),g=Se(()=>{const C=yP.value,E=p.value;return C?E.replace(C,L=>`<span class="highlight">${L}</span>`):E}),v=Se(()=>e.type!=="file"&&e.disableTaskLocation),y=Se(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),w=Se(()=>v.value?"color-red5 dark:color-#f43f5e":null);function $(){const C=t.value;e.type==="file"?e.onItemClick?.(C):L_(C)}const _=Se(()=>m_(e.projectNameColor));return(C,E)=>{const L=ir("tooltip");return t.value?(te(),ge("div",{key:0,"items-center":"",p:"x-2 y-1",grid:"~ rows-1 items-center gap-x-2","w-full":"","h-28px":"","border-rounded":"",hover:"bg-active","cursor-pointer":"",class:"item-wrapper",style:Pt(f.value),"aria-label":e.name,"data-current":e.current,"data-testid":"explorer-item",onClick:E[2]||(E[2]=D=>i())},[e.indent>0?(te(!0),ge(nt,{key:0},xn(u.value,D=>(te(),ge("div",{key:D,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):Fe("",!0),e.type==="file"||e.type==="suite"?(te(),ge("div",l_e,[Y("div",{class:ot(e.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):Fe("",!0),Ne(Tk,{state:e.state,mode:t.value.mode,"failed-snapshot":n.value,"w-4":""},null,8,["state","mode","failed-snapshot"]),Y("div",a_e,[e.type==="file"&&e.typecheck?st((te(),ge("div",c_e,null,512)),[[L,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Fe("",!0),Y("span",u_e,[e.type==="file"&&e.projectName?(te(),ge("span",{key:0,class:"rounded-full py-0.5 px-2 mr-1 text-xs",style:Pt({backgroundColor:e.projectNameColor,color:_.value})},Me(e.projectName),5)):Fe("",!0),Y("span",{class:ot(e.state==="fail"?"text-red-700 dark:text-red-500":void 0),innerHTML:g.value},null,10,f_e)]),typeof e.duration=="number"?(te(),ge("span",{key:1,text:"xs",class:ot(e.slow?"text-yellow-700 dark:text-yellow-500":"op20"),style:{"white-space":"nowrap"}},Me(e.duration>0?e.duration:"< 1")+"ms ",3)):Fe("",!0)]),Y("div",d_e,[!W(pr)&&n.value&&W(pt).api?.allowExec&&W(pt).api?.allowWrite?st((te(),We(o_e,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:E[0]||(E[0]=Fu(D=>l(t.value),["prevent","stop"]))},null,512)),[[L,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):Fe("",!0),Ne(W(wo),{placement:"bottom",class:ot(["w-1.4em h-1.4em op100 rounded flex",w.value])},{popper:je(()=>[v.value?(te(),ge("div",h_e,[E[5]||(E[5]=Y("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),Y("div",null,[Qe(Me(y.value)+": this feature is not available, you have disabled ",1),E[3]||(E[3]=Y("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),E[4]||(E[4]=Qe(" in your configuration file.",-1))]),E[6]||(E[6]=Y("div",{style:{"grid-column":"2"}}," Clicking this button the code tab will position the cursor at first line in the source code since the UI doesn't have the information available. ",-1))])):(te(),ge("div",p_e,Me(y.value),1))]),default:je(()=>[Ne(Tt,{"data-testid":"btn-open-details",icon:e.type==="file"?"i-carbon:intrusion-prevention":"i-carbon:code-reference",onClick:Fu($,["prevent","stop"])},null,8,["icon"])]),_:1},8,["class"]),W(pr)?Fe("",!0):st((te(),We(Tt,{key:1,"data-testid":"btn-run-test",title:h.value,icon:"i-carbon:play-filled-alt","text-green-700":"","dark:text-green-500":"",disabled:W(pt).api?.allowExec===!1,onClick:E[1]||(E[1]=Fu(D=>o(t.value),["prevent","stop"]))},null,8,["title","disabled"])),[[L,h.value,void 0,{bottom:!0}]])])],12,s_e)):Fe("",!0)}}}),m_e=Xi(g_e,[["__scopeId","data-v-7f38aded"]]),v_e={h:"full",flex:"~ col"},y_e={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},b_e={key:0,p:"l3 y2 r2","bg-header":"",border:"b-2 base",grid:"~ cols-[auto_auto_minmax(0,1fr)_auto] gap-x-2 gap-y-1","items-center":""},w_e={class:"relative flex-1"},x_e=["value"],S_e=["value"],__e={p:"l3 y2 r2","bg-header":"",border:"b-2 base",grid:"~ cols-[auto_auto_minmax(0,1fr)_auto] gap-x-2","items-center":""},k_e={class:"relative flex-1"},T_e={key:0,value:"asc",class:"text-base bg-base"},C_e={key:1,value:"desc",class:"text-base bg-base"},E_e={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},A_e=["op"],$_e={p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",flex:"~ wrap gap-x-4 justify-between"},N_e={"min-w-full":"",flex:"~ gap-2 items-center"},M_e={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},L_e={"text-red-700":"","dark:text-red-500":""},O_e={"text-yellow-700":"","dark:text-yellow-500":""},R_e={"text-green-700":"","dark:text-green-500":""},P_e={class:"text-purple-700 dark:text-purple-400"},I_e={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},D_e={key:0,"text-red":"","text-center":""},F_e={key:1,op30:""},z_e=["disabled"],H_e=["disabled"],B_e={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},j_e=tt({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const n=t,i=Se(()=>pt.value.includeTaskLocation),o=Se(()=>{const O=pt.value.slowTestThreshold;return typeof O=="number"?` (>${O}ms)`:""}),l=Ke(),u=Ke(),f=Ke(),{initialized:h,filter:p,search:g,disableFilter:v,isFiltered:y,isFilteredByStatus:w,disableClearSearch:$,clearAll:_,clearSearch:C,clearFilter:E,filteredFiles:L,testsTotal:D,uiEntries:N,enableProjects:I,disableClearProjects:q,currentProject:X,currentProjectName:ie,clearProject:J,clearProjectSort:U,disableClearProjectSort:K,searchMatcher:P}=QSe(l,u,f);return(O,k)=>{const S=ir("tooltip");return te(),ge("div",v_e,[Y("div",null,[Y("div",y_e,[Bt(O.$slots,"header",{filteredFiles:W(y)||W(w)?W(L):void 0})]),W(I)?(te(),ge("div",b_e,[k[19]||(k[19]=Y("div",{class:"i-carbon:workspace","flex-shrink-0":""},null,-1)),k[20]||(k[20]=Y("label",{for:"project-select","text-sm":""}," Projects ",-1)),Y("div",w_e,[st(Y("select",{id:"project-select",ref_key:"selectProjectRef",ref:u,"onUpdate:modelValue":k[0]||(k[0]=R=>Lt(X)?X.value=R:null),"w-full":"","appearance-none":"","bg-base":"","text-base":"",border:"~ base rounded","pl-2":"","pr-8":"","py-1":"","text-sm":"","cursor-pointer":"","hover:bg-active":"",class:"outline-none"},[Y("option",{value:W(Bl),class:"text-base bg-base"}," All Projects ",8,x_e),(te(!0),ge(nt,null,xn(W(rm),R=>(te(),ge("option",{key:R,value:R,class:"text-base bg-base"},Me(R),9,S_e))),128))],512),[[r0,W(X)]]),k[18]||(k[18]=Y("div",{class:"i-carbon:chevron-down absolute right-2 top-1/2 op50 -translate-y-1/2 pointer-events-none"},null,-1))]),st(Ne(Tt,{disabled:W(q),title:"Clear project filter",icon:"i-carbon:filter-remove",onClickPassive:k[1]||(k[1]=R=>W(J)(!0))},null,8,["disabled"]),[[S,"Clear project filter",void 0,{bottom:!0}]])])):Fe("",!0),Y("div",__e,[k[25]||(k[25]=Y("div",{class:"i-carbon:arrows-vertical","flex-shrink-0":""},null,-1)),k[26]||(k[26]=Y("label",{for:"project-sort","text-sm":""}," Sort by ",-1)),Y("div",k_e,[st(Y("select",{id:"project-sort",ref_key:"sortProjectRef",ref:f,"onUpdate:modelValue":k[2]||(k[2]=R=>Lt(Fr)?Fr.value=R:null),"w-full":"","appearance-none":"","bg-base":"","text-base":"",border:"~ base rounded","pl-2":"","pr-8":"","py-1":"","text-sm":"","cursor-pointer":"","hover:bg-active":"",class:"outline-none"},[k[21]||(k[21]=Y("option",{value:"default",class:"text-base bg-base"}," Default ",-1)),k[22]||(k[22]=Y("option",{value:"duration-desc",class:"text-base bg-base"}," Slowest first ",-1)),k[23]||(k[23]=Y("option",{value:"duration-asc",class:"text-base bg-base"}," Fastest first ",-1)),W(I)?(te(),ge("option",T_e," Project A-Z ")):Fe("",!0),W(I)?(te(),ge("option",C_e," Project Z-A ")):Fe("",!0)],512),[[r0,W(Fr)]]),k[24]||(k[24]=Y("div",{class:"i-carbon:chevron-down absolute right-2 top-1/2 op50 -translate-y-1/2 pointer-events-none"},null,-1))]),st(Ne(Tt,{disabled:W(K),title:"Reset sort",icon:"i-carbon:filter-reset",onClickPassive:k[3]||(k[3]=R=>W(U)(!0))},null,8,["disabled"]),[[S,"Reset sort",void 0,{bottom:!0}]])]),Y("div",E_e,[k[27]||(k[27]=Y("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),st(Y("input",{ref_key:"searchBox",ref:l,"onUpdate:modelValue":k[4]||(k[4]=R=>Lt(g)?g.value=R:null),placeholder:"Search... (e.g. test name, tag:expression)",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:W(g).length?"100":"50",onKeydown:[k[5]||(k[5]=gp(R=>W(C)(!1),["esc"])),k[6]||(k[6]=gp(R=>n("run",W(y)||W(w)?W(L):void 0),["enter"]))]},null,40,A_e),[[y1,W(g)]]),st(Ne(Tt,{disabled:W($),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:k[7]||(k[7]=R=>W(C)(!0))},null,8,["disabled"]),[[S,"Clear search",void 0,{bottom:!0}]])]),Y("div",$_e,[Y("div",N_e,[k[28]||(k[28]=Y("div",{"aria-hidden":"true",class:"i-carbon:filter","flex-shrink-0":""},null,-1)),k[29]||(k[29]=Y("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),st(Ne(Tt,{disabled:W(v),title:"Clear filter",icon:"i-carbon:filter-remove",onClickPassive:k[8]||(k[8]=R=>W(E)(!1))},null,8,["disabled"]),[[S,"Clear Filter",void 0,{bottom:!0}]])]),Ne(Ca,{modelValue:W(p).failed,"onUpdate:modelValue":k[9]||(k[9]=R=>W(p).failed=R),label:"Fail"},null,8,["modelValue"]),Ne(Ca,{modelValue:W(p).success,"onUpdate:modelValue":k[10]||(k[10]=R=>W(p).success=R),label:"Pass"},null,8,["modelValue"]),Ne(Ca,{modelValue:W(p).skipped,"onUpdate:modelValue":k[11]||(k[11]=R=>W(p).skipped=R),label:"Skip"},null,8,["modelValue"]),Ne(Ca,{modelValue:W(p).onlyTests,"onUpdate:modelValue":k[12]||(k[12]=R=>W(p).onlyTests=R),label:"Only Tests"},null,8,["modelValue"]),Ne(Ca,{modelValue:W(p).slow,"onUpdate:modelValue":k[13]||(k[13]=R=>W(p).slow=R),label:`Slow${o.value}`},null,8,["modelValue","label"])])]),Y("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:k[17]||(k[17]=(...R)=>W(T0)&&W(T0)(...R))},[Ne(r_e,null,aA({default:je(()=>[(W(y)||W(w)||W(ie))&&W(N).length===0?(te(),ge(nt,{key:0},[W(h)?(te(),ge("div",I_e,[W(P).error?(te(),ge("div",D_e,Me(W(P).error),1)):(te(),ge("div",F_e," No matched test ")),Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:ot(W($)?null:"hover:op100"),disabled:W($),onClickPassive:k[14]||(k[14]=R=>W(C)(!0))}," Clear Search ",42,z_e),Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:ot(W(v)?null:"hover:op100"),disabled:W(v),onClickPassive:k[15]||(k[15]=R=>W(E)(!0))}," Clear Filter ",42,H_e),Y("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:k[16]||(k[16]=(...R)=>W(_)&&W(_)(...R))}," Clear All ",32)])):(te(),ge("div",B_e,[...k[32]||(k[32]=[Y("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),Y("div",{op30:""}," Loading... ",-1)])]))],64)):(te(),We(W(vm),{key:1,"page-mode":"","key-field":"id","item-size":28,items:W(N),buffer:100},{default:je(({item:R})=>[Ne(m_e,{class:ot(["h-28px m-0 p-0",W(Fi)===R.id||!W(Fi)&&W(Io)===R.id?"bg-active":""]),"task-id":R.id,expandable:R.expandable,type:R.type,current:W(Io)===R.id,indent:R.indent,name:R.name,typecheck:R.typecheck===!0,"project-name":R.projectName??"","project-name-color":R.projectNameColor??"",state:R.state,duration:R.duration,slow:R.slow===!0,opened:R.expanded,"disable-task-location":!i.value,"on-item-click":e.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","project-name","project-name-color","state","duration","slow","opened","disable-task-location","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[W(h)?{name:"summary",fn:je(()=>[Y("div",M_e,[Y("span",L_e," FAIL ("+Me(W(D).failed)+") ",1),k[30]||(k[30]=Y("span",null,"/",-1)),Y("span",O_e," RUNNING ("+Me(W(D).running)+") ",1),Y("span",R_e," PASS ("+Me(W(D).success)+") ",1),k[31]||(k[31]=Y("span",null,"/",-1)),Y("span",P_e," SKIP ("+Me(W(p).onlyTests?W(D).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)])}}}),W_e={class:"flex text-lg"},q_e=tt({__name:"Navigation",setup(e){function t(){return ft.rpc.updateSnapshot()}const n=Se(()=>Po.value?"light":"dark");async function i(f){pt.value.api?.allowExec!==!1&&($a.value&&(Ef.value=!0,await At(),Do.value&&(Af(!0),await At())),f?.length?await im(f):await pme())}function o(){$e.collapseAllNodes()}function l(){$e.expandAllNodes()}function u(f){return pt.value.api?.allowExec===!1?"Cannot run tests when `api.allowExec` is `false`. Did you expose UI to the internet?":f?f.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all"}return(f,h)=>{const p=ir("tooltip");return te(),We(j_e,{border:"r base","on-item-click":W(Fge),nested:!0,onRun:i},{header:je(({filteredFiles:g})=>[h[8]||(h[8]=Y("img",{"w-6":"","h-6":"",src:TSe,alt:"Vitest logo"},null,-1)),h[9]||(h[9]=Y("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),Y("div",W_e,[st(Ne(Tt,{title:"Collapse tests",disabled:!W(Ml),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:h[0]||(h[0]=v=>o())},null,8,["disabled"]),[[Co,!W(Eb)],[p,"Collapse tests",void 0,{bottom:!0}]]),st(Ne(Tt,{disabled:!W(Ml),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:h[1]||(h[1]=v=>l())},null,8,["disabled"]),[[Co,W(Eb)],[p,"Expand tests",void 0,{bottom:!0}]]),st(Ne(Tt,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:h[2]||(h[2]=v=>W(Af)(!0))},null,512),[[Co,W(Pp)&&!W($a)||!W(vl)],[p,"Dashboard",void 0,{bottom:!0}]]),W(Pp)&&!W($a)?(te(),We(W(wo),{key:0,title:"Coverage enabled but missing html reporter",class:"w-1.4em h-1.4em op100 rounded flex color-red5 dark:color-#f43f5e cursor-help"},{popper:je(()=>[...h[6]||(h[6]=[Y("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[Y("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),Y("div",null,"Coverage enabled but missing html reporter."),Y("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])]),default:je(()=>[h[7]||(h[7]=Y("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):Fe("",!0),W($a)?st((te(),We(Tt,{key:1,disabled:W(Ef),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:h[3]||(h[3]=v=>W(zge)())},null,8,["disabled"])),[[Co,!W(Do)],[p,"Coverage",void 0,{bottom:!0}]]):Fe("",!0),W($e).summary.failedSnapshot&&!W(pr)&&W(pt).api?.allowExec&&W(pt).api?.allowWrite?st((te(),We(Tt,{key:2,icon:"i-carbon:result-old",disabled:!W($e).summary.failedSnapshotEnabled,onClick:h[4]||(h[4]=v=>W($e).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[p,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Fe("",!0),W(pr)?Fe("",!0):st((te(),We(Tt,{key:3,disabled:g?.length===0||!W(pt).api?.allowExec,icon:"i-carbon:play","data-testid":"btn-run-all",onClick:v=>i(g)},null,8,["disabled","onClick"])),[[p,u(g),void 0,{bottom:!0}]]),st(Ne(Tt,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:h[5]||(h[5]=v=>W(fP)())},null,512),[[p,`Toggle to ${n.value} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),U_e={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},V_e=tt({__name:"ProgressBar",setup(e){const{width:t}=rS(),n=Se(()=>[$e.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!ol.value&&"in-progress"].filter(Boolean).join(" ")),i=Se(()=>{const f=$e.summary.files;return f>0?t.value*$e.summary.filesSuccess/f:0}),o=Se(()=>{const f=$e.summary.files;return f>0?t.value*$e.summary.filesFailed/f:0}),l=Se(()=>$e.summary.files-$e.summary.filesFailed-$e.summary.filesSuccess),u=Se(()=>{const f=$e.summary.files;return f>0?t.value*l.value/f:0});return(f,h)=>(te(),ge("div",{absolute:"","t-0":"","l-0":"","r-0":"","z-index-1031":"","pointer-events-none":"","p-0":"","h-3px":"",grid:"~ auto-cols-max","justify-items-center":"","w-screen":"",class:ot(n.value)},[Y("div",U_e,[Y("div",{absolute:"","l-0":"","t-0":"","bg-red-700":"","dark:bg-red-500":"","h-3px":"",class:ot(n.value),style:Pt(`width: ${o.value}px;`)},"   ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-green-700":"","dark:bg-green-500":"","h-3px":"",class:ot(n.value),style:Pt(`left: ${o.value}px; width: ${i.value}px;`)},"   ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-yellow-700":"","dark:bg-yellow-500":"","h-3px":"",class:ot(n.value),style:Pt(`left: ${i.value+o.value}px; width: ${u.value}px;`)},"   ",6)])],2))}}),G_e=Xi(V_e,[["__scopeId","data-v-d5dc96ee"]]),K_e={"h-screen":"","w-screen":"",overflow:"hidden"},Y_e={key:1,flex:"~ col","h-full":""},X_e={"h-full":"","overflow-hidden":""},J_e=tt({__name:"index",setup(e){const t=Dge(),n=yu(({panes:g})=>{h(),f(g)},0),i=yu(({panes:g})=>{g.forEach((v,y)=>{yl.value[y]=v.size}),u(g),p()},0),o=yu(({panes:g})=>{g.forEach((v,y)=>{ms.value[y]=v.size}),f(g),p()},0),l=yu(({panes:g})=>{u(g),h()},0);function u(g){fn.navigation=g[0].size,g[1]&&(fn.details.size=g[1].size)}function f(g){fn.details.browser=g[0].size,g[1]&&(fn.details.main=g[1].size)}function h(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="none")}function p(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="")}return(g,v)=>(te(),ge(nt,null,[Ne(G_e),Y("div",K_e,[Ne(W(M0),{class:"pt-4px",onResized:W(i),onResize:W(l)},{default:je(()=>[Ne(W(xu),{size:W(yl)[0]},{default:je(()=>[Ne(q_e)]),_:1},8,["size"]),Ne(W(xu),{size:W(yl)[1]},{default:je(()=>[W(gr)?(te(),ge("div",Y_e,[Ne(W(M0),{id:"details-splitpanes",key:"browser-detail",horizontal:W(Tn)==="bottom",class:ot(W(Tn)==="bottom"&&!W(Bi)?"flex-1 min-h-0 overflow-hidden":"h-full"),onResize:W(n),onResized:W(o)},{default:je(()=>[Ne(W(xu),{size:W(ms)[0],"min-size":"10"},{default:je(()=>[v[0]||(Tl(-1,!0),(v[0]=Ne(Eme)).cacheIndex=0,Tl(1),v[0])]),_:1},8,["size"]),W(Bi)?(te(),We(W(xu),{key:0,size:W(ms)[1],"min-size":"10"},{default:je(()=>[Y("div",X_e,[W(t)?(te(),We(rw,{key:"summary"})):W(Do)?(te(),We(nw,{key:"coverage"})):(te(),We($w,{key:"details"}))])]),_:1},8,["size"])):Fe("",!0)]),_:1},8,["horizontal","class","onResize","onResized"]),W(Tn)==="bottom"&&!W(Bi)?(te(),We($me,{key:0})):Fe("",!0)])):(te(),We(i$,{key:"ui-detail"},{default:je(()=>[W(t)?(te(),We(rw,{key:"summary"})):W(Do)?(te(),We(nw,{key:"coverage"})):(te(),We($w,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Ne(Lme)],64))}}),Z_e=[{name:"index",path:"/",component:J_e,props:!0}];/*!
75
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var G;g&&(G=d.ownerDocument.defaultView.scrollY),a.input.focus(),g&&d.ownerDocument.defaultView.scrollTo(null,G),a.input.reset(),c.somethingSelected()||(d.value=s.prevInput=" "),s.contextMenuPending=ne,a.selForContextMenu=c.doc.sel,clearTimeout(a.detectingSelectAll);function se(){if(d.selectionStart!=null){var we=c.somethingSelected(),Te="​"+(we?d.value:"");d.value="⇚",d.value=Te,s.prevInput=we?"":"​",d.selectionStart=1,d.selectionEnd=Te.length,a.selForContextMenu=c.doc.sel}}function ne(){if(s.contextMenuPending==ne&&(s.contextMenuPending=!1,s.wrapper.style.cssText=A,d.style.cssText=T,h&&p<9&&a.scrollbars.setScrollTop(a.scroller.scrollTop=b),d.selectionStart!=null)){(!h||h&&p<9)&&se();var we=0,Te=function(){a.selForContextMenu==c.doc.sel&&d.selectionStart==0&&d.selectionEnd>0&&s.prevInput=="​"?rn(c,Fv)(c):we++<10?a.detectingSelectAll=setTimeout(Te,500):(a.selForContextMenu=null,a.input.reset())};a.detectingSelectAll=setTimeout(Te,200)}}if(h&&p>=9&&se(),U){Ji(r);var pe=function(){hn(window,"mouseup",pe),setTimeout(ne,20)};Xe(window,"mouseup",pe)}else setTimeout(ne,50)},qt.prototype.readOnlyChanged=function(r){r||this.reset(),this.textarea.disabled=r=="nocursor",this.textarea.readOnly=!!r},qt.prototype.setUneditable=function(){},qt.prototype.needsContentAttribute=!1;function KC(r,s){if(s=s?Z(s):{},s.value=r.value,!s.tabindex&&r.tabIndex&&(s.tabindex=r.tabIndex),!s.placeholder&&r.placeholder&&(s.placeholder=r.placeholder),s.autofocus==null){var c=ve(He(r));s.autofocus=c==r||r.getAttribute("autofocus")!=null&&c==document.body}function a(){r.value=x.getValue()}var d;if(r.form&&(Xe(r.form,"submit",a),!s.leaveSubmitMethodAlone)){var m=r.form;d=m.submit;try{var b=m.submit=function(){a(),m.submit=d,m.submit(),m.submit=b}}catch{}}s.finishInit=function(T){T.save=a,T.getTextArea=function(){return r},T.toTextArea=function(){T.toTextArea=isNaN,a(),r.parentNode.removeChild(T.getWrapperElement()),r.style.display="",r.form&&(hn(r.form,"submit",a),!s.leaveSubmitMethodAlone&&typeof r.form.submit=="function"&&(r.form.submit=d))}},r.style.display="none";var x=Nt(function(T){return r.parentNode.insertBefore(T,r.nextSibling)},s);return x}function YC(r){r.off=hn,r.on=Xe,r.wheelEventPixels=nC,r.Doc=Mn,r.splitLines=br,r.countColumn=re,r.findColumn=me,r.isWordChar=et,r.Pass=j,r.signal=It,r.Line=Os,r.changeEnd=oo,r.scrollbarModel=pv,r.Pos=fe,r.cmpPos=Ie,r.modes=Es,r.mimeModes=Nr,r.resolveMode=As,r.getMode=$s,r.modeExtensions=eo,r.extendMode=Ns,r.copyState=Zr,r.startState=Ms,r.innerMode=ql,r.commands=pa,r.keyMap=_i,r.keyName=ey,r.isModifierKey=Zv,r.lookupKey=Vs,r.normalizeKeyMap=kC,r.StringStream=Ft,r.SharedTextMarker=fa,r.TextMarker=lo,r.LineWidget=ua,r.e_preventDefault=pn,r.e_stopPropagation=Ts,r.e_stop=Ji,r.addClass=_e,r.contains=ae,r.rmClass=P,r.keyNames=ao}HC(Nt),qC(Nt);var XC="iter insert remove copy getEditor constructor".split(" ");for(var du in Mn.prototype)Mn.prototype.hasOwnProperty(du)&&ce(XC,du)<0&&(Nt.prototype[du]=(function(r){return function(){return r.apply(this.doc,arguments)}})(Mn.prototype[du]));return Er(Mn),Nt.inputStyles={textarea:qt,contenteditable:xt},Nt.defineMode=function(r){!Nt.defaults.mode&&r!="null"&&(Nt.defaults.mode=r),Mr.apply(this,arguments)},Nt.defineMIME=jo,Nt.defineMode("null",function(){return{token:function(r){return r.skipToEnd()}}}),Nt.defineMIME("text/plain","null"),Nt.defineExtension=function(r,s){Nt.prototype[r]=s},Nt.defineDocExtension=function(r,s){Mn.prototype[r]=s},Nt.fromTextArea=KC,YC(Nt),Nt.version="5.65.18",Nt}))})(Vu)),Vu.exports}var XP=Ho();const JP=Jg(XP);var Hh={},Ir={};const ZP="Á",QP="á",eI="Ă",tI="ă",nI="∾",rI="∿",iI="∾̳",oI="Â",sI="â",lI="´",aI="А",cI="а",uI="Æ",fI="æ",dI="⁡",hI="𝔄",pI="𝔞",gI="À",mI="à",vI="ℵ",yI="ℵ",bI="Α",wI="α",xI="Ā",SI="ā",_I="⨿",kI="&",TI="&",CI="⩕",EI="⩓",AI="∧",$I="⩜",NI="⩘",MI="⩚",LI="∠",OI="⦤",RI="∠",PI="⦨",II="⦩",DI="⦪",FI="⦫",zI="⦬",HI="⦭",BI="⦮",jI="⦯",WI="∡",qI="∟",UI="⊾",VI="⦝",GI="∢",KI="Å",YI="⍼",XI="Ą",JI="ą",ZI="𝔸",QI="𝕒",e2="⩯",t2="≈",n2="⩰",r2="≊",i2="≋",o2="'",s2="⁡",l2="≈",a2="≊",c2="Å",u2="å",f2="𝒜",d2="𝒶",h2="≔",p2="*",g2="≈",m2="≍",v2="Ã",y2="ã",b2="Ä",w2="ä",x2="∳",S2="⨑",_2="≌",k2="϶",T2="‵",C2="∽",E2="⋍",A2="∖",$2="⫧",N2="⊽",M2="⌅",L2="⌆",O2="⌅",R2="⎵",P2="⎶",I2="≌",D2="Б",F2="б",z2="„",H2="∵",B2="∵",j2="∵",W2="⦰",q2="϶",U2="ℬ",V2="ℬ",G2="Β",K2="β",Y2="ℶ",X2="≬",J2="𝔅",Z2="𝔟",Q2="⋂",eD="◯",tD="⋃",nD="⨀",rD="⨁",iD="⨂",oD="⨆",sD="★",lD="▽",aD="△",cD="⨄",uD="⋁",fD="⋀",dD="⤍",hD="⧫",pD="▪",gD="▴",mD="▾",vD="◂",yD="▸",bD="␣",wD="▒",xD="░",SD="▓",_D="█",kD="=⃥",TD="≡⃥",CD="⫭",ED="⌐",AD="𝔹",$D="𝕓",ND="⊥",MD="⊥",LD="⋈",OD="⧉",RD="┐",PD="╕",ID="╖",DD="╗",FD="┌",zD="╒",HD="╓",BD="╔",jD="─",WD="═",qD="┬",UD="╤",VD="╥",GD="╦",KD="┴",YD="╧",XD="╨",JD="╩",ZD="⊟",QD="⊞",eF="⊠",tF="┘",nF="╛",rF="╜",iF="╝",oF="└",sF="╘",lF="╙",aF="╚",cF="│",uF="║",fF="┼",dF="╪",hF="╫",pF="╬",gF="┤",mF="╡",vF="╢",yF="╣",bF="├",wF="╞",xF="╟",SF="╠",_F="‵",kF="˘",TF="˘",CF="¦",EF="𝒷",AF="ℬ",$F="⁏",NF="∽",MF="⋍",LF="⧅",OF="\\",RF="⟈",PF="•",IF="•",DF="≎",FF="⪮",zF="≏",HF="≎",BF="≏",jF="Ć",WF="ć",qF="⩄",UF="⩉",VF="⩋",GF="∩",KF="⋒",YF="⩇",XF="⩀",JF="ⅅ",ZF="∩︀",QF="⁁",ez="ˇ",tz="ℭ",nz="⩍",rz="Č",iz="č",oz="Ç",sz="ç",lz="Ĉ",az="ĉ",cz="∰",uz="⩌",fz="⩐",dz="Ċ",hz="ċ",pz="¸",gz="¸",mz="⦲",vz="¢",yz="·",bz="·",wz="𝔠",xz="ℭ",Sz="Ч",_z="ч",kz="✓",Tz="✓",Cz="Χ",Ez="χ",Az="ˆ",$z="≗",Nz="↺",Mz="↻",Lz="⊛",Oz="⊚",Rz="⊝",Pz="⊙",Iz="®",Dz="Ⓢ",Fz="⊖",zz="⊕",Hz="⊗",Bz="○",jz="⧃",Wz="≗",qz="⨐",Uz="⫯",Vz="⧂",Gz="∲",Kz="”",Yz="’",Xz="♣",Jz="♣",Zz=":",Qz="∷",e3="⩴",t3="≔",n3="≔",r3=",",i3="@",o3="∁",s3="∘",l3="∁",a3="ℂ",c3="≅",u3="⩭",f3="≡",d3="∮",h3="∯",p3="∮",g3="𝕔",m3="ℂ",v3="∐",y3="∐",b3="©",w3="©",x3="℗",S3="∳",_3="↵",k3="✗",T3="⨯",C3="𝒞",E3="𝒸",A3="⫏",$3="⫑",N3="⫐",M3="⫒",L3="⋯",O3="⤸",R3="⤵",P3="⋞",I3="⋟",D3="↶",F3="⤽",z3="⩈",H3="⩆",B3="≍",j3="∪",W3="⋓",q3="⩊",U3="⊍",V3="⩅",G3="∪︀",K3="↷",Y3="⤼",X3="⋞",J3="⋟",Z3="⋎",Q3="⋏",eH="¤",tH="↶",nH="↷",rH="⋎",iH="⋏",oH="∲",sH="∱",lH="⌭",aH="†",cH="‡",uH="ℸ",fH="↓",dH="↡",hH="⇓",pH="‐",gH="⫤",mH="⊣",vH="⤏",yH="˝",bH="Ď",wH="ď",xH="Д",SH="д",_H="‡",kH="⇊",TH="ⅅ",CH="ⅆ",EH="⤑",AH="⩷",$H="°",NH="∇",MH="Δ",LH="δ",OH="⦱",RH="⥿",PH="𝔇",IH="𝔡",DH="⥥",FH="⇃",zH="⇂",HH="´",BH="˙",jH="˝",WH="`",qH="˜",UH="⋄",VH="⋄",GH="⋄",KH="♦",YH="♦",XH="¨",JH="ⅆ",ZH="ϝ",QH="⋲",eB="÷",tB="÷",nB="⋇",rB="⋇",iB="Ђ",oB="ђ",sB="⌞",lB="⌍",aB="$",cB="𝔻",uB="𝕕",fB="¨",dB="˙",hB="⃜",pB="≐",gB="≑",mB="≐",vB="∸",yB="∔",bB="⊡",wB="⌆",xB="∯",SB="¨",_B="⇓",kB="⇐",TB="⇔",CB="⫤",EB="⟸",AB="⟺",$B="⟹",NB="⇒",MB="⊨",LB="⇑",OB="⇕",RB="∥",PB="⤓",IB="↓",DB="↓",FB="⇓",zB="⇵",HB="̑",BB="⇊",jB="⇃",WB="⇂",qB="⥐",UB="⥞",VB="⥖",GB="↽",KB="⥟",YB="⥗",XB="⇁",JB="↧",ZB="⊤",QB="⤐",ej="⌟",tj="⌌",nj="𝒟",rj="𝒹",ij="Ѕ",oj="ѕ",sj="⧶",lj="Đ",aj="đ",cj="⋱",uj="▿",fj="▾",dj="⇵",hj="⥯",pj="⦦",gj="Џ",mj="џ",vj="⟿",yj="É",bj="é",wj="⩮",xj="Ě",Sj="ě",_j="Ê",kj="ê",Tj="≖",Cj="≕",Ej="Э",Aj="э",$j="⩷",Nj="Ė",Mj="ė",Lj="≑",Oj="ⅇ",Rj="≒",Pj="𝔈",Ij="𝔢",Dj="⪚",Fj="È",zj="è",Hj="⪖",Bj="⪘",jj="⪙",Wj="∈",qj="⏧",Uj="ℓ",Vj="⪕",Gj="⪗",Kj="Ē",Yj="ē",Xj="∅",Jj="∅",Zj="◻",Qj="∅",e5="▫",t5=" ",n5=" ",r5=" ",i5="Ŋ",o5="ŋ",s5=" ",l5="Ę",a5="ę",c5="𝔼",u5="𝕖",f5="⋕",d5="⧣",h5="⩱",p5="ε",g5="Ε",m5="ε",v5="ϵ",y5="≖",b5="≕",w5="≂",x5="⪖",S5="⪕",_5="⩵",k5="=",T5="≂",C5="≟",E5="⇌",A5="≡",$5="⩸",N5="⧥",M5="⥱",L5="≓",O5="ℯ",R5="ℰ",P5="≐",I5="⩳",D5="≂",F5="Η",z5="η",H5="Ð",B5="ð",j5="Ë",W5="ë",q5="€",U5="!",V5="∃",G5="∃",K5="ℰ",Y5="ⅇ",X5="ⅇ",J5="≒",Z5="Ф",Q5="ф",e8="♀",t8="ffi",n8="ff",r8="ffl",i8="𝔉",o8="𝔣",s8="fi",l8="◼",a8="▪",c8="fj",u8="♭",f8="fl",d8="▱",h8="ƒ",p8="𝔽",g8="𝕗",m8="∀",v8="∀",y8="⋔",b8="⫙",w8="ℱ",x8="⨍",S8="½",_8="⅓",k8="¼",T8="⅕",C8="⅙",E8="⅛",A8="⅔",$8="⅖",N8="¾",M8="⅗",L8="⅜",O8="⅘",R8="⅚",P8="⅝",I8="⅞",D8="⁄",F8="⌢",z8="𝒻",H8="ℱ",B8="ǵ",j8="Γ",W8="γ",q8="Ϝ",U8="ϝ",V8="⪆",G8="Ğ",K8="ğ",Y8="Ģ",X8="Ĝ",J8="ĝ",Z8="Г",Q8="г",e4="Ġ",t4="ġ",n4="≥",r4="≧",i4="⪌",o4="⋛",s4="≥",l4="≧",a4="⩾",c4="⪩",u4="⩾",f4="⪀",d4="⪂",h4="⪄",p4="⋛︀",g4="⪔",m4="𝔊",v4="𝔤",y4="≫",b4="⋙",w4="⋙",x4="ℷ",S4="Ѓ",_4="ѓ",k4="⪥",T4="≷",C4="⪒",E4="⪤",A4="⪊",$4="⪊",N4="⪈",M4="≩",L4="⪈",O4="≩",R4="⋧",P4="𝔾",I4="𝕘",D4="`",F4="≥",z4="⋛",H4="≧",B4="⪢",j4="≷",W4="⩾",q4="≳",U4="𝒢",V4="ℊ",G4="≳",K4="⪎",Y4="⪐",X4="⪧",J4="⩺",Z4=">",Q4=">",eW="≫",tW="⋗",nW="⦕",rW="⩼",iW="⪆",oW="⥸",sW="⋗",lW="⋛",aW="⪌",cW="≷",uW="≳",fW="≩︀",dW="≩︀",hW="ˇ",pW=" ",gW="½",mW="ℋ",vW="Ъ",yW="ъ",bW="⥈",wW="↔",xW="⇔",SW="↭",_W="^",kW="ℏ",TW="Ĥ",CW="ĥ",EW="♥",AW="♥",$W="…",NW="⊹",MW="𝔥",LW="ℌ",OW="ℋ",RW="⤥",PW="⤦",IW="⇿",DW="∻",FW="↩",zW="↪",HW="𝕙",BW="ℍ",jW="―",WW="─",qW="𝒽",UW="ℋ",VW="ℏ",GW="Ħ",KW="ħ",YW="≎",XW="≏",JW="⁃",ZW="‐",QW="Í",eq="í",tq="⁣",nq="Î",rq="î",iq="И",oq="и",sq="İ",lq="Е",aq="е",cq="¡",uq="⇔",fq="𝔦",dq="ℑ",hq="Ì",pq="ì",gq="ⅈ",mq="⨌",vq="∭",yq="⧜",bq="℩",wq="IJ",xq="ij",Sq="Ī",_q="ī",kq="ℑ",Tq="ⅈ",Cq="ℐ",Eq="ℑ",Aq="ı",$q="ℑ",Nq="⊷",Mq="Ƶ",Lq="⇒",Oq="℅",Rq="∞",Pq="⧝",Iq="ı",Dq="⊺",Fq="∫",zq="∬",Hq="ℤ",Bq="∫",jq="⊺",Wq="⋂",qq="⨗",Uq="⨼",Vq="⁣",Gq="⁢",Kq="Ё",Yq="ё",Xq="Į",Jq="į",Zq="𝕀",Qq="𝕚",eU="Ι",tU="ι",nU="⨼",rU="¿",iU="𝒾",oU="ℐ",sU="∈",lU="⋵",aU="⋹",cU="⋴",uU="⋳",fU="∈",dU="⁢",hU="Ĩ",pU="ĩ",gU="І",mU="і",vU="Ï",yU="ï",bU="Ĵ",wU="ĵ",xU="Й",SU="й",_U="𝔍",kU="𝔧",TU="ȷ",CU="𝕁",EU="𝕛",AU="𝒥",$U="𝒿",NU="Ј",MU="ј",LU="Є",OU="є",RU="Κ",PU="κ",IU="ϰ",DU="Ķ",FU="ķ",zU="К",HU="к",BU="𝔎",jU="𝔨",WU="ĸ",qU="Х",UU="х",VU="Ќ",GU="ќ",KU="𝕂",YU="𝕜",XU="𝒦",JU="𝓀",ZU="⇚",QU="Ĺ",e6="ĺ",t6="⦴",n6="ℒ",r6="Λ",i6="λ",o6="⟨",s6="⟪",l6="⦑",a6="⟨",c6="⪅",u6="ℒ",f6="«",d6="⇤",h6="⤟",p6="←",g6="↞",m6="⇐",v6="⤝",y6="↩",b6="↫",w6="⤹",x6="⥳",S6="↢",_6="⤙",k6="⤛",T6="⪫",C6="⪭",E6="⪭︀",A6="⤌",$6="⤎",N6="❲",M6="{",L6="[",O6="⦋",R6="⦏",P6="⦍",I6="Ľ",D6="ľ",F6="Ļ",z6="ļ",H6="⌈",B6="{",j6="Л",W6="л",q6="⤶",U6="“",V6="„",G6="⥧",K6="⥋",Y6="↲",X6="≤",J6="≦",Z6="⟨",Q6="⇤",eV="←",tV="←",nV="⇐",rV="⇆",iV="↢",oV="⌈",sV="⟦",lV="⥡",aV="⥙",cV="⇃",uV="⌊",fV="↽",dV="↼",hV="⇇",pV="↔",gV="↔",mV="⇔",vV="⇆",yV="⇋",bV="↭",wV="⥎",xV="↤",SV="⊣",_V="⥚",kV="⋋",TV="⧏",CV="⊲",EV="⊴",AV="⥑",$V="⥠",NV="⥘",MV="↿",LV="⥒",OV="↼",RV="⪋",PV="⋚",IV="≤",DV="≦",FV="⩽",zV="⪨",HV="⩽",BV="⩿",jV="⪁",WV="⪃",qV="⋚︀",UV="⪓",VV="⪅",GV="⋖",KV="⋚",YV="⪋",XV="⋚",JV="≦",ZV="≶",QV="≶",e9="⪡",t9="≲",n9="⩽",r9="≲",i9="⥼",o9="⌊",s9="𝔏",l9="𝔩",a9="≶",c9="⪑",u9="⥢",f9="↽",d9="↼",h9="⥪",p9="▄",g9="Љ",m9="љ",v9="⇇",y9="≪",b9="⋘",w9="⌞",x9="⇚",S9="⥫",_9="◺",k9="Ŀ",T9="ŀ",C9="⎰",E9="⎰",A9="⪉",$9="⪉",N9="⪇",M9="≨",L9="⪇",O9="≨",R9="⋦",P9="⟬",I9="⇽",D9="⟦",F9="⟵",z9="⟵",H9="⟸",B9="⟷",j9="⟷",W9="⟺",q9="⟼",U9="⟶",V9="⟶",G9="⟹",K9="↫",Y9="↬",X9="⦅",J9="𝕃",Z9="𝕝",Q9="⨭",eG="⨴",tG="∗",nG="_",rG="↙",iG="↘",oG="◊",sG="◊",lG="⧫",aG="(",cG="⦓",uG="⇆",fG="⌟",dG="⇋",hG="⥭",pG="‎",gG="⊿",mG="‹",vG="𝓁",yG="ℒ",bG="↰",wG="↰",xG="≲",SG="⪍",_G="⪏",kG="[",TG="‘",CG="‚",EG="Ł",AG="ł",$G="⪦",NG="⩹",MG="<",LG="<",OG="≪",RG="⋖",PG="⋋",IG="⋉",DG="⥶",FG="⩻",zG="◃",HG="⊴",BG="◂",jG="⦖",WG="⥊",qG="⥦",UG="≨︀",VG="≨︀",GG="¯",KG="♂",YG="✠",XG="✠",JG="↦",ZG="↦",QG="↧",eK="↤",tK="↥",nK="▮",rK="⨩",iK="М",oK="м",sK="—",lK="∺",aK="∡",cK=" ",uK="ℳ",fK="𝔐",dK="𝔪",hK="℧",pK="µ",gK="*",mK="⫰",vK="∣",yK="·",bK="⊟",wK="−",xK="∸",SK="⨪",_K="∓",kK="⫛",TK="…",CK="∓",EK="⊧",AK="𝕄",$K="𝕞",NK="∓",MK="𝓂",LK="ℳ",OK="∾",RK="Μ",PK="μ",IK="⊸",DK="⊸",FK="∇",zK="Ń",HK="ń",BK="∠⃒",jK="≉",WK="⩰̸",qK="≋̸",UK="ʼn",VK="≉",GK="♮",KK="ℕ",YK="♮",XK=" ",JK="≎̸",ZK="≏̸",QK="⩃",e7="Ň",t7="ň",n7="Ņ",r7="ņ",i7="≇",o7="⩭̸",s7="⩂",l7="Н",a7="н",c7="–",u7="⤤",f7="↗",d7="⇗",h7="↗",p7="≠",g7="≐̸",m7="​",v7="​",y7="​",b7="​",w7="≢",x7="⤨",S7="≂̸",_7="≫",k7="≪",T7=`
76
+ `,C7="∄",E7="∄",A7="𝔑",$7="𝔫",N7="≧̸",M7="≱",L7="≱",O7="≧̸",R7="⩾̸",P7="⩾̸",I7="⋙̸",D7="≵",F7="≫⃒",z7="≯",H7="≯",B7="≫̸",j7="↮",W7="⇎",q7="⫲",U7="∋",V7="⋼",G7="⋺",K7="∋",Y7="Њ",X7="њ",J7="↚",Z7="⇍",Q7="‥",eY="≦̸",tY="≰",nY="↚",rY="⇍",iY="↮",oY="⇎",sY="≰",lY="≦̸",aY="⩽̸",cY="⩽̸",uY="≮",fY="⋘̸",dY="≴",hY="≪⃒",pY="≮",gY="⋪",mY="⋬",vY="≪̸",yY="∤",bY="⁠",wY=" ",xY="𝕟",SY="ℕ",_Y="⫬",kY="¬",TY="≢",CY="≭",EY="∦",AY="∉",$Y="≠",NY="≂̸",MY="∄",LY="≯",OY="≱",RY="≧̸",PY="≫̸",IY="≹",DY="⩾̸",FY="≵",zY="≎̸",HY="≏̸",BY="∉",jY="⋵̸",WY="⋹̸",qY="∉",UY="⋷",VY="⋶",GY="⧏̸",KY="⋪",YY="⋬",XY="≮",JY="≰",ZY="≸",QY="≪̸",eX="⩽̸",tX="≴",nX="⪢̸",rX="⪡̸",iX="∌",oX="∌",sX="⋾",lX="⋽",aX="⊀",cX="⪯̸",uX="⋠",fX="∌",dX="⧐̸",hX="⋫",pX="⋭",gX="⊏̸",mX="⋢",vX="⊐̸",yX="⋣",bX="⊂⃒",wX="⊈",xX="⊁",SX="⪰̸",_X="⋡",kX="≿̸",TX="⊃⃒",CX="⊉",EX="≁",AX="≄",$X="≇",NX="≉",MX="∤",LX="∦",OX="∦",RX="⫽⃥",PX="∂̸",IX="⨔",DX="⊀",FX="⋠",zX="⊀",HX="⪯̸",BX="⪯̸",jX="⤳̸",WX="↛",qX="⇏",UX="↝̸",VX="↛",GX="⇏",KX="⋫",YX="⋭",XX="⊁",JX="⋡",ZX="⪰̸",QX="𝒩",eJ="𝓃",tJ="∤",nJ="∦",rJ="≁",iJ="≄",oJ="≄",sJ="∤",lJ="∦",aJ="⋢",cJ="⋣",uJ="⊄",fJ="⫅̸",dJ="⊈",hJ="⊂⃒",pJ="⊈",gJ="⫅̸",mJ="⊁",vJ="⪰̸",yJ="⊅",bJ="⫆̸",wJ="⊉",xJ="⊃⃒",SJ="⊉",_J="⫆̸",kJ="≹",TJ="Ñ",CJ="ñ",EJ="≸",AJ="⋪",$J="⋬",NJ="⋫",MJ="⋭",LJ="Ν",OJ="ν",RJ="#",PJ="№",IJ=" ",DJ="≍⃒",FJ="⊬",zJ="⊭",HJ="⊮",BJ="⊯",jJ="≥⃒",WJ=">⃒",qJ="⤄",UJ="⧞",VJ="⤂",GJ="≤⃒",KJ="<⃒",YJ="⊴⃒",XJ="⤃",JJ="⊵⃒",ZJ="∼⃒",QJ="⤣",eZ="↖",tZ="⇖",nZ="↖",rZ="⤧",iZ="Ó",oZ="ó",sZ="⊛",lZ="Ô",aZ="ô",cZ="⊚",uZ="О",fZ="о",dZ="⊝",hZ="Ő",pZ="ő",gZ="⨸",mZ="⊙",vZ="⦼",yZ="Œ",bZ="œ",wZ="⦿",xZ="𝔒",SZ="𝔬",_Z="˛",kZ="Ò",TZ="ò",CZ="⧁",EZ="⦵",AZ="Ω",$Z="∮",NZ="↺",MZ="⦾",LZ="⦻",OZ="‾",RZ="⧀",PZ="Ō",IZ="ō",DZ="Ω",FZ="ω",zZ="Ο",HZ="ο",BZ="⦶",jZ="⊖",WZ="𝕆",qZ="𝕠",UZ="⦷",VZ="“",GZ="‘",KZ="⦹",YZ="⊕",XZ="↻",JZ="⩔",ZZ="∨",QZ="⩝",eQ="ℴ",tQ="ℴ",nQ="ª",rQ="º",iQ="⊶",oQ="⩖",sQ="⩗",lQ="⩛",aQ="Ⓢ",cQ="𝒪",uQ="ℴ",fQ="Ø",dQ="ø",hQ="⊘",pQ="Õ",gQ="õ",mQ="⨶",vQ="⨷",yQ="⊗",bQ="Ö",wQ="ö",xQ="⌽",SQ="‾",_Q="⏞",kQ="⎴",TQ="⏜",CQ="¶",EQ="∥",AQ="∥",$Q="⫳",NQ="⫽",MQ="∂",LQ="∂",OQ="П",RQ="п",PQ="%",IQ=".",DQ="‰",FQ="⊥",zQ="‱",HQ="𝔓",BQ="𝔭",jQ="Φ",WQ="φ",qQ="ϕ",UQ="ℳ",VQ="☎",GQ="Π",KQ="π",YQ="⋔",XQ="ϖ",JQ="ℏ",ZQ="ℎ",QQ="ℏ",eee="⨣",tee="⊞",nee="⨢",ree="+",iee="∔",oee="⨥",see="⩲",lee="±",aee="±",cee="⨦",uee="⨧",fee="±",dee="ℌ",hee="⨕",pee="𝕡",gee="ℙ",mee="£",vee="⪷",yee="⪻",bee="≺",wee="≼",xee="⪷",See="≺",_ee="≼",kee="≺",Tee="⪯",Cee="≼",Eee="≾",Aee="⪯",$ee="⪹",Nee="⪵",Mee="⋨",Lee="⪯",Oee="⪳",Ree="≾",Pee="′",Iee="″",Dee="ℙ",Fee="⪹",zee="⪵",Hee="⋨",Bee="∏",jee="∏",Wee="⌮",qee="⌒",Uee="⌓",Vee="∝",Gee="∝",Kee="∷",Yee="∝",Xee="≾",Jee="⊰",Zee="𝒫",Qee="𝓅",ete="Ψ",tte="ψ",nte=" ",rte="𝔔",ite="𝔮",ote="⨌",ste="𝕢",lte="ℚ",ate="⁗",cte="𝒬",ute="𝓆",fte="ℍ",dte="⨖",hte="?",pte="≟",gte='"',mte='"',vte="⇛",yte="∽̱",bte="Ŕ",wte="ŕ",xte="√",Ste="⦳",_te="⟩",kte="⟫",Tte="⦒",Cte="⦥",Ete="⟩",Ate="»",$te="⥵",Nte="⇥",Mte="⤠",Lte="⤳",Ote="→",Rte="↠",Pte="⇒",Ite="⤞",Dte="↪",Fte="↬",zte="⥅",Hte="⥴",Bte="⤖",jte="↣",Wte="↝",qte="⤚",Ute="⤜",Vte="∶",Gte="ℚ",Kte="⤍",Yte="⤏",Xte="⤐",Jte="❳",Zte="}",Qte="]",ene="⦌",tne="⦎",nne="⦐",rne="Ř",ine="ř",one="Ŗ",sne="ŗ",lne="⌉",ane="}",cne="Р",une="р",fne="⤷",dne="⥩",hne="”",pne="”",gne="↳",mne="ℜ",vne="ℛ",yne="ℜ",bne="ℝ",wne="ℜ",xne="▭",Sne="®",_ne="®",kne="∋",Tne="⇋",Cne="⥯",Ene="⥽",Ane="⌋",$ne="𝔯",Nne="ℜ",Mne="⥤",Lne="⇁",One="⇀",Rne="⥬",Pne="Ρ",Ine="ρ",Dne="ϱ",Fne="⟩",zne="⇥",Hne="→",Bne="→",jne="⇒",Wne="⇄",qne="↣",Une="⌉",Vne="⟧",Gne="⥝",Kne="⥕",Yne="⇂",Xne="⌋",Jne="⇁",Zne="⇀",Qne="⇄",ere="⇌",tre="⇉",nre="↝",rre="↦",ire="⊢",ore="⥛",sre="⋌",lre="⧐",are="⊳",cre="⊵",ure="⥏",fre="⥜",dre="⥔",hre="↾",pre="⥓",gre="⇀",mre="˚",vre="≓",yre="⇄",bre="⇌",wre="‏",xre="⎱",Sre="⎱",_re="⫮",kre="⟭",Tre="⇾",Cre="⟧",Ere="⦆",Are="𝕣",$re="ℝ",Nre="⨮",Mre="⨵",Lre="⥰",Ore=")",Rre="⦔",Pre="⨒",Ire="⇉",Dre="⇛",Fre="›",zre="𝓇",Hre="ℛ",Bre="↱",jre="↱",Wre="]",qre="’",Ure="’",Vre="⋌",Gre="⋊",Kre="▹",Yre="⊵",Xre="▸",Jre="⧎",Zre="⧴",Qre="⥨",eie="℞",tie="Ś",nie="ś",rie="‚",iie="⪸",oie="Š",sie="š",lie="⪼",aie="≻",cie="≽",uie="⪰",fie="⪴",die="Ş",hie="ş",pie="Ŝ",gie="ŝ",mie="⪺",vie="⪶",yie="⋩",bie="⨓",wie="≿",xie="С",Sie="с",_ie="⊡",kie="⋅",Tie="⩦",Cie="⤥",Eie="↘",Aie="⇘",$ie="↘",Nie="§",Mie=";",Lie="⤩",Oie="∖",Rie="∖",Pie="✶",Iie="𝔖",Die="𝔰",Fie="⌢",zie="♯",Hie="Щ",Bie="щ",jie="Ш",Wie="ш",qie="↓",Uie="←",Vie="∣",Gie="∥",Kie="→",Yie="↑",Xie="­",Jie="Σ",Zie="σ",Qie="ς",eoe="ς",toe="∼",noe="⩪",roe="≃",ioe="≃",ooe="⪞",soe="⪠",loe="⪝",aoe="⪟",coe="≆",uoe="⨤",foe="⥲",doe="←",hoe="∘",poe="∖",goe="⨳",moe="⧤",voe="∣",yoe="⌣",boe="⪪",woe="⪬",xoe="⪬︀",Soe="Ь",_oe="ь",koe="⌿",Toe="⧄",Coe="/",Eoe="𝕊",Aoe="𝕤",$oe="♠",Noe="♠",Moe="∥",Loe="⊓",Ooe="⊓︀",Roe="⊔",Poe="⊔︀",Ioe="√",Doe="⊏",Foe="⊑",zoe="⊏",Hoe="⊑",Boe="⊐",joe="⊒",Woe="⊐",qoe="⊒",Uoe="□",Voe="□",Goe="⊓",Koe="⊏",Yoe="⊑",Xoe="⊐",Joe="⊒",Zoe="⊔",Qoe="▪",ese="□",tse="▪",nse="→",rse="𝒮",ise="𝓈",ose="∖",sse="⌣",lse="⋆",ase="⋆",cse="☆",use="★",fse="ϵ",dse="ϕ",hse="¯",pse="⊂",gse="⋐",mse="⪽",vse="⫅",yse="⊆",bse="⫃",wse="⫁",xse="⫋",Sse="⊊",_se="⪿",kse="⥹",Tse="⊂",Cse="⋐",Ese="⊆",Ase="⫅",$se="⊆",Nse="⊊",Mse="⫋",Lse="⫇",Ose="⫕",Rse="⫓",Pse="⪸",Ise="≻",Dse="≽",Fse="≻",zse="⪰",Hse="≽",Bse="≿",jse="⪰",Wse="⪺",qse="⪶",Use="⋩",Vse="≿",Gse="∋",Kse="∑",Yse="∑",Xse="♪",Jse="¹",Zse="²",Qse="³",ele="⊃",tle="⋑",nle="⪾",rle="⫘",ile="⫆",ole="⊇",sle="⫄",lle="⊃",ale="⊇",cle="⟉",ule="⫗",fle="⥻",dle="⫂",hle="⫌",ple="⊋",gle="⫀",mle="⊃",vle="⋑",yle="⊇",ble="⫆",wle="⊋",xle="⫌",Sle="⫈",_le="⫔",kle="⫖",Tle="⤦",Cle="↙",Ele="⇙",Ale="↙",$le="⤪",Nle="ß",Mle=" ",Lle="⌖",Ole="Τ",Rle="τ",Ple="⎴",Ile="Ť",Dle="ť",Fle="Ţ",zle="ţ",Hle="Т",Ble="т",jle="⃛",Wle="⌕",qle="𝔗",Ule="𝔱",Vle="∴",Gle="∴",Kle="∴",Yle="Θ",Xle="θ",Jle="ϑ",Zle="ϑ",Qle="≈",eae="∼",tae="  ",nae=" ",rae=" ",iae="≈",oae="∼",sae="Þ",lae="þ",aae="˜",cae="∼",uae="≃",fae="≅",dae="≈",hae="⨱",pae="⊠",gae="×",mae="⨰",vae="∭",yae="⤨",bae="⌶",wae="⫱",xae="⊤",Sae="𝕋",_ae="𝕥",kae="⫚",Tae="⤩",Cae="‴",Eae="™",Aae="™",$ae="▵",Nae="▿",Mae="◃",Lae="⊴",Oae="≜",Rae="▹",Pae="⊵",Iae="◬",Dae="≜",Fae="⨺",zae="⃛",Hae="⨹",Bae="⧍",jae="⨻",Wae="⏢",qae="𝒯",Uae="𝓉",Vae="Ц",Gae="ц",Kae="Ћ",Yae="ћ",Xae="Ŧ",Jae="ŧ",Zae="≬",Qae="↞",ece="↠",tce="Ú",nce="ú",rce="↑",ice="↟",oce="⇑",sce="⥉",lce="Ў",ace="ў",cce="Ŭ",uce="ŭ",fce="Û",dce="û",hce="У",pce="у",gce="⇅",mce="Ű",vce="ű",yce="⥮",bce="⥾",wce="𝔘",xce="𝔲",Sce="Ù",_ce="ù",kce="⥣",Tce="↿",Cce="↾",Ece="▀",Ace="⌜",$ce="⌜",Nce="⌏",Mce="◸",Lce="Ū",Oce="ū",Rce="¨",Pce="_",Ice="⏟",Dce="⎵",Fce="⏝",zce="⋃",Hce="⊎",Bce="Ų",jce="ų",Wce="𝕌",qce="𝕦",Uce="⤒",Vce="↑",Gce="↑",Kce="⇑",Yce="⇅",Xce="↕",Jce="↕",Zce="⇕",Qce="⥮",eue="↿",tue="↾",nue="⊎",rue="↖",iue="↗",oue="υ",sue="ϒ",lue="ϒ",aue="Υ",cue="υ",uue="↥",fue="⊥",due="⇈",hue="⌝",pue="⌝",gue="⌎",mue="Ů",vue="ů",yue="◹",bue="𝒰",wue="𝓊",xue="⋰",Sue="Ũ",_ue="ũ",kue="▵",Tue="▴",Cue="⇈",Eue="Ü",Aue="ü",$ue="⦧",Nue="⦜",Mue="ϵ",Lue="ϰ",Oue="∅",Rue="ϕ",Pue="ϖ",Iue="∝",Due="↕",Fue="⇕",zue="ϱ",Hue="ς",Bue="⊊︀",jue="⫋︀",Wue="⊋︀",que="⫌︀",Uue="ϑ",Vue="⊲",Gue="⊳",Kue="⫨",Yue="⫫",Xue="⫩",Jue="В",Zue="в",Que="⊢",efe="⊨",tfe="⊩",nfe="⊫",rfe="⫦",ife="⊻",ofe="∨",sfe="⋁",lfe="≚",afe="⋮",cfe="|",ufe="‖",ffe="|",dfe="‖",hfe="∣",pfe="|",gfe="❘",mfe="≀",vfe=" ",yfe="𝔙",bfe="𝔳",wfe="⊲",xfe="⊂⃒",Sfe="⊃⃒",_fe="𝕍",kfe="𝕧",Tfe="∝",Cfe="⊳",Efe="𝒱",Afe="𝓋",$fe="⫋︀",Nfe="⊊︀",Mfe="⫌︀",Lfe="⊋︀",Ofe="⊪",Rfe="⦚",Pfe="Ŵ",Ife="ŵ",Dfe="⩟",Ffe="∧",zfe="⋀",Hfe="≙",Bfe="℘",jfe="𝔚",Wfe="𝔴",qfe="𝕎",Ufe="𝕨",Vfe="℘",Gfe="≀",Kfe="≀",Yfe="𝒲",Xfe="𝓌",Jfe="⋂",Zfe="◯",Qfe="⋃",ede="▽",tde="𝔛",nde="𝔵",rde="⟷",ide="⟺",ode="Ξ",sde="ξ",lde="⟵",ade="⟸",cde="⟼",ude="⋻",fde="⨀",dde="𝕏",hde="𝕩",pde="⨁",gde="⨂",mde="⟶",vde="⟹",yde="𝒳",bde="𝓍",wde="⨆",xde="⨄",Sde="△",_de="⋁",kde="⋀",Tde="Ý",Cde="ý",Ede="Я",Ade="я",$de="Ŷ",Nde="ŷ",Mde="Ы",Lde="ы",Ode="¥",Rde="𝔜",Pde="𝔶",Ide="Ї",Dde="ї",Fde="𝕐",zde="𝕪",Hde="𝒴",Bde="𝓎",jde="Ю",Wde="ю",qde="ÿ",Ude="Ÿ",Vde="Ź",Gde="ź",Kde="Ž",Yde="ž",Xde="З",Jde="з",Zde="Ż",Qde="ż",ehe="ℨ",the="​",nhe="Ζ",rhe="ζ",ihe="𝔷",ohe="ℨ",she="Ж",lhe="ж",ahe="⇝",che="𝕫",uhe="ℤ",fhe="𝒵",dhe="𝓏",hhe="‍",phe="‌",C_={Aacute:ZP,aacute:QP,Abreve:eI,abreve:tI,ac:nI,acd:rI,acE:iI,Acirc:oI,acirc:sI,acute:lI,Acy:aI,acy:cI,AElig:uI,aelig:fI,af:dI,Afr:hI,afr:pI,Agrave:gI,agrave:mI,alefsym:vI,aleph:yI,Alpha:bI,alpha:wI,Amacr:xI,amacr:SI,amalg:_I,amp:kI,AMP:TI,andand:CI,And:EI,and:AI,andd:$I,andslope:NI,andv:MI,ang:LI,ange:OI,angle:RI,angmsdaa:PI,angmsdab:II,angmsdac:DI,angmsdad:FI,angmsdae:zI,angmsdaf:HI,angmsdag:BI,angmsdah:jI,angmsd:WI,angrt:qI,angrtvb:UI,angrtvbd:VI,angsph:GI,angst:KI,angzarr:YI,Aogon:XI,aogon:JI,Aopf:ZI,aopf:QI,apacir:e2,ap:t2,apE:n2,ape:r2,apid:i2,apos:o2,ApplyFunction:s2,approx:l2,approxeq:a2,Aring:c2,aring:u2,Ascr:f2,ascr:d2,Assign:h2,ast:p2,asymp:g2,asympeq:m2,Atilde:v2,atilde:y2,Auml:b2,auml:w2,awconint:x2,awint:S2,backcong:_2,backepsilon:k2,backprime:T2,backsim:C2,backsimeq:E2,Backslash:A2,Barv:$2,barvee:N2,barwed:M2,Barwed:L2,barwedge:O2,bbrk:R2,bbrktbrk:P2,bcong:I2,Bcy:D2,bcy:F2,bdquo:z2,becaus:H2,because:B2,Because:j2,bemptyv:W2,bepsi:q2,bernou:U2,Bernoullis:V2,Beta:G2,beta:K2,beth:Y2,between:X2,Bfr:J2,bfr:Z2,bigcap:Q2,bigcirc:eD,bigcup:tD,bigodot:nD,bigoplus:rD,bigotimes:iD,bigsqcup:oD,bigstar:sD,bigtriangledown:lD,bigtriangleup:aD,biguplus:cD,bigvee:uD,bigwedge:fD,bkarow:dD,blacklozenge:hD,blacksquare:pD,blacktriangle:gD,blacktriangledown:mD,blacktriangleleft:vD,blacktriangleright:yD,blank:bD,blk12:wD,blk14:xD,blk34:SD,block:_D,bne:kD,bnequiv:TD,bNot:CD,bnot:ED,Bopf:AD,bopf:$D,bot:ND,bottom:MD,bowtie:LD,boxbox:OD,boxdl:RD,boxdL:PD,boxDl:ID,boxDL:DD,boxdr:FD,boxdR:zD,boxDr:HD,boxDR:BD,boxh:jD,boxH:WD,boxhd:qD,boxHd:UD,boxhD:VD,boxHD:GD,boxhu:KD,boxHu:YD,boxhU:XD,boxHU:JD,boxminus:ZD,boxplus:QD,boxtimes:eF,boxul:tF,boxuL:nF,boxUl:rF,boxUL:iF,boxur:oF,boxuR:sF,boxUr:lF,boxUR:aF,boxv:cF,boxV:uF,boxvh:fF,boxvH:dF,boxVh:hF,boxVH:pF,boxvl:gF,boxvL:mF,boxVl:vF,boxVL:yF,boxvr:bF,boxvR:wF,boxVr:xF,boxVR:SF,bprime:_F,breve:kF,Breve:TF,brvbar:CF,bscr:EF,Bscr:AF,bsemi:$F,bsim:NF,bsime:MF,bsolb:LF,bsol:OF,bsolhsub:RF,bull:PF,bullet:IF,bump:DF,bumpE:FF,bumpe:zF,Bumpeq:HF,bumpeq:BF,Cacute:jF,cacute:WF,capand:qF,capbrcup:UF,capcap:VF,cap:GF,Cap:KF,capcup:YF,capdot:XF,CapitalDifferentialD:JF,caps:ZF,caret:QF,caron:ez,Cayleys:tz,ccaps:nz,Ccaron:rz,ccaron:iz,Ccedil:oz,ccedil:sz,Ccirc:lz,ccirc:az,Cconint:cz,ccups:uz,ccupssm:fz,Cdot:dz,cdot:hz,cedil:pz,Cedilla:gz,cemptyv:mz,cent:vz,centerdot:yz,CenterDot:bz,cfr:wz,Cfr:xz,CHcy:Sz,chcy:_z,check:kz,checkmark:Tz,Chi:Cz,chi:Ez,circ:Az,circeq:$z,circlearrowleft:Nz,circlearrowright:Mz,circledast:Lz,circledcirc:Oz,circleddash:Rz,CircleDot:Pz,circledR:Iz,circledS:Dz,CircleMinus:Fz,CirclePlus:zz,CircleTimes:Hz,cir:Bz,cirE:jz,cire:Wz,cirfnint:qz,cirmid:Uz,cirscir:Vz,ClockwiseContourIntegral:Gz,CloseCurlyDoubleQuote:Kz,CloseCurlyQuote:Yz,clubs:Xz,clubsuit:Jz,colon:Zz,Colon:Qz,Colone:e3,colone:t3,coloneq:n3,comma:r3,commat:i3,comp:o3,compfn:s3,complement:l3,complexes:a3,cong:c3,congdot:u3,Congruent:f3,conint:d3,Conint:h3,ContourIntegral:p3,copf:g3,Copf:m3,coprod:v3,Coproduct:y3,copy:b3,COPY:w3,copysr:x3,CounterClockwiseContourIntegral:S3,crarr:_3,cross:k3,Cross:T3,Cscr:C3,cscr:E3,csub:A3,csube:$3,csup:N3,csupe:M3,ctdot:L3,cudarrl:O3,cudarrr:R3,cuepr:P3,cuesc:I3,cularr:D3,cularrp:F3,cupbrcap:z3,cupcap:H3,CupCap:B3,cup:j3,Cup:W3,cupcup:q3,cupdot:U3,cupor:V3,cups:G3,curarr:K3,curarrm:Y3,curlyeqprec:X3,curlyeqsucc:J3,curlyvee:Z3,curlywedge:Q3,curren:eH,curvearrowleft:tH,curvearrowright:nH,cuvee:rH,cuwed:iH,cwconint:oH,cwint:sH,cylcty:lH,dagger:aH,Dagger:cH,daleth:uH,darr:fH,Darr:dH,dArr:hH,dash:pH,Dashv:gH,dashv:mH,dbkarow:vH,dblac:yH,Dcaron:bH,dcaron:wH,Dcy:xH,dcy:SH,ddagger:_H,ddarr:kH,DD:TH,dd:CH,DDotrahd:EH,ddotseq:AH,deg:$H,Del:NH,Delta:MH,delta:LH,demptyv:OH,dfisht:RH,Dfr:PH,dfr:IH,dHar:DH,dharl:FH,dharr:zH,DiacriticalAcute:HH,DiacriticalDot:BH,DiacriticalDoubleAcute:jH,DiacriticalGrave:WH,DiacriticalTilde:qH,diam:UH,diamond:VH,Diamond:GH,diamondsuit:KH,diams:YH,die:XH,DifferentialD:JH,digamma:ZH,disin:QH,div:eB,divide:tB,divideontimes:nB,divonx:rB,DJcy:iB,djcy:oB,dlcorn:sB,dlcrop:lB,dollar:aB,Dopf:cB,dopf:uB,Dot:fB,dot:dB,DotDot:hB,doteq:pB,doteqdot:gB,DotEqual:mB,dotminus:vB,dotplus:yB,dotsquare:bB,doublebarwedge:wB,DoubleContourIntegral:xB,DoubleDot:SB,DoubleDownArrow:_B,DoubleLeftArrow:kB,DoubleLeftRightArrow:TB,DoubleLeftTee:CB,DoubleLongLeftArrow:EB,DoubleLongLeftRightArrow:AB,DoubleLongRightArrow:$B,DoubleRightArrow:NB,DoubleRightTee:MB,DoubleUpArrow:LB,DoubleUpDownArrow:OB,DoubleVerticalBar:RB,DownArrowBar:PB,downarrow:IB,DownArrow:DB,Downarrow:FB,DownArrowUpArrow:zB,DownBreve:HB,downdownarrows:BB,downharpoonleft:jB,downharpoonright:WB,DownLeftRightVector:qB,DownLeftTeeVector:UB,DownLeftVectorBar:VB,DownLeftVector:GB,DownRightTeeVector:KB,DownRightVectorBar:YB,DownRightVector:XB,DownTeeArrow:JB,DownTee:ZB,drbkarow:QB,drcorn:ej,drcrop:tj,Dscr:nj,dscr:rj,DScy:ij,dscy:oj,dsol:sj,Dstrok:lj,dstrok:aj,dtdot:cj,dtri:uj,dtrif:fj,duarr:dj,duhar:hj,dwangle:pj,DZcy:gj,dzcy:mj,dzigrarr:vj,Eacute:yj,eacute:bj,easter:wj,Ecaron:xj,ecaron:Sj,Ecirc:_j,ecirc:kj,ecir:Tj,ecolon:Cj,Ecy:Ej,ecy:Aj,eDDot:$j,Edot:Nj,edot:Mj,eDot:Lj,ee:Oj,efDot:Rj,Efr:Pj,efr:Ij,eg:Dj,Egrave:Fj,egrave:zj,egs:Hj,egsdot:Bj,el:jj,Element:Wj,elinters:qj,ell:Uj,els:Vj,elsdot:Gj,Emacr:Kj,emacr:Yj,empty:Xj,emptyset:Jj,EmptySmallSquare:Zj,emptyv:Qj,EmptyVerySmallSquare:e5,emsp13:t5,emsp14:n5,emsp:r5,ENG:i5,eng:o5,ensp:s5,Eogon:l5,eogon:a5,Eopf:c5,eopf:u5,epar:f5,eparsl:d5,eplus:h5,epsi:p5,Epsilon:g5,epsilon:m5,epsiv:v5,eqcirc:y5,eqcolon:b5,eqsim:w5,eqslantgtr:x5,eqslantless:S5,Equal:_5,equals:k5,EqualTilde:T5,equest:C5,Equilibrium:E5,equiv:A5,equivDD:$5,eqvparsl:N5,erarr:M5,erDot:L5,escr:O5,Escr:R5,esdot:P5,Esim:I5,esim:D5,Eta:F5,eta:z5,ETH:H5,eth:B5,Euml:j5,euml:W5,euro:q5,excl:U5,exist:V5,Exists:G5,expectation:K5,exponentiale:Y5,ExponentialE:X5,fallingdotseq:J5,Fcy:Z5,fcy:Q5,female:e8,ffilig:t8,fflig:n8,ffllig:r8,Ffr:i8,ffr:o8,filig:s8,FilledSmallSquare:l8,FilledVerySmallSquare:a8,fjlig:c8,flat:u8,fllig:f8,fltns:d8,fnof:h8,Fopf:p8,fopf:g8,forall:m8,ForAll:v8,fork:y8,forkv:b8,Fouriertrf:w8,fpartint:x8,frac12:S8,frac13:_8,frac14:k8,frac15:T8,frac16:C8,frac18:E8,frac23:A8,frac25:$8,frac34:N8,frac35:M8,frac38:L8,frac45:O8,frac56:R8,frac58:P8,frac78:I8,frasl:D8,frown:F8,fscr:z8,Fscr:H8,gacute:B8,Gamma:j8,gamma:W8,Gammad:q8,gammad:U8,gap:V8,Gbreve:G8,gbreve:K8,Gcedil:Y8,Gcirc:X8,gcirc:J8,Gcy:Z8,gcy:Q8,Gdot:e4,gdot:t4,ge:n4,gE:r4,gEl:i4,gel:o4,geq:s4,geqq:l4,geqslant:a4,gescc:c4,ges:u4,gesdot:f4,gesdoto:d4,gesdotol:h4,gesl:p4,gesles:g4,Gfr:m4,gfr:v4,gg:y4,Gg:b4,ggg:w4,gimel:x4,GJcy:S4,gjcy:_4,gla:k4,gl:T4,glE:C4,glj:E4,gnap:A4,gnapprox:$4,gne:N4,gnE:M4,gneq:L4,gneqq:O4,gnsim:R4,Gopf:P4,gopf:I4,grave:D4,GreaterEqual:F4,GreaterEqualLess:z4,GreaterFullEqual:H4,GreaterGreater:B4,GreaterLess:j4,GreaterSlantEqual:W4,GreaterTilde:q4,Gscr:U4,gscr:V4,gsim:G4,gsime:K4,gsiml:Y4,gtcc:X4,gtcir:J4,gt:Z4,GT:Q4,Gt:eW,gtdot:tW,gtlPar:nW,gtquest:rW,gtrapprox:iW,gtrarr:oW,gtrdot:sW,gtreqless:lW,gtreqqless:aW,gtrless:cW,gtrsim:uW,gvertneqq:fW,gvnE:dW,Hacek:hW,hairsp:pW,half:gW,hamilt:mW,HARDcy:vW,hardcy:yW,harrcir:bW,harr:wW,hArr:xW,harrw:SW,Hat:_W,hbar:kW,Hcirc:TW,hcirc:CW,hearts:EW,heartsuit:AW,hellip:$W,hercon:NW,hfr:MW,Hfr:LW,HilbertSpace:OW,hksearow:RW,hkswarow:PW,hoarr:IW,homtht:DW,hookleftarrow:FW,hookrightarrow:zW,hopf:HW,Hopf:BW,horbar:jW,HorizontalLine:WW,hscr:qW,Hscr:UW,hslash:VW,Hstrok:GW,hstrok:KW,HumpDownHump:YW,HumpEqual:XW,hybull:JW,hyphen:ZW,Iacute:QW,iacute:eq,ic:tq,Icirc:nq,icirc:rq,Icy:iq,icy:oq,Idot:sq,IEcy:lq,iecy:aq,iexcl:cq,iff:uq,ifr:fq,Ifr:dq,Igrave:hq,igrave:pq,ii:gq,iiiint:mq,iiint:vq,iinfin:yq,iiota:bq,IJlig:wq,ijlig:xq,Imacr:Sq,imacr:_q,image:kq,ImaginaryI:Tq,imagline:Cq,imagpart:Eq,imath:Aq,Im:$q,imof:Nq,imped:Mq,Implies:Lq,incare:Oq,in:"∈",infin:Rq,infintie:Pq,inodot:Iq,intcal:Dq,int:Fq,Int:zq,integers:Hq,Integral:Bq,intercal:jq,Intersection:Wq,intlarhk:qq,intprod:Uq,InvisibleComma:Vq,InvisibleTimes:Gq,IOcy:Kq,iocy:Yq,Iogon:Xq,iogon:Jq,Iopf:Zq,iopf:Qq,Iota:eU,iota:tU,iprod:nU,iquest:rU,iscr:iU,Iscr:oU,isin:sU,isindot:lU,isinE:aU,isins:cU,isinsv:uU,isinv:fU,it:dU,Itilde:hU,itilde:pU,Iukcy:gU,iukcy:mU,Iuml:vU,iuml:yU,Jcirc:bU,jcirc:wU,Jcy:xU,jcy:SU,Jfr:_U,jfr:kU,jmath:TU,Jopf:CU,jopf:EU,Jscr:AU,jscr:$U,Jsercy:NU,jsercy:MU,Jukcy:LU,jukcy:OU,Kappa:RU,kappa:PU,kappav:IU,Kcedil:DU,kcedil:FU,Kcy:zU,kcy:HU,Kfr:BU,kfr:jU,kgreen:WU,KHcy:qU,khcy:UU,KJcy:VU,kjcy:GU,Kopf:KU,kopf:YU,Kscr:XU,kscr:JU,lAarr:ZU,Lacute:QU,lacute:e6,laemptyv:t6,lagran:n6,Lambda:r6,lambda:i6,lang:o6,Lang:s6,langd:l6,langle:a6,lap:c6,Laplacetrf:u6,laquo:f6,larrb:d6,larrbfs:h6,larr:p6,Larr:g6,lArr:m6,larrfs:v6,larrhk:y6,larrlp:b6,larrpl:w6,larrsim:x6,larrtl:S6,latail:_6,lAtail:k6,lat:T6,late:C6,lates:E6,lbarr:A6,lBarr:$6,lbbrk:N6,lbrace:M6,lbrack:L6,lbrke:O6,lbrksld:R6,lbrkslu:P6,Lcaron:I6,lcaron:D6,Lcedil:F6,lcedil:z6,lceil:H6,lcub:B6,Lcy:j6,lcy:W6,ldca:q6,ldquo:U6,ldquor:V6,ldrdhar:G6,ldrushar:K6,ldsh:Y6,le:X6,lE:J6,LeftAngleBracket:Z6,LeftArrowBar:Q6,leftarrow:eV,LeftArrow:tV,Leftarrow:nV,LeftArrowRightArrow:rV,leftarrowtail:iV,LeftCeiling:oV,LeftDoubleBracket:sV,LeftDownTeeVector:lV,LeftDownVectorBar:aV,LeftDownVector:cV,LeftFloor:uV,leftharpoondown:fV,leftharpoonup:dV,leftleftarrows:hV,leftrightarrow:pV,LeftRightArrow:gV,Leftrightarrow:mV,leftrightarrows:vV,leftrightharpoons:yV,leftrightsquigarrow:bV,LeftRightVector:wV,LeftTeeArrow:xV,LeftTee:SV,LeftTeeVector:_V,leftthreetimes:kV,LeftTriangleBar:TV,LeftTriangle:CV,LeftTriangleEqual:EV,LeftUpDownVector:AV,LeftUpTeeVector:$V,LeftUpVectorBar:NV,LeftUpVector:MV,LeftVectorBar:LV,LeftVector:OV,lEg:RV,leg:PV,leq:IV,leqq:DV,leqslant:FV,lescc:zV,les:HV,lesdot:BV,lesdoto:jV,lesdotor:WV,lesg:qV,lesges:UV,lessapprox:VV,lessdot:GV,lesseqgtr:KV,lesseqqgtr:YV,LessEqualGreater:XV,LessFullEqual:JV,LessGreater:ZV,lessgtr:QV,LessLess:e9,lesssim:t9,LessSlantEqual:n9,LessTilde:r9,lfisht:i9,lfloor:o9,Lfr:s9,lfr:l9,lg:a9,lgE:c9,lHar:u9,lhard:f9,lharu:d9,lharul:h9,lhblk:p9,LJcy:g9,ljcy:m9,llarr:v9,ll:y9,Ll:b9,llcorner:w9,Lleftarrow:x9,llhard:S9,lltri:_9,Lmidot:k9,lmidot:T9,lmoustache:C9,lmoust:E9,lnap:A9,lnapprox:$9,lne:N9,lnE:M9,lneq:L9,lneqq:O9,lnsim:R9,loang:P9,loarr:I9,lobrk:D9,longleftarrow:F9,LongLeftArrow:z9,Longleftarrow:H9,longleftrightarrow:B9,LongLeftRightArrow:j9,Longleftrightarrow:W9,longmapsto:q9,longrightarrow:U9,LongRightArrow:V9,Longrightarrow:G9,looparrowleft:K9,looparrowright:Y9,lopar:X9,Lopf:J9,lopf:Z9,loplus:Q9,lotimes:eG,lowast:tG,lowbar:nG,LowerLeftArrow:rG,LowerRightArrow:iG,loz:oG,lozenge:sG,lozf:lG,lpar:aG,lparlt:cG,lrarr:uG,lrcorner:fG,lrhar:dG,lrhard:hG,lrm:pG,lrtri:gG,lsaquo:mG,lscr:vG,Lscr:yG,lsh:bG,Lsh:wG,lsim:xG,lsime:SG,lsimg:_G,lsqb:kG,lsquo:TG,lsquor:CG,Lstrok:EG,lstrok:AG,ltcc:$G,ltcir:NG,lt:MG,LT:LG,Lt:OG,ltdot:RG,lthree:PG,ltimes:IG,ltlarr:DG,ltquest:FG,ltri:zG,ltrie:HG,ltrif:BG,ltrPar:jG,lurdshar:WG,luruhar:qG,lvertneqq:UG,lvnE:VG,macr:GG,male:KG,malt:YG,maltese:XG,Map:"⤅",map:JG,mapsto:ZG,mapstodown:QG,mapstoleft:eK,mapstoup:tK,marker:nK,mcomma:rK,Mcy:iK,mcy:oK,mdash:sK,mDDot:lK,measuredangle:aK,MediumSpace:cK,Mellintrf:uK,Mfr:fK,mfr:dK,mho:hK,micro:pK,midast:gK,midcir:mK,mid:vK,middot:yK,minusb:bK,minus:wK,minusd:xK,minusdu:SK,MinusPlus:_K,mlcp:kK,mldr:TK,mnplus:CK,models:EK,Mopf:AK,mopf:$K,mp:NK,mscr:MK,Mscr:LK,mstpos:OK,Mu:RK,mu:PK,multimap:IK,mumap:DK,nabla:FK,Nacute:zK,nacute:HK,nang:BK,nap:jK,napE:WK,napid:qK,napos:UK,napprox:VK,natural:GK,naturals:KK,natur:YK,nbsp:XK,nbump:JK,nbumpe:ZK,ncap:QK,Ncaron:e7,ncaron:t7,Ncedil:n7,ncedil:r7,ncong:i7,ncongdot:o7,ncup:s7,Ncy:l7,ncy:a7,ndash:c7,nearhk:u7,nearr:f7,neArr:d7,nearrow:h7,ne:p7,nedot:g7,NegativeMediumSpace:m7,NegativeThickSpace:v7,NegativeThinSpace:y7,NegativeVeryThinSpace:b7,nequiv:w7,nesear:x7,nesim:S7,NestedGreaterGreater:_7,NestedLessLess:k7,NewLine:T7,nexist:C7,nexists:E7,Nfr:A7,nfr:$7,ngE:N7,nge:M7,ngeq:L7,ngeqq:O7,ngeqslant:R7,nges:P7,nGg:I7,ngsim:D7,nGt:F7,ngt:z7,ngtr:H7,nGtv:B7,nharr:j7,nhArr:W7,nhpar:q7,ni:U7,nis:V7,nisd:G7,niv:K7,NJcy:Y7,njcy:X7,nlarr:J7,nlArr:Z7,nldr:Q7,nlE:eY,nle:tY,nleftarrow:nY,nLeftarrow:rY,nleftrightarrow:iY,nLeftrightarrow:oY,nleq:sY,nleqq:lY,nleqslant:aY,nles:cY,nless:uY,nLl:fY,nlsim:dY,nLt:hY,nlt:pY,nltri:gY,nltrie:mY,nLtv:vY,nmid:yY,NoBreak:bY,NonBreakingSpace:wY,nopf:xY,Nopf:SY,Not:_Y,not:kY,NotCongruent:TY,NotCupCap:CY,NotDoubleVerticalBar:EY,NotElement:AY,NotEqual:$Y,NotEqualTilde:NY,NotExists:MY,NotGreater:LY,NotGreaterEqual:OY,NotGreaterFullEqual:RY,NotGreaterGreater:PY,NotGreaterLess:IY,NotGreaterSlantEqual:DY,NotGreaterTilde:FY,NotHumpDownHump:zY,NotHumpEqual:HY,notin:BY,notindot:jY,notinE:WY,notinva:qY,notinvb:UY,notinvc:VY,NotLeftTriangleBar:GY,NotLeftTriangle:KY,NotLeftTriangleEqual:YY,NotLess:XY,NotLessEqual:JY,NotLessGreater:ZY,NotLessLess:QY,NotLessSlantEqual:eX,NotLessTilde:tX,NotNestedGreaterGreater:nX,NotNestedLessLess:rX,notni:iX,notniva:oX,notnivb:sX,notnivc:lX,NotPrecedes:aX,NotPrecedesEqual:cX,NotPrecedesSlantEqual:uX,NotReverseElement:fX,NotRightTriangleBar:dX,NotRightTriangle:hX,NotRightTriangleEqual:pX,NotSquareSubset:gX,NotSquareSubsetEqual:mX,NotSquareSuperset:vX,NotSquareSupersetEqual:yX,NotSubset:bX,NotSubsetEqual:wX,NotSucceeds:xX,NotSucceedsEqual:SX,NotSucceedsSlantEqual:_X,NotSucceedsTilde:kX,NotSuperset:TX,NotSupersetEqual:CX,NotTilde:EX,NotTildeEqual:AX,NotTildeFullEqual:$X,NotTildeTilde:NX,NotVerticalBar:MX,nparallel:LX,npar:OX,nparsl:RX,npart:PX,npolint:IX,npr:DX,nprcue:FX,nprec:zX,npreceq:HX,npre:BX,nrarrc:jX,nrarr:WX,nrArr:qX,nrarrw:UX,nrightarrow:VX,nRightarrow:GX,nrtri:KX,nrtrie:YX,nsc:XX,nsccue:JX,nsce:ZX,Nscr:QX,nscr:eJ,nshortmid:tJ,nshortparallel:nJ,nsim:rJ,nsime:iJ,nsimeq:oJ,nsmid:sJ,nspar:lJ,nsqsube:aJ,nsqsupe:cJ,nsub:uJ,nsubE:fJ,nsube:dJ,nsubset:hJ,nsubseteq:pJ,nsubseteqq:gJ,nsucc:mJ,nsucceq:vJ,nsup:yJ,nsupE:bJ,nsupe:wJ,nsupset:xJ,nsupseteq:SJ,nsupseteqq:_J,ntgl:kJ,Ntilde:TJ,ntilde:CJ,ntlg:EJ,ntriangleleft:AJ,ntrianglelefteq:$J,ntriangleright:NJ,ntrianglerighteq:MJ,Nu:LJ,nu:OJ,num:RJ,numero:PJ,numsp:IJ,nvap:DJ,nvdash:FJ,nvDash:zJ,nVdash:HJ,nVDash:BJ,nvge:jJ,nvgt:WJ,nvHarr:qJ,nvinfin:UJ,nvlArr:VJ,nvle:GJ,nvlt:KJ,nvltrie:YJ,nvrArr:XJ,nvrtrie:JJ,nvsim:ZJ,nwarhk:QJ,nwarr:eZ,nwArr:tZ,nwarrow:nZ,nwnear:rZ,Oacute:iZ,oacute:oZ,oast:sZ,Ocirc:lZ,ocirc:aZ,ocir:cZ,Ocy:uZ,ocy:fZ,odash:dZ,Odblac:hZ,odblac:pZ,odiv:gZ,odot:mZ,odsold:vZ,OElig:yZ,oelig:bZ,ofcir:wZ,Ofr:xZ,ofr:SZ,ogon:_Z,Ograve:kZ,ograve:TZ,ogt:CZ,ohbar:EZ,ohm:AZ,oint:$Z,olarr:NZ,olcir:MZ,olcross:LZ,oline:OZ,olt:RZ,Omacr:PZ,omacr:IZ,Omega:DZ,omega:FZ,Omicron:zZ,omicron:HZ,omid:BZ,ominus:jZ,Oopf:WZ,oopf:qZ,opar:UZ,OpenCurlyDoubleQuote:VZ,OpenCurlyQuote:GZ,operp:KZ,oplus:YZ,orarr:XZ,Or:JZ,or:ZZ,ord:QZ,order:eQ,orderof:tQ,ordf:nQ,ordm:rQ,origof:iQ,oror:oQ,orslope:sQ,orv:lQ,oS:aQ,Oscr:cQ,oscr:uQ,Oslash:fQ,oslash:dQ,osol:hQ,Otilde:pQ,otilde:gQ,otimesas:mQ,Otimes:vQ,otimes:yQ,Ouml:bQ,ouml:wQ,ovbar:xQ,OverBar:SQ,OverBrace:_Q,OverBracket:kQ,OverParenthesis:TQ,para:CQ,parallel:EQ,par:AQ,parsim:$Q,parsl:NQ,part:MQ,PartialD:LQ,Pcy:OQ,pcy:RQ,percnt:PQ,period:IQ,permil:DQ,perp:FQ,pertenk:zQ,Pfr:HQ,pfr:BQ,Phi:jQ,phi:WQ,phiv:qQ,phmmat:UQ,phone:VQ,Pi:GQ,pi:KQ,pitchfork:YQ,piv:XQ,planck:JQ,planckh:ZQ,plankv:QQ,plusacir:eee,plusb:tee,pluscir:nee,plus:ree,plusdo:iee,plusdu:oee,pluse:see,PlusMinus:lee,plusmn:aee,plussim:cee,plustwo:uee,pm:fee,Poincareplane:dee,pointint:hee,popf:pee,Popf:gee,pound:mee,prap:vee,Pr:yee,pr:bee,prcue:wee,precapprox:xee,prec:See,preccurlyeq:_ee,Precedes:kee,PrecedesEqual:Tee,PrecedesSlantEqual:Cee,PrecedesTilde:Eee,preceq:Aee,precnapprox:$ee,precneqq:Nee,precnsim:Mee,pre:Lee,prE:Oee,precsim:Ree,prime:Pee,Prime:Iee,primes:Dee,prnap:Fee,prnE:zee,prnsim:Hee,prod:Bee,Product:jee,profalar:Wee,profline:qee,profsurf:Uee,prop:Vee,Proportional:Gee,Proportion:Kee,propto:Yee,prsim:Xee,prurel:Jee,Pscr:Zee,pscr:Qee,Psi:ete,psi:tte,puncsp:nte,Qfr:rte,qfr:ite,qint:ote,qopf:ste,Qopf:lte,qprime:ate,Qscr:cte,qscr:ute,quaternions:fte,quatint:dte,quest:hte,questeq:pte,quot:gte,QUOT:mte,rAarr:vte,race:yte,Racute:bte,racute:wte,radic:xte,raemptyv:Ste,rang:_te,Rang:kte,rangd:Tte,range:Cte,rangle:Ete,raquo:Ate,rarrap:$te,rarrb:Nte,rarrbfs:Mte,rarrc:Lte,rarr:Ote,Rarr:Rte,rArr:Pte,rarrfs:Ite,rarrhk:Dte,rarrlp:Fte,rarrpl:zte,rarrsim:Hte,Rarrtl:Bte,rarrtl:jte,rarrw:Wte,ratail:qte,rAtail:Ute,ratio:Vte,rationals:Gte,rbarr:Kte,rBarr:Yte,RBarr:Xte,rbbrk:Jte,rbrace:Zte,rbrack:Qte,rbrke:ene,rbrksld:tne,rbrkslu:nne,Rcaron:rne,rcaron:ine,Rcedil:one,rcedil:sne,rceil:lne,rcub:ane,Rcy:cne,rcy:une,rdca:fne,rdldhar:dne,rdquo:hne,rdquor:pne,rdsh:gne,real:mne,realine:vne,realpart:yne,reals:bne,Re:wne,rect:xne,reg:Sne,REG:_ne,ReverseElement:kne,ReverseEquilibrium:Tne,ReverseUpEquilibrium:Cne,rfisht:Ene,rfloor:Ane,rfr:$ne,Rfr:Nne,rHar:Mne,rhard:Lne,rharu:One,rharul:Rne,Rho:Pne,rho:Ine,rhov:Dne,RightAngleBracket:Fne,RightArrowBar:zne,rightarrow:Hne,RightArrow:Bne,Rightarrow:jne,RightArrowLeftArrow:Wne,rightarrowtail:qne,RightCeiling:Une,RightDoubleBracket:Vne,RightDownTeeVector:Gne,RightDownVectorBar:Kne,RightDownVector:Yne,RightFloor:Xne,rightharpoondown:Jne,rightharpoonup:Zne,rightleftarrows:Qne,rightleftharpoons:ere,rightrightarrows:tre,rightsquigarrow:nre,RightTeeArrow:rre,RightTee:ire,RightTeeVector:ore,rightthreetimes:sre,RightTriangleBar:lre,RightTriangle:are,RightTriangleEqual:cre,RightUpDownVector:ure,RightUpTeeVector:fre,RightUpVectorBar:dre,RightUpVector:hre,RightVectorBar:pre,RightVector:gre,ring:mre,risingdotseq:vre,rlarr:yre,rlhar:bre,rlm:wre,rmoustache:xre,rmoust:Sre,rnmid:_re,roang:kre,roarr:Tre,robrk:Cre,ropar:Ere,ropf:Are,Ropf:$re,roplus:Nre,rotimes:Mre,RoundImplies:Lre,rpar:Ore,rpargt:Rre,rppolint:Pre,rrarr:Ire,Rrightarrow:Dre,rsaquo:Fre,rscr:zre,Rscr:Hre,rsh:Bre,Rsh:jre,rsqb:Wre,rsquo:qre,rsquor:Ure,rthree:Vre,rtimes:Gre,rtri:Kre,rtrie:Yre,rtrif:Xre,rtriltri:Jre,RuleDelayed:Zre,ruluhar:Qre,rx:eie,Sacute:tie,sacute:nie,sbquo:rie,scap:iie,Scaron:oie,scaron:sie,Sc:lie,sc:aie,sccue:cie,sce:uie,scE:fie,Scedil:die,scedil:hie,Scirc:pie,scirc:gie,scnap:mie,scnE:vie,scnsim:yie,scpolint:bie,scsim:wie,Scy:xie,scy:Sie,sdotb:_ie,sdot:kie,sdote:Tie,searhk:Cie,searr:Eie,seArr:Aie,searrow:$ie,sect:Nie,semi:Mie,seswar:Lie,setminus:Oie,setmn:Rie,sext:Pie,Sfr:Iie,sfr:Die,sfrown:Fie,sharp:zie,SHCHcy:Hie,shchcy:Bie,SHcy:jie,shcy:Wie,ShortDownArrow:qie,ShortLeftArrow:Uie,shortmid:Vie,shortparallel:Gie,ShortRightArrow:Kie,ShortUpArrow:Yie,shy:Xie,Sigma:Jie,sigma:Zie,sigmaf:Qie,sigmav:eoe,sim:toe,simdot:noe,sime:roe,simeq:ioe,simg:ooe,simgE:soe,siml:loe,simlE:aoe,simne:coe,simplus:uoe,simrarr:foe,slarr:doe,SmallCircle:hoe,smallsetminus:poe,smashp:goe,smeparsl:moe,smid:voe,smile:yoe,smt:boe,smte:woe,smtes:xoe,SOFTcy:Soe,softcy:_oe,solbar:koe,solb:Toe,sol:Coe,Sopf:Eoe,sopf:Aoe,spades:$oe,spadesuit:Noe,spar:Moe,sqcap:Loe,sqcaps:Ooe,sqcup:Roe,sqcups:Poe,Sqrt:Ioe,sqsub:Doe,sqsube:Foe,sqsubset:zoe,sqsubseteq:Hoe,sqsup:Boe,sqsupe:joe,sqsupset:Woe,sqsupseteq:qoe,square:Uoe,Square:Voe,SquareIntersection:Goe,SquareSubset:Koe,SquareSubsetEqual:Yoe,SquareSuperset:Xoe,SquareSupersetEqual:Joe,SquareUnion:Zoe,squarf:Qoe,squ:ese,squf:tse,srarr:nse,Sscr:rse,sscr:ise,ssetmn:ose,ssmile:sse,sstarf:lse,Star:ase,star:cse,starf:use,straightepsilon:fse,straightphi:dse,strns:hse,sub:pse,Sub:gse,subdot:mse,subE:vse,sube:yse,subedot:bse,submult:wse,subnE:xse,subne:Sse,subplus:_se,subrarr:kse,subset:Tse,Subset:Cse,subseteq:Ese,subseteqq:Ase,SubsetEqual:$se,subsetneq:Nse,subsetneqq:Mse,subsim:Lse,subsub:Ose,subsup:Rse,succapprox:Pse,succ:Ise,succcurlyeq:Dse,Succeeds:Fse,SucceedsEqual:zse,SucceedsSlantEqual:Hse,SucceedsTilde:Bse,succeq:jse,succnapprox:Wse,succneqq:qse,succnsim:Use,succsim:Vse,SuchThat:Gse,sum:Kse,Sum:Yse,sung:Xse,sup1:Jse,sup2:Zse,sup3:Qse,sup:ele,Sup:tle,supdot:nle,supdsub:rle,supE:ile,supe:ole,supedot:sle,Superset:lle,SupersetEqual:ale,suphsol:cle,suphsub:ule,suplarr:fle,supmult:dle,supnE:hle,supne:ple,supplus:gle,supset:mle,Supset:vle,supseteq:yle,supseteqq:ble,supsetneq:wle,supsetneqq:xle,supsim:Sle,supsub:_le,supsup:kle,swarhk:Tle,swarr:Cle,swArr:Ele,swarrow:Ale,swnwar:$le,szlig:Nle,Tab:Mle,target:Lle,Tau:Ole,tau:Rle,tbrk:Ple,Tcaron:Ile,tcaron:Dle,Tcedil:Fle,tcedil:zle,Tcy:Hle,tcy:Ble,tdot:jle,telrec:Wle,Tfr:qle,tfr:Ule,there4:Vle,therefore:Gle,Therefore:Kle,Theta:Yle,theta:Xle,thetasym:Jle,thetav:Zle,thickapprox:Qle,thicksim:eae,ThickSpace:tae,ThinSpace:nae,thinsp:rae,thkap:iae,thksim:oae,THORN:sae,thorn:lae,tilde:aae,Tilde:cae,TildeEqual:uae,TildeFullEqual:fae,TildeTilde:dae,timesbar:hae,timesb:pae,times:gae,timesd:mae,tint:vae,toea:yae,topbot:bae,topcir:wae,top:xae,Topf:Sae,topf:_ae,topfork:kae,tosa:Tae,tprime:Cae,trade:Eae,TRADE:Aae,triangle:$ae,triangledown:Nae,triangleleft:Mae,trianglelefteq:Lae,triangleq:Oae,triangleright:Rae,trianglerighteq:Pae,tridot:Iae,trie:Dae,triminus:Fae,TripleDot:zae,triplus:Hae,trisb:Bae,tritime:jae,trpezium:Wae,Tscr:qae,tscr:Uae,TScy:Vae,tscy:Gae,TSHcy:Kae,tshcy:Yae,Tstrok:Xae,tstrok:Jae,twixt:Zae,twoheadleftarrow:Qae,twoheadrightarrow:ece,Uacute:tce,uacute:nce,uarr:rce,Uarr:ice,uArr:oce,Uarrocir:sce,Ubrcy:lce,ubrcy:ace,Ubreve:cce,ubreve:uce,Ucirc:fce,ucirc:dce,Ucy:hce,ucy:pce,udarr:gce,Udblac:mce,udblac:vce,udhar:yce,ufisht:bce,Ufr:wce,ufr:xce,Ugrave:Sce,ugrave:_ce,uHar:kce,uharl:Tce,uharr:Cce,uhblk:Ece,ulcorn:Ace,ulcorner:$ce,ulcrop:Nce,ultri:Mce,Umacr:Lce,umacr:Oce,uml:Rce,UnderBar:Pce,UnderBrace:Ice,UnderBracket:Dce,UnderParenthesis:Fce,Union:zce,UnionPlus:Hce,Uogon:Bce,uogon:jce,Uopf:Wce,uopf:qce,UpArrowBar:Uce,uparrow:Vce,UpArrow:Gce,Uparrow:Kce,UpArrowDownArrow:Yce,updownarrow:Xce,UpDownArrow:Jce,Updownarrow:Zce,UpEquilibrium:Qce,upharpoonleft:eue,upharpoonright:tue,uplus:nue,UpperLeftArrow:rue,UpperRightArrow:iue,upsi:oue,Upsi:sue,upsih:lue,Upsilon:aue,upsilon:cue,UpTeeArrow:uue,UpTee:fue,upuparrows:due,urcorn:hue,urcorner:pue,urcrop:gue,Uring:mue,uring:vue,urtri:yue,Uscr:bue,uscr:wue,utdot:xue,Utilde:Sue,utilde:_ue,utri:kue,utrif:Tue,uuarr:Cue,Uuml:Eue,uuml:Aue,uwangle:$ue,vangrt:Nue,varepsilon:Mue,varkappa:Lue,varnothing:Oue,varphi:Rue,varpi:Pue,varpropto:Iue,varr:Due,vArr:Fue,varrho:zue,varsigma:Hue,varsubsetneq:Bue,varsubsetneqq:jue,varsupsetneq:Wue,varsupsetneqq:que,vartheta:Uue,vartriangleleft:Vue,vartriangleright:Gue,vBar:Kue,Vbar:Yue,vBarv:Xue,Vcy:Jue,vcy:Zue,vdash:Que,vDash:efe,Vdash:tfe,VDash:nfe,Vdashl:rfe,veebar:ife,vee:ofe,Vee:sfe,veeeq:lfe,vellip:afe,verbar:cfe,Verbar:ufe,vert:ffe,Vert:dfe,VerticalBar:hfe,VerticalLine:pfe,VerticalSeparator:gfe,VerticalTilde:mfe,VeryThinSpace:vfe,Vfr:yfe,vfr:bfe,vltri:wfe,vnsub:xfe,vnsup:Sfe,Vopf:_fe,vopf:kfe,vprop:Tfe,vrtri:Cfe,Vscr:Efe,vscr:Afe,vsubnE:$fe,vsubne:Nfe,vsupnE:Mfe,vsupne:Lfe,Vvdash:Ofe,vzigzag:Rfe,Wcirc:Pfe,wcirc:Ife,wedbar:Dfe,wedge:Ffe,Wedge:zfe,wedgeq:Hfe,weierp:Bfe,Wfr:jfe,wfr:Wfe,Wopf:qfe,wopf:Ufe,wp:Vfe,wr:Gfe,wreath:Kfe,Wscr:Yfe,wscr:Xfe,xcap:Jfe,xcirc:Zfe,xcup:Qfe,xdtri:ede,Xfr:tde,xfr:nde,xharr:rde,xhArr:ide,Xi:ode,xi:sde,xlarr:lde,xlArr:ade,xmap:cde,xnis:ude,xodot:fde,Xopf:dde,xopf:hde,xoplus:pde,xotime:gde,xrarr:mde,xrArr:vde,Xscr:yde,xscr:bde,xsqcup:wde,xuplus:xde,xutri:Sde,xvee:_de,xwedge:kde,Yacute:Tde,yacute:Cde,YAcy:Ede,yacy:Ade,Ycirc:$de,ycirc:Nde,Ycy:Mde,ycy:Lde,yen:Ode,Yfr:Rde,yfr:Pde,YIcy:Ide,yicy:Dde,Yopf:Fde,yopf:zde,Yscr:Hde,yscr:Bde,YUcy:jde,yucy:Wde,yuml:qde,Yuml:Ude,Zacute:Vde,zacute:Gde,Zcaron:Kde,zcaron:Yde,Zcy:Xde,zcy:Jde,Zdot:Zde,zdot:Qde,zeetrf:ehe,ZeroWidthSpace:the,Zeta:nhe,zeta:rhe,zfr:ihe,Zfr:ohe,ZHcy:she,zhcy:lhe,zigrarr:ahe,zopf:che,Zopf:uhe,Zscr:fhe,zscr:dhe,zwj:hhe,zwnj:phe},ghe="Á",mhe="á",vhe="Â",yhe="â",bhe="´",whe="Æ",xhe="æ",She="À",_he="à",khe="&",The="&",Che="Å",Ehe="å",Ahe="Ã",$he="ã",Nhe="Ä",Mhe="ä",Lhe="¦",Ohe="Ç",Rhe="ç",Phe="¸",Ihe="¢",Dhe="©",Fhe="©",zhe="¤",Hhe="°",Bhe="÷",jhe="É",Whe="é",qhe="Ê",Uhe="ê",Vhe="È",Ghe="è",Khe="Ð",Yhe="ð",Xhe="Ë",Jhe="ë",Zhe="½",Qhe="¼",epe="¾",tpe=">",npe=">",rpe="Í",ipe="í",ope="Î",spe="î",lpe="¡",ape="Ì",cpe="ì",upe="¿",fpe="Ï",dpe="ï",hpe="«",ppe="<",gpe="<",mpe="¯",vpe="µ",ype="·",bpe=" ",wpe="¬",xpe="Ñ",Spe="ñ",_pe="Ó",kpe="ó",Tpe="Ô",Cpe="ô",Epe="Ò",Ape="ò",$pe="ª",Npe="º",Mpe="Ø",Lpe="ø",Ope="Õ",Rpe="õ",Ppe="Ö",Ipe="ö",Dpe="¶",Fpe="±",zpe="£",Hpe='"',Bpe='"',jpe="»",Wpe="®",qpe="®",Upe="§",Vpe="­",Gpe="¹",Kpe="²",Ype="³",Xpe="ß",Jpe="Þ",Zpe="þ",Qpe="×",ege="Ú",tge="ú",nge="Û",rge="û",ige="Ù",oge="ù",sge="¨",lge="Ü",age="ü",cge="Ý",uge="ý",fge="¥",dge="ÿ",hge={Aacute:ghe,aacute:mhe,Acirc:vhe,acirc:yhe,acute:bhe,AElig:whe,aelig:xhe,Agrave:She,agrave:_he,amp:khe,AMP:The,Aring:Che,aring:Ehe,Atilde:Ahe,atilde:$he,Auml:Nhe,auml:Mhe,brvbar:Lhe,Ccedil:Ohe,ccedil:Rhe,cedil:Phe,cent:Ihe,copy:Dhe,COPY:Fhe,curren:zhe,deg:Hhe,divide:Bhe,Eacute:jhe,eacute:Whe,Ecirc:qhe,ecirc:Uhe,Egrave:Vhe,egrave:Ghe,ETH:Khe,eth:Yhe,Euml:Xhe,euml:Jhe,frac12:Zhe,frac14:Qhe,frac34:epe,gt:tpe,GT:npe,Iacute:rpe,iacute:ipe,Icirc:ope,icirc:spe,iexcl:lpe,Igrave:ape,igrave:cpe,iquest:upe,Iuml:fpe,iuml:dpe,laquo:hpe,lt:ppe,LT:gpe,macr:mpe,micro:vpe,middot:ype,nbsp:bpe,not:wpe,Ntilde:xpe,ntilde:Spe,Oacute:_pe,oacute:kpe,Ocirc:Tpe,ocirc:Cpe,Ograve:Epe,ograve:Ape,ordf:$pe,ordm:Npe,Oslash:Mpe,oslash:Lpe,Otilde:Ope,otilde:Rpe,Ouml:Ppe,ouml:Ipe,para:Dpe,plusmn:Fpe,pound:zpe,quot:Hpe,QUOT:Bpe,raquo:jpe,reg:Wpe,REG:qpe,sect:Upe,shy:Vpe,sup1:Gpe,sup2:Kpe,sup3:Ype,szlig:Xpe,THORN:Jpe,thorn:Zpe,times:Qpe,Uacute:ege,uacute:tge,Ucirc:nge,ucirc:rge,Ugrave:ige,ugrave:oge,uml:sge,Uuml:lge,uuml:age,Yacute:cge,yacute:uge,yen:fge,yuml:dge},pge="&",gge="'",mge=">",vge="<",yge='"',E_={amp:pge,apos:gge,gt:mge,lt:vge,quot:yge};var Qs={};const bge={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var Lb;function wge(){if(Lb)return Qs;Lb=1;var e=Qs&&Qs.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Qs,"__esModule",{value:!0});var t=e(bge),n=String.fromCodePoint||function(o){var l="";return o>65535&&(o-=65536,l+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),l+=String.fromCharCode(o),l};function i(o){return o>=55296&&o<=57343||o>1114111?"�":(o in t.default&&(o=t.default[o]),n(o))}return Qs.default=i,Qs}var Ob;function Rb(){if(Ob)return Ir;Ob=1;var e=Ir&&Ir.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.decodeHTML=Ir.decodeHTMLStrict=Ir.decodeXML=void 0;var t=e(C_),n=e(hge),i=e(E_),o=e(wge()),l=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Ir.decodeXML=u(i.default),Ir.decodeHTMLStrict=u(t.default);function u(p){var g=h(p);return function(v){return String(v).replace(l,g)}}var f=function(p,g){return p<g?1:-1};Ir.decodeHTML=(function(){for(var p=Object.keys(n.default).sort(f),g=Object.keys(t.default).sort(f),v=0,y=0;v<g.length;v++)p[y]===g[v]?(g[v]+=";?",y++):g[v]+=";";var w=new RegExp("&(?:"+g.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),$=h(t.default);function _(C){return C.substr(-1)!==";"&&(C+=";"),$(C)}return function(C){return String(C).replace(w,_)}})();function h(p){return function(v){if(v.charAt(1)==="#"){var y=v.charAt(2);return y==="X"||y==="x"?o.default(parseInt(v.substr(3),16)):o.default(parseInt(v.substr(2),10))}return p[v.slice(1,-1)]||v}}return Ir}var Pn={},Pb;function Ib(){if(Pb)return Pn;Pb=1;var e=Pn&&Pn.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.escapeUTF8=Pn.escape=Pn.encodeNonAsciiHTML=Pn.encodeHTML=Pn.encodeXML=void 0;var t=e(E_),n=f(t.default),i=h(n);Pn.encodeXML=C(n);var o=e(C_),l=f(o.default),u=h(l);Pn.encodeHTML=y(l,u),Pn.encodeNonAsciiHTML=C(l);function f(E){return Object.keys(E).sort().reduce(function(L,D){return L[E[D]]="&"+D+";",L},{})}function h(E){for(var L=[],D=[],N=0,I=Object.keys(E);N<I.length;N++){var q=I[N];q.length===1?L.push("\\"+q):D.push(q)}L.sort();for(var X=0;X<L.length-1;X++){for(var ie=X;ie<L.length-1&&L[ie].charCodeAt(1)+1===L[ie+1].charCodeAt(1);)ie+=1;var J=1+ie-X;J<3||L.splice(X,J,L[X]+"-"+L[ie])}return D.unshift("["+L.join("")+"]"),new RegExp(D.join("|"),"g")}var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,g=String.prototype.codePointAt!=null?function(E){return E.codePointAt(0)}:function(E){return(E.charCodeAt(0)-55296)*1024+E.charCodeAt(1)-56320+65536};function v(E){return"&#x"+(E.length>1?g(E):E.charCodeAt(0)).toString(16).toUpperCase()+";"}function y(E,L){return function(D){return D.replace(L,function(N){return E[N]}).replace(p,v)}}var w=new RegExp(i.source+"|"+p.source,"g");function $(E){return E.replace(w,v)}Pn.escape=$;function _(E){return E.replace(i,v)}Pn.escapeUTF8=_;function C(E){return function(L){return L.replace(w,function(D){return E[D]||v(D)})}}return Pn}var Db;function xge(){return Db||(Db=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=Rb(),n=Ib();function i(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTML)(h)}e.decode=i;function o(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTMLStrict)(h)}e.decodeStrict=o;function l(h,p){return(!p||p<=0?n.encodeXML:n.encodeHTML)(h)}e.encode=l;var u=Ib();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return u.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return u.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return u.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return u.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return u.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return u.encodeHTML}});var f=Rb();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return f.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return f.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return f.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return f.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return f.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return f.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return f.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return f.decodeXML}})})(Hh)),Hh}var Bh,Fb;function Sge(){if(Fb)return Bh;Fb=1;function e(P,O){if(!(P instanceof O))throw new TypeError("Cannot call a class as a function")}function t(P,O){for(var k=0;k<O.length;k++){var S=O[k];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(P,S.key,S)}}function n(P,O,k){return O&&t(P.prototype,O),P}function i(P,O){var k=typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(!k){if(Array.isArray(P)||(k=o(P))||O){k&&(P=k);var S=0,R=function(){};return{s:R,n:function(){return S>=P.length?{done:!0}:{done:!1,value:P[S++]}},e:function(Be){throw Be},f:R}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
77
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var B=!0,ae=!1,ve;return{s:function(){k=k.call(P)},n:function(){var Be=k.next();return B=Be.done,Be},e:function(Be){ae=!0,ve=Be},f:function(){try{!B&&k.return!=null&&k.return()}finally{if(ae)throw ve}}}}function o(P,O){if(P){if(typeof P=="string")return l(P,O);var k=Object.prototype.toString.call(P).slice(8,-1);if(k==="Object"&&P.constructor&&(k=P.constructor.name),k==="Map"||k==="Set")return Array.from(P);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return l(P,O)}}function l(P,O){(O==null||O>P.length)&&(O=P.length);for(var k=0,S=new Array(O);k<O;k++)S[k]=P[k];return S}var u=xge(),f={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var P={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return C(0,5).forEach(function(O){C(0,5).forEach(function(k){C(0,5).forEach(function(S){return p(O,k,S,P)})})}),C(0,23).forEach(function(O){var k=O+232,S=g(O*10+8);P[k]="#"+S+S+S}),P}function p(P,O,k,S){var R=16+P*36+O*6+k,B=P>0?P*40+55:0,ae=O>0?O*40+55:0,ve=k>0?k*40+55:0;S[R]=v([B,ae,ve])}function g(P){for(var O=P.toString(16);O.length<2;)O="0"+O;return O}function v(P){var O=[],k=i(P),S;try{for(k.s();!(S=k.n()).done;){var R=S.value;O.push(g(R))}}catch(B){k.e(B)}finally{k.f()}return"#"+O.join("")}function y(P,O,k,S){var R;return O==="text"?R=D(k,S):O==="display"?R=$(P,k,S):O==="xterm256Foreground"?R=q(P,S.colors[k]):O==="xterm256Background"?R=X(P,S.colors[k]):O==="rgb"&&(R=w(P,k)),R}function w(P,O){O=O.substring(2).slice(0,-1);var k=+O.substr(0,2),S=O.substring(5).split(";"),R=S.map(function(B){return("0"+Number(B).toString(16)).substr(-2)}).join("");return I(P,(k===38?"color:#":"background-color:#")+R)}function $(P,O,k){O=parseInt(O,10);var S={"-1":function(){return"<br/>"},0:function(){return P.length&&_(P)},1:function(){return N(P,"b")},3:function(){return N(P,"i")},4:function(){return N(P,"u")},8:function(){return I(P,"display:none")},9:function(){return N(P,"strike")},22:function(){return I(P,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return ie(P,"i")},24:function(){return ie(P,"u")},39:function(){return q(P,k.fg)},49:function(){return X(P,k.bg)},53:function(){return I(P,"text-decoration:overline")}},R;return S[O]?R=S[O]():4<O&&O<7?R=N(P,"blink"):29<O&&O<38?R=q(P,k.colors[O-30]):39<O&&O<48?R=X(P,k.colors[O-40]):89<O&&O<98?R=q(P,k.colors[8+(O-90)]):99<O&&O<108&&(R=X(P,k.colors[8+(O-100)])),R}function _(P){var O=P.slice(0);return P.length=0,O.reverse().map(function(k){return"</"+k+">"}).join("")}function C(P,O){for(var k=[],S=P;S<=O;S++)k.push(S);return k}function E(P){return function(O){return(P===null||O.category!==P)&&P!=="all"}}function L(P){P=parseInt(P,10);var O=null;return P===0?O="all":P===1?O="bold":2<P&&P<5?O="underline":4<P&&P<7?O="blink":P===8?O="hide":P===9?O="strike":29<P&&P<38||P===39||89<P&&P<98?O="foreground-color":(39<P&&P<48||P===49||99<P&&P<108)&&(O="background-color"),O}function D(P,O){return O.escapeXML?u.encodeXML(P):P}function N(P,O,k){return k||(k=""),P.push(O),"<".concat(O).concat(k?' style="'.concat(k,'"'):"",">")}function I(P,O){return N(P,"span",O)}function q(P,O){return N(P,"span","color:"+O)}function X(P,O){return N(P,"span","background-color:"+O)}function ie(P,O){var k;if(P.slice(-1)[0]===O&&(k=P.pop()),k)return"</"+O+">"}function J(P,O,k){var S=!1,R=3;function B(){return""}function ae(j,ee){return k("xterm256Foreground",ee),""}function ve(j,ee){return k("xterm256Background",ee),""}function _e(j){return O.newline?k("display",-1):k("text",j),""}function Be(j,ee){S=!0,ee.trim().length===0&&(ee="0"),ee=ee.trimRight(";").split(";");var de=i(ee),he;try{for(de.s();!(he=de.n()).done;){var me=he.value;k("display",me)}}catch(Ce){de.e(Ce)}finally{de.f()}return""}function Ee(j){return k("text",j),""}function Ge(j){return k("rgb",j),""}var Ue=[{pattern:/^\x08+/,sub:B},{pattern:/^\x1b\[[012]?K/,sub:B},{pattern:/^\x1b\[\(B/,sub:B},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Ge},{pattern:/^\x1b\[38;5;(\d+)m/,sub:ae},{pattern:/^\x1b\[48;5;(\d+)m/,sub:ve},{pattern:/^\n/,sub:_e},{pattern:/^\r+\n/,sub:_e},{pattern:/^\r/,sub:_e},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Be},{pattern:/^\x1b\[\d?J/,sub:B},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:B},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:B},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:Ee}];function He(j,ee){ee>R&&S||(S=!1,P=P.replace(j.pattern,j.sub))}var Re=[],z=P,Z=z.length;e:for(;Z>0;){for(var re=0,le=0,ce=Ue.length;le<ce;re=++le){var F=Ue[re];if(He(F,re),P.length!==Z){Z=P.length;continue e}}if(P.length===Z)break;Re.push(0),Z=P.length}return Re}function U(P,O,k){return O!=="text"&&(P=P.filter(E(L(k))),P.push({token:O,data:k,category:L(k)})),P}var K=(function(){function P(O){e(this,P),O=O||{},O.colors&&(O.colors=Object.assign({},f.colors,O.colors)),this.options=Object.assign({},f,O),this.stack=[],this.stickyStack=[]}return n(P,[{key:"toHtml",value:function(k){var S=this;k=typeof k=="string"?[k]:k;var R=this.stack,B=this.options,ae=[];return this.stickyStack.forEach(function(ve){var _e=y(R,ve.token,ve.data,B);_e&&ae.push(_e)}),J(k.join(""),B,function(ve,_e){var Be=y(R,ve,_e,B);Be&&ae.push(Be),B.stream&&(S.stickyStack=U(S.stickyStack,ve,_e))}),R.length&&ae.push(_(R)),ae.join("")}}]),P})();return Bh=K,Bh}var _ge=Sge();const kge=Jg(_ge);function Wa(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function Tge(e,t){return t&&e.endsWith(t)}async function Zg(e,t,n){const i=encodeURI(`${e}:${t}:${n}`);await fetch(`/__open-in-editor?file=${i}`)}function Qg(e){return new kge({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function Cge(e){return e===null||typeof e!="function"&&typeof e!="object"}function A_(e){let t=e;if(Cge(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:"",stacks:[]}),!e){const n=new Error("unknown error");t={message:n.message,stack:n.stack,name:"",stacks:[]}}return t.stacks=UO(t.stack||"",{ignoreStackEntries:[]}),t}function Ege(e,t){let n="";return t.message?.includes("\x1B")&&(n=`<b>${t.name}</b>: ${e.toHtml(Wa(t.message))}`),t.stack?.includes("\x1B")&&(n.length>0?n+=e.toHtml(Wa(t.stack)):n=`<b>${t.name}</b>: ${t.message}${e.toHtml(Wa(t.stack))}`),n.length>0?n:null}function $_(e,t){const n=Qg(e);return t.map(i=>{const o=i.result;if(!o||o.htmlError)return i;const l=o.errors?.map(u=>Ege(n,u)).filter(u=>u!=null).join("<br><br>");return l?.length&&(o.htmlError=l),i})}const Nc=dM("hash",{initialValue:{file:"",view:null,line:null,test:null,column:null}}),Io=ks(Nc,"file"),yn=ks(Nc,"view"),N_=ks(Nc,"line"),M_=ks(Nc,"column"),Fi=ks(Nc,"test");var zb={exports:{}},Hb;function em(){return Hb||(Hb=1,(function(e,t){(function(n){n(Ho())})(function(n){n.defineMode("javascript",function(i,o){var l=i.indentUnit,u=o.statementIndent,f=o.jsonld,h=o.json||f,p=o.trackScope!==!1,g=o.typescript,v=o.wordCharacters||/[\w$\xa1-\uffff]/,y=(function(){function M(tn){return{type:tn,style:"keyword"}}var V=M("keyword a"),ye=M("keyword b"),ke=M("keyword c"),fe=M("keyword d"),Ie=M("operator"),gt={type:"atom",style:"atom"};return{if:M("if"),while:V,with:V,else:ye,do:ye,try:ye,finally:ye,return:fe,break:fe,continue:fe,new:M("new"),delete:ke,void:ke,throw:ke,debugger:M("debugger"),var:M("var"),const:M("var"),let:M("var"),function:M("function"),catch:M("catch"),for:M("for"),switch:M("switch"),case:M("case"),default:M("default"),in:Ie,typeof:Ie,instanceof:Ie,true:gt,false:gt,null:gt,undefined:gt,NaN:gt,Infinity:gt,this:M("this"),class:M("class"),super:M("atom"),yield:ke,export:M("export"),import:M("import"),extends:ke,await:ke}})(),w=/[+\-*&%=<>!?|~^@]/,$=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function _(M){for(var V=!1,ye,ke=!1;(ye=M.next())!=null;){if(!V){if(ye=="/"&&!ke)return;ye=="["?ke=!0:ke&&ye=="]"&&(ke=!1)}V=!V&&ye=="\\"}}var C,E;function L(M,V,ye){return C=M,E=ye,V}function D(M,V){var ye=M.next();if(ye=='"'||ye=="'")return V.tokenize=N(ye),V.tokenize(M,V);if(ye=="."&&M.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return L("number","number");if(ye=="."&&M.match(".."))return L("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(ye))return L(ye);if(ye=="="&&M.eat(">"))return L("=>","operator");if(ye=="0"&&M.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return L("number","number");if(/\d/.test(ye))return M.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),L("number","number");if(ye=="/")return M.eat("*")?(V.tokenize=I,I(M,V)):M.eat("/")?(M.skipToEnd(),L("comment","comment")):or(M,V,1)?(_(M),M.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),L("regexp","string-2")):(M.eat("="),L("operator","operator",M.current()));if(ye=="`")return V.tokenize=q,q(M,V);if(ye=="#"&&M.peek()=="!")return M.skipToEnd(),L("meta","meta");if(ye=="#"&&M.eatWhile(v))return L("variable","property");if(ye=="<"&&M.match("!--")||ye=="-"&&M.match("->")&&!/\S/.test(M.string.slice(0,M.start)))return M.skipToEnd(),L("comment","comment");if(w.test(ye))return(ye!=">"||!V.lexical||V.lexical.type!=">")&&(M.eat("=")?(ye=="!"||ye=="=")&&M.eat("="):/[<>*+\-|&?]/.test(ye)&&(M.eat(ye),ye==">"&&M.eat(ye))),ye=="?"&&M.eat(".")?L("."):L("operator","operator",M.current());if(v.test(ye)){M.eatWhile(v);var ke=M.current();if(V.lastType!="."){if(y.propertyIsEnumerable(ke)){var fe=y[ke];return L(fe.type,fe.style,ke)}if(ke=="async"&&M.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return L("async","keyword",ke)}return L("variable","variable",ke)}}function N(M){return function(V,ye){var ke=!1,fe;if(f&&V.peek()=="@"&&V.match($))return ye.tokenize=D,L("jsonld-keyword","meta");for(;(fe=V.next())!=null&&!(fe==M&&!ke);)ke=!ke&&fe=="\\";return ke||(ye.tokenize=D),L("string","string")}}function I(M,V){for(var ye=!1,ke;ke=M.next();){if(ke=="/"&&ye){V.tokenize=D;break}ye=ke=="*"}return L("comment","comment")}function q(M,V){for(var ye=!1,ke;(ke=M.next())!=null;){if(!ye&&(ke=="`"||ke=="$"&&M.eat("{"))){V.tokenize=D;break}ye=!ye&&ke=="\\"}return L("quasi","string-2",M.current())}var X="([{}])";function ie(M,V){V.fatArrowAt&&(V.fatArrowAt=null);var ye=M.string.indexOf("=>",M.start);if(!(ye<0)){if(g){var ke=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(M.string.slice(M.start,ye));ke&&(ye=ke.index)}for(var fe=0,Ie=!1,gt=ye-1;gt>=0;--gt){var tn=M.string.charAt(gt),$n=X.indexOf(tn);if($n>=0&&$n<3){if(!fe){++gt;break}if(--fe==0){tn=="("&&(Ie=!0);break}}else if($n>=3&&$n<6)++fe;else if(v.test(tn))Ie=!0;else if(/["'\/`]/.test(tn))for(;;--gt){if(gt==0)return;var Ls=M.string.charAt(gt-1);if(Ls==tn&&M.string.charAt(gt-2)!="\\"){gt--;break}}else if(Ie&&!fe){++gt;break}}Ie&&!fe&&(V.fatArrowAt=gt)}}var J={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function U(M,V,ye,ke,fe,Ie){this.indented=M,this.column=V,this.type=ye,this.prev=fe,this.info=Ie,ke!=null&&(this.align=ke)}function K(M,V){if(!p)return!1;for(var ye=M.localVars;ye;ye=ye.next)if(ye.name==V)return!0;for(var ke=M.context;ke;ke=ke.prev)for(var ye=ke.vars;ye;ye=ye.next)if(ye.name==V)return!0}function P(M,V,ye,ke,fe){var Ie=M.cc;for(O.state=M,O.stream=fe,O.marked=null,O.cc=Ie,O.style=V,M.lexical.hasOwnProperty("align")||(M.lexical.align=!0);;){var gt=Ie.length?Ie.pop():h?ce:re;if(gt(ye,ke)){for(;Ie.length&&Ie[Ie.length-1].lex;)Ie.pop()();return O.marked?O.marked:ye=="variable"&&K(M,ke)?"variable-2":V}}}var O={state:null,marked:null,cc:null};function k(){for(var M=arguments.length-1;M>=0;M--)O.cc.push(arguments[M])}function S(){return k.apply(null,arguments),!0}function R(M,V){for(var ye=V;ye;ye=ye.next)if(ye.name==M)return!0;return!1}function B(M){var V=O.state;if(O.marked="def",!!p){if(V.context){if(V.lexical.info=="var"&&V.context&&V.context.block){var ye=ae(M,V.context);if(ye!=null){V.context=ye;return}}else if(!R(M,V.localVars)){V.localVars=new Be(M,V.localVars);return}}o.globalVars&&!R(M,V.globalVars)&&(V.globalVars=new Be(M,V.globalVars))}}function ae(M,V){if(V)if(V.block){var ye=ae(M,V.prev);return ye?ye==V.prev?V:new _e(ye,V.vars,!0):null}else return R(M,V.vars)?V:new _e(V.prev,new Be(M,V.vars),!1);else return null}function ve(M){return M=="public"||M=="private"||M=="protected"||M=="abstract"||M=="readonly"}function _e(M,V,ye){this.prev=M,this.vars=V,this.block=ye}function Be(M,V){this.name=M,this.next=V}var Ee=new Be("this",new Be("arguments",null));function Ge(){O.state.context=new _e(O.state.context,O.state.localVars,!1),O.state.localVars=Ee}function Ue(){O.state.context=new _e(O.state.context,O.state.localVars,!0),O.state.localVars=null}Ge.lex=Ue.lex=!0;function He(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}He.lex=!0;function Re(M,V){var ye=function(){var ke=O.state,fe=ke.indented;if(ke.lexical.type=="stat")fe=ke.lexical.indented;else for(var Ie=ke.lexical;Ie&&Ie.type==")"&&Ie.align;Ie=Ie.prev)fe=Ie.indented;ke.lexical=new U(fe,O.stream.column(),M,null,ke.lexical,V)};return ye.lex=!0,ye}function z(){var M=O.state;M.lexical.prev&&(M.lexical.type==")"&&(M.indented=M.lexical.indented),M.lexical=M.lexical.prev)}z.lex=!0;function Z(M){function V(ye){return ye==M?S():M==";"||ye=="}"||ye==")"||ye=="]"?k():S(V)}return V}function re(M,V){return M=="var"?S(Re("vardef",V),Ts,Z(";"),z):M=="keyword a"?S(Re("form"),j,re,z):M=="keyword b"?S(Re("form"),re,z):M=="keyword d"?O.stream.match(/^\s*$/,!1)?S():S(Re("stat"),de,Z(";"),z):M=="debugger"?S(Z(";")):M=="{"?S(Re("}"),Ue,Gt,z,He):M==";"?S():M=="if"?(O.state.lexical.info=="else"&&O.state.cc[O.state.cc.length-1]==z&&O.state.cc.pop()(),S(Re("form"),j,re,z,Cs)):M=="function"?S(br):M=="for"?S(Re("form"),Ue,Pc,re,He,z):M=="class"||g&&V=="interface"?(O.marked="keyword",S(Re("form",M=="class"?M:V),Es,z)):M=="variable"?g&&V=="declare"?(O.marked="keyword",S(re)):g&&(V=="module"||V=="enum"||V=="type")&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword",V=="enum"?S(qe):V=="type"?S(Ic,Z("operator"),at,Z(";")):S(Re("form"),An,Z("{"),Re("}"),Gt,z,z)):g&&V=="namespace"?(O.marked="keyword",S(Re("form"),ce,re,z)):g&&V=="abstract"?(O.marked="keyword",S(re)):S(Re("stat"),Pe):M=="switch"?S(Re("form"),j,Z("{"),Re("}","switch"),Ue,Gt,z,z,He):M=="case"?S(ce,Z(":")):M=="default"?S(Z(":")):M=="catch"?S(Re("form"),Ge,le,re,z,He):M=="export"?S(Re("stat"),As,z):M=="import"?S(Re("stat"),eo,z):M=="async"?S(re):V=="@"?S(ce,re):k(Re("stat"),ce,Z(";"),z)}function le(M){if(M=="(")return S($r,Z(")"))}function ce(M,V){return ee(M,V,!1)}function F(M,V){return ee(M,V,!0)}function j(M){return M!="("?k():S(Re(")"),de,Z(")"),z)}function ee(M,V,ye){if(O.state.fatArrowAt==O.stream.start){var ke=ye?be:xe;if(M=="(")return S(Ge,Re(")"),ut($r,")"),z,Z("=>"),ke,He);if(M=="variable")return k(Ge,An,Z("=>"),ke,He)}var fe=ye?me:he;return J.hasOwnProperty(M)?S(fe):M=="function"?S(br,fe):M=="class"||g&&V=="interface"?(O.marked="keyword",S(Re("form"),wd,z)):M=="keyword c"||M=="async"?S(ye?F:ce):M=="("?S(Re(")"),de,Z(")"),z,fe):M=="operator"||M=="spread"?S(ye?F:ce):M=="["?S(Re("]"),Ft,z,fe):M=="{"?en(ct,"}",null,fe):M=="quasi"?k(Ce,fe):M=="new"?S(Q(ye)):S()}function de(M){return M.match(/[;\}\)\],]/)?k():k(ce)}function he(M,V){return M==","?S(de):me(M,V,!1)}function me(M,V,ye){var ke=ye==!1?he:me,fe=ye==!1?ce:F;if(M=="=>")return S(Ge,ye?be:xe,He);if(M=="operator")return/\+\+|--/.test(V)||g&&V=="!"?S(ke):g&&V=="<"&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?S(Re(">"),ut(at,">"),z,ke):V=="?"?S(ce,Z(":"),fe):S(fe);if(M=="quasi")return k(Ce,ke);if(M!=";"){if(M=="(")return en(F,")","call",ke);if(M==".")return S(et,ke);if(M=="[")return S(Re("]"),de,Z("]"),z,ke);if(g&&V=="as")return O.marked="keyword",S(at,ke);if(M=="regexp")return O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),S(fe)}}function Ce(M,V){return M!="quasi"?k():V.slice(V.length-2)!="${"?S(Ce):S(de,Ae)}function Ae(M){if(M=="}")return O.marked="string-2",O.state.tokenize=q,S(Ce)}function xe(M){return ie(O.stream,O.state),k(M=="{"?re:ce)}function be(M){return ie(O.stream,O.state),k(M=="{"?re:F)}function Q(M){return function(V){return V=="."?S(M?oe:ue):V=="variable"&&g?S(Kn,M?me:he):k(M?F:ce)}}function ue(M,V){if(V=="target")return O.marked="keyword",S(he)}function oe(M,V){if(V=="target")return O.marked="keyword",S(me)}function Pe(M){return M==":"?S(z,re):k(he,Z(";"),z)}function et(M){if(M=="variable")return O.marked="property",S()}function ct(M,V){if(M=="async")return O.marked="property",S(ct);if(M=="variable"||O.style=="keyword"){if(O.marked="property",V=="get"||V=="set")return S(dt);var ye;return g&&O.state.fatArrowAt==O.stream.start&&(ye=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+ye[0].length),S(Ot)}else{if(M=="number"||M=="string")return O.marked=f?"property":O.style+" property",S(Ot);if(M=="jsonld-keyword")return S(Ot);if(g&&ve(V))return O.marked="keyword",S(ct);if(M=="[")return S(ce,Vn,Z("]"),Ot);if(M=="spread")return S(F,Ot);if(V=="*")return O.marked="keyword",S(ct);if(M==":")return k(Ot)}}function dt(M){return M!="variable"?k(Ot):(O.marked="property",S(br))}function Ot(M){if(M==":")return S(F);if(M=="(")return k(br)}function ut(M,V,ye){function ke(fe,Ie){if(ye?ye.indexOf(fe)>-1:fe==","){var gt=O.state.lexical;return gt.info=="call"&&(gt.pos=(gt.pos||0)+1),S(function(tn,$n){return tn==V||$n==V?k():k(M)},ke)}return fe==V||Ie==V?S():ye&&ye.indexOf(";")>-1?k(M):S(Z(V))}return function(fe,Ie){return fe==V||Ie==V?S():k(M,ke)}}function en(M,V,ye){for(var ke=3;ke<arguments.length;ke++)O.cc.push(arguments[ke]);return S(Re(V,ye),ut(M,V),z)}function Gt(M){return M=="}"?S():k(re,Gt)}function Vn(M,V){if(g){if(M==":")return S(at);if(V=="?")return S(Vn)}}function Jr(M,V){if(g&&(M==":"||V=="in"))return S(at)}function Wt(M){if(g&&M==":")return O.stream.match(/^\s*\w+\s+is\b/,!1)?S(ce,Gn,at):S(at)}function Gn(M,V){if(V=="is")return O.marked="keyword",S()}function at(M,V){if(V=="keyof"||V=="typeof"||V=="infer"||V=="readonly")return O.marked="keyword",S(V=="typeof"?F:at);if(M=="variable"||V=="void")return O.marked="type",S(yr);if(V=="|"||V=="&")return S(at);if(M=="string"||M=="number"||M=="atom")return S(yr);if(M=="[")return S(Re("]"),ut(at,"]",","),z,yr);if(M=="{")return S(Re("}"),Xe,z,yr);if(M=="(")return S(ut(Dt,")"),Bo,yr);if(M=="<")return S(ut(at,">"),at);if(M=="quasi")return k(hn,yr)}function Bo(M){if(M=="=>")return S(at)}function Xe(M){return M.match(/[\}\)\]]/)?S():M==","||M==";"?S(Xe):k(vi,Xe)}function vi(M,V){if(M=="variable"||O.style=="keyword")return O.marked="property",S(vi);if(V=="?"||M=="number"||M=="string")return S(vi);if(M==":")return S(at);if(M=="[")return S(Z("variable"),Jr,Z("]"),vi);if(M=="(")return k(Qi,vi);if(!M.match(/[;\}\)\],]/))return S()}function hn(M,V){return M!="quasi"?k():V.slice(V.length-2)!="${"?S(hn):S(at,It)}function It(M){if(M=="}")return O.marked="string-2",O.state.tokenize=q,S(hn)}function Dt(M,V){return M=="variable"&&O.stream.match(/^\s*[?:]/,!1)||V=="?"?S(Dt):M==":"?S(at):M=="spread"?S(Dt):k(at)}function yr(M,V){if(V=="<")return S(Re(">"),ut(at,">"),z,yr);if(V=="|"||M=="."||V=="&")return S(at);if(M=="[")return S(at,Z("]"),yr);if(V=="extends"||V=="implements")return O.marked="keyword",S(at);if(V=="?")return S(at,Z(":"),at)}function Kn(M,V){if(V=="<")return S(Re(">"),ut(at,">"),z,yr)}function Er(){return k(at,pn)}function pn(M,V){if(V=="=")return S(at)}function Ts(M,V){return V=="enum"?(O.marked="keyword",S(qe)):k(An,Vn,Ar,bd)}function An(M,V){if(g&&ve(V))return O.marked="keyword",S(An);if(M=="variable")return B(V),S();if(M=="spread")return S(An);if(M=="[")return en(jl,"]");if(M=="{")return en(Ji,"}")}function Ji(M,V){return M=="variable"&&!O.stream.match(/^\s*:/,!1)?(B(V),S(Ar)):(M=="variable"&&(O.marked="property"),M=="spread"?S(An):M=="}"?k():M=="["?S(ce,Z("]"),Z(":"),Ji):S(Z(":"),An,Ar))}function jl(){return k(An,Ar)}function Ar(M,V){if(V=="=")return S(F)}function bd(M){if(M==",")return S(Ts)}function Cs(M,V){if(M=="keyword b"&&V=="else")return S(Re("form","else"),re,z)}function Pc(M,V){if(V=="await")return S(Pc);if(M=="(")return S(Re(")"),Wl,z)}function Wl(M){return M=="var"?S(Ts,Zi):M=="variable"?S(Zi):k(Zi)}function Zi(M,V){return M==")"?S():M==";"?S(Zi):V=="in"||V=="of"?(O.marked="keyword",S(ce,Zi)):k(ce,Zi)}function br(M,V){if(V=="*")return O.marked="keyword",S(br);if(M=="variable")return B(V),S(br);if(M=="(")return S(Ge,Re(")"),ut($r,")"),z,Wt,re,He);if(g&&V=="<")return S(Re(">"),ut(Er,">"),z,br)}function Qi(M,V){if(V=="*")return O.marked="keyword",S(Qi);if(M=="variable")return B(V),S(Qi);if(M=="(")return S(Ge,Re(")"),ut($r,")"),z,Wt,He);if(g&&V=="<")return S(Re(">"),ut(Er,">"),z,Qi)}function Ic(M,V){if(M=="keyword"||M=="variable")return O.marked="type",S(Ic);if(V=="<")return S(Re(">"),ut(Er,">"),z)}function $r(M,V){return V=="@"&&S(ce,$r),M=="spread"?S($r):g&&ve(V)?(O.marked="keyword",S($r)):g&&M=="this"?S(Vn,Ar):k(An,Vn,Ar)}function wd(M,V){return M=="variable"?Es(M,V):Nr(M,V)}function Es(M,V){if(M=="variable")return B(V),S(Nr)}function Nr(M,V){if(V=="<")return S(Re(">"),ut(Er,">"),z,Nr);if(V=="extends"||V=="implements"||g&&M==",")return V=="implements"&&(O.marked="keyword"),S(g?at:ce,Nr);if(M=="{")return S(Re("}"),Mr,z)}function Mr(M,V){if(M=="async"||M=="variable"&&(V=="static"||V=="get"||V=="set"||g&&ve(V))&&O.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return O.marked="keyword",S(Mr);if(M=="variable"||O.style=="keyword")return O.marked="property",S(jo,Mr);if(M=="number"||M=="string")return S(jo,Mr);if(M=="[")return S(ce,Vn,Z("]"),jo,Mr);if(V=="*")return O.marked="keyword",S(Mr);if(g&&M=="(")return k(Qi,Mr);if(M==";"||M==",")return S(Mr);if(M=="}")return S();if(V=="@")return S(ce,Mr)}function jo(M,V){if(V=="!"||V=="?")return S(jo);if(M==":")return S(at,Ar);if(V=="=")return S(F);var ye=O.state.lexical.prev,ke=ye&&ye.info=="interface";return k(ke?Qi:br)}function As(M,V){return V=="*"?(O.marked="keyword",S(Ms,Z(";"))):V=="default"?(O.marked="keyword",S(ce,Z(";"))):M=="{"?S(ut($s,"}"),Ms,Z(";")):k(re)}function $s(M,V){if(V=="as")return O.marked="keyword",S(Z("variable"));if(M=="variable")return k(F,$s)}function eo(M){return M=="string"?S():M=="("?k(ce):M=="."?k(he):k(Ns,Zr,Ms)}function Ns(M,V){return M=="{"?en(Ns,"}"):(M=="variable"&&B(V),V=="*"&&(O.marked="keyword"),S(ql))}function Zr(M){if(M==",")return S(Ns,Zr)}function ql(M,V){if(V=="as")return O.marked="keyword",S(Ns)}function Ms(M,V){if(V=="from")return O.marked="keyword",S(ce)}function Ft(M){return M=="]"?S():k(ut(F,"]"))}function qe(){return k(Re("form"),An,Z("{"),Re("}"),ut(yi,"}"),z,z)}function yi(){return k(An,Ar)}function Ul(M,V){return M.lastType=="operator"||M.lastType==","||w.test(V.charAt(0))||/[,.]/.test(V.charAt(0))}function or(M,V,ye){return V.tokenize==D&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(V.lastType)||V.lastType=="quasi"&&/\{\s*$/.test(M.string.slice(0,M.pos-(ye||0)))}return{startState:function(M){var V={tokenize:D,lastType:"sof",cc:[],lexical:new U((M||0)-l,0,"block",!1),localVars:o.localVars,context:o.localVars&&new _e(null,null,!1),indented:M||0};return o.globalVars&&typeof o.globalVars=="object"&&(V.globalVars=o.globalVars),V},token:function(M,V){if(M.sol()&&(V.lexical.hasOwnProperty("align")||(V.lexical.align=!1),V.indented=M.indentation(),ie(M,V)),V.tokenize!=I&&M.eatSpace())return null;var ye=V.tokenize(M,V);return C=="comment"?ye:(V.lastType=C=="operator"&&(E=="++"||E=="--")?"incdec":C,P(V,ye,C,E,M))},indent:function(M,V){if(M.tokenize==I||M.tokenize==q)return n.Pass;if(M.tokenize!=D)return 0;var ye=V&&V.charAt(0),ke=M.lexical,fe;if(!/^\s*else\b/.test(V))for(var Ie=M.cc.length-1;Ie>=0;--Ie){var gt=M.cc[Ie];if(gt==z)ke=ke.prev;else if(gt!=Cs&&gt!=He)break}for(;(ke.type=="stat"||ke.type=="form")&&(ye=="}"||(fe=M.cc[M.cc.length-1])&&(fe==he||fe==me)&&!/^[,\.=+\-*:?[\(]/.test(V));)ke=ke.prev;u&&ke.type==")"&&ke.prev.type=="stat"&&(ke=ke.prev);var tn=ke.type,$n=ye==tn;return tn=="vardef"?ke.indented+(M.lastType=="operator"||M.lastType==","?ke.info.length+1:0):tn=="form"&&ye=="{"?ke.indented:tn=="form"?ke.indented+l:tn=="stat"?ke.indented+(Ul(M,V)?u||l:0):ke.info=="switch"&&!$n&&o.doubleIndentSwitch!=!1?ke.indented+(/^(?:case|default)\b/.test(V)?l:2*l):ke.align?ke.column+($n?0:1):ke.indented+($n?0:l)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:h?null:"/*",blockCommentEnd:h?null:"*/",blockCommentContinue:h?null:" * ",lineComment:h?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:h?"json":"javascript",jsonldMode:f,jsonMode:h,expressionAllowed:or,skipExpression:function(M){P(M,"atom","atom","true",new n.StringStream("",2,null))}}}),n.registerHelper("wordChars","javascript",/[\w$]/),n.defineMIME("text/javascript","javascript"),n.defineMIME("text/ecmascript","javascript"),n.defineMIME("application/javascript","javascript"),n.defineMIME("application/x-javascript","javascript"),n.defineMIME("application/ecmascript","javascript"),n.defineMIME("application/json",{name:"javascript",json:!0}),n.defineMIME("application/x-json",{name:"javascript",json:!0}),n.defineMIME("application/manifest+json",{name:"javascript",json:!0}),n.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),n.defineMIME("text/typescript",{name:"javascript",typescript:!0}),n.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})()),zb.exports}em();var Bb={exports:{}},jb;function tm(){return jb||(jb=1,(function(e,t){(function(n){n(Ho())})(function(n){var i={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},o={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};n.defineMode("xml",function(l,u){var f=l.indentUnit,h={},p=u.htmlMode?i:o;for(var g in p)h[g]=p[g];for(var g in u)h[g]=u[g];var v,y;function w(S,R){function B(_e){return R.tokenize=_e,_e(S,R)}var ae=S.next();if(ae=="<")return S.eat("!")?S.eat("[")?S.match("CDATA[")?B(C("atom","]]>")):null:S.match("--")?B(C("comment","-->")):S.match("DOCTYPE",!0,!0)?(S.eatWhile(/[\w\._\-]/),B(E(1))):null:S.eat("?")?(S.eatWhile(/[\w\._\-]/),R.tokenize=C("meta","?>"),"meta"):(v=S.eat("/")?"closeTag":"openTag",R.tokenize=$,"tag bracket");if(ae=="&"){var ve;return S.eat("#")?S.eat("x")?ve=S.eatWhile(/[a-fA-F\d]/)&&S.eat(";"):ve=S.eatWhile(/[\d]/)&&S.eat(";"):ve=S.eatWhile(/[\w\.\-:]/)&&S.eat(";"),ve?"atom":"error"}else return S.eatWhile(/[^&<]/),null}w.isInText=!0;function $(S,R){var B=S.next();if(B==">"||B=="/"&&S.eat(">"))return R.tokenize=w,v=B==">"?"endTag":"selfcloseTag","tag bracket";if(B=="=")return v="equals",null;if(B=="<"){R.tokenize=w,R.state=q,R.tagName=R.tagStart=null;var ae=R.tokenize(S,R);return ae?ae+" tag error":"tag error"}else return/[\'\"]/.test(B)?(R.tokenize=_(B),R.stringStartCol=S.column(),R.tokenize(S,R)):(S.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function _(S){var R=function(B,ae){for(;!B.eol();)if(B.next()==S){ae.tokenize=$;break}return"string"};return R.isInAttribute=!0,R}function C(S,R){return function(B,ae){for(;!B.eol();){if(B.match(R)){ae.tokenize=w;break}B.next()}return S}}function E(S){return function(R,B){for(var ae;(ae=R.next())!=null;){if(ae=="<")return B.tokenize=E(S+1),B.tokenize(R,B);if(ae==">")if(S==1){B.tokenize=w;break}else return B.tokenize=E(S-1),B.tokenize(R,B)}return"meta"}}function L(S){return S&&S.toLowerCase()}function D(S,R,B){this.prev=S.context,this.tagName=R||"",this.indent=S.indented,this.startOfLine=B,(h.doNotIndent.hasOwnProperty(R)||S.context&&S.context.noIndent)&&(this.noIndent=!0)}function N(S){S.context&&(S.context=S.context.prev)}function I(S,R){for(var B;;){if(!S.context||(B=S.context.tagName,!h.contextGrabbers.hasOwnProperty(L(B))||!h.contextGrabbers[L(B)].hasOwnProperty(L(R))))return;N(S)}}function q(S,R,B){return S=="openTag"?(B.tagStart=R.column(),X):S=="closeTag"?ie:q}function X(S,R,B){return S=="word"?(B.tagName=R.current(),y="tag",K):h.allowMissingTagName&&S=="endTag"?(y="tag bracket",K(S,R,B)):(y="error",X)}function ie(S,R,B){if(S=="word"){var ae=R.current();return B.context&&B.context.tagName!=ae&&h.implicitlyClosed.hasOwnProperty(L(B.context.tagName))&&N(B),B.context&&B.context.tagName==ae||h.matchClosing===!1?(y="tag",J):(y="tag error",U)}else return h.allowMissingTagName&&S=="endTag"?(y="tag bracket",J(S,R,B)):(y="error",U)}function J(S,R,B){return S!="endTag"?(y="error",J):(N(B),q)}function U(S,R,B){return y="error",J(S,R,B)}function K(S,R,B){if(S=="word")return y="attribute",P;if(S=="endTag"||S=="selfcloseTag"){var ae=B.tagName,ve=B.tagStart;return B.tagName=B.tagStart=null,S=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(L(ae))?I(B,ae):(I(B,ae),B.context=new D(B,ae,ve==B.indented)),q}return y="error",K}function P(S,R,B){return S=="equals"?O:(h.allowMissing||(y="error"),K(S,R,B))}function O(S,R,B){return S=="string"?k:S=="word"&&h.allowUnquoted?(y="string",K):(y="error",K(S,R,B))}function k(S,R,B){return S=="string"?k:K(S,R,B)}return{startState:function(S){var R={tokenize:w,state:q,indented:S||0,tagName:null,tagStart:null,context:null};return S!=null&&(R.baseIndent=S),R},token:function(S,R){if(!R.tagName&&S.sol()&&(R.indented=S.indentation()),S.eatSpace())return null;v=null;var B=R.tokenize(S,R);return(B||v)&&B!="comment"&&(y=null,R.state=R.state(v||B,S,R),y&&(B=y=="error"?B+" error":y)),B},indent:function(S,R,B){var ae=S.context;if(S.tokenize.isInAttribute)return S.tagStart==S.indented?S.stringStartCol+1:S.indented+f;if(ae&&ae.noIndent)return n.Pass;if(S.tokenize!=$&&S.tokenize!=w)return B?B.match(/^(\s*)/)[0].length:0;if(S.tagName)return h.multilineTagIndentPastTag!==!1?S.tagStart+S.tagName.length+2:S.tagStart+f*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(R))return 0;var ve=R&&/^<(\/)?([\w_:\.-]*)/.exec(R);if(ve&&ve[1])for(;ae;)if(ae.tagName==ve[2]){ae=ae.prev;break}else if(h.implicitlyClosed.hasOwnProperty(L(ae.tagName)))ae=ae.prev;else break;else if(ve)for(;ae;){var _e=h.contextGrabbers[L(ae.tagName)];if(_e&&_e.hasOwnProperty(L(ve[2])))ae=ae.prev;else break}for(;ae&&ae.prev&&!ae.startOfLine;)ae=ae.prev;return ae?ae.indent+f:S.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(S){S.state==O&&(S.state=K)},xmlCurrentTag:function(S){return S.tagName?{name:S.tagName,close:S.type=="closeTag"}:null},xmlCurrentContext:function(S){for(var R=[],B=S.context;B;B=B.prev)R.push(B.tagName);return R.reverse()}}}),n.defineMIME("text/xml","xml"),n.defineMIME("application/xml","xml"),n.mimeModes.hasOwnProperty("text/html")||n.defineMIME("text/html",{name:"xml",htmlMode:!0})})})()),Bb.exports}tm();var Wb={exports:{}},qb={exports:{}},Ub;function Age(){return Ub||(Ub=1,(function(e,t){(function(n){n(Ho())})(function(n){n.defineMode("css",function(U,K){var P=K.inline;K.propertyKeywords||(K=n.resolveMode("text/css"));var O=U.indentUnit,k=K.tokenHooks,S=K.documentTypes||{},R=K.mediaTypes||{},B=K.mediaFeatures||{},ae=K.mediaValueKeywords||{},ve=K.propertyKeywords||{},_e=K.nonStandardPropertyKeywords||{},Be=K.fontProperties||{},Ee=K.counterDescriptors||{},Ge=K.colorKeywords||{},Ue=K.valueKeywords||{},He=K.allowNested,Re=K.lineComment,z=K.supportsAtComponent===!0,Z=U.highlightNonStandardPropertyKeywords!==!1,re,le;function ce(Q,ue){return re=ue,Q}function F(Q,ue){var oe=Q.next();if(k[oe]){var Pe=k[oe](Q,ue);if(Pe!==!1)return Pe}if(oe=="@")return Q.eatWhile(/[\w\\\-]/),ce("def",Q.current());if(oe=="="||(oe=="~"||oe=="|")&&Q.eat("="))return ce(null,"compare");if(oe=='"'||oe=="'")return ue.tokenize=j(oe),ue.tokenize(Q,ue);if(oe=="#")return Q.eatWhile(/[\w\\\-]/),ce("atom","hash");if(oe=="!")return Q.match(/^\s*\w*/),ce("keyword","important");if(/\d/.test(oe)||oe=="."&&Q.eat(/\d/))return Q.eatWhile(/[\w.%]/),ce("number","unit");if(oe==="-"){if(/[\d.]/.test(Q.peek()))return Q.eatWhile(/[\w.%]/),ce("number","unit");if(Q.match(/^-[\w\\\-]*/))return Q.eatWhile(/[\w\\\-]/),Q.match(/^\s*:/,!1)?ce("variable-2","variable-definition"):ce("variable-2","variable");if(Q.match(/^\w+-/))return ce("meta","meta")}else return/[,+>*\/]/.test(oe)?ce(null,"select-op"):oe=="."&&Q.match(/^-?[_a-z][_a-z0-9-]*/i)?ce("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(oe)?ce(null,oe):Q.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(Q.current())&&(ue.tokenize=ee),ce("variable callee","variable")):/[\w\\\-]/.test(oe)?(Q.eatWhile(/[\w\\\-]/),ce("property","word")):ce(null,null)}function j(Q){return function(ue,oe){for(var Pe=!1,et;(et=ue.next())!=null;){if(et==Q&&!Pe){Q==")"&&ue.backUp(1);break}Pe=!Pe&&et=="\\"}return(et==Q||!Pe&&Q!=")")&&(oe.tokenize=null),ce("string","string")}}function ee(Q,ue){return Q.next(),Q.match(/^\s*[\"\')]/,!1)?ue.tokenize=null:ue.tokenize=j(")"),ce(null,"(")}function de(Q,ue,oe){this.type=Q,this.indent=ue,this.prev=oe}function he(Q,ue,oe,Pe){return Q.context=new de(oe,ue.indentation()+(Pe===!1?0:O),Q.context),oe}function me(Q){return Q.context.prev&&(Q.context=Q.context.prev),Q.context.type}function Ce(Q,ue,oe){return be[oe.context.type](Q,ue,oe)}function Ae(Q,ue,oe,Pe){for(var et=Pe||1;et>0;et--)oe.context=oe.context.prev;return Ce(Q,ue,oe)}function xe(Q){var ue=Q.current().toLowerCase();Ue.hasOwnProperty(ue)?le="atom":Ge.hasOwnProperty(ue)?le="keyword":le="variable"}var be={};return be.top=function(Q,ue,oe){if(Q=="{")return he(oe,ue,"block");if(Q=="}"&&oe.context.prev)return me(oe);if(z&&/@component/i.test(Q))return he(oe,ue,"atComponentBlock");if(/^@(-moz-)?document$/i.test(Q))return he(oe,ue,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(Q))return he(oe,ue,"atBlock");if(/^@(font-face|counter-style)/i.test(Q))return oe.stateArg=Q,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(Q))return"keyframes";if(Q&&Q.charAt(0)=="@")return he(oe,ue,"at");if(Q=="hash")le="builtin";else if(Q=="word")le="tag";else{if(Q=="variable-definition")return"maybeprop";if(Q=="interpolation")return he(oe,ue,"interpolation");if(Q==":")return"pseudo";if(He&&Q=="(")return he(oe,ue,"parens")}return oe.context.type},be.block=function(Q,ue,oe){if(Q=="word"){var Pe=ue.current().toLowerCase();return ve.hasOwnProperty(Pe)?(le="property","maybeprop"):_e.hasOwnProperty(Pe)?(le=Z?"string-2":"property","maybeprop"):He?(le=ue.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(le+=" error","maybeprop")}else return Q=="meta"?"block":!He&&(Q=="hash"||Q=="qualifier")?(le="error","block"):be.top(Q,ue,oe)},be.maybeprop=function(Q,ue,oe){return Q==":"?he(oe,ue,"prop"):Ce(Q,ue,oe)},be.prop=function(Q,ue,oe){if(Q==";")return me(oe);if(Q=="{"&&He)return he(oe,ue,"propBlock");if(Q=="}"||Q=="{")return Ae(Q,ue,oe);if(Q=="(")return he(oe,ue,"parens");if(Q=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(ue.current()))le+=" error";else if(Q=="word")xe(ue);else if(Q=="interpolation")return he(oe,ue,"interpolation");return"prop"},be.propBlock=function(Q,ue,oe){return Q=="}"?me(oe):Q=="word"?(le="property","maybeprop"):oe.context.type},be.parens=function(Q,ue,oe){return Q=="{"||Q=="}"?Ae(Q,ue,oe):Q==")"?me(oe):Q=="("?he(oe,ue,"parens"):Q=="interpolation"?he(oe,ue,"interpolation"):(Q=="word"&&xe(ue),"parens")},be.pseudo=function(Q,ue,oe){return Q=="meta"?"pseudo":Q=="word"?(le="variable-3",oe.context.type):Ce(Q,ue,oe)},be.documentTypes=function(Q,ue,oe){return Q=="word"&&S.hasOwnProperty(ue.current())?(le="tag",oe.context.type):be.atBlock(Q,ue,oe)},be.atBlock=function(Q,ue,oe){if(Q=="(")return he(oe,ue,"atBlock_parens");if(Q=="}"||Q==";")return Ae(Q,ue,oe);if(Q=="{")return me(oe)&&he(oe,ue,He?"block":"top");if(Q=="interpolation")return he(oe,ue,"interpolation");if(Q=="word"){var Pe=ue.current().toLowerCase();Pe=="only"||Pe=="not"||Pe=="and"||Pe=="or"?le="keyword":R.hasOwnProperty(Pe)?le="attribute":B.hasOwnProperty(Pe)?le="property":ae.hasOwnProperty(Pe)?le="keyword":ve.hasOwnProperty(Pe)?le="property":_e.hasOwnProperty(Pe)?le=Z?"string-2":"property":Ue.hasOwnProperty(Pe)?le="atom":Ge.hasOwnProperty(Pe)?le="keyword":le="error"}return oe.context.type},be.atComponentBlock=function(Q,ue,oe){return Q=="}"?Ae(Q,ue,oe):Q=="{"?me(oe)&&he(oe,ue,He?"block":"top",!1):(Q=="word"&&(le="error"),oe.context.type)},be.atBlock_parens=function(Q,ue,oe){return Q==")"?me(oe):Q=="{"||Q=="}"?Ae(Q,ue,oe,2):be.atBlock(Q,ue,oe)},be.restricted_atBlock_before=function(Q,ue,oe){return Q=="{"?he(oe,ue,"restricted_atBlock"):Q=="word"&&oe.stateArg=="@counter-style"?(le="variable","restricted_atBlock_before"):Ce(Q,ue,oe)},be.restricted_atBlock=function(Q,ue,oe){return Q=="}"?(oe.stateArg=null,me(oe)):Q=="word"?(oe.stateArg=="@font-face"&&!Be.hasOwnProperty(ue.current().toLowerCase())||oe.stateArg=="@counter-style"&&!Ee.hasOwnProperty(ue.current().toLowerCase())?le="error":le="property","maybeprop"):"restricted_atBlock"},be.keyframes=function(Q,ue,oe){return Q=="word"?(le="variable","keyframes"):Q=="{"?he(oe,ue,"top"):Ce(Q,ue,oe)},be.at=function(Q,ue,oe){return Q==";"?me(oe):Q=="{"||Q=="}"?Ae(Q,ue,oe):(Q=="word"?le="tag":Q=="hash"&&(le="builtin"),"at")},be.interpolation=function(Q,ue,oe){return Q=="}"?me(oe):Q=="{"||Q==";"?Ae(Q,ue,oe):(Q=="word"?le="variable":Q!="variable"&&Q!="("&&Q!=")"&&(le="error"),"interpolation")},{startState:function(Q){return{tokenize:null,state:P?"block":"top",stateArg:null,context:new de(P?"block":"top",Q||0,null)}},token:function(Q,ue){if(!ue.tokenize&&Q.eatSpace())return null;var oe=(ue.tokenize||F)(Q,ue);return oe&&typeof oe=="object"&&(re=oe[1],oe=oe[0]),le=oe,re!="comment"&&(ue.state=be[ue.state](re,Q,ue)),le},indent:function(Q,ue){var oe=Q.context,Pe=ue&&ue.charAt(0),et=oe.indent;return oe.type=="prop"&&(Pe=="}"||Pe==")")&&(oe=oe.prev),oe.prev&&(Pe=="}"&&(oe.type=="block"||oe.type=="top"||oe.type=="interpolation"||oe.type=="restricted_atBlock")?(oe=oe.prev,et=oe.indent):(Pe==")"&&(oe.type=="parens"||oe.type=="atBlock_parens")||Pe=="{"&&(oe.type=="at"||oe.type=="atBlock"))&&(et=Math.max(0,oe.indent-O))),et},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:Re,fold:"brace"}});function i(U){for(var K={},P=0;P<U.length;++P)K[U[P].toLowerCase()]=!0;return K}var o=["domain","regexp","url","url-prefix"],l=i(o),u=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],f=i(u),h=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],p=i(h),g=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],v=i(g),y=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],w=i(y),$=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],_=i($),C=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],E=i(C),L=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],D=i(L),N=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],I=i(N),q=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],X=i(q),ie=o.concat(u).concat(h).concat(g).concat(y).concat($).concat(N).concat(q);n.registerHelper("hintWords","css",ie);function J(U,K){for(var P=!1,O;(O=U.next())!=null;){if(P&&O=="/"){K.tokenize=null;break}P=O=="*"}return["comment","comment"]}n.defineMIME("text/css",{documentTypes:l,mediaTypes:f,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:_,fontProperties:E,counterDescriptors:D,colorKeywords:I,valueKeywords:X,tokenHooks:{"/":function(U,K){return U.eat("*")?(K.tokenize=J,J(U,K)):!1}},name:"css"}),n.defineMIME("text/x-scss",{mediaTypes:f,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:_,colorKeywords:I,valueKeywords:X,fontProperties:E,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(U,K){return U.eat("/")?(U.skipToEnd(),["comment","comment"]):U.eat("*")?(K.tokenize=J,J(U,K)):["operator","operator"]},":":function(U){return U.match(/^\s*\{/,!1)?[null,null]:!1},$:function(U){return U.match(/^[\w-]+/),U.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(U){return U.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),n.defineMIME("text/x-less",{mediaTypes:f,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:_,colorKeywords:I,valueKeywords:X,fontProperties:E,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(U,K){return U.eat("/")?(U.skipToEnd(),["comment","comment"]):U.eat("*")?(K.tokenize=J,J(U,K)):["operator","operator"]},"@":function(U){return U.eat("{")?[null,"interpolation"]:U.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(U.eatWhile(/[\w\\\-]/),U.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),n.defineMIME("text/x-gss",{documentTypes:l,mediaTypes:f,mediaFeatures:p,propertyKeywords:w,nonStandardPropertyKeywords:_,fontProperties:E,counterDescriptors:D,colorKeywords:I,valueKeywords:X,supportsAtComponent:!0,tokenHooks:{"/":function(U,K){return U.eat("*")?(K.tokenize=J,J(U,K)):!1}},name:"css",helperType:"gss"})})})()),qb.exports}var Vb;function $ge(){return Vb||(Vb=1,(function(e,t){(function(n){n(Ho(),tm(),em(),Age())})(function(n){var i={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function o(v,y,w){var $=v.current(),_=$.search(y);return _>-1?v.backUp($.length-_):$.match(/<\/?$/)&&(v.backUp($.length),v.match(y,!1)||v.match($)),w}var l={};function u(v){var y=l[v];return y||(l[v]=new RegExp("\\s+"+v+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function f(v,y){var w=v.match(u(y));return w?/^\s*(.*?)\s*$/.exec(w[2])[1]:""}function h(v,y){return new RegExp((y?"^":"")+"</\\s*"+v+"\\s*>","i")}function p(v,y){for(var w in v)for(var $=y[w]||(y[w]=[]),_=v[w],C=_.length-1;C>=0;C--)$.unshift(_[C])}function g(v,y){for(var w=0;w<v.length;w++){var $=v[w];if(!$[0]||$[1].test(f(y,$[0])))return $[2]}}n.defineMode("htmlmixed",function(v,y){var w=n.getMode(v,{name:"xml",htmlMode:!0,multilineTagIndentFactor:y.multilineTagIndentFactor,multilineTagIndentPastTag:y.multilineTagIndentPastTag,allowMissingTagName:y.allowMissingTagName}),$={},_=y&&y.tags,C=y&&y.scriptTypes;if(p(i,$),_&&p(_,$),C)for(var E=C.length-1;E>=0;E--)$.script.unshift(["type",C[E].matches,C[E].mode]);function L(D,N){var I=w.token(D,N.htmlState),q=/\btag\b/.test(I),X;if(q&&!/[<>\s\/]/.test(D.current())&&(X=N.htmlState.tagName&&N.htmlState.tagName.toLowerCase())&&$.hasOwnProperty(X))N.inTag=X+" ";else if(N.inTag&&q&&/>$/.test(D.current())){var ie=/^([\S]+) (.*)/.exec(N.inTag);N.inTag=null;var J=D.current()==">"&&g($[ie[1]],ie[2]),U=n.getMode(v,J),K=h(ie[1],!0),P=h(ie[1],!1);N.token=function(O,k){return O.match(K,!1)?(k.token=L,k.localState=k.localMode=null,null):o(O,P,k.localMode.token(O,k.localState))},N.localMode=U,N.localState=n.startState(U,w.indent(N.htmlState,"",""))}else N.inTag&&(N.inTag+=D.current(),D.eol()&&(N.inTag+=" "));return I}return{startState:function(){var D=n.startState(w);return{token:L,inTag:null,localMode:null,localState:null,htmlState:D}},copyState:function(D){var N;return D.localState&&(N=n.copyState(D.localMode,D.localState)),{token:D.token,inTag:D.inTag,localMode:D.localMode,localState:N,htmlState:n.copyState(w,D.htmlState)}},token:function(D,N){return N.token(D,N)},indent:function(D,N,I){return!D.localMode||/^\s*<\//.test(N)?w.indent(D.htmlState,N,I):D.localMode.indent?D.localMode.indent(D.localState,N,I):n.Pass},innerMode:function(D){return{state:D.localState||D.htmlState,mode:D.localMode||w}}}},"xml","javascript","css"),n.defineMIME("text/html","htmlmixed")})})()),Wb.exports}$ge();var Gb={exports:{}},Kb;function Nge(){return Kb||(Kb=1,(function(e,t){(function(n){n(Ho(),tm(),em())})(function(n){function i(l,u,f,h){this.state=l,this.mode=u,this.depth=f,this.prev=h}function o(l){return new i(n.copyState(l.mode,l.state),l.mode,l.depth,l.prev&&o(l.prev))}n.defineMode("jsx",function(l,u){var f=n.getMode(l,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=n.getMode(l,u&&u.base||"javascript");function p(w){var $=w.tagName;w.tagName=null;var _=f.indent(w,"","");return w.tagName=$,_}function g(w,$){return $.context.mode==f?v(w,$,$.context):y(w,$,$.context)}function v(w,$,_){if(_.depth==2)return w.match(/^.*?\*\//)?_.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){f.skipAttribute(_.state);var C=p(_.state),E=_.state.context;if(E&&w.match(/^[^>]*>\s*$/,!1)){for(;E.prev&&!E.startOfLine;)E=E.prev;E.startOfLine?C-=l.indentUnit:_.prev.state.lexical&&(C=_.prev.state.lexical.indented)}else _.depth==1&&(C+=l.indentUnit);return $.context=new i(n.startState(h,C),h,0,$.context),null}if(_.depth==1){if(w.peek()=="<")return f.skipAttribute(_.state),$.context=new i(n.startState(f,p(_.state)),f,0,$.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return _.depth=2,g(w,$)}var L=f.token(w,_.state),D=w.current(),N;return/\btag\b/.test(L)?/>$/.test(D)?_.state.context?_.depth=0:$.context=$.context.prev:/^</.test(D)&&(_.depth=1):!L&&(N=D.indexOf("{"))>-1&&w.backUp(D.length-N),L}function y(w,$,_){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(w,_.state))return $.context=new i(n.startState(f,h.indent(_.state,"","")),f,0,$.context),h.skipExpression(_.state),null;var C=h.token(w,_.state);if(!C&&_.depth!=null){var E=w.current();E=="{"?_.depth++:E=="}"&&--_.depth==0&&($.context=$.context.prev)}return C}return{startState:function(){return{context:new i(n.startState(h),h)}},copyState:function(w){return{context:o(w.context)}},token:g,indent:function(w,$,_){return w.context.mode.indent(w.context.state,$,_)},innerMode:function(w){return w.context}}},"xml","javascript"),n.defineMIME("text/jsx","jsx"),n.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})})()),Gb.exports}Nge();var Yb={exports:{}},Xb;function Mge(){return Xb||(Xb=1,(function(e,t){(function(n){n(Ho())})(function(n){n.defineOption("placeholder","",function(p,g,v){var y=v&&v!=n.Init;if(g&&!y)p.on("blur",u),p.on("change",f),p.on("swapDoc",f),n.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){l(p)}),f(p);else if(!g&&y){p.off("blur",u),p.off("change",f),p.off("swapDoc",f),n.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),i(p);var w=p.getWrapperElement();w.className=w.className.replace(" CodeMirror-empty","")}g&&!p.hasFocus()&&u(p)});function i(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function o(p){i(p);var g=p.state.placeholder=document.createElement("pre");g.style.cssText="height: 0; overflow: visible",g.style.direction=p.getOption("direction"),g.className="CodeMirror-placeholder CodeMirror-line-like";var v=p.getOption("placeholder");typeof v=="string"&&(v=document.createTextNode(v)),g.appendChild(v),p.display.lineSpace.insertBefore(g,p.display.lineSpace.firstChild)}function l(p){setTimeout(function(){var g=!1;if(p.lineCount()==1){var v=p.getInputField();g=v.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(v.querySelector(".CodeMirror-line").textContent)}g?o(p):i(p)},20)}function u(p){h(p)&&o(p)}function f(p){var g=p.getWrapperElement(),v=h(p);g.className=g.className.replace(" CodeMirror-empty","")+(v?" CodeMirror-empty":""),v?o(p):i(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})})()),Yb.exports}Mge();var Jb={exports:{}},Zb;function Lge(){return Zb||(Zb=1,(function(e,t){(function(n){n(Ho())})(function(n){function i(u,f,h){this.orientation=f,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=u+"-"+f,this.inner=this.node.appendChild(document.createElement("div"));var p=this;n.on(this.inner,"mousedown",function(v){if(v.which!=1)return;n.e_preventDefault(v);var y=p.orientation=="horizontal"?"pageX":"pageY",w=v[y],$=p.pos;function _(){n.off(document,"mousemove",C),n.off(document,"mouseup",_)}function C(E){if(E.which!=1)return _();p.moveTo($+(E[y]-w)*(p.total/p.size))}n.on(document,"mousemove",C),n.on(document,"mouseup",_)}),n.on(this.node,"click",function(v){n.e_preventDefault(v);var y=p.inner.getBoundingClientRect(),w;p.orientation=="horizontal"?w=v.clientX<y.left?-1:v.clientX>y.right?1:0:w=v.clientY<y.top?-1:v.clientY>y.bottom?1:0,p.moveTo(p.pos+w*p.screen)});function g(v){var y=n.wheelEventPixels(v)[p.orientation=="horizontal"?"x":"y"],w=p.pos;p.moveTo(p.pos+y),p.pos!=w&&n.e_preventDefault(v)}n.on(this.node,"mousewheel",g),n.on(this.node,"DOMMouseScroll",g)}i.prototype.setPos=function(u,f){return u<0&&(u=0),u>this.total-this.screen&&(u=this.total-this.screen),!f&&u==this.pos?!1:(this.pos=u,this.inner.style[this.orientation=="horizontal"?"left":"top"]=u*(this.size/this.total)+"px",!0)},i.prototype.moveTo=function(u){this.setPos(u)&&this.scroll(u,this.orientation)};var o=10;i.prototype.update=function(u,f,h){var p=this.screen!=f||this.total!=u||this.size!=h;p&&(this.screen=f,this.total=u,this.size=h);var g=this.screen*(this.size/this.total);g<o&&(this.size-=o-g,g=o),this.inner.style[this.orientation=="horizontal"?"width":"height"]=g+"px",this.setPos(this.pos,p)};function l(u,f,h){this.addClass=u,this.horiz=new i(u,"horizontal",h),f(this.horiz.node),this.vert=new i(u,"vertical",h),f(this.vert.node),this.width=null}l.prototype.update=function(u){if(this.width==null){var f=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;f&&(this.width=parseInt(f.height))}var h=this.width||0,p=u.scrollWidth>u.clientWidth+1,g=u.scrollHeight>u.clientHeight+1;return this.vert.node.style.display=g?"block":"none",this.horiz.node.style.display=p?"block":"none",g&&(this.vert.update(u.scrollHeight,u.clientHeight,u.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(u.scrollWidth,u.clientWidth,u.viewWidth-(g?h:0)-u.barLeft),this.horiz.node.style.right=g?h+"px":"0",this.horiz.node.style.left=u.barLeft+"px"),{right:g?h:0,bottom:p?h:0}},l.prototype.setScrollTop=function(u){this.vert.setPos(u)},l.prototype.setScrollLeft=function(u){this.horiz.setPos(u)},l.prototype.clear=function(){var u=this.horiz.node.parentNode;u.removeChild(this.horiz.node),u.removeChild(this.vert.node)},n.scrollbarModel.simple=function(u,f){return new l("CodeMirror-simplescroll",u,f)},n.scrollbarModel.overlay=function(u,f){return new l("CodeMirror-overlayscroll",u,f)}})})()),Jb.exports}Lge();const Fn=Vt();function Oge(e,t,n={}){const i=JP.fromTextArea(e.value,{theme:"vars",...n,scrollbarStyle:"simple"});let o=!1;return i.on("change",()=>{if(o){o=!1;return}t.value=i.getValue()}),yt(t,l=>{if(l!==i.getValue()){o=!0;const u=i.listSelections();i.replaceRange(l,i.posFromIndex(0),i.posFromIndex(Number.POSITIVE_INFINITY)),i.setSelections(u)}},{immediate:!0}),_c(()=>{Fn.value=void 0}),Vf(i)}async function L_(e){dc({file:e.file.id,line:e.location?.line??1,view:"editor",test:e.id,column:null})}function Rge(e,t){dc({file:e,column:t.column-1,line:t.line,view:"editor",test:Fi.value})}function Pge(e,t){if(!t)return;const{line:n,column:i,file:o}=t;if(e.file.filepath!==o)return Zg(o,n,i);dc({file:e.file.id,column:i-1,line:n,view:"editor",test:Fi.value})}const Tr=Ke(),vl=Ke(!0),Do=Ke(!1),Ef=Ke(!0),O_=Se(()=>pt.value?.coverage),Pp=Se(()=>O_.value?.enabled),$a=Se(()=>Pp.value&&!!O_.value?.htmlDir),yl=Cc("vitest-ui_splitpanes-mainSizes",[33,67]),ms=Cc("vitest-ui_splitpanes-detailSizes",[window.__vitest_browser_runner__?.provider==="webdriverio"?lr.value[0]/window.outerWidth*100:33,67]),Bi=Cc("vitest-ui_details-panel-visible",!0),Tn=Ke("right");At(()=>{yt(pt,()=>{pt.value?.browser?.detailsPanelPosition&&(Tn.value=pt.value.browser.detailsPanelPosition)})});function Ige(){setTimeout(()=>{Bi.value=!1},0)}function Dge(){Bi.value=!0}const fn=dr({navigation:yl.value[0],details:{size:yl.value[1],browser:ms.value[0],main:ms.value[1]}});yt(dd,e=>{Ef.value=e==="running"},{immediate:!0});function Fge(){const e=Io.value;if(e&&e.length>0){const t=Cr(e);t?(Tr.value=t,vl.value=!1,Do.value=!1):qN(()=>ft.state.getFiles(),()=>{Tr.value=Cr(e),vl.value=!1,Do.value=!1})}return vl}function Af(e){vl.value=e,Do.value=!1,e&&(Tr.value=void 0,Io.value="")}function dc({file:e,line:t,view:n,test:i,column:o}){Io.value=e,N_.value=t,M_.value=o,yn.value=n,Fi.value=i,Tr.value=Cr(e),Af(!1)}function zge(e){e.type==="test"?yn.value==="editor"?L_(e):dc({file:e.file.id,line:null,column:null,view:yn.value,test:e.id}):dc({file:e.file.id,test:null,line:null,view:yn.value,column:null})}function Hge(){Do.value=!0,vl.value=!1,Tr.value=void 0,Io.value=""}function Bge(){if(gr?.provider==="webdriverio"){const e=window.outerWidth*(fn.details.size/100);return(lr.value[0]+20)/e*100}return 33}function jge(){fn.navigation=33,fn.details.size=67,yl.value=[33,67]}function R_(){fn.details.main!==0&&(fn.details.browser=Bge(),fn.details.main=100-fn.details.browser,ms.value=[fn.details.browser,fn.details.main])}function Wge(){Tn.value=Tn.value==="right"?"bottom":"right";const e=Tn.value==="bottom"?33:50;ms.value=[e,100-e],fn.details.browser=e,fn.details.main=100-e}const qge={setCurrentFileId(e){Io.value=e,Tr.value=Cr(e),Af(!1)},async setIframeViewport(e,t){lr.value=[e,t],gr?.provider==="webdriverio"&&R_(),await new Promise(n=>requestAnimationFrame(n))}},Uge=location.port,Vge=[location.hostname,Uge].filter(Boolean).join(":"),Gge=`${location.protocol==="https:"?"wss:":"ws:"}//${Vge}/__vitest_api__?token=${window.VITEST_API_TOKEN||"0"}`,pr=!!window.METADATA_PATH;var ur=Uint8Array,sl=Uint16Array,Kge=Int32Array,P_=new ur([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),I_=new ur([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Yge=new ur([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),D_=function(e,t){for(var n=new sl(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];for(var o=new Kge(n[30]),i=1;i<30;++i)for(var l=n[i];l<n[i+1];++l)o[l]=l-n[i]<<5|i;return{b:n,r:o}},F_=D_(P_,2),z_=F_.b,Xge=F_.r;z_[28]=258,Xge[258]=28;var Jge=D_(I_,0),Zge=Jge.b,Ip=new sl(32768);for(var Mt=0;Mt<32768;++Mt){var fo=(Mt&43690)>>1|(Mt&21845)<<1;fo=(fo&52428)>>2|(fo&13107)<<2,fo=(fo&61680)>>4|(fo&3855)<<4,Ip[Mt]=((fo&65280)>>8|(fo&255)<<8)>>1}var qa=(function(e,t,n){for(var i=e.length,o=0,l=new sl(t);o<i;++o)e[o]&&++l[e[o]-1];var u=new sl(t);for(o=1;o<t;++o)u[o]=u[o-1]+l[o-1]<<1;var f;if(n){f=new sl(1<<t);var h=15-t;for(o=0;o<i;++o)if(e[o])for(var p=o<<4|e[o],g=t-e[o],v=u[e[o]-1]++<<g,y=v|(1<<g)-1;v<=y;++v)f[Ip[v]>>h]=p}else for(f=new sl(i),o=0;o<i;++o)e[o]&&(f[o]=Ip[u[e[o]-1]++]>>15-e[o]);return f}),Mc=new ur(288);for(var Mt=0;Mt<144;++Mt)Mc[Mt]=8;for(var Mt=144;Mt<256;++Mt)Mc[Mt]=9;for(var Mt=256;Mt<280;++Mt)Mc[Mt]=7;for(var Mt=280;Mt<288;++Mt)Mc[Mt]=8;var H_=new ur(32);for(var Mt=0;Mt<32;++Mt)H_[Mt]=5;var Qge=qa(Mc,9,1),eme=qa(H_,5,1),jh=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},Dr=function(e,t,n){var i=t/8|0;return(e[i]|e[i+1]<<8)>>(t&7)&n},Wh=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},tme=function(e){return(e+7)/8|0},B_=function(e,t,n){return(t==null||t<0)&&(t=0),(n==null||n>e.length)&&(n=e.length),new ur(e.subarray(t,n))},nme=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Zn=function(e,t,n){var i=new Error(t||nme[e]);if(i.code=e,Error.captureStackTrace&&Error.captureStackTrace(i,Zn),!n)throw i;return i},nm=function(e,t,n,i){var o=e.length,l=0;if(!o||t.f&&!t.l)return n||new ur(0);var u=!n,f=u||t.i!=2,h=t.i;u&&(n=new ur(o*3));var p=function(ce){var F=n.length;if(ce>F){var j=new ur(Math.max(F*2,ce));j.set(n),n=j}},g=t.f||0,v=t.p||0,y=t.b||0,w=t.l,$=t.d,_=t.m,C=t.n,E=o*8;do{if(!w){g=Dr(e,v,1);var L=Dr(e,v+1,3);if(v+=3,L)if(L==1)w=Qge,$=eme,_=9,C=5;else if(L==2){var q=Dr(e,v,31)+257,X=Dr(e,v+10,15)+4,ie=q+Dr(e,v+5,31)+1;v+=14;for(var J=new ur(ie),U=new ur(19),K=0;K<X;++K)U[Yge[K]]=Dr(e,v+K*3,7);v+=X*3;for(var P=jh(U),O=(1<<P)-1,k=qa(U,P,1),K=0;K<ie;){var S=k[Dr(e,v,O)];v+=S&15;var D=S>>4;if(D<16)J[K++]=D;else{var R=0,B=0;for(D==16?(B=3+Dr(e,v,3),v+=2,R=J[K-1]):D==17?(B=3+Dr(e,v,7),v+=3):D==18&&(B=11+Dr(e,v,127),v+=7);B--;)J[K++]=R}}var ae=J.subarray(0,q),ve=J.subarray(q);_=jh(ae),C=jh(ve),w=qa(ae,_,1),$=qa(ve,C,1)}else Zn(1);else{var D=tme(v)+4,N=e[D-4]|e[D-3]<<8,I=D+N;if(I>o){h&&Zn(0);break}f&&p(y+N),n.set(e.subarray(D,I),y),t.b=y+=N,t.p=v=I*8,t.f=g;continue}if(v>E){h&&Zn(0);break}}f&&p(y+131072);for(var _e=(1<<_)-1,Be=(1<<C)-1,Ee=v;;Ee=v){var R=w[Wh(e,v)&_e],Ge=R>>4;if(v+=R&15,v>E){h&&Zn(0);break}if(R||Zn(2),Ge<256)n[y++]=Ge;else if(Ge==256){Ee=v,w=null;break}else{var Ue=Ge-254;if(Ge>264){var K=Ge-257,He=P_[K];Ue=Dr(e,v,(1<<He)-1)+z_[K],v+=He}var Re=$[Wh(e,v)&Be],z=Re>>4;Re||Zn(3),v+=Re&15;var ve=Zge[z];if(z>3){var He=I_[z];ve+=Wh(e,v)&(1<<He)-1,v+=He}if(v>E){h&&Zn(0);break}f&&p(y+131072);var Z=y+Ue;if(y<ve){var re=l-ve,le=Math.min(ve,Z);for(re+y<0&&Zn(3);y<le;++y)n[y]=i[re+y]}for(;y<Z;++y)n[y]=n[y-ve]}}t.l=w,t.p=Ee,t.b=y,t.f=g,w&&(g=1,t.m=_,t.d=$,t.n=C)}while(!g);return y!=n.length&&u?B_(n,0,y):n.subarray(0,y)},rme=new ur(0),ime=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Zn(6,"invalid gzip data");var t=e[3],n=10;t&4&&(n+=(e[10]|e[11]<<8)+2);for(var i=(t>>3&1)+(t>>4&1);i>0;i-=!e[n++]);return n+(t&2)},ome=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},sme=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Zn(6,"invalid zlib data"),(e[1]>>5&1)==1&&Zn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function lme(e,t){return nm(e,{i:2},t,t)}function ame(e,t){var n=ime(e);return n+8>e.length&&Zn(6,"invalid gzip data"),nm(e.subarray(n,-8),{i:2},new ur(ome(e)),t)}function cme(e,t){return nm(e.subarray(sme(e),-4),{i:2},t,t)}function ume(e,t){return e[0]==31&&e[1]==139&&e[2]==8?ame(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?lme(e,t):cme(e,t)}var Dp=typeof TextDecoder<"u"&&new TextDecoder,fme=0;try{Dp.decode(rme,{stream:!0}),fme=1}catch{}var dme=function(e){for(var t="",n=0;;){var i=e[n++],o=(i>127)+(i>223)+(i>239);if(n+o>e.length)return{s:t,r:B_(e,n-1)};o?o==3?(i=((i&15)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,t+=String.fromCharCode(55296|i>>10,56320|i&1023)):o&1?t+=String.fromCharCode((i&31)<<6|e[n++]&63):t+=String.fromCharCode((i&15)<<12|(e[n++]&63)<<6|e[n++]&63):t+=String.fromCharCode(i)}};function Qb(e,t){var n;if(Dp)return Dp.decode(e);var i=dme(e),o=i.s,n=i.r;return n.length&&Zn(8),o}const ew=()=>{},vn=()=>Promise.resolve();function hme(){const e=dr({state:new p_,waitForConnection:u,reconnect:o,ws:new EventTarget});e.state.filesMap=dr(e.state.filesMap),e.state.idMap=dr(e.state.idMap);let t;const n={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getResolvedProjectNames:()=>t.projects,getResolvedProjectLabels:()=>[],getModuleGraph:async(f,h)=>t.moduleGraph[f]?.[h],getUnhandledErrors:()=>t.unhandledErrors,getExternalResult:vn,getTransformResult:vn,onDone:ew,writeFile:vn,rerun:vn,rerunTask:vn,updateSnapshot:vn,resolveSnapshotPath:vn,snapshotSaved:vn,onAfterSuiteRun:vn,onCancel:vn,getCountOfFailedTests:()=>0,sendLog:vn,resolveSnapshotRawPath:vn,readSnapshotFile:vn,saveSnapshotFile:vn,readTestFile:async f=>t.sources[f],removeSnapshotFile:vn,onUnhandledError:ew,saveTestFile:vn,getProvidedContext:()=>({}),getTestFiles:vn};e.rpc=n;const i=Promise.resolve();function o(){l()}async function l(){const f=await fetch(window.METADATA_PATH),h=new Uint8Array(await f.arrayBuffer());if(h.length>=2&&h[0]===31&&h[1]===139){const g=Qb(ume(h));t=Ap(g)}else t=Ap(Qb(h));const p=new Event("open");e.ws.dispatchEvent(p)}l();function u(){return i}return e}const ft=(function(){return pr?hme():fP(Gge,{reactive:(t,n)=>n==="state"?dr(t):Vt(t),handlers:{onTestAnnotate(t,n){$e.recordTestArtifact(t,{type:"internal:annotation",annotation:n,location:n.location})},onTestArtifactRecord(t,n){$e.recordTestArtifact(t,n)},onTaskUpdate(t,n){$e.resumeRun(t,n),dd.value="running"},onSpecsCollected(t,n){$e.startTime=n||performance.now()},onFinished(t,n,i,o){$e.endRun(o),So.value=(n||[]).map(A_)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})})(),pt=Vt({}),ll=Ke("CONNECTING"),rm=Vt([]),Xt=Se(()=>{const e=Io.value;return e?Cr(e):void 0}),j_=Se(()=>Wg(Xt.value).map(e=>e?.logs||[]).flat()||[]);function Cr(e){const t=ft.state.idMap.get(e);return t||void 0}const pme=Se(()=>ll.value==="OPEN"),qh=Se(()=>ll.value==="CONNECTING");function gme(){return im(ft.state.getFiles())}function W_(e){delete e.result;const t=$e.nodes.get(e.id);if(t&&(t.state=void 0,e.mode="run",t.duration=void 0,Ac(e)))for(const n of e.tasks)W_(n)}function mme(e){const t=$e.nodes;e.forEach(n=>{delete n.result,Wg(n).forEach(o=>{if(delete o.result,t.has(o.id)){const l=t.get(o.id);l&&(l.state=void 0,l.mode="run",l.duration=void 0)}});const i=t.get(n.id);i&&(i.state=void 0,i.mode="run",i.duration=void 0,Wn(i)&&(i.collectDuration=void 0))})}function im(e){return mme(e),$e.startRun(),ft.rpc.rerun(e.map(t=>t.filepath),!0)}function vme(e){return W_(e),$e.startRun(),ft.rpc.rerunTask(e.id)}const gr=window.__vitest_browser_runner__;window.__vitest_ui_api__=qge;yt(()=>ft.ws,e=>{ll.value=pr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{ll.value="OPEN",ft.state.filesMap.clear();let[t,n,i,o]=await Promise.all([ft.rpc.getFiles(),ft.rpc.getConfig(),ft.rpc.getUnhandledErrors(),ft.rpc.getResolvedProjectLabels()]);n.standalone&&(t=(await ft.rpc.getTestFiles()).map(([{name:u,root:f},h])=>{const p=e_(h,f,u);return p.mode="skip",p})),rm.value=o.map(l=>l.name),$e.loadFiles(t,o),ft.state.collectFiles(t),$e.startRun(),So.value=(i||[]).map(A_),pt.value=n}),e.addEventListener("close",()=>{setTimeout(()=>{ll.value==="CONNECTING"&&(ll.value="CLOSED")},1e3)})},{immediate:!0});const yme=["aria-label","opacity","disabled","hover"],Tt=tt({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,n)=>(te(),ge("button",{"aria-label":e.title,role:"button",opacity:e.disabled?10:70,rounded:"",disabled:e.disabled,hover:e.disabled||e.active?"":"bg-active op100",class:ot(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":e.active}]])},[Bt(t.$slots,"default",{},()=>[Y("span",{class:ot(e.icon),ma:"",block:""},null,2)])],10,yme))}}),bme={h:"full",flex:"~ col"},wme={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},xme={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},Sme={class:"pointer-events-none","text-sm":""},_me={key:0},kme={id:"tester-container",relative:""},Tme=["data-scale"],tw=20,Cme=100,Eme=tt({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function n(p){const g=t[p];return lr.value[0]===g[0]&&lr.value[1]===g[1]}const{width:i,height:o}=rS();async function l(p){lr.value=t[p],gr?.provider==="webdriverio"&&R_()}const u=Se(()=>{if(gr?.provider==="webdriverio"){const[w,$]=lr.value;return{width:w,height:$}}const v=i.value*(fn.details.size/100)*(fn.details.browser/100)-tw,y=o.value-Cme;return{width:v,height:y}}),f=Se(()=>{if(gr?.provider==="webdriverio")return 1;const[p,g]=lr.value,{width:v,height:y}=u.value,w=v>p?1:v/p,$=y>g?1:y/g;return Math.min(1,w,$)}),h=Se(()=>{const p=u.value.width,g=lr.value[0];return`${Math.trunc((p+tw-g)/2)}px`});return(p,g)=>{const v=ir("tooltip");return te(),ge("div",bme,[Y("div",wme,[st(Ne(Tt,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:g[0]||(g[0]=y=>W(jge)())},null,512),[[Co,W(fn).navigation<=15],[v,"Show Navigation Panel",void 0,{bottom:!0}]]),g[5]||(g[5]=Y("div",{class:"i-carbon-content-delivery-network"},null,-1)),g[6]||(g[6]=Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),st(Ne(Tt,{title:"Show Details Panel",icon:"i-carbon:side-panel-close",onClick:g[1]||(g[1]=y=>Bi.value=!0)},null,512),[[Co,W(Tn)==="right"&&!W(Bi)],[v,"Show Details Panel",void 0,{bottom:!0}]])]),Y("div",xme,[st(Ne(Tt,{title:"Small mobile",icon:"i-carbon:mobile",active:n("small-mobile"),onClick:g[2]||(g[2]=y=>l("small-mobile"))},null,8,["active"]),[[v,"Small mobile",void 0,{bottom:!0}]]),st(Ne(Tt,{title:"Large mobile",icon:"i-carbon:mobile-add",active:n("large-mobile"),onClick:g[3]||(g[3]=y=>l("large-mobile"))},null,8,["active"]),[[v,"Large mobile",void 0,{bottom:!0}]]),st(Ne(Tt,{title:"Tablet",icon:"i-carbon:tablet",active:n("tablet"),onClick:g[4]||(g[4]=y=>l("tablet"))},null,8,["active"]),[[v,"Tablet",void 0,{bottom:!0}]]),Y("span",Sme,[Qe(Me(W(lr)[0])+"x"+Me(W(lr)[1])+"px ",1),f.value<1?(te(),ge("span",_me,"("+Me((f.value*100).toFixed(0))+"%)",1)):Fe("",!0)])]),Y("div",kme,[Y("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":f.value,style:Pt({"--viewport-width":`${W(lr)[0]}px`,"--viewport-height":`${W(lr)[1]}px`,"--tester-transform":`scale(${f.value})`,"--tester-margin-left":h.value})}," Select a test to run ",12,Tme)])])}}}),Ame=Xi(Eme,[["__scopeId","data-v-f70ca3ae"]]),hd=tt({__name:"DetailsHeaderButtons",setup(e){function t(n){return Tn.value==="right"?n==="hide"?"rotate-180":"":n==="hide"?"-rotate-90":"rotate-90"}return(n,i)=>{const o=ir("tooltip");return te(),ge(nt,null,[st(Ne(Tt,{title:`Switch panel position (${W(Tn)==="bottom"?"right":"bottom"})`,icon:"i-carbon-split-screen",class:ot({"rotate-90":W(Tn)==="right"}),onClick:W(Wge)},null,8,["title","class","onClick"]),[[o,`Switch panel position (${W(Tn)==="bottom"?"right":"bottom"})`,void 0,{bottom:!0}]]),W(Bi)?st((te(),We(Tt,{key:0,title:W(Tn)==="right"?"Hide Right Panel":"Hide Bottom Panel",icon:"i-carbon:side-panel-close",class:ot(t("hide")),onClick:W(Ige)},null,8,["title","class","onClick"])),[[o,W(Tn)==="right"?"Hide Right Panel":"Hide Bottom Panel",void 0,{bottom:!0}]]):Fe("",!0),st(Ne(Tt,{title:W(Tn)==="right"?"Show Right Panel":"Show Bottom Panel",icon:"i-carbon:side-panel-close",class:ot(t("show")),onClick:W(Dge)},null,8,["title","class","onClick"]),[[Co,!W(Bi)],[o,W(Tn)==="right"?"Show Right Panel":"Show Bottom Panel",void 0,{bottom:!0}]])],64)}}}),$me={p:"2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Nme=tt({__name:"ClosedDetailsHeader",setup(e){return(t,n)=>(te(),ge("div",$me,[n[0]||(n[0]=Y("div",{"flex-1":""},null,-1)),Ne(hd)]))}}),Mme={"text-2xl":""},Lme={"text-lg":"",op50:""},Ome=tt({__name:"ConnectionOverlay",setup(e){return(t,n)=>W(pme)?Fe("",!0):(te(),ge("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:n[0]||(n[0]=(...i)=>W(ft).reconnect&&W(ft).reconnect(...i))},[Y("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:ot(W(qh)?"animate-pulse":"")},[Y("div",{text:"5xl",class:ot(W(qh)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),Y("div",Mme,Me(W(qh)?"Connecting...":"Disconnected"),1),Y("div",Lme," Check your terminal or start a new server with `"+Me(W(gr)?`vitest --browser=${W(gr).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),Rme={h:"full",flex:"~ col"},Pme={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},nw=tt({__name:"Coverage",setup(e){return(t,n)=>(te(),ge("div",Rme,[Y("div",Pme,[n[0]||(n[0]=Y("div",{class:"i-carbon:folder-details-reference"},null,-1)),n[1]||(n[1]=Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage",-1)),W(gr)?(te(),We(hd,{key:0})):Fe("",!0)]),n[2]||(n[2]=Y("div",{"flex-auto":"","py-1":"","bg-white":""},[Y("iframe",{id:"vitest-ui-coverage",src:"./coverage/index.html"})],-1))]))}}),Ime={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},Dme={"font-bold":""},Fme={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},zme=["font-bold"],Hme={text:"red500/70"},Bme={key:1,text:"sm","mb-2":""},jme={"font-bold":""},Wme={key:2,text:"sm","mb-2":""},qme={"font-bold":""},Ume=tt({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,n)=>(te(),ge(nt,null,[Y("h4",Ime,[Y("span",Dme,[Qe(Me(e.error.name||e.error.nameStr||"Unknown Error"),1),e.error.message?(te(),ge(nt,{key:0},[Qe(":")],64)):Fe("",!0)]),Qe(" "+Me(e.error.message),1)]),e.error.stacks?.length?(te(),ge("p",Fme,[(te(!0),ge(nt,null,xn(e.error.stacks,(i,o)=>(te(),ge("span",{key:o,"whitespace-pre":"","font-bold":o===0?"":null},[Qe("❯ "+Me(i.method)+" "+Me(i.file)+":",1),Y("span",Hme,Me(i.line)+":"+Me(i.column),1),n[0]||(n[0]=Y("br",null,null,-1))],8,zme))),128))])):Fe("",!0),e.error.VITEST_TEST_PATH?(te(),ge("p",Bme,[n[1]||(n[1]=Qe(" This error originated in ",-1)),Y("span",jme,Me(e.error.VITEST_TEST_PATH),1),n[2]||(n[2]=Qe(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ",-1))])):Fe("",!0),e.error.VITEST_TEST_NAME?(te(),ge("div",Wme,[n[3]||(n[3]=Qe(" The latest test that might've caused the error is ",-1)),Y("span",qme,Me(e.error.VITEST_TEST_NAME),1),n[4]||(n[4]=Qe(". It might mean one of the following:",-1)),n[5]||(n[5]=Y("br",null,null,-1)),n[6]||(n[6]=Y("ul",null,[Y("li",null," The error was thrown, while Vitest was running this test. "),Y("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):Fe("",!0)],64))}}),Vme={"data-testid":"test-files-entry",grid:"~ cols-[min-content_1fr_min-content]","items-center":"",gap:"x-2 y-3",p:"x4",relative:"","font-light":"","w-80":"",op80:""},Gme={class:"number","data-testid":"num-files"},Kme={class:"number"},Yme={class:"number","text-purple-700":"","dark:text-purple-400":""},Xme={class:"number","text-red-700":"","dark:text-red-500":""},Jme={class:"number","text-red-700":"","dark:text-red-500":""},Zme={class:"number","text-red-700":"","dark:text-red-500":""},Qme={class:"number","data-testid":"run-time"},eve={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},tve={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},nve={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},rve=tt({__name:"TestFilesEntry",setup(e){return(t,n)=>(te(),ge(nt,null,[Y("div",Vme,[n[10]||(n[10]=Y("div",{"i-carbon-document":""},null,-1)),n[11]||(n[11]=Y("div",null,"Files",-1)),Y("div",Gme,Me(W($e).summary.files),1),W($e).summary.filesSuccess?(te(),ge(nt,{key:0},[n[0]||(n[0]=Y("div",{"i-carbon-checkmark":""},null,-1)),n[1]||(n[1]=Y("div",null,"Pass",-1)),Y("div",Kme,Me(W($e).summary.filesSuccess),1)],64)):Fe("",!0),W($e).summary.filesSkipped?(te(),ge(nt,{key:1},[n[2]||(n[2]=Y("div",{"i-carbon:redo":"","rotate-90":""},null,-1)),n[3]||(n[3]=Y("div",null," Skip ",-1)),Y("div",Yme,Me(W($e).summary.filesSkipped),1)],64)):Fe("",!0),W($e).summary.filesFailed?(te(),ge(nt,{key:2},[n[4]||(n[4]=Y("div",{"i-carbon-close":""},null,-1)),n[5]||(n[5]=Y("div",null," Fail ",-1)),Y("div",Xme,Me(W($e).summary.filesFailed),1)],64)):Fe("",!0),W($e).summary.filesSnapshotFailed?(te(),ge(nt,{key:3},[n[6]||(n[6]=Y("div",{"i-carbon-compare":""},null,-1)),n[7]||(n[7]=Y("div",null," Snapshot Fail ",-1)),Y("div",Jme,Me(W($e).summary.filesSnapshotFailed),1)],64)):Fe("",!0),W(So).length?(te(),ge(nt,{key:4},[n[8]||(n[8]=Y("div",{"i-carbon-checkmark-outline-error":""},null,-1)),n[9]||(n[9]=Y("div",null," Errors ",-1)),Y("div",Zme,Me(W(So).length),1)],64)):Fe("",!0),n[12]||(n[12]=Y("div",{"i-carbon-timer":""},null,-1)),n[13]||(n[13]=Y("div",null,"Time",-1)),Y("div",Qme,Me(W($e).summary.time),1)]),W(So).length?(te(),ge("div",eve,[n[17]||(n[17]=Y("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),Y("p",tve,[Qe(" Vitest caught "+Me(W(So).length)+" error"+Me(W(So).length>1?"s":"")+" during the test run.",1),n[14]||(n[14]=Y("br",null,null,-1)),n[15]||(n[15]=Qe(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ",-1))]),Y("details",nve,[n[16]||(n[16]=Y("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(te(!0),ge(nt,null,xn(W(So),(i,o)=>(te(),We(Ume,{key:o,error:i},null,8,["error"]))),128))])])):Fe("",!0)],64))}}),ive=Xi(rve,[["__scopeId","data-v-cfae3633"]]),ove={"p-2":"","text-center":"",flex:""},sve={"text-4xl":"","min-w-2em":""},lve={"text-md":""},is=tt({__name:"DashboardEntry",setup(e){return(t,n)=>(te(),ge("div",ove,[Y("div",null,[Y("div",sve,[Bt(t.$slots,"body")]),Y("div",lve,[Bt(t.$slots,"header")])])]))}}),ave={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},cve=tt({__name:"TestsEntry",setup(e){function t(n){Ze.success=!1,Ze.failed=!1,Ze.skipped=!1,Ze.slow=!1,n!=="total"&&(Ze[n]=!0)}return(n,i)=>(te(),ge("div",ave,[Ne(is,{"text-green-700":"","dark:text-green-500":"","data-testid":"pass-entry","cursor-pointer":"",hover:"op80",onClick:i[0]||(i[0]=o=>t("success"))},{header:je(()=>[...i[5]||(i[5]=[Qe(" Pass ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsSuccess),1)]),_:1}),Ne(is,{class:ot({"text-red-700 dark:text-red-500":W($e).summary.testsFailed,op50:!W($e).summary.testsFailed}),"data-testid":"fail-entry","cursor-pointer":"",hover:"op80",onClick:i[1]||(i[1]=o=>t("failed"))},{header:je(()=>[...i[6]||(i[6]=[Qe(" Fail ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsFailed),1)]),_:1},8,["class"]),W($e).summary.testsExpectedFail?(te(),We(is,{key:0,"text-cyan-700":"","dark:text-cyan-500":"","data-testid":"expected-fail-entry"},{header:je(()=>[...i[7]||(i[7]=[Qe(" Expected Fail ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsExpectedFail),1)]),_:1})):Fe("",!0),W($e).summary.testsSkipped?(te(),We(is,{key:1,"text-purple-700":"","dark:text-purple-400":"","data-testid":"skipped-entry","cursor-pointer":"",hover:"op80",onClick:i[2]||(i[2]=o=>t("skipped"))},{header:je(()=>[...i[8]||(i[8]=[Qe(" Skip ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsSkipped),1)]),_:1})):Fe("",!0),W($e).summary.testsTodo?(te(),We(is,{key:2,op50:"","data-testid":"todo-entry"},{header:je(()=>[...i[9]||(i[9]=[Qe(" Todo ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsTodo),1)]),_:1})):Fe("",!0),Ne(is,{tail:!0,"data-testid":"total-entry","cursor-pointer":"",hover:"op80",onClick:i[3]||(i[3]=o=>t("total"))},{header:je(()=>[...i[10]||(i[10]=[Qe(" Total ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.totalTests),1)]),_:1}),W($e).summary.testsSlow?(te(),We(is,{key:3,"text-yellow-700":"","dark:text-yellow-500":"","data-testid":"slow-entry","cursor-pointer":"",hover:"op80",onClick:i[4]||(i[4]=o=>t("slow"))},{header:je(()=>[...i[11]||(i[11]=[Qe(" Slow ",-1)])]),body:je(()=>[Qe(Me(W($e).summary.testsSlow),1)]),_:1})):Fe("",!0)]))}}),uve={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},fve={key:0,class:"text-gray-5"},dve={"aria-labelledby":"tests",m:"y-4 x-2"},hve=tt({__name:"TestsFilesContainer",setup(e){return(t,n)=>(te(),ge("div",uve,[W($e).summary.files===0&&W(ol)?(te(),ge("div",fve," No tests found ")):Fe("",!0),Y("section",dve,[Ne(cve)]),Ne(ive)]))}}),pve={h:"full",flex:"~ col"},gve={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},mve={class:"scrolls","flex-auto":"","py-1":""},rw=tt({__name:"Dashboard",setup(e){return(t,n)=>(te(),ge("div",pve,[Y("div",gve,[n[0]||(n[0]=Y("div",{class:"i-carbon-dashboard"},null,-1)),n[1]||(n[1]=Y("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard",-1)),W(gr)?(te(),We(hd,{key:0})):Fe("",!0)]),Y("div",mve,[Ne(hve)])]))}});var Uh,iw;function vve(){if(iw)return Uh;iw=1;var e=function(L){return t(L)&&!n(L)};function t(E){return!!E&&typeof E=="object"}function n(E){var L=Object.prototype.toString.call(E);return L==="[object RegExp]"||L==="[object Date]"||l(E)}var i=typeof Symbol=="function"&&Symbol.for,o=i?Symbol.for("react.element"):60103;function l(E){return E.$$typeof===o}function u(E){return Array.isArray(E)?[]:{}}function f(E,L){return L.clone!==!1&&L.isMergeableObject(E)?_(u(E),E,L):E}function h(E,L,D){return E.concat(L).map(function(N){return f(N,D)})}function p(E,L){if(!L.customMerge)return _;var D=L.customMerge(E);return typeof D=="function"?D:_}function g(E){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(E).filter(function(L){return Object.propertyIsEnumerable.call(E,L)}):[]}function v(E){return Object.keys(E).concat(g(E))}function y(E,L){try{return L in E}catch{return!1}}function w(E,L){return y(E,L)&&!(Object.hasOwnProperty.call(E,L)&&Object.propertyIsEnumerable.call(E,L))}function $(E,L,D){var N={};return D.isMergeableObject(E)&&v(E).forEach(function(I){N[I]=f(E[I],D)}),v(L).forEach(function(I){w(E,I)||(y(E,I)&&D.isMergeableObject(L[I])?N[I]=p(I,D)(E[I],L[I],D):N[I]=f(L[I],D))}),N}function _(E,L,D){D=D||{},D.arrayMerge=D.arrayMerge||h,D.isMergeableObject=D.isMergeableObject||e,D.cloneUnlessOtherwiseSpecified=f;var N=Array.isArray(L),I=Array.isArray(E),q=N===I;return q?N?D.arrayMerge(E,L,D):$(E,L,D):f(L,D)}_.all=function(L,D){if(!Array.isArray(L))throw new Error("first argument should be an array");return L.reduce(function(N,I){return _(N,I,D)},{})};var C=_;return Uh=C,Uh}var yve=vve();const bve=Jg(yve);function wve(e,t){let n;return(...i)=>{n!==void 0&&clearTimeout(n),n=setTimeout(()=>e(...i),t)}}var Fp="http://www.w3.org/1999/xhtml";const ow={svg:"http://www.w3.org/2000/svg",xhtml:Fp,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function pd(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),ow.hasOwnProperty(t)?{space:ow[t],local:e}:e}function xve(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Fp&&t.documentElement.namespaceURI===Fp?t.createElement(e):t.createElementNS(n,e)}}function Sve(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function q_(e){var t=pd(e);return(t.local?Sve:xve)(t)}function _ve(){}function om(e){return e==null?_ve:function(){return this.querySelector(e)}}function kve(e){typeof e!="function"&&(e=om(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var l=t[o],u=l.length,f=i[o]=new Array(u),h,p,g=0;g<u;++g)(h=l[g])&&(p=e.call(h,h.__data__,g,l))&&("__data__"in h&&(p.__data__=h.__data__),f[g]=p);return new vr(i,this._parents)}function Tve(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Cve(){return[]}function U_(e){return e==null?Cve:function(){return this.querySelectorAll(e)}}function Eve(e){return function(){return Tve(e.apply(this,arguments))}}function Ave(e){typeof e=="function"?e=Eve(e):e=U_(e);for(var t=this._groups,n=t.length,i=[],o=[],l=0;l<n;++l)for(var u=t[l],f=u.length,h,p=0;p<f;++p)(h=u[p])&&(i.push(e.call(h,h.__data__,p,u)),o.push(h));return new vr(i,o)}function V_(e){return function(){return this.matches(e)}}function G_(e){return function(t){return t.matches(e)}}var $ve=Array.prototype.find;function Nve(e){return function(){return $ve.call(this.children,e)}}function Mve(){return this.firstElementChild}function Lve(e){return this.select(e==null?Mve:Nve(typeof e=="function"?e:G_(e)))}var Ove=Array.prototype.filter;function Rve(){return Array.from(this.children)}function Pve(e){return function(){return Ove.call(this.children,e)}}function Ive(e){return this.selectAll(e==null?Rve:Pve(typeof e=="function"?e:G_(e)))}function Dve(e){typeof e!="function"&&(e=V_(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var l=t[o],u=l.length,f=i[o]=[],h,p=0;p<u;++p)(h=l[p])&&e.call(h,h.__data__,p,l)&&f.push(h);return new vr(i,this._parents)}function K_(e){return new Array(e.length)}function Fve(){return new vr(this._enter||this._groups.map(K_),this._parents)}function $f(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}$f.prototype={constructor:$f,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function zve(e){return function(){return e}}function Hve(e,t,n,i,o,l){for(var u=0,f,h=t.length,p=l.length;u<p;++u)(f=t[u])?(f.__data__=l[u],i[u]=f):n[u]=new $f(e,l[u]);for(;u<h;++u)(f=t[u])&&(o[u]=f)}function Bve(e,t,n,i,o,l,u){var f,h,p=new Map,g=t.length,v=l.length,y=new Array(g),w;for(f=0;f<g;++f)(h=t[f])&&(y[f]=w=u.call(h,h.__data__,f,t)+"",p.has(w)?o[f]=h:p.set(w,h));for(f=0;f<v;++f)w=u.call(e,l[f],f,l)+"",(h=p.get(w))?(i[f]=h,h.__data__=l[f],p.delete(w)):n[f]=new $f(e,l[f]);for(f=0;f<g;++f)(h=t[f])&&p.get(y[f])===h&&(o[f]=h)}function jve(e){return e.__data__}function Wve(e,t){if(!arguments.length)return Array.from(this,jve);var n=t?Bve:Hve,i=this._parents,o=this._groups;typeof e!="function"&&(e=zve(e));for(var l=o.length,u=new Array(l),f=new Array(l),h=new Array(l),p=0;p<l;++p){var g=i[p],v=o[p],y=v.length,w=qve(e.call(g,g&&g.__data__,p,i)),$=w.length,_=f[p]=new Array($),C=u[p]=new Array($),E=h[p]=new Array(y);n(g,v,_,C,E,w,t);for(var L=0,D=0,N,I;L<$;++L)if(N=_[L]){for(L>=D&&(D=L+1);!(I=C[D])&&++D<$;);N._next=I||null}}return u=new vr(u,i),u._enter=f,u._exit=h,u}function qve(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Uve(){return new vr(this._exit||this._groups.map(K_),this._parents)}function Vve(e,t,n){var i=this.enter(),o=this,l=this.exit();return typeof e=="function"?(i=e(i),i&&(i=i.selection())):i=i.append(e+""),t!=null&&(o=t(o),o&&(o=o.selection())),n==null?l.remove():n(l),i&&o?i.merge(o).order():o}function Gve(e){for(var t=e.selection?e.selection():e,n=this._groups,i=t._groups,o=n.length,l=i.length,u=Math.min(o,l),f=new Array(o),h=0;h<u;++h)for(var p=n[h],g=i[h],v=p.length,y=f[h]=new Array(v),w,$=0;$<v;++$)(w=p[$]||g[$])&&(y[$]=w);for(;h<o;++h)f[h]=n[h];return new vr(f,this._parents)}function Kve(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i=e[t],o=i.length-1,l=i[o],u;--o>=0;)(u=i[o])&&(l&&u.compareDocumentPosition(l)^4&&l.parentNode.insertBefore(u,l),l=u);return this}function Yve(e){e||(e=Xve);function t(v,y){return v&&y?e(v.__data__,y.__data__):!v-!y}for(var n=this._groups,i=n.length,o=new Array(i),l=0;l<i;++l){for(var u=n[l],f=u.length,h=o[l]=new Array(f),p,g=0;g<f;++g)(p=u[g])&&(h[g]=p);h.sort(t)}return new vr(o,this._parents).order()}function Xve(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Jve(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Zve(){return Array.from(this)}function Qve(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],o=0,l=i.length;o<l;++o){var u=i[o];if(u)return u}return null}function eye(){let e=0;for(const t of this)++e;return e}function tye(){return!this.node()}function nye(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var o=t[n],l=0,u=o.length,f;l<u;++l)(f=o[l])&&e.call(f,f.__data__,l,o);return this}function rye(e){return function(){this.removeAttribute(e)}}function iye(e){return function(){this.removeAttributeNS(e.space,e.local)}}function oye(e,t){return function(){this.setAttribute(e,t)}}function sye(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function lye(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function aye(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function cye(e,t){var n=pd(e);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((t==null?n.local?iye:rye:typeof t=="function"?n.local?aye:lye:n.local?sye:oye)(n,t))}function Y_(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function uye(e){return function(){this.style.removeProperty(e)}}function fye(e,t,n){return function(){this.style.setProperty(e,t,n)}}function dye(e,t,n){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function hye(e,t,n){return arguments.length>1?this.each((t==null?uye:typeof t=="function"?dye:fye)(e,t,n??"")):Ll(this.node(),e)}function Ll(e,t){return e.style.getPropertyValue(t)||Y_(e).getComputedStyle(e,null).getPropertyValue(t)}function pye(e){return function(){delete this[e]}}function gye(e,t){return function(){this[e]=t}}function mye(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function vye(e,t){return arguments.length>1?this.each((t==null?pye:typeof t=="function"?mye:gye)(e,t)):this.node()[e]}function X_(e){return e.trim().split(/^|\s+/)}function sm(e){return e.classList||new J_(e)}function J_(e){this._node=e,this._names=X_(e.getAttribute("class")||"")}J_.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Z_(e,t){for(var n=sm(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function Q_(e,t){for(var n=sm(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function yye(e){return function(){Z_(this,e)}}function bye(e){return function(){Q_(this,e)}}function wye(e,t){return function(){(t.apply(this,arguments)?Z_:Q_)(this,e)}}function xye(e,t){var n=X_(e+"");if(arguments.length<2){for(var i=sm(this.node()),o=-1,l=n.length;++o<l;)if(!i.contains(n[o]))return!1;return!0}return this.each((typeof t=="function"?wye:t?yye:bye)(n,t))}function Sye(){this.textContent=""}function _ye(e){return function(){this.textContent=e}}function kye(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Tye(e){return arguments.length?this.each(e==null?Sye:(typeof e=="function"?kye:_ye)(e)):this.node().textContent}function Cye(){this.innerHTML=""}function Eye(e){return function(){this.innerHTML=e}}function Aye(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function $ye(e){return arguments.length?this.each(e==null?Cye:(typeof e=="function"?Aye:Eye)(e)):this.node().innerHTML}function Nye(){this.nextSibling&&this.parentNode.appendChild(this)}function Mye(){return this.each(Nye)}function Lye(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Oye(){return this.each(Lye)}function Rye(e){var t=typeof e=="function"?e:q_(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Pye(){return null}function Iye(e,t){var n=typeof e=="function"?e:q_(e),i=t==null?Pye:typeof t=="function"?t:om(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function Dye(){var e=this.parentNode;e&&e.removeChild(this)}function Fye(){return this.each(Dye)}function zye(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Hye(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Bye(e){return this.select(e?Hye:zye)}function jye(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Wye(e){return function(t){e.call(this,t,this.__data__)}}function qye(e){return e.trim().split(/^|\s+/).map(function(t){var n="",i=t.indexOf(".");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{type:t,name:n}})}function Uye(e){return function(){var t=this.__on;if(t){for(var n=0,i=-1,o=t.length,l;n<o;++n)l=t[n],(!e.type||l.type===e.type)&&l.name===e.name?this.removeEventListener(l.type,l.listener,l.options):t[++i]=l;++i?t.length=i:delete this.__on}}}function Vye(e,t,n){return function(){var i=this.__on,o,l=Wye(t);if(i){for(var u=0,f=i.length;u<f;++u)if((o=i[u]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=l,o.options=n),o.value=t;return}}this.addEventListener(e.type,l,n),o={type:e.type,name:e.name,value:t,listener:l,options:n},i?i.push(o):this.__on=[o]}}function Gye(e,t,n){var i=qye(e+""),o,l=i.length,u;if(arguments.length<2){var f=this.node().__on;if(f){for(var h=0,p=f.length,g;h<p;++h)for(o=0,g=f[h];o<l;++o)if((u=i[o]).type===g.type&&u.name===g.name)return g.value}return}for(f=t?Vye:Uye,o=0;o<l;++o)this.each(f(i[o],t,n));return this}function ek(e,t,n){var i=Y_(e),o=i.CustomEvent;typeof o=="function"?o=new o(t,n):(o=i.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function Kye(e,t){return function(){return ek(this,e,t)}}function Yye(e,t){return function(){return ek(this,e,t.apply(this,arguments))}}function Xye(e,t){return this.each((typeof t=="function"?Yye:Kye)(e,t))}function*Jye(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],o=0,l=i.length,u;o<l;++o)(u=i[o])&&(yield u)}var tk=[null];function vr(e,t){this._groups=e,this._parents=t}function Lc(){return new vr([[document.documentElement]],tk)}function Zye(){return this}vr.prototype=Lc.prototype={constructor:vr,select:kve,selectAll:Ave,selectChild:Lve,selectChildren:Ive,filter:Dve,data:Wve,enter:Fve,exit:Uve,join:Vve,merge:Gve,selection:Zye,order:Kve,sort:Yve,call:Jve,nodes:Zve,node:Qve,size:eye,empty:tye,each:nye,attr:cye,style:hye,property:vye,classed:xye,text:Tye,html:$ye,raise:Mye,lower:Oye,append:Rye,insert:Iye,remove:Fye,clone:Bye,datum:jye,on:Gye,dispatch:Xye,[Symbol.iterator]:Jye};function er(e){return typeof e=="string"?new vr([[document.querySelector(e)]],[document.documentElement]):new vr([[e]],tk)}function Qye(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Li(e,t){if(e=Qye(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,i=i.matrixTransform(t.getScreenCTM().inverse()),[i.x,i.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}var Ol=class Ni{x;y;static of([t,n]){return new Ni(t,n)}constructor(t,n){this.x=t,this.y=n}add(t){return new Ni(this.x+t.x,this.y+t.y)}subtract(t){return new Ni(this.x-t.x,this.y-t.y)}multiply(t){return new Ni(this.x*t,this.y*t)}divide(t){return new Ni(this.x/t,this.y/t)}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-t.x*this.y}hadamard(t){return new Ni(this.x*t.x,this.y*t.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const t=this.length();return new Ni(this.x/t,this.y/t)}rotateByRadians(t){const n=Math.cos(t),i=Math.sin(t);return new Ni(this.x*n-this.y*i,this.x*i+this.y*n)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}},e0e={value:()=>{}};function Oc(){for(var e=0,t=arguments.length,n={},i;e<t;++e){if(!(i=arguments[e]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new Gu(n)}function Gu(e){this._=e}function t0e(e,t){return e.trim().split(/^|\s+/).map(function(n){var i="",o=n.indexOf(".");if(o>=0&&(i=n.slice(o+1),n=n.slice(0,o)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}Gu.prototype=Oc.prototype={constructor:Gu,on:function(e,t){var n=this._,i=t0e(e+"",n),o,l=-1,u=i.length;if(arguments.length<2){for(;++l<u;)if((o=(e=i[l]).type)&&(o=n0e(n[o],e.name)))return o;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++l<u;)if(o=(e=i[l]).type)n[o]=sw(n[o],e.name,t);else if(t==null)for(o in n)n[o]=sw(n[o],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Gu(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var n=new Array(o),i=0,o,l;i<o;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(l=this._[e],i=0,o=l.length;i<o;++i)l[i].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],o=0,l=i.length;o<l;++o)i[o].value.apply(t,n)}};function n0e(e,t){for(var n=0,i=e.length,o;n<i;++n)if((o=e[n]).name===t)return o.value}function sw(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=e0e,e=e.slice(0,i).concat(e.slice(i+1));break}return n!=null&&e.push({name:t,value:n}),e}const r0e={passive:!1},hc={capture:!0,passive:!1};function Vh(e){e.stopImmediatePropagation()}function bl(e){e.preventDefault(),e.stopImmediatePropagation()}function nk(e){var t=e.document.documentElement,n=er(e).on("dragstart.drag",bl,hc);"onselectstart"in t?n.on("selectstart.drag",bl,hc):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function rk(e,t){var n=e.document.documentElement,i=er(e).on("dragstart.drag",null);t&&(i.on("click.drag",bl,hc),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const Au=e=>()=>e;function zp(e,{sourceEvent:t,subject:n,target:i,identifier:o,active:l,x:u,y:f,dx:h,dy:p,dispatch:g}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:l,enumerable:!0,configurable:!0},x:{value:u,enumerable:!0,configurable:!0},y:{value:f,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:g}})}zp.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function i0e(e){return!e.ctrlKey&&!e.button}function o0e(){return this.parentNode}function s0e(e,t){return t??{x:e.x,y:e.y}}function l0e(){return navigator.maxTouchPoints||"ontouchstart"in this}function a0e(){var e=i0e,t=o0e,n=s0e,i=l0e,o={},l=Oc("start","drag","end"),u=0,f,h,p,g,v=0;function y(N){N.on("mousedown.drag",w).filter(i).on("touchstart.drag",C).on("touchmove.drag",E,r0e).on("touchend.drag touchcancel.drag",L).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(N,I){if(!(g||!e.call(this,N,I))){var q=D(this,t.call(this,N,I),N,I,"mouse");q&&(er(N.view).on("mousemove.drag",$,hc).on("mouseup.drag",_,hc),nk(N.view),Vh(N),p=!1,f=N.clientX,h=N.clientY,q("start",N))}}function $(N){if(bl(N),!p){var I=N.clientX-f,q=N.clientY-h;p=I*I+q*q>v}o.mouse("drag",N)}function _(N){er(N.view).on("mousemove.drag mouseup.drag",null),rk(N.view,p),bl(N),o.mouse("end",N)}function C(N,I){if(e.call(this,N,I)){var q=N.changedTouches,X=t.call(this,N,I),ie=q.length,J,U;for(J=0;J<ie;++J)(U=D(this,X,N,I,q[J].identifier,q[J]))&&(Vh(N),U("start",N,q[J]))}}function E(N){var I=N.changedTouches,q=I.length,X,ie;for(X=0;X<q;++X)(ie=o[I[X].identifier])&&(bl(N),ie("drag",N,I[X]))}function L(N){var I=N.changedTouches,q=I.length,X,ie;for(g&&clearTimeout(g),g=setTimeout(function(){g=null},500),X=0;X<q;++X)(ie=o[I[X].identifier])&&(Vh(N),ie("end",N,I[X]))}function D(N,I,q,X,ie,J){var U=l.copy(),K=Li(J||q,I),P,O,k;if((k=n.call(N,new zp("beforestart",{sourceEvent:q,target:y,identifier:ie,active:u,x:K[0],y:K[1],dx:0,dy:0,dispatch:U}),X))!=null)return P=k.x-K[0]||0,O=k.y-K[1]||0,function S(R,B,ae){var ve=K,_e;switch(R){case"start":o[ie]=S,_e=u++;break;case"end":delete o[ie],--u;case"drag":K=Li(ae||B,I),_e=u;break}U.call(R,N,new zp(R,{sourceEvent:B,subject:k,target:y,identifier:ie,active:_e,x:K[0]+P,y:K[1]+O,dx:K[0]-ve[0],dy:K[1]-ve[1],dispatch:U}),X)}}return y.filter=function(N){return arguments.length?(e=typeof N=="function"?N:Au(!!N),y):e},y.container=function(N){return arguments.length?(t=typeof N=="function"?N:Au(N),y):t},y.subject=function(N){return arguments.length?(n=typeof N=="function"?N:Au(N),y):n},y.touchable=function(N){return arguments.length?(i=typeof N=="function"?N:Au(!!N),y):i},y.on=function(){var N=l.on.apply(l,arguments);return N===l?y:N},y.clickDistance=function(N){return arguments.length?(v=(N=+N)*N,y):Math.sqrt(v)},y}function lm(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ik(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function Rc(){}var pc=.7,Nf=1/pc,wl="\\s*([+-]?\\d+)\\s*",gc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",di="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c0e=/^#([0-9a-f]{3,8})$/,u0e=new RegExp(`^rgb\\(${wl},${wl},${wl}\\)$`),f0e=new RegExp(`^rgb\\(${di},${di},${di}\\)$`),d0e=new RegExp(`^rgba\\(${wl},${wl},${wl},${gc}\\)$`),h0e=new RegExp(`^rgba\\(${di},${di},${di},${gc}\\)$`),p0e=new RegExp(`^hsl\\(${gc},${di},${di}\\)$`),g0e=new RegExp(`^hsla\\(${gc},${di},${di},${gc}\\)$`),lw={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};lm(Rc,mc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:aw,formatHex:aw,formatHex8:m0e,formatHsl:v0e,formatRgb:cw,toString:cw});function aw(){return this.rgb().formatHex()}function m0e(){return this.rgb().formatHex8()}function v0e(){return ok(this).formatHsl()}function cw(){return this.rgb().formatRgb()}function mc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=c0e.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?uw(t):n===3?new nr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?$u(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?$u(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=u0e.exec(e))?new nr(t[1],t[2],t[3],1):(t=f0e.exec(e))?new nr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=d0e.exec(e))?$u(t[1],t[2],t[3],t[4]):(t=h0e.exec(e))?$u(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=p0e.exec(e))?hw(t[1],t[2]/100,t[3]/100,1):(t=g0e.exec(e))?hw(t[1],t[2]/100,t[3]/100,t[4]):lw.hasOwnProperty(e)?uw(lw[e]):e==="transparent"?new nr(NaN,NaN,NaN,0):null}function uw(e){return new nr(e>>16&255,e>>8&255,e&255,1)}function $u(e,t,n,i){return i<=0&&(e=t=n=NaN),new nr(e,t,n,i)}function y0e(e){return e instanceof Rc||(e=mc(e)),e?(e=e.rgb(),new nr(e.r,e.g,e.b,e.opacity)):new nr}function Hp(e,t,n,i){return arguments.length===1?y0e(e):new nr(e,t,n,i??1)}function nr(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}lm(nr,Hp,ik(Rc,{brighter(e){return e=e==null?Nf:Math.pow(Nf,e),new nr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?pc:Math.pow(pc,e),new nr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new nr(vs(this.r),vs(this.g),vs(this.b),Mf(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:fw,formatHex:fw,formatHex8:b0e,formatRgb:dw,toString:dw}));function fw(){return`#${fs(this.r)}${fs(this.g)}${fs(this.b)}`}function b0e(){return`#${fs(this.r)}${fs(this.g)}${fs(this.b)}${fs((isNaN(this.opacity)?1:this.opacity)*255)}`}function dw(){const e=Mf(this.opacity);return`${e===1?"rgb(":"rgba("}${vs(this.r)}, ${vs(this.g)}, ${vs(this.b)}${e===1?")":`, ${e})`}`}function Mf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function vs(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function fs(e){return e=vs(e),(e<16?"0":"")+e.toString(16)}function hw(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Br(e,t,n,i)}function ok(e){if(e instanceof Br)return new Br(e.h,e.s,e.l,e.opacity);if(e instanceof Rc||(e=mc(e)),!e)return new Br;if(e instanceof Br)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,o=Math.min(t,n,i),l=Math.max(t,n,i),u=NaN,f=l-o,h=(l+o)/2;return f?(t===l?u=(n-i)/f+(n<i)*6:n===l?u=(i-t)/f+2:u=(t-n)/f+4,f/=h<.5?l+o:2-l-o,u*=60):f=h>0&&h<1?0:u,new Br(u,f,h,e.opacity)}function w0e(e,t,n,i){return arguments.length===1?ok(e):new Br(e,t,n,i??1)}function Br(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}lm(Br,w0e,ik(Rc,{brighter(e){return e=e==null?Nf:Math.pow(Nf,e),new Br(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?pc:Math.pow(pc,e),new Br(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i;return new nr(Gh(e>=240?e-240:e+120,o,i),Gh(e,o,i),Gh(e<120?e+240:e-120,o,i),this.opacity)},clamp(){return new Br(pw(this.h),Nu(this.s),Nu(this.l),Mf(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Mf(this.opacity);return`${e===1?"hsl(":"hsla("}${pw(this.h)}, ${Nu(this.s)*100}%, ${Nu(this.l)*100}%${e===1?")":`, ${e})`}`}}));function pw(e){return e=(e||0)%360,e<0?e+360:e}function Nu(e){return Math.max(0,Math.min(1,e||0))}function Gh(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const sk=e=>()=>e;function x0e(e,t){return function(n){return e+n*t}}function S0e(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}function _0e(e){return(e=+e)==1?lk:function(t,n){return n-t?S0e(t,n,e):sk(isNaN(t)?n:t)}}function lk(e,t){var n=t-e;return n?x0e(e,n):sk(isNaN(e)?t:e)}const gw=(function e(t){var n=_0e(t);function i(o,l){var u=n((o=Hp(o)).r,(l=Hp(l)).r),f=n(o.g,l.g),h=n(o.b,l.b),p=lk(o.opacity,l.opacity);return function(g){return o.r=u(g),o.g=f(g),o.b=h(g),o.opacity=p(g),o+""}}return i.gamma=e,i})(1);function _o(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Bp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Kh=new RegExp(Bp.source,"g");function k0e(e){return function(){return e}}function T0e(e){return function(t){return e(t)+""}}function C0e(e,t){var n=Bp.lastIndex=Kh.lastIndex=0,i,o,l,u=-1,f=[],h=[];for(e=e+"",t=t+"";(i=Bp.exec(e))&&(o=Kh.exec(t));)(l=o.index)>n&&(l=t.slice(n,l),f[u]?f[u]+=l:f[++u]=l),(i=i[0])===(o=o[0])?f[u]?f[u]+=o:f[++u]=o:(f[++u]=null,h.push({i:u,x:_o(i,o)})),n=Kh.lastIndex;return n<t.length&&(l=t.slice(n),f[u]?f[u]+=l:f[++u]=l),f.length<2?h[0]?T0e(h[0].x):k0e(t):(t=h.length,function(p){for(var g=0,v;g<t;++g)f[(v=h[g]).i]=v.x(p);return f.join("")})}var mw=180/Math.PI,jp={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ak(e,t,n,i,o,l){var u,f,h;return(u=Math.sqrt(e*e+t*t))&&(e/=u,t/=u),(h=e*n+t*i)&&(n-=e*h,i-=t*h),(f=Math.sqrt(n*n+i*i))&&(n/=f,i/=f,h/=f),e*i<t*n&&(e=-e,t=-t,h=-h,u=-u),{translateX:o,translateY:l,rotate:Math.atan2(t,e)*mw,skewX:Math.atan(h)*mw,scaleX:u,scaleY:f}}var Mu;function E0e(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?jp:ak(t.a,t.b,t.c,t.d,t.e,t.f)}function A0e(e){return e==null||(Mu||(Mu=document.createElementNS("http://www.w3.org/2000/svg","g")),Mu.setAttribute("transform",e),!(e=Mu.transform.baseVal.consolidate()))?jp:(e=e.matrix,ak(e.a,e.b,e.c,e.d,e.e,e.f))}function ck(e,t,n,i){function o(p){return p.length?p.pop()+" ":""}function l(p,g,v,y,w,$){if(p!==v||g!==y){var _=w.push("translate(",null,t,null,n);$.push({i:_-4,x:_o(p,v)},{i:_-2,x:_o(g,y)})}else(v||y)&&w.push("translate("+v+t+y+n)}function u(p,g,v,y){p!==g?(p-g>180?g+=360:g-p>180&&(p+=360),y.push({i:v.push(o(v)+"rotate(",null,i)-2,x:_o(p,g)})):g&&v.push(o(v)+"rotate("+g+i)}function f(p,g,v,y){p!==g?y.push({i:v.push(o(v)+"skewX(",null,i)-2,x:_o(p,g)}):g&&v.push(o(v)+"skewX("+g+i)}function h(p,g,v,y,w,$){if(p!==v||g!==y){var _=w.push(o(w)+"scale(",null,",",null,")");$.push({i:_-4,x:_o(p,v)},{i:_-2,x:_o(g,y)})}else(v!==1||y!==1)&&w.push(o(w)+"scale("+v+","+y+")")}return function(p,g){var v=[],y=[];return p=e(p),g=e(g),l(p.translateX,p.translateY,g.translateX,g.translateY,v,y),u(p.rotate,g.rotate,v,y),f(p.skewX,g.skewX,v,y),h(p.scaleX,p.scaleY,g.scaleX,g.scaleY,v,y),p=g=null,function(w){for(var $=-1,_=y.length,C;++$<_;)v[(C=y[$]).i]=C.x(w);return v.join("")}}}var $0e=ck(E0e,"px, ","px)","deg)"),N0e=ck(A0e,", ",")",")"),M0e=1e-12;function vw(e){return((e=Math.exp(e))+1/e)/2}function L0e(e){return((e=Math.exp(e))-1/e)/2}function O0e(e){return((e=Math.exp(2*e))-1)/(e+1)}const R0e=(function e(t,n,i){function o(l,u){var f=l[0],h=l[1],p=l[2],g=u[0],v=u[1],y=u[2],w=g-f,$=v-h,_=w*w+$*$,C,E;if(_<M0e)E=Math.log(y/p)/t,C=function(X){return[f+X*w,h+X*$,p*Math.exp(t*X*E)]};else{var L=Math.sqrt(_),D=(y*y-p*p+i*_)/(2*p*n*L),N=(y*y-p*p-i*_)/(2*y*n*L),I=Math.log(Math.sqrt(D*D+1)-D),q=Math.log(Math.sqrt(N*N+1)-N);E=(q-I)/t,C=function(X){var ie=X*E,J=vw(I),U=p/(n*L)*(J*O0e(t*ie+I)-L0e(I));return[f+U*w,h+U*$,p*J/vw(t*ie+I)]}}return C.duration=E*1e3*t/Math.SQRT2,C}return o.rho=function(l){var u=Math.max(.001,+l),f=u*u,h=f*f;return e(u,f,h)},o})(Math.SQRT2,2,4);var Rl=0,Na=0,ka=0,uk=1e3,Lf,Ma,Of=0,Ss=0,gd=0,vc=typeof performance=="object"&&performance.now?performance:Date,fk=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function am(){return Ss||(fk(P0e),Ss=vc.now()+gd)}function P0e(){Ss=0}function Rf(){this._call=this._time=this._next=null}Rf.prototype=cm.prototype={constructor:Rf,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?am():+n)+(t==null?0:+t),!this._next&&Ma!==this&&(Ma?Ma._next=this:Lf=this,Ma=this),this._call=e,this._time=n,Wp()},stop:function(){this._call&&(this._call=null,this._time=1/0,Wp())}};function cm(e,t,n){var i=new Rf;return i.restart(e,t,n),i}function I0e(){am(),++Rl;for(var e=Lf,t;e;)(t=Ss-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Rl}function yw(){Ss=(Of=vc.now())+gd,Rl=Na=0;try{I0e()}finally{Rl=0,F0e(),Ss=0}}function D0e(){var e=vc.now(),t=e-Of;t>uk&&(gd-=t,Of=e)}function F0e(){for(var e,t=Lf,n,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Lf=n);Ma=e,Wp(i)}function Wp(e){if(!Rl){Na&&(Na=clearTimeout(Na));var t=e-Ss;t>24?(e<1/0&&(Na=setTimeout(yw,e-vc.now()-gd)),ka&&(ka=clearInterval(ka))):(ka||(Of=vc.now(),ka=setInterval(D0e,uk)),Rl=1,fk(yw))}}function bw(e,t,n){var i=new Rf;return t=t==null?0:+t,i.restart(o=>{i.stop(),e(o+t)},t,n),i}var z0e=Oc("start","end","cancel","interrupt"),H0e=[],dk=0,ww=1,qp=2,Ku=3,xw=4,Up=5,Yu=6;function md(e,t,n,i,o,l){var u=e.__transition;if(!u)e.__transition={};else if(n in u)return;B0e(e,n,{name:t,index:i,group:o,on:z0e,tween:H0e,time:l.time,delay:l.delay,duration:l.duration,ease:l.ease,timer:null,state:dk})}function um(e,t){var n=Xr(e,t);if(n.state>dk)throw new Error("too late; already scheduled");return n}function mi(e,t){var n=Xr(e,t);if(n.state>Ku)throw new Error("too late; already running");return n}function Xr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function B0e(e,t,n){var i=e.__transition,o;i[t]=n,n.timer=cm(l,0,n.time);function l(p){n.state=ww,n.timer.restart(u,n.delay,n.time),n.delay<=p&&u(p-n.delay)}function u(p){var g,v,y,w;if(n.state!==ww)return h();for(g in i)if(w=i[g],w.name===n.name){if(w.state===Ku)return bw(u);w.state===xw?(w.state=Yu,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete i[g]):+g<t&&(w.state=Yu,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete i[g])}if(bw(function(){n.state===Ku&&(n.state=xw,n.timer.restart(f,n.delay,n.time),f(p))}),n.state=qp,n.on.call("start",e,e.__data__,n.index,n.group),n.state===qp){for(n.state=Ku,o=new Array(y=n.tween.length),g=0,v=-1;g<y;++g)(w=n.tween[g].value.call(e,e.__data__,n.index,n.group))&&(o[++v]=w);o.length=v+1}}function f(p){for(var g=p<n.duration?n.ease.call(null,p/n.duration):(n.timer.restart(h),n.state=Up,1),v=-1,y=o.length;++v<y;)o[v].call(e,g);n.state===Up&&(n.on.call("end",e,e.__data__,n.index,n.group),h())}function h(){n.state=Yu,n.timer.stop(),delete i[t];for(var p in i)return;delete e.__transition}}function Xu(e,t){var n=e.__transition,i,o,l=!0,u;if(n){t=t==null?null:t+"";for(u in n){if((i=n[u]).name!==t){l=!1;continue}o=i.state>qp&&i.state<Up,i.state=Yu,i.timer.stop(),i.on.call(o?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete n[u]}l&&delete e.__transition}}function j0e(e){return this.each(function(){Xu(this,e)})}function W0e(e,t){var n,i;return function(){var o=mi(this,e),l=o.tween;if(l!==n){i=n=l;for(var u=0,f=i.length;u<f;++u)if(i[u].name===t){i=i.slice(),i.splice(u,1);break}}o.tween=i}}function q0e(e,t,n){var i,o;if(typeof n!="function")throw new Error;return function(){var l=mi(this,e),u=l.tween;if(u!==i){o=(i=u).slice();for(var f={name:t,value:n},h=0,p=o.length;h<p;++h)if(o[h].name===t){o[h]=f;break}h===p&&o.push(f)}l.tween=o}}function U0e(e,t){var n=this._id;if(e+="",arguments.length<2){for(var i=Xr(this.node(),n).tween,o=0,l=i.length,u;o<l;++o)if((u=i[o]).name===e)return u.value;return null}return this.each((t==null?W0e:q0e)(n,e,t))}function fm(e,t,n){var i=e._id;return e.each(function(){var o=mi(this,i);(o.value||(o.value={}))[t]=n.apply(this,arguments)}),function(o){return Xr(o,i).value[t]}}function hk(e,t){var n;return(typeof t=="number"?_o:t instanceof mc?gw:(n=mc(t))?(t=n,gw):C0e)(e,t)}function V0e(e){return function(){this.removeAttribute(e)}}function G0e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function K0e(e,t,n){var i,o=n+"",l;return function(){var u=this.getAttribute(e);return u===o?null:u===i?l:l=t(i=u,n)}}function Y0e(e,t,n){var i,o=n+"",l;return function(){var u=this.getAttributeNS(e.space,e.local);return u===o?null:u===i?l:l=t(i=u,n)}}function X0e(e,t,n){var i,o,l;return function(){var u,f=n(this),h;return f==null?void this.removeAttribute(e):(u=this.getAttribute(e),h=f+"",u===h?null:u===i&&h===o?l:(o=h,l=t(i=u,f)))}}function J0e(e,t,n){var i,o,l;return function(){var u,f=n(this),h;return f==null?void this.removeAttributeNS(e.space,e.local):(u=this.getAttributeNS(e.space,e.local),h=f+"",u===h?null:u===i&&h===o?l:(o=h,l=t(i=u,f)))}}function Z0e(e,t){var n=pd(e),i=n==="transform"?N0e:hk;return this.attrTween(e,typeof t=="function"?(n.local?J0e:X0e)(n,i,fm(this,"attr."+e,t)):t==null?(n.local?G0e:V0e)(n):(n.local?Y0e:K0e)(n,i,t))}function Q0e(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function ebe(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function tbe(e,t){var n,i;function o(){var l=t.apply(this,arguments);return l!==i&&(n=(i=l)&&ebe(e,l)),n}return o._value=t,o}function nbe(e,t){var n,i;function o(){var l=t.apply(this,arguments);return l!==i&&(n=(i=l)&&Q0e(e,l)),n}return o._value=t,o}function rbe(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var i=pd(e);return this.tween(n,(i.local?tbe:nbe)(i,t))}function ibe(e,t){return function(){um(this,e).delay=+t.apply(this,arguments)}}function obe(e,t){return t=+t,function(){um(this,e).delay=t}}function sbe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?ibe:obe)(t,e)):Xr(this.node(),t).delay}function lbe(e,t){return function(){mi(this,e).duration=+t.apply(this,arguments)}}function abe(e,t){return t=+t,function(){mi(this,e).duration=t}}function cbe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?lbe:abe)(t,e)):Xr(this.node(),t).duration}function ube(e,t){if(typeof t!="function")throw new Error;return function(){mi(this,e).ease=t}}function fbe(e){var t=this._id;return arguments.length?this.each(ube(t,e)):Xr(this.node(),t).ease}function dbe(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;mi(this,e).ease=n}}function hbe(e){if(typeof e!="function")throw new Error;return this.each(dbe(this._id,e))}function pbe(e){typeof e!="function"&&(e=V_(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var l=t[o],u=l.length,f=i[o]=[],h,p=0;p<u;++p)(h=l[p])&&e.call(h,h.__data__,p,l)&&f.push(h);return new Vi(i,this._parents,this._name,this._id)}function gbe(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,i=t.length,o=n.length,l=Math.min(i,o),u=new Array(i),f=0;f<l;++f)for(var h=t[f],p=n[f],g=h.length,v=u[f]=new Array(g),y,w=0;w<g;++w)(y=h[w]||p[w])&&(v[w]=y);for(;f<i;++f)u[f]=t[f];return new Vi(u,this._parents,this._name,this._id)}function mbe(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function vbe(e,t,n){var i,o,l=mbe(t)?um:mi;return function(){var u=l(this,e),f=u.on;f!==i&&(o=(i=f).copy()).on(t,n),u.on=o}}function ybe(e,t){var n=this._id;return arguments.length<2?Xr(this.node(),n).on.on(e):this.each(vbe(n,e,t))}function bbe(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function wbe(){return this.on("end.remove",bbe(this._id))}function xbe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=om(e));for(var i=this._groups,o=i.length,l=new Array(o),u=0;u<o;++u)for(var f=i[u],h=f.length,p=l[u]=new Array(h),g,v,y=0;y<h;++y)(g=f[y])&&(v=e.call(g,g.__data__,y,f))&&("__data__"in g&&(v.__data__=g.__data__),p[y]=v,md(p[y],t,n,y,p,Xr(g,n)));return new Vi(l,this._parents,t,n)}function Sbe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=U_(e));for(var i=this._groups,o=i.length,l=[],u=[],f=0;f<o;++f)for(var h=i[f],p=h.length,g,v=0;v<p;++v)if(g=h[v]){for(var y=e.call(g,g.__data__,v,h),w,$=Xr(g,n),_=0,C=y.length;_<C;++_)(w=y[_])&&md(w,t,n,_,y,$);l.push(y),u.push(g)}return new Vi(l,u,t,n)}var _be=Lc.prototype.constructor;function kbe(){return new _be(this._groups,this._parents)}function Tbe(e,t){var n,i,o;return function(){var l=Ll(this,e),u=(this.style.removeProperty(e),Ll(this,e));return l===u?null:l===n&&u===i?o:o=t(n=l,i=u)}}function pk(e){return function(){this.style.removeProperty(e)}}function Cbe(e,t,n){var i,o=n+"",l;return function(){var u=Ll(this,e);return u===o?null:u===i?l:l=t(i=u,n)}}function Ebe(e,t,n){var i,o,l;return function(){var u=Ll(this,e),f=n(this),h=f+"";return f==null&&(h=f=(this.style.removeProperty(e),Ll(this,e))),u===h?null:u===i&&h===o?l:(o=h,l=t(i=u,f))}}function Abe(e,t){var n,i,o,l="style."+t,u="end."+l,f;return function(){var h=mi(this,e),p=h.on,g=h.value[l]==null?f||(f=pk(t)):void 0;(p!==n||o!==g)&&(i=(n=p).copy()).on(u,o=g),h.on=i}}function $be(e,t,n){var i=(e+="")=="transform"?$0e:hk;return t==null?this.styleTween(e,Tbe(e,i)).on("end.style."+e,pk(e)):typeof t=="function"?this.styleTween(e,Ebe(e,i,fm(this,"style."+e,t))).each(Abe(this._id,e)):this.styleTween(e,Cbe(e,i,t),n).on("end.style."+e,null)}function Nbe(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}function Mbe(e,t,n){var i,o;function l(){var u=t.apply(this,arguments);return u!==o&&(i=(o=u)&&Nbe(e,u,n)),i}return l._value=t,l}function Lbe(e,t,n){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!="function")throw new Error;return this.tween(i,Mbe(e,t,n??""))}function Obe(e){return function(){this.textContent=e}}function Rbe(e){return function(){var t=e(this);this.textContent=t??""}}function Pbe(e){return this.tween("text",typeof e=="function"?Rbe(fm(this,"text",e)):Obe(e==null?"":e+""))}function Ibe(e){return function(t){this.textContent=e.call(this,t)}}function Dbe(e){var t,n;function i(){var o=e.apply(this,arguments);return o!==n&&(t=(n=o)&&Ibe(o)),t}return i._value=e,i}function Fbe(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,Dbe(e))}function zbe(){for(var e=this._name,t=this._id,n=gk(),i=this._groups,o=i.length,l=0;l<o;++l)for(var u=i[l],f=u.length,h,p=0;p<f;++p)if(h=u[p]){var g=Xr(h,t);md(h,e,n,p,u,{time:g.time+g.delay+g.duration,delay:0,duration:g.duration,ease:g.ease})}return new Vi(i,this._parents,e,n)}function Hbe(){var e,t,n=this,i=n._id,o=n.size();return new Promise(function(l,u){var f={value:u},h={value:function(){--o===0&&l()}};n.each(function(){var p=mi(this,i),g=p.on;g!==e&&(t=(e=g).copy(),t._.cancel.push(f),t._.interrupt.push(f),t._.end.push(h)),p.on=t}),o===0&&l()})}var Bbe=0;function Vi(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function gk(){return++Bbe}var Ai=Lc.prototype;Vi.prototype={constructor:Vi,select:xbe,selectAll:Sbe,selectChild:Ai.selectChild,selectChildren:Ai.selectChildren,filter:pbe,merge:gbe,selection:kbe,transition:zbe,call:Ai.call,nodes:Ai.nodes,node:Ai.node,size:Ai.size,empty:Ai.empty,each:Ai.each,on:ybe,attr:Z0e,attrTween:rbe,style:$be,styleTween:Lbe,text:Pbe,textTween:Fbe,remove:wbe,tween:U0e,delay:sbe,duration:cbe,ease:fbe,easeVarying:hbe,end:Hbe,[Symbol.iterator]:Ai[Symbol.iterator]};function jbe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Wbe={time:null,delay:0,duration:250,ease:jbe};function qbe(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function Ube(e){var t,n;e instanceof Vi?(t=e._id,e=e._name):(t=gk(),(n=Wbe).time=am(),e=e==null?null:e+"");for(var i=this._groups,o=i.length,l=0;l<o;++l)for(var u=i[l],f=u.length,h,p=0;p<f;++p)(h=u[p])&&md(h,e,t,p,u,n||qbe(h,t));return new Vi(i,this._parents,e,t)}Lc.prototype.interrupt=j0e;Lc.prototype.transition=Ube;const Lu=e=>()=>e;function Vbe(e,{sourceEvent:t,target:n,transform:i,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function zi(e,t,n){this.k=e,this.x=t,this.y=n}zi.prototype={constructor:zi,scale:function(e){return e===1?this:new zi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new zi(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var dm=new zi(1,0,0);zi.prototype;function Yh(e){e.stopImmediatePropagation()}function Ta(e){e.preventDefault(),e.stopImmediatePropagation()}function Gbe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Kbe(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Sw(){return this.__zoom||dm}function Ybe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Xbe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Jbe(e,t,n){var i=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],l=e.invertY(t[0][1])-n[0][1],u=e.invertY(t[1][1])-n[1][1];return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),u>l?(l+u)/2:Math.min(0,l)||Math.max(0,u))}function Zbe(){var e=Gbe,t=Kbe,n=Jbe,i=Ybe,o=Xbe,l=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],f=250,h=R0e,p=Oc("start","zoom","end"),g,v,y,w=500,$=150,_=0,C=10;function E(k){k.property("__zoom",Sw).on("wheel.zoom",ie,{passive:!1}).on("mousedown.zoom",J).on("dblclick.zoom",U).filter(o).on("touchstart.zoom",K).on("touchmove.zoom",P).on("touchend.zoom touchcancel.zoom",O).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}E.transform=function(k,S,R,B){var ae=k.selection?k.selection():k;ae.property("__zoom",Sw),k!==ae?I(k,S,R,B):ae.interrupt().each(function(){q(this,arguments).event(B).start().zoom(null,typeof S=="function"?S.apply(this,arguments):S).end()})},E.scaleBy=function(k,S,R,B){E.scaleTo(k,function(){var ae=this.__zoom.k,ve=typeof S=="function"?S.apply(this,arguments):S;return ae*ve},R,B)},E.scaleTo=function(k,S,R,B){E.transform(k,function(){var ae=t.apply(this,arguments),ve=this.__zoom,_e=R==null?N(ae):typeof R=="function"?R.apply(this,arguments):R,Be=ve.invert(_e),Ee=typeof S=="function"?S.apply(this,arguments):S;return n(D(L(ve,Ee),_e,Be),ae,u)},R,B)},E.translateBy=function(k,S,R,B){E.transform(k,function(){return n(this.__zoom.translate(typeof S=="function"?S.apply(this,arguments):S,typeof R=="function"?R.apply(this,arguments):R),t.apply(this,arguments),u)},null,B)},E.translateTo=function(k,S,R,B,ae){E.transform(k,function(){var ve=t.apply(this,arguments),_e=this.__zoom,Be=B==null?N(ve):typeof B=="function"?B.apply(this,arguments):B;return n(dm.translate(Be[0],Be[1]).scale(_e.k).translate(typeof S=="function"?-S.apply(this,arguments):-S,typeof R=="function"?-R.apply(this,arguments):-R),ve,u)},B,ae)};function L(k,S){return S=Math.max(l[0],Math.min(l[1],S)),S===k.k?k:new zi(S,k.x,k.y)}function D(k,S,R){var B=S[0]-R[0]*k.k,ae=S[1]-R[1]*k.k;return B===k.x&&ae===k.y?k:new zi(k.k,B,ae)}function N(k){return[(+k[0][0]+ +k[1][0])/2,(+k[0][1]+ +k[1][1])/2]}function I(k,S,R,B){k.on("start.zoom",function(){q(this,arguments).event(B).start()}).on("interrupt.zoom end.zoom",function(){q(this,arguments).event(B).end()}).tween("zoom",function(){var ae=this,ve=arguments,_e=q(ae,ve).event(B),Be=t.apply(ae,ve),Ee=R==null?N(Be):typeof R=="function"?R.apply(ae,ve):R,Ge=Math.max(Be[1][0]-Be[0][0],Be[1][1]-Be[0][1]),Ue=ae.__zoom,He=typeof S=="function"?S.apply(ae,ve):S,Re=h(Ue.invert(Ee).concat(Ge/Ue.k),He.invert(Ee).concat(Ge/He.k));return function(z){if(z===1)z=He;else{var Z=Re(z),re=Ge/Z[2];z=new zi(re,Ee[0]-Z[0]*re,Ee[1]-Z[1]*re)}_e.zoom(null,z)}})}function q(k,S,R){return!R&&k.__zooming||new X(k,S)}function X(k,S){this.that=k,this.args=S,this.active=0,this.sourceEvent=null,this.extent=t.apply(k,S),this.taps=0}X.prototype={event:function(k){return k&&(this.sourceEvent=k),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(k,S){return this.mouse&&k!=="mouse"&&(this.mouse[1]=S.invert(this.mouse[0])),this.touch0&&k!=="touch"&&(this.touch0[1]=S.invert(this.touch0[0])),this.touch1&&k!=="touch"&&(this.touch1[1]=S.invert(this.touch1[0])),this.that.__zoom=S,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(k){var S=er(this.that).datum();p.call(k,this.that,new Vbe(k,{sourceEvent:this.sourceEvent,target:E,transform:this.that.__zoom,dispatch:p}),S)}};function ie(k,...S){if(!e.apply(this,arguments))return;var R=q(this,S).event(k),B=this.__zoom,ae=Math.max(l[0],Math.min(l[1],B.k*Math.pow(2,i.apply(this,arguments)))),ve=Li(k);if(R.wheel)(R.mouse[0][0]!==ve[0]||R.mouse[0][1]!==ve[1])&&(R.mouse[1]=B.invert(R.mouse[0]=ve)),clearTimeout(R.wheel);else{if(B.k===ae)return;R.mouse=[ve,B.invert(ve)],Xu(this),R.start()}Ta(k),R.wheel=setTimeout(_e,$),R.zoom("mouse",n(D(L(B,ae),R.mouse[0],R.mouse[1]),R.extent,u));function _e(){R.wheel=null,R.end()}}function J(k,...S){if(y||!e.apply(this,arguments))return;var R=k.currentTarget,B=q(this,S,!0).event(k),ae=er(k.view).on("mousemove.zoom",Ee,!0).on("mouseup.zoom",Ge,!0),ve=Li(k,R),_e=k.clientX,Be=k.clientY;nk(k.view),Yh(k),B.mouse=[ve,this.__zoom.invert(ve)],Xu(this),B.start();function Ee(Ue){if(Ta(Ue),!B.moved){var He=Ue.clientX-_e,Re=Ue.clientY-Be;B.moved=He*He+Re*Re>_}B.event(Ue).zoom("mouse",n(D(B.that.__zoom,B.mouse[0]=Li(Ue,R),B.mouse[1]),B.extent,u))}function Ge(Ue){ae.on("mousemove.zoom mouseup.zoom",null),rk(Ue.view,B.moved),Ta(Ue),B.event(Ue).end()}}function U(k,...S){if(e.apply(this,arguments)){var R=this.__zoom,B=Li(k.changedTouches?k.changedTouches[0]:k,this),ae=R.invert(B),ve=R.k*(k.shiftKey?.5:2),_e=n(D(L(R,ve),B,ae),t.apply(this,S),u);Ta(k),f>0?er(this).transition().duration(f).call(I,_e,B,k):er(this).call(E.transform,_e,B,k)}}function K(k,...S){if(e.apply(this,arguments)){var R=k.touches,B=R.length,ae=q(this,S,k.changedTouches.length===B).event(k),ve,_e,Be,Ee;for(Yh(k),_e=0;_e<B;++_e)Be=R[_e],Ee=Li(Be,this),Ee=[Ee,this.__zoom.invert(Ee),Be.identifier],ae.touch0?!ae.touch1&&ae.touch0[2]!==Ee[2]&&(ae.touch1=Ee,ae.taps=0):(ae.touch0=Ee,ve=!0,ae.taps=1+!!g);g&&(g=clearTimeout(g)),ve&&(ae.taps<2&&(v=Ee[0],g=setTimeout(function(){g=null},w)),Xu(this),ae.start())}}function P(k,...S){if(this.__zooming){var R=q(this,S).event(k),B=k.changedTouches,ae=B.length,ve,_e,Be,Ee;for(Ta(k),ve=0;ve<ae;++ve)_e=B[ve],Be=Li(_e,this),R.touch0&&R.touch0[2]===_e.identifier?R.touch0[0]=Be:R.touch1&&R.touch1[2]===_e.identifier&&(R.touch1[0]=Be);if(_e=R.that.__zoom,R.touch1){var Ge=R.touch0[0],Ue=R.touch0[1],He=R.touch1[0],Re=R.touch1[1],z=(z=He[0]-Ge[0])*z+(z=He[1]-Ge[1])*z,Z=(Z=Re[0]-Ue[0])*Z+(Z=Re[1]-Ue[1])*Z;_e=L(_e,Math.sqrt(z/Z)),Be=[(Ge[0]+He[0])/2,(Ge[1]+He[1])/2],Ee=[(Ue[0]+Re[0])/2,(Ue[1]+Re[1])/2]}else if(R.touch0)Be=R.touch0[0],Ee=R.touch0[1];else return;R.zoom("touch",n(D(_e,Be,Ee),R.extent,u))}}function O(k,...S){if(this.__zooming){var R=q(this,S).event(k),B=k.changedTouches,ae=B.length,ve,_e;for(Yh(k),y&&clearTimeout(y),y=setTimeout(function(){y=null},w),ve=0;ve<ae;++ve)_e=B[ve],R.touch0&&R.touch0[2]===_e.identifier?delete R.touch0:R.touch1&&R.touch1[2]===_e.identifier&&delete R.touch1;if(R.touch1&&!R.touch0&&(R.touch0=R.touch1,delete R.touch1),R.touch0)R.touch0[1]=this.__zoom.invert(R.touch0[0]);else if(R.end(),R.taps===2&&(_e=Li(_e,this),Math.hypot(v[0]-_e[0],v[1]-_e[1])<C)){var Be=er(this).on("dblclick.zoom");Be&&Be.apply(this,arguments)}}}return E.wheelDelta=function(k){return arguments.length?(i=typeof k=="function"?k:Lu(+k),E):i},E.filter=function(k){return arguments.length?(e=typeof k=="function"?k:Lu(!!k),E):e},E.touchable=function(k){return arguments.length?(o=typeof k=="function"?k:Lu(!!k),E):o},E.extent=function(k){return arguments.length?(t=typeof k=="function"?k:Lu([[+k[0][0],+k[0][1]],[+k[1][0],+k[1][1]]]),E):t},E.scaleExtent=function(k){return arguments.length?(l[0]=+k[0],l[1]=+k[1],E):[l[0],l[1]]},E.translateExtent=function(k){return arguments.length?(u[0][0]=+k[0][0],u[1][0]=+k[1][0],u[0][1]=+k[0][1],u[1][1]=+k[1][1],E):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},E.constrain=function(k){return arguments.length?(n=k,E):n},E.duration=function(k){return arguments.length?(f=+k,E):f},E.interpolate=function(k){return arguments.length?(h=k,E):h},E.on=function(){var k=p.on.apply(p,arguments);return k===p?E:k},E.clickDistance=function(k){return arguments.length?(_=(k=+k)*k,E):Math.sqrt(_)},E.tapDistance=function(k){return arguments.length?(C=+k,E):C},E}function Qbe(e){const t=+this._x.call(null,e),n=+this._y.call(null,e);return mk(this.cover(t,n),t,n,e)}function mk(e,t,n,i){if(isNaN(t)||isNaN(n))return e;var o,l=e._root,u={data:i},f=e._x0,h=e._y0,p=e._x1,g=e._y1,v,y,w,$,_,C,E,L;if(!l)return e._root=u,e;for(;l.length;)if((_=t>=(v=(f+p)/2))?f=v:p=v,(C=n>=(y=(h+g)/2))?h=y:g=y,o=l,!(l=l[E=C<<1|_]))return o[E]=u,e;if(w=+e._x.call(null,l.data),$=+e._y.call(null,l.data),t===w&&n===$)return u.next=l,o?o[E]=u:e._root=u,e;do o=o?o[E]=new Array(4):e._root=new Array(4),(_=t>=(v=(f+p)/2))?f=v:p=v,(C=n>=(y=(h+g)/2))?h=y:g=y;while((E=C<<1|_)===(L=($>=y)<<1|w>=v));return o[L]=l,o[E]=u,e}function ewe(e){var t,n,i=e.length,o,l,u=new Array(i),f=new Array(i),h=1/0,p=1/0,g=-1/0,v=-1/0;for(n=0;n<i;++n)isNaN(o=+this._x.call(null,t=e[n]))||isNaN(l=+this._y.call(null,t))||(u[n]=o,f[n]=l,o<h&&(h=o),o>g&&(g=o),l<p&&(p=l),l>v&&(v=l));if(h>g||p>v)return this;for(this.cover(h,p).cover(g,v),n=0;n<i;++n)mk(this,u[n],f[n],e[n]);return this}function twe(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,i=this._y0,o=this._x1,l=this._y1;if(isNaN(n))o=(n=Math.floor(e))+1,l=(i=Math.floor(t))+1;else{for(var u=o-n||1,f=this._root,h,p;n>e||e>=o||i>t||t>=l;)switch(p=(t<i)<<1|e<n,h=new Array(4),h[p]=f,f=h,u*=2,p){case 0:o=n+u,l=i+u;break;case 1:n=o-u,l=i+u;break;case 2:o=n+u,i=l-u;break;case 3:n=o-u,i=l-u;break}this._root&&this._root.length&&(this._root=f)}return this._x0=n,this._y0=i,this._x1=o,this._y1=l,this}function nwe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function rwe(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function jn(e,t,n,i,o){this.node=e,this.x0=t,this.y0=n,this.x1=i,this.y1=o}function iwe(e,t,n){var i,o=this._x0,l=this._y0,u,f,h,p,g=this._x1,v=this._y1,y=[],w=this._root,$,_;for(w&&y.push(new jn(w,o,l,g,v)),n==null?n=1/0:(o=e-n,l=t-n,g=e+n,v=t+n,n*=n);$=y.pop();)if(!(!(w=$.node)||(u=$.x0)>g||(f=$.y0)>v||(h=$.x1)<o||(p=$.y1)<l))if(w.length){var C=(u+h)/2,E=(f+p)/2;y.push(new jn(w[3],C,E,h,p),new jn(w[2],u,E,C,p),new jn(w[1],C,f,h,E),new jn(w[0],u,f,C,E)),(_=(t>=E)<<1|e>=C)&&($=y[y.length-1],y[y.length-1]=y[y.length-1-_],y[y.length-1-_]=$)}else{var L=e-+this._x.call(null,w.data),D=t-+this._y.call(null,w.data),N=L*L+D*D;if(N<n){var I=Math.sqrt(n=N);o=e-I,l=t-I,g=e+I,v=t+I,i=w.data}}return i}function owe(e){if(isNaN(g=+this._x.call(null,e))||isNaN(v=+this._y.call(null,e)))return this;var t,n=this._root,i,o,l,u=this._x0,f=this._y0,h=this._x1,p=this._y1,g,v,y,w,$,_,C,E;if(!n)return this;if(n.length)for(;;){if(($=g>=(y=(u+h)/2))?u=y:h=y,(_=v>=(w=(f+p)/2))?f=w:p=w,t=n,!(n=n[C=_<<1|$]))return this;if(!n.length)break;(t[C+1&3]||t[C+2&3]||t[C+3&3])&&(i=t,E=C)}for(;n.data!==e;)if(o=n,!(n=n.next))return this;return(l=n.next)&&delete n.next,o?(l?o.next=l:delete o.next,this):t?(l?t[C]=l:delete t[C],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(i?i[E]=n:this._root=n),this):(this._root=l,this)}function swe(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function lwe(){return this._root}function awe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function cwe(e){var t=[],n,i=this._root,o,l,u,f,h;for(i&&t.push(new jn(i,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(i=n.node,l=n.x0,u=n.y0,f=n.x1,h=n.y1)&&i.length){var p=(l+f)/2,g=(u+h)/2;(o=i[3])&&t.push(new jn(o,p,g,f,h)),(o=i[2])&&t.push(new jn(o,l,g,p,h)),(o=i[1])&&t.push(new jn(o,p,u,f,g)),(o=i[0])&&t.push(new jn(o,l,u,p,g))}return this}function uwe(e){var t=[],n=[],i;for(this._root&&t.push(new jn(this._root,this._x0,this._y0,this._x1,this._y1));i=t.pop();){var o=i.node;if(o.length){var l,u=i.x0,f=i.y0,h=i.x1,p=i.y1,g=(u+h)/2,v=(f+p)/2;(l=o[0])&&t.push(new jn(l,u,f,g,v)),(l=o[1])&&t.push(new jn(l,g,f,h,v)),(l=o[2])&&t.push(new jn(l,u,v,g,p)),(l=o[3])&&t.push(new jn(l,g,v,h,p))}n.push(i)}for(;i=n.pop();)e(i.node,i.x0,i.y0,i.x1,i.y1);return this}function fwe(e){return e[0]}function dwe(e){return arguments.length?(this._x=e,this):this._x}function hwe(e){return e[1]}function pwe(e){return arguments.length?(this._y=e,this):this._y}function hm(e,t,n){var i=new pm(t??fwe,n??hwe,NaN,NaN,NaN,NaN);return e==null?i:i.addAll(e)}function pm(e,t,n,i,o,l){this._x=e,this._y=t,this._x0=n,this._y0=i,this._x1=o,this._y1=l,this._root=void 0}function _w(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var Un=hm.prototype=pm.prototype;Un.copy=function(){var e=new pm(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,i;if(!t)return e;if(!t.length)return e._root=_w(t),e;for(n=[{source:t,target:e._root=new Array(4)}];t=n.pop();)for(var o=0;o<4;++o)(i=t.source[o])&&(i.length?n.push({source:i,target:t.target[o]=new Array(4)}):t.target[o]=_w(i));return e};Un.add=Qbe;Un.addAll=ewe;Un.cover=twe;Un.data=nwe;Un.extent=rwe;Un.find=iwe;Un.remove=owe;Un.removeAll=swe;Un.root=lwe;Un.size=awe;Un.visit=cwe;Un.visitAfter=uwe;Un.x=dwe;Un.y=pwe;function qn(e){return function(){return e}}function Eo(e){return(e()-.5)*1e-6}function gwe(e){return e.x+e.vx}function mwe(e){return e.y+e.vy}function vwe(e){var t,n,i,o=1,l=1;typeof e!="function"&&(e=qn(e==null?1:+e));function u(){for(var p,g=t.length,v,y,w,$,_,C,E=0;E<l;++E)for(v=hm(t,gwe,mwe).visitAfter(f),p=0;p<g;++p)y=t[p],_=n[y.index],C=_*_,w=y.x+y.vx,$=y.y+y.vy,v.visit(L);function L(D,N,I,q,X){var ie=D.data,J=D.r,U=_+J;if(ie){if(ie.index>y.index){var K=w-ie.x-ie.vx,P=$-ie.y-ie.vy,O=K*K+P*P;O<U*U&&(K===0&&(K=Eo(i),O+=K*K),P===0&&(P=Eo(i),O+=P*P),O=(U-(O=Math.sqrt(O)))/O*o,y.vx+=(K*=O)*(U=(J*=J)/(C+J)),y.vy+=(P*=O)*U,ie.vx-=K*(U=1-U),ie.vy-=P*U)}return}return N>w+U||q<w-U||I>$+U||X<$-U}}function f(p){if(p.data)return p.r=n[p.data.index];for(var g=p.r=0;g<4;++g)p[g]&&p[g].r>p.r&&(p.r=p[g].r)}function h(){if(t){var p,g=t.length,v;for(n=new Array(g),p=0;p<g;++p)v=t[p],n[v.index]=+e(v,p,t)}}return u.initialize=function(p,g){t=p,i=g,h()},u.iterations=function(p){return arguments.length?(l=+p,u):l},u.strength=function(p){return arguments.length?(o=+p,u):o},u.radius=function(p){return arguments.length?(e=typeof p=="function"?p:qn(+p),h(),u):e},u}function ywe(e){return e.index}function kw(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function bwe(e){var t=ywe,n=v,i,o=qn(30),l,u,f,h,p,g=1;e==null&&(e=[]);function v(C){return 1/Math.min(f[C.source.index],f[C.target.index])}function y(C){for(var E=0,L=e.length;E<g;++E)for(var D=0,N,I,q,X,ie,J,U;D<L;++D)N=e[D],I=N.source,q=N.target,X=q.x+q.vx-I.x-I.vx||Eo(p),ie=q.y+q.vy-I.y-I.vy||Eo(p),J=Math.sqrt(X*X+ie*ie),J=(J-l[D])/J*C*i[D],X*=J,ie*=J,q.vx-=X*(U=h[D]),q.vy-=ie*U,I.vx+=X*(U=1-U),I.vy+=ie*U}function w(){if(u){var C,E=u.length,L=e.length,D=new Map(u.map((I,q)=>[t(I,q,u),I])),N;for(C=0,f=new Array(E);C<L;++C)N=e[C],N.index=C,typeof N.source!="object"&&(N.source=kw(D,N.source)),typeof N.target!="object"&&(N.target=kw(D,N.target)),f[N.source.index]=(f[N.source.index]||0)+1,f[N.target.index]=(f[N.target.index]||0)+1;for(C=0,h=new Array(L);C<L;++C)N=e[C],h[C]=f[N.source.index]/(f[N.source.index]+f[N.target.index]);i=new Array(L),$(),l=new Array(L),_()}}function $(){if(u)for(var C=0,E=e.length;C<E;++C)i[C]=+n(e[C],C,e)}function _(){if(u)for(var C=0,E=e.length;C<E;++C)l[C]=+o(e[C],C,e)}return y.initialize=function(C,E){u=C,p=E,w()},y.links=function(C){return arguments.length?(e=C,w(),y):e},y.id=function(C){return arguments.length?(t=C,y):t},y.iterations=function(C){return arguments.length?(g=+C,y):g},y.strength=function(C){return arguments.length?(n=typeof C=="function"?C:qn(+C),$(),y):n},y.distance=function(C){return arguments.length?(o=typeof C=="function"?C:qn(+C),_(),y):o},y}const wwe=1664525,xwe=1013904223,Tw=4294967296;function Swe(){let e=1;return()=>(e=(wwe*e+xwe)%Tw)/Tw}function _we(e){return e.x}function kwe(e){return e.y}var Twe=10,Cwe=Math.PI*(3-Math.sqrt(5));function Ewe(e){var t,n=1,i=.001,o=1-Math.pow(i,1/300),l=0,u=.6,f=new Map,h=cm(v),p=Oc("tick","end"),g=Swe();e==null&&(e=[]);function v(){y(),p.call("tick",t),n<i&&(h.stop(),p.call("end",t))}function y(_){var C,E=e.length,L;_===void 0&&(_=1);for(var D=0;D<_;++D)for(n+=(l-n)*o,f.forEach(function(N){N(n)}),C=0;C<E;++C)L=e[C],L.fx==null?L.x+=L.vx*=u:(L.x=L.fx,L.vx=0),L.fy==null?L.y+=L.vy*=u:(L.y=L.fy,L.vy=0);return t}function w(){for(var _=0,C=e.length,E;_<C;++_){if(E=e[_],E.index=_,E.fx!=null&&(E.x=E.fx),E.fy!=null&&(E.y=E.fy),isNaN(E.x)||isNaN(E.y)){var L=Twe*Math.sqrt(.5+_),D=_*Cwe;E.x=L*Math.cos(D),E.y=L*Math.sin(D)}(isNaN(E.vx)||isNaN(E.vy))&&(E.vx=E.vy=0)}}function $(_){return _.initialize&&_.initialize(e,g),_}return w(),t={tick:y,restart:function(){return h.restart(v),t},stop:function(){return h.stop(),t},nodes:function(_){return arguments.length?(e=_,w(),f.forEach($),t):e},alpha:function(_){return arguments.length?(n=+_,t):n},alphaMin:function(_){return arguments.length?(i=+_,t):i},alphaDecay:function(_){return arguments.length?(o=+_,t):+o},alphaTarget:function(_){return arguments.length?(l=+_,t):l},velocityDecay:function(_){return arguments.length?(u=1-_,t):1-u},randomSource:function(_){return arguments.length?(g=_,f.forEach($),t):g},force:function(_,C){return arguments.length>1?(C==null?f.delete(_):f.set(_,$(C)),t):f.get(_)},find:function(_,C,E){var L=0,D=e.length,N,I,q,X,ie;for(E==null?E=1/0:E*=E,L=0;L<D;++L)X=e[L],N=_-X.x,I=C-X.y,q=N*N+I*I,q<E&&(ie=X,E=q);return ie},on:function(_,C){return arguments.length>1?(p.on(_,C),t):p.on(_)}}}function Awe(){var e,t,n,i,o=qn(-30),l,u=1,f=1/0,h=.81;function p(w){var $,_=e.length,C=hm(e,_we,kwe).visitAfter(v);for(i=w,$=0;$<_;++$)t=e[$],C.visit(y)}function g(){if(e){var w,$=e.length,_;for(l=new Array($),w=0;w<$;++w)_=e[w],l[_.index]=+o(_,w,e)}}function v(w){var $=0,_,C,E=0,L,D,N;if(w.length){for(L=D=N=0;N<4;++N)(_=w[N])&&(C=Math.abs(_.value))&&($+=_.value,E+=C,L+=C*_.x,D+=C*_.y);w.x=L/E,w.y=D/E}else{_=w,_.x=_.data.x,_.y=_.data.y;do $+=l[_.data.index];while(_=_.next)}w.value=$}function y(w,$,_,C){if(!w.value)return!0;var E=w.x-t.x,L=w.y-t.y,D=C-$,N=E*E+L*L;if(D*D/h<N)return N<f&&(E===0&&(E=Eo(n),N+=E*E),L===0&&(L=Eo(n),N+=L*L),N<u&&(N=Math.sqrt(u*N)),t.vx+=E*w.value*i/N,t.vy+=L*w.value*i/N),!0;if(w.length||N>=f)return;(w.data!==t||w.next)&&(E===0&&(E=Eo(n),N+=E*E),L===0&&(L=Eo(n),N+=L*L),N<u&&(N=Math.sqrt(u*N)));do w.data!==t&&(D=l[w.data.index]*i/N,t.vx+=E*D,t.vy+=L*D);while(w=w.next)}return p.initialize=function(w,$){e=w,n=$,g()},p.strength=function(w){return arguments.length?(o=typeof w=="function"?w:qn(+w),g(),p):o},p.distanceMin=function(w){return arguments.length?(u=w*w,p):Math.sqrt(u)},p.distanceMax=function(w){return arguments.length?(f=w*w,p):Math.sqrt(f)},p.theta=function(w){return arguments.length?(h=w*w,p):Math.sqrt(h)},p}function $we(e){var t=qn(.1),n,i,o;typeof e!="function"&&(e=qn(e==null?0:+e));function l(f){for(var h=0,p=n.length,g;h<p;++h)g=n[h],g.vx+=(o[h]-g.x)*i[h]*f}function u(){if(n){var f,h=n.length;for(i=new Array(h),o=new Array(h),f=0;f<h;++f)i[f]=isNaN(o[f]=+e(n[f],f,n))?0:+t(n[f],f,n)}}return l.initialize=function(f){n=f,u()},l.strength=function(f){return arguments.length?(t=typeof f=="function"?f:qn(+f),u(),l):t},l.x=function(f){return arguments.length?(e=typeof f=="function"?f:qn(+f),u(),l):e},l}function Nwe(e){var t=qn(.1),n,i,o;typeof e!="function"&&(e=qn(e==null?0:+e));function l(f){for(var h=0,p=n.length,g;h<p;++h)g=n[h],g.vy+=(o[h]-g.y)*i[h]*f}function u(){if(n){var f,h=n.length;for(i=new Array(h),o=new Array(h),f=0;f<h;++f)i[f]=isNaN(o[f]=+e(n[f],f,n))?0:+t(n[f],f,n)}}return l.initialize=function(f){n=f,u()},l.strength=function(f){return arguments.length?(t=typeof f=="function"?f:qn(+f),u(),l):t},l.y=function(f){return arguments.length?(e=typeof f=="function"?f:qn(+f),u(),l):e},l}function Mwe(){return{drag:{end:0,start:.1},filter:{link:1,type:.1,unlinked:{include:.1,exclude:.1}},focus:{acquire:()=>.1,release:()=>.1},initialize:1,labels:{links:{hide:0,show:0},nodes:{hide:0,show:0}},resize:.5}}function Lwe(){return{centering:{enabled:!0,strength:.1},charge:{enabled:!0,strength:-1},collision:{enabled:!0,strength:1,radiusMultiplier:2},link:{enabled:!0,strength:1,length:128}}}function Owe(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function vk(e){e.preventDefault(),e.stopPropagation()}function yk(e){return typeof e=="number"}function Fo(e,t){return yk(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function Rwe(e){return`${e.source.id}-${e.target.id}`}function bk(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function Pwe(e){return`url(#${bk(e.color)})`}function Iwe(e){return{size:e,padding:(t,n)=>Fo(n,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const wk={Arrow:e=>Iwe(e)},Dwe=(e,t,n)=>[t/2,n/2],Fwe=(e,t,n)=>[Cw(0,t),Cw(0,n)];function Cw(e,t){return Math.random()*(t-e)+e}const Vp={Centered:Dwe,Randomized:Fwe};function zwe(){return{autoResize:!1,callbacks:{},hooks:{},initial:Owe(),nodeRadius:16,marker:wk.Arrow(4),modifiers:{},positionInitializer:Vp.Centered,simulation:{alphas:Mwe(),forces:Lwe()},zoom:{initial:1,min:.1,max:2}}}function Hwe(e={}){return bve(zwe(),e,{arrayMerge:(t,n)=>n})}function Bwe({applyZoom:e,container:t,onDoubleClick:n,onPointerMoved:i,onPointerUp:o,offset:[l,u],scale:f,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",g=>vk(g)).on("dblclick",g=>n?.(g)).on("dblclick.zoom",null).on("pointermove",g=>i?.(g)).on("pointerup",g=>o?.(g)).style("cursor","grab");return e&&p.call(h.transform,dm.translate(l,u).scale(f)),p.append("g")}function jwe({canvas:e,scale:t,xOffset:n,yOffset:i}){e?.attr("transform",`translate(${n},${i})scale(${t})`)}function Wwe({config:e,onDragStart:t,onDragEnd:n}){const i=a0e().filter(o=>o.type==="mousedown"?o.button===0:o.type==="touchstart"?o.touches.length===1:!1).on("start",(o,l)=>{o.active===0&&t(o,l),er(o.sourceEvent.target).classed("grabbed",!0),l.fx=l.x,l.fy=l.y}).on("drag",(o,l)=>{l.fx=o.x,l.fy=o.y}).on("end",(o,l)=>{o.active===0&&n(o,l),er(o.sourceEvent.target).classed("grabbed",!1),l.fx=void 0,l.fy=void 0});return e.modifiers.drag?.(i),i}function qwe({graph:e,filter:t,focusedNode:n,includeUnlinked:i,linkFilter:o}){const l=e.links.filter(h=>t.includes(h.source.type)&&t.includes(h.target.type)&&o(h)),u=h=>l.find(p=>p.source.id===h.id||p.target.id===h.id)!==void 0,f=e.nodes.filter(h=>t.includes(h.type)&&(i||u(h)));return n===void 0||!t.includes(n.type)?{nodes:f,links:l}:Uwe({links:l},n)}function Uwe(e,t){const n=[...Vwe(e,t),...Gwe(e,t)],i=n.flatMap(o=>[o.source,o.target]);return{nodes:[...new Set([...i,t])],links:[...new Set(n)]}}function Vwe(e,t){return xk(e,t,(n,i)=>n.target.id===i.id)}function Gwe(e,t){return xk(e,t,(n,i)=>n.source.id===i.id)}function xk(e,t,n){const i=new Set(e.links),o=new Set([t]),l=[];for(;i.size>0;){const u=[...i].filter(f=>[...o].some(h=>n(f,h)));if(u.length===0)return l;u.forEach(f=>{o.add(f.source),o.add(f.target),l.push(f),i.delete(f)})}return l}function Gp(e){return e.x??0}function Kp(e){return e.y??0}function gm({source:e,target:t}){const n=new Ol(Gp(e),Kp(e)),i=new Ol(Gp(t),Kp(t)),o=i.subtract(n),l=o.length(),u=o.normalize();return{s:n,t:i,dist:l,norm:u,endNorm:u.multiply(-1)}}function Sk({center:e,node:t}){const n=new Ol(Gp(t),Kp(t));let i=e;return n.x===i.x&&n.y===i.y&&(i=i.add(new Ol(0,1))),{n,c:i}}function _k({config:e,source:t,target:n}){const{s:i,t:o,norm:l}=gm({source:t,target:n});return{start:i.add(l.multiply(Fo(e,t)-1)),end:o.subtract(l.multiply(e.marker.padding(n,e)))}}function Kwe(e){const{start:t,end:n}=_k(e);return`M${t.x},${t.y}
78
+ L${n.x},${n.y}`}function Ywe(e){const{start:t,end:n}=_k(e),i=n.subtract(t).multiply(.5),o=t.add(i);return`translate(${o.x-8},${o.y-4})`}function Xwe({config:e,source:t,target:n}){const{s:i,t:o,dist:l,norm:u,endNorm:f}=gm({source:t,target:n}),h=10,p=u.rotateByDegrees(-h).multiply(Fo(e,t)-1).add(i),g=f.rotateByDegrees(h).multiply(Fo(e,n)).add(o).add(f.rotateByDegrees(h).multiply(2*e.marker.size)),v=1.2*l;return`M${p.x},${p.y}
79
+ A${v},${v},0,0,1,${g.x},${g.y}`}function Jwe({center:e,config:t,node:n}){const{n:i,c:o}=Sk({center:e,node:n}),l=Fo(t,n),u=i.subtract(o),f=u.multiply(1/u.length()),h=40,p=f.rotateByDegrees(h).multiply(l-1).add(i),g=f.rotateByDegrees(-h).multiply(l).add(i).add(f.rotateByDegrees(-h).multiply(2*t.marker.size));return`M${p.x},${p.y}
80
+ A${l},${l},0,1,0,${g.x},${g.y}`}function Zwe({config:e,source:t,target:n}){const{t:i,dist:o,endNorm:l}=gm({source:t,target:n}),u=l.rotateByDegrees(10).multiply(.5*o).add(i);return`translate(${u.x},${u.y})`}function Qwe({center:e,config:t,node:n}){const{n:i,c:o}=Sk({center:e,node:n}),l=i.subtract(o),u=l.multiply(1/l.length()).multiply(3*Fo(t,n)+8).add(i);return`translate(${u.x},${u.y})`}const xl={line:{labelTransform:Ywe,path:Kwe},arc:{labelTransform:Zwe,path:Xwe},reflexive:{labelTransform:Qwe,path:Jwe}};function exe(e){return e.append("g").classed("links",!0).selectAll("path")}function txe({config:e,graph:t,selection:n,showLabels:i}){const o=n?.data(t.links,l=>Rwe(l)).join(l=>{const u=l.append("g"),f=u.append("path").classed("link",!0).style("marker-end",p=>Pwe(p)).style("stroke",p=>p.color);e.modifiers.link?.(f);const h=u.append("text").classed("link__label",!0).style("fill",p=>p.label?p.label.color:null).style("font-size",p=>p.label?p.label.fontSize:null).text(p=>p.label?p.label.text:null);return e.modifiers.linkLabel?.(h),u});return o?.select(".link__label").attr("opacity",l=>l.label&&i?1:0),o}function nxe(e){rxe(e),ixe(e)}function rxe({center:e,config:t,graph:n,selection:i}){i?.selectAll("path").attr("d",o=>o.source.x===void 0||o.source.y===void 0||o.target.x===void 0||o.target.y===void 0?"":o.source.id===o.target.id?xl.reflexive.path({config:t,node:o.source,center:e}):kk(n,o.source,o.target)?xl.arc.path({config:t,source:o.source,target:o.target}):xl.line.path({config:t,source:o.source,target:o.target}))}function ixe({config:e,center:t,graph:n,selection:i}){i?.select(".link__label").attr("transform",o=>o.source.x===void 0||o.source.y===void 0||o.target.x===void 0||o.target.y===void 0?"translate(0, 0)":o.source.id===o.target.id?xl.reflexive.labelTransform({config:e,node:o.source,center:t}):kk(n,o.source,o.target)?xl.arc.labelTransform({config:e,source:o.source,target:o.target}):xl.line.labelTransform({config:e,source:o.source,target:o.target}))}function kk(e,t,n){return t.id!==n.id&&e.links.some(i=>i.target.id===t.id&&i.source.id===n.id)&&e.links.some(i=>i.target.id===n.id&&i.source.id===t.id)}function oxe(e){return e.append("defs").selectAll("marker")}function sxe({config:e,graph:t,selection:n}){return n?.data(lxe(t),i=>i).join(i=>{const o=i.append("marker").attr("id",l=>bk(l)).attr("markerHeight",4*e.marker.size).attr("markerWidth",4*e.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",e.marker.ref[0]).attr("refY",e.marker.ref[1]).attr("viewBox",e.marker.viewBox).style("fill",l=>l);return o.append("path").attr("d",axe(e.marker.path)),o})}function lxe(e){return[...new Set(e.links.map(t=>t.color))]}function axe(e){const[t,...n]=e;if(!t)return"M0,0";const[i,o]=t;return n.reduce((l,[u,f])=>`${l}L${u},${f}`,`M${i},${o}`)}function cxe(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function uxe({config:e,drag:t,graph:n,onNodeContext:i,onNodeSelected:o,selection:l,showLabels:u}){const f=l?.data(n.nodes,h=>h.id).join(h=>{const p=h.append("g");t!==void 0&&p.call(t);const g=p.append("circle").classed("node",!0).attr("r",y=>Fo(e,y)).on("contextmenu",(y,w)=>{vk(y),i(w)}).on("pointerdown",(y,w)=>dxe(y,w,o??i)).style("fill",y=>y.color);e.modifiers.node?.(g);const v=p.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",y=>y.label?y.label.color:null).style("font-size",y=>y.label?y.label.fontSize:null).style("stroke","none").text(y=>y.label?y.label.text:null);return e.modifiers.nodeLabel?.(v),p});return f?.select(".node").classed("focused",h=>h.isFocused),f?.select(".node__label").attr("opacity",u?1:0),f}const fxe=500;function dxe(e,t,n){if(e.button!==void 0&&e.button!==0)return;const i=t.lastInteractionTimestamp,o=Date.now();if(i===void 0||o-i>fxe){t.lastInteractionTimestamp=o;return}t.lastInteractionTimestamp=void 0,n(t)}function hxe(e){e?.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function pxe({center:e,config:t,graph:n,onTick:i}){const o=Ewe(n.nodes),l=t.simulation.forces.centering;if(l&&l.enabled){const p=l.strength;o.force("x",$we(()=>e().x).strength(p)).force("y",Nwe(()=>e().y).strength(p))}const u=t.simulation.forces.charge;u&&u.enabled&&o.force("charge",Awe().strength(u.strength));const f=t.simulation.forces.collision;f&&f.enabled&&o.force("collision",vwe().radius(p=>f.radiusMultiplier*Fo(t,p)));const h=t.simulation.forces.link;return h&&h.enabled&&o.force("link",bwe(n.links).id(p=>p.id).distance(t.simulation.forces.link.length).strength(h.strength)),o.on("tick",()=>i()),t.modifiers.simulation?.(o),o}function gxe({canvasContainer:e,config:t,min:n,max:i,onZoom:o}){const l=Zbe().scaleExtent([n,i]).filter(u=>u.button===0||u.touches?.length>=2).on("start",()=>e().classed("grabbed",!0)).on("zoom",u=>o(u)).on("end",()=>e().classed("grabbed",!1));return t.modifiers.zoom?.(l),l}var mxe=class{nodeTypes;_nodeTypeFilter;_includeUnlinked=!0;_linkFilter=()=>!0;_showLinkLabels=!0;_showNodeLabels=!0;filteredGraph;width=0;height=0;simulation;canvas;linkSelection;nodeSelection;markerSelection;zoom;drag;xOffset=0;yOffset=0;scale;focusedNode=void 0;resizeObserver;container;graph;config;constructor(e,t,n){if(this.container=e,this.graph=t,this.config=n,this.scale=n.zoom.initial,this.resetView(),this.graph.nodes.forEach(i=>{const[o,l]=n.positionInitializer(i,this.effectiveWidth,this.effectiveHeight);i.x=i.x??o,i.y=i.y??l}),this.nodeTypes=[...new Set(t.nodes.map(i=>i.type))],this._nodeTypeFilter=[...this.nodeTypes],n.initial){const{includeUnlinked:i,nodeTypeFilter:o,linkFilter:l,showLinkLabels:u,showNodeLabels:f}=n.initial;this._includeUnlinked=i??this._includeUnlinked,this._showLinkLabels=u??this._showLinkLabels,this._showNodeLabels=f??this._showNodeLabels,this._nodeTypeFilter=o??this._nodeTypeFilter,this._linkFilter=l??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(n.simulation.alphas.initialize),n.autoResize&&(this.resizeObserver=new ResizeObserver(wve(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(e){this._includeUnlinked=e,this.filterGraph(this.focusedNode);const{include:t,exclude:n}=this.config.simulation.alphas.filter.unlinked,i=e?t:n;this.restart(i)}set linkFilter(e){this._linkFilter=e,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(e){this._showNodeLabels=e;const{hide:t,show:n}=this.config.simulation.alphas.labels.nodes,i=e?n:t;this.restart(i)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(e){this._showLinkLabels=e;const{hide:t,show:n}=this.config.simulation.alphas.labels.links,i=e?n:t;this.restart(i)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return Ol.of([this.width,this.height]).divide(2).subtract(Ol.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const e=this.width,t=this.height,n=this.container.getBoundingClientRect().width,i=this.container.getBoundingClientRect().height,o=e.toFixed()!==n.toFixed(),l=t.toFixed()!==i.toFixed();if(!o&&!l)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const u=this.config.simulation.alphas.resize;this.restart(yk(u)?u:u({oldWidth:e,oldHeight:t,newWidth:n,newHeight:i}))}restart(e){this.markerSelection=sxe({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=txe({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=uxe({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:t=>this.toggleNodeFocus(t),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),this.simulation?.stop(),this.simulation=pxe({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(e).restart()}filterNodesByType(e,t){e?this._nodeTypeFilter.push(t):this._nodeTypeFilter=this._nodeTypeFilter.filter(n=>n!==t),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),this.resizeObserver?.unobserve(this.container),this.simulation?.stop()}initGraph(){this.zoom=gxe({config:this.config,canvasContainer:()=>er(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:e=>this.onZoom(e)}),this.canvas=Bwe({applyZoom:this.scale!==1,container:er(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=exe(this.canvas),this.nodeSelection=cxe(this.canvas),this.markerSelection=oxe(this.canvas),this.drag=Wwe({config:this.config,onDragStart:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.start).restart(),onDragEnd:()=>this.simulation?.alphaTarget(this.config.simulation.alphas.drag.end).restart()})}onTick(){hxe(this.nodeSelection),nxe({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){this.simulation?.stop(),er(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(e){this.xOffset=e.transform.x,this.yOffset=e.transform.y,this.scale=e.transform.k,this.applyZoom(),this.config.hooks.afterZoom?.(this.scale,this.xOffset,this.yOffset),this.simulation?.restart()}applyZoom(){jwe({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(e){e.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(e))):this.focusNode(e)}focusNode(e){this.filterGraph(e),this.restart(this.config.simulation.alphas.focus.acquire(e))}filterGraph(e){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),e!==void 0&&this._nodeTypeFilter.includes(e.type)&&(e.isFocused=!0,this.focusedNode=e),this.filteredGraph=qwe({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}};function Ew({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function vxe(e){return{...e}}function mm(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}function Aw(e){const t=e.map(i=>g_(i)),n=pP(t);return t.map(({raw:i,id:o,splitsCopy:l})=>mm({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:o.includes("node_modules")?n.get(i)??i:l[l.length-1]},isFocused:!1,id:o,type:"external"}))}function yxe(e,t){return mm({color:t?"var(--color-node-root)":"var(--color-node-inline)",label:{color:t?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:e.split(/\//g).pop()},isFocused:!1,id:e,type:"inline"})}function bxe(e,t){if(!e)return Ew({});const n=pt.value.experimental?.viteModuleRunner?Aw(e.externalized):Aw([...e.inlined,...e.externalized]),i=pt.value.experimental?.viteModuleRunner?e.inlined.map(f=>yxe(f,f===t))??[]:[],o=[...n,...i],l=Object.fromEntries(o.map(f=>[f.id,f])),u=Object.entries(e.graph).flatMap(([f,h])=>h.map(p=>{const g=l[f],v=l[p];if(!(g===void 0||v===void 0))return vxe({source:g,target:v,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return Ew({nodes:o,links:u})}const wxe={key:0,"text-green-700":"","dark:text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},xxe={key:1,"text-red-700":"","dark:text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},Sxe={key:2,"text-red-700":"","dark:text-red-500":"","flex-shrink-0":"","i-carbon:close":""},_xe={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},kxe={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},Txe={key:5,"text-yellow-700":"","dark:text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},Tk=tt({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,n)=>{const i=ir("tooltip");return e.state==="pass"?(te(),ge("div",wxe)):e.failedSnapshot?st((te(),ge("div",xxe,null,512)),[[i,"Contains failed snapshot",void 0,{right:!0}]]):e.state==="fail"?(te(),ge("div",Sxe)):e.mode==="todo"?st((te(),ge("div",_xe,null,512)),[[i,"Todo",void 0,{right:!0}]]):e.mode==="skip"||e.state==="skip"?st((te(),ge("div",kxe,null,512)),[[i,"Skipped",void 0,{right:!0}]]):(te(),ge("div",Txe))}}}),Cxe={border:"b base","p-4":""},Exe=["innerHTML"],Axe=tt({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(n){return new Date(n).toLocaleTimeString()}return(n,i)=>(te(),ge("div",Cxe,[Y("div",{"text-xs":"","mb-1":"",class:ot(e.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Me(t(e.time))+" | "+Me(e.taskName)+" | "+Me(e.type),3),Y("pre",{"data-type":"html",innerHTML:e.content},null,8,Exe)]))}}),$xe={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},Nxe={key:1,p6:""},Mxe=tt({__name:"ViewConsoleOutput",setup(e){const t=Se(()=>{const i=j_.value;if(i){const o=Qg(Po.value);return i.map(({taskId:l,type:u,time:f,content:h})=>({taskId:l,type:u,time:f,content:o.toHtml(Wa(h))}))}});function n(i){const o=i&&ft.state.idMap.get(i);return o&&"filepath"in o?o.name:(o?OR(o).slice(1).join(" > "):"-")||"-"}return(i,o)=>t.value?.length?(te(),ge("div",$xe,[(te(!0),ge(nt,null,xn(t.value,({taskId:l,type:u,time:f,content:h})=>(te(),ge("div",{key:l,"font-mono":""},[Ne(Axe,{"task-name":n(l),type:u,time:f,content:h},null,8,["task-name","type","time","content"])]))),128))])):(te(),ge("div",Nxe,[...o[0]||(o[0]=[Qe(" Log something in your test and it would print here. (e.g. ",-1),Y("pre",{inline:""},"console.log(foo)",-1),Qe(") ",-1)])]))}}),Ck={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(Ck);var xr=function(e,t,n,i){if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?i:n==="a"?i.call(e):i?i.value:t.get(e)},rl,La,as;class Lxe{constructor(...t){rl.set(this,new Map),La.set(this,new Map),as.set(this,new Map);for(const n of t)this.define(n)}define(t,n=!1){for(let[i,o]of Object.entries(t)){i=i.toLowerCase(),o=o.map(f=>f.toLowerCase()),xr(this,as,"f").has(i)||xr(this,as,"f").set(i,new Set);const l=xr(this,as,"f").get(i);let u=!0;for(let f of o){const h=f.startsWith("*");if(f=h?f.slice(1):f,l?.add(f),u&&xr(this,La,"f").set(i,f),u=!1,h)continue;const p=xr(this,rl,"f").get(f);if(p&&p!=i&&!n)throw new Error(`"${i} -> ${f}" conflicts with "${p} -> ${f}". Pass \`force=true\` to override this definition.`);xr(this,rl,"f").set(f,i)}}return this}getType(t){if(typeof t!="string")return null;const n=t.replace(/^.*[/\\]/s,"").toLowerCase(),i=n.replace(/^.*\./s,"").toLowerCase(),o=n.length<t.length;return!(i.length<n.length-1)&&o?null:xr(this,rl,"f").get(i)??null}getExtension(t){return typeof t!="string"?null:(t=t?.split?.(";")[0],(t&&xr(this,La,"f").get(t.trim().toLowerCase()))??null)}getAllExtensions(t){return typeof t!="string"?null:xr(this,as,"f").get(t.toLowerCase())??null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(const t of xr(this,as,"f").values())Object.freeze(t);return this}_getTestState(){return{types:xr(this,rl,"f"),extensions:xr(this,La,"f")}}}rl=new WeakMap,La=new WeakMap,as=new WeakMap;const Oxe=new Lxe(Ck)._freeze();function Pl(e){const t=e.contentType??"application/octet-stream";return e.path?pr?`./data/${iR(e.path)}`:`/__vitest_attachment__?path=${encodeURIComponent(e.path)}&contentType=${t}&token=${window.VITEST_API_TOKEN}`:e.bodyEncoding==="utf-8"?`data:${t},${encodeURIComponent(e.body)}`:`data:${t};base64,${e.body}`}function Ek(e,t){const n=t?Oxe.getExtension(t):null;return e.replace(/[\x00-\x2C\x2E\x2F\x3A-\x40\x5B-\x60\x7B-\x7F]+/g,"-")+(n?`.${n}`:"")}function Ak(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))}function Yp(e){const t=e.path||e.body;return typeof t=="string"&&(t.startsWith("http://")||t.startsWith("https://"))?t:Pl(e)}const Ju=tt({__name:"CodeMirrorContainer",props:Xa({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:Xa(["save","codemirror"],["update:modelValue"]),setup(e,{emit:t}){const n=t,i=Jf(e,"modelValue"),o=fA(),l={html:"htmlmixed",vue:"htmlmixed",svelte:"htmlmixed",js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},u=Ke();return Yi(async()=>{const f=Oge(u,i,{...o,mode:l[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){h.getOption("readOnly")||n("save",h.getValue())},"Ctrl-S":function(h){h.getOption("readOnly")||n("save",h.getValue())}}});f.on("refresh",()=>{n("codemirror",f)}),f.on("change",()=>{n("codemirror",f)}),f.setSize("100%","100%"),f.clearHistory(),Fn.value=f,setTimeout(()=>Fn.value?.refresh(),100)}),(f,h)=>(te(),ge("div",{relative:"","font-mono":"","text-sm":"",class:ot(["codemirror-scrolls",e.saving?"codemirror-busy":void 0])},[Y("textarea",{ref_key:"el",ref:u},null,512)],2))}}),Rxe=tt({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const n=e,i=t,o=Ke(""),l=Vt(void 0),u=Ke(!1),f=Ke(!0),h=Ke(!1),p=Ke();yt(()=>n.file,async()=>{if(!h.value){f.value=!0;try{if(!n.file||!n.file?.filepath){o.value="",l.value=o.value,u.value=!1,f.value=!1;return}o.value=await ft.rpc.readTestFile(n.file.filepath)||"",l.value=o.value,u.value=!1}catch(J){console.error("cannot fetch file",J)}await At(),f.value=!1}},{immediate:!0}),yt(()=>[f.value,h.value,n.file,N_.value,M_.value],([J,U,K,P,O])=>{!J&&!U&&(P!=null?At(()=>{const k=p.value,S=k??{line:(P??1)-1,ch:O??0};k?p.value=void 0:(Fn.value?.scrollIntoView(S,100),At(()=>{Fn.value?.focus(),Fn.value?.setCursor(S)}))}):At(()=>{Fn.value?.focus()}))},{flush:"post"});const g=Se(()=>n.file?.filepath?.split(/\./g).pop()||"js"),v=Ke(),y=Se(()=>{const J=[];function U(K){K.result?.errors&&J.push(...K.result.errors),K.type==="suite"&&K.tasks.forEach(U)}return n.file?.tasks.forEach(U),J}),w=Se(()=>{const J=[];function U(K){K.type==="test"&&J.push(...K.annotations),K.type==="suite"&&K.tasks.forEach(U)}return n.file?.tasks.forEach(U),J}),$=[],_=[],C=[],E=Ke(!1);function L(){C.forEach(([J,U,K])=>{J.removeEventListener("click",U),K()}),C.length=0}fM(v,()=>{Fn.value?.refresh()});function D(){u.value=l.value!==Fn.value.getValue()}yt(u,J=>{i("draft",J)},{immediate:!0});function N(J){const K=(J?.stacks||[]).filter(R=>R.file&&R.file===n.file?.filepath)?.[0];if(!K)return;const P=document.createElement("div");P.className="op80 flex gap-x-2 items-center";const O=document.createElement("pre");O.className="c-red-700 dark:c-red-400",O.textContent=`${" ".repeat(K.column)}^ ${J.name}: ${J?.message||""}`,P.appendChild(O);const k=document.createElement("span");k.className="i-carbon-launch c-red-700 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",k.tabIndex=0,k.ariaLabel="Open in Editor",B1(k,{content:"Open in Editor",placement:"bottom"},!1);const S=async()=>{await Zg(K.file,K.line,K.column)};k.addEventListener("click",S),P.appendChild(k),C.push([k,S,()=>Eg(k)]),_.push(Fn.value.addLineClass(K.line-1,"wrap","bg-red-500/10")),$.push(Fn.value.addLineWidget(K.line-1,P))}function I(J){if(!J.location)return;const{line:U,file:K}=J.location;if(K!==n.file?.filepath)return;const P=document.createElement("div");P.classList.add("wrap","bg-active","py-3","px-6","my-1"),P.role="note";const O=document.createElement("div");O.classList.add("block","text-black","dark:text-white");const k=document.createElement("span");k.textContent=`${J.type}: `,k.classList.add("font-bold");const S=document.createElement("span");S.classList.add("whitespace-pre"),S.textContent=J.message.replace(/[^\r]\n/,`\r
81
+ `),O.append(k,S),P.append(O);const R=J.attachment;if(R?.path||R?.body)if(R.contentType?.startsWith("image/")){const B=document.createElement("a"),ae=document.createElement("img");B.classList.add("inline-block","mt-3"),B.style.maxWidth="50vw";const ve=R.path||R.body;typeof ve=="string"&&(ve.startsWith("http://")||ve.startsWith("https://"))?(ae.setAttribute("src",ve),B.referrerPolicy="no-referrer"):ae.setAttribute("src",Pl(R)),B.target="_blank",B.href=ae.src,B.append(ae),P.append(B)}else{const B=document.createElement("a");B.href=Pl(R),B.download=Ek(J.message,R.contentType),B.classList.add("flex","w-min","gap-2","items-center","font-sans","underline","cursor-pointer");const ae=document.createElement("div");ae.classList.add("i-carbon:download","block");const ve=document.createElement("span");ve.textContent="Download",B.append(ae,ve),P.append(B)}$.push(Fn.value.addLineWidget(U-1,P))}const{pause:q,resume:X}=yt([Fn,y,w,ol],([J,U,K,P])=>{if(!J){$.length=0,_.length=0,L();return}P&&(J.off("changes",D),L(),$.forEach(O=>O.clear()),_.forEach(O=>J?.removeLineClass(O,"wrap")),$.length=0,_.length=0,setTimeout(()=>{U.forEach(N),K.forEach(I),E.value||J.clearHistory(),J.on("changes",D)},100))},{flush:"post"});K1(()=>[ol.value,h.value,p.value],([J,U],K)=>{J&&!U&&K&&K[2]&&Fn.value?.setCursor(K[2])},{debounce:100,flush:"post"});async function ie(J){if(h.value)return;q(),h.value=!0,await At();const U=Fn.value;U&&(U.setOption("readOnly",!0),await At(),U.refresh()),p.value=U?.getCursor(),U?.off("changes",D),L(),$.forEach(K=>K.clear()),_.forEach(K=>U?.removeLineClass(K,"wrap")),$.length=0,_.length=0;try{E.value=!0,await ft.rpc.saveTestFile(n.file.filepath,J),l.value=J,u.value=!1}catch(K){console.error("error saving file",K)}E.value||U?.clearHistory();try{await $0(ol).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await $0(ol).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}y.value.forEach(N),w.value.forEach(I),U?.on("changes",D),h.value=!1,await At(),U&&(U.setOption("readOnly",!1),await At(),U.refresh()),X()}return Sc(L),(J,U)=>(te(),We(Ju,ci({ref_key:"editor",ref:v,modelValue:o.value,"onUpdate:modelValue":U[0]||(U[0]=K=>o.value=K),"h-full":""},{lineNumbers:!0,readOnly:W(pr)||!W(pt).api?.allowWrite,saving:h.value},{mode:g.value,"data-testid":"code-mirror",onSave:ie}),null,16,["modelValue","mode"]))}}),$k=tt({__name:"Modal",props:Xa({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Jf(e,"modelValue"),n=Se(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),i=Se(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),o=()=>t.value=!1;return(l,u)=>(te(),ge("div",{class:ot(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[Y("div",{class:ot(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:o},null,2),Y("div",{class:ot(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[n.value]]),style:Pt(t.value?{}:{transform:i.value})},[Bt(l.$slots,"default")],6)],2))}}),Pxe={class:"overflow-auto max-h-120"},Ixe={"my-2":"","mx-4":"","text-sm":"","font-light":"","op-90":""},Dxe=["onClick"],Fxe=tt({__name:"ModuleGraphImportBreakdown",emits:["select"],setup(e,{emit:t}){const n=t,i=Se(()=>{const u=Tr.value?.importDurations,f=pt.value.root;if(!u||!f)return[];const h=[];for(const p in u){const g=u[p],v=g.external?gP(p):ud(f,p);h.push({importedFile:p,relativeFile:o(v),selfTime:g.selfTime,totalTime:g.totalTime,formattedSelfTime:us(g.selfTime),formattedTotalTime:us(g.totalTime),selfTimeClass:kf(g.selfTime),totalTimeClass:kf(g.totalTime),external:g.external})}return h.sort((p,g)=>g.totalTime-p.totalTime)});function o(l){return l.length<=45?l:`...${l.slice(-45)}`}return(l,u)=>(te(),ge("div",Pxe,[u[1]||(u[1]=Y("h1",{"my-2":"","mx-4":""},[Qe(" Import Duration Breakdown "),Y("span",{"op-70":""},"(ordered by Total Time)")],-1)),Y("table",Ixe,[u[0]||(u[0]=Y("thead",null,[Y("tr",null,[Y("th",null," Module "),Y("th",null," Self "),Y("th",null," Total "),Y("th",null," % ")])],-1)),Y("tbody",null,[(te(!0),ge(nt,null,xn(i.value,f=>(te(),ge("tr",{key:f.importedFile},[Y("td",{class:"cursor-pointer pr-2",style:Pt({color:f.external?"var(--color-node-external)":void 0}),onClick:h=>n("select",f.importedFile,f.external?"external":"inline")},Me(f.relativeFile),13,Dxe),Y("td",{"pr-2":"",class:ot(f.selfTimeClass)},Me(f.formattedSelfTime),3),Y("td",{"pr-2":"",class:ot(f.totalTimeClass)},Me(f.formattedTotalTime),3),Y("td",{"pr-2":"",class:ot(f.totalTimeClass)},Me(Math.round(f.totalTime/i.value[0].totalTime*100))+"% ",3)]))),128))])])]))}}),el=tt({__name:"Badge",props:{type:{default:"info"}},setup(e){return(t,n)=>(te(),ge("span",{class:ot(["rounded-full py-0.5 px-2 text-xs text-white select-none",{"bg-red":e.type==="danger","bg-orange":e.type==="warning","bg-gray":e.type==="info","bg-indigo/60":e.type==="tip"}])},[Bt(t.$slots,"default")],2))}}),zxe={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Hxe={"p-4":"",relative:""},Bxe={flex:"","justify-between":""},jxe={"mr-8":"",flex:"","gap-2":"","items-center":""},Wxe={op50:"","font-mono":"","text-sm":""},qxe={key:0,"p-5":""},Uxe={key:0,p:"x3 y-1","bg-overlay":"",border:"base b t"},Vxe={key:0},Gxe={p:"x3 y-1","bg-overlay":"",border:"base b t"},Kxe=tt({__name:"ModuleTransformResultView",props:{id:{},projectName:{},type:{},canUndo:{type:Boolean}},emits:["close","select","back"],setup(e,{emit:t}){const n=e,i=t,o=VN(()=>{if(Tr.value?.id){if(n.type==="inline")return ft.rpc.getTransformResult(n.projectName,n.id,Tr.value.id,!!gr);if(n.type==="external")return ft.rpc.getExternalResult(n.id,Tr.value.id)}}),l=Se(()=>{const D=Tr.value?.importDurations||{};return D[n.id]||D[nR("/@fs/",n.id)]||{}}),u=Se(()=>n.id?.split(/\./g).pop()||"js"),f=Se(()=>o.value?.source?.trim()||""),h=Se(()=>!o.value||!("code"in o.value)||!pt.value.experimental?.fsModuleCache?void 0:o.value.code.lastIndexOf("vitestCache=")!==-1),p=Se(()=>!o.value||!("code"in o.value)?null:o.value.code.replace(/\/\/# sourceMappingURL=.*\n/,"").replace(/\/\/# sourceMappingSource=.*\n/,"").replace(/\/\/# vitestCache=.*\n?/,"").trim()||""),g=Se(()=>!o.value||!("map"in o.value)?{mappings:""}:{mappings:o.value?.map?.mappings??"",version:o.value?.map?.version}),v=[],y=[],w=[];function $(D,N){const I=D.coordsChar({left:N.clientX,top:N.clientY}),q=D.findMarksAt(I);if(q.length!==1)return;const X=q[0].title;if(X){const ie=q[0].attributes?.["data-external"]==="true"?"external":"inline";i("select",X,ie)}}function _(D){const N=document.createElement("div");N.classList.add("mb-5");const I=pt.value.root;if(I)return D.forEach(({resolvedId:q,totalTime:X,external:ie})=>{const J=document.createElement("div");J.append(document.createTextNode("import "));const U=document.createElement("span"),K=ud(I,q);U.textContent=`"/${K}"`,U.className="hover:underline decoration-gray cursor-pointer select-none",J.append(U),U.addEventListener("click",()=>{i("select",q,ie?"external":"inline")});const P=document.createElement("span");P.textContent=` ${us(X)}`;const O=kf(X);O&&P.classList.add(O),J.append(P),N.append(J)}),N}function C(D){const N=document.createElement("div");N.className="flex ml-2",N.textContent=us(D);const I=kf(D);return I&&N.classList.add(I),N}function E(D){if(w.forEach(N=>N.clear()),w.length=0,v.forEach(N=>N.remove()),v.length=0,y.forEach(N=>N.clear()),y.length=0,o.value&&"modules"in o.value){D.off("mousedown",$),D.on("mousedown",$);const N=o.value.untrackedModules;if(N?.length){const I=_(N);if(!I)return;v.push(I),w.push(D.addLineWidget(0,I,{above:!0}))}o.value.modules?.forEach(I=>{const q={line:I.start.line-1,ch:I.start.column},X={line:I.end.line-1,ch:I.end.column},ie=D.markText(q,X,{title:I.resolvedId,attributes:{"data-external":String(I.external===!0)},className:"hover:underline decoration-red cursor-pointer select-none"});y.push(ie);const J=C(I.totalTime+(I.transformTime||0));N?.length||J.classList.add("-mt-5"),v.push(J),D.addWidget({line:I.end.line-1,ch:I.end.column+1},J,!1)})}}function L(){i("back")}return J1("Escape",()=>{i("close")}),(D,N)=>{const I=ir("tooltip");return te(),ge("div",zxe,[Y("div",Hxe,[Y("div",Bxe,[Y("p",null,[e.canUndo?st((te(),We(Tt,{key:0,icon:"i-carbon-arrow-left",class:"flex-inline",onClick:N[0]||(N[0]=q=>L())},null,512)),[[I,"Go Back",void 0,{bottom:!0}]]):Fe("",!0),N[7]||(N[7]=Qe(" Module Info ",-1)),Ne(W(wo),{class:"inline","cursor-help":""},{popper:je(()=>[Qe(" This is module is "+Me(e.type==="external"?"externalized":"inlined")+". ",1),e.type==="external"?(te(),ge(nt,{key:0},[Qe(" It means that the module was not processed by Vite plugins, but instead was directly imported by the environment. ")],64)):(te(),ge(nt,{key:1},[Qe(" It means that the module was processed by Vite plugins. ")],64))]),default:je(()=>[Ne(el,{type:"custom","ml-1":"",style:Pt({backgroundColor:`var(--color-node-${e.type})`})},{default:je(()=>[Qe(Me(e.type),1)]),_:1},8,["style"])]),_:1}),h.value===!0?(te(),We(W(wo),{key:1,class:"inline","cursor-help":""},{popper:je(()=>[...N[4]||(N[4]=[Qe(' This module is cached on the file system under `experimental.fsModuleCachePath` ("node_modules/.exprtimental-vitest-cache" by default). ',-1)])]),default:je(()=>[Ne(el,{type:"tip","ml-2":""},{default:je(()=>[...N[3]||(N[3]=[Qe(" cached ",-1)])]),_:1})]),_:1})):Fe("",!0),h.value===!1?(te(),We(W(wo),{key:2,class:"inline","cursor-help":""},{popper:je(()=>[...N[6]||(N[6]=[Y("p",null,"This module is not cached on the file system. It might be the first test run after cache invalidation or",-1),Y("p",null,"it was excluded manually via `experimental_defineCacheKeyGenerator`, or it cannot be cached (modules with `import.meta.glob`, for example).",-1)])]),default:je(()=>[Ne(el,{type:"warning","ml-2":""},{default:je(()=>[...N[5]||(N[5]=[Qe(" not cached ",-1)])]),_:1})]),_:1})):Fe("",!0)]),Y("div",jxe,[l.value.selfTime!=null&&l.value.external!==!0?(te(),We(W(wo),{key:0,class:"inline","cursor-help":""},{popper:je(()=>[Qe(" It took "+Me(W(zh)(l.value.selfTime))+" to import this module, excluding static imports. ",1)]),default:je(()=>[Ne(el,{type:W(qu)(l.value.selfTime)},{default:je(()=>[Qe(" self: "+Me(W(us)(l.value.selfTime)),1)]),_:1},8,["type"])]),_:1})):Fe("",!0),l.value.totalTime!=null?(te(),We(W(wo),{key:1,class:"inline","cursor-help":""},{popper:je(()=>[Qe(" It took "+Me(W(zh)(l.value.totalTime))+" to import the whole module, including static imports. ",1)]),default:je(()=>[Ne(el,{type:W(qu)(l.value.totalTime)},{default:je(()=>[Qe(" total: "+Me(W(us)(l.value.totalTime)),1)]),_:1},8,["type"])]),_:1})):Fe("",!0),W(o)&&"transformTime"in W(o)&&W(o).transformTime?(te(),We(W(wo),{key:2,class:"inline","cursor-help":""},{popper:je(()=>[Qe(" It took "+Me(W(zh)(W(o).transformTime))+" to transform this module by Vite plugins. ",1)]),default:je(()=>[Ne(el,{type:W(qu)(W(o).transformTime)},{default:je(()=>[Qe(" transform: "+Me(W(us)(W(o).transformTime)),1)]),_:1},8,["type"])]),_:1})):Fe("",!0)])]),Y("p",Wxe,Me(e.id),1),Ne(Tt,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:N[1]||(N[1]=q=>i("close"))})]),W(o)?(te(),ge(nt,{key:1},[Y("div",{grid:"~ rows-[min-content_auto]","overflow-hidden":"","flex-auto":"",class:ot({"cols-2":p.value!=null})},[N[8]||(N[8]=Y("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),p.value!=null?(te(),ge("div",Uxe," Transformed ")):Fe("",!0),(te(),We(Ju,ci({key:e.id,"h-full":"","model-value":f.value,"read-only":""},{lineNumbers:!0},{mode:u.value,onCodemirror:N[2]||(N[2]=q=>E(q))}),null,16,["model-value","mode"])),p.value!=null?(te(),We(Ju,ci({key:1,"h-full":"","model-value":p.value,"read-only":""},{lineNumbers:!0},{mode:"js"}),null,16,["model-value"])):Fe("",!0)],2),g.value.mappings!==""?(te(),ge("div",Vxe,[Y("div",Gxe," Source map (v"+Me(g.value.version)+") ",1),Ne(Ju,ci({"model-value":g.value.mappings,"read-only":""},{lineNumbers:!0}),null,16,["model-value"])])):Fe("",!0)],64)):(te(),ge("div",qxe," No transform result found for this module. "))])}}}),Yxe={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},Xxe={flex:"","items-center":"","gap-2":"","px-3":"","py-2":""},Jxe={flex:"~ gap-1","items-center":"","select-none":""},Zxe={class:"pr-2"},Qxe=["id","checked","onChange"],e1e=["for"],t1e={key:0,class:"absolute bg-[#eee] dark:bg-[#222] border-base right-0 mr-2 rounded-xl mt-2"},n1e=tt({__name:"ViewModuleGraph",props:Xa({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,n=Jf(e,"modelValue"),{graph:i}=OE(t),o=Ke(),l=Ke(!1),u=Ke(),f=uM(u),h=Ke(),p=Ke(null),g=Vt(i.value),v=Se(()=>{let K="";const P=Tr.value?.importDurations,O=pt.value.experimental?.importDurations.thresholds;if(!P||!O)return K;for(const k in P){const{totalTime:S}=P[k];if(S>=O.danger){K="text-red";break}else S>=O.warn&&(K="text-orange")}return K}),y=Ke(v.value==="text-red");Yi(()=>{g.value=_(i.value,null,2),X()}),_c(()=>{h.value?.shutdown()}),yt(i,()=>{g.value=_(i.value,p.value,2),X()});function w(){g.value=i.value,X()}function $(){y.value=!y.value}function _(K,P,O=2){if(!K.nodes.length||K.nodes.length<=50)return K;const k=new Map;K.nodes.forEach(Ee=>k.set(Ee.id,new Set)),K.links.forEach(Ee=>{const Ge=typeof Ee.source=="object"?Ee.source.id:String(Ee.source),Ue=typeof Ee.target=="object"?Ee.target.id:String(Ee.target);k.get(Ge)?.add(Ue),k.get(Ue)?.add(Ge)});let S;if(P)S=[P];else{const Ee=new Set(K.links.map(Ue=>typeof Ue.target=="object"?Ue.target.id:String(Ue.target))),Ge=K.nodes.filter(Ue=>Ue.type==="inline"&&!Ee.has(Ue.id));S=Ge.length>0?[Ge[0].id]:[K.nodes[0].id]}const R=new Set,B=S.map(Ee=>({id:Ee,level:0}));for(;B.length>0;){const{id:Ee,level:Ge}=B.shift();R.has(Ee)||Ge>O||(R.add(Ee),Ge<O&&(k.get(Ee)||new Set).forEach(He=>{R.has(He)||B.push({id:He,level:Ge+1})}))}const ae=new Map(K.nodes.map(Ee=>[Ee.id,Ee])),ve=Array.from(R).map(Ee=>ae.get(Ee)).filter(Ee=>Ee!==void 0),_e=new Map(ve.map(Ee=>[Ee.id,Ee])),Be=K.links.map(Ee=>{const Ge=typeof Ee.source=="object"?Ee.source.id:String(Ee.source),Ue=typeof Ee.target=="object"?Ee.target.id:String(Ee.target);if(R.has(Ge)&&R.has(Ue)){const He=_e.get(Ge),Re=_e.get(Ue);if(He&&Re)return{...Ee,source:He,target:Re}}return null}).filter(Ee=>Ee!==null);return{nodes:ve,links:Be}}function C(K,P){h.value?.filterNodesByType(P,K)}function E(K,P){u.value={id:K,type:P},l.value=!0}function L(){f.undo()}function D(){l.value=!1,f.clear()}function N(K){p.value=K,g.value=_(i.value,K,2),q(),X()}function I(){p.value=null,g.value=_(i.value,null,2),q(),X()}function q(){const K=g.value.nodes.map(k=>{let S,R;return k.id===p.value?(S="var(--color-node-focused)",R="var(--color-node-focused)"):k.type==="inline"?(S=k.color==="var(--color-node-root)"?"var(--color-node-root)":"var(--color-node-inline)",R=S):(S="var(--color-node-external)",R="var(--color-node-external)"),mm({...k,color:S,label:k.label?{...k.label,color:R}:k.label})}),P=new Map(K.map(k=>[k.id,k])),O=g.value.links.map(k=>{const S=typeof k.source=="object"?k.source.id:String(k.source),R=typeof k.target=="object"?k.target.id:String(k.target);return{...k,source:P.get(S),target:P.get(R)}});g.value={nodes:K,links:O}}function X(K=!1){if(h.value?.shutdown(),K&&!n.value){n.value=!0;return}if(!g.value||!o.value)return;const P=g.value.nodes.length;let O=1,k=.5;P>300?(O=.3,k=.2):P>200?(O=.4,k=.3):P>100?(O=.5,k=.3):P>50&&(O=.7,O=.4),h.value=new mxe(o.value,g.value,Hwe({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:S,newWidth:R})=>S===0&&R===0?0:.05},forces:{collision:{radiusMultiplier:10},link:{length:140}}},marker:wk.Arrow(2),modifiers:{node:U},positionInitializer:i.value.nodes.length===1?Vp.Centered:Vp.Randomized,zoom:{initial:O,min:k,max:1.5}}))}const ie=K=>K.button===0,J=K=>K.button===2;function U(K){if(pr)return;let P=0,O=0,k=0,S=!1;K.on("pointerdown",(R,B)=>{!B.x||!B.y||(S=J(R),!(!ie(R)&&!S)&&(P=B.x,O=B.y,k=Date.now()))}).on("pointerup",(R,B)=>{if(!B.x||!B.y)return;const ae=J(R);if(!ie(R)&&!ae||Date.now()-k>500)return;const ve=B.x-P,_e=B.y-O;ve**2+_e**2<100&&(!ae&&!R.shiftKey?E(B.id,B.type):(ae||R.shiftKey)&&(R.preventDefault(),B.type==="inline"&&N(B.id)))}).on("contextmenu",R=>{R.preventDefault()})}return(K,P)=>{const O=ir("tooltip");return te(),ge("div",Yxe,[Y("div",null,[Y("div",Xxe,[Y("div",Jxe,[Y("div",Zxe,Me(g.value.nodes.length)+"/"+Me(W(i).nodes.length)+" "+Me(g.value.nodes.length===1?"module":"modules"),1),st(Y("input",{id:"hide-node-modules","onUpdate:modelValue":P[0]||(P[0]=k=>n.value=k),type:"checkbox"},null,512),[[b1,n.value]]),P[9]||(P[9]=Y("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"","select-none":"",truncate:"",for:"hide-node-modules","border-b-2":"",border:"$cm-namespace"},"Hide node_modules",-1))]),(te(!0),ge(nt,null,xn(h.value?.nodeTypes.sort(),k=>(te(),ge("div",{key:k,flex:"~ gap-1","items-center":"","select-none":""},[Y("input",{id:`type-${k}`,type:"checkbox",checked:h.value?.nodeTypeFilter.includes(k),onChange:S=>C(k,S.target.checked)},null,40,Qxe),Y("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${k}`,"border-b-2":"",style:Pt({"border-color":`var(--color-node-${k})`})},Me(k)+" Modules",13,e1e)]))),128)),P[10]||(P[10]=Y("div",{"flex-auto":""},null,-1)),P[11]||(P[11]=Y("div",{flex:"~ gap-2","items-center":"","text-xs":"","opacity-60":""},[Y("span",null,"Click on node: details • Right-click/Shift: expand graph")],-1)),Y("div",null,[st(Ne(Tt,{icon:"i-carbon-notebook",class:ot(v.value),onClick:P[1]||(P[1]=k=>$())},null,8,["class"]),[[O,`${y.value?"Hide":"Show"} Import Breakdown`,void 0,{bottom:!0}]])]),Y("div",null,[st(Ne(Tt,{icon:"i-carbon-ibm-cloud-direct-link-2-connect",onClick:P[2]||(P[2]=k=>w())},null,512),[[O,"Show Full Graph",void 0,{bottom:!0}]])]),Y("div",null,[st(Ne(Tt,{icon:"i-carbon-reset",onClick:P[3]||(P[3]=k=>I())},null,512),[[O,"Reset",void 0,{bottom:!0}]])])])]),y.value?(te(),ge("div",t1e,[Ne(Fxe,{onSelect:P[4]||(P[4]=(k,S)=>E(k,S))})])):Fe("",!0),Y("div",{ref_key:"el",ref:o},null,512),Ne($k,{modelValue:l.value,"onUpdate:modelValue":P[8]||(P[8]=k=>l.value=k),direction:"right"},{default:je(()=>[u.value?(te(),We(IA,{key:0},{default:je(()=>[Ne(Kxe,{id:u.value.id,"project-name":e.projectName,type:u.value.type,"can-undo":W(f).undoStack.value.length>1,onClose:P[5]||(P[5]=k=>D()),onSelect:P[6]||(P[6]=(k,S)=>E(k,S)),onBack:P[7]||(P[7]=k=>L())},null,8,["id","project-name","type","can-undo"])]),_:1})):Fe("",!0)]),_:1},8,["modelValue"])])}}}),r1e={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},i1e={"p-4":"",relative:"",border:"base b"},o1e={op50:"","font-mono":"","text-sm":""},s1e={op50:"","font-mono":"","text-sm":""},l1e={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},a1e=["src","alt"],c1e={key:1},u1e=tt({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const n=t;return J1("Escape",()=>{n("close")}),(i,o)=>(te(),ge("div",r1e,[Y("div",i1e,[o[1]||(o[1]=Y("p",null,"Screenshot error",-1)),Y("p",o1e,Me(e.file),1),Y("p",s1e,Me(e.name),1),Ne(Tt,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:o[0]||(o[0]=l=>n("close"))})]),Y("div",l1e,[e.url?(te(),ge("img",{key:0,src:e.url,alt:`Screenshot error for '${e.name}' test in file '${e.file}'`,border:"base t r b l dotted red-500"},null,8,a1e)):(te(),ge("div",c1e," Something was wrong, the image cannot be resolved. "))])]))}}),f1e=Xi(u1e,[["__scopeId","data-v-08ce44b7"]]),d1e={flex:"~ gap-2 items-center"},Nk=tt({__name:"FailureScreenshot",props:{task:{}},setup(e){const t=Ke(!1),n=Se(()=>{if(e.task.type==="test"){const l=e.task.artifacts.find(u=>u.type==="internal:failureScreenshot");if(l!==void 0)return l}return null}),i=Se(()=>n.value&&n.value.attachments.length&&Pl(n.value.attachments[0]));function o(){if(n.value===null||n.value.attachments.length===0)return;const l=n.value.attachments[0].originalPath;fetch(`/__open-in-editor?file=${encodeURIComponent(l)}`)}return(l,u)=>{const f=ir("tooltip");return i.value?(te(),ge(nt,{key:0},[Y("div",d1e,[st(Ne(Tt,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:u[0]||(u[0]=h=>t.value=!0)},null,512),[[f,"View screenshot error",void 0,{bottom:!0}]]),W(pr)?Fe("",!0):st((te(),We(Tt,{key:0,class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:o},null,512)),[[f,"Open screenshot error in editor",void 0,{bottom:!0}]])]),(te(),We($k,{key:i.value,modelValue:t.value,"onUpdate:modelValue":u[2]||(u[2]=h=>t.value=h),direction:"right"},{default:je(()=>[Ne(f1e,{file:e.task.file.filepath,name:e.task.name,url:i.value,onClose:u[1]||(u[1]=h=>t.value=!1)},null,8,["file","name","url"])]),_:1},8,["modelValue"]))],64)):Fe("",!0)}}}),h1e={class:"scrolls scrolls-rounded task-error"},p1e=["onClickPassive"],g1e=["innerHTML"],m1e=tt({__name:"ViewReportError",props:{fileId:{},root:{},filename:{},error:{}},setup(e){const t=e;function n(f){return f.startsWith(t.root)?f.slice(t.root.length):f}const i=Se(()=>Qg(Po.value)),o=Se(()=>!!t.error?.diff),l=Se(()=>t.error.diff?i.value.toHtml(Wa(t.error.diff)):void 0);function u(f){return Tge(f.file,t.filename)?Rge(t.fileId,f):Zg(f.file,f.line,f.column)}return(f,h)=>{const p=ir("tooltip");return te(),ge("div",h1e,[Y("pre",null,[Y("b",null,Me(e.error.name),1),Qe(": "+Me(e.error.message),1)]),(te(!0),ge(nt,null,xn(e.error.stacks,(g,v)=>(te(),ge("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[Y("pre",null," - "+Me(n(g.file))+":"+Me(g.line)+":"+Me(g.column),1),st(Y("div",{class:"i-carbon-launch c-red-700 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:y=>u(g)},null,40,p1e),[[p,"Open in Editor",void 0,{bottom:!0}]])]))),128)),o.value?(te(),ge("pre",{key:0,"data-testid":"diff",innerHTML:l.value},null,8,g1e)):Fe("",!0)])}}}),Mk=Xi(m1e,[["__scopeId","data-v-bd36ee9a"]]),v1e={"h-full":"",class:"scrolls"},y1e=["id"],b1e={flex:"~ gap-2 items-center"},w1e={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},x1e=["innerHTML"],S1e={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},_1e=tt({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function n(o,l){return o.result?.state!=="fail"?[]:o.type==="test"?[{...o,level:l}]:[{...o,level:l},...o.tasks.flatMap(u=>n(u,l+1))]}const i=Se(()=>{const o=t.file,l=o.tasks?.flatMap(h=>n(h,0))??[],u=o.result;if(u?.errors?.[0]){const h={id:o.id,file:o,name:o.name,fullName:o.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:u};l.unshift(h)}return l.length>0?$_(Po.value,l):l});return(o,l)=>(te(),ge("div",v1e,[i.value.length?(te(!0),ge(nt,{key:0},xn(i.value,u=>(te(),ge("div",{id:u.id,key:u.id},[Y("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:Pt({"margin-left":`${u.result?.htmlError?.5:2*u.level+.5}rem`})},[Y("div",b1e,[Y("span",null,Me(u.name),1),Ne(Nk,{task:u},null,8,["task"])]),u.result?.htmlError?(te(),ge("div",w1e,[Y("pre",{innerHTML:u.result.htmlError},null,8,x1e)])):u.result?.errors&&W(pt).root?(te(!0),ge(nt,{key:1},xn(u.result.errors,(f,h)=>(te(),We(Mk,{key:h,error:f,filename:e.file.name,root:W(pt).root,"file-id":e.file.id},null,8,["error","filename","root","file-id"]))),128)):Fe("",!0)],4)],8,y1e))),128)):(te(),ge("div",S1e," All tests passed in this file "))]))}}),k1e=Xi(_1e,[["__scopeId","data-v-13572615"]]);function Lk(e,t){return Pge(e,t)}function Pf(e){const t=pt.value.root;return`${t?ud(t,e.file):e.file}:${e.line}:${e.column}`}const T1e=["href","referrerPolicy"],C1e=["src"],E1e=tt({__name:"AnnotationAttachmentImage",props:{annotation:{}},setup(e){const t=e,n=Se(()=>{const i=t.annotation.attachment,o=i.path||i.body;return typeof o=="string"&&(o.startsWith("http://")||o.startsWith("https://"))?o:Pl(i)});return(i,o)=>e.annotation.attachment&&e.annotation.attachment.contentType?.startsWith("image/")?(te(),ge("a",{key:0,target:"_blank",class:"inline-block mt-2",style:{maxWidth:"600px"},href:n.value,referrerPolicy:W(Ak)(e.annotation.attachment)?"no-referrer":void 0},[Y("img",{src:n.value},null,8,C1e)],8,T1e)):Fe("",!0)}}),A1e={class:"flex flex-col gap-4"},$1e={key:0},N1e=tt({__name:"ArtifactTemplate",setup(e){const t=Bx();return(n,i)=>(te(),ge("article",A1e,[Y("h1",null,[Bt(n.$slots,"title")]),W(t).message?(te(),ge("p",$1e,[Bt(n.$slots,"message")])):Fe("",!0),Bt(n.$slots,"default")]))}}),Ok=Symbol("tabContext"),If={tab:(e,t)=>`${t}-${e}-tab`,tabpanel:(e,t)=>`${t}-${e}-tabpanel`},M1e={class:"flex flex-col items-center gap-6"},L1e={role:"tablist","aria-orientation":"horizontal",class:"flex gap-4"},O1e=["id","aria-selected","aria-controls","onClick"],R1e=tt({__name:"SmallTabs",setup(e){const t=Ke(null),n=Ke([]),i=mg();return _r(Ok,{id:i,activeTab:t,registerTab:o=>{n.value.some(({id:l})=>l===o.id)||n.value.push(o),n.value.length===1&&(t.value=o.id)},unregisterTab:o=>{const l=n.value.findIndex(({id:u})=>u===o.id);l>-1&&n.value.splice(l,1),t.value===o.id&&(t.value=n.value[0]?.id??null)}}),(o,l)=>(te(),ge("div",M1e,[Y("div",L1e,[(te(!0),ge(nt,null,xn(n.value,u=>(te(),ge("button",{id:W(If).tab(u.id,W(i)),key:u.id,role:"tab","aria-selected":t.value===u.id,"aria-controls":W(If).tabpanel(u.id,W(i)),type:"button",class:"aria-[selected=true]:underline underline-offset-4",onClick:f=>t.value=u.id},Me(u.title),9,O1e))),128))]),Bt(o.$slots,"default")]))}}),P1e=["id","aria-labelledby","hidden"],Ou=tt({__name:"SmallTabsPane",props:{title:{}},setup(e){const t=e,n=bn(Ok);if(!n)throw new Error("TabPane must be used within Tabs");const i=mg(),o=Se(()=>n.activeTab.value===i);return Yi(()=>{n.registerTab({...t,id:i})}),_c(()=>{n.unregisterTab({...t,id:i})}),(l,u)=>(te(),ge("div",{id:W(If).tabpanel(W(i),W(n).id),role:"tabpanel","aria-labelledby":W(If).tab(W(i),W(n).id),hidden:!o.value,class:"max-w-full"},[Bt(l.$slots,"default")],8,P1e))}}),Rk=tt({__name:"VisualRegressionImageContainer",setup(e){const t=`url("${CSS.escape('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path d="M1 2V0h1v1H0v1z" fill-opacity=".05"/></svg>')}")`;return(n,i)=>(te(),ge("div",{class:"max-w-full w-fit mx-auto bg-[size:16px_16px] bg-[#fafafa] dark:bg-[#3a3a3a] bg-center p-4 rounded user-select-none outline-0 outline-black dark:outline-white outline-offset-4 outline-solid focus-within:has-focus-visible:outline-2",style:Pt({backgroundImage:t})},[Bt(n.$slots,"default")],4))}}),I1e=["href","referrerPolicy"],D1e=["src"],Xh=tt({__name:"VisualRegressionImage",props:{attachment:{}},setup(e){const t=Se(()=>Yp(e.attachment));return(n,i)=>(te(),We(Rk,null,{default:je(()=>[Y("a",{target:"_blank",href:t.value,referrerPolicy:W(Ak)(e.attachment)?"no-referrer":void 0},[Y("img",{src:t.value},null,8,D1e)],8,I1e)]),_:1}))}}),F1e={class:"absolute w-full h-full place-content-center place-items-center [clip-path:polygon(0%_0%,var(--split)_0%,var(--split)_100%,0%_100%)]","aria-hidden":"true",role:"presentation"},z1e=["src"],H1e={class:"absolute w-full h-full place-content-center place-items-center [clip-path:polygon(var(--split)_0%,100%_0%,100%_100%,var(--split)_100%)]","aria-hidden":"true",role:"presentation"},B1e=["src"],j1e=["id"],W1e=["for"],q1e=tt({__name:"VisualRegressionSlider",props:{reference:{},actual:{}},setup(e){const t=Se(()=>Yp(e.reference)),n=Se(()=>Yp(e.actual)),i=Se(()=>Math.max(e.reference.width,e.actual.width)),o=Se(()=>Math.max(e.reference.height,e.actual.height)),l=Ke(50),u=mg();return(f,h)=>(te(),We(Rk,null,{default:je(()=>[Y("div",{"aria-label":"Image comparison slider showing reference and actual screenshots",class:"relative max-w-full h-full overflow-hidden",style:Pt({"--split":`${l.value}%`,aspectRatio:`${i.value} / ${o.value}`,width:`${i.value}px`})},[Y("div",F1e,[Y("img",{src:t.value},null,8,z1e)]),Y("div",H1e,[Y("img",{src:n.value},null,8,B1e)]),h[1]||(h[1]=Y("div",{class:"absolute left-[--split] h-full w-[2px] -translate-x-1/2 bg-white shadow-[0_0_3px_rgb(0_0_0/.2),0_0_10px_rgb(0_0_0/.5)] before:content-[''] before:absolute before:top-1/2 before:size-[16px] before:bg-white before:border-[2px] before:border-black before:rounded-full before:-translate-y-1/2 before:translate-x-[calc(-50%+1px)]","aria-hidden":"true",role:"presentation"},null,-1)),st(Y("input",{id:W(u),"onUpdate:modelValue":h[0]||(h[0]=p=>l.value=p),type:"range",min:"0",max:"100",step:"0.1","aria-label":"Adjust slider to compare reference and actual images",class:"absolute inset-0 opacity-0 cursor-col-resize"},null,8,j1e),[[y1,l.value]]),Y("output",{for:W(u),class:"sr-only"}," Showing "+Me(l.value)+"% reference, "+Me(100-l.value)+"% actual ",9,W1e)],4)]),_:1}))}}),U1e=tt({__name:"VisualRegression",props:{regression:{}},setup(e){const t=Se(()=>({diff:e.regression.attachments.find(n=>n.name==="diff"),reference:e.regression.attachments.find(n=>n.name==="reference"),actual:e.regression.attachments.find(n=>n.name==="actual")}));return(n,i)=>(te(),We(N1e,null,{title:je(()=>[...i[0]||(i[0]=[Qe(" Visual Regression ",-1)])]),message:je(()=>[Qe(Me(e.regression.message),1)]),default:je(()=>[Ne(R1e,null,{default:je(()=>[t.value.diff?(te(),We(Ou,{key:t.value.diff.path,title:"Diff"},{default:je(()=>[Ne(Xh,{attachment:t.value.diff},null,8,["attachment"])]),_:1})):Fe("",!0),t.value.reference?(te(),We(Ou,{key:t.value.reference.path,title:"Reference"},{default:je(()=>[Ne(Xh,{attachment:t.value.reference},null,8,["attachment"])]),_:1})):Fe("",!0),t.value.actual?(te(),We(Ou,{key:t.value.actual.path,title:"Actual"},{default:je(()=>[Ne(Xh,{attachment:t.value.actual},null,8,["attachment"])]),_:1})):Fe("",!0),t.value.reference&&t.value.actual?(te(),We(Ou,{key:(t.value.reference.path??"")+(t.value.actual.path??""),title:"Slider"},{default:je(()=>[Ne(q1e,{actual:t.value.actual,reference:t.value.reference},null,8,["actual","reference"])]),_:1})):Fe("",!0)]),_:1})]),_:1}))}}),V1e={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},G1e=["onClick"],K1e={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},Y1e=tt({__name:"Artifacts",props:{test:{}},setup(e){const t=Se(()=>{const n=[];for(const i of e.test.artifacts)switch(i.type){case"internal:toMatchScreenshot":{i.kind==="visual-regression"&&n.push({artifact:i,component:U1e,props:{regression:i}});continue}}return n});return(n,i)=>{const o=ir("tooltip");return t.value.length?(te(),ge(nt,{key:0},[i[0]||(i[0]=Y("h1",{"m-2":""}," Test Artifacts ",-1)),(te(!0),ge(nt,null,xn(t.value,({artifact:l,component:u,props:f},h)=>(te(),ge("div",{key:l.type+h,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[Y("div",V1e,[Y("div",null,[l.location&&l.location.file===e.test.file.filepath?st((te(),ge("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:p=>W(Lk)(e.test,l.location)},[Qe(Me(W(Pf)(l.location)),1)],8,G1e)),[[o,"Open in Editor",void 0,{bottom:!0}]]):l.location&&l.location.file!==e.test.file.filepath?(te(),ge("span",K1e,Me(W(Pf)(l.location)),1)):Fe("",!0)])]),(te(),We(sf(u),ci({ref_for:!0},f),null,16))]))),128))],64)):Fe("",!0)}}}),X1e={"h-full":"",class:"scrolls"},J1e={key:0},Z1e={bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:""},Q1e={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},eSe=["innerHTML"],tSe={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},nSe={flex:"~ gap-2 items-center justify-between","overflow-hidden":""},rSe={class:"flex gap-2","overflow-hidden":""},iSe={class:"font-bold","ws-nowrap":"",truncate:""},oSe=["href","download"],sSe=["onClick"],lSe={key:1,class:"flex gap-1 text-yellow-500/80","ws-nowrap":""},aSe={class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},cSe={bg:"gray/10",text:"black-100 sm",p:"x3 y2","m-2":"",rounded:"",class:"grid grid-cols-1 md:grid-cols-[200px_1fr] gap-2","overflow-hidden":""},uSe={"font-bold":"","ws-nowrap":"",truncate:"","py-2":""},fSe={"overflow-auto":"",bg:"gray/30",rounded:"","p-2":""},dSe=tt({__name:"ViewTestReport",props:{test:{}},setup(e){const t=e,n=Se(()=>!t.test.result||!t.test.result.errors?.length?null:$_(Po.value,[t.test])[0]),i=new Set(["benchmark","typecheck"]),o=Se(()=>Object.entries(t.test.meta).filter(([l])=>!i.has(l)));return(l,u)=>{const f=ir("tooltip");return te(),ge("div",X1e,[n.value?(te(),ge("div",J1e,[Y("div",Z1e,[Ne(Nk,{task:e.test},null,8,["task"]),e.test.result?.htmlError?(te(),ge("div",Q1e,[Y("pre",{innerHTML:e.test.result.htmlError},null,8,eSe)])):e.test.result?.errors&&W(pt).root?(te(!0),ge(nt,{key:1},xn(e.test.result.errors,(h,p)=>(te(),We(Mk,{key:p,"file-id":e.test.file.id,error:h,filename:e.test.file.name,root:W(pt).root},null,8,["file-id","error","filename","root"]))),128)):Fe("",!0)])])):(te(),ge("div",tSe," The test has passed without any errors ")),e.test.annotations.length?(te(),ge(nt,{key:2},[u[1]||(u[1]=Y("h1",{"m-2":""}," Test Annotations ",-1)),(te(!0),ge(nt,null,xn(e.test.annotations,h=>(te(),ge("div",{key:h.type+h.message,bg:"yellow-500/10",text:"yellow-500 sm",p:"x3 y2","m-2":"",rounded:"",role:"note"},[Y("div",nSe,[Y("div",rSe,[Y("span",iSe,Me(h.type),1),h.attachment&&!h.attachment.contentType?.startsWith("image/")?(te(),ge("a",{key:0,class:"flex gap-1 items-center text-yellow-500/80 cursor-pointer",href:W(Pl)(h.attachment),download:W(Ek)(h.message,h.attachment.contentType)},[...u[0]||(u[0]=[Y("span",{class:"i-carbon:download block"},null,-1),Qe(" Download ",-1)])],8,oSe)):Fe("",!0)]),Y("div",null,[h.location&&h.location.file===e.test.file.filepath?st((te(),ge("span",{key:0,title:"Open in Editor",class:"flex gap-1 text-yellow-500/80 cursor-pointer","ws-nowrap":"",onClick:p=>W(Lk)(e.test,h.location)},[Qe(Me(W(Pf)(h.location)),1)],8,sSe)),[[f,"Open in Editor",void 0,{bottom:!0}]]):h.location&&h.location.file!==e.test.file.filepath?(te(),ge("span",lSe,Me(W(Pf)(h.location)),1)):Fe("",!0)])]),Y("div",aSe,Me(h.message),1),Ne(E1e,{annotation:h},null,8,["annotation"])]))),128))],64)):Fe("",!0),Ne(Y1e,{test:e.test},null,8,["test"]),o.value.length?(te(),ge(nt,{key:3},[u[2]||(u[2]=Y("h1",{"m-2":""}," Test Meta ",-1)),Y("div",cSe,[(te(!0),ge(nt,null,xn(o.value,([h,p])=>(te(),ge(nt,{key:h},[Y("div",uSe,Me(h),1),Y("pre",fSe,Me(p),1)],64))),128))])],64)):Fe("",!0)])}}}),hSe=Xi(dSe,[["__scopeId","data-v-da767a0b"]]),pSe={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},gSe={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},mSe={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},vSe={"flex-1":"","font-light":"","overflow-hidden":"","text-sm":"",flex:""},ySe={"op-50":"",truncate:""},bSe=["title"],wSe={class:"flex text-lg"},xSe={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},SSe={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},_Se={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},kSe={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},TSe=["flex-1"],$w=tt({__name:"FileDetails",setup(e){const t=Ke({nodes:[],links:[]}),n=Ke(!1),i=Ke(!1),o=Ke(!1),l=Ke(void 0),u=Ke(!0),f=Se(()=>Fi.value?ft.state.idMap.get(Fi.value):void 0),h=Se(()=>{const I=Xt.value;if(!(!I||!I.filepath))return{filepath:I.filepath,projectName:I.file.projectName||""}}),p=Se(()=>Xt.value&&Xg(Xt.value)),g=Se(()=>!!Xt.value?.meta?.typecheck);function v(){const I=Xt.value?.filepath;I&&fetch(`/__open-in-editor?file=${encodeURIComponent(I)}`)}function y(I){I==="graph"&&(i.value=!0),yn.value=I}const w=Se(()=>j_.value?.reduce((I,{size:q})=>I+q,0)??0);function $(I){n.value=I}const _=/[/\\]node_modules[/\\]/;async function C(I=!1){if(!(o.value||h.value?.filepath===l.value&&!I)){o.value=!0,await At();try{const q=h.value;if(!q){o.value=!1;return}if(I||!l.value||q.filepath!==l.value||!t.value.nodes.length&&!t.value.links.length){let X=await ft.rpc.getModuleGraph(q.projectName,q.filepath,!!gr);u.value&&(pr&&(X=typeof window.structuredClone<"u"?window.structuredClone(X):uP(X)),X.inlined=X.inlined.filter(ie=>!_.test(ie)),X.externalized=X.externalized.filter(ie=>!_.test(ie))),t.value=bxe(X,q.filepath),l.value=q.filepath}y("graph")}finally{await new Promise(q=>setTimeout(q,100)),o.value=!1}}}Y1(()=>[h.value,yn.value,u.value],([,I,q],X)=>{I==="graph"&&C(X&&q!==X[2])},{debounce:100,immediate:!0});const E=Se(()=>{const I=Xt.value?.file.projectName||"";return $e.colors.get(I)||Uu(Xt.value?.file.projectName)}),L=Se(()=>m_(E.value)),D=Se(()=>{const I=Fi.value;if(!I)return Xt.value?.name;const q=[];let X=ft.state.idMap.get(I);for(;X;)q.push(X.name),X=X.suite;return q.reverse().join(" > ")}),N=Se(()=>{const I=Fi.value;return I?(ft.state.idMap.get(I)?.tags||[]).map(X=>({name:X,description:AP.value[X]?.description,bg:Uu(X,!0),border:Uu(X),text:"white"})):[]});return(I,q)=>{const X=ir("tooltip");return W(Xt)?(te(),ge("div",pSe,[Y("div",null,[Y("div",gSe,[Ne(Tk,{state:W(Xt).result?.state,mode:W(Xt).mode,"failed-snapshot":p.value},null,8,["state","mode","failed-snapshot"]),g.value?st((te(),ge("div",mSe,null,512)),[[X,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Fe("",!0),W(Xt)?.file.projectName?(te(),ge("span",{key:1,class:"rounded-full py-0.5 px-2 text-xs font-light",style:Pt({backgroundColor:E.value,color:L.value}),"cursor-default":""},Me(W(Xt).file.projectName),5)):Fe("",!0),Y("div",vSe,[Y("span",ySe,Me(D.value),1),(te(!0),ge(nt,null,xn(N.value,ie=>st((te(),ge("span",{key:ie.name,class:"rounded-full ml-2 px-2 text-xs font-light",style:Pt({backgroundColor:ie.bg,color:ie.text,border:`1px solid ${ie.border}`}),title:ie.description,"cursor-default":"",flex:"","items-center":""},[Qe(Me(ie.name),1)],12,bSe)),[[X,ie.description,void 0,{bottom:!0}]])),128))]),Y("div",wSe,[W(pr)?Fe("",!0):st((te(),We(Tt,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!W(Xt)?.filepath,onClick:v},null,8,["disabled"])),[[X,"Open in editor",void 0,{bottom:!0}]]),W(gr)?(te(),We(hd,{key:1})):Fe("",!0)])]),Y("div",xSe,[Y("button",{"tab-button":"",class:ot(["flex items-center gap-2",{"tab-button-active":W(yn)==null}]),"data-testid":"btn-report",onClick:q[0]||(q[0]=ie=>y(null))},[...q[5]||(q[5]=[Y("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),Qe(" Report ",-1)])],2),Y("button",{"tab-button":"","data-testid":"btn-graph",class:ot(["flex items-center gap-2",{"tab-button-active":W(yn)==="graph"}]),onClick:q[1]||(q[1]=ie=>y("graph"))},[o.value?(te(),ge("span",SSe)):(te(),ge("span",_Se)),q[6]||(q[6]=Qe(" Module Graph ",-1))],2),Y("button",{"tab-button":"","data-testid":"btn-code",class:ot(["flex items-center gap-2",{"tab-button-active":W(yn)==="editor"}]),onClick:q[2]||(q[2]=ie=>y("editor"))},[q[7]||(q[7]=Y("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),Qe(" "+Me(n.value?"* ":"")+"Code ",1)],2),Y("button",{"tab-button":"","data-testid":"btn-console",class:ot(["flex items-center gap-2",{"tab-button-active":W(yn)==="console",op20:W(yn)!=="console"&&w.value===0}]),onClick:q[3]||(q[3]=ie=>y("console"))},[q[8]||(q[8]=Y("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),Qe(" Console ("+Me(w.value)+") ",1)],2)])]),Y("div",kSe,[i.value?(te(),ge("div",{key:0,"flex-1":W(yn)==="graph"&&""},[st(Ne(n1e,{modelValue:u.value,"onUpdate:modelValue":q[4]||(q[4]=ie=>u.value=ie),graph:t.value,"data-testid":"graph","project-name":W(Xt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[Co,W(yn)==="graph"&&!o.value]])],8,TSe)):Fe("",!0),W(yn)==="editor"?(te(),We(Rxe,{key:W(Xt).id,file:W(Xt),"data-testid":"editor",onDraft:$},null,8,["file"])):W(yn)==="console"?(te(),We(Mxe,{key:2,file:W(Xt),"data-testid":"console"},null,8,["file"])):!W(yn)&&!f.value&&W(Xt)?(te(),We(k1e,{key:3,file:W(Xt),"data-testid":"report"},null,8,["file"])):!W(yn)&&f.value?(te(),We(hSe,{key:4,test:f.value,"data-testid":"report"},null,8,["test"])):Fe("",!0)])])):Fe("",!0)}}}),CSe=""+new URL("../favicon.svg",import.meta.url).href;function ESe(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var o=e.indexOf("Edge/");return o>0?parseInt(e.substring(o+5,e.indexOf(".",o)),10):-1}let Zu;function Xp(){Xp.init||(Xp.init=!0,Zu=ESe()!==-1)}var vd={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Xp(),At(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Zu&&this.$el.appendChild(e),e.data="about:blank",Zu||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Zu&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const ASe=Ex();Tx("data-v-b329ee4c");const $Se={class:"resize-observer",tabindex:"-1"};Cx();const NSe=ASe((e,t,n,i,o,l)=>(te(),We("div",$Se)));vd.render=NSe;vd.__scopeId="data-v-b329ee4c";vd.__file="src/components/ResizeObserver.vue";function Qu(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Qu=function(t){return typeof t}:Qu=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qu(e)}function MSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LSe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function OSe(e,t,n){return t&&LSe(e.prototype,t),e}function Nw(e){return RSe(e)||PSe(e)||ISe(e)||DSe()}function RSe(e){if(Array.isArray(e))return Jp(e)}function PSe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function ISe(e,t){if(e){if(typeof e=="string")return Jp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Jp(e,t)}}function Jp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function DSe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
82
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FSe(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function zSe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,o,l,u=function(h){for(var p=arguments.length,g=new Array(p>1?p-1:0),v=1;v<p;v++)g[v-1]=arguments[v];if(l=g,!(i&&h===o)){var y=n.leading;typeof y=="function"&&(y=y(h,o)),(!i||h!==o)&&y&&e.apply(void 0,[h].concat(Nw(l))),o=h,clearTimeout(i),i=setTimeout(function(){e.apply(void 0,[h].concat(Nw(l))),i=0},t)}};return u._clear=function(){clearTimeout(i),i=null},u}function Pk(e,t){if(e===t)return!0;if(Qu(e)==="object"){for(var n in e)if(!Pk(e[n],t[n]))return!1;return!0}return!1}var HSe=(function(){function e(t,n,i){MSe(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,i)}return OSe(e,[{key:"createObserver",value:function(n,i){var o=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=FSe(n),this.callback=function(f,h){o.options.callback(f,h),f&&o.options.once&&(o.frozen=!0,o.destroyObserver())},this.callback&&this.options.throttle){var l=this.options.throttleOptions||{},u=l.leading;this.callback=zSe(this.callback,this.options.throttle,{leading:function(h){return u==="both"||u==="visible"&&h||u==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(f){var h=f[0];if(f.length>1){var p=f.find(function(v){return v.isIntersecting});p&&(h=p)}if(o.callback){var g=h.isIntersecting&&h.intersectionRatio>=o.threshold;if(g===o.oldResult)return;o.oldResult=g,o.callback(g,h)}},this.options.intersection),At(function(){o.observer&&o.observer.observe(o.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e})();function Ik(e,t,n){var i=t.value;if(i)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var o=new HSe(e,i,n);e._vue_visibilityState=o}}function BSe(e,t,n){var i=t.value,o=t.oldValue;if(!Pk(i,o)){var l=e._vue_visibilityState;if(!i){Dk(e);return}l?l.createObserver(i,n):Ik(e,{value:i},n)}}function Dk(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var jSe={beforeMount:Ik,updated:BSe,unmounted:Dk},WSe={itemsLimit:1e3},qSe=/(auto|scroll)/;function Fk(e,t){return e.parentNode===null?t:Fk(e.parentNode,t.concat([e]))}var Jh=function(t,n){return getComputedStyle(t,null).getPropertyValue(n)},USe=function(t){return Jh(t,"overflow")+Jh(t,"overflow-y")+Jh(t,"overflow-x")},VSe=function(t){return qSe.test(USe(t))};function Mw(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=Fk(e.parentNode,[]),n=0;n<t.length;n+=1)if(VSe(t[n]))return t[n];return document.scrollingElement||document.documentElement}}function Zp(e){"@babel/helpers - typeof";return Zp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zp(e)}var GSe={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function KSe(){return this.items.length&&Zp(this.items[0])!=="object"}var Qp=!1;if(typeof window<"u"){Qp=!1;try{var YSe=Object.defineProperty({},"passive",{get:function(){Qp=!0}});window.addEventListener("test",null,YSe)}catch{}}let XSe=0;var vm={name:"RecycleScroller",components:{ResizeObserver:vd},directives:{ObserveVisibility:jSe},props:{...GSe,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,n=this.sizeField,i=this.minItemSize;let o=1e4,l=0,u;for(let f=0,h=t.length;f<h;f++)u=t[f][n]||i,u<o&&(o=u),l+=u,e[f]={accumulator:l,size:u};return this.$_computedMinItemSize=o,e}return[]},simpleArray:KSe,itemIndexByKey(){const{keyField:e,items:t}=this,n={};for(let i=0,o=t.length;i<o;i++)n[t[i][e]]=i;return n}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,n,i,o){const l=Vf({id:XSe++,index:t,used:!0,key:i,type:o}),u=hg({item:n,position:0,nr:l});return e.push(u),u},unuseView(e,t=!1){const n=this.$_unusedViews,i=e.nr.type;let o=n.get(i);o||(o=[],n.set(i,o)),o.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:n}=this.updateVisibleItems(!1,!0);n||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const n=this.itemSize,i=this.gridItems||1,o=this.itemSecondarySize||n,l=this.$_computedMinItemSize,u=this.typeField,f=this.simpleArray?null:this.keyField,h=this.items,p=h.length,g=this.sizes,v=this.$_views,y=this.$_unusedViews,w=this.pool,$=this.itemIndexByKey;let _,C,E,L,D;if(!p)_=C=L=D=E=0;else if(this.$_prerender)_=L=0,C=D=Math.min(this.prerender,h.length),E=null;else{const U=this.getScroll();if(t){let O=U.start-this.$_lastUpdateScrollPosition;if(O<0&&(O=-O),n===null&&O<l||O<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=U.start;const K=this.buffer;U.start-=K,U.end+=K;let P=0;if(this.$refs.before&&(P=this.$refs.before.scrollHeight,U.start-=P),this.$refs.after){const O=this.$refs.after.scrollHeight;U.end+=O}if(n===null){let O,k=0,S=p-1,R=~~(p/2),B;do B=R,O=g[R].accumulator,O<U.start?k=R:R<p-1&&g[R+1].accumulator>U.start&&(S=R),R=~~((k+S)/2);while(R!==B);for(R<0&&(R=0),_=R,E=g[p-1].accumulator,C=R;C<p&&g[C].accumulator<U.end;C++);for(C===-1?C=h.length-1:(C++,C>p&&(C=p)),L=_;L<p&&P+g[L].accumulator<U.start;L++);for(D=L;D<p&&P+g[D].accumulator<U.end;D++);}else{_=~~(U.start/n*i);const O=_%i;_-=O,C=Math.ceil(U.end/n*i),L=Math.max(0,Math.floor((U.start-P)/n*i)),D=Math.floor((U.end-P)/n*i),_<0&&(_=0),C>p&&(C=p),L<0&&(L=0),D>p&&(D=p),E=Math.ceil(p/i)*n}}C-_>WSe.itemsLimit&&this.itemsLimitError(),this.totalSize=E;let N;const I=_<=this.$_endIndex&&C>=this.$_startIndex;if(I)for(let U=0,K=w.length;U<K;U++)N=w[U],N.nr.used&&(e&&(N.nr.index=$[N.item[f]]),(N.nr.index==null||N.nr.index<_||N.nr.index>=C)&&this.unuseView(N));const q=I?null:new Map;let X,ie,J;for(let U=_;U<C;U++){X=h[U];const K=f?X[f]:X;if(K==null)throw new Error(`Key is ${K} on item (keyField is '${f}')`);if(N=v.get(K),!n&&!g[U].size){N&&this.unuseView(N);continue}ie=X[u];let P=y.get(ie),O=!1;if(!N)I?P&&P.length?N=P.pop():N=this.addView(w,U,X,K,ie):(J=q.get(ie)||0,(!P||J>=P.length)&&(N=this.addView(w,U,X,K,ie),this.unuseView(N,!0),P=y.get(ie)),N=P[J],q.set(ie,J+1)),v.delete(N.nr.key),N.nr.used=!0,N.nr.index=U,N.nr.key=K,N.nr.type=ie,v.set(K,N),O=!0;else if(!N.nr.used&&(N.nr.used=!0,O=!0,P)){const k=P.indexOf(N);k!==-1&&P.splice(k,1)}N.item=X,O&&(U===h.length-1&&this.$emit("scroll-end"),U===0&&this.$emit("scroll-start")),n===null?(N.position=g[U-1].accumulator,N.offset=0):(N.position=Math.floor(U/i)*n,N.offset=U%i*o)}return this.$_startIndex=_,this.$_endIndex=C,this.emitUpdate&&this.$emit("update",_,C,L,D),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:I}},getListenerTarget(){let e=Mw(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,n=t==="vertical";let i;if(this.pageMode){const o=e.getBoundingClientRect(),l=n?o.height:o.width;let u=-(n?o.top:o.left),f=n?window.innerHeight:window.innerWidth;u<0&&(f+=u,u=0),u+f>l&&(f=l-u),i={start:u,end:u+f}}else n?i={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:i={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return i},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,Qp?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const n=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let n,i,o;if(this.pageMode){const l=Mw(this.$el),u=l.tagName==="HTML"?0:l[t.scroll],f=l.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-f[t.start];n=l,i=t.scroll,o=e+u+p}else n=this.$el,i=t.scroll,o=e;n[i]=o},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const JSe={key:0,ref:"before",class:"vue-recycle-scroller__slot"},ZSe={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function QSe(e,t,n,i,o,l){const u=ys("ResizeObserver"),f=ir("observe-visibility");return st((te(),ge("div",{class:ot(["vue-recycle-scroller",{ready:o.ready,"page-mode":n.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...h)=>l.handleScroll&&l.handleScroll(...h))},[e.$slots.before?(te(),ge("div",JSe,[Bt(e.$slots,"before")],512)):Fe("v-if",!0),(te(),We(sf(n.listTag),{ref:"wrapper",style:Pt({[e.direction==="vertical"?"minHeight":"minWidth"]:o.totalSize+"px"}),class:ot(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:je(()=>[(te(!0),ge(nt,null,xn(o.pool,h=>(te(),We(sf(n.itemTag),ci({key:h.nr.id,style:o.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${h.position}px) translate${e.direction==="vertical"?"X":"Y"}(${h.offset}px)`,width:n.gridItems?`${e.direction==="vertical"&&n.itemSecondarySize||n.itemSize}px`:void 0,height:n.gridItems?`${e.direction==="horizontal"&&n.itemSecondarySize||n.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[n.itemClass,{hover:!n.skipHover&&o.hoverKey===h.nr.key}]]},cA(n.skipHover?{}:{mouseenter:()=>{o.hoverKey=h.nr.key},mouseleave:()=>{o.hoverKey=null}})),{default:je(()=>[Bt(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),Bt(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(te(),ge("div",ZSe,[Bt(e.$slots,"after")],512)):Fe("v-if",!0),Ne(u,{onNotify:l.handleResize},null,8,["onNotify"])],34)),[[f,l.handleVisibilityChange]])}vm.render=QSe;vm.__file="src/components/RecycleScroller.vue";function e_e(e,t,n){const i=Se(()=>Mp.value?!1:!Ze.onlyTests),o=Se(()=>Hr.value===""),l=Ke(Hr.value),u=Se(()=>Fr.value==="default");yt(()=>Np.value,w=>{!w&&(Fr.value==="asc"||Fr.value==="desc")&&(Fr.value="default")}),Y1(()=>Hr.value,w=>{l.value=w?.trim()??""},{debounce:256});function f(w){Hr.value="",w&&e.value?.focus()}function h(w){Ze.failed=!1,Ze.success=!1,Ze.skipped=!1,Ze.slow=!1,Ze.onlyTests=!1,w&&e.value?.focus()}function p(w){ml.value=Bl,w&&t.value?.focus()}function g(w){Fr.value="default",w&&n.value?.focus()}function v(){h(!1),f(!0),p(!1),g(!1)}function y(w,$,_,C,E,L,D,N){Ml.value&&(Ht.value.search=w?.trim()??"",Ht.value.failed=$,Ht.value.success=_,Ht.value.skipped=C,Ht.value.slow=E,Ht.value.onlyTests=L,Ht.value.project=D,Ht.value.projectSort=N==="default"?void 0:N)}return yt(()=>[l.value,Ze.failed,Ze.success,Ze.skipped,Ze.slow,Ze.onlyTests,ml.value,Fr.value],([w,$,_,C,E,L,D,N])=>{y(w,$,_,C,E,L,D,N),$e.filterNodes()},{flush:"post"}),yt(()=>Kr.value.length,w=>{w&&(Ht.value.expandAll=void 0)},{flush:"post"}),{initialized:Ml,filter:Ze,search:Hr,disableFilter:i,isFiltered:y_,isFilteredByStatus:Mp,disableClearSearch:o,clearAll:v,clearSearch:f,clearFilter:h,filteredFiles:fd,testsTotal:wP,uiEntries:rr,searchMatcher:vo,enableProjects:Np,disableClearProjects:mP,currentProject:ml,currentProjectName:Gg,clearProject:p,projectSort:Fr,clearProjectSort:g,disableClearProjectSort:u}}const t_e=["disabled"],n_e={"flex-1":"","ms-2":"","select-none":"","whitespace-nowrap":"",truncate:""},Ca=tt({__name:"FilterStatus",props:Xa({label:{},disabled:{type:Boolean,default:!1}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=Jf(e,"modelValue");function n(){e.disabled||(t.value=!t.value)}return(i,o)=>(te(),ge("label",ci({class:["font-light text-sm checkbox w-fit flex items-center py-1 gap-y-1 mb-1px overflow-hidden",e.disabled?"cursor-not-allowed op50":"cursor-pointer"]},i.$attrs,{onClick:Fu(n,["prevent"])}),[Y("span",{class:ot([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","flex-shrink-0":"","aria-hidden":"true"},null,2),st(Y("input",{"onUpdate:modelValue":o[0]||(o[0]=l=>t.value=l),type:"checkbox",disabled:e.disabled,"sr-only":""},null,8,t_e),[[b1,t.value]]),Y("span",n_e,Me(e.label),1)],16))}}),r_e=["open"],i_e=tt({__name:"ResultsPanel",props:{color:{}},setup(e){const t=Ke(!0);return(n,i)=>(te(),ge("div",{open:t.value,class:"results-panel","data-testid":"results-panel",onToggle:i[0]||(i[0]=o=>t.value=o.target.open)},[Y("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:ot(e.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[i[1]||(i[1]=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),Bt(n.$slots,"summary",{open:t.value}),i[2]||(i[2]=Y("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),Bt(n.$slots,"default")],40,r_e))}}),o_e={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},s_e=tt({__name:"IconAction",props:{icon:{}},setup(e){return(t,n)=>(te(),ge("button",o_e,[Y("span",{block:"",class:ot([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}}),l_e=["aria-label","data-current"],a_e={key:1,"w-4":""},c_e={flex:"","items-baseline":"","gap-2":"","overflow-hidden":""},u_e={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},f_e={"text-sm":"",truncate:"","font-light":""},d_e=["innerHTML"],h_e={"gap-1":"","justify-end":"","items-center":"","flex-grow-1":"","pl-1":"",class:"test-actions"},p_e={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},g_e={key:1},m_e=tt({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},duration:{},slow:{type:Boolean},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){const t=Se(()=>ft.state.idMap.get(e.taskId)),n=Se(()=>{if(pr)return!1;const C=t.value;return C&&Xg(C)});function i(){if(!e.expandable){e.onItemClick?.(t.value);return}e.opened?$e.collapseNode(e.taskId):$e.expandNode(e.taskId)}async function o(C){e.onItemClick?.(C),$a.value&&(Ef.value=!0,await At()),e.type==="file"?await im([C.file]):await vme(C)}function l(C){return ft.rpc.updateSnapshot(C.file)}const u=Se(()=>e.indent<=0?[]:Array.from({length:e.indent},(C,E)=>`${e.taskId}-${E}`)),f=Se(()=>{const C=u.value,E=[];return(e.type==="file"||e.type==="suite")&&E.push("min-content"),E.push("min-content"),e.type==="suite"&&e.typecheck&&E.push("min-content"),E.push("minmax(0, 1fr)"),E.push("min-content"),`grid-template-columns: ${C.map(()=>"1rem").join(" ")} ${E.join(" ")};`}),h=Se(()=>pt.value.api?.allowExec===!1?"Cannot run tests when `api.allowExec` is `false`. Did you expose UI to the internet?":e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=Se(()=>v_(e.name)),g=Se(()=>{const C=bP.value,E=p.value;return C?E.replace(C,L=>`<span class="highlight">${L}</span>`):E}),v=Se(()=>e.type!=="file"&&e.disableTaskLocation),y=Se(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),w=Se(()=>v.value?"color-red5 dark:color-#f43f5e":null);function $(){const C=t.value;e.type==="file"?e.onItemClick?.(C):L_(C)}const _=Se(()=>m_(e.projectNameColor));return(C,E)=>{const L=ir("tooltip");return t.value?(te(),ge("div",{key:0,"items-center":"",p:"x-2 y-1",grid:"~ rows-1 items-center gap-x-2","w-full":"","h-28px":"","border-rounded":"",hover:"bg-active","cursor-pointer":"",class:"item-wrapper",style:Pt(f.value),"aria-label":e.name,"data-current":e.current,"data-testid":"explorer-item",onClick:E[2]||(E[2]=D=>i())},[e.indent>0?(te(!0),ge(nt,{key:0},xn(u.value,D=>(te(),ge("div",{key:D,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):Fe("",!0),e.type==="file"||e.type==="suite"?(te(),ge("div",a_e,[Y("div",{class:ot(e.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):Fe("",!0),Ne(Tk,{state:e.state,mode:t.value.mode,"failed-snapshot":n.value,"w-4":""},null,8,["state","mode","failed-snapshot"]),Y("div",c_e,[e.type==="file"&&e.typecheck?st((te(),ge("div",u_e,null,512)),[[L,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Fe("",!0),Y("span",f_e,[e.type==="file"&&e.projectName?(te(),ge("span",{key:0,class:"rounded-full py-0.5 px-2 mr-1 text-xs",style:Pt({backgroundColor:e.projectNameColor,color:_.value})},Me(e.projectName),5)):Fe("",!0),Y("span",{class:ot(e.state==="fail"?"text-red-700 dark:text-red-500":void 0),innerHTML:g.value},null,10,d_e)]),typeof e.duration=="number"?(te(),ge("span",{key:1,text:"xs",class:ot(e.slow?"text-yellow-700 dark:text-yellow-500":"op20"),style:{"white-space":"nowrap"}},Me(e.duration>0?e.duration:"< 1")+"ms ",3)):Fe("",!0)]),Y("div",h_e,[!W(pr)&&n.value&&W(pt).api?.allowExec&&W(pt).api?.allowWrite?st((te(),We(s_e,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:E[0]||(E[0]=Fu(D=>l(t.value),["prevent","stop"]))},null,512)),[[L,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):Fe("",!0),Ne(W(wo),{placement:"bottom",class:ot(["w-1.4em h-1.4em op100 rounded flex",w.value])},{popper:je(()=>[v.value?(te(),ge("div",p_e,[E[5]||(E[5]=Y("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),Y("div",null,[Qe(Me(y.value)+": this feature is not available, you have disabled ",1),E[3]||(E[3]=Y("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),E[4]||(E[4]=Qe(" in your configuration file.",-1))]),E[6]||(E[6]=Y("div",{style:{"grid-column":"2"}}," Clicking this button the code tab will position the cursor at first line in the source code since the UI doesn't have the information available. ",-1))])):(te(),ge("div",g_e,Me(y.value),1))]),default:je(()=>[Ne(Tt,{"data-testid":"btn-open-details",icon:e.type==="file"?"i-carbon:intrusion-prevention":"i-carbon:code-reference",onClick:Fu($,["prevent","stop"])},null,8,["icon"])]),_:1},8,["class"]),W(pr)?Fe("",!0):st((te(),We(Tt,{key:1,"data-testid":"btn-run-test",title:h.value,icon:"i-carbon:play-filled-alt","text-green-700":"","dark:text-green-500":"",disabled:W(pt).api?.allowExec===!1,onClick:E[1]||(E[1]=Fu(D=>o(t.value),["prevent","stop"]))},null,8,["title","disabled"])),[[L,h.value,void 0,{bottom:!0}]])])],12,l_e)):Fe("",!0)}}}),v_e=Xi(m_e,[["__scopeId","data-v-7f38aded"]]),y_e={h:"full",flex:"~ col"},b_e={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},w_e={key:0,p:"l3 y2 r2","bg-header":"",border:"b-2 base",grid:"~ cols-[auto_auto_minmax(0,1fr)_auto] gap-x-2 gap-y-1","items-center":""},x_e={class:"relative flex-1"},S_e=["value"],__e=["value"],k_e={p:"l3 y2 r2","bg-header":"",border:"b-2 base",grid:"~ cols-[auto_auto_minmax(0,1fr)_auto] gap-x-2","items-center":""},T_e={class:"relative flex-1"},C_e={key:0,value:"asc",class:"text-base bg-base"},E_e={key:1,value:"desc",class:"text-base bg-base"},A_e={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},$_e=["op"],N_e={p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",flex:"~ wrap gap-x-4 justify-between"},M_e={"min-w-full":"",flex:"~ gap-2 items-center"},L_e={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},O_e={"text-red-700":"","dark:text-red-500":""},R_e={"text-yellow-700":"","dark:text-yellow-500":""},P_e={"text-green-700":"","dark:text-green-500":""},I_e={class:"text-purple-700 dark:text-purple-400"},D_e={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},F_e={key:0,"text-red":"","text-center":""},z_e={key:1,op30:""},H_e=["disabled"],B_e=["disabled"],j_e={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},W_e=tt({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const n=t,i=Se(()=>pt.value.includeTaskLocation),o=Se(()=>{const O=pt.value.slowTestThreshold;return typeof O=="number"?` (>${O}ms)`:""}),l=Ke(),u=Ke(),f=Ke(),{initialized:h,filter:p,search:g,disableFilter:v,isFiltered:y,isFilteredByStatus:w,disableClearSearch:$,clearAll:_,clearSearch:C,clearFilter:E,filteredFiles:L,testsTotal:D,uiEntries:N,enableProjects:I,disableClearProjects:q,currentProject:X,currentProjectName:ie,clearProject:J,clearProjectSort:U,disableClearProjectSort:K,searchMatcher:P}=e_e(l,u,f);return(O,k)=>{const S=ir("tooltip");return te(),ge("div",y_e,[Y("div",null,[Y("div",b_e,[Bt(O.$slots,"header",{filteredFiles:W(y)||W(w)?W(L):void 0})]),W(I)?(te(),ge("div",w_e,[k[19]||(k[19]=Y("div",{class:"i-carbon:workspace","flex-shrink-0":""},null,-1)),k[20]||(k[20]=Y("label",{for:"project-select","text-sm":""}," Projects ",-1)),Y("div",x_e,[st(Y("select",{id:"project-select",ref_key:"selectProjectRef",ref:u,"onUpdate:modelValue":k[0]||(k[0]=R=>Lt(X)?X.value=R:null),"w-full":"","appearance-none":"","bg-base":"","text-base":"",border:"~ base rounded","pl-2":"","pr-8":"","py-1":"","text-sm":"","cursor-pointer":"","hover:bg-active":"",class:"outline-none"},[Y("option",{value:W(Bl),class:"text-base bg-base"}," All Projects ",8,S_e),(te(!0),ge(nt,null,xn(W(rm),R=>(te(),ge("option",{key:R,value:R,class:"text-base bg-base"},Me(R),9,__e))),128))],512),[[r0,W(X)]]),k[18]||(k[18]=Y("div",{class:"i-carbon:chevron-down absolute right-2 top-1/2 op50 -translate-y-1/2 pointer-events-none"},null,-1))]),st(Ne(Tt,{disabled:W(q),title:"Clear project filter",icon:"i-carbon:filter-remove",onClickPassive:k[1]||(k[1]=R=>W(J)(!0))},null,8,["disabled"]),[[S,"Clear project filter",void 0,{bottom:!0}]])])):Fe("",!0),Y("div",k_e,[k[25]||(k[25]=Y("div",{class:"i-carbon:arrows-vertical","flex-shrink-0":""},null,-1)),k[26]||(k[26]=Y("label",{for:"project-sort","text-sm":""}," Sort by ",-1)),Y("div",T_e,[st(Y("select",{id:"project-sort",ref_key:"sortProjectRef",ref:f,"onUpdate:modelValue":k[2]||(k[2]=R=>Lt(Fr)?Fr.value=R:null),"w-full":"","appearance-none":"","bg-base":"","text-base":"",border:"~ base rounded","pl-2":"","pr-8":"","py-1":"","text-sm":"","cursor-pointer":"","hover:bg-active":"",class:"outline-none"},[k[21]||(k[21]=Y("option",{value:"default",class:"text-base bg-base"}," Default ",-1)),k[22]||(k[22]=Y("option",{value:"duration-desc",class:"text-base bg-base"}," Slowest first ",-1)),k[23]||(k[23]=Y("option",{value:"duration-asc",class:"text-base bg-base"}," Fastest first ",-1)),W(I)?(te(),ge("option",C_e," Project A-Z ")):Fe("",!0),W(I)?(te(),ge("option",E_e," Project Z-A ")):Fe("",!0)],512),[[r0,W(Fr)]]),k[24]||(k[24]=Y("div",{class:"i-carbon:chevron-down absolute right-2 top-1/2 op50 -translate-y-1/2 pointer-events-none"},null,-1))]),st(Ne(Tt,{disabled:W(K),title:"Reset sort",icon:"i-carbon:filter-reset",onClickPassive:k[3]||(k[3]=R=>W(U)(!0))},null,8,["disabled"]),[[S,"Reset sort",void 0,{bottom:!0}]])]),Y("div",A_e,[k[27]||(k[27]=Y("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),st(Y("input",{ref_key:"searchBox",ref:l,"onUpdate:modelValue":k[4]||(k[4]=R=>Lt(g)?g.value=R:null),placeholder:"Search... (e.g. test name, tag:expression)",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:W(g).length?"100":"50",onKeydown:[k[5]||(k[5]=gp(R=>W(C)(!1),["esc"])),k[6]||(k[6]=gp(R=>n("run",W(y)||W(w)?W(L):void 0),["enter"]))]},null,40,$_e),[[y1,W(g)]]),st(Ne(Tt,{disabled:W($),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:k[7]||(k[7]=R=>W(C)(!0))},null,8,["disabled"]),[[S,"Clear search",void 0,{bottom:!0}]])]),Y("div",N_e,[Y("div",M_e,[k[28]||(k[28]=Y("div",{"aria-hidden":"true",class:"i-carbon:filter","flex-shrink-0":""},null,-1)),k[29]||(k[29]=Y("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),st(Ne(Tt,{disabled:W(v),title:"Clear filter",icon:"i-carbon:filter-remove",onClickPassive:k[8]||(k[8]=R=>W(E)(!1))},null,8,["disabled"]),[[S,"Clear Filter",void 0,{bottom:!0}]])]),Ne(Ca,{modelValue:W(p).failed,"onUpdate:modelValue":k[9]||(k[9]=R=>W(p).failed=R),label:"Fail"},null,8,["modelValue"]),Ne(Ca,{modelValue:W(p).success,"onUpdate:modelValue":k[10]||(k[10]=R=>W(p).success=R),label:"Pass"},null,8,["modelValue"]),Ne(Ca,{modelValue:W(p).skipped,"onUpdate:modelValue":k[11]||(k[11]=R=>W(p).skipped=R),label:"Skip"},null,8,["modelValue"]),Ne(Ca,{modelValue:W(p).onlyTests,"onUpdate:modelValue":k[12]||(k[12]=R=>W(p).onlyTests=R),label:"Only Tests"},null,8,["modelValue"]),Ne(Ca,{modelValue:W(p).slow,"onUpdate:modelValue":k[13]||(k[13]=R=>W(p).slow=R),label:`Slow${o.value}`},null,8,["modelValue","label"])])]),Y("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:k[17]||(k[17]=(...R)=>W(T0)&&W(T0)(...R))},[Ne(i_e,null,aA({default:je(()=>[(W(y)||W(w)||W(ie))&&W(N).length===0?(te(),ge(nt,{key:0},[W(h)?(te(),ge("div",D_e,[W(P).error?(te(),ge("div",F_e,Me(W(P).error),1)):(te(),ge("div",z_e," No matched test ")),Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:ot(W($)?null:"hover:op100"),disabled:W($),onClickPassive:k[14]||(k[14]=R=>W(C)(!0))}," Clear Search ",42,H_e),Y("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:ot(W(v)?null:"hover:op100"),disabled:W(v),onClickPassive:k[15]||(k[15]=R=>W(E)(!0))}," Clear Filter ",42,B_e),Y("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:k[16]||(k[16]=(...R)=>W(_)&&W(_)(...R))}," Clear All ",32)])):(te(),ge("div",j_e,[...k[32]||(k[32]=[Y("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),Y("div",{op30:""}," Loading... ",-1)])]))],64)):(te(),We(W(vm),{key:1,"page-mode":"","key-field":"id","item-size":28,items:W(N),buffer:100},{default:je(({item:R})=>[Ne(v_e,{class:ot(["h-28px m-0 p-0",W(Fi)===R.id||!W(Fi)&&W(Io)===R.id?"bg-active":""]),"task-id":R.id,expandable:R.expandable,type:R.type,current:W(Io)===R.id,indent:R.indent,name:R.name,typecheck:R.typecheck===!0,"project-name":R.projectName??"","project-name-color":R.projectNameColor??"",state:R.state,duration:R.duration,slow:R.slow===!0,opened:R.expanded,"disable-task-location":!i.value,"on-item-click":e.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","project-name","project-name-color","state","duration","slow","opened","disable-task-location","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[W(h)?{name:"summary",fn:je(()=>[Y("div",L_e,[Y("span",O_e," FAIL ("+Me(W(D).failed)+") ",1),k[30]||(k[30]=Y("span",null,"/",-1)),Y("span",R_e," RUNNING ("+Me(W(D).running)+") ",1),Y("span",P_e," PASS ("+Me(W(D).success)+") ",1),k[31]||(k[31]=Y("span",null,"/",-1)),Y("span",I_e," SKIP ("+Me(W(p).onlyTests?W(D).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)])}}}),q_e={class:"flex text-lg"},U_e=tt({__name:"Navigation",setup(e){function t(){return ft.rpc.updateSnapshot()}const n=Se(()=>Po.value?"light":"dark");async function i(f){pt.value.api?.allowExec!==!1&&($a.value&&(Ef.value=!0,await At(),Do.value&&(Af(!0),await At())),f?.length?await im(f):await gme())}function o(){$e.collapseAllNodes()}function l(){$e.expandAllNodes()}function u(f){return pt.value.api?.allowExec===!1?"Cannot run tests when `api.allowExec` is `false`. Did you expose UI to the internet?":f?f.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all"}return(f,h)=>{const p=ir("tooltip");return te(),We(W_e,{border:"r base","on-item-click":W(zge),nested:!0,onRun:i},{header:je(({filteredFiles:g})=>[h[8]||(h[8]=Y("img",{"w-6":"","h-6":"",src:CSe,alt:"Vitest logo"},null,-1)),h[9]||(h[9]=Y("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),Y("div",q_e,[st(Ne(Tt,{title:"Collapse tests",disabled:!W(Ml),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:h[0]||(h[0]=v=>o())},null,8,["disabled"]),[[Co,!W(Eb)],[p,"Collapse tests",void 0,{bottom:!0}]]),st(Ne(Tt,{disabled:!W(Ml),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:h[1]||(h[1]=v=>l())},null,8,["disabled"]),[[Co,W(Eb)],[p,"Expand tests",void 0,{bottom:!0}]]),st(Ne(Tt,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:h[2]||(h[2]=v=>W(Af)(!0))},null,512),[[Co,W(Pp)&&!W($a)||!W(vl)],[p,"Dashboard",void 0,{bottom:!0}]]),W(Pp)&&!W($a)?(te(),We(W(wo),{key:0,title:"Coverage enabled but missing html reporter",class:"w-1.4em h-1.4em op100 rounded flex color-red5 dark:color-#f43f5e cursor-help"},{popper:je(()=>[...h[6]||(h[6]=[Y("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[Y("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),Y("div",null,"Coverage enabled but missing html reporter."),Y("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])]),default:je(()=>[h[7]||(h[7]=Y("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):Fe("",!0),W($a)?st((te(),We(Tt,{key:1,disabled:W(Ef),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:h[3]||(h[3]=v=>W(Hge)())},null,8,["disabled"])),[[Co,!W(Do)],[p,"Coverage",void 0,{bottom:!0}]]):Fe("",!0),W($e).summary.failedSnapshot&&!W(pr)&&W(pt).api?.allowExec&&W(pt).api?.allowWrite?st((te(),We(Tt,{key:2,icon:"i-carbon:result-old",disabled:!W($e).summary.failedSnapshotEnabled,onClick:h[4]||(h[4]=v=>W($e).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[p,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Fe("",!0),W(pr)?Fe("",!0):st((te(),We(Tt,{key:3,disabled:g?.length===0||!W(pt).api?.allowExec,icon:"i-carbon:play","data-testid":"btn-run-all",onClick:v=>i(g)},null,8,["disabled","onClick"])),[[p,u(g),void 0,{bottom:!0}]]),st(Ne(Tt,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:h[5]||(h[5]=v=>W(dP)())},null,512),[[p,`Toggle to ${n.value} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),V_e={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},G_e=tt({__name:"ProgressBar",setup(e){const{width:t}=rS(),n=Se(()=>[$e.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!ol.value&&"in-progress"].filter(Boolean).join(" ")),i=Se(()=>{const f=$e.summary.files;return f>0?t.value*$e.summary.filesSuccess/f:0}),o=Se(()=>{const f=$e.summary.files;return f>0?t.value*$e.summary.filesFailed/f:0}),l=Se(()=>$e.summary.files-$e.summary.filesFailed-$e.summary.filesSuccess),u=Se(()=>{const f=$e.summary.files;return f>0?t.value*l.value/f:0});return(f,h)=>(te(),ge("div",{absolute:"","t-0":"","l-0":"","r-0":"","z-index-1031":"","pointer-events-none":"","p-0":"","h-3px":"",grid:"~ auto-cols-max","justify-items-center":"","w-screen":"",class:ot(n.value)},[Y("div",V_e,[Y("div",{absolute:"","l-0":"","t-0":"","bg-red-700":"","dark:bg-red-500":"","h-3px":"",class:ot(n.value),style:Pt(`width: ${o.value}px;`)},"   ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-green-700":"","dark:bg-green-500":"","h-3px":"",class:ot(n.value),style:Pt(`left: ${o.value}px; width: ${i.value}px;`)},"   ",6),Y("div",{absolute:"","l-0":"","t-0":"","bg-yellow-700":"","dark:bg-yellow-500":"","h-3px":"",class:ot(n.value),style:Pt(`left: ${i.value+o.value}px; width: ${u.value}px;`)},"   ",6)])],2))}}),K_e=Xi(G_e,[["__scopeId","data-v-d5dc96ee"]]),Y_e={"h-screen":"","w-screen":"",overflow:"hidden"},X_e={key:1,flex:"~ col","h-full":""},J_e={"h-full":"","overflow-hidden":""},Z_e=tt({__name:"index",setup(e){const t=Fge(),n=yu(({panes:g})=>{h(),f(g)},0),i=yu(({panes:g})=>{g.forEach((v,y)=>{yl.value[y]=v.size}),u(g),p()},0),o=yu(({panes:g})=>{g.forEach((v,y)=>{ms.value[y]=v.size}),f(g),p()},0),l=yu(({panes:g})=>{u(g),h()},0);function u(g){fn.navigation=g[0].size,g[1]&&(fn.details.size=g[1].size)}function f(g){fn.details.browser=g[0].size,g[1]&&(fn.details.main=g[1].size)}function h(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="none")}function p(){const g=document.querySelector("#tester-ui");g&&(g.style.pointerEvents="")}return(g,v)=>(te(),ge(nt,null,[Ne(K_e),Y("div",Y_e,[Ne(W(M0),{class:"pt-4px",onResized:W(i),onResize:W(l)},{default:je(()=>[Ne(W(xu),{size:W(yl)[0]},{default:je(()=>[Ne(U_e)]),_:1},8,["size"]),Ne(W(xu),{size:W(yl)[1]},{default:je(()=>[W(gr)?(te(),ge("div",X_e,[Ne(W(M0),{id:"details-splitpanes",key:"browser-detail",horizontal:W(Tn)==="bottom",class:ot(W(Tn)==="bottom"&&!W(Bi)?"flex-1 min-h-0 overflow-hidden":"h-full"),onResize:W(n),onResized:W(o)},{default:je(()=>[Ne(W(xu),{size:W(ms)[0],"min-size":"10"},{default:je(()=>[v[0]||(Tl(-1,!0),(v[0]=Ne(Ame)).cacheIndex=0,Tl(1),v[0])]),_:1},8,["size"]),W(Bi)?(te(),We(W(xu),{key:0,size:W(ms)[1],"min-size":"10"},{default:je(()=>[Y("div",J_e,[W(t)?(te(),We(rw,{key:"summary"})):W(Do)?(te(),We(nw,{key:"coverage"})):(te(),We($w,{key:"details"}))])]),_:1},8,["size"])):Fe("",!0)]),_:1},8,["horizontal","class","onResize","onResized"]),W(Tn)==="bottom"&&!W(Bi)?(te(),We(Nme,{key:0})):Fe("",!0)])):(te(),We(i$,{key:"ui-detail"},{default:je(()=>[W(t)?(te(),We(rw,{key:"summary"})):W(Do)?(te(),We(nw,{key:"coverage"})):(te(),We($w,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Ne(Ome)],64))}}),Q_e=[{name:"index",path:"/",component:Z_e,props:!0}];/*!
83
83
  * vue-router v5.0.3
84
84
  * (c) 2026 Eduardo San Martin Morote
85
85
  * @license MIT
86
- */const il=typeof document<"u";function zk(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Q_e(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&zk(e.default)}const _t=Object.assign;function Zh(e,t){const n={};for(const i in t){const o=t[i];n[i]=Yr(o)?o.map(e):e(o)}return n}const Ua=()=>{},Yr=Array.isArray;function Lw(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}let Ut=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const Hk=Symbol("");Ut.MATCHER_NOT_FOUND+"",Ut.NAVIGATION_GUARD_REDIRECT+"",Ut.NAVIGATION_ABORTED+"",Ut.NAVIGATION_CANCELLED+"",Ut.NAVIGATION_DUPLICATED+"";function Il(e,t){return _t(new Error,{type:e,[Hk]:!0},t)}function $i(e,t){return e instanceof Error&&Hk in e&&(t==null||!!(e.type&t))}const eke=["params","query","hash"];function tke(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of eke)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const nke=Symbol(""),Ow=Symbol(""),ym=Symbol(""),Bk=Symbol(""),eg=Symbol("");/*!
86
+ */const il=typeof document<"u";function zk(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function eke(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&zk(e.default)}const _t=Object.assign;function Zh(e,t){const n={};for(const i in t){const o=t[i];n[i]=Yr(o)?o.map(e):e(o)}return n}const Ua=()=>{},Yr=Array.isArray;function Lw(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}let Ut=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const Hk=Symbol("");Ut.MATCHER_NOT_FOUND+"",Ut.NAVIGATION_GUARD_REDIRECT+"",Ut.NAVIGATION_ABORTED+"",Ut.NAVIGATION_CANCELLED+"",Ut.NAVIGATION_DUPLICATED+"";function Il(e,t){return _t(new Error,{type:e,[Hk]:!0},t)}function $i(e,t){return e instanceof Error&&Hk in e&&(t==null||!!(e.type&t))}const tke=["params","query","hash"];function nke(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of tke)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}const rke=Symbol(""),Ow=Symbol(""),ym=Symbol(""),Bk=Symbol(""),eg=Symbol("");/*!
87
87
  * vue-router v5.0.3
88
88
  * (c) 2026 Eduardo San Martin Morote
89
89
  * @license MIT
90
- */const jk=/#/g,rke=/&/g,ike=/\//g,oke=/=/g,ske=/\?/g,Wk=/\+/g,lke=/%5B/g,ake=/%5D/g,qk=/%5E/g,cke=/%60/g,Uk=/%7B/g,uke=/%7C/g,Vk=/%7D/g,fke=/%20/g;function bm(e){return e==null?"":encodeURI(""+e).replace(uke,"|").replace(lke,"[").replace(ake,"]")}function dke(e){return bm(e).replace(Uk,"{").replace(Vk,"}").replace(qk,"^")}function tg(e){return bm(e).replace(Wk,"%2B").replace(fke,"+").replace(jk,"%23").replace(rke,"%26").replace(cke,"`").replace(Uk,"{").replace(Vk,"}").replace(qk,"^")}function hke(e){return tg(e).replace(oke,"%3D")}function pke(e){return bm(e).replace(jk,"%23").replace(ske,"%3F")}function gke(e){return pke(e).replace(ike,"%2F")}function yc(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const mke=/\/$/,vke=e=>e.replace(mke,"");function Qh(e,t,n="/"){let i,o={},l="",u="";const f=t.indexOf("#");let h=t.indexOf("?");return h=f>=0&&h>f?-1:h,h>=0&&(i=t.slice(0,h),l=t.slice(h,f>0?f:t.length),o=e(l.slice(1))),f>=0&&(i=i||t.slice(0,f),u=t.slice(f,t.length)),i=xke(i??t,n),{fullPath:i+l+u,path:i,query:o,hash:yc(u)}}function yke(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Rw(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function bke(e,t,n){const i=t.matched.length-1,o=n.matched.length-1;return i>-1&&i===o&&Dl(t.matched[i],n.matched[o])&&Gk(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Dl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Gk(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!wke(e[n],t[n]))return!1;return!0}function wke(e,t){return Yr(e)?Pw(e,t):Yr(t)?Pw(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function Pw(e,t){return Yr(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function xke(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/"),o=i[i.length-1];(o===".."||o===".")&&i.push("");let l=n.length-1,u,f;for(u=0;u<i.length;u++)if(f=i[u],f!==".")if(f==="..")l>1&&l--;else break;return n.slice(0,l).join("/")+"/"+i.slice(u).join("/")}const ho={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ng=(function(e){return e.pop="pop",e.push="push",e})({}),ep=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Ske(e){if(!e)if(il){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),vke(e)}const _ke=/^[^#]+#/;function kke(e,t){return e.replace(_ke,"#")+t}function Tke(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const yd=()=>({left:window.scrollX,top:window.scrollY});function Cke(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Tke(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Iw(e,t){return(history.state?history.state.position-t:-1)+e}const rg=new Map;function Eke(e,t){rg.set(e,t)}function Ake(e){const t=rg.get(e);return rg.delete(e),t}function $ke(e){return typeof e=="string"||e&&typeof e=="object"}function Kk(e){return typeof e=="string"||typeof e=="symbol"}function Nke(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<n.length;++i){const o=n[i].replace(Wk," "),l=o.indexOf("="),u=yc(l<0?o:o.slice(0,l)),f=l<0?null:yc(o.slice(l+1));if(u in t){let h=t[u];Yr(h)||(h=t[u]=[h]),h.push(f)}else t[u]=f}return t}function Dw(e){let t="";for(let n in e){const i=e[n];if(n=hke(n),i==null){i!==void 0&&(t+=(t.length?"&":"")+n);continue}(Yr(i)?i.map(o=>o&&tg(o)):[i&&tg(i)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Mke(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=Yr(i)?i.map(o=>o==null?null:""+o):i==null?i:""+i)}return t}function Ea(){let e=[];function t(i){return e.push(i),()=>{const o=e.indexOf(i);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ko(e,t,n,i,o,l=u=>u()){const u=i&&(i.enterCallbacks[o]=i.enterCallbacks[o]||[]);return()=>new Promise((f,h)=>{const p=y=>{y===!1?h(Il(Ut.NAVIGATION_ABORTED,{from:n,to:t})):y instanceof Error?h(y):$ke(y)?h(Il(Ut.NAVIGATION_GUARD_REDIRECT,{from:t,to:y})):(u&&i.enterCallbacks[o]===u&&typeof y=="function"&&u.push(y),f())},g=l(()=>e.call(i&&i.instances[o],t,n,p));let v=Promise.resolve(g);e.length<3&&(v=v.then(p)),v.catch(y=>h(y))})}function tp(e,t,n,i,o=l=>l()){const l=[];for(const u of e)for(const f in u.components){let h=u.components[f];if(!(t!=="beforeRouteEnter"&&!u.instances[f]))if(zk(h)){const p=(h.__vccOpts||h)[t];p&&l.push(ko(p,n,i,u,f,o))}else{let p=h();l.push(()=>p.then(g=>{if(!g)throw new Error(`Couldn't resolve component "${f}" at "${u.path}"`);const v=Q_e(g)?g.default:g;u.mods[f]=g,u.components[f]=v;const y=(v.__vccOpts||v)[t];return y&&ko(y,n,i,u,f,o)()}))}}return l}function Lke(e,t){const n=[],i=[],o=[],l=Math.max(t.matched.length,e.matched.length);for(let u=0;u<l;u++){const f=t.matched[u];f&&(e.matched.find(p=>Dl(p,f))?i.push(f):n.push(f));const h=e.matched[u];h&&(t.matched.find(p=>Dl(p,h))||o.push(h))}return[n,i,o]}/*!
90
+ */const jk=/#/g,ike=/&/g,oke=/\//g,ske=/=/g,lke=/\?/g,Wk=/\+/g,ake=/%5B/g,cke=/%5D/g,qk=/%5E/g,uke=/%60/g,Uk=/%7B/g,fke=/%7C/g,Vk=/%7D/g,dke=/%20/g;function bm(e){return e==null?"":encodeURI(""+e).replace(fke,"|").replace(ake,"[").replace(cke,"]")}function hke(e){return bm(e).replace(Uk,"{").replace(Vk,"}").replace(qk,"^")}function tg(e){return bm(e).replace(Wk,"%2B").replace(dke,"+").replace(jk,"%23").replace(ike,"%26").replace(uke,"`").replace(Uk,"{").replace(Vk,"}").replace(qk,"^")}function pke(e){return tg(e).replace(ske,"%3D")}function gke(e){return bm(e).replace(jk,"%23").replace(lke,"%3F")}function mke(e){return gke(e).replace(oke,"%2F")}function yc(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const vke=/\/$/,yke=e=>e.replace(vke,"");function Qh(e,t,n="/"){let i,o={},l="",u="";const f=t.indexOf("#");let h=t.indexOf("?");return h=f>=0&&h>f?-1:h,h>=0&&(i=t.slice(0,h),l=t.slice(h,f>0?f:t.length),o=e(l.slice(1))),f>=0&&(i=i||t.slice(0,f),u=t.slice(f,t.length)),i=Ske(i??t,n),{fullPath:i+l+u,path:i,query:o,hash:yc(u)}}function bke(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Rw(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function wke(e,t,n){const i=t.matched.length-1,o=n.matched.length-1;return i>-1&&i===o&&Dl(t.matched[i],n.matched[o])&&Gk(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Dl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Gk(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!xke(e[n],t[n]))return!1;return!0}function xke(e,t){return Yr(e)?Pw(e,t):Yr(t)?Pw(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function Pw(e,t){return Yr(t)?e.length===t.length&&e.every((n,i)=>n===t[i]):e.length===1&&e[0]===t}function Ske(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/"),o=i[i.length-1];(o===".."||o===".")&&i.push("");let l=n.length-1,u,f;for(u=0;u<i.length;u++)if(f=i[u],f!==".")if(f==="..")l>1&&l--;else break;return n.slice(0,l).join("/")+"/"+i.slice(u).join("/")}const ho={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ng=(function(e){return e.pop="pop",e.push="push",e})({}),ep=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function _ke(e){if(!e)if(il){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),yke(e)}const kke=/^[^#]+#/;function Tke(e,t){return e.replace(kke,"#")+t}function Cke(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}const yd=()=>({left:window.scrollX,top:window.scrollY});function Eke(e){let t;if("el"in e){const n=e.el,i=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Cke(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Iw(e,t){return(history.state?history.state.position-t:-1)+e}const rg=new Map;function Ake(e,t){rg.set(e,t)}function $ke(e){const t=rg.get(e);return rg.delete(e),t}function Nke(e){return typeof e=="string"||e&&typeof e=="object"}function Kk(e){return typeof e=="string"||typeof e=="symbol"}function Mke(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<n.length;++i){const o=n[i].replace(Wk," "),l=o.indexOf("="),u=yc(l<0?o:o.slice(0,l)),f=l<0?null:yc(o.slice(l+1));if(u in t){let h=t[u];Yr(h)||(h=t[u]=[h]),h.push(f)}else t[u]=f}return t}function Dw(e){let t="";for(let n in e){const i=e[n];if(n=pke(n),i==null){i!==void 0&&(t+=(t.length?"&":"")+n);continue}(Yr(i)?i.map(o=>o&&tg(o)):[i&&tg(i)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Lke(e){const t={};for(const n in e){const i=e[n];i!==void 0&&(t[n]=Yr(i)?i.map(o=>o==null?null:""+o):i==null?i:""+i)}return t}function Ea(){let e=[];function t(i){return e.push(i),()=>{const o=e.indexOf(i);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ko(e,t,n,i,o,l=u=>u()){const u=i&&(i.enterCallbacks[o]=i.enterCallbacks[o]||[]);return()=>new Promise((f,h)=>{const p=y=>{y===!1?h(Il(Ut.NAVIGATION_ABORTED,{from:n,to:t})):y instanceof Error?h(y):Nke(y)?h(Il(Ut.NAVIGATION_GUARD_REDIRECT,{from:t,to:y})):(u&&i.enterCallbacks[o]===u&&typeof y=="function"&&u.push(y),f())},g=l(()=>e.call(i&&i.instances[o],t,n,p));let v=Promise.resolve(g);e.length<3&&(v=v.then(p)),v.catch(y=>h(y))})}function tp(e,t,n,i,o=l=>l()){const l=[];for(const u of e)for(const f in u.components){let h=u.components[f];if(!(t!=="beforeRouteEnter"&&!u.instances[f]))if(zk(h)){const p=(h.__vccOpts||h)[t];p&&l.push(ko(p,n,i,u,f,o))}else{let p=h();l.push(()=>p.then(g=>{if(!g)throw new Error(`Couldn't resolve component "${f}" at "${u.path}"`);const v=eke(g)?g.default:g;u.mods[f]=g,u.components[f]=v;const y=(v.__vccOpts||v)[t];return y&&ko(y,n,i,u,f,o)()}))}}return l}function Oke(e,t){const n=[],i=[],o=[],l=Math.max(t.matched.length,e.matched.length);for(let u=0;u<l;u++){const f=t.matched[u];f&&(e.matched.find(p=>Dl(p,f))?i.push(f):n.push(f));const h=e.matched[u];h&&(t.matched.find(p=>Dl(p,h))||o.push(h))}return[n,i,o]}/*!
91
91
  * vue-router v5.0.3
92
92
  * (c) 2026 Eduardo San Martin Morote
93
93
  * @license MIT
94
- */let Oke=()=>location.protocol+"//"+location.host;function Yk(e,t){const{pathname:n,search:i,hash:o}=t,l=e.indexOf("#");if(l>-1){let u=o.includes(e.slice(l))?e.slice(l).length:1,f=o.slice(u);return f[0]!=="/"&&(f="/"+f),Rw(f,"")}return Rw(n,e)+i+o}function Rke(e,t,n,i){let o=[],l=[],u=null;const f=({state:y})=>{const w=Yk(e,location),$=n.value,_=t.value;let C=0;if(y){if(n.value=w,t.value=y,u&&u===$){u=null;return}C=_?y.position-_.position:0}else i(w);o.forEach(E=>{E(n.value,$,{delta:C,type:ng.pop,direction:C?C>0?ep.forward:ep.back:ep.unknown})})};function h(){u=n.value}function p(y){o.push(y);const w=()=>{const $=o.indexOf(y);$>-1&&o.splice($,1)};return l.push(w),w}function g(){if(document.visibilityState==="hidden"){const{history:y}=window;if(!y.state)return;y.replaceState(_t({},y.state,{scroll:yd()}),"")}}function v(){for(const y of l)y();l=[],window.removeEventListener("popstate",f),window.removeEventListener("pagehide",g),document.removeEventListener("visibilitychange",g)}return window.addEventListener("popstate",f),window.addEventListener("pagehide",g),document.addEventListener("visibilitychange",g),{pauseListeners:h,listen:p,destroy:v}}function Fw(e,t,n,i=!1,o=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:o?yd():null}}function Pke(e){const{history:t,location:n}=window,i={value:Yk(e,n)},o={value:t.state};o.value||l(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(h,p,g){const v=e.indexOf("#"),y=v>-1?(n.host&&document.querySelector("base")?e:e.slice(v))+h:Oke()+e+h;try{t[g?"replaceState":"pushState"](p,"",y),o.value=p}catch(w){console.error(w),n[g?"replace":"assign"](y)}}function u(h,p){l(h,_t({},t.state,Fw(o.value.back,h,o.value.forward,!0),p,{position:o.value.position}),!0),i.value=h}function f(h,p){const g=_t({},o.value,t.state,{forward:h,scroll:yd()});l(g.current,g,!0),l(h,_t({},Fw(i.value,h,null),{position:g.position+1},p),!1),i.value=h}return{location:i,state:o,push:f,replace:u}}function Ike(e){e=Ske(e);const t=Pke(e),n=Rke(e,t.state,t.location,t.replace);function i(l,u=!0){u||n.pauseListeners(),history.go(l)}const o=_t({location:"",base:e,go:i,createHref:kke.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Dke(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Ike(e)}let ds=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var an=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(an||{});const Fke={type:ds.Static,value:""},zke=/[a-zA-Z0-9_]/;function Hke(e){if(!e)return[[]];if(e==="/")return[[Fke]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(w){throw new Error(`ERR (${n})/"${p}": ${w}`)}let n=an.Static,i=n;const o=[];let l;function u(){l&&o.push(l),l=[]}let f=0,h,p="",g="";function v(){p&&(n===an.Static?l.push({type:ds.Static,value:p}):n===an.Param||n===an.ParamRegExp||n===an.ParamRegExpEnd?(l.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),l.push({type:ds.Param,value:p,regexp:g,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function y(){p+=h}for(;f<e.length;){if(h=e[f++],h==="\\"&&n!==an.ParamRegExp){i=n,n=an.EscapeNext;continue}switch(n){case an.Static:h==="/"?(p&&v(),u()):h===":"?(v(),n=an.Param):y();break;case an.EscapeNext:y(),n=i;break;case an.Param:h==="("?n=an.ParamRegExp:zke.test(h)?y():(v(),n=an.Static,h!=="*"&&h!=="?"&&h!=="+"&&f--);break;case an.ParamRegExp:h===")"?g[g.length-1]=="\\"?g=g.slice(0,-1)+h:n=an.ParamRegExpEnd:g+=h;break;case an.ParamRegExpEnd:v(),n=an.Static,h!=="*"&&h!=="?"&&h!=="+"&&f--,g="";break;default:t("Unknown state");break}}return n===an.ParamRegExp&&t(`Unfinished custom RegExp for param "${p}"`),v(),u(),o}const zw="[^/]+?",Bke={sensitive:!1,strict:!1,start:!0,end:!0};var zn=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(zn||{});const jke=/[.+*?^${}()[\]/\\]/g;function Wke(e,t){const n=_t({},Bke,t),i=[];let o=n.start?"^":"";const l=[];for(const p of e){const g=p.length?[]:[zn.Root];n.strict&&!p.length&&(o+="/");for(let v=0;v<p.length;v++){const y=p[v];let w=zn.Segment+(n.sensitive?zn.BonusCaseSensitive:0);if(y.type===ds.Static)v||(o+="/"),o+=y.value.replace(jke,"\\$&"),w+=zn.Static;else if(y.type===ds.Param){const{value:$,repeatable:_,optional:C,regexp:E}=y;l.push({name:$,repeatable:_,optional:C});const L=E||zw;if(L!==zw){w+=zn.BonusCustomRegExp;try{new RegExp(`(${L})`)}catch(N){throw new Error(`Invalid custom RegExp for param "${$}" (${L}): `+N.message)}}let D=_?`((?:${L})(?:/(?:${L}))*)`:`(${L})`;v||(D=C&&p.length<2?`(?:/${D})`:"/"+D),C&&(D+="?"),o+=D,w+=zn.Dynamic,C&&(w+=zn.BonusOptional),_&&(w+=zn.BonusRepeatable),L===".*"&&(w+=zn.BonusWildcard)}g.push(w)}i.push(g)}if(n.strict&&n.end){const p=i.length-1;i[p][i[p].length-1]+=zn.BonusStrict}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const u=new RegExp(o,n.sensitive?"":"i");function f(p){const g=p.match(u),v={};if(!g)return null;for(let y=1;y<g.length;y++){const w=g[y]||"",$=l[y-1];v[$.name]=w&&$.repeatable?w.split("/"):w}return v}function h(p){let g="",v=!1;for(const y of e){(!v||!g.endsWith("/"))&&(g+="/"),v=!1;for(const w of y)if(w.type===ds.Static)g+=w.value;else if(w.type===ds.Param){const{value:$,repeatable:_,optional:C}=w,E=$ in p?p[$]:"";if(Yr(E)&&!_)throw new Error(`Provided param "${$}" is an array but it is not repeatable (* or + modifiers)`);const L=Yr(E)?E.join("/"):E;if(!L)if(C)y.length<2&&(g.endsWith("/")?g=g.slice(0,-1):v=!0);else throw new Error(`Missing required param "${$}"`);g+=L}}return g||"/"}return{re:u,score:i,keys:l,parse:f,stringify:h}}function qke(e,t){let n=0;for(;n<e.length&&n<t.length;){const i=t[n]-e[n];if(i)return i;n++}return e.length<t.length?e.length===1&&e[0]===zn.Static+zn.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===zn.Static+zn.Segment?1:-1:0}function Xk(e,t){let n=0;const i=e.score,o=t.score;for(;n<i.length&&n<o.length;){const l=qke(i[n],o[n]);if(l)return l;n++}if(Math.abs(o.length-i.length)===1){if(Hw(i))return 1;if(Hw(o))return-1}return o.length-i.length}function Hw(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Uke={strict:!1,end:!0,sensitive:!1};function Vke(e,t,n){const i=Wke(Hke(e.path),n),o=_t(i,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Gke(e,t){const n=[],i=new Map;t=Lw(Uke,t);function o(v){return i.get(v)}function l(v,y,w){const $=!w,_=jw(v);_.aliasOf=w&&w.record;const C=Lw(t,v),E=[_];if("alias"in v){const N=typeof v.alias=="string"?[v.alias]:v.alias;for(const I of N)E.push(jw(_t({},_,{components:w?w.record.components:_.components,path:I,aliasOf:w?w.record:_})))}let L,D;for(const N of E){const{path:I}=N;if(y&&I[0]!=="/"){const q=y.record.path,X=q[q.length-1]==="/"?"":"/";N.path=y.record.path+(I&&X+I)}if(L=Vke(N,y,C),w?w.alias.push(L):(D=D||L,D!==L&&D.alias.push(L),$&&v.name&&!Ww(L)&&u(v.name)),Jk(L)&&h(L),_.children){const q=_.children;for(let X=0;X<q.length;X++)l(q[X],L,w&&w.children[X])}w=w||L}return D?()=>{u(D)}:Ua}function u(v){if(Kk(v)){const y=i.get(v);y&&(i.delete(v),n.splice(n.indexOf(y),1),y.children.forEach(u),y.alias.forEach(u))}else{const y=n.indexOf(v);y>-1&&(n.splice(y,1),v.record.name&&i.delete(v.record.name),v.children.forEach(u),v.alias.forEach(u))}}function f(){return n}function h(v){const y=Xke(v,n);n.splice(y,0,v),v.record.name&&!Ww(v)&&i.set(v.record.name,v)}function p(v,y){let w,$={},_,C;if("name"in v&&v.name){if(w=i.get(v.name),!w)throw Il(Ut.MATCHER_NOT_FOUND,{location:v});C=w.record.name,$=_t(Bw(y.params,w.keys.filter(D=>!D.optional).concat(w.parent?w.parent.keys.filter(D=>D.optional):[]).map(D=>D.name)),v.params&&Bw(v.params,w.keys.map(D=>D.name))),_=w.stringify($)}else if(v.path!=null)_=v.path,w=n.find(D=>D.re.test(_)),w&&($=w.parse(_),C=w.record.name);else{if(w=y.name?i.get(y.name):n.find(D=>D.re.test(y.path)),!w)throw Il(Ut.MATCHER_NOT_FOUND,{location:v,currentLocation:y});C=w.record.name,$=_t({},y.params,v.params),_=w.stringify($)}const E=[];let L=w;for(;L;)E.unshift(L.record),L=L.parent;return{name:C,path:_,params:$,matched:E,meta:Yke(E)}}e.forEach(v=>l(v));function g(){n.length=0,i.clear()}return{addRoute:l,resolve:p,removeRoute:u,clearRoutes:g,getRoutes:f,getRecordMatcher:o}}function Bw(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function jw(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Kke(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Kke(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]=typeof n=="object"?n[i]:n;return t}function Ww(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Yke(e){return e.reduce((t,n)=>_t(t,n.meta),{})}function Xke(e,t){let n=0,i=t.length;for(;n!==i;){const l=n+i>>1;Xk(e,t[l])<0?i=l:n=l+1}const o=Jke(e);return o&&(i=t.lastIndexOf(o,i-1)),i}function Jke(e){let t=e;for(;t=t.parent;)if(Jk(t)&&Xk(e,t)===0)return t}function Jk({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function qw(e){const t=bn(ym),n=bn(Bk),i=Se(()=>{const h=W(e.to);return t.resolve(h)}),o=Se(()=>{const{matched:h}=i.value,{length:p}=h,g=h[p-1],v=n.matched;if(!g||!v.length)return-1;const y=v.findIndex(Dl.bind(null,g));if(y>-1)return y;const w=Uw(h[p-2]);return p>1&&Uw(g)===w&&v[v.length-1].path!==w?v.findIndex(Dl.bind(null,h[p-2])):y}),l=Se(()=>o.value>-1&&nTe(n.params,i.value.params)),u=Se(()=>o.value>-1&&o.value===n.matched.length-1&&Gk(n.params,i.value.params));function f(h={}){if(tTe(h)){const p=t[W(e.replace)?"replace":"push"](W(e.to)).catch(Ua);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:i,href:Se(()=>i.value.href),isActive:l,isExactActive:u,navigate:f}}function Zke(e){return e.length===1?e[0]:e}const Qke=tt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:qw,setup(e,{slots:t}){const n=dr(qw(e)),{options:i}=bn(ym),o=Se(()=>({[Vw(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[Vw(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&Zke(t.default(n));return e.custom?l:Tc("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},l)}}}),eTe=Qke;function tTe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function nTe(e,t){for(const n in t){const i=t[n],o=e[n];if(typeof i=="string"){if(i!==o)return!1}else if(!Yr(o)||o.length!==i.length||i.some((l,u)=>l.valueOf()!==o[u].valueOf()))return!1}return!0}function Uw(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Vw=(e,t,n)=>e??t??n,rTe=tt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=bn(eg),o=Se(()=>e.route||i.value),l=bn(Ow,0),u=Se(()=>{let p=W(l);const{matched:g}=o.value;let v;for(;(v=g[p])&&!v.components;)p++;return p}),f=Se(()=>o.value.matched[u.value]);_r(Ow,Se(()=>u.value+1)),_r(nke,f),_r(eg,o);const h=Ke();return yt(()=>[h.value,f.value,e.name],([p,g,v],[y,w,$])=>{g&&(g.instances[v]=p,w&&w!==g&&p&&p===y&&(g.leaveGuards.size||(g.leaveGuards=w.leaveGuards),g.updateGuards.size||(g.updateGuards=w.updateGuards))),p&&g&&(!w||!Dl(g,w)||!y)&&(g.enterCallbacks[v]||[]).forEach(_=>_(p))},{flush:"post"}),()=>{const p=o.value,g=e.name,v=f.value,y=v&&v.components[g];if(!y)return Gw(n.default,{Component:y,route:p});const w=v.props[g],$=w?w===!0?p.params:typeof w=="function"?w(p):w:null,C=Tc(y,_t({},$,t,{onVnodeUnmounted:E=>{E.component.isUnmounted&&(v.instances[g]=null)},ref:h}));return Gw(n.default,{Component:C,route:p})||C}}});function Gw(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const iTe=rTe;function oTe(e){const t=Gke(e.routes,e),n=e.parseQuery||Nke,i=e.stringifyQuery||Dw,o=e.history,l=Ea(),u=Ea(),f=Ea(),h=Vt(ho);let p=ho;il&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=Zh.bind(null,z=>""+z),v=Zh.bind(null,gke),y=Zh.bind(null,yc);function w(z,Z){let re,le;return Kk(z)?(re=t.getRecordMatcher(z),le=Z):le=z,t.addRoute(le,re)}function $(z){const Z=t.getRecordMatcher(z);Z&&t.removeRoute(Z)}function _(){return t.getRoutes().map(z=>z.record)}function C(z){return!!t.getRecordMatcher(z)}function E(z,Z){if(Z=_t({},Z||h.value),typeof z=="string"){const ee=Qh(n,z,Z.path),de=t.resolve({path:ee.path},Z),he=o.createHref(ee.fullPath);return _t(ee,de,{params:y(de.params),hash:yc(ee.hash),redirectedFrom:void 0,href:he})}let re;if(z.path!=null)re=_t({},z,{path:Qh(n,z.path,Z.path).path});else{const ee=_t({},z.params);for(const de in ee)ee[de]==null&&delete ee[de];re=_t({},z,{params:v(ee)}),Z.params=v(Z.params)}const le=t.resolve(re,Z),ce=z.hash||"";le.params=g(y(le.params));const F=yke(i,_t({},z,{hash:dke(ce),path:le.path})),j=o.createHref(F);return _t({fullPath:F,hash:ce,query:i===Dw?Mke(z.query):z.query||{}},le,{redirectedFrom:void 0,href:j})}function L(z){return typeof z=="string"?Qh(n,z,h.value.path):_t({},z)}function D(z,Z){if(p!==z)return Il(Ut.NAVIGATION_CANCELLED,{from:Z,to:z})}function N(z){return X(z)}function I(z){return N(_t(L(z),{replace:!0}))}function q(z,Z){const re=z.matched[z.matched.length-1];if(re&&re.redirect){const{redirect:le}=re;let ce=typeof le=="function"?le(z,Z):le;return typeof ce=="string"&&(ce=ce.includes("?")||ce.includes("#")?ce=L(ce):{path:ce},ce.params={}),_t({query:z.query,hash:z.hash,params:ce.path!=null?{}:z.params},ce)}}function X(z,Z){const re=p=E(z),le=h.value,ce=z.state,F=z.force,j=z.replace===!0,ee=q(re,le);if(ee)return X(_t(L(ee),{state:typeof ee=="object"?_t({},ce,ee.state):ce,force:F,replace:j}),Z||re);const de=re;de.redirectedFrom=Z;let he;return!F&&bke(i,le,re)&&(he=Il(Ut.NAVIGATION_DUPLICATED,{to:de,from:le}),Be(le,le,!0,!1)),(he?Promise.resolve(he):U(de,le)).catch(me=>$i(me)?$i(me,Ut.NAVIGATION_GUARD_REDIRECT)?me:_e(me):ae(me,de,le)).then(me=>{if(me){if($i(me,Ut.NAVIGATION_GUARD_REDIRECT))return X(_t({replace:j},L(me.to),{state:typeof me.to=="object"?_t({},ce,me.to.state):ce,force:F}),Z||de)}else me=P(de,le,!0,j,ce);return K(de,le,me),me})}function ie(z,Z){const re=D(z,Z);return re?Promise.reject(re):Promise.resolve()}function J(z){const Z=Ue.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(z):z()}function U(z,Z){let re;const[le,ce,F]=Lke(z,Z);re=tp(le.reverse(),"beforeRouteLeave",z,Z);for(const ee of le)ee.leaveGuards.forEach(de=>{re.push(ko(de,z,Z))});const j=ie.bind(null,z,Z);return re.push(j),Re(re).then(()=>{re=[];for(const ee of l.list())re.push(ko(ee,z,Z));return re.push(j),Re(re)}).then(()=>{re=tp(ce,"beforeRouteUpdate",z,Z);for(const ee of ce)ee.updateGuards.forEach(de=>{re.push(ko(de,z,Z))});return re.push(j),Re(re)}).then(()=>{re=[];for(const ee of F)if(ee.beforeEnter)if(Yr(ee.beforeEnter))for(const de of ee.beforeEnter)re.push(ko(de,z,Z));else re.push(ko(ee.beforeEnter,z,Z));return re.push(j),Re(re)}).then(()=>(z.matched.forEach(ee=>ee.enterCallbacks={}),re=tp(F,"beforeRouteEnter",z,Z,J),re.push(j),Re(re))).then(()=>{re=[];for(const ee of u.list())re.push(ko(ee,z,Z));return re.push(j),Re(re)}).catch(ee=>$i(ee,Ut.NAVIGATION_CANCELLED)?ee:Promise.reject(ee))}function K(z,Z,re){f.list().forEach(le=>J(()=>le(z,Z,re)))}function P(z,Z,re,le,ce){const F=D(z,Z);if(F)return F;const j=Z===ho,ee=il?history.state:{};re&&(le||j?o.replace(z.fullPath,_t({scroll:j&&ee&&ee.scroll},ce)):o.push(z.fullPath,ce)),h.value=z,Be(z,Z,re,j),_e()}let O;function k(){O||(O=o.listen((z,Z,re)=>{if(!He.listening)return;const le=E(z),ce=q(le,He.currentRoute.value);if(ce){X(_t(ce,{replace:!0,force:!0}),le).catch(Ua);return}p=le;const F=h.value;il&&Eke(Iw(F.fullPath,re.delta),yd()),U(le,F).catch(j=>$i(j,Ut.NAVIGATION_ABORTED|Ut.NAVIGATION_CANCELLED)?j:$i(j,Ut.NAVIGATION_GUARD_REDIRECT)?(X(_t(L(j.to),{force:!0}),le).then(ee=>{$i(ee,Ut.NAVIGATION_ABORTED|Ut.NAVIGATION_DUPLICATED)&&!re.delta&&re.type===ng.pop&&o.go(-1,!1)}).catch(Ua),Promise.reject()):(re.delta&&o.go(-re.delta,!1),ae(j,le,F))).then(j=>{j=j||P(le,F,!1),j&&(re.delta&&!$i(j,Ut.NAVIGATION_CANCELLED)?o.go(-re.delta,!1):re.type===ng.pop&&$i(j,Ut.NAVIGATION_ABORTED|Ut.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),K(le,F,j)}).catch(Ua)}))}let S=Ea(),R=Ea(),B;function ae(z,Z,re){_e(z);const le=R.list();return le.length?le.forEach(ce=>ce(z,Z,re)):console.error(z),Promise.reject(z)}function ve(){return B&&h.value!==ho?Promise.resolve():new Promise((z,Z)=>{S.add([z,Z])})}function _e(z){return B||(B=!z,k(),S.list().forEach(([Z,re])=>z?re(z):Z()),S.reset()),z}function Be(z,Z,re,le){const{scrollBehavior:ce}=e;if(!il||!ce)return Promise.resolve();const F=!re&&Ake(Iw(z.fullPath,0))||(le||!re)&&history.state&&history.state.scroll||null;return At().then(()=>ce(z,Z,F)).then(j=>j&&Cke(j)).catch(j=>ae(j,z,Z))}const Ee=z=>o.go(z);let Ge;const Ue=new Set,He={currentRoute:h,listening:!0,addRoute:w,removeRoute:$,clearRoutes:t.clearRoutes,hasRoute:C,getRoutes:_,resolve:E,options:e,push:N,replace:I,go:Ee,back:()=>Ee(-1),forward:()=>Ee(1),beforeEach:l.add,beforeResolve:u.add,afterEach:f.add,onError:R.add,isReady:ve,install(z){z.component("RouterLink",eTe),z.component("RouterView",iTe),z.config.globalProperties.$router=He,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>W(h)}),il&&!Ge&&h.value===ho&&(Ge=!0,N(o.location).catch(le=>{}));const Z={};for(const le in ho)Object.defineProperty(Z,le,{get:()=>h.value[le],enumerable:!0});z.provide(ym,He),z.provide(Bk,hg(Z)),z.provide(eg,h);const re=z.unmount;Ue.add(z),z.unmount=function(){Ue.delete(z),Ue.size<1&&(p=ho,O&&O(),O=null,h.value=ho,Ge=!1,B=!1),re()}}};function Re(z){return z.reduce((Z,re)=>Z.then(()=>J(re)),Promise.resolve())}return He}const sTe={tooltip:RN};j1.options.instantMove=!0;j1.options.distance=10;function lTe(){return oTe({history:Dke(),routes:Z_e})}const aTe=[lTe],wm=x1(O$);aTe.forEach(e=>{wm.use(e())});Object.entries(sTe).forEach(([e,t])=>{wm.directive(e,t)});wm.mount("#app");
94
+ */let Rke=()=>location.protocol+"//"+location.host;function Yk(e,t){const{pathname:n,search:i,hash:o}=t,l=e.indexOf("#");if(l>-1){let u=o.includes(e.slice(l))?e.slice(l).length:1,f=o.slice(u);return f[0]!=="/"&&(f="/"+f),Rw(f,"")}return Rw(n,e)+i+o}function Pke(e,t,n,i){let o=[],l=[],u=null;const f=({state:y})=>{const w=Yk(e,location),$=n.value,_=t.value;let C=0;if(y){if(n.value=w,t.value=y,u&&u===$){u=null;return}C=_?y.position-_.position:0}else i(w);o.forEach(E=>{E(n.value,$,{delta:C,type:ng.pop,direction:C?C>0?ep.forward:ep.back:ep.unknown})})};function h(){u=n.value}function p(y){o.push(y);const w=()=>{const $=o.indexOf(y);$>-1&&o.splice($,1)};return l.push(w),w}function g(){if(document.visibilityState==="hidden"){const{history:y}=window;if(!y.state)return;y.replaceState(_t({},y.state,{scroll:yd()}),"")}}function v(){for(const y of l)y();l=[],window.removeEventListener("popstate",f),window.removeEventListener("pagehide",g),document.removeEventListener("visibilitychange",g)}return window.addEventListener("popstate",f),window.addEventListener("pagehide",g),document.addEventListener("visibilitychange",g),{pauseListeners:h,listen:p,destroy:v}}function Fw(e,t,n,i=!1,o=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:o?yd():null}}function Ike(e){const{history:t,location:n}=window,i={value:Yk(e,n)},o={value:t.state};o.value||l(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(h,p,g){const v=e.indexOf("#"),y=v>-1?(n.host&&document.querySelector("base")?e:e.slice(v))+h:Rke()+e+h;try{t[g?"replaceState":"pushState"](p,"",y),o.value=p}catch(w){console.error(w),n[g?"replace":"assign"](y)}}function u(h,p){l(h,_t({},t.state,Fw(o.value.back,h,o.value.forward,!0),p,{position:o.value.position}),!0),i.value=h}function f(h,p){const g=_t({},o.value,t.state,{forward:h,scroll:yd()});l(g.current,g,!0),l(h,_t({},Fw(i.value,h,null),{position:g.position+1},p),!1),i.value=h}return{location:i,state:o,push:f,replace:u}}function Dke(e){e=_ke(e);const t=Ike(e),n=Pke(e,t.state,t.location,t.replace);function i(l,u=!0){u||n.pauseListeners(),history.go(l)}const o=_t({location:"",base:e,go:i,createHref:Tke.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Fke(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Dke(e)}let ds=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var an=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(an||{});const zke={type:ds.Static,value:""},Hke=/[a-zA-Z0-9_]/;function Bke(e){if(!e)return[[]];if(e==="/")return[[zke]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(w){throw new Error(`ERR (${n})/"${p}": ${w}`)}let n=an.Static,i=n;const o=[];let l;function u(){l&&o.push(l),l=[]}let f=0,h,p="",g="";function v(){p&&(n===an.Static?l.push({type:ds.Static,value:p}):n===an.Param||n===an.ParamRegExp||n===an.ParamRegExpEnd?(l.length>1&&(h==="*"||h==="+")&&t(`A repeatable param (${p}) must be alone in its segment. eg: '/:ids+.`),l.push({type:ds.Param,value:p,regexp:g,repeatable:h==="*"||h==="+",optional:h==="*"||h==="?"})):t("Invalid state to consume buffer"),p="")}function y(){p+=h}for(;f<e.length;){if(h=e[f++],h==="\\"&&n!==an.ParamRegExp){i=n,n=an.EscapeNext;continue}switch(n){case an.Static:h==="/"?(p&&v(),u()):h===":"?(v(),n=an.Param):y();break;case an.EscapeNext:y(),n=i;break;case an.Param:h==="("?n=an.ParamRegExp:Hke.test(h)?y():(v(),n=an.Static,h!=="*"&&h!=="?"&&h!=="+"&&f--);break;case an.ParamRegExp:h===")"?g[g.length-1]=="\\"?g=g.slice(0,-1)+h:n=an.ParamRegExpEnd:g+=h;break;case an.ParamRegExpEnd:v(),n=an.Static,h!=="*"&&h!=="?"&&h!=="+"&&f--,g="";break;default:t("Unknown state");break}}return n===an.ParamRegExp&&t(`Unfinished custom RegExp for param "${p}"`),v(),u(),o}const zw="[^/]+?",jke={sensitive:!1,strict:!1,start:!0,end:!0};var zn=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(zn||{});const Wke=/[.+*?^${}()[\]/\\]/g;function qke(e,t){const n=_t({},jke,t),i=[];let o=n.start?"^":"";const l=[];for(const p of e){const g=p.length?[]:[zn.Root];n.strict&&!p.length&&(o+="/");for(let v=0;v<p.length;v++){const y=p[v];let w=zn.Segment+(n.sensitive?zn.BonusCaseSensitive:0);if(y.type===ds.Static)v||(o+="/"),o+=y.value.replace(Wke,"\\$&"),w+=zn.Static;else if(y.type===ds.Param){const{value:$,repeatable:_,optional:C,regexp:E}=y;l.push({name:$,repeatable:_,optional:C});const L=E||zw;if(L!==zw){w+=zn.BonusCustomRegExp;try{new RegExp(`(${L})`)}catch(N){throw new Error(`Invalid custom RegExp for param "${$}" (${L}): `+N.message)}}let D=_?`((?:${L})(?:/(?:${L}))*)`:`(${L})`;v||(D=C&&p.length<2?`(?:/${D})`:"/"+D),C&&(D+="?"),o+=D,w+=zn.Dynamic,C&&(w+=zn.BonusOptional),_&&(w+=zn.BonusRepeatable),L===".*"&&(w+=zn.BonusWildcard)}g.push(w)}i.push(g)}if(n.strict&&n.end){const p=i.length-1;i[p][i[p].length-1]+=zn.BonusStrict}n.strict||(o+="/?"),n.end?o+="$":n.strict&&!o.endsWith("/")&&(o+="(?:/|$)");const u=new RegExp(o,n.sensitive?"":"i");function f(p){const g=p.match(u),v={};if(!g)return null;for(let y=1;y<g.length;y++){const w=g[y]||"",$=l[y-1];v[$.name]=w&&$.repeatable?w.split("/"):w}return v}function h(p){let g="",v=!1;for(const y of e){(!v||!g.endsWith("/"))&&(g+="/"),v=!1;for(const w of y)if(w.type===ds.Static)g+=w.value;else if(w.type===ds.Param){const{value:$,repeatable:_,optional:C}=w,E=$ in p?p[$]:"";if(Yr(E)&&!_)throw new Error(`Provided param "${$}" is an array but it is not repeatable (* or + modifiers)`);const L=Yr(E)?E.join("/"):E;if(!L)if(C)y.length<2&&(g.endsWith("/")?g=g.slice(0,-1):v=!0);else throw new Error(`Missing required param "${$}"`);g+=L}}return g||"/"}return{re:u,score:i,keys:l,parse:f,stringify:h}}function Uke(e,t){let n=0;for(;n<e.length&&n<t.length;){const i=t[n]-e[n];if(i)return i;n++}return e.length<t.length?e.length===1&&e[0]===zn.Static+zn.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===zn.Static+zn.Segment?1:-1:0}function Xk(e,t){let n=0;const i=e.score,o=t.score;for(;n<i.length&&n<o.length;){const l=Uke(i[n],o[n]);if(l)return l;n++}if(Math.abs(o.length-i.length)===1){if(Hw(i))return 1;if(Hw(o))return-1}return o.length-i.length}function Hw(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Vke={strict:!1,end:!0,sensitive:!1};function Gke(e,t,n){const i=qke(Bke(e.path),n),o=_t(i,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Kke(e,t){const n=[],i=new Map;t=Lw(Vke,t);function o(v){return i.get(v)}function l(v,y,w){const $=!w,_=jw(v);_.aliasOf=w&&w.record;const C=Lw(t,v),E=[_];if("alias"in v){const N=typeof v.alias=="string"?[v.alias]:v.alias;for(const I of N)E.push(jw(_t({},_,{components:w?w.record.components:_.components,path:I,aliasOf:w?w.record:_})))}let L,D;for(const N of E){const{path:I}=N;if(y&&I[0]!=="/"){const q=y.record.path,X=q[q.length-1]==="/"?"":"/";N.path=y.record.path+(I&&X+I)}if(L=Gke(N,y,C),w?w.alias.push(L):(D=D||L,D!==L&&D.alias.push(L),$&&v.name&&!Ww(L)&&u(v.name)),Jk(L)&&h(L),_.children){const q=_.children;for(let X=0;X<q.length;X++)l(q[X],L,w&&w.children[X])}w=w||L}return D?()=>{u(D)}:Ua}function u(v){if(Kk(v)){const y=i.get(v);y&&(i.delete(v),n.splice(n.indexOf(y),1),y.children.forEach(u),y.alias.forEach(u))}else{const y=n.indexOf(v);y>-1&&(n.splice(y,1),v.record.name&&i.delete(v.record.name),v.children.forEach(u),v.alias.forEach(u))}}function f(){return n}function h(v){const y=Jke(v,n);n.splice(y,0,v),v.record.name&&!Ww(v)&&i.set(v.record.name,v)}function p(v,y){let w,$={},_,C;if("name"in v&&v.name){if(w=i.get(v.name),!w)throw Il(Ut.MATCHER_NOT_FOUND,{location:v});C=w.record.name,$=_t(Bw(y.params,w.keys.filter(D=>!D.optional).concat(w.parent?w.parent.keys.filter(D=>D.optional):[]).map(D=>D.name)),v.params&&Bw(v.params,w.keys.map(D=>D.name))),_=w.stringify($)}else if(v.path!=null)_=v.path,w=n.find(D=>D.re.test(_)),w&&($=w.parse(_),C=w.record.name);else{if(w=y.name?i.get(y.name):n.find(D=>D.re.test(y.path)),!w)throw Il(Ut.MATCHER_NOT_FOUND,{location:v,currentLocation:y});C=w.record.name,$=_t({},y.params,v.params),_=w.stringify($)}const E=[];let L=w;for(;L;)E.unshift(L.record),L=L.parent;return{name:C,path:_,params:$,matched:E,meta:Xke(E)}}e.forEach(v=>l(v));function g(){n.length=0,i.clear()}return{addRoute:l,resolve:p,removeRoute:u,clearRoutes:g,getRoutes:f,getRecordMatcher:o}}function Bw(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function jw(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Yke(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Yke(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]=typeof n=="object"?n[i]:n;return t}function Ww(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Xke(e){return e.reduce((t,n)=>_t(t,n.meta),{})}function Jke(e,t){let n=0,i=t.length;for(;n!==i;){const l=n+i>>1;Xk(e,t[l])<0?i=l:n=l+1}const o=Zke(e);return o&&(i=t.lastIndexOf(o,i-1)),i}function Zke(e){let t=e;for(;t=t.parent;)if(Jk(t)&&Xk(e,t)===0)return t}function Jk({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function qw(e){const t=bn(ym),n=bn(Bk),i=Se(()=>{const h=W(e.to);return t.resolve(h)}),o=Se(()=>{const{matched:h}=i.value,{length:p}=h,g=h[p-1],v=n.matched;if(!g||!v.length)return-1;const y=v.findIndex(Dl.bind(null,g));if(y>-1)return y;const w=Uw(h[p-2]);return p>1&&Uw(g)===w&&v[v.length-1].path!==w?v.findIndex(Dl.bind(null,h[p-2])):y}),l=Se(()=>o.value>-1&&rTe(n.params,i.value.params)),u=Se(()=>o.value>-1&&o.value===n.matched.length-1&&Gk(n.params,i.value.params));function f(h={}){if(nTe(h)){const p=t[W(e.replace)?"replace":"push"](W(e.to)).catch(Ua);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>p),p}return Promise.resolve()}return{route:i,href:Se(()=>i.value.href),isActive:l,isExactActive:u,navigate:f}}function Qke(e){return e.length===1?e[0]:e}const eTe=tt({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:qw,setup(e,{slots:t}){const n=dr(qw(e)),{options:i}=bn(ym),o=Se(()=>({[Vw(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[Vw(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&Qke(t.default(n));return e.custom?l:Tc("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},l)}}}),tTe=eTe;function nTe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function rTe(e,t){for(const n in t){const i=t[n],o=e[n];if(typeof i=="string"){if(i!==o)return!1}else if(!Yr(o)||o.length!==i.length||i.some((l,u)=>l.valueOf()!==o[u].valueOf()))return!1}return!0}function Uw(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Vw=(e,t,n)=>e??t??n,iTe=tt({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=bn(eg),o=Se(()=>e.route||i.value),l=bn(Ow,0),u=Se(()=>{let p=W(l);const{matched:g}=o.value;let v;for(;(v=g[p])&&!v.components;)p++;return p}),f=Se(()=>o.value.matched[u.value]);_r(Ow,Se(()=>u.value+1)),_r(rke,f),_r(eg,o);const h=Ke();return yt(()=>[h.value,f.value,e.name],([p,g,v],[y,w,$])=>{g&&(g.instances[v]=p,w&&w!==g&&p&&p===y&&(g.leaveGuards.size||(g.leaveGuards=w.leaveGuards),g.updateGuards.size||(g.updateGuards=w.updateGuards))),p&&g&&(!w||!Dl(g,w)||!y)&&(g.enterCallbacks[v]||[]).forEach(_=>_(p))},{flush:"post"}),()=>{const p=o.value,g=e.name,v=f.value,y=v&&v.components[g];if(!y)return Gw(n.default,{Component:y,route:p});const w=v.props[g],$=w?w===!0?p.params:typeof w=="function"?w(p):w:null,C=Tc(y,_t({},$,t,{onVnodeUnmounted:E=>{E.component.isUnmounted&&(v.instances[g]=null)},ref:h}));return Gw(n.default,{Component:C,route:p})||C}}});function Gw(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const oTe=iTe;function sTe(e){const t=Kke(e.routes,e),n=e.parseQuery||Mke,i=e.stringifyQuery||Dw,o=e.history,l=Ea(),u=Ea(),f=Ea(),h=Vt(ho);let p=ho;il&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const g=Zh.bind(null,z=>""+z),v=Zh.bind(null,mke),y=Zh.bind(null,yc);function w(z,Z){let re,le;return Kk(z)?(re=t.getRecordMatcher(z),le=Z):le=z,t.addRoute(le,re)}function $(z){const Z=t.getRecordMatcher(z);Z&&t.removeRoute(Z)}function _(){return t.getRoutes().map(z=>z.record)}function C(z){return!!t.getRecordMatcher(z)}function E(z,Z){if(Z=_t({},Z||h.value),typeof z=="string"){const ee=Qh(n,z,Z.path),de=t.resolve({path:ee.path},Z),he=o.createHref(ee.fullPath);return _t(ee,de,{params:y(de.params),hash:yc(ee.hash),redirectedFrom:void 0,href:he})}let re;if(z.path!=null)re=_t({},z,{path:Qh(n,z.path,Z.path).path});else{const ee=_t({},z.params);for(const de in ee)ee[de]==null&&delete ee[de];re=_t({},z,{params:v(ee)}),Z.params=v(Z.params)}const le=t.resolve(re,Z),ce=z.hash||"";le.params=g(y(le.params));const F=bke(i,_t({},z,{hash:hke(ce),path:le.path})),j=o.createHref(F);return _t({fullPath:F,hash:ce,query:i===Dw?Lke(z.query):z.query||{}},le,{redirectedFrom:void 0,href:j})}function L(z){return typeof z=="string"?Qh(n,z,h.value.path):_t({},z)}function D(z,Z){if(p!==z)return Il(Ut.NAVIGATION_CANCELLED,{from:Z,to:z})}function N(z){return X(z)}function I(z){return N(_t(L(z),{replace:!0}))}function q(z,Z){const re=z.matched[z.matched.length-1];if(re&&re.redirect){const{redirect:le}=re;let ce=typeof le=="function"?le(z,Z):le;return typeof ce=="string"&&(ce=ce.includes("?")||ce.includes("#")?ce=L(ce):{path:ce},ce.params={}),_t({query:z.query,hash:z.hash,params:ce.path!=null?{}:z.params},ce)}}function X(z,Z){const re=p=E(z),le=h.value,ce=z.state,F=z.force,j=z.replace===!0,ee=q(re,le);if(ee)return X(_t(L(ee),{state:typeof ee=="object"?_t({},ce,ee.state):ce,force:F,replace:j}),Z||re);const de=re;de.redirectedFrom=Z;let he;return!F&&wke(i,le,re)&&(he=Il(Ut.NAVIGATION_DUPLICATED,{to:de,from:le}),Be(le,le,!0,!1)),(he?Promise.resolve(he):U(de,le)).catch(me=>$i(me)?$i(me,Ut.NAVIGATION_GUARD_REDIRECT)?me:_e(me):ae(me,de,le)).then(me=>{if(me){if($i(me,Ut.NAVIGATION_GUARD_REDIRECT))return X(_t({replace:j},L(me.to),{state:typeof me.to=="object"?_t({},ce,me.to.state):ce,force:F}),Z||de)}else me=P(de,le,!0,j,ce);return K(de,le,me),me})}function ie(z,Z){const re=D(z,Z);return re?Promise.reject(re):Promise.resolve()}function J(z){const Z=Ue.values().next().value;return Z&&typeof Z.runWithContext=="function"?Z.runWithContext(z):z()}function U(z,Z){let re;const[le,ce,F]=Oke(z,Z);re=tp(le.reverse(),"beforeRouteLeave",z,Z);for(const ee of le)ee.leaveGuards.forEach(de=>{re.push(ko(de,z,Z))});const j=ie.bind(null,z,Z);return re.push(j),Re(re).then(()=>{re=[];for(const ee of l.list())re.push(ko(ee,z,Z));return re.push(j),Re(re)}).then(()=>{re=tp(ce,"beforeRouteUpdate",z,Z);for(const ee of ce)ee.updateGuards.forEach(de=>{re.push(ko(de,z,Z))});return re.push(j),Re(re)}).then(()=>{re=[];for(const ee of F)if(ee.beforeEnter)if(Yr(ee.beforeEnter))for(const de of ee.beforeEnter)re.push(ko(de,z,Z));else re.push(ko(ee.beforeEnter,z,Z));return re.push(j),Re(re)}).then(()=>(z.matched.forEach(ee=>ee.enterCallbacks={}),re=tp(F,"beforeRouteEnter",z,Z,J),re.push(j),Re(re))).then(()=>{re=[];for(const ee of u.list())re.push(ko(ee,z,Z));return re.push(j),Re(re)}).catch(ee=>$i(ee,Ut.NAVIGATION_CANCELLED)?ee:Promise.reject(ee))}function K(z,Z,re){f.list().forEach(le=>J(()=>le(z,Z,re)))}function P(z,Z,re,le,ce){const F=D(z,Z);if(F)return F;const j=Z===ho,ee=il?history.state:{};re&&(le||j?o.replace(z.fullPath,_t({scroll:j&&ee&&ee.scroll},ce)):o.push(z.fullPath,ce)),h.value=z,Be(z,Z,re,j),_e()}let O;function k(){O||(O=o.listen((z,Z,re)=>{if(!He.listening)return;const le=E(z),ce=q(le,He.currentRoute.value);if(ce){X(_t(ce,{replace:!0,force:!0}),le).catch(Ua);return}p=le;const F=h.value;il&&Ake(Iw(F.fullPath,re.delta),yd()),U(le,F).catch(j=>$i(j,Ut.NAVIGATION_ABORTED|Ut.NAVIGATION_CANCELLED)?j:$i(j,Ut.NAVIGATION_GUARD_REDIRECT)?(X(_t(L(j.to),{force:!0}),le).then(ee=>{$i(ee,Ut.NAVIGATION_ABORTED|Ut.NAVIGATION_DUPLICATED)&&!re.delta&&re.type===ng.pop&&o.go(-1,!1)}).catch(Ua),Promise.reject()):(re.delta&&o.go(-re.delta,!1),ae(j,le,F))).then(j=>{j=j||P(le,F,!1),j&&(re.delta&&!$i(j,Ut.NAVIGATION_CANCELLED)?o.go(-re.delta,!1):re.type===ng.pop&&$i(j,Ut.NAVIGATION_ABORTED|Ut.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),K(le,F,j)}).catch(Ua)}))}let S=Ea(),R=Ea(),B;function ae(z,Z,re){_e(z);const le=R.list();return le.length?le.forEach(ce=>ce(z,Z,re)):console.error(z),Promise.reject(z)}function ve(){return B&&h.value!==ho?Promise.resolve():new Promise((z,Z)=>{S.add([z,Z])})}function _e(z){return B||(B=!z,k(),S.list().forEach(([Z,re])=>z?re(z):Z()),S.reset()),z}function Be(z,Z,re,le){const{scrollBehavior:ce}=e;if(!il||!ce)return Promise.resolve();const F=!re&&$ke(Iw(z.fullPath,0))||(le||!re)&&history.state&&history.state.scroll||null;return At().then(()=>ce(z,Z,F)).then(j=>j&&Eke(j)).catch(j=>ae(j,z,Z))}const Ee=z=>o.go(z);let Ge;const Ue=new Set,He={currentRoute:h,listening:!0,addRoute:w,removeRoute:$,clearRoutes:t.clearRoutes,hasRoute:C,getRoutes:_,resolve:E,options:e,push:N,replace:I,go:Ee,back:()=>Ee(-1),forward:()=>Ee(1),beforeEach:l.add,beforeResolve:u.add,afterEach:f.add,onError:R.add,isReady:ve,install(z){z.component("RouterLink",tTe),z.component("RouterView",oTe),z.config.globalProperties.$router=He,Object.defineProperty(z.config.globalProperties,"$route",{enumerable:!0,get:()=>W(h)}),il&&!Ge&&h.value===ho&&(Ge=!0,N(o.location).catch(le=>{}));const Z={};for(const le in ho)Object.defineProperty(Z,le,{get:()=>h.value[le],enumerable:!0});z.provide(ym,He),z.provide(Bk,hg(Z)),z.provide(eg,h);const re=z.unmount;Ue.add(z),z.unmount=function(){Ue.delete(z),Ue.size<1&&(p=ho,O&&O(),O=null,h.value=ho,Ge=!1,B=!1),re()}}};function Re(z){return z.reduce((Z,re)=>Z.then(()=>J(re)),Promise.resolve())}return He}const lTe={tooltip:RN};j1.options.instantMove=!0;j1.options.distance=10;function aTe(){return sTe({history:Fke(),routes:Q_e})}const cTe=[aTe],wm=x1(O$);cTe.forEach(e=>{wm.use(e())});Object.entries(lTe).forEach(([e,t])=>{wm.directive(e,t)});wm.mount("#app");