mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-18 08:02:13 +03:00
18 lines
45 KiB
JavaScript
18 lines
45 KiB
JavaScript
|
var app=function(){"use strict";function e(){}function t(e){return e()}function n(){return Object.create(null)}function i(e){e.forEach(t)}function r(e){return"function"==typeof e}function o(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function u(t,n,i){t.$$.on_destroy.push(function(t,...n){if(null==t)return e;const i=t.subscribe(...n);return i.unsubscribe?()=>i.unsubscribe():i}(n,i))}function s(e,t){e.appendChild(t)}function a(e,t,n){e.insertBefore(t,n||null)}function c(e){e.parentNode.removeChild(e)}function l(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function d(e){return document.createElement(e)}function f(e){return document.createTextNode(e)}function h(){return f(" ")}function _(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function p(e){return function(t){return t.preventDefault(),e.call(this,t)}}function v(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function g(e){return""===e?null:+e}function m(e,t){e.value=null==t?"":t}function b(e,t,n,i){e.style.setProperty(t,n,i?"important":"")}function y(e,t){for(let n=0;n<e.options.length;n+=1){const i=e.options[n];if(i.__value===t)return void(i.selected=!0)}}let w;function x(e){w=e}const k=[],M=[],$=[],C=[],T=Promise.resolve();let O=!1;function F(e){$.push(e)}let D=!1;const P=new Set;function j(){if(!D){D=!0;do{for(let e=0;e<k.length;e+=1){const t=k[e];x(t),A(t.$$)}for(x(null),k.length=0;M.length;)M.pop()();for(let e=0;e<$.length;e+=1){const t=$[e];P.has(t)||(P.add(t),t())}$.length=0}while(k.length);for(;C.length;)C.pop()();O=!1,D=!1,P.clear()}}function A(e){if(null!==e.fragment){e.update(),i(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(F)}}const E=new Set;let z;function S(){z={r:0,c:[],p:z}}function W(){z.r||i(z.c),z=z.p}function R(e,t){e&&e.i&&(E.delete(e),e.i(t))}function B(e,t,n,i){if(e&&e.o){if(E.has(e))return;E.add(e),z.c.push((()=>{E.delete(e),i&&(n&&e.d(1),i())})),e.o(t)}}function q(e){e&&e.c()}function H(e,n,o,u){const{fragment:s,on_mount:a,on_destroy:c,after_update:l}=e.$$;s&&s.m(n,o),u||F((()=>{const n=a.map(t).filter(r);c?c.push(...n):i(n),e.$$.on_mount=[]})),l.forEach(F)}function L(e,t){const n=e.$$;null!==n.fragment&&(i(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function I(e,t){-1===e.$$.dirty[0]&&(k.push(e),O||(O=!0,T.then(j)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function N(t,r,o,u,s,a,l=[-1]){const d=w;x(t);const f=t.$$={fragment:null,ctx:null,props:a,update:e,not_equal:s,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(d?d.$$.context:[]),callbacks:n(),dirty:l,skip_bound:!1};let h=!1;if(f.ctx=o?o(t,r.props||{},((e,n,...i)=>{const r=i.length?i[0]:n;return f.ctx&&s(f.ctx[e],f.ctx[e]=r)&&(!f.skip_bound&&f.bound[e]&&f.bound[e](r),h&&I(t,e)),n})):[],f.update(),h=!0,i(f.before_update),f.fragment=!!u&&u(f.ctx),r.target){if(r.hydrate){const e=function(e){return Array.from(e.childNodes)}(r.target);f.fragment&&f.fragment.l(e),e.forEach(c)}else f.fragment&&f.fragment.c();r.intro&&R(t.$$.fragment),H(t,r.target,r.anchor,r.customElement),j()}x(d)}class U{$destroy(){L(this,1),this.$destroy=e}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}function G(e){var t={exports:{}};return e(t,t.exports),t.exports}var J=G((function(e,t){
|
||
|
/*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation.
|
||
|
|
||
|
Permission to use, copy, modify, and/or distribute this software for any
|
||
|
purpose with or without fee is hereby granted.
|
||
|
|
||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
|
PERFORMANCE OF THIS SOFTWARE.
|
||
|
***************************************************************************** */
|
||
|
var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t,n,i){return new(n||(n=Promise))((function(r,o){function u(e){try{a(i.next(e))}catch(e){o(e)}}function s(e){try{a(i.throw(e))}catch(e){o(e)}}function a(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,s)}a((i=i.apply(e,t||[])).next())}))}function r(e,t){var n,i,r,o,u={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,i=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!((r=(r=u.trys).length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){u=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){u.label=o[1];break}if(6===o[0]&&u.label<r[1]){u.label=r[1],r=o;break}if(r&&u.label<r[2]){u.label=r[2],u.ops.push(o);break}r[2]&&u.ops.pop(),u.trys.pop();continue}o=t.call(e,u)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function o(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}function u(e,t){void 0===t&&(t=!1);var n=o()+o()+"-"+o()+"-"+o()+"-"+o()+"-"+o()+o()+o();return Object.defineProperty(window,n,{value:function(i){return t&&Reflect.deleteProperty(window,n),null==e?void 0:e(i)},writable:!1,configurable:!0}),n}function s(e,n){return void 0===n&&(n={}),i(this,void 0,void 0,(function(){return r(this,(function(i){return[2,new Promise((function(i,r){var o=u((function(e){i(e),Reflect.deleteProperty(window,s)}),!0),s=u((function(e){r(e),Reflect.deleteProperty(window,o)}),!0);if("string"==typeof e)n.cmd=e;else{if("object"!=typeof e)return r(new Error("Invalid argument type."));n=e}window.__TAURI_INVOKE_HANDLER__(t._assign({callback:o,error:s},n))}))]}))}))}t._assign=function(){return t._assign=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},t._assign.apply(this,arguments)};var a=Object.freeze({__proto__:null,transformCallback:u,invoke:s});t.__awaiter=i,t.__extends=function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)},t.__generator=r,t.invoke=s,t.tauri=a,t.transformCallback=u})),X=G((function(e,t){function n(e,t,n){return J.__awaiter(this,void 0,void 0,(function(){return J.__generator(this,(function(i){switch(i.label){case 0:return[4,J.invoke({__tauriModule:"Event",message:{cmd:"listen",event:e,handler:J.transformCallback(t,n),once:n}})];case 1:return i.sent(),[2]}}))}))}t.emit=function(e,t,n){return J.__awaiter(this,void 0,void 0,(function(){return J.__generator(this,(function(i){switch(i.label){case 0:return[4,J.invoke({__tauriModule:"Event",message:{cmd:"emit",event:e,windowLabel:t,payload:n}})];case 1:return i.sent(),[2]}}))}))},t.listen=function(e,t){return J.__awaiter(this,void 0,void 0,(function(){return J.__generator(this,(function(i){return[2,n(e,t,!1)]}))}))},t.once=function(e,t){return J.__awaiter(this,void 0,void 0,(function(){return J.__generator(this,(function(i){return[2,n(e,t,!0)]}))}))}})),V=G((function(e,t){function n(){return new o(window.__TAURI__.__currentWindow.label)}function i(){return window.__TAURI__.__windows}var r=["tauri://created","tauri://error"],o=function(){function e(e){this.label=e,this.listeners={}}return e.prototype.listen=function(e,t){return J.__awaiter(this,void 0,void 0,(function(){return J.__generator(this,(function(n){return this._handleTauriEvent(e,t)?[2,Promise.resolve()]:[2,X.listen
|
||
|
//# sourceMappingURL=bundle.js.map
|