tauri/examples/api/public/build/bundle.js

12 lines
56 KiB
JavaScript
Raw Normal View History

2021-08-16 16:46:40 +03:00
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 o(e){return"function"==typeof e}function a(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function s(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 r(e,t){e.appendChild(t)}function c(e,t,n){e.insertBefore(t,n||null)}function l(e){e.parentNode.removeChild(e)}function u(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 p(e){return document.createTextNode(e)}function h(){return p(" ")}function m(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function f(e){return function(t){return t.preventDefault(),e.call(this,t)}}function g(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function y(e){return""===e?null:+e}function b(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function _(e,t){e.value=null==t?"":t}function v(e,t,n,i){e.style.setProperty(t,n,i?"important":"")}function w(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)}}function x(e){const t=e.querySelector(":checked")||e.options[0];return t&&t.__value}class M{constructor(e=null){this.a=e,this.e=this.n=null}m(e,t,n=null){this.e||(this.e=d(t.nodeName),this.t=t,this.h(e)),this.i(n)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.childNodes)}i(e){for(let t=0;t<this.n.length;t+=1)c(this.t,this.n[t],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(l)}}let k;function $(e){k=e}function C(){if(!k)throw new Error("Function called outside component initialization");return k}function T(e){C().$$.on_mount.push(e)}function O(e){C().$$.on_destroy.push(e)}const E=[],S=[],P=[],z=[],A=Promise.resolve();let W=!1;function j(e){P.push(e)}let L=!1;const D=new Set;function F(){if(!L){L=!0;do{for(let e=0;e<E.length;e+=1){const t=E[e];$(t),R(t.$$)}for($(null),E.length=0;S.length;)S.pop()();for(let e=0;e<P.length;e+=1){const t=P[e];D.has(t)||(D.add(t),t())}P.length=0}while(E.length);for(;z.length;)z.pop()();W=!1,L=!1,D.clear()}}function R(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(j)}}const U=new Set;let I;function N(e,t){e&&e.i&&(U.delete(e),e.i(t))}function q(e,t,n,i){if(e&&e.o){if(U.has(e))return;U.add(e),I.c.push((()=>{U.delete(e),i&&(n&&e.d(1),i())})),e.o(t)}}function K(e){e&&e.c()}function B(e,n,a,s){const{fragment:r,on_mount:c,on_destroy:l,after_update:u}=e.$$;r&&r.m(n,a),s||j((()=>{const n=c.map(t).filter(o);l?l.push(...n):i(n),e.$$.on_mount=[]})),u.forEach(j)}function H(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 G(e,t){-1===e.$$.dirty[0]&&(E.push(e),W||(W=!0,A.then(F)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function V(t,o,a,s,r,c,u=[-1]){const d=k;$(t);const p=t.$$={fragment:null,ctx:null,props:c,update:e,not_equal:r,bound:n(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(d?d.$$.context:[]),callbacks:n(),dirty:u,skip_bound:!1};let h=!1;if(p.ctx=a?a(t,o.props||{},((e,n,...i)=>{const o=i.length?i[0]:n;return p.ctx&&r(p.ctx[e],p.ctx[e]=o)&&(!p.skip_bound&&p.bound[e]&&p.bound[e](o),h&&G(t,e)),n})):[],p.update(),h=!0,i(p.before_update),p.fragment=!!s&&s(p.ctx),o.target){if(o.hydrate){const e=function(e){return Array.from(e.childNodes)}(o.target);p.fragment&&p.fragment.l(e),e.forEach(l)}else p.fragment&&p.fragment.c();o.intro&&N(t.$$.fragment),B(t,o.target,o.anchor,o.customElement),F()}$(d)}class J{$destroy(){H(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)}}const X=[];function Y(t,n=e){let
/*!
* hotkeys-js v3.8.5
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
*
* Copyright (c) 2021 kenny wong <wowohoo@qq.com>
* http://jaywcjlove.github.io/hotkeys
*
* Licensed under the MIT license.
2021-08-16 16:46:40 +03:00
*/var Q="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function Z(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on".concat(t),(function(){n(window.event)}))}function ee(e,t){for(var n=t.slice(0,t.length-1),i=0;i<n.length;i++)n[i]=e[n[i].toLowerCase()];return n}function te(e){"string"!=typeof e&&(e="");for(var t=(e=e.replace(/\s/g,"")).split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var ne={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Q?173:189,"=":Q?61:187,";":Q?59:186,"'":222,"[":219,"]":221,"\\":220},ie={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},oe={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},ae={16:!1,18:!1,17:!1,91:!1},se={},re=1;re<20;re++)ne["f".concat(re)]=111+re;var ce=[],le="all",ue=[],de=function(e){return ne[e.toLowerCase()]||ie[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function pe(e){le=e||"all"}function he(){return le||"all"}var me=function(e){var t=e.key,n=e.scope,i=e.method,o=e.splitKey,a=void 0===o?"+":o;te(t).forEach((function(e){var t=e.split(a),o=t.length,s=t[o-1],r="*"===s?"*":de(s);if(se[r]){n||(n=he());var c=o>1?ee(ie,t):[];se[r]=se[r].map((function(e){return(!i||e.method===i)&&e.scope===n&&function(e,t){for(var n=e.length>=t.length?e:t,i=e.length>=t.length?t:e,o=!0,a=0;a<n.length;a++)-1===i.indexOf(n[a])&&(o=!1);return o}(e.mods,c)?{}:e}))}}))};function fe(e,t,n){var i;if(t.scope===n||"all"===t.scope){for(var o in i=t.mods.length>0,ae)Object.prototype.hasOwnProperty.call(ae,o)&&(!ae[o]&&t.mods.indexOf(+o)>-1||ae[o]&&-1===t.mods.indexOf(+o))&&(i=!1);(0!==t.mods.length||ae[16]||ae[18]||ae[17]||ae[91])&&!i&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function ge(e){var t=se["*"],n=e.keyCode||e.which||e.charCode;if(ye.filter.call(this,e)){if(93!==n&&224!==n||(n=91),-1===ce.indexOf(n)&&229!==n&&ce.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var n=oe[t];e[t]&&-1===ce.indexOf(n)?ce.push(n):!e[t]&&ce.indexOf(n)>-1?ce.splice(ce.indexOf(n),1):"metaKey"===t&&e[t]&&3===ce.length&&(e.ctrlKey||e.shiftKey||e.altKey||(ce=ce.slice(ce.indexOf(n))))})),n in ae){for(var i in ae[n]=!0,ie)ie[i]===n&&(ye[i]=!0);if(!t)return}for(var o in ae)Object.prototype.hasOwnProperty.call(ae,o)&&(ae[o]=e[oe[o]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===ce.indexOf(17)&&ce.push(17),-1===ce.indexOf(18)&&ce.push(18),ae[17]=!0,ae[18]=!0);var a=he();if(t)for(var s=0;s<t.length;s++)t[s].scope===a&&("keydown"===e.type&&t[s].keydown||"keyup"===e.type&&t[s].keyup)&&fe(e,t[s],a);if(n in se)for(var r=0;r<se[n].length;r++)if(("keydown"===e.type&&se[n][r].keydown||"keyup"===e.type&&se[n][r].keyup)&&se[n][r].key){for(var c=se[n][r],l=c.splitKey,u=c.key.split(l),d=[],p=0;p<u.length;p++)d.push(de(u[p]));d.sort().join("")===ce.sort().join("")&&fe(e,c,a)}}}function ye(e,t,n){ce=[];var i=te(e),o=[],a="all",s=document,r=0,c=!1,l=!0,u="+";for(void 0===n&&"function"==typeof t&&(n=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(a=t.scope),t.element&&(s=t.element),t.keyup&&(c=t.keyup),void 0!==t.keydown&&(l=t.keydown),"string"==typeof t.splitKey&&(u=t.splitKey)),"string"==typeof t&&(a=t);r<i.length;r++)o=[],(e=i[r].split(u)).length>1&&(o=ee(ie,e)),(e="*"===(e=e[e.length-1])?"*":de(e))in se||(se[e]=[]),se[e].push({keyup:c,keydown:l,scope:a,mods:o,shortcut:i[r],method:n,key:i[r],splitKey:u});void 0!==s&&!function(e){return ue.indexOf(e)>-1}(
//# sourceMappingURL=bundle.js.map