vendor.a59520a9.js 10 KB

123456789
  1. function w(){}function U(e){return e()}function z(){return Object.create(null)}function K(e){e.forEach(U)}function re(e){return typeof e=="function"}function se(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function oe(e){return Object.keys(e).length===0}function fe(e,...t){if(e==null)return w;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function Ae(e,t,n){e.$$.on_destroy.push(fe(t,n))}function Se(e,t){e.appendChild(t)}function ae(e,t,n){e.insertBefore(t,n||null)}function F(e){e.parentNode.removeChild(e)}function je(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function ue(e){return document.createElement(e)}function ce(e){return document.createTextNode(e)}function ke(){return ce(" ")}function Pe(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function Me(e){return function(t){return t.preventDefault(),e.call(this,t)}}function Le(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function Te(e){return e===""?null:+e}function le(e){return Array.from(e.childNodes)}function Be(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function De(e,t){e.value=t==null?"":t}function He(e,t,n,i){e.style.setProperty(t,n,i?"important":"")}function Ne(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}}}function qe(e){const t=e.querySelector(":checked")||e.options[0];return t&&t.__value}class Ue{constructor(t=null){this.a=t,this.e=this.n=null}m(t,n,i=null){this.e||(this.e=ue(n.nodeName),this.t=n,this.h(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)ae(this.t,this.n[n],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(F)}}let E;function C(e){E=e}function G(){if(!E)throw new Error("Function called outside component initialization");return E}function ze(e){G().$$.on_mount.push(e)}function Fe(e){G().$$.on_destroy.push(e)}const O=[],R=[],A=[],V=[],de=Promise.resolve();let P=!1;function pe(){P||(P=!0,de.then(X))}function M(e){A.push(e)}let L=!1;const T=new Set;function X(){if(!L){L=!0;do{for(let e=0;e<O.length;e+=1){const t=O[e];C(t),he(t.$$)}for(C(null),O.length=0;R.length;)R.pop()();for(let e=0;e<A.length;e+=1){const t=A[e];T.has(t)||(T.add(t),t())}A.length=0}while(O.length);for(;V.length;)V.pop()();P=!1,L=!1,T.clear()}}function he(e){if(e.fragment!==null){e.update(),K(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(M)}}const S=new Set;let b;function Ge(){b={r:0,c:[],p:b}}function Re(){b.r||K(b.c),b=b.p}function ye(e,t){e&&e.i&&(S.delete(e),e.i(t))}function Ve(e,t,n,i){if(e&&e.o){if(S.has(e))return;S.add(e),b.c.push(()=>{S.delete(e),i&&(n&&e.d(1),i())}),e.o(t)}}function Xe(e){e&&e.c()}function me(e,t,n,i){const{fragment:r,on_mount:c,on_destroy:f,after_update:o}=e.$$;r&&r.m(t,n),i||M(()=>{const s=c.map(U).filter(re);f?f.push(...s):K(s),e.$$.on_mount=[]}),o.forEach(M)}function ge(e,t){const n=e.$$;n.fragment!==null&&(K(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function _e(e,t){e.$$.dirty[0]===-1&&(O.push(e),pe(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Je(e,t,n,i,r,c,f=[-1]){const o=E;C(e);const s=e.$$={fragment:null,ctx:null,props:c,update:w,not_equal:r,bound:z(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(o?o.$$.context:[]),callbacks:z(),dirty:f,skip_bound:!1};let l=!1;if(s.ctx=n?n(e,t.props||{},(a,h,...y)=>{const m=y.length?y[0]:h;return s.ctx&&r(s.ctx[a],s.ctx[a]=m)&&(!s.skip_bound&&s.bound[a]&&s.bound[a](m),l&&_e(e,a)),h}):[],s.update(),l=!0,K(s.before_update),s.fragment=i?i(s.ctx):!1,t.target){if(t.hydrate){const a=le(t.target);s.fragment&&s.fragment.l(a),a.forEach(F)}else s.fragment&&s.fragment.c();t.intro&&ye(e.$$.fragment),me(e,t.target,t.anchor,t.customElement),X()}C(o)}class Qe{$destroy(){ge(this,1),this.$destroy=w}$on(t,n){const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(n),()=>{const r=i.indexOf(n);r!==-1&&i.splice(r,1)}}$set(t){this.$$set&&!oe(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const x=[];function We(e,t=w){let n;const i=[];function r(o){if(se(e,o)&&(e=o,n)){const s=!x.length;for(let l=0;l<i.length;l+=1){const a=i[l];a[1](),x.push(a,e)}if(s){for(let l=0;l<x.length;l+=2)x[l][0](x[l+1]);x.length=0}}}function c(o){r(o(e))}function f(o,s=w){const l=[o,s];return i.push(l),i.length===1&&(n=t(r)||w),o(e),()=>{const a=i.indexOf(l);a!==-1&&i.splice(a,1),i.length===0&&(n(),n=null)}}return{set:r,update:c,subscribe:f}}/*!
  2. * hotkeys-js v3.8.5
  3. * A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
  4. *
  5. * Copyright (c) 2021 kenny wong <wowohoo@qq.com>
  6. * http://jaywcjlove.github.io/hotkeys
  7. *
  8. * Licensed under the MIT license.
  9. */var B=typeof navigator!="undefined"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function D(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on".concat(t),function(){n(window.event)})}function J(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 Q(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");for(var t=e.split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}function be(e,t){for(var n=e.length>=t.length?e:t,i=e.length>=t.length?t:e,r=!0,c=0;c<n.length;c++)i.indexOf(n[c])===-1&&(r=!1);return r}var W={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,"\u21EA":20,",":188,".":190,"/":191,"`":192,"-":B?173:189,"=":B?61:187,";":B?59:186,"'":222,"[":219,"]":221,"\\":220},v={"\u21E7":16,shift:16,"\u2325":18,alt:18,option:18,"\u2303":17,ctrl:17,control:17,"\u2318":91,cmd:91,command:91},Y={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},p={16:!1,18:!1,17:!1,91:!1},d={};for(var j=1;j<20;j++)W["f".concat(j)]=111+j;var u=[],Z="all",I=[],k=function(t){return W[t.toLowerCase()]||v[t.toLowerCase()]||t.toUpperCase().charCodeAt(0)};function ee(e){Z=e||"all"}function $(){return Z||"all"}function ve(){return u.slice(0)}function we(e){var t=e.target||e.srcElement,n=t.tagName,i=!0;return(t.isContentEditable||(n==="INPUT"||n==="TEXTAREA"||n==="SELECT")&&!t.readOnly)&&(i=!1),i}function xe(e){return typeof e=="string"&&(e=k(e)),u.indexOf(e)!==-1}function Ke(e,t){var n,i;e||(e=$());for(var r in d)if(Object.prototype.hasOwnProperty.call(d,r))for(n=d[r],i=0;i<n.length;)n[i].scope===e?n.splice(i,1):i++;$()===e&&ee(t||"all")}function Oe(e){var t=e.keyCode||e.which||e.charCode,n=u.indexOf(t);if(n>=0&&u.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&u.splice(0,u.length),(t===93||t===224)&&(t=91),t in p){p[t]=!1;for(var i in v)v[i]===t&&(_[i]=!1)}}function $e(e){if(!e)Object.keys(d).forEach(function(f){return delete d[f]});else if(Array.isArray(e))e.forEach(function(f){f.key&&H(f)});else if(typeof e=="object")e.key&&H(e);else if(typeof e=="string"){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r=n[0],c=n[1];typeof r=="function"&&(c=r,r=""),H({key:e,scope:r,method:c,splitKey:"+"})}}var H=function(t){var n=t.key,i=t.scope,r=t.method,c=t.splitKey,f=c===void 0?"+":c,o=Q(n);o.forEach(function(s){var l=s.split(f),a=l.length,h=l[a-1],y=h==="*"?"*":k(h);if(!!d[y]){i||(i=$());var m=a>1?J(v,l):[];d[y]=d[y].map(function(g){var ie=r?g.method===r:!0;return ie&&g.scope===i&&be(g.mods,m)?{}:g})}})};function te(e,t,n){var i;if(t.scope===n||t.scope==="all"){i=t.mods.length>0;for(var r in p)Object.prototype.hasOwnProperty.call(p,r)&&(!p[r]&&t.mods.indexOf(+r)>-1||p[r]&&t.mods.indexOf(+r)===-1)&&(i=!1);(t.mods.length===0&&!p[16]&&!p[18]&&!p[17]&&!p[91]||i||t.shortcut==="*")&&t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function ne(e){var t=d["*"],n=e.keyCode||e.which||e.charCode;if(!!_.filter.call(this,e)){if((n===93||n===224)&&(n=91),u.indexOf(n)===-1&&n!==229&&u.push(n),["ctrlKey","altKey","shiftKey","metaKey"].forEach(function(m){var g=Y[m];e[m]&&u.indexOf(g)===-1?u.push(g):!e[m]&&u.indexOf(g)>-1?u.splice(u.indexOf(g),1):m==="metaKey"&&e[m]&&u.length===3&&(e.ctrlKey||e.shiftKey||e.altKey||(u=u.slice(u.indexOf(g))))}),n in p){p[n]=!0;for(var i in v)v[i]===n&&(_[i]=!0);if(!t)return}for(var r in p)Object.prototype.hasOwnProperty.call(p,r)&&(p[r]=e[Y[r]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(u.indexOf(17)===-1&&u.push(17),u.indexOf(18)===-1&&u.push(18),p[17]=!0,p[18]=!0);var c=$();if(t)for(var f=0;f<t.length;f++)t[f].scope===c&&(e.type==="keydown"&&t[f].keydown||e.type==="keyup"&&t[f].keyup)&&te(e,t[f],c);if(n in d){for(var o=0;o<d[n].length;o++)if((e.type==="keydown"&&d[n][o].keydown||e.type==="keyup"&&d[n][o].keyup)&&d[n][o].key){for(var s=d[n][o],l=s.splitKey,a=s.key.split(l),h=[],y=0;y<a.length;y++)h.push(k(a[y]));h.sort().join("")===u.sort().join("")&&te(e,s,c)}}}}function Ee(e){return I.indexOf(e)>-1}function _(e,t,n){u=[];var i=Q(e),r=[],c="all",f=document,o=0,s=!1,l=!0,a="+";for(n===void 0&&typeof t=="function"&&(n=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(c=t.scope),t.element&&(f=t.element),t.keyup&&(s=t.keyup),t.keydown!==void 0&&(l=t.keydown),typeof t.splitKey=="string"&&(a=t.splitKey)),typeof t=="string"&&(c=t);o<i.length;o++)e=i[o].split(a),r=[],e.length>1&&(r=J(v,e)),e=e[e.length-1],e=e==="*"?"*":k(e),e in d||(d[e]=[]),d[e].push({keyup:s,keydown:l,scope:c,mods:r,shortcut:i[o],method:n,key:i[o],splitKey:a});typeof f!="undefined"&&!Ee(f)&&window&&(I.push(f),D(f,"keydown",function(h){ne(h)}),D(window,"focus",function(){u=[]}),D(f,"keyup",function(h){ne(h),Oe(h)}))}var N={setScope:ee,getScope:$,deleteScope:Ke,getPressedKeyCodes:ve,isPressed:xe,filter:we,unbind:$e};for(var q in N)Object.prototype.hasOwnProperty.call(N,q)&&(_[q]=N[q]);if(typeof window!="undefined"){var Ce=window.hotkeys;_.noConflict=function(e){return e&&window.hotkeys===_&&(window.hotkeys=Ce),_},window.hotkeys=_}export{Xe as A,me as B,Ve as C,Re as D,ye as E,ge as F,Ge as G,Ue as H,_ as I,Qe as S,ke as a,Le as b,ae as c,Se as d,ue as e,Be as f,F as g,Fe as h,Je as i,De as j,je as k,Pe as l,R as m,w as n,ze as o,Me as p,M as q,K as r,se as s,ce as t,He as u,Ne as v,qe as w,Te as x,Ae as y,We as z};