tauri/examples/api/dist/assets/index.js

42 lines
57 KiB
JavaScript
Raw Normal View History

2023-10-20 06:04:26 +03:00
var no=Object.defineProperty;var lo=(e,t,n)=>t in e?no(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ft=(e,t,n)=>(lo(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const _ of r.addedNodes)_.tagName==="LINK"&&_.rel==="modulepreload"&&i(_)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();function ee(){}function Rs(e){return e()}function cs(){return Object.create(null)}function Fe(e){e.forEach(Rs)}function Ds(e){return typeof e=="function"}function Pt(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let Sl;function io(e,t){return e===t?!0:(Sl||(Sl=document.createElement("a")),Sl.href=t,e===Sl.href)}function so(e){return Object.keys(e).length===0}function oo(e,...t){if(e==null){for(const i of t)i(void 0);return ee}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function ao(e,t,n){e.$$.on_destroy.push(oo(t,n))}function l(e,t){e.appendChild(t)}function w(e,t,n){e.insertBefore(t,n||null)}function m(e){e.parentNode&&e.parentNode.removeChild(e)}function Ct(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function s(e){return document.createElement(e)}function ro(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function p(e){return document.createTextNode(e)}function c(){return p(" ")}function hi(){return p("")}function k(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function ds(e){return function(t){return t.preventDefault(),e.call(this,t)}}function a(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function B(e){return e===""?null:+e}function uo(e){return Array.from(e.childNodes)}function se(e,t){t=""+t,e.data!==t&&(e.data=t)}function T(e,t){e.value=t??""}function Jt(e,t,n,i){n==null?e.style.removeProperty(t):e.style.setProperty(t,n,i?"important":"")}function Ye(e,t,n){for(let i=0;i<e.options.length;i+=1){const o=e.options[i];if(o.__value===t){o.selected=!0;return}}(!n||t!==void 0)&&(e.selectedIndex=-1)}function vn(e){const t=e.querySelector(":checked");return t&&t.__value}class co{constructor(t=!1){ft(this,"is_svg",!1);ft(this,"e");ft(this,"n");ft(this,"t");ft(this,"a");this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,n,i=null){this.e||(this.is_svg?this.e=ro(n.nodeName):this.e=s(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(t)),this.i(i)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes)}i(t){for(let n=0;n<this.n.length;n+=1)w(this.t,this.n[n],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(m)}}function fs(e,t){return new e(t)}let zn;function kn(e){zn=e}function Hs(){if(!zn)throw new Error("Function called outside component initialization");return zn}function Tl(e){Hs().$$.on_mount.push(e)}function Us(e){Hs().$$.on_destroy.push(e)}const xt=[],ri=[];let $t=[];const hs=[],fo=Promise.resolve();let ui=!1;function ho(){ui||(ui=!0,fo.then(qs))}function pt(e){$t.push(e)}const ai=new Set;let Qt=0;function qs(){if(Qt!==0)return;const e=zn;do{try{for(;Qt<xt.length;){const t=xt[Qt];Qt++,kn(t),po(t.$$)}}catch(t){throw xt.length=0,Qt=0,t}for(kn(null),xt.length=0,Qt=0;ri.length;)ri.pop()();for(let t=0;t<$t.length;t+=1){const n=$t[t];ai.has(n)||(ai.add(n),n())}$t.length=0}while(xt.length);for(;hs.length;)hs.pop()();ui=!1,ai.clear(),kn(e)}function po(e){if(e.fragment!==null){e.update(),Fe(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(pt)}}function bo(e){const t=
development process. In the future, this app will be used on Tauri&#39;s integration
2023-10-20 06:04:26 +03:00
tests.`,i=c(),o=s("br"),r=c(),_=s("br"),h=c(),g=s("pre"),d=p(" App name: "),I=s("code"),z=p(e[2]),Y=p(`
App version: `),E=s("code"),A=p(e[0]),M=p(`
Tauri version: `),N=s("code"),ae=p(e[1]),H=p(`
`),W=c(),V=s("br"),G=c(),P=s("button"),P.textContent="Context menu",a(P,"class","btn")},m(R,x){w(R,t,x),l(t,n),l(t,i),l(t,o),l(t,r),l(t,_),l(t,h),l(t,g),l(g,d),l(g,I),l(I,z),l(g,Y),l(g,E),l(E,A),l(g,M),l(g,N),l(N,ae),l(g,H),l(t,W),l(t,V),l(t,G),l(t,P),F||(re=k(P,"click",e[3]),F=!0)},p(R,[x]){x&4&&se(z,R[2]),x&1&&se(A,R[0]),x&2&&se(ae,R[1])},i:ee,o:ee,d(R){R&&m(t),F=!1,re()}}}function To(e,t,n){let i="1.0.0",o="1.0.0",r="Unknown";Gs().then(h=>{n(2,r=h)}),Vs().then(h=>{n(0,i=h)}),Xs().then(h=>{n(1,o=h)});function _(){b("popup_context_menu")}return[i,o,r,_]}class Ao extends tn{constructor(t){super(),en(this,t,To,Po,Pt,{})}}var Mo={};En(Mo,{TauriEvent:()=>Js,emit:()=>bi,listen:()=>Ol,once:()=>Zs});var Js=(e=>(e.WINDOW_RESIZED="tauri://resize",e.WINDOW_MOVED="tauri://move",e.WINDOW_CLOSE_REQUESTED="tauri://close-requested",e.WINDOW_CREATED="tauri://window-created",e.WINDOW_DESTROYED="tauri://destroyed",e.WINDOW_FOCUS="tauri://focus",e.WINDOW_BLUR="tauri://blur",e.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",e.WINDOW_THEME_CHANGED="tauri://theme-changed",e.WINDOW_FILE_DROP="tauri://file-drop",e.WINDOW_FILE_DROP_HOVER="tauri://file-drop-hover",e.WINDOW_FILE_DROP_CANCELLED="tauri://file-drop-cancelled",e.MENU="tauri://menu",e))(Js||{});async function Qs(e,t){await b("plugin:event|unlisten",{event:e,eventId:t})}async function Ol(e,t,n){return b("plugin:event|listen",{event:e,windowLabel:n==null?void 0:n.target,handler:pi(t)}).then(i=>async()=>Qs(e,i))}async function Zs(e,t,n){return Ol(e,i=>{t(i),Qs(e,i.id).catch(()=>{})},n)}async function bi(e,t,n){await b("plugin:event|emit",{event:e,windowLabel:n==null?void 0:n.target,payload:t})}function Io(e){let t,n,i,o,r,_,h,g;return{c(){t=s("div"),n=s("button"),n.textContent="Call Log API",i=c(),o=s("button"),o.textContent="Call Request (async) API",r=c(),_=s("button"),_.textContent="Send event to Rust",a(n,"class","btn"),a(n,"id","log"),a(o,"class","btn"),a(o,"id","request"),a(_,"class","btn"),a(_,"id","event")},m(d,I){w(d,t,I),l(t,n),l(t,i),l(t,o),l(t,r),l(t,_),h||(g=[k(n,"click",e[0]),k(o,"click",e[1]),k(_,"click",e[2])],h=!0)},p:ee,i:ee,o:ee,d(d){d&&m(t),h=!1,Fe(g)}}}function Oo(e,t,n){let{onMessage:i}=t,o;Tl(async()=>{o=await Ol("rust-event",i)}),Us(()=>{o&&o()});function r(){b("log_operation",{event:"tauri-click",payload:"this payload is optional because we used Option in Rust"})}function _(){b("perform_request",{endpoint:"dummy endpoint arg",body:{id:5,name:"test"}}).then(i).catch(i)}function h(){bi("js-event","this is the payload string")}return e.$$set=g=>{"onMessage"in g&&n(3,i=g.onMessage)},[r,_,h,i]}class No extends tn{constructor(t){super(),en(this,t,Oo,Io,Pt,{onMessage:3})}}var Wo={};En(Wo,{LogicalPosition:()=>gi,LogicalSize:()=>Ln,PhysicalPosition:()=>xe,PhysicalSize:()=>ht});var Ln=class{constructor(e,t){this.type="Logical",this.width=e,this.height=t}},ht=class{constructor(e,t){this.type="Physical",this.width=e,this.height=t}toLogical(e){return new Ln(this.width/e,this.height/e)}},gi=class{constructor(t,n){this.type="Logical",this.x=t,this.y=n}},xe=class{constructor(e,t){this.type="Physical",this.x=e,this.y=t}toLogical(e){return new gi(this.x/e,this.y/e)}},Ro={};En(Ro,{CloseRequestedEvent:()=>xs,Effect:()=>Ml,EffectState:()=>Il,LogicalPosition:()=>gi,LogicalSize:()=>Ln,PhysicalPosition:()=>xe,PhysicalSize:()=>ht,ProgressBarStatus:()=>Al,UserAttentionType:()=>_i,Window:()=>Nl,availableMonitors:()=>Uo,currentMonitor:()=>Do,getAll:()=>Pl,getCurrent:()=>mi,primaryMonitor:()=>Ho});var _i=(e=>(e[e.Critical=1]="Critical",e[e.Informational=2]="Informational",e))(_i||{}),xs=class{constructor(e){this._preventDefault=!1,this.event=e.event,this.windowLabel=e.windowLabel,this.id=e.id}preventDefault(){this._preventDefault=!0}isPreventDefault(){return this._preventDefault}},Al=(e=>(e.None="none",e.Normal="normal",e.Indeterminate="indeterminate",e.Paused="paused",e.Error="error",e))(Al||{});function mi(){return new Nl(window.__TAURI_INTERNALS__.metadata.currentWindow.label,{skip:!0})}function Pl(){return window.__TAURI_INTERNALS__.metadata.windows.map(e=>new Nl(e.label,{skip:!0})
`),R=s("input"),x=c(),te=s("label"),y=p(`Resizable
`),U=s("input"),j=c(),$=s("label"),ue=p(`Maximizable
`),K=s("input"),_e=c(),ke=s("label"),de=p(`Minimizable
`),oe=s("input"),J=c(),he=s("label"),q=p(`Closable
`),ne=s("input"),Z=c(),v=s("label"),X=p(`Has decorations
`),S=s("input"),fe=c(),Ee=s("label"),me=p(`Always on top
`),pe=s("input"),Me=c(),Se=s("label"),Ie=p(`Always on bottom
`),be=s("input"),ge=c(),ze=s("label"),Ce=p(`Content protected
`),ce=s("input"),Le=c(),le=s("label"),Oe=p(`Fullscreen
`),Ne=s("input"),Pe=c(),ie=s("br"),L=c(),Q=s("div"),C=s("div"),Te=s("div"),Sn=p(`X
`),We=s("input"),Cn=c(),Tt=s("div"),Pn=p(`Y
`),Re=s("input"),Tn=c(),$e=s("div"),At=s("div"),An=p(`Width
`),De=s("input"),Mn=c(),Mt=s("div"),In=p(`Height
`),He=s("input"),On=c(),et=s("div"),It=s("div"),Nn=p(`Min width
`),je=s("input"),Wn=c(),Ot=s("div"),Rn=p(`Min height
`),Ve=s("input"),Dn=c(),tt=s("div"),Nt=s("div"),Hn=p(`Max width
`),Ue=s("input"),Un=c(),Wt=s("div"),qn=p(`Max height
`),qe=s("input"),nn=c(),ln=s("br"),sn=c(),Ae=s("div"),nt=s("div"),Ge=s("div"),O=s("div"),O.textContent="Inner Size",on=c(),bt=s("span"),an=p("Width: "),Rt=p(gt),rn=c(),_t=s("span"),un=p("Height: "),Dt=p(mt),cn=c(),Be=s("div"),wt=s("div"),wt.textContent="Outer Size",dn=c(),vt=s("span"),fn=p("Width: "),Ht=p(yt),hn=c(),kt=s("span"),pn=p("Height: "),Ut=p(zt),Bn=c(),qt=s("div"),lt=s("div"),Fn=s("div"),Fn.textContent="Inner Logical Size",vi=c(),jn=s("span"),yi=p("Width: "),Wl=p(Vn),ki=c(),Gn=s("span"),zi=p("Height: "),Rl=p(Xn),Li=c(),it=s("div"),Yn=s("div"),Yn.textContent="Outer Logical Size",Ei=c(),Kn=s("span"),Si=p("Width: "),Dl=p(Jn),Ci=c(),Qn=s("span"),Pi=p("Height: "),Hl=p(Zn),Ti=c(),Bt=s("div"),st=s("div"),xn=s("div"),xn.textContent="Inner Position",Ai=c(),$n=s("span"),Mi=p("x: "),Ul=p(el),Ii=c(),tl=s("span"),Oi=p("y: "),ql=p(nl),Ni=c(),ot=s("div"),ll=s("div"),ll.textContent="Outer Position",Wi=c(),il=s("span"),Ri=p("x: "),Bl=p(sl),Di=c(),ol=s("span"),Hi=p("y: "),Fl=p(al),Ui=c(),Ft=s("div"),at=s("div"),rl=s("div"),rl.textContent="Inner Logical Position",qi=c(),ul=s("span"),Bi=p("x: "),jl=p(cl),Fi=c(),dl=s("span"),ji=p("y: "),Vl=p(fl),Vi=c(),rt=s("div"),hl=s("div"),hl.textContent="Outer Logical Position",Gi=c(),pl=s("span"),Xi=p("x: "),Gl=p(bl),Yi=c(),gl=s("span"),Ki=p("y: "),Xl=p(_l),Yl=c(),Kl=s("br"),Jl=c(),bn=s("h4"),bn.textContent="Cursor",Ql=c(),Ke=s("div"),ml=s("label"),jt=s("input"),Ji=p(`
Grab`),Qi=c(),wl=s("label"),Vt=s("input"),Zi=p(`
Visible`),xi=c(),vl=s("label"),Gt=s("input"),$i=p(`
Ignore events`),Zl=c(),Je=s("div"),yl=s("label"),es=p(`Icon
`),Qe=s("select");for(let u=0;u<we.length;u+=1)we[u].c();ts=c(),kl=s("label"),ns=p(`X position
`),ut=s("input"),ls=c(),zl=s("label"),is=p(`Y position
`),ct=s("input"),xl=c(),$l=s("br"),ei=c(),gn=s("div"),Lt=s("form"),dt=s("input"),ss=c(),_n=s("button"),_n.textContent="Set title",ti=c(),ni=s("br"),li=c(),mn=s("div"),Xt=s("div"),Ll=s("label"),os=p(`Progress Status
`),Ze=s("select");for(let u=0;u<ve.length;u+=1)ve[u].c();as=c(),El=s("label"),rs=p(`Progress
`),Xe=s("input"),ii=c(),Et&&Et.c(),si=hi(),a(h,"class","input grow"),a(d,"class","btn"),a(d,"type","submit"),a(_,"class","flex gap-1 grow"),a(i,"class","flex gap-1 items-center"),a(A,"class","btn"),a(A,"title","Unminimizes after 2 seconds"),a(N,"class","btn"),a(N,"title","Unminimizes after 2 seconds"),a(H,"class","btn"),a(H,"title","Visible again after 2 seconds"),a(V,"class","btn"),a(V,"title","Minimizes the window, requests attention for 3s and then resets it"),a(E,"class","flex flex-wrap gap-2"),a(R,"type","checkbox"),a(U,"type","checkbox"),a(K,"type","checkbox"),a(oe,"type","checkbox"),a(ne,"type","checkbox"),a(S,"type","checkbox"),a(pe,"type","checkbox"),a(be,"type","checkbox"),a(ce,"type","checkbox"),a(Ne,"type","checkbox"),a(P,"class","flex flex-wrap gap-2"),a(We,"class","input"),a(We,"type","number"),a(We,"min","0"),a(Re,"class","input"),a(Re,"type","number"),a(Re,"min","0"),a(C,"class","flex children:grow flex-col"),a(De,"class","input"),a(De,"type","number"),a(De,"min","400"),a(He,"class","input"),a(He,"type","number"),a(He,"min","400"),a($e,"class","flex children:grow flex-col"),a(je,"class","input"),a(je,"type","number"),a(Ve,"class","input"),a(Ve,"type","number"),a(et,"class","flex children:grow flex-col"),a(Ue,"class","input"),a(Ue,"type","number"),a(Ue,"min","800"),a(qe,"class","input"),a(qe,"type","number"),a(qe,"min","400"),a(tt,"class","flex children:grow flex-col"),a(Q,"class","flex flex-row gap-2 flex-wrap"),a(O,"class","text-accent dark:text-darkAccent font-700"),a(Ge,"class","grow"),a(wt,"class","text-accent dark:text-darkAccent font-700"),a(Be,"class","grow"),a(nt,"class","flex"),a(Fn,"class","text-accent dark:text-darkAccent font-700"),a(lt,"class","grow"),a(Yn,"class","text-accent dark:text-darkAccent font-700"),a(it,"class","grow"),a(qt,"class","flex"),a(xn,"class","text-accent dark:text-darkAccent font-700"),a(st,"class","grow"),a(ll,"class","text-accent dark:text-darkAccent font-700"),a(ot,"class","grow"),a(Bt,"class","flex"),a(rl,"class","text-accent dark:text-darkAccent font-700"),a(at,"class","grow"),a(hl,"class","text-accent dark:text-darkAccent font-700"),a(rt,"class","grow"),a(Ft,"class","flex"),a(bn,"class","mb-2"),a(jt,"type","checkbox"),a(Vt,"type","checkbox"),a(Gt,"type","checkbox"),a(Ke,"class","flex gap-2"),a(Qe,"class","input"),e[24]===void 0&&pt(()=>e[83].call(Qe)),a(ut,"class","input"),a(ut,"type","number"),a(ct,"class","input"),a(ct,"type","number"),a(Je,"class","flex gap-2"),a(dt,"class","input grow"),a(dt,"id","title"),a(_n,"class","btn"),a(_n,"type","submit"),a(Lt,"class","flex gap-1"),a(gn,"class","flex flex-col gap-1"),a(Ze,"class","input"),e[26]===void 0&&pt(()=>e[87].call(Ze)),a(Xe,"class","input"),a(Xe,"type","number"),a(Xe,"min","0"),a(Xe,"max","100"),a(Xt,"class","flex gap-2"),a(mn,"class","flex flex-col gap-1")},m(u,f){w(u,t,f),w(u,n,f),w(u,i,f),l(i,o),l(i,r),l(i,_),l(_,h),T(h,e[43]),l(_,g),l(_,d),w(u,I,f),w(u,z,f),w(u,Y,f),w(u,E,f),l(E,A),l(E,M),l(E,N),l(E,ae),l(E,H),l(E,W),l(E,V),w(u,G,f),w(u,P,f),l(P,F),l(F,re),l(F,R),R.checked=e[6],l(P,x),l(P,te),l(te,y),l(te,U),U.checked=e[2],l(P,j),l(P,$),l($,ue),l($,K),K.checked=e[3],l(P,_e),l(P,ke),l(ke,de),l(ke,oe),oe.checked=e[4],l(P,J),l(P,he),l(he,q),l(he,ne),ne.checked=e[5],l(P,Z),l(P,v),l(v,X),l(v,S),S.checked=e[7],l(P,fe),l(P,Ee),l(Ee,me),l(Ee,pe),pe.checked=e[8],l(P,Me),l(P,Se),l(Se,Ie),l(Se,be),be.checked=e[9],l(P,ge),l(P,ze),l(ze,Ce),l(ze,ce),ce.checked=e[10],l(P,Le),l(P,le),l(le,Oe),l(le,Ne),Ne.checked=e[11],w(u,Pe,f),w(u,ie,f),w(u,L,f),w(u,Q,f),l(Q,C),l(C,Te),l(Te,Sn),l(Te,We),T(We,e[18]),l(C,Cn),l(C,Tt),l(Tt,Pn),l(Tt,Re),T(Re,e[19]),l(Q,Tn),l(Q,$e),l($e,At),l(At,An),l(At,De),T(De,e[12]),l($e,Mn),l($e,Mt),l(Mt,In),l(Mt,He),T(He,e[13]),l(Q,On),l(Q,et),l(et,It),l(It,Nn),l(It,je),T(je,e[14]),l(et,Wn),l(et,Ot),l(Ot,Rn),l(Ot,Ve),T(Ve,e[15]),l(Q,Dn),l(Q,tt),l(tt,Nt),l(Nt,Hn),l(Nt,Ue),T(Ue,e[16]),l(tt,Un),l(tt,Wt),l(Wt,qn),l(Wt,qe),T(qe,e[17]),w(u,nn,f),w(u,ln,f),w(u,sn,f),w(u,Ae,f),l(Ae,nt),l(nt,Ge),l(Ge,O),l(Ge,on),l(Ge,bt),l(bt,an),l(bt,Rt),l(Ge,rn),l(Ge,_t),l(_t,un),l(_t,Dt),l(nt,cn),l(nt,Be),l(Be,wt),l(Be
`),r=s("select");for(let v=0;v<q.length;v+=1)q[v].c();_=c(),h=s("label"),g=p(`State
`),d=s("select");for(let v=0;v<Z.length;v+=1)Z[v].c();I=c(),z=s("label"),Y=p(`Radius
`),E=s("input"),A=c(),M=s("div"),N=s("label"),ae=p(`Color
`),H=s("div"),W=s("input"),V=c(),G=s("input"),P=c(),F=s("input"),re=c(),R=s("input"),x=c(),te=s("div"),y=s("button"),y.textContent="Add",U=c(),j=s("div"),$=s("div"),ue=p("Applied effects: "),_e=p(K),ke=c(),de=s("button"),de.textContent="Clear",a(r,"class","input"),e[36]===void 0&&pt(()=>e[89].call(r)),a(d,"class","input"),e[37]===void 0&&pt(()=>e[90].call(d)),a(E,"class","input"),a(E,"type","number"),a(n,"class","flex"),Jt(W,"max-width","120px"),a(W,"class","input"),a(W,"type","number"),a(W,"placeholder","R"),Jt(G,"max-width","120px"),a(G,"class","input"),a(G,"type","number"),a(G,"placeholder","G"),Jt(F,"max-width","120px"),a(F,"class","input"),a(F,"type","number"),a(F,"placeholder","B"),Jt(R,"max-width","120px"),a(R,"class","input"),a(R,"type","number"),a(R,"placeholder","A"),a(H,"class","flex"),a(M,"class","flex"),a(y,"class","btn"),Jt(y,"width","80px"),a(te,"class","flex"),a(de,"class","btn"),Jt(de,"width","80px"),a(j,"class","flex"),a(t,"class","flex flex-col gap-1")},m(v,X){w(v,t,X),l(t,n),l(n,i),l(i,o),l(i,r);for(let S=0;S<q.length;S+=1)q[S]&&q[S].m(r,null);Ye(r,e[36],!0),l(n,_),l(n,h),l(h,g),l(h,d);for(let S=0;S<Z.length;S+=1)Z[S]&&Z[S].m(d,null);Ye(d,e[37],!0),l(n,I),l(n,z),l(z,Y),l(z,E),T(E,e[38]),l(t,A),l(t,M),l(M,N),l(N,ae),l(N,H),l(H,W),T(W,e[39]),l(H,V),l(H,G),T(G,e[40]),l(H,P),l(H,F),T(F,e[41]),l(H,re),l(H,R),T(R,e[42]),l(t,x),l(t,te),l(te,y),l(t,U),l(t,j),l(j,$),l($,ue),l($,_e),l(j,ke),l(j,de),oe||(J=[k(r,"change",e[89]),k(d,"change",e[90]),k(E,"input",e[91]),k(W,"input",e[92]),k(G,"input",e[93]),k(F,"input",e[94]),k(R,"input",e[95]),k(y,"click",e[55]),k(de,"click",e[56])],oe=!0)},p(v,X){if(X[1]&65536){he=ye(v[47]);let S;for(S=0;S<he.length;S+=1){const fe=ws(v,he,S);q[S]?q[S].p(fe,X):(q[S]=Ps(fe),q[S].c(),q[S].m(r,null))}for(;S<q.length;S+=1)q[S].d(1);q.length=he.length}if(X[1]&65568&&Ye(r,v[36]),X[1]&131072){ne=ye(v[48]);let S;for(S=0;S<ne.length;S+=1){const fe=ms(v,ne,S);Z[S]?Z[S].p(fe,X):(Z[S]=Ts(fe),Z[S].c(),Z[S].m(d,null))}for(;S<Z.length;S+=1)Z[S].d(1);Z.length=ne.length}X[1]&131136&&Ye(d,v[37]),X[1]&128&&B(E.value)!==v[38]&&T(E,v[38]),X[1]&256&&B(W.value)!==v[39]&&T(W,v[39]),X[1]&512&&B(G.value)!==v[40]&&T(G,v[40]),X[1]&1024&&B(F.value)!==v[41]&&T(F,v[41]),X[1]&2048&&B(R.value)!==v[42]&&T(R,v[42]),X[1]&16&&K!==(K=(v[35].length?v[35].join(","):"None")+"")&&se(_e,K)},d(v){v&&m(t),Ct(q,v),Ct(Z,v),oe=!1,Fe(J)}}}function Ps(e){let t,n=e[108]+"",i;return{c(){t=s("option"),i=p(n),t.__value=e[108],T(t,t.__value)},m(o,r){w(o,t,r),l(t,i)},p:ee,d(o){o&&m(t)}}}function Ts(e){let t,n=e[105]+"",i;return{c(){t=s("option"),i=p(n),t.__value=e[105],T(t,t.__value)},m(o,r){w(o,t,r),l(t,i)},p:ee,d(o){o&&m(t)}}}function Bo(e){let t,n,i,o,r,_,h,g,d=Object.keys(e[1]).length>=1,I,z,Y,E=d&&zs(e),A=e[1][e[0]]&&Es(e);return{c(){t=s("div"),n=s("div"),i=s("input"),o=c(),r=s("button"),r.textContent="New window",_=c(),h=s("br"),g=c(),E&&E.c(),I=c(),A&&A.c(),a(i,"class","input grow"),a(i,"type","text"),a(i,"placeholder","New Window label.."),a(r,"class","btn"),a(n,"class","flex gap-1"),a(t,"class","flex flex-col children:grow gap-2")},m(M,N){w(M,t,N),l(t,n),l(n,i),T(i,e[28]),l(n,o),l(n,r),l(t,_),l(t,h),l(t,g),E&&E.m(t,null),l(t,I),A&&A.m(t,null),z||(Y=[k(i,"input",e[58]),k(r,"click",e[53])],z=!0)},p(M,N){N[0]&268435456&&i.value!==M[28]&&T(i,M[28]),N[0]&2&&(d=Object.keys(M[1]).length>=1),d?E?E.p(M,N):(E=zs(M),E.c(),E.m(t,I)):E&&(E.d(1),E=null),M[1][M[0]]?A?A.p(M,N):(A=Es(M),A.c(),A.m(t,null)):A&&(A.d(1),A=null)},i:ee,o:ee,d(M){M&&m(t),E&&E.d(),A&&A.d(),z=!1,Fe(Y)}}}function Fo(e,t,n){const i=mi();let o=i.label;const r={[i.label]:i},_=["default","crosshair","hand","arrow","move","text","wait","help","progress","notAllowed","contextMenu","cell","verticalText","alias","copy","noDrop","grab","grabbing","allScroll","zoomIn","zoomOut","eResize","nResize","neResize","nwResize","sResize","seResize","swResize","wResize","ewResize","nsResize","neswResize","nwseResize","colResize","rowResize"],h=["mica","blur","acrylic","tabbed","tabbedDark","tabbedLight"],g=navigator.appVersion.includes("Windows"),d=navigator.appVersion.includes(
`),n=s("div"),a(n,"class","i-ph-moon")},m(i,o){w(i,t,o),w(i,n,o)},d(i){i&&(m(t),m(n))}}}function $o(e){let t,n;return{c(){t=p(`Switch to Light mode
`),n=s("div"),a(n,"class","i-ph-sun")},m(i,o){w(i,t,o),w(i,n,o)},d(i){i&&(m(t),m(n))}}}function ea(e){let t,n,i,o,r,_,h;function g(){return e[14](e[28])}return{c(){t=s("a"),n=s("div"),i=c(),o=s("p"),o.textContent=`${e[28].label}`,a(n,"class",e[28].icon+" mr-2"),a(t,"href","##"),a(t,"class",r="nv "+(e[1]===e[28]?"nv_selected":""))},m(d,I){w(d,t,I),l(t,n),l(t,i),l(t,o),_||(h=k(t,"click",g),_=!0)},p(d,I){e=d,I&2&&r!==(r="nv "+(e[1]===e[28]?"nv_selected":""))&&a(t,"class",r)},d(d){d&&m(t),_=!1,h()}}}function Is(e){let t,n=e[28]&&ea(e);return{c(){n&&n.c(),t=hi()},m(i,o){n&&n.m(i,o),w(i,t,o)},p(i,o){i[28]&&n.p(i,o)},d(i){i&&m(t),n&&n.d(i)}}}function Os(e){let t,n=e[25].html+"",i;return{c(){t=new co(!1),i=hi(),t.a=i},m(o,r){t.m(n,o,r),w(o,i,r)},p(o,r){r&16&&n!==(n=o[25].html+"")&&t.p(n)},d(o){o&&(m(i),t.d())}}}function ta(e){let t,n,i,o,r,_,h,g,d,I,z,Y,E,A,M,N,ae,H,W,V,G,P,F,re,R,x,te,y,U,j,$,ue,K=e[1].label+"",_e,ke,de,oe,J,he,q,ne,Z,v,X,S,fe,Ee,me,pe,Me,Se;function Ie(L,Q){return L[0]?Zo:Qo}let be=Ie(e),ge=be(e);function ze(L,Q){return L[2]?$o:xo}let Ce=ze(e),ce=Ce(e),Le=ye(e[5]),le=[];for(let L=0;L<Le.length;L+=1)le[L]=Is(Ms(e,Le,L));var Oe=e[1].component;function Ne(L,Q){return{props:{onMessage:L[9],insecureRenderHtml:L[10]}}}Oe&&(J=fs(Oe,Ne(e)));let Pe=ye(e[4]),ie=[];for(let L=0;L<Pe.length;L+=1)ie[L]=Os(As(e,Pe,L));return{c(){t=s("div"),ge.c(),n=c(),i=s("div"),o=s("aside"),r=s("img"),h=c(),g=s("a"),ce.c(),d=c(),I=s("br"),z=c(),Y=s("div"),E=c(),A=s("br"),M=c(),N=s("a"),N.innerHTML=`Documentation
<span class="i-codicon-link-external"></span>`,ae=c(),H=s("a"),H.innerHTML=`GitHub
<span class="i-codicon-link-external"></span>`,W=c(),V=s("a"),V.innerHTML=`Source
<span class="i-codicon-link-external"></span>`,G=c(),P=s("br"),F=c(),re=s("div"),R=c(),x=s("br"),te=c(),y=s("div");for(let L=0;L<le.length;L+=1)le[L].c();U=c(),j=s("main"),$=s("div"),ue=s("h1"),_e=p(K),ke=c(),de=s("div"),oe=s("div"),J&&bs(J.$$.fragment),he=c(),q=s("div"),ne=s("div"),Z=c(),v=s("div"),X=s("p"),X.textContent="Console",S=c(),fe=s("div"),fe.innerHTML='<div class="i-codicon-clear-all"></div>',Ee=c(),me=s("div");for(let L=0;L<ie.length;L+=1)ie[L].c();a(t,"id","sidebarToggle"),a(t,"class","z-2000 display-none lt-sm:flex justify-center items-center absolute top-2 left-2 w-8 h-8 rd-8 bg-accent dark:bg-darkAccent active:bg-accentDark dark:active:bg-darkAccentDark"),a(r,"class","self-center p-7 cursor-pointer"),io(r.src,_="tauri_logo.png")||a(r,"src",_),a(r,"alt","Tauri logo"),a(g,"href","##"),a(g,"class","nv justify-between h-8"),a(Y,"class","bg-white/5 h-2px"),a(N,"class","nv justify-between h-8"),a(N,"target","_blank"),a(N,"href","https://tauri.app/v1/guides/"),a(H,"class","nv justify-between h-8"),a(H,"target","_blank"),a(H,"href","https://github.com/tauri-apps/tauri"),a(V,"class","nv justify-between h-8"),a(V,"target","_blank"),a(V,"href","https://github.com/tauri-apps/tauri/tree/dev/examples/api"),a(re,"class","bg-white/5 h-2px"),a(y,"class","flex flex-col overflow-y-auto children-h-10 children-flex-none gap-1"),a(o,"id","sidebar"),a(o,"class","lt-sm:h-screen lt-sm:shadow-lg lt-sm:shadow lt-sm:transition-transform lt-sm:absolute lt-sm:z-1999 bg-darkPrimaryLighter transition-colors-250 overflow-hidden grid grid-rows-[min-content_auto] select-none px-2"),a(oe,"class","mr-2"),a(de,"class","overflow-y-auto"),a($,"class","px-5 overflow-hidden grid grid-rows-[auto_1fr]"),a(ne,"class","bg-black/20 h-2px cursor-ns-resize"),a(X,"class","font-semibold"),a(fe,"class","cursor-pointer h-85% rd-1 p-1 flex justify-center items-center hover:bg-hoverOverlay dark:hover:bg-darkHoverOverlay active:bg-hoverOverlay/25 dark:active:bg-darkHoverOverlay/25 "),a(v,"class","flex justify-between items-center px-2"),a(me,"class","px-2 overflow-y-auto all:font-mono code-block all:text-xs"),a(q,"id","console"),a(q,"class","select-none h-15rem grid grid-rows-[2px_2rem_1fr] gap-1 overflow-hidden"),a(j,"class","flex-1 bg-primary dark:bg-darkPrimary transition-transform transition-colors-250 grid grid-rows-[2fr_auto]"),a(i,"class","flex h-screen w-screen overflow-hidden children-pt8 children-pb-2 text-primaryText dark:text-darkPrimaryText")},m(L,Q){w(L,t,Q),ge.m(t,null),w(L,n,Q),w(L,i,Q),l(i,o),l(o,r),l(o,h),l(o,g),ce.m(g,null),l(o,d),l(o,I),l(o,z),l(o,Y),l(o,E),l(o,A),l(o,M),l(o,N),l(o,ae),l(o,H),l(o,W),l(o,V),l(o,G),l(o,P),l(o,F),l(o,re),l(o,R),l(o,x),l(o,te),l(o,y);for(let C=0;C<le.length;C+=1)le[C]&&le[C].m(y,null);l(i,U),l(i,j),l(j,$),l($,ue),l(ue,_e),l($,ke),l($,de),l(de,oe),J&&di(J,oe,null),l(j,he),l(j,q),l(q,ne),l(q,Z),l(q,v),l(v,X),l(v,S),l(v,fe),l(q,Ee),l(q,me);for(let C=0;C<ie.length;C+=1)ie[C]&&ie[C].m(me,null);e[15](q),pe=!0,Me||(Se=[k(g,"click",e[7]),k(ne,"mousedown",e[12]),k(fe,"click",e[11])],Me=!0)},p(L,[Q]){if(be!==(be=Ie(L))&&(ge.d(1),ge=be(L),ge&&(ge.c(),ge.m(t,null))),Ce!==(Ce=ze(L))&&(ce.d(1),ce=Ce(L),ce&&(ce.c(),ce.m(g,null))),Q&99){Le=ye(L[5]);let C;for(C=0;C<Le.length;C+=1){const Te=Ms(L,Le,C);le[C]?le[C].p(Te,Q):(le[C]=Is(Te),le[C].c(),le[C].m(y,null))}for(;C<le.length;C+=1)le[C].d(1);le.length=Le.length}if((!pe||Q&2)&&K!==(K=L[1].label+"")&&se(_e,K),Q&2&&Oe!==(Oe=L[1].component)){if(J){go();const C=J;ps(C.$$.fragment,1,0,()=>{fi(C,1)}),_o()}Oe?(J=fs(Oe,Ne(L)),bs(J.$$.fragment),ci(J.$$.fragment,1),di(J,oe,null)):J=null}if(Q&16){Pe=ye(L[4]);let C;for(C=0;C<Pe.length;C+=1){const Te=As(L,Pe,C);ie[C]?ie[C].p(Te,Q):(ie[C]=Os(Te),ie[C].c(),ie[C].m(me,null))}for(;C<ie.length;C+=1)ie[C].d(1);ie.length=Pe.length}},i(L){pe||(J&&ci(J.$$.fragment,L),pe=!0)},o(L){J&&ps(J.$$.fragment,L),pe=!1},d(L){L&&(m(t),m(n),m(i)),ge.d(),ce.d(),Ct(le,L),J&&fi(J),Ct(ie,L),e[15](null),Me=!1,Fe(Se)}}}let Ns=50;function Ws(e){const t=document.querySelector("html");e?t.classList.add("dark"):t.classList.remove("dark"),localStorage&&localStorage.