You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

4 lines
6.6 KiB
JavaScript

(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const u of i.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function y(){}function I(e){return e()}function T(){return Object.create(null)}function b(e){e.forEach(I)}function W(e){return typeof e=="function"}function q(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function J(e){return Object.keys(e).length===0}const Q=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;"WeakMap"in Q;function a(e,t){e.appendChild(t)}function U(e,t,n){e.insertBefore(t,n||null)}function C(e){e.parentNode&&e.parentNode.removeChild(e)}function d(e){return document.createElement(e)}function V(e){return document.createTextNode(e)}function $(){return V(" ")}function j(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function v(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function X(e){return Array.from(e.childNodes)}function Y(e,t){t=""+t,e.data!==t&&(e.data=t)}function M(e,t){e.value=t==null?"":t}let k;function w(e){k=e}const m=[],N=[];let _=[];const R=[],Z=Promise.resolve();let O=!1;function ee(){O||(O=!0,Z.then(B))}function P(e){_.push(e)}const E=new Set;let g=0;function B(){if(g!==0)return;const e=k;do{try{for(;g<m.length;){const t=m[g];g++,w(t),te(t.$$)}}catch(t){throw m.length=0,g=0,t}for(w(null),m.length=0,g=0;N.length;)N.pop()();for(let t=0;t<_.length;t+=1){const n=_[t];E.has(n)||(E.add(n),n())}_.length=0}while(m.length);for(;R.length;)R.pop()();O=!1,E.clear(),w(e)}function te(e){if(e.fragment!==null){e.update(),b(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(P)}}function ne(e){const t=[],n=[];_.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),_=t}const x=new Set;let re;function F(e,t){e&&e.i&&(x.delete(e),e.i(t))}function oe(e,t,n,r){if(e&&e.o){if(x.has(e))return;x.add(e),re.c.push(()=>{x.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}const ie=["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"];[...ie];function le(e){e&&e.c()}function G(e,t,n,r){const{fragment:o,after_update:i}=e.$$;o&&o.m(t,n),r||P(()=>{const u=e.$$.on_mount.map(I).filter(W);e.$$.on_destroy?e.$$.on_destroy.push(...u):b(u),e.$$.on_mount=[]}),i.forEach(P)}function H(e,t){const n=e.$$;n.fragment!==null&&(ne(n.after_update),b(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function se(e,t){e.$$.dirty[0]===-1&&(m.push(e),ee(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function K(e,t,n,r,o,i,u,h=[-1]){const c=k;w(e);const l=e.$$={fragment:null,ctx:[],props:i,update:y,not_equal:o,bound:T(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:T(),dirty:h,skip_bound:!1,root:t.target||c.$$.root};u&&u(l.root);let f=!1;if(l.ctx=n?n(e,t.props||{},(s,p,...A)=>{const S=A.length?A[0]:p;return l.ctx&&o(l.ctx[s],l.ctx[s]=S)&&(!l.skip_bound&&l.bound[s]&&l.bound[s](S),f&&se(e,s)),p}):[],l.update(),f=!0,b(l.before_update),l.fragment=r?r(l.ctx):!1,t.target){if(t.hydrate){const s=X(t.target);l.fragment&&l.fragment.l(s),s.forEach(C)}else l.fragment&&l.fragment.c();t.intro&&F(e.$$.fragment),G(e,t.target,t.anchor,t.customElement),B()}w(c)}class z{$destroy(){H(this,1),this.$destroy=y}$on(t,n){if(!W(n))return y;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const o=r.indexOf(n);o!==-1&&r.splice(o,1)}}$set(t){this.$$set&&!J(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}var ue=Object.defineProperty,ae=(e,t)=>{for(var n in t)ue(e,n,{get:t[n],enumerable:!0})},ce={};ae(ce,{convertFileSrc:()=>de,invoke:()=>D,transformCallback:()=>L});function fe(){return window.crypto.getRandomValues(new Uint32Array(1))[0]}function L(e,t=!1){let n=fe(),r=`_${n}`;return Object.defineProperty(window,r,{value:o=>(t&&Reflect.deleteProperty(window,r),e==null?void 0:e(o)),writable:!1,configurable:!0}),n}async function D(e,t={}){return new Promise((n,r)=>{let o=L(u=>{n(u),Reflect.deleteProperty(window,`_${i}`)},!0),i=L(u=>{r(u),Reflect.deleteProperty(window,`_${o}`)},!0);window.__TAURI_IPC__({cmd:e,callback:o,error:i,...t})})}function de(e,t="asset"){let n=encodeURIComponent(e);return navigator.userAgent.includes("Windows")?`https://${t}.localhost/${n}`:`${t}://localhost/${n}`}function pe(e){let t,n,r,o,i,u,h,c,l,f;return{c(){t=d("div"),n=d("div"),r=d("input"),o=$(),i=d("button"),i.textContent="Greet",u=$(),h=d("p"),c=V(e[1]),v(r,"id","greet-input"),v(r,"placeholder","Enter a name..."),v(n,"class","row")},m(s,p){U(s,t,p),a(t,n),a(n,r),M(r,e[0]),a(n,o),a(n,i),a(t,u),a(t,h),a(h,c),l||(f=[j(r,"input",e[3]),j(i,"click",e[2])],l=!0)},p(s,[p]){p&1&&r.value!==s[0]&&M(r,s[0]),p&2&&Y(c,s[1])},i:y,o:y,d(s){s&&C(t),l=!1,b(f)}}}function he(e,t,n){let r="",o="";async function i(){n(1,o=await D("greet",{name:r}))}function u(){r=this.value,n(0,r)}return[r,o,i,u]}class ge extends z{constructor(t){super(),K(this,t,he,pe,q,{})}}function me(e){let t,n,r,o,i,u,h,c,l,f;return l=new ge({}),{c(){t=d("main"),n=d("h1"),n.textContent="Welcome to Tauri!",r=$(),o=d("div"),o.innerHTML=`<a href="https://vitejs.dev" target="_blank"><img src="/vite.svg" class="logo vite" alt="Vite Logo"/></a>
<a href="https://tauri.app" target="_blank"><img src="/tauri.svg" class="logo tauri" alt="Tauri Logo"/></a>
<a href="https://svelte.dev" target="_blank"><img src="/svelte.svg" class="logo svelte" alt="Svelte Logo"/></a>`,i=$(),u=d("p"),u.textContent="Click on the Tauri, Vite, and Svelte logos to learn more.",h=$(),c=d("div"),le(l.$$.fragment),v(o,"class","row"),v(c,"class","row")},m(s,p){U(s,t,p),a(t,n),a(t,r),a(t,o),a(t,i),a(t,u),a(t,h),a(t,c),G(l,c,null),f=!0},p:y,i(s){f||(F(l.$$.fragment,s),f=!0)},o(s){oe(l.$$.fragment,s),f=!1},d(s){s&&C(t),H(l)}}}class _e extends z{constructor(t){super(),K(this,t,null,me,q,{})}}new _e({target:document.getElementById("app")});