2023-02-18 22:23:09 +03:00
const so = function ( ) { const t = document . createElement ( "link" ) . relList ; if ( t && t . supports && t . supports ( "modulepreload" ) ) return ; for ( const l of document . querySelectorAll ( 'link[rel="modulepreload"]' ) ) i ( l ) ; new MutationObserver ( l => { for ( const o of l ) if ( o . type === "childList" ) for ( const u of o . addedNodes ) u . tagName === "LINK" && u . rel === "modulepreload" && i ( u ) } ) . observe ( document , { childList : ! 0 , subtree : ! 0 } ) ; function n ( l ) { const o = { } ; return l . integrity && ( o . integrity = l . integrity ) , l . referrerpolicy && ( o . referrerPolicy = l . referrerpolicy ) , l . crossorigin === "use-credentials" ? o . credentials = "include" : l . crossorigin === "anonymous" ? o . credentials = "omit" : o . credentials = "same-origin" , o } function i ( l ) { if ( l . ep ) return ; l . ep = ! 0 ; const o = n ( l ) ; fetch ( l . href , o ) } } ; so ( ) ; function V ( ) { } function ws ( e ) { return e ( ) } function Vl ( ) { return Object . create ( null ) } function se ( e ) { e . forEach ( ws ) } function oo ( e ) { return typeof e == "function" } function _e ( e , t ) { return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function" } let Gn ; function ro ( e , t ) { return Gn || ( Gn = document . createElement ( "a" ) ) , Gn . href = t , e === Gn . href } function ao ( e ) { return Object . keys ( e ) . length === 0 } function uo ( e , ... t ) { if ( e == null ) return V ; const n = e . subscribe ( ... t ) ; return n . unsubscribe ? ( ) => n . unsubscribe ( ) : n } function ks ( e , t , n ) { e . $$ . on _destroy . push ( uo ( t , n ) ) } function s ( e , t ) { e . appendChild ( t ) } function m ( e , t , n ) { e . insertBefore ( t , n || null ) } function p ( e ) { e . parentNode . removeChild ( e ) } function mt ( e , t ) { for ( let n = 0 ; n < e . length ; n += 1 ) e [ n ] && e [ n ] . d ( t ) } function r ( e ) { return document . createElement ( e ) } function co ( e ) { return document . createElementNS ( "http://www.w3.org/2000/svg" , e ) } function z ( e ) { return document . createTextNode ( e ) } function h ( ) { return z ( " " ) } function ii ( ) { return z ( "" ) } function L ( e , t , n , i ) { return e . addEventListener ( t , n , i ) , ( ) => e . removeEventListener ( t , n , i ) } function Zn ( 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 le ( e ) { return e === "" ? null : + e } function fo ( e ) { return Array . from ( e . childNodes ) } function Q ( e , t ) { t = "" + t , e . wholeText !== t && ( e . data = t ) } function q ( e , t ) { e . value = t == null ? "" : t } function Dt ( e , t ) { for ( let n = 0 ; n < e . options . length ; n += 1 ) { const i = e . options [ n ] ; if ( i . _ _value === t ) { i . selected = ! 0 ; return } } e . selectedIndex = - 1 } function Pi ( e ) { const t = e . querySelector ( ":checked" ) || e . options [ 0 ] ; return t && t . _ _value } function Jn ( e , t , n ) { e . classList [ n ? "add" : "remove" ] ( t ) } class po { constructor ( t = ! 1 ) { this . is _svg = ! 1 , 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 = co ( n . nodeName ) : this . e = r ( n . nodeName ) , this . t = n , this . c ( t ) ) , this . i ( i ) } h ( t ) { this . e . innerHTML = t , this . n = Array . from ( this . e . childNodes ) } i ( t ) { for ( let n = 0 ; n < this . n . length ; n += 1 ) m ( this . t , this . n [ n ] , t ) } p ( t ) { this . d ( ) , this . h ( t ) , this . i ( this . a ) } d ( ) { this . n . forEach ( p ) } } let Vt ; function Bt ( e ) { Vt = e } function Ms ( ) { if ( ! Vt ) throw new Error ( "Function called outside component initialization" ) ; return Vt } function dt ( e ) { Ms ( ) . $$ . on _mount . push ( e ) } function Ii ( e ) { Ms ( ) . $$ . on _destroy . push ( e ) } const Ut = [ ] , $n = [ ] , Yn = [ ] , Gl = [ ] , mo = Promise . resolve ( ) ; let Oi = ! 1 ; function ho ( ) { Oi || ( Oi = ! 0 , mo . then ( Cs ) ) } function Wt ( e ) { Yn . push ( e ) } const Di = new Set ; let Xn = 0 ; function Cs ( ) { const e = Vt ; do { for ( ; Xn < Ut . length ; ) { const t = Ut [ Xn ] ; Xn ++ , Bt ( t ) , _o ( t . $$ ) } for ( Bt ( null ) , Ut . length = 0 , Xn = 0 ; $n . length ; ) $n . pop ( ) ( ) ; for ( let t = 0 ; t < Yn . length ; t += 1 ) { const n = Yn [ t ] ; Di . has ( n ) || ( Di . add ( n ) , n ( ) ) } Yn . length = 0 } while ( Ut . length ) ; for ( ; Gl . length ; ) Gl . pop ( ) ( ) ; Oi = ! 1 , Di . clear ( ) , Bt ( e ) } function _o ( e ) { if ( e . fragment !== null ) { e . update ( ) , se ( e . before _update ) ; const t = e . dirty ; e . dirty = [ - 1 ] , e . fragment && e . fragment . p ( e . ctx , t ) , e . after _update . forEach ( Wt ) } } const Kn = new Set ; let ft ; function li ( ) { ft = { r : 0 , c : [ ] , p : ft } } function si ( ) { ft . r || se ( ft . c ) , ft = ft . p } function Se ( e , t ) { e && e . i && ( Kn . delete ( e ) , e . i ( t ) ) } function Ie ( e , t , n , i ) { if ( e && e . o ) { if ( Kn . has ( e ) ) return ; Kn . add ( e ) , ft . c . push ( ( ) => { Kn . delete ( e ) , i && ( n && e . d ( 1 ) , i ( ) ) } ) , e . o ( t ) } else i && i ( ) } function xn ( e ) { e && e . c ( ) } function Gt ( e , t , n , i ) { const { fragment : l , on _mount : o , on _destroy : u , after _update : d } = e . $$ ; l && l . m ( t , n ) , i || Wt ( ( ) => { const c = o . map ( ws ) . filter ( oo ) ; u ? u . push ( ... c ) : se ( c ) , e . $$ . on _mount = [ ] } ) , d . forEach ( Wt ) } function Jt ( e , t ) { const n = e . $$ ; n . fragment !== null && ( se ( n . on _destroy ) , n . f
2022-10-17 18:08:59 +03:00
` ),stderr:i.join( `
2023-02-18 22:23:09 +03:00
` )})}),this.spawn().catch(t)})}};async function Fi(e,t){return S({__tauriModule:"Shell",message:{cmd:"open",path:e,with:t}})}var Mo={};Te(Mo,{TauriEvent:()=>Ds,emit:()=>oi,listen:()=>Yt,once:()=>Ws});async function Ls(e,t){return S({__tauriModule:"Event",message:{cmd:"unlisten",event:e,eventId:t}})}async function Es(e,t,n){await S({__tauriModule:"Event",message:{cmd:"emit",event:e,windowLabel:t,payload:n}})}async function Ni(e,t,n){return S({__tauriModule:"Event",message:{cmd:"listen",event:e,windowLabel:t,handler:ht(n)}}).then(i=>async()=>Ls(e,i))}async function zs(e,t,n){return Ni(e,t,i=>{n(i),Ls(e,i.id).catch(()=>{})})}var Ds=(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.CHECK_UPDATE="tauri://update",e.UPDATE_AVAILABLE="tauri://update-available",e.INSTALL_UPDATE="tauri://update-install",e.STATUS_UPDATE="tauri://update-status",e.DOWNLOAD_PROGRESS="tauri://update-download-progress",e))(Ds||{});async function Yt(e,t){return Ni(e,null,t)}async function Ws(e,t){return zs(e,null,t)}async function oi(e,t){return Es(e,void 0,t)}var Co={};Te(Co,{CloseRequestedEvent:()=>Hs,LogicalPosition:()=>Ps,LogicalSize:()=>ti,PhysicalPosition:()=>nt,PhysicalSize:()=>pt,UserAttentionType:()=>ji,WebviewWindow:()=>_t,WebviewWindowHandle:()=>Rs,WindowManager:()=>Is,appWindow:()=>qe,availableMonitors:()=>So,currentMonitor:()=>To,getAll:()=>Os,getCurrent:()=>qt,primaryMonitor:()=>Ao});var ti=class{constructor(e,t){this.type="Logical",this.width=e,this.height=t}},pt=class{constructor(e,t){this.type="Physical",this.width=e,this.height=t}toLogical(e){return new ti(this.width/e,this.height/e)}},Ps=class{constructor(e,t){this.type="Logical",this.x=e,this.y=t}},nt=class{constructor(e,t){this.type="Physical",this.x=e,this.y=t}toLogical(e){return new Ps(this.x/e,this.y/e)}},ji=(e=>(e[e.Critical=1]="Critical",e[e.Informational=2]="Informational",e))(ji||{});function qt(){return new _t(window.__TAURI_METADATA__.__currentWindow.label,{skip:!0})}function Os(){return window.__TAURI_METADATA__.__windows.map(e=>new _t(e.label,{skip:!0}))}var Jl=["tauri://created","tauri://error"],Rs=class{constructor(e){this.label=e,this.listeners=Object.create(null)}async listen(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let n=this.listeners[e];n.splice(n.indexOf(t),1)}):Ni(e,this.label,t)}async once(e,t){return this._handleTauriEvent(e,t)?Promise.resolve(()=>{let n=this.listeners[e];n.splice(n.indexOf(t),1)}):zs(e,this.label,t)}async emit(e,t){if(Jl.includes(e)){for(let n of this.listeners[e]||[])n({event:e,id:-1,windowLabel:this.label,payload:t});return Promise.resolve()}return Es(e,this.label,t)}_handleTauriEvent(e,t){return Jl.includes(e)?(e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t],!0):!1}},Is=class extends Rs{async scaleFactor(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"scaleFactor"}}}})}async innerPosition(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerPosition"}}}}).then(({x:e,y:t})=>new nt(e,t))}async outerPosition(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerPosition"}}}}).then(({x:e,y:t})=>new nt(e,t))}async innerSize(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"innerSize"}}}}).then(({width:e,height:t})=>new pt(e,t))}async outerSize(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{label:this.label,cmd:{type:"outerSize"}}}}).then(({width:e,height:t})=>new pt(e,t))}async isFullscreen(){return S({__tauriModule:"Window",message:{cmd:"manage",dat
Note that this is not an issue if running this frontend on a browser instead of a Tauri window . ` ),qe=new _t("main",{skip:!0}));function Ui(e){return e===null?null:{name:e.name,scaleFactor:e.scaleFactor,position:new nt(e.position.x,e.position.y),size:new pt(e.size.width,e.size.height)}}async function To(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"currentMonitor"}}}}).then(Ui)}async function Ao(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"primaryMonitor"}}}}).then(Ui)}async function So(){return S({__tauriModule:"Window",message:{cmd:"manage",data:{cmd:{type:"availableMonitors"}}}}).then(e=>e.map(Ui))}function Lo(){return navigator.appVersion.includes("Win")}var Eo={};Te(Eo,{EOL:()=>zo,arch:()=>Po,platform:()=>Fs,tempdir:()=>Oo,type:()=>Wo,version:()=>Do});var zo=Lo()? ` \ r
2022-07-04 04:15:23 +03:00
` : `
2023-02-18 22:23:09 +03:00
` ;async function Fs(){return S({__tauriModule:"Os",message:{cmd:"platform"}})}async function Do(){return S({__tauriModule:"Os",message:{cmd:"version"}})}async function Wo(){return S({__tauriModule:"Os",message:{cmd:"osType"}})}async function Po(){return S({__tauriModule:"Os",message:{cmd:"arch"}})}async function Oo(){return S({__tauriModule:"Os",message:{cmd:"tempdir"}})}var Ro={};Te(Ro,{getName:()=>js,getTauriVersion:()=>Us,getVersion:()=>Ns,hide:()=>Bs,show:()=>qs});async function Ns(){return S({__tauriModule:"App",message:{cmd:"getAppVersion"}})}async function js(){return S({__tauriModule:"App",message:{cmd:"getAppName"}})}async function Us(){return S({__tauriModule:"App",message:{cmd:"getTauriVersion"}})}async function qs(){return S({__tauriModule:"App",message:{cmd:"show"}})}async function Bs(){return S({__tauriModule:"App",message:{cmd:"hide"}})}var Io={};Te(Io,{exit:()=>Vs,relaunch:()=>qi});async function Vs(e=0){return S({__tauriModule:"Process",message:{cmd:"exit",exitCode:e}})}async function qi(){return S({__tauriModule:"Process",message:{cmd:"relaunch"}})}function Ho(e){let t,n,i,l,o,u,d,c,f,g,k,_,y,v,b,T,W,I,O,j,E,M,A,P,C,F;return{c(){t=r("p"),t.innerHTML= ` This is a demo of Tauri & # 39 ; s API capabilities using the < code > @ tauri - apps / api < / c o d e > p a c k a g e . I t & # 3 9 ; s u s e d a s t h e m a i n v a l i d a t i o n a p p , s e r v i n g a s t h e t e s t b e d o f o u r
2022-07-04 04:15:23 +03:00
development process . In the future , this app will be used on Tauri & # 39 ; s integration
2022-12-13 07:04:22 +03:00
tests . ` ,n=h(),i=r("br"),l=h(),o=r("br"),u=h(),d=r("pre"),c=z("App name: "),f=r("code"),g=z(e[2]),k=z( `
App version : ` ),_=r("code"),y=z(e[0]),v=z( `
2023-02-18 22:23:09 +03:00
Tauri version : ` ),b=r("code"),T=z(e[1]),W=z( `
` ),I=h(),O=r("br"),j=h(),E=r("div"),M=r("button"),M.textContent="Close application",A=h(),P=r("button"),P.textContent="Relaunch application",a(M,"class","btn"),a(P,"class","btn"),a(E,"class","flex flex-wrap gap-1 shadow-")},m(U,J){m(U,t,J),m(U,n,J),m(U,i,J),m(U,l,J),m(U,o,J),m(U,u,J),m(U,d,J),s(d,c),s(d,f),s(f,g),s(d,k),s(d,_),s(_,y),s(d,v),s(d,b),s(b,T),s(d,W),m(U,I,J),m(U,O,J),m(U,j,J),m(U,E,J),s(E,M),s(E,A),s(E,P),C||(F=[L(M,"click",e[3]),L(P,"click",e[4])],C=!0)},p(U,[J]){J&4&&Q(g,U[2]),J&1&&Q(y,U[0]),J&2&&Q(T,U[1])},i:V,o:V,d(U){U&&p(t),U&&p(n),U&&p(i),U&&p(l),U&&p(o),U&&p(u),U&&p(d),U&&p(I),U&&p(O),U&&p(j),U&&p(E),C=!1,se(F)}}}function Fo(e,t,n){let i="0.0.0",l="0.0.0",o="Unknown";js().then(c=>{n(2,o=c)}),Ns().then(c=>{n(0,i=c)}),Us().then(c=>{n(1,l=c)});async function u(){await Vs()}async function d(){await qi()}return[i,l,o,u,d]}class No extends ye{constructor(t){super(),ve(this,t,Fo,Ho,_e,{})}}var jo={};Te(jo,{getMatches:()=>Gs});async function Gs(){return S({__tauriModule:"Cli",message:{cmd:"cliMatches"}})}function Uo(e){let t,n,i,l,o,u,d,c,f,g,k,_,y;return{c(){t=r("p"),t.innerHTML= ` This binary can be run from the terminal and takes the following arguments :
2022-07-04 04:15:23 +03:00
< code class = "code-block flex flex-wrap my-2" > < pre > -- config & lt ; PATH & gt ;
-- theme & lt ; light | dark | system & gt ;
-- verbose < / p r e > < / c o d e >
2023-02-18 22:23:09 +03:00
Additionally , it has a < code > update -- background < / c o d e > s u b c o m m a n d . ` , n = h ( ) , i = r ( " b r " ) , l = h ( ) , o = r ( " d i v " ) , o . t e x t C o n t e n t = " N o t e t h a t t h e a r g u m e n t s a r e o n l y p a r s e d , n o t i m p l e m e n t e d . " , u = h ( ) , d = r ( " b r " ) , c = h ( ) , f = r ( " b r " ) , g = h ( ) , k = r ( " b u t t o n " ) , k . t e x t C o n t e n t = " G e t m a t c h e s " , a ( o , " c l a s s " , " n o t e " ) , a ( k , " c l a s s " , " b t n " ) , a ( k , " i d " , " c l i - m a t c h e s " ) } , m ( v , b ) { m ( v , t , b ) , m ( v , n , b ) , m ( v , i , b ) , m ( v , l , b ) , m ( v , o , b ) , m ( v , u , b ) , m ( v , d , b ) , m ( v , c , b ) , m ( v , f , b ) , m ( v , g , b ) , m ( v , k , b ) , _ | | ( y = L ( k , " c l i c k " , e [ 0 ] ) , _ = ! 0 ) } , p : V , i : V , o : V , d ( v ) { v & & p ( t ) , v & & p ( n ) , v & & p ( i ) , v & & p ( l ) , v & & p ( o ) , v & & p ( u ) , v & & p ( d ) , v & & p ( c ) , v & & p ( f ) , v & & p ( g ) , v & & p ( k ) , _ = ! 1 , y ( ) } } } f u n c t i o n q o ( e , t , n ) { l e t { o n M e s s a g e : i } = t ; f u n c t i o n l ( ) { G s ( ) . t h e n ( i ) . c a t c h ( i ) } r e t u r n e . $ $ s e t = o = > { " o n M e s s a g e " i n o & & n ( 1 , i = o . o n M e s s a g e ) } , [ l , i ] } c l a s s B o e x t e n d s y e { c o n s t r u c t o r ( t ) { s u p e r ( ) , v e ( t h i s , t , q o , U o , _ e , { o n M e s s a g e : 1 } ) } } f u n c t i o n V o ( e ) { l e t t , n , i , l , o , u , d , c ; r e t u r n { c ( ) { t = r ( " d i v " ) , n = r ( " b u t t o n " ) , n . t e x t C o n t e n t = " C a l l L o g A P I " , i = h ( ) , l = r ( " b u t t o n " ) , l . t e x t C o n t e n t = " C a l l R e q u e s t ( a s y n c ) A P I " , o = h ( ) , u = r ( " b u t t o n " ) , u . t e x t C o n t e n t = " S e n d e v e n t t o R u s t " , a ( n , " c l a s s " , " b t n " ) , a ( n , " i d " , " l o g " ) , a ( l , " c l a s s " , " b t n " ) , a ( l , " i d " , " r e q u e s t " ) , a ( u , " c l a s s " , " b t n " ) , a ( u , " i d " , " e v e n t " ) } , m ( f , g ) { m ( f , t , g ) , s ( t , n ) , s ( t , i ) , s ( t , l ) , s ( t , o ) , s ( t , u ) , d | | ( c = [ L ( n , " c l i c k " , e [ 0 ] ) , L ( l , " c l i c k " , e [ 1 ] ) , L ( u , " c l i c k " , e [ 2 ] ) ] , d = ! 0 ) } , p : V , i : V , o : V , d ( f ) { f & & p ( t ) , d = ! 1 , s e ( c ) } } } f u n c t i o n G o ( e , t , n ) { l e t { o n M e s s a g e : i } = t , l ; d t ( a s y n c ( ) = > { l = a w a i t Y t ( " r u s t - e v e n t " , i ) } ) , I i ( ( ) = > { l & & l ( ) } ) ; f u n c t i o n o ( ) { e i ( " l o g _ o p e r a t i o n " , { e v e n t : " t a u r i - c l i c k " , p a y l o a d : " t h i s p a y l o a d i s o p t i o n a l b e c a u s e w e u s e d O p t i o n i n R u s t " } ) } f u n c t i o n u ( ) { e i ( " p e r f o r m _ r e q u e s t " , { e n d p o i n t : " d u m m y e n d p o i n t a r g " , b o d y : { i d : 5 , n a m e : " t e s t " } } ) . t h e n ( i ) . c a t c h ( i ) } f u n c t i o n d ( ) { o i ( " j s - e v e n t " , " t h i s i s t h e p a y l o a d s t r i n g " ) } r e t u r n e . $ $ s e t = c = > { " o n M e s s a g e " i n c & & n ( 3 , i = c . o n M e s s a g e ) } , [ o , u , d , i ] } c l a s s J o e x t e n d s y e { c o n s t r u c t o r ( t ) { s u p e r ( ) , v e ( t h i s , t , G o , V o , _ e , { o n M e s s a g e : 3 } ) } } v a r X o = { } ; T e ( X o , { a s k : ( ) = > X s , c o n f i r m : ( ) = > K o , m e s s a g e : ( ) = > Y o , o p e n : ( ) = > B i , s a v e : ( ) = > J s } ) ; a s y n c f u n c t i o n B i ( e = { } ) { r e t u r n t y p e o f e = = " o b j e c t " & & O b j e c t . f r e e z e ( e ) , S ( { _ _ t a u r i M o d u l e : " D i a l o g " , m e s s a g e : { c m d : " o p e n D i a l o g " , o p t i o n s : e } } ) } a s y n c f u n c t i o n J s ( e = { } ) { r e t u r n t y p e o f e = = " o b j e c t " & & O b j e c t . f r e e z e ( e ) , S ( { _ _ t a u r i M o d u l e : " D i a l o g " , m e s s a g e : { c m d : " s a v e D i a l o g " , o p t i o n s : e } } ) } a s y n c f u n c t i o n Y o ( e , t ) { v a r i ; l e t n = t y p e o f t = = " s t r i n g " ? { t i t l e : t } : t ; r e t u r n S ( { _ _ t a u r i M o d u l e : " D i a l o g " , m e s s a g e : { c m d : " m e s s a g e D i a l o g " , m e s s a g e : e . t o S t r i n g ( ) , t i t l e : ( i = n = = n u l l ? v o i d 0 : n . t i t l e ) = = n u l l ? v o i d 0 : i . t o S t r i n g ( ) , t y p e : n = = n u l l ? v o i d 0 : n . t y p e } } ) } a s y n c f u n c t i o n X s ( e , t ) { v a r i ; l e t n = t y p e o f t = = " s t r i n g " ? { t i t l e : t } : t ; r e t u r n S ( { _ _ t a u r i M o d u l e : " D i a l o g " , m e s s a g e : { c m d : " a s k D i a l o g " , m e s s a g e : e . t o S t r i n g ( ) , t i t l e : ( i = n = = n u l l ? v o i d 0 : n . t i t l e ) = = n u l l ? v o i d 0 : i . t o S t r i n g ( ) , t y p e : n = = n u l l ? v o i d 0 : n . t y p e } } ) } a s y n c f u n c t i o n K o ( e , t ) { v a r i ; l e t n = t y p e o f t = = " s t r i n g " ? { t i t l e : t } : t ; r e t u r n S ( { _ _ t a u r i M o d u l e : " D i a l o g " , m e s s a g e : { c m d : " c o n f i r m D i a l o g " , m e s s a g e : e . t o S t r i n g ( ) , t i t l e : ( i = n = = n u l l ? v o i d 0 : n . t i t l e ) = = n u l l ? v o i d 0 : i . t o S t r i n g ( ) , t y p e : n = = n u l l ? v o i d 0 : n . t y p e } } ) } v a r Q o = { } ; T e ( Q o , { B a s e D i r e c t o r y : ( ) = > X t , D i r : ( ) = > X t , c o p y F i l e : ( ) = > t r , c r e a t e D i r : ( ) = > x o , e x i s t s : ( ) = > l r , r e a d B i n a r y F i l e : ( ) = > V i , r e a d D i r : ( ) = > Y s , r e a d T e x t F i l e : ( ) = > Z o , r e m o v e D i r : ( ) = > e r , r e m o v e F i l e : ( ) = > n r , r e n a m e F i l e : ( ) = > i r , w r i t e B i n a r y F i l e : ( ) = > $ o , w r i t e F i l e : ( ) = > R i , w r i t e T e x t F i l e : ( ) = > R i } ) ; v a r X t = ( e = > ( e [ e . A u d i o = 1 ] = " A u d i o " , e [ e . C a c h e = 2 ] = " C a c h e " , e [ e . C o n f i g = 3 ] = " C o n f i g " , e [ e . D a t a = 4 ] = " D a t a " , e [ e . L o c a l D a t a = 5 ] = " L o c a l D a t a " , e [ e . D e s k t o p = 6 ] = " D e s k t o p " , e [ e . D o c u m e n t = 7 ] = " D o c u m e n t " , e [ e . D o w n l o a d = 8 ] = " D o w n l o a d " , e [ e . E x e c u t a b l e = 9 ] = " E x e c u t a b l e " , e [ e . F o n t = 1 0 ] = " F o n t " , e [ e . H o m e = 1 1 ] = " H o m e " , e [ e . P i c t u r e = 1 2 ] = " P i c t u r e " , e [ e . P u b l i c = 1 3 ] = " P u b l i c " , e [ e . R u n t i m e = 1 4 ] = " R u n t i m e " , e [ e . T e m p l a t e = 1 5 ] = " T e m p l a t e " , e [ e . V i d e o = 1 6 ] = " V i d e o " , e [ e . R e s o u r c e = 1 7 ] = " R e s o u r c e " , e [ e . A p p = 1 8 ] = " A p p " , e [ e . L o g = 1 9 ] = " L o g " , e [ e . T e m p = 2 0 ] = " T e m p " , e [ e . A p p C o n f i g = 2 1 ] = " A p p C o n f i g " , e [ e . A p p D a t a = 2 2 ] = " A p p D a t a " , e [ e . A p p L o c a l D a t a = 2 3 ] = " A p p L o c a l D a t a " , e [ e . A p p C a c h e = 2 4 ] = " A p p C a c h e " , e [ e . A p p L o g = 2 5 ] = " A p p L o g " , e ) ) ( X t | | { } ) ; a s y n c f u n c t i o n Z o ( e , t = { } ) { r e t u r n S ( { _ _ t a u r i M o d u l e : " F s " , m e s s a g e : { c m d : " r e a d T e x t F i l e " , p a t h : e , o p t i o n s : t } } ) } a s y n c f u n c t i o n V i ( e , t = { } ) { l e t n = a w a i t S ( { _ _ t a u r i M o d u l e : " F s " , m e s s a g e : { c m d : " r e a d F i l e " , p a t h : e , o p t i o n s : t } } ) ; r e t u r n U i n t 8 A r r a y . f r o m ( n ) } a s y n c f u n c t i o n R i ( e , t , n ) { t y p e o f n = = " o b j e c t " & & O b j e c t . f r e e z e ( n ) , t y p e o f e = = " o b j e c t " & & O b j e c t .
try setting the \ ` responseType \` option to \` ResponseType.Text \` or \` ResponseType.Binary \` if the API does not return a JSON response. ` ) } return i } return i } ) } async get ( e , t ) { return this . request ( { method : "GET" , url : e , ... t } ) } async post ( e , t , n ) { return this . request ( { method : "POST" , url : e , body : t , ... n } ) } async put ( e , t , n ) { return this . request ( { method : "PUT" , url : e , body : t , ... n } ) } async patch ( e , t ) { return this . request ( { method : "PATCH" , url : e , ... t } ) } async delete ( e , t ) { return this . request ( { method : "DELETE" , url : e , ... t } ) } } ; async function ni ( e ) { return S ( { _ _tauriModule : "Http" , message : { cmd : "createClient" , options : e } } ) . then ( t => new Qs ( t ) ) } var Wi = null ; async function mr ( e , t ) { var n ; return Wi === null && ( Wi = await ni ( ) ) , Wi . request ( { url : e , method : ( n = t == null ? void 0 : t . method ) != null ? n : "GET" , ... t } ) } function Ql ( e , t , n ) { const i = e . slice ( ) ; return i [ 12 ] = t [ n ] , i [ 14 ] = n , i } function Zl ( e ) { let t , n , i , l , o , u , d , c , f , g , k , _ , y , v , b , T , W , I = e [ 5 ] , O = [ ] ; for ( let A = 0 ; A < I . length ; A += 1 ) O [ A ] = es ( Ql ( e , I , A ) ) ; const j = A => Ie ( O [ A ] , 1 , 1 , ( ) => { O [ A ] = null } ) ; let E = ! e [ 3 ] && ts ( ) , M = ! e [ 3 ] && e [ 8 ] && ns ( ) ; return { c ( ) { t = r ( "span" ) , n = r ( "span" ) , i = z ( e [ 6 ] ) , l = h ( ) , o = r ( "ul" ) ; for ( let A = 0 ; A < O . length ; A += 1 ) O [ A ] . c ( ) ; u = h ( ) , d = r ( "span" ) , c = z ( e [ 7 ] ) , E && E . c ( ) , f = h ( ) , g = r ( "span" ) , k = z ( e [ 6 ] ) , _ = z ( gr ) , y = z ( e [ 7 ] ) , M && M . c ( ) , v = ii ( ) , a ( n , "class" , "bracket svelte-gbh3pt" ) , a ( n , "tabindex" , "0" ) , a ( o , "class" , "svelte-gbh3pt" ) , a ( d , "class" , "bracket svelte-gbh3pt" ) , a ( d , "tabindex" , "0" ) , a ( t , "class" , "svelte-gbh3pt" ) , Jn ( t , "hidden" , e [ 8 ] ) , a ( g , "class" , "bracket svelte-gbh3pt" ) , a ( g , "tabindex" , "0" ) , Jn ( g , "hidden" , ! e [ 8 ] ) } , m ( A , P ) { m ( A , t , P ) , s ( t , n ) , s ( n , i ) , s ( t , l ) , s ( t , o ) ; for ( let C = 0 ; C < O . length ; C += 1 ) O [ C ] . m ( o , null ) ; s ( t , u ) , s ( t , d ) , s ( d , c ) , E && E . m ( t , null ) , m ( A , f , P ) , m ( A , g , P ) , s ( g , k ) , s ( g , _ ) , s ( g , y ) , M && M . m ( A , P ) , m ( A , v , P ) , b = ! 0 , T || ( W = [ L ( n , "click" , e [ 11 ] ) , L ( d , "click" , e [ 11 ] ) , L ( g , "click" , e [ 11 ] ) ] , T = ! 0 ) } , p ( A , P ) { if ( ( ! b || P & 64 ) && Q ( i , A [ 6 ] ) , P & 1591 ) { I = A [ 5 ] ; let C ; for ( C = 0 ; C < I . length ; C += 1 ) { const F = Ql ( A , I , C ) ; O [ C ] ? ( O [ C ] . p ( F , P ) , Se ( O [ C ] , 1 ) ) : ( O [ C ] = es ( F ) , O [ C ] . c ( ) , Se ( O [ C ] , 1 ) , O [ C ] . m ( o , null ) ) } for ( li ( ) , C = I . length ; C < O . length ; C += 1 ) j ( C ) ; si ( ) } ( ! b || P & 128 ) && Q ( c , A [ 7 ] ) , A [ 3 ] ? E && ( E . d ( 1 ) , E = null ) : E || ( E = ts ( ) , E . c ( ) , E . m ( t , null ) ) , P & 256 && Jn ( t , "hidden" , A [ 8 ] ) , ( ! b || P & 64 ) && Q ( k , A [ 6 ] ) , ( ! b || P & 128 ) && Q ( y , A [ 7 ] ) , P & 256 && Jn ( g , "hidden" , ! A [ 8 ] ) , ! A [ 3 ] && A [ 8 ] ? M || ( M = ns ( ) , M . c ( ) , M . m ( v . parentNode , v ) ) : M && ( M . d ( 1 ) , M = null ) } , i ( A ) { if ( ! b ) { for ( let P = 0 ; P < I . length ; P += 1 ) Se ( O [ P ] ) ; b = ! 0 } } , o ( A ) { O = O . filter ( Boolean ) ; for ( let P = 0 ; P < O . length ; P += 1 ) Ie ( O [ P ] ) ; b = ! 1 } , d ( A ) { A && p ( t ) , mt ( O , A ) , E && E . d ( ) , A && p ( f ) , A && p ( g ) , M && M . d ( A ) , A && p ( v ) , T = ! 1 , se ( W ) } } } function $l ( e ) { let t , n , i = e [ 12 ] + "" , l , o ; return { c ( ) { t = r ( "span" ) , n = z ( '"' ) , l = z ( i ) , o = z ( '":' ) , a ( t , "class" , "key" ) } , m ( u , d ) { m ( u , t , d ) , s ( t , n ) , s ( t , l ) , s ( t , o ) } , p ( u , d ) { d & 32 && i !== ( i = u [ 12 ] + "" ) && Q ( l , i ) } , d ( u ) { u && p ( t ) } } } function hr ( e ) { let t , n = e [ 10 ] ( e [ 0 ] [ e [ 12 ] ] ) + "" , i , l , o = e [ 14 ] < e [ 5 ] . length - 1 && xl ( ) ; return { c ( ) { t = r ( "span" ) , i = z ( n ) , o && o . c ( ) , a ( t , "class" , l = "val " + e [ 9 ] ( e [ 0 ] [ e [ 12 ] ] ) + " svelte-gbh3pt" ) } , m ( u , d ) { m ( u , t , d ) , s ( t , i ) , o && o . m ( t , null ) } , p ( u , d ) { d & 33 && n !== ( n = u [ 10 ] ( u [ 0 ] [ u [ 12 ] ] ) + "" ) && Q ( i , n ) , u [ 14 ] < u [ 5 ] . length - 1 ? o || ( o = xl ( ) , o . c ( ) , o . m ( t , null ) ) : o && ( o . d ( 1 ) , o = null ) , d & 33 && l !== ( l = "val " + u [ 9 ] ( u [ 0 ] [ u [ 12 ] ] ) + " svelte-gbh3pt" ) && a ( t , "class" , l ) } , i : V , o : V , d ( u ) { u && p ( t ) , o && o . d ( ) } } } function _r ( e ) { let t , n ; return t = new Zs ( { props : { json : e [ 0 ] [ e [ 12 ] ] , depth : e [ 1 ] , _lvl : e [ 2 ] + 1 , _last : e [ 14 ] === e [ 5 ] . length - 1 } } ) , { c ( ) { xn ( t . $$ . fragment ) } , m ( i , l ) { Gt ( t , i , l ) , n = ! 0 } , p ( i , l ) { const o = { } ; l & 33 && ( o . json = i [ 0 ] [ i [ 12 ] ] ) , l & 2 && ( o . depth = i [ 1 ] ) , l & 4 && ( o . _lvl = i [ 2 ] + 1 ) , l & 32 && ( o . _last = i [ 14 ] === i [ 5 ] . length - 1 ) , t . $set ( o ) } , i ( i ) { n || ( Se ( t . $$ . fragment , i ) , n = ! 0 ) } , o ( i ) { Ie ( t . $$ . fragment , i ) , n = ! 1 } , d ( i ) { Jt ( t , i ) } } } function xl ( e ) { let t ; return { c ( ) { t = r ( "span" ) , t . textContent = "," , a ( t , "class" , "comma svelte-gbh3pt" ) } , m ( n , i ) { m ( n , t , i ) } , d ( n ) { n && p ( t ) } } } function es ( e ) { let t , n , i , l , o , u , d , c = ! e [ 4 ] && $l ( e ) ; const f = [ _r , hr ] , g = [ ] ; function k ( _ , y ) { return y & 33 && ( i = null ) , i == null && ( i = _ [ 9 ] ( _ [ 0 ] [ _ [ 12 ] ] ) === "object" ) , i ? 0 : 1 } return l = k ( e , - 1 ) , o = g [ l ] = f [ l ] ( e ) , { c ( ) { t = r ( "li" ) , c && c . c ( ) , n = h ( ) , o . c ( ) , u = h ( ) } , m ( _ , y ) { m ( _ , t , y ) , c && c . m ( t , null ) , s ( t , n ) , g [ l ] . m ( t , null ) , s ( t , u ) , d = ! 0 } , p ( _ , y ) { _ [ 4 ] ? c && ( c . d ( 1 ) , c = null ) : c ? c . p ( _ , y ) : ( c = $l ( _ ) , c . c ( ) , c . m ( t , n ) ) ; let v = l ; l = k ( _ , y ) , l === v ? g [ l ] . p ( _ , y ) : ( li ( ) , Ie ( g [ v ] , 1 , 1 , ( ) => { g [ v ] = null } ) , si ( ) , o = g [ l ] , o ? o . p ( _ , y ) : ( o = g [ l ] = f [ l ] ( _ ) , o . c ( ) ) , Se ( o , 1 ) , o . m ( t , u ) ) } , i ( _ ) { d || ( Se ( o ) , d = ! 0 ) } ,
Multipart ` ),te=h(),Y=r("br"),oe=h(),ee=r("br"),H=h(),X=r("button"),X.textContent="Post it", $ =h(),be=r("br"),fe=h(),pe=r("br"),we=h(),xn(re. $ $ .fragment),i.__value="GET",i.value=i.__value,l.__value="POST",l.value=l.__value,o.__value="PUT",o.value=o.__value,u.__value="PATCH",u.value=u.__value,d.__value="DELETE",d.value=d.__value,a(n,"class","input"),a(n,"id","request-method"),e[0]===void 0&&Wt(()=>e[9].call(n)),a(k,"class","input h-auto w-100%"),a(k,"id","request-body"),a(k,"placeholder","Request body"),a(k,"rows","5"),a(b,"class","btn"),a(b,"id","make-request"),a(M,"class","input"),a(P,"class","input"),a(E,"class","flex gap-2 children:grow"),a(ne,"type","checkbox"),a(X,"class","btn"),a(X,"type","button")},m(D,B){m(D,t,B),s(t,n),s(n,i),s(n,l),s(n,o),s(n,u),s(n,d),Dt(n,e[0]),s(t,c),s(t,f),s(t,g),s(t,k),q(k,e[1]),s(t,_),s(t,y),s(t,v),s(t,b),m(D,T,B),m(D,W,B),m(D,I,B),m(D,O,B),m(D,j,B),m(D,E,B),s(E,M),q(M,e[2]),s(E,A),s(E,P),q(P,e[3]),m(D,C,B),m(D,F,B),m(D,U,B),m(D,J,B),s(J,ne),ne.checked=e[5],s(J,ce),m(D,te,B),m(D,Y,B),m(D,oe,B),m(D,ee,B),m(D,H,B),m(D,X,B),m(D, $ ,B),m(D,be,B),m(D,fe,B),m(D,pe,B),m(D,we,B),Gt(re,D,B),x=!0,me||(Le=[L(n,"change",e[9]),L(k,"input",e[10]),L(t,"submit",Zn(e[6])),L(M,"input",e[11]),L(P,"input",e[12]),L(ne,"change",e[13]),L(X,"click",e[7])],me=!0)},p(D,[B]){B&1&&Dt(n,D[0]),B&2&&q(k,D[1]),B&4&&M.value!==D[2]&&q(M,D[2]),B&8&&P.value!==D[3]&&q(P,D[3]),B&32&&(ne.checked=D[5]);const Ee={};B&16&&(Ee.json=D[4]),re. $ set(Ee)},i(D){x||(Se(re. $ $ .fragment,D),x=!0)},o(D){Ie(re. $ $ .fragment,D),x=!1},d(D){D&&p(t),D&&p(T),D&&p(W),D&&p(I),D&&p(O),D&&p(j),D&&p(E),D&&p(C),D&&p(F),D&&p(U),D&&p(J),D&&p(te),D&&p(Y),D&&p(oe),D&&p(ee),D&&p(H),D&&p(X),D&&p( $ ),D&&p(be),D&&p(fe),D&&p(pe),D&&p(we),Jt(re,D),me=!1,se(Le)}}}function wr(e,t,n){let i="GET",l="",{onMessage:o}=t;async function u(){const W=await ni().catch(j=>{throw o(j),j}),O={url:"http://localhost:3003",method:i||"GET"||"GET"};l.startsWith("{")&&l.endsWith("}")||l.startsWith("[")&&l.endsWith("]")?O.body=it.json(JSON.parse(l)):l!==""&&(O.body=it.text(l)),W.request(O).then(o).catch(o)}let d="baz",c="qux",f=null,g=!0;async function k(){const W=await ni().catch(I=>{throw o(I),I});n(4,f=await W.request({url:"http://localhost:3003",method:"POST",body:it.form({foo:d,bar:c}),headers:g?{"Content-Type":"multipart/form-data"}:void 0,responseType:Gi.Text}))}function _(){i=Pi(this),n(0,i)}function y(){l=this.value,n(1,l)}function v(){d=this.value,n(2,d)}function b(){c=this.value,n(3,c)}function T(){g=this.checked,n(5,g)}return e. $ $ set=W=>{"onMessage"in W&&n(8,o=W.onMessage)},[i,l,d,c,f,g,u,k,o,_,y,v,b,T]}class kr extends ye{constructor(t){super(),ve(this,t,wr,yr,_e,{onMessage:8})}}function Mr(e){let t,n,i;return{c(){t=r("button"),t.textContent="Send test notification",a(t,"class","btn"),a(t,"id","notification")},m(l,o){m(l,t,o),n||(i=L(t,"click",Cr),n=!0)},p:V,i:V,o:V,d(l){l&&p(t),n=!1,i()}}}function Cr(){new Notification("Notification title",{body:"This is the notification body"})}function Tr(e,t,n){let{onMessage:i}=t;return e. $ $ set=l=>{"onMessage"in l&&n(0,i=l.onMessage)},[i]}class Ar extends ye{constructor(t){super(),ve(this,t,Tr,Mr,_e,{onMessage:0})}}function is(e,t,n){const i=e.slice();return i[69]=t[n],i}function ls(e,t,n){const i=e.slice();return i[72]=t[n],i}function ss(e){let t,n,i,l,o,u,d=Object.keys(e[1]),c=[];for(let f=0;f<d.length;f+=1)c[f]=os(ls(e,d,f));return{c(){t=r("span"),t.textContent="Selected window:",n=h(),i=r("select"),l=r("option"),l.textContent="Choose a window...";for(let f=0;f<c.length;f+=1)c[f].c();a(t,"class","font-700 text-sm"),l.__value="",l.value=l.__value,l.disabled=!0,l.selected=!0,a(i,"class","input"),e[0]===void 0&&Wt(()=>e[40].call(i))},m(f,g){m(f,t,g),m(f,n,g),m(f,i,g),s(i,l);for(let k=0;k<c.length;k+=1)c[k].m(i,null);Dt(i,e[0]),o||(u=L(i,"change",e[40]),o=!0)},p(f,g){if(g[0]&2){d=Object.keys(f[1]);let k;for(k=0;k<d.length;k+=1){const _=ls(f,d,k);c[k]?c[k].p(_,g):(c[k]=os(_),c[k].c(),c[k].m(i,null))}for(;k<c.length;k+=1)c[k].d(1);c.length=d.length}g[0]&3&&Dt(i,f[0])},d(f){f&&p(t),f&&p(n),f&&p(i),mt(c,f),o=!1,u()}}}function os(e){let t,n=e[72
` ),O=r("input"),j=h(),E=r("label"),M=z( ` Resizable
` ),A=r("input"),P=h(),C=r("label"),F=z( ` Has decorations
` ),U=r("input"),J=h(),ne=r("label"),ce=z( ` Always on top
` ),te=r("input"),Y=h(),oe=r("label"),ee=z( ` Content protected
` ),H=r("input"),X=h(), $ =r("label"),be=z( ` Fullscreen
` ),fe=r("input"),pe=h(),we=r("br"),re=h(),x=r("div"),me=r("div"),Le=r("div"),D=z( ` X
` ),B=r("input"),Ee=h(),ke=r("div"),ae=z( ` Y
` ),de=r("input"),ue=h(),Me=r("div"),He=r("div"),We=z( ` Width
` ),Z=r("input"),N=h(),ie=r("div"),G=z( ` Height
` ),he=r("input"),Kt=h(),Be=r("div"),bt=r("div"),Qt=z( ` Min width
` ),Oe=r("input"),Zt=h(),gt=r("div"), $ t=z( ` Min height
` ),Re=r("input"),xt=h(),Ve=r("div"),K=r("div"),Pt=z( ` Max width
` ),ze=r("input"),Ot=h(),lt=r("div"),Rt=z( ` Max height
` ),De=r("input"),vt=h(),yt=r("br"),wt=h(),Ae=r("div"),Fe=r("div"),Pe=r("div"),st=r("div"),st.textContent="Inner Size",It=h(),ot=r("span"),Ht=z("Width: "),kt=z(rt),en=h(),tn=r("span"),Xi=z("Height: "),ri=z(nn),Yi=h(),Ge=r("div"),ln=r("div"),ln.textContent="Outer Size",Ki=h(),sn=r("span"),Qi=z("Width: "),ai=z(on),Zi=h(),rn=r("span"), $ i=z("Height: "),ui=z(an),xi=h(),Mt=r("div"),Je=r("div"),un=r("div"),un.textContent="Inner Logical Size",el=h(),cn=r("span"),tl=z("Width: "),ci=z(dn),nl=h(),fn=r("span"),il=z("Height: "),di=z(pn),ll=h(),Xe=r("div"),mn=r("div"),mn.textContent="Outer Logical Size",sl=h(),hn=r("span"),ol=z("Width: "),fi=z(_n),rl=h(),bn=r("span"),al=z("Height: "),pi=z(gn),ul=h(),Ct=r("div"),Ye=r("div"),vn=r("div"),vn.textContent="Inner Position",cl=h(),yn=r("span"),dl=z("x: "),mi=z(wn),fl=h(),kn=r("span"),pl=z("y: "),hi=z(Mn),ml=h(),Ke=r("div"),Cn=r("div"),Cn.textContent="Outer Position",hl=h(),Tn=r("span"),_l=z("x: "),_i=z(An),bl=h(),Sn=r("span"),gl=z("y: "),bi=z(Ln),vl=h(),Tt=r("div"),Qe=r("div"),En=r("div"),En.textContent="Inner Logical Position",yl=h(),zn=r("span"),wl=z("x: "),gi=z(Dn),kl=h(),Wn=r("span"),Ml=z("y: "),vi=z(Pn),Cl=h(),Ze=r("div"),On=r("div"),On.textContent="Outer Logical Position",Tl=h(),Rn=r("span"),Al=z("x: "),yi=z(In),Sl=h(),Hn=r("span"),Ll=z("y: "),wi=z(Fn),ki=h(),Mi=r("br"),Ci=h(),Ft=r("h4"),Ft.textContent="Cursor",Ti=h(),Ne=r("div"),Nn=r("label"),At=r("input"),El=z( `
2022-12-13 07:04:22 +03:00
Grab ` ),zl=h(),jn=r("label"),St=r("input"),Dl=z( `
2023-02-18 22:23:09 +03:00
Visible ` ),Wl=h(),Un=r("label"),Lt=r("input"),Pl=z( `
Ignore events ` ),Ai=h(),je=r("div"),qn=r("label"),Ol=z( ` Icon
` ),Ue=r("select");for(let w=0;w<Ce.length;w+=1)Ce[w].c();Rl=h(),Bn=r("label"),Il=z( ` X position
2022-12-13 07:04:22 +03:00
` ), $ e=r("input"),Hl=h(),Vn=r("label"),Fl=z( ` Y position
2023-02-18 22:23:09 +03:00
` ),xe=r("input"),Si=h(),Li=r("br"),Ei=h(),at=r("div"),ut=r("form"),et=r("input"),Nl=h(),Nt=r("button"),Nt.textContent="Set title",jl=h(),ct=r("form"),tt=r("input"),Ul=h(),jt=r("button"),jt.textContent="Open URL",a(l,"class","btn"),a(l,"title","Unminimizes after 2 seconds"),a(u,"class","btn"),a(u,"title","Unminimizes after 2 seconds"),a(c,"class","btn"),a(c,"title","Visible again after 2 seconds"),a(g,"class","btn"),a(_,"class","btn"),a(_,"title","Minimizes the window, requests attention for 3s and then resets it"),a(i,"class","flex flex-wrap gap-2"),a(O,"type","checkbox"),a(A,"type","checkbox"),a(U,"type","checkbox"),a(te,"type","checkbox"),a(H,"type","checkbox"),a(fe,"type","checkbox"),a(T,"class","flex flex-wrap gap-2"),a(B,"class","input"),a(B,"type","number"),a(B,"min","0"),a(de,"class","input"),a(de,"type","number"),a(de,"min","0"),a(me,"class","flex children:grow flex-col"),a(Z,"class","input"),a(Z,"type","number"),a(Z,"min","400"),a(he,"class","input"),a(he,"type","number"),a(he,"min","400"),a(Me,"class","flex children:grow flex-col"),a(Oe,"class","input"),a(Oe,"type","number"),a(Re,"class","input"),a(Re,"type","number"),a(Be,"class","flex children:grow flex-col"),a(ze,"class","input"),a(ze,"type","number"),a(ze,"min","800"),a(De,"class","input"),a(De,"type","number"),a(De,"min","400"),a(Ve,"class","flex children:grow flex-col"),a(x,"class","flex flex-row gap-2 flex-wrap"),a(st,"class","text-accent dark:text-darkAccent font-700"),a(Pe,"class","grow"),a(ln,"class","text-accent dark:text-darkAccent font-700"),a(Ge,"class","grow"),a(Fe,"class","flex"),a(un,"class","text-accent dark:text-darkAccent font-700"),a(Je,"class","grow"),a(mn,"class","text-accent dark:text-darkAccent font-700"),a(Xe,"class","grow"),a(Mt,"class","flex"),a(vn,"class","text-accent dark:text-darkAccent font-700"),a(Ye,"class","grow"),a(Cn,"class","text-accent dark:text-darkAccent font-700"),a(Ke,"class","grow"),a(Ct,"class","flex"),a(En,"class","text-accent dark:text-darkAccent font-700"),a(Qe,"class","grow"),a(On,"class","text-accent dark:text-darkAccent font-700"),a(Ze,"class","grow"),a(Tt,"class","flex"),a(Ft,"class","mb-2"),a(At,"type","checkbox"),a(St,"type","checkbox"),a(Lt,"type","checkbox"),a(Ne,"class","flex gap-2"),a(Ue,"class","input"),e[20]===void 0&&Wt(()=>e[59].call(Ue)),a( $ e,"class","input"),a( $ e,"type","number"),a(xe,"class","input"),a(xe,"type","number"),a(je,"class","flex gap-2"),a(et,"class","input grow"),a(et,"id","title"),a(Nt,"class","btn"),a(Nt,"type","submit"),a(ut,"class","flex gap-1"),a(tt,"class","input grow"),a(tt,"id","url"),a(jt,"class","btn"),a(jt,"id","open-url"),a(ct,"class","flex gap-1"),a(at,"class","flex flex-col gap-1")},m(w,R){m(w,t,R),m(w,n,R),m(w,i,R),s(i,l),s(i,o),s(i,u),s(i,d),s(i,c),s(i,f),s(i,g),s(i,k),s(i,_),m(w,y,R),m(w,v,R),m(w,b,R),m(w,T,R),s(T,W),s(W,I),s(W,O),O.checked=e[3],s(T,j),s(T,E),s(E,M),s(E,A),A.checked=e[2],s(T,P),s(T,C),s(C,F),s(C,U),U.checked=e[4],s(T,J),s(T,ne),s(ne,ce),s(ne,te),te.checked=e[5],s(T,Y),s(T,oe),s(oe,ee),s(oe,H),H.checked=e[6],s(T,X),s(T, $ ),s( $ ,be),s( $ ,fe),fe.checked=e[7],m(w,pe,R),m(w,we,R),m(w,re,R),m(w,x,R),s(x,me),s(me,Le),s(Le,D),s(Le,B),q(B,e[14]),s(me,Ee),s(me,ke),s(ke,ae),s(ke,de),q(de,e[15]),s(x,ue),s(x,Me),s(Me,He),s(He,We),s(He,Z),q(Z,e[8]),s(Me,N),s(Me,ie),s(ie,G),s(ie,he),q(he,e[9]),s(x,Kt),s(x,Be),s(Be,bt),s(bt,Qt),s(bt,Oe),q(Oe,e[10]),s(Be,Zt),s(Be,gt),s(gt, $ t),s(gt,Re),q(Re,e[11]),s(x,xt),s(x,Ve),s(Ve,K),s(K,Pt),s(K,ze),q(ze,e[12]),s(Ve,Ot),s(Ve,lt),s(lt,Rt),s(lt,De),q(De,e[13]),m(w,vt,R),m(w,yt,R),m(w,wt,R),m(w,Ae,R),s(Ae,Fe),s(Fe,Pe),s(Pe,st),s(Pe,It),s(Pe,ot),s(ot,Ht),s(ot,kt),s(Pe,en),s(Pe,tn),s(tn,Xi),s(tn,ri),s(Fe,Yi),s(Fe,Ge),s(Ge,ln),s(Ge,Ki),s(Ge,sn),s(sn,Qi),s(sn,ai),s(Ge,Zi),s(Ge,rn),s(rn, $ i),s(rn,ui),s(Ae,xi),s(Ae,Mt),s(Mt,Je),s(Je,un),s(Je,el),s(Je,cn),s(cn,tl),s(cn,ci),s(Je,nl),s(Je,fn),s(fn,il),s(fn,di),s(Mt,ll),s(Mt,Xe),s(Xe,mn),s(Xe,sl),s(Xe,hn),s(hn,ol),s(hn,fi),s(Xe,rl),s(Xe,bn),s(bn,al),s(bn,pi),s(Ae,ul),s(Ae,Ct),s(Ct,Ye),s(Ye,vn),s(Ye,cl),s(Ye,yn),s(yn,dl),s(yn,mi),s(Ye,fl),s(Ye,kn),s(kn,pl),s(kn,hi),s(Ct,ml),s(Ct,Ke),s(Ke,Cn)
2022-10-17 18:08:59 +03:00
` ),l=r("input"),o=h(),u=r("div"),d=z( ` Encoding :
2022-12-13 07:04:22 +03:00
` ),c=r("input"),f=h(),g=r("div"),k=z( ` Working directory :
` ),_=r("input"),y=h(),v=r("div"),b=z( ` Arguments :
2023-02-18 22:23:09 +03:00
` ),T=r("input"),W=h(),I=r("div"),O=r("button"),O.textContent="Run",j=h(),E=r("button"),E.textContent="Kill",M=h(),C&&C.c(),a(l,"class","grow input"),a(n,"class","flex items-center gap-1"),a(c,"class","grow input"),a(u,"class","flex items-center gap-1"),a(_,"class","grow input"),a(_,"placeholder","Working directory"),a(g,"class","flex items-center gap-1"),a(T,"class","grow input"),a(T,"placeholder","Environment variables"),a(v,"class","flex items-center gap-1"),a(O,"class","btn"),a(E,"class","btn"),a(I,"class","flex children:grow gap-1"),a(t,"class","flex flex-col childre:grow gap-1")},m(F,U){m(F,t,U),s(t,n),s(n,i),s(n,l),q(l,e[0]),s(t,o),s(t,u),s(u,d),s(u,c),q(c,e[3]),s(t,f),s(t,g),s(g,k),s(g,_),q(_,e[1]),s(t,y),s(t,v),s(v,b),s(v,T),q(T,e[2]),s(t,W),s(t,I),s(I,O),s(I,j),s(I,E),s(t,M),C&&C.m(t,null),A||(P=[L(l,"input",e[10]),L(c,"input",e[11]),L(_,"input",e[12]),L(T,"input",e[13]),L(O,"click",e[6]),L(E,"click",e[7])],A=!0)},p(F,[U]){U&1&&l.value!==F[0]&&q(l,F[0]),U&8&&c.value!==F[3]&&q(c,F[3]),U&2&&_.value!==F[1]&&q(_,F[1]),U&4&&T.value!==F[2]&&q(T,F[2]),F[5]?C?C.p(F,U):(C=fs(F),C.c(),C.m(t,null)):C&&(C.d(1),C=null)},i:V,o:V,d(F){F&&p(t),C&&C.d(),A=!1,se(P)}}}function Hr(e,t,n){const i=navigator.userAgent.includes("Windows");let l=i?"cmd":"sh",o=i?["/C"]:["-c"],{onMessage:u}=t,d='echo "hello world"',c=null,f="SOMETHING=value ANOTHER=2",g="",k="",_;function y(){return f.split(" ").reduce((M,A)=>{let[P,C]=A.split("=");return{...M,[P]:C}},{})}function v(){n(5,_=null);const M=new Hi(l,[...o,d],{cwd:c||null,env:y(),encoding:g});M.on("close",A=>{u( ` command finished with code $ { A . code } and signal $ { A . signal } ` ),n(5,_=null)}),M.on("error",A=>u( ` command error : "${A}" ` )),M.stdout.on("data",A=>u( ` command stdout : "${A}" ` )),M.stderr.on("data",A=>u( ` command stderr : "${A}" ` )),M.spawn().then(A=>{n(5,_=A)}).catch(u)}function b(){_.kill().then(()=>u("killed child process")).catch(u)}function T(){_.write(k).catch(u)}function W(){d=this.value,n(0,d)}function I(){g=this.value,n(3,g)}function O(){c=this.value,n(1,c)}function j(){f=this.value,n(2,f)}function E(){k=this.value,n(4,k)}return e. $ $ set=M=>{"onMessage"in M&&n(9,u=M.onMessage)},[d,c,f,g,k,_,v,b,T,u,W,I,O,j,E]}class Fr extends ye{constructor(t){super(),ve(this,t,Hr,Ir,_e,{onMessage:9})}}var Nr={};Te(Nr,{checkUpdate:()=>no,installUpdate:()=>to,onUpdaterEvent:()=>Ji});async function Ji(e){return Yt("tauri://update-status",t=>{e(t==null?void 0:t.payload)})}async function to(){let e;function t(){e&&e(),e=void 0}return new Promise((n,i)=>{function l(o){if(o.error)return t(),i(o.error);if(o.status==="DONE")return t(),n()}Ji(l).then(o=>{e=o}).catch(o=>{throw t(),o}),oi("tauri://update-install").catch(o=>{throw t(),o})})}async function no(){let e;function t(){e&&e(),e=void 0}return new Promise((n,i)=>{function l(u){return t(),n({manifest:u,shouldUpdate:!0})}function o(u){if(u.error)return t(),i(u.error);if(u.status==="UPTODATE")return t(),n({shouldUpdate:!1})}Ws("tauri://update-available",u=>{l(u==null?void 0:u.payload)}).catch(u=>{throw t(),u}),Ji(o).then(u=>{e=u}).catch(u=>{throw t(),u}),oi("tauri://update").catch(u=>{throw t(),u})})}function jr(e){let t;return{c(){t=r("button"),t.innerHTML='<div class="spinner animate-spin svelte-4xesec"></div>',a(t,"class","btn text-accentText dark:text-darkAccentText flex items-center justify-center")},m(n,i){m(n,t,i)},p:V,d(n){n&&p(t)}}}function Ur(e){let t,n,i;return{c(){t=r("button"),t.textContent="Install update",a(t,"class","btn")},m(l,o){m(l,t,o),n||(i=L(t,"click",e[4]),n=!0)},p:V,d(l){l&&p(t),n=!1,i()}}}function qr(e){let t,n,i;return{c(){t=r("button"),t.textContent="Check update",a(t,"class","btn")},m(l,o){m(l,t,o),n||(i=L(t,"click",e[3]),n=!0)},p:V,d(l){l&&p(t),n=!1,i()}}}function Br(e){let t;function n(o,u){return!o[0]&&!o[2]?qr:!o[1]&&o[2]?Ur:jr}let i=n(e),l=i(e);return{c(){t=r("div"),l.c(),a(t,"class","flex children:grow children:h10")},m(o,u){m(o,t,u),l.m(t,null)},p(o,[u]){i===(i=n(o))&&l?l.p(o,u):(l.d(1),l=i(o),l&&(l.c(),l.m(t,null)))},i:V,o:V,d(o){o&&p(t),l.d()}}}function Vr(e,t,n){let{onMessage:i}=t,l;dt(async()=>{l=await Yt("tauri://up
< video id = "localVideo" autoplay = "" playsinline = "" > < track kind = "captions" / > < / v i d e o > ` , a ( t , " c l a s s " , " f l e x f l e x - c o l g a p - 2 " ) } , m ( n , i ) { m ( n , t , i ) } , p : V , i : V , o : V , d ( n ) { n & & p ( t ) } } } f u n c t i o n Z r ( e , t , n ) { l e t { o n M e s s a g e : i } = t ; c o n s t l = w i n d o w . c o n s t r a i n t s = { a u d i o : ! 0 , v i d e o : ! 0 } ; f u n c t i o n o ( d ) { c o n s t c = d o c u m e n t . q u e r y S e l e c t o r ( " v i d e o " ) , f = d . g e t V i d e o T r a c k s ( ) ; i ( " G o t s t r e a m w i t h c o n s t r a i n t s : " , l ) , i ( ` U s i n g v i d e o d e v i c e : $ { f [ 0 ] . l a b e l } ` ) , w i n d o w . s t r e a m = d , c . s r c O b j e c t = d } f u n c t i o n u ( d ) { i f ( d . n a m e = = = " C o n s t r a i n t N o t S a t i s f i e d E r r o r " ) { c o n s t c = l . v i d e o ; i ( ` T h e r e s o l u t i o n $ { c . w i d t h . e x a c t } x $ { c . h e i g h t . e x a c t } p x i s n o t s u p p o r t e d b y y o u r d e v i c e . ` ) } e l s e d . n a m e = = = " P e r m i s s i o n D e n i e d E r r o r " & & i ( " P e r m i s s i o n s h a v e n o t b e e n g r a n t e d t o u s e y o u r c a m e r a a n d m i c r o p h o n e , y o u n e e d t o a l l o w t h e p a g e a c c e s s t o y o u r d e v i c e s i n o r d e r f o r t h e d e m o t o w o r k . " ) ; i ( ` g e t U s e r M e d i a e r r o r : $ { d . n a m e } ` , d ) } r e t u r n d t ( a s y n c ( ) = > { t r y { c o n s t d = a w a i t n a v i g a t o r . m e d i a D e v i c e s . g e t U s e r M e d i a ( l ) ; o ( d ) } c a t c h ( d ) { u ( d ) } } ) , I i ( ( ) = > { w i n d o w . s t r e a m . g e t T r a c k s ( ) . f o r E a c h ( f u n c t i o n ( d ) { d . s t o p ( ) } ) } ) , e . $ $ s e t = d = > { " o n M e s s a g e " i n d & & n ( 0 , i = d . o n M e s s a g e ) } , [ i ] } c l a s s $ r e x t e n d s y e { c o n s t r u c t o r ( t ) { s u p e r ( ) , v e ( t h i s , t , Z r , Q r , _ e , { o n M e s s a g e : 0 } ) } } f u n c t i o n x r ( e ) { l e t t , n , i , l , o , u ; r e t u r n { c ( ) { t = r ( " d i v " ) , n = r ( " b u t t o n " ) , n . t e x t C o n t e n t = " S h o w " , i = h ( ) , l = r ( " b u t t o n " ) , l . t e x t C o n t e n t = " H i d e " , a ( n , " c l a s s " , " b t n " ) , a ( n , " i d " , " s h o w " ) , a ( n , " t i t l e " , " H i d e s a n d s h o w s t h e a p p a f t e r 2 s e c o n d s " ) , a ( l , " c l a s s " , " b t n " ) , a ( l , " i d " , " h i d e " ) } , m ( d , c ) { m ( d , t , c ) , s ( t , n ) , s ( t , i ) , s ( t , l ) , o | | ( u = [ L ( n , " c l i c k " , e [ 0 ] ) , L ( l , " c l i c k " , e [ 1 ] ) ] , o = ! 0 ) } , p : V , i : V , o : V , d ( d ) { d & & p ( t ) , o = ! 1 , s e ( u ) } } } f u n c t i o n e a ( e , t , n ) { l e t { o n M e s s a g e : i } = t ; f u n c t i o n l ( ) { o ( ) . t h e n ( ( ) = > { s e t T i m e o u t ( ( ) = > { q s ( ) . t h e n ( ( ) = > i ( " S h o w n a p p " ) ) . c a t c h ( i ) } , 2 e 3 ) } ) . c a t c h ( i ) } f u n c t i o n o ( ) { r e t u r n B s ( ) . t h e n ( ( ) = > i ( " H i d e a p p " ) ) . c a t c h ( i ) } r e t u r n e . $ $ s e t = u = > { " o n M e s s a g e " i n u & & n ( 2 , i = u . o n M e s s a g e ) } , [ l , o , i ] } c l a s s t a e x t e n d s y e { c o n s t r u c t o r ( t ) { s u p e r ( ) , v e ( t h i s , t , e a , x r , _ e , { o n M e s s a g e : 2 } ) } } f u n c t i o n p s ( e , t , n ) { c o n s t i = e . s l i c e ( ) ; r e t u r n i [ 3 2 ] = t [ n ] , i } f u n c t i o n m s ( e , t , n ) { c o n s t i = e . s l i c e ( ) ; r e t u r n i [ 3 5 ] = t [ n ] , i } f u n c t i o n h s ( e ) { l e t t , n , i , l , o , u , d , c , f , g , k , _ , y , v , b ; f u n c t i o n T ( M , A ) { r e t u r n M [ 3 ] ? i a : n a } l e t W = T ( e ) , I = W ( e ) ; f u n c t i o n O ( M , A ) { r e t u r n M [ 2 ] ? s a : l a } l e t j = O ( e ) , E = j ( e ) ; r e t u r n { c ( ) { t = r ( " d i v " ) , n = r ( " s p a n " ) , n . t e x t C o n t e n t = " T a u r i A P I V a l i d a t i o n " , i = h ( ) , l = r ( " s p a n " ) , o = r ( " s p a n " ) , I . c ( ) , d = h ( ) , c = r ( " s p a n " ) , c . i n n e r H T M L = ' < d i v c l a s s = " i - c o d i c o n - c h r o m e - m i n i m i z e " > < / d i v > ' , f = h ( ) , g = r ( " s p a n " ) , E . c ( ) , _ = h ( ) , y = r ( " s p a n " ) , y . i n n e r H T M L = ' < d i v c l a s s = " i - c o d i c o n - c h r o m e - c l o s e " > < / d i v > ' , a ( n , " c l a s s " , " l t - s m : p l - 1 0 t e x t - d a r k P r i m a r y T e x t " ) , a ( o , " t i t l e " , u = e [ 3 ] ? " S w i t c h t o L i g h t m o d e " : " S w i t c h t o D a r k m o d e " ) , a ( o , " c l a s s " , " h o v e r : b g - h o v e r O v e r l a y a c t i v e : b g - h o v e r O v e r l a y D a r k e r d a r k : h o v e r : b g - d a r k H o v e r O v e r l a y d a r k : a c t i v e : b g - d a r k H o v e r O v e r l a y D a r k e r " ) , a ( c , " t i t l e " , " M i n i m i z e " ) , a ( c , " c l a s s " , " h o v e r : b g - h o v e r O v e r l a y a c t i v e : b g - h o v e r O v e r l a y D a r k e r d a r k : h o v e r : b g - d a r k H o v e r O v e r l a y d a r k : a c t i v e : b g - d a r k H o v e r O v e r l a y D a r k e r " ) , a ( g , " t i t l e " , k = e [ 2 ] ? " R e s t o r e " : " M a x i m i z e " ) , a ( g , " c l a s s " , " h o v e r : b g - h o v e r O v e r l a y a c t i v e : b g - h o v e r O v e r l a y D a r k e r d a r k : h o v e r : b g - d a r k H o v e r O v e r l a y d a r k : a c t i v e : b g - d a r k H o v e r O v e r l a y D a r k e r " ) , a ( y , " t i t l e " , " C l o s e " ) , a ( y , " c l a s s " , " h o v e r : b g - r e d - 7 0 0 d a r k : h o v e r : b g - r e d - 7 0 0 h o v e r : t e x t - d a r k P r i m a r y T e x t a c t i v e : b g - r e d - 7 0 0 / 9 0 d a r k : a c t i v e : b g - r e d - 7 0 0 / 9 0 a c t i v e : t e x t - d a r k P r i m a r y T e x t " ) , a ( l , " c l a s s " , " h - 1 0 0 % c h i l d r e n : h - 1 0 0 % c h i l d r e n : w - 1 2 c h i l d r e n : i n l i n e - f l e x c h i l d r e n : i t e m s - c e n t e r c h i l d r e n : j u s t i f y - c e n t e r " ) , a ( t , " c l a s s " , " w - s c r e e n s e l e c t - n o n e h - 8 p l - 2 f l e x j u s t i f y - b e t w e e n i t e m s - c e n t e r a b s o l u t e t e x t - p r i m a r y T e x t d a r k : t e x t - d a r k P r i m a r y T e x t " ) , a ( t , " d a t a - t a u r i - d r a g - r e g i o n " , " " ) } , m ( M , A ) { m ( M , t , A ) , s ( t , n ) , s ( t , i ) , s ( t , l ) , s ( l , o ) , I . m ( o , n u l l ) , s ( l , d ) , s ( l , c ) , s ( l , f ) , s ( l , g ) , E . m ( g , n u l l ) , s ( l , _ ) , s ( l , y ) , v | | ( b = [ L ( o , " c l i c k " , e [ 1 2 ] ) , L ( c , " c l i c k " , e [ 9 ] ) , L ( g , " c l i c k " , e [ 1 0 ] ) , L ( y , " c l i c k " , e [ 1 1 ] ) ] , v = ! 0 ) } , p ( M , A ) { W ! = = ( W = T ( M ) ) & & ( I . d ( 1 ) , I = W ( M ) , I & & ( I . c ( ) , I . m ( o , n u l l ) ) ) , A [ 0 ] & 8 & & u ! = = ( u = M [ 3 ] ? " S w i t c h t o L i g h t m o d e " : " S w i t c h t o D a r k m o d e " ) & & a ( o , " t i t l e " , u ) , j ! = = ( j = O ( M ) ) & & ( E . d ( 1 ) , E = j ( M ) , E & & ( E . c ( ) , E . m ( g , n u l l ) ) ) , A [ 0 ] & 4 & & k ! = = ( k = M [ 2 ] ? " R e s t o r e " : " M a x i m i z e " ) & & a ( g , " t i t l e " , k ) } , d ( M ) { M & & p ( t ) , I . d ( ) , E . d ( ) , v = ! 1 , s e ( b ) } } } f u n c t i o n n a ( e ) { l e t t ; r e t u r n { c ( ) { t = r ( " d i v " ) , a ( t , " c l a s s " , " i - p h - m o o n " ) } , m ( n , i ) { m ( n , t , i ) } , d ( n ) { n & & p ( t ) } } } f u n c t i o n i a ( e ) { l e t t ; r e t u r n { c ( ) { t = r ( " d i v " ) , a ( t , " c l a s s " , " i - p h - s u
2022-12-13 07:04:22 +03:00
` ),n=r("div"),a(n,"class","i-ph-moon")},m(i,l){m(i,t,l),m(i,n,l)},d(i){i&&p(t),i&&p(n)}}}function ua(e){let t,n;return{c(){t=z( ` Switch to Light mode
2023-02-18 22:23:09 +03:00
` ),n=r("div"),a(n,"class","i-ph-sun")},m(i,l){m(i,t,l),m(i,n,l)},d(i){i&&p(t),i&&p(n)}}}function ca(e){let t,n,i,l,o,u=e[35].label+"",d,c,f,g;function k(){return e[20](e[35])}return{c(){t=r("a"),n=r("div"),l=h(),o=r("p"),d=z(u),a(n,"class",i=e[35].icon+" mr-2"),a(t,"href","##"),a(t,"class",c="nv "+(e[1]===e[35]?"nv_selected":""))},m(_,y){m(_,t,y),s(t,n),s(t,l),s(t,o),s(o,d),f||(g=L(t,"click",k),f=!0)},p(_,y){e=_,y[0]&2&&c!==(c="nv "+(e[1]===e[35]?"nv_selected":""))&&a(t,"class",c)},d(_){_&&p(t),f=!1,g()}}}function bs(e){let t,n=e[35]&&ca(e);return{c(){n&&n.c(),t=ii()},m(i,l){n&&n.m(i,l),m(i,t,l)},p(i,l){i[35]&&n.p(i,l)},d(i){n&&n.d(i),i&&p(t)}}}function gs(e){let t,n=e[32].html+"",i;return{c(){t=new po(!1),i=ii(),t.a=i},m(l,o){t.m(n,l,o),m(l,i,o)},p(l,o){o[0]&64&&n!==(n=l[32].html+"")&&t.p(n)},d(l){l&&p(i),l&&t.d()}}}function da(e){let t,n,i,l,o,u,d,c,f,g,k,_,y,v,b,T,W,I,O,j,E,M,A,P,C,F,U=e[1].label+"",J,ne,ce,te,Y,oe,ee,H,X, $ ,be,fe,pe,we,re,x,me,Le,D=e[5]&&hs(e);function B(N,ie){return N[0]?ra:oa}let Ee=B(e),ke=Ee(e),ae=!e[5]&&_s(e),de=e[7],ue=[];for(let N=0;N<de.length;N+=1)ue[N]=bs(ms(e,de,N));var Me=e[1].component;function He(N){return{props:{onMessage:N[14],insecureRenderHtml:N[15]}}}Me&&(Y=new Me(He(e)));let We=e[6],Z=[];for(let N=0;N<We.length;N+=1)Z[N]=gs(ps(e,We,N));return{c(){D&&D.c(),t=h(),n=r("div"),ke.c(),i=h(),l=r("div"),o=r("aside"),u=r("img"),c=h(),ae&&ae.c(),f=h(),g=r("a"),g.innerHTML= ` Documentation
2022-10-17 18:08:59 +03:00
< span class = "i-codicon-link-external" > < / s p a n > ` , k = h ( ) , _ = r ( " a " ) , _ . i n n e r H T M L = ` G i t H u b
2022-12-13 07:04:22 +03:00
< span class = "i-codicon-link-external" > < / s p a n > ` , y = h ( ) , v = r ( " a " ) , v . i n n e r H T M L = ` S o u r c e
2023-02-18 22:23:09 +03:00
< span class = "i-codicon-link-external" > < / s p a n > ` , b = h ( ) , T = r ( " b r " ) , W = h ( ) , I = r ( " d i v " ) , O = h ( ) , j = r ( " b r " ) , E = h ( ) , M = r ( " d i v " ) ; f o r ( l e t N = 0 ; N < u e . l e n g t h ; N + = 1 ) u e [ N ] . c ( ) ; A = h ( ) , P = r ( " m a i n " ) , C = r ( " d i v " ) , F = r ( " h 1 " ) , J = z ( U ) , n e = h ( ) , c e = r ( " d i v " ) , t e = r ( " d i v " ) , Y & & x n ( Y . $ $ . f r a g m e n t ) , o e = h ( ) , e e = r ( " d i v " ) , H = r ( " d i v " ) , X = h ( ) , $ = r ( " d i v " ) , b e = r ( " p " ) , b e . t e x t C o n t e n t = " C o n s o l e " , f e = h ( ) , p e = r ( " d i v " ) , p e . i n n e r H T M L = ' < d i v c l a s s = " i - c o d i c o n - c l e a r - a l l " > < / d i v > ' , w e = h ( ) , r e = r ( " d i v " ) ; f o r ( l e t N = 0 ; N < Z . l e n g t h ; N + = 1 ) Z [ N ] . c ( ) ; a ( n , " i d " , " s i d e b a r T o g g l e " ) , a ( n , " c l a s s " , " z - 2 0 0 0 d i s p l a y - n o n e l t - s m : f l e x j u s t i f y - c e n t e r i t e m s - c e n t e r a b s o l u t e t o p - 2 l e f t - 2 w - 8 h - 8 r d - 8 b g - a c c e n t d a r k : b g - d a r k A c c e n t a c t i v e : b g - a c c e n t D a r k d a r k : a c t i v e : b g - d a r k A c c e n t D a r k " ) , a ( u , " c l a s s " , " s e l f - c e n t e r p - 7 c u r s o r - p o i n t e r " ) , r o ( u . s r c , d = " t a u r i _ l o g o . p n g " ) | | a ( u , " s r c " , d ) , a ( u , " a l t " , " T a u r i l o g o " ) , a ( g , " c l a s s " , " n v j u s t i f y - b e t w e e n h - 8 " ) , a ( g , " t a r g e t " , " _ b l a n k " ) , a ( g , " h r e f " , " h t t p s : / / t a u r i . a p p / v 1 / g u i d e s / " ) , a ( _ , " c l a s s " , " n v j u s t i f y - b e t w e e n h - 8 " ) , a ( _ , " t a r g e t " , " _ b l a n k " ) , a ( _ , " h r e f " , " h t t p s : / / g i t h u b . c o m / t a u r i - a p p s / t a u r i " ) , a ( v , " c l a s s " , " n v j u s t i f y - b e t w e e n h - 8 " ) , a ( v , " t a r g e t " , " _ b l a n k " ) , a ( v , " h r e f " , " h t t p s : / / g i t h u b . c o m / t a u r i - a p p s / t a u r i / t r e e / d e v / e x a m p l e s / a p i " ) , a ( I , " c l a s s " , " b g - w h i t e / 5 h - 2 p x " ) , a ( M , " c l a s s " , " f l e x f l e x - c o l o v e r f l o w - y - a u t o c h i l d r e n - h - 1 0 c h i l d r e n - f l e x - n o n e g a p - 1 " ) , a ( o , " i d " , " s i d e b a r " ) , a ( o , " c l a s s " , " l t - s m : h - s c r e e n l t - s m : s h a d o w - l g l t - s m : s h a d o w l t - s m : t r a n s i t i o n - t r a n s f o r m l t - s m : a b s o l u t e l t - s m : z - 1 9 9 9 b g - d a r k P r i m a r y L i g h t e r t r a n s i t i o n - c o l o r s - 2 5 0 o v e r f l o w - h i d d e n g r i d s e l e c t - n o n e p x - 2 " ) , a ( t e , " c l a s s " , " m r - 2 " ) , a ( c e , " c l a s s " , " o v e r f l o w - y - a u t o " ) , a ( C , " c l a s s " , " p x - 5 o v e r f l o w - h i d d e n g r i d g r i d - r o w s - [ a u t o _ 1 f r ] " ) , a ( H , " c l a s s " , " b g - b l a c k / 2 0 h - 2 p x c u r s o r - n s - r e s i z e " ) , a ( b e , " c l a s s " , " f o n t - s e m i b o l d " ) , a ( p e , " c l a s s " , " c u r s o r - p o i n t e r h - 8 5 % r d - 1 p - 1 f l e x j u s t i f y - c e n t e r i t e m s - c e n t e r h o v e r : b g - h o v e r O v e r l a y d a r k : h o v e r : b g - d a r k H o v e r O v e r l a y a c t i v e : b g - h o v e r O v e r l a y / 2 5 d a r k : a c t i v e : b g - d a r k H o v e r O v e r l a y / 2 5 " ) , a ( $ , " c l a s s " , " f l e x j u s t i f y - b e t w e e n i t e m s - c e n t e r p x - 2 " ) , a ( r e , " c l a s s " , " p x - 2 o v e r f l o w - y - a u t o a l l : f o n t - m o n o c o d e - b l o c k a l l : t e x t - x s " ) , a ( e e , " i d " , " c o n s o l e " ) , a ( e e , " c l a s s " , " s e l e c t - n o n e h - 1 5 r e m g r i d g r i d - r o w s - [ 2 p x _ 2 r e m _ 1 f r ] g a p - 1 o v e r f l o w - h i d d e n " ) , a ( P , " c l a s s " , " f l e x - 1 b g - p r i m a r y d a r k : b g - d a r k P r i m a r y t r a n s i t i o n - t r a n s f o r m t r a n s i t i o n - c o l o r s - 2 5 0 g r i d g r i d - r o w s - [ 2 f r _ a u t o ] " ) , a ( l , " c l a s s " , " f l e x h - s c r e e n w - s c r e e n o v e r f l o w - h i d d e n c h i l d r e n - p t 8 c h i l d r e n - p b - 2 t e x t - p r i m a r y T e x t d a r k : t e x t - d a r k P r i m a r y T e x t " ) } , m ( N , i e ) { D & & D . m ( N , i e ) , m ( N , t , i e ) , m ( N , n , i e ) , k e . m ( n , n u l l ) , m ( N , i , i e ) , m ( N , l , i e ) , s ( l , o ) , s ( o , u ) , s ( o , c ) , a e & & a e . m ( o , n u l l ) , s ( o , f ) , s ( o , g ) , s ( o , k ) , s ( o , _ ) , s ( o , y ) , s ( o , v ) , s ( o , b ) , s ( o , T ) , s ( o , W ) , s ( o , I ) , s ( o , O ) , s ( o , j ) , s ( o , E ) , s ( o , M ) ; f o r ( l e t G = 0 ; G < u e . l e n g t h ; G + = 1 ) u e [ G ] . m ( M , n u l l ) ; s ( l , A ) , s ( l , P ) , s ( P , C ) , s ( C , F ) , s ( F , J ) , s ( C , n e ) , s ( C , c e ) , s ( c e , t e ) , Y & & G t ( Y , t e , n u l l ) , s ( P , o e ) , s ( P , e e ) , s ( e e , H ) , s ( e e , X ) , s ( e e , $ ) , s ( $ , b e ) , s ( $ , f e ) , s ( $ , p e ) , s ( e e , w e ) , s ( e e , r e ) ; f o r ( l e t G = 0 ; G < Z . l e n g t h ; G + = 1 ) Z [ G ] . m ( r e , n u l l ) ; e [ 2 1 ] ( e e ) , x = ! 0 , m e | | ( L e = [ L ( u , " c l i c k " , e [ 1 9 ] ) , L ( H , " m o u s e d o w n " , e [ 1 7 ] ) , L ( p e , " c l i c k " , e [ 1 6 ] ) ] , m e = ! 0 ) } , p ( N , i e ) { i f ( N [ 5 ] ? D ? D . p ( N , i e ) : ( D = h s ( N ) , D . c ( ) , D . m ( t . p a r e n t N o d e , t ) ) : D & & ( D . d ( 1 ) , D = n u l l ) , E e ! = = ( E e = B ( N ) ) & & ( k e . d ( 1 ) , k e = E e ( N ) , k e & & ( k e . c ( ) , k e . m ( n , n u l l ) ) ) , N [ 5 ] ? a e & & ( a e . d ( 1 ) , a e = n u l l ) : a e ? a e . p ( N , i e ) : ( a e = _ s ( N ) , a e . c ( ) , a e . m ( o , f ) ) , i e [ 0 ] & 3 8 7 ) { d e = N [ 7 ] ; l e t G ; f o r ( G = 0 ; G < d e . l e n g t h ; G + = 1 ) { c o n s t h e = m s ( N , d e , G ) ; u e [ G ] ? u e [ G ] . p ( h e , i e ) : ( u e [ G ] = b s ( h e ) , u e [ G ] . c ( ) , u e [ G ] . m ( M , n u l l ) ) } f o r ( ; G < u e . l e n g t h ; G + = 1 ) u e [ G ] . d ( 1 ) ; u e . l e n g t h = d e . l e n g t h } i f ( ( ! x | | i e [ 0 ] & 2 ) & & U ! = = ( U = N [ 1 ] . l a b e l + " " ) & & Q ( J , U ) , M e ! = = ( M e = N [ 1 ] . c o m p o n e n t ) ) { i f ( Y ) { l i ( ) ; c o n s t G = Y ; I e ( G . $ $ . f r a g m e n t , 1 , 0 , ( ) = > { J t ( G , 1 ) } ) , s i ( ) } M e ? ( Y = n e w M e ( H e ( N ) ) , x n ( Y . $ $ . f r a g m e n t ) , S e ( Y . $ $ . f r a g m e n t , 1 ) , G t ( Y , t e , n u l l ) ) : Y = n u l l } i f ( i e [ 0 ] & 6 4 ) { W e = N [ 6 ] ; l e t G ; f o r ( G = 0 ; G < W e . l e n g t h ; G + = 1 ) { c o n s t h e = p s ( N , W e , G ) ; Z [ G ] ? Z [ G ] . p ( h e , i e ) : ( Z [ G ] = g s ( h e ) , Z [ G ] . c ( ) , Z [ G ] . m ( r e , n u l l ) ) } f o r ( ; G < Z . l e n g t h ; G + = 1 ) Z [ G ] . d ( 1 ) ; Z . l e n g t h = W e . l e n g t h } } , i ( N ) { x | | ( Y & & S e ( Y . $ $ . f r a g m e n t , N ) , x = ! 0 ) } , o ( N ) { Y & & I e ( Y . $ $ . f r a g m e n t , N ) , x = ! 1 } , d ( N ) { D & & D . d ( N ) , N & & p ( t ) , N & & p ( n ) , k e . d ( ) , N & & p ( i ) , N & & p ( l ) , a e & & a e . d ( ) , m t ( u e , N ) , Y & & J t ( Y ) , m t ( Z , N ) , e [ 2 1 ] ( n u l l ) , m e = ! 1 , s e ( L e ) } } } l e t v s = 5 0 ; f u n c t i o n y s ( e ) { c o n s t t = d o c u m e n t . q u e r y S e l e c t o r ( " h t m l " ) ; e ? t . c l a s s L i s t . a d d ( " d a r k " ) : t . c l a s s L i s t . r e m o v e ( " d a r k " ) , l o c a l S t o r a g e & & l o c a l S t o r a g e . s e t I t e m ( " t h e m e " , e ? " d a r k " : " " ) } f u n c t i o n f a ( e , t ) { e . s t y l e . s e t P r o