@vitejs/devtools 0.0.0-alpha.9 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DockIcon-Jbdv1CYn.js +1720 -0
- package/dist/DockStandalone-Dd6Dcd5B.js +81 -0
- package/dist/LogItem-CfTxUV6A.js +204 -0
- package/dist/ToastOverlay-BVErqkif.js +1048 -0
- package/dist/ViewBuiltinLogs-DQLxnQ1c.js +427 -0
- package/dist/ViewBuiltinTerminals-B83FB-cT.js +10407 -0
- package/dist/cli-commands-DRp01A04.js +178 -0
- package/dist/cli-commands.js +3 -5
- package/dist/cli.js +3 -6
- package/dist/client/inject.js +170 -18
- package/dist/client/standalone/assets/DockStandalone-B8W-HO8N.js +1 -0
- package/dist/client/standalone/assets/LogItem-B-ayIBi6.js +1 -0
- package/dist/client/standalone/assets/ViewBuiltinLogs-B8M7lPbt.js +1 -0
- package/dist/client/standalone/assets/ViewBuiltinTerminals-Dkd5qdlN.js +36 -0
- package/dist/client/standalone/assets/dist-ZC9UAo6H.js +1 -0
- package/dist/client/standalone/assets/index-6F2y1lxr.css +1 -0
- package/dist/client/standalone/assets/index-odNIfapG.js +4 -0
- package/dist/client/standalone/index.html +5 -3
- package/dist/client/webcomponents.d.ts +21657 -31
- package/dist/client/webcomponents.js +305 -455
- package/dist/config.d.ts +25 -0
- package/dist/config.js +14 -0
- package/dist/dirs.js +7 -3
- package/dist/{dist-2aLfy0Lc.js → dist-3NIYLDlS.js} +2261 -936
- package/dist/index.d.ts +256 -13
- package/dist/index.js +2 -4
- package/dist/plugins-6tW2SoNv.js +2115 -0
- package/dist/popup-EDv_a9nQ.js +358 -0
- package/dist/utils--qjmgani.js +6 -0
- package/package.json +50 -21
- package/dist/cli-commands-CWESTkWI.js +0 -97
- package/dist/client/standalone/assets/index-CXKamp9k.js +0 -7
- package/dist/client/standalone/assets/index-DULlvzQC.css +0 -1
- package/dist/dirs-DcSK9l9L.js +0 -9
- package/dist/index-C-9eMTqf.d.ts +0 -142
- package/dist/plugins-5VE4Mfdt.js +0 -1365
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DockStandalone-B8W-HO8N.js","./LogItem-B-ayIBi6.js","./dist-ZC9UAo6H.js","./ViewBuiltinTerminals-Dkd5qdlN.js","./ViewBuiltinLogs-B8M7lPbt.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{A as e,B as t,C as n,E as r,F as i,G as a,H as o,I as s,K as c,L as l,N as u,O as d,R as f,T as p,U as m,V as h,_ as g,b as _,c as v,d as y,dt as b,f as x,ft as S,g as ee,i as te,k as ne,m as C,n as w,p as T,s as E,t as re,u as D,ut as O,v as k,w as ie,y as ae}from"./dist-ZC9UAo6H.js";import{c as oe,d as A,h as se,l as j,m as ce,s as M,t as le,u as ue}from"./LogItem-B-ayIBi6.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var de=`/.devtools/`,fe=`.connection.json`,pe=`.rpc-dump/index.json`,me=`.client-imports.js`,he=`/.devtools-client-imports.js`,ge=()=>({docksHidden:[],docksCategoriesHidden:[],docksPinned:[],docksCustomOrder:{},showIframeAddressBar:!1,closeOnOutsideClick:!1});function _e(){let e={};function t(t,...n){let r=e[t]||[];for(let e=0,t=r.length;e<t;e++){let t=r[e];t&&t(...n)}}function n(n,...r){t(n,...r),delete e[n]}function r(t,n){return(e[t]||=[]).push(n),()=>{e[t]=e[t]?.filter(e=>n!==e)}}function i(e,t){let n=r(e,((...e)=>(n(),t(...e))));return n}return{_listeners:e,emit:t,emitOnce:n,on:r,once:i}}var ve=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function ye(e=21){let t=``,n=e;for(;n--;)t+=ve[Math.random()*64|0];return t}var be=Symbol.for(`immer-nothing`),xe=Symbol.for(`immer-draftable`),N=Symbol.for(`immer-state`);function P(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var F=Object,Se=F.getPrototypeOf,Ce=`constructor`,we=`prototype`,Te=`configurable`,I=`enumerable`,Ee=`writable`,De=`value`,Oe=e=>!!e&&!!e[N];function L(e){return e?je(e)||Ie(e)||!!e[xe]||!!e[Ce]?.[xe]||Le(e)||Re(e):!1}var ke=F[we][Ce].toString(),Ae=new WeakMap;function je(e){if(!e||!ze(e))return!1;let t=Se(e);if(t===null||t===F[we])return!0;let n=F.hasOwnProperty.call(t,Ce)&&t[Ce];if(n===Object)return!0;if(!B(n))return!1;let r=Ae.get(n);return r===void 0&&(r=Function.toString.call(n),Ae.set(n,r)),r===ke}function R(e,t,n=!0){z(e)===0?(n?Reflect.ownKeys(e):F.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function z(e){let t=e[N];return t?t.type_:Ie(e)?1:Le(e)?2:Re(e)?3:0}var Me=(e,t,n=z(e))=>n===2?e.has(t):F[we].hasOwnProperty.call(e,t),Ne=(e,t,n=z(e))=>n===2?e.get(t):e[t],Pe=(e,t,n,r=z(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Fe(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var Ie=Array.isArray,Le=e=>e instanceof Map,Re=e=>e instanceof Set,ze=e=>typeof e==`object`,B=e=>typeof e==`function`,Be=e=>typeof e==`boolean`;function Ve(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var He=e=>ze(e)?e?.[N]:null,Ue=e=>e.copy_||e.base_,We=e=>e.modified_?e.copy_:e.base_;function Ge(e,t){if(Le(e))return new Map(e);if(Re(e))return new Set(e);if(Ie(e))return Array[we].slice.call(e);let n=je(e);if(t===!0||t===`class_only`&&!n){let t=F.getOwnPropertyDescriptors(e);delete t[N];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[Ee]===!1&&(a[Ee]=!0,a[Te]=!0),(a.get||a.set)&&(t[i]={[Te]:!0,[Ee]:!0,[I]:a[I],[De]:e[i]})}return F.create(Se(e),t)}else{let t=Se(e);if(t!==null&&n)return{...e};let r=F.create(t);return F.assign(r,e)}}function Ke(e,t=!1){return Ye(e)||Oe(e)||!L(e)?e:(z(e)>1&&F.defineProperties(e,{set:Je,add:Je,clear:Je,delete:Je}),F.freeze(e),t&&R(e,(e,t)=>{Ke(t,!0)},!1),e)}function qe(){P(2)}var Je={[De]:qe};function Ye(e){return e===null||!ze(e)?!0:F.isFrozen(e)}var Xe=`MapSet`,Ze=`Patches`,Qe=`ArrayMethods`,V={};function $e(e){let t=V[e];return t||P(0,e),t}var et=e=>!!V[e];function tt(e,t){V[e]||(V[e]=t)}var nt,rt=()=>nt,it=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:et(Xe)?$e(Xe):void 0,arrayMethodsPlugin_:et(Qe)?$e(Qe):void 0});function at(e,t){t&&(e.patchPlugin_=$e(Ze),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ot(e){st(e),e.drafts_.forEach(lt),e.drafts_=null}function st(e){e===nt&&(nt=e.parent_)}var ct=e=>nt=it(nt,e);function lt(e){let t=e[N];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function ut(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[N].modified_&&(ot(t),P(4)),L(e)&&(e=dt(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[N].base_,e,t)}else e=dt(t,n);return ft(t,e,!0),ot(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===be?void 0:e}function dt(e,t){if(Ye(t))return t;let n=t[N];if(!n)return bt(t,e.handledSet_,e);if(!mt(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);vt(n,e)}return n.copy_}function ft(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ke(t,n)}function pt(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var mt=(e,t)=>e.scope_===t,ht=[];function gt(e,t,n,r){let i=Ue(e),a=e.type_;if(r!==void 0&&Ne(i,r,a)===t){Pe(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;R(i,(e,n)=>{if(Oe(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??ht;for(let e of o)Pe(i,e,n,a)}function _t(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!mt(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=We(i);gt(e,i.draft_??i,a,n),vt(i,r)})}function vt(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}pt(e)}}function yt(e,t,n){let{scope_:r}=e;if(Oe(n)){let i=n[N];mt(i,r)&&i.callbacks_.push(function(){Ot(e),gt(e,n,We(i),t)})}else L(n)&&e.callbacks_.push(function(){let i=Ue(e);e.type_===3?i.has(n)&&bt(n,r.handledSet_,r):Ne(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&bt(Ne(e.copy_,t,e.type_),r.handledSet_,r)})}function bt(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Oe(e)||t.has(e)||!L(e)||Ye(e)?e:(t.add(e),R(e,(r,i)=>{if(Oe(i)){let t=i[N];mt(t,n)&&(Pe(e,r,We(t),e.type_),pt(t))}else L(i)&&bt(i,t,n)}),e)}function xt(e,t){let n=Ie(e),r={type_:n?1:0,scope_:t?t.scope_:rt(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=St;n&&(i=[r],a=Ct);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var St={get(e,t){if(t===N)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=Ue(e);if(!Me(i,t,e.type_))return Tt(e,i,t);let a=i[t];if(e.finalized_||!L(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Ve(t))return a;if(a===wt(e.base_,t)){Ot(e);let n=e.type_===1?+t:t,r=At(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in Ue(e)},ownKeys(e){return Reflect.ownKeys(Ue(e))},set(e,t,n){let r=Et(Ue(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=wt(Ue(e),t),i=r?.[N];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Fe(n,r)&&(n!==void 0||Me(e.base_,t,e.type_)))return!0;Ot(e),Dt(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),yt(e,t,n),!0)},deleteProperty(e,t){return Ot(e),wt(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Dt(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=Ue(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Ee]:!0,[Te]:e.type_!==1||t!==`length`,[I]:r[I],[De]:n[t]}},defineProperty(){P(11)},getPrototypeOf(e){return Se(e.base_)},setPrototypeOf(){P(12)}},Ct={};for(let e in St){let t=St[e];Ct[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}Ct.deleteProperty=function(e,t){return Ct.set.call(this,e,t,void 0)},Ct.set=function(e,t,n){return St.set.call(this,e[0],t,n,e[0])};function wt(e,t){let n=e[N];return(n?Ue(n):e)[t]}function Tt(e,t,n){let r=Et(t,n);return r?De in r?r[De]:r.get?.call(e.draft_):void 0}function Et(e,t){if(!(t in e))return;let n=Se(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Se(n)}}function Dt(e){e.modified_||(e.modified_=!0,e.parent_&&Dt(e.parent_))}function Ot(e){e.copy_||=(e.assigned_=new Map,Ge(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var kt=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(B(e)&&!B(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}B(t)||P(6),n!==void 0&&!B(n)&&P(7);let r;if(L(e)){let i=ct(this),a=At(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?ot(i):st(i)}return at(i,n),ut(r,i)}else if(!e||!ze(e)){if(r=t(e),r===void 0&&(r=e),r===be&&(r=void 0),this.autoFreeze_&&Ke(r,!0),n){let t=[],i=[];$e(Ze).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}else P(1,e)},this.produceWithPatches=(e,t)=>{if(B(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},Be(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Be(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Be(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){L(e)||P(8),Oe(e)&&(e=jt(e));let t=ct(this),n=At(t,e,void 0);return n[N].isManual_=!0,st(t),n}finishDraft(e,t){let n=e&&e[N];(!n||!n.isManual_)&&P(9);let{scope_:r}=n;return at(r,t),ut(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=$e(Ze).applyPatches_;return Oe(e)?r(e,t):this.produce(e,e=>r(e,t))}};function At(e,t,n,r){let[i,a]=Le(t)?$e(Xe).proxyMap_(t,n):Re(t)?$e(Xe).proxySet_(t,n):xt(t,n);return(n?.scope_??rt()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?_t(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function jt(e){return Oe(e)||P(10,e),Mt(e)}function Mt(e){if(!L(e)||Ye(e))return e;let t=e[N],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Ge(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Ge(e,!0);return R(n,(e,t)=>{Pe(n,e,Mt(t))},r),t&&(t.finalized_=!1),n}function Nt(){function e(n,r=[]){if(n.key_!==void 0){let e=n.parent_.copy_??n.parent_.base_,t=He(Ne(e,n.key_)),i=Ne(e,n.key_);if(i===void 0||i!==n.draft_&&i!==n.base_&&i!==n.copy_||t!=null&&t.base_!==n.base_)return null;let a=n.parent_.type_===3,o;if(a){let e=n.parent_;o=Array.from(e.drafts_.keys()).indexOf(n.key_)}else o=n.key_;if(!(a&&e.size>o||Me(e,o)))return null;r.push(o)}if(n.parent_)return e(n.parent_,r);r.reverse();try{t(n.copy_,r)}catch{return null}return r}function t(e,t){let n=e;for(let e=0;e<t.length-1;e++){let r=t[e];if(n=Ne(n,r),!ze(n)||n===null)throw Error(`Cannot resolve path at '${t.join(`/`)}'`)}return n}let n=`replace`,r=`remove`;function i(e,t,n){if(e.scope_.processedForPatches_.has(e))return;e.scope_.processedForPatches_.add(e);let{patches_:r,inversePatches_:i}=n;switch(e.type_){case 0:case 2:return o(e,t,r,i);case 1:return a(e,t,r,i);case 3:return s(e,t,r,i)}}function a(e,t,i,a){let{base_:o,assigned_:s}=e,c=e.copy_;c.length<o.length&&([o,c]=[c,o],[i,a]=[a,i]);let l=e.allIndicesReassigned_===!0;for(let e=0;e<o.length;e++){let r=c[e],u=o[e];if((l||s?.get(e.toString()))&&r!==u){let o=r?.[N];if(o&&o.modified_)continue;let s=t.concat([e]);i.push({op:n,path:s,value:d(r)}),a.push({op:n,path:s,value:d(u)})}}for(let e=o.length;e<c.length;e++){let n=t.concat([e]);i.push({op:`add`,path:n,value:d(c[e])})}for(let e=c.length-1;o.length<=e;--e){let n=t.concat([e]);a.push({op:r,path:n})}}function o(e,t,i,a){let{base_:o,copy_:s,type_:c}=e;R(e.assigned_,(e,l)=>{let u=Ne(o,e,c),f=Ne(s,e,c),p=l?Me(o,e)?n:`add`:r;if(u===f&&p===n)return;let m=t.concat(e);i.push(p===r?{op:p,path:m}:{op:p,path:m,value:d(f)}),a.push(p===`add`?{op:r,path:m}:p===r?{op:`add`,path:m,value:d(u)}:{op:n,path:m,value:d(u)})})}function s(e,t,n,i){let{base_:a,copy_:o}=e,s=0;a.forEach(e=>{if(!o.has(e)){let a=t.concat([s]);n.push({op:r,path:a,value:e}),i.unshift({op:`add`,path:a,value:e})}s++}),s=0,o.forEach(e=>{if(!a.has(e)){let a=t.concat([s]);n.push({op:`add`,path:a,value:e}),i.unshift({op:r,path:a,value:e})}s++})}function c(e,t,r){let{patches_:i,inversePatches_:a}=r;i.push({op:n,path:[],value:t===be?void 0:t}),a.push({op:n,path:[],value:e})}function l(e,t){return t.forEach(t=>{let{path:i,op:a}=t,o=e;for(let e=0;e<i.length-1;e++){let t=z(o),n=i[e];typeof n!=`string`&&typeof n!=`number`&&(n=``+n),(t===0||t===1)&&(n===`__proto__`||n===Ce)&&P(19),B(o)&&n===we&&P(19),o=Ne(o,n),ze(o)||P(18,i.join(`/`))}let s=z(o),c=u(t.value),l=i[i.length-1];switch(a){case n:switch(s){case 2:return o.set(l,c);case 3:P(16);default:return o[l]=c}case`add`:switch(s){case 1:return l===`-`?o.push(c):o.splice(l,0,c);case 2:return o.set(l,c);case 3:return o.add(c);default:return o[l]=c}case r:switch(s){case 1:return o.splice(l,1);case 2:return o.delete(l);case 3:return o.delete(t.value);default:return delete o[l]}default:P(17,a)}}),e}function u(e){if(!L(e))return e;if(Ie(e))return e.map(u);if(Le(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,u(t)]));if(Re(e))return new Set(Array.from(e).map(u));let t=Object.create(Se(e));for(let n in e)t[n]=u(e[n]);return Me(e,xe)&&(t[xe]=e[xe]),t}function d(e){return Oe(e)?u(e):e}tt(Ze,{applyPatches_:l,generatePatches_:i,generateReplacementPatches_:c,getPath:e})}var Pt=new kt,Ft=Pt.produce,It=Pt.produceWithPatches.bind(Pt),Lt=Pt.applyPatches.bind(Pt);function Rt(e){let{enablePatches:t=!1}=e,n=_e(),r=e.initialValue,i=new Set;return{on:n.on,value:()=>r,patch:(e,t=ye())=>{i.has(t)||(Nt(),r=Lt(r,e),i.add(t),n.emit(`updated`,r,void 0,t))},mutate:(e,a=ye())=>{if(!i.has(a))if(i.add(a),t){let[t,i]=It(r,e);r=t,n.emit(`updated`,r,i,a)}else r=Ft(r,e),n.emit(`updated`,r,void 0,a)},syncIds:i}}async function zt(e,t){return e.__resolved?e.__resolved:e.setup?(e.__promise??=Promise.resolve(e.setup(t)).then(t=>(e.__resolved=t,e.__promise=void 0,t)),e.__resolved??=await e.__promise):{}}async function Bt(e,t){if(e.handler)return e.handler;let n=await zt(e,t);if(!n.handler)throw Error(`[devtools-rpc] Either handler or setup function must be provided for RPC function "${e.name}"`);return n.handler}var Vt=class{definitions=new Map;functions;_onChanged=[];constructor(e){this.context=e;let t=this.definitions,n=this;this.functions=new Proxy({},{get(e,r){let i=t.get(r);if(i)return Bt(i,n.context)},has(e,n){return t.has(n)},getOwnPropertyDescriptor(e,n){return{value:t.get(n)?.handler,configurable:!0,enumerable:!0}},ownKeys(){return Array.from(t.keys())}})}register(e,t=!1){if(this.definitions.has(e.name)&&!t)throw Error(`RPC function "${e.name}" is already registered`);this.definitions.set(e.name,e),this._onChanged.forEach(t=>t(e.name))}update(e,t=!1){if(!this.definitions.has(e.name)&&!t)throw Error(`RPC function "${e.name}" is not registered. Use register() to add new functions.`);this.definitions.set(e.name,e),this._onChanged.forEach(t=>t(e.name))}onChanged(e){return this._onChanged.push(e),()=>{let t=this._onChanged.indexOf(e);t!==-1&&this._onChanged.splice(t,1)}}async getHandler(e){return await Bt(this.definitions.get(e),this.context)}getSchema(e){let t=this.definitions.get(e);if(!t)throw Error(`RPC function "${String(e)}" is not registered`);return{args:t.args,returns:t.returns}}has(e){return this.definitions.has(e)}get(e){return this.definitions.get(e)}list(){return Array.from(this.definitions.keys())}},Ht=`q`,Ut=`s`;function Wt(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var Gt=Math.random.bind(Math),Kt=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function qt(e=21){let t=``,n=e;for(;n--;)t+=Kt[Gt()*64|0];return t}var Jt=6e4,Yt=e=>e,Xt=Yt,{clearTimeout:Zt,setTimeout:Qt}=globalThis;function $t(e,t){let{post:n,on:r,off:i=()=>{},eventNames:a=[],serialize:o=Yt,deserialize:s=Xt,resolver:c,bind:l=`rpc`,timeout:u=Jt,proxify:d=!0}=t,f=!1,p=new Map,m,h;async function g(e,r,i,a){if(f)throw Error(`[birpc] rpc is closed, cannot call "${e}"`);let s={m:e,a:r,t:Ht};a&&(s.o=!0);let c=async e=>n(o(e));if(i){await c(s);return}if(m)try{await m}finally{m=void 0}let{promise:l,resolve:d,reject:g}=Wt(),_=qt();s.i=_;let v;async function y(n=s){return u>=0&&(v=Qt(()=>{try{if(t.onTimeoutError?.call(h,e,r)!==!0)throw Error(`[birpc] timeout on calling "${e}"`)}catch(e){g(e)}p.delete(_)},u),typeof v==`object`&&(v=v.unref?.())),p.set(_,{resolve:d,reject:g,timeoutId:v,method:e}),await c(n),l}try{t.onRequest?await t.onRequest.call(h,s,y,d):await y()}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}finally{Zt(v),p.delete(_)}return l}let _={$call:(e,...t)=>g(e,t,!1),$callOptional:(e,...t)=>g(e,t,!1,!0),$callEvent:(e,...t)=>g(e,t,!0),$callRaw:e=>g(e.method,e.args,e.event,e.optional),$rejectPendingCalls:y,get $closed(){return f},get $meta(){return t.meta},$close:v,$functions:e};h=d?new Proxy({},{get(t,n){if(Object.prototype.hasOwnProperty.call(_,n))return _[n];if(n===`then`&&!a.includes(`then`)&&!(`then`in e))return;let r=(...e)=>g(n,e,!0);if(a.includes(n))return r.asEvent=r,r;let i=(...e)=>g(n,e,!1);return i.asEvent=r,i}}):_;function v(e){f=!0,p.forEach(({reject:t,method:n})=>{let r=Error(`[birpc] rpc is closed, cannot call "${n}"`);if(e)return e.cause??=r,t(e);t(r)}),p.clear(),i(b)}function y(e){let t=Array.from(p.values()).map(({method:t,reject:n})=>e?e({method:t,reject:n}):n(Error(`[birpc]: rejected pending call "${t}".`)));return p.clear(),t}async function b(r,...i){let a;try{a=s(r)}catch(e){if(t.onGeneralError?.call(h,e)!==!0)throw e;return}if(a.t===Ht){let{m:r,a:s,o:u}=a,d,f,p=await(c?c.call(h,r,e[r]):e[r]);if(u&&(p||=()=>void 0),!p)f=Error(`[birpc] function "${r}" not found`);else try{d=await p.apply(l===`rpc`?h:e,s)}catch(e){f=e}if(a.i){if(f&&t.onFunctionError&&t.onFunctionError.call(h,f,r,s)===!0)return;if(!f)try{await n(o({t:Ut,i:a.i,r:d}),...i);return}catch(e){if(f=e,t.onGeneralError?.call(h,e,r,s)!==!0)throw e}try{await n(o({t:Ut,i:a.i,e:f}),...i)}catch(e){if(t.onGeneralError?.call(h,e,r,s)!==!0)throw e}}}else{let{i:e,r:t,e:n}=a,r=p.get(e);r&&(Zt(r.timeoutId),n?r.reject(n):r.resolve(t)),p.delete(e)}}return m=r(b),h}function en(e,t){let{preset:n,rpcOptions:r={}}=t;return $t(e,{...n,timeout:-1,...r,proxify:!1})}function tn(e){return e}var nn=-1,rn=0,an=1,on=2,sn=3,cn=4,ln=5,un=6,dn=7,fn=8,pn=typeof self==`object`?self:globalThis,mn=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case rn:case nn:return n(o,i);case an:{let e=n([],i);for(let t of o)e.push(r(t));return e}case on:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case sn:return n(new Date(o),i);case cn:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case ln:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case un:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case dn:{let{name:e,message:t}=o;return n(new pn[e](t),i)}case fn:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i)}return n(new pn[a](o),i)};return r},hn=e=>mn(new Map,e)(0),gn=``,{toString:_n}={},{keys:vn}=Object,yn=e=>{let t=typeof e;if(t!==`object`||!e)return[rn,t];let n=_n.call(e).slice(8,-1);switch(n){case`Array`:return[an,gn];case`Object`:return[on,gn];case`Date`:return[sn,gn];case`RegExp`:return[cn,gn];case`Map`:return[ln,gn];case`Set`:return[un,gn]}return n.includes(`Array`)?[an,n]:n.includes(`Error`)?[dn,n]:[on,n]},bn=([e,t])=>e===rn&&(t===`function`||t===`symbol`),xn=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=yn(r);switch(o){case rn:{let t=r;switch(s){case`bigint`:o=fn,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+s);t=null;break;case`undefined`:return i([nn],r)}return i([o,t],r)}case an:{if(s)return i([s,[...r]],r);let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case on:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of vn(r))(e||!bn(yn(r[t])))&&n.push([a(t),a(r[t])]);return c}case sn:return i([o,r.toISOString()],r);case cn:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case ln:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(bn(yn(n))||bn(yn(i))))&&t.push([a(n),a(i)]);return n}case un:{let t=[],n=i([o,t],r);for(let n of r)(e||!bn(yn(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},Sn=(e,{json:t,lossy:n}={})=>{let r=[];return xn(!(t||n),!!t,new Map,r)(e),r},{parse:Cn,stringify:wn}=JSON,Tn={json:!0,lossy:!0},En=e=>hn(Cn(e)),Dn=e=>wn(Sn(e,Tn)),On=En;function kn(){}var An=tn(e=>{let t=e.url;e.authId&&(t=`${t}?vite_devtools_auth_id=${encodeURIComponent(e.authId)}`);let n=new WebSocket(t),{onConnected:r=kn,onError:i=kn,onDisconnected:a=kn}=e;return n.addEventListener(`open`,e=>{r(e)}),n.addEventListener(`error`,e=>{i(e instanceof Error?e:Error(e.type))}),n.addEventListener(`close`,e=>{a(e)}),{on:e=>{n.addEventListener(`message`,t=>{e(t.data)})},post:e=>{if(n.readyState===WebSocket.OPEN)n.send(e);else{function t(){n.send(e),n.removeEventListener(`open`,t)}n.addEventListener(`open`,t)}},serialize:Dn,deserialize:On}});function jn(e){let t=new Map,n=e.connectionMeta.backend===`static`;e.client.register({name:`devtoolskit:internal:rpc:client-state:updated`,type:`event`,handler:(e,n,r)=>{let i=t.get(e);!i||i.syncIds.has(r)||i.mutate(()=>n,r)}}),e.client.register({name:`devtoolskit:internal:rpc:client-state:patch`,type:`event`,handler:(e,n,r)=>{let i=t.get(e);!i||i.syncIds.has(r)||i.patch(n,r)}});function r(t,r){let i=[];return i.push(r.on(`updated`,(r,i,a)=>{n||(i?e.callEvent(`devtoolskit:internal:rpc:server-state:patch`,t,i,a):e.callEvent(`devtoolskit:internal:rpc:server-state:set`,t,r,a))})),()=>{for(let e of i)e()}}return{keys:()=>Array.from(t.keys()),get:async(i,a)=>{if(t.has(i))return t.get(i);let o=Rt({initialValue:a?.initialValue,enablePatches:!1});async function s(){if(n||e.callEvent(`devtoolskit:internal:rpc:server-state:subscribe`,i),a?.initialValue!==void 0)return t.set(i,o),e.call(`devtoolskit:internal:rpc:server-state:get`,i).then(e=>{o.mutate(()=>e)}).catch(e=>{console.error(`Error getting server state`,e)}),r(i,o),o;{let n=await e.call(`devtoolskit:internal:rpc:server-state:get`,i);return o.mutate(()=>n),t.set(i,o),r(i,o),o}}return new Promise(t=>{e.isTrusted?s().then(t):(t(o),e.events.on(`rpc:is-trusted:updated`,e=>{e&&s()}))})}}}function Mn(e){return typeof e==`string`?`'${e}'`:new Nn().serialize(e)}var Nn=function(){class e{#e=new Map;compare(e,t){let n=typeof e,r=typeof t;return n===`string`&&r===`string`?e.localeCompare(t):n===`number`&&r===`number`?e-t:String.prototype.localeCompare.call(this.serialize(e,!0),this.serialize(t,!0))}serialize(e,t){if(e===null)return`null`;switch(typeof e){case`string`:return t?e:`'${e}'`;case`bigint`:return`${e}n`;case`object`:return this.$object(e);case`function`:return this.$function(e)}return String(e)}serializeObject(e){let t=Object.prototype.toString.call(e);if(t!==`[object Object]`)return this.serializeBuiltInType(t.length<10?`unknown:${t}`:t.slice(8,-1),e);let n=e.constructor,r=n===Object||n===void 0?``:n.name;if(r!==``&&globalThis[r]===n)return this.serializeBuiltInType(r,e);if(typeof e.toJSON==`function`){let t=e.toJSON();return r+(typeof t==`object`&&t?this.$object(t):`(${this.serialize(t)})`)}return this.serializeObjectEntries(r,Object.entries(e))}serializeBuiltInType(e,t){let n=this[`$`+e];if(n)return n.call(this,t);if(typeof t?.entries==`function`)return this.serializeObjectEntries(e,t.entries());throw Error(`Cannot serialize ${e}`)}serializeObjectEntries(e,t){let n=Array.from(t).sort((e,t)=>this.compare(e[0],t[0])),r=`${e}{`;for(let e=0;e<n.length;e++){let[t,i]=n[e];r+=`${this.serialize(t,!0)}:${this.serialize(i)}`,e<n.length-1&&(r+=`,`)}return r+`}`}$object(e){let t=this.#e.get(e);return t===void 0&&(this.#e.set(e,`#${this.#e.size}`),t=this.serializeObject(e),this.#e.set(e,t)),t}$function(e){let t=Function.prototype.toString.call(e);return t.slice(-15)===`[native code] }`?`${e.name||``}()[native]`:`${e.name}(${e.length})${t.replace(/\s*\n\s*/g,``)}`}$Array(e){let t=`[`;for(let n=0;n<e.length;n++)t+=this.serialize(e[n]),n<e.length-1&&(t+=`,`);return t+`]`}$Date(e){try{return`Date(${e.toISOString()})`}catch{return`Date(null)`}}$ArrayBuffer(e){return`ArrayBuffer[${new Uint8Array(e).join(`,`)}]`}$Set(e){return`Set${this.$Array(Array.from(e).sort((e,t)=>this.compare(e,t)))}`}$Map(e){return this.serializeObjectEntries(`Map`,e.entries())}}for(let t of[`Error`,`RegExp`,`URL`])e.prototype[`$`+t]=function(e){return`${t}(${e})`};for(let t of[`Int8Array`,`Uint8Array`,`Uint8ClampedArray`,`Int16Array`,`Uint16Array`,`Int32Array`,`Uint32Array`,`Float32Array`,`Float64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`,`)}]`};for(let t of[`BigInt64Array`,`BigUint64Array`])e.prototype[`$`+t]=function(e){return`${t}[${e.join(`n,`)}${e.length>0?`n`:``}]`};return e}(),Pn=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],Fn=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],In=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,Ln=[],Rn=class{_data=new zn;_hash=new zn([...Pn]);_nDataBytes=0;_minBufferSize=0;finalize(e){e&&this._append(e);let t=this._nDataBytes*8,n=this._data.sigBytes*8;return this._data.words[n>>>5]|=128<<24-n%32,this._data.words[(n+64>>>9<<4)+14]=Math.floor(t/4294967296),this._data.words[(n+64>>>9<<4)+15]=t,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(e,t){let n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7];for(let n=0;n<64;n++){if(n<16)Ln[n]=e[t+n]|0;else{let e=Ln[n-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,r=Ln[n-2],i=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;Ln[n]=t+Ln[n-7]+i+Ln[n-16]}let d=s&c^~s&l,f=r&i^r&a^i&a,p=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),m=(s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25),h=u+m+d+Fn[n]+Ln[n],g=p+f;u=l,l=c,c=s,s=o+h|0,o=a,a=i,i=r,r=h+g|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+l|0,n[7]=n[7]+u|0}_append(e){typeof e==`string`&&(e=zn.fromUtf8(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(e){let t,n=this._data.sigBytes/64;n=e?Math.ceil(n):Math.max((n|0)-this._minBufferSize,0);let r=n*16,i=Math.min(r*4,this._data.sigBytes);if(r){for(let e=0;e<r;e+=16)this._doProcessBlock(this._data.words,e);t=this._data.words.splice(0,r),this._data.sigBytes-=i}return new zn(t,i)}},zn=class e{words;sigBytes;constructor(e,t){e=this.words=e||[],this.sigBytes=t===void 0?e.length*4:t}static fromUtf8(t){let n=unescape(encodeURIComponent(t)),r=n.length,i=[];for(let e=0;e<r;e++)i[e>>>2]|=(n.charCodeAt(e)&255)<<24-e%4*8;return new e(i,r)}toBase64(){let e=[];for(let t=0;t<this.sigBytes;t+=3){let n=this.words[t>>>2]>>>24-t%4*8&255,r=this.words[t+1>>>2]>>>24-(t+1)%4*8&255,i=this.words[t+2>>>2]>>>24-(t+2)%4*8&255,a=n<<16|r<<8|i;for(let n=0;n<4&&t*8+n*6<this.sigBytes*8;n++)e.push(In.charAt(a>>>6*(3-n)&63))}return e.join(``)}concat(e){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let t=0;t<e.sigBytes;t++){let n=e.words[t>>>2]>>>24-t%4*8&255;this.words[this.sigBytes+t>>>2]|=n<<24-(this.sigBytes+t)%4*8}else for(let t=0;t<e.sigBytes;t+=4)this.words[this.sigBytes+t>>>2]=e.words[t>>>2];this.sigBytes+=e.sigBytes}};function Bn(e){return new Rn().finalize(e).toBase64()}function Vn(e){return Bn(Mn(e))}function Hn(e){return typeof e==`object`&&!!e&&e.type===`static`&&typeof e.path==`string`}function Un(e){return typeof e==`object`&&!!e&&e.type===`query`&&typeof e.records==`object`&&e.records!==null}function Wn(e){return typeof e==`object`&&!!e&&(`output`in e||`error`in e)}function Gn(e){if(e.error){let t=Error(e.error.message);throw t.name=e.error.name,t}return e.output}function Kn(e,t){let n=new Map,r=new Map;async function i(e){n.has(e.path)||n.set(e.path,t(e.path));let r=await n.get(e.path);return Wn(r)?Gn(r):r}async function a(e){return r.has(e)||r.set(e,t(e)),await r.get(e)}async function o(t,n){if(!(t in e))throw Error(`[devtools-rpc] Function "${t}" not found in dump store`);let r=e[t];if(Hn(r)){if(n.length>0)throw Error(`[devtools-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`);return await i(r)}if(Un(r)){let e=Vn(n),i=r.records[e];if(i)return Gn(await a(i));if(r.fallback)return Gn(await a(r.fallback));throw Error(`[devtools-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}if(n.length===0)return r;throw Error(`[devtools-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`)}return{call:async(e,t)=>await o(e,t),callOptional:async(t,n)=>{if(t in e)return await o(t,n)},callEvent:async(e,t)=>{}}}async function qn(e){let t=Kn(await e.fetchJsonFromBases(pe),e.fetchJsonFromBases);return{isTrusted:!0,requestTrust:async()=>!0,ensureTrusted:async()=>!0,call:(...e)=>t.call(e[0],e.slice(1)),callEvent:(...e)=>t.callEvent(e[0],e.slice(1)),callOptional:(...e)=>t.callOptional(e[0],e.slice(1))}}var Jn=``,Yn=`?`,Xn=`major`,H=`model`,U=`name`,W=`type`,G=`vendor`,K=`version`,Zn=`architecture`,Qn=`console`,q=`mobile`,J=`tablet`,Y=`smarttv`,$n=`wearable`,er=`embedded`,tr=500,nr=`Amazon`,rr=`Apple`,ir=`ASUS`,ar=`BlackBerry`,or=`Browser`,sr=`Chrome`,cr=`Edge`,lr=`Firefox`,ur=`Google`,dr=`Huawei`,fr=`LG`,pr=`Microsoft`,mr=`Motorola`,hr=`Opera`,gr=`Samsung`,_r=`Sharp`,vr=`Sony`,yr=`Xiaomi`,br=`Zebra`,xr=`Facebook`,Sr=`Chromium OS`,Cr=`Mac OS`;function wr(e,t={}){let n={};for(let r of Object.keys(e)){let i=t[r];i&&i.length%2==0?n[r]=[...i,...e[r]]:n[r]=e[r]}return n}function Tr(e){let t={};for(let n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t}function Er(e){return e.toLowerCase()}function Dr(e,t){return typeof e==`string`?Er(t).includes(Er(e)):!1}function Or(e){return typeof e==`string`?e.replace(/[^\d.]/g,Jn).split(`.`)[0]:void 0}function kr(e,t){let n=e.replace(/^\s+/,Jn);return t===void 0?n:n.substring(0,t)}function Ar(e,t,n){let r=n??{};for(let n=0;n<t.length;n+=2){let i=t[n],a=t[n+1];for(let t=0;t<i.length;t++){let n=i[t];if(!n)break;let o=n.exec(e);if(o){for(let e=0;e<a.length;e++){let t=o[e+1],n=a[e];if(Array.isArray(n)){let e=n[0],i=n.length;if(i===2){let i=n[1];typeof i==`function`?r[e]=i(t,void 0,r):r[e]=i}else if(i===3){let i=n[1],a=n[2];typeof i==`function`&&!(`exec`in i)&&!(`test`in i)?r[e]=t?i(t,a,r):void 0:r[e]=t?t.replace(i,a):void 0}else i===4&&(r[e]=t?n[3](t.replace(n[1],n[2]),void 0,r):void 0)}else r[n]=t||void 0}return r}}}return r}function jr(e,t){for(let n in t){let r=t[n];if(Array.isArray(r)&&r.length>0){for(let t=0;t<r.length;t++)if(Dr(r[t],e))return n===Yn?void 0:n}else if(Dr(r,e))return n===Yn?void 0:n}return e}var Mr={"1.0":`/8`,"1.2":`/1`,"1.3":`/3`,"2.0":`/412`,"2.0.2":`/416`,"2.0.3":`/417`,"2.0.4":`/419`,"?":`/`},Nr={ME:`4.90`,"NT 3.11":`NT3.51`,"NT 4.0":`NT4.0`,2e3:`NT 5.0`,XP:[`NT 5.1`,`NT 5.2`],Vista:`NT 6.0`,7:`NT 6.1`,8:`NT 6.2`,"8.1":`NT 6.3`,10:[`NT 6.4`,`NT 10.0`],RT:`ARM`},Pr={browser:[[/\b(?:crmo|crios)\/([\w.]+)/i],[K,[U,`Chrome`]],[/edg(?:e|ios|a)?\/([\w.]+)/i],[K,[U,`Edge`]],[/(opera mini)\/([-\w.]+)/i,/(opera [mobileta]{3,6})\b.+version\/([-\w.]+)/i,/(opera)(?:.+version\/|[/ ]+)([\w.]+)/i],[U,K],[/opios[/ ]+([\w.]+)/i],[K,[U,`${hr} Mini`]],[/\bop(?:rg)?x\/([\w.]+)/i],[K,[U,`${hr} GX`]],[/\bopr\/([\w.]+)/i],[K,[U,hr]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[/ ]?([\w.]+)/i],[K,[U,`Baidu`]],[/(kindle)\/([\w.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[/ ]?([\w.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[/ ]?([\w.]*)/i,/(?:ms|\()(ie) ([\w.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w.]+)/i,/(heytap|ovi)browser\/([\d.]+)/i,/(weibo)__([\d.]+)/i],[U,K],[/\bddg\/([\w.]+)/i],[K,[U,`DuckDuckGo`]],[/(?:\buc? ?browser|juc.+ucweb)[/ ]?([\w.]+)/i],[K,[U,`UC${or}`]],[/microm.+\bqbcore\/([\w.]+)/i,/\bqbcore\/([\w.]+).+microm/i,/micromessenger\/([\w.]+)/i],[K,[U,`WeChat`]],[/konqueror\/([\w.]+)/i],[K,[U,`Konqueror`]],[/trident.+rv[: ]([\w.]{1,9})\b.+like gecko/i],[K,[U,`IE`]],[/ya(?:search)?browser\/([\w.]+)/i],[K,[U,`Yandex`]],[/slbrowser\/([\w.]+)/i],[K,[U,`Smart Lenovo ${or}`]],[/(avast|avg)\/([\w.]+)/i],[[U,/(.+)/,`$1 Secure ${or}`],K],[/\bfocus\/([\w.]+)/i],[K,[U,`${lr} Focus`]],[/\bopt\/([\w.]+)/i],[K,[U,`${hr} Touch`]],[/coc_coc\w+\/([\w.]+)/i],[K,[U,`Coc Coc`]],[/dolfin\/([\w.]+)/i],[K,[U,`Dolphin`]],[/coast\/([\w.]+)/i],[K,[U,`${hr} Coast`]],[/miuibrowser\/([\w.]+)/i],[K,[U,`MIUI ${or}`]],[/fxios\/([-\w.]+)/i],[K,[U,lr]],[/\bqihu|(qi?ho{0,2}|360)browser/i],[[U,`360 ${or}`]],[/(oculus|sailfish|huawei|vivo)browser\/([\w.]+)/i],[[U,/(.+)/,`$1 ${or}`],K],[/samsungbrowser\/([\w.]+)/i],[K,[U,`${gr} Internet`]],[/(comodo_dragon)\/([\w.]+)/i],[[U,/_/g,` `],K],[/metasr[/ ]?([\d.]+)/i],[K,[U,`Sogou Explorer`]],[/(sogou)mo\w+\/([\d.]+)/i],[[U,`Sogou Mobile`],K],[/(electron)\/([\w.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w.]+))/i,/m?(qqbrowser|2345Explorer)[/ ]?([\w.]+)/i],[U,K],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[U],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w.]+);)/i],[[U,xr],K],[/(Klarna)\/([\w.]+)/i,/(kakao(?:talk|story))[/ ]([\w.]+)/i,/(naver)\(.*?(\d+\.[\w.]+).*\)/i,/safari (line)\/([\w.]+)/i,/\b(line)\/([\w.]+)\/iab/i,/(alipay)client\/([\w.]+)/i,/(twitter)(?:and| f.+e\/([\w.]+))/i,/(chromium|instagram|snapchat)[/ ]([-\w.]+)/i],[U,K],[/\bgsa\/([\w.]+) .*safari\//i],[K,[U,`GSA`]],[/musical_ly(?:.+app_?version\/|_)([\w.]+)/i],[K,[U,`TikTok`]],[/headlesschrome(?:\/([\w.]+)| )/i],[K,[U,`${sr} Headless`]],[/ wv\).+(chrome)\/([\w.]+)/i],[[U,`${sr} WebView`],K],[/droid.+ version\/([\w.]+)\b.+(?:mobile safari|safari)/i],[K,[U,`Android ${or}`]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w.]+)/i],[U,K],[/version\/([\w.,]+) .*mobile\/\w+ (safari)/i],[K,[U,`Mobile Safari`]],[/version\/([\w(.|,)]+) .*(mobile ?safari|safari)/i],[K,U],[/webkit.+?(mobile ?safari|safari)(\/[\w.]+)/i],[U,[K,jr,Mr]],[/(webkit|khtml)\/([\w.]+)/i],[U,K],[/(navigator|netscape\d?)\/([-\w.]+)/i],[[U,`Netscape`],K],[/mobile vr; rv:([\w.]+)\).+firefox/i],[K,[U,`${lr} Reality`]],[/ekiohf.+(flow)\/([\w.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[/ ]?([\w.+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w.]+)$/i,/(firefox)\/([\w.]+)/i,/(mozilla)\/([\w.]+) .+rv:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[. ]?browser)[-/ ]?v?([\w.]+)/i,/(links) \(([\w.]+)/i,/panasonic;(viera)/i],[U,K],[/(cobalt)\/([\w.]+)/i],[U,[K,/master.|lts./,``]]],cpu:[[/(amd|x(?:(?:86|64)[-_])?|wow|win)64[;)]/i],[[Zn,`amd64`]],[/(ia32(?=;))/i],[[Zn,Er]],[/((?:i[346]|x)86)[;)]/i],[[Zn,`ia32`]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[Zn,`arm64`]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[Zn,`armhf`]],[/windows (ce|mobile); ppc;/i],[[Zn,`arm`]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[Zn,/ower/,Jn,Er]],[/(sun4\w)[;)]/i],[[Zn,`sparc`]],[/(avr32|ia64(?=;)|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[Zn,Er]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[H,[G,gr],[W,J]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?\d+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[H,[G,gr],[W,q]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[H,[G,rr],[W,q]],[/\((ipad);[-\w),; ]+apple/i,/applecoremedia\/[\w.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[H,[G,rr],[W,J]],[/(macintosh);/i],[H,[G,rr]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[H,[G,_r],[W,q]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[H,[G,dr],[W,J]],[/(?:huawei|honor)([-\w ]+)[;)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][0-359c][adn]?)\b(?!.+d\/s)/i],[H,[G,dr],[W,q]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?[\w ]+)(?: bui|\))/i,/oid[^)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?\d?\w?[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[H,/_/g,` `],[G,yr],[W,q]],[/oid[^)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?pad[\w ]+)(?: bui|\))/i],[[H,/_/g,` `],[G,yr],[W,J]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[H,[G,`OPPO`],[W,q]],[/\b(opd2\d{3}a?) bui/i],[H,[G,`OPPO`],[W,J]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[H,[G,`Vivo`],[W,q]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[H,[G,`Realme`],[W,q]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w() ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[H,[G,mr],[W,q]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[H,[G,mr],[W,J]],[/((?=lg)?[vl]k-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[H,[G,fr],[W,J]],[/(lm(?:-?f100[nv]?|-[\w.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?(\w+) bui/i],[H,[G,fr],[W,q]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab[\w ]+|yt[-\w]{6}|tb[-\w]{6})/i],[H,[G,`Lenovo`],[W,J]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w.]*)/i],[[H,/_/g,` `],[G,`Nokia`],[W,q]],[/(pixel c)\b/i],[H,[G,ur],[W,J]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[H,[G,ur],[W,q]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]?\d\.))/i],[H,[G,vr],[W,q]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[H,`Xperia Tablet`],[G,vr],[W,J]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[H,[G,`OnePlus`],[W,q]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[H,[G,nr],[W,J]],[/((?:sd|kf)[0349hijor-uw]+)( bui|\)).+silk\//i],[[H,/(.+)/g,`Fire Phone $1`],[G,nr],[W,q]],[/(playbook);[-\w),; ]+(rim)/i],[H,G,[W,J]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[H,[G,ar],[W,q]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[H,[G,ir],[W,J]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[H,[G,ir],[W,q]],[/(nexus 9)/i],[H,[G,`HTC`],[W,J]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!;|\.)|sony(?!-bra))[-_ ]?([-\w]*)/i],[G,[H,/_/g,` `],[W,q]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[H,[G,`Acer`],[W,J]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[H,[G,`Meizu`],[W,q]],[/; ((?:power )?armor[\w ]{0,8})(?: bui|\))/i],[H,[G,`Ulefone`],[W,q]],[/(blackberry|benq|palm(?=-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[G,H,[W,q]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[G,H,[W,J]],[/(surface duo)/i],[H,[G,pr],[W,J]],[/droid [\d.]+; (fp\du?)(?: b|\))/i],[H,[G,`Fairphone`],[W,q]],[/(u304aa)/i],[H,[G,`AT&T`],[W,q]],[/\bsie-(\w*)/i],[H,[G,`Siemens`],[W,q]],[/\b(rct\w+) b/i],[H,[G,`RCA`],[W,J]],[/\b(venue[\d ]{2,7}) b/i],[H,[G,`Dell`],[W,J]],[/\b(q(?:mv|ta)\w+) b/i],[H,[G,`Verizon`],[W,J]],[/\b(?:barnes[& ]+noble |bn[rt])([\w+ ]*) b/i],[H,[G,`Barnes & Noble`],[W,J]],[/\b(tm\d{3}\w+) b/i],[H,[G,`NuVision`],[W,J]],[/\b(k88) b/i],[H,[G,`ZTE`],[W,J]],[/\b(nx\d{3}j) b/i],[H,[G,`ZTE`],[W,q]],[/\b(gen\d{3}) b.+49h/i],[H,[G,`Swiss`],[W,q]],[/\b(zur\d{3}) b/i],[H,[G,`Swiss`],[W,J]],[/\b((zeki)?tb.*\b) b/i],[H,[G,`Zeki`],[W,J]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[G,`Dragon Touch`],H,[W,J]],[/\b(ns-?\w{0,9}) b/i],[H,[G,`Insignia`],[W,J]],[/\b((nxa|next)-?\w{0,9}) b/i],[H,[G,`NextBook`],[W,J]],[/\b(xtreme_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[G,`Voice`],H,[W,q]],[/\b(lvtel-)?(v1[12]) b/i],[[G,`LvTel`],H,[W,q]],[/\b(ph-1) /i],[H,[G,`Essential`],[W,q]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[H,[G,`Envizen`],[W,J]],[/\b(trio[-\w. ]+) b/i],[H,[G,`MachSpeed`],[W,J]],[/\btu_(1491) b/i],[H,[G,`Rotor`],[W,J]],[/(shield[\w ]+) b/i],[H,[G,`Nvidia`],[W,J]],[/(sprint) (\w+)/i],[G,H,[W,q]],[/(kin\.[onetw]{3})/i],[[H,/\./g,` `],[G,pr],[W,q]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[H,[G,br],[W,J]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[H,[G,br],[W,q]],[/smart-tv.+(samsung)/i],[G,[W,Y]],[/hbbtv.+maple;(\d+)/i],[[H,/^/,`SmartTV`],[G,gr],[W,Y]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[G,fr],[W,Y]],[/(apple) ?tv/i],[G,[H,`${rr} TV`],[W,Y]],[/crkey/i],[[H,`${sr}cast`],[G,ur],[W,Y]],[/droid.+aft(\w+)( bui|\))/i],[H,[G,nr],[W,Y]],[/\(dtv[);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[H,[G,_r],[W,Y]],[/(bravia[\w ]+)( bui|\))/i],[H,[G,vr],[W,Y]],[/(mitv-\w{5}) bui/i],[H,[G,yr],[W,Y]],[/Hbbtv.*(technisat) (.*);/i],[G,H,[W,Y]],[/\b(roku)[\dx]*[)/]((?:dvp-)?[\d.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w+ ]*; *(\w[^;]*);([^;]*)/i],[[G,kr],[H,kr],[W,Y]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[W,Y]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[G,H,[W,Qn]],[/droid.+; (shield) bui/i],[H,[G,`Nvidia`],[W,Qn]],[/(playstation [345portablevi]+)/i],[H,[G,vr],[W,Qn]],[/\b(xbox(?: one)?(?!; xbox))[); ]/i],[H,[G,pr],[W,Qn]],[/((pebble))app/i],[G,H,[W,$n]],[/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i],[H,[G,rr],[W,$n]],[/droid.+; (glass) \d/i],[H,[G,ur],[W,$n]],[/droid.+; (wt63?0{2,3})\)/i],[H,[G,br],[W,$n]],[/(quest( \d| pro)?)/i],[H,[G,xr],[W,$n]],[/(tesla)(?: qtcarbrowser|\/[-\w.]+)/i],[G,[W,er]],[/(aeobc)\b/i],[H,[G,nr],[W,er]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[H,[W,q]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[H,[W,J]],[/\b((tablet|tab)[;/]|focus\/\d(?!.+mobile))/i],[[W,J]],[/(phone|mobile(?:[;/]| [ \w/.]*safari)|pda(?=.+windows ce))/i],[[W,q]],[/(android[-\w. ]{0,9});.+buil/i],[H,[G,`Generic`]]],engine:[[/windows.+ edge\/([\w.]+)/i],[K,[U,`${cr}HTML`]],[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i],[K,[U,`Blink`]],[/(presto)\/([\w.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w.]+)/i,/ekioh(flow)\/([\w.]+)/i,/(khtml|tasman|links)[/ ]\(?([\w.]+)/i,/(icab)[/ ]([23]\.[\d.]+)/i,/\b(libweb)/i],[U,K],[/rv:([\w.]{1,9})\b.+(gecko)/i],[K,U]],os:[[/microsoft (windows) (vista|xp)/i],[U,K],[/(windows (?:phone(?: os)?|mobile))[/ ]?([.\w ]*)/i],[U,[K,jr,Nr]],[/windows nt 6\.2; (arm)/i,/windows[/ ]?([ntce\d. ]+\w)(?!.+xbox)/i,/(?:win(?=[39n])|win 9x )([nt\d.]+)/i],[[K,jr,Nr],[U,`Windows`]],[/ip[honead]{2,4}\b(?:.*os (\w+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[/ ])([\d.]+)/i,/cfnetwork\/.+darwin/i],[[K,/_/g,`.`],[U,`iOS`]],[/(mac os x) ?([\w. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[U,Cr],[K,/_/g,`.`]],[/droid ([\w.]+)\b.+(android[- ]x86|harmonyos)/i],[K,U],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-/ ]?([\w.]*)/i,/(blackberry)\w*\/([\w.]*)/i,/(tizen|kaios)[/ ]([\w.]+)/i,/\((series40);/i],[U,K],[/\(bb(10);/i],[K,[U,ar]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-/ ]?([\w.]*)/i],[K,[U,`Symbian`]],[/mozilla\/[\d.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w.]+)/i],[K,[U,`${lr} OS`]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w.]+)/i],[K,[U,`webOS`]],[/watch(?: ?os[,/]|\d,\d\/)([\d.]+)/i],[K,[U,`watchOS`]],[/crkey\/([\d.]+)/i],[K,[U,`${sr}cast`]],[/(cros) \w+(?:\)| ([\w.]+)\b)/i],[[U,Sr],K],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w.]*)/i,/(mint)[/() ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-/ ]?(?!chrom|package)([-\w.]*)/i,/(hurd|linux) ?([\w.]*)/i,/(gnu) ?([\w.]*)/i,/\b([-e-hrntopcs]{0,5}bsd|dragonfly)[/ ]?(?!amd|[ix346]{1,2}86)([\w.]*)/i,/(haiku) (\w+)/i],[U,K],[/(sunos) ?([\w.]*)/i],[[U,`Solaris`],K],[/((?:open)?solaris)[-/ ]?([\w.]*)/i,/(aix) ((\d)(?=[.) ])[\w.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w.]*)/i],[U,K]]};function Fr(e){return typeof e==`object`&&!!e}Object.freeze(Tr([U,K,Xn])),Object.freeze(Tr([Zn])),Object.freeze(Tr([H,G,W,Qn,q,Y,J,$n,er])),Object.freeze(Tr([U,K])),Object.freeze(Tr([U,K]));function Ir(){if(!(typeof window>`u`||!window.navigator))return window.navigator}function Lr(e){return e.length>tr?kr(e,tr):e}function Rr(e){if(typeof e==`string`)return{ua:Lr(e),isSelfNavigator:!1,navigator:void 0,userAgentData:void 0,regexMap:Pr};let t=Ir(),n=Lr(t&&t.userAgent?t.userAgent:Jn);return{ua:n,isSelfNavigator:!!(t&&t.userAgent===n),navigator:t,userAgentData:t?.userAgentData,regexMap:Pr}}function zr(e,t){if(!t&&!Fr(e))return Rr(e);let n=Ir(),r=Fr(e)?void 0:e,i=Fr(e)?e:t,a=Lr(r||(n&&n.userAgent?n.userAgent:Jn)),o=n?.userAgentData;return{ua:a,isSelfNavigator:!!(n&&n.userAgent===a),navigator:n,userAgentData:o,regexMap:i?wr(Pr,i):Pr}}function Br(e){let t={name:void 0,version:void 0,major:void 0};return Ar(e.ua,e.regexMap.browser,t),t.major=Or(t.version),e.isSelfNavigator&&e.navigator?.brave&&typeof e.navigator.brave.isBrave==`function`&&(t.name=`Brave`),t}function Vr(e){let t={architecture:void 0};return Ar(e.ua,e.regexMap.cpu,t),t}function Hr(e){let t={vendor:void 0,model:void 0,type:void 0};return Ar(e.ua,e.regexMap.device,t),e.isSelfNavigator&&!t.type&&e.userAgentData?.mobile&&(t.type=q),e.isSelfNavigator&&t.model===`Macintosh`&&e.navigator&&e.navigator.standalone!==void 0&&e.navigator.maxTouchPoints&&e.navigator.maxTouchPoints>2&&(t.model=`iPad`,t.type=J),t}function Ur(e){let t={name:void 0,version:void 0};return Ar(e.ua,e.regexMap.engine,t),t}function Wr(e){let t={name:void 0,version:void 0};return Ar(e.ua,e.regexMap.os,t),e.isSelfNavigator&&!t.name&&e.userAgentData?.platform&&e.userAgentData.platform!==`Unknown`&&(t.name=e.userAgentData.platform.replace(/chrome os/i,Sr).replace(/macos/i,Cr)),t}function Gr(e,t){let n,r,i,a,o,s,c=()=>n||=zr(e,t);return{get ua(){return c().ua},get browser(){return r||=Br(c()),r},get engine(){return i||=Ur(c()),i},get os(){return a||=Wr(c()),a},get device(){return o||=Hr(c()),o},get cpu(){return s||=Vr(c()),s}}}function Kr(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function qr(e){return e==null?!1:`${+e}`==`${e}`}function Jr(e){let{authId:t,connectionMeta:n,events:r,clientRpc:i,rpcOptions:a={},wsOptions:o={}}=e,s=!1,c=Kr(),l=qr(n.websocket)?`${location.protocol.replace(`http`,`ws`)}//${location.hostname}:${n.websocket}`:n.websocket,u=en(i.functions,{preset:An({url:l,authId:t,...o}),rpcOptions:a});async function d(){if(s)return!0;let e=Gr(navigator.userAgent),n=[e.browser.name,e.browser.version,`|`,e.os.name,e.os.version,e.device.type].filter(e=>e).join(` `),i=await u.$call(`vite:anonymous:auth`,{authId:t,ua:n,origin:location.origin});return s=i.isTrusted,c.resolve(s),r.emit(`rpc:is-trusted:updated`,s),i.isTrusted}async function f(e=6e4){if(s&&c.resolve(!0),e<=0)return c.promise;let t=()=>{};return await Promise.race([c.promise.then(t),new Promise((n,r)=>{let i=setTimeout(()=>{r(Error(`[Vite DevTools] Timeout waiting for rpc to be trusted`))},e);t=()=>clearTimeout(i)})]),s}return{get isTrusted(){return s},requestTrust:d,ensureTrusted:f,call:(...e)=>u.$call(...e),callEvent:(...e)=>u.$callEvent(...e),callOptional:(...e)=>u.$callOptional(...e)}}var Yr=`__VITE_DEVTOOLS_CONNECTION_META__`,Xr=`__VITE_DEVTOOLS_CONNECTION_AUTH_ID__`;function Zr(e){let t=[()=>e,()=>localStorage.getItem(Xr),()=>window?.[Xr],()=>globalThis?.[Xr],()=>parent.window?.[Xr]],n;for(let e of t)try{if(n=e(),n)break}catch{}return n||=ye(),localStorage.setItem(Xr,n),globalThis[Xr]=n,n}function Qr(){let e=[()=>window?.[Yr],()=>globalThis?.[Yr],()=>parent.window?.[Yr]];for(let t of e)try{let e=t();if(e)return e}catch{}}async function $r(e={}){let{baseURL:t=de,rpcOptions:n={}}=e,r=_e(),i=Array.isArray(t)?t:[t],a=e.connectionMeta||Qr(),o=i[0]??`/.devtools/`;function s(e){return e.endsWith(`/`)?e:`${e}/`}function c(e,t){return/^https?:\/\//.test(t)||t.startsWith(`/`)?t:`${s(e)}${t}`}if(!a){let e=[];for(let t of i)try{a=await fetch(c(t,fe)).then(e=>e.json()),o=t,globalThis[Yr]=a;break}catch(t){e.push(t)}if(!a)throw Error(`Failed to get connection meta from ${i.join(`, `)}`,{cause:e})}let l={rpc:void 0},u=Zr(e.authId),d=new Vt(l);async function f(e){let t=[o,...i.filter(e=>e!==o)].filter(e=>e!=null),n=[];for(let r of t)try{return await fetch(c(r,e)).then(t=>{if(!t.ok)throw Error(`Failed to fetch ${e} from ${r}: ${t.status}`);return t.json()})}catch(e){n.push(e)}throw Error(`Failed to load ${e} from ${t.join(`, `)}`,{cause:n})}let p=a.backend===`static`?await qn({fetchJsonFromBases:f}):Jr({authId:u,connectionMeta:a,events:r,clientRpc:d,rpcOptions:n,wsOptions:e.wsOptions}),m={events:r,get isTrusted(){return p.isTrusted},connectionMeta:a,ensureTrusted:p.ensureTrusted,requestTrust:p.requestTrust,call:p.call,callEvent:p.callEvent,callOptional:p.callOptional,client:d,sharedState:void 0};return m.sharedState=jn(m),l.rpc=m,p.requestTrust(),m}var ei=m(null),ti=m(null),ni=m(null);function ri(e){ei.value=e}function ii(){return ei}function ai(e){ti.value=e}function oi(){return ti}function si(e){ni.value=e}function ci(){return ni}var li=`modulepreload`,ui=function(e,t){return new URL(e,t).href},di={},fi=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=ui(t,n),t in di)return;di[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:li,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},pi=20,mi=100,hi=320,gi=240,_i=`~popup`,vi=`__VITE_DEVTOOLS_TRIGGER_DOCK_ACTION__`,yi=m(null),bi=m(!1),xi=_e(),Si,Ci,wi,Ti=async()=>await fi(()=>import(`./DockStandalone-B8W-HO8N.js`).then(e=>e.DockStandalone),__vite__mapDeps([0,1,2]),import.meta.url);xi.on(`popup:open-requested`,e=>{Hi(e)});function Ei(){if(!(typeof window>`u`))return window.documentPictureInPicture}function Di(){Si?.(),Si=void 0,Ci?.(),Ci=void 0}function Oi(){let e=window,t=[e.document?.documentElement,e.document?.body].filter(Boolean);for(let e of t){if(e?.classList?.contains(`dark`))return`dark`;if(e?.classList?.contains(`light`))return`light`;let t=e?.getAttribute?.(`data-theme`);if(t===`dark`||t===`light`)return t}return e.matchMedia?.(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function ki(e,t){e.document.documentElement?.style.setProperty(`color-scheme`,t)}function Ai(e){let t=[],n=()=>ki(e,Oi());n();let r=window,i=r.document;if(typeof MutationObserver<`u`&&i){let e=new MutationObserver(n);for(let t of[i.documentElement,i.body])t&&e.observe(t,{attributes:!0,attributeFilter:[`class`,`data-theme`,`style`]});t.push(()=>e.disconnect())}if(r.matchMedia){let e=r.matchMedia(`(prefers-color-scheme: dark)`),i=r.matchMedia(`(prefers-color-scheme: light)`);e.addEventListener(`change`,n),i.addEventListener(`change`,n),t.push(()=>{e.removeEventListener(`change`,n),i.removeEventListener(`change`,n)})}return()=>{t.forEach(e=>e())}}function ji(){wi?.remove(),wi=void 0}function Mi(){Di(),ji(),yi.value=null,bi.value=!1}function Ni(e,t,n){return Math.min(Math.max(e,t),n)}function Pi(e,t){window.innerWidth<=0||window.innerHeight<=0||(e.panel.store.width=Ni(Math.round(t.innerWidth/window.innerWidth*100),pi,mi),e.panel.store.height=Ni(Math.round(t.innerHeight/window.innerHeight*100),pi,mi))}async function Fi(e,t){let n=await Ti(),r=t.document.createElement(`style`);r.textContent=[`html, body {`,` margin: 0;`,` padding: 0;`,` width: 100%;`,` height: 100%;`,` overflow: hidden;`,` background: transparent;`,`}`,`#vite-devtools-popup-root {`,` width: 100vw;`,` height: 100vh;`,`}`,`#vite-devtools-popup-root > vite-devtools-dock-standalone {`,` display: block;`,` width: 100%;`,` height: 100%;`,`}`].join(`
|
|
3
|
+
`),t.document.title=`Vite DevTools`,t.document.head?.appendChild(r),t.document.body.textContent=``;let i=t.document.createElement(`div`);i.id=`vite-devtools-popup-root`,t.document.body.appendChild(i);let a=new n({context:e});wi=a,i.appendChild(a)}function Ii(){return!!Ei()?.requestWindow}function Li(e,t){typeof window>`u`||e!==`standalone`&&(window[vi]=t)}async function Ri(e,t){if(!(typeof window>`u`)&&e===`standalone`)try{let e=window.opener;if(!e||e.closed)return;let n=e[vi];return typeof n==`function`?await n(t):void 0}catch{return}}function zi(e){return Ii()&&!bi.value&&e!==`standalone`}function Bi(e){return e.map(([e,t])=>[e,t.filter(e=>e.id!==_i)]).filter(([,e])=>e.length>0)}function Vi(e){xi.emit(`popup:open-requested`,e)}async function Hi(e){ai(null);let t=yi.value;if(t?.closed)Mi();else if(t)return t.focus(),t;let n=Ei();if(!n?.requestWindow)return null;let r;try{let t=r=await n.requestWindow({width:Math.max(hi,Math.round(window.innerWidth*e.panel.store.width/100)),height:Math.max(gi,Math.round(window.innerHeight*e.panel.store.height/100))});await Fi(e,t),Ci=Ai(t);let i=()=>Pi(e,t),a=()=>{yi.value===t&&Mi()};return t.addEventListener(`resize`,i),t.addEventListener(`pagehide`,a),Si=()=>{t.removeEventListener(`resize`,i),t.removeEventListener(`pagehide`,a)},yi.value=t,bi.value=!0,t}catch{return r&&!r.closed&&r.close(),Mi(),null}}var Ui=class{holders={};constructor(e){this.container=e}getHolder(e,t){return this.holders[e]}getOrCreateHolder(e,t){if(!this.container.value)throw Error(`[VITE DEVTOOLS] PersistedDomViewsManager: container is not set`);let n;if(this.holders[e])n=this.holders[e];else{let r=document.createElement(t);this.holders[e]=new Wi(e,r),this.container.value.appendChild(r),n=this.holders[e]}return n}removeHolder(e){let t=this.holders[e];return t?(t.unmount(),t.element.remove(),delete this.holders[e],!0):!1}},Wi=class{element;id;anchor;_cleanups=[];constructor(e,t){this.id=e,this.element=t}cleanup(){this._cleanups.forEach(e=>e()),this._cleanups=[]}mount(e){if(this.anchor===e){this.show();return}this.cleanup(),this.anchor=e;let t=()=>this.update();window.addEventListener(`resize`,t),this._cleanups.push(()=>window.removeEventListener(`resize`,t)),this.show()}hide(){this.element.style.display=`none`}show(){this.element.style.display=`block`,this.update()}update(){if(!this.anchor)return;let e=this.anchor.getBoundingClientRect();this.element.style.position=`absolute`,this.element.style.width=`${e.width}px`,this.element.style.height=`${e.height}px`}unmount(){this.cleanup(),this.hide(),this.anchor=void 0}};function Gi(e){return n(`button`,{class:`flex items-center gap-2 px3 py1.5 rounded hover:bg-active transition text-left`,onClick:e.action},[n(`div`,{class:`${e.icon} text-base op60`}),n(`span`,e.label)])}function Ki(e,t){let n=e.docks.settings,r=t.id;n.mutate(e=>{e.docksHidden.includes(r)||(e.docksHidden=[...e.docksHidden,r])}),e.docks.selected?.id===r&&e.docks.switchEntry(null),si(null)}function qi(e,t){let n=e.docks.getStateById(t.id)?.domElements.iframe;if(!n){si(null);return}let r=n.src;n.src=``,n.src=r,si(null)}function Ji(e,t){return e.docks.entries.some(e=>e.id===t.id)}function Yi(e){return e.type===`iframe`}function Xi(e){let{context:t,entry:r,el:i,gap:a=6}=e,o=[{label:`Hide`,icon:`i-ph-eye-slash-duotone`,action:()=>Ki(t,r),visible:Ji(t,r)},{label:`Refresh`,icon:`i-ph-arrow-clockwise-duotone`,action:()=>qi(t,r),visible:Yi(r)}].filter(e=>e.visible);o.length!==0&&si({el:i,gap:a,content:()=>n(`div`,{class:`flex flex-col text-sm min-w-36 mx--1`},o.map(Gi))})}var{entries:Zi,setPrototypeOf:Qi,isFrozen:$i,getPrototypeOf:ea,getOwnPropertyDescriptor:ta}=Object,{freeze:X,seal:na,create:ra}=Object,{apply:ia,construct:aa}=typeof Reflect<`u`&&Reflect;X||=function(e){return e},na||=function(e){return e},ia||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},aa||=function(e){return new e(...[...arguments].slice(1))};var oa=Q(Array.prototype.forEach),sa=Q(Array.prototype.lastIndexOf),ca=Q(Array.prototype.pop),la=Q(Array.prototype.push),ua=Q(Array.prototype.splice),da=Q(String.prototype.toLowerCase),fa=Q(String.prototype.toString),pa=Q(String.prototype.match),ma=Q(String.prototype.replace),ha=Q(String.prototype.indexOf),ga=Q(String.prototype.trim),_a=Q(Object.prototype.hasOwnProperty),Z=Q(RegExp.prototype.test),va=ya(TypeError);function Q(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return ia(e,t,n)}}function ya(e){return function(){return aa(e,[...arguments])}}function $(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:da;Qi&&Qi(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&($i(t)||(t[r]=e),i=e)}e[i]=!0}return e}function ba(e){for(let t=0;t<e.length;t++)_a(e,t)||(e[t]=null);return e}function xa(e){let t=ra(null);for(let[n,r]of Zi(e))_a(e,n)&&(Array.isArray(r)?t[n]=ba(r):r&&typeof r==`object`&&r.constructor===Object?t[n]=xa(r):t[n]=r);return t}function Sa(e,t){for(;e!==null;){let n=ta(e,t);if(n){if(n.get)return Q(n.get);if(typeof n.value==`function`)return Q(n.value)}e=ea(e)}function n(){return null}return n}var Ca=X(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),wa=X(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),Ta=X([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),Ea=X([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),Da=X(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),Oa=X([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),ka=X([`#text`]),Aa=X(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot`.split(`.`)),ja=X(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),Ma=X(`accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),Na=X([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Pa=na(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Fa=na(/<%[\w\W]*|[\w\W]*%>/gm),Ia=na(/\$\{[\w\W]*/gm),La=na(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ra=na(/^aria-[\-\w]+$/),za=na(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ba=na(/^(?:\w+script|data):/i),Va=na(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ha=na(/^html$/i),Ua=na(/^[a-z][.\w]*(-[.\w]+)+$/i),Wa=Object.freeze({__proto__:null,ARIA_ATTR:Ra,ATTR_WHITESPACE:Va,CUSTOM_ELEMENT:Ua,DATA_ATTR:La,DOCTYPE_NAME:Ha,ERB_EXPR:Fa,IS_ALLOWED_URI:za,IS_SCRIPT_OR_DATA:Ba,MUSTACHE_EXPR:Pa,TMPLIT_EXPR:Ia}),Ga={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ka=function(){return typeof window>`u`?null:window},qa=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Ja=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ya(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ka(),t=e=>Ya(e);if(t.version=`3.3.3`,t.removed=[],!e||!e.document||e.document.nodeType!==Ga.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e,r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:c,NodeFilter:l,NamedNodeMap:u=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:p}=e,m=c.prototype,h=Sa(m,`cloneNode`),g=Sa(m,`remove`),_=Sa(m,`nextSibling`),v=Sa(m,`childNodes`),y=Sa(m,`parentNode`);if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let b,x=``,{implementation:S,createNodeIterator:ee,createDocumentFragment:te,getElementsByTagName:ne}=n,{importNode:C}=r,w=Ja();t.isSupported=typeof Zi==`function`&&typeof y==`function`&&S&&S.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:T,ERB_EXPR:E,TMPLIT_EXPR:re,DATA_ATTR:D,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:k,ATTR_WHITESPACE:ie,CUSTOM_ELEMENT:ae}=Wa,{IS_ALLOWED_URI:oe}=Wa,A=null,se=$({},[...Ca,...wa,...Ta,...Da,...ka]),j=null,ce=$({},[...Aa,...ja,...Ma,...Na]),M=Object.seal(ra(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),le=null,ue=null,de=Object.seal(ra(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),fe=!0,pe=!0,me=!1,he=!0,ge=!1,_e=!0,ve=!1,ye=!1,be=!1,xe=!1,N=!1,P=!1,F=!0,Se=!1,Ce=!0,we=!1,Te={},I=null,Ee=$({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),De=null,Oe=$({},[`audio`,`video`,`img`,`source`,`image`,`track`]),L=null,ke=$({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Ae=`http://www.w3.org/1998/Math/MathML`,je=`http://www.w3.org/2000/svg`,R=`http://www.w3.org/1999/xhtml`,z=R,Me=!1,Ne=null,Pe=$({},[Ae,je,R],fa),Fe=$({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),Ie=$({},[`annotation-xml`]),Le=$({},[`title`,`style`,`font`,`a`,`script`]),Re=null,ze=[`application/xhtml+xml`,`text/html`],B=null,Be=null,Ve=n.createElement(`form`),He=function(e){return e instanceof RegExp||e instanceof Function},Ue=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Be&&Be===e)){if((!e||typeof e!=`object`)&&(e={}),e=xa(e),Re=ze.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,B=Re===`application/xhtml+xml`?fa:da,A=_a(e,`ALLOWED_TAGS`)?$({},e.ALLOWED_TAGS,B):se,j=_a(e,`ALLOWED_ATTR`)?$({},e.ALLOWED_ATTR,B):ce,Ne=_a(e,`ALLOWED_NAMESPACES`)?$({},e.ALLOWED_NAMESPACES,fa):Pe,L=_a(e,`ADD_URI_SAFE_ATTR`)?$(xa(ke),e.ADD_URI_SAFE_ATTR,B):ke,De=_a(e,`ADD_DATA_URI_TAGS`)?$(xa(Oe),e.ADD_DATA_URI_TAGS,B):Oe,I=_a(e,`FORBID_CONTENTS`)?$({},e.FORBID_CONTENTS,B):Ee,le=_a(e,`FORBID_TAGS`)?$({},e.FORBID_TAGS,B):xa({}),ue=_a(e,`FORBID_ATTR`)?$({},e.FORBID_ATTR,B):xa({}),Te=_a(e,`USE_PROFILES`)?e.USE_PROFILES:!1,fe=e.ALLOW_ARIA_ATTR!==!1,pe=e.ALLOW_DATA_ATTR!==!1,me=e.ALLOW_UNKNOWN_PROTOCOLS||!1,he=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ge=e.SAFE_FOR_TEMPLATES||!1,_e=e.SAFE_FOR_XML!==!1,ve=e.WHOLE_DOCUMENT||!1,xe=e.RETURN_DOM||!1,N=e.RETURN_DOM_FRAGMENT||!1,P=e.RETURN_TRUSTED_TYPE||!1,be=e.FORCE_BODY||!1,F=e.SANITIZE_DOM!==!1,Se=e.SANITIZE_NAMED_PROPS||!1,Ce=e.KEEP_CONTENT!==!1,we=e.IN_PLACE||!1,oe=e.ALLOWED_URI_REGEXP||za,z=e.NAMESPACE||R,Fe=e.MATHML_TEXT_INTEGRATION_POINTS||Fe,Ie=e.HTML_INTEGRATION_POINTS||Ie,M=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&He(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(M.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&He(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(M.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==`boolean`&&(M.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ge&&(pe=!1),N&&(xe=!0),Te&&(A=$({},ka),j=ra(null),Te.html===!0&&($(A,Ca),$(j,Aa)),Te.svg===!0&&($(A,wa),$(j,ja),$(j,Na)),Te.svgFilters===!0&&($(A,Ta),$(j,ja),$(j,Na)),Te.mathMl===!0&&($(A,Da),$(j,Ma),$(j,Na))),_a(e,`ADD_TAGS`)||(de.tagCheck=null),_a(e,`ADD_ATTR`)||(de.attributeCheck=null),e.ADD_TAGS&&(typeof e.ADD_TAGS==`function`?de.tagCheck=e.ADD_TAGS:(A===se&&(A=xa(A)),$(A,e.ADD_TAGS,B))),e.ADD_ATTR&&(typeof e.ADD_ATTR==`function`?de.attributeCheck=e.ADD_ATTR:(j===ce&&(j=xa(j)),$(j,e.ADD_ATTR,B))),e.ADD_URI_SAFE_ATTR&&$(L,e.ADD_URI_SAFE_ATTR,B),e.FORBID_CONTENTS&&(I===Ee&&(I=xa(I)),$(I,e.FORBID_CONTENTS,B)),e.ADD_FORBID_CONTENTS&&(I===Ee&&(I=xa(I)),$(I,e.ADD_FORBID_CONTENTS,B)),Ce&&(A[`#text`]=!0),ve&&$(A,[`html`,`head`,`body`]),A.table&&($(A,[`tbody`]),delete le.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw va(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw va(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);b=e.TRUSTED_TYPES_POLICY,x=b.createHTML(``)}else b===void 0&&(b=qa(p,i)),b!==null&&typeof x==`string`&&(x=b.createHTML(``));X&&X(e),Be=e}},We=$({},[...wa,...Ta,...Ea]),Ge=$({},[...Da,...Oa]),Ke=function(e){let t=y(e);(!t||!t.tagName)&&(t={namespaceURI:z,tagName:`template`});let n=da(e.tagName),r=da(t.tagName);return Ne[e.namespaceURI]?e.namespaceURI===je?t.namespaceURI===R?n===`svg`:t.namespaceURI===Ae?n===`svg`&&(r===`annotation-xml`||Fe[r]):!!We[n]:e.namespaceURI===Ae?t.namespaceURI===R?n===`math`:t.namespaceURI===je?n===`math`&&Ie[r]:!!Ge[n]:e.namespaceURI===R?t.namespaceURI===je&&!Ie[r]||t.namespaceURI===Ae&&!Fe[r]?!1:!Ge[n]&&(Le[n]||!We[n]):!!(Re===`application/xhtml+xml`&&Ne[e.namespaceURI]):!1},qe=function(e){la(t.removed,{element:e});try{y(e).removeChild(e)}catch{g(e)}},Je=function(e,n){try{la(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{la(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(xe||N)try{qe(n)}catch{}else try{n.setAttribute(e,``)}catch{}},Ye=function(e){let t=null,r=null;if(be)e=`<remove></remove>`+e;else{let t=pa(e,/^[\r\n\t ]+/);r=t&&t[0]}Re===`application/xhtml+xml`&&z===R&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=b?b.createHTML(e):e;if(z===R)try{t=new f().parseFromString(i,Re)}catch{}if(!t||!t.documentElement){t=S.createDocument(z,`template`,null);try{t.documentElement.innerHTML=Me?x:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),z===R?ne.call(t,ve?`html`:`body`)[0]:ve?t.documentElement:a},Xe=function(e){return ee.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Ze=function(e){return e instanceof d&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof u)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},Qe=function(e){return typeof s==`function`&&e instanceof s};function V(e,n,r){oa(e,e=>{e.call(t,n,r,Be)})}let $e=function(e){let n=null;if(V(w.beforeSanitizeElements,e,null),Ze(e))return qe(e),!0;let r=B(e.nodeName);if(V(w.uponSanitizeElement,e,{tagName:r,allowedTags:A}),_e&&e.hasChildNodes()&&!Qe(e.firstElementChild)&&Z(/<[/\w!]/g,e.innerHTML)&&Z(/<[/\w!]/g,e.textContent)||e.nodeType===Ga.progressingInstruction||_e&&e.nodeType===Ga.comment&&Z(/<[/\w]/g,e.data))return qe(e),!0;if(!(de.tagCheck instanceof Function&&de.tagCheck(r))&&(!A[r]||le[r])){if(!le[r]&&tt(r)&&(M.tagNameCheck instanceof RegExp&&Z(M.tagNameCheck,r)||M.tagNameCheck instanceof Function&&M.tagNameCheck(r)))return!1;if(Ce&&!I[r]){let t=y(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=h(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,_(e))}}}return qe(e),!0}return e instanceof c&&!Ke(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&Z(/<\/no(script|embed|frames)/i,e.innerHTML)?(qe(e),!0):(ge&&e.nodeType===Ga.text&&(n=e.textContent,oa([T,E,re],e=>{n=ma(n,e,` `)}),e.textContent!==n&&(la(t.removed,{element:e.cloneNode()}),e.textContent=n)),V(w.afterSanitizeElements,e,null),!1)},et=function(e,t,r){if(ue[t]||F&&(t===`id`||t===`name`)&&(r in n||r in Ve))return!1;if(!(pe&&!ue[t]&&Z(D,t))&&!(fe&&Z(O,t))&&!(de.attributeCheck instanceof Function&&de.attributeCheck(t,e))){if(!j[t]||ue[t]){if(!(tt(e)&&(M.tagNameCheck instanceof RegExp&&Z(M.tagNameCheck,e)||M.tagNameCheck instanceof Function&&M.tagNameCheck(e))&&(M.attributeNameCheck instanceof RegExp&&Z(M.attributeNameCheck,t)||M.attributeNameCheck instanceof Function&&M.attributeNameCheck(t,e))||t===`is`&&M.allowCustomizedBuiltInElements&&(M.tagNameCheck instanceof RegExp&&Z(M.tagNameCheck,r)||M.tagNameCheck instanceof Function&&M.tagNameCheck(r))))return!1}else if(!L[t]&&!Z(oe,ma(r,ie,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&ha(r,`data:`)===0&&De[e])&&!(me&&!Z(k,ma(r,ie,``)))&&r)return!1}return!0},tt=function(e){return e!==`annotation-xml`&&pa(e,ae)},nt=function(e){V(w.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||Ze(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:j,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:o,value:s}=n[i],c=B(a),l=s,u=a===`value`?l:ga(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,V(w.uponSanitizeAttribute,e,r),u=r.attrValue,Se&&(c===`id`||c===`name`)&&(Je(a,e),u=`user-content-`+u),_e&&Z(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,u)){Je(a,e);continue}if(c===`attributename`&&pa(u,`href`)){Je(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Je(a,e);continue}if(!he&&Z(/\/>/i,u)){Je(a,e);continue}ge&&oa([T,E,re],e=>{u=ma(u,e,` `)});let d=B(e.nodeName);if(!et(d,c,u)){Je(a,e);continue}if(b&&typeof p==`object`&&typeof p.getAttributeType==`function`&&!o)switch(p.getAttributeType(d,c)){case`TrustedHTML`:u=b.createHTML(u);break;case`TrustedScriptURL`:u=b.createScriptURL(u);break}if(u!==l)try{o?e.setAttributeNS(o,a,u):e.setAttribute(a,u),Ze(e)?qe(e):ca(t.removed)}catch{Je(a,e)}}V(w.afterSanitizeAttributes,e,null)},rt=function e(t){let n=null,r=Xe(t);for(V(w.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)V(w.uponSanitizeShadowNode,n,null),$e(n),nt(n),n.content instanceof a&&e(n.content);V(w.afterSanitizeShadowDOM,t,null)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,c=null,l=null;if(Me=!e,Me&&(e=`<!-->`),typeof e!=`string`&&!Qe(e))if(typeof e.toString==`function`){if(e=e.toString(),typeof e!=`string`)throw va(`dirty is not a string, aborting`)}else throw va(`toString is not a function`);if(!t.isSupported)return e;if(ye||Ue(n),t.removed=[],typeof e==`string`&&(we=!1),we){if(e.nodeName){let t=B(e.nodeName);if(!A[t]||le[t])throw va(`root node is forbidden and cannot be sanitized in-place`)}}else if(e instanceof s)i=Ye(`<!---->`),o=i.ownerDocument.importNode(e,!0),o.nodeType===Ga.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o);else{if(!xe&&!ge&&!ve&&e.indexOf(`<`)===-1)return b&&P?b.createHTML(e):e;if(i=Ye(e),!i)return xe?null:P?x:``}i&&be&&qe(i.firstChild);let u=Xe(we?e:i);for(;c=u.nextNode();)$e(c),nt(c),c.content instanceof a&&rt(c.content);if(we)return e;if(xe){if(N)for(l=te.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(j.shadowroot||j.shadowrootmode)&&(l=C.call(r,l,!0)),l}let d=ve?i.outerHTML:i.innerHTML;return ve&&A[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&Z(Ha,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
4
|
+
`+d),ge&&oa([T,E,re],e=>{d=ma(d,e,` `)}),b&&P?b.createHTML(d):d},t.setConfig=function(){Ue(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),ye=!0},t.clearConfig=function(){Be=null,ye=!1},t.isValidAttribute=function(e,t,n){return Be||Ue({}),et(B(e),B(t),n)},t.addHook=function(e,t){typeof t==`function`&&la(w[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=sa(w[e],t);return n===-1?void 0:ua(w[e],n,1)[0]}return ca(w[e])},t.removeHooks=function(e){w[e]=[]},t.removeAllHooks=function(){w=Ja()},t}var Xa=Ya(),Za=new Map,Qa=Xa();async function $a(e,t){let n=`${e}:${t}`;if(Za.has(n))return Za.get(n);let r=i().then(e=>(Za.set(n,e),e));return Za.set(n,r),r;async function i(){let n=`https://api.iconify.design/${e}/${t}.svg?color=currentColor&width=100%`,r=await fetch(n).then(e=>e.text());return Qa.sanitize(r)}}var eo=[`innerHTML`],to=[`src`],no=_({__name:`IconifyIcon`,props:{icon:{}},setup(e){let t=e,n=D(()=>t.icon.includes(`/`)||t.icon.startsWith(`data:`)||t.icon.startsWith(`builtin:`)),r=D(()=>{if(n.value)return;let e=t.icon.match(/^(?:i-)?([\w-]+):([\w-]+)$/);if(e)return{collection:e[1],icon:e[2]}}),i=o(void 0);return s(async()=>{if(!r.value){i.value=void 0;return}i.value=await $a(r.value.collection,r.value.icon)}),(t,n)=>r.value?(d(),C(`div`,{key:0,innerHTML:i.value},null,8,eo)):(d(),C(`img`,{key:1,src:e.icon,class:`w-full h-full m-auto`,draggable:`false`},null,8,to))}}),ro=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},io={},ao={viewBox:`0 0 22 22`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function oo(e,t){return d(),C(`svg`,ao,[...t[0]||=[ee(`<g clip-path="url(#clip0_2_2)"><path d="M11.85 20.535C11.7881 20.6144 11.7029 20.6726 11.6064 20.7012C11.5098 20.7298 11.4067 20.7276 11.3115 20.6947C11.2163 20.6619 11.1337 20.6001 11.0754 20.5181C11.017 20.436 10.9858 20.3377 10.986 20.237V15.834C10.986 15.5775 10.8841 15.3316 10.7028 15.1502C10.5214 14.9689 10.2755 14.867 10.019 14.867H5.157C5.06821 14.867 4.98114 14.8426 4.90534 14.7964C4.82954 14.7501 4.76795 14.6839 4.72734 14.6049C4.68673 14.526 4.66866 14.4374 4.67513 14.3488C4.6816 14.2603 4.71235 14.1752 4.764 14.103L7.961 9.62801C8.06459 9.48335 8.12626 9.31291 8.13923 9.13546C8.15219 8.95801 8.11594 8.78042 8.03448 8.62224C7.95301 8.46406 7.82948 8.33143 7.67749 8.23893C7.52549 8.14644 7.35093 8.09768 7.173 8.09801H1.29C1.20122 8.09803 1.11414 8.07359 1.03834 8.02736C0.962542 7.98113 0.900953 7.91489 0.86034 7.83594C0.819727 7.75699 0.801662 7.66837 0.80813 7.57982C0.814597 7.49127 0.845347 7.40622 0.897 7.33401L5.04 1.53301C5.08452 1.46999 5.14358 1.41864 5.21217 1.38331C5.28075 1.34797 5.35685 1.32969 5.434 1.33001H17.782C18.175 1.33001 18.404 1.77501 18.175 2.09401L14.978 6.57001C14.521 7.21001 14.978 8.10001 15.766 8.10001H20.627C21.031 8.10001 21.257 8.56401 21.007 8.88201L11.85 20.535Z" fill="#6254FE"></path><mask id="mask0_2_2" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="0" y="1" width="22" height="20"><path d="M11.85 20.535C11.7881 20.6144 11.7029 20.6726 11.6064 20.7012C11.5098 20.7298 11.4067 20.7276 11.3115 20.6947C11.2163 20.6619 11.1337 20.6001 11.0754 20.5181C11.017 20.436 10.9858 20.3377 10.986 20.237V15.834C10.986 15.5775 10.8841 15.3316 10.7028 15.1502C10.5214 14.9689 10.2755 14.867 10.019 14.867H5.157C5.06821 14.867 4.98114 14.8426 4.90534 14.7964C4.82954 14.7501 4.76795 14.6839 4.72734 14.6049C4.68673 14.526 4.66866 14.4374 4.67513 14.3488C4.6816 14.2603 4.71235 14.1752 4.764 14.103L7.961 9.62801C8.06459 9.48335 8.12626 9.31291 8.13923 9.13546C8.15219 8.95801 8.11594 8.78042 8.03448 8.62224C7.95301 8.46406 7.82948 8.33143 7.67749 8.23893C7.52549 8.14644 7.35093 8.09768 7.173 8.09801H1.29C1.20122 8.09803 1.11414 8.07359 1.03834 8.02736C0.962542 7.98113 0.900953 7.91489 0.86034 7.83594C0.819727 7.75699 0.801662 7.66837 0.80813 7.57982C0.814597 7.49127 0.845347 7.40622 0.897 7.33401L5.04 1.53301C5.08452 1.46999 5.14358 1.41864 5.21217 1.38331C5.28075 1.34797 5.35685 1.32969 5.434 1.33001H17.782C18.175 1.33001 18.404 1.77501 18.175 2.09401L14.978 6.57001C14.521 7.21001 14.978 8.10001 15.766 8.10001H20.627C21.031 8.10001 21.257 8.56401 21.007 8.88201L11.85 20.535Z" fill="#833BFF"></path></mask><g mask="url(#mask0_2_2)"><g filter="url(#filter0_f_2_2)"><path d="M11.4271 17.1119C11.4313 18.412 8.62134 19.475 5.1508 19.4863C1.68026 19.4975 -1.13659 18.4528 -1.14081 17.1527C-1.14503 15.8526 1.66497 14.7896 5.13551 14.7783C8.60605 14.767 11.4229 15.8118 11.4271 17.1119Z" fill="#EDE6FF"></path></g><g filter="url(#filter1_f_2_2)"><path d="M9.48364 9.06048C9.49161 11.5148 3.78614 13.523 -3.25987 13.5459C-10.3059 13.5688 -16.0243 11.5977 -16.0322 9.14332C-16.0402 6.68898 -10.3347 4.6808 -3.28872 4.65792C3.75729 4.63505 9.47567 6.60614 9.48364 9.06048Z" fill="#EDE6FF"></path></g><g filter="url(#filter2_f_2_2)"><path d="M9.53104 8.43813C9.53526 9.7382 3.70543 10.8111 -3.49025 10.8344C-10.6859 10.8578 -16.5226 9.82279 -16.5268 8.52272C-16.531 7.22265 -10.7012 6.1498 -3.50554 6.12644C3.69014 6.10308 9.52682 7.13806 9.53104 8.43813Z" fill="#4E14FF"></path></g><g filter="url(#filter3_f_2_2)"><path d="M11.5916 16.1293C11.5958 17.4293 5.74448 18.5022 -1.47775 18.5256C-8.69997 18.549 -14.5582 17.5141 -14.5624 16.214C-14.5666 14.9139 -8.71523 13.841 -1.493 13.8176C5.72923 13.7942 11.5874 14.8292 11.5916 16.1293Z" fill="#4E14FF"></path></g><g filter="url(#filter4_f_2_2)"><path d="M12.2473 16.6206C12.2515 17.9206 6.40021 18.9935 -0.821978 19.017C-8.04417 19.0404 -13.9023 18.0055 -13.9066 16.7055C-13.9108 15.4054 -8.05945 14.3325 -0.837261 14.309C6.38493 14.2856 12.2431 15.3205 12.2473 16.6206Z" fill="#4E14FF"></path></g><g filter="url(#filter5_f_2_2)"><path d="M14.047 5.7039C14.2411 2.38813 18.6158 -0.0529585 23.8183 0.251568C29.0207 0.556095 33.0808 3.49092 32.8867 6.80669C32.6926 10.1225 28.3179 12.5635 23.1154 12.259C17.913 11.9545 13.8529 9.01966 14.047 5.7039Z" fill="#EDE6FF"></path></g><g filter="url(#filter6_f_2_2)"><path d="M14.7518 7.88531C14.7376 7.06639 18.8396 6.33138 23.9137 6.2436C28.9879 6.15583 33.1129 6.74854 33.127 7.56745C33.1412 8.38637 29.0392 9.12139 23.965 9.20916C18.8909 9.29693 14.7659 8.70422 14.7518 7.88531Z" fill="#4E14FF"></path></g><g filter="url(#filter7_f_2_2)"><path d="M14.7518 7.88531C14.7376 7.06639 18.8396 6.33138 23.9137 6.2436C28.9879 6.15583 33.1129 6.74854 33.127 7.56745C33.1412 8.38637 29.0392 9.12139 23.965 9.20916C18.8909 9.29693 14.7659 8.70422 14.7518 7.88531Z" fill="#4E14FF"></path></g><g filter="url(#filter8_f_2_2)"><path d="M-6.98848 14.7616C-6.18615 15.4233 -1.99229 11.6626 2.37876 6.362C6.74982 1.06138 9.64283 -3.77199 8.84049 -4.43362C8.03816 -5.09525 3.8443 -1.3346 -0.526755 3.96602C-4.89781 9.26665 -7.79082 14.1 -6.98848 14.7616Z" fill="#4E14FF"></path></g><g filter="url(#filter9_f_2_2)"><path d="M13.4305 8.5449C14.2512 9.18361 18.3372 5.30605 22.5568 -0.115883C26.7764 -5.53781 29.5318 -10.4509 28.7111 -11.0896C27.8904 -11.7284 23.8044 -7.8508 19.5848 -2.42887C15.3651 2.99306 12.6098 7.90619 13.4305 8.5449Z" fill="#4E14FF"></path></g><g filter="url(#filter10_f_2_2)"><path d="M14.9501 9.73878C16.4926 10.9392 19.2111 10.026 21.0221 7.69897C22.8331 5.37198 23.0507 2.51245 21.5083 1.31202C19.9658 0.111596 17.2473 1.02485 15.4363 3.35184C13.6253 5.67882 13.4077 8.53835 14.9501 9.73878Z" fill="#2BFDD2"></path></g><g filter="url(#filter11_f_2_2)"><path d="M-7.68233 27.5293C-6.86163 28.168 -2.77563 24.2904 1.44401 18.8685C5.66365 13.4466 8.41904 8.53346 7.59834 7.89474C6.77764 7.25603 2.69164 11.1336 -1.528 16.5555C-5.74764 21.9775 -8.50303 26.8906 -7.68233 27.5293Z" fill="#4E14FF"></path></g><g filter="url(#filter12_f_2_2)"><path d="M-7.68233 27.5293C-6.86163 28.168 -2.77563 24.2904 1.44401 18.8685C5.66365 13.4466 8.41904 8.53346 7.59834 7.89474C6.77764 7.25603 2.69164 11.1336 -1.528 16.5555C-5.74764 21.9775 -8.50303 26.8906 -7.68233 27.5293Z" fill="#4E14FF"></path></g><g filter="url(#filter13_f_2_2)"><path d="M8.26366 23.8563C9.13579 24.535 13.2635 20.6899 17.4831 15.268C21.7028 9.84604 24.4165 4.90047 23.5443 4.22173C22.6722 3.54299 18.5445 7.38811 14.3249 12.81C10.1052 18.232 7.39153 23.1775 8.26366 23.8563Z" fill="#4E14FF"></path></g><g filter="url(#filter14_f_2_2)"><path d="M12.2866 22.5389C13.7846 23.7047 17.4746 21.4689 20.5284 17.5449C23.5822 13.621 24.8434 9.49495 23.3454 8.32912C21.8474 7.16329 18.1574 9.39917 15.1036 13.3231C12.0498 17.247 10.7886 21.3731 12.2866 22.5389Z" fill="#2BFDD2"></path></g></g></g><defs><filter id="filter0_f_2_2" x="-7.68682" y="8.2322" width="25.6599" height="17.8002" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.273" result="effect1_foregroundBlur_2_2"></feGaussianBlur></filter><filter id="filter1_f_2_2" x="-22.5782" y="-1.88827" width="38.6079" height="21.9804" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.273" result="effect1_foregroundBlur_2_2"></feGaussianBlur></filter><filter id="filter2_f_2_2" x="-20.4548" y="2.19805" width="33.9139" height="12.5647" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="1.964" result="effect1_foregroundBlur_2_2"></feGaussianBlur></filter><filter id="filter3_f_2_2" x="-18.4904" y="9.88925" width="34.01" height="12.5648" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="1.964" result="effect1_foregroundBlur_2_2"></feGaussianBlur></filter><filter id="filter4_f_2_2" x="-17.8346" y="10.3806" width="34.0099" height="12.5648" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="1.964" result="effect1_foregroundBlur_2_2"></feGaussianBlur></filter><filter id="filter5_f_2_2" x="7.4943" y="-6.32009" width="31.9451" height="25.1508" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.273" result="effect1_foregroundBlur_2_2"></feGaussianBlur></filter><filter id="filter6_f_2_2" x="10.8237" y="2.30699" width="26.2313" height="10.8388" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="1.964" result="effect1_foregroundBlur_2_2"></feGaussianBlur></filter><filter id="filter7_f_2_2" x="10.8237" y="2.30699" width="26.2313" height="10.8388" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="1.964" result="effect1_foregroundBlur_2_2"></feGaussianBlur></filter><filter id="filter8_f_2_2" x="-11.0501" y="-8.43711" width="23.9523" height="27.2022" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="1.964" result="effect1_foregroundBlur_2_2"></feGaussianBlur></filter><filter id="filter9_f_2_2" x="9.35783" y="-15.0865" width="23.4259" height="27.6282" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="1.964" result="effect1_foregroundBlur_2_2"></feGaussianBlur></filter><filter id="filter10_f_2_2" x="9.99386" y="-3.14457" width="16.4707" height="17.3399" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="1.964" result="effect1_foregroundBlur_2_2"></feGaussianBlur></filter><filter id="filter11_f_2_2" x="-11.755" y="3.89791" width="23.4259" height="27.6282" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="1.964" result="effect1_foregroundBlur_2_2"></feGaussianBlur></filter><filter id="filter12_f_2_2" x="-11.755" y="3.89791" width="23.4259" height="27.6282" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="1.964" result="effect1_foregroundBlur_2_2"></feGaussianBlur></filter><filter id="filter13_f_2_2" x="4.17262" y="0.216058" width="23.4628" height="27.6459" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="1.964" result="effect1_foregroundBlur_2_2"></feGaussianBlur></filter><filter id="filter14_f_2_2" x="7.72776" y="4.09222" width="20.1765" height="22.6836" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="1.964" result="effect1_foregroundBlur_2_2"></feGaussianBlur></filter><clipPath id="clip0_2_2"><rect width="22" height="22" fill="white"></rect></clipPath></defs>`,2)]])}var so=ro(io,[[`render`,oo]]),co={key:1},lo=_({__name:`DockIcon`,props:{icon:{},title:{}},setup(e){let t=e,n=D(()=>typeof t.icon==`string`?{dark:t.icon,light:t.icon}:t.icon);return(t,r)=>n.value.light===`builtin:vite-plus-core`?(d(),x(so,{key:0})):(d(),C(`div`,co,[n.value.light===n.value.dark?(d(),x(no,{key:0,icon:n.value.light,title:e.title},null,8,[`icon`,`title`])):(d(),C(E,{key:1},[k(no,{class:`dark-hidden`,icon:n.value.light,title:e.title},null,8,[`icon`,`title`]),k(no,{class:`light-hidden`,icon:n.value.dark,title:e.title},null,8,[`icon`,`title`])],64))]))}}),uo=[`title`],fo={key:0,class:`absolute top-0.5 right-0 bg-gray-6 text-white text-0.6em px-1 rounded-full shadow`},po=_({__name:`DockEntry`,props:{context:{},dock:{},isSelected:{type:Boolean},isDimmed:{type:Boolean},isVertical:{type:Boolean},badge:{},tooltip:{type:Boolean,default:!0}},setup(e){let t=e,n=u(`button`);function r(){t.tooltip&&n.value&&ri({content:t.dock.title,el:n.value})}function i(){t.tooltip&&ri(null)}function a(e){if(!n.value||t.dock.id===`overflow`)return;e.preventDefault(),i();let r=t.context.docks.entries.find(e=>e.id===t.dock.id);r&&Xi({context:t.context,entry:r,el:n.value,gap:6})}return w(`pointerdown`,()=>{t.tooltip&&ri(null)}),(t,o)=>(d(),C(`div`,{key:e.dock.id,class:`relative group vite-devtools-dock-entry`,onPointerenter:r,onPointerleave:i,onContextmenu:a},[y(`button`,{ref_key:`button`,ref:n,title:e.dock.title,class:O([[e.isVertical?`rotate-270`:``,e.isDimmed?`op50 saturate-0`:``,e.isSelected?`scale-120 text-purple`:``],`flex items-center justify-center p1.5 rounded-xl hover:bg-[#8881] hover:scale-110 transition-all duration-300 relative`])},[k(lo,{icon:e.dock.icon,title:e.dock.title,class:`w-5 h-5 select-none`},null,8,[`icon`,`title`]),e.badge?(d(),C(`div`,fo,S(e.badge),1)):T(``,!0)],10,uo)],32))}}),mo=_({__name:`DockEntries`,props:{context:{},entries:{},selected:{},isVertical:{type:Boolean}},emits:[`select`],setup(e,{emit:t}){let n=e,r=t,{selected:i,isVertical:o,entries:s}=a(n);function l(e){i.value?.id===e.id?r(`select`,void 0):r(`select`,e)}return(t,n)=>(d(!0),C(E,null,ne(c(s),t=>(d(),C(E,{key:t.id},[t.isHidden?T(``,!0):(d(),x(po,{key:0,context:e.context,dock:t,"is-selected":c(i)?.id===t.id,"is-dimmed":c(i)?c(i).id!==t.id:!1,"is-vertical":c(o),badge:t.badge,onClick:e=>l(t)},null,8,[`context`,`dock`,`is-selected`,`is-dimmed`,`is-vertical`,`badge`,`onClick`]))],64))),128))}}),ho=_({__name:`DockEntriesWithCategories`,props:{context:{},groups:{},selected:{},isVertical:{type:Boolean}},emits:[`select`],setup(t,{emit:n}){let r=n;return(n,i)=>(d(!0),C(E,null,ne(t.groups,([a,o],s)=>(d(),C(E,{key:a},[s>0?e(n.$slots,`separator`,{key:0,category:a,index:s,isVertical:t.isVertical},()=>[i[1]||=y(`div`,{class:`border-base m1 h-20px w-px border-r-1.5`},null,-1)]):T(``,!0),k(mo,{context:t.context,entries:o,"is-vertical":t.isVertical,selected:t.selected,onSelect:i[0]||=e=>r(`select`,e)},null,8,[`context`,`entries`,`is-vertical`,`selected`])],64))),128))}}),go=100,_o=10,vo=_({name:`FloatingPopover`,props:{item:{type:Object,required:!1},dismissOnClickOutside:{type:Boolean,default:!0}},emits:[`dismiss`],setup(e,{emit:t}){let r=u(`panel`),a=o(e.item?.el),s=o(0),c=te(()=>{e.item?.el??(a.value=void 0)},800);e.dismissOnClickOutside&&re(r,()=>{t(`dismiss`)}),i(()=>e.item,e=>{e?a.value===e.el?s.value++:a.value=e.el:c()});let l;return()=>{if(s.value,!a.value)return null;let t=a.value.getBoundingClientRect(),r=`bottom`,i=window.innerWidth,o=window.innerHeight;t.left<go?r=`right`:t.left+t.width>i-go?r=`left`:t.top<go?r=`bottom`:t.top+t.height>o-go&&(r=`top`);let c={},u=e.item?.gap??_o;switch(r){case`bottom`:c={left:`${t.left+t.width/2}px`,top:`${t.top+t.height+u}px`,transform:`translateX(-50%)`};break;case`top`:c={left:`${t.left+t.width/2}px`,bottom:`${o-t.top+u}px`,transform:`translateX(-50%)`};break;case`left`:c={right:`${i-t.left+u}px`,top:`${t.top+t.height/2}px`,transform:`translateY(-50%)`};break;case`right`:c={left:`${t.left+t.width+u}px`,top:`${t.top+t.height/2}px`,transform:`translateY(-50%)`};break}let d=(typeof e.item?.content==`string`?n(`span`,e.item?.content):e.item?.content())??l;return l=d,n(`div`,{ref:`panel`,class:[`fixed z-floating-tooltip text-xs transition-all duration-300 w-max bg-glass color-base border border-base rounded px2 p1`,e.item?`op100`:`op0 pointer-events-none`],style:c},d)}}}),yo=_({__name:`FloatingElements`,setup(e){let t=ii(),n=oi(),r=ci();return w(window,`keydown`,e=>{e.key===`Escape`&&r.value&&si(null)}),(e,i)=>(d(),C(E,null,[k(c(vo),{item:c(r),onDismiss:i[0]||=()=>c(si)(null)},null,8,[`item`]),k(c(vo),{item:c(n),onDismiss:i[1]||=()=>c(ai)(null)},null,8,[`item`]),k(c(vo),{item:c(t)},null,8,[`item`])],64))}}),bo={},xo={viewBox:`0 0 40 40`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function So(e,t){return d(),C(`svg`,xo,[...t[0]||=[ee(`<path d="M21.1636 29.535C21.1017 29.6144 21.0166 29.6725 20.92 29.7012C20.8234 29.7298 20.7204 29.7276 20.6251 29.6947C20.5299 29.6619 20.4474 29.6001 20.389 29.518C20.3307 29.436 20.2994 29.3377 20.2996 29.237V24.834C20.2996 24.5775 20.1978 24.3316 20.0164 24.1502C19.8351 23.9689 19.5891 23.867 19.3326 23.867H14.4706C14.3819 23.867 14.2948 23.8426 14.219 23.7963C14.1432 23.7501 14.0816 23.6839 14.041 23.6049C14.0004 23.526 13.9823 23.4374 13.9888 23.3488C13.9952 23.2603 14.026 23.1752 14.0776 23.103L17.2746 18.628C17.3782 18.4833 17.4399 18.3129 17.4529 18.1354C17.4658 17.958 17.4296 17.7804 17.3481 17.6222C17.2666 17.464 17.1431 17.3314 16.9911 17.2389C16.8391 17.1464 16.6646 17.0977 16.4866 17.098H10.6036C10.5149 17.098 10.4278 17.0736 10.352 17.0273C10.2762 16.9811 10.2146 16.9149 10.174 16.8359C10.1334 16.757 10.1153 16.6684 10.1218 16.5798C10.1282 16.4913 10.159 16.4062 10.2106 16.334L14.3536 10.533C14.3982 10.47 14.4572 10.4186 14.5258 10.3833C14.5944 10.348 14.6705 10.3297 14.7476 10.33H27.0956C27.4886 10.33 27.7176 10.775 27.4886 11.094L24.2916 15.57C23.8346 16.21 24.2916 17.1 25.0796 17.1H29.9406C30.3446 17.1 30.5706 17.564 30.3206 17.882L21.1636 29.535Z" fill="#6254FE"></path><mask id="mask0_3_2" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="10" y="10" width="21" height="20"><path d="M21.1636 29.535C21.1017 29.6144 21.0166 29.6725 20.92 29.7012C20.8234 29.7298 20.7204 29.7276 20.6251 29.6947C20.5299 29.6619 20.4474 29.6001 20.389 29.518C20.3307 29.436 20.2994 29.3377 20.2996 29.237V24.834C20.2996 24.5775 20.1978 24.3316 20.0164 24.1502C19.8351 23.9689 19.5891 23.867 19.3326 23.867H14.4706C14.3819 23.867 14.2948 23.8426 14.219 23.7963C14.1432 23.7501 14.0816 23.6839 14.041 23.6049C14.0004 23.526 13.9823 23.4374 13.9888 23.3488C13.9952 23.2603 14.026 23.1752 14.0776 23.103L17.2746 18.628C17.3782 18.4833 17.4399 18.3129 17.4529 18.1354C17.4658 17.958 17.4296 17.7804 17.3481 17.6222C17.2666 17.464 17.1431 17.3314 16.9911 17.2389C16.8391 17.1464 16.6646 17.0977 16.4866 17.098H10.6036C10.5149 17.098 10.4278 17.0736 10.352 17.0273C10.2762 16.9811 10.2146 16.9149 10.174 16.8359C10.1334 16.757 10.1153 16.6684 10.1218 16.5798C10.1282 16.4913 10.159 16.4062 10.2106 16.334L14.3536 10.533C14.3982 10.47 14.4572 10.4186 14.5258 10.3833C14.5944 10.348 14.6705 10.3297 14.7476 10.33H27.0956C27.4886 10.33 27.7176 10.775 27.4886 11.094L24.2916 15.57C23.8346 16.21 24.2916 17.1 25.0796 17.1H29.9406C30.3446 17.1 30.5706 17.564 30.3206 17.882L21.1636 29.535Z" fill="#833BFF"></path></mask><g mask="url(#mask0_3_2)"><g filter="url(#filter0_f_3_2)"><path d="M20.7408 26.1119C20.745 27.4119 17.935 28.475 14.4644 28.4863C10.9939 28.4975 8.17705 27.4527 8.17283 26.1527C8.16861 24.8526 10.9786 23.7895 14.4492 23.7783C17.9197 23.767 20.7365 24.8118 20.7408 26.1119Z" fill="#EDE6FF"></path></g><g filter="url(#filter1_f_3_2)"><path d="M18.7973 18.0605C18.8053 20.5148 13.0998 22.523 6.05378 22.5458C-0.992227 22.5687 -6.71061 20.5976 -6.71858 18.1433C-6.72654 15.6889 -1.02108 13.6808 6.02493 13.6579C13.0709 13.635 18.7893 15.6061 18.7973 18.0605Z" fill="#EDE6FF"></path></g><g filter="url(#filter2_f_3_2)"><path d="M18.8447 17.4381C18.8489 18.7382 13.0191 19.8111 5.82339 19.8344C-1.37229 19.8578 -7.20896 18.8228 -7.21318 17.5227C-7.2174 16.2226 -1.38757 15.1498 5.80811 15.1264C13.0038 15.1031 18.8405 16.1381 18.8447 17.4381Z" fill="#4E14FF"></path></g><g filter="url(#filter3_f_3_2)"><path d="M20.9053 25.1293C20.9095 26.4294 15.0581 27.5022 7.83591 27.5256C0.613678 27.549 -5.24451 26.5141 -5.24872 25.214C-5.25293 23.9139 0.598424 22.841 7.82065 22.8176C15.0429 22.7942 20.9011 23.8292 20.9053 25.1293Z" fill="#4E14FF"></path></g><g filter="url(#filter4_f_3_2)"><path d="M21.561 25.6205C21.5652 26.9206 15.7139 27.9935 8.49167 28.017C1.26948 28.0404 -4.58868 27.0055 -4.5929 25.7054C-4.59712 24.4054 1.2542 23.3324 8.47639 23.309C15.6986 23.2855 21.5567 24.3205 21.561 25.6205Z" fill="#4E14FF"></path></g><g filter="url(#filter5_f_3_2)"><path d="M23.3606 14.7039C23.5547 11.3881 27.9295 8.94703 33.1319 9.25155C38.3344 9.55608 42.3945 12.4909 42.2004 15.8067C42.0063 19.1224 37.6315 21.5635 32.4291 21.259C27.2266 20.9545 23.1665 18.0196 23.3606 14.7039Z" fill="#EDE6FF"></path></g><g filter="url(#filter6_f_3_2)"><path d="M24.0654 16.8853C24.0512 16.0664 28.1532 15.3313 33.2274 15.2436C38.3016 15.1558 42.4265 15.7485 42.4407 16.5674C42.4548 17.3863 38.3529 18.1214 33.2787 18.2091C28.2045 18.2969 24.0796 17.7042 24.0654 16.8853Z" fill="#4E14FF"></path></g><g filter="url(#filter7_f_3_2)"><path d="M24.0654 16.8853C24.0512 16.0664 28.1532 15.3313 33.2274 15.2436C38.3016 15.1558 42.4265 15.7485 42.4407 16.5674C42.4548 17.3863 38.3529 18.1214 33.2787 18.2091C28.2045 18.2969 24.0796 17.7042 24.0654 16.8853Z" fill="#4E14FF"></path></g><g filter="url(#filter8_f_3_2)"><path d="M2.32515 23.7616C3.12749 24.4233 7.32135 20.6626 11.6924 15.362C16.0635 10.0614 18.9565 5.228 18.1541 4.56637C17.3518 3.90474 13.1579 7.66538 8.78688 12.966C4.41583 18.2666 1.52282 23.1 2.32515 23.7616Z" fill="#4E14FF"></path></g><g filter="url(#filter9_f_3_2)"><path d="M22.7441 17.5449C23.5648 18.1836 27.6508 14.306 31.8704 8.8841C36.0901 3.46217 38.8455 -1.45095 38.0248 -2.08966C37.2041 -2.72838 33.1181 1.14919 28.8984 6.57112C24.6788 11.993 21.9234 16.9062 22.7441 17.5449Z" fill="#4E14FF"></path></g><g filter="url(#filter10_f_3_2)"><path d="M24.2638 18.7387C25.8062 19.9392 28.5247 19.0259 30.3357 16.6989C32.1467 14.372 32.3644 11.5124 30.8219 10.312C29.2795 9.11157 26.561 10.0248 24.75 12.3518C22.939 14.6788 22.7213 17.5383 24.2638 18.7387Z" fill="#2BFDD2"></path></g><g filter="url(#filter11_f_3_2)"><path d="M1.6313 36.5293C2.452 37.168 6.53801 33.2904 10.7576 27.8685C14.9773 22.4465 17.7327 17.5334 16.912 16.8947C16.0913 16.256 12.0053 20.1336 7.78563 25.5555C3.56599 30.9774 0.810605 35.8905 1.6313 36.5293Z" fill="#4E14FF"></path></g><g filter="url(#filter12_f_3_2)"><path d="M1.6313 36.5293C2.452 37.168 6.53801 33.2904 10.7576 27.8685C14.9773 22.4465 17.7327 17.5334 16.912 16.8947C16.0913 16.256 12.0053 20.1336 7.78563 25.5555C3.56599 30.9774 0.810605 35.8905 1.6313 36.5293Z" fill="#4E14FF"></path></g><g filter="url(#filter13_f_3_2)"><path d="M17.5773 32.8563C18.4494 33.535 22.5771 29.6899 26.7968 24.268C31.0164 18.846 33.7301 13.9005 32.858 13.2217C31.9859 12.543 27.8582 16.3881 23.6385 21.81C19.4189 27.232 16.7052 32.1775 17.5773 32.8563Z" fill="#4E14FF"></path></g><g filter="url(#filter14_f_3_2)"><path d="M21.6002 31.5389C23.0982 32.7047 26.7882 30.4688 29.842 26.5449C32.8958 22.621 34.1571 18.4949 32.6591 17.3291C31.1611 16.1633 27.4711 18.3991 24.4173 22.3231C21.3635 26.247 20.1022 30.3731 21.6002 31.5389Z" fill="#2BFDD2"></path></g></g><path d="M6.95763 10C3.02563 15.628 3.00263 24.351 6.95763 30H9.61363C5.65963 24.35 5.68363 15.627 9.61363 10H6.95763ZM33.9386 20H36.5956C36.5946 16.407 35.6056 12.816 33.6386 10H30.9826C32.9486 12.816 33.9366 16.407 33.9386 20ZM38.6276 24.907H35.9626C36.1589 24.1665 36.3102 23.4148 36.4156 22.656H33.7586C33.6531 23.4148 33.5019 24.1665 33.3056 24.907H30.6366C30.3961 25.8176 30.0804 26.7067 29.6926 27.565H32.3616C31.9785 28.4179 31.5165 29.2331 30.9816 30H33.6376C34.1725 29.2331 34.6345 28.4179 35.0176 27.565H37.6826C38.0686 26.714 38.3836 25.823 38.6276 24.907Z" fill="#08060D" class="fill-hex-08060D dark:fill-hex-fff"></path><defs><filter id="filter0_f_3_2" x="1.62683" y="17.2322" width="25.6599" height="17.8001" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.273" result="effect1_foregroundBlur_3_2"></feGaussianBlur></filter><filter id="filter1_f_3_2" x="-13.2646" y="7.11168" width="38.6079" height="21.9804" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.273" result="effect1_foregroundBlur_3_2"></feGaussianBlur></filter><filter id="filter2_f_3_2" x="-11.1412" y="11.198" width="33.9139" height="12.5648" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="1.964" result="effect1_foregroundBlur_3_2"></feGaussianBlur></filter><filter id="filter3_f_3_2" x="-9.17672" y="18.8893" width="34.01" height="12.5648" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="1.964" result="effect1_foregroundBlur_3_2"></feGaussianBlur></filter><filter id="filter4_f_3_2" x="-8.5209" y="19.3806" width="34.0099" height="12.5648" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="1.964" result="effect1_foregroundBlur_3_2"></feGaussianBlur></filter><filter id="filter5_f_3_2" x="16.8079" y="2.67989" width="31.9451" height="25.1508" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="3.273" result="effect1_foregroundBlur_3_2"></feGaussianBlur></filter><filter id="filter6_f_3_2" x="20.1374" y="11.307" width="26.2313" height="10.8388" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="1.964" result="effect1_foregroundBlur_3_2"></feGaussianBlur></filter><filter id="filter7_f_3_2" x="20.1374" y="11.307" width="26.2313" height="10.8388" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="1.964" result="effect1_foregroundBlur_3_2"></feGaussianBlur></filter><filter id="filter8_f_3_2" x="-1.73649" y="0.562875" width="23.9523" height="27.2023" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="1.964" result="effect1_foregroundBlur_3_2"></feGaussianBlur></filter><filter id="filter9_f_3_2" x="18.6715" y="-6.08651" width="23.4259" height="27.6282" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="1.964" result="effect1_foregroundBlur_3_2"></feGaussianBlur></filter><filter id="filter10_f_3_2" x="19.3075" y="5.85539" width="16.4707" height="17.3399" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="1.964" result="effect1_foregroundBlur_3_2"></feGaussianBlur></filter><filter id="filter11_f_3_2" x="-2.44132" y="12.8979" width="23.4259" height="27.6282" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="1.964" result="effect1_foregroundBlur_3_2"></feGaussianBlur></filter><filter id="filter12_f_3_2" x="-2.44132" y="12.8979" width="23.4259" height="27.6282" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="1.964" result="effect1_foregroundBlur_3_2"></feGaussianBlur></filter><filter id="filter13_f_3_2" x="13.4863" y="9.21607" width="23.4628" height="27.6459" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="1.964" result="effect1_foregroundBlur_3_2"></feGaussianBlur></filter><filter id="filter14_f_3_2" x="17.0414" y="13.0922" width="20.1765" height="22.6836" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feFlood flood-opacity="0" result="BackgroundImageFix"></feFlood><feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"></feBlend><feGaussianBlur stdDeviation="1.964" result="effect1_foregroundBlur_3_2"></feGaussianBlur></filter></defs>`,5)]])}var Co=ro(bo,[[`render`,So]]),wo={key:0,class:`fixed bottom-4 right-4 z-2147483647 flex flex-col gap-2 pointer-events-auto w-72`},To=[`onClick`],Eo=[`onClick`],Do=_({__name:`ToastOverlay`,props:{context:{}},setup(e){let t=e;t.context&&M(t.context);let n=j();function r(e){oe(e),t.context?.docks.switchEntry(`~logs`)}return(e,t)=>c(n).length>0?(d(),C(`div`,wo,[k(ue,{"enter-active-class":`transition-all duration-300 ease-out`,"leave-active-class":`transition-all duration-200 ease-in`,"enter-from-class":`opacity-0 translate-x-4`,"leave-to-class":`opacity-0 translate-x-4`},{default:f(()=>[(d(!0),C(E,null,ne(c(n),e=>(d(),C(`div`,{key:e.id,class:`bg-glass border color-base border-base shadow-xl cursor-pointer hover:bg-active transition-colors rounded`,onClick:t=>r(e.id)},[k(le,{entry:e.entry,compact:``,class:`px-3 py-2.5`},{actions:f(()=>[y(`button`,{class:`flex-none op30 hover:op100 p-0.5 rounded hover:bg-active transition`,onClick:se(t=>c(oe)(e.id),[`stop`])},[...t[0]||=[y(`div`,{class:`i-ph-x w-3 h-3`},null,-1)]],8,Eo)]),_:2},1032,[`entry`])],8,To))),128))]),_:1})])):T(``,!0)}}),Oo={class:`w-full h-full flex flex-col items-center justify-center p20`},ko={class:`max-w-150 flex flex-col items-center justify-center gap-2`},Ao=_({__name:`ViewBuiltinClientAuthNotice`,props:{context:{}},setup(e){return(e,t)=>(d(),C(`div`,Oo,[y(`div`,ko,[k(Co,{class:`w-20 h-20`}),t[0]||=y(`h1`,{class:`text-2xl font-bold text-violet mb2`},` Vite DevTools is Unauthorized `,-1),t[1]||=y(`p`,{class:`op75`},` Vite DevTools offers advanced features that can access your server, view your filesystem, and execute commands. `,-1),t[2]||=y(`p`,{class:`op75`},` To protect your project from unauthorized access, please authorize your browser before proceeding. `,-1),t[3]||=y(`p`,{class:`font-bold bg-green:5 p1 px3 rounded mt8 text-green`},` Check your terminal for the authorization prompt and come back. `,-1)])]))}}),jo=Object.freeze({type:`~builtin`,id:`~client-auth-notice`,title:`Unauthorized`,icon:`i-fluent-emoji-flat-warning`}),Mo=Object.freeze([jo]),No={"~viteplus":-1e3,default:0,app:100,framework:200,web:300,advanced:400,"~builtin":1e3};function Po(e,t,n){let{docksHidden:r,docksCategoriesHidden:i,docksCustomOrder:a,docksPinned:o}=t,{includeHidden:s=!1}=n??{},c=new Map;for(let t of e){if(t.isHidden&&!s||!s&&r.includes(t.id))continue;let e=t.category??`default`;!s&&i.includes(e)||(c.has(e)||c.set(e,[]),c.get(e).push(t))}let l=Array.from(c.entries()).sort(([e],[t])=>{let n=No[e]||0,r=No[t]||0;return r===n?t.localeCompare(e):n-r});return l.forEach(([e,t])=>{t.sort((e,t)=>{let n=o.includes(e.id);if(n!==o.includes(t.id))return n?-1:1;let r=a[e.id]??0,i=a[t.id]??0;if(r!==i)return r-i;let s=e.defaultOrder??0,c=t.defaultOrder??0;return c===s?t.title.localeCompare(e.title):s-c})}),l}function Fo(){return{width:80,height:80,top:0,left:10,position:`bottom`,open:!1,inactiveTimeout:3e3}}function Io(e,n){let r=_e(),a=h({entryMeta:e,get isActive(){return n.value?.id===e.id},domElements:{},events:t(r)});return i(()=>n.value?.id,t=>{t===e.id?r.emit(`entry:activated`):r.emit(`entry:deactivated`)},{immediate:!0}),i(()=>a.domElements.iframe,e=>{e&&r.emit(`dom:iframe:mounted`,e)},{immediate:!0}),i(()=>a.domElements.panel,e=>{e&&r.emit(`dom:panel:mounted`,e)},{immediate:!0}),a}function Lo(e){let t=m(e.value());return e.on(`updated`,e=>{t.value=e}),t}var Ro=new WeakMap;async function zo(e){if(Ro.has(e))return Ro.get(e);let t=Lo(await e.sharedState.get(`devtoolskit:internal:docks`,{initialValue:[]}));return Ro.set(e,t),t}var Bo={class:`h-full w-full overflow-hidden`},Vo={class:`h-full w-full overflow-auto p10`},Ho={class:`max-w-200 mx-auto`},Uo={class:`mb-8`},Wo={class:`flex flex-col gap-4`},Go={class:`flex items-center gap-2 px-4 py-3 bg-gray/5 cursor-pointer select-none border-b border-base`},Ko=[`onClick`],qo={class:`font-medium capitalize`},Jo={class:`text-xs op40`},Yo=[`onClick`],Xo=[`title`,`onClick`],Zo={key:0,class:`i-ph-check-bold text-xs`},Qo={class:`flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity`},$o=[`onClick`],es=[`onClick`],ts=[`title`,`onClick`],ns={class:`border-t border-base pt-6 mb-8`},rs={class:`flex flex-col gap-3`},is={class:`flex items-center gap-3 cursor-pointer group`},as={class:`flex items-center gap-3 cursor-pointer group`},os=_({__name:`ViewBuiltinSettings`,props:{context:{},entry:{}},setup(e){let t=e,n=t.context.docks.settings,r=Lo(n),i=D(()=>Po(t.context.docks.entries,n.value(),{includeHidden:!0}));function a(e){return{"~viteplus":`Vite+`,default:`Default`,app:`App`,framework:`Framework`,web:`Web`,advanced:`Advanced`,"~builtin":`Built-in`}[e]||e}function o(e,t){let i=r.value.docksHidden.includes(e);t??i?n.mutate(t=>{t.docksHidden=t.docksHidden.filter(t=>t!==e)}):n.mutate(t=>{t.docksHidden=[...t.docksHidden,e]})}function s(e,t){let i=r.value.docksCategoriesHidden.includes(e);t??i?n.mutate(t=>{t.docksCategoriesHidden=t.docksCategoriesHidden.filter(t=>t!==e)}):n.mutate(t=>{t.docksCategoriesHidden=[...t.docksCategoriesHidden,e]})}function l(e){r.value.docksPinned.includes(e)?n.mutate(t=>{t.docksPinned=t.docksPinned.filter(t=>t!==e)}):n.mutate(t=>{t.docksPinned=[...t.docksPinned,e]})}function u(e){return r.value.docksCustomOrder[e]!==void 0}function f(e,t,r){let a=i.value.find(([t])=>t===e);if(!a)throw Error(`Category ${e} not found`);let o=[...a[1]],s=o.findIndex(e=>e.id===t),c=s+r;if(c<0||c>=o.length)throw Error(`Invalid new index ${c} for category ${e}`);o.splice(c,0,o.splice(s,1)[0]),a[1]=o,n.mutate(e=>{o.forEach((t,n)=>{e.docksCustomOrder[t.id]=n})})}function p(e){let t=i.value.find(([t])=>t===e);return t?t[1].some(e=>u(e.id)):!1}function m(e){let t=i.value.find(([t])=>t===e);t&&n.mutate(e=>{t[1].forEach(t=>{delete e.docksCustomOrder[t.id]})})}function h(){confirm(`Reset all dock settings to defaults?`)&&n.mutate(()=>ge())}return(e,t)=>(d(),C(`div`,Bo,[y(`div`,Vo,[y(`div`,Ho,[t[13]||=y(`h1`,{class:`text-xl font-semibold mb-6 flex items-center gap-2 op85`},[y(`div`,{class:`i-ph-gear-duotone text-2xl`}),g(` DevTools Settings `)],-1),y(`section`,Uo,[t[6]||=y(`h2`,{class:`text-lg font-medium mb-4 op75`},` Dock Entries `,-1),t[7]||=y(`p`,{class:`text-sm op50 mb-4`},` Manage visibility and order of dock entries. Hidden entries will not appear in the dock bar. `,-1),y(`div`,Wo,[(d(!0),C(E,null,ne(i.value,([e,n])=>(d(),C(`div`,{key:e,class:O([`border border-base rounded-lg overflow-hidden transition-opacity`,c(r).docksCategoriesHidden.includes(e)?`op40`:``])},[y(`div`,Go,[y(`button`,{class:O([`w-5 h-5 flex items-center justify-center rounded transition-colors`,c(r).docksCategoriesHidden.includes(e)?`bg-gray/20`:`bg-lime/20 text-lime`]),onClick:t=>s(e)},[y(`div`,{class:O([`transition-transform`,c(r).docksCategoriesHidden.includes(e)?`i-ph-eye-slash text-sm op50`:`i-ph-check-bold text-xs`])},null,2)],10,Ko),y(`span`,qo,S(a(e)),1),y(`span`,Jo,`(`+S(n.length)+`)`,1),t[3]||=y(`span`,{class:`flex-auto`},null,-1),p(e)?(d(),C(`button`,{key:0,class:`w-6 h-6 flex items-center justify-center rounded hover:bg-gray/20 transition-colors`,title:`Reset custom order`,onClick:t=>m(e)},[...t[2]||=[y(`div`,{class:`i-ph-arrows-counter-clockwise-duotone text-sm op60`},null,-1)]],8,Yo)):T(``,!0)]),y(`div`,null,[(d(!0),C(E,null,ne(n,(i,a)=>(d(),C(`div`,{key:i.id,class:O([`flex items-center gap-3 px-4 py-2.5 hover:bg-gray/5 transition-colors group border-b border-base border-t-0`,c(r).docksHidden.includes(i.id)?`op40`:``])},[y(`button`,{class:O([`w-6 h-6 flex items-center justify-center rounded border border-transparent hover:border-base transition-colors shrink-0`,c(r).docksHidden.includes(i.id)?`op50`:``]),title:c(r).docksHidden.includes(i.id)?`Show`:`Hide`,onClick:e=>o(i.id)},[y(`div`,{class:O([`w-4 h-4 rounded flex items-center justify-center transition-colors`,c(r).docksHidden.includes(i.id)?`bg-gray/30`:`bg-lime/20 text-lime`])},[c(r).docksHidden.includes(i.id)?T(``,!0):(d(),C(`div`,Zo))],2)],10,Xo),k(lo,{icon:i.icon,title:i.title,class:O([`w-5 h-5 shrink-0`,c(r).docksHidden.includes(i.id)?`saturate-0`:``])},null,8,[`icon`,`title`,`class`]),y(`span`,{class:O([`flex-1 truncate`,c(r).docksHidden.includes(i.id)?`line-through op60`:``])},S(i.title),3),y(`div`,Qo,[a>0?(d(),C(`button`,{key:0,class:`w-6 h-6 flex items-center justify-center rounded hover:bg-gray/20 transition-colors`,title:`Move up (higher priority)`,onClick:t=>f(e,i.id,-1)},[...t[4]||=[y(`div`,{class:`i-ph-caret-up text-sm op60`},null,-1)]],8,$o)):T(``,!0),a<n.length-1?(d(),C(`button`,{key:1,class:`w-6 h-6 flex items-center justify-center rounded hover:bg-gray/20 transition-colors`,title:`Move down (lower priority)`,onClick:t=>f(e,i.id,1)},[...t[5]||=[y(`div`,{class:`i-ph-caret-down text-sm op60`},null,-1)]],8,es)):T(``,!0)]),y(`button`,{class:O([`w-7 h-7 flex items-center justify-center rounded hover:bg-gray/20 transition-colors shrink-0`,c(r).docksPinned.includes(i.id)?`text-amber`:`op40 hover:op70`]),title:c(r).docksPinned.includes(i.id)?`Unpin`:`Pin`,onClick:e=>l(i.id)},[y(`div`,{class:O([c(r).docksPinned.includes(i.id)?`i-ph-push-pin-fill rotate--45`:`i-ph-push-pin`,`text-base`])},null,2)],10,ts)],2))),128))])],2))),128))])]),y(`section`,ns,[t[10]||=y(`h2`,{class:`text-lg font-medium mb-4 op75`},` Appearance `,-1),y(`div`,rs,[y(`label`,is,[y(`button`,{class:O([`w-10 h-6 rounded-full transition-colors relative shrink-0`,c(r).showIframeAddressBar?`bg-lime`:`bg-gray/30`]),onClick:t[0]||=e=>c(n).mutate(e=>{e.showIframeAddressBar=!e.showIframeAddressBar})},[y(`div`,{class:O([`absolute top-1 w-4 h-4 rounded-full bg-white shadow transition-transform`,c(r).showIframeAddressBar?`translate-x-5`:`translate-x-1`])},null,2)],2),t[8]||=y(`div`,{class:`flex flex-col`},[y(`span`,{class:`text-sm`},`Show iframe address bar`),y(`span`,{class:`text-xs op50`},`Display navigation controls and URL bar for iframe views`)],-1)]),y(`label`,as,[y(`button`,{class:O([`w-10 h-6 rounded-full transition-colors relative shrink-0`,c(r).closeOnOutsideClick?`bg-lime`:`bg-gray/30`]),onClick:t[1]||=e=>c(n).mutate(e=>{e.closeOnOutsideClick=!e.closeOnOutsideClick})},[y(`div`,{class:O([`absolute top-1 w-4 h-4 rounded-full bg-white shadow transition-transform`,c(r).closeOnOutsideClick?`translate-x-5`:`translate-x-1`])},null,2)],2),t[9]||=y(`div`,{class:`flex flex-col`},[y(`span`,{class:`text-sm`},`Close panel on outside click`),y(`span`,{class:`text-xs op50`},`Close the DevTools panel when clicking outside of it (embedded mode only)`)],-1)])])]),y(`section`,{class:`border-t border-base pt-6`},[t[12]||=y(`h2`,{class:`text-lg font-medium mb-4 op75`},` Reset `,-1),y(`button`,{class:`px-4 py-2 rounded bg-red/10 text-red hover:bg-red/20 transition-colors flex items-center gap-2`,onClick:h},[...t[11]||=[y(`div`,{class:`i-ph-arrow-counter-clockwise`},null,-1),g(` Reset Dock Settings `,-1)]])])])])]))}}),ss=_({__name:`ViewCustomRenderer`,props:{context:{},entry:{},persistedDoms:{},divStyle:{}},setup(e){let t=e,n=o(!0),a=u(`viewFrame`);return p(()=>{let e=t.persistedDoms.getOrCreateHolder(t.entry.id,`div`);e.element.style.boxShadow=`none`,e.element.style.outline=`none`,Object.assign(e.element.style,t.divStyle);let r=t.context.docks.getStateById(t.entry.id);r&&(r.domElements.panel=e.element),e.mount(a.value),n.value=!1,ie(()=>{e.update()}),i(()=>t.context.panel,()=>{e.update()},{deep:!0}),s(()=>{e.element.style.pointerEvents=t.context.panel.isDragging||t.context.panel.isResizing?`none`:`auto`},{flush:`sync`})}),r(()=>{t.persistedDoms.getHolder(t.entry.id,`div`)?.unmount()}),(e,t)=>(d(),C(`div`,{ref_key:`viewFrame`,ref:a,class:`vite-devtools-view-custom-renderer w-full h-full flex items-center justify-center`},null,512))}}),cs={class:`w-full h-full flex flex-col`},ls={key:1,class:`flex items-center gap-1 px-2 py-1 rounded text-xs bg-amber/10 text-amber border border-amber/20 shrink-0`,title:`Cross-origin iframe - navigation controls unavailable`},us={class:`flex-1 flex items-center h-8 px-2.5 rounded bg-gray/10 border border-transparent hover:border-gray/20 focus-within:border-gray/30 transition-colors`},ds=[`value`,`readonly`],fs={key:0,class:`i-ph-circle-notch text-sm op40 ml-2 shrink-0 animate-spin`},ps={key:0,class:`op50 z--1`},ms=50,hs=_({__name:`ViewIframe`,props:{context:{},entry:{},persistedDoms:{},iframeStyle:{}},setup(e){let t=e,n=Lo(t.context.docks.settings),a=D(()=>n.value.showIframeAddressBar??!0),c=o(!0),l=o(!1),f=u(`viewFrame`),m=u(`urlInput`),h=o(t.entry.url),g=o(t.entry.url),_=o(!1),v=D(()=>t.persistedDoms.getHolder(t.entry.id,`iframe`)?.element),x=D(()=>{try{return window.location.origin}catch{return``}}),S=D(()=>{try{return new URL(h.value).origin!==x.value}catch{return!0}}),ee=D(()=>{if(S.value)return h.value;try{let e=new URL(h.value);return e.pathname+e.search+e.hash}catch{return h.value}});function te(){try{let e=v.value;e?.contentWindow?.location?.href&&(h.value=e.contentWindow.location.href)}catch{}}function ne(e){let t=v.value;if(!t)return;let n=e.trim();n&&!/^https?:\/\//i.test(n)&&(n=n.startsWith(`/`)?`${window.location.origin}${n}`:`http://${n}`),h.value=n,g.value=n,t.src=n,l.value=!0}function w(){_.value=!1,g.value!==h.value&&ne(g.value)}function re(){_.value=!0,g.value=h.value,ie(()=>{m.value?.select()})}function O(){_.value=!1,g.value=h.value}function k(e){e.key===`Escape`&&(_.value=!1,g.value=h.value,m.value?.blur())}function ae(){try{v.value?.contentWindow?.history.back()}catch{}}function oe(){let e=v.value;if(!e)return;l.value=!0;let t=e.src;e.src=``,e.src=t}return p(()=>{t.persistedDoms.getHolder(t.entry.id,`iframe`)&&te();let e=t.persistedDoms.getOrCreateHolder(t.entry.id,`iframe`);e.element.style.boxShadow=`none`,e.element.style.outline=`none`,e.element.src||(e.element.src=t.entry.url),e.element.addEventListener(`load`,()=>{l.value=!1,te()});let n=t.context.docks.getStateById(t.entry.id);n&&(n.domElements.iframe=e.element),s(()=>{Object.assign(e.element.style,t.iframeStyle),a.value?(e.element.style.marginTop=`${ms}px`,e.element.style.borderTopLeftRadius=`0px`,e.element.style.borderTopRightRadius=`0px`):(e.element.style.marginTop=`0px`,e.element.style.borderTopLeftRadius=``,e.element.style.borderTopRightRadius=``)}),i(()=>t.context.panel,()=>{e.update()},{deep:!0}),s(()=>{e.element.style.pointerEvents=t.context.panel.isDragging||t.context.panel.isResizing?`none`:`auto`},{flush:`sync`}),e.mount(f.value),c.value=!1,ie(()=>{e.update()})}),r(()=>{t.persistedDoms.getHolder(t.entry.id,`iframe`)?.unmount()}),(e,t)=>(d(),C(`div`,cs,[a.value?(d(),C(`div`,{key:0,class:`flex-none px-2 w-full flex items-center gap-1 border rounded-t-md border-base border-b-0 bg-gray/5`,style:b({height:`${ms}px`})},[S.value?(d(),C(`div`,ls,[...t[3]||=[y(`div`,{class:`i-ph-globe text-sm`},null,-1),y(`span`,null,`Cross-Origin`,-1)]])):(d(),C(E,{key:0},[y(`button`,{class:`w-7 h-7 flex items-center justify-center rounded hover:bg-gray/15 transition-colors shrink-0`,title:`Back`,onClick:ae},[...t[1]||=[y(`div`,{class:`i-ph-caret-left text-base op60`},null,-1)]]),y(`button`,{class:`w-7 h-7 flex items-center justify-center rounded hover:bg-gray/15 transition-colors shrink-0`,title:`Refresh`,onClick:oe},[...t[2]||=[y(`div`,{class:`i-ph-arrow-clockwise text-base op60`},null,-1)]])],64)),y(`div`,us,[y(`input`,{ref:`urlInput`,value:_.value?g.value:ee.value,type:`text`,class:`flex-1 bg-transparent outline-none text-sm font-mono`,placeholder:`Enter URL...`,readonly:S.value,onInput:t[0]||=e=>g.value=e.target.value,onFocus:re,onBlur:O,onKeydown:[k,ce(w,[`enter`])]},null,40,ds),l.value?(d(),C(`div`,fs)):T(``,!0)])],4)):T(``,!0),y(`div`,{ref_key:`viewFrame`,ref:f,class:`vite-devtools-view-iframe w-full h-full flex-1 items-center justify-center`},[c.value?(d(),C(`div`,ps,` Loading iframe... `)):T(``,!0)],512)]))}}),gs={class:`flex flex-col gap-4 items-center justify-center h-full relative`},_s={class:`text-2xl font-bold`},vs=[`disabled`],ys=_({__name:`ViewLauncher`,props:{context:{},entry:{}},setup(e){let t=e;function n(){t.context.rpc.call(`devtoolskit:internal:docks:on-launch`,t.entry.id)}let r=D(()=>t.entry.launcher.status||`idle`),i={error:`i-ph-warning-duotone`,idle:`i-ph-rocket-launch-duotone`,loading:`i-svg-spinners-8-dots-rotate`,success:`i-ph-check-duotone`},a=D(()=>r.value===`idle`?t.entry.launcher.buttonStart||`Launch`:r.value===`loading`?t.entry.launcher.buttonLoading||`Loading...`:r.value===`error`?`ERROR`:r.value===`success`?`Success`:`UNKNOWN STATUS: ${r.value}`);return(t,o)=>(d(),C(`div`,gs,[k(lo,{icon:e.entry.launcher.icon||e.entry.icon,class:`w-10 h-10`},null,8,[`icon`]),y(`h1`,_s,S(e.entry.launcher.title),1),y(`p`,null,S(e.entry.launcher.description),1),y(`button`,{class:`bg-lime6 px4 py1 rounded hover:bg-lime7 transition-all duration-300 flex gap-2 items-center disabled:bg-gray6! disabled:pointer-events-none`,disabled:r.value!==`idle`,onClick:n},[y(`div`,{class:O(i[r.value])},null,2),y(`div`,null,S(a.value),1)],8,vs)]))}}),bs={key:4},xs={key:5},Ss=_({__name:`ViewEntry`,props:{context:{},entry:{},persistedDoms:{},iframeStyle:{},divStyle:{}},setup(e){let t=ae(()=>fi(()=>import(`./ViewBuiltinTerminals-Dkd5qdlN.js`),__vite__mapDeps([3,2]),import.meta.url)),n=ae(()=>fi(()=>import(`./ViewBuiltinLogs-B8M7lPbt.js`),__vite__mapDeps([4,2,1]),import.meta.url));return(r,i)=>(d(),x(v,null,{fallback:f(()=>[...i[0]||=[y(`div`,null,` Loading... `,-1)]]),default:f(()=>[e.entry.type===`~builtin`?(d(),C(E,{key:0},[e.entry.id===`~terminals`?(d(),x(c(t),{key:0,context:e.context,entry:e.entry},null,8,[`context`,`entry`])):e.entry.id===`~logs`?(d(),x(c(n),{key:1,context:e.context,entry:e.entry},null,8,[`context`,`entry`])):e.entry.id===`~settings`?(d(),x(os,{key:2,context:e.context,entry:e.entry},null,8,[`context`,`entry`])):e.entry.id===`~client-auth-notice`?(d(),x(Ao,{key:3,context:e.context},null,8,[`context`])):(d(),C(`div`,bs,` Unknown builtin entry: `+S(e.entry),1))],64)):e.entry.type===`action`?(d(),C(E,{key:1},[],64)):e.entry.type===`iframe`?(d(),x(hs,{key:2,context:e.context,entry:e.entry,"persisted-doms":e.persistedDoms,"iframe-style":e.iframeStyle},null,8,[`context`,`entry`,`persisted-doms`,`iframe-style`])):e.entry.type===`custom-render`?(d(),x(ss,{key:3,context:e.context,entry:e.entry,"persisted-doms":e.persistedDoms,"div-style":e.divStyle},null,8,[`context`,`entry`,`persisted-doms`,`div-style`])):e.entry.type===`launcher`?(d(),x(ys,{key:4,context:e.context,entry:e.entry},null,8,[`context`,`entry`])):(d(),C(`div`,xs,` Unknown entry: `+S(e.entry),1))]),_:1}))}}),Cs={key:0,class:`h-screen w-screen of-hidden`},ws={key:1,class:`h-screen w-screen of-hidden grid cols-[max-content_1fr]`},Ts={class:`border-r border-base flex flex-col`},Es={class:`p2 border-b border-base flex`},Ds={class:`transition duration-200 p2`},Os=_({__name:`DockStandalone`,props:{context:{}},setup(e){let n=e.context,r=u(`viewsContainer`),a=t(new Ui(r)),s=o(n.rpc.isTrusted);n.rpc.events.on(`rpc:is-trusted:updated`,e=>{s.value=e}),i(()=>n.docks.entries,()=>{n.docks.selectedId||=n.docks.entries[0]?.id??null},{immediate:!0});let l=D(()=>zi(`standalone`)?n.docks.groupedEntries:Bi(n.docks.groupedEntries));function p(e){e&&n.docks.switchEntry(e)}return(e,t)=>(d(),C(E,null,[s.value?(d(),C(`div`,ws,[y(`div`,Ts,[y(`div`,Es,[k(Co,{class:`w-7 h-7 ma`})]),y(`div`,Ds,[k(ho,{context:c(n),groups:l.value,"is-vertical":!1,selected:c(n).docks.selected,onSelect:t[0]||=e=>p(e?.id)},{separator:f(()=>[...t[1]||=[y(`div`,{class:`border-base border-b w-full my-2`},null,-1)]]),_:1},8,[`context`,`groups`,`selected`])])]),y(`div`,null,[y(`div`,{id:`vite-devtools-views-container`,ref_key:`viewsContainer`,ref:r,class:`pointer-events-auto`},null,512),c(n).docks.selected&&r.value?(d(),x(Ss,{key:c(n).docks.selected.id,entry:c(n).docks.selected,context:c(n),"persisted-doms":c(a)},null,8,[`entry`,`context`,`persisted-doms`])):T(``,!0)])])):(d(),C(`div`,Cs,[k(Ao,{context:c(n)},null,8,[`context`])])),k(yo),k(Do,{context:c(n)},null,8,[`context`])],64))}});function ks(e,t){let n=t;return{get entry(){return n},get id(){return n.id},async update(t){let r=await e.call(`devtoolskit:internal:logs:update`,n.id,t);return r&&(n=r),r??void 0},async dismiss(){await e.call(`devtoolskit:internal:logs:remove`,n.id)}}}function As(e){return{async add(t){return ks(e,await e.call(`devtoolskit:internal:logs:add`,t))},async remove(t){await e.call(`devtoolskit:internal:logs:remove`,t)},async clear(){await e.call(`devtoolskit:internal:logs:clear`)}}}async function js(e){let t=e.rpc.connectionMeta.backend===`static`?[`${de}${me}`,he]:[he],n=[];for(let e of t)try{return await fi(()=>import(e),[],import.meta.url)}catch(e){n.push(e)}throw Error(`[VITE DEVTOOLS] Failed to load imports map module`,{cause:n})}function Ms(e,t){let n=`${e.type}:${e.id}`;return js(t).then(e=>{let r=e.importsMap[n];return r?r().then(e=>e(t)):Promise.reject(Error(`[VITE DEVTOOLS] No import found for id: ${n}`))}).catch(e=>(console.error(`[VITE DEVTOOLS] Error executing import action`,e),Promise.reject(e)))}var Ns=new Map;function Ps(e,t){if(e.type!==`action`&&Ns.has(e.id))return Ns.get(e.id);let n=Ms(e,t);return e.type!==`action`&&Ns.set(e.id,n),n}var Fs=new WeakMap;async function Is(e,n,r){if(Fs.has(n))return Fs.get(n);let i=await zo(n),c=o(null),l=D(()=>i.value.find(e=>e.id===c.value)??Mo.find(e=>e.id===c.value)??null),u=h(new Map);s(()=>{for(let e of i.value){if(u.has(e.id)){u.get(e.id).entryMeta=e;continue}u.set(e.id,Io(e,l))}}),r||=o(Fo());let d,f=async(t=null)=>{if(t==null)return c.value=null,!0;if(t===`~client-auth-notice`)return c.value=t,r.value.open=!0,!0;if(t===`~popup`)return Vi(d),!0;let o=i.value.find(e=>e.id===t);if(!o||o.type===`action`&&await Ri(e,o.id)!=null)return!1;if(o.type===`action`||o.type===`custom-render`||o.type===`iframe`&&o.clientScript){let e=u.get(t);await Ps(o,h({...a(d),current:e,logs:As(n)}))}return c.value=o.id,r.value.open=!0,!0},p=async e=>c.value===e?f(null):f(e),m,g=t(await(async()=>(m||=n.sharedState.get(`devtoolskit:internal:user-settings`,{initialValue:ge()}),m))()),_=Lo(g),v=D(()=>Po(i.value,_.value));return d=h({panel:{store:r,isDragging:!1,isResizing:!1,isVertical:D(()=>r.value.position===`left`||r.value.position===`right`)},docks:{selectedId:c,selected:l,entries:i,entryToStateMap:t(u),groupedEntries:v,settings:g,getStateById:e=>u.get(e),switchEntry:f,toggleEntry:p},rpc:n,clientType:e}),Li(e,async e=>{let t=i.value.find(t=>t.id===e);return!t||t.type!==`action`?!1:f(t.id)}),Fs.set(n,d),d}var Ls=_({__name:`App`,async setup(e){let t,n,r=([t,n]=l(()=>$r()),t=await t,n(),t);console.log(`[VITE DEVTOOLS] RPC`,r);let i=([t,n]=l(()=>Is(`standalone`,r)),t=await t,n(),t);return(e,t)=>(d(),x(Os,{context:c(i)},null,8,[`context`]))}});A({render:()=>n(v,{},{default:()=>n(Ls),fallback:()=>n(`div`,`Loading...`)})}).mount(`#app`);export{lo as n,Os as t};
|
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>Vite DevTools</title>
|
|
7
7
|
<meta name="description" content="Vite DevTools" />
|
|
8
|
-
<script type="module" crossorigin src="./assets/index-
|
|
9
|
-
<link rel="
|
|
8
|
+
<script type="module" crossorigin src="./assets/index-odNIfapG.js"></script>
|
|
9
|
+
<link rel="modulepreload" crossorigin href="./assets/dist-ZC9UAo6H.js">
|
|
10
|
+
<link rel="modulepreload" crossorigin href="./assets/LogItem-B-ayIBi6.js">
|
|
11
|
+
<link rel="stylesheet" crossorigin href="./assets/index-6F2y1lxr.css">
|
|
10
12
|
</head>
|
|
11
|
-
<body class="font-sans
|
|
13
|
+
<body class="font-sans">
|
|
12
14
|
<div id="app"></div>
|
|
13
15
|
</body>
|
|
14
16
|
</html>
|