From ed314030e64c7cffcfee3a61fa834feedab8e469 Mon Sep 17 00:00:00 2001 From: QMK Bot Date: Wed, 8 Jan 2025 17:50:02 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=20f0eb9?= =?UTF-8?q?fe8faad116099e46b61300b457aa6c2e070=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/{BaseKey-94d82645.js => BaseKey-633cca15.js} | 2 +- assets/{Home-66038a66.js => Home-2acfdd0e.js} | 2 +- assets/{Print-332b3b84.js => Print-ea2950d4.js} | 2 +- assets/{Test-cd090fda.js => Test-17c40676.js} | 2 +- assets/{index-b9a24735.js => index-94f70029.js} | 4 ++-- index.html | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) rename assets/{BaseKey-94d82645.js => BaseKey-633cca15.js} (97%) rename assets/{Home-66038a66.js => Home-2acfdd0e.js} (99%) rename assets/{Print-332b3b84.js => Print-ea2950d4.js} (97%) rename assets/{Test-cd090fda.js => Test-17c40676.js} (99%) rename assets/{index-b9a24735.js => index-94f70029.js} (99%) diff --git a/assets/BaseKey-94d82645.js b/assets/BaseKey-633cca15.js similarity index 97% rename from assets/BaseKey-94d82645.js rename to assets/BaseKey-633cca15.js index c97f8a9fe8..d427c3439c 100644 --- a/assets/BaseKey-94d82645.js +++ b/assets/BaseKey-633cca15.js @@ -1,2 +1,2 @@ -import{n as _,D as n,c as d,m as p,i as o,d as y}from"./index-b9a24735.js";const k={name:"base-keymap",computed:{styles(){let e=.85,t=.61;return this.config.SCALE<1&&(e*=(1+this.config.SCALE)/2,t*=(1+this.config.SCALE)/2),{"--unit-width":"1","--unit-height":"1","--default-smaller-key-font-size":`${t}rem`,"--default-key-font-size":`${e}rem`,"--default-key-height":`${this.config.KEY_HEIGHT}px`,"--default-key-width":`${this.config.KEY_WIDTH}px`,"--default-key-x-spacing":`${this.config.KEY_X_SPACING}px`,"--default-key-y-spacing":`${this.config.KEY_Y_SPACING}px`,width:`${this.width}px`,height:`${this.height}px`}}},methods:{calcKeyKeymapDims(e,t){return{w:e*this.config.KEY_X_SPACING-(this.config.KEY_X_SPACING-this.config.KEY_WIDTH),h:t*this.config.KEY_Y_SPACING-(this.config.KEY_Y_SPACING-this.config.KEY_HEIGHT),uh:t,uw:e}},calcKeyKeymapPos(e,t){return{x:e*this.config.KEY_X_SPACING,y:t*this.config.KEY_Y_SPACING}},setSize(e){this.width=e.x,this.height=e.y},calculateMax(e){const s=this.layouts[e].reduce((i,a)=>{let r=Object.assign({w:1,h:1},a);const l=this.calcKeyKeymapPos(r.x,r.y),u=this.calcKeyKeymapDims(r.w,r.h);return i.x=Math.max(i.x,l.x+u.w),i.y=Math.max(i.y,l.y+u.h),i},{x:0,y:0});return s.x>this.defaults.MAX_X&&(this.resizeConfig(s),s.x*=this.config.SCALE,s.y*=this.config.SCALE),s}}};let w,v;const m={};var S=_(k,w,v,!1,K,null,null,null);function K(e){for(let t in m)this[t]=m[t]}const A=function(){return S.exports}();var x=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"key",class:e.myclasses,style:e.mystyles,attrs:{draggable:"",id:e.myid,title:e.myTitle},on:{click:e.clicked,dragstart:e.dragstart,dragend:e.dragend,drop:function(i){return i.stopPropagation(),e.dropped.apply(null,arguments)},dragleave:function(i){return i.preventDefault(),e.dragleave.apply(null,arguments)},dragover:function(i){return i.preventDefault(),e.dragover.apply(null,arguments)},dragenter:function(i){return i.preventDefault(),e.dragenter.apply(null,arguments)}}},[e._v(e._s(e.displayName)),e.icon?s("font-awesome-icon",{attrs:{size:"2x",icon:e.icon}}):e._e(),e.visible?[e.visible?s("div",{staticClass:"remove",on:{click:function(i){return i.stopPropagation(),e.remove.apply(null,arguments)}}},[s("font-awesome-icon",{attrs:{icon:"times",size:"xs"}})],1):e._e()]:e._e()],2)},$=[];let c=Object.assign({},n.iconCodes,n.platformIcons(window.navigator.platform));const C=(e,t)=>{if(e==1)switch(t){case 1:return"k1u";case 1.25:return"k125u";case 1.5:return"k15u";case 1.75:return"k175u";case 2:return"k2u";case 2.25:return"k225u";case 2.75:return"k275u";case 3:return"k3u";case 4:return"k4u";case 6:return"k6u";case 6.25:return"k625u";case 7:return"k7u"}if(t==1)switch(e){case 1.25:return"k125uh";case 1.5:return"k15uh";case 1.75:return"k175uh";case 2:return"k2uh"}if(e===2){if(t===1.25)return"kiso";if(t===1.5)return"kbae"}return"custom"},h=new Map,f=(e,t)=>{const s=`${e}-${t}`;if(h.has(s))return h.get(s);const a=C(e,t);return h.set(s,a),a},E={name:"base-key",props:{id:Number,meta:Object,w:Number,h:Number,y:Number,x:Number,uh:Number,uw:Number,colorway:String,legends:{type:String,default:"keymap"},matrix:Array,printable:{type:Boolean,default:!1}},computed:{...d("keymap",["config"]),...d("keymap",{curLayer:"layer"}),...p("keymap",["getKey","getSelectedKey","colorwayOverride"]),...p("keycodes",["lookupKeycode"]),myTitle(){return this.meta?this.meta.code:""},myid(){return`key-${this.id}`},visible(){return this.meta?this.meta.code!=="KC_NO":!1},displayName(){switch(this.legends){case"size":{const{uh:e,uw:t}=this;return e>t?t===1?e:`${t} / +import{n as _,D as n,c as d,m as p,i as o,d as y}from"./index-94f70029.js";const k={name:"base-keymap",computed:{styles(){let e=.85,t=.61;return this.config.SCALE<1&&(e*=(1+this.config.SCALE)/2,t*=(1+this.config.SCALE)/2),{"--unit-width":"1","--unit-height":"1","--default-smaller-key-font-size":`${t}rem`,"--default-key-font-size":`${e}rem`,"--default-key-height":`${this.config.KEY_HEIGHT}px`,"--default-key-width":`${this.config.KEY_WIDTH}px`,"--default-key-x-spacing":`${this.config.KEY_X_SPACING}px`,"--default-key-y-spacing":`${this.config.KEY_Y_SPACING}px`,width:`${this.width}px`,height:`${this.height}px`}}},methods:{calcKeyKeymapDims(e,t){return{w:e*this.config.KEY_X_SPACING-(this.config.KEY_X_SPACING-this.config.KEY_WIDTH),h:t*this.config.KEY_Y_SPACING-(this.config.KEY_Y_SPACING-this.config.KEY_HEIGHT),uh:t,uw:e}},calcKeyKeymapPos(e,t){return{x:e*this.config.KEY_X_SPACING,y:t*this.config.KEY_Y_SPACING}},setSize(e){this.width=e.x,this.height=e.y},calculateMax(e){const s=this.layouts[e].reduce((i,a)=>{let r=Object.assign({w:1,h:1},a);const l=this.calcKeyKeymapPos(r.x,r.y),u=this.calcKeyKeymapDims(r.w,r.h);return i.x=Math.max(i.x,l.x+u.w),i.y=Math.max(i.y,l.y+u.h),i},{x:0,y:0});return s.x>this.defaults.MAX_X&&(this.resizeConfig(s),s.x*=this.config.SCALE,s.y*=this.config.SCALE),s}}};let w,v;const m={};var S=_(k,w,v,!1,K,null,null,null);function K(e){for(let t in m)this[t]=m[t]}const A=function(){return S.exports}();var x=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"key",class:e.myclasses,style:e.mystyles,attrs:{draggable:"",id:e.myid,title:e.myTitle},on:{click:e.clicked,dragstart:e.dragstart,dragend:e.dragend,drop:function(i){return i.stopPropagation(),e.dropped.apply(null,arguments)},dragleave:function(i){return i.preventDefault(),e.dragleave.apply(null,arguments)},dragover:function(i){return i.preventDefault(),e.dragover.apply(null,arguments)},dragenter:function(i){return i.preventDefault(),e.dragenter.apply(null,arguments)}}},[e._v(e._s(e.displayName)),e.icon?s("font-awesome-icon",{attrs:{size:"2x",icon:e.icon}}):e._e(),e.visible?[e.visible?s("div",{staticClass:"remove",on:{click:function(i){return i.stopPropagation(),e.remove.apply(null,arguments)}}},[s("font-awesome-icon",{attrs:{icon:"times",size:"xs"}})],1):e._e()]:e._e()],2)},$=[];let c=Object.assign({},n.iconCodes,n.platformIcons(window.navigator.platform));const C=(e,t)=>{if(e==1)switch(t){case 1:return"k1u";case 1.25:return"k125u";case 1.5:return"k15u";case 1.75:return"k175u";case 2:return"k2u";case 2.25:return"k225u";case 2.75:return"k275u";case 3:return"k3u";case 4:return"k4u";case 6:return"k6u";case 6.25:return"k625u";case 7:return"k7u"}if(t==1)switch(e){case 1.25:return"k125uh";case 1.5:return"k15uh";case 1.75:return"k175uh";case 2:return"k2uh"}if(e===2){if(t===1.25)return"kiso";if(t===1.5)return"kbae"}return"custom"},h=new Map,f=(e,t)=>{const s=`${e}-${t}`;if(h.has(s))return h.get(s);const a=C(e,t);return h.set(s,a),a},E={name:"base-key",props:{id:Number,meta:Object,w:Number,h:Number,y:Number,x:Number,uh:Number,uw:Number,colorway:String,legends:{type:String,default:"keymap"},matrix:Array,printable:{type:Boolean,default:!1}},computed:{...d("keymap",["config"]),...d("keymap",{curLayer:"layer"}),...p("keymap",["getKey","getSelectedKey","colorwayOverride"]),...p("keycodes",["lookupKeycode"]),myTitle(){return this.meta?this.meta.code:""},myid(){return`key-${this.id}`},visible(){return this.meta?this.meta.code!=="KC_NO":!1},displayName(){switch(this.legends){case"size":{const{uh:e,uw:t}=this;return e>t?t===1?e:`${t} / ${e}`:t}case"matrix":if(this.matrix){const[e,t]=this.matrix;return`${e},${t}`}return"?";case"index":return this.id}if(!o(this.meta)&&o(c[this.meta.code]))return this.formatName(this.meta.name)},icon(){if(this.isShowingKeymapLegends&&this.meta&&c[this.meta.code])return c[this.meta.code]},isSelected(){return this.id===this.getSelectedKey&&!this.$store.state.keymap.selectedContent},isContentSelected(){return this.$store.state.keymap.selectedContent&&this.id===this.getSelectedKey},isShowingKeymapLegends(){return this.legends==="keymap"},myclasses(){let e=[];this.isSelected&&e.push("keycode-select"),this.inHover&&e.push("overme"),this.inSwap&&e.push("swapme"),this.meta&&this.meta.name.length>=2&&this.isShowingKeymapLegends&&e.push("smaller");const{KEY_WIDTH:t,KEY_HEIGHT:s}=this.config;return e.push(f(this.uh,this.uw)),!o(this.meta)&&!this.printable&&(this.colorwayOverride&&this.colorwayOverride[this.meta.code]?e.push(`${this.colorway}-${this.colorwayOverride[this.meta.code]}`):n.alphaCodes[this.meta.code]?e.push(`${this.colorway}-key`):n.modCodes[this.meta.code]||this.w<=t*3&&(this.w>t||this.h>s)?(e.push("mod"),e.push(`${this.colorway}-mod`)):e.push(`${this.colorway}-key`)),e.join(" ")},mystyles(){let e=[];return this.y>0&&e.push(`top: ${this.y}px;`),this.x>0&&e.push(`left: ${this.x}px;`),f(this.uh,this.uw)==="custom"&&(this.uw!==1&&e.push(`--unit-width: ${this.uw};`),this.uh!==1&&e.push(`--unit-height: ${this.uh};`)),e.join("")}},methods:{...y("keymap",["setSelected","setKeycode","swapKeys","setSelectedContent"]),...y("app",["stopListening","startListening"]),clicked(){let e=this.id;this.isSelected&&(e=void 0),this.setSelected(e)},dropped(e){this.setSelected(this.id);let t=JSON.parse(e.dataTransfer.getData("application/json"));t.action==="swap"?(console.log(`swapping ${t.id} with ${this.id}`),this.swapKeys({layer:this.curLayer,srcIndex:t.id,dstIndex:this.id})):this.setKeycode({_code:t.code,layer:t.layer}),this.dragleave()},dragend(){this.inSwap=!1,this.inHover=!1,this.$el.style.opacity="1"},dragover(){return!1},dragenter(){this.inHover=!0},dragleave(){this.inHover=!1},dragstart(e){this.inSwap=!0;let{id:t}=this;e.dropEffect="move",e.dataTransfer.dropEffect="move",e.dataTransfer.setData("application/json",JSON.stringify({action:"swap",id:t}))},formatName(e){return e},remove(){this.setSelected(this.id),this.setKeycode({_code:"KC_NO"})},clickContents(){let e=this.id;this.isContentSelected&&(e=void 0),this.setSelectedContent(e)}},data(){return{inHover:!1,inSwap:!1,platform:void 0}}},g={};var N=_(E,x,$,!1,b,null,null,null);function b(e){for(let t in g)this[t]=g[t]}const I=function(){return N.exports}();export{I as B,A as a}; diff --git a/assets/Home-66038a66.js b/assets/Home-2acfdd0e.js similarity index 99% rename from assets/Home-66038a66.js rename to assets/Home-2acfdd0e.js index 42139d7dab..60a7b6c160 100644 --- a/assets/Home-66038a66.js +++ b/assets/Home-2acfdd0e.js @@ -1,4 +1,4 @@ -import{_ as ve,t as fe,g as L,u as v,s as c,b as be,a as Re,m as f,c as g,V as h,i as o,f as _,d as u,e as w,h as S,r as Oe,j as Ue,P as _e,k as ke,n as p,l as we,o as Ae,p as Pe,q as Ie,v as Me,w as Be,x as qe,y as Je,z as Ve,A as Ye,B as V}from"./index-b9a24735.js";import{B as k,a as He}from"./BaseKey-94d82645.js";function We(e,a,t){var r=-1,i=e.length;a<0&&(a=-a>i?0:i+a),t=t>i?i:t,t<0&&(t+=i),i=a>t?0:t-a>>>0,a>>>=0;for(var s=Array(i);++r=r?e:Qe(e,a,t)}var Ze=Xe;function et(e){return e.split("")}var tt=et,xe="\\ud800-\\udfff",at="\\u0300-\\u036f",rt="\\ufe20-\\ufe2f",it="\\u20d0-\\u20ff",st=at+rt+it,nt="\\ufe0e\\ufe0f",ot="["+xe+"]",U="["+st+"]",A="\\ud83c[\\udffb-\\udfff]",lt="(?:"+U+"|"+A+")",$e="[^"+xe+"]",Ce="(?:\\ud83c[\\udde6-\\uddff]){2}",Le="[\\ud800-\\udbff][\\udc00-\\udfff]",ct="\\u200d",Se=lt+"?",Te="["+nt+"]?",dt="(?:"+ct+"(?:"+[$e,Ce,Le].join("|")+")"+Te+Se+")*",ut=Te+Se+dt,pt="(?:"+[$e+U+"?",U,Ce,Le,ot].join("|")+")",mt=RegExp(A+"(?="+A+")|"+pt+ut,"g");function gt(e){return e.match(mt)||[]}var ht=gt,yt=tt,vt=ve,ft=ht;function bt(e){return vt(e)?ft(e):yt(e)}var _t=bt,kt=Ze,wt=ve,xt=_t,$t=fe;function Ct(e){return function(a){a=$t(a);var t=wt(a)?xt(a):void 0,r=t?t[0]:a.charAt(0),i=t?kt(t,1).join(""):a.slice(1);return r[e]()+i}}var Lt=Ct,St=Lt,Tt=St("toUpperCase"),Kt=Tt,Ft=fe,jt=Kt;function Nt(e){return jt(Ft(e).toLowerCase())}var Et=Nt;const Dt=L(Et);let z,zt="Baking";function P(e){const a=v();a.append(e),a.scrollToEnd()}function Rt(e,a,t){Ke();let r=c.state.keymap.templates.keymap;const i=c.getters["keymap/exportLayers"]({compiler:!0});let s=JSON.stringify({...r,keyboard:e,keymap:a,layout:t,layers:i});console.log(s);const n=v();n.empty&&n.append(` +import{_ as ve,t as fe,g as L,u as v,s as c,b as be,a as Re,m as f,c as g,V as h,i as o,f as _,d as u,e as w,h as S,r as Oe,j as Ue,P as _e,k as ke,n as p,l as we,o as Ae,p as Pe,q as Ie,v as Me,w as Be,x as qe,y as Je,z as Ve,A as Ye,B as V}from"./index-94f70029.js";import{B as k,a as He}from"./BaseKey-633cca15.js";function We(e,a,t){var r=-1,i=e.length;a<0&&(a=-a>i?0:i+a),t=t>i?i:t,t<0&&(t+=i),i=a>t?0:t-a>>>0,a>>>=0;for(var s=Array(i);++r=r?e:Qe(e,a,t)}var Ze=Xe;function et(e){return e.split("")}var tt=et,xe="\\ud800-\\udfff",at="\\u0300-\\u036f",rt="\\ufe20-\\ufe2f",it="\\u20d0-\\u20ff",st=at+rt+it,nt="\\ufe0e\\ufe0f",ot="["+xe+"]",U="["+st+"]",A="\\ud83c[\\udffb-\\udfff]",lt="(?:"+U+"|"+A+")",$e="[^"+xe+"]",Ce="(?:\\ud83c[\\udde6-\\uddff]){2}",Le="[\\ud800-\\udbff][\\udc00-\\udfff]",ct="\\u200d",Se=lt+"?",Te="["+nt+"]?",dt="(?:"+ct+"(?:"+[$e,Ce,Le].join("|")+")"+Te+Se+")*",ut=Te+Se+dt,pt="(?:"+[$e+U+"?",U,Ce,Le,ot].join("|")+")",mt=RegExp(A+"(?="+A+")|"+pt+ut,"g");function gt(e){return e.match(mt)||[]}var ht=gt,yt=tt,vt=ve,ft=ht;function bt(e){return vt(e)?ft(e):yt(e)}var _t=bt,kt=Ze,wt=ve,xt=_t,$t=fe;function Ct(e){return function(a){a=$t(a);var t=wt(a)?xt(a):void 0,r=t?t[0]:a.charAt(0),i=t?kt(t,1).join(""):a.slice(1);return r[e]()+i}}var Lt=Ct,St=Lt,Tt=St("toUpperCase"),Kt=Tt,Ft=fe,jt=Kt;function Nt(e){return jt(Ft(e).toLowerCase())}var Et=Nt;const Dt=L(Et);let z,zt="Baking";function P(e){const a=v();a.append(e),a.scrollToEnd()}function Rt(e,a,t){Ke();let r=c.state.keymap.templates.keymap;const i=c.getters["keymap/exportLayers"]({compiler:!0});let s=JSON.stringify({...r,keyboard:e,keymap:a,layout:t,layers:i});console.log(s);const n=v();n.empty&&n.append(` `),n.append(`* Sending ${e}:${a} with ${t}`),fetch(be,{method:"POST",headers:{"Content-Type":"application/json"},body:s}).then(async l=>{if(l.ok){c.commit("app/setShowSpinner",!0);const m=await l.json();m.enqueued&&(n.append(` * Received job_id: ${m.job_id}`),n.scrollToEnd(),c.commit("app/setJobID",m.job_id),I())}else throw l}).catch(l=>{window.alert("Unexpected error ",console.log(l))})}function C(){c.commit("app/enableCompile"),setTimeout(()=>{c.commit("app/setShowSpinner",!1)},2e3)}function Ke(){c.commit("app/disableCompile")}function Ot(){c.commit("app/setEnableDownloads")}function Fe(){c.commit("app/setDisableDownloads")}function I(){const e=`${be}/${c.state.app.jobID}`,a=performance.now(),t=v();fetch(e).then(async r=>{console.log(`response in ${performance.now()-a}ms`,r);let i;const s=await r.json();if(!r.ok)console.log("Unexpected status",s.status),C();else{const n=Math.floor(2500+Math.random()*1e3);switch(console.log(`Next Poll in ${n}ms`),s.status){case"finished":c.commit("app/setSpinnerMsg","Done!"),t.append(` * Finished: diff --git a/assets/Print-332b3b84.js b/assets/Print-ea2950d4.js similarity index 97% rename from assets/Print-332b3b84.js rename to assets/Print-ea2950d4.js index 510526934b..ee0eca309a 100644 --- a/assets/Print-332b3b84.js +++ b/assets/Print-ea2950d4.js @@ -1,4 +1,4 @@ -import{n as i,c as n,m as y,d as v,i as l,V as g}from"./index-b9a24735.js";import{B as $,a as k}from"./BaseKey-94d82645.js";var b=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"key",class:t.myclasses,style:t.mystyles,attrs:{id:t.myid,title:t.displayName}},[t._v(" "+t._s(t.displayName)+" ")])},w=[];const x={name:"print-key",props:{layer:Number},extends:$,computed:{myid(){return`key-${this.layer}-${this.id}`},displayName(){return this.meta.type==="layer"?this.meta.code.replace("layer",this.meta.layer):this.meta.type==="text"?this.formatName(this.breakLines(this.meta.text)):this.meta.type==="layer-container"?`${this.meta.name.toUpperCase()} +import{n as i,c as n,m as y,d as v,i as l,V as g}from"./index-94f70029.js";import{B as $,a as k}from"./BaseKey-633cca15.js";var b=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"key",class:t.myclasses,style:t.mystyles,attrs:{id:t.myid,title:t.displayName}},[t._v(" "+t._s(t.displayName)+" ")])},w=[];const x={name:"print-key",props:{layer:Number},extends:$,computed:{myid(){return`key-${this.layer}-${this.id}`},displayName(){return this.meta.type==="layer"?this.meta.code.replace("layer",this.meta.layer):this.meta.type==="text"?this.formatName(this.breakLines(this.meta.text)):this.meta.type==="layer-container"?`${this.meta.name.toUpperCase()} ${this.formatName(this.meta.contents.name)}`:this.meta.type==="container"?`${this.meta.name.toUpperCase()} ${this.formatName(this.meta.contents.name)}`:this.formatName(this.breakLines(this.meta.name))}},methods:{breakLines(t){return this.uw<1.75&&(t=t.replace(" ",` `).replace("_",`_ diff --git a/assets/Test-cd090fda.js b/assets/Test-17c40676.js similarity index 99% rename from assets/Test-cd090fda.js rename to assets/Test-17c40676.js index d1e243d3ff..9d68dc5c7d 100644 --- a/assets/Test-cd090fda.js +++ b/assets/Test-17c40676.js @@ -1,4 +1,4 @@ -import{n as O,C as k,c as B,m as E,i as L,B as N,d as M,e as X}from"./index-b9a24735.js";import{B as q,a as W}from"./BaseKey-94d82645.js";var Q=function(){var a=this,v=a.$createElement,n=a._self._c||v;return n("div",{staticClass:"key tester-key",class:a.localClasses,style:a.mystyles,attrs:{id:a.myid,title:a.displayName}},[a._v(a._s(a.displayName))])},Y=[];const Z={name:"tester-key",props:{layer:Number},extends:q,computed:{myid(){return`key-${this.layer}-${this.id}`},displayName(){return this.formatName(this.breakLines(this.meta.name))},localClasses(){const a=[];return this.meta.active&&a.push("active"),this.meta.chatter&&a.push("chatter-detected"),this.meta.detected&&a.push("detected"),`${this.myclasses} ${a.join(" ")}`}},methods:{breakLines(a){return this.uw<1.75&&(a=a.replace(" ",` +import{n as O,C as k,c as B,m as E,i as L,B as N,d as M,e as X}from"./index-94f70029.js";import{B as q,a as W}from"./BaseKey-633cca15.js";var Q=function(){var a=this,v=a.$createElement,n=a._self._c||v;return n("div",{staticClass:"key tester-key",class:a.localClasses,style:a.mystyles,attrs:{id:a.myid,title:a.displayName}},[a._v(a._s(a.displayName))])},Y=[];const Z={name:"tester-key",props:{layer:Number},extends:q,computed:{myid(){return`key-${this.layer}-${this.id}`},displayName(){return this.formatName(this.breakLines(this.meta.name))},localClasses(){const a=[];return this.meta.active&&a.push("active"),this.meta.chatter&&a.push("chatter-detected"),this.meta.detected&&a.push("detected"),`${this.myclasses} ${a.join(" ")}`}},methods:{breakLines(a){return this.uw<1.75&&(a=a.replace(" ",` `).replace("_",`_ `)),a}}},$={};var j=O(Z,Q,Y,!1,U,null,null,null);function U(a){for(let v in $)this[v]=$[v]}const D=function(){return j.exports}();var G={};/*! * howler.js v2.2.3 diff --git a/assets/index-b9a24735.js b/assets/index-94f70029.js similarity index 99% rename from assets/index-b9a24735.js rename to assets/index-94f70029.js index c94742bcb2..18719a6a9e 100644 --- a/assets/index-b9a24735.js +++ b/assets/index-94f70029.js @@ -9,11 +9,11 @@ */function ik(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:a});else{var n=e.prototype._init;e.prototype._init=function(i){i===void 0&&(i={}),i.init=i.init?[a].concat(i.init):a,n.call(this,i)}}function a(){var i=this.$options;i.store?this.$store=typeof i.store=="function"?i.store():i.store:i.parent&&i.parent.$store&&(this.$store=i.parent.$store)}}var rk=typeof window<"u"?window:typeof global<"u"?global:{},Sf=rk.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ok(e){Sf&&(e._devtoolHook=Sf,Sf.emit("vuex:init",e),Sf.on("vuex:travel-to-state",function(t){e.replaceState(t)}),e.subscribe(function(t,n){Sf.emit("vuex:mutation",t,n)},{prepend:!0}),e.subscribeAction(function(t,n){Sf.emit("vuex:action",t,n)},{prepend:!0}))}function lk(e,t){return e.filter(t)[0]}function QK(e,t){if(t===void 0&&(t=[]),e===null||typeof e!="object")return e;var n=lk(t,function(i){return i.original===e});if(n)return n.copy;var a=Array.isArray(e)?[]:{};return t.push({original:e,copy:a}),Object.keys(e).forEach(function(i){a[i]=QK(e[i],t)}),a}function Yf(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function qE(e){return e!==null&&typeof e=="object"}function sk(e){return e&&typeof e.then=="function"}function _k(e,t){return function(){return e(t)}}var so=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var a=t.state;this.state=(typeof a=="function"?a():a)||{}},eb={namespaced:{configurable:!0}};eb.namespaced.get=function(){return!!this._rawModule.namespaced};so.prototype.addChild=function(t,n){this._children[t]=n};so.prototype.removeChild=function(t){delete this._children[t]};so.prototype.getChild=function(t){return this._children[t]};so.prototype.hasChild=function(t){return t in this._children};so.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};so.prototype.forEachChild=function(t){Yf(this._children,t)};so.prototype.forEachGetter=function(t){this._rawModule.getters&&Yf(this._rawModule.getters,t)};so.prototype.forEachAction=function(t){this._rawModule.actions&&Yf(this._rawModule.actions,t)};so.prototype.forEachMutation=function(t){this._rawModule.mutations&&Yf(this._rawModule.mutations,t)};Object.defineProperties(so.prototype,eb);var ou=function(t){this.register([],t,!1)};ou.prototype.get=function(t){return t.reduce(function(n,a){return n.getChild(a)},this.root)};ou.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(a,i){return n=n.getChild(i),a+(n.namespaced?i+"/":"")},"")};ou.prototype.update=function(t){tb([],this.root,t)};ou.prototype.register=function(t,n,a){var i=this;a===void 0&&(a=!0);var l=new so(n,a);if(t.length===0)this.root=l;else{var u=this.get(t.slice(0,-1));u.addChild(t[t.length-1],l)}n.modules&&Yf(n.modules,function(m,C){i.register(t.concat(C),m,a)})};ou.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),a=t[t.length-1],i=n.getChild(a);i&&i.runtime&&n.removeChild(a)};ou.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),a=t[t.length-1];return n?n.hasChild(a):!1};function tb(e,t,n){if(t.update(n),n.modules)for(var a in n.modules){if(!t.getChild(a))return;tb(e.concat(a),t.getChild(a),n.modules[a])}}var Si,ji=function(t){var n=this;t===void 0&&(t={}),!Si&&typeof window<"u"&&window.Vue&&ib(window.Vue);var a=t.plugins;a===void 0&&(a=[]);var i=t.strict;i===void 0&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new ou(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new Si,this._makeLocalGettersCache=Object.create(null);var l=this,u=this,m=u.dispatch,C=u.commit;this.dispatch=function(P,w){return m.call(l,P,w)},this.commit=function(P,w,G){return C.call(l,P,w,G)},this.strict=i;var d=this._modules.root.state;_h(this,d,[],this._modules.root),eR(this,d),a.forEach(function(b){return b(n)});var g=t.devtools!==void 0?t.devtools:Si.config.devtools;g&&ok(this)},qv={state:{configurable:!0}};qv.state.get=function(){return this._vm._data.$$state};qv.state.set=function(e){};ji.prototype.commit=function(t,n,a){var i=this,l=wp(t,n,a),u=l.type,m=l.payload,C={type:u,payload:m},d=this._mutations[u];d&&(this._withCommit(function(){d.forEach(function(b){b(m)})}),this._subscribers.slice().forEach(function(g){return g(C,i.state)}))};ji.prototype.dispatch=function(t,n){var a=this,i=wp(t,n),l=i.type,u=i.payload,m={type:l,payload:u},C=this._actions[l];if(C){try{this._actionSubscribers.slice().filter(function(g){return g.before}).forEach(function(g){return g.before(m,a.state)})}catch{}var d=C.length>1?Promise.all(C.map(function(g){return g(u)})):C[0](u);return new Promise(function(g,b){d.then(function(P){try{a._actionSubscribers.filter(function(w){return w.after}).forEach(function(w){return w.after(m,a.state)})}catch{}g(P)},function(P){try{a._actionSubscribers.filter(function(w){return w.error}).forEach(function(w){return w.error(m,a.state,P)})}catch{}b(P)})})}};ji.prototype.subscribe=function(t,n){return nb(t,this._subscribers,n)};ji.prototype.subscribeAction=function(t,n){var a=typeof t=="function"?{before:t}:t;return nb(a,this._actionSubscribers,n)};ji.prototype.watch=function(t,n,a){var i=this;return this._watcherVM.$watch(function(){return t(i.state,i.getters)},n,a)};ji.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._vm._data.$$state=t})};ji.prototype.registerModule=function(t,n,a){a===void 0&&(a={}),typeof t=="string"&&(t=[t]),this._modules.register(t,n),_h(this,this.state,t,this._modules.get(t),a.preserveState),eR(this,this.state)};ji.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var a=tR(n.state,t.slice(0,-1));Si.delete(a,t[t.length-1])}),ab(this)};ji.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};ji.prototype.hotUpdate=function(t){this._modules.update(t),ab(this,!0)};ji.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(ji.prototype,qv);function nb(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var a=t.indexOf(e);a>-1&&t.splice(a,1)}}function ab(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;_h(e,n,[],e._modules.root,!0),eR(e,n,t)}function eR(e,t,n){var a=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,l={};Yf(i,function(m,C){l[C]=_k(m,e),Object.defineProperty(e.getters,C,{get:function(){return e._vm[C]},enumerable:!0})});var u=Si.config.silent;Si.config.silent=!0,e._vm=new Si({data:{$$state:t},computed:l}),Si.config.silent=u,e.strict&&dk(e),a&&(n&&e._withCommit(function(){a._data.$$state=null}),Si.nextTick(function(){return a.$destroy()}))}function _h(e,t,n,a,i){var l=!n.length,u=e._modules.getNamespace(n);if(a.namespaced&&(e._modulesNamespaceMap[u],e._modulesNamespaceMap[u]=a),!l&&!i){var m=tR(t,n.slice(0,-1)),C=n[n.length-1];e._withCommit(function(){Si.set(m,C,a.state)})}var d=a.context=ck(e,u,n);a.forEachMutation(function(g,b){var P=u+b;fk(e,P,g,d)}),a.forEachAction(function(g,b){var P=g.root?b:u+b,w=g.handler||g;mk(e,P,w,d)}),a.forEachGetter(function(g,b){var P=u+b;Ck(e,P,g,d)}),a.forEachChild(function(g,b){_h(e,t,n.concat(b),g,i)})}function ck(e,t,n){var a=t==="",i={dispatch:a?e.dispatch:function(l,u,m){var C=wp(l,u,m),d=C.payload,g=C.options,b=C.type;return(!g||!g.root)&&(b=t+b),e.dispatch(b,d)},commit:a?e.commit:function(l,u,m){var C=wp(l,u,m),d=C.payload,g=C.options,b=C.type;(!g||!g.root)&&(b=t+b),e.commit(b,d,g)}};return Object.defineProperties(i,{getters:{get:a?function(){return e.getters}:function(){return uk(e,t)}},state:{get:function(){return tR(e.state,n)}}}),i}function uk(e,t){if(!e._makeLocalGettersCache[t]){var n={},a=t.length;Object.keys(e.getters).forEach(function(i){if(i.slice(0,a)===t){var l=i.slice(a);Object.defineProperty(n,l,{get:function(){return e.getters[i]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function fk(e,t,n,a){var i=e._mutations[t]||(e._mutations[t]=[]);i.push(function(u){n.call(e,a.state,u)})}function mk(e,t,n,a){var i=e._actions[t]||(e._actions[t]=[]);i.push(function(u){var m=n.call(e,{dispatch:a.dispatch,commit:a.commit,getters:a.getters,state:a.state,rootGetters:e.getters,rootState:e.state},u);return sk(m)||(m=Promise.resolve(m)),e._devtoolHook?m.catch(function(C){throw e._devtoolHook.emit("vuex:error",C),C}):m})}function Ck(e,t,n,a){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(l){return n(a.state,a.getters,l.state,l.getters)})}function dk(e){e._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}function tR(e,t){return t.reduce(function(n,a){return n[a]},e)}function wp(e,t,n){return qE(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function ib(e){Si&&e===Si||(Si=e,ik(Si))}var EC=fh(function(e,t){var n={};return uh(t).forEach(function(a){var i=a.key,l=a.val;n[i]=function(){var m=this.$store.state,C=this.$store.getters;if(e){var d=mh(this.$store,"mapState",e);if(!d)return;m=d.context.state,C=d.context.getters}return typeof l=="function"?l.call(this,m,C):m[l]},n[i].vuex=!0}),n}),bC=fh(function(e,t){var n={};return uh(t).forEach(function(a){var i=a.key,l=a.val;n[i]=function(){for(var m=[],C=arguments.length;C--;)m[C]=arguments[C];var d=this.$store.commit;if(e){var g=mh(this.$store,"mapMutations",e);if(!g)return;d=g.context.commit}return typeof l=="function"?l.apply(this,[d].concat(m)):d.apply(this.$store,[l].concat(m))}}),n}),nR=fh(function(e,t){var n={};return uh(t).forEach(function(a){var i=a.key,l=a.val;l=e+l,n[i]=function(){if(!(e&&!mh(this.$store,"mapGetters",e)))return this.$store.getters[l]},n[i].vuex=!0}),n}),ch=fh(function(e,t){var n={};return uh(t).forEach(function(a){var i=a.key,l=a.val;n[i]=function(){for(var m=[],C=arguments.length;C--;)m[C]=arguments[C];var d=this.$store.dispatch;if(e){var g=mh(this.$store,"mapActions",e);if(!g)return;d=g.context.dispatch}return typeof l=="function"?l.apply(this,[d].concat(m)):d.apply(this.$store,[l].concat(m))}}),n}),rb=function(e){return{mapState:EC.bind(null,e),mapGetters:nR.bind(null,e),mapMutations:bC.bind(null,e),mapActions:ch.bind(null,e)}};function uh(e){return pk(e)?Array.isArray(e)?e.map(function(t){return{key:t,val:t}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function pk(e){return Array.isArray(e)||qE(e)}function fh(e){return function(t,n){return typeof t!="string"?(n=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,n)}}function mh(e,t,n){var a=e._modulesNamespaceMap[n];return a}function hk(e){e===void 0&&(e={});var t=e.collapsed;t===void 0&&(t=!0);var n=e.filter;n===void 0&&(n=function(g,b,P){return!0});var a=e.transformer;a===void 0&&(a=function(g){return g});var i=e.mutationTransformer;i===void 0&&(i=function(g){return g});var l=e.actionFilter;l===void 0&&(l=function(g,b){return!0});var u=e.actionTransformer;u===void 0&&(u=function(g){return g});var m=e.logMutations;m===void 0&&(m=!0);var C=e.logActions;C===void 0&&(C=!0);var d=e.logger;return d===void 0&&(d=console),function(g){var b=QK(g.state);typeof d>"u"||(m&&g.subscribe(function(P,w){var G=QK(w);if(n(P,b,G)){var z=Ay(),j=i(P),V="mutation "+P.type+z;yy(d,V,t),d.log("%c prev state","color: #9E9E9E; font-weight: bold",a(b)),d.log("%c mutation","color: #03A9F4; font-weight: bold",j),d.log("%c next state","color: #4CAF50; font-weight: bold",a(G)),Ly(d)}b=G}),C&&g.subscribeAction(function(P,w){if(l(P,w)){var G=Ay(),z=u(P),j="action "+P.type+G;yy(d,j,t),d.log("%c action","color: #03A9F4; font-weight: bold",z),Ly(d)}}))}}function yy(e,t,n){var a=n?e.groupCollapsed:e.group;try{a.call(e,t)}catch{e.log(t)}}function Ly(e){try{e.groupEnd()}catch{e.log("—— log end ——")}}function Ay(){var e=new Date;return" @ "+Fd(e.getHours(),2)+":"+Fd(e.getMinutes(),2)+":"+Fd(e.getSeconds(),2)+"."+Fd(e.getMilliseconds(),3)}function Sk(e,t){return new Array(t+1).join(e)}function Fd(e,t){return Sk("0",t-e.toString().length)+e}var Kk={Store:ji,install:ib,version:"3.6.2",mapState:EC,mapMutations:bC,mapGetters:nR,mapActions:ch,createNamespacedHelpers:rb,createLogger:hk};const ob=Kk;var lb={exports:{}};(function(e,t){(function(a,i){e.exports=i()})(Fi,function(){return function(n){var a={};function i(l){if(a[l])return a[l].exports;var u=a[l]={i:l,l:!1,exports:{}};return n[l].call(u.exports,u,u.exports,i),u.l=!0,u.exports}return i.m=n,i.c=a,i.i=function(l){return l},i.d=function(l,u,m){i.o(l,u)||Object.defineProperty(l,u,{configurable:!1,enumerable:!0,get:m})},i.n=function(l){var u=l&&l.__esModule?function(){return l.default}:function(){return l};return i.d(u,"a",u),u},i.o=function(l,u){return Object.prototype.hasOwnProperty.call(l,u)},i.p="/dist/",i(i.s=2)}([function(n,a,i){i(8);var l=i(6)(i(1),i(7),"data-v-25adc6c0",null);n.exports=l.exports},function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var l=i(3),u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},m="#75c791",C="#bfcbd9",d="on",g="off",b="#fff";a.default={name:"ToggleButton",props:{value:{type:Boolean,default:!1},name:{type:String},disabled:{type:Boolean,default:!1},tag:{type:String},sync:{type:Boolean,default:!1},speed:{type:Number,default:300},color:{type:[String,Object],validator:function(w){return i.i(l.a)(w)||i.i(l.b)(w,"checked")||i.i(l.b)(w,"unchecked")||i.i(l.b)(w,"disabled")}},switchColor:{type:[String,Object],validator:function(w){return i.i(l.a)(w)||i.i(l.b)(w,"checked")||i.i(l.b)(w,"unchecked")}},cssColors:{type:Boolean,default:!1},labels:{type:[Boolean,Object],default:!1,validator:function(w){return(typeof w>"u"?"undefined":u(w))==="object"?w.checked||w.unchecked:typeof w=="boolean"}},height:{type:Number,default:22},width:{type:Number,default:50},margin:{type:Number,default:3},fontSize:{type:Number}},computed:{className:function(){var w=this.toggled,G=this.disabled;return["vue-js-switch",{toggled:w,disabled:G}]},coreStyle:function(){return{width:i.i(l.c)(this.width),height:i.i(l.c)(this.height),backgroundColor:this.cssColors?null:this.disabled?this.colorDisabled:this.colorCurrent,borderRadius:i.i(l.c)(Math.round(this.height/2))}},buttonRadius:function(){return this.height-this.margin*2},distance:function(){return i.i(l.c)(this.width-this.height+this.margin)},buttonStyle:function(){var w="transform "+this.speed+"ms",G=i.i(l.c)(this.margin),z=this.toggled?i.i(l.d)(this.distance,G):i.i(l.d)(G,G),j=this.switchColor?this.switchColorCurrent:null;return{width:i.i(l.c)(this.buttonRadius),height:i.i(l.c)(this.buttonRadius),transition:w,transform:z,background:j}},labelStyle:function(){return{lineHeight:i.i(l.c)(this.height),fontSize:this.fontSize?i.i(l.c)(this.fontSize):null}},colorChecked:function(){var w=this.color;return i.i(l.e)(w)?i.i(l.f)(w,"checked",m):w||m},colorUnchecked:function(){return i.i(l.f)(this.color,"unchecked",C)},colorDisabled:function(){return i.i(l.f)(this.color,"disabled",this.colorCurrent)},colorCurrent:function(){return this.toggled?this.colorChecked:this.colorUnchecked},labelChecked:function(){return i.i(l.f)(this.labels,"checked",d)},labelUnchecked:function(){return i.i(l.f)(this.labels,"unchecked",g)},switchColorChecked:function(){return i.i(l.f)(this.switchColor,"checked",b)},switchColorUnchecked:function(){return i.i(l.f)(this.switchColor,"unchecked",b)},switchColorCurrent:function(){return this.switchColor,i.i(l.e)(this.switchColor)?this.toggled?this.switchColorChecked:this.switchColorUnchecked:this.switchColor||b}},watch:{value:function(w){this.sync&&(this.toggled=!!w)}},data:function(){return{toggled:!!this.value}},methods:{toggle:function(w){var G=!this.toggled;this.sync||(this.toggled=G),this.$emit("input",G),this.$emit("change",{value:G,tag:this.tag,srcEvent:w})}}}},function(n,a,i){Object.defineProperty(a,"__esModule",{value:!0});var l=i(0),u=i.n(l);i.d(a,"ToggleButton",function(){return u.a});var m=!1;a.default={install:function(d){m||(d.component("ToggleButton",u.a),m=!0)}}},function(n,a,i){i.d(a,"a",function(){return u}),i.d(a,"e",function(){return m}),i.d(a,"b",function(){return C}),i.d(a,"f",function(){return d}),i.d(a,"c",function(){return g}),i.d(a,"d",function(){return b});var l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},u=function(w){return typeof w=="string"},m=function(w){return(typeof w>"u"?"undefined":l(w))==="object"},C=function(w,G){return m(w)&&w.hasOwnProperty(G)},d=function(w,G,z){return C(w,G)?w[G]:z},g=function(w){return w+"px"},b=function(w,G){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0px";return"translate3d("+w+", "+G+", "+z+")"}},function(n,a,i){a=n.exports=i(5)(),a.push([n.i,".vue-js-switch[data-v-25adc6c0]{display:inline-block;position:relative;vertical-align:middle;user-select:none;font-size:10px;cursor:pointer}.vue-js-switch .v-switch-input[data-v-25adc6c0]{opacity:0;position:absolute;width:1px;height:1px}.vue-js-switch .v-switch-label[data-v-25adc6c0]{position:absolute;top:0;font-weight:600;color:#fff;z-index:1}.vue-js-switch .v-switch-label.v-left[data-v-25adc6c0]{left:10px}.vue-js-switch .v-switch-label.v-right[data-v-25adc6c0]{right:10px}.vue-js-switch .v-switch-core[data-v-25adc6c0]{display:block;position:relative;box-sizing:border-box;outline:0;margin:0;transition:border-color .3s,background-color .3s;user-select:none}.vue-js-switch .v-switch-core .v-switch-button[data-v-25adc6c0]{display:block;position:absolute;overflow:hidden;top:0;left:0;border-radius:100%;background-color:#fff;z-index:2}.vue-js-switch.disabled[data-v-25adc6c0]{pointer-events:none;opacity:.6}",""])},function(n,a){n.exports=function(){var i=[];return i.toString=function(){for(var u=[],m=0;mle.parts.length&&(ie.parts.length=le.parts.length)}else{for(var A=[],D=0;Dthis.$t(`settingsPanel.osKeyboardLayout.label.${t}`);return[...this.osKeyboardLayouts].sort((t,n)=>e(t).localeCompare(e(n)))}},methods:{...bC("keymap",["toggleContinuousInput"]),...bC("app",["setLegends","toggleTutorial","toggleSnowflakes"]),...ch("app",["toggleDarkMode","changeLanguage","changeOSKeyboardLayout","toggleClearLayerDefault"]),darkMode(){this.toggleDarkMode()},clearLayerDefault(){this.toggleClearLayerDefault()},help(e){switch(e){case"fastInput":this.helpText=this.$t("settingsPanel.fastInput.help");break;case"legends":this.helpText=this.$t("settingsPanel.legends.help");break;case"toggleTutorial":this.helpText=this.$t("settingsPanel.toggleTutorial.help");break;case"darkmode":this.helpText=this.$t("settingsPanel.darkmode.help");break;case"language":this.helpText=this.$t("settingsPanel.language.help");break;case"osKeyboardLayout":this.helpText=this.$t("settingsPanel.osKeyboardLayout.help");break;case"clearLayer":this.helpText=this.$t("settingsPanel.clearLayer.help");break}this.clearTextTimer&&(window.clearTimeout(this.clearTextTimer),this.clearTextTimer=void 0),this.clearTextTimer=window.setTimeout(()=>{this.helpText=void 0},5e3)}}},Ey={};var Lk=B_(yk,Rk,gk,!1,Ak,null,null,null);function Ak(e){for(let t in Ey)this[t]=Ey[t]}const Ek=function(){return Lk.exports}();var bk=function(e,t){return t._c,t._m(0)},Tk=[function(e,t){var n=t._c;return n("div",{staticClass:"snowflakes",attrs:{"aria-hidden":"true"}},[n("div",{staticClass:"snowflake"},[t._v("❅")]),n("div",{staticClass:"snowflake"},[t._v("❆")]),n("div",{staticClass:"snowflake"},[t._v("❅")]),n("div",{staticClass:"snowflake"},[t._v("❆")]),n("div",{staticClass:"snowflake"},[t._v("❅")]),n("div",{staticClass:"snowflake"},[t._v("❆")]),n("div",{staticClass:"snowflake"},[t._v("❅")]),n("div",{staticClass:"snowflake"},[t._v("❆")]),n("div",{staticClass:"snowflake"},[t._v("❅")]),n("div",{staticClass:"snowflake"},[t._v("❆")]),n("div",{staticClass:"snowflake"},[t._v("❅")]),n("div",{staticClass:"snowflake"},[t._v("❆")])])}];const Pk={},by={};var wk=B_(Pk,bk,Tk,!0,Ok,null,null,null);function Ok(e){for(let t in by)this[t]=by[t]}const Ik=function(){return wk.exports}(),Nk="/assets/Santa_hat-caf4a6a3.svg",Uk="/assets/jinglebell-32197867.svg";var Dk=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"},on:{click:e.dismiss}},[n("span",{staticStyle:{display:"none"}},[e._v(e._s(e.revision))]),n("div",[n("header",[n("p",{staticClass:"random-potato"},[e._v(e._s(e.potatoFact))])]),n("router-view"),n("spinner",{attrs:{"is-visible":e.showSpinner,status:e.spinnerMsg}}),n("InfoBar",{attrs:{msg:e.message}})],1),n("slideout-panel"),n("footer",[n("p",[e._v(e._s(e.$t("maintain")))]),n("p",[e._v(e._s(e.$t("hostedOn")))]),n("p",{staticStyle:{"font-size":"10px"}},[e._v("version: "+e._s(e.revision))])]),n("div",{staticClass:"help",class:e.helpClasses,attrs:{title:e.$t("help.label")},on:{click:e.toggleTutorial,mouseenter:function(a){e.setMessage(e.$t("help.label")),e.hover=!0},mouseleave:function(a){e.setMessage(""),e.hover=!1}}},[n("font-awesome-icon",{directives:[{name:"show",rawName:"v-show",value:!e.snowflakes&&!e.tutorialEnabled,expression:"!snowflakes && !tutorialEnabled"}],attrs:{icon:"hat-wizard",transform:"rotate-22",size:"3x"}}),n("img",{directives:[{name:"show",rawName:"v-show",value:e.snowflakes&&!e.tutorialEnabled,expression:"snowflakes && !tutorialEnabled"}],staticClass:"santa-hat",attrs:{src:Nk,alt:"Santa Hat by Theresa Knott [Public domain], via Wikimedia Commons"}}),n("font-awesome-icon",{directives:[{name:"show",rawName:"v-show",value:!e.snowflakes&&e.tutorialEnabled,expression:"!snowflakes && tutorialEnabled"}],attrs:{icon:"magic",transform:"rotate-185",size:"3x"}}),n("img",{directives:[{name:"show",rawName:"v-show",value:e.snowflakes&&e.tutorialEnabled,expression:"snowflakes && tutorialEnabled"}],staticClass:"jinglebell",attrs:{src:Uk,alt:"Jingle Bell SVG Icon made from Icon Fonts is licensed by CC BY 3.0"}})],1),e.tutorialEnabled?n("iframe",{staticClass:"embedded-tutorial",attrs:{width:"560",height:"315",src:"https://www.youtube.com/embed/-imgglzDMdY?list=PLZlceRZZjRugJFL-vnenYnDrbMc6wu_e_",frameborder:"0",sandbox:"allow-scripts allow-same-origin",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}}):e._e(),e.snowflakes?n("SnowFlake"):e._e()],1)},kk=[];const{mapState:Mk,mapMutations:Gk}=rb("app"),Bk={name:"app",components:{Spinner:ak,InfoBar:lD,SnowFlake:Ik},data(){return{revision:"214d726bb9c9735716c41a582ba16c819d4c431b",potatoFact:"QMK for potatoes",interval:12e4,destroyWatcher:void 0,panel:void 0,settingsClasses:"",hover:!1}},computed:{...nR("keymap",["isDirty"]),...Mk(["showSpinner","spinnerMsg","message","tutorialEnabled","snowflakes"]),showInfoBar(){return this.message!==""},helpClasses(){var e=[];return this.hover&&e.push("faa-tada","animated-hover"),e.join(" ")}},async beforeMount(){await this.appLoad(),this.randomPotatoFact(),this.interval=setInterval(()=>{this.randomPotatoFact()},this.interval)},created(){window.addEventListener("beforeunload",this.showConfirmationPrompt)},mounted(){this.destroyWatcher=this.$store.watch(e=>e.app.settingsPanelVisible,this.toggleSettingsPanel)},beforeDestroy(){clearInterval(this.interval),i2(this.destroyWatcher)&&this.destroyWatcher(),window.removeEventListener("beforeunload",this.showConfirmationPrompt)},methods:{...Gk(["setShowSpinner","setSettingsPanel","toggleTutorial","setMessage"]),...ch("app",["loadApplicationState"]),randomPotatoFact(){const e=Xv(this.$t("potato"));this.potatoFact=this.$t("potato."+XD(1,e))},async appLoad(){await this.loadApplicationState()},dismiss(){this.setShowSpinner(!1)},showConfirmationPrompt(e){return this.isDirty===!0?(e.preventDefault(),e.returnValue="",!0):null},toggleSettingsPanel(e){e?(this.panel=this.$showPanel({component:Ek,openOn:"right",props:{},width:"300px"}),this.panel.promise.then(()=>{this.setSettingsPanel(!1)})):(this.panel.hide(),this.panel=void 0)},showSettings(){this.setSettingsPanel(!0)}}},Ty={};var xk=B_(Bk,Dk,kk,!1,$k,null,null,null);function $k(e){for(let t in Ty)this[t]=Ty[t]}const Fk=function(){return xk.exports}(),Hk="modulepreload",Qk=function(e){return"/"+e},Py={},aR=function(t,n,a){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(l=>{if(l=Qk(l),l in Py)return;Py[l]=!0;const u=l.endsWith(".css"),m=u?'[rel="stylesheet"]':"";if(!!a)for(let g=i.length-1;g>=0;g--){const b=i[g];if(b.href===l&&(!u||b.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${m}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":Hk,u||(d.as="script",d.crossOrigin=""),d.href=l,document.head.appendChild(d),u)return new Promise((g,b)=>{d.addEventListener("load",g),d.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${l}`)))})})).then(()=>t()).catch(l=>{const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=l,window.dispatchEvent(u),!u.defaultPrevented)throw l})};/*! +/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(D))))+" */"),ee.styleSheet)ee.styleSheet.cssText=le;else{for(;ee.firstChild;)ee.removeChild(ee.firstChild);ee.appendChild(document.createTextNode(le))}}},function(n,a){n.exports=function(l,u){for(var m=[],C={},d=0;dthis.$t(`settingsPanel.osKeyboardLayout.label.${t}`);return[...this.osKeyboardLayouts].sort((t,n)=>e(t).localeCompare(e(n)))}},methods:{...bC("keymap",["toggleContinuousInput"]),...bC("app",["setLegends","toggleTutorial","toggleSnowflakes"]),...ch("app",["toggleDarkMode","changeLanguage","changeOSKeyboardLayout","toggleClearLayerDefault"]),darkMode(){this.toggleDarkMode()},clearLayerDefault(){this.toggleClearLayerDefault()},help(e){switch(e){case"fastInput":this.helpText=this.$t("settingsPanel.fastInput.help");break;case"legends":this.helpText=this.$t("settingsPanel.legends.help");break;case"toggleTutorial":this.helpText=this.$t("settingsPanel.toggleTutorial.help");break;case"darkmode":this.helpText=this.$t("settingsPanel.darkmode.help");break;case"language":this.helpText=this.$t("settingsPanel.language.help");break;case"osKeyboardLayout":this.helpText=this.$t("settingsPanel.osKeyboardLayout.help");break;case"clearLayer":this.helpText=this.$t("settingsPanel.clearLayer.help");break}this.clearTextTimer&&(window.clearTimeout(this.clearTextTimer),this.clearTextTimer=void 0),this.clearTextTimer=window.setTimeout(()=>{this.helpText=void 0},5e3)}}},Ey={};var Lk=B_(yk,Rk,gk,!1,Ak,null,null,null);function Ak(e){for(let t in Ey)this[t]=Ey[t]}const Ek=function(){return Lk.exports}();var bk=function(e,t){return t._c,t._m(0)},Tk=[function(e,t){var n=t._c;return n("div",{staticClass:"snowflakes",attrs:{"aria-hidden":"true"}},[n("div",{staticClass:"snowflake"},[t._v("❅")]),n("div",{staticClass:"snowflake"},[t._v("❆")]),n("div",{staticClass:"snowflake"},[t._v("❅")]),n("div",{staticClass:"snowflake"},[t._v("❆")]),n("div",{staticClass:"snowflake"},[t._v("❅")]),n("div",{staticClass:"snowflake"},[t._v("❆")]),n("div",{staticClass:"snowflake"},[t._v("❅")]),n("div",{staticClass:"snowflake"},[t._v("❆")]),n("div",{staticClass:"snowflake"},[t._v("❅")]),n("div",{staticClass:"snowflake"},[t._v("❆")]),n("div",{staticClass:"snowflake"},[t._v("❅")]),n("div",{staticClass:"snowflake"},[t._v("❆")])])}];const Pk={},by={};var wk=B_(Pk,bk,Tk,!0,Ok,null,null,null);function Ok(e){for(let t in by)this[t]=by[t]}const Ik=function(){return wk.exports}(),Nk="/assets/Santa_hat-caf4a6a3.svg",Uk="/assets/jinglebell-32197867.svg";var Dk=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"},on:{click:e.dismiss}},[n("span",{staticStyle:{display:"none"}},[e._v(e._s(e.revision))]),n("div",[n("header",[n("p",{staticClass:"random-potato"},[e._v(e._s(e.potatoFact))])]),n("router-view"),n("spinner",{attrs:{"is-visible":e.showSpinner,status:e.spinnerMsg}}),n("InfoBar",{attrs:{msg:e.message}})],1),n("slideout-panel"),n("footer",[n("p",[e._v(e._s(e.$t("maintain")))]),n("p",[e._v(e._s(e.$t("hostedOn")))]),n("p",{staticStyle:{"font-size":"10px"}},[e._v("version: "+e._s(e.revision))])]),n("div",{staticClass:"help",class:e.helpClasses,attrs:{title:e.$t("help.label")},on:{click:e.toggleTutorial,mouseenter:function(a){e.setMessage(e.$t("help.label")),e.hover=!0},mouseleave:function(a){e.setMessage(""),e.hover=!1}}},[n("font-awesome-icon",{directives:[{name:"show",rawName:"v-show",value:!e.snowflakes&&!e.tutorialEnabled,expression:"!snowflakes && !tutorialEnabled"}],attrs:{icon:"hat-wizard",transform:"rotate-22",size:"3x"}}),n("img",{directives:[{name:"show",rawName:"v-show",value:e.snowflakes&&!e.tutorialEnabled,expression:"snowflakes && !tutorialEnabled"}],staticClass:"santa-hat",attrs:{src:Nk,alt:"Santa Hat by Theresa Knott [Public domain], via Wikimedia Commons"}}),n("font-awesome-icon",{directives:[{name:"show",rawName:"v-show",value:!e.snowflakes&&e.tutorialEnabled,expression:"!snowflakes && tutorialEnabled"}],attrs:{icon:"magic",transform:"rotate-185",size:"3x"}}),n("img",{directives:[{name:"show",rawName:"v-show",value:e.snowflakes&&e.tutorialEnabled,expression:"snowflakes && tutorialEnabled"}],staticClass:"jinglebell",attrs:{src:Uk,alt:"Jingle Bell SVG Icon made from Icon Fonts is licensed by CC BY 3.0"}})],1),e.tutorialEnabled?n("iframe",{staticClass:"embedded-tutorial",attrs:{width:"560",height:"315",src:"https://www.youtube.com/embed/-imgglzDMdY?list=PLZlceRZZjRugJFL-vnenYnDrbMc6wu_e_",frameborder:"0",sandbox:"allow-scripts allow-same-origin",allow:"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture",allowfullscreen:""}}):e._e(),e.snowflakes?n("SnowFlake"):e._e()],1)},kk=[];const{mapState:Mk,mapMutations:Gk}=rb("app"),Bk={name:"app",components:{Spinner:ak,InfoBar:lD,SnowFlake:Ik},data(){return{revision:"f0eb9fe8faad116099e46b61300b457aa6c2e070",potatoFact:"QMK for potatoes",interval:12e4,destroyWatcher:void 0,panel:void 0,settingsClasses:"",hover:!1}},computed:{...nR("keymap",["isDirty"]),...Mk(["showSpinner","spinnerMsg","message","tutorialEnabled","snowflakes"]),showInfoBar(){return this.message!==""},helpClasses(){var e=[];return this.hover&&e.push("faa-tada","animated-hover"),e.join(" ")}},async beforeMount(){await this.appLoad(),this.randomPotatoFact(),this.interval=setInterval(()=>{this.randomPotatoFact()},this.interval)},created(){window.addEventListener("beforeunload",this.showConfirmationPrompt)},mounted(){this.destroyWatcher=this.$store.watch(e=>e.app.settingsPanelVisible,this.toggleSettingsPanel)},beforeDestroy(){clearInterval(this.interval),i2(this.destroyWatcher)&&this.destroyWatcher(),window.removeEventListener("beforeunload",this.showConfirmationPrompt)},methods:{...Gk(["setShowSpinner","setSettingsPanel","toggleTutorial","setMessage"]),...ch("app",["loadApplicationState"]),randomPotatoFact(){const e=Xv(this.$t("potato"));this.potatoFact=this.$t("potato."+XD(1,e))},async appLoad(){await this.loadApplicationState()},dismiss(){this.setShowSpinner(!1)},showConfirmationPrompt(e){return this.isDirty===!0?(e.preventDefault(),e.returnValue="",!0):null},toggleSettingsPanel(e){e?(this.panel=this.$showPanel({component:Ek,openOn:"right",props:{},width:"300px"}),this.panel.promise.then(()=>{this.setSettingsPanel(!1)})):(this.panel.hide(),this.panel=void 0)},showSettings(){this.setSettingsPanel(!0)}}},Ty={};var xk=B_(Bk,Dk,kk,!1,$k,null,null,null);function $k(e){for(let t in Ty)this[t]=Ty[t]}const Fk=function(){return xk.exports}(),Hk="modulepreload",Qk=function(e){return"/"+e},Py={},aR=function(t,n,a){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(l=>{if(l=Qk(l),l in Py)return;Py[l]=!0;const u=l.endsWith(".css"),m=u?'[rel="stylesheet"]':"";if(!!a)for(let g=i.length-1;g>=0;g--){const b=i[g];if(b.href===l&&(!u||b.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${m}`))return;const d=document.createElement("link");if(d.rel=u?"stylesheet":Hk,u||(d.as="script",d.crossOrigin=""),d.href=l,document.head.appendChild(d),u)return new Promise((g,b)=>{d.addEventListener("load",g),d.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${l}`)))})})).then(()=>t()).catch(l=>{const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=l,window.dispatchEvent(u),!u.defaultPrevented)throw l})};/*! * vue-router v3.5.3 * (c) 2021 Evan You * @license MIT - */function ao(e,t){for(var n in t)e[n]=t[n];return e}var Vk=/[!'()*]/g,Wk=function(e){return"%"+e.charCodeAt(0).toString(16)},zk=/%2C/g,Kf=function(e){return encodeURIComponent(e).replace(Vk,Wk).replace(zk,",")};function VK(e){try{return decodeURIComponent(e)}catch{}return e}function jk(e,t,n){t===void 0&&(t={});var a=n||Jk,i;try{i=a(e||"")}catch{i={}}for(var l in t){var u=t[l];i[l]=Array.isArray(u)?u.map(wy):wy(u)}return i}var wy=function(e){return e==null||typeof e=="object"?e:String(e)};function Jk(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e&&e.split("&").forEach(function(n){var a=n.replace(/\+/g," ").split("="),i=VK(a.shift()),l=a.length>0?VK(a.join("=")):null;t[i]===void 0?t[i]=l:Array.isArray(t[i])?t[i].push(l):t[i]=[t[i],l]}),t}function Xk(e){var t=e?Object.keys(e).map(function(n){var a=e[n];if(a===void 0)return"";if(a===null)return Kf(n);if(Array.isArray(a)){var i=[];return a.forEach(function(l){l!==void 0&&(l===null?i.push(Kf(n)):i.push(Kf(n)+"="+Kf(l)))}),i.join("&")}return Kf(n)+"="+Kf(a)}).filter(function(n){return n.length>0}).join("&"):null;return t?"?"+t:""}var Op=/\/?$/;function Ip(e,t,n,a){var i=a&&a.options.stringifyQuery,l=t.query||{};try{l=WK(l)}catch{}var u={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:l,params:t.params||{},fullPath:Oy(t,i),matched:e?Zk(e):[]};return n&&(u.redirectedFrom=Oy(n,i)),Object.freeze(u)}function WK(e){if(Array.isArray(e))return e.map(WK);if(e&&typeof e=="object"){var t={};for(var n in e)t[n]=WK(e[n]);return t}else return e}var x_=Ip(null,{path:"/"});function Zk(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function Oy(e,t){var n=e.path,a=e.query;a===void 0&&(a={});var i=e.hash;i===void 0&&(i="");var l=t||Xk;return(n||"/")+l(a)+i}function sb(e,t,n){return t===x_?e===t:t?e.path&&t.path?e.path.replace(Op,"")===t.path.replace(Op,"")&&(n||e.hash===t.hash&&lp(e.query,t.query)):e.name&&t.name?e.name===t.name&&(n||e.hash===t.hash&&lp(e.query,t.query)&&lp(e.params,t.params)):!1:!1}function lp(e,t){if(e===void 0&&(e={}),t===void 0&&(t={}),!e||!t)return e===t;var n=Object.keys(e).sort(),a=Object.keys(t).sort();return n.length!==a.length?!1:n.every(function(i,l){var u=e[i],m=a[l];if(m!==i)return!1;var C=t[i];return u==null||C==null?u===C:typeof u=="object"&&typeof C=="object"?lp(u,C):String(u)===String(C)})}function Yk(e,t){return e.path.replace(Op,"/").indexOf(t.path.replace(Op,"/"))===0&&(!t.hash||e.hash===t.hash)&&qk(e.query,t.query)}function qk(e,t){for(var n in t)if(!(n in e))return!1;return!0}function _b(e){for(var t=0;t=0&&(t=e.slice(a),e=e.slice(0,a));var i=e.indexOf("?");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{path:e,query:n,hash:t}}function E_(e){return e.replace(/\/+/g,"/")}var Np=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},qf=mb,aM=iR,iM=sM,rM=ub,oM=fb,lM=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function iR(e,t){for(var n=[],a=0,i=0,l="",u=t&&t.delimiter||"/",m;(m=lM.exec(e))!=null;){var C=m[0],d=m[1],g=m.index;if(l+=e.slice(i,g),i=g+C.length,d){l+=d[1];continue}var b=e[i],P=m[2],w=m[3],G=m[4],z=m[5],j=m[6],V=m[7];l&&(n.push(l),l="");var q=P!=null&&b!=null&&b!==P,Y=j==="+"||j==="*",ee=j==="?"||j==="*",ae=m[2]||u,le=G||z;n.push({name:w||a++,prefix:P||"",delimiter:ae,optional:ee,repeat:Y,partial:q,asterisk:!!V,pattern:le?uM(le):V?".*":"[^"+sp(ae)+"]+?"})}return i1||!ae.length)return ae.length===0?t():t("span",{},ae)}if(this.tag==="a")ee.on=Y,ee.attrs={href:C,"aria-current":V};else{var le=Cb(this.$slots.default);if(le){le.isStatic=!1;var ie=le.data=ao({},le.data);ie.on=ie.on||{};for(var D in ie.on){var A=ie.on[D];D in Y&&(ie.on[D]=Array.isArray(A)?A:[A])}for(var O in Y)O in ie.on?ie.on[O].push(Y[O]):ie.on[O]=q;var M=le.data.attrs=ao({},le.data.attrs);M.href=C,M["aria-current"]=V}else ee.on=Y}return t(this.tag,ee,this.$slots.default)}};function Dy(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Cb(e){if(e){for(var t,n=0;n-1&&(j.params[ee]=G.params[ee]);return j.path=_p(q.path,j.params),P(q,j,z)}else if(j.path){j.params={};for(var ae=0;ae=e.length?n():e[i]?t(e[i],function(){a(i+1)}):a(i+1)};a(0)}var lu={redirected:2,aborted:4,cancelled:8,duplicated:16};function TM(e,t){return dh(e,t,lu.redirected,'Redirected when going from "'+e.fullPath+'" to "'+IM(t)+'" via a navigation guard.')}function PM(e,t){var n=dh(e,t,lu.duplicated,'Avoided redundant navigation to current location: "'+e.fullPath+'".');return n.name="NavigationDuplicated",n}function $y(e,t){return dh(e,t,lu.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function wM(e,t){return dh(e,t,lu.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+t.fullPath+'" via a navigation guard.')}function dh(e,t,n,a){var i=new Error(a);return i._isRouter=!0,i.from=e,i.to=t,i.type=n,i}var OM=["params","query","hash"];function IM(e){if(typeof e=="string")return e;if("path"in e)return e.path;var t={};return OM.forEach(function(n){n in e&&(t[n]=e[n])}),JSON.stringify(t,null,2)}function kp(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function ph(e,t){return kp(e)&&e._isRouter&&(t==null||e.type===t)}function NM(e){return function(t,n,a){var i=!1,l=0,u=null;Rb(e,function(m,C,d,g){if(typeof m=="function"&&m.cid===void 0){i=!0,l++;var b=Fy(function(z){DM(z)&&(z=z.default),m.resolved=typeof z=="function"?z:Up.extend(z),d.components[g]=z,l--,l<=0&&a()}),P=Fy(function(z){var j="Failed to resolve async component "+g+": "+z;u||(u=kp(z)?z:new Error(j),a(u))}),w;try{w=m(b,P)}catch(z){P(z)}if(w)if(typeof w.then=="function")w.then(b,P);else{var G=w.component;G&&typeof G.then=="function"&&G.then(b,P)}}}),i||a()}}function Rb(e,t){return gb(e.map(function(n){return Object.keys(n.components).map(function(a){return t(n.components[a],n.instances[a],n,a)})}))}function gb(e){return Array.prototype.concat.apply([],e)}var UM=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function DM(e){return e.__esModule||UM&&e[Symbol.toStringTag]==="Module"}function Fy(e){var t=!1;return function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(!t)return t=!0,e.apply(this,n)}}var _o=function(t,n){this.router=t,this.base=kM(n),this.current=x_,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};_o.prototype.listen=function(t){this.cb=t};_o.prototype.onReady=function(t,n){this.ready?t():(this.readyCbs.push(t),n&&this.readyErrorCbs.push(n))};_o.prototype.onError=function(t){this.errorCbs.push(t)};_o.prototype.transitionTo=function(t,n,a){var i=this,l;try{l=this.router.match(t,this.current)}catch(m){throw this.errorCbs.forEach(function(C){C(m)}),m}var u=this.current;this.confirmTransition(l,function(){i.updateRoute(l),n&&n(l),i.ensureURL(),i.router.afterHooks.forEach(function(m){m&&m(l,u)}),i.ready||(i.ready=!0,i.readyCbs.forEach(function(m){m(l)}))},function(m){a&&a(m),m&&!i.ready&&(!ph(m,lu.redirected)||u!==x_)&&(i.ready=!0,i.readyErrorCbs.forEach(function(C){C(m)}))})};_o.prototype.confirmTransition=function(t,n,a){var i=this,l=this.current;this.pending=t;var u=function(z){!ph(z)&&kp(z)&&(i.errorCbs.length?i.errorCbs.forEach(function(j){j(z)}):console.error(z)),a&&a(z)},m=t.matched.length-1,C=l.matched.length-1;if(sb(t,l)&&m===C&&t.matched[m]===l.matched[C])return this.ensureURL(),t.hash&&b_(this.router,l,t,!1),u(PM(l,t));var d=MM(this.current.matched,t.matched),g=d.updated,b=d.deactivated,P=d.activated,w=[].concat(BM(b),this.router.beforeHooks,xM(g),P.map(function(z){return z.beforeEnter}),NM(P)),G=function(z,j){if(i.pending!==t)return u($y(l,t));try{z(t,l,function(V){V===!1?(i.ensureURL(!0),u(wM(l,t))):kp(V)?(i.ensureURL(!0),u(V)):typeof V=="string"||typeof V=="object"&&(typeof V.path=="string"||typeof V.name=="string")?(u(TM(l,t)),typeof V=="object"&&V.replace?i.replace(V):i.push(V)):j(V)})}catch(V){u(V)}};xy(w,G,function(){var z=$M(P),j=z.concat(i.router.resolveHooks);xy(j,G,function(){if(i.pending!==t)return u($y(l,t));i.pending=null,n(t),i.router.app&&i.router.app.$nextTick(function(){_b(t)})})})};_o.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)};_o.prototype.setupListeners=function(){};_o.prototype.teardown=function(){this.listeners.forEach(function(t){t()}),this.listeners=[],this.current=x_,this.pending=null};function kM(e){if(!e)if(xC){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return e.charAt(0)!=="/"&&(e="/"+e),e.replace(/\/$/,"")}function MM(e,t){var n,a=Math.max(e.length,t.length);for(n=0;n0)){var i=this.router,l=i.options.scrollBehavior,u=T_&&l;u&&this.listeners.push(Kb());var m=function(){var C=a.current,d=oC(a.base);a.current===x_&&d===a._startLocation||a.transitionTo(d,function(g){u&&b_(i,g,C,!0)})};window.addEventListener("popstate",m),this.listeners.push(function(){window.removeEventListener("popstate",m)})}},t.prototype.go=function(a){window.history.go(a)},t.prototype.push=function(a,i,l){var u=this,m=this,C=m.current;this.transitionTo(a,function(d){Dp(E_(u.base+d.fullPath)),b_(u.router,d,C,!1),i&&i(d)},l)},t.prototype.replace=function(a,i,l){var u=this,m=this,C=m.current;this.transitionTo(a,function(d){JK(E_(u.base+d.fullPath)),b_(u.router,d,C,!1),i&&i(d)},l)},t.prototype.ensureURL=function(a){if(oC(this.base)!==this.current.fullPath){var i=E_(this.base+this.current.fullPath);a?Dp(i):JK(i)}},t.prototype.getCurrentLocation=function(){return oC(this.base)},t}(_o);function oC(e){var t=window.location.pathname,n=t.toLowerCase(),a=e.toLowerCase();return e&&(n===a||n.indexOf(E_(a+"/"))===0)&&(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var Ab=function(e){function t(n,a,i){e.call(this,n,a),!(i&&HM(this.base))&&Hy()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var a=this;if(!(this.listeners.length>0)){var i=this.router,l=i.options.scrollBehavior,u=T_&&l;u&&this.listeners.push(Kb());var m=function(){var d=a.current;Hy()&&a.transitionTo(cp(),function(g){u&&b_(a.router,g,d,!0),T_||up(g.fullPath)})},C=T_?"popstate":"hashchange";window.addEventListener(C,m),this.listeners.push(function(){window.removeEventListener(C,m)})}},t.prototype.push=function(a,i,l){var u=this,m=this,C=m.current;this.transitionTo(a,function(d){Qy(d.fullPath),b_(u.router,d,C,!1),i&&i(d)},l)},t.prototype.replace=function(a,i,l){var u=this,m=this,C=m.current;this.transitionTo(a,function(d){up(d.fullPath),b_(u.router,d,C,!1),i&&i(d)},l)},t.prototype.go=function(a){window.history.go(a)},t.prototype.ensureURL=function(a){var i=this.current.fullPath;cp()!==i&&(a?Qy(i):up(i))},t.prototype.getCurrentLocation=function(){return cp()},t}(_o);function HM(e){var t=oC(e);if(!/^\/#/.test(t))return window.location.replace(E_(e+"/#"+t)),!0}function Hy(){var e=cp();return e.charAt(0)==="/"?!0:(up("/"+e),!1)}function cp(){var e=window.location.href,t=e.indexOf("#");return t<0?"":(e=e.slice(t+1),e)}function XK(e){var t=window.location.href,n=t.indexOf("#"),a=n>=0?t.slice(0,n):t;return a+"#"+e}function Qy(e){T_?Dp(XK(e)):window.location.hash=e}function up(e){T_?JK(XK(e)):window.location.replace(XK(e))}var QM=function(e){function t(n,a){e.call(this,n,a),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(a,i,l){var u=this;this.transitionTo(a,function(m){u.stack=u.stack.slice(0,u.index+1).concat(m),u.index++,i&&i(m)},l)},t.prototype.replace=function(a,i,l){var u=this;this.transitionTo(a,function(m){u.stack=u.stack.slice(0,u.index).concat(m),i&&i(m)},l)},t.prototype.go=function(a){var i=this,l=this.index+a;if(!(l<0||l>=this.stack.length)){var u=this.stack[l];this.confirmTransition(u,function(){var m=i.current;i.index=l,i.updateRoute(u),i.router.afterHooks.forEach(function(C){C&&C(u,m)})},function(m){ph(m,lu.duplicated)&&(i.index=l)})}},t.prototype.getCurrentLocation=function(){var a=this.stack[this.stack.length-1];return a?a.fullPath:"/"},t.prototype.ensureURL=function(){},t}(_o),Pn=function(t){t===void 0&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=vM(t.routes||[],this);var n=t.mode||"hash";switch(this.fallback=n==="history"&&!T_&&t.fallback!==!1,this.fallback&&(n="hash"),xC||(n="abstract"),this.mode=n,n){case"history":this.history=new Lb(this,t.base);break;case"hash":this.history=new Ab(this,t.base,this.fallback);break;case"abstract":this.history=new QM(this,t.base);break}},Eb={currentRoute:{configurable:!0}};Pn.prototype.match=function(t,n,a){return this.matcher.match(t,n,a)};Eb.currentRoute.get=function(){return this.history&&this.history.current};Pn.prototype.init=function(t){var n=this;if(this.apps.push(t),t.$once("hook:destroyed",function(){var u=n.apps.indexOf(t);u>-1&&n.apps.splice(u,1),n.app===t&&(n.app=n.apps[0]||null),n.app||n.history.teardown()}),!this.app){this.app=t;var a=this.history;if(a instanceof Lb||a instanceof Ab){var i=function(u){var m=a.current,C=n.options.scrollBehavior,d=T_&&C;d&&"fullPath"in u&&b_(n,u,m,!1)},l=function(u){a.setupListeners(),i(u)};a.transitionTo(a.getCurrentLocation(),l,l)}a.listen(function(u){n.apps.forEach(function(m){m._route=u})})}};Pn.prototype.beforeEach=function(t){return _R(this.beforeHooks,t)};Pn.prototype.beforeResolve=function(t){return _R(this.resolveHooks,t)};Pn.prototype.afterEach=function(t){return _R(this.afterHooks,t)};Pn.prototype.onReady=function(t,n){this.history.onReady(t,n)};Pn.prototype.onError=function(t){this.history.onError(t)};Pn.prototype.push=function(t,n,a){var i=this;if(!n&&!a&&typeof Promise<"u")return new Promise(function(l,u){i.history.push(t,l,u)});this.history.push(t,n,a)};Pn.prototype.replace=function(t,n,a){var i=this;if(!n&&!a&&typeof Promise<"u")return new Promise(function(l,u){i.history.replace(t,l,u)});this.history.replace(t,n,a)};Pn.prototype.go=function(t){this.history.go(t)};Pn.prototype.back=function(){this.go(-1)};Pn.prototype.forward=function(){this.go(1)};Pn.prototype.getMatchedComponents=function(t){var n=t?t.matched?t:this.resolve(t).route:this.currentRoute;return n?[].concat.apply([],n.matched.map(function(a){return Object.keys(a.components).map(function(i){return a.components[i]})})):[]};Pn.prototype.resolve=function(t,n,a){n=n||this.history.current;var i=lR(t,n,a,this),l=this.match(i,n),u=l.redirectedFrom||l.fullPath,m=this.history.base,C=VM(m,u,this.mode);return{location:i,route:l,href:C,normalizedTo:i,resolved:l}};Pn.prototype.getRoutes=function(){return this.matcher.getRoutes()};Pn.prototype.addRoute=function(t,n){this.matcher.addRoute(t,n),this.history.current!==x_&&this.history.transitionTo(this.history.getCurrentLocation())};Pn.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==x_&&this.history.transitionTo(this.history.getCurrentLocation())};Object.defineProperties(Pn.prototype,Eb);function _R(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function VM(e,t,n){var a=n==="hash"?"#"+t:t;return e?E_(e+"/"+a):a}Pn.install=zK;Pn.version="3.5.3";Pn.isNavigationFailure=ph;Pn.NavigationFailureType=lu;Pn.START_LOCATION=x_;xC&&window.Vue&&window.Vue.use(Pn);const bb=Pn,Vy=()=>aR(()=>import("./Home-66038a66.js"),["assets/Home-66038a66.js","assets/BaseKey-94d82645.js","assets/BaseKey-34f28bd3.css","assets/Home-fe6589aa.css"]),WM=()=>aR(()=>import("./Print-332b3b84.js"),["assets/Print-332b3b84.js","assets/BaseKey-94d82645.js","assets/BaseKey-34f28bd3.css","assets/Print-76aa46fc.css"]),zM=()=>aR(()=>import("./Test-cd090fda.js"),["assets/Test-cd090fda.js","assets/BaseKey-94d82645.js","assets/BaseKey-34f28bd3.css","assets/Test-a430b51d.css"]);Ze.use(bb);const jM=new bb({routes:[{path:"/:keyboardP(.+)/:layoutP(.+)",component:Vy,name:"home"},{path:"/print",component:WM,name:"print"},{path:"/test",component:zM,name:"test"},{path:"*",component:Vy}]});var JM=!0;Ze.util.warn;function XM(){return!!_w()}function ZM(){return Tb().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Tb(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const YM=typeof Proxy=="function",qM="devtools-plugin:setup",eG="plugin:settings:set";let vf,ZK;function tG(){var e;return vf!==void 0||(typeof window<"u"&&window.performance?(vf=!0,ZK=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(vf=!0,ZK=globalThis.perf_hooks.performance):vf=!1),vf}function nG(){return tG()?ZK.now():Date.now()}class aG{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const a={};if(t.settings)for(const u in t.settings){const m=t.settings[u];a[u]=m.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let l=Object.assign({},a);try{const u=localStorage.getItem(i),m=JSON.parse(u);Object.assign(l,m)}catch{}this.fallbacks={getSettings(){return l},setSettings(u){try{localStorage.setItem(i,JSON.stringify(u))}catch{}l=u},now(){return nG()}},n&&n.on(eG,(u,m)=>{u===this.plugin.id&&this.fallbacks.setSettings(m)}),this.proxiedOn=new Proxy({},{get:(u,m)=>this.target?this.target.on[m]:(...C)=>{this.onQueue.push({method:m,args:C})}}),this.proxiedTarget=new Proxy({},{get:(u,m)=>this.target?this.target[m]:m==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(m)?(...C)=>(this.targetQueue.push({method:m,args:C,resolve:()=>{}}),this.fallbacks[m](...C)):(...C)=>new Promise(d=>{this.targetQueue.push({method:m,args:C,resolve:d})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Pb(e,t){const n=e,a=Tb(),i=ZM(),l=YM&&n.enableEarlyProxy;if(i&&(a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!l))i.emit(qM,e,t);else{const u=l?new aG(n,i):null;(a.__VUE_DEVTOOLS_PLUGINS__=a.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:u}),u&&t(u.proxiedTarget)}}/*! + */function ao(e,t){for(var n in t)e[n]=t[n];return e}var Vk=/[!'()*]/g,Wk=function(e){return"%"+e.charCodeAt(0).toString(16)},zk=/%2C/g,Kf=function(e){return encodeURIComponent(e).replace(Vk,Wk).replace(zk,",")};function VK(e){try{return decodeURIComponent(e)}catch{}return e}function jk(e,t,n){t===void 0&&(t={});var a=n||Jk,i;try{i=a(e||"")}catch{i={}}for(var l in t){var u=t[l];i[l]=Array.isArray(u)?u.map(wy):wy(u)}return i}var wy=function(e){return e==null||typeof e=="object"?e:String(e)};function Jk(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e&&e.split("&").forEach(function(n){var a=n.replace(/\+/g," ").split("="),i=VK(a.shift()),l=a.length>0?VK(a.join("=")):null;t[i]===void 0?t[i]=l:Array.isArray(t[i])?t[i].push(l):t[i]=[t[i],l]}),t}function Xk(e){var t=e?Object.keys(e).map(function(n){var a=e[n];if(a===void 0)return"";if(a===null)return Kf(n);if(Array.isArray(a)){var i=[];return a.forEach(function(l){l!==void 0&&(l===null?i.push(Kf(n)):i.push(Kf(n)+"="+Kf(l)))}),i.join("&")}return Kf(n)+"="+Kf(a)}).filter(function(n){return n.length>0}).join("&"):null;return t?"?"+t:""}var Op=/\/?$/;function Ip(e,t,n,a){var i=a&&a.options.stringifyQuery,l=t.query||{};try{l=WK(l)}catch{}var u={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:l,params:t.params||{},fullPath:Oy(t,i),matched:e?Zk(e):[]};return n&&(u.redirectedFrom=Oy(n,i)),Object.freeze(u)}function WK(e){if(Array.isArray(e))return e.map(WK);if(e&&typeof e=="object"){var t={};for(var n in e)t[n]=WK(e[n]);return t}else return e}var x_=Ip(null,{path:"/"});function Zk(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function Oy(e,t){var n=e.path,a=e.query;a===void 0&&(a={});var i=e.hash;i===void 0&&(i="");var l=t||Xk;return(n||"/")+l(a)+i}function sb(e,t,n){return t===x_?e===t:t?e.path&&t.path?e.path.replace(Op,"")===t.path.replace(Op,"")&&(n||e.hash===t.hash&&lp(e.query,t.query)):e.name&&t.name?e.name===t.name&&(n||e.hash===t.hash&&lp(e.query,t.query)&&lp(e.params,t.params)):!1:!1}function lp(e,t){if(e===void 0&&(e={}),t===void 0&&(t={}),!e||!t)return e===t;var n=Object.keys(e).sort(),a=Object.keys(t).sort();return n.length!==a.length?!1:n.every(function(i,l){var u=e[i],m=a[l];if(m!==i)return!1;var C=t[i];return u==null||C==null?u===C:typeof u=="object"&&typeof C=="object"?lp(u,C):String(u)===String(C)})}function Yk(e,t){return e.path.replace(Op,"/").indexOf(t.path.replace(Op,"/"))===0&&(!t.hash||e.hash===t.hash)&&qk(e.query,t.query)}function qk(e,t){for(var n in t)if(!(n in e))return!1;return!0}function _b(e){for(var t=0;t=0&&(t=e.slice(a),e=e.slice(0,a));var i=e.indexOf("?");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{path:e,query:n,hash:t}}function E_(e){return e.replace(/\/+/g,"/")}var Np=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},qf=mb,aM=iR,iM=sM,rM=ub,oM=fb,lM=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function iR(e,t){for(var n=[],a=0,i=0,l="",u=t&&t.delimiter||"/",m;(m=lM.exec(e))!=null;){var C=m[0],d=m[1],g=m.index;if(l+=e.slice(i,g),i=g+C.length,d){l+=d[1];continue}var b=e[i],P=m[2],w=m[3],G=m[4],z=m[5],j=m[6],V=m[7];l&&(n.push(l),l="");var q=P!=null&&b!=null&&b!==P,Y=j==="+"||j==="*",ee=j==="?"||j==="*",ae=m[2]||u,le=G||z;n.push({name:w||a++,prefix:P||"",delimiter:ae,optional:ee,repeat:Y,partial:q,asterisk:!!V,pattern:le?uM(le):V?".*":"[^"+sp(ae)+"]+?"})}return i1||!ae.length)return ae.length===0?t():t("span",{},ae)}if(this.tag==="a")ee.on=Y,ee.attrs={href:C,"aria-current":V};else{var le=Cb(this.$slots.default);if(le){le.isStatic=!1;var ie=le.data=ao({},le.data);ie.on=ie.on||{};for(var D in ie.on){var A=ie.on[D];D in Y&&(ie.on[D]=Array.isArray(A)?A:[A])}for(var O in Y)O in ie.on?ie.on[O].push(Y[O]):ie.on[O]=q;var M=le.data.attrs=ao({},le.data.attrs);M.href=C,M["aria-current"]=V}else ee.on=Y}return t(this.tag,ee,this.$slots.default)}};function Dy(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Cb(e){if(e){for(var t,n=0;n-1&&(j.params[ee]=G.params[ee]);return j.path=_p(q.path,j.params),P(q,j,z)}else if(j.path){j.params={};for(var ae=0;ae=e.length?n():e[i]?t(e[i],function(){a(i+1)}):a(i+1)};a(0)}var lu={redirected:2,aborted:4,cancelled:8,duplicated:16};function TM(e,t){return dh(e,t,lu.redirected,'Redirected when going from "'+e.fullPath+'" to "'+IM(t)+'" via a navigation guard.')}function PM(e,t){var n=dh(e,t,lu.duplicated,'Avoided redundant navigation to current location: "'+e.fullPath+'".');return n.name="NavigationDuplicated",n}function $y(e,t){return dh(e,t,lu.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function wM(e,t){return dh(e,t,lu.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+t.fullPath+'" via a navigation guard.')}function dh(e,t,n,a){var i=new Error(a);return i._isRouter=!0,i.from=e,i.to=t,i.type=n,i}var OM=["params","query","hash"];function IM(e){if(typeof e=="string")return e;if("path"in e)return e.path;var t={};return OM.forEach(function(n){n in e&&(t[n]=e[n])}),JSON.stringify(t,null,2)}function kp(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function ph(e,t){return kp(e)&&e._isRouter&&(t==null||e.type===t)}function NM(e){return function(t,n,a){var i=!1,l=0,u=null;Rb(e,function(m,C,d,g){if(typeof m=="function"&&m.cid===void 0){i=!0,l++;var b=Fy(function(z){DM(z)&&(z=z.default),m.resolved=typeof z=="function"?z:Up.extend(z),d.components[g]=z,l--,l<=0&&a()}),P=Fy(function(z){var j="Failed to resolve async component "+g+": "+z;u||(u=kp(z)?z:new Error(j),a(u))}),w;try{w=m(b,P)}catch(z){P(z)}if(w)if(typeof w.then=="function")w.then(b,P);else{var G=w.component;G&&typeof G.then=="function"&&G.then(b,P)}}}),i||a()}}function Rb(e,t){return gb(e.map(function(n){return Object.keys(n.components).map(function(a){return t(n.components[a],n.instances[a],n,a)})}))}function gb(e){return Array.prototype.concat.apply([],e)}var UM=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function DM(e){return e.__esModule||UM&&e[Symbol.toStringTag]==="Module"}function Fy(e){var t=!1;return function(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];if(!t)return t=!0,e.apply(this,n)}}var _o=function(t,n){this.router=t,this.base=kM(n),this.current=x_,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};_o.prototype.listen=function(t){this.cb=t};_o.prototype.onReady=function(t,n){this.ready?t():(this.readyCbs.push(t),n&&this.readyErrorCbs.push(n))};_o.prototype.onError=function(t){this.errorCbs.push(t)};_o.prototype.transitionTo=function(t,n,a){var i=this,l;try{l=this.router.match(t,this.current)}catch(m){throw this.errorCbs.forEach(function(C){C(m)}),m}var u=this.current;this.confirmTransition(l,function(){i.updateRoute(l),n&&n(l),i.ensureURL(),i.router.afterHooks.forEach(function(m){m&&m(l,u)}),i.ready||(i.ready=!0,i.readyCbs.forEach(function(m){m(l)}))},function(m){a&&a(m),m&&!i.ready&&(!ph(m,lu.redirected)||u!==x_)&&(i.ready=!0,i.readyErrorCbs.forEach(function(C){C(m)}))})};_o.prototype.confirmTransition=function(t,n,a){var i=this,l=this.current;this.pending=t;var u=function(z){!ph(z)&&kp(z)&&(i.errorCbs.length?i.errorCbs.forEach(function(j){j(z)}):console.error(z)),a&&a(z)},m=t.matched.length-1,C=l.matched.length-1;if(sb(t,l)&&m===C&&t.matched[m]===l.matched[C])return this.ensureURL(),t.hash&&b_(this.router,l,t,!1),u(PM(l,t));var d=MM(this.current.matched,t.matched),g=d.updated,b=d.deactivated,P=d.activated,w=[].concat(BM(b),this.router.beforeHooks,xM(g),P.map(function(z){return z.beforeEnter}),NM(P)),G=function(z,j){if(i.pending!==t)return u($y(l,t));try{z(t,l,function(V){V===!1?(i.ensureURL(!0),u(wM(l,t))):kp(V)?(i.ensureURL(!0),u(V)):typeof V=="string"||typeof V=="object"&&(typeof V.path=="string"||typeof V.name=="string")?(u(TM(l,t)),typeof V=="object"&&V.replace?i.replace(V):i.push(V)):j(V)})}catch(V){u(V)}};xy(w,G,function(){var z=$M(P),j=z.concat(i.router.resolveHooks);xy(j,G,function(){if(i.pending!==t)return u($y(l,t));i.pending=null,n(t),i.router.app&&i.router.app.$nextTick(function(){_b(t)})})})};_o.prototype.updateRoute=function(t){this.current=t,this.cb&&this.cb(t)};_o.prototype.setupListeners=function(){};_o.prototype.teardown=function(){this.listeners.forEach(function(t){t()}),this.listeners=[],this.current=x_,this.pending=null};function kM(e){if(!e)if(xC){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return e.charAt(0)!=="/"&&(e="/"+e),e.replace(/\/$/,"")}function MM(e,t){var n,a=Math.max(e.length,t.length);for(n=0;n0)){var i=this.router,l=i.options.scrollBehavior,u=T_&&l;u&&this.listeners.push(Kb());var m=function(){var C=a.current,d=oC(a.base);a.current===x_&&d===a._startLocation||a.transitionTo(d,function(g){u&&b_(i,g,C,!0)})};window.addEventListener("popstate",m),this.listeners.push(function(){window.removeEventListener("popstate",m)})}},t.prototype.go=function(a){window.history.go(a)},t.prototype.push=function(a,i,l){var u=this,m=this,C=m.current;this.transitionTo(a,function(d){Dp(E_(u.base+d.fullPath)),b_(u.router,d,C,!1),i&&i(d)},l)},t.prototype.replace=function(a,i,l){var u=this,m=this,C=m.current;this.transitionTo(a,function(d){JK(E_(u.base+d.fullPath)),b_(u.router,d,C,!1),i&&i(d)},l)},t.prototype.ensureURL=function(a){if(oC(this.base)!==this.current.fullPath){var i=E_(this.base+this.current.fullPath);a?Dp(i):JK(i)}},t.prototype.getCurrentLocation=function(){return oC(this.base)},t}(_o);function oC(e){var t=window.location.pathname,n=t.toLowerCase(),a=e.toLowerCase();return e&&(n===a||n.indexOf(E_(a+"/"))===0)&&(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var Ab=function(e){function t(n,a,i){e.call(this,n,a),!(i&&HM(this.base))&&Hy()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var a=this;if(!(this.listeners.length>0)){var i=this.router,l=i.options.scrollBehavior,u=T_&&l;u&&this.listeners.push(Kb());var m=function(){var d=a.current;Hy()&&a.transitionTo(cp(),function(g){u&&b_(a.router,g,d,!0),T_||up(g.fullPath)})},C=T_?"popstate":"hashchange";window.addEventListener(C,m),this.listeners.push(function(){window.removeEventListener(C,m)})}},t.prototype.push=function(a,i,l){var u=this,m=this,C=m.current;this.transitionTo(a,function(d){Qy(d.fullPath),b_(u.router,d,C,!1),i&&i(d)},l)},t.prototype.replace=function(a,i,l){var u=this,m=this,C=m.current;this.transitionTo(a,function(d){up(d.fullPath),b_(u.router,d,C,!1),i&&i(d)},l)},t.prototype.go=function(a){window.history.go(a)},t.prototype.ensureURL=function(a){var i=this.current.fullPath;cp()!==i&&(a?Qy(i):up(i))},t.prototype.getCurrentLocation=function(){return cp()},t}(_o);function HM(e){var t=oC(e);if(!/^\/#/.test(t))return window.location.replace(E_(e+"/#"+t)),!0}function Hy(){var e=cp();return e.charAt(0)==="/"?!0:(up("/"+e),!1)}function cp(){var e=window.location.href,t=e.indexOf("#");return t<0?"":(e=e.slice(t+1),e)}function XK(e){var t=window.location.href,n=t.indexOf("#"),a=n>=0?t.slice(0,n):t;return a+"#"+e}function Qy(e){T_?Dp(XK(e)):window.location.hash=e}function up(e){T_?JK(XK(e)):window.location.replace(XK(e))}var QM=function(e){function t(n,a){e.call(this,n,a),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(a,i,l){var u=this;this.transitionTo(a,function(m){u.stack=u.stack.slice(0,u.index+1).concat(m),u.index++,i&&i(m)},l)},t.prototype.replace=function(a,i,l){var u=this;this.transitionTo(a,function(m){u.stack=u.stack.slice(0,u.index).concat(m),i&&i(m)},l)},t.prototype.go=function(a){var i=this,l=this.index+a;if(!(l<0||l>=this.stack.length)){var u=this.stack[l];this.confirmTransition(u,function(){var m=i.current;i.index=l,i.updateRoute(u),i.router.afterHooks.forEach(function(C){C&&C(u,m)})},function(m){ph(m,lu.duplicated)&&(i.index=l)})}},t.prototype.getCurrentLocation=function(){var a=this.stack[this.stack.length-1];return a?a.fullPath:"/"},t.prototype.ensureURL=function(){},t}(_o),Pn=function(t){t===void 0&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=vM(t.routes||[],this);var n=t.mode||"hash";switch(this.fallback=n==="history"&&!T_&&t.fallback!==!1,this.fallback&&(n="hash"),xC||(n="abstract"),this.mode=n,n){case"history":this.history=new Lb(this,t.base);break;case"hash":this.history=new Ab(this,t.base,this.fallback);break;case"abstract":this.history=new QM(this,t.base);break}},Eb={currentRoute:{configurable:!0}};Pn.prototype.match=function(t,n,a){return this.matcher.match(t,n,a)};Eb.currentRoute.get=function(){return this.history&&this.history.current};Pn.prototype.init=function(t){var n=this;if(this.apps.push(t),t.$once("hook:destroyed",function(){var u=n.apps.indexOf(t);u>-1&&n.apps.splice(u,1),n.app===t&&(n.app=n.apps[0]||null),n.app||n.history.teardown()}),!this.app){this.app=t;var a=this.history;if(a instanceof Lb||a instanceof Ab){var i=function(u){var m=a.current,C=n.options.scrollBehavior,d=T_&&C;d&&"fullPath"in u&&b_(n,u,m,!1)},l=function(u){a.setupListeners(),i(u)};a.transitionTo(a.getCurrentLocation(),l,l)}a.listen(function(u){n.apps.forEach(function(m){m._route=u})})}};Pn.prototype.beforeEach=function(t){return _R(this.beforeHooks,t)};Pn.prototype.beforeResolve=function(t){return _R(this.resolveHooks,t)};Pn.prototype.afterEach=function(t){return _R(this.afterHooks,t)};Pn.prototype.onReady=function(t,n){this.history.onReady(t,n)};Pn.prototype.onError=function(t){this.history.onError(t)};Pn.prototype.push=function(t,n,a){var i=this;if(!n&&!a&&typeof Promise<"u")return new Promise(function(l,u){i.history.push(t,l,u)});this.history.push(t,n,a)};Pn.prototype.replace=function(t,n,a){var i=this;if(!n&&!a&&typeof Promise<"u")return new Promise(function(l,u){i.history.replace(t,l,u)});this.history.replace(t,n,a)};Pn.prototype.go=function(t){this.history.go(t)};Pn.prototype.back=function(){this.go(-1)};Pn.prototype.forward=function(){this.go(1)};Pn.prototype.getMatchedComponents=function(t){var n=t?t.matched?t:this.resolve(t).route:this.currentRoute;return n?[].concat.apply([],n.matched.map(function(a){return Object.keys(a.components).map(function(i){return a.components[i]})})):[]};Pn.prototype.resolve=function(t,n,a){n=n||this.history.current;var i=lR(t,n,a,this),l=this.match(i,n),u=l.redirectedFrom||l.fullPath,m=this.history.base,C=VM(m,u,this.mode);return{location:i,route:l,href:C,normalizedTo:i,resolved:l}};Pn.prototype.getRoutes=function(){return this.matcher.getRoutes()};Pn.prototype.addRoute=function(t,n){this.matcher.addRoute(t,n),this.history.current!==x_&&this.history.transitionTo(this.history.getCurrentLocation())};Pn.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==x_&&this.history.transitionTo(this.history.getCurrentLocation())};Object.defineProperties(Pn.prototype,Eb);function _R(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function VM(e,t,n){var a=n==="hash"?"#"+t:t;return e?E_(e+"/"+a):a}Pn.install=zK;Pn.version="3.5.3";Pn.isNavigationFailure=ph;Pn.NavigationFailureType=lu;Pn.START_LOCATION=x_;xC&&window.Vue&&window.Vue.use(Pn);const bb=Pn,Vy=()=>aR(()=>import("./Home-2acfdd0e.js"),["assets/Home-2acfdd0e.js","assets/BaseKey-633cca15.js","assets/BaseKey-34f28bd3.css","assets/Home-fe6589aa.css"]),WM=()=>aR(()=>import("./Print-ea2950d4.js"),["assets/Print-ea2950d4.js","assets/BaseKey-633cca15.js","assets/BaseKey-34f28bd3.css","assets/Print-76aa46fc.css"]),zM=()=>aR(()=>import("./Test-17c40676.js"),["assets/Test-17c40676.js","assets/BaseKey-633cca15.js","assets/BaseKey-34f28bd3.css","assets/Test-a430b51d.css"]);Ze.use(bb);const jM=new bb({routes:[{path:"/:keyboardP(.+)/:layoutP(.+)",component:Vy,name:"home"},{path:"/print",component:WM,name:"print"},{path:"/test",component:zM,name:"test"},{path:"*",component:Vy}]});var JM=!0;Ze.util.warn;function XM(){return!!_w()}function ZM(){return Tb().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Tb(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const YM=typeof Proxy=="function",qM="devtools-plugin:setup",eG="plugin:settings:set";let vf,ZK;function tG(){var e;return vf!==void 0||(typeof window<"u"&&window.performance?(vf=!0,ZK=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(vf=!0,ZK=globalThis.perf_hooks.performance):vf=!1),vf}function nG(){return tG()?ZK.now():Date.now()}class aG{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const a={};if(t.settings)for(const u in t.settings){const m=t.settings[u];a[u]=m.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let l=Object.assign({},a);try{const u=localStorage.getItem(i),m=JSON.parse(u);Object.assign(l,m)}catch{}this.fallbacks={getSettings(){return l},setSettings(u){try{localStorage.setItem(i,JSON.stringify(u))}catch{}l=u},now(){return nG()}},n&&n.on(eG,(u,m)=>{u===this.plugin.id&&this.fallbacks.setSettings(m)}),this.proxiedOn=new Proxy({},{get:(u,m)=>this.target?this.target.on[m]:(...C)=>{this.onQueue.push({method:m,args:C})}}),this.proxiedTarget=new Proxy({},{get:(u,m)=>this.target?this.target[m]:m==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(m)?(...C)=>(this.targetQueue.push({method:m,args:C,resolve:()=>{}}),this.fallbacks[m](...C)):(...C)=>new Promise(d=>{this.targetQueue.push({method:m,args:C,resolve:d})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Pb(e,t){const n=e,a=Tb(),i=ZM(),l=YM&&n.enableEarlyProxy;if(i&&(a.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!l))i.emit(qM,e,t);else{const u=l?new aG(n,i):null;(a.__VUE_DEVTOOLS_PLUGINS__=a.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:u}),u&&t(u.proxiedTarget)}}/*! * pinia v2.2.4 * (c) 2024 Eduardo San Martin Morote * @license MIT diff --git a/index.html b/index.html index 69dacc4191..0d3c5c68f5 100644 --- a/index.html +++ b/index.html @@ -12,7 +12,7 @@ margin-left: -100vh; } - +