@vitejs/devtools 0.1.10 → 0.1.13
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/{DockStandalone-CX4RwLuJ.js → DockStandalone-kfuGuU1K.js} +128 -21
- package/dist/{LogItem-Ca0SsU39.js → LogItem-DOamSzjc.js} +1 -1
- package/dist/{ViewBuiltinLogs-B_CLlali.js → ViewBuiltinLogs-BW-Z3LV1.js} +35 -25
- package/dist/{ViewBuiltinTerminals-ZrMObMte.js → ViewBuiltinTerminals-D_aHYGk9.js} +1 -1
- package/dist/{ViewJsonRender-Cc5BPfnv.js → ViewJsonRender-BlN5HDyU.js} +1 -1
- package/dist/{build-static-Cb3vKjJS.js → build-static-SRf6Mx0K.js} +4 -4
- package/dist/cli-commands.js +8 -5
- package/dist/client/inject.js +3 -3
- package/dist/client/standalone/assets/DockIcon-Bn9P0BA3.js +1 -0
- package/dist/client/standalone/assets/DockStandalone-BNVMXM6t.js +3 -0
- package/dist/client/standalone/assets/DockStandalone-GABFNqKk.js +1 -0
- package/dist/client/standalone/assets/{LogItem-BnVhub2j.js → LogItem-B2zhdfw_.js} +1 -1
- package/dist/client/standalone/assets/ViewBuiltinLogs-Bv93zOX9.js +1 -0
- package/dist/client/standalone/assets/{ViewBuiltinTerminals-DqaYBA6Q.js → ViewBuiltinTerminals-DPB8d-Q0.js} +4 -4
- package/dist/client/standalone/assets/{ViewJsonRender-De5eeIha.js → ViewJsonRender-CSnziLMr.js} +1 -1
- package/dist/client/standalone/assets/dist-DIiIv9-S.js +5 -0
- package/dist/client/standalone/assets/index-C05Px9az.css +1 -0
- package/dist/client/standalone/assets/index-C9nheAgG.js +1 -0
- package/dist/client/standalone/assets/runtime-core.esm-bundler-Dfaj58fA.js +1 -0
- package/dist/client/standalone/index.html +8 -6
- package/dist/client/webcomponents.js +3 -3
- package/dist/{context-BWju7fup.js → context-WJ5shSfy.js} +564 -506
- package/dist/{dist-CCdqIez-.js → dist-DD29zy1v.js} +390 -5
- package/dist/index.d.ts +90 -87
- package/dist/index.js +3 -3
- package/dist/{plugins-Dhpm6Ql_.js → plugins-D8NH18dj.js} +6 -4
- package/dist/{popup-DgYOsFy3.js → popup-D4DzCx7h.js} +1 -1
- package/dist/{server-DSh-GQIq.js → server-CE1QMUPY.js} +4 -4
- package/dist/server-Cz5aS6Hb.js +2 -0
- package/dist/{server-ZWEvQMOm.js → server-kLW_T-bo.js} +3 -3
- package/dist/{standalone-D_6Gsoqw.js → standalone-eqACht_F.js} +2 -2
- package/package.json +17 -14
- package/dist/client/standalone/assets/DockStandalone-BvXvOkmY.js +0 -1
- package/dist/client/standalone/assets/ViewBuiltinLogs-rU-E-8qT.js +0 -1
- package/dist/client/standalone/assets/dist-CAaP5Isp.js +0 -1
- package/dist/client/standalone/assets/index-2_yFTdkG.js +0 -3
- package/dist/client/standalone/assets/index-DtZFMvER.css +0 -1
- package/dist/client/standalone/assets/runtime-core.esm-bundler-Bvz2jy0O.js +0 -1
- package/dist/server-BQ4s1VXj.js +0 -2
- /package/dist/client/standalone/assets/{iconify-C-CPDXMf.js → iconify-DTCjcGxu.js} +0 -0
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DockStandalone-BvXvOkmY.js","./LogItem-BnVhub2j.js","./runtime-core.esm-bundler-Bvz2jy0O.js","./dist-CAaP5Isp.js","./ViewBuiltinTerminals-DqaYBA6Q.js","./ViewBuiltinLogs-rU-E-8qT.js","./ViewJsonRender-De5eeIha.js","./iconify-C-CPDXMf.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{$ as e,C as t,E as n,F as r,H as i,I as a,J as o,K as s,L as c,M as l,O as u,P as d,R as f,W as p,Z as m,_t as h,a as g,c as _,d as v,f as y,h as b,k as x,l as S,m as C,n as w,o as T,p as E,r as D,s as O,v as k,vt as A,w as j,x as M,yt as N}from"./runtime-core.esm-bundler-Bvz2jy0O.js";import{c as ee,d as te,h as P,l as ne,m as re,n as ie,p as ae,s as oe,t as se,u as ce}from"./LogItem-BnVhub2j.js";import{a as le,n as ue,r as de,t as fe}from"./dist-CAaP5Isp.js";import{t as pe}from"./iconify-C-CPDXMf.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 me=`/.devtools/`,he=`.connection.json`,ge=`.rpc-dump/index.json`,_e=`.client-imports.js`,ve=`/.devtools-client-imports.js`,ye=()=>({docksHidden:[],docksCategoriesHidden:[],docksPinned:[],docksCustomOrder:{},showIframeAddressBar:!1,closeOnOutsideClick:!1,commandShortcuts:{}});function be(){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 xe=`afraid.all.beige.better.big.blue.bold.brave.breezy.bright.brown.bumpy.busy.calm.chatty.chilly.chubby.clean.clear.clever.cold.common.cool.cozy.crisp.cuddly.curly.curvy.cute.cyan.dark.deep.dirty.dry.dull.eager.early.easy.eight.eighty.eleven.empty.every.fair.famous.fancy.fast.few.fiery.fifty.fine.five.flat.floppy.fluffy.forty.four.frank.free.fresh.fruity.full.funky.funny.fuzzy.gentle.giant.gold.good.goofy.great.green.grumpy.happy.heavy.hip.honest.hot.huge.humble.hungry.icy.itchy.jolly.khaki.kind.large.late.lazy.legal.lemon.light.little.long.loose.loud.lovely.lucky.major.many.metal.mighty.modern.moody.neat.new.nice.nine.ninety.odd.old.olive.open.orange.perky.petite.pink.plain.plenty.polite.pretty.proud.public.puny.purple.quick.quiet.rare.ready.real.red.rich.ripe.salty.seven.shaggy.shaky.sharp.shiny.short.shy.silent.silly.silver.six.sixty.slick.slimy.slow.small.smart.smooth.social.soft.solid.some.sour.sparkly.spicy.spotty.stale.strict.strong.sunny.sweet.swift.tall.tame.tangy.tasty.ten.tender.thick.thin.thirty.three.tidy.tiny.tired.tough.tricky.true.twelve.twenty.two.upset.vast.violet.wacky.warm.wet.whole.wicked.wide.wild.wise.witty.yellow.young.yummy`.split(`.`),Se=`actors.ads.adults.aliens.animals.ants.apes.apples.areas.baboons.badgers.bags.balloons.bananas.banks.bars.baths.bats.beans.bears.beds.beers.bees.berries.bikes.birds.boats.bobcats.books.bottles.boxes.breads.brooms.buckets.bugs.buses.bushes.buttons.camels.cameras.candies.candles.canyons.carpets.carrots.cars.cases.cats.chairs.chefs.chicken.cities.clocks.cloths.clouds.clowns.clubs.coats.cobras.coins.colts.comics.cooks.corners.cougars.cows.crabs.crews.cups.cycles.dancers.days.deer.deserts.dingos.dodos.dogs.dolls.donkeys.donuts.doodles.doors.dots.dragons.drinks.dryers.ducks.eagles.ears.eels.eggs.emus.ends.experts.eyes.facts.falcons.fans.feet.files.flies.flowers.forks.foxes.friends.frogs.games.garlics.geckos.geese.ghosts.gifts.glasses.goats.grapes.groups.guests.hairs.hands.hats.heads.hoops.hornets.horses.hotels.hounds.houses.humans.icons.ideas.impalas.insects.islands.items.jars.jeans.jobs.jokes.keys.kids.kings.kiwis.knives.lamps.lands.laws.lemons.lies.lights.lilies.lines.lions.lizards.llamas.loops.mails.mammals.mangos.maps.masks.meals.melons.memes.meteors.mice.mirrors.moles.moments.monkeys.months.moons.moose.mugs.nails.needles.news.nights.numbers.olives.onions.oranges.otters.owls.pandas.pans.pants.papayas.papers.parents.parks.parrots.parts.paths.paws.peaches.pears.peas.pens.pets.phones.pianos.pigs.pillows.places.planes.planets.plants.plums.poems.poets.points.pots.pugs.pumas.queens.rabbits.radios.rats.ravens.readers.regions.results.rice.rings.rivers.rockets.rocks.rooms.roses.rules.sails.schools.seals.seas.sheep.shirts.shoes.showers.shrimps.sides.signs.singers.sites.sloths.snails.snakes.socks.spiders.spies.spoons.squids.stamps.stars.states.steaks.streets.suits.suns.swans.symbols.tables.taxes.taxis.teams.teeth.terms.things.ties.tigers.times.tips.tires.toes.tools.towns.toys.trains.trams.trees.turkeys.turtles.vans.views.walls.wasps.waves.ways.webs.weeks.windows.wings.wolves.wombats.words.worlds.worms.yaks.years.zebras.zoos`.split(`.`),Ce=`accept.act.add.admire.agree.allow.appear.argue.arrive.ask.attack.attend.bake.bathe.battle.beam.beg.begin.behave.bet.boil.bow.brake.brush.build.burn.buy.call.camp.care.carry.change.cheat.check.cheer.chew.clap.clean.cough.count.cover.crash.create.cross.cry.cut.dance.decide.deny.design.dig.divide.do.double.doubt.draw.dream.dress.drive.drop.drum.eat.end.enjoy.enter.exist.fail.fall.feel.fetch.film.find.fix.flash.float.flow.fly.fold.follow.fry.give.glow.go.grab.greet.grin.grow.guess.hammer.hang.happen.heal.hear.help.hide.hope.hug.hunt.invent.invite.itch.jam.jog.join.joke.judge.juggle.jump.kick.kiss.kneel.knock.know.laugh.lay.lead.learn.leave.lick.lie.like.listen.live.look.lose.love.make.march.marry.mate.matter.melt.mix.move.nail.notice.obey.occur.open.own.pay.peel.pick.play.poke.post.press.prove.pull.pump.punch.push.raise.read.refuse.relate.relax.remain.repair.repeat.reply.report.rescue.rest.retire.return.rhyme.ring.roll.rule.run.rush.say.scream.search.see.sell.send.serve.shake.share.shave.shine.shop.shout.show.sin.sing.sink.sip.sit.sleep.slide.smash.smell.smile.smoke.sneeze.sniff.sort.speak.spend.stand.stare.start.stay.stick.stop.strive.study.swim.switch.take.talk.tan.tap.taste.teach.tease.tell.thank.think.throw.tickle.tie.trade.train.travel.try.turn.type.unite.vanish.visit.wait.walk.warn.wash.watch.wave.wear.win.wink.wish.wonder.work.worry.write.yawn.yell`.split(`.`),we=[`bravely`,`brightly`,`busily`,`daily`,`freely`,`hungrily`,`joyously`,`knowingly`,`lazily`,`noisily`,`oddly`,`politely`,`quickly`,`quietly`,`rapidly`,`safely`,`sleepily`,`slowly`,`truly`,`yearly`];function Te(e){return e[Math.floor(Math.random()*e.length)]}function Ee(e={}){typeof e==`string`&&(e={separator:e}),typeof e==`boolean`&&(e={capitalize:e});let{separator:t=``,capitalize:n=!0,adjectiveCount:r=1,addAdverb:i=!1}=e,a=[...[...Array(r)].map(e=>Te(xe)),Te(Se),Te(Ce),...i?[Te(we)]:[]];return n&&(a=a.map(e=>e.charAt(0).toUpperCase()+e.substr(1))),a.join(t)}var De=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function Oe(e=21){let t=``,n=e;for(;n--;)t+=De[Math.random()*64|0];return t}var ke=Symbol.for(`immer-nothing`),Ae=Symbol.for(`immer-draftable`),F=Symbol.for(`immer-state`);function I(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var L=Object,je=L.getPrototypeOf,Me=`constructor`,Ne=`prototype`,Pe=`configurable`,Fe=`enumerable`,Ie=`writable`,Le=`value`,R=e=>!!e&&!!e[F];function z(e){return e?Be(e)||qe(e)||!!e[Ae]||!!e[Me]?.[Ae]||Je(e)||Ye(e):!1}var Re=L[Ne][Me].toString(),ze=new WeakMap;function Be(e){if(!e||!Xe(e))return!1;let t=je(e);if(t===null||t===L[Ne])return!0;let n=L.hasOwnProperty.call(t,Me)&&t[Me];if(n===Object)return!0;if(!Ze(n))return!1;let r=ze.get(n);return r===void 0&&(r=Function.toString.call(n),ze.set(n,r)),r===Re}function Ve(e,t,n=!0){He(e)===0?(n?Reflect.ownKeys(e):L.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function He(e){let t=e[F];return t?t.type_:qe(e)?1:Je(e)?2:Ye(e)?3:0}var Ue=(e,t,n=He(e))=>n===2?e.has(t):L[Ne].hasOwnProperty.call(e,t),We=(e,t,n=He(e))=>n===2?e.get(t):e[t],Ge=(e,t,n,r=He(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Ke(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var qe=Array.isArray,Je=e=>e instanceof Map,Ye=e=>e instanceof Set,Xe=e=>typeof e==`object`,Ze=e=>typeof e==`function`,Qe=e=>typeof e==`boolean`;function $e(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var et=e=>Xe(e)?e?.[F]:null,tt=e=>e.copy_||e.base_,nt=e=>e.modified_?e.copy_:e.base_;function rt(e,t){if(Je(e))return new Map(e);if(Ye(e))return new Set(e);if(qe(e))return Array[Ne].slice.call(e);let n=Be(e);if(t===!0||t===`class_only`&&!n){let t=L.getOwnPropertyDescriptors(e);delete t[F];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[Ie]===!1&&(a[Ie]=!0,a[Pe]=!0),(a.get||a.set)&&(t[i]={[Pe]:!0,[Ie]:!0,[Fe]:a[Fe],[Le]:e[i]})}return L.create(je(e),t)}else{let t=je(e);if(t!==null&&n)return{...e};let r=L.create(t);return L.assign(r,e)}}function it(e,t=!1){return st(e)||R(e)||!z(e)?e:(He(e)>1&&L.defineProperties(e,{set:ot,add:ot,clear:ot,delete:ot}),L.freeze(e),t&&Ve(e,(e,t)=>{it(t,!0)},!1),e)}function at(){I(2)}var ot={[Le]:at};function st(e){return e===null||!Xe(e)?!0:L.isFrozen(e)}var ct=`MapSet`,lt=`Patches`,ut=`ArrayMethods`,dt={};function ft(e){let t=dt[e];return t||I(0,e),t}var pt=e=>!!dt[e];function mt(e,t){dt[e]||(dt[e]=t)}var ht,gt=()=>ht,_t=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:pt(ct)?ft(ct):void 0,arrayMethodsPlugin_:pt(ut)?ft(ut):void 0});function vt(e,t){t&&(e.patchPlugin_=ft(lt),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function yt(e){bt(e),e.drafts_.forEach(St),e.drafts_=null}function bt(e){e===ht&&(ht=e.parent_)}var xt=e=>ht=_t(ht,e);function St(e){let t=e[F];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Ct(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[F].modified_&&(yt(t),I(4)),z(e)&&(e=wt(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[F].base_,e,t)}else e=wt(t,n);return Tt(t,e,!0),yt(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===ke?void 0:e}function wt(e,t){if(st(t))return t;let n=t[F];if(!n)return Nt(t,e.handledSet_,e);if(!Dt(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);jt(n,e)}return n.copy_}function Tt(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&it(t,n)}function Et(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Dt=(e,t)=>e.scope_===t,Ot=[];function kt(e,t,n,r){let i=tt(e),a=e.type_;if(r!==void 0&&We(i,r,a)===t){Ge(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;Ve(i,(e,n)=>{if(R(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??Ot;for(let e of o)Ge(i,e,n,a)}function At(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!Dt(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=nt(i);kt(e,i.draft_??i,a,n),jt(i,r)})}function jt(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)}Et(e)}}function Mt(e,t,n){let{scope_:r}=e;if(R(n)){let i=n[F];Dt(i,r)&&i.callbacks_.push(function(){Vt(e),kt(e,n,nt(i),t)})}else z(n)&&e.callbacks_.push(function(){let i=tt(e);e.type_===3?i.has(n)&&Nt(n,r.handledSet_,r):We(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Nt(We(e.copy_,t,e.type_),r.handledSet_,r)})}function Nt(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||R(e)||t.has(e)||!z(e)||st(e)?e:(t.add(e),Ve(e,(r,i)=>{if(R(i)){let t=i[F];Dt(t,n)&&(Ge(e,r,nt(t),e.type_),Et(t))}else z(i)&&Nt(i,t,n)}),e)}function Pt(e,t){let n=qe(e),r={type_:n?1:0,scope_:t?t.scope_:gt(),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=Ft;n&&(i=[r],a=It);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var Ft={get(e,t){if(t===F)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=tt(e);if(!Ue(i,t,e.type_))return Rt(e,i,t);let a=i[t];if(e.finalized_||!z(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&$e(t))return a;if(a===Lt(e.base_,t)){Vt(e);let n=e.type_===1?+t:t,r=Ut(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in tt(e)},ownKeys(e){return Reflect.ownKeys(tt(e))},set(e,t,n){let r=zt(tt(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=Lt(tt(e),t),i=r?.[F];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Ke(n,r)&&(n!==void 0||Ue(e.base_,t,e.type_)))return!0;Vt(e),Bt(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),Mt(e,t,n),!0)},deleteProperty(e,t){return Vt(e),Lt(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Bt(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=tt(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Ie]:!0,[Pe]:e.type_!==1||t!==`length`,[Fe]:r[Fe],[Le]:n[t]}},defineProperty(){I(11)},getPrototypeOf(e){return je(e.base_)},setPrototypeOf(){I(12)}},It={};for(let e in Ft){let t=Ft[e];It[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}It.deleteProperty=function(e,t){return It.set.call(this,e,t,void 0)},It.set=function(e,t,n){return Ft.set.call(this,e[0],t,n,e[0])};function Lt(e,t){let n=e[F];return(n?tt(n):e)[t]}function Rt(e,t,n){let r=zt(t,n);return r?Le in r?r[Le]:r.get?.call(e.draft_):void 0}function zt(e,t){if(!(t in e))return;let n=je(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=je(n)}}function Bt(e){e.modified_||(e.modified_=!0,e.parent_&&Bt(e.parent_))}function Vt(e){e.copy_||=(e.assigned_=new Map,rt(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Ht=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(Ze(e)&&!Ze(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}Ze(t)||I(6),n!==void 0&&!Ze(n)&&I(7);let r;if(z(e)){let i=xt(this),a=Ut(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?yt(i):bt(i)}return vt(i,n),Ct(r,i)}else if(!e||!Xe(e)){if(r=t(e),r===void 0&&(r=e),r===ke&&(r=void 0),this.autoFreeze_&&it(r,!0),n){let t=[],i=[];ft(lt).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}else I(1,e)},this.produceWithPatches=(e,t)=>{if(Ze(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]},Qe(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Qe(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Qe(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){z(e)||I(8),R(e)&&(e=Wt(e));let t=xt(this),n=Ut(t,e,void 0);return n[F].isManual_=!0,bt(t),n}finishDraft(e,t){let n=e&&e[F];(!n||!n.isManual_)&&I(9);let{scope_:r}=n;return vt(r,t),Ct(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=ft(lt).applyPatches_;return R(e)?r(e,t):this.produce(e,e=>r(e,t))}};function Ut(e,t,n,r){let[i,a]=Je(t)?ft(ct).proxyMap_(t,n):Ye(t)?ft(ct).proxySet_(t,n):Pt(t,n);return(n?.scope_??gt()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?At(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 Wt(e){return R(e)||I(10,e),Gt(e)}function Gt(e){if(!z(e)||st(e))return e;let t=e[F],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=rt(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=rt(e,!0);return Ve(n,(e,t)=>{Ge(n,e,Gt(t))},r),t&&(t.finalized_=!1),n}function Kt(){function e(n,r=[]){if(n.key_!==void 0){let e=n.parent_.copy_??n.parent_.base_,t=et(We(e,n.key_)),i=We(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||Ue(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=We(n,r),!Xe(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?.[F];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;Ve(e.assigned_,(e,l)=>{let u=We(o,e,c),f=We(s,e,c),p=l?Ue(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===ke?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=He(o),n=i[e];typeof n!=`string`&&typeof n!=`number`&&(n=``+n),(t===0||t===1)&&(n===`__proto__`||n===Me)&&I(19),Ze(o)&&n===Ne&&I(19),o=We(o,n),Xe(o)||I(18,i.join(`/`))}let s=He(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:I(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:I(17,a)}}),e}function u(e){if(!z(e))return e;if(qe(e))return e.map(u);if(Je(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,u(t)]));if(Ye(e))return new Set(Array.from(e).map(u));let t=Object.create(je(e));for(let n in e)t[n]=u(e[n]);return Ue(e,Ae)&&(t[Ae]=e[Ae]),t}function d(e){return R(e)?u(e):e}mt(lt,{applyPatches_:l,generatePatches_:i,generateReplacementPatches_:c,getPath:e})}var qt=new Ht,Jt=qt.produce,Yt=qt.produceWithPatches.bind(qt),Xt=qt.applyPatches.bind(qt);function Zt(e){let{enablePatches:t=!1}=e,n=be(),r=e.initialValue,i=new Set;return{on:n.on,value:()=>r,patch:(e,t=Oe())=>{i.has(t)||(Kt(),r=Xt(r,e),i.add(t),n.emit(`updated`,r,void 0,t))},mutate:(e,a=Oe())=>{if(!i.has(a))if(i.add(a),t){let[t,i]=Yt(r,e);r=t,n.emit(`updated`,r,i,a)}else r=Jt(r,e),n.emit(`updated`,r,void 0,a)},syncIds:i}}function Qt(e){return typeof e==`string`?`'${e}'`:new $t().serialize(e)}var $t=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}(),en=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],tn=[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],nn=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,rn=[],an=class{_data=new on;_hash=new on([...en]);_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)rn[n]=e[t+n]|0;else{let e=rn[n-15],t=(e<<25|e>>>7)^(e<<14|e>>>18)^e>>>3,r=rn[n-2],i=(r<<15|r>>>17)^(r<<13|r>>>19)^r>>>10;rn[n]=t+rn[n-7]+i+rn[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+tn[n]+rn[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=on.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 on(t,i)}},on=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(nn.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 sn(e){return new an().finalize(e).toBase64()}function cn(e){return sn(Qt(e))}async function ln(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 un(e,t){if(e.handler)return e.handler;let n=await ln(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 dn=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 un(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 un(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())}},fn=`q`,pn=`s`;function mn(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var hn=Math.random.bind(Math),gn=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`;function _n(e=21){let t=``,n=e;for(;n--;)t+=gn[hn()*64|0];return t}var vn=6e4,yn=e=>e,bn=yn,{clearTimeout:xn,setTimeout:Sn}=globalThis;function Cn(e,t){let{post:n,on:r,off:i=()=>{},eventNames:a=[],serialize:o=yn,deserialize:s=bn,resolver:c,bind:l=`rpc`,timeout:u=vn,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:fn};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}=mn(),_=_n();s.i=_;let v;async function y(n=s){return u>=0&&(v=Sn(()=>{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{xn(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===fn){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:pn,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:pn,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&&(xn(r.timeoutId),n?r.reject(n):r.resolve(t)),p.delete(e)}}return m=r(b),h}function wn(e,t){let{preset:n,rpcOptions:r={}}=t;return Cn(e,{...n,timeout:-1,...r,proxify:!1})}function Tn(e){return e}var En=typeof self==`object`?self:globalThis;function Dn(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 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new En[e](t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new En[a](o),i)};return r}function On(e){return Dn(new Map,e)(0)}var kn=``,{toString:An}={},{keys:jn}=Object;function Mn(e){let t=typeof e;if(t!==`object`||!e)return[0,t];let n=An.call(e).slice(8,-1);switch(n){case`Array`:return[1,kn];case`Object`:return[2,kn];case`Date`:return[3,kn];case`RegExp`:return[4,kn];case`Map`:return[5,kn];case`Set`:return[6,kn];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]}function Nn([e,t]){return e===0&&(t===`function`||t===`symbol`)}function Pn(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]=Mn(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize ${s}`);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{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 jn(r))(e||!Nn(Mn(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(Nn(Mn(n))||Nn(Mn(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!Nn(Mn(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a}function Fn(e,t={}){let n=[];return Pn(!(t.json||t.lossy),!!t.json,new Map,n)(e),n}var{parse:In,stringify:Ln}=JSON,Rn={json:!0,lossy:!0};function zn(e){return On(In(e))}function Bn(e){return Ln(Fn(e,Rn))}function Vn(){}var Hn=Tn(e=>{let t=e.url;e.authToken&&(t=`${t}?vite_devtools_auth_token=${encodeURIComponent(e.authToken)}`);let n=new WebSocket(t),{onConnected:r=Vn,onError:i=Vn,onDisconnected:a=Vn}=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:Bn,deserialize:zn}}),Un=`__VITE_DEVTOOLS_CLIENT_CONTEXT__`;function Wn(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=Zt({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=>{e!==void 0&&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 Gn(e){return typeof e==`object`&&!!e&&e.type===`static`&&typeof e.path==`string`}function Kn(e){return typeof e==`object`&&!!e&&e.type===`query`&&typeof e.records==`object`&&e.records!==null}function qn(e){return typeof e==`object`&&!!e&&(`output`in e||`error`in e)}function Jn(e){if(e.error){let t=Error(e.error.message);throw t.name=e.error.name,t}return e.output}function Yn(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 qn(r)?Jn(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(Gn(r)){if(n.length>0)throw Error(`[devtools-rpc] No dump match for "${t}" with args: ${JSON.stringify(n)}`);return await i(r)}if(Kn(r)){let e=cn(n),i=r.records[e];if(i)return Jn(await a(i));if(r.fallback)return Jn(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 Xn(e){let t=Yn(await e.fetchJsonFromBases(ge),e.fetchJsonFromBases);return{isTrusted:!0,requestTrust:async()=>!0,requestTrustWithToken: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 Zn=``,Qn=`?`,$n=`major`,B=`model`,V=`name`,H=`type`,U=`vendor`,W=`version`,G=`architecture`,er=`console`,K=`mobile`,q=`tablet`,J=`smarttv`,tr=`wearable`,nr=`embedded`,rr=500,ir=`Amazon`,ar=`Apple`,or=`ASUS`,sr=`BlackBerry`,cr=`Browser`,lr=`Chrome`,ur=`Edge`,dr=`Firefox`,fr=`Google`,pr=`Huawei`,mr=`LG`,hr=`Microsoft`,gr=`Motorola`,_r=`Opera`,vr=`Samsung`,yr=`Sharp`,br=`Sony`,xr=`Xiaomi`,Sr=`Zebra`,Cr=`Facebook`,wr=`Chromium OS`,Tr=`Mac OS`;function Er(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 Dr(e){let t={};for(let n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t}function Or(e){return e.toLowerCase()}function kr(e,t){return typeof e==`string`?Or(t).includes(Or(e)):!1}function Ar(e){return typeof e==`string`?e.replace(/[^\d.]/g,Zn).split(`.`)[0]:void 0}function jr(e,t){let n=e.replace(/^\s+/,Zn);return t===void 0?n:n.substring(0,t)}function Mr(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 Nr(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(kr(r[t],e))return n===Qn?void 0:n}else if(kr(r,e))return n===Qn?void 0:n}return e}var Pr={"1.0":`/8`,"1.2":`/1`,"1.3":`/3`,"2.0":`/412`,"2.0.2":`/416`,"2.0.3":`/417`,"2.0.4":`/419`,"?":`/`},Fr={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`},Ir={browser:[[/\b(?:crmo|crios)\/([\w.]+)/i],[W,[V,`Chrome`]],[/edg(?:e|ios|a)?\/([\w.]+)/i],[W,[V,`Edge`]],[/(opera mini)\/([-\w.]+)/i,/(opera [mobileta]{3,6})\b.+version\/([-\w.]+)/i,/(opera)(?:.+version\/|[/ ]+)([\w.]+)/i],[V,W],[/opios[/ ]+([\w.]+)/i],[W,[V,`${_r} Mini`]],[/\bop(?:rg)?x\/([\w.]+)/i],[W,[V,`${_r} GX`]],[/\bopr\/([\w.]+)/i],[W,[V,_r]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[/ ]?([\w.]+)/i],[W,[V,`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],[V,W],[/\bddg\/([\w.]+)/i],[W,[V,`DuckDuckGo`]],[/(?:\buc? ?browser|juc.+ucweb)[/ ]?([\w.]+)/i],[W,[V,`UC${cr}`]],[/microm.+\bqbcore\/([\w.]+)/i,/\bqbcore\/([\w.]+).+microm/i,/micromessenger\/([\w.]+)/i],[W,[V,`WeChat`]],[/konqueror\/([\w.]+)/i],[W,[V,`Konqueror`]],[/trident.+rv[: ]([\w.]{1,9})\b.+like gecko/i],[W,[V,`IE`]],[/ya(?:search)?browser\/([\w.]+)/i],[W,[V,`Yandex`]],[/slbrowser\/([\w.]+)/i],[W,[V,`Smart Lenovo ${cr}`]],[/(avast|avg)\/([\w.]+)/i],[[V,/(.+)/,`$1 Secure ${cr}`],W],[/\bfocus\/([\w.]+)/i],[W,[V,`${dr} Focus`]],[/\bopt\/([\w.]+)/i],[W,[V,`${_r} Touch`]],[/coc_coc\w+\/([\w.]+)/i],[W,[V,`Coc Coc`]],[/dolfin\/([\w.]+)/i],[W,[V,`Dolphin`]],[/coast\/([\w.]+)/i],[W,[V,`${_r} Coast`]],[/miuibrowser\/([\w.]+)/i],[W,[V,`MIUI ${cr}`]],[/fxios\/([-\w.]+)/i],[W,[V,dr]],[/\bqihu|(qi?ho{0,2}|360)browser/i],[[V,`360 ${cr}`]],[/(oculus|sailfish|huawei|vivo)browser\/([\w.]+)/i],[[V,/(.+)/,`$1 ${cr}`],W],[/samsungbrowser\/([\w.]+)/i],[W,[V,`${vr} Internet`]],[/(comodo_dragon)\/([\w.]+)/i],[[V,/_/g,` `],W],[/metasr[/ ]?([\d.]+)/i],[W,[V,`Sogou Explorer`]],[/(sogou)mo\w+\/([\d.]+)/i],[[V,`Sogou Mobile`],W],[/(electron)\/([\w.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w.]+))/i,/m?(qqbrowser|2345Explorer)[/ ]?([\w.]+)/i],[V,W],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[V],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w.]+);)/i],[[V,Cr],W],[/(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],[V,W],[/\bgsa\/([\w.]+) .*safari\//i],[W,[V,`GSA`]],[/musical_ly(?:.+app_?version\/|_)([\w.]+)/i],[W,[V,`TikTok`]],[/headlesschrome(?:\/([\w.]+)| )/i],[W,[V,`${lr} Headless`]],[/ wv\).+(chrome)\/([\w.]+)/i],[[V,`${lr} WebView`],W],[/droid.+ version\/([\w.]+)\b.+(?:mobile safari|safari)/i],[W,[V,`Android ${cr}`]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w.]+)/i],[V,W],[/version\/([\w.,]+) .*mobile\/\w+ (safari)/i],[W,[V,`Mobile Safari`]],[/version\/([\w(.|,)]+) .*(mobile ?safari|safari)/i],[W,V],[/webkit.+?(mobile ?safari|safari)(\/[\w.]+)/i],[V,[W,Nr,Pr]],[/(webkit|khtml)\/([\w.]+)/i],[V,W],[/(navigator|netscape\d?)\/([-\w.]+)/i],[[V,`Netscape`],W],[/mobile vr; rv:([\w.]+)\).+firefox/i],[W,[V,`${dr} 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],[V,W],[/(cobalt)\/([\w.]+)/i],[V,[W,/master.|lts./,``]]],cpu:[[/(amd|x(?:(?:86|64)[-_])?|wow|win)64[;)]/i],[[G,`amd64`]],[/(ia32(?=;))/i],[[G,Or]],[/((?:i[346]|x)86)[;)]/i],[[G,`ia32`]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[G,`arm64`]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[G,`armhf`]],[/windows (ce|mobile); ppc;/i],[[G,`arm`]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[G,/ower/,Zn,Or]],[/(sun4\w)[;)]/i],[[G,`sparc`]],[/(avr32|ia64(?=;)|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[G,Or]]],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],[B,[U,vr],[H,q]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?\d+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[B,[U,vr],[H,K]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[B,[U,ar],[H,K]],[/\((ipad);[-\w),; ]+apple/i,/applecoremedia\/[\w.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[B,[U,ar],[H,q]],[/(macintosh);/i],[B,[U,ar]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[B,[U,yr],[H,K]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[B,[U,pr],[H,q]],[/(?:huawei|honor)([-\w ]+)[;)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][0-359c][adn]?)\b(?!.+d\/s)/i],[B,[U,pr],[H,K]],[/\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],[[B,/_/g,` `],[U,xr],[H,K]],[/oid[^)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?pad[\w ]+)(?: bui|\))/i],[[B,/_/g,` `],[U,xr],[H,q]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[B,[U,`OPPO`],[H,K]],[/\b(opd2\d{3}a?) bui/i],[B,[U,`OPPO`],[H,q]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[B,[U,`Vivo`],[H,K]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[B,[U,`Realme`],[H,K]],[/\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],[B,[U,gr],[H,K]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[B,[U,gr],[H,q]],[/((?=lg)?[vl]k-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[B,[U,mr],[H,q]],[/(lm(?:-?f100[nv]?|-[\w.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?(\w+) bui/i],[B,[U,mr],[H,K]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab[\w ]+|yt[-\w]{6}|tb[-\w]{6})/i],[B,[U,`Lenovo`],[H,q]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w.]*)/i],[[B,/_/g,` `],[U,`Nokia`],[H,K]],[/(pixel c)\b/i],[B,[U,fr],[H,q]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[B,[U,fr],[H,K]],[/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],[B,[U,br],[H,K]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[B,`Xperia Tablet`],[U,br],[H,q]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[B,[U,`OnePlus`],[H,K]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[B,[U,ir],[H,q]],[/((?:sd|kf)[0349hijor-uw]+)( bui|\)).+silk\//i],[[B,/(.+)/g,`Fire Phone $1`],[U,ir],[H,K]],[/(playbook);[-\w),; ]+(rim)/i],[B,U,[H,q]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[B,[U,sr],[H,K]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[B,[U,or],[H,q]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[B,[U,or],[H,K]],[/(nexus 9)/i],[B,[U,`HTC`],[H,q]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!;|\.)|sony(?!-bra))[-_ ]?([-\w]*)/i],[U,[B,/_/g,` `],[H,K]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[B,[U,`Acer`],[H,q]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[B,[U,`Meizu`],[H,K]],[/; ((?:power )?armor[\w ]{0,8})(?: bui|\))/i],[B,[U,`Ulefone`],[H,K]],[/(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],[U,B,[H,K]],[/(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],[U,B,[H,q]],[/(surface duo)/i],[B,[U,hr],[H,q]],[/droid [\d.]+; (fp\du?)(?: b|\))/i],[B,[U,`Fairphone`],[H,K]],[/(u304aa)/i],[B,[U,`AT&T`],[H,K]],[/\bsie-(\w*)/i],[B,[U,`Siemens`],[H,K]],[/\b(rct\w+) b/i],[B,[U,`RCA`],[H,q]],[/\b(venue[\d ]{2,7}) b/i],[B,[U,`Dell`],[H,q]],[/\b(q(?:mv|ta)\w+) b/i],[B,[U,`Verizon`],[H,q]],[/\b(?:barnes[& ]+noble |bn[rt])([\w+ ]*) b/i],[B,[U,`Barnes & Noble`],[H,q]],[/\b(tm\d{3}\w+) b/i],[B,[U,`NuVision`],[H,q]],[/\b(k88) b/i],[B,[U,`ZTE`],[H,q]],[/\b(nx\d{3}j) b/i],[B,[U,`ZTE`],[H,K]],[/\b(gen\d{3}) b.+49h/i],[B,[U,`Swiss`],[H,K]],[/\b(zur\d{3}) b/i],[B,[U,`Swiss`],[H,q]],[/\b((zeki)?tb.*\b) b/i],[B,[U,`Zeki`],[H,q]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[U,`Dragon Touch`],B,[H,q]],[/\b(ns-?\w{0,9}) b/i],[B,[U,`Insignia`],[H,q]],[/\b((nxa|next)-?\w{0,9}) b/i],[B,[U,`NextBook`],[H,q]],[/\b(xtreme_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[U,`Voice`],B,[H,K]],[/\b(lvtel-)?(v1[12]) b/i],[[U,`LvTel`],B,[H,K]],[/\b(ph-1) /i],[B,[U,`Essential`],[H,K]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[B,[U,`Envizen`],[H,q]],[/\b(trio[-\w. ]+) b/i],[B,[U,`MachSpeed`],[H,q]],[/\btu_(1491) b/i],[B,[U,`Rotor`],[H,q]],[/(shield[\w ]+) b/i],[B,[U,`Nvidia`],[H,q]],[/(sprint) (\w+)/i],[U,B,[H,K]],[/(kin\.[onetw]{3})/i],[[B,/\./g,` `],[U,hr],[H,K]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[B,[U,Sr],[H,q]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[B,[U,Sr],[H,K]],[/smart-tv.+(samsung)/i],[U,[H,J]],[/hbbtv.+maple;(\d+)/i],[[B,/^/,`SmartTV`],[U,vr],[H,J]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[U,mr],[H,J]],[/(apple) ?tv/i],[U,[B,`${ar} TV`],[H,J]],[/crkey/i],[[B,`${lr}cast`],[U,fr],[H,J]],[/droid.+aft(\w+)( bui|\))/i],[B,[U,ir],[H,J]],[/\(dtv[);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[B,[U,yr],[H,J]],[/(bravia[\w ]+)( bui|\))/i],[B,[U,br],[H,J]],[/(mitv-\w{5}) bui/i],[B,[U,xr],[H,J]],[/Hbbtv.*(technisat) (.*);/i],[U,B,[H,J]],[/\b(roku)[\dx]*[)/]((?:dvp-)?[\d.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w+ ]*; *(\w[^;]*);([^;]*)/i],[[U,jr],[B,jr],[H,J]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[H,J]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[U,B,[H,er]],[/droid.+; (shield) bui/i],[B,[U,`Nvidia`],[H,er]],[/(playstation [345portablevi]+)/i],[B,[U,br],[H,er]],[/\b(xbox(?: one)?(?!; xbox))[); ]/i],[B,[U,hr],[H,er]],[/((pebble))app/i],[U,B,[H,tr]],[/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i],[B,[U,ar],[H,tr]],[/droid.+; (glass) \d/i],[B,[U,fr],[H,tr]],[/droid.+; (wt63?0{2,3})\)/i],[B,[U,Sr],[H,tr]],[/(quest( \d| pro)?)/i],[B,[U,Cr],[H,tr]],[/(tesla)(?: qtcarbrowser|\/[-\w.]+)/i],[U,[H,nr]],[/(aeobc)\b/i],[B,[U,ir],[H,nr]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[B,[H,K]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[B,[H,q]],[/\b((tablet|tab)[;/]|focus\/\d(?!.+mobile))/i],[[H,q]],[/(phone|mobile(?:[;/]| [ \w/.]*safari)|pda(?=.+windows ce))/i],[[H,K]],[/(android[-\w. ]{0,9});.+buil/i],[B,[U,`Generic`]]],engine:[[/windows.+ edge\/([\w.]+)/i],[W,[V,`${ur}HTML`]],[/webkit\/537\.36.+chrome\/(?!27)([\w.]+)/i],[W,[V,`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],[V,W],[/rv:([\w.]{1,9})\b.+(gecko)/i],[W,V]],os:[[/microsoft (windows) (vista|xp)/i],[V,W],[/(windows (?:phone(?: os)?|mobile))[/ ]?([.\w ]*)/i],[V,[W,Nr,Fr]],[/windows nt 6\.2; (arm)/i,/windows[/ ]?([ntce\d. ]+\w)(?!.+xbox)/i,/(?:win(?=[39n])|win 9x )([nt\d.]+)/i],[[W,Nr,Fr],[V,`Windows`]],[/ip[honead]{2,4}\b(?:.*os (\w+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[/ ])([\d.]+)/i,/cfnetwork\/.+darwin/i],[[W,/_/g,`.`],[V,`iOS`]],[/(mac os x) ?([\w. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[V,Tr],[W,/_/g,`.`]],[/droid ([\w.]+)\b.+(android[- ]x86|harmonyos)/i],[W,V],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-/ ]?([\w.]*)/i,/(blackberry)\w*\/([\w.]*)/i,/(tizen|kaios)[/ ]([\w.]+)/i,/\((series40);/i],[V,W],[/\(bb(10);/i],[W,[V,sr]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-/ ]?([\w.]*)/i],[W,[V,`Symbian`]],[/mozilla\/[\d.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w.]+)/i],[W,[V,`${dr} OS`]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w.]+)/i],[W,[V,`webOS`]],[/watch(?: ?os[,/]|\d,\d\/)([\d.]+)/i],[W,[V,`watchOS`]],[/crkey\/([\d.]+)/i],[W,[V,`${lr}cast`]],[/(cros) \w+(?:\)| ([\w.]+)\b)/i],[[V,wr],W],[/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],[V,W],[/(sunos) ?([\w.]*)/i],[[V,`Solaris`],W],[/((?:open)?solaris)[-/ ]?([\w.]*)/i,/(aix) ((\d)(?=[.) ])[\w.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w.]*)/i],[V,W]]};function Lr(e){return typeof e==`object`&&!!e}Object.freeze(Dr([V,W,$n])),Object.freeze(Dr([G])),Object.freeze(Dr([B,U,H,er,K,J,q,tr,nr])),Object.freeze(Dr([V,W])),Object.freeze(Dr([V,W]));function Rr(){if(!(typeof window>`u`||!window.navigator))return window.navigator}function zr(e){return e.length>rr?jr(e,rr):e}function Br(e){if(typeof e==`string`)return{ua:zr(e),isSelfNavigator:!1,navigator:void 0,userAgentData:void 0,regexMap:Ir};let t=Rr(),n=zr(t&&t.userAgent?t.userAgent:Zn);return{ua:n,isSelfNavigator:!!(t&&t.userAgent===n),navigator:t,userAgentData:t?.userAgentData,regexMap:Ir}}function Vr(e,t){if(!t&&!Lr(e))return Br(e);let n=Rr(),r=Lr(e)?void 0:e,i=Lr(e)?e:t,a=zr(r||(n&&n.userAgent?n.userAgent:Zn)),o=n?.userAgentData;return{ua:a,isSelfNavigator:!!(n&&n.userAgent===a),navigator:n,userAgentData:o,regexMap:i?Er(Ir,i):Ir}}function Hr(e){let t={name:void 0,version:void 0,major:void 0};return Mr(e.ua,e.regexMap.browser,t),t.major=Ar(t.version),e.isSelfNavigator&&e.navigator?.brave&&typeof e.navigator.brave.isBrave==`function`&&(t.name=`Brave`),t}function Ur(e){let t={architecture:void 0};return Mr(e.ua,e.regexMap.cpu,t),t}function Wr(e){let t={vendor:void 0,model:void 0,type:void 0};return Mr(e.ua,e.regexMap.device,t),e.isSelfNavigator&&!t.type&&e.userAgentData?.mobile&&(t.type=K),e.isSelfNavigator&&t.model===`Macintosh`&&e.navigator&&e.navigator.standalone!==void 0&&e.navigator.maxTouchPoints&&e.navigator.maxTouchPoints>2&&(t.model=`iPad`,t.type=q),t}function Gr(e){let t={name:void 0,version:void 0};return Mr(e.ua,e.regexMap.engine,t),t}function Kr(e){let t={name:void 0,version:void 0};return Mr(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,wr).replace(/macos/i,Tr)),t}function qr(e,t){let n,r,i,a,o,s,c=()=>n||=Vr(e,t);return{get ua(){return c().ua},get browser(){return r||=Hr(c()),r},get engine(){return i||=Gr(c()),i},get os(){return a||=Kr(c()),a},get device(){return o||=Wr(c()),o},get cpu(){return s||=Ur(c()),s}}}function Jr(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function Yr(e){return e==null?!1:`${+e}`==`${e}`}function Xr(e){let{authToken:t,connectionMeta:n,events:r,clientRpc:i,rpcOptions:a={},wsOptions:o={}}=e,s=!1,c=Jr(),l=Yr(n.websocket)?`${location.protocol.replace(`http`,`ws`)}//${location.hostname}:${n.websocket}`:n.websocket,u=wn(i.functions,{preset:Hn({url:l,authToken:t,...o}),rpcOptions:a});i.register({name:`devtoolskit:internal:auth:revoked`,type:`event`,handler:()=>{s=!1,r.emit(`rpc:is-trusted:updated`,!1)}});let d=t;async function f(e){d=e;let t=qr(navigator.userAgent),n=[t.browser.name,t.browser.version,`|`,t.os.name,t.os.version,t.device.type].filter(e=>e).join(` `),i=await u.$call(`vite:anonymous:auth`,{authToken:e,ua:n,origin:location.origin});return s=i.isTrusted,c.resolve(s),r.emit(`rpc:is-trusted:updated`,s),i.isTrusted}async function p(){return s?!0:f(d)}async function m(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:p,requestTrustWithToken:f,ensureTrusted:m,call:(...e)=>u.$call(...e),callEvent:(...e)=>u.$callEvent(...e),callOptional:(...e)=>u.$callOptional(...e)}}var Zr=`__VITE_DEVTOOLS_CONNECTION_META__`,Qr=`__VITE_DEVTOOLS_CONNECTION_AUTH_TOKEN__`;function $r(e){let t=[()=>e,()=>localStorage.getItem(Qr),()=>window?.[Qr],()=>globalThis?.[Qr],()=>parent.window?.[Qr]],n;for(let e of t)try{if(n=e(),n)break}catch{}return n||=Ee({separator:`-`,capitalize:!1}),localStorage.setItem(Qr,n),globalThis[Qr]=n,n}function ei(){let e=[()=>window?.[Zr],()=>globalThis?.[Zr],()=>parent.window?.[Zr]];for(let t of e)try{let e=t();if(e)return e}catch{}}async function ti(e={}){let{baseURL:t=me,rpcOptions:n={}}=e,r=be(),i=Array.isArray(t)?t:[t],a=e.connectionMeta||ei(),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,he)).then(e=>e.json()),o=t,globalThis[Zr]=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=$r(e.authToken),d=new dn(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 Xn({fetchJsonFromBases:f}):Xr({authToken: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,requestTrustWithToken:async e=>(localStorage.setItem(Qr,e),globalThis[Qr]=e,p.requestTrustWithToken(e)),call:p.call,callEvent:p.callEvent,callOptional:p.callOptional,client:d,sharedState:void 0};m.sharedState=Wn(m),l.rpc=m,p.requestTrust();try{let e=new BroadcastChannel(`vite-devtools-auth`);e.onmessage=e=>{e.data?.type===`auth-update`&&e.data.authToken&&m.requestTrustWithToken(e.data.authToken)}}catch{}return m}var ni=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 ri(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}},ri=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 Y(e){return Array.isArray?Array.isArray(e):fi(e)===`[object Array]`}var ii=1/0;function ai(e){if(typeof e==`string`)return e;let t=e+``;return t==`0`&&1/e==-ii?`-0`:t}function oi(e){return e==null?``:ai(e)}function X(e){return typeof e==`string`}function si(e){return typeof e==`number`}function ci(e){return e===!0||e===!1||ui(e)&&fi(e)==`[object Boolean]`}function li(e){return typeof e==`object`}function ui(e){return li(e)&&e!==null}function Z(e){return e!=null}function di(e){return!e.trim().length}function fi(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var pi=`Incorrect 'index' type`,mi=e=>`Invalid value for key ${e}`,hi=e=>`Pattern length exceeds max of ${e}.`,gi=e=>`Missing ${e} property in key`,_i=e=>`Property 'weight' in key '${e}' must be a positive integer`,vi=Object.prototype.hasOwnProperty,yi=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=bi(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function bi(e){let t=null,n=null,r=null,i=1,a=null;if(X(e)||Y(e))r=e,t=xi(e),n=Si(e);else{if(!vi.call(e,`name`))throw Error(gi(`name`));let o=e.name;if(r=o,vi.call(e,`weight`)&&(i=e.weight,i<=0))throw Error(_i(o));t=xi(o),n=Si(o),a=e.getFn}return{path:t,id:n,weight:i,src:r,getFn:a}}function xi(e){return Y(e)?e:e.split(`.`)}function Si(e){return Y(e)?e.join(`.`):e}function Ci(e,t){let n=[],r=!1,i=(e,t,a)=>{if(Z(e))if(!t[a])n.push(e);else{let o=e[t[a]];if(!Z(o))return;if(a===t.length-1&&(X(o)||si(o)||ci(o)))n.push(oi(o));else if(Y(o)){r=!0;for(let e=0,n=o.length;e<n;e+=1)i(o[e],t,a+1)}else t.length&&i(o,t,a+1)}};return i(e,X(t)?t.split(`.`):t,0),r?n:n[0]}var wi={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Ti={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},Ei={location:0,threshold:.6,distance:100},Di={useExtendedSearch:!1,getFn:Ci,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},Q={...Ti,...wi,...Ei,...Di},Oi=/[^ ]+/g;function ki(e=1,t=3){let n=new Map,r=10**t;return{get(t){let i=t.match(Oi).length;if(n.has(i))return n.get(i);let a=1/i**(.5*e),o=parseFloat(Math.round(a*r)/r);return n.set(i,o),o},clear(){n.clear()}}}var Ai=class{constructor({getFn:e=Q.getFn,fieldNormWeight:t=Q.fieldNormWeight}={}){this.norm=ki(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,X(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();X(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t<n;t+=1)--this.records[t].i}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!Z(e)||di(e))return;let n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}_addObject(e,t){let n={i:t,$:{}};this.keys.forEach((t,r)=>{let i=t.getFn?t.getFn(e):this.getFn(e,t.path);if(Z(i)){if(Y(i)){let e=[],t=[{nestedArrIndex:-1,value:i}];for(;t.length;){let{nestedArrIndex:n,value:r}=t.pop();if(Z(r))if(X(r)&&!di(r)){let t={v:r,i:n,n:this.norm.get(r)};e.push(t)}else Y(r)&&r.forEach((e,n)=>{t.push({nestedArrIndex:n,value:e})})}n.$[r]=e}else if(X(i)&&!di(i)){let e={v:i,n:this.norm.get(i)};n.$[r]=e}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}};function ji(e,t,{getFn:n=Q.getFn,fieldNormWeight:r=Q.fieldNormWeight}={}){let i=new Ai({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(bi)),i.setSources(t),i.create(),i}function Mi(e,{getFn:t=Q.getFn,fieldNormWeight:n=Q.fieldNormWeight}={}){let{keys:r,records:i}=e,a=new Ai({getFn:t,fieldNormWeight:n});return a.setKeys(r),a.setIndexRecords(i),a}function Ni(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:i=Q.distance,ignoreLocation:a=Q.ignoreLocation}={}){let o=t/e.length;if(a)return o;let s=Math.abs(r-n);return i?o+s/i:s?1:o}function Pi(e=[],t=Q.minMatchCharLength){let n=[],r=-1,i=-1,a=0;for(let o=e.length;a<o;a+=1){let o=e[a];o&&r===-1?r=a:!o&&r!==-1&&(i=a-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[a-1]&&a-r>=t&&n.push([r,a-1]),n}var Fi=32;function Ii(e,t,n,{location:r=Q.location,distance:i=Q.distance,threshold:a=Q.threshold,findAllMatches:o=Q.findAllMatches,minMatchCharLength:s=Q.minMatchCharLength,includeMatches:c=Q.includeMatches,ignoreLocation:l=Q.ignoreLocation}={}){if(t.length>Fi)throw Error(hi(Fi));let u=t.length,d=e.length,f=Math.max(0,Math.min(r,d)),p=a,m=f,h=s>1||c,g=h?Array(d):[],_;for(;(_=e.indexOf(t,m))>-1;){let e=Ni(t,{currentLocation:_,expectedLocation:f,distance:i,ignoreLocation:l});if(p=Math.min(e,p),m=_+u,h){let e=0;for(;e<u;)g[_+e]=1,e+=1}}m=-1;let v=[],y=1,b=u+d,x=1<<u-1;for(let r=0;r<u;r+=1){let a=0,s=b;for(;a<s;)Ni(t,{errors:r,currentLocation:f+s,expectedLocation:f,distance:i,ignoreLocation:l})<=p?a=s:b=s,s=Math.floor((b-a)/2+a);b=s;let c=Math.max(1,f-s+1),_=o?d:Math.min(f+s,d)+u,S=Array(_+2);S[_+1]=(1<<r)-1;for(let a=_;a>=c;--a){let o=a-1,s=n[e.charAt(o)];if(h&&(g[o]=+!!s),S[a]=(S[a+1]<<1|1)&s,r&&(S[a]|=(v[a+1]|v[a])<<1|1|v[a+1]),S[a]&x&&(y=Ni(t,{errors:r,currentLocation:o,expectedLocation:f,distance:i,ignoreLocation:l}),y<=p)){if(p=y,m=o,m<=f)break;c=Math.max(1,2*f-m)}}if(Ni(t,{errors:r+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:l})>p)break;v=S}let S={isMatch:m>=0,score:Math.max(.001,y)};if(h){let e=Pi(g,s);e.length?c&&(S.indices=e):S.isMatch=!1}return S}function Li(e){let t={};for(let n=0,r=e.length;n<r;n+=1){let i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}var Ri=String.prototype.normalize?(e=>e.normalize(`NFD`).replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,``)):(e=>e),zi=class{constructor(e,{location:t=Q.location,threshold:n=Q.threshold,distance:r=Q.distance,includeMatches:i=Q.includeMatches,findAllMatches:a=Q.findAllMatches,minMatchCharLength:o=Q.minMatchCharLength,isCaseSensitive:s=Q.isCaseSensitive,ignoreDiacritics:c=Q.ignoreDiacritics,ignoreLocation:l=Q.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l},e=s?e:e.toLowerCase(),e=c?Ri(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:Li(e),startIndex:t})},d=this.pattern.length;if(d>Fi){let e=0,t=d%Fi,n=d-t;for(;e<n;)u(this.pattern.substr(e,Fi),e),e+=Fi;if(t){let e=d-Fi;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r}=this.options;if(e=t?e:e.toLowerCase(),e=n?Ri(e):e,this.pattern===e){let t={isMatch:!0,score:0};return r&&(t.indices=[[0,e.length-1]]),t}let{location:i,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,ignoreLocation:l}=this.options,u=[],d=0,f=!1;this.chunks.forEach(({pattern:t,alphabet:n,startIndex:p})=>{let{isMatch:m,score:h,indices:g}=Ii(e,t,n,{location:i+p,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,includeMatches:r,ignoreLocation:l});m&&(f=!0),d+=h,m&&g&&(u=[...u,...g])});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(p.indices=u),p}},Bi=class{constructor(e){this.pattern=e}static isMultiMatch(e){return Vi(e,this.multiRegex)}static isSingleMatch(e){return Vi(e,this.singleRegex)}search(){}};function Vi(e,t){let n=e.match(t);return n?n[1]:null}var Hi=class extends Bi{constructor(e){super(e)}static get type(){return`exact`}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},Ui=class extends Bi{constructor(e){super(e)}static get type(){return`inverse-exact`}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=e.indexOf(this.pattern)===-1;return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},Wi=class extends Bi{constructor(e){super(e)}static get type(){return`prefix-exact`}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},Gi=class extends Bi{constructor(e){super(e)}static get type(){return`inverse-prefix-exact`}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},Ki=class extends Bi{constructor(e){super(e)}static get type(){return`suffix-exact`}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},qi=class extends Bi{constructor(e){super(e)}static get type(){return`inverse-suffix-exact`}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},Ji=class extends Bi{constructor(e,{location:t=Q.location,threshold:n=Q.threshold,distance:r=Q.distance,includeMatches:i=Q.includeMatches,findAllMatches:a=Q.findAllMatches,minMatchCharLength:o=Q.minMatchCharLength,isCaseSensitive:s=Q.isCaseSensitive,ignoreDiacritics:c=Q.ignoreDiacritics,ignoreLocation:l=Q.ignoreLocation}={}){super(e),this._bitapSearch=new zi(e,{location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l})}static get type(){return`fuzzy`}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}},Yi=class extends Bi{constructor(e){super(e)}static get type(){return`include`}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t=0,n,r=[],i=this.pattern.length;for(;(n=e.indexOf(this.pattern,t))>-1;)t=n+i,r.push([n,t-1]);let a=!!r.length;return{isMatch:a,score:a?0:1,indices:r}}},Xi=[Hi,Yi,Wi,Gi,qi,Ki,Ui,Ji],Zi=Xi.length,Qi=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,$i=`|`;function ea(e,t={}){return e.split($i).map(e=>{let n=e.trim().split(Qi).filter(e=>e&&!!e.trim()),r=[];for(let e=0,i=n.length;e<i;e+=1){let i=n[e],a=!1,o=-1;for(;!a&&++o<Zi;){let e=Xi[o],n=e.isMultiMatch(i);n&&(r.push(new e(n,t)),a=!0)}if(!a)for(o=-1;++o<Zi;){let e=Xi[o],n=e.isSingleMatch(i);if(n){r.push(new e(n,t));break}}}return r})}var ta=new Set([Ji.type,Yi.type]),na=class{constructor(e,{isCaseSensitive:t=Q.isCaseSensitive,ignoreDiacritics:n=Q.ignoreDiacritics,includeMatches:r=Q.includeMatches,minMatchCharLength:i=Q.minMatchCharLength,ignoreLocation:a=Q.ignoreLocation,findAllMatches:o=Q.findAllMatches,location:s=Q.location,threshold:c=Q.threshold,distance:l=Q.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r,minMatchCharLength:i,findAllMatches:o,ignoreLocation:a,location:s,threshold:c,distance:l},e=t?e:e.toLowerCase(),e=n?Ri(e):e,this.pattern=e,this.query=ea(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:n,isCaseSensitive:r,ignoreDiacritics:i}=this.options;e=r?e:e.toLowerCase(),e=i?Ri(e):e;let a=0,o=[],s=0;for(let r=0,i=t.length;r<i;r+=1){let i=t[r];o.length=0,a=0;for(let t=0,r=i.length;t<r;t+=1){let r=i[t],{isMatch:c,indices:l,score:u}=r.search(e);if(c){if(a+=1,s+=u,n){let e=r.constructor.type;ta.has(e)?o=[...o,...l]:o.push(l)}}else{s=0,a=0,o.length=0;break}}if(a){let e={isMatch:!0,score:s/a};return n&&(e.indices=o),e}}return{isMatch:!1,score:1}}},ra=[];function ia(...e){ra.push(...e)}function aa(e,t){for(let n=0,r=ra.length;n<r;n+=1){let r=ra[n];if(r.condition(e,t))return new r(e,t)}return new zi(e,t)}var oa={AND:`$and`,OR:`$or`},sa={PATH:`$path`,PATTERN:`$val`},ca=e=>!!(e[oa.AND]||e[oa.OR]),la=e=>!!e[sa.PATH],ua=e=>!Y(e)&&li(e)&&!ca(e),da=e=>({[oa.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function fa(e,t,{auto:n=!0}={}){let r=e=>{let i=Object.keys(e),a=la(e);if(!a&&i.length>1&&!ca(e))return r(da(e));if(ua(e)){let r=a?e[sa.PATH]:i[0],o=a?e[sa.PATTERN]:e[r];if(!X(o))throw Error(mi(r));let s={keyId:Si(r),pattern:o};return n&&(s.searcher=aa(o,t)),s}let o={children:[],operator:i[0]};return i.forEach(t=>{let n=e[t];Y(n)&&n.forEach(e=>{o.children.push(r(e))})}),o};return ca(e)||(e=da(e)),r(e)}function pa(e,{ignoreFieldNorm:t=Q.ignoreFieldNorm}){e.forEach(e=>{let n=1;e.matches.forEach(({key:e,norm:r,score:i})=>{let a=e?e.weight:null;n*=(i===0&&a?2**-52:i)**+((a||1)*(t?1:r))}),e.score=n})}function ma(e,t){let n=e.matches;t.matches=[],Z(n)&&n.forEach(e=>{if(!Z(e.indices)||!e.indices.length)return;let{indices:n,value:r}=e,i={indices:n,value:r};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)})}function ha(e,t){t.score=e.score}function ga(e,t,{includeMatches:n=Q.includeMatches,includeScore:r=Q.includeScore}={}){let i=[];return n&&i.push(ma),r&&i.push(ha),e.map(e=>{let{idx:n}=e,r={item:t[n],refIndex:n};return i.length&&i.forEach(t=>{t(e,r)}),r})}var _a=class{constructor(e,t={},n){this.options={...Q,...t},this.options.useExtendedSearch,this._keyStore=new yi(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof Ai))throw Error(pi);this._myIndex=t||ji(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){Z(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){let t=[];for(let n=0,r=this._docs.length;n<r;n+=1){let i=this._docs[n];e(i,n)&&(this.removeAt(n),--n,--r,t.push(i))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){let{includeMatches:n,includeScore:r,shouldSort:i,sortFn:a,ignoreFieldNorm:o}=this.options,s=X(e)?X(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return pa(s,{ignoreFieldNorm:o}),i&&s.sort(a),si(t)&&t>-1&&(s=s.slice(0,t)),ga(s,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(e){let t=aa(e,this.options),{records:n}=this._myIndex,r=[];return n.forEach(({v:e,i:n,n:i})=>{if(!Z(e))return;let{isMatch:a,score:o,indices:s}=t.searchIn(e);a&&r.push({item:e,idx:n,matches:[{score:o,value:e,norm:i,indices:s}]})}),r}_searchLogical(e){let t=fa(e,this.options),n=(e,t,r)=>{if(!e.children){let{keyId:n,searcher:i}=e,a=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:i});return a&&a.length?[{idx:r,item:t,matches:a}]:[]}let i=[];for(let a=0,o=e.children.length;a<o;a+=1){let o=e.children[a],s=n(o,t,r);if(s.length)i.push(...s);else if(e.operator===oa.AND)return[]}return i},r=this._myIndex.records,i={},a=[];return r.forEach(({$:e,i:r})=>{if(Z(e)){let o=n(t,e,r);o.length&&(i[r]||(i[r]={idx:r,item:e,matches:[]},a.push(i[r])),o.forEach(({matches:e})=>{i[r].matches.push(...e)}))}}),a}_searchObjectList(e){let t=aa(e,this.options),{keys:n,records:r}=this._myIndex,i=[];return r.forEach(({$:e,i:r})=>{if(!Z(e))return;let a=[];n.forEach((n,r)=>{a.push(...this._findMatches({key:n,value:e[r],searcher:t}))}),a.length&&i.push({idx:r,item:e,matches:a})}),i}_findMatches({key:e,value:t,searcher:n}){if(!Z(t))return[];let r=[];if(Y(t))t.forEach(({v:t,i,n:a})=>{if(!Z(t))return;let{isMatch:o,score:s,indices:c}=n.searchIn(t);o&&r.push({score:s,key:e,value:t,idx:i,norm:a,indices:c})});else{let{v:i,n:a}=t,{isMatch:o,score:s,indices:c}=n.searchIn(i);o&&r.push({score:s,key:e,value:i,norm:a,indices:c})}return r}};_a.version=`7.1.0`,_a.createIndex=ji,_a.parseIndex=Mi,_a.config=Q,_a.parseQuery=fa,ia(na);var va=ue({valueLight:`light`}),ya={viewBox:`0 0 979 89`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"pointer-events-none":``},ba=[`fill`],xa=[`fill`],Sa=[`fill`],Ca=[`fill`],wa=b({__name:`ViteDevTools`,setup(e){let t=g(()=>va.value?`white`:`black`);return(e,r)=>(n(),S(`svg`,ya,[r[0]||=v(`<path d="M328.999 86.823C327.739 88.427 325.161 87.535 325.161 85.4973V65.9264C325.161 63.5532 323.238 61.63 320.865 61.63H299.256C297.509 61.63 296.49 59.6537 297.509 58.2339L311.715 38.3438C313.749 35.5001 311.715 31.5474 308.217 31.5474H282.067C280.319 31.5474 279.3 29.5711 280.319 28.1512L298.736 2.36497C299.141 1.80031 299.792 1.46478 300.484 1.46478H355.366C357.113 1.46478 358.132 3.4411 357.114 4.86094L342.907 24.751C340.873 27.5948 342.907 31.5474 346.405 31.5474H368.014C369.806 31.5474 370.813 33.6137 369.704 35.0254L329.003 86.8271L328.999 86.823Z" fill="#9135FF"></path><mask id="mask0_logo" style="mask-type:alpha;" maskUnits="userSpaceOnUse" x="279" y="1" width="91" height="87"><path d="M328.801 86.8227C327.541 88.4266 324.963 87.5346 324.963 85.4969V65.9261C324.963 63.5528 323.04 61.6297 320.666 61.6297H299.058C297.311 61.6297 296.292 59.6534 297.311 58.2335L311.517 38.3435C313.551 35.4997 311.517 31.5471 308.019 31.5471H281.868C280.121 31.5471 279.102 29.5708 280.121 28.1509L298.538 2.36463C298.943 1.79997 299.594 1.46445 300.285 1.46445H355.168C356.915 1.46445 357.934 3.44077 356.915 4.86061L342.709 24.7507C340.675 27.5944 342.709 31.5471 346.207 31.5471H367.816C369.608 31.5471 370.615 33.6134 369.506 35.0251L328.805 86.8268L328.801 86.8227Z" fill="black"></path></mask><g mask="url(#mask0_logo)"><g filter="url(#filter0_f_logo)"><ellipse cx="10.4623" cy="27.9302" rx="10.4623" ry="27.9302" transform="matrix(0.00324134 0.999995 0.999995 -0.00324134 271.227 61.3274)" fill="#EEE6FF"></ellipse></g><g filter="url(#filter1_f_logo)"><ellipse cx="19.7534" cy="56.7016" rx="19.7534" ry="56.7016" transform="matrix(0.00324134 0.999995 0.999995 -0.00324134 205.013 16.4374)" fill="#EEE6FF"></ellipse></g><g filter="url(#filter2_f_logo)"><ellipse cx="10.4623" cy="57.9085" rx="10.4623" ry="57.9085" transform="matrix(0.00324134 0.999995 0.999995 -0.00324134 202.85 22.9685)" fill="#8900FF"></ellipse></g><g filter="url(#filter3_f_logo)"><ellipse cx="10.4623" cy="58.1208" rx="10.4623" ry="58.1208" transform="matrix(0.00324134 0.999995 0.999995 -0.00324134 211.578 57.1575)" fill="#8900FF"></ellipse></g><g filter="url(#filter4_f_logo)"><ellipse cx="10.4623" cy="58.1208" rx="10.4623" ry="58.1208" transform="matrix(0.00324134 0.999995 0.999995 -0.00324134 214.489 59.3398)" fill="#8900FF"></ellipse></g><g filter="url(#filter5_f_logo)"><ellipse cx="26.7282" cy="41.937" rx="26.7282" ry="41.937" transform="matrix(0.0584509 -0.99829 -0.99829 -0.0584509 420.939 52.4903)" fill="#EEE6FF"></ellipse></g><g filter="url(#filter6_f_logo)"><ellipse cx="6.59178" cy="40.8401" rx="6.59178" ry="40.8401" transform="matrix(-0.0172986 -0.99985 -0.99985 0.0172986 423.684 35.7737)" fill="#8900FF"></ellipse></g><g filter="url(#filter7_f_logo)"><ellipse cx="6.59178" cy="40.8401" rx="6.59178" ry="40.8401" transform="matrix(-0.0172986 -0.99985 -0.99985 0.0172986 423.684 35.7737)" fill="#8900FF"></ellipse></g><g filter="url(#filter8_f_logo)"><ellipse cx="280.451" cy="18.5056" rx="8.37029" ry="55.2889" transform="rotate(39.5103 280.451 18.5056)" fill="#8900FF"></ellipse></g><g filter="url(#filter9_f_logo)"><ellipse cx="369.984" cy="-10.1065" rx="8.37029" ry="55.2889" transform="rotate(37.8923 369.984 -10.1065)" fill="#8900FF"></ellipse></g><g filter="url(#filter10_f_logo)"><ellipse cx="358.377" cy="13.4947" rx="11.3426" ry="18.3586" transform="rotate(37.8923 358.377 13.4947)" fill="#00C2FF"></ellipse></g><g filter="url(#filter11_f_logo)"><ellipse cx="276.147" cy="74.2747" rx="8.37029" ry="55.2889" transform="rotate(37.8923 276.147 74.2747)" fill="#8900FF"></ellipse></g><g filter="url(#filter12_f_logo)"><ellipse cx="276.147" cy="74.2747" rx="8.37029" ry="55.2889" transform="rotate(37.8923 276.147 74.2747)" fill="#8900FF"></ellipse></g><g filter="url(#filter13_f_logo)"><ellipse cx="347.434" cy="58.2714" rx="8.37029" ry="55.2889" transform="rotate(37.8923 347.434 58.2714)" fill="#8900FF"></ellipse></g><g filter="url(#filter14_f_logo)"><ellipse cx="352.689" cy="63.0069" rx="11.3426" ry="29.0568" transform="rotate(37.8923 352.689 63.0069)" fill="#00C2FF"></ellipse></g></g>`,3),T(`path`,{d:`M265.911 0C248.439 25.0088 248.337 63.7742 265.911 88.8731H277.716C260.146 63.7742 260.248 25.0088 277.716 0H265.911Z`,fill:t.value},null,8,ba),T(`path`,{d:`M383.972 9.15527e-05H372.167C389.639 25.0089 389.741 63.7743 372.167 88.8732H383.972C401.542 63.7743 401.44 25.0089 383.972 9.15527e-05Z`,fill:t.value},null,8,xa),T(`path`,{d:`M423.64 75V19H458.84C478.28 19 489.4 27.88 489.4 47C489.4 66.2 478.2 75 458.76 75H423.64ZM469.72 47C469.72 36.52 465.24 32.6 456.12 32.6H442.84V61.4H456.12C465.24 61.4 469.72 57.48 469.72 47ZM499.187 75V19H554.467V32.6H518.387V40.12H553.907V53.32H518.387V61.4H555.507V75H499.187ZM579.751 19L594.551 59.32L609.111 19H629.031L606.951 75H581.351L559.271 19H579.751ZM653.236 75V32.76H631.716V19H693.956V32.76H672.436V75H653.236ZM731.745 75.96C708.145 75.96 695.825 66.04 695.825 47C695.825 27.96 708.145 18.04 731.745 18.04C755.345 18.04 767.745 27.96 767.745 47C767.745 66.04 755.345 75.96 731.745 75.96ZM731.745 62.12C742.865 62.12 748.065 57.4 748.065 47C748.065 36.52 742.865 31.8 731.745 31.8C720.625 31.8 715.425 36.52 715.425 47C715.425 57.4 720.625 62.12 731.745 62.12ZM809.948 75.96C786.348 75.96 774.028 66.04 774.028 47C774.028 27.96 786.348 18.04 809.948 18.04C833.548 18.04 845.948 27.96 845.948 47C845.948 66.04 833.548 75.96 809.948 75.96ZM809.948 62.12C821.068 62.12 826.268 57.4 826.268 47C826.268 36.52 821.068 31.8 809.948 31.8C798.828 31.8 793.628 36.52 793.628 47C793.628 57.4 798.828 62.12 809.948 62.12ZM855.671 75V19H874.871V61H908.391V75H855.671ZM944.226 75.96C921.346 75.96 911.666 70.04 911.666 56.28V56.2H931.106V56.28C931.106 60.92 934.226 63.4 944.226 63.4C954.546 63.4 956.946 61.48 956.946 58.52C956.946 55.88 955.186 54.68 951.346 54.36L935.026 53.08C917.746 51.72 912.466 46.44 912.466 36.36C912.466 24.2 923.026 18.04 944.546 18.04C966.546 18.04 975.426 23.72 975.426 36.84V37H956.306V36.84C956.306 32.2 953.426 30.44 944.226 30.44C934.546 30.44 931.586 32.2 931.586 35.32C931.586 38.04 933.746 39.08 938.786 39.48L954.946 40.68C970.146 41.8 976.386 46.68 976.386 57.16C976.386 69.24 967.346 75.96 944.226 75.96Z`,fill:t.value},null,8,Sa),T(`path`,{d:`M20.72 19L35.52 59.32L50.08 19H70L47.92 75H22.32L0.24 19H20.72ZM76.64 75V19H95.84V75H76.64ZM124.361 75V32.76H102.841V19H165.081V32.76H143.561V75H124.361ZM172.109 75V19H227.389V32.6H191.309V40.12H226.829V53.32H191.309V61.4H228.429V75H172.109Z`,fill:t.value},null,8,Ca),r[1]||=v(`<defs><filter id="filter0_f_logo" x="242.164" y="32.1395" width="114.054" height="79.1192" 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="14.5485" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter><filter id="filter1_f_logo" x="175.98" y="-12.8443" width="171.597" height="97.7023" 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="14.5485" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter><filter id="filter2_f_logo" x="185.426" y="5.32093" width="150.733" height="55.8442" 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="8.72909" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter><filter id="filter3_f_logo" x="194.154" y="39.5092" width="151.157" height="55.8443" 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="8.72909" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter><filter id="filter4_f_logo" x="197.064" y="41.6914" width="151.157" height="55.8443" 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="8.72909" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter><filter id="filter5_f_logo" x="309.644" y="-32.5371" width="141.984" height="111.787" 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="14.5485" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter><filter id="filter6_f_logo" x="324.444" y="5.80213" width="116.585" height="48.1746" 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="8.72909" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter><filter id="filter7_f_logo" x="324.444" y="5.80213" width="116.585" height="48.1746" 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="8.72909" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter><filter id="filter8_f_logo" x="227.223" y="-41.9441" width="106.456" height="120.899" 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="8.72909" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter><filter id="filter9_f_logo" x="317.926" y="-71.5028" width="104.117" height="122.793" 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="8.72909" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter><filter id="filter10_f_logo" x="326.522" y="-20.0431" width="63.7106" height="67.0755" 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="8.72909" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter><filter id="filter11_f_logo" x="224.088" y="12.8784" width="104.117" height="122.793" 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="8.72909" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter><filter id="filter12_f_logo" x="224.088" y="12.8784" width="104.117" height="122.793" 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="8.72909" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter><filter id="filter13_f_logo" x="295.376" y="-3.12496" width="104.117" height="122.793" 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="8.72909" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter><filter id="filter14_f_logo" x="315.262" y="21.5769" width="74.8554" height="82.8601" 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="8.72909" result="effect1_foregroundBlur_logo"></feGaussianBlur></filter></defs>`,1)]))}}),Ta=[`innerHTML`],Ea=[`src`],Da=b({__name:`IconifyIcon`,props:{icon:{}},setup(e){let t=e,i=g(()=>t.icon.includes(`/`)||t.icon.startsWith(`data:`)||t.icon.startsWith(`builtin:`)),a=g(()=>{if(i.value)return;let e=t.icon.match(/^(?:i-)?([\w-]+):([\w-]+)$/);if(e)return{collection:e[1],icon:e[2]}}),o=s(void 0);return r(async()=>{if(!a.value){o.value=void 0;return}o.value=await pe(a.value.collection,a.value.icon)}),(t,r)=>a.value?(n(),S(`div`,{key:0,innerHTML:o.value},null,8,Ta)):(n(),S(`img`,{key:1,src:e.icon,class:`w-full h-full m-auto`,draggable:`false`},null,8,Ea))}}),Oa=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},ka={},Aa={viewBox:`0 0 22 22`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function ja(e,t){return n(),S(`svg`,Aa,[...t[0]||=[v(`<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 Ma=Oa(ka,[[`render`,ja]]),Na={key:1},Pa=b({__name:`DockIcon`,props:{icon:{},title:{}},setup(e){let t=e,r=g(()=>typeof t.icon==`string`?{dark:t.icon,light:t.icon}:t.icon);return(t,i)=>r.value.light===`builtin:vite-plus-core`?(n(),O(Ma,{key:0})):(n(),S(`div`,Na,[r.value.light===r.value.dark?(n(),O(Da,{key:0,icon:r.value.light,title:e.title},null,8,[`icon`,`title`])):(n(),S(w,{key:1},[E(Da,{class:`dark-hidden`,icon:r.value.light,title:e.title},null,8,[`icon`,`title`]),E(Da,{class:`light-hidden`,icon:r.value.dark,title:e.title},null,8,[`icon`,`title`])],64))]))}});function Fa(e,t){return e.split(`||`).map(e=>e.trim()).some(e=>e.split(`&&`).map(e=>e.trim()).every(e=>{let n=e.trim();if(n===`true`)return!0;if(n===`false`)return!1;if(n.startsWith(`!`)){let e=n.slice(1).trim();return e===`true`?!1:e===`false`?!0:!Ia(e,t)}let r=n.indexOf(`==`),i=n.indexOf(`!=`);if(r!==-1||i!==-1){let e=i!==-1&&(r===-1||i<r),a=e?i:r,o=n.slice(0,a).trim(),s=n.slice(a+2).trim(),c=String(Ia(o,t));return e?c!==s:c===s}return!!Ia(n,t)}))}function Ia(e,t){let n=t;if(e in n)return n[e];let r=e.includes(`.`)?`.`:e.includes(`:`)?`:`:null;if(r){let t=e.split(r),i=n;for(let e of t){if(typeof i!=`object`||!i)return;i=i[e]}return i}}var $=typeof navigator<`u`&&/Mac|iPhone|iPad/.test(navigator.platform??``);function La(e){return e.split(`+`).map(e=>e===`Mod`?$?`⌘`:`Ctrl`:e===`Shift`?$?`⇧`:`Shift`:e===`Alt`?$?`⌥`:`Alt`:e)}function Ra(e){let t=[];($?e.metaKey:e.ctrlKey)&&t.push(`Mod`),($?e.ctrlKey:e.metaKey)&&t.push($?`Ctrl`:`Meta`),e.altKey&&t.push(`Alt`),e.shiftKey&&t.push(`Shift`);let n=e.key;return n.length===1&&(n=n.toUpperCase()),[`Control`,`Meta`,`Alt`,`Shift`].includes(n)||t.push(n),t.join(`+`)}function za(e,t){let n=[];for(let r of e.value){for(let e of t(r.id))n.push({id:r.id,keybinding:e});if(r.children)for(let e of r.children)for(let r of t(e.id))n.push({id:e.id,keybinding:r})}return n}var Ba={"Mod+T":`Open new tab`,"Mod+W":`Close tab`,"Mod+N":`Open new window`,"Mod+L":`Focus address bar`,"Mod+D":`Bookmark page`,"Mod+Q":`Quit browser`,"Mod+Shift+T":`Reopen closed tab`,"Mod+Shift+N":`Open incognito window`,"Mod+Shift+W":`Close window`,"Mod+Shift+Q":`Quit browser (Chrome)`,"Alt+F4":`Close window (Windows)`,"Mod+R":`Reload page`,"Mod+Shift+R":`Hard reload page`,"Mod+F":`Find in page`},Va={class:`flex items-center gap-0.5`},Ha=b({__name:`KeybindingBadge`,props:{keyString:{}},setup(e){let t=e,r=g(()=>La(t.keyString));return(e,t)=>(n(),S(`span`,Va,[(n(!0),S(w,null,u(r.value,(e,t)=>(n(),S(`kbd`,{key:t,class:`px-1.5 py-0.5 text-[10px] rounded bg-base border border-base op60 font-mono`},N(e),1))),128))]))}}),Ua=[`id`],Wa={class:`flex items-center gap-2 flex-1 of-hidden min-w-0`},Ga={class:`flex-1 min-w-0`},Ka={class:`flex items-center gap-1.5`},qa={class:`truncate`},Ja={key:0,class:`op50`},Ya={key:0,class:`text-[10px] px-1 py-0 rounded bg-blue/10 text-blue shrink-0 leading-4`},Xa={key:0,class:`truncate text-xs op40 mt-0.5`},Za={class:`flex items-center gap-1.5 flex-none`},Qa={key:0,class:`i-ph-spinner-gap-duotone w-3.5 h-3.5 animate-spin op50`},$a={key:1,class:`i-ph-caret-right w-3 h-3 op40`},eo=b({__name:`CommandPaletteItem`,props:{entry:{},parentTitle:{},showParentTitle:{type:Boolean},selected:{type:Boolean},loading:{type:Boolean},keybindings:{}},emits:[`select`,`activate`],setup(e){return(t,r)=>(n(),S(`button`,{id:`cmd-${e.entry.id}`,class:`w-full text-left`,onClick:r[0]||=e=>t.$emit(`activate`),onMouseover:r[1]||=e=>t.$emit(`select`)},[T(`div`,{class:h([`flex items-center gap-2 justify-between rounded-md px-2.5 py-1.5 text-sm transition-colors`,e.selected?`bg-primary/10 text-primary`:`op80 hover:op100`])},[T(`div`,Wa,[e.entry.icon?(n(),O(Pa,{key:0,icon:e.entry.icon,class:`w-4 h-4 flex-none op70`},null,8,[`icon`])):_(``,!0),T(`div`,Ga,[T(`div`,Ka,[T(`span`,qa,[e.parentTitle&&e.showParentTitle?(n(),S(`span`,Ja,N(e.parentTitle)+` › `,1)):_(``,!0),y(` `+N(e.entry.title),1)]),e.entry.source===`server`?(n(),S(`span`,Ya,`server`)):_(``,!0)]),e.selected&&e.entry.description?(n(),S(`div`,Xa,N(e.entry.description),1)):_(``,!0)])]),T(`div`,Za,[(n(!0),S(w,null,u(e.keybindings,(e,t)=>(n(),O(Ha,{key:t,"key-string":e.key},null,8,[`key-string`]))),128)),e.loading?(n(),S(`span`,Qa)):e.entry.children?.length?(n(),S(`span`,$a)):_(``,!0)])],2)],40,Ua))}}),to={class:`absolute inset-0 flex items-start justify-center relative pt-[20vh] pointer-events-none`},no={class:`w-full w-lg bg-base border border-base rounded-lg shadow-xl pointer-events-auto of-hidden flex flex-col max-h-[60vh]`},ro={class:`border-b border-base flex items-center px-3`},io=[`onClick`],ao={class:`flex-1 of-y-auto p-1.5`},oo={key:0,class:`py-8 flex flex-col items-center justify-center gap-2 op50 text-sm`},so={key:0},co={class:`text-primary op100`},lo={key:1},uo={class:`border-t border-base flex items-center justify-between gap-4 px-3 py-1.5 text-[10px] op50`},fo={class:`flex items-center gap-1.5`},po=b({__name:`CommandPalette`,props:{context:{}},setup(e){let t=e,r=g(()=>t.context.commands),i=g({get:()=>r.value.paletteOpen,set:e=>{r.value.paletteOpen=e}}),a=s(``),o=s(0),c=l(`searchInput`),p=s(!1),m=s([]),v=g(()=>{let e=[];for(let t of r.value.paletteCommands)if(e.push({entry:t,searchTitle:t.title}),t.children&&t.showInPalette!==`without-children`)for(let n of t.children)n.showInPalette!==!1&&e.push({entry:n,parentTitle:t.title,searchTitle:`${t.title} > ${n.title}`});return e}),b=g(()=>m.value.length>0?m.value.at(-1).items.map(e=>({entry:e,searchTitle:e.title})):v.value),x=s(),C=g(()=>x.value?x.value.map(e=>({entry:e,searchTitle:e.title})):b.value),D=g(()=>new _a(C.value,{keys:[`searchTitle`,`entry.description`,`entry.id`],distance:50,threshold:.4})),k=g(()=>a.value?D.value.search(a.value).map(e=>e.item):C.value);d(a,()=>{o.value=0}),d(i,e=>{e?(a.value=``,o.value=0,m.value=[],x.value=void 0,requestAnimationFrame(()=>{p.value=!0}),M(()=>c.value?.focus())):p.value=!1});function A(e){let t=k.value.length;t!==0&&(o.value=(o.value+e+t)%t,j())}function j(){let e=k.value[o.value];e&&document.getElementById(`cmd-${e.entry.id}`)?.scrollIntoView({block:`nearest`})}let ee=s(null);async function te(e){let t=e.entry;if(t.children&&t.children.length>0){m.value.push({title:t.title,items:t.children}),a.value=``,o.value=0,x.value=void 0;return}if(t.source===`client`&&t.action){try{let e=await t.action();if(Array.isArray(e)){x.value=e,a.value=``,o.value=0;return}}catch(e){console.error(`[DevTools] Command "${t.id}" failed:`,e)}P();return}if(t.source===`server`){ee.value=t.id;try{await r.value.execute(t.id)}catch(e){console.error(`[DevTools] Command "${t.id}" failed:`,e)}finally{ee.value=null}P();return}P()}function P(){p.value=!1,setTimeout(()=>{i.value=!1,a.value=``,m.value=[],x.value=void 0},150)}function ne(){if(x.value){x.value=void 0,a.value=``,o.value=0;return}if(m.value.length>0){m.value.pop(),a.value=``,o.value=0;return}P()}function re(e){e.key===`Backspace`&&!a.value&&(m.value.length>0||x.value)&&(e.preventDefault(),ne())}function ie(e){if(i.value)switch(e.key){case`ArrowDown`:case`ArrowUp`:e.preventDefault(),A(e.key===`ArrowDown`?1:-1);break;case`Enter`:{let t=k.value[o.value];t&&(e.preventDefault(),te(t));break}case`Escape`:e.preventDefault(),m.value.length>0||x.value?ne():P();break}}function oe(e){return r.value.getKeybindings(e)}return(e,t)=>i.value?(n(),S(`div`,{key:0,class:`vite-devtools-command-palette fixed inset-0 z-command-palette`,onKeydown:ie},[T(`div`,{class:h([`absolute inset-0 bg-white/50 dark:bg-black/30 transition-opacity duration-150`,p.value?`opacity-100 backdrop-blur-1`:`opacity-0 backdrop-blur-0`]),onClick:P},null,2),T(`div`,to,[T(`div`,{class:h([`flex flex-col transition-all duration-150`,p.value?`opacity-100 scale-100 translate-y-0`:`opacity-0 scale-98 -translate-y-2`])},[E(wa,{class:`absolute top--32px left-5px w-60 pointer-events-none`}),T(`div`,no,[T(`header`,ro,[m.value.length>0?(n(!0),S(w,{key:0},u(m.value,(e,r)=>(n(),S(`button`,{key:r,class:`text-xs op60 hover:op80 mr-1 flex items-center gap-0.5`,onClick:e=>{m.value.splice(r),a.value=``,o.value=0}},[y(N(e.title)+` `,1),t[1]||=T(`span`,{class:`op40`},`›`,-1)],8,io))),128)):_(``,!0),f(T(`input`,{ref_key:`searchInput`,ref:c,"onUpdate:modelValue":t[0]||=e=>a.value=e,class:`flex-1 bg-transparent py-3 outline-none text-sm text-base`,placeholder:`Type a command...`,onKeydown:re},null,544),[[ae,a.value]])]),T(`div`,ao,[(n(!0),S(w,null,u(k.value,(e,t)=>(n(),O(eo,{key:e.entry.id,entry:e.entry,"parent-title":e.parentTitle,"show-parent-title":!m.value.length,selected:o.value===t,loading:ee.value===e.entry.id,keybindings:oe(e.entry.id),onSelect:e=>o.value=t,onActivate:t=>te(e)},null,8,[`entry`,`parent-title`,`show-parent-title`,`selected`,`loading`,`keybindings`,`onSelect`,`onActivate`]))),128)),k.value.length?_(``,!0):(n(),S(`div`,oo,[t[4]||=T(`div`,{class:`i-ph-magnifying-glass-duotone w-6 h-6`},null,-1),a.value?(n(),S(`div`,so,[t[2]||=y(` No results for "`,-1),T(`strong`,co,N(a.value),1),t[3]||=y(`" `,-1)])):(n(),S(`div`,lo,` No commands available `))]))]),T(`footer`,uo,[t[6]||=T(`div`,{class:`flex items-center gap-1.5`},[T(`kbd`,{class:`px-1 py-0.5 rounded border border-base bg-base font-mono`},`↓↑`),T(`span`,null,`navigate`)],-1),T(`div`,fo,[t[5]||=T(`kbd`,{class:`px-1 py-0.5 rounded border border-base bg-base font-mono`},`esc`,-1),T(`span`,null,N(m.value.length>0||x.value?`back`:`close`),1)]),t[7]||=T(`div`,{class:`flex items-center gap-1.5`},[T(`kbd`,{class:`px-1 py-0.5 rounded border border-base bg-base font-mono`},`↵`),T(`span`,null,`select`)],-1)])])],2)])],32)):_(``,!0)}}),mo={key:0,class:`fixed bottom-4 right-4 z-2147483647 flex flex-col gap-2 pointer-events-auto w-72`},ho=[`onClick`],go=[`onClick`],_o=b({__name:`ToastOverlay`,props:{context:{}},setup(t){let r=t;r.context&&oe(r.context);let i=ne();function a(e){ee(e),r.context?.docks.switchEntry(`~logs`)}return(t,r)=>e(i).length>0?(n(),S(`div`,mo,[E(ce,{"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:c(()=>[(n(!0),S(w,null,u(e(i),t=>(n(),S(`div`,{key:t.id,class:`bg-glass border color-base border-base shadow-xl cursor-pointer hover:bg-active transition-colors rounded`,onClick:e=>a(t.id)},[E(se,{entry:t.entry,compact:``,class:`px-3 py-2.5`},{actions:c(()=>[T(`button`,{class:`flex-none op30 hover:op100 p-0.5 rounded hover:bg-active transition`,onClick:P(n=>e(ee)(t.id),[`stop`])},[...r[0]||=[T(`div`,{class:`i-ph-x w-3 h-3`},null,-1)]],8,go)]),_:2},1032,[`entry`])],8,ho))),128))]),_:1})])):_(``,!0)}}),vo=o(null),yo=o(null),bo=o(null);function xo(e){vo.value=e}function So(){return vo}function Co(e){yo.value=e}function wo(){return yo}function To(e){bo.value=e}function Eo(){return bo}var Do=o(null);function Oo(e){Do.value=e}function ko(){return Do}var Ao=100,jo=10,Mo=b({name:`FloatingPopover`,props:{item:{type:Object,required:!1},dismissOnClickOutside:{type:Boolean,default:!0}},emits:[`dismiss`],setup(e,{emit:t}){let n=l(`panel`),r=s(e.item?.el),i=s(0),a=le(()=>{e.item?.el??(r.value=void 0)},800);e.dismissOnClickOutside&&fe(n,()=>{t(`dismiss`)}),d(()=>e.item,e=>{e?r.value===e.el?i.value++:r.value=e.el:a()});let o,c={};return()=>{if(i.value,!r.value)return null;if(!e.item)return k(`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`,`op0 pointer-events-none`],style:c},o);let t=r.value.getBoundingClientRect(),n=`bottom`,a=window.innerWidth,s=window.innerHeight;t.left<Ao?n=`right`:t.left+t.width>a-Ao?n=`left`:t.top<Ao?n=`bottom`:t.top+t.height>s-Ao&&(n=`top`);let l={},u=e.item?.gap??jo;switch(n){case`bottom`:l={left:`${t.left+t.width/2}px`,top:`${t.top+t.height+u}px`,transform:`translateX(-50%)`};break;case`top`:l={left:`${t.left+t.width/2}px`,bottom:`${s-t.top+u}px`,transform:`translateX(-50%)`};break;case`left`:l={right:`${a-t.left+u}px`,top:`${t.top+t.height/2}px`,transform:`translateY(-50%)`};break;case`right`:l={left:`${t.left+t.width+u}px`,top:`${t.top+t.height/2}px`,transform:`translateY(-50%)`};break}c=l;let d=(typeof e.item?.content==`string`?k(`span`,e.item?.content):e.item?.content())??o;return o=d,k(`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:l},d)}}}),No=b({__name:`FloatingElements`,setup(t){let r=So(),i=wo(),a=Eo(),o=ko();return de(window,`keydown`,e=>{e.key===`Escape`&&a.value&&To(null)}),(t,s)=>(n(),S(w,null,[E(e(Mo),{item:e(i),onDismiss:s[0]||=()=>e(Co)(null)},null,8,[`item`]),E(e(Mo),{item:e(a),onDismiss:s[1]||=()=>e(To)(null)},null,8,[`item`]),E(e(Mo),{item:e(o),onDismiss:s[2]||=()=>e(Oo)(null)},null,8,[`item`]),E(e(Mo),{item:e(r)},null,8,[`item`])],64))}}),Po={},Fo={viewBox:`0 0 40 40`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`};function Io(e,t){return n(),S(`svg`,Fo,[...t[0]||=[v(`<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 Lo=Oa(Po,[[`render`,Io]]),Ro={class:`w-full h-full flex flex-col items-center justify-center p20`},zo={class:`max-w-150 flex flex-col items-center justify-center gap-2`},Bo=[`disabled`],Vo=b({__name:`ViewBuiltinClientAuthNotice`,props:{context:{}},setup(e){let t=e,r=s(``);function i(){let e=r.value.trim();e&&t.context.rpc.requestTrustWithToken(e)}return(e,t)=>(n(),S(`div`,Ro,[T(`div`,zo,[E(Lo,{class:`w-20 h-20`}),t[1]||=v(`<h1 class="text-2xl font-bold text-violet mb2"> Vite DevTools needs Authorization </h1><p class="op75"> Vite DevTools offers advanced features that can access your server, view your filesystem, and execute commands. </p><p class="op75"> To protect your project from unauthorized access, please authorize your browser before proceeding. </p><p class="font-bold bg-green:5 p1 px3 rounded mt8 text-green"> Check your terminal for the authorization prompt and come back. </p><div class="mt6 op50"> or </div>`,5),T(`form`,{class:`mt2 flex items-center gap-2`,onSubmit:P(i,[`prevent`])},[f(T(`input`,{"onUpdate:modelValue":t[0]||=e=>r.value=e,type:`text`,placeholder:`Enter auth token`,class:`px3 py1.5 rounded border border-base bg-transparent text-sm outline-none focus:border-violet`},null,512),[[ae,r.value]]),T(`button`,{type:`submit`,class:`px3 py1.5 rounded bg-violet text-white text-sm hover:op80 disabled:op40`,disabled:!r.value.trim()},` Authorize `,8,Bo)],32)])]))}}),Ho={class:`flex flex-col gap-6`},Uo=b({__name:`SettingsAdvanced`,props:{context:{},settingsStore:{}},setup(e){let t=e;function r(){confirm(`Reset all settings to defaults? This includes appearance, docks, and shortcuts.`)&&t.settingsStore.mutate(()=>ye())}function i(){confirm(`Reset all keyboard shortcuts to defaults?`)&&t.settingsStore.mutate(e=>{e.commandShortcuts={}})}function a(){confirm(`Reset dock visibility, order, and pinning to defaults?`)&&t.settingsStore.mutate(e=>{let t=ye();e.docksHidden=t.docksHidden,e.docksCategoriesHidden=t.docksCategoriesHidden,e.docksCustomOrder=t.docksCustomOrder,e.docksPinned=t.docksPinned})}return(e,t)=>(n(),S(`div`,Ho,[T(`div`,{class:`flex items-start gap-4`},[t[1]||=T(`div`,{class:`flex-1`},[T(`div`,{class:`text-sm`},` Reset Keyboard Shortcuts `),T(`div`,{class:`text-xs op50 mt-0.5`},` Remove all custom shortcut overrides and restore default keybindings `)],-1),T(`button`,{class:`px-4 py-2 rounded bg-orange/10 text-orange hover:bg-orange/20 transition-colors flex items-center gap-2 text-sm shrink-0`,onClick:i},[...t[0]||=[T(`div`,{class:`i-ph-keyboard-duotone w-4 h-4`},null,-1),y(` Reset Shortcuts `,-1)]])]),T(`div`,{class:`flex items-start gap-4`},[t[3]||=T(`div`,{class:`flex-1`},[T(`div`,{class:`text-sm`},` Reset Dock Settings `),T(`div`,{class:`text-xs op50 mt-0.5`},` Restore default dock visibility, order, and pinning `)],-1),T(`button`,{class:`px-4 py-2 rounded bg-orange/10 text-orange hover:bg-orange/20 transition-colors flex items-center gap-2 text-sm shrink-0`,onClick:a},[...t[2]||=[T(`div`,{class:`i-ph-layout-duotone w-4 h-4`},null,-1),y(` Reset Docks `,-1)]])]),T(`div`,{class:`border-t border-base pt-6`},[T(`div`,{class:`flex items-start gap-4`},[t[5]||=T(`div`,{class:`flex-1`},[T(`div`,{class:`text-sm`},` Reset All Settings `),T(`div`,{class:`text-xs op50 mt-0.5`},` Reset everything to defaults including appearance, docks, and shortcuts `)],-1),T(`button`,{class:`px-4 py-2 rounded bg-red/10 text-red hover:bg-red/20 transition-colors flex items-center gap-2 text-sm shrink-0`,onClick:r},[...t[4]||=[T(`div`,{class:`i-ph-arrow-counter-clockwise w-4 h-4`},null,-1),y(` Reset All `,-1)]])])])]))}});function Wo(){return{mode:`float`,width:80,height:80,top:0,left:10,position:`bottom`,open:!1,inactiveTimeout:3e3}}function Go(e,t){let n=be(),r=p({entryMeta:e,get isActive(){return t.value?.id===e.id},domElements:{},events:i(n)});return d(()=>t.value?.id,t=>{t===e.id?n.emit(`entry:activated`):n.emit(`entry:deactivated`)},{immediate:!0}),d(()=>r.domElements.iframe,e=>{e&&n.emit(`dom:iframe:mounted`,e)},{immediate:!0}),d(()=>r.domElements.panel,e=>{e&&n.emit(`dom:panel:mounted`,e)},{immediate:!0}),r}function Ko(e){let t=o(e.value());return e.on(`updated`,e=>{t.value=e}),t}var qo=new WeakMap;async function Jo(e){if(qo.has(e))return qo.get(e);let t=Ko(await e.sharedState.get(`devtoolskit:internal:docks`,{initialValue:[]}));return qo.set(e,t),t}var Yo=`modulepreload`,Xo=function(e,t){return new URL(e,t).href},Zo={},Qo=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=Xo(t,n),t in Zo)return;Zo[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`:Yo,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)})},$o=20,es=100,ts=320,ns=240,rs=`__VITE_DEVTOOLS_TRIGGER_DOCK_ACTION__`,is=o(null),as=o(!1),os=be(),ss,cs,ls,us,ds=async()=>await Qo(()=>import(`./DockStandalone-BvXvOkmY.js`).then(e=>e.DockStandalone),__vite__mapDeps([0,1,2,3]),import.meta.url);os.on(`popup:open-requested`,e=>{Ds(e)});function fs(){if(!(typeof window>`u`))return window.documentPictureInPicture}function ps(){ss?.(),ss=void 0,cs?.(),cs=void 0}function ms(){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 hs(e,t){e.document.documentElement?.style.setProperty(`color-scheme`,t)}function gs(e){let t=[],n=()=>hs(e,ms());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 _s(){ls?.remove(),ls=void 0}function vs(){ps(),_s(),is.value=null,as.value=!1;let e=us;us=void 0,e?.docks.switchEntry(null)}function ys(e,t,n){return Math.min(Math.max(e,t),n)}function bs(e,t){window.innerWidth<=0||window.innerHeight<=0||(e.panel.store.width=ys(Math.round(t.innerWidth/window.innerWidth*100),$o,es),e.panel.store.height=ys(Math.round(t.innerHeight/window.innerHeight*100),$o,es))}async function xs(e,t){let n=await ds(),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});ls=a,i.appendChild(a)}function Ss(){return!!fs()?.requestWindow}function Cs(e,t){typeof window>`u`||e!==`standalone`&&(window[rs]=t)}async function ws(e,t){if(!(typeof window>`u`)&&e===`standalone`)try{let e=window.opener;if(!e||e.closed)return;let n=e[rs];return typeof n==`function`?await n(t):void 0}catch{return}}function Ts(){return as}function Es(e){os.emit(`popup:open-requested`,e)}async function Ds(e){Co(null);let t=is.value;if(t?.closed)vs();else if(t)return t.focus(),t;let n=fs();if(!n?.requestWindow)return null;let r;try{let t=r=await n.requestWindow({width:Math.max(ts,Math.round(window.innerWidth*e.panel.store.width/100)),height:Math.max(ns,Math.round(window.innerHeight*e.panel.store.height/100))});await xs(e,t),cs=gs(t);let i=()=>bs(e,t),a=()=>{is.value===t&&vs()};return t.addEventListener(`resize`,i),t.addEventListener(`pagehide`,a),ss=()=>{t.removeEventListener(`resize`,i),t.removeEventListener(`pagehide`,a)},us=e,is.value=t,as.value=!0,t}catch{return r&&!r.closed&&r.close(),vs(),null}}var Os={class:`flex flex-col gap-4`},ks={key:0,class:`flex flex-col gap-2`},As={class:`flex items-center gap-1 bg-gray/10 rounded-lg p1 w-fit`},js=[`onClick`],Ms={class:`flex items-center gap-3 cursor-pointer group`},Ns={class:`flex items-center gap-3 cursor-pointer group`},Ps=b({__name:`SettingsAppearance`,props:{context:{},settingsStore:{}},setup(t){let r=t,i=Ko(r.settingsStore),a=r.context.panel.store,o=r.context.clientType===`embedded`,s=Ts(),c=g(()=>{let e=[{value:`float`,label:`Float`,icon:`i-ph-cards-three-duotone`},{value:`edge`,label:`Edge`,icon:`i-ph-square-half-bottom-duotone`}];return Ss()&&e.push({value:`popup`,label:`Popup`,icon:`i-ph-arrow-square-out-duotone`}),e}),l=g(()=>a.mode);function d(e){e===`popup`?Es(r.context):a.mode=e}return(r,a)=>(n(),S(`div`,Os,[o&&!e(s)?(n(),S(`div`,ks,[a[2]||=T(`div`,{class:`flex flex-col`},[T(`span`,{class:`text-sm`},`Dock mode`),T(`span`,{class:`text-xs op50`},`How the DevTools panel is displayed`)],-1),T(`div`,As,[(n(!0),S(w,null,u(c.value,e=>(n(),S(`button`,{key:e.value,class:h([`flex items-center gap-1.5 px3 py1.5 rounded-md text-sm transition-all`,l.value===e.value?`bg-base shadow text-primary font-medium`:`op60 hover:op100 hover:bg-gray/10`]),onClick:t=>d(e.value)},[T(`div`,{class:h([e.icon,`w-4 h-4`])},null,2),y(` `+N(e.label),1)],10,js))),128))])])):_(``,!0),T(`label`,Ms,[T(`button`,{class:h([`w-10 h-6 rounded-full transition-colors relative shrink-0`,e(i).showIframeAddressBar?`bg-lime`:`bg-gray/30`]),onClick:a[0]||=e=>t.settingsStore.mutate(e=>{e.showIframeAddressBar=!e.showIframeAddressBar})},[T(`div`,{class:h([`absolute top-1 w-4 h-4 rounded-full bg-white shadow transition-transform`,e(i).showIframeAddressBar?`translate-x-5`:`translate-x-1`])},null,2)],2),a[3]||=T(`div`,{class:`flex flex-col`},[T(`span`,{class:`text-sm`},`Show iframe address bar`),T(`span`,{class:`text-xs op50`},`Display navigation controls and URL bar for iframe views`)],-1)]),T(`label`,Ns,[T(`button`,{class:h([`w-10 h-6 rounded-full transition-colors relative shrink-0`,e(i).closeOnOutsideClick?`bg-lime`:`bg-gray/30`]),onClick:a[1]||=e=>t.settingsStore.mutate(e=>{e.closeOnOutsideClick=!e.closeOnOutsideClick})},[T(`div`,{class:h([`absolute top-1 w-4 h-4 rounded-full bg-white shadow transition-transform`,e(i).closeOnOutsideClick?`translate-x-5`:`translate-x-1`])},null,2)],2),a[4]||=T(`div`,{class:`flex flex-col`},[T(`span`,{class:`text-sm`},`Close panel on outside click`),T(`span`,{class:`text-xs op50`},`Close the DevTools panel when clicking outside of it (embedded mode only)`)],-1)])]))}}),Fs=Object.freeze({type:`~builtin`,id:`~client-auth-notice`,title:`Unauthorized`,icon:`i-fluent-emoji-flat-warning`}),Is=Object.freeze([Fs]),Ls={"~viteplus":-1e3,default:0,app:100,framework:200,web:300,advanced:400,"~builtin":1e3};function Rs(e,t,n){let{docksHidden:r,docksCategoriesHidden:i,docksCustomOrder:a,docksPinned:o}=t,{includeHidden:s=!1,whenContext:c}=n??{},l=new Map;for(let t of e){if(t.when&&c&&!Fa(t.when,c)&&!s||t.when&&!c&&t.when===`false`&&!s||!s&&r.includes(t.id))continue;let e=t.category??`default`;!s&&i.includes(e)||(l.has(e)||l.set(e,[]),l.get(e).push(t))}let u=Array.from(l.entries()).sort(([e],[t])=>{let n=Ls[e]||0,r=Ls[t]||0;return r===n?t.localeCompare(e):n-r});return u.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})}),u}var zs={class:`flex flex-col gap-4`},Bs={class:`flex items-center gap-2 px-4 py-3 bg-gray/5 cursor-pointer select-none border-b border-base`},Vs=[`disabled`,`onClick`],Hs={class:`font-medium capitalize`},Us={class:`text-xs op40`},Ws=[`onClick`],Gs=[`disabled`,`title`,`onClick`],Ks={key:0,class:`i-ph-check-bold text-xs`},qs={class:`flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity`},Js=[`onClick`],Ys=[`onClick`],Xs=[`title`,`onClick`],Zs=b({__name:`SettingsDocks`,props:{context:{},settingsStore:{}},setup(t){let r=t,i=Ko(r.settingsStore),a=g(()=>Rs(r.context.docks.entries,r.settingsStore.value(),{includeHidden:!0}));function o(e){return{"~viteplus":`Vite+`,default:`Default`,app:`App`,framework:`Framework`,web:`Web`,advanced:`Advanced`,"~builtin":`Built-in`}[e]||e}function s(e,t){if(e===`~settings`)return;let n=i.value.docksHidden.includes(e);t??n?r.settingsStore.mutate(t=>{t.docksHidden=t.docksHidden.filter(t=>t!==e)}):r.settingsStore.mutate(t=>{t.docksHidden=[...t.docksHidden,e]})}function c(e,t){if(e===`~builtin`)return;let n=i.value.docksCategoriesHidden.includes(e);t??n?r.settingsStore.mutate(t=>{t.docksCategoriesHidden=t.docksCategoriesHidden.filter(t=>t!==e)}):r.settingsStore.mutate(t=>{t.docksCategoriesHidden=[...t.docksCategoriesHidden,e]})}function l(e){i.value.docksPinned.includes(e)?r.settingsStore.mutate(t=>{t.docksPinned=t.docksPinned.filter(t=>t!==e)}):r.settingsStore.mutate(t=>{t.docksPinned=[...t.docksPinned,e]})}function d(e){return i.value.docksCustomOrder[e]!==void 0}function f(e,t,n){let i=a.value.find(([t])=>t===e);if(!i)throw Error(`Category ${e} not found`);let o=[...i[1]],s=o.findIndex(e=>e.id===t),c=s+n;if(c<0||c>=o.length)throw Error(`Invalid new index ${c} for category ${e}`);o.splice(c,0,o.splice(s,1)[0]),i[1]=o,r.settingsStore.mutate(e=>{o.forEach((t,n)=>{e.docksCustomOrder[t.id]=n})})}function p(e){let t=a.value.find(([t])=>t===e);return t?t[1].some(e=>d(e.id)):!1}function m(e){let t=a.value.find(([t])=>t===e);t&&r.settingsStore.mutate(e=>{t[1].forEach(t=>{delete e.docksCustomOrder[t.id]})})}return(t,r)=>(n(),S(w,null,[r[5]||=T(`p`,{class:`text-sm op50 mb-4`},` Manage visibility and order of dock entries. Hidden entries will not appear in the dock bar. `,-1),T(`div`,zs,[(n(!0),S(w,null,u(a.value,([t,a])=>(n(),S(`div`,{key:t,class:h([`border border-base rounded-lg overflow-hidden transition-opacity`,e(i).docksCategoriesHidden.includes(t)?`op40`:``])},[T(`div`,Bs,[T(`button`,{class:h([`w-5 h-5 flex items-center justify-center rounded transition-colors`,[t===`~builtin`?`bg-gray/20 cursor-not-allowed op50`:e(i).docksCategoriesHidden.includes(t)?`bg-gray/20`:`bg-lime/20 text-lime`]]),disabled:t===`~builtin`,onClick:e=>c(t)},[T(`div`,{class:h([`transition-transform`,e(i).docksCategoriesHidden.includes(t)?`i-ph-eye-slash text-sm op50`:`i-ph-check-bold text-xs`])},null,2)],10,Vs),T(`span`,Hs,N(o(t)),1),T(`span`,Us,`(`+N(a.length)+`)`,1),r[1]||=T(`span`,{class:`flex-auto`},null,-1),p(t)?(n(),S(`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:e=>m(t)},[...r[0]||=[T(`div`,{class:`i-ph-arrows-counter-clockwise-duotone text-sm op60`},null,-1)]],8,Ws)):_(``,!0)]),T(`div`,null,[(n(!0),S(w,null,u(a,(o,c)=>(n(),S(`div`,{key:o.id,class:h([`flex items-center gap-3 px-4 py-2.5 hover:bg-gray/5 transition-colors group border-b border-base border-t-0`,e(i).docksHidden.includes(o.id)?`op40`:``])},[T(`button`,{class:h([`w-6 h-6 flex items-center justify-center rounded border border-transparent hover:border-base transition-colors shrink-0`,o.id===`~settings`?`cursor-not-allowed op50`:e(i).docksHidden.includes(o.id)?`op50`:``]),disabled:o.id===`~settings`,title:o.id===`~settings`?`Always visible`:e(i).docksHidden.includes(o.id)?`Show`:`Hide`,onClick:e=>s(o.id)},[T(`div`,{class:h([`w-4 h-4 rounded flex items-center justify-center transition-colors`,o.id===`~settings`||e(i).docksHidden.includes(o.id)?`bg-gray/30`:`bg-lime/20 text-lime`])},[e(i).docksHidden.includes(o.id)?_(``,!0):(n(),S(`div`,Ks))],2)],10,Gs),E(Pa,{icon:o.icon,title:o.title,class:h([`w-5 h-5 shrink-0`,e(i).docksHidden.includes(o.id)?`saturate-0`:``])},null,8,[`icon`,`title`,`class`]),T(`span`,{class:h([`truncate`,e(i).docksHidden.includes(o.id)?`line-through op60`:``])},N(o.title),3),o.type===`action`?(n(),O(ie,{key:0,label:`Action`,class:`flex-none text-xs`})):_(``,!0),r[4]||=T(`div`,{class:`flex flex-auto`},null,-1),T(`div`,qs,[c>0?(n(),S(`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:e=>f(t,o.id,-1)},[...r[2]||=[T(`div`,{class:`i-ph-caret-up text-sm op60`},null,-1)]],8,Js)):_(``,!0),c<a.length-1?(n(),S(`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:e=>f(t,o.id,1)},[...r[3]||=[T(`div`,{class:`i-ph-caret-down text-sm op60`},null,-1)]],8,Ys)):_(``,!0)]),T(`button`,{class:h([`w-7 h-7 flex items-center justify-center rounded hover:bg-gray/20 transition-colors shrink-0`,e(i).docksPinned.includes(o.id)?`text-amber`:`op40 hover:op70`]),title:e(i).docksPinned.includes(o.id)?`Unpin`:`Pin`,onClick:e=>l(o.id)},[T(`div`,{class:h([e(i).docksPinned.includes(o.id)?`i-ph-push-pin-fill rotate--45`:`i-ph-push-pin`,`text-base`])},null,2)],10,Xs)],2))),128))])],2))),128))])],64))}}),Qs={class:`mb-3`},$s={class:`border border-base rounded-lg overflow-hidden`},ec={class:`flex-1 min-w-0`},tc={class:`flex items-center gap-1.5`},nc={class:`truncate text-sm`},rc={key:0,class:`text-[10px] px-1.5 py-0.5 rounded bg-blue/10 text-blue shrink-0`},ic={key:0,class:`text-xs op40 truncate mt-0.5`},ac={class:`flex items-center gap-1.5 shrink-0`},oc=[`onClick`],sc=[`onClick`],cc=[`onClick`],lc=[`onClick`],uc={key:0,class:`py-6 text-center text-sm op40`},dc={key:0,class:`fixed inset-0 z-command-palette flex items-center justify-center`},fc={class:`relative bg-base border border-base rounded-lg shadow-xl w-96 p-5`},pc={class:`mb-4`},mc=[`value`],hc={class:`flex items-center gap-2 mb-4`},gc={key:0,class:`mb-4 flex flex-col gap-1.5`},_c={class:`flex items-center justify-end gap-2`},vc=[`disabled`],yc=b({__name:`SettingsShortcuts`,props:{context:{}},setup(t){let r=t.context.commands,i=Ko(r.settings),a=g(()=>i.value.commandShortcuts??{}),o=s(``),c=g(()=>{let e=[];for(let t of r.commands)if(e.push({command:t,indent:!1}),t.children)for(let n of t.children)e.push({command:n,parentTitle:t.title,indent:!0});return e}),l=g(()=>{if(!o.value)return c.value;let e=o.value.toLowerCase();return c.value.filter(t=>t.command.title.toLowerCase().includes(e)||t.command.id.toLowerCase().includes(e)||t.command.description?.toLowerCase().includes(e))});function p(e){return r.getKeybindings(e)}function m(e){return a.value[e]!==void 0}function v(e){r.settings.mutate(t=>{t.commandShortcuts[e]=[]})}function b(e){r.settings.mutate(t=>{delete t.commandShortcuts[e]})}let x=s(!1),C=s(null),D=s(!1),k=s(!1),A=s(!1),j=s(!1),M=s(``);function ee(e){let t=p(e);if(C.value=e,t.length>0){let e=t[0].key.split(`+`);D.value=e.includes(`Mod`),k.value=e.includes(`Ctrl`),A.value=e.includes(`Alt`),j.value=e.includes(`Shift`),M.value=e.filter(e=>![`Mod`,`Ctrl`,`Alt`,`Shift`,`Meta`].includes(e)).join(`+`)}else D.value=!1,k.value=!1,A.value=!1,j.value=!1,M.value=``;x.value=!0}function te(){x.value=!1,C.value=null}let P=g(()=>{let e=[];return D.value&&e.push(`Mod`),k.value&&e.push(`Ctrl`),A.value&&e.push(`Alt`),j.value&&e.push(`Shift`),M.value&&e.push(M.value),e.join(`+`)}),ne=g(()=>{let e=[],t=P.value;if(!t)return e;let n=D.value||k.value||A.value;!n&&M.value&&e.push(`Single key without modifiers may interfere with typing`),!n&&j.value&&M.value.length===1&&e.push(`Shift + letter may interfere with typing`);let r=Ba[t];if(r){let n=La(t).join(`+`);e.push(`Conflicts with browser shortcut: ${r} (${n})`)}if(C.value){for(let n of c.value)if(n.command.id!==C.value&&p(n.command.id).some(e=>e.key===t)){e.push(`Conflicts with "${n.command.title}"`);break}}return e}),re=g(()=>M.value.length>0);function ie(e){if(e.preventDefault(),e.stopPropagation(),[`Control`,`Meta`,`Alt`,`Shift`].includes(e.key))return;D.value=$?e.metaKey:e.ctrlKey,$&&e.ctrlKey&&(k.value=!0),A.value=e.altKey,j.value=e.shiftKey;let t=e.key;t.length===1&&(t=t.toUpperCase()),M.value=t}function oe(){!C.value||!re.value||(r.settings.mutate(e=>{e.commandShortcuts[C.value]=[{key:P.value}]}),te())}return d(x,e=>{if(!e)return;let t=e=>{if(e.key===`Escape`){let e=document.activeElement;(!e||!e.classList.contains(`shortcut-key-input`))&&(te(),window.removeEventListener(`keydown`,t))}};window.addEventListener(`keydown`,t)}),(t,r)=>(n(),S(w,null,[r[10]||=T(`p`,{class:`text-sm op50 mb-4`},` Customize keyboard shortcuts for commands. `,-1),T(`div`,Qs,[f(T(`input`,{"onUpdate:modelValue":r[0]||=e=>o.value=e,class:`w-full bg-gray/10 rounded-lg px-3 py-2 text-sm outline-none focus:ring-1 focus:ring-primary/30`,placeholder:`Search commands...`},null,512),[[ae,o.value]])]),T(`div`,$s,[(n(!0),S(w,null,u(l.value,e=>(n(),S(`div`,{key:e.command.id,class:`flex items-center gap-3 px-4 py-2.5 hover:bg-gray/5 transition-colors border-b border-base last:border-b-0`},[e.command.icon?(n(),O(Pa,{key:0,icon:e.command.icon,class:h([`w-4 h-4 shrink-0 op60`,{"ml-6":e.indent}])},null,8,[`icon`,`class`])):(n(),S(`div`,{key:1,class:h([{"ml-6":e.indent},`w-4 h-4 shrink-0`])},null,2)),T(`div`,ec,[T(`div`,tc,[T(`span`,nc,N(e.command.title),1),e.command.source===`server`?(n(),S(`span`,rc,`server`)):_(``,!0)]),e.command.description?(n(),S(`div`,ic,N(e.command.description),1)):_(``,!0)]),T(`div`,ac,[p(e.command.id).length>0?(n(!0),S(w,{key:0},u(p(e.command.id),(t,r)=>(n(),S(`button`,{key:r,class:`flex items-center gap-0.5 hover:bg-gray/10 rounded px-1 py-0.5 transition-colors`,title:`Click to edit`,onClick:t=>ee(e.command.id)},[E(Ha,{"key-string":t.key},null,8,[`key-string`])],8,oc))),128)):(n(),S(`button`,{key:1,class:`text-xs op30 hover:op60 px-2 py-1 rounded hover:bg-gray/10 transition-colors`,onClick:t=>ee(e.command.id)},` Add shortcut `,8,sc)),p(e.command.id).length>0?(n(),S(`button`,{key:2,class:`w-5 h-5 flex items-center justify-center rounded hover:bg-gray/20 transition-colors op30 hover:op70`,title:`Clear shortcut`,onClick:t=>v(e.command.id)},[...r[5]||=[T(`div`,{class:`i-ph-x text-xs`},null,-1)]],8,cc)):_(``,!0),m(e.command.id)?(n(),S(`button`,{key:3,class:`w-5 h-5 flex items-center justify-center rounded hover:bg-gray/20 transition-colors op30 hover:op70`,title:`Reset to default`,onClick:t=>b(e.command.id)},[...r[6]||=[T(`div`,{class:`i-ph-arrow-counter-clockwise text-xs`},null,-1)]],8,lc)):_(``,!0)])]))),128)),l.value.length===0?(n(),S(`div`,uc,` No commands found `)):_(``,!0)]),x.value?(n(),S(`div`,dc,[T(`div`,{class:`absolute inset-0 bg-black/30`,onClick:te}),T(`div`,fc,[r[9]||=T(`h3`,{class:`text-sm font-medium mb-4`},` Edit Shortcut `,-1),T(`div`,pc,[r[7]||=T(`label`,{class:`text-xs op50 mb-1.5 block`},`Press a key combination or toggle modifiers below`,-1),T(`input`,{class:`shortcut-key-input w-full bg-gray/10 border border-base rounded-lg px-3 py-2.5 text-center text-sm font-mono outline-none focus:border-primary/40`,value:P.value?e(La)(P.value).join(` + `):``,placeholder:`Press keys...`,readonly:``,onKeydown:ie},null,40,mc)]),T(`div`,hc,[T(`button`,{class:h([`px-3 py-1.5 rounded-md text-xs font-mono border transition-colors`,D.value?`bg-primary/15 border-primary/30 text-primary`:`border-base op50 hover:op80`]),onClick:r[1]||=e=>D.value=!D.value},N(e($)?`⌘ Cmd`:`Ctrl`),3),e($)?(n(),S(`button`,{key:0,class:h([`px-3 py-1.5 rounded-md text-xs font-mono border transition-colors`,k.value?`bg-primary/15 border-primary/30 text-primary`:`border-base op50 hover:op80`]),onClick:r[2]||=e=>k.value=!k.value},` \\u2303 Ctrl `,2)):_(``,!0),T(`button`,{class:h([`px-3 py-1.5 rounded-md text-xs font-mono border transition-colors`,A.value?`bg-primary/15 border-primary/30 text-primary`:`border-base op50 hover:op80`]),onClick:r[3]||=e=>A.value=!A.value},N(e($)?`⌥ Alt`:`Alt`),3),T(`button`,{class:h([`px-3 py-1.5 rounded-md text-xs font-mono border transition-colors`,j.value?`bg-primary/15 border-primary/30 text-primary`:`border-base op50 hover:op80`]),onClick:r[4]||=e=>j.value=!j.value},N(e($)?`⇧ Shift`:`Shift`),3)]),ne.value.length>0?(n(),S(`div`,gc,[(n(!0),S(w,null,u(ne.value,(e,t)=>(n(),S(`div`,{key:t,class:`flex items-center gap-1.5 text-xs text-amber`},[r[8]||=T(`div`,{class:`i-ph-warning-duotone w-3.5 h-3.5 shrink-0`},null,-1),y(` `+N(e),1)]))),128))])):_(``,!0),T(`div`,_c,[T(`button`,{class:`px-3 py-1.5 rounded text-xs op60 hover:op100 hover:bg-gray/10 transition-colors`,onClick:te},` Cancel `),T(`button`,{class:h([`px-3 py-1.5 rounded text-xs transition-colors`,re.value?`bg-primary/15 text-primary hover:bg-primary/25`:`op30 cursor-not-allowed`]),disabled:!re.value,onClick:oe},` OK `,10,vc)])])])):_(``,!0)],64))}}),bc={class:`h-full w-full overflow-hidden flex flex-col`},xc={class:`flex items-center border-b border-base px-6 shrink-0`},Sc=[`onClick`],Cc={key:0,class:`absolute bottom-0 left-2 right-2 h-0.5 bg-primary rounded-full`},wc={class:`flex-1 overflow-auto p8`},Tc={class:`max-w-200 mx-auto`},Ec=b({__name:`ViewBuiltinSettings`,props:{context:{},entry:{}},setup(t){let r=t,i=[{id:`appearance`,label:`Appearance`,icon:`i-ph-paint-brush-duotone`},{id:`docks`,label:`Docks`,icon:`i-ph-layout-duotone`},{id:`shortcuts`,label:`Shortcuts`,icon:`i-ph-keyboard-duotone`},{id:`advanced`,label:`Advanced`,icon:`i-ph-wrench-duotone`}],a=s(`appearance`),o=r.context.docks.settings;return(r,s)=>(n(),S(`div`,bc,[T(`div`,xc,[(n(),S(w,null,u(i,e=>T(`button`,{key:e.id,class:h([`flex items-center gap-1.5 px-4 py-3 text-sm transition-colors relative`,a.value===e.id?`op100 text-primary`:`op50 hover:op80`]),onClick:t=>a.value=e.id},[T(`div`,{class:h([e.icon,`w-4 h-4`])},null,2),y(` `+N(e.label)+` `,1),a.value===e.id?(n(),S(`div`,Cc)):_(``,!0)],10,Sc)),64))]),T(`div`,wc,[T(`div`,Tc,[a.value===`appearance`?(n(),O(Ps,{key:0,context:t.context,"settings-store":e(o)},null,8,[`context`,`settings-store`])):_(``,!0),a.value===`shortcuts`?(n(),O(yc,{key:1,context:t.context},null,8,[`context`])):_(``,!0),a.value===`docks`?(n(),O(Zs,{key:2,context:t.context,"settings-store":e(o)},null,8,[`context`,`settings-store`])):_(``,!0),a.value===`advanced`?(n(),O(Uo,{key:3,context:t.context,"settings-store":e(o)},null,8,[`context`,`settings-store`])):_(``,!0)])])]))}}),Dc=b({__name:`ViewCustomRenderer`,props:{context:{},entry:{},persistedDoms:{},divStyle:{}},setup(e){let i=e,a=s(!0),o=l(`viewFrame`);return t(()=>{let e=i.persistedDoms.getOrCreateHolder(i.entry.id,`div`);e.element.style.boxShadow=`none`,e.element.style.outline=`none`,Object.assign(e.element.style,i.divStyle);let t=i.context.docks.getStateById(i.entry.id);t&&(t.domElements.panel=e.element),e.mount(o.value),a.value=!1,M(()=>{e.update()}),d(()=>i.context.panel,()=>{e.update()},{deep:!0}),r(()=>{e.element.style.pointerEvents=i.context.panel.isDragging||i.context.panel.isResizing?`none`:`auto`},{flush:`sync`})}),j(()=>{i.persistedDoms.getHolder(i.entry.id,`div`)?.unmount()}),(e,t)=>(n(),S(`div`,{ref_key:`viewFrame`,ref:o,class:`vite-devtools-view-custom-renderer w-full h-full flex items-center justify-center`},null,512))}}),Oc={class:`w-full h-full flex flex-col`},kc={key:1,class:`flex items-center gap-1 px2 py1 rounded text-xs bg-amber/10 text-amber border border-amber/20 shrink-0`,title:`Cross-origin iframe - navigation controls unavailable`},Ac={class:`flex-1 flex items-center h-7 px-2.5 rounded bg-gray/5 border border-transparent hover:border-gray/10 focus-within:border-gray/15 transition-colors`},jc=[`value`,`readonly`],Mc={key:0,class:`i-ph-circle-notch text-sm op40 ml-2 shrink-0 animate-spin`},Nc={key:0,class:`op50 z--1`},Pc=40,Fc=b({__name:`ViewIframe`,props:{context:{},entry:{},persistedDoms:{},iframeStyle:{}},setup(e){let i=e,a=Ko(i.context.docks.settings),o=g(()=>a.value.showIframeAddressBar??!0),c=g(()=>i.context.panel.store.mode===`edge`),u=s(!0),f=s(!1),p=l(`viewFrame`),m=l(`urlInput`),v=s(i.entry.url),y=s(i.entry.url),b=s(!1),x=g(()=>i.persistedDoms.getHolder(i.entry.id,`iframe`)?.element),C=g(()=>{try{return window.location.origin}catch{return``}}),E=g(()=>{try{return new URL(v.value).origin!==C.value}catch{return!0}}),D=g(()=>{if(E.value)return v.value;try{let e=new URL(v.value);return e.pathname+e.search+e.hash}catch{return v.value}});function O(){try{let e=x.value;e?.contentWindow?.location?.href&&(v.value=e.contentWindow.location.href)}catch{}}function k(e){let t=x.value;if(!t)return;let n=e.trim();n&&!/^https?:\/\//i.test(n)&&(n=n.startsWith(`/`)?`${window.location.origin}${n}`:`http://${n}`),v.value=n,y.value=n,t.src=n,f.value=!0}function N(){b.value=!1,y.value!==v.value&&k(y.value)}function ee(){b.value=!0,y.value=v.value,M(()=>{m.value?.select()})}function te(){b.value=!1,y.value=v.value}function P(e){e.key===`Escape`&&(b.value=!1,y.value=v.value,m.value?.blur())}function ne(){try{x.value?.contentWindow?.history.back()}catch{}}function ie(){let e=x.value;if(!e)return;f.value=!0;let t=e.src;e.src=``,e.src=t}return t(()=>{i.persistedDoms.getHolder(i.entry.id,`iframe`)&&O();let e=i.persistedDoms.getOrCreateHolder(i.entry.id,`iframe`);e.element.style.boxShadow=`none`,e.element.style.outline=`none`,e.element.src||(e.element.src=i.entry.url),e.element.addEventListener(`load`,()=>{f.value=!1,O()});let t=i.context.docks.getStateById(i.entry.id);t&&(t.domElements.iframe=e.element),r(()=>{Object.assign(e.element.style,i.iframeStyle),o.value?(e.element.style.marginTop=`${Pc}px`,c.value||(e.element.style.borderTopLeftRadius=`0px`,e.element.style.borderTopRightRadius=`0px`)):(e.element.style.marginTop=`0px`,e.element.style.borderTopLeftRadius=``,e.element.style.borderTopRightRadius=``),c.value&&(e.element.style.borderRadius=`0px`,e.element.style.border=`none`)}),d(()=>i.context.panel,()=>{e.update()},{deep:!0}),r(()=>{e.element.style.pointerEvents=i.context.panel.isDragging||i.context.panel.isResizing?`none`:`auto`},{flush:`sync`}),e.mount(p.value),u.value=!1,M(()=>{e.update()})}),j(()=>{i.persistedDoms.getHolder(i.entry.id,`iframe`)?.unmount()}),(e,t)=>(n(),S(`div`,Oc,[o.value?(n(),S(`div`,{key:0,class:h([`flex-none px-2 w-full flex items-center gap-1`,c.value?`border-b border-base`:`border rounded-t-md border-base border-b-0`]),style:A({height:`${Pc}px`})},[E.value?(n(),S(`div`,kc,[...t[3]||=[T(`div`,{class:`i-ph-globe text-sm`},null,-1),T(`span`,null,`Cross-Origin`,-1)]])):(n(),S(w,{key:0},[T(`button`,{class:`w-7 h-7 flex items-center justify-center rounded hover:bg-gray/15 transition-colors shrink-0`,title:`Back`,onClick:ne},[...t[1]||=[T(`div`,{class:`i-ph-caret-left op60 w-4.5 h-4.5`},null,-1)]]),T(`button`,{class:`w-7 h-7 flex items-center justify-center rounded hover:bg-gray/15 transition-colors shrink-0`,title:`Refresh`,onClick:ie},[...t[2]||=[T(`div`,{class:`i-ph-arrow-clockwise op60 w-4.5 h-4.5`},null,-1)]])],64)),T(`div`,Ac,[T(`input`,{ref:`urlInput`,value:b.value?y.value:D.value,type:`text`,class:`flex-1 bg-transparent outline-none text-sm font-mono`,placeholder:`Enter URL...`,readonly:E.value,onInput:t[0]||=e=>y.value=e.target.value,onFocus:ee,onBlur:te,onKeydown:[P,re(N,[`enter`])]},null,40,jc),f.value?(n(),S(`div`,Mc)):_(``,!0)])],6)):_(``,!0),T(`div`,{ref_key:`viewFrame`,ref:p,class:`vite-devtools-view-iframe w-full h-full flex-1 items-center justify-center`},[u.value?(n(),S(`div`,Nc,` Loading iframe... `)):_(``,!0)],512)]))}}),Ic={class:`flex flex-col gap-4 items-center justify-center h-full relative`},Lc={class:`text-2xl font-bold`},Rc=[`disabled`],zc=b({__name:`ViewLauncher`,props:{context:{},entry:{}},setup(e){let t=e;function r(){t.context.rpc.call(`devtoolskit:internal:docks:on-launch`,t.entry.id)}let i=g(()=>t.entry.launcher.status||`idle`),a={error:`i-ph-warning-duotone`,idle:`i-ph-rocket-launch-duotone`,loading:`i-svg-spinners-8-dots-rotate`,success:`i-ph-check-duotone`},o=g(()=>i.value===`idle`?t.entry.launcher.buttonStart||`Launch`:i.value===`loading`?t.entry.launcher.buttonLoading||`Loading...`:i.value===`error`?`ERROR`:i.value===`success`?`Success`:`UNKNOWN STATUS: ${i.value}`);return(t,s)=>(n(),S(`div`,Ic,[E(Pa,{icon:e.entry.launcher.icon||e.entry.icon,class:`w-10 h-10`},null,8,[`icon`]),T(`h1`,Lc,N(e.entry.launcher.title),1),T(`p`,null,N(e.entry.launcher.description),1),T(`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:i.value!==`idle`,onClick:r},[T(`div`,{class:h(a[i.value])},null,2),T(`div`,null,N(o.value),1)],8,Rc)]))}}),Bc={key:4},Vc={key:6},Hc=b({__name:`ViewEntry`,props:{context:{},entry:{},persistedDoms:{},iframeStyle:{},divStyle:{}},setup(t){let r=C(()=>Qo(()=>import(`./ViewBuiltinTerminals-DqaYBA6Q.js`),__vite__mapDeps([4,2,3]),import.meta.url)),i=C(()=>Qo(()=>import(`./ViewBuiltinLogs-rU-E-8qT.js`),__vite__mapDeps([5,2,1,3]),import.meta.url)),a=C(()=>Qo(()=>import(`./ViewJsonRender-De5eeIha.js`),__vite__mapDeps([6,2,7]),import.meta.url));return(o,s)=>(n(),O(D,null,{fallback:c(()=>[...s[0]||=[T(`div`,null,` Loading... `,-1)]]),default:c(()=>[t.entry.type===`~builtin`?(n(),S(w,{key:0},[t.entry.id===`~terminals`?(n(),O(e(r),{key:0,context:t.context,entry:t.entry},null,8,[`context`,`entry`])):t.entry.id===`~logs`?(n(),O(e(i),{key:1,context:t.context,entry:t.entry},null,8,[`context`,`entry`])):t.entry.id===`~settings`?(n(),O(Ec,{key:2,context:t.context,entry:t.entry},null,8,[`context`,`entry`])):t.entry.id===`~client-auth-notice`?(n(),O(Vo,{key:3,context:t.context},null,8,[`context`])):(n(),S(`div`,Bc,` Unknown builtin entry: `+N(t.entry),1))],64)):t.entry.type===`action`?(n(),S(w,{key:1},[],64)):t.entry.type===`iframe`?(n(),O(Fc,{key:2,context:t.context,entry:t.entry,"persisted-doms":t.persistedDoms,"iframe-style":t.iframeStyle},null,8,[`context`,`entry`,`persisted-doms`,`iframe-style`])):t.entry.type===`custom-render`?(n(),O(Dc,{key:3,context:t.context,entry:t.entry,"persisted-doms":t.persistedDoms,"div-style":t.divStyle},null,8,[`context`,`entry`,`persisted-doms`,`div-style`])):t.entry.type===`launcher`?(n(),O(zc,{key:4,context:t.context,entry:t.entry},null,8,[`context`,`entry`])):t.entry.type===`json-render`?(n(),O(e(a),{key:5,context:t.context,entry:t.entry},null,8,[`context`,`entry`])):(n(),S(`div`,Vc,` Unknown entry: `+N(t.entry),1))]),_:1}))}});function Uc(e){return k(`button`,{class:`flex items-center gap-2 px3 py1.5 rounded hover:bg-active transition text-left`,onClick:e.action},[k(`div`,{class:`${e.icon} text-base op60`}),k(`span`,e.label)])}function Wc(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),To(null)}function Gc(e,t){let n=e.docks.getStateById(t.id)?.domElements.iframe;if(!n){To(null);return}let r=n.src;n.src=``,n.src=r,To(null)}function Kc(e,t){return t.id===`~settings`?!1:e.docks.entries.some(e=>e.id===t.id)}function qc(e){return e.type===`iframe`}function Jc(e){let{context:t,entry:n,el:r,gap:i=6}=e,a=t.panel.store.mode===`edge`,o=[{label:`Hide`,icon:`i-ph-eye-slash-duotone`,action:()=>Wc(t,n),visible:Kc(t,n)},{label:`Refresh`,icon:`i-ph-arrow-clockwise-duotone`,action:()=>Gc(t,n),visible:qc(n)},{label:a?`Float Mode`:`Edge Mode`,icon:a?`i-ph-arrows-out-duotone`:`i-ph-square-half-bottom-duotone`,action:()=>{if(a){let e=t.panel.store;switch(e.position){case`bottom`:e.left=50,e.top=100;break;case`top`:e.left=50,e.top=0;break;case`left`:e.left=0,e.top=50;break;case`right`:e.left=100,e.top=50;break}e.mode=`float`}else t.panel.store.mode=`edge`;To(null)},visible:t.clientType===`embedded`},{label:`Popup`,icon:`i-ph-arrow-square-out-duotone`,action:()=>{To(null),Es(t)},visible:Ss()&&!Ts().value&&t.clientType===`embedded`}].filter(e=>e.visible);o.length!==0&&To({el:r,gap:i,content:()=>k(`div`,{class:`flex flex-col text-sm min-w-36 mx--1`},o.map(Uc))})}var Yc=[`title`],Xc={key:0,class:`absolute top-0.5 right-0 bg-gray-6 text-white text-0.6em px-1 rounded-full shadow`},Zc=b({__name:`DockEntry`,props:{context:{},dock:{},isAction:{type:Boolean},isSelected:{type:Boolean},isDimmed:{type:Boolean},isVertical:{type:Boolean},badge:{},tooltip:{type:Boolean,default:!0}},setup(e){let t=e,r=l(`button`);function i(){t.tooltip&&r.value&&xo({content:t.dock.title,el:r.value})}function a(){t.tooltip&&xo(null)}function o(e){if(!r.value||t.dock.id===`overflow`)return;e.preventDefault(),a();let n=t.context.docks.entries.find(e=>e.id===t.dock.id);n&&Jc({context:t.context,entry:n,el:r.value,gap:6})}return de(`pointerdown`,()=>{t.tooltip&&xo(null)}),(t,s)=>(n(),S(`div`,{key:e.dock.id,class:`relative group vite-devtools-dock-entry`,onPointerenter:i,onPointerleave:a,onContextmenu:o},[T(`button`,{ref_key:`button`,ref:r,title:e.dock.title,class:h([[e.isVertical?`rotate-270`:``,e.isDimmed?`op50 saturate-0`:``,e.isSelected?`scale-120 text-purple`:``,e.isAction?`bg-[#8881] hover:bg-[#8882] rounded-full`:`rounded-xl`],`flex items-center justify-center p1.5 hover:bg-[#8881] hover:scale-110 transition-all duration-300 relative`])},[E(Pa,{icon:e.dock.icon,title:e.dock.title,class:`w-5 h-5 select-none`},null,8,[`icon`,`title`]),e.badge?(n(),S(`div`,Xc,N(e.badge),1)):_(``,!0)],10,Yc)],32))}}),Qc=b({__name:`DockEntries`,props:{context:{},entries:{},selected:{},isVertical:{type:Boolean}},emits:[`select`],setup(t,{emit:r}){let i=t,a=r,{selected:o,isVertical:s,entries:c}=m(i);function l(e){return e.when?Fa(e.when,i.context.when.context):!0}function d(e){o.value?.id===e.id?a(`select`,void 0):a(`select`,e)}return(r,i)=>(n(!0),S(w,null,u(e(c),r=>(n(),S(w,{key:r.id},[l(r)?(n(),O(Zc,{key:0,context:t.context,dock:r,"is-action":r.type===`action`,"is-selected":e(o)?.id===r.id,"is-dimmed":e(o)?e(o).id!==r.id:!1,"is-vertical":e(s),badge:r.badge,onClick:e=>d(r)},null,8,[`context`,`dock`,`is-action`,`is-selected`,`is-dimmed`,`is-vertical`,`badge`,`onClick`])):_(``,!0)],64))),128))}}),$c=b({__name:`DockEntriesWithCategories`,props:{context:{},groups:{},selected:{},isVertical:{type:Boolean},rotate:{type:Boolean,default:!0}},emits:[`select`],setup(e,{emit:t}){let r=t;return(t,i)=>(n(!0),S(w,null,u(e.groups,([a,o],s)=>(n(),S(w,{key:a},[s>0?x(t.$slots,`separator`,{key:0,category:a,index:s,isVertical:e.isVertical},()=>[T(`div`,{class:h([`border-base m1`,e.isVertical&&!e.rotate?`w-20px h-px border-b-1.5`:`h-20px w-px border-r-1.5`])},null,2)]):_(``,!0),E(Qc,{context:e.context,entries:o,"is-vertical":e.isVertical&&e.rotate,selected:e.selected,onSelect:i[0]||=e=>r(`select`,e)},null,8,[`context`,`entries`,`is-vertical`,`selected`])],64))),128))}}),el={key:0,class:`h-screen w-screen of-hidden`},tl={key:1,class:`h-screen w-screen of-hidden grid cols-[max-content_1fr]`},nl={class:`border-r border-base flex flex-col min-h-0`},rl={class:`p2 border-b border-base flex`},il={class:`transition duration-200 p2 of-y-auto`},al={class:`min-h-0`},ol=b({__name:`DockStandalone`,props:{context:{}},setup(t){let r=t.context,a=l(`viewsContainer`),o=i(new ni(a)),u=s(r.rpc.isTrusted);r.rpc.events.on(`rpc:is-trusted:updated`,e=>{u.value=e,e||r.docks.switchEntry(null)}),d(()=>r.docks.entries,()=>{r.docks.selectedId||=r.docks.entries[0]?.id??null},{immediate:!0});let f=g(()=>r.docks.groupedEntries);function p(e){e&&r.docks.switchEntry(e)}return(t,i)=>(n(),S(w,null,[u.value?(n(),S(`div`,tl,[T(`div`,nl,[T(`div`,rl,[E(Lo,{class:`w-7 h-7 ma`})]),T(`div`,il,[E($c,{context:e(r),groups:f.value,"is-vertical":!1,selected:e(r).docks.selected,onSelect:i[0]||=e=>p(e?.id)},{separator:c(()=>[...i[1]||=[T(`div`,{class:`border-base border-b w-full my-2`},null,-1)]]),_:1},8,[`context`,`groups`,`selected`])])]),T(`div`,al,[T(`div`,{id:`vite-devtools-views-container`,ref_key:`viewsContainer`,ref:a,class:`pointer-events-auto`},null,512),e(r).docks.selected&&a.value?(n(),O(Hc,{key:e(r).docks.selected.id,entry:e(r).docks.selected,context:e(r),"persisted-doms":e(o)},null,8,[`entry`,`context`,`persisted-doms`])):_(``,!0)])])):(n(),S(`div`,el,[E(Vo,{context:e(r)},null,8,[`context`])])),E(No),E(po,{context:e(r)},null,8,[`context`]),E(_o,{context:e(r)},null,8,[`context`])],64))}}),sl=new WeakMap;async function cl(e,t,n,r){if(sl.has(t))return sl.get(t);let a=Ko(await t.sharedState.get(`devtoolskit:internal:commands`,{initialValue:[]})),o=p(new Map),c=Ko(n),l=g(()=>c.value.commandShortcuts??{}),u=s(!1),d=()=>r?r():{clientType:e,dockOpen:!1,paletteOpen:u.value,dockSelectedId:``},f=g(()=>[...a.value,...Array.from(o.values())]),m=g(()=>{let e=d();return f.value.filter(t=>!(t.showInPalette===!1||t.when&&!Fa(t.when,e)))});function h(e){let t=Array.isArray(e)?e:[e];for(let e of t)o.set(e.id,e);return()=>{for(let e of t)o.delete(e.id)}}function _(e){let t=f.value.find(t=>t.id===e);if(t)return t;for(let t of f.value)if(t.children){let n=t.children.find(t=>t.id===e);if(n)return n}}async function v(e,...n){let r=_(e);if(!r)throw Error(`Command "${e}" not found`);if(r.when){let t=d();if(!Fa(r.when,t))throw Error(`Command "${e}" is not available in the current context`)}if(r.source===`server`)return t.call(`devtoolskit:internal:commands:execute`,e,...n);if(r.action)return r.action(...n);throw Error(`Command "${e}" has no action`)}function y(e){let t=l.value[e];return t===void 0?_(e)?.keybindings??[]:t}typeof window<`u`&&ll(d,f,y,v);let b=p({commands:f,paletteCommands:m,register:h,execute:v,getKeybindings:y,settings:i(n),paletteOpen:u});return sl.set(t,b),b}function ll(e,t,n,r){window.addEventListener(`keydown`,i=>{let a=Ra(i);if(!a||a===`Mod`||a===`Shift`||a===`Alt`)return;let o=e(),s=za(t,n);for(let{id:e,keybinding:n}of s){if(n.key!==a)continue;let s=t.value.find(t=>t.id===e)??t.value.flatMap(e=>e.children??[]).find(t=>t.id===e);if(!(s?.when&&!Fa(s.when,o))){i.preventDefault(),i.stopPropagation(),r(e).catch(console.error);return}}},{capture:!0})}function ul(e){let t=[],n;async function r(){if(e.isTrusted===!0)return n===void 0&&(n=new Promise(async e=>{for(;t.length>0;)await t.shift()();e()})),n}async function i(n){return e.isTrusted===!0&&t.length!==0&&await r(),e.isTrusted===!0&&t.length===0?await n():new Promise(e=>{t.push(async()=>{e(await n())})})}return e.events.on(`rpc:is-trusted:updated`,e=>{e&&t.length>0&&r()}),{add(t){return i(async()=>{let n=await e.call(`devtoolskit:internal:logs:add`,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)}}})},remove(t){return i(()=>e.call(`devtoolskit:internal:logs:remove`,t))},clear(){return i(()=>e.call(`devtoolskit:internal:logs:clear`))}}}async function dl(e){let t=e.rpc.connectionMeta.backend===`static`?[`${me}${_e}`,ve]:[ve],n=[];for(let e of t)try{return await Qo(()=>import(e),[],import.meta.url)}catch(e){n.push(e)}throw Error(`[VITE DEVTOOLS] Failed to load imports map module`,{cause:n})}function fl(e,t){let n=`${e.type}:${e.id}`;return dl(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 pl=new Map;function ml(e,t){if(e.type!==`action`&&pl.has(e.id))return pl.get(e.id);let n=fl(e,t);return e.type!==`action`&&pl.set(e.id,n),n}var hl=new WeakMap;async function gl(e,t,n){if(hl.has(t))return hl.get(t);let a=await Jo(t),o=s(null),c=g(()=>a.value.find(e=>e.id===o.value)??Is.find(e=>e.id===o.value)??null),l=p(new Map);r(()=>{for(let e of a.value){if(l.has(e.id)){l.get(e.id).entryMeta=e;continue}l.set(e.id,Go(e,c))}}),n||=s(Wo());let u,d=async(r=null)=>{if(r==null)return o.value=null,!0;if(r===`~client-auth-notice`)return o.value=r,n.value.open=!0,!0;let i=a.value.find(e=>e.id===r);if(!i||i.type===`action`&&await ws(e,i.id)!=null)return!1;if(i.type===`action`||i.type===`custom-render`||i.type===`iframe`&&i.clientScript){let e=l.get(r);await ml(i,p({...m(u),current:e,logs:ul(t)}))}return o.value=i.id,n.value.open=!0,!0},f=async e=>o.value===e?d(null):d(e),h,_=i(await(async()=>(h||=t.sharedState.get(`devtoolskit:internal:user-settings`,{initialValue:ye()}),h))()),v=Ko(_),y,b=()=>({clientType:e,dockOpen:n.value.open,paletteOpen:y?.paletteOpen??!1,dockSelectedId:o.value??``}),x=g(()=>Rs(a.value,v.value,{whenContext:b()}));y=await cl(e,t,_,b),y.register([{id:`devtools:toggle-palette`,source:`client`,title:`Toggle Command Palette`,icon:`ph:magnifying-glass-duotone`,showInPalette:!1,keybindings:[{key:`Mod+K`}],action:()=>{y.paletteOpen=!y.paletteOpen}},{id:`devtools:close-panel`,source:`client`,title:`Close Panel`,icon:`ph:x-circle-duotone`,when:`dockOpen`,keybindings:[],action:()=>{n.value.open=!1,o.value=null}},{id:`devtools:open-settings`,source:`client`,title:`Open Settings`,icon:`ph:gear-duotone`,action:()=>{d(`~settings`)}},{id:`devtools:dock-mode`,source:`client`,title:`Dock Mode`,icon:`ph:layout-duotone`,when:e===`embedded`?`clientType == embedded`:void 0,children:[{id:`devtools:dock-mode:float`,source:`client`,title:`Float Mode`,icon:`ph:cards-three-duotone`,action:()=>{n.value.mode=`float`}},{id:`devtools:dock-mode:edge`,source:`client`,title:`Edge Mode`,icon:`ph:square-half-bottom-duotone`,action:()=>{n.value.mode=`edge`}}]}]);let S;return r(()=>{S?.();let e=a.value.filter(e=>e.type!==`~builtin`).map(e=>({id:`devtools:docks:${e.id}`,source:`client`,title:e.title,icon:typeof e.icon==`string`?e.icon:void 0,action:()=>{d(e.id)}}));e.length>0&&(S=y.register({id:`devtools:docks`,source:`client`,title:`Docks`,icon:`ph:layout-duotone`,children:e}))}),u=p({panel:{store:n,isDragging:!1,isResizing:!1,isVertical:g(()=>n.value.position===`left`||n.value.position===`right`)},docks:{selectedId:o,selected:c,entries:a,entryToStateMap:i(l),groupedEntries:x,settings:_,getStateById:e=>l.get(e),switchEntry:d,toggleEntry:f},commands:y,when:{get context(){return b()}},rpc:t,clientType:e}),Cs(e,async e=>{let t=a.value.find(t=>t.id===e);return!t||t.type!==`action`?!1:d(t.id)}),hl.set(t,u),u}var _l=b({__name:`App`,async setup(t){let r,i,o=([r,i]=a(()=>ti()),r=await r,i(),r);console.log(`[VITE DEVTOOLS] RPC`,o);let s=([r,i]=a(()=>gl(`standalone`,o)),r=await r,i(),r);return globalThis[Un]=s,(t,r)=>(n(),O(ol,{context:e(s)},null,8,[`context`]))}});te({render:()=>k(D,{},{default:()=>k(_l),fallback:()=>k(`div`,`Loading...`)})}).mount(`#app`);export{Pa as n,ol as t};
|