1 line
607 KiB
JavaScript
1 line
607 KiB
JavaScript
webpackJsonp([1],{"+lZ+":function(e,n){e.exports={isDefault:!1,abbreviation:"VIM",name:"VIM",description:"Phasellus egestas ac tellus id tincidunt. Ut non nisl turpis. Morbi molestie diam elit, et cursus nibh tempus vel. Vestibulum mattis arcu nec nisi dictum, quis facilisis augue rutrum. Fusce vel tristique metus. Nullam pretium elit et enim maximus ornare. Praesent ultrices ligula ut mi convallis, quis ultrices enim venenatis. Aenean interdum odio aliquam quam vestibulum, vel bibendum elit ornare. Morbi leo enim, ullamcorper a bibendum sit amet, ultrices vitae ligula. Etiam consectetur et massa a convallis. Nullam non nisi aliquet, suscipit nulla a, tempor odio. Praesent eu turpis euismod, pellentesque mauris ut, imperdiet felis. Pellentesque vehicula luctus purus, et mattis ante volutpat eu. Quisque venenatis porta odio.",layers:[{modules:[{id:0,pointerRole:"move",keyActions:[{keyActionType:"mouse",mouseAction:"scrollDown"},null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{id:1,pointerRole:"scroll",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{id:2,pointerRole:"move",keyActions:[{keyActionType:"keystroke",scancode:111,type:"basic"}]}]},{modules:[{id:0,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{id:1,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]},{modules:[{id:0,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{id:1,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]},{modules:[{id:0,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{id:1,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]}]}},0:function(e,n,t){e.exports=t("Yo9w")},"0s4M":function(e,n){e.exports=[{id:"-1",text:"None"},{text:"Layer switcher",children:[{id:"8",text:"Mod"},{id:"9",text:"Fn"},{id:"10",text:"Mouse"}]},{text:"Modifier",children:[{id:"0",text:"LShift"},{id:"1",text:"LCtrl"},{id:"2",text:"LSuper"},{id:"3",text:"LAlt"},{id:"4",text:"RShift"},{id:"5",text:"RCtrl"},{id:"6",text:"RSuper"},{id:"7",text:"RAlt"}]}]},"1ogb":function(e,n){e.exports=[{text:"Letter",children:[{id:"4",text:"A"},{id:"5",text:"B"},{id:"6",text:"C"},{id:"7",text:"D"},{id:"8",text:"E"},{id:"9",text:"F"},{id:"10",text:"G"},{id:"11",text:"H"},{id:"12",text:"I"},{id:"13",text:"J"},{id:"14",text:"K"},{id:"15",text:"L"},{id:"16",text:"M"},{id:"17",text:"N"},{id:"18",text:"O"},{id:"19",text:"P"},{id:"20",text:"Q"},{id:"21",text:"R"},{id:"22",text:"S"},{id:"23",text:"T"},{id:"24",text:"U"},{id:"25",text:"V"},{id:"26",text:"W"},{id:"27",text:"X"},{id:"28",text:"Y"},{id:"29",text:"Z"}]},{text:"Number",children:[{id:"39",text:"0 )"},{id:"30",text:"1 !"},{id:"31",text:"2 @"},{id:"32",text:"3 #"},{id:"33",text:"4 $"},{id:"34",text:"5 %"},{id:"35",text:"6 ^"},{id:"36",text:"7 &"},{id:"37",text:"8 *"},{id:"38",text:"9 ("}]},{text:"Punctuation",children:[{id:"45",text:"- _"},{id:"46",text:"= +"},{id:"47",text:"[ {"},{id:"48",text:"] }"},{id:"49",text:"\\ |"},{id:"51",text:"; :"},{id:"52",text:"' \""},{id:"53",text:"` ~"},{id:"54",text:", <"},{id:"55",text:". >"},{id:"56",text:"/ ?"}]},{text:"Whitespace",children:[{id:"40",additional:{explanation:"Return"},text:"Enter"},{id:"44",text:"Space"},{id:"43",text:"Tab"}]},{text:"Miscellaneous",children:[{id:"41",text:"Escape"},{id:"42",text:"Backspace"},{id:"73",text:"Insert"},{id:"76",text:"Delete"},{id:"118",text:"Menu"},{id:"57",text:"Caps Lock"},{id:"71",text:"Scroll Lock"},{id:"70",text:"Print Screen"},{id:"72",text:"Pause"}]},{text:"Function",children:[{id:"58",text:"F1"},{id:"59",text:"F2"},{id:"60",text:"F3"},{id:"61",text:"F4"},{id:"62",text:"F5"},{id:"63",text:"F6"},{id:"64",text:"F7"},{id:"65",text:"F8"},{id:"66",text:"F9"},{id:"67",text:"F10"},{id:"68",text:"F11"},{id:"69",text:"F12"},{id:"100",text:"| ISO"},{id:"104",text:"F13"},{id:"105",text:"F14"},{id:"106",text:"F15"},{id:"107",text:"F16"},{id:"108",text:"F17"},{id:"109",text:"F18"},{id:"110",text:"F19"},{id:"111",text:"F20"},{id:"112",text:"F21"},{id:"113",text:"F22"},{id:"114",text:"F23"},{id:"115",text:"F24"}]},{text:"Navigation",children:[{id:"75",additional:{explanation:"PgUp"},text:"Page Up"},{id:"78",additional:{explanation:"PgDn"},text:"Page Down"},{id:"74",text:"Home"},{id:"77",text:"End"},{id:"80",text:"Left Arrow"},{id:"79",text:"Right Arrow"},{id:"82",text:"Up Arrow"},{id:"81",text:"Down Arrow"}]},{text:"Media",children:[{id:"127",text:"Mute",additional:{type:"media",scancode:226}},{id:"128",text:"Volume Up",additional:{type:"media",scancode:233}},{id:"129",text:"Volume Down",additional:{type:"media",scancode:234}},{id:"130",text:"Next Track",additional:{type:"media",scancode:181}},{id:"131",text:"Previous Track",additional:{type:"media",scancode:182}},{id:"132",text:"Stop/Eject",additional:{type:"media",scancode:204}},{id:"133",text:"Play/Pause",additional:{type:"media",scancode:205}},{id:"134",text:"Play",additional:{type:"media",scancode:176}},{id:"135",text:"Pause",additional:{type:"media",scancode:177}},{id:"136",text:"Stop",additional:{type:"media",scancode:183}},{id:"137",text:"Eject",additional:{type:"media",scancode:184}},{id:"138",text:"WWW",additional:{type:"media",scancode:138}}]},{text:"Launch application",children:[{id:"142",text:"Launch Web Browser",additional:{type:"media",scancode:406}},{id:"143",text:"Launch Email Client",additional:{type:"media",scancode:394}},{id:"144",text:"Launch Calculator",additional:{type:"media",scancode:402}}]},{text:"System",children:[{id:"139",text:"Power Down",additional:{type:"system",scancode:129}},{id:"140",text:"Sleep",additional:{type:"system",scancode:130}},{id:"141",text:"Wake Up",additional:{type:"system",scancode:131}}]},{text:"Numpad",children:[{id:"83",text:"NumLock"},{id:"84",additional:{explanation:"slash"},text:"/"},{id:"85",additional:{explanation:"asterisk"},text:"*"},{id:"86",additional:{explanation:"minus"},text:"-"},{id:"87",additional:{explanation:"plus"},text:"+"},{id:"88",text:"Enter"},{id:"89",additional:{explanation:"one"},text:"1"},{id:"90",additional:{explanation:"two"},text:"2"},{id:"91",additional:{explanation:"three"},text:"3"},{id:"92",additional:{explanation:"four"},text:"4"},{id:"93",additional:{explanation:"five"},text:"5"},{id:"94",additional:{explanation:"six"},text:"6"},{id:"95",additional:{explanation:"seven"},text:"7"},{id:"96",additional:{explanation:"eight"},text:"8"},{id:"97",additional:{explanation:"nine"},text:"9"},{id:"98",additional:{explanation:"zero"},text:"0"},{id:"99",additional:{explanation:"period"},text:"."}]}]},"2lq1":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e.AGENT_GITHUB_URL="https://github.com/UltimateHackingKeyboard/agent"}(n.Constants||(n.Constants={}))},"3J1y":function(e,n,t){"use strict";function l(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}function i(e){return e.replace(/^[a-z]|[A-Z]/g,function(e,n){return 0===n?e.toUpperCase():" "+e.toLowerCase()})}function o(e){return e.charAt(0).toUpperCase()+e.slice(1)}function a(e){if(r[e])throw new Error('Action type "'+e+'" is not unique"');return r[e]=!0,e}function u(){return window&&window.process&&window.process.type}Object.defineProperty(n,"__esModule",{value:!0});var c=t("APjS");n.IpcEvents=c.IpcEvents,l(t("v4Uh")),l(t("2lq1")),n.camelCaseToSentence=i,n.capitalizeFirstLetter=o;var r={};n.type=a,n.runInElectron=u},"3XxM":function(e,n,t){"use strict";function l(e,n){void 0===e&&(e=M);var t=Object.assign(new b.UserConfiguration,e);switch(n.type){case A.a.APPLY_USER_CONFIGURATION_FROM_FILE:case A.a.LOAD_RESET_USER_CONFIGURATION:case A.a.LOAD_USER_CONFIG_SUCCESS:return Object.assign(t,n.payload),t.keymaps=t.keymaps.slice(),t.keymaps.sort(function(e,n){return e.name.localeCompare(n.name)}),t.macros=t.macros.slice(),t.macros.sort(function(e,n){return e.name.localeCompare(n.name)}),t;case v.a.ADD:case v.a.DUPLICATE:var l=new b.Keymap(n.payload);l.abbreviation=s(e.keymaps,l.abbreviation),l.name=d(e.keymaps,l.name),l.isDefault=0===e.keymaps.length,t.keymaps=y(e.keymaps,l);break;case v.a.EDIT_NAME:if(!Object(T.d)(n.payload.name))break;var i=n.payload.name.trim(),o=null,a=e.keymaps.some(function(e){return e.abbreviation===n.payload.abbr&&(o=e),e.name===i&&e.abbreviation!==n.payload.abbr});if(a)break;var u=Object.assign(new b.Keymap,o,{name:i});t.keymaps=y(e.keymaps,u,function(e){return e.abbreviation!==u.abbreviation});break;case v.a.EDIT_ABBR:var c=n.payload.newAbbr.toUpperCase(),r=e.keymaps.some(function(e){return e.name!==n.payload.name&&e.abbreviation===c});t.keymaps=e.keymaps.map(function(e){return e=Object.assign(new b.Keymap,e),r||e.abbreviation!==n.payload.abbr?e=e.renameKeymap(n.payload.abbr,n.payload.newAbbr):e.abbreviation=c,e});break;case v.a.SET_DEFAULT:t.keymaps=e.keymaps.map(function(e){return(e.abbreviation===n.payload||e.isDefault)&&(e=Object.assign(new b.Keymap,e),e.isDefault=e.abbreviation===n.payload),e});break;case v.a.REMOVE:var k,h=e.keymaps.filter(function(e){return e.abbreviation!==n.payload||(k=e.isDefault,!1)});k&&h.length>0&&(h[0]=Object.assign(new b.Keymap,h[0],{isDefault:!0})),t.keymaps=h.map(function(e){return e=Object.assign(new b.Keymap,e),e.layers=f(e.layers,"keymapAbbreviation",n.payload),e});break;case v.a.SAVE_KEY:var g=n.payload.key,C=n.payload.layer,w=n.payload.module,_=b.KeyActionHelper.createKeyAction(n.payload.keyAction),O=Object.assign(new b.Keymap,n.payload.keymap);O.layers=O.layers.slice(),O.layers=O.layers.map(function(e,t){var l=Object.assign(new b.Layer,e);if(t===C)m(l,w,g,_);else if(_ instanceof b.SwitchLayerAction)if(t-1===_.layer){var i=b.KeyActionHelper.createKeyAction(n.payload.keyAction);m(l,w,g,i)}else m(l,w,g,null);return l}),t.keymaps=e.keymaps.map(function(e){return e.abbreviation===O.abbreviation&&(e=O),e});break;case v.a.CHECK_MACRO:t.keymaps=e.keymaps.map(function(e){return e=Object.assign(new b.Keymap,e),e.layers=f(e.layers,"_macroId",n.payload),e});break;case v.b.ADD:var x=new b.Macro;x.id=p(e.macros),x.name=d(e.macros,"New macro"),x.isLooped=!1,x.isPrivate=!0,x.macroActions=[],t.macros=y(e.macros,x);break;case v.b.DUPLICATE:var x=new b.Macro(n.payload);x.name=d(e.macros,x.name),x.id=p(e.macros),t.macros=y(e.macros,x);break;case v.b.EDIT_NAME:if(!Object(T.d)(n.payload.name))break;var S=n.payload.name.trim(),P=null,a=e.macros.some(function(e){return e.id===n.payload.id&&(P=e),e.id!==n.payload.id&&e.name===S});if(a)break;var R=Object.assign(new b.Macro,P,{name:S});t.macros=y(e.macros,R,function(e){return e.id!==R.id});break;case v.b.REMOVE:var I=n.payload;t.macros=e.macros.filter(function(e){return e.id!==I});for(var E=0;E<t.keymaps.length;E++){for(var U=t.keymaps[E],N=!1,L=0,D=U.layers;L<D.length;L++)for(var K=D[L],j=0,F=K.modules;j<F.length;j++)for(var V=F[j],B=0;B<V.keyActions.length;B++){var $=V.keyActions[B];$ instanceof b.PlayMacroAction&&$.macroId===I&&(N=!0,V.keyActions[B]=new b.NoneAction)}N&&(t.keymaps[E]=new b.Keymap(U))}break;case v.b.ADD_ACTION:t.macros=e.macros.map(function(e){return e.id===n.payload.id&&(e=new b.Macro(e),e.macroActions.push(n.payload.action)),e});break;case v.b.SAVE_ACTION:t.macros=e.macros.map(function(e){return e.id===n.payload.id&&(e=new b.Macro(e),e.macroActions[n.payload.index]=n.payload.action),e});break;case v.b.DELETE_ACTION:t.macros=e.macros.map(function(e){return e.id===n.payload.id&&(e=new b.Macro(e),e.macroActions.splice(n.payload.index,1)),e});break;case v.b.REORDER_ACTION:t.macros=e.macros.map(function(e){if(e.id===n.payload.id){var t=n.payload.newIndex;t>n.payload.oldIndex&&--t,e=new b.Macro(e),e.macroActions.splice(t,0,e.macroActions.splice(n.payload.oldIndex,1)[0])}return e});break;case A.a.RENAME_USER_CONFIGURATION:Object(T.d)(n.payload)&&(t.deviceName=n.payload.trim());break;case A.a.SET_USER_CONFIGURATION_VALUE:t[n.payload.propertyName]=n.payload.value;break;case v.a.EDIT_DESCRIPTION:var H=n.payload;t.keymaps=e.keymaps.map(function(e){return e.abbreviation===H.abbr&&(e.description=H.description),e})}return t}function i(){return function(e){return e.map(function(e){return e.userConfiguration})}}function o(){return function(e){return e.map(function(e){return e.userConfiguration.keymaps})}}function a(e){return void 0===e?u():function(n){return o()(n).map(function(n){return n.find(function(n){return n.abbreviation===e})})}}function u(){return function(e){return o()(e).map(function(e){return e.find(function(e){return e.isDefault})})}}function c(){return function(e){return e.map(function(e){return e.userConfiguration.macros})}}function r(e){return isNaN(e)?function(){return k.Observable.of(void 0)}:function(n){return c()(n).map(function(n){return n.find(function(n){return n.id===e})})}}function s(e,n){for(var t="23456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),l=0;e.some(function(e){return e.abbreviation===n});)if(n=n.substring(0,n.length-1)+t[l],++l>t.length){l=0;var i=t.indexOf(n.substr(0,1)),o=t.indexOf(n.substr(1,1));o++,o>t.length&&(o=0,i++),n=t[i]+t[o]+t[l]}return n}function d(e,n){var t=1,l=/ \(\d+\)$/g,i=n.replace(l,"");return e.forEach(function(e){e.name.replace(l,"")===i&&t++}),i+" ("+t+")"}function p(e){var n=0;return e.forEach(function(e){e.id>n&&(n=e.id)}),n+1}function y(e,n,t){void 0===t&&(t=function(){return!0});for(var l=[],i=!1,o=0,a=e;o<a.length;o++){var u=a[o];!i&&u.name.localeCompare(n.name)>0&&(l.push(n),i=!0),t(u)&&l.push(u)}return i||l.push(n),l}function f(e,n,t){for(var l=[],i=0;i<e.length;++i)for(var o=e[i].modules,a=0;a<o.length;++a)for(var u=o[a].keyActions,c=0;c<u.length;++c){var r=u[c];r&&r.hasOwnProperty(n)&&r[n]===t&&l.push({layerIdx:i,moduleIdx:a,keyActionIdx:c})}if(0===l.length)return e;for(var s=e.slice(),d=0,p=l;d<p.length;d++){var y=p[d];s[y.layerIdx]===e[y.layerIdx]&&(s[y.layerIdx]=Object.assign(new b.Layer,s[y.layerIdx]),s[y.layerIdx].modules=s[y.layerIdx].modules.slice());var f=s[y.layerIdx].modules;f[y.moduleIdx]===e[y.layerIdx].modules[y.moduleIdx]&&(f[y.moduleIdx]=Object.assign(new b.Module,f[y.moduleIdx]),f[y.moduleIdx].keyActions=f[y.moduleIdx].keyActions.slice()),f[y.moduleIdx].keyActions[y.keyActionIdx]=void 0}return s}function m(e,n,t,l){var i=Object.assign(new b.Module,e.modules[n]);e.modules=e.modules.slice(),e.modules[n]=i,i.keyActions=i.keyActions.slice(),i.keyActions[t]=l}n.g=l,n.f=i,n.c=o,n.b=a,n.e=c,n.d=r,t.d(n,"a",function(){return C});var k=t("bKpL"),h=(t.n(k),t("/zHi")),g=(t.n(h),t("5v8a")),b=(t.n(g),t("UCSK")),v=(t.n(b),t("NfUz")),A=t("pSU5"),T=t("n4Nn"),M=new b.UserConfiguration,C=function(e){return e.deviceName}},"3vVa":function(e,n,t){"use strict";function l(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}Object.defineProperty(n,"__esModule",{value:!0}),l(t("frA5")),l(t("eEV6")),l(t("nAMu")),l(t("ct+e"))},"5II9":function(e,n,t){"use strict";t.d(n,"a",function(){return i}),t.d(n,"b",function(){return o}),t.d(n,"i",function(){return a}),t.d(n,"c",function(){return u}),t.d(n,"h",function(){return c}),t.d(n,"j",function(){return r}),t.d(n,"d",function(){return s}),t.d(n,"f",function(){return d}),t.d(n,"e",function(){return p}),t.d(n,"g",function(){return y});var l=t("UCSK"),i=(t.n(l),{APP_BOOTSRAPPED:Object(l.type)("[app] bootstrapped"),APP_STARTED:Object(l.type)("[app] started"),APP_SHOW_NOTIFICATION:Object(l.type)("[app] show notification"),APPLY_COMMAND_LINE_ARGS:Object(l.type)("[app] apply command line args"),APP_PROCESS_START_INFO:Object(l.type)("[app] process start info"),UNDO_LAST:Object(l.type)("[app] undo last action"),UNDO_LAST_SUCCESS:Object(l.type)("[app] undo last action success"),DISMISS_UNDO_NOTIFICATION:Object(l.type)("[app] dismiss notification action"),LOAD_HARDWARE_CONFIGURATION_SUCCESS:Object(l.type)("[app] load hardware configuration success"),ELECTRON_MAIN_LOG_RECEIVED:Object(l.type)("[app] Electron main log received"),OPEN_URL_IN_NEW_WINDOW:Object(l.type)("[app] Open URL in new Window")}),o=(function(){function e(){this.type=i.APP_BOOTSRAPPED}}(),function(){function e(){this.type=i.APP_STARTED}return e}()),a=function(){function e(e){this.payload=e,this.type=i.APP_SHOW_NOTIFICATION}return e}(),u=function(){function e(e){this.payload=e,this.type=i.APPLY_COMMAND_LINE_ARGS}return e}(),c=function(){function e(e){this.payload=e,this.type=i.APP_PROCESS_START_INFO}return e}(),r=function(){function e(e){this.payload=e,this.type=i.UNDO_LAST}return e}(),s=(function(){function e(){this.type=i.UNDO_LAST_SUCCESS}}(),function(){function e(){this.type=i.DISMISS_UNDO_NOTIFICATION}return e}()),d=function(){function e(e){this.payload=e,this.type=i.LOAD_HARDWARE_CONFIGURATION_SUCCESS}return e}(),p=function(){function e(e){this.payload=e,this.type=i.ELECTRON_MAIN_LOG_RECEIVED}return e}(),y=function(){function e(e){this.payload=e,this.type=i.OPEN_URL_IN_NEW_WINDOW}return e}()},"6bQ0":function(e,n,t){"use strict";var l=this&&this.__decorate||function(e,n,t,l){var i,o=arguments.length,a=o<3?n:null===l?l=Object.getOwnPropertyDescriptor(n,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,l);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(n,t,a):i(n,t))||a);return o>3&&a&&Object.defineProperty(n,t,a),a},i=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("eEV6"),a=t("kPGt"),u=function(){function e(e){e&&(this.id=e.id,this.isLooped=e.isLooped,this.isPrivate=e.isPrivate,this.name=e.name,this.macroActions=e.macroActions.map(function(e){return a.Helper.createMacroAction(e)}))}return e.prototype.fromJsonObject=function(e){return this.isLooped=e.isLooped,this.isPrivate=e.isPrivate,this.name=e.name,this.macroActions=e.macroActions.map(function(e){return a.Helper.createMacroAction(e)}),this},e.prototype.fromBinary=function(e){this.isLooped=e.readBoolean(),this.isPrivate=e.readBoolean(),this.name=e.readString();var n=e.readCompactLength();this.macroActions=[];for(var t=0;t<n;++t)this.macroActions.push(a.Helper.createMacroAction(e));return this},e.prototype.toJsonObject=function(){return{isLooped:this.isLooped,isPrivate:this.isPrivate,name:this.name,macroActions:this.macroActions.map(function(e){return e.toJsonObject()})}},e.prototype.toBinary=function(e){e.writeBoolean(this.isLooped),e.writeBoolean(this.isPrivate),e.writeString(this.name),e.writeArray(this.macroActions)},e.prototype.toString=function(){return'<Macro id="'+this.id+'" name="'+this.name+'">'},l([o.assertUInt8,i("design:type",Number)],e.prototype,"id",void 0),e}();n.Macro=u},"7qCM":function(e,n,t){"use strict";var l=this&&this.__decorate||function(e,n,t,l){var i,o=arguments.length,a=o<3?n:null===l?l=Object.getOwnPropertyDescriptor(n,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,l);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(n,t,a):i(n,t))||a);return o>3&&a&&Object.defineProperty(n,t,a),a},i=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("eEV6"),a=t("ct+e"),u=t("PsbM"),c=t("6bQ0"),r=t("SGBA"),s=t("nAMu"),d=function(){function e(){this.moduleConfigurations=[],this.keymaps=[],this.macros=[],this.setDefaultDeviceName()}return e.prototype.fromJsonObject=function(e){var n=this;return this.userConfigMajorVersion=e.userConfigMajorVersion,this.userConfigMinorVersion=e.userConfigMinorVersion,this.userConfigPatchVersion=e.userConfigPatchVersion,this.deviceName=e.deviceName,this.setDefaultDeviceName(),this.doubleTapSwitchLayerTimeout=e.doubleTapSwitchLayerTimeout,this.iconsAndLayerTextsBrightness=e.iconsAndLayerTextsBrightness,this.alphanumericSegmentsBrightness=e.alphanumericSegmentsBrightness,this.keyBacklightBrightness=e.keyBacklightBrightness,this.mouseMoveInitialSpeed=e.mouseMoveInitialSpeed,this.mouseMoveAcceleration=e.mouseMoveAcceleration,this.mouseMoveDeceleratedSpeed=e.mouseMoveDeceleratedSpeed,this.mouseMoveBaseSpeed=e.mouseMoveBaseSpeed,this.mouseMoveAcceleratedSpeed=e.mouseMoveAcceleratedSpeed,this.mouseScrollInitialSpeed=e.mouseScrollInitialSpeed,this.mouseScrollAcceleration=e.mouseScrollAcceleration,this.mouseScrollDeceleratedSpeed=e.mouseScrollAcceleration,this.mouseScrollBaseSpeed=e.mouseScrollBaseSpeed,this.mouseScrollAcceleratedSpeed=e.mouseScrollAcceleratedSpeed,this.moduleConfigurations=e.moduleConfigurations.map(function(e){return(new r.ModuleConfiguration).fromJsonObject(e)}),this.macros=e.macros.map(function(e,n){var t=(new c.Macro).fromJsonObject(e);return t.id=n,t}),this.keymaps=e.keymaps.map(function(e){return(new u.Keymap).fromJsonObject(e,n.macros)}),this.recalculateConfigurationLength(),this},e.prototype.fromBinary=function(e){var n=this;return this.userConfigMajorVersion=e.readUInt16(),this.userConfigMinorVersion=e.readUInt16(),this.userConfigPatchVersion=e.readUInt16(),this.userConfigurationLength=e.readUInt16(),this.deviceName=e.readString(),this.setDefaultDeviceName(),this.doubleTapSwitchLayerTimeout=e.readUInt16(),this.iconsAndLayerTextsBrightness=e.readUInt8(),this.alphanumericSegmentsBrightness=e.readUInt8(),this.keyBacklightBrightness=e.readUInt8(),this.mouseMoveInitialSpeed=e.readUInt8(),this.mouseMoveAcceleration=e.readUInt8(),this.mouseMoveDeceleratedSpeed=e.readUInt8(),this.mouseMoveBaseSpeed=e.readUInt8(),this.mouseMoveAcceleratedSpeed=e.readUInt8(),this.mouseScrollInitialSpeed=e.readUInt8(),this.mouseScrollAcceleration=e.readUInt8(),this.mouseScrollDeceleratedSpeed=e.readUInt8(),this.mouseScrollBaseSpeed=e.readUInt8(),this.mouseScrollAcceleratedSpeed=e.readUInt8(),this.moduleConfigurations=e.readArray(function(e){return(new r.ModuleConfiguration).fromBinary(e)}),this.macros=e.readArray(function(e,n){var t=(new c.Macro).fromBinary(e);return t.id=n,t}),this.keymaps=e.readArray(function(e){return(new u.Keymap).fromBinary(e,n.macros)}),s.ConfigSerializer.resolveSwitchKeymapActions(this.keymaps),0===this.userConfigurationLength&&this.recalculateConfigurationLength(),this},e.prototype.toJsonObject=function(){var e=this;return{userConfigMajorVersion:this.userConfigMajorVersion,userConfigMinorVersion:this.userConfigMinorVersion,userConfigPatchVersion:this.userConfigPatchVersion,deviceName:this.deviceName,doubleTapSwitchLayerTimeout:this.doubleTapSwitchLayerTimeout,iconsAndLayerTextsBrightness:this.iconsAndLayerTextsBrightness,alphanumericSegmentsBrightness:this.alphanumericSegmentsBrightness,keyBacklightBrightness:this.keyBacklightBrightness,mouseMoveInitialSpeed:this.mouseMoveInitialSpeed,mouseMoveAcceleration:this.mouseMoveAcceleration,mouseMoveDeceleratedSpeed:this.mouseMoveDeceleratedSpeed,mouseMoveBaseSpeed:this.mouseMoveBaseSpeed,mouseMoveAcceleratedSpeed:this.mouseMoveAcceleratedSpeed,mouseScrollInitialSpeed:this.mouseScrollInitialSpeed,mouseScrollAcceleration:this.mouseScrollAcceleration,mouseScrollDeceleratedSpeed:this.mouseScrollDeceleratedSpeed,mouseScrollBaseSpeed:this.mouseScrollBaseSpeed,mouseScrollAcceleratedSpeed:this.mouseScrollAcceleratedSpeed,moduleConfigurations:this.moduleConfigurations.map(function(e){return e.toJsonObject()}),keymaps:this.keymaps.map(function(n){return n.toJsonObject(e.macros)}),macros:this.macros.map(function(e){return e.toJsonObject()})}},e.prototype.toBinary=function(e){var n=this;e.writeUInt16(this.userConfigMajorVersion),e.writeUInt16(this.userConfigMinorVersion),e.writeUInt16(this.userConfigPatchVersion),e.writeUInt16(this.userConfigurationLength),e.writeString(this.deviceName),e.writeUInt16(this.doubleTapSwitchLayerTimeout),e.writeUInt8(this.iconsAndLayerTextsBrightness),e.writeUInt8(this.alphanumericSegmentsBrightness),e.writeUInt8(this.keyBacklightBrightness),e.writeUInt8(this.mouseMoveInitialSpeed),e.writeUInt8(this.mouseMoveAcceleration),e.writeUInt8(this.mouseMoveDeceleratedSpeed),e.writeUInt8(this.mouseMoveBaseSpeed),e.writeUInt8(this.mouseMoveAcceleratedSpeed),e.writeUInt8(this.mouseScrollInitialSpeed),e.writeUInt8(this.mouseScrollAcceleration),e.writeUInt8(this.mouseScrollDeceleratedSpeed),e.writeUInt8(this.mouseScrollBaseSpeed),e.writeUInt8(this.mouseScrollAcceleratedSpeed),e.writeArray(this.moduleConfigurations),e.writeArray(this.macros),e.writeArray(this.keymaps,function(e,t){t.toBinary(e,n)})},e.prototype.toString=function(){return'<UserConfiguration userConfigVersion="'+this.userConfigMajorVersion+". "+this.userConfigMinorVersion+"."+this.userConfigPatchVersion+'">'},e.prototype.getKeymap=function(e){return this.keymaps.find(function(n){return e===n.abbreviation})},e.prototype.getMacro=function(e){return this.macros.find(function(n){return e===n.id})},e.prototype.recalculateConfigurationLength=function(){var e=new a.UhkBuffer;this.toBinary(e),this.userConfigurationLength=e.offset},e.prototype.setDefaultDeviceName=function(){this.deviceName&&0!==this.deviceName.trim().length||(this.deviceName="My UHK")},l([o.assertUInt16,i("design:type",Number)],e.prototype,"userConfigMajorVersion",void 0),l([o.assertUInt16,i("design:type",Number)],e.prototype,"userConfigMinorVersion",void 0),l([o.assertUInt16,i("design:type",Number)],e.prototype,"userConfigPatchVersion",void 0),l([o.assertUInt16,i("design:type",Number)],e.prototype,"userConfigurationLength",void 0),l([o.assertUInt16,i("design:type",Number)],e.prototype,"doubleTapSwitchLayerTimeout",void 0),l([o.assertUInt8,i("design:type",Number)],e.prototype,"iconsAndLayerTextsBrightness",void 0),l([o.assertUInt8,i("design:type",Number)],e.prototype,"alphanumericSegmentsBrightness",void 0),l([o.assertUInt8,i("design:type",Number)],e.prototype,"keyBacklightBrightness",void 0),l([o.assertUInt8,i("design:type",Number)],e.prototype,"mouseMoveInitialSpeed",void 0),l([o.assertUInt8,i("design:type",Number)],e.prototype,"mouseMoveAcceleration",void 0),l([o.assertUInt8,i("design:type",Number)],e.prototype,"mouseMoveDeceleratedSpeed",void 0),l([o.assertUInt8,i("design:type",Number)],e.prototype,"mouseMoveBaseSpeed",void 0),l([o.assertUInt8,i("design:type",Number)],e.prototype,"mouseMoveAcceleratedSpeed",void 0),l([o.assertUInt8,i("design:type",Number)],e.prototype,"mouseScrollInitialSpeed",void 0),l([o.assertUInt8,i("design:type",Number)],e.prototype,"mouseScrollAcceleration",void 0),l([o.assertUInt8,i("design:type",Number)],e.prototype,"mouseScrollDeceleratedSpeed",void 0),l([o.assertUInt8,i("design:type",Number)],e.prototype,"mouseScrollBaseSpeed",void 0),l([o.assertUInt8,i("design:type",Number)],e.prototype,"mouseScrollAcceleratedSpeed",void 0),e}();n.UserConfiguration=d},"7wSx":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=t("B8XE"),i=function(){function e(e){e&&(this.modules=e.modules.map(function(e){return new l.Module(e)}))}return e.prototype.fromJsonObject=function(e,n){return this.modules=e.modules.map(function(e){return(new l.Module).fromJsonObject(e,n)}),this},e.prototype.fromBinary=function(e,n){return this.modules=e.readArray(function(e){return(new l.Module).fromBinary(e,n)}),this},e.prototype.toJsonObject=function(e){return{modules:this.modules.map(function(n){return n.toJsonObject(e)})}},e.prototype.toBinary=function(e,n){e.writeArray(this.modules,function(e,t){t.toBinary(e,n)})},e.prototype.toString=function(){return"<Layer>"},e.prototype.renameKeymap=function(n,t){var l,i=this,o=!1;if(this.modules.forEach(function(e,a){var u=e.renameKeymap(n,t);u!==e&&(o||(l=i.modules.slice(),o=!0),l[a]=u)}),o){var a=Object.assign(new e,this);return a.modules=l,a}return this},e}();n.Layer=i},"9g6q":function(e,n,t){"use strict";var l=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}(),i=this&&this.__decorate||function(e,n,t,l){var i,o=arguments.length,a=o<3?n:null===l?l=Object.getOwnPropertyDescriptor(n,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,l);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(n,t,a):i(n,t))||a);return o>3&&a&&Object.defineProperty(n,t,a),a},o=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)};Object.defineProperty(n,"__esModule",{value:!0});var a=t("eEV6"),u=t("PsbM"),c=t("N4Uw"),r=function(e){function n(t){var l=e.call(this)||this;return t?(t instanceof n?l.keymapAbbreviation=t.keymapAbbreviation:t instanceof u.Keymap?l.keymapAbbreviation=t.abbreviation:l.keymapAbbreviation=t,l):l}return l(n,e),n.prototype.fromJsonObject=function(e){return this.assertKeyActionType(e),this.keymapAbbreviation=e.keymapAbbreviation,this},n.prototype.toJsonObject=function(){return{keyActionType:c.keyActionType.SwitchKeymapAction,keymapAbbreviation:this.keymapAbbreviation}},n.prototype.toBinary=function(e,n){var t=this,l=n.keymaps.findIndex(function(e){return e.abbreviation===t.keymapAbbreviation});e.writeUInt8(c.KeyActionId.SwitchKeymapAction),e.writeUInt8(l)},n.prototype.toString=function(){return'<SwitchKeymapAction keymapAbbreviation="'+this.keymapAbbreviation+'">'},n.prototype.renameKeymap=function(e,t){return this.keymapAbbreviation!==e?this:new n(t)},n.prototype.getName=function(){return"SwitchKeymapAction"},n}(c.KeyAction);n.SwitchKeymapAction=r;var s=function(e){function n(n){var t=e.call(this)||this;return t.keymapIndex=n,t}return l(n,e),n.prototype.fromBinary=function(e){return e.readUInt8(),this.keymapIndex=e.readUInt8(),this},n.prototype.toBinary=function(e){e.writeUInt8(c.KeyActionId.SwitchKeymapAction),e.writeUInt8(this.keymapIndex)},n.prototype.toJsonObject=function(){throw new Error("UnresolvedSwitchKeymapAction cannot be serialized directly. Convert it to SwitchKeymapAction first.")},n.prototype.resolve=function(e){return new r(e[this.keymapIndex])},n.prototype.getName=function(){return"UnresolvedSwitchKeymapAction"},i([a.assertUInt8,o("design:type",Number)],n.prototype,"keymapIndex",void 0),n}(c.KeyAction);n.UnresolvedSwitchKeymapAction=s},APjS:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=function(){function e(){}return e.appStarted="app-started",e.getAppStartInfo="app-get-start-info",e.getAppStartInfoReply="app-get-start-info-reply",e.exit="app-exit",e.openUrl="open-url",e}(),i=function(){function e(){}return e.checkingForUpdate="checking-for-update",e.updateAvailable="update-available",e.updateNotAvailable="update-not-available",e.autoUpdateError="auto-update-error",e.autoUpdateDownloaded="update-downloaded",e.autoUpdateDownloadProgress="auto-update-download-progress",e.updateAndRestart="update-and-restart",e.checkForUpdate="check-for-update",e.checkForUpdateNotAvailable="check-for-update-not-available",e}(),o=function(){function e(){}return e.setPrivilegeOnLinux="set-privilege-on-linux",e.setPrivilegeOnLinuxReply="set-privilege-on-linux-reply",e.deviceConnectionStateChanged="device-connection-state-changed",e.saveUserConfiguration="device-save-user-configuration",e.saveUserConfigurationReply="device-save-user-configuration-reply",e.loadConfigurations="device-load-configuration",e.loadConfigurationReply="device-load-configuration-reply",e.updateFirmware="device-update-firmware",e.updateFirmwareReply="device-update-firmware-reply",e.startConnectionPoller="device-start-connection-poller",e}(),a=function(){function e(){}return e.app=l,e.autoUpdater=i,e.device=o,e}();n.IpcEvents=a},B8XE:function(e,n,t){"use strict";var l=this&&this.__decorate||function(e,n,t,l){var i,o=arguments.length,a=o<3?n:null===l?l=Object.getOwnPropertyDescriptor(n,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,l);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(n,t,a):i(n,t))||a);return o>3&&a&&Object.defineProperty(n,t,a),a},i=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("eEV6"),a=t("CTXo"),u=function(){function e(e){e&&(this.id=e.id,this.keyActions=e.keyActions.map(function(e){return a.KeyActionHelper.createKeyAction(e)}))}return e.prototype.fromJsonObject=function(e,n){return this.id=e.id,this.keyActions=e.keyActions.map(function(e){return a.KeyActionHelper.createKeyAction(e,n)}),this},e.prototype.fromBinary=function(e,n){this.id=e.readUInt8();var t=e.readCompactLength();this.keyActions=[];for(var l=0;l<t;++l)this.keyActions.push(a.KeyActionHelper.createKeyAction(e,n));return this},e.prototype.toJsonObject=function(e){return{id:this.id,keyActions:this.keyActions.map(function(n){return!n||!e&&(n instanceof a.PlayMacroAction||n instanceof a.SwitchKeymapAction)?null:n.toJsonObject(e)})}},e.prototype.toBinary=function(e,n){e.writeUInt8(this.id);var t=new a.NoneAction;e.writeArray(this.keyActions,function(e,l){l?l.toBinary(e,n):t.toBinary(e)})},e.prototype.toString=function(){return'<Module id="'+this.id+'">'},e.prototype.renameKeymap=function(n,t){var l,i=this,o=!1;if(this.keyActions.forEach(function(e,a){if(e){var u=e.renameKeymap(n,t);u!==e&&(o||(l=i.keyActions.slice(),o=!0),l[a]=u)}}),o){var a=Object.assign(new e,this);return a.keyActions=l,a}return this},l([o.assertUInt8,i("design:type",Number)],e.prototype,"id",void 0),e}();n.Module=u},BQhH:function(e,n,t){"use strict";var l=this&&this.__decorate||function(e,n,t,l){var i,o=arguments.length,a=o<3?n:null===l?l=Object.getOwnPropertyDescriptor(n,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,l);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(n,t,a):i(n,t))||a);return o>3&&a&&Object.defineProperty(n,t,a),a},i=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("eEV6"),a=function(){function e(){}return e.prototype.fromJsonObject=function(e){return this.signature=e.signature,this.majorVersion=e.majorVersion,this.minorVersion=e.minorVersion,this.patchVersion=e.patchVersion,this.brandId=e.brandId,this.deviceId=e.deviceId,this.uniqueId=e.uniqueId,this.isVendorModeOn=e.isVendorModeOn,this.isIso=e.isIso,this},e.prototype.fromBinary=function(e){return this.signature=e.readString(),this.majorVersion=e.readUInt8(),this.minorVersion=e.readUInt8(),this.patchVersion=e.readUInt8(),this.brandId=e.readUInt8(),this.deviceId=e.readUInt8(),this.uniqueId=e.readUInt32(),this.isVendorModeOn=e.readBoolean(),this.isIso=e.readBoolean(),this},e.prototype.toJsonObject=function(){return{signature:this.signature,majorVersion:this.majorVersion,minorVersion:this.minorVersion,patchVersion:this.patchVersion,brandId:this.brandId,deviceId:this.deviceId,uniqueId:this.uniqueId,isVendorModeOn:this.isVendorModeOn,isIso:this.isIso}},e.prototype.toBinary=function(e){e.writeString(this.signature),e.writeUInt8(this.majorVersion),e.writeUInt8(this.minorVersion),e.writeUInt8(this.patchVersion),e.writeUInt8(this.brandId),e.writeUInt8(this.deviceId),e.writeUInt32(this.uniqueId),e.writeBoolean(this.isVendorModeOn),e.writeBoolean(this.isIso)},e.prototype.toString=function(){return'<HardwareConfiguration signature="'+this.signature+'">'},l([o.assertUInt8,i("design:type",Number)],e.prototype,"majorVersion",void 0),l([o.assertUInt8,i("design:type",Number)],e.prototype,"minorVersion",void 0),l([o.assertUInt8,i("design:type",Number)],e.prototype,"patchVersion",void 0),l([o.assertUInt8,i("design:type",Number)],e.prototype,"brandId",void 0),l([o.assertUInt8,i("design:type",Number)],e.prototype,"deviceId",void 0),l([o.assertUInt32,i("design:type",Number)],e.prototype,"uniqueId",void 0),e}();n.HardwareConfiguration=a},C4aZ:function(e,n,t){"use strict";function l(e,n){switch(void 0===e&&(e=o),n.type){case i.a.UPDATE_AVAILABLE:var t=Object.assign({},e);return t.updateAvailable=!0,t;case i.a.UPDATE_DOWNLOADED:var t=Object.assign({},e);return t.updateDownloaded=!0,t;case i.a.DO_NOT_UPDATE_APP:var t=Object.assign({},e);return t.doNotUpdateApp=!0,t;default:return e}}n.b=l,t.d(n,"a",function(){return a});var i=t("vBds"),o={updateAvailable:!1,updateDownloaded:!1,doNotUpdateApp:!1},a=function(e){return e.updateDownloaded&&!e.doNotUpdateApp}},CTXo:function(e,n,t){"use strict";function l(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}Object.defineProperty(n,"__esModule",{value:!0}),l(t("N4Uw")),l(t("ycRK")),l(t("CyG/")),l(t("GflN")),l(t("TMX7")),l(t("NwIl")),l(t("9g6q")),l(t("K7Qy"));var i=t("FOCG");n.KeyActionHelper=i.Helper},CV5A:function(e,n,t){"use strict";t.d(n,"a",function(){return l});var l=function(){function e(){}return e.prototype.getConfig=function(){return JSON.parse(localStorage.getItem("config"))},e.prototype.saveConfig=function(e){localStorage.setItem("config",JSON.stringify(e.toJsonObject()))},e.prototype.getAutoUpdateSettings=function(){return JSON.parse(localStorage.getItem("auto-update-settings"))},e.prototype.saveAutoUpdateSettings=function(e){localStorage.setItem("auto-update-settings",JSON.stringify(e))},e}()},CVbL:function(e,n){e.exports={isDefault:!1,abbreviation:"EMY",name:"Empty keymap",description:"None of the keys are bind to any key action. It is ideal if you want to start creating your keymap from the ground up.",layers:[{modules:[{id:0,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{id:1,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]},{modules:[{id:0,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{id:1,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]},{modules:[{id:0,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{id:1,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]},{modules:[{id:0,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{id:1,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]}]}},"CyG/":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.basic=0]="basic",e[e.shortMedia=1]="shortMedia",e[e.longMedia=2]="longMedia",e[e.system=3]="system"}(n.KeystrokeType||(n.KeystrokeType={}))},CyOy:function(e,n,t){"use strict";t.d(n,"a",function(){return o}),t.d(n,"j",function(){return a}),t.d(n,"k",function(){return u}),t.d(n,"b",function(){return c}),t.d(n,"f",function(){return r}),t.d(n,"g",function(){return s}),t.d(n,"l",function(){return d}),t.d(n,"h",function(){return p}),t.d(n,"i",function(){return y}),t.d(n,"c",function(){return f}),t.d(n,"e",function(){return m}),t.d(n,"m",function(){return k}),t.d(n,"r",function(){return h}),t.d(n,"p",function(){return g}),t.d(n,"q",function(){return b}),t.d(n,"n",function(){return v}),t.d(n,"o",function(){return A}),t.d(n,"d",function(){return T});var l=t("UCSK"),i=(t.n(l),"[device] "),o={SET_PRIVILEGE_ON_LINUX:Object(l.type)(i+"set privilege on linux"),SET_PRIVILEGE_ON_LINUX_REPLY:Object(l.type)(i+"set privilege on linux reply"),CONNECTION_STATE_CHANGED:Object(l.type)(i+"connection state changed"),SAVE_CONFIGURATION:Object(l.type)(i+"save configuration"),SAVE_CONFIGURATION_REPLY:Object(l.type)(i+"save configuration reply"),SAVING_CONFIGURATION:Object(l.type)(i+"saving configuration"),SHOW_SAVE_TO_KEYBOARD_BUTTON:Object(l.type)(i+"show save to keyboard button"),SAVE_TO_KEYBOARD_SUCCESS:Object(l.type)(i+"save to keyboard success"),SAVE_TO_KEYBOARD_FAILED:Object(l.type)(i+"save to keyboard failed"),HIDE_SAVE_TO_KEYBOARD_BUTTON:Object(l.type)(i+"hide save to keyboard button"),RESET_USER_CONFIGURATION:Object(l.type)(i+"reset user configuration"),RESET_MOUSE_SPEED_SETTINGS:Object(l.type)(i+"reset mouse speed settings"),UPDATE_FIRMWARE:Object(l.type)(i+"update firmware"),UPDATE_FIRMWARE_WITH:Object(l.type)(i+"update firmware with"),UPDATE_FIRMWARE_REPLY:Object(l.type)(i+"update firmware reply"),UPDATE_FIRMWARE_SUCCESS:Object(l.type)(i+"update firmware success"),UPDATE_FIRMWARE_FAILED:Object(l.type)(i+"update firmware failed"),UPDATE_FIRMWARE_OK_BUTTON:Object(l.type)(i+"update firmware ok button click")},a=function(){function e(){this.type=o.SET_PRIVILEGE_ON_LINUX}return e}(),u=function(){function e(e){this.payload=e,this.type=o.SET_PRIVILEGE_ON_LINUX_REPLY}return e}(),c=function(){function e(e){this.payload=e,this.type=o.CONNECTION_STATE_CHANGED}return e}(),r=function(){function e(){this.type=o.SAVE_CONFIGURATION}return e}(),s=function(){function e(e){this.payload=e,this.type=o.SAVE_CONFIGURATION_REPLY}return e}(),d=function(){function e(){this.type=o.SHOW_SAVE_TO_KEYBOARD_BUTTON}return e}(),p=function(){function e(){this.type=o.SAVE_TO_KEYBOARD_SUCCESS}return e}(),y=function(){function e(){this.type=o.SAVE_TO_KEYBOARD_FAILED}return e}(),f=function(){function e(){this.type=o.HIDE_SAVE_TO_KEYBOARD_BUTTON}return e}(),m=function(){function e(){this.type=o.RESET_USER_CONFIGURATION}return e}(),k=function(){function e(){this.type=o.UPDATE_FIRMWARE}return e}(),h=function(){function e(e){this.payload=e,this.type=o.UPDATE_FIRMWARE_WITH}return e}(),g=function(){function e(e){this.payload=e,this.type=o.UPDATE_FIRMWARE_REPLY}return e}(),b=function(){function e(){this.type=o.UPDATE_FIRMWARE_SUCCESS}return e}(),v=function(){function e(e){this.payload=e,this.type=o.UPDATE_FIRMWARE_FAILED}return e}(),A=function(){function e(){this.type=o.UPDATE_FIRMWARE_OK_BUTTON}return e}(),T=function(){function e(){this.type=o.RESET_MOUSE_SPEED_SETTINGS}return e}()},D4Ey:function(e,n,t){"use strict";var l=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}(),i=this&&this.__decorate||function(e,n,t,l){var i,o=arguments.length,a=o<3?n:null===l?l=Object.getOwnPropertyDescriptor(n,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,l);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(n,t,a):i(n,t))||a);return o>3&&a&&Object.defineProperty(n,t,a),a},o=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)};Object.defineProperty(n,"__esModule",{value:!0});var a=t("eEV6"),u=t("gx91"),c=function(e){function n(n){var t=e.call(this)||this;return n?(t.delay=n.delay,t):t}return l(n,e),n.prototype.fromJsonObject=function(e){return this.assertMacroActionType(e),this.delay=e.delay,this},n.prototype.fromBinary=function(e){return this.readAndAssertMacroActionId(e),this.delay=e.readUInt16(),this},n.prototype.toJsonObject=function(){return{macroActionType:u.macroActionType.DelayMacroAction,delay:this.delay}},n.prototype.toBinary=function(e){e.writeUInt8(u.MacroActionId.DelayMacroAction),e.writeUInt16(this.delay)},n.prototype.toString=function(){return'<DelayMacroAction delay="'+this.delay+'">'},n.prototype.getName=function(){return"DelayMacroAction"},i([a.assertUInt16,o("design:type",Number)],n.prototype,"delay",void 0),n}(u.MacroAction);n.DelayMacroAction=c},DzqK:function(e,n){e.exports={svg:{$:{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"744.094488189",height:"1052.36220472"},rect:[{$:{id:"key-1",x:"-446.27197",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-2",x:"-379.92999",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-3",x:"-313.58899",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-4",x:"-247.24799",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-5",x:"-180.90698",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-6",x:"-114.56499",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-7",x:"-48.223999",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-8",x:"-446.27197",y:"744.89612",ry:"3.5107117",width:"96.728996",height:"63.014999",style:"fill:#333"}},{$:{id:"key-9",x:"-346.21698",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-10",x:"-279.87601",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-11",x:"-213.535",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-12",x:"-147.19299",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-14",x:"-80.852005",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-15",x:"-446.27197",y:"811.41315",ry:"3.5107117",width:"115.108",height:"63.014999",style:"fill:#333"}},{$:{id:"key-16",x:"-328.18799",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-17",x:"-262.19598",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-18",x:"-196.20499",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-19",x:"-130.21399",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-21",x:"-64.222992",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-22",x:"-446.27197",y:"877.92914",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-23",x:"-362.60098",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-24",x:"-296.26001",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-25",x:"-230.02377",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-26",x:"-163.78757",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-27",x:"-97.551331",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-28",x:"-31.315111",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-29",x:"-446.27197",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-30",x:"-363.79099",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-31",x:"-281.311",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-32",x:"-198.83099",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-33",x:"-116.351",y:"1011.1872",ry:"3.6962967",width:"115.108",height:"41.174999",style:"fill:#333"}},{$:{id:"key-34",x:"-116.351",y:"944.44714",ry:"3.5107117",width:"115.108",height:"63.014999",style:"fill:#333"}}],path:[{$:{d:"M -94.51036,646.84101 C -94.11496,648.67469 -92.68469,649.80097 -91.0281,649.78029 L 13.023181,649.78029 C 14.001631,649.78029 14.794821,650.57349 14.794821,651.55194 L 14.794821,651.55868 14.794821,673.23866 C 14.794821,674.21746 14.001631,675.01093 13.023181,675.01093 L -444.52338,675.01093 C -447.45834,675.01093 -449.83652,677.38911 -449.83652,680.32407 L -449.83652,1005.8729 C -449.83652,1008.8079 -447.45834,1011.1861 -444.52338,1011.1861 L -120.57683,1011.1861 C -119.59838,1011.1861 -118.80518,1011.9795 -118.80518,1012.9583 L -118.80518,1050.5832 -118.80518,1050.5899 C -118.80518,1051.5684 -119.59838,1052.3616 -120.57683,1052.3616 L -464.45746,1052.3616 C -469.36122,1052.166 -473.26634,1048.3775 -473.2955,1043.5236 L -473.2955,658.54868 C -473.28473,654.0371 -470.24793,650.61741 -466.01444,649.84887 L -114.09291,586.86646 C -109.10971,586.16157 -104.69185,589.2677 -103.81746,594.05779 -100.59959,612.36858 -97.46095,630.10521 -94.51036,646.84101 Z",style:"fill:#333"}}]}}},EEQ5:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.leftCtrl=0]="leftCtrl",e[e.leftShift=1]="leftShift",e[e.leftAlt=2]="leftAlt",e[e.leftSuper=3]="leftSuper",e[e.rightCtrl=4]="rightCtrl",e[e.rightShift=5]="rightShift",e[e.rightAlt=6]="rightAlt",e[e.rightSuper=7]="rightSuper",e[e.mod=8]="mod",e[e.fn=9]="fn",e[e.mouse=10]="mouse"}(n.SecondaryRoleAction||(n.SecondaryRoleAction={}))},FOCG:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=t("ct+e"),i=t("N4Uw"),o=t("ycRK"),a=t("K7Qy"),u=t("9g6q"),c=t("GflN"),r=t("NwIl"),s=t("TMX7"),d=function(){function e(){}return e.createKeyAction=function(n,t){return n instanceof i.KeyAction?e.fromKeyAction(n):n instanceof l.UhkBuffer?e.fromUhkBuffer(n,t):e.fromJSONObject(n,t)},e.fromUhkBuffer=function(e,n){var t=e.readUInt8();if(e.backtrack(),t>=i.KeyActionId.KeystrokeAction&&t<i.KeyActionId.LastKeystrokeAction)return(new o.KeystrokeAction).fromBinary(e);switch(t){case i.KeyActionId.NoneAction:return void e.readUInt8();case i.KeyActionId.SwitchLayerAction:return(new a.SwitchLayerAction).fromBinary(e);case i.KeyActionId.SwitchKeymapAction:return(new u.UnresolvedSwitchKeymapAction).fromBinary(e);case i.KeyActionId.MouseAction:return(new c.MouseAction).fromBinary(e);case i.KeyActionId.PlayMacroAction:return(new r.PlayMacroAction).fromBinary(e,n);default:throw"Invalid KeyAction first byte: "+t}},e.fromKeyAction=function(e){var n;return e instanceof o.KeystrokeAction?n=new o.KeystrokeAction(e):e instanceof a.SwitchLayerAction?n=new a.SwitchLayerAction(e):e instanceof u.SwitchKeymapAction?n=new u.SwitchKeymapAction(e):e instanceof c.MouseAction?n=new c.MouseAction(e):e instanceof r.PlayMacroAction&&(n=new r.PlayMacroAction(e)),n},e.fromJSONObject=function(e,n){if(!e)return null;switch(e.keyActionType){case i.keyActionType.KeystrokeAction:return(new o.KeystrokeAction).fromJsonObject(e);case i.keyActionType.SwitchLayerAction:return(new a.SwitchLayerAction).fromJsonObject(e);case i.keyActionType.SwitchKeymapAction:return(new u.SwitchKeymapAction).fromJsonObject(e);case i.keyActionType.MouseAction:return(new c.MouseAction).fromJsonObject(e);case i.keyActionType.PlayMacroAction:return(new r.PlayMacroAction).fromJsonObject(e,n);case i.keyActionType.NoneAction:return new s.NoneAction;default:throw'Invalid KeyAction.keyActionType: "'+e.keyActionType+'"'}},e}();n.Helper=d},FhXQ:function(e,n,t){"use strict";(function(e){t.d(n,"a",function(){return O});var l=t("BkNc"),i=t("Tl+Y"),o=t("bKpL"),a=(t.n(o),t("23I1")),u=(t.n(a),t("ADVA")),c=t("bbdN"),r=(t.n(c),t("5v8a")),s=(t.n(r),t("Pic8")),d=(t.n(s),t("9jMf")),p=(t.n(d),t("asHm")),y=(t.n(p),t("RpuY")),f=(t.n(y),t("/zHi")),m=(t.n(f),t("hbO+")),k=(t.n(m),t("UCSK")),h=(t.n(k),t("pSU5")),g=t("CV5A"),b=t("xDyD"),v=t("KN1q"),A=t("NfUz"),T=t("5II9"),M=t("CyOy"),C=t("ZRqk"),w=this&&this.__decorate||function(e,n,t,l){var i,o=arguments.length,a=o<3?n:null===l?l=Object.getOwnPropertyDescriptor(n,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,l);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(n,t,a):i(n,t))||a);return o>3&&a&&Object.defineProperty(n,t,a),a},_=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)},O=function(){function n(t,l,i,u,r,s,d){var p=this;this.actions$=t,this.dataStorageRepository=l,this.store=i,this.defaultUserConfigurationService=u,this.deviceRendererService=r,this.logService=s,this.router=d,this.loadUserConfig$=Object(a.defer)(function(){return o.Observable.of(new h.f(p.getUserConfiguration()))}),this.saveUserConfig$=this.actions$.ofType(A.a.ADD,A.a.DUPLICATE,A.a.EDIT_NAME,A.a.EDIT_ABBR,A.a.SET_DEFAULT,A.a.REMOVE,A.a.SAVE_KEY,A.a.EDIT_DESCRIPTION,A.b.ADD,A.b.DUPLICATE,A.b.EDIT_NAME,A.b.REMOVE,A.b.ADD_ACTION,A.b.SAVE_ACTION,A.b.DELETE_ACTION,A.b.REORDER_ACTION,h.a.RENAME_USER_CONFIGURATION,h.a.SET_USER_CONFIGURATION_VALUE).withLatestFrom(this.store.select(v.m),this.store.select(v.j)).mergeMap(function(e){var n=e[0],t=e[1],l=e[2];if(t.recalculateConfigurationLength(),p.dataStorageRepository.saveConfig(t),n.type===A.a.REMOVE||n.type===A.b.REMOVE){var i=n.type===A.a.REMOVE?"Keymap":"Macro",o=n.type===A.a.REMOVE?"keymap":"macro",a={path:"/"+o+"/"+n.payload,config:l.toJsonObject()};return[new h.k(t),new T.i({type:k.NotificationType.Undoable,message:i+" has been deleted",extra:{payload:a,type:A.a.UNDO_LAST_ACTION}}),new M.l]}return[new h.k(t),new T.d,new M.l]}),this.undoUserConfig$=this.actions$.ofType(A.a.UNDO_LAST_ACTION).map(function(e){return e.payload}).mergeMap(function(e){var n=(new k.UserConfiguration).fromJsonObject(e.config);return p.dataStorageRepository.saveConfig(n),p.router.navigate([e.path]),[new h.f(n)]}),this.loadConfigFromDevice$=this.actions$.ofType(h.a.LOAD_CONFIG_FROM_DEVICE).do(function(){return p.deviceRendererService.loadConfigurationFromKeyboard()}),this.loadConfigFromDeviceReply$=this.actions$.ofType(h.a.LOAD_CONFIG_FROM_DEVICE_REPLY).map(function(e){return e.payload}).mergeMap(function(e){if(!e.success)return[new T.i({type:k.NotificationType.Error,message:e.error})];var t=[];try{var l=n.getUserConfigFromDeviceResponse(e.userConfiguration);t.push(new h.f(l))}catch(e){p.logService.error("Eeprom user-config parse error:",e),t.push(new T.i({type:k.NotificationType.Error,message:e})),t.push(new h.f(p.getUserConfiguration()))}try{var i=n.getHardwareConfigFromDeviceResponse(e.hardwareConfiguration);t.push(new T.f(i))}catch(e){p.logService.error("Eeprom hardware-config parse error:",e),t.push(new T.i({type:k.NotificationType.Error,message:e}))}return p.router.navigate(["/"]),t}),this.saveUserConfigInJsonFile$=this.actions$.ofType(h.a.SAVE_USER_CONFIG_IN_JSON_FILE).withLatestFrom(this.store.select(v.m)).do(function(e){var n=(e[0],e[1]),t=JSON.stringify(n.toJsonObject(),null,2),l=new Blob([t],{type:"text/plain"});Object(c.saveAs)(l,"UserConfiguration.json")}),this.saveUserConfigInBinFile$=this.actions$.ofType(h.a.SAVE_USER_CONFIG_IN_BIN_FILE).withLatestFrom(this.store.select(v.m)).do(function(e){var n=(e[0],e[1]),t=new k.UhkBuffer;n.toBinary(t);var l=new Blob([t.getBufferContent()]);Object(c.saveAs)(l,"UserConfiguration.bin")}),this.loadUserConfigurationFromFile$=this.actions$.ofType(h.a.LOAD_USER_CONFIGURATION_FROM_FILE).map(function(e){return e.payload}).map(function(n){try{var t=new k.UserConfiguration;if(n.filename.endsWith(".bin"))t.fromBinary(k.UhkBuffer.fromArray(n.data));else{var l=new e(n.data),i=l.toString();t.fromJsonObject(JSON.parse(i))}return t.userConfigMajorVersion?new h.b(t):new T.i({type:k.NotificationType.Error,message:"Invalid configuration specified."})}catch(e){return new T.i({type:k.NotificationType.Error,message:"Invalid configuration specified."})}})}return n.getUserConfigFromDeviceResponse=function(e){var n=JSON.parse(e),t=new k.UserConfiguration;return t.fromBinary(k.UhkBuffer.fromArray(n)),t.userConfigMajorVersion>0?t:null},n.getHardwareConfigFromDeviceResponse=function(e){var n=JSON.parse(e),t=new k.HardwareConfiguration;return t.fromBinary(k.UhkBuffer.fromArray(n)),t.uniqueId>0?t:null},n.prototype.getUserConfiguration=function(){var e,n=this.dataStorageRepository.getConfig();return n&&n.userConfigMajorVersion===this.defaultUserConfigurationService.getDefault().userConfigMajorVersion&&(e=(new k.UserConfiguration).fromJsonObject(n)),e||(e=this.defaultUserConfigurationService.getDefault()),e},n.ctorParameters=function(){return[{type:i.a},{type:g.a},{type:u.m},{type:b.a},{type:C.a},{type:k.LogService},{type:l.m}]},w([Object(i.b)(),_("design:type","function"==typeof(t=void 0!==o.Observable&&o.Observable)&&t||Object)],n.prototype,"loadUserConfig$",void 0),w([Object(i.b)(),_("design:type","function"==typeof(r=void 0!==o.Observable&&o.Observable)&&r||Object)],n.prototype,"saveUserConfig$",void 0),w([Object(i.b)(),_("design:type","function"==typeof(s=void 0!==o.Observable&&o.Observable)&&s||Object)],n.prototype,"undoUserConfig$",void 0),w([Object(i.b)({dispatch:!1}),_("design:type",Object)],n.prototype,"loadConfigFromDevice$",void 0),w([Object(i.b)(),_("design:type",Object)],n.prototype,"loadConfigFromDeviceReply$",void 0),w([Object(i.b)({dispatch:!1}),_("design:type",Object)],n.prototype,"saveUserConfigInJsonFile$",void 0),w([Object(i.b)({dispatch:!1}),_("design:type",Object)],n.prototype,"saveUserConfigInBinFile$",void 0),w([Object(i.b)(),_("design:type",Object)],n.prototype,"loadUserConfigurationFromFile$",void 0),n;var t,r,s}()}).call(n,t("SxsA").Buffer)},GflN:function(e,n,t){"use strict";var l=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}(),i=this&&this.__decorate||function(e,n,t,l){var i,o=arguments.length,a=o<3?n:null===l?l=Object.getOwnPropertyDescriptor(n,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,l);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(n,t,a):i(n,t))||a);return o>3&&a&&Object.defineProperty(n,t,a),a},o=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)};Object.defineProperty(n,"__esModule",{value:!0});var a,u=t("eEV6"),c=t("N4Uw");!function(e){e[e.leftClick=0]="leftClick",e[e.middleClick=1]="middleClick",e[e.rightClick=2]="rightClick",e[e.moveUp=3]="moveUp",e[e.moveDown=4]="moveDown",e[e.moveLeft=5]="moveLeft",e[e.moveRight=6]="moveRight",e[e.scrollUp=7]="scrollUp",e[e.scrollDown=8]="scrollDown",e[e.scrollLeft=9]="scrollLeft",e[e.scrollRight=10]="scrollRight",e[e.accelerate=11]="accelerate",e[e.decelerate=12]="decelerate"}(a=n.MouseActionParam||(n.MouseActionParam={}));var r=function(e){function n(n){var t=e.call(this)||this;return n?(t.mouseAction=n.mouseAction,t):t}return l(n,e),n.prototype.fromJsonObject=function(e){return this.assertKeyActionType(e),this.mouseAction=a[e.mouseAction],this},n.prototype.fromBinary=function(e){return this.readAndAssertKeyActionId(e),this.mouseAction=e.readUInt8(),this},n.prototype.toJsonObject=function(){return{keyActionType:c.keyActionType.MouseAction,mouseAction:a[this.mouseAction]}},n.prototype.toBinary=function(e){e.writeUInt8(c.KeyActionId.MouseAction),e.writeUInt8(this.mouseAction)},n.prototype.toString=function(){return'<MouseAction mouseAction="'+this.mouseAction+'">'},n.prototype.getName=function(){return"MouseAction"},i([u.assertEnum(a),o("design:type",Number)],n.prototype,"mouseAction",void 0),n}(c.KeyAction);n.MouseAction=r},IPNF:function(e,n){e.exports={isDefault:!1,abbreviation:"DVR",name:"DVR",description:"Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Aenean dictum sollicitudin massa, ut lacinia ipsum. Ut bibendum ipsum ac pulvinar vehicula. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam feugiat lobortis lacus, id viverra nisl varius eu. Aliquam vitae eros a augue fermentum ultricies. Nam tempus dui sed ante ultricies bibendum. In ligula velit, aliquet a felis vitae, gravida tincidunt ante. Proin euismod velit odio, at pretium lacus porta egestas. Suspendisse aliquam, lacus accumsan dapibus elementum, orci felis egestas leo, non vulputate lorem turpis nec risus. Curabitur id volutpat orci. Sed aliquet finibus iaculis. In venenatis neque ac dolor posuere, vel vestibulum augue posuere.",layers:[{modules:[{id:0,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{id:1,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]},{modules:[{id:0,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{id:1,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]},{modules:[{id:0,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{id:1,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]},{modules:[{id:0,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]},{id:1,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null]}]}]}},Ii5C:function(e,n,t){"use strict";t.d(n,"a",function(){return l});var l={showButton:!1,text:null,showProgress:!1}},K7Qy:function(e,n,t){"use strict";var l=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}(),i=this&&this.__decorate||function(e,n,t,l){var i,o=arguments.length,a=o<3?n:null===l?l=Object.getOwnPropertyDescriptor(n,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,l);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(n,t,a):i(n,t))||a);return o>3&&a&&Object.defineProperty(n,t,a),a},o=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)};Object.defineProperty(n,"__esModule",{value:!0});var a,u=t("eEV6"),c=t("N4Uw");!function(e){e[e.mod=0]="mod",e[e.fn=1]="fn",e[e.mouse=2]="mouse"}(a=n.LayerName||(n.LayerName={}));var r=function(e){function n(n){var t=e.call(this)||this;return n?(t.isLayerToggleable=n.isLayerToggleable,t.layer=n.layer,t):t}return l(n,e),n.prototype.fromJsonObject=function(e){return this.assertKeyActionType(e),this.layer=a[e.layer],this.isLayerToggleable=e.toggle,this},n.prototype.fromBinary=function(e){return this.readAndAssertKeyActionId(e),this.layer=e.readUInt8(),this.isLayerToggleable=e.readBoolean(),this},n.prototype.toJsonObject=function(){return{keyActionType:c.keyActionType.SwitchLayerAction,layer:a[this.layer],toggle:this.isLayerToggleable}},n.prototype.toBinary=function(e){e.writeUInt8(c.KeyActionId.SwitchLayerAction),e.writeUInt8(this.layer),e.writeBoolean(this.isLayerToggleable)},n.prototype.toString=function(){return'<SwitchLayerAction layer="'+this.layer+'" toggle="'+this.isLayerToggleable+'">'},n.prototype.getName=function(){return"SwitchLayerAction"},i([u.assertEnum(a),o("design:type",Number)],n.prototype,"layer",void 0),n}(c.KeyAction);n.SwitchLayerAction=r},KN1q:function(e,n,t){"use strict";t.d(n,"m",function(){return y}),t.d(n,"h",function(){return f}),t.d(n,"q",function(){return k}),t.d(n,"l",function(){return h}),t.d(n,"j",function(){return g}),t.d(n,"o",function(){return b}),t.d(n,"i",function(){return v}),t.d(n,"a",function(){return A}),t.d(n,"e",function(){return T}),t.d(n,"k",function(){return C}),t.d(n,"f",function(){return _}),t.d(n,"g",function(){return O}),t.d(n,"b",function(){return P}),t.d(n,"n",function(){return I}),t.d(n,"p",function(){return U}),t.d(n,"r",function(){return N}),t.d(n,"s",function(){return L}),t.d(n,"c",function(){return D}),t.d(n,"d",function(){return K});var l=t("5LV6"),i=(t.n(l),t("Tvzk")),o=(t.n(i),t("3XxM")),a=t("TTza"),u=t("C4aZ"),c=t("cVaD"),r=t("kGlP"),s=t("Xloh"),d=t("Ii5C"),p=t("p5Ee"),y=(o.g,a.a,c.d,r.g,u.b,s.e,p.a.production||i.storeFreeze,function(e){return e.userConfiguration}),f=Object(l.createSelector)(y,o.a),m=function(e){return e.app},k=Object(l.createSelector)(m,r.i),h=Object(l.createSelector)(m,r.f),g=Object(l.createSelector)(m,r.e),b=Object(l.createSelector)(m,r.h),v=(Object(l.createSelector)(m,r.c),Object(l.createSelector)(m,r.d)),A=Object(l.createSelector)(m,r.a),T=Object(l.createSelector)(m,r.b),M=function(e){return e.appUpdate},C=Object(l.createSelector)(M,u.a),w=function(e){return e.autoUpdateSettings},_=Object(l.createSelector)(w,c.b),O=Object(l.createSelector)(w,c.a),x=function(e){return e.device},S=Object(l.createSelector)(x,s.d),P=Object(l.createSelector)(b,S,function(e,n){return!e||n}),R=Object(l.createSelector)(x,s.c),I=Object(l.createSelector)(b,R,function(e,n){return!e||n}),E=Object(l.createSelector)(x,s.b),U=Object(l.createSelector)(b,E,function(e,n){return e?n:d.a}),N=Object(l.createSelector)(x,s.f),L=Object(l.createSelector)(x,s.g),D=Object(l.createSelector)(x,s.a),K=Object(l.createSelector)(b,x,function(e,n){return!e||n.updatingFirmware})},MByn:function(e,n){e.exports={name:"uhk-agent",private:!0,author:"Ultimate Gadget Laboratories",main:"electron/dist/electron-main.js",version:"1.1.1",firmwareVersion:"8.1.2",deviceProtocolVersion:"4.2.0",userConfigVersion:"4.0.0",hardwareConfigVersion:"1.0.0",description:"Agent is the configuration application of the Ultimate Hacking Keyboard.",repository:{type:"git",url:"git@github.com:UltimateHackingKeyboard/agent.git"},license:"GPL-3.0",engines:{node:">=8.9.1 <9.0.0",npm:">=5.6.0 <6.0.0"},devDependencies:{"@types/electron-devtools-installer":"2.0.2","@types/electron-settings":"3.0.0","@types/fs-extra":"4.0.5","@types/jasmine":"2.6.0","@types/jsonfile":"4.0.1","@types/node":"8.0.53","@types/node-hid":"0.5.2","@types/request":"2.0.8","@types/usb":"1.1.3",autoprefixer:"6.5.3",buffer:"5.0.6","copy-webpack-plugin":"4.0.1","core-js":"2.4.1","cross-env":"5.0.5",decompress:"4.2.0","decompress-tarbz2":"^4.1.1",devtron:"1.4.0",electron:"1.7.11","electron-builder":"19.45.5","electron-debug":"1.4.0","electron-devtools-installer":"2.2.0","electron-log":"2.2.9","electron-rebuild":"1.6.0","electron-settings":"3.1.2","exports-loader":"0.6.3","file-loader":"0.10.0","fs-extra":"4.0.2",jsonfile:"4.0.0",lerna:"2.0.0",mkdirp:"0.5.1","npm-run-all":"4.0.2","pre-commit":"1.2.2",request:"2.83.0",rimraf:"2.6.1","standard-version":"4.2.0",stylelint:"7.13.0","svg-sprite":"1.3.7","ts-loader":"2.3.1","ts-node":"3.0.4",tslint:"5.5.0",typescript:"2.5.2",webpack:"2.4.1"},"pre-commit":["precommit-msg"],scripts:{postinstall:"lerna bootstrap","precommit-msg":"Git precommit hook is running... & exit 0",test:"run-p -sn test:test-serializer test:uhk-common","test:test-serializer":"lerna exec --scope test-serializer npm test","test:uhk-common":"lerna exec --scope uhk-common npm test","test:uhk-web":"lerna exec --scope uhk-web npm test",lint:"run-s -scn lint:ts lint:style","lint:ts":"run-p -sn lint:ts:electron-main lint:ts:electron-renderer lint:ts:web lint:ts:test-serializer lint:ts:uhk-usb","lint:ts:electron-main":"tslint --type-check --project ./packages/uhk-agent/tsconfig.json","lint:ts:electron-renderer":"tslint --type-check --project ./packages/uhk-web/src/tsconfig.renderer.json","lint:ts:web":"tslint --type-check --project ./packages/uhk-web/src/tsconfig.app.json","lint:ts:test-serializer":"tslint --type-check --project ./packages/test-serializer/tsconfig.json","lint:ts:uhk-usb":"tslint --type-check --project ./packages/uhk-usb/tsconfig.json","lint:style":'stylelint "packages/uhk-agent/src/**/*.scss" "packages/uhk-web/src/**/*.scss" --syntax scss',build:"run-s build:common build:usb build:web build:electron","build:web":"lerna exec --scope uhk-web npm run build","build:electron":"cross-env AOT_BUILD=true run-s -sn build:electron:renderer build:electron:main","build:electron:main":"lerna exec --scope uhk-agent npm run build","build:electron:renderer":"lerna exec --scope uhk-web npm run build:renderer","build:common":"lerna exec --scope uhk-common npm run build","build:usb":"lerna exec --scope uhk-usb npm run build","server:web":"lerna exec --scope uhk-web npm start","server:electron":"lerna exec --scope uhk-web npm run server:renderer",electron:"lerna exec --scope uhk-agent npm start","standard-version":"standard-version",pack:"node ./scripts/release.js",sprites:"node ./scripts/generate-svg-sprites",release:"node ./scripts/release.js",clean:"lerna exec rimraf ./node_modules ./dist"},dependencies:{}}},N4Uw:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l;!function(e){e[e.NoneAction=0]="NoneAction",e[e.KeystrokeAction=1]="KeystrokeAction",e[e.LastKeystrokeAction=31]="LastKeystrokeAction",e[e.SwitchLayerAction=32]="SwitchLayerAction",e[e.SwitchKeymapAction=33]="SwitchKeymapAction",e[e.MouseAction=34]="MouseAction",e[e.PlayMacroAction=35]="PlayMacroAction"}(l=n.KeyActionId||(n.KeyActionId={})),n.keyActionType={NoneAction:"none",KeystrokeAction:"keystroke",SwitchLayerAction:"switchLayer",SwitchKeymapAction:"switchKeymap",MouseAction:"mouse",PlayMacroAction:"playMacro"};var i=function(){function e(){}return e.prototype.assertKeyActionType=function(e){var t=this.getName(),l=n.keyActionType[t];if(e.keyActionType!==l)throw"Invalid "+t+".keyActionType: "+e.keyActionType},e.prototype.readAndAssertKeyActionId=function(e){var n=this.getName(),t=e.readUInt8(),i=l[n];if(i===l.KeystrokeAction){if(t<l.KeystrokeAction||t>l.LastKeystrokeAction)throw"Invalid "+n+" first byte: "+t}else if(t!==i)throw"Invalid "+n+" first byte: "+t;return t},e.prototype.renameKeymap=function(e,n){return this},e}();n.KeyAction=i},NfUz:function(e,n,t){"use strict";var l;!function(e){function n(){return{type:e.LOAD_KEYMAPS}}function t(n){return{type:e.LOAD_KEYMAPS_SUCCESS,payload:n}}function l(n){return{type:e.ADD,payload:n}}function i(n){return{type:e.SET_DEFAULT,payload:n}}function o(n){return{type:e.REMOVE,payload:n}}function a(n){return{type:e.DUPLICATE,payload:n}}function u(n,t){return{type:e.EDIT_NAME,payload:{abbr:n,name:t}}}function c(n,t,l){return{type:e.EDIT_ABBR,payload:{name:n,abbr:t,newAbbr:l}}}function r(n,t,l,i,o){return{type:e.SAVE_KEY,payload:{keymap:n,layer:t,module:l,key:i,keyAction:o}}}function s(n){return{type:e.CHECK_MACRO,payload:n}}e.ADD="[Keymap] Add keymap",e.DUPLICATE="[Keymap] Duplicate keymap",e.EDIT_ABBR="[Keymap] Edit keymap abbreviation",e.EDIT_NAME="[Keymap] Edit keymap title",e.SAVE_KEY="[Keymap] Save key action",e.SET_DEFAULT="[Keymap] Set default option",e.REMOVE="[Keymap] Remove keymap",e.CHECK_MACRO="[Keymap] Check deleted macro",e.LOAD_KEYMAPS="[Keymap] Load keymaps",e.LOAD_KEYMAPS_SUCCESS="[Keymap] Load keymaps success",e.UNDO_LAST_ACTION="[Keymap] Undo last action",e.EDIT_DESCRIPTION="[Keymap] Edit description";var d=function(){function n(n){this.payload=n,this.type=e.EDIT_DESCRIPTION}return n}();e.EditDescriptionAction=d,e.loadKeymaps=n,e.loadKeymapsSuccess=t,e.addKeymap=l,e.setDefault=i,e.removeKeymap=o,e.duplicateKeymap=a,e.editKeymapName=u,e.editKeymapAbbr=c,e.saveKey=r,e.checkMacro=s}(l||(l={}));var i;!function(e){function n(){return{type:e.ADD}}function t(n){return{type:e.REMOVE,payload:n}}function l(n){return{type:e.DUPLICATE,payload:n}}function i(n,t){return{type:e.EDIT_NAME,payload:{id:n,name:t}}}function o(n,t){return{type:e.ADD_ACTION,payload:{id:n,action:t}}}function a(n,t,l){return{type:e.SAVE_ACTION,payload:{id:n,index:t,action:l}}}function u(n,t,l){return{type:e.DELETE_ACTION,payload:{id:n,index:t,action:l}}}function c(n,t,l){return{type:e.REORDER_ACTION,payload:{id:n,oldIndex:t,newIndex:l}}}e.PREFIX="[Macro] ",e.DUPLICATE=e.PREFIX+"Duplicate macro",e.EDIT_NAME=e.PREFIX+"Edit macro title",e.REMOVE=e.PREFIX+"Remove macro",e.ADD=e.PREFIX+"Add macro",e.ADD_ACTION=e.PREFIX+"Add macro action",e.SAVE_ACTION=e.PREFIX+"Save macro action",e.DELETE_ACTION=e.PREFIX+"Delete macro action",e.REORDER_ACTION=e.PREFIX+"Reorder macro action",e.addMacro=n,e.removeMacro=t,e.duplicateMacro=l,e.editMacroName=i,e.addMacroAction=o,e.saveMacroAction=a,e.deleteMacroAction=u,e.reorderMacroAction=c}(i||(i={})),t.d(n,"a",function(){return l}),t.d(n,"b",function(){return i})},NwIl:function(e,n,t){"use strict";var l=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}(),i=this&&this.__decorate||function(e,n,t,l){var i,o=arguments.length,a=o<3?n:null===l?l=Object.getOwnPropertyDescriptor(n,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,l);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(n,t,a):i(n,t))||a);return o>3&&a&&Object.defineProperty(n,t,a),a},o=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)};Object.defineProperty(n,"__esModule",{value:!0});var a=t("eEV6"),u=t("N4Uw"),c=function(e){function n(t){var l=e.call(this)||this;return t?(l.macroId=t instanceof n?t.macroId:t.id,l):l}return l(n,e),n.prototype.fromJsonObject=function(e,n){return this.assertKeyActionType(e),this.macroId=n[e.macroIndex].id,this},n.prototype.fromBinary=function(e,n){this.readAndAssertKeyActionId(e);var t=e.readUInt8();return this.macroId=n[t].id,this},n.prototype.toJsonObject=function(e){var n=this;return{keyActionType:u.keyActionType.PlayMacroAction,macroIndex:e.findIndex(function(e){return e.id===n.macroId})}},n.prototype.toBinary=function(e,n){var t=this;e.writeUInt8(u.KeyActionId.PlayMacroAction),e.writeUInt8(n.macros.findIndex(function(e){return e.id===t.macroId}))},n.prototype.toString=function(){return'<PlayMacroAction macroId="'+this.macroId+'">'},n.prototype.getName=function(){return"PlayMacroAction"},i([a.assertUInt8,o("design:type",Number)],n.prototype,"macroId",void 0),n}(u.KeyAction);n.PlayMacroAction=c},"O2S+":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=function(){function e(){}return e.prototype.error=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];console.error(e)},e.prototype.debug=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];console.log(e)},e.prototype.silly=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];console.log(e)},e.prototype.info=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];console.info(e)},e}();n.LogService=l},PsbM:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=t("7wSx"),i=t("CTXo"),o=function(){function e(e){e&&(this.name=e.name,this.description=e.description,this.abbreviation=e.abbreviation,this.isDefault=e.isDefault,this.layers=e.layers.map(function(e){return new l.Layer(e)}))}return e.prototype.fromJsonObject=function(e,n){return this.isDefault=e.isDefault,this.abbreviation=e.abbreviation,this.name=e.name,this.description=e.description,this.layers=e.layers.map(function(e){return(new l.Layer).fromJsonObject(e,n)}),this.normalize(),this},e.prototype.fromBinary=function(e,n){return this.abbreviation=e.readString(),this.isDefault=e.readBoolean(),this.name=e.readString(),this.description=e.readString(),this.layers=e.readArray(function(e){return(new l.Layer).fromBinary(e,n)}),this.normalize(),this},e.prototype.toJsonObject=function(e){return{isDefault:this.isDefault,abbreviation:this.abbreviation,name:this.name,description:this.description,layers:this.layers.map(function(n){return n.toJsonObject(e)})}},e.prototype.toBinary=function(e,n){e.writeString(this.abbreviation),e.writeBoolean(this.isDefault),e.writeString(this.name),e.writeString(this.description),e.writeArray(this.layers,function(e,t){t.toBinary(e,n)})},e.prototype.toString=function(){return'<Keymap abbreviation="'+this.abbreviation+'" name="'+this.name+'">'},e.prototype.renameKeymap=function(n,t){var l,i=this,o=!1;if(this.layers.forEach(function(e,a){var u=e.renameKeymap(n,t);u!==e&&(o||(l=i.layers.slice(),o=!0),l[a]=u)}),o){var a=Object.assign(new e,this);return a.layers=l,a}return this},e.prototype.normalize=function(){if(!(this.layers.length<1))for(var e=0;e<this.layers[0].modules.length&&e<2;e++)for(var n=this.layers[0].modules[e],t=0;t<n.keyActions.length;t++){var l=n.keyActions[t];if(l instanceof i.SwitchLayerAction){var o=l.layer+1;this.layers.length<o&&console.error(this.name+" has not enough layer. Need: "+o)}for(var a=1;a<this.layers.length;a++){var u=this.layers[a];if(u.modules.length<e)console.error(this.name+".layers["+a+"] has not enough module. Need: "+e);else{var c=u.modules[e],r=c.keyActions[t];if(l instanceof i.SwitchLayerAction){if(a-1===l.layer){if(r instanceof i.SwitchLayerAction){if(r.layer===l.layer&&r.isLayerToggleable===l.isLayerToggleable)continue;var s=this.name+".layers["+a+"]modules["+e+"].keyActions["+t+"] is different switch layer. "+r+" will be override with "+l;console.warn(s)}else{var s=this.name+".layers["+a+"]modules["+e+"].keyActions["+t+"] is not switch layer. "+r+" will be override with "+l;console.warn(s)}c.keyActions[t]=i.KeyActionHelper.createKeyAction(l)}}else if(r instanceof i.SwitchLayerAction){var s=this.name+".layers["+a+"]modules["+e+"].keyActions["+t+"] is switch layer action, but the base key action is not switch layer action, so will delete";console.warn(s),c.keyActions[t]=null}}}}},e}();n.Keymap=o},QCMk:function(e,n,t){function l(e){return t(i(e))}function i(e){var n=o[e];if(!(n+1))throw new Error("Cannot find module '"+e+"'.");return n}var o={"./DVR.json":"IPNF","./EMY.json":"CVbL","./QTY.json":"rbX9","./VIM.json":"+lZ+"};l.keys=function(){return Object.keys(o)},l.resolve=i,e.exports=l,l.id="QCMk"},Rrx5:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}(t("O2S+"))},SGBA:function(e,n,t){"use strict";var l=this&&this.__decorate||function(e,n,t,l){var i,o=arguments.length,a=o<3?n:null===l?l=Object.getOwnPropertyDescriptor(n,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,l);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(n,t,a):i(n,t))||a);return o>3&&a&&Object.defineProperty(n,t,a),a},i=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("eEV6"),a=function(){function e(){}return e.prototype.fromJsonObject=function(e){return this.id=e.id,this.pointerMode=e.pointerMode,this.deceleratedPointerSpeedMultiplier=e.deceleratedPointerSpeedMultiplier,this.basePointerSpeedMultiplier=e.basePointerSpeedMultiplier,this.acceleratedPointerSpeedMultiplier=e.acceleratedPointerSpeedMultiplier,this.angularShift=e.angularShift,this.modLayerPointerFunction=e.modLayerPointerFunction,this.fnLayerPointerFunction=e.fnLayerPointerFunction,this.mouseLayerPointerFunction=e.mouseLayerPointerFunction,this},e.prototype.fromBinary=function(e){return this.id=e.readUInt8(),this.pointerMode=e.readInt8(),this.deceleratedPointerSpeedMultiplier=e.readUInt8(),this.basePointerSpeedMultiplier=e.readUInt8(),this.acceleratedPointerSpeedMultiplier=e.readUInt8(),this.angularShift=e.readUInt16(),this.modLayerPointerFunction=e.readUInt8(),this.fnLayerPointerFunction=e.readUInt8(),this.mouseLayerPointerFunction=e.readUInt8(),this},e.prototype.toJsonObject=function(){return{id:this.id,pointerMode:this.pointerMode,deceleratedPointerSpeedMultiplier:this.deceleratedPointerSpeedMultiplier,basePointerSpeedMultiplier:this.basePointerSpeedMultiplier,acceleratedPointerSpeedMultiplier:this.acceleratedPointerSpeedMultiplier,angularShift:this.angularShift,modeLayerPointerFunction:this.modLayerPointerFunction,fnLayerPointerFunction:this.fnLayerPointerFunction,mouseLayerPointerFunction:this.mouseLayerPointerFunction}},e.prototype.toBinary=function(e){e.writeUInt8(this.id),e.writeUInt8(this.pointerMode),e.writeUInt8(this.deceleratedPointerSpeedMultiplier),e.writeUInt8(this.basePointerSpeedMultiplier),e.writeUInt8(this.acceleratedPointerSpeedMultiplier),e.writeUInt16(this.angularShift),e.writeUInt8(this.modLayerPointerFunction),e.writeUInt8(this.fnLayerPointerFunction),e.writeUInt8(this.mouseLayerPointerFunction)},e.prototype.toString=function(){return'<ModuleConfiguration id="'+this.id+'" >'},l([o.assertUInt8,i("design:type",Number)],e.prototype,"id",void 0),l([o.assertUInt8,i("design:type",Number)],e.prototype,"pointerMode",void 0),l([o.assertUInt8,i("design:type",Number)],e.prototype,"deceleratedPointerSpeedMultiplier",void 0),l([o.assertUInt8,i("design:type",Number)],e.prototype,"basePointerSpeedMultiplier",void 0),l([o.assertUInt8,i("design:type",Number)],e.prototype,"acceleratedPointerSpeedMultiplier",void 0),l([o.assertUInt16,i("design:type",Number)],e.prototype,"angularShift",void 0),l([o.assertUInt8,i("design:type",Number)],e.prototype,"modLayerPointerFunction",void 0),l([o.assertUInt8,i("design:type",Number)],e.prototype,"fnLayerPointerFunction",void 0),l([o.assertUInt8,i("design:type",Number)],e.prototype,"mouseLayerPointerFunction",void 0),e}();n.ModuleConfiguration=a},TMX7:function(e,n,t){"use strict";var l=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}();Object.defineProperty(n,"__esModule",{value:!0});var i=t("N4Uw"),o=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return l(n,e),n.prototype.fromJsonObject=function(e){return this.assertKeyActionType(e),this},n.prototype.fromBinary=function(e){return this.readAndAssertKeyActionId(e),this},n.prototype.toJsonObject=function(){return{keyActionType:i.keyActionType.NoneAction}},n.prototype.toBinary=function(e){e.writeUInt8(i.KeyActionId.NoneAction)},n.prototype.toString=function(){return"<NoneAction>"},n.prototype.getName=function(){return"NoneAction"},n}(i.KeyAction);n.NoneAction=o},TTza:function(e,n,t){"use strict";function l(e,n){switch(void 0===e&&(e=o),n.type){case i.a.LOAD_KEYMAPS_SUCCESS:return n.payload;default:return e}}n.a=l;var i=t("NfUz"),o=[]},UCSK:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),function(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}(t("f8fa"))},XLpm:function(e,n){e.exports={svg:{$:{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"744.094488189",height:"1052.36220472"},rect:[{$:{id:"key-1",x:"-446.27197",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-2",x:"-379.92999",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-3",x:"-313.58899",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-4",x:"-247.24799",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-5",x:"-180.90698",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-6",x:"-114.56499",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-7",x:"-48.223999",y:"678.38013",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-8",x:"-446.27197",y:"744.89612",ry:"3.5107117",width:"96.728996",height:"63.014999",style:"fill:#333"}},{$:{id:"key-9",x:"-346.21698",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-10",x:"-279.87601",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-11",x:"-213.535",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-12",x:"-147.19299",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-14",x:"-80.852005",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-15",x:"-446.27197",y:"811.41315",ry:"3.5107117",width:"115.108",height:"63.014999",style:"fill:#333"}},{$:{id:"key-16",x:"-328.18799",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-17",x:"-262.19598",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-18",x:"-196.20499",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-19",x:"-130.21399",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-21",x:"-64.222992",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-22",x:"-446.27197",y:"877.92914",ry:"3.5107117",width:"146.686",height:"63.014999",style:"fill:#333"}},{$:{id:"key-24",x:"-296.26001",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-25",x:"-230.02377",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-26",x:"-163.78757",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-27",x:"-97.551331",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-28",x:"-31.315111",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-29",x:"-446.27197",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-30",x:"-363.79099",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-31",x:"-281.311",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-32",x:"-198.83099",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-33",x:"-116.351",y:"1011.1872",ry:"3.6962967",width:"115.108",height:"41.174999",style:"fill:#333"}},{$:{id:"key-34",x:"-116.351",y:"944.44714",ry:"3.5107117",width:"115.108",height:"63.014999",style:"fill:#333"}}],path:[{$:{d:"M -94.51036,646.84101 C -94.11496,648.67469 -92.68469,649.80097 -91.0281,649.78029 L 13.023181,649.78029 C 14.001631,649.78029 14.794821,650.57349 14.794821,651.55194 L 14.794821,651.55868 14.794821,673.23866 C 14.794821,674.21746 14.001631,675.01093 13.023181,675.01093 L -444.52338,675.01093 C -447.45834,675.01093 -449.83652,677.38911 -449.83652,680.32407 L -449.83652,1005.8729 C -449.83652,1008.8079 -447.45834,1011.1861 -444.52338,1011.1861 L -120.57683,1011.1861 C -119.59838,1011.1861 -118.80518,1011.9795 -118.80518,1012.9583 L -118.80518,1050.5832 -118.80518,1050.5899 C -118.80518,1051.5684 -119.59838,1052.3616 -120.57683,1052.3616 L -464.45746,1052.3616 C -469.36122,1052.166 -473.26634,1048.3775 -473.2955,1043.5236 L -473.2955,658.54868 C -473.28473,654.0371 -470.24793,650.61741 -466.01444,649.84887 L -114.09291,586.86646 C -109.10971,586.16157 -104.69185,589.2677 -103.81746,594.05779 -100.59959,612.36858 -97.46095,630.10521 -94.51036,646.84101 Z",style:"fill:#333"}}]}}},Xloh:function(e,n,t){"use strict";function l(e,n){switch(void 0===e&&(e=r),n.type){case o.a.CONNECTION_STATE_CHANGED:var t=n.payload;return c({},e,{connected:t.connected,hasPermission:t.hasPermission});case o.a.SAVING_CONFIGURATION:return c({},e,{savingToKeyboard:!0});case o.a.SHOW_SAVE_TO_KEYBOARD_BUTTON:return c({},e,{saveToKeyboard:{showButton:!0,text:"Save to keyboard",action:new o.f}});case o.a.SAVE_CONFIGURATION:return c({},e,{saveToKeyboard:{showButton:!0,text:"Saving",showProgress:!0}});case o.a.SAVE_TO_KEYBOARD_SUCCESS:return c({},e,{saveToKeyboard:{showButton:!0,text:"Saved!",action:null}});case o.a.SAVE_TO_KEYBOARD_FAILED:return c({},e,{saveToKeyboard:{showButton:!0,text:"Save to keyboard",action:new o.f}});case o.a.HIDE_SAVE_TO_KEYBOARD_BUTTON:return c({},e,{saveToKeyboard:u.a});case o.a.UPDATE_FIRMWARE_WITH:case o.a.UPDATE_FIRMWARE:return c({},e,{updatingFirmware:!0,firmwareUpdateFinished:!1,log:[{message:"Start flashing firmware",cssClass:i.standard}]});case o.a.UPDATE_FIRMWARE_SUCCESS:return c({},e,{updatingFirmware:!1,firmwareUpdateFinished:!0});case o.a.UPDATE_FIRMWARE_FAILED:var l={message:n.payload.message,cssClass:i.error};return c({},e,{updatingFirmware:!1,firmwareUpdateFinished:!0,log:e.log.concat([l])});case a.a.ELECTRON_MAIN_LOG_RECEIVED:if(!e.updatingFirmware)return e;var s=n.payload;if(s.message.indexOf("UHK Device not found:")>-1)return e;var l={message:s.message,cssClass:"error"===s.level?i.error:i.standard};return c({},e,{log:e.log.concat([l])});default:return e}}var i,o=t("CyOy"),a=t("5II9"),u=t("Ii5C");!function(e){e.standard="xterm-standard",e.error="xterm-error"}(i||(i={})),n.e=l,t.d(n,"f",function(){return s}),t.d(n,"d",function(){return d}),t.d(n,"c",function(){return p}),t.d(n,"b",function(){return y}),t.d(n,"g",function(){return f}),t.d(n,"a",function(){return m});var c=this&&this.__assign||Object.assign||function(e){for(var n,t=1,l=arguments.length;t<l;t++){n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r={connected:!0,hasPermission:!0,saveToKeyboard:u.a,updatingFirmware:!1,firmwareUpdateFinished:!1,log:[{message:"",cssClass:i.standard}]},s=function(e){return e.updatingFirmware},d=function(e){return e.connected||e.updatingFirmware},p=function(e){return e.hasPermission},y=function(e){return e.saveToKeyboard},f=function(e){return e.log},m=function(e){return!e.firmwareUpdateFinished}},Yo9w:function(e,n,t){"use strict";function l(e){return wl["\u0275vid"](2,[(e()(),wl["\u0275eld"](0,0,null,null,14,"span",[["class","uhk-message-wrapper"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,2,"img",[["class","agent-logo spin-logo"],["src","assets/images/agent-icon.png"]],null,null,null,null,null)),wl["\u0275did"](3,278528,null,0,Ul.i,[wl.IterableDiffers,wl.KeyValueDiffers,wl.ElementRef,wl.Renderer],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),wl["\u0275pod"](4,{"spin-logo":0}),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](6,0,null,null,7,"div",[["class","messages"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](8,0,null,null,1,"h1",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](9,null,[" "," "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](11,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](12,null,[" "," "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){e(n,3,0,"agent-logo spin-logo",e(n,4,0,n.component.rotateLogo))},function(e,n){var t=n.component;e(n,9,0,t.header),e(n,12,0,t.subtitle)})}function i(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"uhk-message",[],null,null,null,l,Dl)),wl["\u0275did"](1,49152,null,0,Nl,[],null,null)],null,null)}function o(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"uhk-message",[["header","Cannot find your UHK"],["subtitle","Please plug it in!"]],null,null,null,l,Dl)),wl["\u0275did"](1,49152,null,0,Nl,[],{header:[0,"header"],subtitle:[1,"subtitle"]},null),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){e(n,1,0,"Cannot find your UHK","Please plug it in!")},null)}function a(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"missing-device",[],null,null,null,o,Fl)),wl["\u0275did"](1,49152,null,0,Kl,[],null,null)],null,null)}function u(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,7,"span",[["class","privilege-checker-wrapper"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,1,"uhk-message",[["header","Cannot talk to your UHK"],["subtitle","Your UHK has been detected, but its permissions are not set up yet, so Agent can't talk to it."]],null,null,null,l,Dl)),wl["\u0275did"](3,49152,null,0,Nl,[],{header:[0,"header"],subtitle:[1,"subtitle"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](5,0,null,null,1,"button",[["class","btn btn-default btn-lg btn-primary"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.setUpPermissions()&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,[" Set up permissions "])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){e(n,3,0,"Cannot talk to your UHK","Your UHK has been detected, but its permissions are not set up yet, so Agent can't talk to it.")},null)}function c(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"privilege-checker",[],null,null,null,u,Wl)),wl["\u0275did"](1,49152,null,0,Hl,[xl.m],null,null)],null,null)}function r(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](1,0,null,null,1,"uhk-message",[["header","Loading keyboard configuration..."],["subtitle","Hang tight!"]],null,null,null,l,Dl)),wl["\u0275did"](2,49152,null,0,Nl,[],{header:[0,"header"],subtitle:[1,"subtitle"],rotateLogo:[2,"rotateLogo"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "]))],function(e,n){e(n,2,0,"Loading keyboard configuration...","Hang tight!",!0)},null)}function s(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"loading-device",[],null,null,null,r,Jl)),wl["\u0275did"](1,49152,null,0,ql,[],null,null)],null,null)}function d(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,4,"div",[["class","split split-horizontal main-page-content"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,16777216,[["outlet",1]],null,1,"router-outlet",[],null,[[null,"activate"]],function(e,n,t){var l=!0,i=e.component;if("activate"===n){l=!1!==i.onActivate(t,wl["\u0275nov"](e,2))&&l}return l},null,null)),wl["\u0275did"](3,212992,null,0,Zl.q,[Zl.b,wl.ViewContainerRef,wl.ComponentFactoryResolver,[8,null],wl.ChangeDetectorRef],null,{activateEvents:"activate"}),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){e(n,3,0)},null)}function p(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"main-page",[],null,null,null,d,ni)),wl["\u0275did"](1,49152,null,0,Ql,[],null,null)],null,null)}function y(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Device configuration"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n\n"])),(e()(),wl["\u0275eld"](8,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n The device configuration contains all the keymaps, macros, and settings that are stored on the device.\n"])),(e()(),wl["\u0275ted"](-1,null,["\n\n"])),(e()(),wl["\u0275eld"](11,0,null,null,25,"ul",[["class","list-unstyled btn-list"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](13,0,null,null,7,"li",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n Download device configuration in\n "])),(e()(),wl["\u0275eld"](15,0,null,null,1,"span",[["class","btn-link"],["role","button"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.saveConfigurationInJSONFormat()&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["JSON"])),(e()(),wl["\u0275ted"](-1,null,[" or\n "])),(e()(),wl["\u0275eld"](18,0,null,null,1,"span",[["class","btn-link"],["role","button"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.saveConfigurationInBINFormat()&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["binary"])),(e()(),wl["\u0275ted"](-1,null,[" format.\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](22,0,null,null,6,"li",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](24,0,null,null,3,"label",[["class","btn btn-default btn-file"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n Upload device configuration\n "])),(e()(),wl["\u0275eld"](26,0,null,null,0,"input",[["type","file"]],null,[[null,"change"]],function(e,n,t){var l=!0,i=e.component;if("change"===n){l=!1!==i.changeFile(t)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](30,0,null,null,5,"li",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](32,16777216,null,null,2,"button",[["cancelText","No"],["class","btn btn-danger"],["confirmText","Yes"],["mwlConfirmationPopover",""],["placement","bottom"],["title","Are you sure?"]],null,[[null,"confirm"],[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==wl["\u0275nov"](e,33).togglePopover()&&l}if("confirm"===n){l=!1!==i.resetUserConfiguration()&&l}return l},null,null)),wl["\u0275did"](33,737280,null,0,ai.a,[wl.ViewContainerRef,wl.ElementRef,ui.a,wl.ComponentFactoryResolver,ci.a,wl.Renderer2,ri.b],{title:[0,"title"],confirmText:[1,"confirmText"],cancelText:[2,"cancelText"],placement:[3,"placement"]},{confirm:"confirm"}),(e()(),wl["\u0275ted"](-1,null,["Reset device configuration\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){e(n,33,0,"Are you sure?","Yes","No","bottom")},null)}function f(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"device-settings",[["class","container-fluid"]],null,null,null,y,di)),wl["\u0275did"](1,49152,null,0,oi,[xl.m],null,null)],null,null)}function m(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,0,"span",[["aria-hidden","true"],["class","glyphicon glyphicon-option-vertical"]],null,null,null,null,null))],null,null)}function k(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-square"]],null,null,null,null,null))],null,null)}function h(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-hand-pointer-o"]],null,null,null,null,null))],null,null)}function g(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-hand-rock-o"]],null,null,null,null,null))],null,null)}function b(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-hand-paper-o"]],null,null,null,null,null))],null,null)}function v(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null))],null,null)}function A(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-clock-o"]],null,null,null,null,null))],null,null)}function T(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-font"]],null,null,null,null,null))],null,null)}function M(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,0,"i",[["class","glyphicon glyphicon-trash action--trash"]],null,null,null,null,null))],null,null)}function C(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,0,"i",[["class","glyphicon glyphicon-pencil action--edit"]],null,null,null,null,null))],null,null)}function w(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-question-circle"]],null,null,null,null,null))],null,null)}function _(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,35,"div",[],null,null,null,null,null)),wl["\u0275did"](1,16384,null,0,Ul.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,m)),wl["\u0275did"](4,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,k)),wl["\u0275did"](7,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,h)),wl["\u0275did"](10,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,g)),wl["\u0275did"](13,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,b)),wl["\u0275did"](16,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,v)),wl["\u0275did"](19,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,A)),wl["\u0275did"](22,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,T)),wl["\u0275did"](25,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,M)),wl["\u0275did"](28,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,C)),wl["\u0275did"](31,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,w)),wl["\u0275did"](34,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){e(n,1,0,n.component.name);e(n,4,0,"option-vertical");e(n,7,0,"square");e(n,10,0,"hand-pointer");e(n,13,0,"hand-rock");e(n,16,0,"hand-paper");e(n,19,0,"mouse-pointer");e(n,22,0,"clock");e(n,25,0,"font");e(n,28,0,"trash");e(n,31,0,"pencil");e(n,34,0,"question-circle")},null)}function O(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"icon",[],null,null,null,_,gi)),wl["\u0275did"](1,114688,null,0,ki,[],null,null)],function(e,n){e(n,1,0)},null)}function x(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["name","question-circle"]],[[1,"data-placement",0]],null,null,_,gi)),wl["\u0275did"](1,114688,null,0,ki,[],{name:[0,"name"]},null),wl["\u0275did"](2,1589248,null,0,bi,[wl.ElementRef,ri.c],{title:[0,"title"],html:[1,"html"]},null)],function(e,n){var t=n.component;e(n,1,0,"question-circle");e(n,2,0,t.tooltip,"true")},function(e,n){e(n,0,0,wl["\u0275nov"](n,2).placement)})}function S(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,7,"label",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](3,null,["",""])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,x)),wl["\u0275did"](6,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){e(n,6,0,n.component.tooltip)},function(e,n){e(n,3,0,n.component.label)})}function P(e){return wl["\u0275vid"](0,[wl["\u0275qud"](402653184,1,{slider:0}),(e()(),wl["\u0275and"](16777216,null,null,1,null,S)),wl["\u0275did"](2,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](4,0,null,null,17,"div",[["class","slider-wrapper"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](6,0,null,null,8,"div",[["class","slider-container"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](8,0,null,null,5,"nouislider",[],[[2,"ng2-nouislider",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,n,t){var l=!0,i=e.component;if("ngModelChange"===n){l=!1!==(i.value=t)&&l}if("ngModelChange"===n){l=!1!==i.onSliderChange(t)&&l}return l},Ti.b,Ti.a)),wl["\u0275did"](9,638976,[[1,4]],0,Mi.NouisliderComponent,[wl.ElementRef,wl.Renderer2],{min:[0,"min"],max:[1,"max"],step:[2,"step"],ngModel:[3,"ngModel"],keyboard:[4,"keyboard"],tooltips:[5,"tooltips"]},null),wl["\u0275prd"](1024,null,Ci.NG_VALUE_ACCESSOR,function(e){return[e]},[Mi.NouisliderComponent]),wl["\u0275did"](11,671744,null,0,Ci.NgModel,[[8,null],[8,null],[8,null],[2,Ci.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),wl["\u0275prd"](2048,null,Ci.NgControl,null,[Ci.NgModel]),wl["\u0275did"](13,16384,null,0,Ci.NgControlStatus,[Ci.NgControl],null,null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](16,0,null,null,4,"div",[["class","slider-value"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](18,0,null,null,1,"div",[["class","value-indicator"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](19,null,[""," ",""])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,2,0,t.label);e(n,9,0,t.min,t.max,t.step,t.value,!0,!0),e(n,11,0,t.value)},function(e,n){var t=n.component;e(n,8,0,!0,wl["\u0275nov"](n,13).ngClassUntouched,wl["\u0275nov"](n,13).ngClassTouched,wl["\u0275nov"](n,13).ngClassPristine,wl["\u0275nov"](n,13).ngClassDirty,wl["\u0275nov"](n,13).ngClassValid,wl["\u0275nov"](n,13).ngClassInvalid,wl["\u0275nov"](n,13).ngClassPending),e(n,19,0,t.value,t.valueUnit)})}function R(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,2,"slider-wrapper",[],null,null,null,P,_i)),wl["\u0275prd"](5120,null,Ci.NG_VALUE_ACCESSOR,function(e){return[e]},[Ai]),wl["\u0275did"](2,4374528,null,0,Ai,[],null,null)],null,null)}function I(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,11,"div",[["class","row mouse-speed-setting"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](4,0,null,null,5,"slider-wrapper",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,n,t){var l=!0,i=e.component;if("ngModelChange"===n){l=!1!==(e.context.$implicit.value=t)&&l}if("ngModelChange"===n){l=!1!==i.onSetPropertyValue(e.context.$implicit.prop,t)&&l}return l},P,_i)),wl["\u0275did"](5,4374528,null,0,Ai,[],{label:[0,"label"],tooltip:[1,"tooltip"],min:[2,"min"],max:[3,"max"],step:[4,"step"],pips:[5,"pips"],valueUnit:[6,"valueUnit"]},null),wl["\u0275prd"](1024,null,Ci.NG_VALUE_ACCESSOR,function(e){return[e]},[Ai]),wl["\u0275did"](7,671744,null,0,Ci.NgModel,[[8,null],[8,null],[8,null],[2,Ci.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),wl["\u0275prd"](2048,null,Ci.NgControl,null,[Ci.NgModel]),wl["\u0275did"](9,16384,null,0,Ci.NgControlStatus,[Ci.NgControl],null,null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,5,0,n.context.$implicit.title,n.context.$implicit.tooltip,t.moveSettings.min,t.moveSettings.max,t.moveSettings.step,t.sliderPips,n.context.$implicit.valueUnit),e(n,7,0,n.context.$implicit.value)},function(e,n){e(n,4,0,wl["\u0275nov"](n,9).ngClassUntouched,wl["\u0275nov"](n,9).ngClassTouched,wl["\u0275nov"](n,9).ngClassPristine,wl["\u0275nov"](n,9).ngClassDirty,wl["\u0275nov"](n,9).ngClassValid,wl["\u0275nov"](n,9).ngClassInvalid,wl["\u0275nov"](n,9).ngClassPending)})}function E(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,11,"div",[["class","row mouse-speed-setting"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](4,0,null,null,5,"slider-wrapper",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,n,t){var l=!0,i=e.component;if("ngModelChange"===n){l=!1!==(e.context.$implicit.value=t)&&l}if("ngModelChange"===n){l=!1!==i.onSetPropertyValue(e.context.$implicit.prop,t)&&l}return l},P,_i)),wl["\u0275did"](5,4374528,null,0,Ai,[],{label:[0,"label"],tooltip:[1,"tooltip"],min:[2,"min"],max:[3,"max"],step:[4,"step"],pips:[5,"pips"],valueUnit:[6,"valueUnit"]},null),wl["\u0275prd"](1024,null,Ci.NG_VALUE_ACCESSOR,function(e){return[e]},[Ai]),wl["\u0275did"](7,671744,null,0,Ci.NgModel,[[8,null],[8,null],[8,null],[2,Ci.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),wl["\u0275prd"](2048,null,Ci.NgControl,null,[Ci.NgModel]),wl["\u0275did"](9,16384,null,0,Ci.NgControlStatus,[Ci.NgControl],null,null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,5,0,n.context.$implicit.title,n.context.$implicit.tooltip,t.scrollSettings.min,t.scrollSettings.max,t.scrollSettings.step,t.sliderPips,n.context.$implicit.valueUnit),e(n,7,0,n.context.$implicit.value)},function(e,n){e(n,4,0,wl["\u0275nov"](n,9).ngClassUntouched,wl["\u0275nov"](n,9).ngClassTouched,wl["\u0275nov"](n,9).ngClassPristine,wl["\u0275nov"](n,9).ngClassDirty,wl["\u0275nov"](n,9).ngClassValid,wl["\u0275nov"](n,9).ngClassInvalid,wl["\u0275nov"](n,9).ngClassPending)})}function U(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Mouse speed"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](8,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Mouse pointer speed"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275and"](16777216,null,null,1,null,I)),wl["\u0275did"](12,802816,null,0,Ul.j,[wl.ViewContainerRef,wl.TemplateRef,wl.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](14,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Mouse scroll speed"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275and"](16777216,null,null,1,null,E)),wl["\u0275did"](18,802816,null,0,Ul.j,[wl.ViewContainerRef,wl.TemplateRef,wl.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](20,16777216,null,null,2,"button",[["cancelText","No"],["class","btn btn-danger mouse-speed-reset-button"],["confirmText","Yes"],["mwlConfirmationPopover",""],["placement","top"],["title","Are you sure?"]],null,[[null,"confirm"],[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==wl["\u0275nov"](e,21).togglePopover()&&l}if("confirm"===n){l=!1!==i.resetToDefault()&&l}return l},null,null)),wl["\u0275did"](21,737280,null,0,ai.a,[wl.ViewContainerRef,wl.ElementRef,ui.a,wl.ComponentFactoryResolver,ci.a,wl.Renderer2,ri.b],{title:[0,"title"],confirmText:[1,"confirmText"],cancelText:[2,"cancelText"],placement:[3,"placement"]},{confirm:"confirm"}),(e()(),wl["\u0275ted"](-1,null,["Reset speeds to default\n"]))],function(e,n){var t=n.component;e(n,12,0,t.moveProps),e(n,18,0,t.scrollProps);e(n,21,0,"Are you sure?","Yes","No","top")},null)}function N(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"device-mouse-speed",[["class","container-fluid"]],null,null,null,U,Ri)),wl["\u0275did"](1,245760,null,0,Si,[xl.m,Oi.a],null,null)],function(e,n){e(n,1,0)},null)}function L(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["LED brightness"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](8,0,null,null,11,"div",[["class","row led-setting"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](10,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](12,0,null,null,5,"slider-wrapper",[["label","LED display icon and layer texts brightness"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,n,t){var l=!0,i=e.component;if("ngModelChange"===n){l=!1!==(i.iconsAndLayerTextsBrightness=t)&&l}if("ngModelChange"===n){l=!1!==i.onSetPropertyValue("iconsAndLayerTextsBrightness",t)&&l}return l},P,_i)),wl["\u0275did"](13,4374528,null,0,Ai,[],{label:[0,"label"],min:[1,"min"],max:[2,"max"],step:[3,"step"],pips:[4,"pips"]},null),wl["\u0275prd"](1024,null,Ci.NG_VALUE_ACCESSOR,function(e){return[e]},[Ai]),wl["\u0275did"](15,671744,null,0,Ci.NgModel,[[8,null],[8,null],[8,null],[2,Ci.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),wl["\u0275prd"](2048,null,Ci.NgControl,null,[Ci.NgModel]),wl["\u0275did"](17,16384,null,0,Ci.NgControlStatus,[Ci.NgControl],null,null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](21,0,null,null,11,"div",[["class","row led-setting"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](23,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](25,0,null,null,5,"slider-wrapper",[["label","LED display alphanumeric segments brightness"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,n,t){var l=!0,i=e.component;if("ngModelChange"===n){l=!1!==(i.alphanumericSegmentsBrightness=t)&&l}if("ngModelChange"===n){l=!1!==i.onSetPropertyValue("alphanumericSegmentsBrightness",t)&&l}return l},P,_i)),wl["\u0275did"](26,4374528,null,0,Ai,[],{label:[0,"label"],min:[1,"min"],max:[2,"max"],step:[3,"step"],pips:[4,"pips"]},null),wl["\u0275prd"](1024,null,Ci.NG_VALUE_ACCESSOR,function(e){return[e]},[Ai]),wl["\u0275did"](28,671744,null,0,Ci.NgModel,[[8,null],[8,null],[8,null],[2,Ci.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),wl["\u0275prd"](2048,null,Ci.NgControl,null,[Ci.NgModel]),wl["\u0275did"](30,16384,null,0,Ci.NgControlStatus,[Ci.NgControl],null,null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](34,0,null,null,11,"div",[["class","row led-setting"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](36,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](38,0,null,null,5,"slider-wrapper",[["label","Key backlight brightness"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,n,t){var l=!0,i=e.component;if("ngModelChange"===n){l=!1!==(i.keyBacklightBrightness=t)&&l}if("ngModelChange"===n){l=!1!==i.onSetPropertyValue("keyBacklightBrightness",t)&&l}return l},P,_i)),wl["\u0275did"](39,4374528,null,0,Ai,[],{label:[0,"label"],min:[1,"min"],max:[2,"max"],step:[3,"step"],pips:[4,"pips"]},null),wl["\u0275prd"](1024,null,Ci.NG_VALUE_ACCESSOR,function(e){return[e]},[Ai]),wl["\u0275did"](41,671744,null,0,Ci.NgModel,[[8,null],[8,null],[8,null],[2,Ci.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),wl["\u0275prd"](2048,null,Ci.NgControl,null,[Ci.NgModel]),wl["\u0275did"](43,16384,null,0,Ci.NgControlStatus,[Ci.NgControl],null,null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,13,0,"LED display icon and layer texts brightness",0,255,1,t.sliderPips),e(n,15,0,t.iconsAndLayerTextsBrightness);e(n,26,0,"LED display alphanumeric segments brightness",0,255,1,t.sliderPips),e(n,28,0,t.alphanumericSegmentsBrightness);e(n,39,0,"Key backlight brightness",0,255,1,t.sliderPips),e(n,41,0,t.keyBacklightBrightness)},function(e,n){e(n,12,0,wl["\u0275nov"](n,17).ngClassUntouched,wl["\u0275nov"](n,17).ngClassTouched,wl["\u0275nov"](n,17).ngClassPristine,wl["\u0275nov"](n,17).ngClassDirty,wl["\u0275nov"](n,17).ngClassValid,wl["\u0275nov"](n,17).ngClassInvalid,wl["\u0275nov"](n,17).ngClassPending),e(n,25,0,wl["\u0275nov"](n,30).ngClassUntouched,wl["\u0275nov"](n,30).ngClassTouched,wl["\u0275nov"](n,30).ngClassPristine,wl["\u0275nov"](n,30).ngClassDirty,wl["\u0275nov"](n,30).ngClassValid,wl["\u0275nov"](n,30).ngClassInvalid,wl["\u0275nov"](n,30).ngClassPending),e(n,38,0,wl["\u0275nov"](n,43).ngClassUntouched,wl["\u0275nov"](n,43).ngClassTouched,wl["\u0275nov"](n,43).ngClassPristine,wl["\u0275nov"](n,43).ngClassDirty,wl["\u0275nov"](n,43).ngClassValid,wl["\u0275nov"](n,43).ngClassInvalid,wl["\u0275nov"](n,43).ngClassPending)})}function D(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"device-led-brightness",[["class","container-fluid"]],null,null,null,L,Li)),wl["\u0275did"](1,245760,null,0,Ui,[xl.m],null,null)],function(e,n){e(n,1,0)},null)}function K(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,3,"li",[],null,null,null,null,null)),wl["\u0275did"](1,278528,null,0,Ul.i,[wl.IterableDiffers,wl.KeyValueDiffers,wl.ElementRef,wl.Renderer],{ngClass:[0,"ngClass"]},null),(e()(),wl["\u0275eld"](2,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](3,null,["",""]))],function(e,n){e(n,1,0,n.context.$implicit.cssClass)},function(e,n){e(n,3,0,n.context.$implicit.message)})}function j(e){return wl["\u0275vid"](2,[(e()(),wl["\u0275eld"](0,0,null,null,7,"div",[["class","wrapper"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,4,"ul",[["class","list-unstyled"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,K)),wl["\u0275did"](5,802816,null,0,Ul.j,[wl.ViewContainerRef,wl.TemplateRef,wl.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){e(n,5,0,n.component.logs)},null)}function F(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"xterm",[],null,null,null,j,$i)),wl["\u0275did"](1,49152,null,0,Vi,[],null,null)],null,null)}function V(e){return wl["\u0275vid"](0,[wl["\u0275qud"](402653184,1,{divElement:0}),(e()(),wl["\u0275eld"](1,0,null,null,47,"div",[["class","full-height"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](3,0,null,null,44,"div",[["class","flex-container"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](5,0,null,null,27,"div",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n\n "])),(e()(),wl["\u0275eld"](7,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](9,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](11,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Firmware"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](15,0,null,null,6,"p",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](16,null,["\n Flash firmware "," (bundled with Agent)\n "])),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275eld"](18,0,null,null,2,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.onUpdateFirmware()&&l}return l},null,null)),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["Flash firmware\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n\n "])),(e()(),wl["\u0275eld"](23,0,null,null,8,"p",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n Flash firmware file "])),(e()(),wl["\u0275eld"](25,0,null,null,1,"input",[["id","firmware-file-select"],["type","file"]],[[8,"disabled",0]],[[null,"change"]],function(e,n,t){var l=!0,i=e.component;if("change"===n){l=!1!==i.changeFile(t)&&l}return l},null,null)),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](28,0,null,null,2,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.onUpdateFirmwareWithFile()&&l}return l},null,null)),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["Flash firmware\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n\n "])),(e()(),wl["\u0275eld"](34,0,[[1,0],["scrollMe",1]],null,5,"div",[["class","flex-grow"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](36,0,null,null,2,"xterm",[],null,null,null,j,$i)),wl["\u0275did"](37,49152,null,0,Vi,[],{logs:[0,"logs"]},null),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](41,0,null,null,5,"div",[["class","footer"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](43,0,null,null,2,"button",[["class","btn btn-primary ok-button"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.onOkButtonClick()&&l}return l},null,null)),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["OK\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,37,0,wl["\u0275unv"](n,37,0,wl["\u0275nov"](n,38).transform(t.xtermLog$)))},function(e,n){var t=n.component;e(n,16,0,wl["\u0275unv"](n,16,0,wl["\u0275nov"](n,17).transform(t.getAgentVersionInfo$)).firmwareVersion),e(n,18,0,wl["\u0275unv"](n,18,0,wl["\u0275nov"](n,19).transform(t.flashFirmwareButtonDisbabled$))),e(n,25,0,wl["\u0275unv"](n,25,0,wl["\u0275nov"](n,26).transform(t.flashFirmwareButtonDisbabled$))),e(n,28,0,wl["\u0275unv"](n,28,0,wl["\u0275nov"](n,29).transform(t.flashFirmwareButtonDisbabled$))),e(n,43,0,wl["\u0275unv"](n,43,0,wl["\u0275nov"](n,44).transform(t.firmwareOkButtonDisabled$)))})}function B(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"device-firmware",[["class","container-fluid"]],null,null,null,V,Gi)),wl["\u0275did"](1,180224,null,0,ji,[xl.m],null,null)],null,null)}function $(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"a",[["class","undo-button"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.clickOnUndo()&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["Undo"]))],null,null)}function H(e){return wl["\u0275vid"](2,[(e()(),wl["\u0275eld"](0,0,null,null,13,"div",[["class","pull-right"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,10,"div",[["class","alert alert-warning alert-dismissible"],["role","alert"]],[[24,"@slideInOut",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](4,0,null,null,4,"button",[["aria-label","Close"],["class","close"],["type","button"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.clickOnClose()&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](6,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\xd7"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](9,null,["\n ","\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,$)),wl["\u0275did"](11,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){e(n,11,0,n.component.undoable)},function(e,n){var t=n.component;e(n,2,0,t.slideInOut),e(n,9,0,t.text)})}function G(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"undoable-notifier",[],null,null,null,H,eo)),wl["\u0275did"](1,573440,null,0,Qi,[],null,null)],null,null)}function W(e){return wl["\u0275vid"](2,[(e()(),wl["\u0275eld"](0,0,null,null,3,"div",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),wl["\u0275ncd"](null,0),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](5,0,null,null,9,"div",[["class","row"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](7,0,null,null,6,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](9,0,null,null,3,"undoable-notifier",[],null,[[null,"close"],[null,"undo"]],function(e,n,t){var l=!0,i=e.component;if("close"===n){l=!1!==i.onDismissLastNotification()&&l}if("undo"===n){l=!1!==i.onUndoLastNotification(t)&&l}return l},H,eo)),wl["\u0275did"](10,573440,null,0,Qi,[],{notification:[0,"notification"]},{close:"close",undo:"undo"}),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n\n"]))],function(e,n){var t=n.component;e(n,10,0,wl["\u0275unv"](n,10,0,wl["\u0275nov"](n,11).transform(t.undoableNotification$)))},null)}function z(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"uhk-header",[],null,null,null,W,to)),wl["\u0275did"](1,49152,null,0,Ji,[xl.m],null,null)],null,null)}function q(e){return wl["\u0275vid"](2,[wl["\u0275qud"](402653184,1,{keymapName:0}),wl["\u0275qud"](402653184,2,{keymapAbbr:0}),(e()(),wl["\u0275eld"](2,0,null,null,30,"uhk-header",[],null,null,null,W,to)),wl["\u0275did"](3,49152,null,0,Ji,[xl.m],null,null),(e()(),wl["\u0275ted"](-1,0,["\n "])),(e()(),wl["\u0275eld"](5,0,null,0,26,"div",[["class","row"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](7,0,null,null,23,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](9,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](11,0,[[1,0],["name",1]],null,1,"input",[["cancelable",""],["class","keymap__name pane-title__name"],["type","text"]],null,[[null,"change"],[null,"keyup.enter"],[null,"keyup"],[null,"focus"],[null,"keyup.escape"]],function(e,n,t){var l=!0,i=e.component;if("focus"===n){l=!1!==wl["\u0275nov"](e,12).onFocus()&&l}if("keyup.escape"===n){l=!1!==wl["\u0275nov"](e,12).onEscape()&&l}if("change"===n){l=!1!==i.editKeymapName(t.target.value)&&l}if("keyup.enter"===n){l=!1!==wl["\u0275nov"](e,11).blur()&&l}if("keyup"===n){l=!1!==i.calculateHeaderTextWidth(t.target.value)&&l}return l},null,null)),wl["\u0275did"](12,16384,null,0,uo,[wl.ElementRef,wl.Renderer],null,null),(e()(),wl["\u0275ted"](-1,null,[" keymap\n ("])),(e()(),wl["\u0275eld"](14,0,[[2,0],["abbr",1]],null,1,"input",[["cancelable",""],["class","keymap__abbrev pane-title__abbrev"],["type","text"]],[[1,"maxLength",0]],[[null,"change"],[null,"keyup.enter"],[null,"focus"],[null,"keyup.escape"]],function(e,n,t){var l=!0,i=e.component;if("focus"===n){l=!1!==wl["\u0275nov"](e,15).onFocus()&&l}if("keyup.escape"===n){l=!1!==wl["\u0275nov"](e,15).onEscape()&&l}if("change"===n){l=!1!==i.editKeymapAbbr(t.target.value)&&l}if("keyup.enter"===n){l=!1!==wl["\u0275nov"](e,14).blur()&&l}return l},null,null)),wl["\u0275did"](15,16384,null,0,uo,[wl.ElementRef,wl.Renderer],null,null),(e()(),wl["\u0275ted"](-1,null,[")\n "])),(e()(),wl["\u0275eld"](17,0,null,null,3,"i",[["class","fa keymap__is-default"],["data-placement","bottom"],["data-toggle","tooltip"]],[[1,"data-placement",0]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.setDefault()&&l}return l},null,null)),wl["\u0275did"](18,278528,null,0,Ul.i,[wl.IterableDiffers,wl.KeyValueDiffers,wl.ElementRef,wl.Renderer],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),wl["\u0275pod"](19,{"fa-star-o":0,"fa-star":1}),wl["\u0275did"](20,1589248,null,0,bi,[wl.ElementRef,ri.c],{title:[0,"title"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](22,0,null,null,1,"i",[["class","glyphicon glyphicon-trash keymap__remove pull-right"],["data-placement","bottom"],["data-toggle","tooltip"],["html","true"]],[[2,"disabled",null],[1,"data-placement",0]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.removeKeymap()&&l}return l},null,null)),wl["\u0275did"](23,1589248,null,0,bi,[wl.ElementRef,ri.c],{title:[0,"title"],html:[1,"html"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](25,0,null,null,1,"i",[["class","fa fa-files-o keymap__duplicate pull-right"],["data-placement","bottom"],["data-toggle","tooltip"],["title","Duplicate keymap"]],[[1,"data-placement",0]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.duplicateKeymap()&&l}return l},null,null)),wl["\u0275did"](26,1589248,null,0,bi,[wl.ElementRef,ri.c],{title:[0,"title"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](28,0,null,null,1,"i",[["class","fa fa-download keymap__download pull-right"],["data-placement","bottom"],["data-toggle","tooltip"],["title","Download keymap"]],[[1,"data-placement",0]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.onDownloadIconClick()&&l}return l},null,null)),wl["\u0275did"](29,1589248,null,0,bi,[wl.ElementRef,ri.c],{title:[0,"title"],html:[1,"html"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,0,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,18,0,"fa keymap__is-default",e(n,19,0,!t.keymap.isDefault,t.keymap.isDefault)),e(n,20,0,t.starTitle);e(n,23,0,t.trashTitle,"true");e(n,26,0,"Duplicate keymap");e(n,29,0,"Download keymap",!0)},function(e,n){var t=n.component;e(n,14,0,3),e(n,17,0,wl["\u0275nov"](n,20).placement),e(n,22,0,!t.deletable,wl["\u0275nov"](n,23).placement),e(n,25,0,wl["\u0275nov"](n,26).placement),e(n,28,0,wl["\u0275nov"](n,29).placement)})}function Y(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"keymap-header",[],null,[["window","resize"]],function(e,n,t){var l=!0;if("window:resize"===n){l=!1!==wl["\u0275nov"](e,1).windowResize()&&l}return l},q,ro)),wl["\u0275did"](1,573440,null,0,ao,[xl.m,wl.Renderer2],null,null)],null,null)}function J(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.selectLayer(e.context.index)&&l}return l},null,null)),(e()(),wl["\u0275ted"](1,null,["\n ","\n "]))],null,function(e,n){var t=n.component;e(n,0,0,n.context.index===t.current),e(n,1,0,n.context.$implicit)})}function X(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,7,"div",[["class","text-center"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,4,"span",[["class","uhk__layer-switcher--wrapper btn-group btn-group-lg"],["data-title","Layers: "],["role","group"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,J)),wl["\u0275did"](5,802816,null,0,Ul.j,[wl.ViewContainerRef,wl.TemplateRef,wl.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){e(n,5,0,n.component.buttons)},null)}function Q(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"layers",[],null,null,null,X,mo)),wl["\u0275did"](1,49152,null,0,yo,[],null,null)],null,null)}function Z(e){return wl["\u0275vid"](2,[(e()(),wl["\u0275eld"](0,0,null,null,1,":svg:use",[],[[1,":xlink:href",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],null,function(e,n){var t=n.component;e(n,0,0,t.icon,t.svgWidth,t.svgHeight,t.svgWidth,t.svgHeight)})}function ee(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"g",[["svg-single-icon-key",""]],null,null,null,Z,Mo)),wl["\u0275did"](1,114688,null,0,Ao,[],null,null)],function(e,n){e(n,1,0)},null)}function ne(e){return wl["\u0275vid"](2,[(e()(),wl["\u0275ted"](-1,null,[" "])),(e()(),wl["\u0275eld"](1,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](3,0,null,null,1,":svg:tspan",[["dy","0"]],[[1,"x",0]],null,null,null,null)),(e()(),wl["\u0275ted"](4,null,["",""])),(e()(),wl["\u0275ted"](-1,null,["\n "]))],null,function(e,n){var t=n.component;e(n,1,0,0,t.textY,"middle"),e(n,3,0,t.spanX),e(n,4,0,t.text)})}function te(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"g",[["svg-one-line-text-key",""]],null,null,null,ne,_o)),wl["\u0275did"](1,114688,null,0,Co,[],null,null)],function(e,n){e(n,1,0)},null)}function le(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,":svg:tspan",[["dy","0"]],[[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),wl["\u0275ted"](1,null,["",""]))],null,function(e,n){var t=n.component;e(n,0,0,t.spanX,t.spanYs[n.context.index]),e(n,1,0,n.context.$implicit)})}function ie(e){return wl["\u0275vid"](2,[(e()(),wl["\u0275eld"](0,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,le)),wl["\u0275did"](3,802816,null,0,Ul.j,[wl.ViewContainerRef,wl.TemplateRef,wl.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "]))],function(e,n){e(n,3,0,n.component.texts)},function(e,n){e(n,0,0,0,n.component.textY,"middle")})}function oe(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"g",[["svg-two-line-text-key",""]],null,null,null,ie,So)),wl["\u0275did"](1,114688,null,0,Oo,[],null,null)],function(e,n){e(n,1,0)},null)}function ae(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-single-icon-key",""]],null,null,null,Z,Mo)),wl["\u0275did"](1,114688,null,0,Ao,[],{width:[0,"width"],height:[1,"height"],icon:[2,"icon"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "]))],function(e,n){var t=n.component;e(n,1,0,t.width,t.height,t.labelSource)},null)}function ue(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-one-line-text-key",""]],null,null,null,ne,_o)),wl["\u0275did"](1,114688,null,0,Co,[],{height:[0,"height"],width:[1,"width"],text:[2,"text"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "]))],function(e,n){var t=n.component;e(n,1,0,t.height,t.width,t.labelSource)},null)}function ce(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-two-line-text-key",""]],null,null,null,ie,So)),wl["\u0275did"](1,114688,null,0,Oo,[],{height:[0,"height"],width:[1,"width"],texts:[2,"texts"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "]))],function(e,n){var t=n.component;e(n,1,0,t.height,t.width,t.labelSource)},null)}function re(e){return wl["\u0275vid"](2,[(e()(),wl["\u0275eld"](0,0,null,null,11,":svg:svg",[],[[1,"viewBox",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),wl["\u0275did"](1,16384,null,0,Ul.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,ae)),wl["\u0275did"](4,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,ue)),wl["\u0275did"](7,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,ce)),wl["\u0275did"](10,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](13,0,null,null,22,":svg:svg",[["preserveAspectRatio","none"]],[[1,"viewBox",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](15,0,null,null,3,":svg:svg",[["preserveAspectRatio","none"],["viewBox","0 0 100 100"]],[[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0],[2,"disabled",null]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](17,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](20,0,null,null,4,":svg:svg",[["preserveAspectRatio","none"],["viewBox","0 0 100 100"]],[[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0],[2,"disabled",null]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](22,0,null,null,1,":svg:text",[],[[1,"text-anchor",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["C"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](26,0,null,null,3,":svg:svg",[["preserveAspectRatio","none"],["viewBox","0 0 100 100"]],[[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0],[2,"disabled",null]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](28,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](31,0,null,null,3,":svg:svg",[["preserveAspectRatio","none"],["viewBox","0 0 100 100"]],[[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0],[2,"disabled",null]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](33,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){e(n,1,0,n.component.labelType);e(n,4,0,"icon");e(n,7,0,"one-line");e(n,10,0,"two-line")},function(e,n){var t=n.component;e(n,0,0,t.viewBox,t.textContainer.width,t.textContainer.height,t.textContainer.x,t.textContainer.y),e(n,13,0,t.viewBox,t.modifierContainer.width,t.modifierContainer.height,t.modifierContainer.x,t.modifierContainer.y),e(n,15,0,t.shift.width,t.shift.height,t.shift.x,t.shift.y,t.shift.disabled),e(n,17,0,t.modifierIconNames.shift),e(n,20,0,t.control.width,t.control.height,t.control.x,t.control.y,t.control.disabled);e(n,22,0,"middle",50,50),e(n,26,0,t.option.width,t.option.height,t.option.x,t.option.y,t.option.disabled),e(n,28,0,t.modifierIconNames.option),e(n,31,0,t.command.width,t.command.height,t.command.x,t.command.y,t.command.disabled),e(n,33,0,t.modifierIconNames.command)})}function se(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"g",[["svg-keystroke-key",""]],null,null,null,re,No)),wl["\u0275did"](1,638976,null,0,Eo,[Ro],null,null)],function(e,n){e(n,1,0)},null)}function de(e){return wl["\u0275vid"](2,[(e()(),wl["\u0275ted"](-1,null,[" "])),(e()(),wl["\u0275eld"](1,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](3,0,null,null,1,":svg:tspan",[],[[1,"x",0]],null,null,null,null)),(e()(),wl["\u0275ted"](4,null,["",""])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](7,0,null,null,1,":svg:use",[],[[1,":xlink:href",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n"]))],null,function(e,n){var t=n.component;e(n,1,0,0,t.textY,t.textAnchor),e(n,3,0,t.spanX),e(n,4,0,t.text),e(n,7,0,t.icon,t.useWidth,t.useHeight,t.useX,t.useY)})}function pe(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"g",[["svg-text-icon-key",""]],null,null,null,de,Ko)),wl["\u0275did"](1,114688,null,0,Lo,[],null,null)],function(e,n){e(n,1,0)},null)}function ye(e){return wl["\u0275vid"](2,[(e()(),wl["\u0275eld"](0,0,null,null,1,":svg:use",[],[[1,":xlink:href",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](3,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](5,0,null,null,1,":svg:tspan",[],[[1,"x",0]],null,null,null,null)),(e()(),wl["\u0275ted"](6,null,["",""])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],null,function(e,n){var t=n.component;e(n,0,0,t.icon,t.useWidth,t.useHeight,t.useX,t.useY);e(n,3,0,0,t.textY,"middle",11),e(n,5,0,t.spanX),e(n,6,0,t.text)})}function fe(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"g",[["svg-icon-text-key",""]],null,null,null,ye,Vo)),wl["\u0275did"](1,114688,null,0,jo,[],null,null)],function(e,n){e(n,1,0)},null)}function me(e){return wl["\u0275vid"](2,[(e()(),wl["\u0275eld"](0,0,null,null,1,":svg:use",[],[[1,":xlink:href",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](3,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](5,0,null,null,1,":svg:tspan",[],[[1,"x",0]],null,null,null,null)),(e()(),wl["\u0275ted"](6,null,["",""])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],null,function(e,n){var t=n.component;e(n,0,0,t.icon,t.useWidth,t.useHeight,t.useX,t.useY);e(n,3,0,0,t.textY,"middle"),e(n,5,0,t.spanX),e(n,6,0,t.abbreviation)})}function ke(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"g",[["svg-switch-keymap-key",""]],null,null,null,me,Ho)),wl["\u0275did"](1,114688,null,0,Bo,[Ro],null,null)],function(e,n){e(n,1,0)},null)}function he(e){return wl["\u0275vid"](2,[(e()(),wl["\u0275eld"](0,0,null,null,1,":svg:use",[["height","20"],["width","20"],["x","10"],["y","25"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](3,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](5,0,null,null,1,":svg:tspan",[["dy","34"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,[" Click "])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](9,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](11,0,null,null,1,":svg:tspan",[["dy","70"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](12,null,[" "," "])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],null,function(e,n){var t=n.component;e(n,0,0,t.icon);e(n,3,0,60,0,"middle",25);e(n,9,0,50,0,"middle",25),e(n,12,0,t.button)})}function ge(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"g",[["svg-mouse-click-key",""]],null,null,null,he,zo)),wl["\u0275did"](1,114688,null,0,Go,[Ro],null,null)],function(e,n){e(n,1,0)},null)}function be(e){return wl["\u0275vid"](2,[(e()(),wl["\u0275eld"](0,0,null,null,0,":svg:use",[["height","20"],["width","20"],["x","8"],["y","25"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](2,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](4,0,null,null,1,":svg:tspan",[["dy","34"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,[" Move "])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](8,0,null,null,0,":svg:use",[["height","30"],["width","30"],["x","35"],["y","55"]],[[1,":xlink:href",0]],null,null,null,null))],null,function(e,n){var t=n.component;e(n,0,0,t.mouseIcon);e(n,2,0,60,0,"middle",24),e(n,8,0,t.directionIcon)})}function ve(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"g",[["svg-mouse-move-key",""]],null,null,null,be,Jo)),wl["\u0275did"](1,573440,null,0,qo,[Ro],null,null)],null,null)}function Ae(e){return wl["\u0275vid"](2,[(e()(),wl["\u0275eld"](0,0,null,null,0,":svg:use",[["height","20"],["width","20"],["x","8"],["y","25"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](2,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](4,0,null,null,1,":svg:tspan",[["dy","34"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,[" Scroll "])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](8,0,null,null,0,":svg:use",[["height","30"],["width","30"],["x","35"],["y","55"]],[[1,":xlink:href",0]],null,null,null,null))],null,function(e,n){var t=n.component;e(n,0,0,t.mouseIcon);e(n,2,0,60,0,"middle",24),e(n,8,0,t.directionIcon)})}function Te(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"g",[["svg-mouse-scroll-key",""]],null,null,null,Ae,Zo)),wl["\u0275did"](1,573440,null,0,Xo,[Ro],null,null)],null,null)}function Me(e){return wl["\u0275vid"](2,[(e()(),wl["\u0275eld"](0,0,null,null,1,":svg:use",[["height","20"],["width","20"],["x","4"],["y","25"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](3,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](5,0,null,null,1,":svg:tspan",[["dy","34"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,[" Speed "])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](9,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](11,0,null,null,1,":svg:tspan",[["dy","70"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](12,null,[" "," "])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],null,function(e,n){var t=n.component;e(n,0,0,t.icon);e(n,3,0,60,0,"middle",25);e(n,9,0,50,0,"middle",30),e(n,12,0,t.sign)})}function Ce(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"g",[["svg-mouse-speed-key",""]],null,null,null,Me,ta)),wl["\u0275did"](1,573440,null,0,ea,[Ro],null,null)],null,null)}function we(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-mouse-click-key",""]],null,null,null,he,zo)),wl["\u0275did"](1,114688,null,0,Go,[Ro],{button:[0,"button"]},null)],function(e,n){e(n,1,0,n.component.param)},null)}function _e(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-mouse-move-key",""]],null,null,null,be,Jo)),wl["\u0275did"](1,573440,null,0,qo,[Ro],{direction:[0,"direction"]},null)],function(e,n){e(n,1,0,n.component.param)},null)}function Oe(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-mouse-scroll-key",""]],null,null,null,Ae,Zo)),wl["\u0275did"](1,573440,null,0,Xo,[Ro],{direction:[0,"direction"]},null)],function(e,n){e(n,1,0,n.component.param)},null)}function xe(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-mouse-speed-key",""]],null,null,null,Me,ta)),wl["\u0275did"](1,573440,null,0,ea,[Ro],{plus:[0,"plus"]},null)],function(e,n){e(n,1,0,n.component.param)},null)}function Se(e){return wl["\u0275vid"](2,[(e()(),wl["\u0275eld"](0,0,null,null,14,":svg:g",[],null,null,null,null,null)),wl["\u0275did"](1,16384,null,0,Ul.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,we)),wl["\u0275did"](4,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,_e)),wl["\u0275did"](7,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Oe)),wl["\u0275did"](10,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,xe)),wl["\u0275did"](13,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){e(n,1,0,n.component.type);e(n,4,0,"click");e(n,7,0,"move");e(n,10,0,"scroll");e(n,13,0,"speed")},null)}function Pe(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"g",[["svg-mouse-key",""]],null,null,null,Se,oa)),wl["\u0275did"](1,573440,null,0,la,[],null,null)],null,null)}function Re(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](1,0,null,null,0,":svg:circle",[],[[24,"@recording",0],[1,"cx",0],[1,"cy",0],[1,"r",0],[1,"fill",0]],[[null,"@recording.done"]],function(e,n,t){var l=!0,i=e.component;if("@recording.done"===n){l=!1!==i.onRecordingAnimationDone()&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n"]))],null,function(e,n){var t=n.component;e(n,1,0,t.recordAnimation,t.width/2,t.height/2,10,"#c00")})}function Ie(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-keystroke-key",""]],null,null,null,re,No)),wl["\u0275did"](1,638976,null,0,Eo,[Ro],{height:[0,"height"],width:[1,"width"],keystrokeAction:[2,"keystrokeAction"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "]))],function(e,n){var t=n.component;e(n,1,0,t.height,t.width,t.labelSource)},null)}function Ee(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-one-line-text-key",""]],null,null,null,ne,_o)),wl["\u0275did"](1,114688,null,0,Co,[],{height:[0,"height"],width:[1,"width"],text:[2,"text"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "]))],function(e,n){var t=n.component;e(n,1,0,t.height,t.width,t.labelSource)},null)}function Ue(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-two-line-text-key",""]],null,null,null,ie,So)),wl["\u0275did"](1,114688,null,0,Oo,[],{height:[0,"height"],width:[1,"width"],texts:[2,"texts"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "]))],function(e,n){var t=n.component;e(n,1,0,t.height,t.width,t.labelSource)},null)}function Ne(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-text-icon-key",""]],null,null,null,de,Ko)),wl["\u0275did"](1,114688,null,0,Lo,[],{width:[0,"width"],height:[1,"height"],text:[2,"text"],icon:[3,"icon"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "]))],function(e,n){var t=n.component;e(n,1,0,t.width,t.height,t.labelSource.text,t.labelSource.icon)},null)}function Le(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-icon-text-key",""]],null,null,null,ye,Vo)),wl["\u0275did"](1,114688,null,0,jo,[],{width:[0,"width"],height:[1,"height"],icon:[2,"icon"],text:[3,"text"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "]))],function(e,n){var t=n.component;e(n,1,0,t.width,t.height,t.labelSource.icon,t.labelSource.text)},null)}function De(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-single-icon-key",""]],null,null,null,Z,Mo)),wl["\u0275did"](1,114688,null,0,Ao,[],{width:[0,"width"],height:[1,"height"],icon:[2,"icon"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "]))],function(e,n){var t=n.component;e(n,1,0,t.width,t.height,t.labelSource)},null)}function Ke(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-switch-keymap-key",""]],null,null,null,me,Ho)),wl["\u0275did"](1,114688,null,0,Bo,[Ro],{width:[0,"width"],height:[1,"height"],abbreviation:[2,"abbreviation"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "]))],function(e,n){var t=n.component;e(n,1,0,t.width,t.height,t.labelSource)},null)}function je(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,4,":svg:svg",[],[[1,"viewBox",0],[1,"width",0],[1,"height",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,1,":svg:g",[["svg-mouse-key",""]],null,null,null,Se,oa)),wl["\u0275did"](3,573440,null,0,la,[],{mouseAction:[0,"mouseAction"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "]))],function(e,n){e(n,3,0,n.component.labelSource)},function(e,n){var t=n.component;e(n,0,0,"0 0 100 100",t.width,t.height)})}function Fe(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](1,0,null,null,26,":svg:g",[],[[1,"font-size",0],[1,"font-family",0],[1,"fill",0]],null,null,null,null)),wl["\u0275did"](2,16384,null,0,Ul.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Ie)),wl["\u0275did"](5,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Ee)),wl["\u0275did"](8,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Ue)),wl["\u0275did"](11,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Ne)),wl["\u0275did"](14,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Le)),wl["\u0275did"](17,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,De)),wl["\u0275did"](20,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Ke)),wl["\u0275did"](23,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,je)),wl["\u0275did"](26,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,2,0,t.labelType),e(n,5,0,t.enumLabelTypes.KeystrokeKey),e(n,8,0,t.enumLabelTypes.OneLineText),e(n,11,0,t.enumLabelTypes.TwoLineText),e(n,14,0,t.enumLabelTypes.TextIcon),e(n,17,0,t.enumLabelTypes.IconText),e(n,20,0,t.enumLabelTypes.SingleIcon),e(n,23,0,t.enumLabelTypes.SwitchKeymap),e(n,26,0,t.enumLabelTypes.MouseKey)},function(e,n){e(n,1,0,19,"Helvetica","white")})}function Ve(e){return wl["\u0275vid"](2,[(e()(),wl["\u0275eld"](0,0,null,null,0,":svg:rect",[],[[24,"@change",0],[24,"@active",0],[8,"id",0],[1,"rx",0],[1,"ry",0],[1,"height",0],[1,"width",0]],[[null,"@change.done"]],function(e,n,t){var l=!0,i=e.component;if("@change.done"===n){l=!1!==i.onChangeAnimationDone()&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Re)),wl["\u0275did"](3,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Fe)),wl["\u0275did"](6,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,3,0,t.recording),e(n,6,0,!t.recording)},function(e,n){var t=n.component;e(n,0,0,t.changeAnimation,t.active,t.id,t.rx,t.ry,t.height,t.width)})}function Be(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"g",[["svg-keyboard-key",""]],null,[[null,"click"],[null,"mousedown"],[null,"keyup"],[null,"keydown"],[null,"focusout"]],function(e,n,t){var l=!0;if("click"===n){l=!1!==wl["\u0275nov"](e,1).onClick()&&l}if("mousedown"===n){l=!1!==wl["\u0275nov"](e,1).onMouseDown(t)&&l}if("keyup"===n){l=!1!==wl["\u0275nov"](e,1).onKeyUp(t)&&l}if("keydown"===n){l=!1!==wl["\u0275nov"](e,1).onKeyDown(t)&&l}if("focusout"===n){l=!1!==wl["\u0275nov"](e,1).onFocusOut()&&l}return l},Ve,da)),wl["\u0275did"](1,770048,null,0,ra,[Ro,xl.m,wl.ElementRef,aa,wl.Renderer],null,null)],function(e,n){e(n,1,0)},null)}function $e(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,":svg:path",[],[[1,"d",0],[1,"style",2]],null,null,null,null)),wl["\u0275ppd"](1,1)],null,function(e,n){e(n,0,0,n.context.$implicit.$.d,wl["\u0275unv"](n,0,1,e(n,1,0,wl["\u0275nov"](n.parent,0),n.context.$implicit.$.style)))})}function He(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-keyboard-key",""]],[[1,"transform",0],[1,"fill",0],[1,"tabindex",0]],[[null,"keyClick"],[null,"capture"],[null,"mouseenter"],[null,"mouseleave"],[null,"click"],[null,"mousedown"],[null,"keyup"],[null,"keydown"],[null,"focusout"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==wl["\u0275nov"](e,1).onClick()&&l}if("mousedown"===n){l=!1!==wl["\u0275nov"](e,1).onMouseDown(t)&&l}if("keyup"===n){l=!1!==wl["\u0275nov"](e,1).onKeyUp(t)&&l}if("keydown"===n){l=!1!==wl["\u0275nov"](e,1).onKeyDown(t)&&l}if("focusout"===n){l=!1!==wl["\u0275nov"](e,1).onFocusOut()&&l}if("keyClick"===n){l=!1!==i.onKeyClick(e.parent.context.index,t)&&l}if("capture"===n){l=!1!==i.onCapture(e.parent.context.index,t)&&l}if("mouseenter"===n){l=!1!==i.onKeyHover(e.parent.context.index,t,!0)&&l}if("mouseleave"===n){l=!1!==i.onKeyHover(e.parent.context.index,t,!1)&&l}return l},Ve,da)),wl["\u0275did"](1,770048,null,0,ra,[Ro,xl.m,wl.ElementRef,aa,wl.Renderer],{id:[0,"id"],rx:[1,"rx"],ry:[2,"ry"],height:[3,"height"],width:[4,"width"],keyAction:[5,"keyAction"],keybindAnimationEnabled:[6,"keybindAnimationEnabled"],capturingEnabled:[7,"capturingEnabled"],active:[8,"active"]},{keyClick:"keyClick",capture:"capture"})],function(e,n){var t=n.component;e(n,1,0,n.parent.context.$implicit.id,n.parent.context.$implicit.rx,n.parent.context.$implicit.ry,n.parent.context.$implicit.height,n.parent.context.$implicit.width,t.keyActions[n.parent.context.index],t.keybindAnimationEnabled,t.capturingEnabled,t.selected&&n.parent.context.index==t.selectedKey.keyId)},function(e,n){e(n,0,0,"translate("+n.parent.context.$implicit.x+" "+n.parent.context.$implicit.y+")",n.parent.context.$implicit.fill,0)})}function Ge(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,4,null,null,null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,He)),wl["\u0275did"](3,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){e(n,3,0,n.context.$implicit)},null)}function We(e){return wl["\u0275vid"](2,[wl["\u0275pid"](0,pa,[ri.c]),(e()(),wl["\u0275and"](16777216,null,null,1,null,$e)),wl["\u0275did"](2,802816,null,0,Ul.j,[wl.ViewContainerRef,wl.TemplateRef,wl.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Ge)),wl["\u0275did"](5,802816,null,0,Ul.j,[wl.ViewContainerRef,wl.TemplateRef,wl.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,2,0,t.coverages),e(n,5,0,t.keyboardKeys)},null)}function ze(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"g",[["svg-module",""]],null,null,null,We,ma)),wl["\u0275did"](1,49152,null,0,ya,[],null,null)],null,null)}function qe(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,4,"span",[["class","placeholder"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,1,"span",[],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.editText()&&l}return l},null,null)),(e()(),wl["\u0275ted"](3,null,["",""])),(e()(),wl["\u0275ted"](-1,null,["\n "]))],null,function(e,n){e(n,3,0,n.component.placeholder)})}function Ye(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,3,"span",[["class","editable"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,0,"span",[],[[8,"innerHTML",1]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.editText()&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "]))],null,function(e,n){e(n,2,0,n.component.displayText)})}function Je(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,18,"div",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,6,"textarea",[["autofocus",""],["class","text-editor"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keydown.control.enter"],[null,"keydown.alt.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,n,t){var l=!0,i=e.component;if("input"===n){l=!1!==wl["\u0275nov"](e,3)._handleInput(t.target.value)&&l}if("blur"===n){l=!1!==wl["\u0275nov"](e,3).onTouched()&&l}if("compositionstart"===n){l=!1!==wl["\u0275nov"](e,3)._compositionStart()&&l}if("compositionend"===n){l=!1!==wl["\u0275nov"](e,3)._compositionEnd(t.target.value)&&l}if("ngModelChange"===n){l=!1!==(i.text=t)&&l}if("keydown.control.enter"===n){l=!1!==i.keydownEnter()&&l}if("keydown.alt.enter"===n){l=!1!==i.keydownEnter()&&l}return l},null,null)),wl["\u0275did"](3,16384,null,0,Ci.DefaultValueAccessor,[wl.Renderer2,wl.ElementRef,[2,Ci.COMPOSITION_BUFFER_MODE]],null,null),wl["\u0275prd"](1024,null,Ci.NG_VALUE_ACCESSOR,function(e){return[e]},[Ci.DefaultValueAccessor]),wl["\u0275did"](5,671744,null,0,Ci.NgModel,[[8,null],[8,null],[8,null],[2,Ci.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),wl["\u0275prd"](2048,null,Ci.NgControl,null,[Ci.NgModel]),wl["\u0275did"](7,16384,null,0,Ci.NgControlStatus,[Ci.NgControl],null,null),wl["\u0275did"](8,4276224,null,0,ha,[wl.ElementRef],null,null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](10,0,null,null,7,"div",[["class","pull-right buttons"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](12,0,null,null,1,"button",[["class","btn btn-danger"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.cancelEditText()&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n Cancel\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](15,0,null,null,1,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.saveText()&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n Update description\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){e(n,5,0,n.component.text),e(n,8,0)},function(e,n){var t=n.component;e(n,2,0,wl["\u0275nov"](n,7).ngClassUntouched,wl["\u0275nov"](n,7).ngClassTouched,wl["\u0275nov"](n,7).ngClassPristine,wl["\u0275nov"](n,7).ngClassDirty,wl["\u0275nov"](n,7).ngClassValid,wl["\u0275nov"](n,7).ngClassInvalid,wl["\u0275nov"](n,7).ngClassPending),e(n,15,0,t.isSaveDisabled)})}function Xe(e){return wl["\u0275vid"](2,[(e()(),wl["\u0275eld"](0,0,null,null,7,"div",[["class","text-center"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,qe)),wl["\u0275did"](3,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Ye)),wl["\u0275did"](6,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n\n"])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Je)),wl["\u0275did"](10,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,3,0,t.showPlaceholder),e(n,6,0,t.showText),e(n,10,0,t.editing)},null)}function Qe(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,2,"editable-text",[],null,null,null,Xe,va)),wl["\u0275prd"](5120,null,Ci.NG_VALUE_ACCESSOR,function(e){return[e]},[ga]),wl["\u0275did"](2,49152,null,0,ga,[wl.ChangeDetectorRef],null,null)],null,null)}function Ze(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-module",""]],[[1,"transform",0],[24,"@split",0]],[[null,"keyClick"],[null,"keyHover"],[null,"capture"]],function(e,n,t){var l=!0,i=e.component;if("keyClick"===n){l=!1!==i.onKeyClick(e.context.index,t.index,t.keyTarget)&&l}if("keyHover"===n){l=!1!==i.onKeyHover(t.index,t.event,t.over,e.context.index)&&l}if("capture"===n){l=!1!==i.onCapture(e.context.index,t.index,t.captured)&&l}return l},We,ma)),wl["\u0275did"](1,49152,null,0,ya,[],{coverages:[0,"coverages"],keyboardKeys:[1,"keyboardKeys"],keyActions:[2,"keyActions"],selectedKey:[3,"selectedKey"],selected:[4,"selected"],keybindAnimationEnabled:[5,"keybindAnimationEnabled"],capturingEnabled:[6,"capturingEnabled"]},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture"})],function(e,n){var t=n.component;e(n,1,0,n.context.$implicit.coverages,n.context.$implicit.keyboardKeys,t.moduleConfig[n.context.index].keyActions,t.selectedKey,(null==t.selectedKey?null:t.selectedKey.moduleId)===n.context.index,t.keybindAnimationEnabled,t.capturingEnabled)},function(e,n){var t=n.component;e(n,0,0,n.context.$implicit.attributes.transform,t.moduleAnimationStates[n.context.index])})}function en(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,5,"editable-text",[["placeholder","No description provided for this keymap."]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,n,t){var l=!0,i=e.component;if("ngModelChange"===n){l=!1!==i.descriptionChanged.emit(t)&&l}return l},Xe,va)),wl["\u0275did"](1,49152,null,0,ga,[wl.ChangeDetectorRef],{placeholder:[0,"placeholder"]},null),wl["\u0275prd"](1024,null,Ci.NG_VALUE_ACCESSOR,function(e){return[e]},[ga]),wl["\u0275did"](3,671744,null,0,Ci.NgModel,[[8,null],[8,null],[8,null],[2,Ci.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),wl["\u0275prd"](2048,null,Ci.NgControl,null,[Ci.NgModel]),wl["\u0275did"](5,16384,null,0,Ci.NgControlStatus,[Ci.NgControl],null,null)],function(e,n){var t=n.component;e(n,1,0,"No description provided for this keymap."),e(n,3,0,t.description)},function(e,n){e(n,0,0,wl["\u0275nov"](n,5).ngClassUntouched,wl["\u0275nov"](n,5).ngClassTouched,wl["\u0275nov"](n,5).ngClassPristine,wl["\u0275nov"](n,5).ngClassDirty,wl["\u0275nov"](n,5).ngClassValid,wl["\u0275nov"](n,5).ngClassInvalid,wl["\u0275nov"](n,5).ngClassPending)})}function nn(e){return wl["\u0275vid"](2,[(e()(),wl["\u0275eld"](0,0,null,null,4,":svg:svg",[["height","100%"],["width","100%"],["xmlns","http://www.w3.org/2000/svg"]],[[1,"viewBox",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Ze)),wl["\u0275did"](3,802816,null,0,Ul.j,[wl.ViewContainerRef,wl.TemplateRef,wl.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275and"](16777216,null,null,1,null,en)),wl["\u0275did"](7,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,3,0,t.modules),e(n,7,0,t.showDescription)},function(e,n){e(n,0,0,n.component.viewBox)})}function tn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"svg-keyboard",[],null,null,null,nn,_a)),wl["\u0275did"](1,638976,null,0,Ca,[Ma],null,null)],function(e,n){e(n,1,0)},null)}function ln(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,2,"svg-keyboard",[],[[24,"@layerState",0]],[[null,"keyClick"],[null,"keyHover"],[null,"capture"],[null,"descriptionChanged"]],function(e,n,t){var l=!0,i=e.component;if("keyClick"===n){l=!1!==i.keyClick.emit(t)&&l}if("keyHover"===n){l=!1!==i.keyHover.emit(t)&&l}if("capture"===n){l=!1!==i.capture.emit(t)&&l}if("descriptionChanged"===n){l=!1!==i.descriptionChanged.emit(t)&&l}return l},nn,_a)),wl["\u0275did"](1,638976,null,0,Ca,[Ma],{moduleConfig:[0,"moduleConfig"],keybindAnimationEnabled:[1,"keybindAnimationEnabled"],capturingEnabled:[2,"capturingEnabled"],selectedKey:[3,"selectedKey"],selected:[4,"selected"],halvesSplit:[5,"halvesSplit"],keyboardLayout:[6,"keyboardLayout"],description:[7,"description"],showDescription:[8,"showDescription"]},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture",descriptionChanged:"descriptionChanged"}),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,1,0,n.context.$implicit.modules,t.keybindAnimationEnabled,t.capturingEnabled,t.selectedKey,(null==t.selectedKey?null:t.selectedKey.layerId)===n.context.index,t.halvesSplit,t.keyboardLayout,t.description,!0)},function(e,n){e(n,0,0,n.component.layerAnimationState[n.context.index])})}function on(e){return wl["\u0275vid"](2,[(e()(),wl["\u0275and"](16777216,null,null,1,null,ln)),wl["\u0275did"](1,802816,null,0,Ul.j,[wl.ViewContainerRef,wl.TemplateRef,wl.IterableDiffers],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,1,0,t.layers,t.trackKeyboard)},null)}function an(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"keyboard-slider",[],null,null,null,on,Sa)),wl["\u0275did"](1,573440,null,0,Oa,[],null,null)],null,null)}function un(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275ted"](0,null,["\n","\n"]))],null,function(e,n){e(n,0,0,n.component.captureText)})}function cn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275ted"](-1,null,["\nCapturing ...\n"]))],null,null)}function rn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,11,"button",[["type","button"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.start()&&l}return l},null,null)),wl["\u0275did"](1,278528,null,0,Ul.i,[wl.IterableDiffers,wl.KeyValueDiffers,wl.ElementRef,wl.Renderer],{ngClass:[0,"ngClass"]},null),wl["\u0275pod"](2,{"btn btn-sm btn--capture-keystroke":0,"btn-link link--capture-keystroke":1,"btn-default":2,"btn-info":3}),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-circle"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n\n"])),(e()(),wl["\u0275and"](16777216,null,null,1,null,un)),wl["\u0275did"](7,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n\n"])),(e()(),wl["\u0275and"](16777216,null,null,1,null,cn)),wl["\u0275did"](10,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,1,0,e(n,2,0,!t.isLink,t.isLink,!t.record&&!t.isLink,t.record&&!t.isLink)),e(n,7,0,!t.record),e(n,10,0,t.record)},null)}function sn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"capture-keystroke-button",[],null,[[null,"keyup"],[null,"keydown"],[null,"focusout"]],function(e,n,t){var l=!0;if("keyup"===n){l=!1!==wl["\u0275nov"](e,1).onKeyUp(t)&&l}if("keydown"===n){l=!1!==wl["\u0275nov"](e,1).onKeyDown(t)&&l}if("focusout"===n){l=!1!==wl["\u0275nov"](e,1).onFocusOut()&&l}return l},rn,Fa)),wl["\u0275did"](1,49152,null,0,Ka,[aa],null,null)],null,null)}function dn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.toggleModifier(!1,e.context.index)&&l}return l},null,null)),(e()(),wl["\u0275ted"](1,null,["\n ","\n "]))],null,function(e,n){e(n,0,0,n.component.leftModifierSelects[n.context.index]),e(n,1,0,n.context.$implicit)})}function pn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.toggleModifier(!0,e.context.index)&&l}return l},null,null)),(e()(),wl["\u0275ted"](1,null,["\n ","\n "]))],null,function(e,n){e(n,0,0,n.component.rightModifierSelects[n.context.index]),e(n,1,0,n.context.$implicit)})}function yn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,11,"div",[["class","long-press-container"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,1,"b",[["class","setting-label"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Secondary role:"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](5,0,null,null,1,"select2",[],null,[[null,"valueChanged"]],function(e,n,t){var l=!0,i=e.component;if("valueChanged"===n){l=!1!==i.onSecondaryRoleChange(t)&&l}return l},Ia.b,Ia.a)),wl["\u0275did"](6,4964352,[["secondaryRoleSelect",4]],0,Ea.Select2Component,[wl.Renderer],{data:[0,"data"],value:[1,"value"],width:[2,"width"]},{valueChanged:"valueChanged"}),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](8,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["name","question-circle"],["title","The secondary role activates when another key gets pressed while holding this key."]],[[1,"data-placement",0]],null,null,_,gi)),wl["\u0275did"](9,114688,null,0,ki,[],{name:[0,"name"]},null),wl["\u0275did"](10,1589248,null,0,bi,[wl.ElementRef,ri.c],{title:[0,"title"]},null),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,6,0,t.secondaryRoleGroups,t.selectedSecondaryRoleIndex.toString(),140);e(n,9,0,"question-circle");e(n,10,0,"The secondary role activates when another key gets pressed while holding this key.")},function(e,n){e(n,8,0,wl["\u0275nov"](n,10).placement)})}function fn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,14,"div",[["class","scancode-options"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,1,"b",[["class","setting-label"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Scancode:"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](5,0,null,null,1,"select2",[],null,[[null,"valueChanged"]],function(e,n,t){var l=!0,i=e.component;if("valueChanged"===n){l=!1!==i.onScancodeChange(t)&&l}return l},Ia.b,Ia.a)),wl["\u0275did"](6,4964352,null,0,Ea.Select2Component,[wl.Renderer],{data:[0,"data"],value:[1,"value"],width:[2,"width"],options:[3,"options"]},{valueChanged:"valueChanged"}),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](8,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["name","question-circle"],["title","Looking for a non-US character, but can't find it? Please note that USB keyboards send scancodes, not characters to your computer. Then your operating system translates the scancodes to characters according to your current OS keyboard layout. This means that you have to select the US-equivalent character of the desired key in Agent."]],[[1,"data-placement",0]],null,null,_,gi)),wl["\u0275did"](9,114688,null,0,ki,[],{name:[0,"name"]},null),wl["\u0275did"](10,1589248,null,0,bi,[wl.ElementRef,ri.c],{title:[0,"title"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](12,0,null,null,1,"capture-keystroke-button",[["tabindex","0"]],null,[[null,"capture"],[null,"keyup"],[null,"keydown"],[null,"focusout"]],function(e,n,t){var l=!0,i=e.component;if("keyup"===n){l=!1!==wl["\u0275nov"](e,13).onKeyUp(t)&&l}if("keydown"===n){l=!1!==wl["\u0275nov"](e,13).onKeyDown(t)&&l}if("focusout"===n){l=!1!==wl["\u0275nov"](e,13).onFocusOut()&&l}if("capture"===n){l=!1!==i.onKeysCapture(t)&&l}return l},rn,Fa)),wl["\u0275did"](13,49152,null,0,Ka,[aa],null,{capture:"capture"}),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](16,0,null,null,19,"div",[["class","modifier-options"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](18,0,null,null,1,"b",[["class","setting-label"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Modifiers:"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](21,0,null,null,13,"div",[["class","btn-toolbar modifiers"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](23,0,null,null,4,"div",[["class","btn-group btn-group-sm modifiers__left"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,dn)),wl["\u0275did"](26,802816,null,0,Ul.j,[wl.ViewContainerRef,wl.TemplateRef,wl.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](29,0,null,null,4,"div",[["class","btn-group btn-group-sm modifiers__right"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,pn)),wl["\u0275did"](32,802816,null,0,Ul.j,[wl.ViewContainerRef,wl.TemplateRef,wl.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275and"](16777216,null,null,1,null,yn)),wl["\u0275did"](38,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n\n"])),(e()(),wl["\u0275eld"](40,0,null,null,9,"div",[["class","disabled-state--text"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](42,0,null,null,0,"i",[["class","fa fa-info-circle"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n When a key is configured as layer switcher key, you can't assign other functions to it.\n To assign a scancode to the key, set the "])),(e()(),wl["\u0275eld"](44,0,null,null,1,"em",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Layer action"])),(e()(),wl["\u0275ted"](-1,null,[" to "])),(e()(),wl["\u0275eld"](47,0,null,null,1,"em",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["None"])),(e()(),wl["\u0275ted"](-1,null,[".\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,6,0,t.scanCodeGroups,t.selectedScancodeOption.id,200,t.options);e(n,9,0,"question-circle");e(n,10,0,"Looking for a non-US character, but can't find it? Please note that USB keyboards send scancodes, not characters to your computer. Then your operating system translates the scancodes to characters according to your current OS keyboard layout. This means that you have to select the US-equivalent character of the desired key in Agent."),e(n,26,0,t.leftModifiers),e(n,32,0,t.rightModifiers),e(n,38,0,t.secondaryRoleEnabled)},function(e,n){e(n,8,0,wl["\u0275nov"](n,10).placement)})}function mn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"keypress-tab",[],null,null,null,fn,Ba)),wl["\u0275did"](1,573440,null,0,La,[Ro],null,null)],null,null)}function kn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,3,"option",[],[[8,"selected",0]],null,null,null,null)),wl["\u0275did"](1,147456,null,0,Ci.NgSelectOption,[wl.ElementRef,wl.Renderer2,[8,null]],{value:[0,"value"]},null),wl["\u0275did"](2,147456,null,0,Ci["\u0275q"],[wl.ElementRef,wl.Renderer2,[8,null]],{value:[0,"value"]},null),(e()(),wl["\u0275ted"](3,null,["\n ","\n "]))],function(e,n){e(n,1,0,n.context.$implicit.id),e(n,2,0,n.context.$implicit.id)},function(e,n){e(n,0,0,n.component.toggle===n.context.$implicit.id),e(n,3,0,n.context.$implicit.text)})}function hn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,3,"option",[],[[8,"selected",0]],null,null,null,null)),wl["\u0275did"](1,147456,null,0,Ci.NgSelectOption,[wl.ElementRef,wl.Renderer2,[8,null]],{value:[0,"value"]},null),wl["\u0275did"](2,147456,null,0,Ci["\u0275q"],[wl.ElementRef,wl.Renderer2,[8,null]],{value:[0,"value"]},null),(e()(),wl["\u0275ted"](3,null,["\n ","\n "]))],function(e,n){e(n,1,0,n.context.$implicit.id),e(n,2,0,n.context.$implicit.id)},function(e,n){e(n,0,0,n.component.layer===n.context.$implicit.id),e(n,3,0,n.context.$implicit.text)})}function gn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275ted"](-1,null,["layer by pressing this key."]))],null,null)}function bn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275ted"](-1,null,["layer by holding this key."]))],null,null)}function vn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](1,0,null,null,4,"select",[],null,[[null,"change"]],function(e,n,t){var l=!0,i=e.component;if("change"===n){l=!1!==i.toggleChanged(t.target.value)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,kn)),wl["\u0275did"](4,802816,null,0,Ul.j,[wl.ViewContainerRef,wl.TemplateRef,wl.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](7,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["the"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](10,0,null,null,4,"select",[],null,[[null,"change"]],function(e,n,t){var l=!0,i=e.component;if("change"===n){l=!1!==i.layerChanged(t.target.value)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,hn)),wl["\u0275did"](13,802816,null,0,Ul.j,[wl.ViewContainerRef,wl.TemplateRef,wl.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](16,0,null,null,8,"span",[],null,null,null,null,null)),wl["\u0275did"](17,16384,null,0,Ul.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,gn)),wl["\u0275did"](20,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,bn)),wl["\u0275did"](23,16384,null,0,Ul.p,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],null,null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,4,0,t.toggleData),e(n,13,0,t.layerData),e(n,17,0,t.toggle);e(n,20,0,!0)},null)}function An(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](1,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,[" Layer switching is only possible from the base layer. "])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],null,null)}function Tn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275and"](16777216,null,null,1,null,vn)),wl["\u0275did"](1,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275and"](16777216,null,null,1,null,An)),wl["\u0275did"](4,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,n){var t=n.component;e(n,1,0,!t.isNotBase),e(n,4,0,t.isNotBase)},null)}function Mn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"layer-tab",[],[[2,"no-base",null]],null,null,Tn,za)),wl["\u0275did"](1,573440,null,0,Ga,[],null,null)],null,function(e,n){e(n,0,0,wl["\u0275nov"](n,1).isNotBase)})}function Cn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,4,"li",[],[[2,"active",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.changePage(e.context.index)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,1,"a",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](3,null,[" ",""])),(e()(),wl["\u0275ted"](-1,null,["\n "]))],null,function(e,n){e(n,0,0,n.component.selectedPageIndex===n.context.index),e(n,3,0,n.context.$implicit)})}function wn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,35,"div",[["class","mouse__config mouse__config--move text-center"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](4,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.setMouseActionParam(i.MouseActionParam.moveUp)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](6,0,null,null,0,"i",[["class","fa fa-arrow-up"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](10,0,null,null,16,"div",[["class","row"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](12,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.setMouseActionParam(i.MouseActionParam.moveLeft)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](14,0,null,null,0,"i",[["class","fa fa-arrow-left"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](17,0,null,null,3,"button",[["class","btn btn-default btn-lg btn-placeholder"],["type","button"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](19,0,null,null,0,"i",[["class","fa fa-square"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](22,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.setMouseActionParam(i.MouseActionParam.moveRight)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](24,0,null,null,0,"i",[["class","fa fa-arrow-right"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](28,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](30,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.setMouseActionParam(i.MouseActionParam.moveDown)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](32,0,null,null,0,"i",[["class","fa fa-arrow-down"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "]))],null,function(e,n){var t=n.component;e(n,4,0,t.mouseActionParam===t.MouseActionParam.moveUp),e(n,12,0,t.mouseActionParam===t.MouseActionParam.moveLeft),e(n,22,0,t.mouseActionParam===t.MouseActionParam.moveRight),e(n,30,0,t.mouseActionParam===t.MouseActionParam.moveDown)})}function _n(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,35,"div",[["class","mouse__config mouse__config--scroll text-center"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](4,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.setMouseActionParam(i.MouseActionParam.scrollUp)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](6,0,null,null,0,"i",[["class","fa fa-angle-double-up"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](10,0,null,null,16,"div",[["class","row"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](12,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.setMouseActionParam(i.MouseActionParam.scrollLeft)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](14,0,null,null,0,"i",[["class","fa fa-angle-double-left"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](17,0,null,null,3,"button",[["class","btn btn-default btn-lg btn-placeholder"],["type","button"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](19,0,null,null,0,"i",[["class","fa fa-square"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](22,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.setMouseActionParam(i.MouseActionParam.scrollRight)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](24,0,null,null,0,"i",[["class","fa fa-angle-double-right"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](28,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](30,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.setMouseActionParam(i.MouseActionParam.scrollDown)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](32,0,null,null,0,"i",[["class","fa fa-angle-double-down"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "]))],null,function(e,n){var t=n.component;e(n,4,0,t.mouseActionParam===t.MouseActionParam.scrollUp),e(n,12,0,t.mouseActionParam===t.MouseActionParam.scrollLeft),e(n,22,0,t.mouseActionParam===t.MouseActionParam.scrollRight),e(n,30,0,t.mouseActionParam===t.MouseActionParam.scrollDown)})}function On(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,13,"div",[["class","mouse__config mouse__config--click"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,10,"div",[["class","btn-group col-xs-12"],["role","group"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](4,0,null,null,1,"button",[["class","btn btn-default col-xs-4"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.setMouseActionParam(i.MouseActionParam.leftClick)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["Left"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](7,0,null,null,1,"button",[["class","btn btn-default col-xs-4"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.setMouseActionParam(i.MouseActionParam.middleClick)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["Middle"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](10,0,null,null,1,"button",[["class","btn btn-default col-xs-4"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.setMouseActionParam(i.MouseActionParam.rightClick)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["Right"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "]))],null,function(e,n){var t=n.component;e(n,4,0,t.mouseActionParam===t.MouseActionParam.leftClick),e(n,7,0,t.mouseActionParam===t.MouseActionParam.middleClick),e(n,10,0,t.mouseActionParam===t.MouseActionParam.rightClick)})}function xn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,22,"div",[["class","mouse__config mouse__config--speed text-center"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,4,"div",[["class","help-text--mouse-speed text-left"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](4,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Press this key along with mouse movement/scrolling to accelerate/decelerate its speed."])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](8,0,null,null,13,"div",[["class","btn-group btn-group-lg"],["role","group"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](10,0,null,null,4,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.setMouseActionParam(i.MouseActionParam.decelerate)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n -\n "])),(e()(),wl["\u0275eld"](12,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Decelerate"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](16,0,null,null,4,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.setMouseActionParam(i.MouseActionParam.accelerate)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n +\n "])),(e()(),wl["\u0275eld"](18,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Accelerate"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "]))],null,function(e,n){var t=n.component;e(n,10,0,t.mouseActionParam===t.MouseActionParam.decelerate),e(n,16,0,t.mouseActionParam===t.MouseActionParam.accelerate)})}function Sn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "]))],null,null)}function Pn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,7,"div",[["class","mouse-action col-sm-4"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,4,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Cn)),wl["\u0275did"](5,802816,null,0,Ul.j,[wl.ViewContainerRef,wl.TemplateRef,wl.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](9,0,null,null,17,"div",[["class","details col-sm-8"]],null,null,null,null,null)),wl["\u0275did"](10,16384,null,0,Ul.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,wn)),wl["\u0275did"](13,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,_n)),wl["\u0275did"](16,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,On)),wl["\u0275did"](19,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,xn)),wl["\u0275did"](22,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Sn)),wl["\u0275did"](25,16384,null,0,Ul.p,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],null,null),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,5,0,t.pages),e(n,10,0,t.selectedPageIndex);e(n,13,0,0);e(n,16,0,1);e(n,19,0,2);e(n,22,0,3)},null)}function Rn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"mouse-tab",[],null,null,null,Pn,Qa)),wl["\u0275did"](1,573440,null,0,Ja,[],null,null)],null,null)}function In(e){return wl["\u0275vid"](0,[wl["\u0275qud"](402653184,1,{input:0}),(e()(),wl["\u0275eld"](1,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](3,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Type text"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](6,0,[[1,0],["macroTextInput",1]],null,1,"textarea",[["class","macro__text-input"],["name","macro-text"]],null,[[null,"change"],[null,"keyup"]],function(e,n,t){var l=!0,i=e.component;if("change"===n){l=!1!==i.onTextChange()&&l}if("keyup"===n){l=!1!==i.validate()&&l}return l},null,null)),(e()(),wl["\u0275ted"](7,null,["",""])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],null,function(e,n){var t=n.component;e(n,7,0,null==t.macroAction?null:t.macroAction.text)})}function En(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"macro-text-tab",[["class","macro__text"]],null,null,null,In,cu)),wl["\u0275did"](1,4308992,null,0,au,[wl.Renderer],null,null)],function(e,n){e(n,1,0)},null)}function Un(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Tap key"]))],null,null)}function Nn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Press key"]))],null,null)}function Ln(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Release key"]))],null,null)}function Dn(e){return wl["\u0275vid"](0,[wl["\u0275qud"](402653184,1,{selectedTab:0}),wl["\u0275qud"](402653184,2,{keypressTab:0}),(e()(),wl["\u0275eld"](2,0,null,null,58,"div",[["class","col-xs-12 macro-key__container"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](4,0,null,null,37,"div",[["class","col-xs-3 macro-key__types"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](6,0,null,null,34,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](8,0,[["keyMove",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.selectTab(i.TabName.Tap)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](10,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](12,0,null,null,0,"i",[["class","fa fa-hand-pointer-o"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](14,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Tap key"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](19,0,[["keyHold",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.selectTab(i.TabName.Press)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](21,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](23,0,null,null,0,"i",[["class","fa fa-hand-rock-o"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](25,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Press key"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](30,0,[["keyRelease",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.selectTab(i.TabName.Release)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](32,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](34,0,null,null,0,"i",[["class","fa fa-hand-paper-o"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](36,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Release key"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](43,0,null,null,16,"div",[["class","col-xs-9 macro-key__action-container"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](45,0,null,null,13,"div",[["class","macro-key__action"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Un)),wl["\u0275did"](48,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Nn)),wl["\u0275did"](51,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Ln)),wl["\u0275did"](54,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](56,0,null,null,1,"keypress-tab",[],null,[[null,"validAction"]],function(e,n,t){var l=!0,i=e.component;if("validAction"===n){l=!1!==i.validate()&&l}return l},fn,Ba)),wl["\u0275did"](57,573440,[[2,4],["keypressTab",4]],0,La,[Ro],{defaultKeyAction:[0,"defaultKeyAction"],secondaryRoleEnabled:[1,"secondaryRoleEnabled"]},{validAction:"validAction"}),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,48,0,t.activeTab===t.TabName.Tap),e(n,51,0,t.activeTab===t.TabName.Press),e(n,54,0,t.activeTab===t.TabName.Release);e(n,57,0,t.defaultKeyAction,!1)},function(e,n){var t=n.component;e(n,8,0,t.activeTab===t.TabName.Tap),e(n,19,0,t.activeTab===t.TabName.Press),e(n,30,0,t.activeTab===t.TabName.Release)})}function Kn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"macro-key-tab",[["class","macro__mouse"]],null,null,null,Dn,fu)),wl["\u0275did"](1,114688,null,0,pu,[],null,null)],function(e,n){e(n,1,0)},null)}function jn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,[[1,0],["tab",1]],null,39,"div",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Move mouse pointer"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](5,0,null,null,33,"div",[["class","form-horizontal"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](7,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](9,0,null,null,1,"label",[["for","move-mouse-x"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["X:"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](12,0,null,null,8,"input",[["class","form-control"],["id","move-mouse-x"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,n,t){var l=!0,i=e.component;if("input"===n){l=!1!==wl["\u0275nov"](e,13)._handleInput(t.target.value)&&l}if("blur"===n){l=!1!==wl["\u0275nov"](e,13).onTouched()&&l}if("compositionstart"===n){l=!1!==wl["\u0275nov"](e,13)._compositionStart()&&l}if("compositionend"===n){l=!1!==wl["\u0275nov"](e,13)._compositionEnd(t.target.value)&&l}if("change"===n){l=!1!==wl["\u0275nov"](e,14).onChange(t.target.value)&&l}if("input"===n){l=!1!==wl["\u0275nov"](e,14).onChange(t.target.value)&&l}if("blur"===n){l=!1!==wl["\u0275nov"](e,14).onTouched()&&l}if("ngModelChange"===n){l=!1!==(i.macroAction.x=t)&&l}if("keyup"===n){l=!1!==i.validate()&&l}return l},null,null)),wl["\u0275did"](13,16384,null,0,Ci.DefaultValueAccessor,[wl.Renderer2,wl.ElementRef,[2,Ci.COMPOSITION_BUFFER_MODE]],null,null),wl["\u0275did"](14,16384,null,0,Ci["\u0275bc"],[wl.Renderer2,wl.ElementRef],null,null),wl["\u0275did"](15,540672,null,0,Ci.MaxLengthValidator,[],{maxlength:[0,"maxlength"]},null),wl["\u0275prd"](1024,null,Ci.NG_VALIDATORS,function(e){return[e]},[Ci.MaxLengthValidator]),wl["\u0275prd"](1024,null,Ci.NG_VALUE_ACCESSOR,function(e,n){return[e,n]},[Ci.DefaultValueAccessor,Ci["\u0275bc"]]),wl["\u0275did"](18,671744,null,0,Ci.NgModel,[[8,null],[2,Ci.NG_VALIDATORS],[8,null],[2,Ci.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),wl["\u0275prd"](2048,null,Ci.NgControl,null,[Ci.NgModel]),wl["\u0275did"](20,16384,null,0,Ci.NgControlStatus,[Ci.NgControl],null,null),(e()(),wl["\u0275ted"](-1,null,[" pixels\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](23,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](25,0,null,null,1,"label",[["for","move-mouse-y"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Y:"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](28,0,null,null,8,"input",[["class","form-control"],["id","move-mouse-y"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,n,t){var l=!0,i=e.component;if("input"===n){l=!1!==wl["\u0275nov"](e,29)._handleInput(t.target.value)&&l}if("blur"===n){l=!1!==wl["\u0275nov"](e,29).onTouched()&&l}if("compositionstart"===n){l=!1!==wl["\u0275nov"](e,29)._compositionStart()&&l}if("compositionend"===n){l=!1!==wl["\u0275nov"](e,29)._compositionEnd(t.target.value)&&l}if("change"===n){l=!1!==wl["\u0275nov"](e,30).onChange(t.target.value)&&l}if("input"===n){l=!1!==wl["\u0275nov"](e,30).onChange(t.target.value)&&l}if("blur"===n){l=!1!==wl["\u0275nov"](e,30).onTouched()&&l}if("ngModelChange"===n){l=!1!==(i.macroAction.y=t)&&l}if("keyup"===n){l=!1!==i.validate()&&l}return l},null,null)),wl["\u0275did"](29,16384,null,0,Ci.DefaultValueAccessor,[wl.Renderer2,wl.ElementRef,[2,Ci.COMPOSITION_BUFFER_MODE]],null,null),wl["\u0275did"](30,16384,null,0,Ci["\u0275bc"],[wl.Renderer2,wl.ElementRef],null,null),wl["\u0275did"](31,540672,null,0,Ci.MaxLengthValidator,[],{maxlength:[0,"maxlength"]},null),wl["\u0275prd"](1024,null,Ci.NG_VALIDATORS,function(e){return[e]},[Ci.MaxLengthValidator]),wl["\u0275prd"](1024,null,Ci.NG_VALUE_ACCESSOR,function(e,n){return[e,n]},[Ci.DefaultValueAccessor,Ci["\u0275bc"]]),wl["\u0275did"](34,671744,null,0,Ci.NgModel,[[8,null],[2,Ci.NG_VALIDATORS],[8,null],[2,Ci.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),wl["\u0275prd"](2048,null,Ci.NgControl,null,[Ci.NgModel]),wl["\u0275did"](36,16384,null,0,Ci.NgControlStatus,[Ci.NgControl],null,null),(e()(),wl["\u0275ted"](-1,null,[" pixels\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "]))],function(e,n){var t=n.component;e(n,15,0,"4"),e(n,18,0,t.macroAction.x);e(n,31,0,"4"),e(n,34,0,t.macroAction.y)},function(e,n){e(n,12,0,wl["\u0275nov"](n,15).maxlength?wl["\u0275nov"](n,15).maxlength:null,wl["\u0275nov"](n,20).ngClassUntouched,wl["\u0275nov"](n,20).ngClassTouched,wl["\u0275nov"](n,20).ngClassPristine,wl["\u0275nov"](n,20).ngClassDirty,wl["\u0275nov"](n,20).ngClassValid,wl["\u0275nov"](n,20).ngClassInvalid,wl["\u0275nov"](n,20).ngClassPending),e(n,28,0,wl["\u0275nov"](n,31).maxlength?wl["\u0275nov"](n,31).maxlength:null,wl["\u0275nov"](n,36).ngClassUntouched,wl["\u0275nov"](n,36).ngClassTouched,wl["\u0275nov"](n,36).ngClassPristine,wl["\u0275nov"](n,36).ngClassDirty,wl["\u0275nov"](n,36).ngClassValid,wl["\u0275nov"](n,36).ngClassInvalid,wl["\u0275nov"](n,36).ngClassPending)})}function Fn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,[[1,0],["tab",1]],null,39,"div",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Scroll with mouse"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](5,0,null,null,33,"div",[["class","form-horizontal"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](7,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](9,0,null,null,1,"label",[["for","scroll-mouse-x"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["X:"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](12,0,null,null,8,"input",[["class","form-control"],["id","scroll-mouse-x"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,n,t){var l=!0,i=e.component;if("input"===n){l=!1!==wl["\u0275nov"](e,13)._handleInput(t.target.value)&&l}if("blur"===n){l=!1!==wl["\u0275nov"](e,13).onTouched()&&l}if("compositionstart"===n){l=!1!==wl["\u0275nov"](e,13)._compositionStart()&&l}if("compositionend"===n){l=!1!==wl["\u0275nov"](e,13)._compositionEnd(t.target.value)&&l}if("change"===n){l=!1!==wl["\u0275nov"](e,14).onChange(t.target.value)&&l}if("input"===n){l=!1!==wl["\u0275nov"](e,14).onChange(t.target.value)&&l}if("blur"===n){l=!1!==wl["\u0275nov"](e,14).onTouched()&&l}if("ngModelChange"===n){l=!1!==(i.macroAction.x=t)&&l}if("keyup"===n){l=!1!==i.validate()&&l}return l},null,null)),wl["\u0275did"](13,16384,null,0,Ci.DefaultValueAccessor,[wl.Renderer2,wl.ElementRef,[2,Ci.COMPOSITION_BUFFER_MODE]],null,null),wl["\u0275did"](14,16384,null,0,Ci["\u0275bc"],[wl.Renderer2,wl.ElementRef],null,null),wl["\u0275did"](15,540672,null,0,Ci.MaxLengthValidator,[],{maxlength:[0,"maxlength"]},null),wl["\u0275prd"](1024,null,Ci.NG_VALIDATORS,function(e){return[e]},[Ci.MaxLengthValidator]),wl["\u0275prd"](1024,null,Ci.NG_VALUE_ACCESSOR,function(e,n){return[e,n]},[Ci.DefaultValueAccessor,Ci["\u0275bc"]]),wl["\u0275did"](18,671744,null,0,Ci.NgModel,[[8,null],[2,Ci.NG_VALIDATORS],[8,null],[2,Ci.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),wl["\u0275prd"](2048,null,Ci.NgControl,null,[Ci.NgModel]),wl["\u0275did"](20,16384,null,0,Ci.NgControlStatus,[Ci.NgControl],null,null),(e()(),wl["\u0275ted"](-1,null,[" pixels\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](23,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](25,0,null,null,1,"label",[["for","scroll-mouse-y"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Y:"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](28,0,null,null,8,"input",[["class","form-control"],["id","scroll-mouse-y"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,n,t){var l=!0,i=e.component;if("input"===n){l=!1!==wl["\u0275nov"](e,29)._handleInput(t.target.value)&&l}if("blur"===n){l=!1!==wl["\u0275nov"](e,29).onTouched()&&l}if("compositionstart"===n){l=!1!==wl["\u0275nov"](e,29)._compositionStart()&&l}if("compositionend"===n){l=!1!==wl["\u0275nov"](e,29)._compositionEnd(t.target.value)&&l}if("change"===n){l=!1!==wl["\u0275nov"](e,30).onChange(t.target.value)&&l}if("input"===n){l=!1!==wl["\u0275nov"](e,30).onChange(t.target.value)&&l}if("blur"===n){l=!1!==wl["\u0275nov"](e,30).onTouched()&&l}if("ngModelChange"===n){l=!1!==(i.macroAction.y=t)&&l}if("keyup"===n){l=!1!==i.validate()&&l}return l},null,null)),wl["\u0275did"](29,16384,null,0,Ci.DefaultValueAccessor,[wl.Renderer2,wl.ElementRef,[2,Ci.COMPOSITION_BUFFER_MODE]],null,null),wl["\u0275did"](30,16384,null,0,Ci["\u0275bc"],[wl.Renderer2,wl.ElementRef],null,null),wl["\u0275did"](31,540672,null,0,Ci.MaxLengthValidator,[],{maxlength:[0,"maxlength"]},null),wl["\u0275prd"](1024,null,Ci.NG_VALIDATORS,function(e){return[e]},[Ci.MaxLengthValidator]),wl["\u0275prd"](1024,null,Ci.NG_VALUE_ACCESSOR,function(e,n){return[e,n]},[Ci.DefaultValueAccessor,Ci["\u0275bc"]]),wl["\u0275did"](34,671744,null,0,Ci.NgModel,[[8,null],[2,Ci.NG_VALIDATORS],[8,null],[2,Ci.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),wl["\u0275prd"](2048,null,Ci.NgControl,null,[Ci.NgModel]),wl["\u0275did"](36,16384,null,0,Ci.NgControlStatus,[Ci.NgControl],null,null),(e()(),wl["\u0275ted"](-1,null,[" pixels\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "]))],function(e,n){var t=n.component;e(n,15,0,"4"),e(n,18,0,t.macroAction.x);e(n,31,0,"4"),e(n,34,0,t.macroAction.y)},function(e,n){e(n,12,0,wl["\u0275nov"](n,15).maxlength?wl["\u0275nov"](n,15).maxlength:null,wl["\u0275nov"](n,20).ngClassUntouched,wl["\u0275nov"](n,20).ngClassTouched,wl["\u0275nov"](n,20).ngClassPristine,wl["\u0275nov"](n,20).ngClassDirty,wl["\u0275nov"](n,20).ngClassValid,wl["\u0275nov"](n,20).ngClassInvalid,wl["\u0275nov"](n,20).ngClassPending),e(n,28,0,wl["\u0275nov"](n,31).maxlength?wl["\u0275nov"](n,31).maxlength:null,wl["\u0275nov"](n,36).ngClassUntouched,wl["\u0275nov"](n,36).ngClassTouched,wl["\u0275nov"](n,36).ngClassPristine,wl["\u0275nov"](n,36).ngClassDirty,wl["\u0275nov"](n,36).ngClassValid,wl["\u0275nov"](n,36).ngClassInvalid,wl["\u0275nov"](n,36).ngClassPending)})}function Vn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Click mouse button"]))],null,null)}function Bn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Hold mouse button"]))],null,null)}function $n(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Release mouse button"]))],null,null)}function Hn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.setMouseClick(e.context.index)&&l}return l},null,null)),(e()(),wl["\u0275ted"](1,null,["","\n "]))],null,function(e,n){e(n,0,0,n.component.hasButton(n.context.index)),e(n,1,0,n.context.$implicit)})}function Gn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,[[1,0],["tab",1]],null,16,"div",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Vn)),wl["\u0275did"](3,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Bn)),wl["\u0275did"](6,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,$n)),wl["\u0275did"](9,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](11,0,null,null,4,"div",[["class","btn-group"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Hn)),wl["\u0275did"](14,802816,null,0,Ul.j,[wl.ViewContainerRef,wl.TemplateRef,wl.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "]))],function(e,n){var t=n.component;e(n,3,0,t.activeTab===t.TabName.Click),e(n,6,0,t.activeTab===t.TabName.Hold),e(n,9,0,t.activeTab===t.TabName.Release),e(n,14,0,t.buttonLabels)},null)}function Wn(e){return wl["\u0275vid"](0,[wl["\u0275qud"](671088640,1,{selectedTab:0}),(e()(),wl["\u0275eld"](1,0,null,null,75,"div",[["class","col-xs-12 macro-mouse__container"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](3,0,null,null,59,"div",[["class","col-xs-3 macro-mouse__types"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](5,0,null,null,56,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](7,0,[["mouseMove",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.selectTab(i.TabName.Move)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](9,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](11,0,null,null,0,"i",[["class","fa fa-arrows"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](13,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Move pointer"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](18,0,[["mouseScroll",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.selectTab(i.TabName.Scroll)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](20,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](22,0,null,null,0,"i",[["class","fa fa-arrows-v"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](24,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Scroll"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](29,0,[["mouseClick",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.selectTab(i.TabName.Click)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](31,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](33,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](35,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Click button"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](40,0,[["mouseHold",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.selectTab(i.TabName.Hold)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](42,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](44,0,null,null,0,"i",[["class","fa fa-hand-rock-o"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](46,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Hold button"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](51,0,[["mouseRelease",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.selectTab(i.TabName.Release)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](53,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](55,0,null,null,0,"i",[["class","fa fa-hand-paper-o"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](57,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Release button"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](64,0,null,null,11,"div",[["class","col-xs-9 macro-mouse__actions"]],null,null,null,null,null)),wl["\u0275did"](65,16384,null,0,Ul.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,jn)),wl["\u0275did"](68,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Fn)),wl["\u0275did"](71,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Gn)),wl["\u0275did"](74,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,65,0,t.activeTab),e(n,68,0,t.TabName.Move),e(n,71,0,t.TabName.Scroll),e(n,74,0,t.activeTab===t.TabName.Click||t.activeTab===t.TabName.Hold||t.activeTab===t.TabName.Release)},function(e,n){var t=n.component;e(n,7,0,t.activeTab===t.TabName.Move),e(n,18,0,t.activeTab===t.TabName.Scroll),e(n,29,0,t.activeTab===t.TabName.Click),e(n,40,0,t.activeTab===t.TabName.Hold),e(n,51,0,t.activeTab===t.TabName.Release)})}function zn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"macro-mouse-tab",[["class","macro__mouse"]],null,null,null,Wn,vu)),wl["\u0275did"](1,638976,null,0,gu,[],null,null)],function(e,n){e(n,1,0)},null)}function qn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-sm btn-default"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.setDelay(e.context.$implicit)&&l}return l},null,null)),(e()(),wl["\u0275ted"](1,null,["","s\n "]))],null,function(e,n){e(n,1,0,n.context.$implicit)})}function Yn(e){return wl["\u0275vid"](2,[wl["\u0275qud"](402653184,1,{input:0}),(e()(),wl["\u0275eld"](1,0,null,null,39,"div",[["class","macro-delay"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](3,0,null,null,7,"div",[["class","row"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](5,0,null,null,4,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](7,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Delay"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](12,0,null,null,15,"div",[["class","row"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](14,0,null,null,12,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](16,0,null,null,9,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](18,0,[[1,0],["macroDelayInput",1]],null,6,"input",[["class","form-control"],["max","1000"],["min","0"],["placeholder","Delay amount"],["step","0.1"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,n,t){var l=!0,i=e.component;if("input"===n){l=!1!==wl["\u0275nov"](e,19)._handleInput(t.target.value)&&l}if("blur"===n){l=!1!==wl["\u0275nov"](e,19).onTouched()&&l}if("compositionstart"===n){l=!1!==wl["\u0275nov"](e,19)._compositionStart()&&l}if("compositionend"===n){l=!1!==wl["\u0275nov"](e,19)._compositionEnd(t.target.value)&&l}if("change"===n){l=!1!==wl["\u0275nov"](e,20).onChange(t.target.value)&&l}if("input"===n){l=!1!==wl["\u0275nov"](e,20).onChange(t.target.value)&&l}if("blur"===n){l=!1!==wl["\u0275nov"](e,20).onTouched()&&l}if("ngModelChange"===n){l=!1!==i.setDelay(wl["\u0275nov"](e,18).value)&&l}return l},null,null)),wl["\u0275did"](19,16384,null,0,Ci.DefaultValueAccessor,[wl.Renderer2,wl.ElementRef,[2,Ci.COMPOSITION_BUFFER_MODE]],null,null),wl["\u0275did"](20,16384,null,0,Ci["\u0275bc"],[wl.Renderer2,wl.ElementRef],null,null),wl["\u0275prd"](1024,null,Ci.NG_VALUE_ACCESSOR,function(e,n){return[e,n]},[Ci.DefaultValueAccessor,Ci["\u0275bc"]]),wl["\u0275did"](22,671744,null,0,Ci.NgModel,[[8,null],[8,null],[8,null],[2,Ci.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),wl["\u0275prd"](2048,null,Ci.NgControl,null,[Ci.NgModel]),wl["\u0275did"](24,16384,null,0,Ci.NgControlStatus,[Ci.NgControl],null,null),(e()(),wl["\u0275ted"](-1,null,["\n seconds\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](29,0,null,null,10,"div",[["class","row macro-delay__presets"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](31,0,null,null,7,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](33,0,null,null,1,"h6",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Choose a preset"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,qn)),wl["\u0275did"](37,802816,null,0,Ul.j,[wl.ViewContainerRef,wl.TemplateRef,wl.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,22,0,t.delay),e(n,37,0,t.presets)},function(e,n){e(n,18,0,wl["\u0275nov"](n,24).ngClassUntouched,wl["\u0275nov"](n,24).ngClassTouched,wl["\u0275nov"](n,24).ngClassPristine,wl["\u0275nov"](n,24).ngClassDirty,wl["\u0275nov"](n,24).ngClassValid,wl["\u0275nov"](n,24).ngClassInvalid,wl["\u0275nov"](n,24).ngClassPending)})}function Jn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"macro-delay-tab",[["class","macro__delay"]],null,null,null,Yn,wu)),wl["\u0275did"](1,114688,null,0,Mu,[],null,null)],function(e,n){e(n,1,0)},null)}function Xn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"macro-text-tab",[["class","macro__text"]],null,[[null,"valid"]],function(e,n,t){var l=!0,i=e.component;if("valid"===n){l=!1!==i.onValid(t)&&l}return l},In,cu)),wl["\u0275did"](1,4308992,[[1,4],["tab",4]],0,au,[wl.Renderer],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,n){e(n,1,0,n.component.editableMacroAction)},null)}function Qn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"macro-key-tab",[["class","macro__mouse"]],null,[[null,"valid"]],function(e,n,t){var l=!0,i=e.component;if("valid"===n){l=!1!==i.onValid(t)&&l}return l},Dn,fu)),wl["\u0275did"](1,114688,[[1,4],["tab",4]],0,pu,[],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,n){e(n,1,0,n.component.editableMacroAction)},null)}function Zn(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"macro-mouse-tab",[["class","macro__mouse"]],null,[[null,"valid"]],function(e,n,t){var l=!0,i=e.component;if("valid"===n){l=!1!==i.onValid(t)&&l}return l},Wn,vu)),wl["\u0275did"](1,638976,[[1,4],["tab",4]],0,gu,[],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,n){e(n,1,0,n.component.editableMacroAction)},null)}function et(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"macro-delay-tab",[["class","macro__delay"]],null,[[null,"valid"]],function(e,n,t){var l=!0,i=e.component;if("valid"===n){l=!1!==i.onValid(t)&&l}return l},Yn,wu)),wl["\u0275did"](1,114688,[[1,4],["tab",4]],0,Mu,[],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,n){e(n,1,0,n.component.editableMacroAction)},null)}function nt(e){return wl["\u0275vid"](0,[wl["\u0275qud"](671088640,1,{selectedTab:0}),(e()(),wl["\u0275eld"](1,0,null,null,85,"div",[["class","action--editor"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](3,0,null,null,67,"div",[["class","row"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](5,0,null,null,48,"div",[["class","col-lg-3 editor__tab-links"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](7,0,null,null,45,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](9,0,[["macroText",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.selectTab(i.TabName.Text)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](11,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](13,0,null,null,0,"i",[["class","fa fa-font"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](15,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Type text"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](20,0,[["macroKeypress",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.selectTab(i.TabName.Keypress)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](22,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](24,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](26,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Key action"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](31,0,[["macroMouse",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.selectTab(i.TabName.Mouse)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](33,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](35,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](37,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Mouse action"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](42,0,[["macroDelay",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.selectTab(i.TabName.Delay)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](44,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](46,0,null,null,0,"i",[["class","fa fa-clock-o"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](48,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Delay"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](55,0,null,null,14,"div",[["class","col-xs-12 col-lg-9 editor__tabs"]],null,null,null,null,null)),wl["\u0275did"](56,16384,null,0,Ul.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Xn)),wl["\u0275did"](59,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Qn)),wl["\u0275did"](62,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Zn)),wl["\u0275did"](65,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,et)),wl["\u0275did"](68,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](72,0,null,null,13,"div",[["class","row"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](74,0,null,null,10,"div",[["class","col-xs-12 flex-button-wrapper editor__actions-container"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](76,0,null,null,7,"div",[["class","editor__actions"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](78,0,null,null,1,"button",[["class","btn btn-sm btn-default flex-button"],["type","button"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.onCancelClick()&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,[" Cancel "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](81,0,null,null,1,"button",[["class","btn btn-sm btn-primary flex-button"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.onSaveClick()&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,[" Save "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,56,0,t.activeTab),e(n,59,0,t.TabName.Text),e(n,62,0,t.TabName.Keypress),e(n,65,0,t.TabName.Mouse),e(n,68,0,t.TabName.Delay)},function(e,n){var t=n.component;e(n,9,0,t.activeTab===t.TabName.Text),e(n,20,0,t.activeTab===t.TabName.Keypress),e(n,31,0,t.activeTab===t.TabName.Mouse),e(n,42,0,t.activeTab===t.TabName.Delay),e(n,81,0,!t.isSelectedMacroValid)})}function tt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"macro-action-editor",[["class","macro-action-editor"]],null,null,null,nt,Su)),wl["\u0275did"](1,638976,null,0,Ou,[],null,null)],function(e,n){e(n,1,0)},null)}function lt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,0,"span",[["aria-hidden","true"],["class","glyphicon glyphicon-option-vertical action--movable"]],null,null,null,null,null))],null,null)}function it(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"icon",[["name","pencil"]],null,null,null,_,gi)),wl["\u0275did"](1,114688,null,0,ki,[],{name:[0,"name"]},null)],function(e,n){e(n,1,0,"pencil")},null)}function ot(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"icon",[["name","trash"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.deleteAction()&&l}return l},_,gi)),wl["\u0275did"](1,114688,null,0,ki,[],{name:[0,"name"]},null)],function(e,n){e(n,1,0,"trash")},null)}function at(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,19,"div",[["class","list-group-item action--item"]],[[2,"is-editing",null]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,lt)),wl["\u0275did"](3,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](5,0,null,null,10,"div",[["class","action--item--wrap"]],[[2,"pointer",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.editAction()&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](7,0,null,null,1,"icon",[],null,null,null,_,gi)),wl["\u0275did"](8,114688,null,0,ki,[],{name:[0,"name"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](10,0,null,null,1,"div",[["class","action--title"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](11,null,["",""])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,it)),wl["\u0275did"](14,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,ot)),wl["\u0275did"](18,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](21,0,null,null,5,"div",[["class","list-group-item macro-action-editor__container"]],[[24,"@toggler",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](23,0,null,null,2,"macro-action-editor",[["class","macro-action-editor"]],null,[[null,"cancel"],[null,"save"]],function(e,n,t){var l=!0,i=e.component;if("cancel"===n){l=!1!==i.cancelEdit()&&l}if("save"===n){l=!1!==i.saveEditedAction(t)&&l}return l},nt,Su)),wl["\u0275did"](24,638976,null,0,Ou,[],{macroAction:[0,"macroAction"]},{save:"save",cancel:"cancel"}),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,3,0,t.movable),e(n,8,0,t.iconName),e(n,14,0,t.editable&&t.macroAction&&!t.editing),e(n,18,0,t.deletable),e(n,24,0,t.macroAction)},function(e,n){var t=n.component;e(n,0,0,t.editing),e(n,5,0,t.editable),e(n,11,0,t.title),e(n,21,0,t.editable&&t.editing||t.newItem?"active":"inactive")})}function ut(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"macro-item",[["class","macro-item"]],null,null,null,at,Ru)),wl["\u0275did"](1,638976,null,0,nu,[Ro],null,null)],function(e,n){e(n,1,0)},null)}function ct(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](1,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,[" No macros are available to choose from. Create a macro first! "])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],null,null)}function rt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,2,"macro-item",[["class","macro-item"]],null,null,null,at,Ru)),wl["\u0275did"](1,638976,null,0,nu,[Ro],{macroAction:[0,"macroAction"],editable:[1,"editable"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "]))],function(e,n){e(n,1,0,n.context.$implicit,!1)},null)}function st(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](1,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),wl["\u0275eld"](2,0,null,null,1,"i",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Please note that macro playback is not implemented yet. You can bind macros, but they don't have any effect."])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](5,0,null,null,7,"div",[["class","macro-selector"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](7,0,null,null,1,"b",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,[" Play macro: "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](10,0,null,null,1,"select2",[],null,[[null,"valueChanged"]],function(e,n,t){var l=!0,i=e.component;if("valueChanged"===n){l=!1!==i.onChange(t)&&l}return l},Ia.b,Ia.a)),wl["\u0275did"](11,4964352,null,0,Ea.Select2Component,[wl.Renderer],{data:[0,"data"],value:[1,"value"],width:[2,"width"]},{valueChanged:"valueChanged"}),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](14,0,null,null,7,"div",[["class","macro-action-container"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](16,0,null,null,4,"div",[["class","list-group"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,rt)),wl["\u0275did"](19,802816,null,0,Ul.j,[wl.ViewContainerRef,wl.TemplateRef,wl.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,11,0,t.macroOptions,t.macroOptions[t.selectedMacroIndex].id,"100%"),e(n,19,0,t.macros[t.selectedMacroIndex].macroActions)},null)}function dt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275and"](16777216,null,null,1,null,ct)),wl["\u0275did"](1,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275and"](16777216,null,null,1,null,st)),wl["\u0275did"](4,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,n){var t=n.component;e(n,1,0,0===t.macroOptions.length),e(n,4,0,t.macroOptions.length>0)},null)}function pt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"macro-tab",[],null,null,null,dt,Nu)),wl["\u0275did"](1,770048,null,0,Eu,[xl.m],null,null)],function(e,n){e(n,1,0)},null)}function yt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](1,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,[" No keymaps are available to choose from. Create a keymap first! "])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],null,null)}function ft(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,3,"div",[["class","empty"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,0,"img",[["src","assets/images/base-layer--blank.svg"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "]))],null,null)}function mt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,2,"svg-keyboard",[],null,null,null,nn,_a)),wl["\u0275did"](1,638976,null,0,Ca,[Ma],{moduleConfig:[0,"moduleConfig"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "]))],function(e,n){e(n,1,0,n.component.selectedKeymap.layers[0].modules)},null)}function kt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](1,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](3,0,null,null,1,"b",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Switch to keymap:"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](6,0,null,null,1,"select2",[],null,[[null,"valueChanged"]],function(e,n,t){var l=!0,i=e.component;if("valueChanged"===n){l=!1!==i.onChange(t)&&l}return l},Ia.b,Ia.a)),wl["\u0275did"](7,4964352,null,0,Ea.Select2Component,[wl.Renderer],{data:[0,"data"],value:[1,"value"],width:[2,"width"]},{valueChanged:"valueChanged"}),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](10,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,ft)),wl["\u0275did"](13,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,mt)),wl["\u0275did"](16,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,7,0,t.keymapOptions,(null==t.selectedKeymap?null:t.selectedKeymap.abbreviation)||-1,"100%"),e(n,13,0,!(null==t.selectedKeymap?null:t.selectedKeymap.abbreviation)),e(n,16,0,null==t.selectedKeymap?null:t.selectedKeymap.abbreviation)},null)}function ht(e){return wl["\u0275vid"](2,[(e()(),wl["\u0275and"](16777216,null,null,1,null,yt)),wl["\u0275did"](1,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275and"](16777216,null,null,1,null,kt)),wl["\u0275did"](4,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,1,0,0===t.keymapOptions.length),e(n,4,0,t.keymapOptions.length>0)},null)}function gt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"keymap-tab",[],null,null,null,ht,Fu)),wl["\u0275did"](1,573440,null,0,Ku,[],null,null)],null,null)}function bt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275ted"](-1,null,["This key is unassigned and has no functionality."]))],null,null)}function vt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"none-tab",[],null,null,null,bt,Gu)),wl["\u0275did"](1,114688,null,0,$u,[],null,null)],function(e,n){e(n,1,0)},null)}function At(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"keypress-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,n,t){var l=!0,i=e.component;if("validAction"===n){l=!1!==(i.keyActionValid=t)&&l}return l},fn,Ba)),wl["\u0275did"](1,573440,[[1,4],["tab",4]],0,La,[Ro],{defaultKeyAction:[0,"defaultKeyAction"],secondaryRoleEnabled:[1,"secondaryRoleEnabled"]},{validAction:"validAction"})],function(e,n){e(n,1,0,n.component.defaultKeyAction,!0)},null)}function Tt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"layer-tab",[["class","popover-content"]],[[2,"no-base",null]],[[null,"validAction"]],function(e,n,t){var l=!0,i=e.component;if("validAction"===n){l=!1!==(i.keyActionValid=t)&&l}return l},Tn,za)),wl["\u0275did"](1,573440,[[1,4],["tab",4]],0,Ga,[],{defaultKeyAction:[0,"defaultKeyAction"],currentLayer:[1,"currentLayer"]},{validAction:"validAction"})],function(e,n){var t=n.component;e(n,1,0,t.defaultKeyAction,t.currentLayer)},function(e,n){e(n,0,0,wl["\u0275nov"](n,1).isNotBase)})}function Mt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"mouse-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,n,t){var l=!0,i=e.component;if("validAction"===n){l=!1!==(i.keyActionValid=t)&&l}return l},Pn,Qa)),wl["\u0275did"](1,573440,[[1,4],["tab",4]],0,Ja,[],{defaultKeyAction:[0,"defaultKeyAction"]},{validAction:"validAction"})],function(e,n){e(n,1,0,n.component.defaultKeyAction)},null)}function Ct(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"macro-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,n,t){var l=!0,i=e.component;if("validAction"===n){l=!1!==(i.keyActionValid=t)&&l}return l},dt,Nu)),wl["\u0275did"](1,770048,[[1,4],["tab",4]],0,Eu,[xl.m],{defaultKeyAction:[0,"defaultKeyAction"]},{validAction:"validAction"})],function(e,n){e(n,1,0,n.component.defaultKeyAction)},null)}function wt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,2,"keymap-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,n,t){var l=!0,i=e.component;if("validAction"===n){l=!1!==(i.keyActionValid=t)&&l}return l},ht,Fu)),wl["\u0275did"](1,573440,[[1,4],["tab",4]],0,Ku,[],{defaultKeyAction:[0,"defaultKeyAction"],keymaps:[1,"keymaps"]},{validAction:"validAction"}),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef])],function(e,n){var t=n.component;e(n,1,0,t.defaultKeyAction,wl["\u0275unv"](n,1,1,wl["\u0275nov"](n,2).transform(t.keymaps$)))},null)}function _t(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"none-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,n,t){var l=!0,i=e.component;if("validAction"===n){l=!1!==(i.keyActionValid=t)&&l}return l},bt,Gu)),wl["\u0275did"](1,114688,[[1,4],["tab",4]],0,$u,[],null,{validAction:"validAction"})],function(e,n){e(n,1,0)},null)}function Ot(e){return wl["\u0275vid"](0,[wl["\u0275qud"](671088640,1,{selectedTab:0}),wl["\u0275qud"](402653184,2,{popoverHost:0}),(e()(),wl["\u0275eld"](2,0,[[2,0],["popover",1]],null,108,"div",[["class","popover"]],[[24,"@popover",0],[4,"top","px"],[4,"left","px"]],null,null,null,null)),wl["\u0275did"](3,278528,null,0,Ul.i,[wl.IterableDiffers,wl.KeyValueDiffers,wl.ElementRef,wl.Renderer],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),wl["\u0275pod"](4,{leftArrow:0,rightArrow:1}),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](6,0,null,null,0,"div",[["class","arrowCustom"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](8,0,null,null,70,"div",[["class","popover-title menu-tabs"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](10,0,null,null,67,"ul",[["class","nav nav-tabs popover-menu"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](12,0,[["keypress",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.selectTab(i.tabName.Keypress)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](14,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](16,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](18,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Keypress"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](23,0,[["layer",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.selectTab(i.tabName.Layer)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](25,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](27,0,null,null,0,"i",[["class","fa fa-clone"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](29,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Layer"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](34,0,[["mouse",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.selectTab(i.tabName.Mouse)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](36,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](38,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](40,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Mouse"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](45,0,[["macro",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.selectTab(i.tabName.Macro)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](47,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](49,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](51,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Macro"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](56,0,[["keymap",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.selectTab(i.tabName.Keymap)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](58,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](60,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](62,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Keymap"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](67,0,[["none",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.selectTab(i.tabName.None)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](69,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](71,0,null,null,0,"i",[["class","fa fa-ban"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](73,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["None"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](80,0,null,null,20,"div",[],null,null,null,null,null)),wl["\u0275did"](81,16384,null,0,Ul.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,At)),wl["\u0275did"](84,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Tt)),wl["\u0275did"](87,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Mt)),wl["\u0275did"](90,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Ct)),wl["\u0275did"](93,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,wt)),wl["\u0275did"](96,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,_t)),wl["\u0275did"](99,278528,null,0,Ul.o,[wl.ViewContainerRef,wl.TemplateRef,Ul.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](102,0,null,null,7,"div",[["class","popover-action"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](104,0,null,null,1,"button",[["class","btn btn-sm btn-default"],["type","button"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.onCancelClick()&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,[" Cancel "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](107,0,null,null,1,"button",[["class","btn btn-sm btn-primary"],["type","button"]],[[2,"disabled",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.onRemapKey()&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,[" Remap Key "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](112,0,null,null,0,"div",[["class","popover-overlay"]],[[2,"display",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.onOverlay()&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,3,0,"popover",e(n,4,0,t.leftArrow,t.rightArrow)),e(n,81,0,t.activeTab),e(n,84,0,t.tabName.Keypress),e(n,87,0,t.tabName.Layer),e(n,90,0,t.tabName.Mouse),e(n,93,0,t.tabName.Macro),e(n,96,0,t.tabName.Keymap),e(n,99,0,t.tabName.None)},function(e,n){var t=n.component;e(n,2,0,t.animationState,t.topPosition,t.leftPosition),e(n,12,0,t.activeTab===t.tabName.Keypress),e(n,23,0,t.activeTab===t.tabName.Layer),e(n,34,0,t.activeTab===t.tabName.Mouse),e(n,45,0,t.activeTab===t.tabName.Macro),e(n,56,0,t.activeTab===t.tabName.Keymap),e(n,67,0,t.activeTab===t.tabName.None),e(n,107,0,!t.keyActionValid),e(n,112,0,t.visible)})}function xt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"popover",[],null,[[null,"keydown.escape"]],function(e,n,t){var l=!0;if("keydown.escape"===n){l=!1!==wl["\u0275nov"](e,1).onEscape()&&l}return l},Ot,Yu)),wl["\u0275did"](1,573440,null,0,zu,[xl.m],null,null)],null,null)}function St(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](1,null,["\n ",": ","\n "]))],null,function(e,n){e(n,1,0,n.context.$implicit.name,n.context.$implicit.value)})}function Pt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](1,0,null,null,1,"layers",[],[[2,"disabled",null]],[[null,"select"]],function(e,n,t){var l=!0,i=e.component;if("select"===n){l=!1!==i.selectLayer(t.index)&&l}return l},X,mo)),wl["\u0275did"](2,49152,null,0,yo,[],{current:[0,"current"]},{select:"select"}),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](4,0,null,null,1,"keyboard-slider",[],null,[[null,"keyClick"],[null,"keyHover"],[null,"capture"],[null,"descriptionChanged"]],function(e,n,t){var l=!0,i=e.component;if("keyClick"===n){l=!1!==i.onKeyClick(t.moduleId,t.keyId,t.keyTarget)&&l}if("keyHover"===n){l=!1!==i.onKeyHover(t.moduleId,t.event,t.over,t.keyId)&&l}if("capture"===n){l=!1!==i.onCapture(t.moduleId,t.keyId,t.captured)&&l}if("descriptionChanged"===n){l=!1!==i.onDescriptionChanged(t)&&l}return l},on,Sa)),wl["\u0275did"](5,573440,null,0,Oa,[],{layers:[0,"layers"],currentLayer:[1,"currentLayer"],keybindAnimationEnabled:[2,"keybindAnimationEnabled"],capturingEnabled:[3,"capturingEnabled"],halvesSplit:[4,"halvesSplit"],selectedKey:[5,"selectedKey"],keyboardLayout:[6,"keyboardLayout"],description:[7,"description"]},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture",descriptionChanged:"descriptionChanged"}),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](7,0,[[1,0]],null,1,"popover",[["tabindex","0"]],null,[[null,"cancel"],[null,"remap"],[null,"keydown.escape"]],function(e,n,t){var l=!0,i=e.component;if("keydown.escape"===n){l=!1!==wl["\u0275nov"](e,8).onEscape()&&l}if("cancel"===n){l=!1!==i.hidePopover()&&l}if("remap"===n){l=!1!==i.onRemap(t)&&l}return l},Ot,Yu)),wl["\u0275did"](8,573440,null,0,zu,[xl.m],{defaultKeyAction:[0,"defaultKeyAction"],currentKeymap:[1,"currentKeymap"],currentLayer:[2,"currentLayer"],keyPosition:[3,"keyPosition"],wrapPosition:[4,"wrapPosition"],visible:[5,"visible"]},{cancel:"cancel",remap:"remap"}),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](10,0,null,null,10,"div",[["class","tooltip bottom"]],[[2,"in",null],[4,"top","px"],[4,"left","px"]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](12,0,null,null,0,"div",[["class","tooltip-arrow"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](14,0,null,null,5,"div",[["class","tooltip-inner"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,2,null,St)),wl["\u0275did"](17,802816,null,0,Ul.j,[wl.ViewContainerRef,wl.TemplateRef,wl.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,2,0,t.currentLayer),e(n,5,0,t.layers,t.currentLayer,t.keybindAnimationEnabled,t.popoverEnabled,t.halvesSplit,t.selectedKey,t.keyboardLayout,t.keymap.description),e(n,8,0,t.popoverInitKeyAction,t.keymap,t.currentLayer,t.keyPosition,t.wrapPosition,t.popoverShown),e(n,17,0,wl["\u0275unv"](n,17,0,wl["\u0275nov"](n,18).transform(t.tooltipData.content)))},function(e,n){var t=n.component;e(n,1,0,t.popoverShown),e(n,10,0,t.tooltipData.show,t.tooltipData.posTop,t.tooltipData.posLeft)})}function Rt(e){return wl["\u0275vid"](2,[wl["\u0275qud"](671088640,1,{popover:0}),(e()(),wl["\u0275and"](16777216,null,null,1,null,Pt)),wl["\u0275did"](2,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){e(n,2,0,n.component.layers)},null)}function It(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"svg-keyboard-wrap",[],[[2,"space",null]],[["window","resize"]],function(e,n,t){var l=!0;if("window:resize"===n){l=!1!==wl["\u0275nov"](e,1).onResize()&&l}return l},Rt,Qu)),wl["\u0275did"](1,638976,null,0,Ju,[xl.m,Ro,wl.ElementRef,wl.Renderer],null,null)],function(e,n){e(n,1,0)},function(e,n){e(n,0,0,wl["\u0275nov"](n,1).space)})}function Et(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](1,0,null,null,3,"keymap-header",[],null,[[null,"downloadClick"],["window","resize"]],function(e,n,t){var l=!0,i=e.component;if("window:resize"===n){l=!1!==wl["\u0275nov"](e,2).windowResize()&&l}if("downloadClick"===n){l=!1!==i.downloadKeymap()&&l}return l},q,ro)),wl["\u0275did"](2,573440,null,0,ao,[xl.m,wl.Renderer2],{keymap:[0,"keymap"],deletable:[1,"deletable"]},{downloadClick:"downloadClick"}),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](6,0,null,null,3,"svg-keyboard-wrap",[],[[2,"space",null]],[[null,"descriptionChanged"],["window","resize"]],function(e,n,t){var l=!0,i=e.component;if("window:resize"===n){l=!1!==wl["\u0275nov"](e,7).onResize()&&l}if("descriptionChanged"===n){l=!1!==i.descriptionChanged(t)&&l}return l},Rt,Qu)),wl["\u0275did"](7,638976,[[1,4]],0,Ju,[xl.m,Ro,wl.ElementRef,wl.Renderer],{keymap:[0,"keymap"],halvesSplit:[1,"halvesSplit"],keyboardLayout:[2,"keyboardLayout"]},{descriptionChanged:"descriptionChanged"}),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,2,0,wl["\u0275unv"](n,2,0,wl["\u0275nov"](n,3).transform(t.keymap$)),wl["\u0275unv"](n,2,1,wl["\u0275nov"](n,4).transform(t.deletable$))),e(n,7,0,wl["\u0275unv"](n,7,0,wl["\u0275nov"](n,8).transform(t.keymap$)),t.keyboardSplit,wl["\u0275unv"](n,7,2,wl["\u0275nov"](n,9).transform(t.keyboardLayout$)))},function(e,n){e(n,6,0,wl["\u0275nov"](n,7).space)})}function Ut(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n Sorry, there is no keymap with this abbreviation.\n"]))],null,null)}function Nt(e){return wl["\u0275vid"](0,[wl["\u0275qud"](671088640,1,{wrap:0}),(e()(),wl["\u0275and"](16777216,null,null,2,null,Et)),wl["\u0275did"](2,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["\n\n"])),(e()(),wl["\u0275and"](16777216,null,null,2,null,Ut)),wl["\u0275did"](6,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,2,0,wl["\u0275unv"](n,2,0,wl["\u0275nov"](n,3).transform(t.keymap$))),e(n,6,0,!wl["\u0275unv"](n,6,0,wl["\u0275nov"](n,7).transform(t.keymap$)))},null)}function Lt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"keymap-edit",[["class","container-fluid"]],null,[["window","keydown.alt.s"]],function(e,n,t){var l=!0;if("window:keydown.alt.s"===n){l=!1!==wl["\u0275nov"](e,1).toggleKeyboardSplit(t)&&l}return l},Nt,tc)),wl["\u0275did"](1,49152,null,0,ec,[xl.m,Zl.a],null,null)],null,null)}function Dt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,[["keyboard",1]],null,17,"div",[["class","keymap__list_item"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](3,null,["",""])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](5,0,null,null,1,"p",[["class","keymap__description"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](6,null,["\n ","\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](8,0,null,null,2,"svg-keyboard-wrap",[],[[2,"space",null]],[["window","resize"]],function(e,n,t){var l=!0;if("window:resize"===n){l=!1!==wl["\u0275nov"](e,9).onResize()&&l}return l},Rt,Qu)),wl["\u0275did"](9,638976,null,0,Ju,[xl.m,Ro,wl.ElementRef,wl.Renderer],{keymap:[0,"keymap"],popoverEnabled:[1,"popoverEnabled"],tooltipEnabled:[2,"tooltipEnabled"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](12,0,null,null,4,"div",[["class","btn-group btn-group-lg"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](14,0,null,null,1,"button",[["class","btn btn-default"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.addKeymap(e.context.$implicit)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["Add keymap"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "]))],function(e,n){e(n,9,0,n.context.$implicit,!1,!0)},function(e,n){e(n,3,0,n.context.$implicit.name),e(n,6,0,n.context.$implicit.description),e(n,8,0,wl["\u0275nov"](n,9).space)})}function Kt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n Sorry, no keyboard found under this search query.\n"]))],null,null)}function jt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Add new keymap"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](8,0,null,null,16,"div",[["class","keymap__search clearfix"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](10,0,null,null,8,"div",[["class","input-group"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](12,0,null,null,3,"span",[["class","input-group-addon"],["id","sizing-addon1"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](14,0,null,null,0,"i",[["class","fa fa-search"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](17,0,null,null,0,"input",[["class","form-control"],["placeholder","Search ..."],["type","text"]],null,[[null,"input"]],function(e,n,t){var l=!0,i=e.component;if("input"===n){l=!1!==i.filterKeyboards(t.target.value)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](20,0,null,null,3,"div",[["class","keymap__search_amount"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](21,null,["\n "," / "," keymaps shown\n "])),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](26,0,null,null,5,"div",[["class","keymap__list"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,2,null,Dt)),wl["\u0275did"](29,802816,null,0,Ul.j,[wl.ViewContainerRef,wl.TemplateRef,wl.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275and"](16777216,null,null,2,null,Kt)),wl["\u0275did"](34,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef])],function(e,n){var t=n.component;e(n,29,0,wl["\u0275unv"](n,29,0,wl["\u0275nov"](n,30).transform(t.presets$))),e(n,34,0,0===wl["\u0275unv"](n,34,0,wl["\u0275nov"](n,35).transform(t.presets$)).length)},function(e,n){var t=n.component;e(n,21,0,wl["\u0275unv"](n,21,0,wl["\u0275nov"](n,22).transform(t.presets$)).length,wl["\u0275unv"](n,21,1,wl["\u0275nov"](n,23).transform(t.presetsAll$)).length)})}function Ft(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"keymap-add",[["class","container-fluid"]],null,null,null,jt,uc)),wl["\u0275did"](1,49152,null,0,oc,[xl.m],null,null)],null,null)}function Vt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,11,"div",[["class","container-fluid"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,5,"uhk-header",[],null,null,null,W,to)),wl["\u0275did"](3,49152,null,0,Ji,[xl.m],null,null),(e()(),wl["\u0275ted"](-1,0,["\n "])),(e()(),wl["\u0275eld"](5,0,null,0,1,"h1",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\xa0"])),(e()(),wl["\u0275ted"](-1,0,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](9,0,null,null,1,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n You don't have any macros. Try to add one!\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],null,null)}function Bt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"macro-not-found",[],null,null,null,Vt,pc)),wl["\u0275did"](1,49152,null,0,sc,[],null,null)],null,null)}function $t(e){return wl["\u0275vid"](2,[wl["\u0275qud"](402653184,1,{macroName:0}),(e()(),wl["\u0275eld"](1,0,null,null,19,"uhk-header",[],null,null,null,W,to)),wl["\u0275did"](2,49152,null,0,Ji,[xl.m],null,null),(e()(),wl["\u0275ted"](-1,0,["\n "])),(e()(),wl["\u0275eld"](4,0,null,0,15,"div",[["class","row"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](6,0,null,null,12,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](8,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](10,0,[[1,0],["macroName",1]],null,1,"input",[["cancelable",""],["class","pane-title__name"],["type","text"]],null,[[null,"change"],[null,"keyup.enter"],[null,"keyup"],[null,"focus"],[null,"keyup.escape"]],function(e,n,t){var l=!0,i=e.component;if("focus"===n){l=!1!==wl["\u0275nov"](e,11).onFocus()&&l}if("keyup.escape"===n){l=!1!==wl["\u0275nov"](e,11).onEscape()&&l}if("change"===n){l=!1!==i.editMacroName(t.target.value)&&l}if("keyup.enter"===n){l=!1!==wl["\u0275nov"](e,10).blur()&&l}if("keyup"===n){l=!1!==i.calculateHeaderTextWidth(t.target.value)&&l}return l},null,null)),wl["\u0275did"](11,16384,null,0,uo,[wl.ElementRef,wl.Renderer],null,null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](13,0,null,null,1,"i",[["class","glyphicon glyphicon-trash macro__remove pull-right"],["data-original-title","<span class='text-nowrap'>Delete macro</span>"],["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["title",""]],[[1,"data-placement",0]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.removeMacro()&&l}return l},null,null)),wl["\u0275did"](14,1589248,null,0,bi,[wl.ElementRef,ri.c],{title:[0,"title"],html:[1,"html"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](16,0,null,null,1,"i",[["class","fa fa-files-o macro__duplicate pull-right"],["data-original-title","Duplicate macro"],["data-placement","bottom"],["data-toggle","tooltip"],["title",""]],[[1,"data-placement",0]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.duplicateMacro()&&l}return l},null,null)),wl["\u0275did"](17,1589248,null,0,bi,[wl.ElementRef,ri.c],{title:[0,"title"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,0,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){e(n,14,0,"","true");e(n,17,0,"")},function(e,n){e(n,13,0,wl["\u0275nov"](n,14).placement),e(n,16,0,wl["\u0275nov"](n,17).placement)})}function Ht(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"macro-header",[],null,[["window","resize"]],function(e,n,t){var l=!0;if("window:resize"===n){l=!1!==wl["\u0275nov"](e,1).windowResize()&&l}return l},$t,gc)),wl["\u0275did"](1,4767744,null,0,kc,[xl.m,wl.Renderer2],null,null)],null,null)}function Gt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"macro-item",[["class","macro-item"]],[[1,"data-index",0]],[[null,"save"],[null,"edit"],[null,"cancel"],[null,"delete"]],function(e,n,t){var l=!0,i=e.component;if("save"===n){l=!1!==i.saveAction(t,e.context.index)&&l}if("edit"===n){l=!1!==i.editAction(e.context.index)&&l}if("cancel"===n){l=!1!==i.cancelAction()&&l}if("delete"===n){l=!1!==i.deleteAction(e.context.$implicit,e.context.index)&&l}return l},at,Ru)),wl["\u0275did"](1,638976,[[1,4]],0,nu,[Ro],{macroAction:[0,"macroAction"],editable:[1,"editable"],deletable:[2,"deletable"],movable:[3,"movable"]},{save:"save",cancel:"cancel",edit:"edit",delete:"delete"})],function(e,n){e(n,1,0,n.context.$implicit,!0,!0,!0)},function(e,n){e(n,0,0,n.context.index)})}function Wt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"macro-item",[["class","macro-item"]],[[24,"@togglerNew",0]],[[null,"save"],[null,"cancel"]],function(e,n,t){var l=!0,i=e.component;if("save"===n){l=!1!==i.addNewAction(t)&&l}if("cancel"===n){l=!1!==i.hideNewAction()&&l}return l},at,Ru)),wl["\u0275did"](1,638976,[[1,4]],0,nu,[Ro],{macroAction:[0,"macroAction"],editable:[1,"editable"],deletable:[2,"deletable"],movable:[3,"movable"]},{save:"save",cancel:"cancel"})],function(e,n){e(n,1,0,n.component.newMacro,!0,!1,!1)},function(e,n){e(n,0,0,n.component.showNew?"active":"inactive")})}function zt(e){return wl["\u0275vid"](0,[wl["\u0275qud"](671088640,1,{macroItems:1}),(e()(),wl["\u0275eld"](1,0,null,null,34,"div",[["class","row list-container"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](3,0,null,null,31,"div",[["class","col-xs-10 col-xs-offset-1 list-group"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](5,0,null,null,8,"div",[["class","macro-actions-container"]],null,null,null,null,null)),wl["\u0275did"](6,606208,null,0,vc.DragulaDirective,[wl.ElementRef,Ac.DragulaService],{dragula:[0,"dragula"],dragulaModel:[1,"dragulaModel"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Gt)),wl["\u0275did"](9,802816,null,0,Ul.j,[wl.ViewContainerRef,wl.TemplateRef,wl.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Wt)),wl["\u0275did"](12,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](15,0,null,null,18,"div",[["class","list-group add-new__action-container"]],[[24,"@toggler",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](17,0,null,null,15,"div",[["class","list-group-item action--item add-new__action-item no-reorder clearfix"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](19,0,null,null,6,"span",[["class","add-new__action-item--link"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.showNewAction()&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](21,0,null,null,3,"button",[["class","btn btn-link"],["type","button"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](23,0,null,null,0,"i",[["class","fa fa-plus"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,[" Add macro action\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](27,0,null,null,4,"span",[["class","add-new__action-item--link"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](29,0,null,null,1,"capture-keystroke-button",[["captureText","Add captured keystroke"],["isLink","true"]],null,[[null,"capture"],[null,"keyup"],[null,"keydown"],[null,"focusout"]],function(e,n,t){var l=!0,i=e.component;if("keyup"===n){l=!1!==wl["\u0275nov"](e,30).onKeyUp(t)&&l}if("keydown"===n){l=!1!==wl["\u0275nov"](e,30).onKeyDown(t)&&l}if("focusout"===n){l=!1!==wl["\u0275nov"](e,30).onFocusOut()&&l}if("capture"===n){l=!1!==i.onKeysCapture(t)&&l}return l},rn,Fa)),wl["\u0275did"](30,49152,null,0,Ka,[aa],{isLink:[0,"isLink"],captureText:[1,"captureText"]},{capture:"capture"}),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,6,0,"macroActions",t.macro.macroActions),e(n,9,0,t.macro.macroActions),e(n,12,0,t.showNew);e(n,30,0,"true","Add captured keystroke")},function(e,n){e(n,15,0,n.component.showNew?"inactive":"active")})}function qt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,2,"macro-list",[],null,null,null,zt,wc)),wl["\u0275prd"](8704,null,Ac.DragulaService,Ac.DragulaService,[]),wl["\u0275did"](2,49152,null,0,Mc,[Ro,Ac.DragulaService],null,null)],null,null)}function Yt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](1,0,null,null,1,"macro-header",[],null,[["window","resize"]],function(e,n,t){var l=!0;if("window:resize"===n){l=!1!==wl["\u0275nov"](e,2).windowResize()&&l}return l},$t,gc)),wl["\u0275did"](2,4767744,null,0,kc,[xl.m,wl.Renderer2],{macro:[0,"macro"],isNew:[1,"isNew"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](4,0,null,null,2,"macro-list",[],null,[[null,"add"],[null,"edit"],[null,"delete"],[null,"reorder"]],function(e,n,t){var l=!0,i=e.component;if("add"===n){l=!1!==i.addAction(t.macroId,t.action)&&l}if("edit"===n){l=!1!==i.editAction(t.macroId,t.index,t.action)&&l}if("delete"===n){l=!1!==i.deleteAction(t.macroId,t.index,t.action)&&l}if("reorder"===n){l=!1!==i.reorderAction(t.macroId,t.oldIndex,t.newIndex)&&l}return l},zt,wc)),wl["\u0275prd"](8704,null,Ac.DragulaService,Ac.DragulaService,[]),wl["\u0275did"](6,49152,null,0,Mc,[Ro,Ac.DragulaService],{macro:[0,"macro"]},{add:"add",edit:"edit",delete:"delete",reorder:"reorder"}),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,2,0,t.macro,t.isNew),e(n,6,0,t.macro)},null)}function Jt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](1,null,["\n There is no macro with id ",".\n"]))],null,function(e,n){e(n,1,0,n.component.macroId)})}function Xt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275and"](16777216,null,null,1,null,Yt)),wl["\u0275did"](1,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n\n"])),(e()(),wl["\u0275and"](16777216,null,null,1,null,Jt)),wl["\u0275did"](4,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,1,0,t.macro),e(n,4,0,!t.macro)},null)}function Qt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"macro-edit",[["class","container-fluid"]],null,null,null,Xt,xc)),wl["\u0275did"](1,180224,null,0,_c,[xl.m,Zl.a],null,null)],null,null)}function Zt(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,10,"div",[["class","row"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,7,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-puzzle-piece"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](6,0,null,null,2,"span",[["class","macro__name pane-title__name"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](7,null,["",""])),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\nTo be done..."]))],null,function(e,n){var t=n.component;e(n,7,0,wl["\u0275unv"](n,7,0,wl["\u0275nov"](n,8).transform(t.name$)))})}function el(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"add-on",[["class","container-fluid"]],null,null,null,Zt,Ec)),wl["\u0275did"](1,49152,null,0,Rc,[Zl.a],null,null)],null,null)}function nl(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,0,"span",[["class","fa fa-spinner fa-spin"]],null,null,null,null,null))],null,null)}function tl(e){return wl["\u0275vid"](2,[(e()(),wl["\u0275eld"](0,0,null,null,38,"div",[["class","row"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,35,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](4,0,null,null,6,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](6,0,null,null,3,"label",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](8,0,null,null,0,"input",[["type","checkbox"]],[[8,"checked",0]],[[null,"change"]],function(e,n,t){var l=!0,i=e.component;if("change"===n){l=!1!==i.emitCheckForUpdateOnStartUp(t.target.checked)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,[" Automatically check for update on\n application start\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n\n "])),(e()(),wl["\u0275eld"](12,0,null,null,6,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](14,0,null,null,3,"label",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](16,0,null,null,0,"input",[["type","checkbox"]],[[8,"checked",0]],[[null,"change"]],function(e,n,t){var l=!0,i=e.component;if("change"===n){l=!1!==i.emitUsePreReleaseUpdate(t.target.checked)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,[" Allow alpha / pre release\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](20,0,null,null,10,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](22,0,null,null,1,"label",[["class","col-sm-2 control-label"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Version:"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](25,0,null,null,4,"div",[["class","col-sm-10"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](27,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](28,null,["",""])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n\n "])),(e()(),wl["\u0275eld"](32,0,null,null,4,"button",[["class","btn btn-link"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.emitCheckForUpdate()&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n Check for update\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,nl)),wl["\u0275did"](35,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){e(n,35,0,n.component.checkingForUpdate)},function(e,n){var t=n.component;e(n,8,0,t.settings.checkForUpdateOnStartUp),e(n,16,0,t.settings.usePreReleaseUpdate),e(n,28,0,t.version)})}function ll(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"auto-update-settings",[],null,null,null,tl,Fc)),wl["\u0275did"](1,49152,null,0,Kc,[],null,null)],null,null)}function il(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,9,"div",[["class","row"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,6,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-gear"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](6,0,null,null,1,"span",[["class","macro__name pane-title__name"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Settings"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](11,0,null,null,4,"auto-update-settings",[],null,[[null,"toggleCheckForUpdateOnStartUp"],[null,"toggleUsePreReleaseUpdate"],[null,"checkForUpdate"]],function(e,n,t){var l=!0,i=e.component;if("toggleCheckForUpdateOnStartUp"===n){l=!1!==i.toogleCheckForUpdateOnStartUp(t)&&l}if("toggleUsePreReleaseUpdate"===n){l=!1!==i.toogleUsePreReleaseUpdate(t)&&l}if("checkForUpdate"===n){l=!1!==i.checkForUpdate()&&l}return l},tl,Fc)),wl["\u0275did"](12,49152,null,0,Kc,[],{version:[0,"version"],settings:[1,"settings"],checkingForUpdate:[2,"checkingForUpdate"]},{toggleCheckForUpdateOnStartUp:"toggleCheckForUpdateOnStartUp",toggleUsePreReleaseUpdate:"toggleUsePreReleaseUpdate",checkForUpdate:"checkForUpdate"}),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,12,0,t.version,wl["\u0275unv"](n,12,1,wl["\u0275nov"](n,13).transform(t.autoUpdateSettings$)),wl["\u0275unv"](n,12,2,wl["\u0275nov"](n,14).transform(t.checkingForUpdate$)))},null)}function ol(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"settings",[["class","container-fluid"]],null,null,null,il,Bc)),wl["\u0275did"](1,49152,null,0,Dc,[xl.m],null,null)],null,null)}function al(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,21,"div",[["class","row"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,6,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](4,0,null,null,0,"i",[["class","uhk-icon uhk-icon-agent-icon"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](6,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["About"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](10,0,null,null,10,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](12,0,null,null,3,"div",[["class","agent-version"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["Agent version: "])),(e()(),wl["\u0275eld"](14,0,null,null,1,"span",[["class","text-bold"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](15,null,["",""])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](17,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),wl["\u0275eld"](18,0,null,null,1,"a",[["class","link-github"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.openAgentGitHubPage(t)&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["Agent on GitHub"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],null,function(e,n){e(n,15,0,n.component.version)})}function ul(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"about-page",[["class","container-fluid"]],null,null,null,al,zc)),wl["\u0275did"](1,49152,null,0,Gc,[xl.m],null,null)],null,null)}function cl(e){return wl["\u0275vid"](2,[(e()(),wl["\u0275eld"](0,0,null,null,7,"div",[["class","app-update-available-wrapper"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n New version available.\n "])),(e()(),wl["\u0275eld"](2,0,null,null,1,"button",[["class","btn btn-primary"],["type","button"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.updateApp.emit()&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["Update"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](5,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.doNotUpdateApp.emit()&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["Close"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],null,null)}function rl(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"app-update-available",[],null,null,null,cl,Zc)),wl["\u0275did"](1,49152,null,0,Xc,[],null,null)],null,null)}function sl(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"i",[["class","fa fa-star sidebar__fav"],["data-placement","bottom"],["data-toggle","tooltip"],["title","This is the default keymap which gets activated when powering the keyboard."]],[[1,"data-placement",0]],null,null,null,null)),wl["\u0275did"](1,1589248,null,0,bi,[wl.ElementRef,ri.c],{title:[0,"title"]},null)],function(e,n){e(n,1,0,"This is the default keymap which gets activated when powering the keyboard.")},function(e,n){e(n,0,0,wl["\u0275nov"](n,1).placement)})}function dl(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,17,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,14,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),wl["\u0275did"](3,1720320,null,2,Zl.n,[Zl.m,wl.ElementRef,wl.Renderer2,wl.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),wl["\u0275qud"](603979776,10,{links:1}),wl["\u0275qud"](603979776,11,{linksWithHrefs:1}),wl["\u0275pad"](6,1),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](8,0,null,null,4,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,n,t){var l=!0;if("click"===n){l=!1!==wl["\u0275nov"](e,9).onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)&&l}return l},null,null)),wl["\u0275did"](9,671744,[[11,4]],0,Zl.o,[Zl.m,Zl.a,Ul.h],{routerLink:[0,"routerLink"]},null),wl["\u0275pad"](10,2),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](12,null,["",""])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,sl)),wl["\u0275did"](15,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "]))],function(e,n){e(n,3,0,e(n,6,0,"active")),e(n,9,0,e(n,10,0,"/keymap",n.context.$implicit.abbreviation)),e(n,15,0,n.context.$implicit.isDefault)},function(e,n){var t=n.component;e(n,8,0,wl["\u0275unv"](n,8,0,wl["\u0275nov"](n,11).transform(t.updatingFirmware$)),wl["\u0275nov"](n,9).target,wl["\u0275nov"](n,9).href),e(n,12,0,n.context.$implicit.name)})}function pl(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,14,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,11,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),wl["\u0275did"](3,1720320,null,2,Zl.n,[Zl.m,wl.ElementRef,wl.Renderer2,wl.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),wl["\u0275qud"](603979776,12,{links:1}),wl["\u0275qud"](603979776,13,{linksWithHrefs:1}),wl["\u0275pad"](6,1),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](8,0,null,null,4,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,n,t){var l=!0;if("click"===n){l=!1!==wl["\u0275nov"](e,9).onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)&&l}return l},null,null)),wl["\u0275did"](9,671744,[[13,4]],0,Zl.o,[Zl.m,Zl.a,Ul.h],{routerLink:[0,"routerLink"]},null),wl["\u0275pad"](10,2),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](12,null,["",""])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "]))],function(e,n){e(n,3,0,e(n,6,0,"active")),e(n,9,0,e(n,10,0,"/macro",n.context.$implicit.id))},function(e,n){var t=n.component;e(n,8,0,wl["\u0275unv"](n,8,0,wl["\u0275nov"](n,11).transform(t.updatingFirmware$)),wl["\u0275nov"](n,9).target,wl["\u0275nov"](n,9).href),e(n,12,0,n.context.$implicit.name)})}function yl(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,75,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](2,0,null,null,5,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-puzzle-piece"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,[" Add-on modules\n "])),(e()(),wl["\u0275eld"](6,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.toggleHide(t,"addon")&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](9,0,null,null,65,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](11,0,null,null,14,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Key cluster"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](13,0,null,null,11,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),wl["\u0275did"](14,1720320,null,2,Zl.n,[Zl.m,wl.ElementRef,wl.Renderer2,wl.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),wl["\u0275qud"](603979776,14,{links:1}),wl["\u0275qud"](603979776,15,{linksWithHrefs:1}),wl["\u0275pad"](17,1),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](19,0,null,null,4,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,n,t){var l=!0;if("click"===n){l=!1!==wl["\u0275nov"](e,20).onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)&&l}return l},null,null)),wl["\u0275did"](20,671744,[[15,4]],0,Zl.o,[Zl.m,Zl.a,Ul.h],{routerLink:[0,"routerLink"]},null),wl["\u0275pad"](21,2),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["Key cluster"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](27,0,null,null,14,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Trackball"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](29,0,null,null,11,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),wl["\u0275did"](30,1720320,null,2,Zl.n,[Zl.m,wl.ElementRef,wl.Renderer2,wl.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),wl["\u0275qud"](603979776,16,{links:1}),wl["\u0275qud"](603979776,17,{linksWithHrefs:1}),wl["\u0275pad"](33,1),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](35,0,null,null,4,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,n,t){var l=!0;if("click"===n){l=!1!==wl["\u0275nov"](e,36).onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)&&l}return l},null,null)),wl["\u0275did"](36,671744,[[17,4]],0,Zl.o,[Zl.m,Zl.a,Ul.h],{routerLink:[0,"routerLink"]},null),wl["\u0275pad"](37,2),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["Trackball"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](43,0,null,null,14,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Toucpad"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](45,0,null,null,11,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),wl["\u0275did"](46,1720320,null,2,Zl.n,[Zl.m,wl.ElementRef,wl.Renderer2,wl.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),wl["\u0275qud"](603979776,18,{links:1}),wl["\u0275qud"](603979776,19,{linksWithHrefs:1}),wl["\u0275pad"](49,1),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](51,0,null,null,4,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,n,t){var l=!0;if("click"===n){l=!1!==wl["\u0275nov"](e,52).onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)&&l}return l},null,null)),wl["\u0275did"](52,671744,[[19,4]],0,Zl.o,[Zl.m,Zl.a,Ul.h],{routerLink:[0,"routerLink"]},null),wl["\u0275pad"](53,2),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["Touchpad"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](59,0,null,null,14,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Trackpoint"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](61,0,null,null,11,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),wl["\u0275did"](62,1720320,null,2,Zl.n,[Zl.m,wl.ElementRef,wl.Renderer2,wl.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),wl["\u0275qud"](603979776,20,{links:1}),wl["\u0275qud"](603979776,21,{linksWithHrefs:1}),wl["\u0275pad"](65,1),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](67,0,null,null,4,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,n,t){var l=!0;if("click"===n){l=!1!==wl["\u0275nov"](e,68).onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)&&l}return l},null,null)),wl["\u0275did"](68,671744,[[21,4]],0,Zl.o,[Zl.m,Zl.a,Ul.h],{routerLink:[0,"routerLink"]},null),wl["\u0275pad"](69,2),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["Trackpoint"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "]))],function(e,n){e(n,14,0,e(n,17,0,"active")),e(n,20,0,e(n,21,0,"/add-on","Key cluster")),e(n,30,0,e(n,33,0,"active")),e(n,36,0,e(n,37,0,"/add-on","Trackball")),e(n,46,0,e(n,49,0,"active")),e(n,52,0,e(n,53,0,"/add-on","Touchpad")),e(n,62,0,e(n,65,0,"active")),e(n,68,0,e(n,69,0,"/add-on","Trackpoint"))},function(e,n){var t=n.component;e(n,9,0,t.animation.addon),e(n,19,0,wl["\u0275unv"](n,19,0,wl["\u0275nov"](n,22).transform(t.updatingFirmware$)),wl["\u0275nov"](n,20).target,wl["\u0275nov"](n,20).href),e(n,35,0,wl["\u0275unv"](n,35,0,wl["\u0275nov"](n,38).transform(t.updatingFirmware$)),wl["\u0275nov"](n,36).target,wl["\u0275nov"](n,36).href),e(n,51,0,wl["\u0275unv"](n,51,0,wl["\u0275nov"](n,54).transform(t.updatingFirmware$)),wl["\u0275nov"](n,52).target,wl["\u0275nov"](n,52).href),e(n,67,0,wl["\u0275unv"](n,67,0,wl["\u0275nov"](n,70).transform(t.updatingFirmware$)),wl["\u0275nov"](n,68).target,wl["\u0275nov"](n,68).href)})}function fl(e){return wl["\u0275vid"](0,[wl["\u0275qud"](402653184,1,{deviceName:0}),(e()(),wl["\u0275eld"](1,0,null,null,186,"ul",[["class","menu--top"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](3,0,null,null,136,"li",[["class","sidebar__level-0--item"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](5,0,null,null,8,"div",[["class","sidebar__level-0"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](7,0,null,null,0,"i",[["class","uhk-icon uhk-icon-0401-usb-stick rotate-right"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](9,0,[[1,0],["deviceName",1]],null,1,"input",[["cancelable",""],["class","pane-title__name"],["type","text"]],null,[[null,"change"],[null,"keyup.enter"],[null,"keyup"],[null,"focus"],[null,"keyup.escape"]],function(e,n,t){var l=!0,i=e.component;if("focus"===n){l=!1!==wl["\u0275nov"](e,10).onFocus()&&l}if("keyup.escape"===n){l=!1!==wl["\u0275nov"](e,10).onEscape()&&l}if("change"===n){l=!1!==i.editDeviceName(t.target.value)&&l}if("keyup.enter"===n){l=!1!==wl["\u0275nov"](e,9).blur()&&l}if("keyup"===n){l=!1!==i.calculateHeaderTextWidth(t.target.value)&&l}return l},null,null)),wl["\u0275did"](10,16384,null,0,uo,[wl.ElementRef,wl.Renderer],null,null),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](12,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.toggleHide(t,"device")&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](15,0,null,null,123,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](17,0,null,null,75,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](19,0,null,null,5,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](21,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,[" Device\n "])),(e()(),wl["\u0275eld"](23,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.toggleHide(t,"configuration")&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](26,0,null,null,65,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](28,0,null,null,14,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](30,0,null,null,11,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),wl["\u0275did"](31,1720320,null,2,Zl.n,[Zl.m,wl.ElementRef,wl.Renderer2,wl.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),wl["\u0275qud"](603979776,2,{links:1}),wl["\u0275qud"](603979776,3,{linksWithHrefs:1}),wl["\u0275pad"](34,1),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](36,0,null,null,4,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,n,t){var l=!0;if("click"===n){l=!1!==wl["\u0275nov"](e,37).onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)&&l}return l},null,null)),wl["\u0275did"](37,671744,[[3,4]],0,Zl.o,[Zl.m,Zl.a,Ul.h],{routerLink:[0,"routerLink"]},null),wl["\u0275pad"](38,1),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["Mouse speed"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](44,0,null,null,14,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](46,0,null,null,11,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),wl["\u0275did"](47,1720320,null,2,Zl.n,[Zl.m,wl.ElementRef,wl.Renderer2,wl.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),wl["\u0275qud"](603979776,4,{links:1}),wl["\u0275qud"](603979776,5,{linksWithHrefs:1}),wl["\u0275pad"](50,1),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](52,0,null,null,4,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,n,t){var l=!0;if("click"===n){l=!1!==wl["\u0275nov"](e,53).onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)&&l}return l},null,null)),wl["\u0275did"](53,671744,[[5,4]],0,Zl.o,[Zl.m,Zl.a,Ul.h],{routerLink:[0,"routerLink"]},null),wl["\u0275pad"](54,1),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["LED brightness"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](60,0,null,null,14,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](62,0,null,null,11,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),wl["\u0275did"](63,1720320,null,2,Zl.n,[Zl.m,wl.ElementRef,wl.Renderer2,wl.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),wl["\u0275qud"](603979776,6,{links:1}),wl["\u0275qud"](603979776,7,{linksWithHrefs:1}),wl["\u0275pad"](66,1),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](68,0,null,null,4,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,n,t){var l=!0;if("click"===n){l=!1!==wl["\u0275nov"](e,69).onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)&&l}return l},null,null)),wl["\u0275did"](69,671744,[[7,4]],0,Zl.o,[Zl.m,Zl.a,Ul.h],{routerLink:[0,"routerLink"]},null),wl["\u0275pad"](70,1),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["Configuration"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](76,0,null,null,14,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](78,0,null,null,11,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),wl["\u0275did"](79,1720320,null,2,Zl.n,[Zl.m,wl.ElementRef,wl.Renderer2,wl.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),wl["\u0275qud"](603979776,8,{links:1}),wl["\u0275qud"](603979776,9,{linksWithHrefs:1}),wl["\u0275pad"](82,1),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](84,0,null,null,4,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,n,t){var l=!0;if("click"===n){l=!1!==wl["\u0275nov"](e,85).onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)&&l}return l},null,null)),wl["\u0275did"](85,671744,[[9,4]],0,Zl.o,[Zl.m,Zl.a,Ul.h],{routerLink:[0,"routerLink"]},null),wl["\u0275pad"](86,1),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["Firmware"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](94,0,null,null,16,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](96,0,null,null,6,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](98,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,[" Keymaps\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](101,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.toggleHide(t,"keymap")&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](104,0,null,null,5,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,2,null,dl)),wl["\u0275did"](107,802816,null,0,Ul.j,[wl.ViewContainerRef,wl.TemplateRef,wl.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](112,0,null,null,21,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](114,0,null,null,11,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](116,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,[" Macros\n "])),(e()(),wl["\u0275eld"](118,0,null,null,4,"a",[["class","btn btn-default pull-right btn-sm"]],[[2,"disabled",null]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.addMacro()&&l}return l},null,null)),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](121,0,null,null,0,"i",[["class","fa fa-plus"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](124,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.toggleHide(t,"macro")&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](127,0,null,null,5,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,2,null,pl)),wl["\u0275did"](130,802816,null,0,Ul.j,[wl.ViewContainerRef,wl.TemplateRef,wl.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,2,null,yl)),wl["\u0275did"](136,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](141,0,null,null,45,"li",[["class","sidebar__level-0--item"]],null,null,null,null,null)),wl["\u0275did"](142,1720320,null,2,Zl.n,[Zl.m,wl.ElementRef,wl.Renderer2,wl.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),wl["\u0275qud"](603979776,22,{links:1}),wl["\u0275qud"](603979776,23,{linksWithHrefs:1}),wl["\u0275pad"](145,1),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](147,0,null,null,5,"div",[["class","sidebar__level-0"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](149,0,null,null,0,"i",[["class","uhk-icon uhk-icon-agent-icon"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,[" Agent\n "])),(e()(),wl["\u0275eld"](151,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.toggleHide(t,"agent")&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](154,0,null,null,31,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](156,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](158,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),wl["\u0275did"](159,1720320,null,2,Zl.n,[Zl.m,wl.ElementRef,wl.Renderer2,wl.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),wl["\u0275qud"](603979776,24,{links:1}),wl["\u0275qud"](603979776,25,{linksWithHrefs:1}),wl["\u0275pad"](162,1),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](164,0,null,null,3,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,n,t){var l=!0;if("click"===n){l=!1!==wl["\u0275nov"](e,165).onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)&&l}return l},null,null)),wl["\u0275did"](165,671744,[[25,4],[23,4]],0,Zl.o,[Zl.m,Zl.a,Ul.h],{routerLink:[0,"routerLink"]},null),wl["\u0275pad"](166,1),(e()(),wl["\u0275ted"](-1,null,["Settings"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](171,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](173,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),wl["\u0275did"](174,1720320,null,2,Zl.n,[Zl.m,wl.ElementRef,wl.Renderer2,wl.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),wl["\u0275qud"](603979776,26,{links:1}),wl["\u0275qud"](603979776,27,{linksWithHrefs:1}),wl["\u0275pad"](177,1),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](179,0,null,null,3,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,n,t){var l=!0;if("click"===n){l=!1!==wl["\u0275nov"](e,180).onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)&&l}return l},null,null)),wl["\u0275did"](180,671744,[[27,4],[23,4]],0,Zl.o,[Zl.m,Zl.a,Ul.h],{routerLink:[0,"routerLink"]},null),wl["\u0275pad"](181,1),(e()(),wl["\u0275ted"](-1,null,["About"])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,31,0,e(n,34,0,"active")),e(n,37,0,e(n,38,0,"/device/mouse-speed")),e(n,47,0,e(n,50,0,"active")),e(n,53,0,e(n,54,0,"/device/led-brightness")),e(n,63,0,e(n,66,0,"active")),e(n,69,0,e(n,70,0,"/device/configuration")),e(n,79,0,e(n,82,0,"active")),e(n,85,0,e(n,86,0,"/device/firmware")),e(n,107,0,wl["\u0275unv"](n,107,0,wl["\u0275nov"](n,108).transform(t.keymaps$))),e(n,130,0,wl["\u0275unv"](n,130,0,wl["\u0275nov"](n,131).transform(t.macros$))),e(n,136,0,wl["\u0275unv"](n,136,0,wl["\u0275nov"](n,137).transform(t.showAddonMenu$))),e(n,142,0,e(n,145,0,"active")),e(n,159,0,e(n,162,0,"active")),e(n,165,0,e(n,166,0,"/settings")),e(n,174,0,e(n,177,0,"active")),e(n,180,0,e(n,181,0,"/about"))},function(e,n){var t=n.component;e(n,15,0,t.animation.device),e(n,26,0,t.animation.configuration),e(n,36,0,wl["\u0275unv"](n,36,0,wl["\u0275nov"](n,39).transform(t.updatingFirmware$)),wl["\u0275nov"](n,37).target,wl["\u0275nov"](n,37).href),e(n,52,0,wl["\u0275unv"](n,52,0,wl["\u0275nov"](n,55).transform(t.updatingFirmware$)),wl["\u0275nov"](n,53).target,wl["\u0275nov"](n,53).href),e(n,68,0,wl["\u0275unv"](n,68,0,wl["\u0275nov"](n,71).transform(t.updatingFirmware$)),wl["\u0275nov"](n,69).target,wl["\u0275nov"](n,69).href),e(n,84,0,wl["\u0275unv"](n,84,0,wl["\u0275nov"](n,87).transform(t.updatingFirmware$)),wl["\u0275nov"](n,85).target,wl["\u0275nov"](n,85).href),e(n,104,0,t.animation.keymap),e(n,118,0,wl["\u0275unv"](n,118,0,wl["\u0275nov"](n,119).transform(t.updatingFirmware$))),e(n,127,0,t.animation.macro),e(n,154,0,t.animation.agent),e(n,164,0,wl["\u0275nov"](n,165).target,wl["\u0275nov"](n,165).href),e(n,179,0,wl["\u0275nov"](n,180).target,wl["\u0275nov"](n,180).href)})}function ml(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"side-menu",[],null,null,null,fl,lr)),wl["\u0275did"](1,1228800,null,0,nr,[xl.m,wl.Renderer2],null,null)],null,null)}function kl(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-spin fa-spinner"]],null,null,null,null,null))],null,null)}function hl(e){return wl["\u0275vid"](2,[(e()(),wl["\u0275eld"](0,0,null,null,4,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,n,t){var l=!0,i=e.component;if("click"===n){l=!1!==i.onClicked()&&l}return l},null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275and"](16777216,null,null,1,null,kl)),wl["\u0275did"](3,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),wl["\u0275ted"](4,null,[" ","\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){e(n,3,0,n.component.state.showProgress)},function(e,n){var t=n.component;e(n,0,0,t.state.showProgress),e(n,4,0,t.state.text)})}function gl(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"progress-button",[],null,null,null,hl,cr)),wl["\u0275did"](1,49152,null,0,ar,[],null,null)],null,null)}function bl(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,2,"app-update-available",[],null,[[null,"updateApp"],[null,"doNotUpdateApp"]],function(e,n,t){var l=!0,i=e.component;if("updateApp"===n){l=!1!==i.updateApp()&&l}if("doNotUpdateApp"===n){l=!1!==i.doNotUpdateApp()&&l}return l},cl,Zc)),wl["\u0275did"](1,49152,null,0,Xc,[],null,{updateApp:"updateApp",doNotUpdateApp:"doNotUpdateApp"}),(e()(),wl["\u0275ted"](-1,null,["\n"]))],null,null)}function vl(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"side-menu",[],null,null,null,fl,lr)),wl["\u0275did"](1,1228800,null,0,nr,[xl.m,wl.Renderer2],null,null)],null,null)}function Al(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,2,"progress-button",[["class","save-to-keyboard-button"]],[[24,"@showSaveToKeyboardButton",0]],[[null,"clicked"]],function(e,n,t){var l=!0,i=e.component;if("clicked"===n){l=!1!==i.clickedOnProgressButton(t)&&l}return l},hl,cr)),wl["\u0275did"](1,49152,null,0,ar,[],{state:[0,"state"]},{clicked:"clicked"}),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef])],function(e,n){var t=n.component;e(n,1,0,wl["\u0275unv"](n,1,0,wl["\u0275nov"](n,2).transform(t.saveToKeyboardState$)))},function(e,n){e(n,0,0,void 0)})}function Tl(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275and"](16777216,null,null,2,null,bl)),wl["\u0275did"](1,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["\n\n"])),(e()(),wl["\u0275and"](16777216,null,null,2,null,vl)),wl["\u0275did"](5,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](8,0,null,null,4,"div",[["class","main-content"],["id","main-content"]],null,null,null,null,null)),(e()(),wl["\u0275ted"](-1,null,["\n "])),(e()(),wl["\u0275eld"](10,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),wl["\u0275did"](11,212992,null,0,Zl.q,[Zl.b,wl.ViewContainerRef,wl.ComponentFactoryResolver,[8,null],wl.ChangeDetectorRef],null,null),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275eld"](14,0,null,null,1,"notifier-container",[["class","notifier__container"]],null,null,null,rr.b,rr.a)),wl["\u0275did"](15,245760,null,0,sr.g,[wl.ChangeDetectorRef,sr.h,sr.b],null,null),(e()(),wl["\u0275ted"](-1,null,["\n"])),(e()(),wl["\u0275and"](16777216,null,null,2,null,Al)),wl["\u0275did"](18,16384,null,0,Ul.k,[wl.ViewContainerRef,wl.TemplateRef],{ngIf:[0,"ngIf"]},null),wl["\u0275pid"](131072,Ul.b,[wl.ChangeDetectorRef]),(e()(),wl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,1,0,wl["\u0275unv"](n,1,0,wl["\u0275nov"](n,2).transform(t.showUpdateAvailable$))),e(n,5,0,wl["\u0275unv"](n,5,0,wl["\u0275nov"](n,6).transform(t.deviceConfigurationLoaded$))),e(n,11,0),e(n,15,0),e(n,18,0,wl["\u0275unv"](n,18,0,wl["\u0275nov"](n,19).transform(t.saveToKeyboardState$)).showButton)},null)}function Ml(e){return wl["\u0275vid"](0,[(e()(),wl["\u0275eld"](0,0,null,null,1,"main-app",[],null,null,null,Tl,pr)),wl["\u0275did"](1,49152,null,0,Rl,[xl.m],null,null)],null,null)}Object.defineProperty(n,"__esModule",{value:!0});var Cl,wl=t("/oeL"),_l=t("p5Ee"),Ol=function(){function e(){}return e}(),xl=t("ADVA"),Sl=(t("dy5W"),t("vBds")),Pl=t("KN1q"),Rl=function(){function e(e){this.store=e,this.showUpdateAvailable$=e.select(Pl.k),this.deviceConfigurationLoaded$=e.select(Pl.a),this.runningInElectron$=e.select(Pl.o),this.saveToKeyboardState$=e.select(Pl.p)}return e.prototype.updateApp=function(){this.store.dispatch(new Sl.c)},e.prototype.doNotUpdateApp=function(){this.store.dispatch(new Sl.b)},e.prototype.clickedOnProgressButton=function(e){return this.store.dispatch(e)},e.ctorParameters=function(){return[{type:xl.m}]},e}(),Il=t("UOfe"),El=[".uhk-message-wrapper[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.agent-logo[_ngcontent-%COMP%]{padding:2em}.message[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.message[_ngcontent-%COMP%] > h2[_ngcontent-%COMP%]{margin-top:10px}.spin-logo[_ngcontent-%COMP%]{-webkit-animation:spin 2s ease-in-out infinite;animation:spin 2s ease-in-out infinite}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}50%{-webkit-transform:rotate(1turn);transform:rotate(1turn)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}50%{-webkit-transform:rotate(1turn);transform:rotate(1turn)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}"],Ul=t("qbdv"),Nl=function(){function e(){this.rotateLogo=!1}return e}(),Ll=[El],Dl=wl["\u0275crt"]({encapsulation:0,styles:Ll,data:{}}),Kl=(wl["\u0275ccf"]("uhk-message",Nl,i,{header:"header",subtitle:"subtitle",rotateLogo:"rotateLogo"},{},[]),t("MBEm"),t("IpZT"),t("86mp"),function(){function e(){}return e.ctorParameters=function(){return[]},e}()),jl=[],Fl=wl["\u0275crt"]({encapsulation:2,styles:jl,data:{}}),Vl=wl["\u0275ccf"]("missing-device",Kl,a,{},{},[]),Bl=[".privilege-checker-wrapper[_ngcontent-%COMP%]{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}uhk-message[_ngcontent-%COMP%]{max-width:50%}"],$l=(t("/zHi"),t("S7im"),t("CyOy")),Hl=function(){function e(e){this.store=e}return e.prototype.setUpPermissions=function(){this.store.dispatch(new $l.j)},e.ctorParameters=function(){return[{type:xl.m}]},e}(),Gl=[Bl],Wl=wl["\u0275crt"]({encapsulation:0,styles:Gl,data:{}}),zl=wl["\u0275ccf"]("privilege-checker",Hl,c,{},{},[]),ql=function(){function e(){}return e.ctorParameters=function(){return[]},e}(),Yl=[],Jl=wl["\u0275crt"]({encapsulation:2,styles:Yl,data:{}}),Xl=wl["\u0275ccf"]("loading-device",ql,s,{},{},[]),Ql=function(){function e(){}return e.prototype.onActivate=function(e,n){n.scrollIntoView()},e.ctorParameters=function(){return[]},e}(),Zl=t("BkNc"),ei=["[_nghost-%COMP%]{height:100%; width:100%}"],ni=wl["\u0275crt"]({encapsulation:0,styles:ei,data:{}}),ti=wl["\u0275ccf"]("main-page",Ql,p,{},{},[]),li=["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}[_nghost-%COMP%] p[_ngcontent-%COMP%]{margin:1.5rem 0}"],ii=t("pSU5"),oi=function(){function e(e){this.store=e}return e.prototype.resetUserConfiguration=function(){this.store.dispatch(new $l.e)},e.prototype.saveConfigurationInJSONFormat=function(){this.store.dispatch(new ii.j)},e.prototype.saveConfigurationInBINFormat=function(){this.store.dispatch(new ii.i)},e.prototype.changeFile=function(e){var n=e.srcElement.files,t=new FileReader;t.onloadend=function(){var n=new Uint8Array(t.result);this.store.dispatch(new ii.g({filename:e.srcElement.value,data:Array.from(n)}))}.bind(this),t.readAsArrayBuffer(n[0])},e.ctorParameters=function(){return[{type:xl.m}]},e}(),ai=t("KRXn"),ui=t("BJSQ"),ci=t("7/Pv"),ri=t("fc+i"),si=[li],di=wl["\u0275crt"]({encapsulation:0,styles:si,data:{}}),pi=wl["\u0275ccf"]("device-settings",oi,f,{},{},[]),yi=["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}[_nghost-%COMP%] label[_ngcontent-%COMP%]{display:block;font-weight:400}[_nghost-%COMP%] label[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] .mouse-speed-reset-button[_ngcontent-%COMP%]{display:block;margin-bottom:4rem}[_nghost-%COMP%] .mouse-speed-setting[_ngcontent-%COMP%]{margin-bottom:6rem}[_nghost-%COMP%] .mouse-speed-setting[_ngcontent-%COMP%] + h3[_ngcontent-%COMP%]{margin-top:2rem}"],fi=["[_nghost-%COMP%] label[_ngcontent-%COMP%]{display:block;font-weight:400}[_nghost-%COMP%] label[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] .slider-wrapper[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;padding-left:1.6rem}[_nghost-%COMP%] .slider-container[_ngcontent-%COMP%]{width:80%}[_nghost-%COMP%] .slider-value[_ngcontent-%COMP%]{width:20%}[_nghost-%COMP%] .value-indicator[_ngcontent-%COMP%]{margin:1rem 1rem 1rem 3rem;vertical-align:middle}"],mi=["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.action--edit[_ngcontent-%COMP%]:hover{color:#337ab7;cursor:pointer}.action--trash[_ngcontent-%COMP%]:hover{color:#d9534f;cursor:pointer}"],ki=function(){function e(){}return e.prototype.ngOnInit=function(){},e.ctorParameters=function(){return[]},e}(),hi=[mi],gi=wl["\u0275crt"]({encapsulation:0,styles:hi,data:{}}),bi=(wl["\u0275ccf"]("icon",ki,O,{name:"name"},{},[]),function(){function e(e,n){this.elementRef=e,this.sanitizer=n,this.customTooltipTemplate='\n <div class="tooltip">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner"></div>\n </div>\n '}return e.prototype.ngAfterContentInit=function(){this.init()},e.prototype.ngOnChanges=function(e){e.title&&this.fixTitle()},e.prototype.init=function(){jQuery(this.elementRef.nativeElement).tooltip({placement:this.placement,html:this.html,template:this.customTooltipTemplate,title:this.title})},e.prototype.fixTitle=function(){jQuery(this.elementRef.nativeElement).tooltip({placement:this.placement,html:this.html,template:this.customTooltipTemplate,title:this.title}),jQuery(this.elementRef.nativeElement).attr("title",this.title).tooltip("fixTitle")},e.ctorParameters=function(){return[{type:wl.ElementRef},{type:ri.c}]},e}()),vi=t("bKpL"),Ai=(t("azLz"),function(){function e(){this.onChange=new wl.EventEmitter,this.changeDebounceTime=300,this.propagateChange=function(){}}return e.prototype.ngAfterViewInit=function(){this.pips&&this.slider.slider.pips(this.pips),this.slider.slider.target.querySelector(".noUi-tooltip").style.display="none",this.slider.slider.on("start",function(){this.target.querySelector(".noUi-tooltip").style.display="block"}),this.slider.slider.on("end",function(){this.target.querySelector(".noUi-tooltip").style.display="none"})},e.prototype.ngOnDestroy=function(){this.changeObserver$&&this.changeObserver$.complete()},e.prototype.writeValue=function(e){this.value=e||this.min},e.prototype.registerOnChange=function(e){this.propagateChange=e},e.prototype.registerOnTouched=function(){},e.prototype.onSliderChange=function(e){var n=this;if(!this.changeObserver$)return void vi.Observable.create(function(e){n.changeObserver$=e}).debounceTime(this.changeDebounceTime).distinctUntilChanged().subscribe(this.propagateChange);this.changeObserver$.next(e)},e}()),Ti=t("4Id2"),Mi=t("u+1Z"),Ci=t("bm2B"),wi=[fi],_i=wl["\u0275crt"]({encapsulation:0,styles:wi,data:{}}),Oi=(wl["\u0275ccf"]("slider-wrapper",Ai,R,{label:"label",tooltip:"tooltip",min:"min",max:"max",step:"step",pips:"pips",valueUnit:"valueUnit"},{onChange:"onChange"},[]),t("xDyD")),xi=25,Si=function(){function e(e,n){this.store=e,this.defaultUserConfigurationService=n,this.moveProps=[{prop:"mouseMoveInitialSpeed",title:"Initial speed",tooltip:"When mouse movement begins, this is the starting speed.",valueUnit:"px/s",value:0},{prop:"mouseMoveBaseSpeed",title:"Base speed",tooltip:"This speed is reached after the initial moving speed sufficiently ramps up.",valueUnit:"px/s",value:0},{prop:"mouseMoveAcceleration",title:"Acceleration",tooltip:"The rate of acceleration from the initial movement speed to the base speed.",valueUnit:"px/s\xb2",value:0},{prop:"mouseMoveDeceleratedSpeed",title:"Decelerated speed",tooltip:"This speed is used while moving with the <i>decelerate key</i> pressed.",valueUnit:"px/s",value:0},{prop:"mouseMoveAcceleratedSpeed",title:"Accelerated speed",tooltip:"This speed is used while moving with the <i>accelerate key</i> pressed.",valueUnit:"px/s",value:0}],this.scrollProps=[{prop:"mouseScrollInitialSpeed",title:"Initial speed",tooltip:"When mouse scrolling begins, this is the starting speed.",valueUnit:"pulse/s",value:0},{prop:"mouseScrollBaseSpeed",title:"Base speed",tooltip:"This speed is reached after the initial scrolling speed sufficiently ramps up.",valueUnit:"pulse/s",value:0},{prop:"mouseScrollAcceleration",title:"Acceleration",tooltip:"The rate of acceleration from the initial scrolling speed to the base speed.",valueUnit:"pulse/s\xb2",value:0},{prop:"mouseScrollDeceleratedSpeed",title:"Decelerated speed",tooltip:"This speed is used while scrolling with the <i>decelerate key</i> pressed.",valueUnit:"pulse/s",value:0},{prop:"mouseScrollAcceleratedSpeed",title:"Accelerated speed",tooltip:"This speed is used while scrolling with the <i>accelerate key</i> pressed.",valueUnit:"pulse/s",value:0}],this.sliderPips={mode:"positions",values:[0,50,100],density:6,stepped:!0},this.moveSettings={min:xi,max:6375,step:xi},this.scrollSettings={min:1,max:255,step:1}}return e.prototype.ngOnInit=function(){var e=this;this.userConfig$=this.store.select(Pl.m),this.userConfigSubscription=this.userConfig$.subscribe(function(n){e.moveProps.forEach(function(e){e.value=n[e.prop]*xi||0}),e.scrollProps.forEach(function(e){e.value=n[e.prop]||0})})},e.prototype.ngOnDestroy=function(){this.userConfigSubscription.unsubscribe()},e.prototype.onSetPropertyValue=function(e,n){this.store.dispatch(new ii.l({propertyName:e,value:-1!==e.indexOf("mouseMove")?n/xi:n}))},e.prototype.resetToDefault=function(){this.store.dispatch(new $l.d)},e.ctorParameters=function(){return[{type:xl.m},{type:Oi.a}]},e}(),Pi=[yi],Ri=wl["\u0275crt"]({encapsulation:0,styles:Pi,data:{}}),Ii=wl["\u0275ccf"]("device-mouse-speed",Si,N,{},{},[]),Ei=["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}[_nghost-%COMP%] label[_ngcontent-%COMP%]{display:block;font-weight:400}[_nghost-%COMP%] .led-setting[_ngcontent-%COMP%]{margin-bottom:6rem}"],Ui=function(){function e(e){this.store=e,this.iconsAndLayerTextsBrightness=0,this.alphanumericSegmentsBrightness=0,this.keyBacklightBrightness=0,this.sliderPips={mode:"positions",values:[0,50,100],density:6,stepped:!0}}return e.prototype.ngOnInit=function(){var e=this;this.userConfig$=this.store.select(Pl.m),this.userConfigSubscription=this.userConfig$.subscribe(function(n){e.iconsAndLayerTextsBrightness=n.iconsAndLayerTextsBrightness,e.alphanumericSegmentsBrightness=n.alphanumericSegmentsBrightness,e.keyBacklightBrightness=n.keyBacklightBrightness})},e.prototype.ngOnDestroy=function(){this.userConfigSubscription.unsubscribe()},e.prototype.onSetPropertyValue=function(e,n){this.store.dispatch(new ii.l({propertyName:e,value:n}))},e.ctorParameters=function(){return[{type:xl.m}]},e}(),Ni=[Ei],Li=wl["\u0275crt"]({encapsulation:0,styles:Ni,data:{}}),Di=wl["\u0275ccf"]("device-led-brightness",Ui,D,{},{},[]),Ki=["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100vh;min-height:100%;width:100%}.flex-container[_ngcontent-%COMP%]{height:100%;max-height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.flex-grow[_ngcontent-%COMP%]{background-color:#000;overflow:auto;-webkit-box-flex:1;-ms-flex:1;flex:1}.footer[_ngcontent-%COMP%]{margin-top:.5em;margin-bottom:.5em}.ok-button[_ngcontent-%COMP%]{min-width:100px}"],ji=function(){function e(e){var n=this;this.store=e,this.flashFirmwareButtonDisbabled$=e.select(Pl.d),this.xtermLog$=e.select(Pl.s),this.xtermLogSubscription=this.xtermLog$.subscribe(function(){n.divElement&&n.divElement.nativeElement&&setTimeout(function(){n.divElement.nativeElement.scrollTop=n.divElement.nativeElement.scrollHeight})}),this.getAgentVersionInfo$=e.select(Pl.e),this.firmwareOkButtonDisabled$=e.select(Pl.c)}return e.prototype.ngOnDestroy=function(){this.xtermLogSubscription.unsubscribe()},e.prototype.onUpdateFirmware=function(){this.store.dispatch(new $l.m)},e.prototype.onUpdateFirmwareWithFile=function(){this.arrayBuffer&&this.store.dispatch(new $l.r(Array.prototype.slice.call(this.arrayBuffer)))},e.prototype.onOkButtonClick=function(){this.store.dispatch(new $l.o)},e.prototype.changeFile=function(e){var n=e.srcElement.files;if(0===n.length)return void(this.arrayBuffer=null);var t=new FileReader;t.onloadend=function(){this.arrayBuffer=new Uint8Array(t.result)}.bind(this),t.readAsArrayBuffer(n[0])},e.ctorParameters=function(){return[{type:xl.m}]},e}(),Fi=['[_nghost-%COMP%]{background-color:#ff0}.wrapper[_ngcontent-%COMP%]{background-color:#000}.xterm-standard[_ngcontent-%COMP%]{color:#fff}.xterm-error[_ngcontent-%COMP%]{color:red}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding-left:5px}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{content:"$ "}'],Vi=function(){function e(){this.logs=[]}return e}(),Bi=[Fi],$i=wl["\u0275crt"]({encapsulation:0,styles:Bi,data:{}}),Hi=(wl["\u0275ccf"]("xterm",Vi,F,{logs:"logs"},{},[]),[Ki]),Gi=wl["\u0275crt"]({encapsulation:0,styles:Hi,data:{}}),Wi=wl["\u0275ccf"]("device-firmware",ji,B,{},{},[]),zi=["[_nghost-%COMP%]{width:100%;display:block}.not-found[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;text-align:center}"],qi=["[_nghost-%COMP%]{display:block}.keymap__is-default.fa-star-o[_ngcontent-%COMP%]{cursor:pointer}.keymap__is-default.fa-star-o[_ngcontent-%COMP%]:hover{color:#337ab7}.keymap__remove[_ngcontent-%COMP%]{font-size:.75em;top:8px}.keymap__remove[_ngcontent-%COMP%]:not(.disabled):hover{cursor:pointer;color:#900}.keymap__remove.disabled[_ngcontent-%COMP%]{opacity:.25}.keymap__duplicate[_ngcontent-%COMP%]{font-size:.75em;top:7px;margin-right:15px;position:relative}.keymap__duplicate[_ngcontent-%COMP%]:hover{cursor:pointer;color:#337ab7}.keymap__download[_ngcontent-%COMP%]{top:10px;font-size:.8em;position:relative;margin-right:10px}.keymap__download[_ngcontent-%COMP%]:hover{cursor:pointer;color:#337ab7}.pane-title[_ngcontent-%COMP%]{margin-bottom:1em}.pane-title__abbrev[_ngcontent-%COMP%], .pane-title__name[_ngcontent-%COMP%]{border:none;border-bottom:2px dotted #999;padding:0;margin:0 .25rem}.pane-title__abbrev[_ngcontent-%COMP%]:focus, .pane-title__name[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;border-color:transparent}.pane-title__name[_ngcontent-%COMP%]{width:290px;text-overflow:ellipsis}.pane-title__abbrev[_ngcontent-%COMP%]{width:90px;text-align:center}"],Yi=t("5II9"),Ji=function(){function e(e){this.store=e,this.undoableNotification$=this.store.select(Pl.l)}return e.prototype.onUndoLastNotification=function(e){this.store.dispatch(new Yi.j(e))},e.prototype.onDismissLastNotification=function(){this.store.dispatch(new Yi.d)},e.ctorParameters=function(){return[{type:xl.m}]},e}(),Xi=[".alert[_ngcontent-%COMP%]{padding:5px 10px 5px 5px;margin-bottom:.25em;margin-top:-2em}.alert[_ngcontent-%COMP%] .close[_ngcontent-%COMP%]{right:-5px}.alert[_ngcontent-%COMP%] .undo-button[_ngcontent-%COMP%]{cursor:pointer}"],Qi=function(){function e(){this.close=new wl.EventEmitter,this.undo=new wl.EventEmitter}return Object.defineProperty(e.prototype,"slideInOut",{get:function(){return this.notification?"in":"out"},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){if(e.notification){var n=e.notification.currentValue;n&&(this.text=n.message,this.undoable=!!n.extra)}},e.prototype.clickOnClose=function(){this.close.emit()},e.prototype.clickOnUndo=function(){this.undo.emit(this.notification.extra)},e}(),Zi=[Xi],eo=wl["\u0275crt"]({encapsulation:0,styles:Zi,data:{animation:[{type:7,name:"slideInOut",definitions:[{type:0,name:"in",styles:{type:6,styles:{transform:"translate3d(0, 0, 0)"},offset:null},options:void 0},{type:0,name:"out",styles:{type:6,styles:{transform:"translate3d(200%, 0, 0)"},offset:null},options:void 0},{type:1,expr:"in => out",animation:{type:4,styles:null,timings:"400ms ease-in-out"},options:null},{type:1,expr:"out => in",animation:{type:4,styles:null,timings:"400ms ease-in-out"},options:null}],options:{}}]}}),no=(wl["\u0275ccf"]("undoable-notifier",Qi,G,{notification:"notification"},{close:"close",undo:"undo"},[]),[]),to=wl["\u0275crt"]({encapsulation:2,styles:no,data:{}}),lo=(wl["\u0275ccf"]("uhk-header",Ji,z,{},{},["*"]),t("NfUz")),io=t("n4Nn"),oo='<span class="text-nowrap">Delete keymap</span>',ao=function(){function e(e,n){this.store=e,this.renderer=n,this.downloadClick=new wl.EventEmitter,this.trashTitle=oo}return e.prototype.ngOnChanges=function(e){e.keymap&&(this.setKeymapTitle(),this.setName(),this.setAbbreviation()),e.deletable&&this.setTrashTitle()},e.prototype.windowResize=function(){this.calculateHeaderTextWidth(this.keymap.name)},e.prototype.setDefault=function(){this.keymap.isDefault||this.store.dispatch(lo.a.setDefault(this.keymap.abbreviation))},e.prototype.removeKeymap=function(){this.deletable&&this.store.dispatch(lo.a.removeKeymap(this.keymap.abbreviation))},e.prototype.duplicateKeymap=function(){this.store.dispatch(lo.a.duplicateKeymap(this.keymap))},e.prototype.editKeymapName=function(e){if(!io.d(e))return void this.setName();this.store.dispatch(lo.a.editKeymapName(this.keymap.abbreviation,e))},e.prototype.editKeymapAbbr=function(e){var n=new RegExp(/^[a-zA-Z\d]+$/g);if(e.length<1||e.length>3||!n.test(e))return void this.setAbbreviation();e=e.toUpperCase(),this.store.dispatch(lo.a.editKeymapAbbr(this.keymap.name,this.keymap.abbreviation,e))},e.prototype.setKeymapTitle=function(){this.starTitle=this.keymap.isDefault?"This is the default keymap which gets activated when powering the keyboard.":"Makes this keymap the default keymap which gets activated when powering the keyboard."},e.prototype.setTrashTitle=function(){this.trashTitle=this.deletable?oo:'<span class="text-nowrap">The last keymap cannot be deleted.</span>'},e.prototype.onDownloadIconClick=function(){this.downloadClick.emit()},e.prototype.calculateHeaderTextWidth=function(e){var n=this.keymapName.nativeElement,t=n.parentElement.offsetWidth-530,l=io.b(window.getComputedStyle(n),e);this.renderer.setStyle(n,"width",Math.min(t,l)+"px")},e.prototype.setName=function(){this.renderer.setProperty(this.keymapName.nativeElement,"value",this.keymap.name),this.calculateHeaderTextWidth(this.keymap.name)},e.prototype.setAbbreviation=function(){this.renderer.setProperty(this.keymapAbbr.nativeElement,"value",this.keymap.abbreviation)},e.ctorParameters=function(){return[{type:xl.m},{type:wl.Renderer2}]},e}(),uo=function(){function e(e,n){this.elementRef=e,this.renderer=n}return e.prototype.onFocus=function(){this.originalValue=this.elementRef.nativeElement.value},e.prototype.onEscape=function(){this.renderer.setElementProperty(this.elementRef.nativeElement,"value",this.originalValue),this.renderer.invokeElementMethod(this.elementRef.nativeElement,"blur")},e.ctorParameters=function(){return[{type:wl.ElementRef},{type:wl.Renderer}]},e}(),co=[qi],ro=wl["\u0275crt"]({encapsulation:0,styles:co,data:{}}),so=(wl["\u0275ccf"]("keymap-header",ao,Y,{keymap:"keymap",deletable:"deletable"},{downloadClick:"downloadClick"},[]),["[_nghost-%COMP%]{width:100%;display:block}.space[_nghost-%COMP%]{margin-bottom:405px}keyboard-slider[_ngcontent-%COMP%]{display:block;position:relative;height:500px;margin-top:30px}.tooltip[_ngcontent-%COMP%]{position:fixed;-webkit-transform:translate(-50%,-6px);transform:translate(-50%,-6px);display:none}.tooltip-inner[_ngcontent-%COMP%]{background:#fff;color:#000;box-shadow:0 1px 5px #000;text-align:left}.tooltip-inner[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:2px}.tooltip-inner[_ngcontent-%COMP%] p[_ngcontent-%COMP%]:last-of-type{margin-bottom:0}.tooltip.bottom[_ngcontent-%COMP%] .tooltip-arrow[_ngcontent-%COMP%]{border-bottom-color:#fff;top:1px}.tooltip.in[_ngcontent-%COMP%]{display:block;opacity:1}"]),po=["[_nghost-%COMP%]{display:block}.disabled[_nghost-%COMP%] button[_ngcontent-%COMP%]{cursor:no-drop;background:hsla(0,0%,80%,.43);pointer-events:none}.disabled[_nghost-%COMP%] button.btn-primary[_ngcontent-%COMP%]{background:#7c7c7c;border-color:#7c7c7c}.uhk__layer-switcher--wrapper[_ngcontent-%COMP%]{position:relative;margin-bottom:2rem}.uhk__layer-switcher--wrapper[_ngcontent-%COMP%]:before{content:attr(data-title);display:inline-block;position:absolute;bottom:.55em;right:100%;font-size:18px;padding-right:.45em;margin:0}"],yo=function(){function e(){this.select=new wl.EventEmitter,this.buttons=["Base","Mod","Fn","Mouse"],this.current=0}return e.prototype.selectLayer=function(e){this.current!==e&&(this.select.emit({oldIndex:this.current,index:e}),this.current=e)},e.ctorParameters=function(){return[]},e}(),fo=[po],mo=wl["\u0275crt"]({encapsulation:0,styles:fo,data:{}}),ko=(wl["\u0275ccf"]("layers",yo,Q,{current:"current"},{select:"select"},[]),["svg-keyboard[_ngcontent-%COMP%]{width:95%;max-width:1400px;position:absolute;left:0;-webkit-transform:translateX(-101%);transform:translateX(-101%);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}"]),ho=["[_nghost-%COMP%]{display:block;width:100%;position:relative}editable-text[_ngcontent-%COMP%]{padding-left:2em;padding-right:2em;display:block}"],go=["[_nghost-%COMP%]{position:relative}"],bo=["[_nghost-%COMP%]{cursor:pointer;outline:none}[_nghost-%COMP%] text{dominant-baseline:central}[_nghost-%COMP%]:hover{fill:#494949}"],vo=[".disabled[_ngcontent-%COMP%]{fill:gray}text[_ngcontent-%COMP%]{font-size:100px}"],Ao=function(){function e(){}return e.prototype.ngOnInit=function(){this.svgWidth=this.width/3,this.svgHeight=this.height/3},e.ctorParameters=function(){return[]},e}(),To=[],Mo=wl["\u0275crt"]({encapsulation:2,styles:To,data:{}}),Co=(wl["\u0275ccf"]("g[svg-single-icon-key]",Ao,ee,{width:"width",height:"height",icon:"icon"},{},[]),function(){function e(){}return e.prototype.ngOnInit=function(){this.textY=this.height/2,this.spanX=this.width/2},e.ctorParameters=function(){return[]},e}()),wo=[],_o=wl["\u0275crt"]({encapsulation:2,styles:wo,data:{}}),Oo=(wl["\u0275ccf"]("g[svg-one-line-text-key]",Co,te,{height:"height",width:"width",text:"text"},{},[]),function(){function e(){this.spanYs=[]}return e.prototype.ngOnInit=function(){this.textY=this.height/2,this.spanX=this.width/2;for(var e=0;e<this.texts.length;++e)this.spanYs.push((.75-.5*e)*this.height)},e.ctorParameters=function(){return[]},e}()),xo=[],So=wl["\u0275crt"]({encapsulation:2,styles:xo,data:{}}),Po=(wl["\u0275ccf"]("g[svg-two-line-text-key]",Oo,oe,{height:"height",width:"width",texts:"texts"},{},[]),t("UCSK")),Ro=function(){function e(){this.initScanCodeTextMap(),this.initScancodeIcons(),this.initNameToFileNames()}return e.prototype.scanCodeToText=function(e,n){void 0===n&&(n=Po.KeystrokeType.basic);var t;switch(n){case Po.KeystrokeType.shortMedia:case Po.KeystrokeType.longMedia:t=this.mediaScanCodeTextMap;break;case Po.KeystrokeType.system:t=this.sytemScanCodeTextMap;break;default:t=this.basicScanCodeTextMap}return t.get(e)},e.prototype.hasScancodeIcon=function(e,n){void 0===n&&(n=Po.KeystrokeType.basic);var t;switch(n){case Po.KeystrokeType.basic:t=this.basicScancodeIcons;break;case Po.KeystrokeType.shortMedia:case Po.KeystrokeType.longMedia:t=this.mediaScancodeIcons;break;case Po.KeystrokeType.system:t=this.systemScancodeIcons;break;default:t=new Map}return t.has(e)},e.prototype.scanCodeToSvgImagePath=function(e,n){void 0===n&&(n=Po.KeystrokeType.basic);var t;switch(n){case Po.KeystrokeType.basic:t=this.basicScancodeIcons;break;case Po.KeystrokeType.shortMedia:case Po.KeystrokeType.longMedia:t=this.mediaScancodeIcons;break;case Po.KeystrokeType.system:t=this.systemScancodeIcons;break;default:return}var l=t.get(e);if(l)return"assets/compiled_sprite.svg#"+l},e.prototype.getIcon=function(e){return"assets/compiled_sprite.svg#"+this.nameToFileName.get(e)},e.prototype.modifierMapper=function(e){return e<8?4*Math.floor(e/2)+1-e:e},e.prototype.initScanCodeTextMap=function(){this.basicScanCodeTextMap=new Map,this.basicScanCodeTextMap.set(4,["A"]),this.basicScanCodeTextMap.set(5,["B"]),this.basicScanCodeTextMap.set(6,["C"]),this.basicScanCodeTextMap.set(7,["D"]),this.basicScanCodeTextMap.set(8,["E"]),this.basicScanCodeTextMap.set(9,["F"]),this.basicScanCodeTextMap.set(10,["G"]),this.basicScanCodeTextMap.set(11,["H"]),this.basicScanCodeTextMap.set(12,["I"]),this.basicScanCodeTextMap.set(13,["J"]),this.basicScanCodeTextMap.set(14,["K"]),this.basicScanCodeTextMap.set(15,["L"]),this.basicScanCodeTextMap.set(16,["M"]),this.basicScanCodeTextMap.set(17,["N"]),this.basicScanCodeTextMap.set(18,["O"]),this.basicScanCodeTextMap.set(19,["P"]),this.basicScanCodeTextMap.set(20,["Q"]),this.basicScanCodeTextMap.set(21,["R"]),this.basicScanCodeTextMap.set(22,["S"]),this.basicScanCodeTextMap.set(23,["T"]),this.basicScanCodeTextMap.set(24,["U"]),this.basicScanCodeTextMap.set(25,["V"]),this.basicScanCodeTextMap.set(26,["W"]),this.basicScanCodeTextMap.set(27,["X"]),this.basicScanCodeTextMap.set(28,["Y"]),this.basicScanCodeTextMap.set(29,["Z"]),this.basicScanCodeTextMap.set(30,["1","!"]),this.basicScanCodeTextMap.set(31,["2","@"]),this.basicScanCodeTextMap.set(32,["3","#"]),this.basicScanCodeTextMap.set(33,["4","$"]),this.basicScanCodeTextMap.set(34,["5","%"]),this.basicScanCodeTextMap.set(35,["6","^"]),this.basicScanCodeTextMap.set(36,["7","&"]),this.basicScanCodeTextMap.set(37,["8","*"]),this.basicScanCodeTextMap.set(38,["9","("]),this.basicScanCodeTextMap.set(39,["0",")"]),this.basicScanCodeTextMap.set(40,["Enter"]),this.basicScanCodeTextMap.set(41,["Esc"]),this.basicScanCodeTextMap.set(42,["Backspace"]),this.basicScanCodeTextMap.set(43,["Tab"]),this.basicScanCodeTextMap.set(44,["Space"]),this.basicScanCodeTextMap.set(45,["-","_"]),this.basicScanCodeTextMap.set(46,["=","+"]),this.basicScanCodeTextMap.set(47,["[","{"]),this.basicScanCodeTextMap.set(48,["]","}"]),this.basicScanCodeTextMap.set(49,["\\","|"]),this.basicScanCodeTextMap.set(50,["NON_US_HASHMARK_AND_TILDE"]),this.basicScanCodeTextMap.set(51,[";",":"]),this.basicScanCodeTextMap.set(52,["'",'"']),this.basicScanCodeTextMap.set(53,["`","~"]),this.basicScanCodeTextMap.set(54,[",","<"]),this.basicScanCodeTextMap.set(55,[".",">"]),this.basicScanCodeTextMap.set(56,["/","?"]),this.basicScanCodeTextMap.set(57,["Caps Lock"]),this.basicScanCodeTextMap.set(58,["F1"]),this.basicScanCodeTextMap.set(59,["F2"]),this.basicScanCodeTextMap.set(60,["F3"]),this.basicScanCodeTextMap.set(61,["F4"]),this.basicScanCodeTextMap.set(62,["F5"]),this.basicScanCodeTextMap.set(63,["F6"]),this.basicScanCodeTextMap.set(64,["F7"]),this.basicScanCodeTextMap.set(65,["F8"]),this.basicScanCodeTextMap.set(66,["F9"]),this.basicScanCodeTextMap.set(67,["F10"]),this.basicScanCodeTextMap.set(68,["F11"]),this.basicScanCodeTextMap.set(69,["F12"]),this.basicScanCodeTextMap.set(70,["PrtScn"]),this.basicScanCodeTextMap.set(71,["Scroll Lock"]),this.basicScanCodeTextMap.set(72,["Pause"]),this.basicScanCodeTextMap.set(73,["Insert"]),this.basicScanCodeTextMap.set(74,["Home"]),this.basicScanCodeTextMap.set(75,["PgUp"]),this.basicScanCodeTextMap.set(76,["Del"]),this.basicScanCodeTextMap.set(77,["End"]),this.basicScanCodeTextMap.set(78,["PgDn"]),this.basicScanCodeTextMap.set(79,["Right Arrow"]),this.basicScanCodeTextMap.set(80,["Left Arrow"]),this.basicScanCodeTextMap.set(81,["Down Arrow"]),this.basicScanCodeTextMap.set(82,["Up Arrow"]),this.basicScanCodeTextMap.set(83,["Num Lock"]),this.basicScanCodeTextMap.set(84,["/"]),this.basicScanCodeTextMap.set(85,["*"]),this.basicScanCodeTextMap.set(86,["-"]),this.basicScanCodeTextMap.set(87,["+"]),this.basicScanCodeTextMap.set(88,["Enter"]),this.basicScanCodeTextMap.set(89,["end","1"]),this.basicScanCodeTextMap.set(90,["2"]),this.basicScanCodeTextMap.set(91,["pgdn","3"]),this.basicScanCodeTextMap.set(92,["4"]),this.basicScanCodeTextMap.set(93,["5"]),this.basicScanCodeTextMap.set(94,["6"]),this.basicScanCodeTextMap.set(95,["home","7"]),this.basicScanCodeTextMap.set(96,["8"]),this.basicScanCodeTextMap.set(97,["pgup","9"]),this.basicScanCodeTextMap.set(98,["Insert","0"]),this.basicScanCodeTextMap.set(99,["Del","."]),this.basicScanCodeTextMap.set(100,["ISO key","|"]),this.basicScanCodeTextMap.set(104,["F13"]),this.basicScanCodeTextMap.set(105,["F14"]),this.basicScanCodeTextMap.set(106,["F15"]),this.basicScanCodeTextMap.set(107,["F16"]),this.basicScanCodeTextMap.set(108,["F17"]),this.basicScanCodeTextMap.set(109,["F18"]),this.basicScanCodeTextMap.set(110,["F19"]),this.basicScanCodeTextMap.set(111,["F20"]),this.basicScanCodeTextMap.set(112,["F21"]),this.basicScanCodeTextMap.set(113,["F22"]),this.basicScanCodeTextMap.set(114,["F23"]),this.basicScanCodeTextMap.set(115,["F24"]),this.basicScanCodeTextMap.set(118,["Menu"]),this.basicScanCodeTextMap.set(176,["00"]),this.basicScanCodeTextMap.set(177,["000"]),this.mediaScanCodeTextMap=new Map,this.mediaScanCodeTextMap.set(138,["WWW"]),this.mediaScanCodeTextMap.set(176,["Play"]),this.mediaScanCodeTextMap.set(177,["Pause"]),this.mediaScanCodeTextMap.set(181,["Next"]),this.mediaScanCodeTextMap.set(182,["Prev"]),this.mediaScanCodeTextMap.set(183,["Stop"]),this.mediaScanCodeTextMap.set(184,["Eject"]),this.mediaScanCodeTextMap.set(204,["Eject","Stop"]),this.mediaScanCodeTextMap.set(205,["Pause","Play"]),this.mediaScanCodeTextMap.set(226,["Mute"]),this.mediaScanCodeTextMap.set(233,["Vol +"]),this.mediaScanCodeTextMap.set(234,["Vol -"]),this.mediaScanCodeTextMap.set(406,["Launch Web Browser"]),this.mediaScanCodeTextMap.set(394,["Launch Email Client"]),this.mediaScanCodeTextMap.set(402,["Launch Calculator"]),this.sytemScanCodeTextMap=new Map,this.sytemScanCodeTextMap.set(129,["Power Down"]),this.sytemScanCodeTextMap.set(130,["Sleep"]),this.sytemScanCodeTextMap.set(131,["Wake Up"])},e.prototype.initScancodeIcons=function(){this.basicScancodeIcons=new Map,this.basicScancodeIcons.set(79,"icon-kbd__mod--arrow-right"),this.basicScancodeIcons.set(80,"icon-kbd__mod--arrow-left"),this.basicScancodeIcons.set(81,"icon-kbd__mod--arrow-down"),this.basicScancodeIcons.set(82,"icon-kbd__mod--arrow-up"),this.basicScancodeIcons.set(118,"icon-kbd__mod--menu"),this.mediaScancodeIcons=new Map,this.mediaScancodeIcons.set(138,"icon-kbd__fn--browser"),this.mediaScancodeIcons.set(176,"icon-kbd__media--play"),this.mediaScancodeIcons.set(177,"icon-kbd__media--pause"),this.mediaScancodeIcons.set(181,"icon-kbd__media--next"),this.mediaScancodeIcons.set(182,"icon-kbd__media--prev"),this.mediaScancodeIcons.set(184,"icon-kbd__fn--eject"),this.mediaScancodeIcons.set(226,"icon-kbd__media--mute"),this.mediaScancodeIcons.set(233,"icon-kbd__media--vol-up"),this.mediaScancodeIcons.set(234,"icon-kbd__media--vol-down"),this.mediaScancodeIcons.set(406,"icon-kbd__media--web-browser"),this.mediaScancodeIcons.set(394,"icon-kbd__media--email-client"),this.mediaScancodeIcons.set(402,"icon-kbd__media--calculator"),this.systemScancodeIcons=new Map,this.systemScancodeIcons.set(129,"icon-kbd__system_power_down"),this.systemScancodeIcons.set(130,"icon-kbd__system_sleep"),this.systemScancodeIcons.set(131,"icon-kbd__system_wake_up")},e.prototype.initNameToFileNames=function(){this.nameToFileName=new Map,this.nameToFileName.set("toggle","icon-kbd__fn--toggle"),this.nameToFileName.set("switch-keymap","icon-kbd__mod--switch-keymap"),this.nameToFileName.set("macro","icon-icon__macro"),this.nameToFileName.set("shift","icon-kbd__default--modifier-shift"),this.nameToFileName.set("option","icon-kbd__default--modifier-option"),this.nameToFileName.set("command","icon-kbd__default--modifier-command"),this.nameToFileName.set("mouse","icon-kbd__mouse"),this.nameToFileName.set("left-arrow","icon-kbd__mod--arrow-left"),this.nameToFileName.set("right-arrow","icon-kbd__mod--arrow-right"),this.nameToFileName.set("down-arrow","icon-kbd__mod--arrow-down"),this.nameToFileName.set("up-arrow","icon-kbd__mod--arrow-up"),this.nameToFileName.set("scroll-left","icon-kbd__mouse--scroll-left"),this.nameToFileName.set("scroll-right","icon-kbd__mouse--scroll-right"),this.nameToFileName.set("scroll-down","icon-kbd__mouse--scroll-down"),this.nameToFileName.set("scroll-up","icon-kbd__mouse--scroll-up")},e.ctorParameters=function(){return[]},e}(),Io=function(){function e(){this.width=0,this.height=0,this.x=0,this.y=0,this.disabled=!0}return e}(),Eo=function(){function e(e){this.mapper=e,this.modifierIconNames={},this.textContainer=new Io,this.modifierContainer=new Io,this.shift=new Io,this.control=new Io,this.option=new Io,this.command=new Io}return e.prototype.ngOnInit=function(){this.viewBox=[0,0,this.width,this.height].join(" "),this.modifierIconNames.shift=this.mapper.getIcon("shift"),this.modifierIconNames.option=this.mapper.getIcon("option"),this.modifierIconNames.command=this.mapper.getIcon("command");var e=this.width<1.8*this.height,n=this.height/this.width;if(e){var t=this.width/4,l=this.height,i=.8,o=i*n*t,a=i*l;this.modifierContainer.width=this.width,this.modifierContainer.height=this.height/5,this.modifierContainer.y=this.height-this.modifierContainer.height,this.shift.width=o,this.shift.height=a,this.shift.x=(t-o)/2,this.shift.y=(l-a)/2,this.control.width=o,this.control.height=a,this.control.x=this.shift.x+t,this.control.y=this.shift.y,this.option.width=o,this.option.height=a,this.option.x=this.control.x+t,this.option.y=this.shift.y,this.command.width=o,this.command.height=a,this.command.x=this.option.x+t,this.command.y=this.shift.y,this.textContainer.y=-this.modifierContainer.height/2}else{this.modifierContainer.width=this.width/4,this.modifierContainer.height=this.height,this.modifierContainer.x=this.width-this.modifierContainer.width;var u=Math.min(this.modifierContainer.width/2,this.modifierContainer.height/2),i=.8,o=i*this.width*(u/this.modifierContainer.width),a=i*this.height*(u/this.modifierContainer.height);this.shift.width=o,this.shift.height=a,this.shift.x=this.width/4-o/2,this.shift.y=this.height/4-a/2,this.control.width=o,this.control.height=a,this.control.x=this.shift.x+this.width/2,this.control.y=this.shift.y,this.option.width=o,this.option.height=a,this.option.x=this.shift.x,this.option.y=this.shift.y+this.height/2,this.command.width=o,this.command.height=a,this.command.x=this.option.x+this.width/2,this.command.y=this.option.y,this.textContainer.x=-this.modifierContainer.width/2}this.textContainer.width=this.width,this.textContainer.height=this.height},e.prototype.ngOnChanges=function(){if(this.keystrokeAction.hasScancode()){var e=this.keystrokeAction.scancode;if(this.labelSource=this.mapper.scanCodeToSvgImagePath(e,this.keystrokeAction.type),this.labelSource)this.labelType="icon";else{var n=void 0;n=this.mapper.scanCodeToText(e,this.keystrokeAction.type),n&&(1===n.length?(this.labelSource=n[0],this.labelType="one-line"):(this.labelSource=n,this.labelType="two-line"))}}else this.labelType="empty";this.shift.disabled=!this.keystrokeAction.isActive(Po.KeyModifiers.leftShift|Po.KeyModifiers.rightShift),this.control.disabled=!this.keystrokeAction.isActive(Po.KeyModifiers.leftCtrl|Po.KeyModifiers.rightCtrl),this.option.disabled=!this.keystrokeAction.isActive(Po.KeyModifiers.leftAlt|Po.KeyModifiers.rightAlt),this.command.disabled=!this.keystrokeAction.isActive(Po.KeyModifiers.leftGui|Po.KeyModifiers.rightGui)},e.ctorParameters=function(){return[{type:Ro}]},e}(),Uo=[vo],No=wl["\u0275crt"]({encapsulation:0,styles:Uo,data:{}}),Lo=(wl["\u0275ccf"]("g[svg-keystroke-key]",Eo,se,{height:"height",width:"width",keystrokeAction:"keystrokeAction"},{},[]),function(){function e(){}return e.prototype.ngOnInit=function(){this.useWidth=this.width/3,this.useHeight=this.height/3,this.useX=this.width>2*this.height?.6*this.width:this.width/3,this.useY=this.width>2*this.height?this.height/3:this.height/2,this.textY=this.width>2*this.height?this.height/2:this.height/3,this.textAnchor=this.width>2*this.height?"end":"middle",this.spanX=this.width>2*this.height?.6*this.width:this.width/2},e.ctorParameters=function(){return[]},e}()),Do=[],Ko=wl["\u0275crt"]({encapsulation:2,styles:Do,data:{}}),jo=(wl["\u0275ccf"]("g[svg-text-icon-key]",Lo,pe,{width:"width",height:"height",text:"text",icon:"icon"},{},[]),function(){function e(){}return e.prototype.ngOnInit=function(){this.useWidth=this.width/3,this.useHeight=this.height/3,this.useX=this.width>2*this.height?0:this.width/3,this.useY=this.width>2*this.height?this.height/3:this.height/10,this.textY=this.width>2*this.height?this.height/2:.6*this.height,this.spanX=this.width>2*this.height?.6*this.width:this.width/2},e.ctorParameters=function(){return[]},e}()),Fo=[],Vo=wl["\u0275crt"]({encapsulation:2,styles:Fo,data:{}}),Bo=(wl["\u0275ccf"]("g[svg-icon-text-key]",jo,fe,{width:"width",height:"height",icon:"icon",text:"text"},{},[]),function(){function e(e){this.mapperService=e}return e.prototype.ngOnInit=function(){this.icon=this.mapperService.getIcon("switch-keymap"),this.useWidth=this.width/4,this.useHeight=this.height/4,this.useX=3*this.width/8,this.useY=this.height/5,this.textY=2*this.height/3,this.spanX=this.width/2},e.ctorParameters=function(){return[{type:Ro}]},e}()),$o=[],Ho=wl["\u0275crt"]({encapsulation:2,styles:$o,data:{}}),Go=(wl["\u0275ccf"]("g[svg-switch-keymap-key]",Bo,ke,{width:"width",height:"height",abbreviation:"abbreviation"},{},[]),function(){function e(e){this.mapper=e,this.icon=this.mapper.getIcon("mouse")}return e.prototype.ngOnInit=function(){},e.ctorParameters=function(){return[{type:Ro}]},e}()),Wo=[],zo=wl["\u0275crt"]({encapsulation:2,styles:Wo,data:{}}),qo=(wl["\u0275ccf"]("g[svg-mouse-click-key]",Go,ge,{button:"button"},{},[]),function(){function e(e){this.mapper=e}return e.prototype.ngOnChanges=function(){this.mouseIcon=this.mapper.getIcon("mouse"),this.directionIcon=this.mapper.getIcon(this.direction+"-arrow")},e.ctorParameters=function(){return[{type:Ro}]},e}()),Yo=[],Jo=wl["\u0275crt"]({encapsulation:2,styles:Yo,data:{}}),Xo=(wl["\u0275ccf"]("g[svg-mouse-move-key]",qo,ve,{direction:"direction"},{},[]),function(){function e(e){this.mapper=e}return e.prototype.ngOnChanges=function(){this.mouseIcon=this.mapper.getIcon("mouse"),this.directionIcon=this.mapper.getIcon("scroll-"+this.direction)},e.ctorParameters=function(){return[{type:Ro}]},e}()),Qo=[],Zo=wl["\u0275crt"]({encapsulation:2,styles:Qo,data:{}}),ea=(wl["\u0275ccf"]("g[svg-mouse-scroll-key]",Xo,Te,{direction:"direction"},{},[]),function(){function e(e){this.mapper=e,this.icon=this.mapper.getIcon("mouse")}return e.prototype.ngOnChanges=function(){this.sign=this.plus?"+":"-"},e.ctorParameters=function(){return[{type:Ro}]},e}()),na=[],ta=wl["\u0275crt"]({encapsulation:2,styles:na,data:{}}),la=(wl["\u0275ccf"]("g[svg-mouse-speed-key]",ea,Ce,{plus:"plus"},{},[]),function(){function e(){}return e.prototype.ngOnChanges=function(){switch(this.mouseAction.mouseAction){case Po.MouseActionParam.leftClick:this.type="click",this.param="Left";break;case Po.MouseActionParam.rightClick:this.type="click",this.param="Right";break;case Po.MouseActionParam.middleClick:this.type="click",this.param="Middle";break;case Po.MouseActionParam.scrollDown:this.type="scroll",this.param="down";break;case Po.MouseActionParam.scrollLeft:this.type="scroll",this.param="left";break;case Po.MouseActionParam.scrollRight:this.type="scroll",this.param="right";break;case Po.MouseActionParam.scrollUp:this.type="scroll",this.param="up";break;case Po.MouseActionParam.moveDown:this.type="move",this.param="down";break;case Po.MouseActionParam.moveLeft:this.type="move",this.param="left";break;case Po.MouseActionParam.moveRight:this.type="move",this.param="right";break;case Po.MouseActionParam.moveUp:this.type="move",this.param="up";break;case Po.MouseActionParam.accelerate:this.type="speed",this.param=!0;break;case Po.MouseActionParam.decelerate:this.type="speed",this.param=!1}},e.ctorParameters=function(){return[]},e}()),ia=[],oa=wl["\u0275crt"]({encapsulation:2,styles:ia,data:{}}),aa=(wl["\u0275ccf"]("g[svg-mouse-key]",la,Pe,{mouseAction:"mouseAction"},{},[]),function(){function e(){this.leftModifiers=new Map,this.rightModifiers=new Map,this.mapping=new Map}return e.prototype.getMap=function(e){return this.mapping.get(e)},e.prototype.hasMap=function(e){return this.mapping.has(e)},e.prototype.setModifier=function(e,n){return e?this.leftModifiers.set(n,!0):this.rightModifiers.set(n,!0)},e.prototype.getModifiers=function(e){return e?this.reMap(this.leftModifiers):this.reMap(this.rightModifiers)},e.prototype.initModifiers=function(){this.leftModifiers.set(16,!1),this.leftModifiers.set(17,!1),this.leftModifiers.set(18,!1),this.leftModifiers.set(91,!1),this.rightModifiers.set(16,!1),this.rightModifiers.set(17,!1),this.rightModifiers.set(18,!1),this.rightModifiers.set(91,!1)},e.prototype.populateMapping=function(){this.mapping.set(8,42),this.mapping.set(9,43),this.mapping.set(13,40),this.mapping.set(19,72),this.mapping.set(20,57),this.mapping.set(27,41),this.mapping.set(32,44),this.mapping.set(33,75),this.mapping.set(34,78),this.mapping.set(35,77),this.mapping.set(36,74),this.mapping.set(37,80),this.mapping.set(38,82),this.mapping.set(39,79),this.mapping.set(40,81),this.mapping.set(45,73),this.mapping.set(46,76),this.mapping.set(48,39),this.mapping.set(49,30),this.mapping.set(50,31),this.mapping.set(51,32),this.mapping.set(52,33),this.mapping.set(53,34),this.mapping.set(54,35),this.mapping.set(55,36),this.mapping.set(56,37),this.mapping.set(57,38),this.mapping.set(65,4),this.mapping.set(66,5),this.mapping.set(67,6),this.mapping.set(68,7),this.mapping.set(69,8),this.mapping.set(70,9),this.mapping.set(71,10),this.mapping.set(72,11),this.mapping.set(73,12),this.mapping.set(74,13),this.mapping.set(75,14),this.mapping.set(76,15),this.mapping.set(77,16),this.mapping.set(78,17),this.mapping.set(79,18),this.mapping.set(80,19),this.mapping.set(81,20),this.mapping.set(82,21),this.mapping.set(83,22),this.mapping.set(84,23),this.mapping.set(85,24),this.mapping.set(86,25),this.mapping.set(87,26),this.mapping.set(88,27),this.mapping.set(89,28),this.mapping.set(90,29),this.mapping.set(93,118),this.mapping.set(96,98),this.mapping.set(97,89),this.mapping.set(98,90),this.mapping.set(99,91),this.mapping.set(100,92),this.mapping.set(101,93),this.mapping.set(102,94),this.mapping.set(103,95),this.mapping.set(104,96),this.mapping.set(105,97),this.mapping.set(106,85),this.mapping.set(107,87),this.mapping.set(109,86),this.mapping.set(110,99),this.mapping.set(111,84),this.mapping.set(112,58),this.mapping.set(113,59),this.mapping.set(114,60),this.mapping.set(115,61),this.mapping.set(116,62),this.mapping.set(117,63),this.mapping.set(118,64),this.mapping.set(119,65),this.mapping.set(120,66),this.mapping.set(121,67),this.mapping.set(122,68),this.mapping.set(123,69),this.mapping.set(144,83),this.mapping.set(145,71),this.mapping.set(186,51),this.mapping.set(187,46),this.mapping.set(188,54),this.mapping.set(189,45),this.mapping.set(190,55),this.mapping.set(191,56),this.mapping.set(192,53),this.mapping.set(219,47),this.mapping.set(220,49),this.mapping.set(221,48),this.mapping.set(222,52)},e.prototype.reMap=function(e){return[e.get(16),e.get(17),e.get(91),e.get(18)]},e.ctorParameters=function(){return[]},e}()),ua=t("3XxM");!function(e){e[e.KeystrokeKey=0]="KeystrokeKey",e[e.MouseKey=1]="MouseKey",e[e.OneLineText=2]="OneLineText",e[e.TwoLineText=3]="TwoLineText",e[e.TextIcon=4]="TextIcon",e[e.SingleIcon=5]="SingleIcon",e[e.SwitchKeymap=6]="SwitchKeymap",e[e.IconText=7]="IconText"}(Cl||(Cl={}));var ca,ra=function(){function e(e,n,t,l,i){var o=this;this.mapper=e,this.element=t,this.captureService=l,this.renderer=i,this.keyClick=new wl.EventEmitter,this.capture=new wl.EventEmitter,this.enumLabelTypes=Cl,this.changeAnimation="inactive",this.subscription=n.let(Object(ua.e)()).subscribe(function(e){return o.macros=e}),this.reset(),this.captureService.populateMapping(),this.scanCodePressed=!1}return e.prototype.onClick=function(){this.reset(),this.keyClick.emit(this.element.nativeElement)},e.prototype.onMouseDown=function(e){2!==e.which&&1!==e.button||!this.capturingEnabled||(e.preventDefault(),this.renderer.invokeElementMethod(this.element.nativeElement,"focus"),this.recording?this.reset():(this.recording=!0,this.recordAnimation="active"))},e.prototype.onKeyUp=function(e){this.scanCodePressed?(e.preventDefault(),this.scanCodePressed=!1):this.recording&&(e.preventDefault(),this.saveScanCode())},e.prototype.onKeyDown=function(e){var n=e.keyCode;this.recording&&(e.preventDefault(),this.captureService.hasMap(n)?(this.saveScanCode(this.captureService.getMap(n)),this.scanCodePressed=!0):this.captureService.setModifier(1===e.location,n))},e.prototype.onFocusOut=function(){this.reset()},e.prototype.ngOnInit=function(){this.setLabels()},e.prototype.ngOnChanges=function(e){e.keyAction&&(this.setLabels(),this.keybindAnimationEnabled&&(this.changeAnimation="active"))},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.onChangeAnimationDone=function(){this.changeAnimation="inactive"},e.prototype.onRecordingAnimationDone=function(){this.recording&&"inactive"===this.recordAnimation?this.recordAnimation="active":this.recordAnimation="inactive"},e.prototype.reset=function(){this.recording=!1,this.changeAnimation="inactive",this.captureService.initModifiers()},e.prototype.saveScanCode=function(e){void 0===e&&(e=0),this.recording=!1,this.changeAnimation="inactive";var n=this.captureService.getModifiers(!0),t=this.captureService.getModifiers(!1);this.capture.emit({code:e,left:n,right:t}),this.captureService.initModifiers()},e.prototype.setLabels=function(){if(!this.keyAction)return this.labelSource=void 0,void(this.labelType=Cl.OneLineText);if(this.labelType=Cl.OneLineText,this.keyAction instanceof Po.KeystrokeAction){var e=this.keyAction,n=void 0;if(!e.hasActiveModifier()&&e.hasScancode()){var t=e.scancode;n=this.mapper.scanCodeToText(t,e.type),this.mapper.hasScancodeIcon(t,e.type)?(this.labelSource=this.mapper.scanCodeToSvgImagePath(t,e.type),this.labelType=Cl.SingleIcon):void 0!==n&&(1===n.length?(this.labelSource=n[0],this.labelType=Cl.OneLineText):(this.labelSource=n,this.labelType=Cl.TwoLineText))}else if(e.hasOnlyOneActiveModifier()&&!e.hasScancode()){switch(n=[],e.modifierMask){case Po.KeyModifiers.leftCtrl:case Po.KeyModifiers.rightCtrl:n.push("Ctrl");break;case Po.KeyModifiers.leftShift:case Po.KeyModifiers.rightShift:n.push("Shift");break;case Po.KeyModifiers.leftAlt:case Po.KeyModifiers.rightAlt:n.push("Alt");break;case Po.KeyModifiers.leftGui:case Po.KeyModifiers.rightGui:n.push("Super");break;default:n.push("Undefined")}this.labelSource=n}else this.labelType=Cl.KeystrokeKey,this.labelSource=this.keyAction}else if(this.keyAction instanceof Po.SwitchLayerAction){var e=this.keyAction,n=void 0;switch(e.layer){case Po.LayerName.mod:n="Mod";break;case Po.LayerName.fn:n="Fn";break;case Po.LayerName.mouse:n="Mouse"}e.isLayerToggleable?(this.labelType=Cl.TextIcon,this.labelSource={text:n,icon:this.mapper.getIcon("toggle")}):(this.labelType=Cl.OneLineText,this.labelSource=n)}else if(this.keyAction instanceof Po.SwitchKeymapAction){var e=this.keyAction;this.labelType=Cl.SwitchKeymap,this.labelSource=e.keymapAbbreviation}else if(this.keyAction instanceof Po.PlayMacroAction){var l=this.keyAction,i=this.macros.find(function(e){return e.id===l.macroId});this.labelType=Cl.IconText,this.labelSource={icon:this.mapper.getIcon("macro"),text:i.name}}else this.keyAction instanceof Po.MouseAction?(this.labelType=Cl.MouseKey,this.labelSource=this.keyAction):this.labelSource=void 0},e.ctorParameters=function(){return[{type:Ro},{type:xl.m},{type:wl.ElementRef},{type:aa},{type:wl.Renderer}]},e}(),sa=[bo],da=wl["\u0275crt"]({encapsulation:0,styles:sa,data:{animation:[{type:7,name:"change",definitions:[{type:1,expr:"inactive => active",animation:[{type:6,styles:{fill:"#fff"},offset:null},{type:3,steps:[{type:4,styles:{type:6,styles:{fill:"#333"},offset:null},timings:"1s ease-out"}],options:null}],options:null}],options:{}},{type:7,name:"active",definitions:[{type:0,name:"1",styles:{type:6,styles:{fill:"#4099e5"},offset:null},options:void 0},{type:1,expr:"1 => *",animation:{type:4,styles:null,timings:"200ms"},options:null},{type:1,expr:"* => 1",animation:{type:4,styles:null,timings:"0ms"},options:null}],options:{}},{type:7,name:"recording",definitions:[{type:0,name:"inactive",styles:{type:6,styles:{fill:"rgba(204, 0, 0, 1)"},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{fill:"rgba(204, 0, 0, 0.6)"},offset:null},options:void 0},{type:1,expr:"inactive <=> active",animation:{type:4,styles:null,timings:"600ms ease-in-out"},options:null}],options:{}}]}}),pa=(wl["\u0275ccf"]("g[svg-keyboard-key]",ra,Be,{id:"id",rx:"rx",ry:"ry",height:"height",width:"width",keyAction:"keyAction",keybindAnimationEnabled:"keybindAnimationEnabled",capturingEnabled:"capturingEnabled",active:"active"},{keyClick:"keyClick",capture:"capture"},[]),function(){function e(e){this.sanitizer=e}return e.prototype.transform=function(e){return this.sanitizer.bypassSecurityTrustStyle(e)},e.ctorParameters=function(){return[{type:ri.c}]},e}()),ya=function(){function e(){this.keyClick=new wl.EventEmitter,this.keyHover=new wl.EventEmitter,this.capture=new wl.EventEmitter,this.keyboardKeys=[]}return e.prototype.onKeyClick=function(e,n){this.keyClick.emit({index:e,keyTarget:n})},e.prototype.onKeyHover=function(e,n,t){this.keyHover.emit({index:e,event:n,over:t})},e.prototype.onCapture=function(e,n){this.capture.emit({index:e,captured:n})},e.ctorParameters=function(){return[]},e}(),fa=[go],ma=wl["\u0275crt"]({encapsulation:0,styles:fa,data:{}}),ka=(wl["\u0275ccf"]("g[svg-module]",ya,ze,{coverages:"coverages",keyboardKeys:"keyboardKeys",keyActions:"keyActions",selectedKey:"selectedKey",selected:"selected",keybindAnimationEnabled:"keybindAnimationEnabled",capturingEnabled:"capturingEnabled"},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture"},[]),["[_nghost-%COMP%]{margin-top:.5em}[_nghost-%COMP%] span.placeholder[_ngcontent-%COMP%]{color:gray;display:inline-block}[_nghost-%COMP%] span.placeholder[_ngcontent-%COMP%] .glyphicon[_ngcontent-%COMP%]{color:#000}[_nghost-%COMP%] span.editable[_ngcontent-%COMP%], [_nghost-%COMP%] span.placeholder[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%] textarea.text-editor[_ngcontent-%COMP%]{display:block;width:100%}[_nghost-%COMP%] .buttons[_ngcontent-%COMP%]{margin-top:.5em}"]),ha=function(){function e(e){this.el=e}return e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){this.el.nativeElement.focus()},e.ctorParameters=function(){return[{type:wl.ElementRef}]},e}(),ga=function(){function e(e){this.cdr=e,this.placeholder="No editable content",this.editing=!1,this.textChange=function(){}}return Object.defineProperty(e.prototype,"isSaveDisabled",{get:function(){return!this.text||0===this.text.trim().length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"displayText",{get:function(){return this.text&&this.text.replace(/\n/g,"<br>")},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.text!==e&&(this.text=e,this.cdr.markForCheck())},e.prototype.registerOnChange=function(e){this.textChange=e},e.prototype.registerOnTouched=function(e){},e.prototype.saveText=function(){this.originalText=null,this.editing=!1,this.textChange(this.text)},e.prototype.editText=function(){this.originalText=this.text,this.editing=!0},e.prototype.cancelEditText=function(){this.text=this.originalText,this.editing=!1},e.prototype.keydownEnter=function(){this.isSaveDisabled||this.saveText()},Object.defineProperty(e.prototype,"showPlaceholder",{get:function(){return!this.editing&&!this.text},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showText",{get:function(){return!this.editing&&!!this.text},enumerable:!0,configurable:!0}),e.ctorParameters=function(){return[{type:wl.ChangeDetectorRef}]},e}(),ba=[ka],va=wl["\u0275crt"]({encapsulation:0,styles:ba,data:{}}),Aa=(wl["\u0275ccf"]("editable-text",ga,Qe,{placeholder:"placeholder"},{},[]),function(){function e(e){var n,t=e.rect.map(function(e){return e.$});this.keyboardKeys=[];for(var l=0;l<t.length;++l)n=t[l].id.slice(4)-1,t[l].height=+t[l].height,t[l].width=+t[l].width,t[l].fill=t[l].style.slice(5),this.keyboardKeys[n]=t[l];this.coverages=e.path,this.attributes=e.$}return e}()),Ta=t("YojH"),Ma=function(){function e(){}return e.prototype.getSvgModules=function(e){return void 0===e&&(e=Ta.a.ANSI),[this.getRightModule(),this.getLeftModule(e)]},e.prototype.getLeftModule=function(e){return void 0===e&&(e=Ta.a.ANSI),e===Ta.a.ISO?(this.isoLeft||(this.isoLeft=new Aa(t("DzqK").svg)),this.isoLeft):(this.ansiLeft||(this.ansiLeft=new Aa(t("XLpm").svg)),this.ansiLeft)},e.prototype.getRightModule=function(){return this.right||(this.right=new Aa(t("oX9Y").svg)),this.right},e}(),Ca=function(){function e(e){this.svgModuleProvider=e,this.keyboardLayout=Ta.a.ANSI,this.showDescription=!1,this.keyClick=new wl.EventEmitter,this.keyHover=new wl.EventEmitter,this.capture=new wl.EventEmitter,this.descriptionChanged=new wl.EventEmitter,this.modules=[],this.viewBox="-520 582 1100 470",this.halvesSplit=!1,this.moduleAnimationStates=[]}return e.prototype.ngOnInit=function(){this.setModules()},e.prototype.ngOnChanges=function(e){e.halvesSplit&&this.updateModuleAnimationStates(),e.keyboardLayout&&this.setModules()},e.prototype.onKeyClick=function(e,n,t){this.keyClick.emit({moduleId:e,keyId:n,keyTarget:t})},e.prototype.onCapture=function(e,n,t){this.capture.emit({moduleId:e,keyId:n,captured:t})},e.prototype.onKeyHover=function(e,n,t,l){this.keyHover.emit({moduleId:l,event:n,over:t,keyId:e})},e.prototype.updateModuleAnimationStates=function(){this.halvesSplit?this.moduleAnimationStates=["rotateRight","rotateLeft"]:this.moduleAnimationStates=[]},e.prototype.setModules=function(){this.modules=this.svgModuleProvider.getSvgModules(this.keyboardLayout)},e.ctorParameters=function(){return[{type:Ma}]},e}(),wa=[ho],_a=wl["\u0275crt"]({encapsulation:0,styles:wa,data:{animation:[{type:7,name:"split",definitions:[{type:0,name:"rotateLeft",styles:{type:6,styles:{transform:"translate(-3%, 15%) rotate(4deg) scale(0.92, 0.92)"},offset:null},options:void 0},{type:0,name:"rotateRight",styles:{type:6,styles:{transform:"translate(3%, 15%) rotate(-4deg) scale(0.92, 0.92)"},offset:null},options:void 0},{type:1,expr:"* <=> *",animation:{type:4,styles:null,timings:500},options:null}],options:{}}]}}),Oa=(wl["\u0275ccf"]("svg-keyboard",Ca,tn,{moduleConfig:"moduleConfig",keybindAnimationEnabled:"keybindAnimationEnabled",capturingEnabled:"capturingEnabled",selectedKey:"selectedKey",selected:"selected",halvesSplit:"halvesSplit",keyboardLayout:"keyboardLayout",description:"description",showDescription:"showDescription"},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture",descriptionChanged:"descriptionChanged"},[]),function(){function e(){this.keyboardLayout=Ta.a.ANSI,this.keyClick=new wl.EventEmitter,this.keyHover=new wl.EventEmitter,this.capture=new wl.EventEmitter,this.descriptionChanged=new wl.EventEmitter}return e.prototype.ngOnChanges=function(e){e.layers&&(this.layerAnimationState=this.layers.map(function(){return"initOut"}),this.layerAnimationState[this.currentLayer]="init");var n=e.currentLayer;if(n)if(e.layers);else{var t=n.isFirstChange()?n.currentValue:n.previousValue;this.onLayerChange(t,n.currentValue)}},e.prototype.trackKeyboard=function(e){return e},e.prototype.onLayerChange=function(e,n){n>e?(this.layerAnimationState[e]="leftOut",this.layerAnimationState[n]="leftIn"):(this.layerAnimationState[e]="rightOut",this.layerAnimationState[n]="rightIn")},e}()),xa=[ko],Sa=wl["\u0275crt"]({encapsulation:0,styles:xa,data:{animation:[{type:7,name:"layerState",definitions:[{type:0,name:"init",styles:{type:6,styles:{transform:"translateX(-50%)",left:"50%"},offset:null},options:void 0},{type:0,name:"initOut",styles:{type:6,styles:{transform:"translateX(0)",left:"101%"},offset:null},options:void 0},{type:0,name:"leftIn, rightIn",styles:{type:6,styles:{transform:"translateX(-50%)",left:"50%"},offset:null},options:void 0},{type:0,name:"leftOut",styles:{type:6,styles:{transform:"translateX(-101%)",left:"0"},offset:null},options:void 0},{type:0,name:"rightOut",styles:{type:6,styles:{transform:"translateX(0)",left:"101%"},offset:null},options:void 0},{type:1,expr:"initOut => leftIn, leftOut => leftIn, rightOut => leftIn",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateX(0%)",left:"101%",offset:0},offset:null},{type:6,styles:{transform:"translateX(-50%)",left:"50%",offset:1},offset:null}]},timings:"400ms ease-out"}],options:null},{type:1,expr:"init => leftOut, leftIn => leftOut, rightIn => leftOut",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateX(-50%)",left:"50%",offset:0},offset:null},{type:6,styles:{transform:"translateX(-101%)",left:"0%",offset:1},offset:null}]},timings:"400ms ease-out"}],options:null},{type:1,expr:"* => rightIn",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateX(-101%)",left:"0%",offset:0},offset:null},{type:6,styles:{transform:"translateX(-50%)",left:"50%",offset:1},offset:null}]},timings:"400ms ease-out"}],options:null},{type:1,expr:"* => rightOut",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateX(-50%)",left:"50%",offset:0},offset:null},{type:6,styles:{transform:"translateX(0%)",left:"101%",offset:1},offset:null}]},timings:"400ms ease-out"}],options:null},{type:1,expr:":leave",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{opacity:1,offset:0},offset:null},{type:6,styles:{opacity:0,offset:1},offset:null}]},timings:"2000ms ease-out"}],options:null}],options:{}}]}}),Pa=(wl["\u0275ccf"]("keyboard-slider",Oa,an,{layers:"layers",currentLayer:"currentLayer",keybindAnimationEnabled:"keybindAnimationEnabled",capturingEnabled:"capturingEnabled",halvesSplit:"halvesSplit",selectedKey:"selectedKey",keyboardLayout:"keyboardLayout",description:"description"},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture",descriptionChanged:"descriptionChanged"},[]),['.popover[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:0;max-width:568px;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.popover.leftArrow[_ngcontent-%COMP%] .arrowCustom[_ngcontent-%COMP%]{-webkit-transform:none;transform:none;left:22px}.popover.rightArrow[_ngcontent-%COMP%] .arrowCustom[_ngcontent-%COMP%]{-webkit-transform:none;transform:none;right:22px;left:auto}.nav-tabs[_ngcontent-%COMP%] > li[_ngcontent-%COMP%], .popover[_ngcontent-%COMP%] > .container-fluid[_ngcontent-%COMP%]{overflow:hidden}.arrowCustom[_ngcontent-%COMP%]{position:absolute;top:-16px;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:41px;height:16px}.arrowCustom[_ngcontent-%COMP%]:before{border-left:21px solid transparent;border-right:21px solid transparent;border-bottom:17px solid rgba(0,0,0,.2);top:-1px}.arrowCustom[_ngcontent-%COMP%]:after, .arrowCustom[_ngcontent-%COMP%]:before{content:"";width:0;height:0;display:block;position:absolute}.arrowCustom[_ngcontent-%COMP%]:after{border-left:20px solid transparent;border-right:20px solid transparent;border-bottom:16px solid #f7f7f7;top:0}.popover-action[_ngcontent-%COMP%]{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-top:1px solid #ebebeb;border-radius:0 0 5px 5px;text-align:right}.popover-title.menu-tabs[_ngcontent-%COMP%]{padding:.5rem .5rem 0;display:block}.popover-title.menu-tabs[_ngcontent-%COMP%] .nav-tabs[_ngcontent-%COMP%]{position:relative;top:1px;display:-webkit-box;display:-ms-flexbox;display:flex}.popover-title.menu-tabs[_ngcontent-%COMP%] .nav-tabs[_ngcontent-%COMP%] .menu-tabs--item[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer}.popover-title.menu-tabs[_ngcontent-%COMP%] .nav-tabs[_ngcontent-%COMP%] .menu-tabs--item[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:.25em}.popover-content[_ngcontent-%COMP%]{padding:10px 24px}.popover-overlay[_ngcontent-%COMP%]{position:fixed;width:100%;height:0;top:0;left:0;z-index:1050;background:transparent;transition:background .2s ease-out,height 0ms linear .2s}.popover-overlay.display[_ngcontent-%COMP%]{height:100%;background:rgba(0,0,0,.2);transition:background .2s ease-out}.select2-item[_ngcontent-%COMP%]{position:relative;font-size:1.5rem}.select2-item.keymap-name--wrapper[_ngcontent-%COMP%]{padding-left:50px}.select2-item[_ngcontent-%COMP%] .layout-segment-code[_ngcontent-%COMP%]{height:2rem;position:absolute;left:0;top:50%;margin-top:-1rem}']),Ra=["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative}[_nghost-%COMP%] .scancode-options[_ngcontent-%COMP%]{margin-bottom:10px;margin-top:2px}[_nghost-%COMP%] .scancode-options[_ngcontent-%COMP%] > b[_ngcontent-%COMP%]{position:relative;top:2px}[_nghost-%COMP%] .scancode-options[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] .modifier-options[_ngcontent-%COMP%] > b[_ngcontent-%COMP%]{position:relative;top:-9px;margin-right:4px}[_nghost-%COMP%] .modifier-options[_ngcontent-%COMP%] .btn-toolbar[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:3rem}[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%] > b[_ngcontent-%COMP%]{margin-right:.6em;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%] .secondary-role[_ngcontent-%COMP%]{width:135px}[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{margin-left:.6em}[_nghost-%COMP%] .setting-label.disabled[_ngcontent-%COMP%]{color:#999}[_nghost-%COMP%] .disabled-state--text[_ngcontent-%COMP%]{display:none;position:absolute;top:50%;margin-top:-4rem;color:#31708f;padding-right:40px}[_nghost-%COMP%] .disabled-state--text[_ngcontent-%COMP%] .fa[_ngcontent-%COMP%]{font-size:2.6rem;float:left;padding:1rem 1.5rem 2rem}.disabled[_nghost-%COMP%] .long-press-container[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .modifier-options[_ngcontent-%COMP%], .disabled[_nghost-%COMP%] .scancode-options[_ngcontent-%COMP%]{visibility:hidden}.disabled[_nghost-%COMP%] .disabled-state--text[_ngcontent-%COMP%]{display:block}"],Ia=t("4D/6"),Ea=t("foYT"),Ua=function(){function e(){this.validAction=new wl.EventEmitter}return e}(),Na=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}(),La=function(e){function n(n){var l=e.call(this)||this;return l.mapper=n,l.scanCodeTemplateResult=function(e){return e.id?e.additional&&e.additional.explanation?jQuery('<span class="select2-item"><span>'+e.text+'</span><span class="scancode--searchterm"> '+e.additional.explanation+"</span></span>"):jQuery('<span class="select2-item">'+e.text+"</span>"):e.text},l.leftModifiers=["LShift","LCtrl","LSuper","LAlt"],l.rightModifiers=["RShift","RCtrl","RSuper","RAlt"],l.scanCodeGroups=[{id:"0",text:"None"}],l.scanCodeGroups=l.scanCodeGroups.concat(t("1ogb")),l.secondaryRoleGroups=t("0s4M"),l.leftModifierSelects=Array(l.leftModifiers.length).fill(!1),l.rightModifierSelects=Array(l.rightModifiers.length).fill(!1),l.selectedScancodeOption=l.scanCodeGroups[0],l.selectedSecondaryRoleIndex=-1,l.options={templateResult:l.scanCodeTemplateResult,matcher:function(e,n,t){var l=n.toUpperCase().indexOf(e.toUpperCase())>-1;return!l&&t.additional&&t.additional.explanation&&(l=t.additional.explanation.toUpperCase().indexOf(e.toUpperCase())>-1),l}},l}return Na(n,e),n.prototype.ngOnChanges=function(){this.fromKeyAction(this.defaultKeyAction),this.validAction.emit(this.keyActionValid())},n.prototype.keyActionValid=function(e){return e||(e=this.toKeyAction()),!!e&&(e.scancode>0||e.modifierMask>0)},n.prototype.onKeysCapture=function(e){e.code?this.selectedScancodeOption=this.findScancodeOptionByScancode(e.code,Po.KeystrokeType.basic):this.selectedScancodeOption=this.scanCodeGroups[0],this.leftModifierSelects=e.left,this.rightModifierSelects=e.right,this.validAction.emit(this.keyActionValid())},n.prototype.fromKeyAction=function(e){if(!(e instanceof Po.KeystrokeAction))return!1;var n=e;this.selectedScancodeOption=this.findScancodeOptionByScancode(n.scancode||0,n.type);for(var t=this.leftModifiers.length,l=0;l<t;++l)this.leftModifierSelects[this.mapper.modifierMapper(l)]=1==(n.modifierMask>>l&1);for(var l=t;l<t+this.rightModifierSelects.length;++l){var i=this.mapper.modifierMapper(l)-t;this.rightModifierSelects[i]=1==(n.modifierMask>>l&1)}return void 0!==n.secondaryRoleAction?this.selectedSecondaryRoleIndex=this.mapper.modifierMapper(n.secondaryRoleAction):this.selectedSecondaryRoleIndex=-1,!0},n.prototype.toKeyAction=function(){var e=new Po.KeystrokeAction,n=this.toScancodeTypePair(this.selectedScancodeOption);e.scancode=n[0],"media"===n[1]?e.type=Po.KeystrokeType.shortMedia:e.type=Po.KeystrokeType[n[1]],e.modifierMask=0;for(var t=this.leftModifierSelects.concat(this.rightModifierSelects).map(function(e){return e?1:0}),l=0;l<t.length;++l)e.modifierMask|=t[l]<<this.mapper.modifierMapper(l);if(e.secondaryRoleAction=-1===this.selectedSecondaryRoleIndex?void 0:this.mapper.modifierMapper(this.selectedSecondaryRoleIndex),this.keyActionValid(e))return e},n.prototype.toggleModifier=function(e,n){var t=e?this.rightModifierSelects:this.leftModifierSelects;t[n]=!t[n],this.validAction.emit(this.keyActionValid())},n.prototype.onSecondaryRoleChange=function(e){this.selectedSecondaryRoleIndex=+e.value},n.prototype.onScancodeChange=function(e){var n=e.value;this.selectedScancodeOption=this.findScancodeOptionById(n),this.validAction.emit(this.keyActionValid())},n.prototype.findScancodeOptionBy=function(e){for(var n,t=this.scanCodeGroups.slice();t.length>0;){var l=t.shift();if(e(l)){n=l;break}l.children&&t.push.apply(t,l.children)}return n},n.prototype.findScancodeOptionById=function(e){return this.findScancodeOptionBy(function(n){return n.id===e})},n.prototype.findScancodeOptionByScancode=function(e,n){var t=n===Po.KeystrokeType.shortMedia||n===Po.KeystrokeType.longMedia?"media":Po.KeystrokeType[n];return this.findScancodeOptionBy(function(n){var l=n.additional;return!(!l||l.scancode!==e||l.type!==t)||!(l&&void 0!==l.scancode||+n.id!==e)})},n.prototype.toScancodeTypePair=function(e){var n,t;return e.additional?(n=e.additional.scancode,t=e.additional.type||"basic"):t="basic",void 0===n&&(n=+e.id),[n,t]},n.ctorParameters=function(){return[{type:Ro}]},n}(Ua),Da=[".link--capture-keystroke[_ngcontent-%COMP%]{padding:7px 0;text-decoration:none;border:0;width:100%}.link--capture-keystroke[_ngcontent-%COMP%]:focus{outline:none}.btn--capture-keystroke[_ngcontent-%COMP%]{display:inline-block;margin:0 0 0 .25rem}.fa-circle[_ngcontent-%COMP%]{color:#c00}"],Ka=function(){function e(e){this.captureService=e,this.isLink=!1,this.captureText="Capture keystroke",this.capture=new wl.EventEmitter,this.record=!1,this.captureService.initModifiers(),this.captureService.populateMapping(),this.scanCodePressed=!1}return e.prototype.onKeyUp=function(e){this.scanCodePressed?(e.preventDefault(),this.scanCodePressed=!1):this.record&&!this.first&&(e.preventDefault(),this.saveScanCode())},e.prototype.onKeyDown=function(e){var n=e.keyCode;this.record?(e.preventDefault(),e.stopPropagation(),this.first=!1,this.captureService.hasMap(n)?(this.saveScanCode(this.captureService.getMap(n)),this.scanCodePressed=!0):this.captureService.setModifier(1===e.location,n)):13===n&&(this.record=!0,this.first=!0)},e.prototype.onFocusOut=function(){this.record=!1,this.reset()},e.prototype.start=function(){this.record=!0},e.prototype.saveScanCode=function(e){this.record=!1;var n=this.captureService.getModifiers(!0),t=this.captureService.getModifiers(!1);this.capture.emit({code:e,left:n,right:t}),this.reset()},e.prototype.reset=function(){this.first=!1,this.captureService.initModifiers()},e.ctorParameters=function(){return[{type:aa}]},e}(),ja=[Da],Fa=wl["\u0275crt"]({encapsulation:0,styles:ja,data:{}}),Va=(wl["\u0275ccf"]("capture-keystroke-button",Ka,sn,{isLink:"isLink",captureText:"captureText"},{capture:"capture"},[]),[Ra]),Ba=wl["\u0275crt"]({encapsulation:0,styles:Va,data:{}}),$a=(wl["\u0275ccf"]("keypress-tab",La,mn,{defaultKeyAction:"defaultKeyAction",secondaryRoleEnabled:"secondaryRoleEnabled"},{validAction:"validAction"},[]),["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;margin:0 -5px}.no-base[_nghost-%COMP%]{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}[_nghost-%COMP%] > select[_ngcontent-%COMP%], [_nghost-%COMP%] > span[_ngcontent-%COMP%]{margin:0 5px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}select[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #aaa;border-radius:4px;padding:4px 20px 4px 8px}"]),Ha=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}(),Ga=function(e){function n(){var n=e.call(this)||this;return n.toggleData=[{id:!1,text:"Activate"},{id:!0,text:"Toggle"}],n.layerData=[{id:0,text:"Mod"},{id:1,text:"Fn"},{id:2,text:"Mouse"}],n.toggle=!1,n.layer=Po.LayerName.mod,n}return Ha(n,e),n.prototype.ngOnChanges=function(e){e.defaultKeyAction&&this.fromKeyAction(this.defaultKeyAction),e.currentLayer&&(this.isNotBase=this.currentLayer>0),this.validAction.emit(!0)},n.prototype.keyActionValid=function(){return!this.isNotBase},n.prototype.fromKeyAction=function(e){if(!(e instanceof Po.SwitchLayerAction))return!1;var n=e;return this.toggle=n.isLayerToggleable,this.layer=n.layer,!0},n.prototype.toKeyAction=function(){var e=new Po.SwitchLayerAction;if(e.isLayerToggleable=this.toggle,e.layer=this.layer,!this.keyActionValid())throw new Error("KeyAction is invalid!");return e},n.prototype.toggleChanged=function(e){this.toggle="true"===e},n.prototype.layerChanged=function(e){this.layer=+e},n.ctorParameters=function(){return[]},n}(Ua),Wa=[$a],za=wl["\u0275crt"]({encapsulation:0,styles:Wa,data:{}}),qa=(wl["\u0275ccf"]("layer-tab",Ga,Mn,{defaultKeyAction:"defaultKeyAction",currentLayer:"currentLayer"},{validAction:"validAction"},[]),['[_nghost-%COMP%], .popover-content[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex}.popover-content[_nghost-%COMP%]{padding:10px;-webkit-box-align:center;-ms-flex-align:center;align-items:center}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%]{border-right:1px solid #ccc}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{font-style:italic}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{font-style:normal}[_nghost-%COMP%] .mouse-action[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{content:"";display:block;position:absolute;width:0;height:0;top:0;right:-4rem;border-color:transparent transparent transparent #337ab7;border-style:solid;border-width:2rem}[_nghost-%COMP%] .details[_ngcontent-%COMP%] .btn-placeholder[_ngcontent-%COMP%]{visibility:hidden}.mouse__config--speed[_ngcontent-%COMP%] .btn-default[_ngcontent-%COMP%]{font-size:25px;line-height:22px;padding-top:4px;padding-bottom:4px}.mouse__config--speed[_ngcontent-%COMP%] .btn-default[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:13px;display:block;text-align:center}']),Ya=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}(),Ja=function(e){function n(){var n=e.call(this)||this;return n.MouseActionParam=Po.MouseActionParam,n.selectedPageIndex=0,n.pages=["Move","Scroll","Click","Speed"],n}return Ya(n,e),n.prototype.ngOnChanges=function(){this.fromKeyAction(this.defaultKeyAction),this.validAction.emit(this.keyActionValid())},n.prototype.keyActionValid=function(){return void 0!==this.mouseActionParam},n.prototype.fromKeyAction=function(e){if(!(e instanceof Po.MouseAction))return!1;var n=e;switch(this.mouseActionParam=n.mouseAction,n.mouseAction===Po.MouseActionParam.moveUp&&(this.selectedPageIndex=0),n.mouseAction){case Po.MouseActionParam.moveDown:case Po.MouseActionParam.moveUp:case Po.MouseActionParam.moveLeft:case Po.MouseActionParam.moveRight:this.selectedPageIndex=0;break;case Po.MouseActionParam.scrollDown:case Po.MouseActionParam.scrollUp:case Po.MouseActionParam.scrollLeft:case Po.MouseActionParam.scrollRight:this.selectedPageIndex=1;break;case Po.MouseActionParam.leftClick:case Po.MouseActionParam.middleClick:case Po.MouseActionParam.rightClick:this.selectedPageIndex=2;break;case Po.MouseActionParam.decelerate:case Po.MouseActionParam.accelerate:this.selectedPageIndex=3;break;default:return!1}return!0},n.prototype.toKeyAction=function(){var e=new Po.MouseAction;return e.mouseAction=this.mouseActionParam,e},n.prototype.changePage=function(e){if(e<-1||e>3)return void console.error("Invalid index error: "+e);this.selectedPageIndex=e,this.mouseActionParam=void 0,this.validAction.emit(!1)},n.prototype.setMouseActionParam=function(e){this.mouseActionParam=e,this.validAction.emit(!0)},n.ctorParameters=function(){return[]},n}(Ua),Xa=[qa],Qa=wl["\u0275crt"]({encapsulation:0,styles:Xa,data:{}}),Za=(wl["\u0275ccf"]("mouse-tab",Ja,Rn,{defaultKeyAction:"defaultKeyAction"},{validAction:"validAction"},[]),["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}[_nghost-%COMP%] > span[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%] .macro-selector[_ngcontent-%COMP%]{margin-top:2px}[_nghost-%COMP%] .macro-selector[_ngcontent-%COMP%], [_nghost-%COMP%] .macro-selector[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex}[_nghost-%COMP%] .macro-selector[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-right:7px}[_nghost-%COMP%] .macro-selector[_ngcontent-%COMP%] select2[_ngcontent-%COMP%]{-webkit-box-flex:1;-ms-flex:1;flex:1}[_nghost-%COMP%] .macro-action-container[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;min-height:200px;max-height:300px;margin:20px 0;overflow-x:hidden;overflow-y:auto;border-radius:4px;border:1px solid #ddd}[_nghost-%COMP%] .macro-action-container[_ngcontent-%COMP%] .list-group[_ngcontent-%COMP%]{margin-bottom:0;border:0}"]),eu=["[_nghost-%COMP%]{overflow:hidden;display:block}.macro-item[_nghost-%COMP%]:first-of-type .list-group-item[_ngcontent-%COMP%]{border-radius:4px 4px 0 0}.macro-item[_nghost-%COMP%]:last-of-type .list-group-item[_ngcontent-%COMP%]{border-bottom:0}.gu-transit[_nghost-%COMP%]{opacity:.2}.gu-transit[_nghost-%COMP%] .list-group-item[_ngcontent-%COMP%]{background:#f5f5f5}.action--item[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;border:0;border-bottom:1px solid #ddd;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.action--item[_ngcontent-%COMP%] icon[_ngcontent-%COMP%]{margin:0 5px}.action--item[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1}.action--item[_ngcontent-%COMP%]:first-child{border-radius:0}.action--item.is-editing[_ngcontent-%COMP%]{background:#f5f5f5}.action--item--wrap[_ngcontent-%COMP%]{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.action--item--wrap.pointer[_ngcontent-%COMP%]:hover{cursor:pointer;color:#337ab7}.action--title[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1}.action--movable[_ngcontent-%COMP%]:hover{cursor:move}.list-group-item[_ngcontent-%COMP%]{margin-bottom:0}.macro-action-editor__container[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;border-radius:0;border:none;overflow:hidden}"],nu=function(){function e(e){this.mapper=e,this.save=new wl.EventEmitter,this.cancel=new wl.EventEmitter,this.edit=new wl.EventEmitter,this.delete=new wl.EventEmitter,this.newItem=!1}return e.prototype.ngOnInit=function(){this.updateView(),this.macroAction||(this.editing=!0,this.newItem=!0)},e.prototype.ngOnChanges=function(e){e.macroAction&&this.updateView()},e.prototype.saveEditedAction=function(e){this.macroAction=e,this.editing=!1,this.updateView(),this.save.emit(e)},e.prototype.editAction=function(){if(!this.editable||this.editing)return void this.cancelEdit();this.editing=!0,this.edit.emit()},e.prototype.cancelEdit=function(){this.editing=!1,this.cancel.emit()},e.prototype.deleteAction=function(){this.delete.emit()},e.prototype.updateView=function(){if(this.macroAction)if(this.macroAction instanceof Po.DelayMacroAction){this.iconName="clock";var e=this.macroAction,n=e.delay>0?e.delay/1e3:0;this.title="Delay of "+n+"s"}else if(this.macroAction instanceof Po.TextMacroAction){var e=this.macroAction;this.iconName="font",this.title="Write text: "+e.text}else if(this.macroAction instanceof Po.KeyMacroAction){var e=this.macroAction;this.setKeyActionContent(e)}else if(this.macroAction instanceof Po.MouseButtonMacroAction){var e=this.macroAction;this.setMouseButtonActionContent(e)}else this.macroAction instanceof Po.MoveMouseMacroAction||this.macroAction instanceof Po.ScrollMouseMacroAction?this.setMouseMoveScrollActionContent(this.macroAction):this.title=this.macroAction.constructor.name;else this.title="New macro action"},e.prototype.setKeyActionContent=function(e){if(!e.hasScancode()&&!e.hasModifiers())return void(this.title="Invalid keypress");if(e.isTapAction()?(this.iconName="hand-pointer",this.title="Tap key: "):e.isPressAction()?(this.iconName="hand-rock",this.title="Press key: "):e.isReleaseAction()&&(this.iconName="hand-paper",this.title="Release key: "),e.hasScancode()){var n=(this.mapper.scanCodeToText(e.scancode,e.type)||["Unknown"]).join(" ");n&&(this.title+=n)}if(e.hasModifiers())for(var t=Po.KeyModifiers.leftCtrl;t<=Po.KeyModifiers.rightGui;t<<=1)e.isModifierActive(t)&&(this.title+=" "+Po.KeyModifiers[t])},e.prototype.setMouseMoveScrollActionContent=function(e){var n;e instanceof Po.MoveMouseMacroAction?(this.iconName="mouse-pointer",this.title="Move pointer",n=this.macroAction):(this.iconName="mouse-pointer",this.title="Scroll",n=this.macroAction);var t;0!==Math.abs(n.x)&&(this.title+=" by "+Math.abs(n.x)+"px "+(n.x>0?"leftward":"rightward"),t=!0),0!==Math.abs(n.y)&&(this.title+=" "+(t?"and":"by")+" "+Math.abs(n.y)+"px "+(n.y>0?"downward":"upward"))},e.prototype.setMouseButtonActionContent=function(e){e.isOnlyClickAction()?(this.iconName="mouse-pointer",this.title="Click mouse button: "):e.isOnlyHoldAction()?(this.iconName="hand-rock",this.title="Hold mouse button: "):e.isOnlyReleaseAction()&&(this.iconName="hand-paper",this.title="Release mouse button: ");var n=["Left","Middle","Right"],t=e.getMouseButtons(),l=[];t.forEach(function(e,t){e&&n[t]&&l.push(n[t])}),this.title+=l.join(", ")},e.ctorParameters=function(){return[{type:Ro}]},e}(),tu=['[_nghost-%COMP%]{display:block;width:100%}.action--editor[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;border-radius:0;border:0}.nav[_ngcontent-%COMP%]{padding-bottom:1rem}.nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{font-style:italic}.nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{cursor:pointer}.nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{z-index:2}.nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a.selected[_ngcontent-%COMP%]{font-style:normal}.nav[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:after{content:"";display:block;position:absolute;width:0;height:0;top:0;right:-4rem;border-color:transparent transparent transparent #337ab7;border-style:solid;border-width:2rem}.editor__tab-links[_ngcontent-%COMP%], .editor__tabs[_ngcontent-%COMP%]{padding-top:1rem}.editor__tabs[_ngcontent-%COMP%]{border-left:1px solid #ddd;margin-left:-1.6rem;padding-left:3rem}.editor__actions[_ngcontent-%COMP%]{float:right}.editor__actions-container[_ngcontent-%COMP%]{background:#f5f5f5;border-top:1px solid #ddd;border-bottom:1px solid #ddd;padding:1rem 1.5rem}.flex-button-wrapper[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.flex-button[_ngcontent-%COMP%]{-ms-flex-item-align:end;align-self:flex-end}'],lu=["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative}.macro__text-input[_ngcontent-%COMP%]{width:100%;min-height:10rem;margin-bottom:1rem}"],iu=function(){function e(){var e=this;this.valid=new wl.EventEmitter,this.validate=function(){return e.valid.emit(e.isMacroValid())}}return e}(),ou=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}(),au=function(e){function n(n){var t=e.call(this)||this;return t.renderer=n,t.isMacroValid=function(){return!!t.input.nativeElement.value},t.init=function(){t.macroAction||(t.macroAction=new Po.TextMacroAction)},t}return ou(n,e),n.prototype.ngOnInit=function(){this.init()},n.prototype.ngAfterViewInit=function(){this.renderer.invokeElementMethod(this.input.nativeElement,"focus")},n.prototype.onTextChange=function(){this.init(),this.macroAction.text=this.input.nativeElement.value},n.ctorParameters=function(){return[{type:wl.Renderer}]},n}(iu),uu=[lu],cu=wl["\u0275crt"]({encapsulation:0,styles:uu,data:{}}),ru=(wl["\u0275ccf"]("macro-text-tab",au,En,{macroAction:"macroAction"},{valid:"valid"},[]),[".macro-key__container[_ngcontent-%COMP%]{padding:0}.macro-key__types[_ngcontent-%COMP%]{margin-left:0;padding:0 0 1rem}.macro-key__action[_ngcontent-%COMP%]{padding-left:3rem;padding-bottom:1rem}.macro-key__action-container[_ngcontent-%COMP%]{margin-top:-1rem;padding-top:1rem;border-left:1px solid #ddd}.fa[_ngcontent-%COMP%]{min-width:14px}"]),su=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}();!function(e){e[e.Tap=0]="Tap",e[e.Press=1]="Press",e[e.Release=2]="Release"}(ca||(ca={}));var du,pu=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.TabName=ca,n.isMacroValid=function(){var e=n.getKeyMacroAction();return!!e.scancode||!!e.modifierMask},n}return su(n,e),n.prototype.ngOnInit=function(){this.macroAction||(this.macroAction=new Po.KeyMacroAction),this.defaultKeyAction=new Po.KeystrokeAction(this.macroAction),this.selectTab(this.getTabName(this.macroAction))},n.prototype.selectTab=function(e){this.activeTab=e,this.validate()},n.prototype.getTabName=function(e){return e.action?e.action===Po.MacroKeySubAction.press?ca.Press:e.action===Po.MacroKeySubAction.release?ca.Release:void 0:ca.Tap},n.prototype.getActionType=function(e){switch(e){case ca.Tap:return Po.MacroKeySubAction.tap;case ca.Press:return Po.MacroKeySubAction.press;case ca.Release:return Po.MacroKeySubAction.release;default:throw new Error("Invalid tab type")}},n.prototype.getKeyMacroAction=function(){var e=Object.assign(new Po.KeyMacroAction,this.keypressTab.toKeyAction());return e.action=this.getActionType(this.activeTab),e},n}(iu),yu=[tu,ru],fu=wl["\u0275crt"]({encapsulation:0,styles:yu,data:{}}),mu=(wl["\u0275ccf"]("macro-key-tab",pu,Kn,{macroAction:"macroAction"},{valid:"valid"},[]),[".macro-mouse__container[_ngcontent-%COMP%]{padding:0}.macro-mouse__types[_ngcontent-%COMP%]{border-right:1px solid #ddd;border-left:0;margin-top:-1rem;margin-left:0;padding:1rem 0}.macro-mouse__actions[_ngcontent-%COMP%]{padding-left:3rem;padding-bottom:1rem}.fa[_ngcontent-%COMP%]{min-width:14px}.form-horizontal[_ngcontent-%COMP%] .form-group[_ngcontent-%COMP%]{margin:0 0 .5rem}.form-horizontal[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;margin-right:.5rem}.form-horizontal[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{display:inline-block;width:10ch}"]),ku=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}();!function(e){e[e.Move=0]="Move",e[e.Scroll=1]="Scroll",e[e.Click=2]="Click",e[e.Hold=3]="Hold",e[e.Release=4]="Release"}(du||(du={}));var hu,gu=function(e){function n(){var n=e.call(this)||this;return n.TabName=du,n.isMacroValid=function(){switch(n.macroAction.constructor){case Po.MoveMouseMacroAction:case Po.ScrollMouseMacroAction:var e=n.macroAction,t=e.x,l=e.y;return void 0!==t&&null!==t&&void 0!==l&&null!==l&&(0!==t||0!==l)&&t<1e4&&t>-1e4&&l<1e4&&l>-1e4;case Po.MouseButtonMacroAction:return!!n.macroAction.mouseButtonsMask;default:return!0}},n.buttonLabels=["Left","Middle","Right"],n.selectedButtons=Array(n.buttonLabels.length).fill(!1),n}return ku(n,e),n.prototype.ngOnInit=function(){this.macroAction||(this.macroAction=new Po.MouseButtonMacroAction,this.macroAction.action=Po.MacroMouseSubAction.click);var e=this.getTabName(this.macroAction);this.selectTab(e),[du.Click,du.Hold,du.Release].includes(this.activeTab)&&(this.selectedButtons=this.macroAction.getMouseButtons())},n.prototype.ngOnChanges=function(){this.ngOnInit()},n.prototype.selectTab=function(e){if(this.activeTab=e,e!==this.getTabName(this.macroAction)){switch(this.selectedButtons=[],e){case du.Scroll:this.macroAction=new Po.ScrollMouseMacroAction;break;case du.Move:this.macroAction=new Po.MoveMouseMacroAction;break;default:this.macroAction=new Po.MouseButtonMacroAction,this.macroAction.action=this.getAction(e)}this.validate()}},n.prototype.setMouseClick=function(e){this.selectedButtons[e]=!this.selectedButtons[e],this.macroAction.setMouseButtons(this.selectedButtons),this.validate()},n.prototype.hasButton=function(e){return this.selectedButtons[e]},n.prototype.getAction=function(e){switch(e){case du.Click:return Po.MacroMouseSubAction.click;case du.Hold:return Po.MacroMouseSubAction.hold;case du.Release:return Po.MacroMouseSubAction.release;default:throw new Error("Invalid tab name: "+du[e])}},n.prototype.getTabName=function(e){if(e instanceof Po.MouseButtonMacroAction){if(!e.action||e.isOnlyClickAction())return du.Click;if(e.isOnlyHoldAction())return du.Hold;if(e.isOnlyReleaseAction())return du.Release}else{if(e instanceof Po.MoveMouseMacroAction)return du.Move;if(e instanceof Po.ScrollMouseMacroAction)return du.Scroll}return du.Move},n.ctorParameters=function(){return[]},n}(iu),bu=[tu,mu],vu=wl["\u0275crt"]({encapsulation:0,styles:bu,data:{}}),Au=(wl["\u0275ccf"]("macro-mouse-tab",gu,zn,{macroAction:"macroAction"},{valid:"valid"},[]),["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative}.macro-delay__presets[_ngcontent-%COMP%]{margin-top:1rem}.macro-delay__presets[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:.25rem;margin-bottom:.25rem}.form-group[_ngcontent-%COMP%]{margin-bottom:0}.form-control[_ngcontent-%COMP%]{width:16ch;display:inline-block}"]),Tu=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}(),Mu=function(e){function n(){var n=e.call(this)||this;return n.presets=[.1,.5,1,5,10],n.isMacroValid=function(){return 0!==n.macroAction.delay},n}return Tu(n,e),Object.defineProperty(n.prototype,"delay",{get:function(){return this._delay},set:function(e){this._delay=e,this.validate()},enumerable:!0,configurable:!0}),n.prototype.ngOnInit=function(){this.macroAction||(this.macroAction=new Po.DelayMacroAction),this.delay=this.macroAction.delay>0?this.macroAction.delay/1e3:.5},n.prototype.setDelay=function(e){this._delay=e,this.macroAction.delay=1e3*this._delay,this.validate()},n.ctorParameters=function(){return[]},n}(iu),Cu=[Au],wu=wl["\u0275crt"]({encapsulation:0,styles:Cu,data:{}});wl["\u0275ccf"]("macro-delay-tab",Mu,Jn,{macroAction:"macroAction"},{valid:"valid"},[]);!function(e){e[e.Keypress=0]="Keypress",e[e.Text=1]="Text",e[e.Mouse=2]="Mouse",e[e.Delay=3]="Delay"}(hu||(hu={}));var _u,Ou=function(){function e(){var e=this;this.save=new wl.EventEmitter,this.cancel=new wl.EventEmitter,this.TabName=hu,this.isSelectedMacroValid=!1,this.onValid=function(n){return e.isSelectedMacroValid=n}}return e.prototype.ngOnInit=function(){this.updateEditableMacroAction();var e=this.getTabName(this.editableMacroAction);this.activeTab=e},e.prototype.ngOnChanges=function(){this.ngOnInit()},e.prototype.onCancelClick=function(){this.cancel.emit()},e.prototype.onSaveClick=function(){try{var e=this.selectedTab instanceof pu?this.selectedTab.getKeyMacroAction():this.selectedTab.macroAction;this.save.emit(e)}catch(e){console.error(e)}},e.prototype.selectTab=function(e){this.activeTab=e,e===this.getTabName(this.macroAction)?this.updateEditableMacroAction():(this.editableMacroAction=void 0,this.isSelectedMacroValid=!1)},e.prototype.getTabName=function(e){return e instanceof Po.DelayMacroAction?hu.Delay:e instanceof Po.TextMacroAction?hu.Text:e instanceof Po.KeyMacroAction?hu.Keypress:e instanceof Po.MouseButtonMacroAction||e instanceof Po.MoveMouseMacroAction||e instanceof Po.ScrollMouseMacroAction?hu.Mouse:void 0},e.prototype.updateEditableMacroAction=function(){var e=this.macroAction?this.macroAction:new Po.TextMacroAction;this.editableMacroAction=Po.MacroActionHelper.createMacroAction(e)},e}(),xu=[tu],Su=wl["\u0275crt"]({encapsulation:0,styles:xu,data:{}}),Pu=(wl["\u0275ccf"]("macro-action-editor",Ou,tt,{macroAction:"macroAction"},{save:"save",cancel:"cancel"},[]),[eu]),Ru=wl["\u0275crt"]({encapsulation:0,styles:Pu,data:{animation:[{type:7,name:"toggler",definitions:[{type:0,name:"inactive",styles:{type:6,styles:{height:"0px"},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{height:"*"},offset:null},options:void 0},{type:1,expr:"inactive <=> active",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null}],options:{}}]}}),Iu=(wl["\u0275ccf"]("macro-item",nu,ut,{macroAction:"macroAction",editable:"editable",deletable:"deletable",movable:"movable"},{save:"save",cancel:"cancel",edit:"edit",delete:"delete"},[]),this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}()),Eu=function(e){function n(n){var t=e.call(this)||this;return t.subscription=n.let(Object(ua.e)()).subscribe(function(e){return t.macros=e}),t.macroOptions=[],t.selectedMacroIndex=0,t}return Iu(n,e),n.prototype.ngOnInit=function(){this.macroOptions=this.macros.map(function(e,n){return{id:n.toString(),text:e.name}})},n.prototype.ngOnChanges=function(){this.fromKeyAction(this.defaultKeyAction),this.validAction.emit(!0)},n.prototype.onChange=function(e){this.selectedMacroIndex=+e.value},n.prototype.keyActionValid=function(){return this.selectedMacroIndex>=0},n.prototype.fromKeyAction=function(e){if(!(e instanceof Po.PlayMacroAction))return!1;var n=e;return this.selectedMacroIndex=this.macros.findIndex(function(e){return n.macroId===e.id}),!0},n.prototype.toKeyAction=function(){if(!this.keyActionValid())throw new Error("KeyAction is not valid. No selected macro!");var e=new Po.PlayMacroAction;return e.macroId=this.macros[this.selectedMacroIndex].id,e},n.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},n.ctorParameters=function(){return[{type:xl.m}]},n}(Ua),Uu=[Za],Nu=wl["\u0275crt"]({encapsulation:0,styles:Uu,data:{}}),Lu=(wl["\u0275ccf"]("macro-tab",Eu,pt,{defaultKeyAction:"defaultKeyAction"},{validAction:"validAction"},[]),["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}[_nghost-%COMP%] > span[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%] > div[_ngcontent-%COMP%]{margin-top:2px}[_nghost-%COMP%] > div[_ngcontent-%COMP%], [_nghost-%COMP%] > div[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex}[_nghost-%COMP%] > div[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-right:7px}[_nghost-%COMP%] > div[_ngcontent-%COMP%] select2[_ngcontent-%COMP%]{-webkit-box-flex:1;-ms-flex:1;flex:1}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:last-child{margin-top:10px}[_nghost-%COMP%] > div[_ngcontent-%COMP%]:last-child img[_ngcontent-%COMP%]{max-height:100%;max-width:100%}.empty[_ngcontent-%COMP%], .empty[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex}.empty[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;position:relative}"]),Du=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}(),Ku=function(e){function n(){var n=e.call(this)||this;return n.keymapOptions=[],n}return Du(n,e),n.prototype.ngOnChanges=function(e){e.keymaps&&(this.keymapOptions=this.keymaps.map(function(e){return{id:e.abbreviation,text:e.name}}),this.keymaps.length>0&&(this.selectedKeymap=this.keymaps[0])),this.fromKeyAction(this.defaultKeyAction),this.validAction.emit(!0)},n.prototype.onChange=function(e){"-1"===e.value?this.selectedKeymap=void 0:this.selectedKeymap=this.keymaps.find(function(n){return n.abbreviation===e.value})},n.prototype.keyActionValid=function(){return!!this.selectedKeymap},n.prototype.fromKeyAction=function(e){if(!(e instanceof Po.SwitchKeymapAction))return!1;var n=e;this.selectedKeymap=this.keymaps.find(function(e){return e.abbreviation===n.keymapAbbreviation})},n.prototype.toKeyAction=function(){if(!this.keyActionValid())throw new Error("KeyAction is not valid. No selected keymap!");var e=new Po.SwitchKeymapAction;return e.keymapAbbreviation=this.selectedKeymap.abbreviation,e},n.ctorParameters=function(){return[]},n}(Ua),ju=[Lu],Fu=wl["\u0275crt"]({encapsulation:0,styles:ju,data:{}}),Vu=(wl["\u0275ccf"]("keymap-tab",Ku,gt,{defaultKeyAction:"defaultKeyAction",keymaps:"keymaps"},{validAction:"validAction"},[]),["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:2rem 0}"]),Bu=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}(),$u=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Bu(n,e),n.prototype.ngOnInit=function(){this.validAction.emit(!0)},n.prototype.keyActionValid=function(){return!0},n.prototype.fromKeyAction=function(){return!1},n.prototype.toKeyAction=function(){},n}(Ua),Hu=[Vu],Gu=wl["\u0275crt"]({encapsulation:0,styles:Hu,data:{}}),Wu=(wl["\u0275ccf"]("none-tab",$u,vt,{},{validAction:"validAction"},[]),t("gvep"));t("6DBm"),t("5v8a");!function(e){e[e.Keypress=0]="Keypress",e[e.Layer=1]="Layer",e[e.Mouse=2]="Mouse",e[e.Macro=3]="Macro",e[e.Keymap=4]="Keymap",e[e.None=5]="None"}(_u||(_u={}));var zu=function(){function e(e){this.cancel=new wl.EventEmitter,this.remap=new wl.EventEmitter,this.tabName=_u,this.leftArrow=!1,this.rightArrow=!1,this.topPosition=0,this.leftPosition=0,this.currentKeymap$=new Wu.BehaviorSubject(void 0),this.animationState="closed",this.keymaps$=e.let(Object(ua.c)()).combineLatest(this.currentKeymap$).map(function(e){var n=e[0],t=e[1];return n.filter(function(e){return t.abbreviation!==e.abbreviation})})}return e.prototype.ngOnChanges=function(e){if(this.keyPosition&&this.wrapPosition&&(e.keyPosition||e.wrapPosition)&&this.calculatePosition(),e.defaultKeyAction){var n=void 0;n=this.defaultKeyAction instanceof Po.KeystrokeAction?_u.Keypress:this.defaultKeyAction instanceof Po.SwitchLayerAction?_u.Layer:this.defaultKeyAction instanceof Po.MouseAction?_u.Mouse:this.defaultKeyAction instanceof Po.PlayMacroAction?_u.Macro:this.defaultKeyAction instanceof Po.SwitchKeymapAction?_u.Keymap:_u.None,this.selectTab(n)}e.visible&&(e.visible.currentValue?this.animationState="opened":this.animationState="closed"),e.currentKeymap&&this.currentKeymap$.next(this.currentKeymap)},e.prototype.onCancelClick=function(){this.cancel.emit(void 0)},e.prototype.onRemapKey=function(){if(this.keyActionValid)try{var e=this.selectedTab.toKeyAction();this.remap.emit(e)}catch(e){console.error(e)}},e.prototype.onEscape=function(){this.cancel.emit()},e.prototype.selectTab=function(e){this.activeTab=e},e.prototype.onOverlay=function(){this.cancel.emit(void 0)},e.prototype.calculatePosition=function(){var e=this.wrapPosition.left+265,n=this.popoverHost.nativeElement,t=this.keyPosition.left+this.keyPosition.width/2;this.leftArrow=t<e,this.rightArrow=t+n.offsetWidth>e+this.wrapPosition.width,this.leftArrow?t=this.keyPosition.left:this.rightArrow?t=this.keyPosition.left-n.offsetWidth+this.keyPosition.width:t-=n.offsetWidth/2,this.topPosition=this.keyPosition.top+this.keyPosition.height+7+window.scrollY,this.leftPosition=t},e.ctorParameters=function(){return[{type:xl.m}]},e}(),qu=[Pa],Yu=wl["\u0275crt"]({encapsulation:0,styles:qu,data:{animation:[{type:7,name:"popover",definitions:[{type:0,name:"closed",styles:{type:6,styles:{transform:"translateY(30px)",visibility:"hidden",opacity:0},offset:null},options:void 0},{type:0,name:"opened",styles:{type:6,styles:{transform:"translateY(0)",visibility:"visible",opacity:1},offset:null},options:void 0},{type:1,expr:"opened => closed",animation:[{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateY(0)",visibility:"visible",opacity:1,offset:0},offset:null},{type:6,styles:{transform:"translateY(30px)",visibility:"hidden",opacity:0,offset:1},offset:null}]},timings:"200ms ease-out"}],options:null},{type:1,expr:"closed => opened",animation:[{type:6,styles:{visibility:"visible"},offset:null},{type:4,styles:{type:5,steps:[{type:6,styles:{transform:"translateY(30px)",opacity:0,offset:0},offset:null},{type:6,styles:{transform:"translateY(0)",opacity:1,offset:1},offset:null}]},timings:"200ms ease-out"}],options:null}],options:{}}]}}),Ju=(wl["\u0275ccf"]("popover",zu,xt,{defaultKeyAction:"defaultKeyAction",currentKeymap:"currentKeymap",currentLayer:"currentLayer",keyPosition:"keyPosition",wrapPosition:"wrapPosition",visible:"visible"},{cancel:"cancel",remap:"remap"},[]),function(){function e(e,n,t,l){this.store=e,this.mapper=n,this.element=t,this.renderer=l,this.popoverEnabled=!0,this.tooltipEnabled=!1,this.descriptionChanged=new wl.EventEmitter,this.currentLayer=0,this.keyEditConfig={moduleId:void 0,keyId:void 0},this.tooltipData={posTop:0,posLeft:0,content:vi.Observable.of([]),show:!1}}return Object.defineProperty(e.prototype,"space",{get:function(){return this.popoverEnabled},enumerable:!0,configurable:!0}),e.prototype.onResize=function(){this.wrapHost&&(this.wrapPosition=this.wrapHost.getBoundingClientRect()),this.keyElement&&(this.keyPosition=this.keyElement.getBoundingClientRect())},e.prototype.ngOnInit=function(){this.wrapHost=this.element.nativeElement,this.wrapPosition=this.wrapHost.getBoundingClientRect()},e.prototype.ngOnChanges=function(e){var n=e.keymap;n&&(this.popoverShown=!1,this.layers=this.keymap.layers,n.isFirstChange()||n.previousValue.abbreviation!==n.currentValue.abbreviation?(this.currentLayer=0,this.keybindAnimationEnabled=n.isFirstChange()):this.keybindAnimationEnabled=!0)},e.prototype.onKeyClick=function(e,n,t){if(!this.popoverShown&&this.popoverEnabled){this.keyEditConfig={moduleId:e,keyId:n},this.selectedKey={layerId:this.currentLayer,moduleId:e,keyId:n};var l=this.layers[this.currentLayer].modules[e].keyActions[n];this.keyElement=t,this.showPopover(l)}},e.prototype.onKeyHover=function(e,n,t,l){if(this.tooltipEnabled){var i=this.layers[this.currentLayer].modules[e].keyActions[l];t?this.showTooltip(i,n):this.hideTooltip()}},e.prototype.onCapture=function(e,n,t){var l=new Po.KeystrokeAction,i=t.left.concat(t.right).map(function(e){return e?1:0});l.scancode=t.code,l.modifierMask=0;for(var o=0;o<i.length;++o)l.modifierMask|=i[o]<<this.mapper.modifierMapper(o);this.store.dispatch(lo.a.saveKey(this.keymap,this.currentLayer,e,n,l))},e.prototype.onRemap=function(e){this.store.dispatch(lo.a.saveKey(this.keymap,this.currentLayer,this.keyEditConfig.moduleId,this.keyEditConfig.keyId,e)),this.hidePopover()},e.prototype.showPopover=function(e){this.keyPosition=this.keyElement.getBoundingClientRect(),this.popoverInitKeyAction=e,this.popoverShown=!0,this.renderer.invokeElementMethod(this.popover.nativeElement,"focus")},e.prototype.showTooltip=function(e,n){if(void 0!==e){var t=n.target||n.srcElement,l=t.getBoundingClientRect(),i=this.tooltipData.posLeft,o=this.tooltipData.posTop;"g"===t.tagName&&(i=l.left+l.width/2,o=l.top+l.height),this.tooltipData={posLeft:i,posTop:o,content:this.getKeyActionContent(e),show:!0}}},e.prototype.hideTooltip=function(){this.tooltipData.show=!1},e.prototype.hidePopover=function(){this.popoverShown=!1,this.selectedKey=void 0},e.prototype.selectLayer=function(e){this.currentLayer=e},e.prototype.getSelectedLayer=function(){return this.currentLayer},e.prototype.onDescriptionChanged=function(e){this.descriptionChanged.emit({description:e,abbr:this.keymap.abbreviation})},e.prototype.getKeyActionContent=function(e){if(e instanceof Po.KeystrokeAction){var n=e,t=[];if(t.push({name:"Action type",value:"Keystroke"}),n.hasScancode()){var l=n.scancode.toString(),i=(this.mapper.scanCodeToText(n.scancode,n.type)||[]).join(", ");i.length>0&&(l+=" ("+i+")"),t.push({name:"Scancode",value:l})}return n.hasActiveModifier()&&t.push({name:"Modifiers",value:n.getModifierList().join(", ")}),n.hasSecondaryRoleAction()&&t.push({name:"Secondary role",value:Po.SecondaryRoleAction[n.secondaryRoleAction]}),vi.Observable.of(t)}if(e instanceof Po.MouseAction){var o=e,t=[{name:"Action type",value:"Mouse"},{name:"Action",value:Object(Po.camelCaseToSentence)(Po.MouseActionParam[o.mouseAction])}];return vi.Observable.of(t)}if(e instanceof Po.PlayMacroAction){var a=e;return this.store.select(function(e){return e.userConfiguration.macros}).map(function(e){return e.find(function(e){return e.id===a.macroId}).name}).map(function(e){return[{name:"Action type",value:"Play macro"},{name:"Macro name",value:e}]})}if(e instanceof Po.SwitchKeymapAction){var u=e;return this.store.select(function(e){return e.userConfiguration.keymaps}).map(function(e){return e.find(function(e){return e.abbreviation===u.keymapAbbreviation}).name}).map(function(e){return[{name:"Action type",value:"Switch keymap"},{name:"Keymap",value:e}]})}if(e instanceof Po.SwitchLayerAction){var c=e,t=[{name:"Action type",value:"Switch layer"},{name:"Layer",value:Object(Po.capitalizeFirstLetter)(Po.LayerName[c.layer])},{name:"Toogle",value:c.isLayerToggleable?"On":"Off"}];return vi.Observable.of(t)}return vi.Observable.of([])},e.ctorParameters=function(){return[{type:xl.m},{type:Ro},{type:wl.ElementRef},{type:wl.Renderer}]},e}()),Xu=[so],Qu=wl["\u0275crt"]({encapsulation:0,styles:Xu,data:{}}),Zu=(wl["\u0275ccf"]("svg-keyboard-wrap",Ju,It,{keymap:"keymap",popoverEnabled:"popoverEnabled",tooltipEnabled:"tooltipEnabled",halvesSplit:"halvesSplit",keyboardLayout:"keyboardLayout"},{descriptionChanged:"descriptionChanged"},[]),t("ZQKz"),t("ykQW"),t("HUu4"),t("Pic8"),t("Ozq5"),t("bbdN")),ec=function(){function e(e,n){this.store=e,this.keymap$=n.params.pluck("abbr").switchMap(function(n){return e.let(Object(ua.b)(n))}).publishReplay(1).refCount(),this.deletable$=e.let(Object(ua.c)()).map(function(e){return e.length>1}),this.keyboardLayout$=e.select(Pl.i)}return e.prototype.downloadKeymap=function(){var e=this,n=this.keymap$.switchMap(function(n){return e.toExportableJSON(n)}).map(function(e){return JSON.stringify(e)});this.keymap$.combineLatest(n).first().subscribe(function(e){var n=e[0],t=e[1],l=n.name+"_keymap.json";Object(Zu.saveAs)(new Blob([t],{type:"application/json"}),l)})},e.prototype.toggleKeyboardSplit=function(){this.keyboardSplit=!this.keyboardSplit},e.prototype.descriptionChanged=function(e){this.store.dispatch(new lo.a.EditDescriptionAction(e))},e.prototype.toExportableJSON=function(e){return this.store.let(Object(ua.f)()).first().map(function(n){return{site:"https://ultimatehackingkeyboard.com",description:"Ultimate Hacking Keyboard keymap",keyboardModel:"UHK60",userConfigMajorVersion:n.userConfigMajorVersion,userConfigMinorVersion:n.userConfigMinorVersion,userConfigPatchVersion:n.userConfigPatchVersion,objectType:"keymap",objectValue:e.toJsonObject()}})},e.ctorParameters=function(){return[{type:xl.m},{type:Zl.a}]},e}(),nc=[zi],tc=wl["\u0275crt"]({encapsulation:0,styles:nc,data:{}}),lc=wl["\u0275ccf"]("keymap-edit",ec,Lt,{},{},[]),ic=["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%}.uhk__layer-switcher--wrapper[_ngcontent-%COMP%]{position:relative}.uhk__layer-switcher--wrapper[_ngcontent-%COMP%]:before{content:attr(data-title);display:inline-block;position:absolute;bottom:-.3em;right:100%;font-size:2.4rem;padding-right:.25em;margin:0}.keymap__search[_ngcontent-%COMP%]{margin-top:10px}.keymap__search[_ngcontent-%COMP%] .input-group[_ngcontent-%COMP%]{width:100%;max-width:350px;float:left}.keymap__search_amount[_ngcontent-%COMP%]{float:left;margin:7px 0 0 20px}.keymap__description[_ngcontent-%COMP%]{margin-bottom:20px}.keymap__list[_ngcontent-%COMP%]{margin-top:40px}.keymap__list_item[_ngcontent-%COMP%]{margin-bottom:50px}.keymap__list[_ngcontent-%COMP%] .btn-group-lg[_ngcontent-%COMP%]{margin:30px 0 0;width:100%;text-align:center}.keymap__list[_ngcontent-%COMP%] .btn-group-lg[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{float:none;padding-left:50px;padding-right:50px}"],oc=function(){function e(e){this.store=e,this.presetsAll$=e.select(function(e){return e.presetKeymaps}),this.filterExpression$=new Wu.BehaviorSubject(""),this.presets$=this.presetsAll$.combineLatest(this.filterExpression$,function(e,n){return e.filter(function(e){return e.name.toLocaleLowerCase().includes(n)})}).publishReplay(1).refCount()}return e.prototype.filterKeyboards=function(e){this.filterExpression$.next(e)},e.prototype.addKeymap=function(e){this.store.dispatch(lo.a.addKeymap(e))},e.ctorParameters=function(){return[{type:xl.m}]},e}(),ac=[ic],uc=wl["\u0275crt"]({encapsulation:0,styles:ac,data:{}}),cc=wl["\u0275ccf"]("keymap-add",oc,Ft,{},{},[]),rc=[".not-found[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;text-align:center}"],sc=function(){function e(){}return e}(),dc=[rc],pc=wl["\u0275crt"]({encapsulation:0,styles:dc,data:{}}),yc=wl["\u0275ccf"]("macro-not-found",sc,Bt,{},{},[]),fc=["[_nghost-%COMP%]{width:100%;height:100%;display:block}.not-found[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;text-align:center}"],mc=[".macro__remove[_ngcontent-%COMP%]{font-size:.75em;top:8px}.macro__remove[_ngcontent-%COMP%]:hover{cursor:pointer;color:#900}.macro__duplicate[_ngcontent-%COMP%]{font-size:.75em;top:7px;margin-right:15px;position:relative}.macro__duplicate[_ngcontent-%COMP%]:hover{cursor:pointer;color:#337ab7}.pane-title[_ngcontent-%COMP%]{margin-bottom:1em}.pane-title__name[_ngcontent-%COMP%]{border:none;border-bottom:2px dotted #999;padding:0;margin:0 .25rem;text-overflow:ellipsis}.pane-title__name[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;border-color:transparent}"],kc=function(){function e(e,n){this.store=e,this.renderer=n}return e.prototype.ngOnChanges=function(e){this.isNew&&this.setFocusOnName(),e.macro&&this.setName()},e.prototype.ngAfterViewInit=function(){this.isNew&&this.setFocusOnName()},e.prototype.windowResize=function(){this.calculateHeaderTextWidth(this.macro.name)},e.prototype.removeMacro=function(){this.store.dispatch(lo.b.removeMacro(this.macro.id))},e.prototype.duplicateMacro=function(){this.store.dispatch(lo.b.duplicateMacro(this.macro))},e.prototype.editMacroName=function(e){if(!io.d(e))return void this.setName();this.store.dispatch(lo.b.editMacroName(this.macro.id,e))},e.prototype.calculateHeaderTextWidth=function(e){var n=this.macroName.nativeElement,t=.8*n.parentElement.offsetWidth,l=io.b(window.getComputedStyle(n),e);this.renderer.setStyle(n,"width",Math.min(t,l)+"px")},e.prototype.setFocusOnName=function(){this.macroName.nativeElement.select()},e.prototype.setName=function(){this.renderer.setProperty(this.macroName.nativeElement,"value",this.macro.name),this.calculateHeaderTextWidth(this.macro.name)},e.ctorParameters=function(){return[{type:xl.m},{type:wl.Renderer2}]},e}(),hc=[mc],gc=wl["\u0275crt"]({encapsulation:0,styles:hc,data:{}}),bc=(wl["\u0275ccf"]("macro-header",kc,Ht,{macro:"macro",isNew:"isNew"},{},[]),[".add-new__action-item--link[_ngcontent-%COMP%] button.btn-link[_ngcontent-%COMP%]{padding:7px 0;text-decoration:none;border:0;width:100%}.add-new__action-item--link[_ngcontent-%COMP%] button.btn-link[_ngcontent-%COMP%]:focus{outline:none}[_nghost-%COMP%]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%}[_nghost-%COMP%], [_nghost-%COMP%] .list-container[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex}[_nghost-%COMP%] .list-container[_ngcontent-%COMP%]{-webkit-box-flex:1;-ms-flex:1;flex:1}.main-wrapper[_ngcontent-%COMP%]{width:500px}h1[_ngcontent-%COMP%]{margin-bottom:3rem}.action--edit__form[_ngcontent-%COMP%]{background-color:#fff;margin-left:-.5rem;margin-right:-15px;margin-top:15px;padding-top:15px;border-top:1px solid #ddd}.action--item[_ngcontent-%COMP%]{padding-left:8px}.action--item.active[_ngcontent-%COMP%], .action--item.active[_ngcontent-%COMP%]:hover{background-color:#fff;font-weight:700;color:#000;border-color:#000;z-index:10}.list-group[_ngcontent-%COMP%]{overflow:auto}.macro__name[_ngcontent-%COMP%]{border-bottom:2px dotted #999;padding:0 .5rem;margin:0 .25rem}.macro-settings[_ngcontent-%COMP%]{border:1px solid #000;border-top-color:#999;z-index:100}.macro-settings[_ngcontent-%COMP%] .helper[_ngcontent-%COMP%]{position:absolute;display:block;height:13px;background:#fff;width:100%;left:0;top:-14px}.action--item.active.callout[_ngcontent-%COMP%], .macro-settings.callout[_ngcontent-%COMP%]{box-shadow:0 0 20px 0 rgba(0,0,0,.5)}.macro-actions-container[_ngcontent-%COMP%]{margin-bottom:0;border-radius:4px;border:1px solid #ddd;border-bottom:0}.list-group-item[_ngcontent-%COMP%] .move-handle[_ngcontent-%COMP%]:hover{cursor:move}.flex-button-wrapper[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.flex-button[_ngcontent-%COMP%]{-ms-flex-item-align:end;align-self:flex-end}.add-new__action-container[_ngcontent-%COMP%]{overflow:hidden;-ms-flex-negative:0;flex-shrink:0;border-top:1px solid #ddd}.add-new__action-item[_ngcontent-%COMP%]{border-radius:0 0 4px 4px;border-top:0;padding:0}.add-new__action-item[_ngcontent-%COMP%]:hover{cursor:pointer}.add-new__action-item--link[_ngcontent-%COMP%]{width:50%;float:left;text-align:center;color:#337ab7}.add-new__action-item--link[_ngcontent-%COMP%]:first-of-type{border-right:1px solid #ddd}.add-new__action-item--link[_ngcontent-%COMP%]:hover{text-decoration:none;background:#e6e6e6}.add-new__action-item[_ngcontent-%COMP%] .fa-circle[_ngcontent-%COMP%]{color:#c00}.gu-mirror[_ngcontent-%COMP%]{position:fixed;margin:0;z-index:9999;opacity:.8}.gu-hide[_ngcontent-%COMP%]{display:none}.gu-unselectable[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}"]),vc=t("Kg3V"),Ac=t("sY2v"),Tc=t("YdjH"),Mc=function(){function e(e,n){var t=this;this.mapper=e,this.dragulaService=n,this.add=new wl.EventEmitter,this.edit=new wl.EventEmitter,this.delete=new wl.EventEmitter,this.reorder=new wl.EventEmitter,this.newMacro=void 0,this.showNew=!1,this.activeEdit=void 0,n.setOptions("macroActions",{moves:function(e,n,t){return t.className.includes("action--movable")}}),n.drag.subscribe(function(e){t.dragIndex=+e[1].getAttribute("data-index")}),n.drop.subscribe(function(e){e[4]&&t.reorder.emit({macroId:t.macro.id,oldIndex:t.dragIndex,newIndex:+e[4].getAttribute("data-index")})})}return e.prototype.showNewAction=function(){this.hideActiveEditor(),this.newMacro=void 0,this.showNew=!0},e.prototype.hideNewAction=function(){this.showNew=!1},e.prototype.addNewAction=function(e){this.add.emit({macroId:this.macro.id,action:e}),this.newMacro=void 0,this.showNew=!1},e.prototype.editAction=function(e){this.hideActiveEditor(),this.showNew=!1,this.activeEdit=e},e.prototype.cancelAction=function(){this.activeEdit=void 0},e.prototype.saveAction=function(e,n){this.edit.emit({macroId:this.macro.id,index:n,action:e}),this.hideActiveEditor()},e.prototype.deleteAction=function(e,n){this.delete.emit({macroId:this.macro.id,index:n,action:e}),this.hideActiveEditor()},e.prototype.onKeysCapture=function(e){var n=Object.assign(new Po.KeyMacroAction,this.toKeyAction(e));n.action=Po.MacroKeySubAction.tap,this.add.emit({macroId:this.macro.id,action:n})},e.prototype.toKeyAction=function(e){var n=new Po.KeystrokeAction;n.scancode=e.code,n.modifierMask=0;for(var t=e.left.concat(e.right).map(function(e){return e?1:0}),l=0;l<t.length;++l)n.modifierMask|=t[l]<<this.mapper.modifierMapper(l);return n},e.prototype.hideActiveEditor=function(){void 0!==this.activeEdit&&this.macroItems.toArray()[this.activeEdit].cancelEdit()},e.ctorParameters=function(){return[{type:Ro},{type:Tc.DragulaService}]},e}(),Cc=[bc],wc=wl["\u0275crt"]({encapsulation:0,styles:Cc,data:{animation:[{type:7,name:"toggler",definitions:[{type:0,name:"inactive",styles:{type:6,styles:{height:"0px"},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{height:"*"},offset:null},options:void 0},{type:1,expr:"inactive <=> active",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null}],options:{}},{type:7,name:"togglerNew",definitions:[{type:0,name:"void",styles:{type:6,styles:{height:"0px"},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{height:"*"},offset:null},options:void 0},{type:1,expr:":enter",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null},{type:1,expr:":leave",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null}],options:{}}]}}),_c=(wl["\u0275ccf"]("macro-list",Mc,qt,{macro:"macro"},{add:"add",edit:"edit",delete:"delete",reorder:"reorder"},[]),function(){function e(e,n){var t=this;this.store=e,this.route=n,this.subscription=n.params.pluck("id").switchMap(function(n){return t.macroId=+n,e.let(Object(ua.d)(t.macroId))}).subscribe(function(e){t.macro=e}),this.isNew="new"===this.route.snapshot.params.empty}return e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.addAction=function(e,n){this.store.dispatch(lo.b.addMacroAction(e,n))},e.prototype.editAction=function(e,n,t){this.store.dispatch(lo.b.saveMacroAction(e,n,t))},e.prototype.deleteAction=function(e,n,t){this.store.dispatch(lo.b.deleteMacroAction(e,n,t))},e.prototype.reorderAction=function(e,n,t){this.store.dispatch(lo.b.reorderMacroAction(e,n,t))},e.ctorParameters=function(){return[{type:xl.m},{type:Zl.a}]},e}()),Oc=[fc],xc=wl["\u0275crt"]({encapsulation:0,styles:Oc,data:{}}),Sc=wl["\u0275ccf"]("macro-edit",_c,Qt,{},{},[]),Pc=["[_nghost-%COMP%]{width:100%;height:100%;display:block}"],Rc=function(){function e(e){this.name$=e.params.pluck("name")}return e.ctorParameters=function(){return[{type:Zl.a}]},e}(),Ic=[Pc],Ec=wl["\u0275crt"]({encapsulation:0,styles:Ic,data:{}}),Uc=wl["\u0275ccf"]("add-on",Rc,el,{},{},[]),Nc=["[_nghost-%COMP%]{width:100%;height:100%;display:block}"],Lc=t("jo2S"),Dc=function(){function e(e){this.store=e,this.version=Object(io.c)().version,this.autoUpdateSettings$=e.select(Pl.f),this.checkingForUpdate$=e.select(Pl.g)}return e.prototype.toogleCheckForUpdateOnStartUp=function(e){this.store.dispatch(new Lc.h(e))},e.prototype.toogleUsePreReleaseUpdate=function(e){this.store.dispatch(new Lc.i(e))},e.prototype.checkForUpdate=function(){this.store.dispatch(new Lc.c)},e.ctorParameters=function(){return[{type:xl.m}]},e}(),Kc=function(){function e(){this.toggleCheckForUpdateOnStartUp=new wl.EventEmitter,this.toggleUsePreReleaseUpdate=new wl.EventEmitter,this.checkForUpdate=new wl.EventEmitter}return e.prototype.emitCheckForUpdateOnStartUp=function(e){this.toggleCheckForUpdateOnStartUp.emit(e)},e.prototype.emitUsePreReleaseUpdate=function(e){this.toggleUsePreReleaseUpdate.emit(e)},e.prototype.emitCheckForUpdate=function(){this.checkForUpdate.emit()},e.ctorParameters=function(){return[]},e}(),jc=[],Fc=wl["\u0275crt"]({encapsulation:2,styles:jc,data:{}}),Vc=(wl["\u0275ccf"]("auto-update-settings",Kc,ll,{version:"version",settings:"settings",checkingForUpdate:"checkingForUpdate"},{toggleCheckForUpdateOnStartUp:"toggleCheckForUpdateOnStartUp",toggleUsePreReleaseUpdate:"toggleUsePreReleaseUpdate",checkForUpdate:"checkForUpdate"},[]),[Nc]),Bc=wl["\u0275crt"]({encapsulation:0,styles:Vc,data:{}}),$c=wl["\u0275ccf"]("settings",Dc,ol,{},{},[]),Hc=["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}.agent-version[_ngcontent-%COMP%]{margin-bottom:1rem}.agent-version[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:700}.link-github[_ngcontent-%COMP%]{cursor:pointer}"],Gc=function(){function e(e){this.store=e,this.version=Object(io.c)().version}return e.prototype.openAgentGitHubPage=function(e){e.preventDefault(),this.store.dispatch(new Yi.g(Po.Constants.AGENT_GITHUB_URL))},e.ctorParameters=function(){return[{type:xl.m}]},e}(),Wc=[Hc],zc=wl["\u0275crt"]({encapsulation:0,styles:Wc,data:{}}),qc=wl["\u0275ccf"]("about-page",Gc,ul,{},{},[]),Yc=["main-app{min-height:100%;height:100%;width:100%;display:block;position:relative}.save-to-keyboard-button{position:fixed;bottom:15px;right:15px}"],Jc=[".app-update-available-wrapper[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:.5rem}"],Xc=function(){function e(){this.updateApp=new wl.EventEmitter,this.doNotUpdateApp=new wl.EventEmitter}return e}(),Qc=[Jc],Zc=wl["\u0275crt"]({encapsulation:0,styles:Qc,data:{}}),er=(wl["\u0275ccf"]("app-update-available",Xc,rl,{},{updateApp:"updateApp",doNotUpdateApp:"doNotUpdateApp"},[]),["[_nghost-%COMP%]{background-color:#f5f5f5;border-right:1px solid #ccc;position:fixed;overflow-y:auto;width:250px;height:100%}a[_ngcontent-%COMP%]{color:#333}ul[_ngcontent-%COMP%]{margin:0}ul[_ngcontent-%COMP%], ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none}ul[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{overflow:hidden}.sidebar__level-0[_ngcontent-%COMP%]{padding:.5rem 1rem 0}.sidebar__level-1[_ngcontent-%COMP%]{padding:.5rem 1rem .5rem 2rem}.sidebar__level-0[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%]{font-size:2rem;line-height:3rem;cursor:default}.sidebar__level-0[_ngcontent-%COMP%]:hover .fa-chevron-down[_ngcontent-%COMP%], .sidebar__level-0[_ngcontent-%COMP%]:hover .fa-chevron-up[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%]:hover .fa-chevron-down[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%]:hover .fa-chevron-up[_ngcontent-%COMP%]{display:inline-block}.sidebar__level-0--item[_ngcontent-%COMP%], .sidebar__level-1--item[_ngcontent-%COMP%]{margin-top:0}.sidebar__level-0--item[_ngcontent-%COMP%]:first-child, .sidebar__level-1--item[_ngcontent-%COMP%]:first-child{margin:0}.sidebar__level-0[_ngcontent-%COMP%] .fa-chevron-down[_ngcontent-%COMP%], .sidebar__level-0[_ngcontent-%COMP%] .fa-chevron-up[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%] .fa-chevron-down[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%] .fa-chevron-up[_ngcontent-%COMP%]{margin-right:1rem;font-size:1.5rem;position:relative;top:.5rem;display:none;cursor:pointer}.sidebar__level-0[_ngcontent-%COMP%] .uhk-icon-agent-icon[_ngcontent-%COMP%], .sidebar__level-1[_ngcontent-%COMP%] .uhk-icon-agent-icon[_ngcontent-%COMP%]{margin-left:-3px}.sidebar__level-2--item[_ngcontent-%COMP%]{padding:0 20px 0 0;position:relative}.sidebar__level-2--item.active[_ngcontent-%COMP%]{background-color:#555;color:#fff}.sidebar__level-2--item.active[_ngcontent-%COMP%] .fa-star[_ngcontent-%COMP%]{color:#fff}.sidebar__level-2--item.active[_ngcontent-%COMP%]:hover{background-color:#555}.sidebar__level-2--item[_ngcontent-%COMP%]:hover{cursor:pointer}.sidebar__level-2--item[_ngcontent-%COMP%] .fa.pull-right[_ngcontent-%COMP%]{position:relative;top:2px}.sidebar__level-2--item[_ngcontent-%COMP%] .fa-star[_ngcontent-%COMP%]{color:#666}.sidebar__level-2--item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;width:100%;padding:0 15px 0 30px}.sidebar__level-2--item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:focus, .sidebar__level-2--item[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.sidebar__level-0[_ngcontent-%COMP%]:hover, .sidebar__level-1[_ngcontent-%COMP%]:hover, .sidebar__level-2[_ngcontent-%COMP%]:hover{background-color:rgba(0,0,0,.05)}.sidebar__level-0.active[_ngcontent-%COMP%], .sidebar__level-1.active[_ngcontent-%COMP%], .sidebar__level-2.active[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.18)}.sidebar__fav[_ngcontent-%COMP%]{position:absolute;right:19px;top:3px}.menu--bottom[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%}.menu--bottom[_ngcontent-%COMP%] .sidebar__level-1[_ngcontent-%COMP%]{display:block;padding:1rem;cursor:pointer}.menu--bottom[_ngcontent-%COMP%] .sidebar__level-1[_ngcontent-%COMP%]:hover{text-decoration:none}.pane-title[_ngcontent-%COMP%]{margin-bottom:1em}.pane-title__name[_ngcontent-%COMP%]{border:none;border-bottom:2px dotted #999;padding:0;margin:0 .25rem;text-overflow:ellipsis;background-color:transparent}.pane-title__name[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;border-color:transparent;background-color:transparent}"]),nr=(t("eqpX"),function(){function e(e,n){var t=this;this.store=e,this.renderer=n,this.updatingFirmware=!1,this.animation={device:"active",configuration:"active",keymap:"active",macro:"active",addon:"active"},this.keymaps$=e.let(Object(ua.c)()),this.macros$=e.let(Object(ua.e)()),this.showAddonMenu$=this.store.select(Pl.q),this.runInElectron$=this.store.select(Pl.o),this.deviceName$=e.select(Pl.h),this.deviceNameSubscription=this.deviceName$.subscribe(function(e){t.deviceNameValue=e,t.setDeviceName()}),this.updatingFirmware$=e.select(Pl.r),this.updatingFirmwareSubscription=this.updatingFirmware$.subscribe(function(e){t.updatingFirmware=e})}return e.prototype.ngAfterContentInit=function(){this.setDeviceName()},e.prototype.ngOnDestroy=function(){this.deviceNameSubscription.unsubscribe(),this.updatingFirmwareSubscription.unsubscribe()},e.prototype.toggleHide=function(e,n){if(!this.updatingFirmware){var t=e.target.classList,l=!1;t.contains("fa-chevron-down")?(l=!0,this.animation[n]="active"):this.animation[n]="inactive",l?(this.renderer.addClass(e.target,"fa-chevron-up"),this.renderer.removeClass(e.target,"fa-chevron-down")):(this.renderer.removeClass(e.target,"fa-chevron-up"),this.renderer.addClass(e.target,"fa-chevron-down"))}},e.prototype.addMacro=function(){this.store.dispatch(lo.b.addMacro())},e.prototype.editDeviceName=function(e){if(!io.d(e)||e.trim()===this.deviceNameValue)return void this.setDeviceName();this.store.dispatch(new ii.h(e))},e.prototype.calculateHeaderTextWidth=function(e){var n=this.deviceName.nativeElement,t=.66*n.parentElement.offsetWidth,l=io.b(window.getComputedStyle(n),e);this.renderer.setStyle(n,"width",Math.min(t,l)+"px")},e.prototype.setDeviceName=function(){this.deviceName&&(this.renderer.setProperty(this.deviceName.nativeElement,"value",this.deviceNameValue),this.calculateHeaderTextWidth(this.deviceName.nativeElement.value))},e.ctorParameters=function(){return[{type:xl.m},{type:wl.Renderer2}]},e}()),tr=[er],lr=wl["\u0275crt"]({encapsulation:0,styles:tr,data:{animation:[{type:7,name:"toggler",definitions:[{type:0,name:"inactive",styles:{type:6,styles:{height:"0px"},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{height:"*"},offset:null},options:void 0},{type:1,expr:"inactive <=> active",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null}],options:{}}]}}),ir=(wl["\u0275ccf"]("side-menu",nr,ml,{},{},[]),["button[_ngcontent-%COMP%]{min-width:150px}"]),or=t("Ii5C"),ar=function(){function e(){this.state=or.a,this.clicked=new wl.EventEmitter}return e.prototype.onClicked=function(){this.clicked.emit(this.state.action)},e}(),ur=[ir],cr=wl["\u0275crt"]({encapsulation:0,styles:ur,data:{}}),rr=(wl["\u0275ccf"]("progress-button",ar,gl,{state:"state"},{clicked:"clicked"},[]),t("cykF")),sr=t("lM2z"),dr=[Yc],pr=wl["\u0275crt"]({encapsulation:2,styles:dr,data:{animation:[{type:7,name:"showSaveToKeyboardButton",definitions:[{type:1,expr:":enter",animation:[{type:6,styles:{transform:"translateY(100%)"},offset:null},{type:4,styles:{type:6,styles:{transform:"translateY(0)"},offset:null},timings:"400ms ease-in-out"}],options:null},{type:1,expr:":leave",animation:[{type:6,styles:{transform:"translateY(0)"},offset:null},{type:4,styles:{type:6,styles:{transform:"translateY(100%)"},offset:null},timings:"400ms ease-in-out"}],options:null}],options:{}}]}}),yr=wl["\u0275ccf"]("main-app",Rl,Ml,{},{},[]),fr=t("f9zQ"),mr=t("fL27"),kr=t("EyWH"),hr=t("0Vo6"),gr=function(){function e(e,n){this.store=e,this.router=n}return e.prototype.canActivate=function(){var e=this;return this.store.let(Object(ua.c)()).do(function(n){var t=n.find(function(e){return e.isDefault});t&&e.router.navigate(["/keymap",t.abbreviation])}).switchMap(function(){return vi.Observable.of(!1)})},e.ctorParameters=function(){return[{type:xl.m},{type:Zl.m}]},e}(),br=function(){function e(e,n){this.store=e,this.router=n}return e.prototype.canActivate=function(){var e=this;return this.store.let(Object(ua.e)()).map(function(n){var t=n.length>0;return t&&e.router.navigate(["/macro",n[0].id]),!t})},e.ctorParameters=function(){return[{type:xl.m},{type:Zl.m}]},e}(),vr=function(){function e(e,n){this.store=e,this.router=n}return e.prototype.canActivate=function(){var e=this;return this.store.select(Pl.b).do(function(n){n&&e.router.navigate(["/"])}).map(function(e){return!e})},e.ctorParameters=function(){return[{type:xl.m},{type:Zl.m}]},e}(),Ar=function(){function e(e,n){this.store=e,this.router=n}return e.prototype.canActivate=function(){var e=this;return this.store.select(Pl.b).do(function(n){n||e.router.navigate(["/detection"])})},e.ctorParameters=function(){return[{type:xl.m},{type:Zl.m}]},e}(),Tr=function(){function e(e,n){this.store=e,this.router=n}return e.prototype.canActivate=function(){var e=this;return this.store.select(Pl.n).do(function(n){n&&e.router.navigate(["/detection"])}).map(function(e){return!e})},e.ctorParameters=function(){return[{type:xl.m},{type:Zl.m}]},e}(),Mr=function(){function e(e,n){this.store=e,this.router=n}return e.prototype.canActivate=function(){var e=this;return this.store.select(Pl.n).do(function(n){n||e.router.navigate(["/privilege"])})},e.ctorParameters=function(){return[{type:xl.m},{type:Zl.m}]},e}(),Cr=function(){function e(e,n){this.store=e,this.router=n}return e.prototype.canActivate=function(){var e=this;return this.store.select(Pl.a).do(function(n){n||e.router.navigate(["/loading"])})},e.ctorParameters=function(){return[{type:xl.m},{type:Zl.m}]},e}(),wr=function(){function e(e,n){this.store=e,this.router=n}return e.prototype.canActivate=function(){var e=this;return this.store.select(Pl.a).do(function(n){n&&e.router.navigate(["/"])}).map(function(e){return!e})},e.ctorParameters=function(){return[{type:xl.m},{type:Zl.m}]},e}(),_r=t("uIf7"),Or=t("NijM"),xr=t("XnCX"),Sr=function(){function e(){}return e}(),Pr=t("TTza"),Rr=t("cVaD"),Ir=t("kGlP"),Er=t("C4aZ"),Ur=t("Xloh"),Nr=t("2soc"),Lr=t("Tl+Y"),Dr=t("lCMY"),Kr=function(){function e(e,n,t){this.store=e,this.zone=n,this.ipcRenderer=t,this.registerEvents()}return e.prototype.sendAppStarted=function(){this.ipcRenderer.send(Po.IpcEvents.app.appStarted)},e.prototype.sendUpdateAndRestartApp=function(){this.ipcRenderer.send(Po.IpcEvents.autoUpdater.updateAndRestart)},e.prototype.checkForUpdate=function(){this.ipcRenderer.send(Po.IpcEvents.autoUpdater.checkForUpdate)},e.prototype.registerEvents=function(){var e=this;this.ipcRenderer.on(Po.IpcEvents.autoUpdater.updateAvailable,function(n,t){e.writeUpdateState(Po.IpcEvents.autoUpdater.updateAvailable,t)}),this.ipcRenderer.on(Po.IpcEvents.autoUpdater.updateNotAvailable,function(){e.writeUpdateState(Po.IpcEvents.autoUpdater.updateNotAvailable),e.dispachStoreAction(new Lc.d("No update available"))}),this.ipcRenderer.on(Po.IpcEvents.autoUpdater.autoUpdateError,function(n,t){e.writeUpdateState(Po.IpcEvents.autoUpdater.autoUpdateError,t),e.dispachStoreAction(new Sl.e(t))}),this.ipcRenderer.on(Po.IpcEvents.autoUpdater.autoUpdateDownloadProgress,function(n,t){e.writeUpdateState(Po.IpcEvents.autoUpdater.autoUpdateDownloadProgress,t)}),this.ipcRenderer.on(Po.IpcEvents.autoUpdater.autoUpdateDownloaded,function(n,t){e.writeUpdateState(Po.IpcEvents.autoUpdater.autoUpdateDownloaded,t),e.dispachStoreAction(new Sl.d)}),this.ipcRenderer.on(Po.IpcEvents.autoUpdater.checkForUpdateNotAvailable,function(n,t){e.writeUpdateState(Po.IpcEvents.autoUpdater.checkForUpdateNotAvailable,t),e.dispachStoreAction(new Lc.b(t))})},e.prototype.dispachStoreAction=function(e){var n=this;this.zone.run(function(){return n.store.dispatch(e)})},e.prototype.writeUpdateState=function(e,n){console.log({event:e,arg:n})},e.ctorParameters=function(){return[{type:xl.m},{type:wl.NgZone},{type:Dr.a}]},e}(),jr=function(){function e(){}return e.prototype.error=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];console.error(e)},e.prototype.debug=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];console.log(e)},e.prototype.silly=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];console.log(e)},e.prototype.info=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];console.info(e)},e}(),Fr=function(){function e(e,n,t,l){this.store=e,this.zone=n,this.ipcRenderer=t,this.logService=l,this.registerEvents(),this.logService.info("[AppRendererService] init success ")}return e.prototype.getAppStartInfo=function(){this.logService.info("[AppRendererService] getAppStartInfo"),this.ipcRenderer.send(Po.IpcEvents.app.getAppStartInfo)},e.prototype.exit=function(){this.logService.info("[AppRendererService] exit"),this.ipcRenderer.send(Po.IpcEvents.app.exit)},e.prototype.openUrl=function(e){this.logService.info("[AppRendererService] open url: "+e),this.ipcRenderer.send(Po.IpcEvents.app.openUrl,e)},e.prototype.registerEvents=function(){var e=this;this.ipcRenderer.on(Po.IpcEvents.app.getAppStartInfoReply,function(n,t){e.dispachStoreAction(new Yi.h(t))}),this.ipcRenderer.on("__ELECTRON_LOG_RENDERER__",function(n,t,l){e.zone.run(function(){return e.store.dispatch(new Yi.e({level:t,message:l}))})})},e.prototype.dispachStoreAction=function(e){var n=this;this.logService.info("[AppRendererService] dispatch action",e),this.zone.run(function(){return n.store.dispatch(e)})},e.ctorParameters=function(){return[{type:xl.m},{type:wl.NgZone},{type:Dr.a},{type:Po.LogService}]},e}(),Vr=(t("RpuY"),t("xpf9"),this&&this.__decorate||function(e,n,t,l){var i,o=arguments.length,a=o<3?n:null===l?l=Object.getOwnPropertyDescriptor(n,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,l);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(n,t,a):i(n,t))||a);return o>3&&a&&Object.defineProperty(n,t,a),a}),Br=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)},$r=function(){function e(e,n,t,l,i,o){var a=this;this.actions$=e,this.notifierService=n,this.appUpdateRendererService=t,this.appRendererService=l,this.logService=i,this.store=o,this.appStart$=this.actions$.ofType(Yi.a.APP_BOOTSRAPPED).startWith(new Yi.b).do(function(){a.logService.info("Renderer appStart effect start"),a.appUpdateRendererService.sendAppStarted(),a.appRendererService.getAppStartInfo(),a.logService.info("Renderer appStart effect end")}),this.showNotification$=this.actions$.ofType(Yi.a.APP_SHOW_NOTIFICATION).map(function(e){return e.payload}).do(function(e){e.type!==Po.NotificationType.Undoable&&a.notifierService.notify(e.type,e.message)}),this.processStartInfo$=this.actions$.ofType(Yi.a.APP_PROCESS_START_INFO).map(function(e){return e.payload}).mergeMap(function(e){return a.logService.debug("[AppEffect][processStartInfo] payload:",e),[new Yi.c(e.commandLineArgs),new $l.b({connected:e.deviceConnected,hasPermission:e.hasPermission})]}),this.undoLastNotification$=this.actions$.ofType(Yi.a.UNDO_LAST).map(function(e){return e.payload}).mergeMap(function(e){return[e,new Yi.d]}),this.openUrlInNewWindow$=this.actions$.ofType(Yi.a.OPEN_URL_IN_NEW_WINDOW).withLatestFrom(this.store.select(Pl.o)).do(function(e){var n=e[0],t=e[1],l=n.payload;t?a.appRendererService.openUrl(l):window.open(l,"_blank")})}return e.ctorParameters=function(){return[{type:Lr.a},{type:sr.b},{type:Kr},{type:Fr},{type:Po.LogService},{type:xl.m}]},Vr([Object(Lr.b)(),Br("design:type","function"==typeof(n=void 0!==vi.Observable&&vi.Observable)&&n||Object)],e.prototype,"appStart$",void 0),Vr([Object(Lr.b)({dispatch:!1}),Br("design:type","function"==typeof(t=void 0!==vi.Observable&&vi.Observable)&&t||Object)],e.prototype,"showNotification$",void 0),Vr([Object(Lr.b)(),Br("design:type","function"==typeof(l=void 0!==vi.Observable&&vi.Observable)&&l||Object)],e.prototype,"processStartInfo$",void 0),Vr([Object(Lr.b)(),Br("design:type","function"==typeof(i=void 0!==vi.Observable&&vi.Observable)&&i||Object)],e.prototype,"undoLastNotification$",void 0),Vr([Object(Lr.b)({dispatch:!1}),Br("design:type",Object)],e.prototype,"openUrlInNewWindow$",void 0),e;var n,t,l,i}(),Hr=this&&this.__decorate||function(e,n,t,l){var i,o=arguments.length,a=o<3?n:null===l?l=Object.getOwnPropertyDescriptor(n,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,l);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(n,t,a):i(n,t))||a);return o>3&&a&&Object.defineProperty(n,t,a),a},Gr=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)},Wr=function(){function e(e,n,t){var l=this;this.actions$=e,this.appUpdateRendererService=n,this.logService=t,this.appStart$=this.actions$.ofType(Sl.a.UPDATE_APP).first().do(function(){l.appUpdateRendererService.sendUpdateAndRestartApp()}),this.checkForUpdate$=this.actions$.ofType(Lc.a.CHECK_FOR_UPDATE_NOW).do(function(){l.logService.debug("[AppUpdateEffect] call checkForUpdate"),l.appUpdateRendererService.checkForUpdate()}),this.handleError$=this.actions$.ofType(Sl.a.UPDATE_ERROR).map(function(e){return e.payload}).map(function(e){return new Yi.i({type:Po.NotificationType.Error,message:e})})}return e.ctorParameters=function(){return[{type:Lr.a},{type:Kr},{type:Po.LogService}]},Hr([Object(Lr.b)({dispatch:!1}),Gr("design:type","function"==typeof(n=void 0!==vi.Observable&&vi.Observable)&&n||Object)],e.prototype,"appStart$",void 0),Hr([Object(Lr.b)({dispatch:!1}),Gr("design:type","function"==typeof(t=void 0!==vi.Observable&&vi.Observable)&&t||Object)],e.prototype,"checkForUpdate$",void 0),Hr([Object(Lr.b)(),Gr("design:type","function"==typeof(l=void 0!==vi.Observable&&vi.Observable)&&l||Object)],e.prototype,"handleError$",void 0),e;var n,t,l}(),zr=t("CV5A"),qr=t("ZRqk"),Yr=t("FhXQ"),Jr=(t("Uvlg"),t("9jMf"),t("asHm"),this&&this.__decorate||function(e,n,t,l){var i,o=arguments.length,a=o<3?n:null===l?l=Object.getOwnPropertyDescriptor(n,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,l);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(n,t,a):i(n,t))||a);return o>3&&a&&Object.defineProperty(n,t,a),a}),Xr=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)},Qr=function(){function e(e,n,l){var i=this;this.actions$=e,this.router=n,this.store=l,this.loadKeymaps$=this.actions$.ofType(lo.a.LOAD_KEYMAPS).startWith(lo.a.loadKeymaps()).switchMap(function(){var e=t("QCMk"),n=e.keys().map(e).map(function(e){return(new Po.Keymap).fromJsonObject(e)});return vi.Observable.of(lo.a.loadKeymapsSuccess(n))}),this.addOrDuplicate$=this.actions$.ofType(lo.a.ADD,lo.a.DUPLICATE).withLatestFrom(this.store.let(Object(ua.c)()).pairwise(),function(e,n){return n}).do(function(e){var n=e[0],t=e[1],l=Object(io.a)(n,t);i.router.navigate(["/keymap",l.abbreviation])}),this.remove$=this.actions$.ofType(lo.a.REMOVE).withLatestFrom(this.store).map(function(e){return e[1].userConfiguration.keymaps}).do(function(e){if(0===e.length)i.router.navigate(["/keymap/add"]);else{var n=e.find(function(e){return e.isDefault});i.router.navigate(["/keymap",n.abbreviation])}}),this.editAbbr$=this.actions$.ofType(lo.a.EDIT_ABBR).withLatestFrom(this.store).do(function(e){for(var n=e[0],t=e[1],l=0,o=t.userConfiguration.keymaps;l<o.length;l++){var a=o[l];if(a.name===n.payload.name&&a.abbreviation===n.payload.newAbbr)return void i.router.navigate(["/keymap",n.payload.newAbbr])}})}return e.ctorParameters=function(){return[{type:Lr.a},{type:Zl.m},{type:xl.m}]},Jr([Object(Lr.b)(),Xr("design:type","function"==typeof(n=void 0!==vi.Observable&&vi.Observable)&&n||Object)],e.prototype,"loadKeymaps$",void 0),Jr([Object(Lr.b)({dispatch:!1}),Xr("design:type",Object)],e.prototype,"addOrDuplicate$",void 0),Jr([Object(Lr.b)({dispatch:!1}),Xr("design:type",Object)],e.prototype,"remove$",void 0),Jr([Object(Lr.b)({dispatch:!1}),Xr("design:type",Object)],e.prototype,"editAbbr$",void 0),e;var n}(),Zr=this&&this.__decorate||function(e,n,t,l){var i,o=arguments.length,a=o<3?n:null===l?l=Object.getOwnPropertyDescriptor(n,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,l);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(n,t,a):i(n,t))||a);return o>3&&a&&Object.defineProperty(n,t,a),a},es=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)},ns=function(){function e(e,n,t){var l=this;this.actions$=e,this.router=n,this.store=t,this.remove$=this.actions$.ofType(lo.b.REMOVE).do(function(e){return l.store.dispatch(lo.a.checkMacro(e.payload))}).withLatestFrom(this.store).map(function(e){e[0];return e[1].userConfiguration.macros}).do(function(e){0===e.length?l.router.navigate(["/macro"]):l.router.navigate(["/macro",e[0].id])}),this.addOrDuplicate$=this.actions$.ofType(lo.b.ADD,lo.b.DUPLICATE).withLatestFrom(this.store.let(Object(ua.e)()).pairwise(),function(e,n){return[e,n[0],n[1]]}).do(function(e){var n=e[0],t=e[1],i=e[2],o=Object(io.a)(t,i),a=["/macro",o.id];n.type===lo.b.ADD&&a.push("new"),l.router.navigate(a)})}return e.ctorParameters=function(){return[{type:Lr.a},{type:Zl.m},{type:xl.m}]},Zr([Object(Lr.b)({dispatch:!1}),es("design:type",Object)],e.prototype,"remove$",void 0),Zr([Object(Lr.b)({dispatch:!1}),es("design:type",Object)],e.prototype,"addOrDuplicate$",void 0),e}(),ts=this&&this.__decorate||function(e,n,t,l){var i,o=arguments.length,a=o<3?n:null===l?l=Object.getOwnPropertyDescriptor(n,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,l);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(n,t,a):i(n,t))||a);return o>3&&a&&Object.defineProperty(n,t,a),a},ls=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)},is=function(){function e(e,n,t){var l=this;this.actions$=e,this.dataStorageRepository=n,this.store=t,this.loadUserConfig$=this.actions$.ofType(Lc.a.LOAD_AUTO_UPDATE_SETTINGS).startWith(new Lc.e).switchMap(function(){var e=l.dataStorageRepository.getAutoUpdateSettings();return e||(e=Rr.c),vi.Observable.of(new Lc.f(e))}),this.saveAutoUpdateConfig$=this.actions$.ofType(Lc.a.TOGGLE_CHECK_FOR_UPDATE_ON_STARTUP,Lc.a.TOGGLE_PRE_RELEASE_FLAG).withLatestFrom(this.store.select(Pl.f)).map(function(e){var n=(e[0],e[1]);return l.dataStorageRepository.saveAutoUpdateSettings(n),new Lc.g}),this.sendNotification$=this.actions$.ofType(Lc.a.CHECK_FOR_UPDATE_FAILED,Lc.a.CHECK_FOR_UPDATE_SUCCESS).map(Lr.d).map(function(e){return new Yi.i({type:Po.NotificationType.Info,message:e})})}return e.ctorParameters=function(){return[{type:Lr.a},{type:zr.a},{type:xl.m}]},ts([Object(Lr.b)(),ls("design:type","function"==typeof(n=void 0!==vi.Observable&&vi.Observable)&&n||Object)],e.prototype,"loadUserConfig$",void 0),ts([Object(Lr.b)(),ls("design:type","function"==typeof(t=void 0!==vi.Observable&&vi.Observable)&&t||Object)],e.prototype,"saveAutoUpdateConfig$",void 0),ts([Object(Lr.b)(),ls("design:type","function"==typeof(l=void 0!==vi.Observable&&vi.Observable)&&l||Object)],e.prototype,"sendNotification$",void 0),e;var n,t,l}(),os=(t("hbO+"),t("BdLl"),this&&this.__decorate||function(e,n,t,l){var i,o=arguments.length,a=o<3?n:null===l?l=Object.getOwnPropertyDescriptor(n,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,l);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(n,t,a):i(n,t))||a);return o>3&&a&&Object.defineProperty(n,t,a),a}),as=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)},us=function(){function e(e,n,t,l,i,o){var a=this;this.actions$=e,this.router=n,this.deviceRendererService=t,this.store=l,this.dataStorageRepository=i,this.defaultUserConfigurationService=o,this.deviceConnectionStateChange$=this.actions$.ofType($l.a.CONNECTION_STATE_CHANGED).map(function(e){return e.payload}).do(function(e){e.hasPermission?e.connected?a.router.navigate(["/"]):a.router.navigate(["/detection"]):a.router.navigate(["/privilege"])}).switchMap(function(e){return e.connected&&e.hasPermission?vi.Observable.of(new ii.c):vi.Observable.empty()}),this.setPrivilegeOnLinux$=this.actions$.ofType($l.a.SET_PRIVILEGE_ON_LINUX).do(function(){a.deviceRendererService.setPrivilegeOnLinux()}),this.setPrivilegeOnLinuxReply$=this.actions$.ofType($l.a.SET_PRIVILEGE_ON_LINUX_REPLY).map(function(e){return e.payload}).mergeMap(function(e){return e.success?[new $l.b({connected:!0,hasPermission:!0})]:[new Yi.i({type:Po.NotificationType.Error,message:e.error.message||e.error})]}),this.saveConfiguration$=this.actions$.ofType($l.a.SAVE_CONFIGURATION).withLatestFrom(this.store).map(function(e){e[0];return e[1].userConfiguration}).do(function(e){setTimeout(function(){return a.sendUserConfigToKeyboard(e)},100)}).switchMap(function(){return vi.Observable.empty()}),this.saveConfigurationReply$=this.actions$.ofType($l.a.SAVE_CONFIGURATION_REPLY).map(function(e){return e.payload}).mergeMap(function(e){return e.success?[new $l.h]:[new Yi.i({type:Po.NotificationType.Error,message:e.error.message}),new $l.i]}),this.autoHideSaveToKeyboardButton$=this.actions$.ofType($l.a.SAVE_TO_KEYBOARD_SUCCESS).switchMap(function(){return vi.Observable.timer(1e3).switchMap(function(){return vi.Observable.of(new $l.c)})}),this.resetMouseSpeedSettings$=this.actions$.ofType($l.a.RESET_MOUSE_SPEED_SETTINGS).switchMap(function(){var e=a.defaultUserConfigurationService.getDefault(),n={};return["mouseMoveInitialSpeed","mouseMoveAcceleration","mouseMoveDeceleratedSpeed","mouseMoveBaseSpeed","mouseMoveAcceleratedSpeed","mouseScrollInitialSpeed","mouseScrollAcceleration","mouseScrollDeceleratedSpeed","mouseScrollBaseSpeed","mouseScrollAcceleratedSpeed"].forEach(function(t){n[t]=e[t]}),vi.Observable.of(new ii.e(n))}),this.resetUserConfiguration$=this.actions$.ofType($l.a.RESET_USER_CONFIGURATION).switchMap(function(){var e=a.defaultUserConfigurationService.getDefault();return vi.Observable.of(new ii.e(e))}),this.saveResetUserConfigurationToDevice$=this.actions$.ofType(ii.a.LOAD_RESET_USER_CONFIGURATION,ii.a.APPLY_USER_CONFIGURATION_FROM_FILE).map(function(e){return e.payload}).switchMap(function(e){return a.dataStorageRepository.saveConfig(e),vi.Observable.of(new $l.f)}),this.updateFirmware$=this.actions$.ofType($l.a.UPDATE_FIRMWARE).do(function(){return a.deviceRendererService.updateFirmware()}),this.updateFirmwareWith$=this.actions$.ofType($l.a.UPDATE_FIRMWARE_WITH).map(function(e){return e.payload}).do(function(e){return a.deviceRendererService.updateFirmware(e)}),this.updateFirmwareReply$=this.actions$.ofType($l.a.UPDATE_FIRMWARE_REPLY).map(function(e){return e.payload}).switchMap(function(e){return e.success?vi.Observable.of(new $l.q):vi.Observable.of(new $l.n(e.error))}),this.updateFirmwareOkButton$=this.actions$.ofType($l.a.UPDATE_FIRMWARE_OK_BUTTON).do(function(){return a.deviceRendererService.startConnectionPoller()})}return e.prototype.sendUserConfigToKeyboard=function(e){var n=new Po.UhkBuffer;e.toBinary(n),this.deviceRendererService.saveUserConfiguration(n.getBufferContent())},e.ctorParameters=function(){return[{type:Lr.a},{type:Zl.m},{type:qr.a},{type:xl.m},{type:zr.a},{type:Oi.a}]},os([Object(Lr.b)(),as("design:type","function"==typeof(n=void 0!==vi.Observable&&vi.Observable)&&n||Object)],e.prototype,"deviceConnectionStateChange$",void 0),os([Object(Lr.b)({dispatch:!1}),as("design:type","function"==typeof(t=void 0!==vi.Observable&&vi.Observable)&&t||Object)],e.prototype,"setPrivilegeOnLinux$",void 0),os([Object(Lr.b)(),as("design:type","function"==typeof(l=void 0!==vi.Observable&&vi.Observable)&&l||Object)],e.prototype,"setPrivilegeOnLinuxReply$",void 0),os([Object(Lr.b)({dispatch:!1}),as("design:type","function"==typeof(i=void 0!==vi.Observable&&vi.Observable)&&i||Object)],e.prototype,"saveConfiguration$",void 0),os([Object(Lr.b)(),as("design:type","function"==typeof(o=void 0!==vi.Observable&&vi.Observable)&&o||Object)],e.prototype,"saveConfigurationReply$",void 0),os([Object(Lr.b)(),as("design:type","function"==typeof(a=void 0!==vi.Observable&&vi.Observable)&&a||Object)],e.prototype,"autoHideSaveToKeyboardButton$",void 0),os([Object(Lr.b)(),as("design:type","function"==typeof(u=void 0!==vi.Observable&&vi.Observable)&&u||Object)],e.prototype,"resetMouseSpeedSettings$",void 0),os([Object(Lr.b)(),as("design:type","function"==typeof(c=void 0!==vi.Observable&&vi.Observable)&&c||Object)],e.prototype,"resetUserConfiguration$",void 0),os([Object(Lr.b)(),as("design:type",Object)],e.prototype,"saveResetUserConfigurationToDevice$",void 0),os([Object(Lr.b)({dispatch:!1}),as("design:type",Object)],e.prototype,"updateFirmware$",void 0),os([Object(Lr.b)({dispatch:!1}),as("design:type",Object)],e.prototype,"updateFirmwareWith$",void 0),os([Object(Lr.b)(),as("design:type",Object)],e.prototype,"updateFirmwareReply$",void 0),os([Object(Lr.b)({dispatch:!1}),as("design:type",Object)],e.prototype,"updateFirmwareOkButton$",void 0),e;var n,t,l,i,o,a,u,c}(),cs=wl["\u0275cmf"](Ol,[Rl],function(e){return wl["\u0275mod"]([wl["\u0275mpd"](512,wl.ComponentFactoryResolver,wl["\u0275CodegenComponentFactoryResolver"],[[8,[Il.a,Vl,zl,Xl,ti,pi,Ii,Di,Wi,lc,cc,yc,Sc,Uc,$c,qc,yr]],[3,wl.ComponentFactoryResolver],wl.NgModuleRef]),wl["\u0275mpd"](5120,wl.LOCALE_ID,wl["\u0275m"],[[3,wl.LOCALE_ID]]),wl["\u0275mpd"](4608,Ul.m,Ul.l,[wl.LOCALE_ID]),wl["\u0275mpd"](5120,wl.APP_ID,wl["\u0275f"],[]),wl["\u0275mpd"](5120,wl.IterableDiffers,wl["\u0275k"],[]),wl["\u0275mpd"](5120,wl.KeyValueDiffers,wl["\u0275l"],[]),wl["\u0275mpd"](4608,ri.c,ri.t,[Ul.d]),wl["\u0275mpd"](6144,wl.Sanitizer,null,[ri.c]),wl["\u0275mpd"](4608,ri.f,ri.g,[]),wl["\u0275mpd"](5120,ri.d,function(e,n,t,l){return[new ri.l(e),new ri.p(n),new ri.o(t,l)]},[Ul.d,Ul.d,Ul.d,ri.f]),wl["\u0275mpd"](4608,ri.e,ri.e,[ri.d,wl.NgZone]),wl["\u0275mpd"](135680,ri.n,ri.n,[Ul.d]),wl["\u0275mpd"](4608,ri.m,ri.m,[ri.e,ri.n]),wl["\u0275mpd"](5120,fr.a,mr.d,[]),wl["\u0275mpd"](5120,fr.c,mr.e,[]),wl["\u0275mpd"](4608,fr.b,mr.c,[fr.a,fr.c]),wl["\u0275mpd"](5120,wl.RendererFactory2,mr.f,[ri.m,fr.b,wl.NgZone]),wl["\u0275mpd"](6144,ri.q,null,[ri.n]),wl["\u0275mpd"](4608,wl.Testability,wl.Testability,[wl.NgZone]),wl["\u0275mpd"](4608,ri.h,ri.h,[Ul.d]),wl["\u0275mpd"](4608,ri.j,ri.j,[Ul.d]),wl["\u0275mpd"](4608,kr.b,mr.b,[wl.RendererFactory2,ri.b]),wl["\u0275mpd"](4608,Ci["\u0275i"],Ci["\u0275i"],[]),wl["\u0275mpd"](4608,Ac.DragulaService,Ac.DragulaService,[]),wl["\u0275mpd"](4608,sr.k,sr.k,[]),wl["\u0275mpd"](5120,Zl.a,Zl.A,[Zl.m]),wl["\u0275mpd"](4608,Zl.f,Zl.f,[]),wl["\u0275mpd"](6144,Zl.h,null,[Zl.f]),wl["\u0275mpd"](135680,Zl.r,Zl.r,[Zl.m,wl.NgModuleFactoryLoader,wl.Compiler,wl.Injector,Zl.h]),wl["\u0275mpd"](4608,Zl.g,Zl.g,[]),wl["\u0275mpd"](5120,Zl.j,Zl.D,[Zl.B]),wl["\u0275mpd"](5120,wl.APP_BOOTSTRAP_LISTENER,function(e){return[e]},[Zl.j]),wl["\u0275mpd"](5120,ui.a,hr.c,[hr.b]),wl["\u0275mpd"](4608,ci.a,ci.a,[]),wl["\u0275mpd"](4608,Ma,Ma,[]),wl["\u0275mpd"](4608,Ro,Ro,[]),wl["\u0275mpd"](4608,gr,gr,[xl.m,Zl.m]),wl["\u0275mpd"](4608,br,br,[xl.m,Zl.m]),wl["\u0275mpd"](4608,aa,aa,[]),wl["\u0275mpd"](4608,vr,vr,[xl.m,Zl.m]),wl["\u0275mpd"](4608,Ar,Ar,[xl.m,Zl.m]),wl["\u0275mpd"](4608,Tr,Tr,[xl.m,Zl.m]),wl["\u0275mpd"](4608,Mr,Mr,[xl.m,Zl.m]),wl["\u0275mpd"](4608,Cr,Cr,[xl.m,Zl.m]),wl["\u0275mpd"](4608,wr,wr,[xl.m,Zl.m]),wl["\u0275mpd"](135680,xl.k,xl.k,[xl.a,xl.i,xl.j,xl.d]),wl["\u0275mpd"](5120,_r.c,_r.d,[_r.k,_r.i]),wl["\u0275mpd"](512,Ul.c,Ul.c,[]),wl["\u0275mpd"](1024,wl.ErrorHandler,ri.r,[]),wl["\u0275mpd"](1024,wl.NgProbeToken,function(){return[Zl.w()]},[]),wl["\u0275mpd"](512,Zl.B,Zl.B,[wl.Injector]),wl["\u0275mpd"](1024,wl.APP_INITIALIZER,function(e,n,t){return[ri.s(e,n),Zl.C(t)]},[[2,ri.i],[2,wl.NgProbeToken],Zl.B]),wl["\u0275mpd"](512,wl.ApplicationInitStatus,wl.ApplicationInitStatus,[[2,wl.APP_INITIALIZER]]),wl["\u0275mpd"](131584,wl["\u0275e"],wl["\u0275e"],[wl.NgZone,wl["\u0275Console"],wl.Injector,wl.ErrorHandler,wl.ComponentFactoryResolver,wl.ApplicationInitStatus]),wl["\u0275mpd"](2048,wl.ApplicationRef,null,[wl["\u0275e"]]),wl["\u0275mpd"](512,wl.ApplicationModule,wl.ApplicationModule,[wl.ApplicationRef]),wl["\u0275mpd"](512,ri.a,ri.a,[[3,ri.a]]),wl["\u0275mpd"](512,mr.a,mr.a,[]),wl["\u0275mpd"](512,Ci["\u0275ba"],Ci["\u0275ba"],[]),wl["\u0275mpd"](512,Ci.FormsModule,Ci.FormsModule,[]),wl["\u0275mpd"](512,Or.DragulaModule,Or.DragulaModule,[]),wl["\u0275mpd"](1024,Zl.v,Zl.y,[[3,Zl.m]]),wl["\u0275mpd"](512,Zl.u,Zl.c,[]),wl["\u0275mpd"](512,Zl.b,Zl.b,[]),wl["\u0275mpd"](256,Zl.i,{useHash:!0},[]),wl["\u0275mpd"](1024,Ul.h,Zl.x,[Ul.s,[2,Ul.a],Zl.i]),wl["\u0275mpd"](512,Ul.g,Ul.g,[Ul.h]),wl["\u0275mpd"](512,wl.Compiler,wl.Compiler,[]),wl["\u0275mpd"](512,wl.NgModuleFactoryLoader,wl.SystemJsNgModuleLoader,[wl.Compiler,[2,wl.SystemJsNgModuleLoaderConfig]]),wl["\u0275mpd"](1024,Zl.k,function(){return[[{path:"detection",component:Kl,canActivate:[vr,Mr]},{path:"privilege",component:Hl,canActivate:[Tr]},{path:"loading",component:ql,canActivate:[wr]},{path:"",component:Ql,canActivate:[Ar,Cr],children:[{path:"device",children:[{path:"",redirectTo:"configuration",pathMatch:"full"},{path:"configuration",component:oi},{path:"mouse-speed",component:Si},{path:"led-brightness",component:Ui},{path:"firmware",component:ji}]},{path:"",redirectTo:"keymap",pathMatch:"full"},{path:"keymap",component:ec,canActivate:[gr]},{path:"keymap/add",component:oc},{path:"keymap/:abbr",component:ec},{path:"macro",component:sc,canActivate:[br]},{path:"macro/:id",component:_c},{path:"macro/:id/:empty",component:_c},{path:"add-on/:name",component:Rc},{path:"settings",component:Dc},{path:"about",component:Gc}]}]]},[]),wl["\u0275mpd"](1024,Zl.m,Zl.z,[wl.ApplicationRef,Zl.u,Zl.b,Ul.g,wl.Injector,wl.NgModuleFactoryLoader,wl.Compiler,Zl.k,Zl.i,[2,Zl.t],[2,Zl.l]]),wl["\u0275mpd"](512,Zl.p,Zl.p,[[2,Zl.v],[2,Zl.m]]),wl["\u0275mpd"](512,xr.Select2Module,xr.Select2Module,[]),wl["\u0275mpd"](512,Mi.NouisliderModule,Mi.NouisliderModule,[]),wl["\u0275mpd"](512,sr.a,sr.a,[]),wl["\u0275mpd"](512,hr.a,hr.a,[]),wl["\u0275mpd"](512,Sr,Sr,[]),wl["\u0275mpd"](131584,xl.a,xl.a,[]),wl["\u0275mpd"](131584,_r.h,_r.h,[]),wl["\u0275mpd"](2048,xl.h,null,[_r.h]),wl["\u0275mpd"](256,xl.r,void 0,[]),wl["\u0275mpd"](1024,xl.d,xl.v,[xl.r]),wl["\u0275mpd"](256,xl.q,{userConfiguration:ua.g,presetKeymaps:Pr.a,autoUpdateSettings:Rr.d,app:Ir.g,appUpdate:Er.b,device:Ur.e},[]),wl["\u0275mpd"](2048,xl.t,null,[xl.q]),wl["\u0275mpd"](1024,xl.c,xl.u,[wl.Injector,xl.q,xl.t]),wl["\u0275mpd"](256,xl.s,xl.w,[]),wl["\u0275mpd"](256,xl.e,[],[]),wl["\u0275mpd"](1024,xl.f,xl.y,[xl.s,xl.e]),wl["\u0275mpd"](131584,xl.g,xl.g,[xl.h,xl.d,xl.c,xl.f]),wl["\u0275mpd"](2048,xl.i,null,[xl.g]),wl["\u0275mpd"](131584,xl.j,xl.j,[]),wl["\u0275mpd"](512,xl.o,xl.o,[xl.a,xl.i,xl.j]),wl["\u0275mpd"](1024,_r.k,_r.e,[]),wl["\u0275mpd"](512,_r.l,_r.l,[_r.k]),wl["\u0275mpd"](256,_r.j,{maxAge:10},[]),wl["\u0275mpd"](1024,_r.i,_r.g,[_r.j]),wl["\u0275mpd"](512,_r.a,_r.a,[_r.h,xl.a,xl.i,_r.l,xl.j,xl.d,_r.i]),wl["\u0275mpd"](1024,xl.l,_r.f,[_r.a]),wl["\u0275mpd"](512,xl.m,xl.m,[xl.l,xl.a,xl.g]),wl["\u0275mpd"](512,Nr.c,Nr.a,[]),wl["\u0275mpd"](512,Nr.d,Nr.d,[xl.m,Zl.m,Nr.c]),wl["\u0275mpd"](512,_r.b,_r.b,[]),wl["\u0275mpd"](1024,Lr.h,Lr.f,[]),wl["\u0275mpd"](512,Lr.j,Lr.j,[Lr.h]),wl["\u0275mpd"](512,Lr.c,Lr.c,[Lr.j]),wl["\u0275mpd"](131584,Lr.k,Lr.k,[Lr.c,xl.m]),wl["\u0275mpd"](512,Lr.a,Lr.a,[xl.j]),wl["\u0275mpd"](512,sr.h,sr.h,[]),wl["\u0275mpd"](256,sr.c,{behaviour:{autoHide:!1},position:{horizontal:{position:"right",distance:12},vertical:{position:"top",distance:12,gap:10}}},[]),wl["\u0275mpd"](1024,sr.d,sr.e,[sr.c]),wl["\u0275mpd"](512,sr.b,sr.b,[sr.h,sr.d]),wl["\u0275mpd"](512,Dr.a,Dr.a,[]),wl["\u0275mpd"](512,Kr,Kr,[xl.m,wl.NgZone,Dr.a]),wl["\u0275mpd"](512,jr,jr,[]),wl["\u0275mpd"](512,Fr,Fr,[xl.m,wl.NgZone,Dr.a,jr]),wl["\u0275mpd"](512,$r,$r,[Lr.a,sr.b,Kr,Fr,jr,xl.m]),wl["\u0275mpd"](512,Wr,Wr,[Lr.a,Kr,jr]),wl["\u0275mpd"](512,zr.a,zr.a,[]),wl["\u0275mpd"](512,Oi.a,Oi.a,[]),wl["\u0275mpd"](512,qr.a,qr.a,[xl.m,wl.NgZone,Dr.a,jr]),wl["\u0275mpd"](512,Yr.a,Yr.a,[Lr.a,zr.a,xl.m,Oi.a,qr.a,jr,Zl.m]),wl["\u0275mpd"](512,Qr,Qr,[Lr.a,Zl.m,xl.m]),wl["\u0275mpd"](512,ns,ns,[Lr.a,Zl.m,xl.m]),wl["\u0275mpd"](512,is,is,[Lr.a,zr.a,xl.m]),wl["\u0275mpd"](512,us,us,[Lr.a,Zl.m,qr.a,xl.m,zr.a,Oi.a]),wl["\u0275mpd"](1024,Lr.g,Lr.e,[$r,Wr,Yr.a,Qr,ns,is,us]),wl["\u0275mpd"](512,Lr.i,Lr.i,[Lr.c,Lr.k,Lr.g,[2,xl.n]]),wl["\u0275mpd"](512,Ol,Ol,[]),wl["\u0275mpd"](256,hr.b,{confirmButtonType:"danger"},[])])});_l.a.production&&Object(wl.enableProdMode)(),Object(ri.k)().bootstrapModuleFactory(cs)},YojH:function(e,n,t){"use strict";t.d(n,"a",function(){return l});var l;!function(e){e[e.ANSI=0]="ANSI",e[e.ISO=1]="ISO"}(l||(l={}))},ZRqk:function(e,n,t){"use strict";t.d(n,"a",function(){return r});var l=t("/oeL"),i=t("ADVA"),o=t("UCSK"),a=(t.n(o),t("lCMY")),u=t("CyOy"),c=t("pSU5"),r=function(){function e(e,n,t,l){this.store=e,this.zone=n,this.ipcRenderer=t,this.logService=l,this.registerEvents(),this.logService.info("[DeviceRendererService] init success ")}return e.prototype.setPrivilegeOnLinux=function(){this.ipcRenderer.send(o.IpcEvents.device.setPrivilegeOnLinux)},e.prototype.saveUserConfiguration=function(e){this.ipcRenderer.send(o.IpcEvents.device.saveUserConfiguration,JSON.stringify(e))},e.prototype.loadConfigurationFromKeyboard=function(){this.ipcRenderer.send(o.IpcEvents.device.loadConfigurations)},e.prototype.updateFirmware=function(e){e?this.ipcRenderer.send(o.IpcEvents.device.updateFirmware,JSON.stringify(e)):this.ipcRenderer.send(o.IpcEvents.device.updateFirmware)},e.prototype.startConnectionPoller=function(){this.ipcRenderer.send(o.IpcEvents.device.startConnectionPoller)},e.prototype.registerEvents=function(){var e=this;this.ipcRenderer.on(o.IpcEvents.device.deviceConnectionStateChanged,function(n,t){e.dispachStoreAction(new u.b(t))}),this.ipcRenderer.on(o.IpcEvents.device.setPrivilegeOnLinuxReply,function(n,t){e.dispachStoreAction(new u.k(t))}),this.ipcRenderer.on(o.IpcEvents.device.saveUserConfigurationReply,function(n,t){e.dispachStoreAction(new u.g(t))}),this.ipcRenderer.on(o.IpcEvents.device.loadConfigurationReply,function(n,t){e.dispachStoreAction(new c.d(JSON.parse(t)))}),this.ipcRenderer.on(o.IpcEvents.device.updateFirmwareReply,function(n,t){e.dispachStoreAction(new u.p(t))})},e.prototype.dispachStoreAction=function(e){var n=this;this.logService.info("[DeviceRendererService] dispatch action",JSON.stringify(e)),this.zone.run(function(){return n.store.dispatch(e)})},e.ctorParameters=function(){return[{type:i.m},{type:l.NgZone},{type:a.a},{type:o.LogService}]},e}()},cLwE:function(e,n,t){"use strict";var l=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}(),i=this&&this.__decorate||function(e,n,t,l){var i,o=arguments.length,a=o<3?n:null===l?l=Object.getOwnPropertyDescriptor(n,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,l);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(n,t,a):i(n,t))||a);return o>3&&a&&Object.defineProperty(n,t,a),a},o=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)};Object.defineProperty(n,"__esModule",{value:!0});var a=t("eEV6"),u=t("gx91"),c=function(e){function n(n){var t=e.call(this)||this;return n?(t.x=n.x,t.y=n.y,t):t}return l(n,e),n.prototype.fromJsonObject=function(e){return this.assertMacroActionType(e),this.x=e.x,this.y=e.y,this},n.prototype.fromBinary=function(e){return this.readAndAssertMacroActionId(e),this.x=e.readInt16(),this.y=e.readInt16(),this},n.prototype.toJsonObject=function(){return{macroActionType:u.macroActionType.MoveMouseMacroAction,x:this.x,y:this.y}},n.prototype.toBinary=function(e){e.writeUInt8(u.MacroActionId.MoveMouseMacroAction),e.writeInt16(this.x),e.writeInt16(this.y)},n.prototype.toString=function(){return'<MoveMouseMacroAction pos="('+this.x+","+this.y+')">'},n.prototype.getName=function(){return"MoveMouseMacroAction"},i([a.assertInt16,o("design:type",Number)],n.prototype,"x",void 0),i([a.assertInt16,o("design:type",Number)],n.prototype,"y",void 0),n}(u.MacroAction);n.MoveMouseMacroAction=c},cVaD:function(e,n,t){"use strict";function l(e,n){switch(void 0===e&&(e=a),n.type){case i.a.TOGGLE_CHECK_FOR_UPDATE_ON_STARTUP:return Object.assign({},e,{checkForUpdateOnStartUp:n.payload});case i.a.TOGGLE_PRE_RELEASE_FLAG:return Object.assign({},e,{usePreReleaseUpdate:n.payload});case i.a.LOAD_AUTO_UPDATE_SETTINGS_SUCCESS:return Object.assign({},n.payload);case i.a.CHECK_FOR_UPDATE_NOW:return Object.assign({},e,{checkingForUpdate:!0});case o.a.UPDATE_ERROR:case i.a.CHECK_FOR_UPDATE_SUCCESS:case i.a.CHECK_FOR_UPDATE_FAILED:return Object.assign({},e,{checkingForUpdate:!1});default:return e}}t.d(n,"c",function(){return a}),n.d=l,t.d(n,"b",function(){return u}),t.d(n,"a",function(){return c});var i=t("jo2S"),o=t("vBds"),a={checkForUpdateOnStartUp:!1,usePreReleaseUpdate:!1,checkingForUpdate:!1},u=function(e){return{checkForUpdateOnStartUp:e.checkForUpdateOnStartUp,usePreReleaseUpdate:e.usePreReleaseUpdate}},c=function(e){return e.checkingForUpdate}},"ct+e":function(e,n,t){"use strict";(function(e,t){Object.defineProperty(n,"__esModule",{value:!0});var l=function(){function n(){this._enableDump=!1,this.offset=0,this.bytesToBacktrack=0,this.buffer=new e(n.eepromSize),this.buffer.fill(0)}return n.simpleElementWriter=function(e,n){n.toBinary(e)},n.fromArray=function(e){if(e.length<1)return null;for(var t=new n,l=0,i=e;l<i.length;l++){var o=i[l];o>0&&!0,t.writeUInt8(o)}return t.offset=0,t},n.prototype.readInt8=function(){var e=this.buffer.readInt8(this.offset);return this.dump("i8("+e+")"),this.bytesToBacktrack=1,this.offset+=this.bytesToBacktrack,e},n.prototype.writeInt8=function(e){this.dump("i8("+e+")"),this.buffer.writeInt8(e,this.offset),this.offset+=1},n.prototype.readUInt8=function(){var e=this.buffer.readUInt8(this.offset);return this.dump("u8("+e+")"),this.bytesToBacktrack=1,this.offset+=this.bytesToBacktrack,e},n.prototype.writeUInt8=function(e){this.dump("u8("+e+")"),this.buffer.writeUInt8(e,this.offset),this.offset+=1},n.prototype.readInt16=function(){var e=this.buffer.readInt16LE(this.offset);return this.dump("i16("+e+")"),this.bytesToBacktrack=2,this.offset+=this.bytesToBacktrack,e},n.prototype.writeInt16=function(e){this.dump("i16("+e+")"),this.buffer.writeInt16LE(e,this.offset),this.offset+=2},n.prototype.readUInt16=function(){var e=this.buffer.readUInt16LE(this.offset);return this.dump("u16("+e+")"),this.bytesToBacktrack=2,this.offset+=this.bytesToBacktrack,e},n.prototype.writeUInt16=function(e){this.dump("u16("+e+")"),this.buffer.writeUInt16LE(e,this.offset),this.offset+=2},n.prototype.readInt32=function(){var e=this.buffer.readInt32LE(this.offset);return this.dump("i32("+e+")"),this.bytesToBacktrack=4,this.offset+=this.bytesToBacktrack,e},n.prototype.writeInt32=function(e){this.dump("i32("+e+")"),this.buffer.writeInt32LE(e,this.offset),this.offset+=4},n.prototype.readUInt32=function(){var e=this.buffer.readUInt32LE(this.offset);return this.dump("u32("+e+")"),this.bytesToBacktrack=4,this.offset+=this.bytesToBacktrack,e},n.prototype.writeUInt32=function(e){this.dump("u32("+e+")"),this.buffer.writeUInt32LE(e,this.offset),this.offset+=4},n.prototype.readCompactLength=function(){var e=this.readUInt8();return e===n.longCompactLengthPrefix&&(e=this.readUInt16()),e},n.prototype.writeCompactLength=function(e){e>=n.longCompactLengthPrefix?(this.writeUInt8(n.longCompactLengthPrefix),this.writeUInt16(e)):this.writeUInt8(e)},n.prototype.readString=function(){var e=this.readCompactLength(),t=this.buffer.toString(n.stringEncoding,this.offset,this.offset+e);return this.dump(n.stringEncoding+"("+t+")"),this.bytesToBacktrack=e,this.offset+=e,t},n.prototype.writeString=function(t){var l=e.byteLength(t,n.stringEncoding);if(l>n.maxCompactLength)throw"Cannot serialize string: "+l+" bytes is larger\n than the maximum allowed length of "+n.maxCompactLength+" bytes";this.writeCompactLength(l),this.dump(n.stringEncoding+"("+t+")"),this.buffer.write(t,this.offset,l,n.stringEncoding),this.offset+=l},n.prototype.readBoolean=function(){return 0!==this.readUInt8()},n.prototype.writeBoolean=function(e){this.writeUInt8(e?1:0)},n.prototype.readArray=function(e){for(var n=[],t=this.readCompactLength(),l=0;l<t;++l)n.push(e(this,l));return n},n.prototype.writeArray=function(e,t){void 0===t&&(t=n.simpleElementWriter);var l=e.length;this.writeCompactLength(l);for(var i=0;i<l;++i)t(this,e[i],i)},n.prototype.backtrack=function(){this.offset-=this.bytesToBacktrack,this.bytesToBacktrack=0},n.prototype.getBufferContent=function(){return this.buffer.slice(0,this.offset)},Object.defineProperty(n.prototype,"enableDump",{get:function(){return this._enableDump},set:function(e){e&&(n.isFirstElementToDump=!0),this._enableDump=e},enumerable:!0,configurable:!0}),n.prototype.dump=function(e){this.enableDump&&(n.isFirstElementToDump||t.stdout.write(", "),t.stdout.write(e),n.isFirstElementToDump&&(n.isFirstElementToDump=!1))},n.eepromSize=32768,n.maxCompactLength=65535,n.longCompactLengthPrefix=255,n.stringEncoding="utf8",n.isFirstElementToDump=!1,n}();n.UhkBuffer=l}).call(n,t("SxsA").Buffer,t("1WNV"))},"dB+R":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e.Default="default",e.Success="success",e.Error="error",e.Warning="warning",e.Info="info",e.Undoable="undoable"}(n.NotificationType||(n.NotificationType={}))},eEV6:function(e,n,t){"use strict";function l(e,n){return s(e,n,0,255)}function i(e,n){return s(e,n,-128,127)}function o(e,n){return s(e,n,0,65535)}function a(e,n){return s(e,n,-32768,32767)}function u(e,n){return s(e,n,0,4294967295)}function c(e,n){return s(e,n,-2147483648,2147483647)}function r(e,n){return o(e,n)}function s(e,n,t,l){function i(){return this[a]}function o(i){if(this[a]!==i){if(i<t||i>l)throw e.constructor.name+"."+n+": Integer "+i+" is outside the valid ["+t+", "+l+"] interval";this[a]=i}}var a="_"+n;Object.defineProperty(e,n,{get:i,set:o,enumerable:!0,configurable:!0})}function d(e){return function(n,t){function l(){return this[o]}function i(l){if(this[o]!==l){if(void 0===e[l])throw n.constructor.name+"."+t+": "+l+" is not enum";this[o]=l}}var o="_"+t;Object.defineProperty(n,t,{get:l,set:i,enumerable:!0,configurable:!0})}}Object.defineProperty(n,"__esModule",{value:!0}),n.assertUInt8=l,n.assertInt8=i,n.assertUInt16=o,n.assertInt16=a,n.assertUInt32=u,n.assertInt32=c,n.assertCompactLength=r,n.assertEnum=d},eJmH:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.leftCtrl=1]="leftCtrl",e[e.leftShift=2]="leftShift",e[e.leftAlt=4]="leftAlt",e[e.leftGui=8]="leftGui",e[e.rightCtrl=16]="rightCtrl",e[e.rightShift=32]="rightShift",e[e.rightAlt=64]="rightAlt",e[e.rightGui=128]="rightGui"}(n.KeyModifiers||(n.KeyModifiers={}))},f8fa:function(e,n,t){"use strict";function l(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}Object.defineProperty(n,"__esModule",{value:!0}),l(t("3J1y")),l(t("iihV")),l(t("Rrx5")),l(t("3vVa"))},fXLr:function(e,n,t){"use strict";function l(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}Object.defineProperty(n,"__esModule",{value:!0}),l(t("D4Ey")),l(t("lITF")),l(t("gx91")),l(t("cLwE")),l(t("s4X1")),l(t("kNso")),l(t("muqS"));var i=t("kPGt");n.MacroActionHelper=i.Helper},frA5:function(e,n,t){"use strict";function l(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}Object.defineProperty(n,"__esModule",{value:!0}),l(t("CTXo")),l(t("fXLr")),l(t("BQhH")),l(t("eJmH")),l(t("PsbM")),l(t("7wSx")),l(t("EEQ5")),l(t("6bQ0")),l(t("B8XE")),l(t("SGBA")),l(t("7qCM"))},gFIY:function(e,n){function t(e){return Promise.resolve().then(function(){throw new Error("Cannot find module '"+e+"'.")})}t.keys=function(){return[]},t.resolve=t,e.exports=t,t.id="gFIY"},gx91:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l;!function(e){e[e.KeyMacroAction=0]="KeyMacroAction",e[e.LastKeyMacroAction=63]="LastKeyMacroAction",e[e.MouseButtonMacroAction=64]="MouseButtonMacroAction",e[e.LastMouseButtonMacroAction=66]="LastMouseButtonMacroAction",e[e.MoveMouseMacroAction=67]="MoveMouseMacroAction",e[e.ScrollMouseMacroAction=68]="ScrollMouseMacroAction",e[e.DelayMacroAction=69]="DelayMacroAction",e[e.TextMacroAction=70]="TextMacroAction"}(l=n.MacroActionId||(n.MacroActionId={}));!function(e){e[e.tap=0]="tap",e[e.press=1]="press",e[e.release=2]="release"}(n.MacroKeySubAction||(n.MacroKeySubAction={}));!function(e){e[e.click=0]="click",e[e.hold=1]="hold",e[e.release=2]="release"}(n.MacroMouseSubAction||(n.MacroMouseSubAction={})),n.macroActionType={KeyMacroAction:"key",MouseButtonMacroAction:"mouseButton",MoveMouseMacroAction:"moveMouse",ScrollMouseMacroAction:"scrollMouse",DelayMacroAction:"delay",TextMacroAction:"text"};var i=function(){function e(){}return e.prototype.assertMacroActionType=function(e){var t=this.getName(),l=n.macroActionType[t];if(e.macroActionType!==l)throw"Invalid "+t+".macroActionType: "+e.macroActionType},e.prototype.readAndAssertMacroActionId=function(e){var n=this.getName(),t=e.readUInt8(),i=l[n];if(i===l.KeyMacroAction){if(t<l.KeyMacroAction||t>l.LastKeyMacroAction)throw"Invalid "+n+" first byte: "+t}else if(i===l.MouseButtonMacroAction){if(t<l.MouseButtonMacroAction||t>l.LastMouseButtonMacroAction)throw"Invalid "+n+" first byte: "+t}else if(t!==i)throw"Invalid "+n+" first byte: "+t;return t},e}();n.MacroAction=i},h0vf:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=function(){function e(){}return e}();n.IpcResponse=l},iihV:function(e,n,t){"use strict";function l(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}Object.defineProperty(n,"__esModule",{value:!0}),l(t("dB+R")),l(t("h0vf"))},jo2S:function(e,n,t){"use strict";t.d(n,"a",function(){return o}),t.d(n,"h",function(){return a}),t.d(n,"c",function(){return u}),t.d(n,"d",function(){return c}),t.d(n,"b",function(){return r}),t.d(n,"i",function(){return s}),t.d(n,"e",function(){return d}),t.d(n,"f",function(){return p}),t.d(n,"g",function(){return y});var l=t("UCSK"),i=(t.n(l),"[app-update-config] "),o={TOGGLE_CHECK_FOR_UPDATE_ON_STARTUP:Object(l.type)(i+"Check for update on startup"),CHECK_FOR_UPDATE_NOW:Object(l.type)(i+"Check for update now"),CHECK_FOR_UPDATE_SUCCESS:Object(l.type)(i+"Check for update success"),CHECK_FOR_UPDATE_FAILED:Object(l.type)(i+"Check for update faild"),TOGGLE_PRE_RELEASE_FLAG:Object(l.type)(i+"Toggle pre release update flag"),LOAD_AUTO_UPDATE_SETTINGS:Object(l.type)(i+"Load auto update settings"),LOAD_AUTO_UPDATE_SETTINGS_SUCCESS:Object(l.type)(i+"Load auto update settings success"),SAVE_AUTO_UPDATE_SETTINGS_SUCCESS:Object(l.type)(i+"Save auto update settings success")},a=function(){function e(e){this.payload=e,this.type=o.TOGGLE_CHECK_FOR_UPDATE_ON_STARTUP}return e}(),u=function(){function e(){this.type=o.CHECK_FOR_UPDATE_NOW}return e}(),c=function(){function e(e){this.payload=e,this.type=o.CHECK_FOR_UPDATE_SUCCESS}return e}(),r=function(){function e(e){this.payload=e,this.type=o.CHECK_FOR_UPDATE_FAILED}return e}(),s=function(){function e(e){this.payload=e,this.type=o.TOGGLE_PRE_RELEASE_FLAG}return e}(),d=function(){function e(){this.type=o.LOAD_AUTO_UPDATE_SETTINGS_SUCCESS}return e}(),p=function(){function e(e){this.payload=e,this.type=o.LOAD_AUTO_UPDATE_SETTINGS_SUCCESS}return e}(),y=function(){function e(){this.type=o.SAVE_AUTO_UPDATE_SETTINGS_SUCCESS}return e}()},kGlP:function(e,n,t){"use strict";function l(e,n){switch(void 0===e&&(e=p),n.type){case a.a.APP_STARTED:return d({},e,{started:!0});case a.a.APPLY_COMMAND_LINE_ARGS:return d({},e,{showAddonMenu:n.payload.addons});case a.a.APP_SHOW_NOTIFICATION:var t=n;return t.payload.type!==o.NotificationType.Undoable?e:d({},e,{undoableNotification:t.payload,navigationCountAfterNotification:0});case i.b:var l=d({},e);return l.navigationCountAfterNotification++,l.navigationCountAfterNotification>1&&(l.undoableNotification=null),l;case a.a.UNDO_LAST_SUCCESS:case a.a.DISMISS_UNDO_NOTIFICATION:return d({},e,{undoableNotification:null});case u.a.LOAD_USER_CONFIG_SUCCESS:case u.a.SAVE_USER_CONFIG_SUCCESS:return d({},e,{prevUserConfig:n.payload,configLoading:!1});case u.a.LOAD_CONFIG_FROM_DEVICE:case u.a.LOAD_USER_CONFIG:return d({},e,{configLoading:!0});case a.a.LOAD_HARDWARE_CONFIGURATION_SUCCESS:return d({},e,{hardwareConfig:n.payload});case c.a.CONNECTION_STATE_CHANGED:return!0===n.payload?e:d({},e,{hardwareConfig:null});default:return e}}n.g=l,t.d(n,"i",function(){return y}),t.d(n,"f",function(){return f}),t.d(n,"e",function(){return m}),t.d(n,"h",function(){return k}),t.d(n,"c",function(){return h}),t.d(n,"d",function(){return g}),t.d(n,"a",function(){return b}),t.d(n,"b",function(){return v});var i=t("2soc"),o=t("UCSK"),a=(t.n(o),t("5II9")),u=t("pSU5"),c=t("CyOy"),r=t("YojH"),s=t("n4Nn"),d=this&&this.__assign||Object.assign||function(e){for(var n,t=1,l=arguments.length;t<l;t++){n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},p={started:!1,showAddonMenu:!1,navigationCountAfterNotification:0,runningInElectron:Object(o.runInElectron)(),configLoading:!0,agentVersionInfo:Object(s.c)()},y=function(e){return e.showAddonMenu},f=function(e){return e.undoableNotification},m=function(e){return e.prevUserConfig},k=function(e){return e.runningInElectron},h=function(e){return e.hardwareConfig},g=function(e){return e.hardwareConfig&&e.hardwareConfig.isIso?r.a.ISO:r.a.ANSI},b=function(e){return!e.runningInElectron||!!e.hardwareConfig},v=function(e){return e.agentVersionInfo||{}}},kNso:function(e,n,t){"use strict";var l=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}(),i=this&&this.__decorate||function(e,n,t,l){var i,o=arguments.length,a=o<3?n:null===l?l=Object.getOwnPropertyDescriptor(n,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,l);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(n,t,a):i(n,t))||a);return o>3&&a&&Object.defineProperty(n,t,a),a},o=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)};Object.defineProperty(n,"__esModule",{value:!0});var a=t("eEV6"),u=t("gx91"),c=function(e){function n(n){var t=e.call(this)||this;return n?(t.x=n.x,t.y=n.y,t):t}return l(n,e),n.prototype.fromJsonObject=function(e){return this.assertMacroActionType(e),this.x=e.x,this.y=e.y,this},n.prototype.fromBinary=function(e){return this.readAndAssertMacroActionId(e),this.x=e.readInt16(),this.y=e.readInt16(),this},n.prototype.toJsonObject=function(){return{macroActionType:u.macroActionType.ScrollMouseMacroAction,x:this.x,y:this.y}},n.prototype.toBinary=function(e){e.writeUInt8(u.MacroActionId.ScrollMouseMacroAction),e.writeInt16(this.x),e.writeInt16(this.y)},n.prototype.toString=function(){return'<ScrollMouseMacroAction pos="('+this.x+","+this.y+')">'},n.prototype.getName=function(){return"ScrollMouseMacroAction"},i([a.assertInt16,o("design:type",Number)],n.prototype,"x",void 0),i([a.assertInt16,o("design:type",Number)],n.prototype,"y",void 0),n}(u.MacroAction);n.ScrollMouseMacroAction=c},kPGt:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=t("ct+e"),i=t("gx91"),o=t("lITF"),a=t("s4X1"),u=t("cLwE"),c=t("kNso"),r=t("D4Ey"),s=t("muqS"),d=function(){function e(){}return e.createMacroAction=function(n){return n instanceof i.MacroAction?e.fromMacroAction(n):n instanceof l.UhkBuffer?e.fromUhkBuffer(n):e.fromJSONObject(n)},e.fromUhkBuffer=function(e){var n=e.readUInt8();if(e.backtrack(),n>=i.MacroActionId.KeyMacroAction&&n<=i.MacroActionId.LastKeyMacroAction)return(new o.KeyMacroAction).fromBinary(e);if(n>=i.MacroActionId.MouseButtonMacroAction&&n<=i.MacroActionId.LastMouseButtonMacroAction)return(new a.MouseButtonMacroAction).fromBinary(e);switch(n){case i.MacroActionId.MoveMouseMacroAction:return(new u.MoveMouseMacroAction).fromBinary(e);case i.MacroActionId.ScrollMouseMacroAction:return(new c.ScrollMouseMacroAction).fromBinary(e);case i.MacroActionId.DelayMacroAction:return(new r.DelayMacroAction).fromBinary(e);case i.MacroActionId.TextMacroAction:return(new s.TextMacroAction).fromBinary(e);default:throw"Invalid MacroAction first byte: "+n}},e.fromMacroAction=function(e){var n;return e instanceof o.KeyMacroAction?n=new o.KeyMacroAction(e):e instanceof a.MouseButtonMacroAction?n=new a.MouseButtonMacroAction(e):e instanceof u.MoveMouseMacroAction?n=new u.MoveMouseMacroAction(e):e instanceof c.ScrollMouseMacroAction?n=new c.ScrollMouseMacroAction(e):e instanceof r.DelayMacroAction?n=new r.DelayMacroAction(e):e instanceof s.TextMacroAction&&(n=new s.TextMacroAction(e)),n},e.fromJSONObject=function(e){switch(e.macroActionType){case i.macroActionType.KeyMacroAction:return(new o.KeyMacroAction).fromJsonObject(e);case i.macroActionType.MouseButtonMacroAction:return(new a.MouseButtonMacroAction).fromJsonObject(e);case i.macroActionType.MoveMouseMacroAction:return(new u.MoveMouseMacroAction).fromJsonObject(e);case i.macroActionType.ScrollMouseMacroAction:return(new c.ScrollMouseMacroAction).fromJsonObject(e);case i.macroActionType.DelayMacroAction:return(new r.DelayMacroAction).fromJsonObject(e);case i.macroActionType.TextMacroAction:return(new s.TextMacroAction).fromJsonObject(e);default:throw'Invalid MacroAction.macroActionType: "'+e.macroActionType+'"'}},e}();n.Helper=d},lCMY:function(e,n,t){"use strict";t.d(n,"a",function(){return l});var l=function(){function e(){}return e.prototype.send=function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t]},e.prototype.on=function(e,n){return this},e}()},lITF:function(e,n,t){"use strict";var l=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}(),i=this&&this.__decorate||function(e,n,t,l){var i,o=arguments.length,a=o<3?n:null===l?l=Object.getOwnPropertyDescriptor(n,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,l);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(n,t,a):i(n,t))||a);return o>3&&a&&Object.defineProperty(n,t,a),a},o=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)};Object.defineProperty(n,"__esModule",{value:!0});var a=t("eEV6"),u=t("gx91"),c=t("CTXo"),r=function(e){function n(n){var t=e.call(this)||this;return n?(t.action=n.action,t.type=n.type,t.scancode=n.scancode,t.modifierMask=n.modifierMask,t):t}return l(n,e),n.prototype.fromJsonObject=function(e){return this.assertMacroActionType(e),this.action=u.MacroKeySubAction[e.action],"media"===e.type?this.type=e.scancode<256?c.KeystrokeType.shortMedia:c.KeystrokeType.longMedia:this.type=c.KeystrokeType[e.type],this.scancode=e.scancode,this.modifierMask=e.modifierMask,this},n.prototype.fromBinary=function(e){var n=this.readAndAssertMacroActionId(e),t=n-u.MacroActionId.KeyMacroAction;return this.action=3&t,t>>=2,this.type=3&t,t>>=2,2&t&&(this.scancode=e.readUInt8()),1&t&&(this.modifierMask=e.readUInt8()),this},n.prototype.toJsonObject=function(){var e={macroActionType:u.macroActionType.KeyMacroAction,action:u.MacroKeySubAction[this.action]};return this.hasScancode()&&(this.type===c.KeystrokeType.shortMedia||this.type===c.KeystrokeType.longMedia?e.type="media":e.type=c.KeystrokeType[this.type],e.scancode=this.scancode),this.hasModifiers()&&(e.modifierMask=this.modifierMask),e},n.prototype.toBinary=function(e){var n=0;n|=this.action,n|=this.type<<2,n|=(this.hasScancode()?2:0)+(this.hasModifiers()?1:0)<<4;var t=u.MacroActionId.KeyMacroAction+n;e.writeUInt8(t),this.hasScancode()&&e.writeUInt8(this.scancode),this.hasModifiers()&&e.writeUInt8(this.modifierMask)},n.prototype.toString=function(){return'<KeyMacroAction action="'+this.action+'" scancode="'+this.scancode+'" modifierMask="'+this.modifierMask+'">'},n.prototype.isModifierActive=function(e){return(this.modifierMask&e)>0},n.prototype.hasScancode=function(){return!!this.scancode},n.prototype.hasModifiers=function(){return!!this.modifierMask},n.prototype.isPressAction=function(){return this.action===u.MacroKeySubAction.press},n.prototype.isTapAction=function(){return this.action===u.MacroKeySubAction.tap},n.prototype.isReleaseAction=function(){return this.action===u.MacroKeySubAction.release},n.prototype.getName=function(){return"KeyMacroAction"},i([a.assertEnum(u.MacroKeySubAction),o("design:type",Number)],n.prototype,"action",void 0),i([a.assertEnum(c.KeystrokeType),o("design:type",Number)],n.prototype,"type",void 0),i([a.assertUInt8,o("design:type",Number)],n.prototype,"scancode",void 0),i([a.assertUInt8,o("design:type",Number)],n.prototype,"modifierMask",void 0),n}(u.MacroAction);n.KeyMacroAction=r},muqS:function(e,n,t){"use strict";var l=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}();Object.defineProperty(n,"__esModule",{value:!0});var i=t("gx91"),o=function(e){function n(n){var t=e.call(this)||this;return n?(t.text=n.text,t):t}return l(n,e),n.prototype.fromJsonObject=function(e){return this.assertMacroActionType(e),this.text=e.text,this},n.prototype.fromBinary=function(e){return this.readAndAssertMacroActionId(e),this.text=e.readString(),this},n.prototype.toJsonObject=function(){return{macroActionType:i.macroActionType.TextMacroAction,text:this.text}},n.prototype.toBinary=function(e){e.writeUInt8(i.MacroActionId.TextMacroAction),e.writeString(this.text)},n.prototype.toString=function(){return'<TextMacroAction text="'+this.text+'">'},n.prototype.getName=function(){return"TextMacroAction"},n}(i.MacroAction);n.TextMacroAction=o},n4Nn:function(e,n,t){"use strict";function l(e,n){for(var t=0;t<e.length;++t)if(e[t]!==n[t])return n[t];return n[n.length-1]}function i(e,n){if(!n)return 0;a||(a=document.createElement("canvas"));var t=a.getContext("2d");return t.font=e.font,t.measureText(n).width}function o(e){return e&&e.trim().length>0}var a,u,c=function(){var e=t("MByn");return{version:e.version,firmwareVersion:e.firmwareVersion,deviceProtocolVersion:e.deviceProtocolVersion,moduleProtocolVersion:e.moduleProtocolVersion,userConfigVersion:e.userConfigVersion,hardwareConfigVersion:e.hardwareConfigVersion}},r=function(){return u||(u=c()),u};t.d(n,"a",function(){return l}),t.d(n,"b",function(){return i}),t.d(n,"d",function(){return o}),t.d(n,"c",function(){return r})},nAMu:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=t("CTXo");!function(e){function n(e){for(var n=0,t=e;n<t.length;n++)for(var i=t[n],o=0,a=i.layers;o<a.length;o++)for(var u=a[o],c=0,r=u.modules;c<r.length;c++)for(var s=r[c],d=0;d<s.keyActions.length;++d){var p=s.keyActions[d];p instanceof l.UnresolvedSwitchKeymapAction&&(s.keyActions[d]=p.resolve(e))}}e.resolveSwitchKeymapActions=n}(n.ConfigSerializer||(n.ConfigSerializer={}))},oX9Y:function(e,n){e.exports={svg:{$:{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"744.094488189",height:"1052.36220472"},rect:[{$:{id:"key-1",x:"18.116484",y:"678.38116",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-2",x:"84.457497",y:"678.38116",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-3",x:"150.79849",y:"678.38116",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-4",x:"217.14047",y:"678.38116",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-5",x:"283.48148",y:"678.38116",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-6",x:"349.82248",y:"678.38116",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-7",x:"416.16348",y:"678.38116",ry:"3.5107117",width:"96.728996",height:"63.014999",style:"fill:#333"}},{$:{id:"key-8",x:"51.829502",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-9",x:"118.17051",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-10",x:"184.51248",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-11",x:"250.85349",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-12",x:"317.19449",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-13",x:"383.53549",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-14",x:"449.87747",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-15",x:"-14.511499",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-16",x:"67.828499",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-17",x:"133.81949",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-18",x:"199.81052",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-19",x:"265.80252",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-20",x:"331.79349",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-21",x:"397.78452",y:"811.41412",ry:"3.5107117",width:"115.108",height:"63.014999",style:"fill:#333"}},{$:{id:"key-22",x:"1.8374995",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-23",x:"34.921108",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-24",x:"101.15734",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-25",x:"167.39355",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-26",x:"233.62976",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-27",x:"299.86551",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-28",x:"366.20651",y:"877.93018",ry:"3.5107117",width:"146.686",height:"63.014999",style:"fill:#333"}},{$:{id:"key-30",x:"1.2074946",y:"944.44714",ry:"3.5107117",width:"115.108",height:"63.014999",style:"fill:#333"}},{$:{id:"key-31",x:"1.2074946",y:"1011.1872",ry:"3.6962967",width:"115.108",height:"41.174999",style:"fill:#333"}},{$:{id:"key-32",x:"118.76652",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-33",x:"201.24649",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-34",x:"283.72647",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-35",x:"366.20651",y:"944.44714",ry:"3.5107117",width:"146.686",height:"63.014999",style:"fill:#333"}}],path:[{$:{d:"M 516.38706,680.32407 C 516.38706,677.38911 514.00888,675.01093 511.07392,675.01093 L 19.888327,675.01093 C 18.909867,675.01093 18.116667,674.21746 18.116667,673.23866 L 18.116667,651.55868 18.116667,651.55194 C 18.116667,650.57349 18.909867,649.78029 19.888327,649.78029 L 125.68888,649.78029 C 127.81809,649.73639 128.89871,648.55406 129.17114,646.84101 132.26186,628.99452 135.45421,611.20795 138.49949,593.93731 139.53551,589.17354 143.88942,585.96932 148.65533,586.72553 281.11656,609.26905 403.66743,628.75963 532.4454,649.98632 536.92364,650.86249 539.55062,654.40739 539.84604,658.70669 L 539.84604,1043.5236 C 539.65045,1048.4273 535.86191,1052.3324 531.008,1052.3616 L 120.53833,1052.3616 C 119.55987,1052.3616 118.76667,1051.5684 118.76667,1050.5899 L 118.76667,1050.5832 118.76667,1012.9583 C 118.76667,1011.9795 119.55987,1011.1861 120.53833,1011.1861 L 511.07392,1011.1861 C 514.00888,1011.1861 516.38706,1008.8079 516.38706,1005.8729 Z",style:"fill:#333"}}]}}},p5Ee:function(e,n,t){"use strict";t.d(n,"a",function(){return l});var l={production:!0}},pSU5:function(e,n,t){"use strict";t.d(n,"a",function(){return o}),t.d(n,"c",function(){return a}),t.d(n,"d",function(){return u}),t.d(n,"f",function(){return c}),t.d(n,"k",function(){return r}),t.d(n,"j",function(){return s}),t.d(n,"i",function(){return d}),t.d(n,"e",function(){return p}),t.d(n,"h",function(){return y}),t.d(n,"l",function(){return f}),t.d(n,"g",function(){return m}),t.d(n,"b",function(){return k});var l=t("UCSK"),i=(t.n(l),"[user-config] "),o={LOAD_USER_CONFIG:Object(l.type)(i+"Load User Config"),LOAD_CONFIG_FROM_DEVICE:Object(l.type)(i+"Load User Config from Device"),LOAD_CONFIG_FROM_DEVICE_REPLY:Object(l.type)(i+"Load User Config from Device reply"),LOAD_USER_CONFIG_SUCCESS:Object(l.type)(i+"Load User Config Success"),SAVE_USER_CONFIG_SUCCESS:Object(l.type)(i+"Save User Config Success"),SAVE_USER_CONFIG_IN_JSON_FILE:Object(l.type)(i+"Save User Config in JSON file"),SAVE_USER_CONFIG_IN_BIN_FILE:Object(l.type)(i+"Save User Config in binary file"),LOAD_RESET_USER_CONFIGURATION:Object(l.type)(i+"Load reset user configuration"),RENAME_USER_CONFIGURATION:Object(l.type)(i+"Rename user configuration"),SET_USER_CONFIGURATION_VALUE:Object(l.type)(i+"Set user configuration value"),LOAD_USER_CONFIGURATION_FROM_FILE:Object(l.type)(i+"Load user configuration from file"),APPLY_USER_CONFIGURATION_FROM_FILE:Object(l.type)(i+"Apply user configuration from file")},a=(function(){function e(){this.type=o.LOAD_USER_CONFIG}}(),function(){function e(){this.type=o.LOAD_CONFIG_FROM_DEVICE}return e}()),u=function(){function e(e){this.payload=e,this.type=o.LOAD_CONFIG_FROM_DEVICE_REPLY}return e}(),c=function(){function e(e){this.payload=e,this.type=o.LOAD_USER_CONFIG_SUCCESS}return e}(),r=function(){function e(e){this.payload=e,this.type=o.SAVE_USER_CONFIG_SUCCESS}return e}(),s=function(){function e(){this.type=o.SAVE_USER_CONFIG_IN_JSON_FILE}return e}(),d=function(){function e(){this.type=o.SAVE_USER_CONFIG_IN_BIN_FILE}return e}(),p=function(){function e(e){this.payload=e,this.type=o.LOAD_RESET_USER_CONFIGURATION}return e}(),y=function(){function e(e){this.payload=e,this.type=o.RENAME_USER_CONFIGURATION}return e}(),f=function(){function e(e){this.payload=e,this.type=o.SET_USER_CONFIGURATION_VALUE}return e}(),m=function(){function e(e){this.payload=e,this.type=o.LOAD_USER_CONFIGURATION_FROM_FILE}return e}(),k=function(){function e(e){this.payload=e,this.type=o.APPLY_USER_CONFIGURATION_FROM_FILE}return e}()},rbX9:function(e,n){e.exports={isDefault:!1,abbreviation:"QTY",name:"QWERTY",description:"Maecenas sem dui, ullamcorper consequat pellentesque ut, mattis at velit. Duis scelerisque eleifend gravida. Aenean at mauris rhoncus, dictum mi vitae, semper eros. Quisque maximus est elit, at condimentum ligula consectetur vel. Aenean lorem felis, molestie id ex suscipit, sagittis mollis dui. Phasellus in felis in libero bibendum ornare. Duis vestibulum dolor sed diam tempor vulputate. Curabitur scelerisque pretium ipsum. Phasellus non orci vestibulum, vehicula lectus sit amet, lacinia velit. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. In diam lacus, cursus at pretium vel, ullamcorper at ante.",layers:[{modules:[{id:0,pointerRole:"move",keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:19},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",toggle:!1},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,pointerRole:"move",keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:21},null,{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"switchLayer",layer:"mouse",toggle:!1},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:9},null,{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",modifierMask:2},null,{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",toggle:!1},null]},{id:2,pointerRole:"scroll",keyActions:[]}]},{modules:[{id:0,pointerRole:"none",keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},null,null,null,null,{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:78},null,null,null,null,{keyActionType:"keystroke",type:"basic",scancode:118},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",toggle:!1},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,pointerRole:"none",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",toggle:!1},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",toggle:!1},null,{keyActionType:"switchLayer",layer:"mod",toggle:!1},null]}]},{modules:[{id:0,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:176},{keyActionType:"keystroke",type:"media",scancode:233},{keyActionType:"keystroke",type:"media",scancode:183},null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",toggle:!1},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,pointerRole:"scroll",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",toggle:!1},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",toggle:!1},null,{keyActionType:"switchLayer",layer:"mod",toggle:!1},null]}]},{modules:[{id:0,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"moveUp"},null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mod",toggle:!1},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",toggle:!1},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"switchLayer",layer:"mod",toggle:!1},null]}]}]}},s4X1:function(e,n,t){"use strict";var l=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}(),i=this&&this.__decorate||function(e,n,t,l){var i,o=arguments.length,a=o<3?n:null===l?l=Object.getOwnPropertyDescriptor(n,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,l);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(n,t,a):i(n,t))||a);return o>3&&a&&Object.defineProperty(n,t,a),a},o=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)};Object.defineProperty(n,"__esModule",{value:!0});var a=t("eEV6"),u=t("gx91");!function(e){e[e.Left=1]="Left",e[e.Middle=2]="Middle",e[e.Right=4]="Right"}(n.MouseButtons||(n.MouseButtons={}));var c=function(e){function n(n){var t=e.call(this)||this;return n?(t.action=n.action,t.mouseButtonsMask=n.mouseButtonsMask,t):t}return l(n,e),n.prototype.fromJsonObject=function(e){return this.assertMacroActionType(e),this.action=u.MacroMouseSubAction[e.action],this.mouseButtonsMask=e.mouseButtonsMask,this},n.prototype.fromBinary=function(e){var n=this.readAndAssertMacroActionId(e);return this.action=n-u.MacroActionId.MouseButtonMacroAction,this.mouseButtonsMask=e.readUInt8(),this},n.prototype.toJsonObject=function(){return{macroActionType:u.macroActionType.MouseButtonMacroAction,action:u.MacroMouseSubAction[this.action],mouseButtonsMask:this.mouseButtonsMask}},n.prototype.toBinary=function(e){e.writeUInt8(u.MacroActionId.MouseButtonMacroAction+this.action),e.writeUInt8(this.mouseButtonsMask)},n.prototype.setMouseButtons=function(e){for(var n=0,t=0;t<e.length;t++)n|=Number(e[t])<<t;this.mouseButtonsMask=n},n.prototype.getMouseButtons=function(){for(var e=[],n=this.mouseButtonsMask;n;n>>>=1)e.push(Boolean(1&n));return e},n.prototype.toString=function(){return'<MouseButtonMacroAction mouseButtonsMask="'+this.mouseButtonsMask+'">'},n.prototype.hasButtons=function(){return 0!==this.mouseButtonsMask},n.prototype.isOnlyClickAction=function(){return this.action===u.MacroMouseSubAction.click},n.prototype.isOnlyHoldAction=function(){return this.action===u.MacroMouseSubAction.hold},n.prototype.isOnlyReleaseAction=function(){return this.action===u.MacroMouseSubAction.release},n.prototype.getName=function(){return"MouseButtonMacroAction"},i([a.assertEnum(u.MacroMouseSubAction),o("design:type",Number)],n.prototype,"action",void 0),i([a.assertUInt8,o("design:type",Number)],n.prototype,"mouseButtonsMask",void 0),n}(u.MacroAction);n.MouseButtonMacroAction=c},v4Uh:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e.transferRegExp=/USB\[T]:/,e.writeRegExp=/USB\[W]:/,e.readRegExp=/USB\[R]: 00/,e.errorRegExp=/(?:(USB\[R]: ([^0]|0[^0])))/}(n.LogRegExps||(n.LogRegExps={}))},vBds:function(e,n,t){"use strict";t.d(n,"a",function(){return o}),t.d(n,"c",function(){return a}),t.d(n,"b",function(){return u}),t.d(n,"d",function(){return c}),t.d(n,"e",function(){return r});var l=t("UCSK"),i=(t.n(l),"[app-update] "),o={UPDATE_AVAILABLE:Object(l.type)(i+"update available"),UPDATE_APP:Object(l.type)(i+"update app"),DO_NOT_UPDATE_APP:Object(l.type)(i+"do not update app"),UPDATE_DOWNLOADED:Object(l.type)(i+"update downloaded"),UPDATING:Object(l.type)(i+"updating"),UPDATE_ERROR:Object(l.type)(i+"error")},a=(function(){function e(){this.type=o.UPDATE_AVAILABLE}}(),function(){function e(){this.type=o.UPDATE_APP}return e}()),u=function(){function e(){this.type=o.DO_NOT_UPDATE_APP}return e}(),c=function(){function e(){this.type=o.UPDATE_DOWNLOADED}return e}(),r=(function(){function e(){this.type=o.UPDATING}}(),function(){function e(e){this.payload=e,this.type=o.UPDATE_ERROR}return e}())},xDyD:function(e,n,t){"use strict";t.d(n,"a",function(){return i});var l=t("UCSK"),i=(t.n(l),function(){function e(){this._defaultConfig=(new l.UserConfiguration).fromJsonObject(t("yEWy"))}return e.prototype.getDefault=function(){return this._defaultConfig},e.ctorParameters=function(){return[]},e}())},yEWy:function(e,n){e.exports={userConfigMajorVersion:4,userConfigMinorVersion:0,userConfigPatchVersion:0,deviceName:"My UHK",doubleTapSwitchLayerTimeout:250,iconsAndLayerTextsBrightness:255,alphanumericSegmentsBrightness:255,keyBacklightBrightness:255,mouseMoveInitialSpeed:5,mouseMoveAcceleration:35,mouseMoveDeceleratedSpeed:10,mouseMoveBaseSpeed:40,mouseMoveAcceleratedSpeed:80,mouseScrollInitialSpeed:20,mouseScrollAcceleration:20,mouseScrollDeceleratedSpeed:20,mouseScrollBaseSpeed:20,mouseScrollAcceleratedSpeed:50,moduleConfigurations:[],keymaps:[{isDefault:!1,abbreviation:"COM",name:"Colemak for Mac",description:"Colemak is based on QWERTY, but it places the most frequent letters under the strongest fingers. This is the Mac version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",toggle:!1},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:9},{keyActionType:"keystroke",type:"basic",scancode:19},null,{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"switchLayer",layer:"mouse",toggle:!1},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:21},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:23},null,{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",toggle:!1},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:118},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",toggle:!1},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:12},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:12},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:1},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:8},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,null,{keyActionType:"switchLayer",layer:"mod",toggle:!1},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,{keyActionType:"switchKeymap",keymapAbbreviation:"TES"},{keyActionType:"keystroke",type:"media",scancode:176},{keyActionType:"keystroke",type:"media",scancode:233},{keyActionType:"keystroke",type:"media",scancode:183},null,{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},null,null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,{keyActionType:"keystroke",type:"system",scancode:131},null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,{keyActionType:"keystroke",type:"system",scancode:130},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:406},null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,{keyActionType:"keystroke",type:"media",scancode:402},{keyActionType:"keystroke",type:"media",scancode:184},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",toggle:!1},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,{keyActionType:"switchKeymap",keymapAbbreviation:"TES"},{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",toggle:!1},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"COL",name:"Colemak for PC",description:"Colemak is based on QWERTY, but it places the most frequent letters under the strongest fingers. This is the PC version.\n",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",toggle:!1},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:9},{keyActionType:"keystroke",type:"basic",scancode:19},null,{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"switchLayer",layer:"mouse",toggle:!1},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:21},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:23},null,{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",toggle:!1},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:118},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",toggle:!1},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:1},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:5},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:4},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:5},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:3},{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:3},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,{keyActionType:"switchLayer",layer:"mod",toggle:!1},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,{keyActionType:"switchKeymap",keymapAbbreviation:"TES"},{keyActionType:"keystroke",type:"media",scancode:176},{keyActionType:"keystroke",type:"media",scancode:233},{keyActionType:"keystroke",type:"media",scancode:183},null,{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},null,null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,{keyActionType:"keystroke",type:"system",scancode:131},null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,{keyActionType:"keystroke",type:"system",scancode:130},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:406},null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,{keyActionType:"keystroke",type:"media",scancode:402},{keyActionType:"keystroke",type:"media",scancode:184},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",toggle:!1},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,{keyActionType:"switchKeymap",keymapAbbreviation:"TES"},{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",toggle:!1},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"DVM",name:"Dvorak for Mac",description:"The Dvorak keyboard layout was designed with the goal of maximizing typing efficiency. This is the Mac version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:21},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:9},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",toggle:!1},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:19},null,{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"switchLayer",layer:"mouse",toggle:!1},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:24},null,{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",toggle:!1},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:118},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",toggle:!1},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:12},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:12},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:1},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:8},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,null,{keyActionType:"switchLayer",layer:"mod",toggle:!1},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,{keyActionType:"switchKeymap",keymapAbbreviation:"TES"},{keyActionType:"keystroke",type:"media",scancode:176},{keyActionType:"keystroke",type:"media",scancode:233},{keyActionType:"keystroke",type:"media",scancode:183},null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,{keyActionType:"keystroke",type:"system",scancode:131},null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,{keyActionType:"keystroke",type:"system",scancode:130},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:406},null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,{keyActionType:"keystroke",type:"media",scancode:402},{keyActionType:"keystroke",type:"media",scancode:184},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",toggle:!1},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},null,{keyActionType:"mouse",mouseAction:"scrollDown"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",toggle:!1},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"DVO",name:"Dvorak for PC",description:"The Dvorak keyboard layout was designed with the goal of maximizing typing efficiency. This is the PC version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:21},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:9},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",toggle:!1},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:19},null,{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"switchLayer",layer:"mouse",toggle:!1},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:24},null,{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",toggle:!1},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:118},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",toggle:!1},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:1},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:5},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:4},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:5},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:3},{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:3},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,{keyActionType:"switchLayer",layer:"mod",toggle:!1},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,{keyActionType:"switchKeymap",keymapAbbreviation:"TES"},{keyActionType:"keystroke",type:"media",scancode:176},{keyActionType:"keystroke",type:"media",scancode:233},{keyActionType:"keystroke",type:"media",scancode:183},null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},null,null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,{keyActionType:"keystroke",type:"system",scancode:131},null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,{keyActionType:"keystroke",type:"system",scancode:130},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:406},null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,{keyActionType:"keystroke",type:"media",scancode:402},{keyActionType:"keystroke",type:"media",scancode:184},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",toggle:!1},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},null,{keyActionType:"mouse",mouseAction:"scrollUp"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",toggle:!1},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"QWM",name:"QWERTY for Mac",description:"QWERTY is the mother of all layouts. This is the Mac version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:19},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",toggle:!1},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:21},null,{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"switchLayer",layer:"mouse",toggle:!1},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:9},null,{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",toggle:!1},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:118},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",toggle:!1},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:12},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:12},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:8},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:1},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:8},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,null,{keyActionType:"switchLayer",layer:"mod",toggle:!1},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,{keyActionType:"switchKeymap",keymapAbbreviation:"TES"},{keyActionType:"keystroke",type:"media",scancode:176},{keyActionType:"keystroke",type:"media",scancode:233},{keyActionType:"keystroke",type:"media",scancode:183},null,{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},null,null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,{keyActionType:"keystroke",type:"system",scancode:131},null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,{keyActionType:"keystroke",type:"system",scancode:130},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},null,{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,{keyActionType:"keystroke",type:"media",scancode:183},null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:406},null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,{keyActionType:"keystroke",type:"media",scancode:402},{keyActionType:"keystroke",type:"media",scancode:184},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",toggle:!1},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",toggle:!1},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!0,abbreviation:"QWR",name:"QWERTY for PC",description:"QWERTY is the mother of all layouts. This is the PC version.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:19},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",toggle:!1},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:21},null,{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"switchLayer",layer:"mouse",toggle:!1},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:9},null,{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",toggle:!1},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:118},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",toggle:!1},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:1},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:5},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:4},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:5},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:3},{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:3},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,{keyActionType:"switchLayer",layer:"mod",toggle:!1},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,{keyActionType:"switchKeymap",keymapAbbreviation:"TES"},{keyActionType:"keystroke",type:"media",scancode:176},{keyActionType:"keystroke",type:"media",scancode:233},{keyActionType:"keystroke",type:"media",scancode:183},null,{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},null,null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,{keyActionType:"keystroke",type:"system",scancode:131},null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,{keyActionType:"keystroke",type:"system",scancode:130},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,{keyActionType:"keystroke",type:"media",scancode:183},null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:406},null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,{keyActionType:"keystroke",type:"media",scancode:402},{keyActionType:"keystroke",type:"media",scancode:184},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",toggle:!1},null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",toggle:!1},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]},{isDefault:!1,abbreviation:"TES",name:"Test",description:"This keymap is only used for factory testing purposes.",layers:[{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:19},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:63},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:64,secondaryRoleAction:"fn"},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:21},null,{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:9},null,{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",modifierMask:2},{keyActionType:"keystroke",type:"basic",scancode:100},{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61,secondaryRoleAction:"fn"},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:62},null]},{id:2,keyActions:[]}]},{modules:[{id:0,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:64},{keyActionType:"keystroke",type:"basic",scancode:65},{keyActionType:"keystroke",type:"basic",scancode:66},{keyActionType:"keystroke",type:"basic",scancode:67},{keyActionType:"keystroke",type:"basic",scancode:68},{keyActionType:"keystroke",type:"basic",scancode:69},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},{keyActionType:"keystroke",type:"basic",scancode:76},{keyActionType:"keystroke",type:"basic",scancode:70},{keyActionType:"keystroke",type:"basic",scancode:71},{keyActionType:"keystroke",type:"basic",scancode:72},{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},{keyActionType:"keystroke",type:"basic",scancode:73},null,null,{keyActionType:"keystroke",type:"basic",scancode:78},{keyActionType:"keystroke",type:"basic",scancode:41},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:118},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:58},{keyActionType:"keystroke",type:"basic",scancode:59},{keyActionType:"keystroke",type:"basic",scancode:60},{keyActionType:"keystroke",type:"basic",scancode:61},{keyActionType:"keystroke",type:"basic",scancode:62},{keyActionType:"keystroke",type:"basic",scancode:63},null,{keyActionType:"keystroke",type:"basic",scancode:41},{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:23,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:1},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:57,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:80,modifierMask:5},{keyActionType:"keystroke",type:"basic",scancode:43,modifierMask:4},{keyActionType:"keystroke",type:"basic",scancode:79,modifierMask:5},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,{keyActionType:"keystroke",type:"basic",scancode:75,modifierMask:3},{keyActionType:"keystroke",type:"basic",scancode:26,modifierMask:1},{keyActionType:"keystroke",type:"basic",scancode:78,modifierMask:3},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:176},{keyActionType:"keystroke",type:"media",scancode:233},{keyActionType:"keystroke",type:"media",scancode:183},null,{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},null,null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,{keyActionType:"keystroke",type:"system",scancode:131},null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,{keyActionType:"keystroke",type:"system",scancode:130},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,{keyActionType:"switchKeymap",keymapAbbreviation:"QWR"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVO"},{keyActionType:"switchKeymap",keymapAbbreviation:"COL"},{keyActionType:"switchKeymap",keymapAbbreviation:"QWM"},{keyActionType:"switchKeymap",keymapAbbreviation:"DVM"},{keyActionType:"switchKeymap",keymapAbbreviation:"COM"},null,null,{keyActionType:"keystroke",type:"media",scancode:183},null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:406},null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,{keyActionType:"keystroke",type:"media",scancode:402},{keyActionType:"keystroke",type:"media",scancode:184},null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,null,null,null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollLeft"},{keyActionType:"mouse",mouseAction:"moveUp"},{keyActionType:"mouse",mouseAction:"scrollRight"},null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"leftClick"},{keyActionType:"mouse",mouseAction:"rightClick"},null,{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},null,{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"mouse",mouseAction:"accelerate"},null]}]}]}],macros:[{isLooped:!0,isPrivate:!0,name:"Go to UHK site in browser",macroActions:[{macroActionType:"key",action:"tap",type:"basic",scancode:15,modifierMask:1},{macroActionType:"text",text:"https://ultimatehackingkeyboard.com"},{macroActionType:"key",action:"tap",type:"basic",scancode:40}]},{isLooped:!1,isPrivate:!0,name:"God mode in Doom",macroActions:[{macroActionType:"text",text:"iddqd"}]},{isLooped:!1,isPrivate:!0,name:"Type Silent Bob's address",macroActions:[{macroActionType:"text",text:"Silent Bob\n711-2880 Nulla St.\nMankato Mississippi 96522\n(257) 563-7401"}]}]}},ycRK:function(e,n,t){"use strict";var l=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n.hasOwnProperty(t)&&(e[t]=n[t])};return function(n,t){function l(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(l.prototype=t.prototype,new l)}}(),i=this&&this.__decorate||function(e,n,t,l){var i,o=arguments.length,a=o<3?n:null===l?l=Object.getOwnPropertyDescriptor(n,t):l;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,n,t,l);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(a=(o<3?i(a):o>3?i(n,t,a):i(n,t))||a);return o>3&&a&&Object.defineProperty(n,t,a),a},o=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)};Object.defineProperty(n,"__esModule",{value:!0});var a,u=t("eEV6"),c=t("EEQ5"),r=t("N4Uw"),s=t("CyG/");!function(e){e[e.scancode=1]="scancode",e[e.modifierMask=2]="modifierMask",e[e.secondaryRoleAction=4]="secondaryRoleAction"}(a=n.KeystrokeActionFlag||(n.KeystrokeActionFlag={}));var d=["LCtrl","LShift","LAlt","LSuper","RCtrl","RShift","RAlt","RSuper"],p=function(e){function n(n){var t=e.call(this)||this;return n?(t.type=n.type,t._scancode=n._scancode,t.modifierMask=n.modifierMask,t.secondaryRoleAction=n.secondaryRoleAction,t):t}return l(n,e),Object.defineProperty(n.prototype,"scancode",{get:function(){return this._scancode},set:function(e){this._scancode=e,this.type!==s.KeystrokeType.shortMedia&&this.type!==s.KeystrokeType.longMedia||(this.type=e<256?s.KeystrokeType.shortMedia:s.KeystrokeType.longMedia)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"type",{get:function(){return this._type},set:function(e){e!==s.KeystrokeType.shortMedia&&e!==s.KeystrokeType.longMedia||(e=this.scancode<256?s.KeystrokeType.shortMedia:s.KeystrokeType.longMedia),this._type=e},enumerable:!0,configurable:!0}),n.prototype.fromJsonObject=function(e){return this.assertKeyActionType(e),"media"===e.type?this.type=e.scancode<256?s.KeystrokeType.shortMedia:s.KeystrokeType.longMedia:this.type=s.KeystrokeType[e.type],this._scancode=e.scancode,this.modifierMask=e.modifierMask,this.secondaryRoleAction=c.SecondaryRoleAction[e.secondaryRoleAction],this},n.prototype.fromBinary=function(e){var n=this.readAndAssertKeyActionId(e),t=n-r.KeyActionId.NoneAction;return this.type=t>>3&3,t&a.scancode&&(this._scancode=this.type===s.KeystrokeType.longMedia?e.readUInt16():e.readUInt8()),t&a.modifierMask&&(this.modifierMask=e.readUInt8()),t&a.secondaryRoleAction&&(this.secondaryRoleAction=e.readUInt8()),this},n.prototype.toJsonObject=function(){var e={keyActionType:r.keyActionType.KeystrokeAction};return this.type===s.KeystrokeType.shortMedia||this.type===s.KeystrokeType.longMedia?e.type="media":e.type=s.KeystrokeType[this.type],this.hasScancode()&&(e.scancode=this._scancode),this.hasActiveModifier()&&(e.modifierMask=this.modifierMask),this.hasSecondaryRoleAction()&&(e.secondaryRoleAction=c.SecondaryRoleAction[this.secondaryRoleAction]),e},n.prototype.toBinary=function(e){var n=0,t=[];this.hasScancode()&&(n|=a.scancode,t.push({data:this._scancode,long:this.type===s.KeystrokeType.longMedia})),this.hasActiveModifier()&&(n|=a.modifierMask,t.push({data:this.modifierMask,long:!1})),this.hasSecondaryRoleAction()&&(n|=a.secondaryRoleAction,t.push({data:this.secondaryRoleAction,long:!1}));var l=n+(this.type<<3);e.writeUInt8(r.KeyActionId.NoneAction+l);for(var i=0;i<t.length;++i)t[i].long?e.writeUInt16(t[i].data):e.writeUInt8(t[i].data)},n.prototype.toString=function(){var e=[];return e.push('type="'+s.KeystrokeType[this.type]+'"'),this.hasScancode()&&e.push('scancode="'+this._scancode+'"'),this.hasActiveModifier()&&e.push('modifierMask="'+this.modifierMask+'"'),this.hasSecondaryRoleAction()&&e.push('secondaryRoleAction="'+this.secondaryRoleAction+'"'),"<KeystrokeAction "+e.join(" ")+">"},n.prototype.isActive=function(e){return(this.modifierMask&e)>0},n.prototype.hasActiveModifier=function(){return this.modifierMask>0},n.prototype.hasSecondaryRoleAction=function(){return void 0!==this.secondaryRoleAction&&null!==this.secondaryRoleAction},n.prototype.hasScancode=function(){return!!this._scancode},n.prototype.hasOnlyOneActiveModifier=function(){return 0!==this.modifierMask&&!(this.modifierMask&this.modifierMask-1)},n.prototype.getModifierList=function(){for(var e=[],n=this.modifierMask,t=0;0!==n;++t,n>>=1)1&n&&e.push(d[t]);return e},n.prototype.getName=function(){return"KeystrokeAction"},i([u.assertUInt8,o("design:type",Number)],n.prototype,"modifierMask",void 0),i([u.assertEnum(c.SecondaryRoleAction),o("design:type",Number)],n.prototype,"secondaryRoleAction",void 0),i([u.assertEnum(s.KeystrokeType),o("design:type",Number)],n.prototype,"_type",void 0),n}(r.KeyAction);n.KeystrokeAction=p}},[0]); |