diff --git a/index.html b/index.html index 87dd2183..f7a1dd6f 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ -Ultimate Hacking Keyboard Configurator \ No newline at end of file + })(window,document,'script','dataLayer','GTM-PQLCXB'); \ No newline at end of file diff --git a/inline.c6663fdbb85a1d17a2e1.bundle.js b/inline.81aa9f7248bd2c5ccc66.bundle.js similarity index 55% rename from inline.c6663fdbb85a1d17a2e1.bundle.js rename to inline.81aa9f7248bd2c5ccc66.bundle.js index 95eaff0c..cf10c283 100644 --- a/inline.c6663fdbb85a1d17a2e1.bundle.js +++ b/inline.81aa9f7248bd2c5ccc66.bundle.js @@ -1 +1 @@ -!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,a,c){for(var u,i,f,l=0,s=[];l"},{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;En.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;o0&&(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=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'},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''},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""},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''},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'},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''},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''},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=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''},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''},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(tl.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''},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'},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=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''},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""},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;t0)},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","Delete macro"],["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
\n
\n
\n
\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 decelerate key pressed.",valueUnit:"px/s",value:0},{prop:"mouseMoveAcceleratedSpeed",title:"Accelerated speed",tooltip:"This speed is used while moving with the accelerate key 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 decelerate key pressed.",valueUnit:"pulse/s",value:0},{prop:"mouseScrollAcceleratedSpeed",title:"Accelerated speed",tooltip:"This speed is used while scrolling with the accelerate key 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='Delete keymap',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:'The last keymap cannot be deleted.'},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.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,"
")},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 *",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(''+e.text+' '+e.additional.explanation+""):jQuery(''+e.text+""):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>l&1);for(var l=t;l>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;l0;){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=te+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;o0&&(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 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=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=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''},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;l0&&!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;ll)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(tl.LastKeyMacroAction)throw"Invalid "+n+" first byte: "+t}else if(i===l.MouseButtonMacroAction){if(tl.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=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''},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=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''},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''},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;t0}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=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>>=1)e.push(Boolean(1&n));return e},n.prototype.toString=function(){return''},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"},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]); \ No newline at end of file diff --git a/main.8dac0e940888c29262f2.bundle.js b/main.8dac0e940888c29262f2.bundle.js deleted file mode 100644 index b93f11d3..00000000 --- a/main.8dac0e940888c29262f2.bundle.js +++ /dev/null @@ -1 +0,0 @@ -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:"."}]}]},"3J1y":function(e,n,t){"use strict";function l(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 i(e){if(u[e])throw new Error('Action type "'+e+'" is not unique"');return u[e]=!0,e}function a(){return window&&window.process&&window.process.type}Object.defineProperty(n,"__esModule",{value:!0});var c=t("APjS");n.IpcEvents=c.IpcEvents,function(e){for(var t in e)n.hasOwnProperty(t)||(n[t]=e[t])}(t("v4Uh")),n.camelCaseToSentence=l,n.capitalizeFirstLetter=o;var u={};n.type=i,n.runInElectron=a},"3XxM":function(e,n,t){"use strict";function l(e,n){void 0===e&&(e=T);var t=Object.assign(new g.UserConfiguration,e);switch(n.type){case v.a.APPLY_USER_CONFIGURATION_FROM_FILE:case v.a.LOAD_RESET_USER_CONFIGURATION:case v.a.LOAD_USER_CONFIG_SUCCESS:return Object.assign(t,n.payload);case b.a.ADD:case b.a.DUPLICATE:var l=new g.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=e.keymaps.concat(l);break;case b.a.EDIT_NAME:if(!Object(A.b)(n.payload.name))break;var o=n.payload.name.trim(),i=e.keymaps.some(function(e){return e.name===o&&e.abbreviation!==n.payload.abbr});t.keymaps=e.keymaps.map(function(e){return e=Object.assign(new g.Keymap,e),i||e.abbreviation!==n.payload.abbr||(e.name=o),e});break;case b.a.EDIT_ABBR:var a=n.payload.newAbbr.toUpperCase(),c=e.keymaps.some(function(e){return e.name!==n.payload.name&&e.abbreviation===a});t.keymaps=e.keymaps.map(function(e){return e=Object.assign(new g.Keymap,e),c||e.abbreviation!==n.payload.abbr?e=e.renameKeymap(n.payload.abbr,n.payload.newAbbr):e.abbreviation=a,e});break;case b.a.SET_DEFAULT:t.keymaps=e.keymaps.map(function(e){return(e.abbreviation===n.payload||e.isDefault)&&(e=Object.assign(new g.Keymap,e),e.isDefault=e.abbreviation===n.payload),e});break;case b.a.REMOVE:var u,r=e.keymaps.filter(function(e){return e.abbreviation!==n.payload||(u=e.isDefault,!1)});u&&r.length>0&&(r[0]=Object.assign(new g.Keymap,r[0],{isDefault:!0})),t.keymaps=r.map(function(e){return e=Object.assign(new g.Keymap,e),e.layers=y(e.layers,"keymapAbbreviation",n.payload),e});break;case b.a.SAVE_KEY:var m=n.payload.key,k=n.payload.layer,h=n.payload.module,M=g.KeyActionHelper.createKeyAction(n.payload.keyAction),C=Object.assign(new g.Keymap,n.payload.keymap);C.layers=C.layers.slice(),C.layers=C.layers.map(function(e,t){var l=Object.assign(new g.Layer,e);if(t===k)f(l,h,m,M);else if(M instanceof g.SwitchLayerAction)if(t-1===M.layer){var o=g.KeyActionHelper.createKeyAction(n.payload.keyAction);f(l,h,m,o)}else f(l,h,m,null);return l}),t.keymaps=e.keymaps.map(function(e){return e.abbreviation===C.abbreviation&&(e=C),e});break;case b.a.CHECK_MACRO:t.keymaps=e.keymaps.map(function(e){return e=Object.assign(new g.Keymap,e),e.layers=y(e.layers,"_macroId",n.payload),e});break;case b.b.ADD:var w=new g.Macro;w.id=p(e.macros),w.name=d(e.macros,"New macro"),w.isLooped=!1,w.isPrivate=!0,w.macroActions=[],t.macros=e.macros.concat(w);break;case b.b.DUPLICATE:var w=new g.Macro(n.payload);w.name=d(e.macros,w.name),w.id=p(e.macros),t.macros=e.macros.concat(w);break;case b.b.EDIT_NAME:if(!Object(A.b)(n.payload.name))break;var _=n.payload.name.trim(),O=e.macros.some(function(e){return e.id!==n.payload.id&&e.name===_});t.macros=e.macros.map(function(e){return e=Object.assign(new g.Macro,e),O||e.id!==n.payload.id||(e.name=_),e});break;case b.b.REMOVE:t.macros=e.macros.filter(function(e){return e.id!==n.payload});break;case b.b.ADD_ACTION:t.macros=e.macros.map(function(e){return e.id===n.payload.id&&(e=new g.Macro(e),e.macroActions.push(n.payload.action)),e});break;case b.b.SAVE_ACTION:t.macros=e.macros.map(function(e){return e.id===n.payload.id&&(e=new g.Macro(e),e.macroActions[n.payload.index]=n.payload.action),e});break;case b.b.DELETE_ACTION:t.macros=e.macros.map(function(e){return e.id===n.payload.id&&(e=new g.Macro(e),e.macroActions.splice(n.payload.index,1)),e});break;case b.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 g.Macro(e),e.macroActions.splice(t,0,e.macroActions.splice(n.payload.oldIndex,1)[0])}return e});break;case v.a.RENAME_USER_CONFIGURATION:Object(A.b)(n.payload)&&(t.deviceName=n.payload.trim());break;case v.a.SET_USER_CONFIGURATION_VALUE:t[n.payload.propertyName]=n.payload.value}return t}function o(){return function(e){return e.map(function(e){return e.userConfiguration})}}function i(){return function(e){return e.map(function(e){return e.userConfiguration.keymaps})}}function a(e){return void 0===e?c():function(n){return i()(n).map(function(n){return n.find(function(n){return n.abbreviation===e})})}}function c(){return function(e){return i()(e).map(function(e){return e.find(function(e){return e.isDefault})})}}function u(){return function(e){return e.map(function(e){return e.userConfiguration.macros})}}function r(e){return isNaN(e)?function(){return m.Observable.of(void 0)}:function(n){return u()(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 o=t.indexOf(n.substr(0,1)),i=t.indexOf(n.substr(1,1));i++,i>t.length&&(i=0,o++),n=t[o]+t[i]+t[l]}return n}function d(e,n){var t=1,l=/ \(\d+\)$/g,o=n.replace(l,"");return e.forEach(function(e){e.name.replace(l,"")===o&&t++}),o+" ("+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){for(var l=[],o=0;o=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(n,t,a):o(n,t))||a);return i>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 i=t("eEV6"),a=t("kPGt"),c=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'},l([i.assertUInt8,o("design:type",Number)],e.prototype,"id",void 0),e}();n.Macro=c},"7qCM":function(e,n,t){"use strict";var l=this&&this.__decorate||function(e,n,t,l){var o,i=arguments.length,a=i<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 c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(n,t,a):o(n,t))||a);return i>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 i=t("eEV6"),a=t("ct+e"),c=t("PsbM"),u=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 u.Macro).fromJsonObject(e);return t.id=n,t}),this.keymaps=e.keymaps.map(function(e){return(new c.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 u.Macro).fromBinary(e);return t.id=n,t}),this.keymaps=e.readArray(function(e){return(new c.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''},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([i.assertUInt16,o("design:type",Number)],e.prototype,"userConfigMajorVersion",void 0),l([i.assertUInt16,o("design:type",Number)],e.prototype,"userConfigMinorVersion",void 0),l([i.assertUInt16,o("design:type",Number)],e.prototype,"userConfigPatchVersion",void 0),l([i.assertUInt16,o("design:type",Number)],e.prototype,"userConfigurationLength",void 0),l([i.assertUInt16,o("design:type",Number)],e.prototype,"doubleTapSwitchLayerTimeout",void 0),l([i.assertUInt8,o("design:type",Number)],e.prototype,"iconsAndLayerTextsBrightness",void 0),l([i.assertUInt8,o("design:type",Number)],e.prototype,"alphanumericSegmentsBrightness",void 0),l([i.assertUInt8,o("design:type",Number)],e.prototype,"keyBacklightBrightness",void 0),l([i.assertUInt8,o("design:type",Number)],e.prototype,"mouseMoveInitialSpeed",void 0),l([i.assertUInt8,o("design:type",Number)],e.prototype,"mouseMoveAcceleration",void 0),l([i.assertUInt8,o("design:type",Number)],e.prototype,"mouseMoveDeceleratedSpeed",void 0),l([i.assertUInt8,o("design:type",Number)],e.prototype,"mouseMoveBaseSpeed",void 0),l([i.assertUInt8,o("design:type",Number)],e.prototype,"mouseMoveAcceleratedSpeed",void 0),l([i.assertUInt8,o("design:type",Number)],e.prototype,"mouseScrollInitialSpeed",void 0),l([i.assertUInt8,o("design:type",Number)],e.prototype,"mouseScrollAcceleration",void 0),l([i.assertUInt8,o("design:type",Number)],e.prototype,"mouseScrollDeceleratedSpeed",void 0),l([i.assertUInt8,o("design:type",Number)],e.prototype,"mouseScrollBaseSpeed",void 0),l([i.assertUInt8,o("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"),o=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""},e.prototype.renameKeymap=function(n,t){var l,o=this,i=!1;if(this.modules.forEach(function(e,a){var c=e.renameKeymap(n,t);c!==e&&(i||(l=o.modules.slice(),i=!0),l[a]=c)}),i){var a=Object.assign(new e,this);return a.modules=l,a}return this},e}();n.Layer=o},"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)}}(),o=this&&this.__decorate||function(e,n,t,l){var o,i=arguments.length,a=i<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 c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(n,t,a):o(n,t))||a);return i>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 a=t("eEV6"),c=t("PsbM"),u=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 c.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:u.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(u.KeyActionId.SwitchKeymapAction),e.writeUInt8(l)},n.prototype.toString=function(){return''},n.prototype.renameKeymap=function(e,t){return this.keymapAbbreviation!==e?this:new n(t)},n.prototype.getName=function(){return"SwitchKeymapAction"},n}(u.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(u.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"},o([a.assertUInt8,i("design:type",Number)],n.prototype,"keymapIndex",void 0),n}(u.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}(),o=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}(),i=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=o,e.device=i,e}();n.IpcEvents=a},B8XE:function(e,n,t){"use strict";var l=this&&this.__decorate||function(e,n,t,l){var o,i=arguments.length,a=i<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 c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(n,t,a):o(n,t))||a);return i>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 i=t("eEV6"),a=t("CTXo"),c=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'},e.prototype.renameKeymap=function(n,t){var l,o=this,i=!1;if(this.keyActions.forEach(function(e,a){if(e){var c=e.renameKeymap(n,t);c!==e&&(i||(l=o.keyActions.slice(),i=!0),l[a]=c)}}),i){var a=Object.assign(new e,this);return a.keyActions=l,a}return this},l([i.assertUInt8,o("design:type",Number)],e.prototype,"id",void 0),e}();n.Module=c},BQhH:function(e,n,t){"use strict";var l=this&&this.__decorate||function(e,n,t,l){var o,i=arguments.length,a=i<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 c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(n,t,a):o(n,t))||a);return i>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 i=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''},l([i.assertUInt8,o("design:type",Number)],e.prototype,"majorVersion",void 0),l([i.assertUInt8,o("design:type",Number)],e.prototype,"minorVersion",void 0),l([i.assertUInt8,o("design:type",Number)],e.prototype,"patchVersion",void 0),l([i.assertUInt8,o("design:type",Number)],e.prototype,"brandId",void 0),l([i.assertUInt8,o("design:type",Number)],e.prototype,"deviceId",void 0),l([i.assertUInt32,o("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=i),n.type){case o.a.UPDATE_AVAILABLE:var t=Object.assign({},e);return t.updateAvailable=!0,t;case o.a.UPDATE_DOWNLOADED:var t=Object.assign({},e);return t.updateDownloaded=!0,t;case o.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 o=t("vBds"),i={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 o=t("FOCG");n.KeyActionHelper=o.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 i}),t.d(n,"j",function(){return a}),t.d(n,"k",function(){return c}),t.d(n,"b",function(){return u}),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"),o=(t.n(l),"[device] "),i={SET_PRIVILEGE_ON_LINUX:Object(l.type)(o+"set privilege on linux"),SET_PRIVILEGE_ON_LINUX_REPLY:Object(l.type)(o+"set privilege on linux reply"),CONNECTION_STATE_CHANGED:Object(l.type)(o+"connection state changed"),SAVE_CONFIGURATION:Object(l.type)(o+"save configuration"),SAVE_CONFIGURATION_REPLY:Object(l.type)(o+"save configuration reply"),SAVING_CONFIGURATION:Object(l.type)(o+"saving configuration"),SHOW_SAVE_TO_KEYBOARD_BUTTON:Object(l.type)(o+"show save to keyboard button"),SAVE_TO_KEYBOARD_SUCCESS:Object(l.type)(o+"save to keyboard success"),SAVE_TO_KEYBOARD_FAILED:Object(l.type)(o+"save to keyboard failed"),HIDE_SAVE_TO_KEYBOARD_BUTTON:Object(l.type)(o+"hide save to keyboard button"),RESET_USER_CONFIGURATION:Object(l.type)(o+"reset user configuration"),RESET_MOUSE_SPEED_SETTINGS:Object(l.type)(o+"reset mouse speed settings"),UPDATE_FIRMWARE:Object(l.type)(o+"update firmware"),UPDATE_FIRMWARE_WITH:Object(l.type)(o+"update firmware with"),UPDATE_FIRMWARE_REPLY:Object(l.type)(o+"update firmware reply"),UPDATE_FIRMWARE_SUCCESS:Object(l.type)(o+"update firmware success"),UPDATE_FIRMWARE_FAILED:Object(l.type)(o+"update firmware failed"),UPDATE_FIRMWARE_OK_BUTTON:Object(l.type)(o+"update firmware ok button click")},a=function(){function e(){this.type=i.SET_PRIVILEGE_ON_LINUX}return e}(),c=function(){function e(e){this.payload=e,this.type=i.SET_PRIVILEGE_ON_LINUX_REPLY}return e}(),u=function(){function e(e){this.payload=e,this.type=i.CONNECTION_STATE_CHANGED}return e}(),r=function(){function e(){this.type=i.SAVE_CONFIGURATION}return e}(),s=function(){function e(e){this.payload=e,this.type=i.SAVE_CONFIGURATION_REPLY}return e}(),d=function(){function e(){this.type=i.SHOW_SAVE_TO_KEYBOARD_BUTTON}return e}(),p=function(){function e(){this.type=i.SAVE_TO_KEYBOARD_SUCCESS}return e}(),y=function(){function e(){this.type=i.SAVE_TO_KEYBOARD_FAILED}return e}(),f=function(){function e(){this.type=i.HIDE_SAVE_TO_KEYBOARD_BUTTON}return e}(),m=function(){function e(){this.type=i.RESET_USER_CONFIGURATION}return e}(),k=function(){function e(){this.type=i.UPDATE_FIRMWARE}return e}(),h=function(){function e(e){this.payload=e,this.type=i.UPDATE_FIRMWARE_WITH}return e}(),g=function(){function e(e){this.payload=e,this.type=i.UPDATE_FIRMWARE_REPLY}return e}(),b=function(){function e(){this.type=i.UPDATE_FIRMWARE_SUCCESS}return e}(),v=function(){function e(e){this.payload=e,this.type=i.UPDATE_FIRMWARE_FAILED}return e}(),A=function(){function e(){this.type=i.UPDATE_FIRMWARE_OK_BUTTON}return e}(),T=function(){function e(){this.type=i.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)}}(),o=this&&this.__decorate||function(e,n,t,l){var o,i=arguments.length,a=i<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 c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(n,t,a):o(n,t))||a);return i>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 a=t("eEV6"),c=t("gx91"),u=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:c.macroActionType.DelayMacroAction,delay:this.delay}},n.prototype.toBinary=function(e){e.writeUInt8(c.MacroActionId.DelayMacroAction),e.writeUInt16(this.delay)},n.prototype.toString=function(){return''},n.prototype.getName=function(){return"DelayMacroAction"},o([a.assertUInt16,i("design:type",Number)],n.prototype,"delay",void 0),n}(c.MacroAction);n.DelayMacroAction=u},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"),o=t("N4Uw"),i=t("ycRK"),a=t("K7Qy"),c=t("9g6q"),u=t("GflN"),r=t("NwIl"),s=function(){function e(){}return e.createKeyAction=function(n,t){return n instanceof o.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>=o.KeyActionId.KeystrokeAction&&t=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(n,t,a):o(n,t))||a);return i>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,o,c,r,s,d){var p=this;this.actions$=t,this.dataStorageRepository=l,this.store=o,this.defaultUserConfigurationService=c,this.deviceRendererService=r,this.logService=s,this.router=d,this.loadUserConfig$=Object(a.defer)(function(){return i.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.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.n),this.store.select(v.k)).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 o=n.type===A.a.REMOVE?"Keymap":"Macro",i=n.type===A.a.REMOVE?"keymap":"macro",a={path:"/"+i+"/"+n.payload,config:l.toJsonObject()};return[new h.k(t),new T.h({type:k.NotificationType.Undoable,message:o+" 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.h({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.h({type:k.NotificationType.Error,message:e})),t.push(new h.f(p.getUserConfiguration()))}try{var o=n.getHardwareConfigFromDeviceResponse(e.hardwareConfiguration);t.push(new T.f(o))}catch(e){p.logService.error("Eeprom hardware-config parse error:",e),t.push(new T.h({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.n)).do(function(e){var n=(e[0],e[1]),t=JSON.stringify(n.toJsonObject(),null,2),l=new Blob([t],{type:"text/plain"});Object(u.saveAs)(l,"UserConfiguration.json")}),this.saveUserConfigInBinFile$=this.actions$.ofType(h.a.SAVE_USER_CONFIG_IN_BIN_FILE).withLatestFrom(this.store.select(v.n)).do(function(e){var n=(e[0],e[1]),t=new k.UhkBuffer;n.toBinary(t);var l=new Blob([t.getBufferContent()]);Object(u.saveAs)(l,"UserConfiguration.bin")}),this.loadUserConfigurationSuccess$=this.actions$.ofType(h.a.LOAD_USER_CONFIG_SUCCESS).withLatestFrom(this.store.select(v.a)).switchMap(function(e){var n=(e[0],e[1]);return p.logService.debug("[UserConfigEffect] LOAD_USER_CONFIG_SUCCESS",{autoWriteUserConfig:n}),n?i.Observable.of(new M.f):i.Observable.empty()}),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),o=l.toString();t.fromJsonObject(JSON.parse(o))}return t.userConfigMajorVersion?new h.b(t):new T.h({type:k.NotificationType.Error,message:"Invalid configuration specified."})}catch(e){return new T.h({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:o.a},{type:g.a},{type:c.m},{type:b.a},{type:C.a},{type:k.LogService},{type:l.m}]},w([Object(o.b)(),_("design:type","function"==typeof(t=void 0!==i.Observable&&i.Observable)&&t||Object)],n.prototype,"loadUserConfig$",void 0),w([Object(o.b)(),_("design:type","function"==typeof(r=void 0!==i.Observable&&i.Observable)&&r||Object)],n.prototype,"saveUserConfig$",void 0),w([Object(o.b)(),_("design:type","function"==typeof(s=void 0!==i.Observable&&i.Observable)&&s||Object)],n.prototype,"undoUserConfig$",void 0),w([Object(o.b)({dispatch:!1}),_("design:type",Object)],n.prototype,"loadConfigFromDevice$",void 0),w([Object(o.b)(),_("design:type",Object)],n.prototype,"loadConfigFromDeviceReply$",void 0),w([Object(o.b)({dispatch:!1}),_("design:type",Object)],n.prototype,"saveUserConfigInJsonFile$",void 0),w([Object(o.b)({dispatch:!1}),_("design:type",Object)],n.prototype,"saveUserConfigInBinFile$",void 0),w([Object(o.b)(),_("design:type",Object)],n.prototype,"loadUserConfigurationSuccess$",void 0),w([Object(o.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)}}(),o=this&&this.__decorate||function(e,n,t,l){var o,i=arguments.length,a=i<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 c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(n,t,a):o(n,t))||a);return i>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 a,c=t("eEV6"),u=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:u.keyActionType.MouseAction,mouseAction:a[this.mouseAction]}},n.prototype.toBinary=function(e){e.writeUInt8(u.KeyActionId.MouseAction),e.writeUInt8(this.mouseAction)},n.prototype.toString=function(){return''},n.prototype.getName=function(){return"MouseAction"},o([c.assertEnum(a),i("design:type",Number)],n.prototype,"mouseAction",void 0),n}(u.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)}}(),o=this&&this.__decorate||function(e,n,t,l){var o,i=arguments.length,a=i<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 c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(n,t,a):o(n,t))||a);return i>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 a,c=t("eEV6"),u=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:u.keyActionType.SwitchLayerAction,layer:a[this.layer],toggle:this.isLayerToggleable}},n.prototype.toBinary=function(e){e.writeUInt8(u.KeyActionId.SwitchLayerAction),e.writeUInt8(this.layer),e.writeBoolean(this.isLayerToggleable)},n.prototype.toString=function(){return''},n.prototype.getName=function(){return"SwitchLayerAction"},o([c.assertEnum(a),i("design:type",Number)],n.prototype,"layer",void 0),n}(u.KeyAction);n.SwitchLayerAction=r},KN1q:function(e,n,t){"use strict";t.d(n,"n",function(){return y}),t.d(n,"i",function(){return f}),t.d(n,"r",function(){return k}),t.d(n,"a",function(){return h}),t.d(n,"m",function(){return g}),t.d(n,"k",function(){return b}),t.d(n,"p",function(){return v}),t.d(n,"j",function(){return A}),t.d(n,"b",function(){return T}),t.d(n,"f",function(){return M}),t.d(n,"l",function(){return w}),t.d(n,"g",function(){return O}),t.d(n,"h",function(){return x}),t.d(n,"c",function(){return R}),t.d(n,"o",function(){return E}),t.d(n,"q",function(){return N}),t.d(n,"s",function(){return L}),t.d(n,"t",function(){return K}),t.d(n,"d",function(){return D}),t.d(n,"e",function(){return j});var l=t("5LV6"),o=(t.n(l),t("Tvzk")),i=(t.n(o),t("3XxM")),a=t("TTza"),c=t("C4aZ"),u=t("cVaD"),r=t("kGlP"),s=t("Xloh"),d=t("Ii5C"),p=t("p5Ee"),y=(i.g,a.a,u.d,r.h,c.b,s.e,p.a.production||o.storeFreeze,function(e){return e.userConfiguration}),f=Object(l.createSelector)(y,i.a),m=function(e){return e.app},k=Object(l.createSelector)(m,r.j),h=Object(l.createSelector)(m,r.a),g=Object(l.createSelector)(m,r.g),b=Object(l.createSelector)(m,r.f),v=Object(l.createSelector)(m,r.i),A=(Object(l.createSelector)(m,r.d),Object(l.createSelector)(m,r.e)),T=Object(l.createSelector)(m,r.b),M=Object(l.createSelector)(m,r.c),C=function(e){return e.appUpdate},w=Object(l.createSelector)(C,c.a),_=function(e){return e.autoUpdateSettings},O=Object(l.createSelector)(_,u.b),x=Object(l.createSelector)(_,u.a),S=function(e){return e.device},P=Object(l.createSelector)(S,s.d),R=Object(l.createSelector)(v,P,function(e,n){return!e||n}),I=Object(l.createSelector)(S,s.c),E=Object(l.createSelector)(v,I,function(e,n){return!e||n}),U=Object(l.createSelector)(S,s.b),N=Object(l.createSelector)(v,U,function(e,n){return e?n:d.a}),L=Object(l.createSelector)(S,s.f),K=Object(l.createSelector)(S,s.g),D=Object(l.createSelector)(S,s.a),j=Object(l.createSelector)(v,S,function(e,n){return!e||n.updatingFirmware})},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 o=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(),o=l[n];if(o===l.KeystrokeAction){if(tl.LastKeystrokeAction)throw"Invalid "+n+" first byte: "+t}else if(t!==o)throw"Invalid "+n+" first byte: "+t;return t},e.prototype.renameKeymap=function(e,n){return this},e}();n.KeyAction=o},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 o(n){return{type:e.SET_DEFAULT,payload:n}}function i(n){return{type:e.REMOVE,payload:n}}function a(n){return{type:e.DUPLICATE,payload:n}}function c(n,t){return{type:e.EDIT_NAME,payload:{abbr:n,name:t}}}function u(n,t,l){return{type:e.EDIT_ABBR,payload:{name:n,abbr:t,newAbbr:l}}}function r(n,t,l,o,i){return{type:e.SAVE_KEY,payload:{keymap:n,layer:t,module:l,key:o,keyAction:i}}}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.loadKeymaps=n,e.loadKeymapsSuccess=t,e.addKeymap=l,e.setDefault=o,e.removeKeymap=i,e.duplicateKeymap=a,e.editKeymapName=c,e.editKeymapAbbr=u,e.saveKey=r,e.checkMacro=s}(l||(l={}));var o;!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 o(n,t){return{type:e.EDIT_NAME,payload:{id:n,name:t}}}function i(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 c(n,t,l){return{type:e.DELETE_ACTION,payload:{id:n,index:t,action:l}}}function u(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=o,e.addMacroAction=i,e.saveMacroAction=a,e.deleteMacroAction=c,e.reorderMacroAction=u}(o||(o={})),t.d(n,"a",function(){return l}),t.d(n,"b",function(){return o})},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)}}(),o=this&&this.__decorate||function(e,n,t,l){var o,i=arguments.length,a=i<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 c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(n,t,a):o(n,t))||a);return i>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 a=t("eEV6"),c=t("N4Uw"),u=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:c.keyActionType.PlayMacroAction,macroIndex:e.findIndex(function(e){return e.id===n.macroId})}},n.prototype.toBinary=function(e,n){var t=this;e.writeUInt8(c.KeyActionId.PlayMacroAction),e.writeUInt8(n.macros.findIndex(function(e){return e.id===t.macroId}))},n.prototype.toString=function(){return''},n.prototype.getName=function(){return"PlayMacroAction"},o([a.assertUInt8,i("design:type",Number)],n.prototype,"macroId",void 0),n}(c.KeyAction);n.PlayMacroAction=u},"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'},e.prototype.renameKeymap=function(n,t){var l,o=this,i=!1;if(this.layers.forEach(function(e,a){var c=e.renameKeymap(n,t);c!==e&&(i||(l=o.layers.slice(),i=!0),l[a]=c)}),i){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=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(n,t,a):o(n,t))||a);return i>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 i=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''},l([i.assertUInt8,o("design:type",Number)],e.prototype,"id",void 0),l([i.assertUInt8,o("design:type",Number)],e.prototype,"pointerMode",void 0),l([i.assertUInt8,o("design:type",Number)],e.prototype,"deceleratedPointerSpeedMultiplier",void 0),l([i.assertUInt8,o("design:type",Number)],e.prototype,"basePointerSpeedMultiplier",void 0),l([i.assertUInt8,o("design:type",Number)],e.prototype,"acceleratedPointerSpeedMultiplier",void 0),l([i.assertUInt16,o("design:type",Number)],e.prototype,"angularShift",void 0),l([i.assertUInt8,o("design:type",Number)],e.prototype,"modLayerPointerFunction",void 0),l([i.assertUInt8,o("design:type",Number)],e.prototype,"fnLayerPointerFunction",void 0),l([i.assertUInt8,o("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 o=t("N4Uw"),i=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:o.keyActionType.NoneAction}},n.prototype.toBinary=function(e){e.writeUInt8(o.KeyActionId.NoneAction)},n.prototype.toString=function(){return""},n.prototype.getName=function(){return"NoneAction"},n}(o.KeyAction);n.NoneAction=i},TTza:function(e,n,t){"use strict";function l(e,n){switch(void 0===e&&(e=i),n.type){case o.a.LOAD_KEYMAPS_SUCCESS:return n.payload;default:return e}}n.a=l;var o=t("NfUz"),i=[]},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 i.a.CONNECTION_STATE_CHANGED:var t=n.payload;return u({},e,{connected:t.connected,hasPermission:t.hasPermission});case i.a.SAVING_CONFIGURATION:return u({},e,{savingToKeyboard:!0});case i.a.SHOW_SAVE_TO_KEYBOARD_BUTTON:return u({},e,{saveToKeyboard:{showButton:!0,text:"Save to keyboard",action:new i.f}});case i.a.SAVE_CONFIGURATION:return u({},e,{saveToKeyboard:{showButton:!0,text:"Saving",showProgress:!0}});case i.a.SAVE_TO_KEYBOARD_SUCCESS:return u({},e,{saveToKeyboard:{showButton:!0,text:"Saved!",action:null}});case i.a.SAVE_TO_KEYBOARD_FAILED:return u({},e,{saveToKeyboard:{showButton:!0,text:"Save to keyboard",action:new i.f}});case i.a.HIDE_SAVE_TO_KEYBOARD_BUTTON:return u({},e,{saveToKeyboard:c.a});case i.a.UPDATE_FIRMWARE_WITH:case i.a.UPDATE_FIRMWARE:return u({},e,{updatingFirmware:!0,firmwareUpdateFinished:!1,log:[{message:"Start flashing firmware",cssClass:o.standard}]});case i.a.UPDATE_FIRMWARE_SUCCESS:return u({},e,{updatingFirmware:!1,firmwareUpdateFinished:!0});case i.a.UPDATE_FIRMWARE_FAILED:var l={message:n.payload.message,cssClass:o.error};return u({},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?o.error:o.standard};return u({},e,{log:e.log.concat([l])});default:return e}}var o,i=t("CyOy"),a=t("5II9"),c=t("Ii5C");!function(e){e.standard="xterm-standard",e.error="xterm-error"}(o||(o={})),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 u=this&&this.__assign||Object.assign||function(e){for(var n,t=1,l=arguments.length;t0)},null)}function at(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,1,"macro-tab",[],null,null,null,it,Cc)),bl["\u0275did"](1,770048,null,0,Tc,[Tl.m],null,null)],function(e,n){e(n,1,0)},null)}function ct(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](1,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,[" No keymaps are available to choose from. Create a keymap first! "])),(e()(),bl["\u0275ted"](-1,null,["\n"]))],null,null)}function ut(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,3,"div",[["class","empty"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](2,0,null,null,0,"img",[["src","assets/images/base-layer--blank.svg"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "]))],null,null)}function rt(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,2,"svg-keyboard",[],null,null,null,Ye,ma)),bl["\u0275did"](1,638976,null,0,ya,[pa],{moduleConfig:[0,"moduleConfig"]},null),(e()(),bl["\u0275ted"](-1,null,["\n "]))],function(e,n){e(n,1,0,n.component.selectedKeymap.layers[0].modules)},null)}function st(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](1,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](3,0,null,null,1,"b",[],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["Switch to keymap:"])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](6,0,null,null,1,"select2",[],null,[[null,"valueChanged"]],function(e,n,t){var l=!0,o=e.component;if("valueChanged"===n){l=!1!==o.onChange(t)&&l}return l},Aa.b,Aa.a)),bl["\u0275did"](7,4964352,null,0,Ta.Select2Component,[bl.Renderer],{data:[0,"data"],value:[1,"value"],width:[2,"width"]},{valueChanged:"valueChanged"}),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](10,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275and"](16777216,null,null,1,null,ut)),bl["\u0275did"](13,16384,null,0,xl.k,[bl.ViewContainerRef,bl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275and"](16777216,null,null,1,null,rt)),bl["\u0275did"](16,16384,null,0,xl.k,[bl.ViewContainerRef,bl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\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 dt(e){return bl["\u0275vid"](2,[(e()(),bl["\u0275and"](16777216,null,null,1,null,ct)),bl["\u0275did"](1,16384,null,0,xl.k,[bl.ViewContainerRef,bl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),bl["\u0275ted"](-1,null,["\n"])),(e()(),bl["\u0275and"](16777216,null,null,1,null,st)),bl["\u0275did"](4,16384,null,0,xl.k,[bl.ViewContainerRef,bl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),bl["\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 pt(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,1,"keymap-tab",[],null,null,null,dt,Sc)),bl["\u0275did"](1,573440,null,0,Oc,[],null,null)],null,null)}function yt(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275ted"](-1,null,["This key is unassigned and has no functionality."]))],null,null)}function ft(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,1,"none-tab",[],null,null,null,yt,Uc)),bl["\u0275did"](1,114688,null,0,Ic,[],null,null)],function(e,n){e(n,1,0)},null)}function mt(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,1,"keypress-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,n,t){var l=!0,o=e.component;if("validAction"===n){l=!1!==(o.keyActionValid=t)&&l}return l},un,Ra)),bl["\u0275did"](1,573440,[[1,4],["tab",4]],0,wa,[wi],{defaultKeyAction:[0,"defaultKeyAction"],secondaryRoleEnabled:[1,"secondaryRoleEnabled"]},{validAction:"validAction"})],function(e,n){e(n,1,0,n.component.defaultKeyAction,!0)},null)}function kt(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,1,"layer-tab",[["class","popover-content"]],[[2,"no-base",null]],[[null,"validAction"]],function(e,n,t){var l=!0,o=e.component;if("validAction"===n){l=!1!==(o.keyActionValid=t)&&l}return l},kn,La)),bl["\u0275did"](1,573440,[[1,4],["tab",4]],0,Ua,[],{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,bl["\u0275nov"](n,1).isNotBase)})}function ht(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,1,"mouse-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,n,t){var l=!0,o=e.component;if("validAction"===n){l=!1!==(o.keyActionValid=t)&&l}return l},Cn,Va)),bl["\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 gt(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,1,"macro-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,n,t){var l=!0,o=e.component;if("validAction"===n){l=!1!==(o.keyActionValid=t)&&l}return l},it,Cc)),bl["\u0275did"](1,770048,[[1,4],["tab",4]],0,Tc,[Tl.m],{defaultKeyAction:[0,"defaultKeyAction"]},{validAction:"validAction"})],function(e,n){e(n,1,0,n.component.defaultKeyAction)},null)}function bt(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,2,"keymap-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,n,t){var l=!0,o=e.component;if("validAction"===n){l=!1!==(o.keyActionValid=t)&&l}return l},dt,Sc)),bl["\u0275did"](1,573440,[[1,4],["tab",4]],0,Oc,[],{defaultKeyAction:[0,"defaultKeyAction"],keymaps:[1,"keymaps"]},{validAction:"validAction"}),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef])],function(e,n){var t=n.component;e(n,1,0,t.defaultKeyAction,bl["\u0275unv"](n,1,1,bl["\u0275nov"](n,2).transform(t.keymaps$)))},null)}function vt(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,1,"none-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,n,t){var l=!0,o=e.component;if("validAction"===n){l=!1!==(o.keyActionValid=t)&&l}return l},yt,Uc)),bl["\u0275did"](1,114688,[[1,4],["tab",4]],0,Ic,[],null,{validAction:"validAction"})],function(e,n){e(n,1,0)},null)}function At(e){return bl["\u0275vid"](0,[bl["\u0275qud"](671088640,1,{selectedTab:0}),bl["\u0275qud"](402653184,2,{popoverHost:0}),(e()(),bl["\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)),bl["\u0275did"](3,278528,null,0,xl.i,[bl.IterableDiffers,bl.KeyValueDiffers,bl.ElementRef,bl.Renderer],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),bl["\u0275pod"](4,{leftArrow:0,rightArrow:1}),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](6,0,null,null,0,"div",[["class","arrowCustom"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](8,0,null,null,70,"div",[["class","popover-title menu-tabs"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](10,0,null,null,67,"ul",[["class","nav nav-tabs popover-menu"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](12,0,[["keypress",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,n,t){var l=!0,o=e.component;if("click"===n){l=!1!==o.selectTab(o.tabName.Keypress)&&l}return l},null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](14,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](16,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](18,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["Keypress"])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](23,0,[["layer",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,n,t){var l=!0,o=e.component;if("click"===n){l=!1!==o.selectTab(o.tabName.Layer)&&l}return l},null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](25,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](27,0,null,null,0,"i",[["class","fa fa-clone"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](29,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["Layer"])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](34,0,[["mouse",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,n,t){var l=!0,o=e.component;if("click"===n){l=!1!==o.selectTab(o.tabName.Mouse)&&l}return l},null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](36,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](38,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](40,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["Mouse"])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](45,0,[["macro",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,n,t){var l=!0,o=e.component;if("click"===n){l=!1!==o.selectTab(o.tabName.Macro)&&l}return l},null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](47,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](49,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](51,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["Macro"])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](56,0,[["keymap",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,n,t){var l=!0,o=e.component;if("click"===n){l=!1!==o.selectTab(o.tabName.Keymap)&&l}return l},null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](58,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](60,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](62,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["Keymap"])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](67,0,[["none",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,n,t){var l=!0,o=e.component;if("click"===n){l=!1!==o.selectTab(o.tabName.None)&&l}return l},null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](69,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](71,0,null,null,0,"i",[["class","fa fa-ban"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](73,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["None"])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](80,0,null,null,20,"div",[],null,null,null,null,null)),bl["\u0275did"](81,16384,null,0,xl.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275and"](16777216,null,null,1,null,mt)),bl["\u0275did"](84,278528,null,0,xl.o,[bl.ViewContainerRef,bl.TemplateRef,xl.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275and"](16777216,null,null,1,null,kt)),bl["\u0275did"](87,278528,null,0,xl.o,[bl.ViewContainerRef,bl.TemplateRef,xl.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275and"](16777216,null,null,1,null,ht)),bl["\u0275did"](90,278528,null,0,xl.o,[bl.ViewContainerRef,bl.TemplateRef,xl.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275and"](16777216,null,null,1,null,gt)),bl["\u0275did"](93,278528,null,0,xl.o,[bl.ViewContainerRef,bl.TemplateRef,xl.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275and"](16777216,null,null,1,null,bt)),bl["\u0275did"](96,278528,null,0,xl.o,[bl.ViewContainerRef,bl.TemplateRef,xl.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275and"](16777216,null,null,1,null,vt)),bl["\u0275did"](99,278528,null,0,xl.o,[bl.ViewContainerRef,bl.TemplateRef,xl.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](102,0,null,null,7,"div",[["class","popover-action"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\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,o=e.component;if("click"===n){l=!1!==o.onCancelClick()&&l}return l},null,null)),(e()(),bl["\u0275ted"](-1,null,[" Cancel "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\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,o=e.component;if("click"===n){l=!1!==o.onRemapKey()&&l}return l},null,null)),(e()(),bl["\u0275ted"](-1,null,[" Remap Key "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n"])),(e()(),bl["\u0275ted"](-1,null,["\n"])),(e()(),bl["\u0275eld"](112,0,null,null,0,"div",[["class","popover-overlay"]],[[2,"display",null]],[[null,"click"]],function(e,n,t){var l=!0,o=e.component;if("click"===n){l=!1!==o.onOverlay()&&l}return l},null,null)),(e()(),bl["\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 Tt(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,1,"popover",[],null,[[null,"keydown.escape"]],function(e,n,t){var l=!0;if("keydown.escape"===n){l=!1!==bl["\u0275nov"](e,1).onEscape()&&l}return l},At,Dc)),bl["\u0275did"](1,573440,null,0,Lc,[Tl.m],null,null)],null,null)}function Mt(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),bl["\u0275ted"](1,null,["\n ",": ","\n "]))],null,function(e,n){e(n,1,0,n.context.$implicit.name,n.context.$implicit.value)})}function Ct(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](1,0,null,null,1,"layers",[],[[2,"disabled",null]],[[null,"select"]],function(e,n,t){var l=!0,o=e.component;if("select"===n){l=!1!==o.selectLayer(t.index)&&l}return l},X,ri)),bl["\u0275did"](2,49152,null,0,ci,[],{current:[0,"current"]},{select:"select"}),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](4,0,null,null,1,"keyboard-slider",[],null,[[null,"keyClick"],[null,"keyHover"],[null,"capture"]],function(e,n,t){var l=!0,o=e.component;if("keyClick"===n){l=!1!==o.onKeyClick(t.moduleId,t.keyId,t.keyTarget)&&l}if("keyHover"===n){l=!1!==o.onKeyHover(t.moduleId,t.event,t.over,t.keyId)&&l}if("capture"===n){l=!1!==o.onCapture(t.moduleId,t.keyId,t.captured)&&l}return l},Qe,ga)),bl["\u0275did"](5,573440,null,0,ka,[],{layers:[0,"layers"],currentLayer:[1,"currentLayer"],keybindAnimationEnabled:[2,"keybindAnimationEnabled"],capturingEnabled:[3,"capturingEnabled"],halvesSplit:[4,"halvesSplit"],selectedKey:[5,"selectedKey"],keyboardLayout:[6,"keyboardLayout"]},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture"}),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\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,o=e.component;if("keydown.escape"===n){l=!1!==bl["\u0275nov"](e,8).onEscape()&&l}if("cancel"===n){l=!1!==o.hidePopover()&&l}if("remap"===n){l=!1!==o.onRemap(t)&&l}return l},At,Dc)),bl["\u0275did"](8,573440,null,0,Lc,[Tl.m],{defaultKeyAction:[0,"defaultKeyAction"],currentKeymap:[1,"currentKeymap"],currentLayer:[2,"currentLayer"],keyPosition:[3,"keyPosition"],wrapPosition:[4,"wrapPosition"],visible:[5,"visible"]},{cancel:"cancel",remap:"remap"}),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](10,0,null,null,10,"div",[["class","tooltip bottom"]],[[2,"in",null],[4,"top","px"],[4,"left","px"]],null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](12,0,null,null,0,"div",[["class","tooltip-arrow"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](14,0,null,null,5,"div",[["class","tooltip-inner"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275and"](16777216,null,null,2,null,Mt)),bl["\u0275did"](17,802816,null,0,xl.j,[bl.ViewContainerRef,bl.TemplateRef,bl.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\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),e(n,8,0,t.popoverInitKeyAction,t.keymap,t.currentLayer,t.keyPosition,t.wrapPosition,t.popoverShown),e(n,17,0,bl["\u0275unv"](n,17,0,bl["\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 wt(e){return bl["\u0275vid"](2,[bl["\u0275qud"](671088640,1,{popover:0}),(e()(),bl["\u0275and"](16777216,null,null,1,null,Ct)),bl["\u0275did"](2,16384,null,0,xl.k,[bl.ViewContainerRef,bl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),bl["\u0275ted"](-1,null,["\n"]))],function(e,n){e(n,2,0,n.component.layers)},null)}function _t(e){return bl["\u0275vid"](0,[(e()(),bl["\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!==bl["\u0275nov"](e,1).onResize()&&l}return l},wt,Vc)),bl["\u0275did"](1,638976,null,0,jc,[Tl.m,wi,bl.ElementRef,bl.Renderer],null,null)],function(e,n){e(n,1,0)},function(e,n){e(n,0,0,bl["\u0275nov"](n,1).space)})}function Ot(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](1,0,null,null,3,"keymap-header",[],null,[[null,"downloadClick"],["window","resize"]],function(e,n,t){var l=!0,o=e.component;if("window:resize"===n){l=!1!==bl["\u0275nov"](e,2).windowResize()&&l}if("downloadClick"===n){l=!1!==o.downloadKeymap()&&l}return l},q,oi)),bl["\u0275did"](2,573440,null,0,ni,[Tl.m,bl.Renderer2],{keymap:[0,"keymap"],deletable:[1,"deletable"]},{downloadClick:"downloadClick"}),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](6,0,null,null,3,"svg-keyboard-wrap",[],[[2,"space",null]],[["window","resize"]],function(e,n,t){var l=!0;if("window:resize"===n){l=!1!==bl["\u0275nov"](e,7).onResize()&&l}return l},wt,Vc)),bl["\u0275did"](7,638976,[[1,4]],0,jc,[Tl.m,wi,bl.ElementRef,bl.Renderer],{keymap:[0,"keymap"],halvesSplit:[1,"halvesSplit"],keyboardLayout:[2,"keyboardLayout"]},null),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),(e()(),bl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,2,0,bl["\u0275unv"](n,2,0,bl["\u0275nov"](n,3).transform(t.keymap$)),bl["\u0275unv"](n,2,1,bl["\u0275nov"](n,4).transform(t.deletable$))),e(n,7,0,bl["\u0275unv"](n,7,0,bl["\u0275nov"](n,8).transform(t.keymap$)),t.keyboardSplit,bl["\u0275unv"](n,7,2,bl["\u0275nov"](n,9).transform(t.keyboardLayout$)))},function(e,n){e(n,6,0,bl["\u0275nov"](n,7).space)})}function xt(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,1,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n Sorry, there is no keymap with this abbreviation.\n"]))],null,null)}function St(e){return bl["\u0275vid"](0,[bl["\u0275qud"](671088640,1,{wrap:0}),(e()(),bl["\u0275and"](16777216,null,null,2,null,Ot)),bl["\u0275did"](2,16384,null,0,xl.k,[bl.ViewContainerRef,bl.TemplateRef],{ngIf:[0,"ngIf"]},null),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),(e()(),bl["\u0275ted"](-1,null,["\n\n"])),(e()(),bl["\u0275and"](16777216,null,null,2,null,xt)),bl["\u0275did"](6,16384,null,0,xl.k,[bl.ViewContainerRef,bl.TemplateRef],{ngIf:[0,"ngIf"]},null),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),(e()(),bl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,2,0,bl["\u0275unv"](n,2,0,bl["\u0275nov"](n,3).transform(t.keymap$))),e(n,6,0,!bl["\u0275unv"](n,6,0,bl["\u0275nov"](n,7).transform(t.keymap$)))},null)}function Pt(e){return bl["\u0275vid"](0,[(e()(),bl["\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!==bl["\u0275nov"](e,1).toggleKeyboardSplit(t)&&l}return l},St,Gc)),bl["\u0275did"](1,49152,null,0,$c,[Tl.m,zl.a],null,null)],null,null)}function Rt(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,[["keyboard",1]],null,17,"div",[["class","keymap__list_item"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](2,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),bl["\u0275ted"](3,null,["",""])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](5,0,null,null,1,"p",[["class","keymap__description"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](6,null,["\n ","\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\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!==bl["\u0275nov"](e,9).onResize()&&l}return l},wt,Vc)),bl["\u0275did"](9,638976,null,0,jc,[Tl.m,wi,bl.ElementRef,bl.Renderer],{keymap:[0,"keymap"],popoverEnabled:[1,"popoverEnabled"],tooltipEnabled:[2,"tooltipEnabled"]},null),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](12,0,null,null,4,"div",[["class","btn-group btn-group-lg"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](14,0,null,null,1,"button",[["class","btn btn-default"]],null,[[null,"click"]],function(e,n,t){var l=!0,o=e.component;if("click"===n){l=!1!==o.addKeymap(e.context.$implicit)&&l}return l},null,null)),(e()(),bl["\u0275ted"](-1,null,["Add keymap"])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\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,bl["\u0275nov"](n,9).space)})}function It(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n Sorry, no keyboard found under this search query.\n"]))],null,null)}function Et(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["Add new keymap"])),(e()(),bl["\u0275ted"](-1,null,["\n"])),(e()(),bl["\u0275ted"](-1,null,["\n"])),(e()(),bl["\u0275eld"](8,0,null,null,16,"div",[["class","keymap__search clearfix"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](10,0,null,null,8,"div",[["class","input-group"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](12,0,null,null,3,"span",[["class","input-group-addon"],["id","sizing-addon1"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](14,0,null,null,0,"i",[["class","fa fa-search"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](17,0,null,null,0,"input",[["class","form-control"],["placeholder","Search ..."],["type","text"]],null,[[null,"input"]],function(e,n,t){var l=!0,o=e.component;if("input"===n){l=!1!==o.filterKeyboards(t.target.value)&&l}return l},null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](20,0,null,null,3,"div",[["class","keymap__search_amount"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](21,null,["\n "," / "," keymaps shown\n "])),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),(e()(),bl["\u0275ted"](-1,null,["\n"])),(e()(),bl["\u0275ted"](-1,null,["\n"])),(e()(),bl["\u0275eld"](26,0,null,null,5,"div",[["class","keymap__list"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275and"](16777216,null,null,2,null,Rt)),bl["\u0275did"](29,802816,null,0,xl.j,[bl.ViewContainerRef,bl.TemplateRef,bl.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),(e()(),bl["\u0275ted"](-1,null,["\n"])),(e()(),bl["\u0275ted"](-1,null,["\n"])),(e()(),bl["\u0275and"](16777216,null,null,2,null,It)),bl["\u0275did"](34,16384,null,0,xl.k,[bl.ViewContainerRef,bl.TemplateRef],{ngIf:[0,"ngIf"]},null),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef])],function(e,n){var t=n.component;e(n,29,0,bl["\u0275unv"](n,29,0,bl["\u0275nov"](n,30).transform(t.presets$))),e(n,34,0,0===bl["\u0275unv"](n,34,0,bl["\u0275nov"](n,35).transform(t.presets$)).length)},function(e,n){var t=n.component;e(n,21,0,bl["\u0275unv"](n,21,0,bl["\u0275nov"](n,22).transform(t.presets$)).length,bl["\u0275unv"](n,21,1,bl["\u0275nov"](n,23).transform(t.presetsAll$)).length)})}function Ut(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,1,"keymap-add",[["class","container-fluid"]],null,null,null,Et,Jc)),bl["\u0275did"](1,49152,null,0,qc,[Tl.m],null,null)],null,null)}function Nt(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,11,"div",[["class","container-fluid"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](2,0,null,null,5,"uhk-header",[],null,null,null,W,Xo)),bl["\u0275did"](3,49152,null,0,Go,[Tl.m],null,null),(e()(),bl["\u0275ted"](-1,0,["\n "])),(e()(),bl["\u0275eld"](5,0,null,0,1,"h1",[],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\xa0"])),(e()(),bl["\u0275ted"](-1,0,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](9,0,null,null,1,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n You don't have any macros. Try to add one!\n "])),(e()(),bl["\u0275ted"](-1,null,["\n"])),(e()(),bl["\u0275ted"](-1,null,["\n"]))],null,null)}function Lt(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,1,"macro-not-found",[],null,null,null,Nt,nu)),bl["\u0275did"](1,49152,null,0,Zc,[],null,null)],null,null)}function Kt(e){return bl["\u0275vid"](2,[bl["\u0275qud"](402653184,1,{macroName:0}),(e()(),bl["\u0275eld"](1,0,null,null,19,"uhk-header",[],null,null,null,W,Xo)),bl["\u0275did"](2,49152,null,0,Go,[Tl.m],null,null),(e()(),bl["\u0275ted"](-1,0,["\n "])),(e()(),bl["\u0275eld"](4,0,null,0,15,"div",[["class","row"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](6,0,null,null,12,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](8,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\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,o=e.component;if("focus"===n){l=!1!==bl["\u0275nov"](e,11).onFocus()&&l}if("keyup.escape"===n){l=!1!==bl["\u0275nov"](e,11).onEscape()&&l}if("change"===n){l=!1!==o.editMacroName(t.target.value)&&l}if("keyup.enter"===n){l=!1!==bl["\u0275nov"](e,10).blur()&&l}if("keyup"===n){l=!1!==o.calculateHeaderTextWidth(t.target.value)&&l}return l},null,null)),bl["\u0275did"](11,16384,null,0,ti,[bl.ElementRef,bl.Renderer],null,null),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](13,0,null,null,1,"i",[["class","glyphicon glyphicon-trash macro__remove pull-right"],["data-original-title","Delete macro"],["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["title",""]],[[1,"data-placement",0]],[[null,"click"]],function(e,n,t){var l=!0,o=e.component;if("click"===n){l=!1!==o.removeMacro()&&l}return l},null,null)),bl["\u0275did"](14,1589248,null,0,fo,[bl.ElementRef,lo.c],{title:[0,"title"],html:[1,"html"]},null),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\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,o=e.component;if("click"===n){l=!1!==o.duplicateMacro()&&l}return l},null,null)),bl["\u0275did"](17,1589248,null,0,fo,[bl.ElementRef,lo.c],{title:[0,"title"]},null),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,0,["\n"])),(e()(),bl["\u0275ted"](-1,null,["\n"]))],function(e,n){e(n,14,0,"","true");e(n,17,0,"")},function(e,n){e(n,13,0,bl["\u0275nov"](n,14).placement),e(n,16,0,bl["\u0275nov"](n,17).placement)})}function Dt(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,1,"macro-header",[],null,[["window","resize"]],function(e,n,t){var l=!0;if("window:resize"===n){l=!1!==bl["\u0275nov"](e,1).windowResize()&&l}return l},Kt,cu)),bl["\u0275did"](1,4767744,null,0,iu,[Tl.m,bl.Renderer2],null,null)],null,null)}function jt(e){return bl["\u0275vid"](0,[(e()(),bl["\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,o=e.component;if("save"===n){l=!1!==o.saveAction(t,e.context.index)&&l}if("edit"===n){l=!1!==o.editAction(e.context.index)&&l}if("cancel"===n){l=!1!==o.cancelAction()&&l}if("delete"===n){l=!1!==o.deleteAction(e.context.$implicit,e.context.index)&&l}return l},et,vc)),bl["\u0275did"](1,638976,[[1,4]],0,Ha,[wi],{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 Ft(e){return bl["\u0275vid"](0,[(e()(),bl["\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,o=e.component;if("save"===n){l=!1!==o.addNewAction(t)&&l}if("cancel"===n){l=!1!==o.hideNewAction()&&l}return l},et,vc)),bl["\u0275did"](1,638976,[[1,4]],0,Ha,[wi],{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 Vt(e){return bl["\u0275vid"](0,[bl["\u0275qud"](671088640,1,{macroItems:1}),(e()(),bl["\u0275eld"](1,0,null,null,34,"div",[["class","row list-container"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](3,0,null,null,31,"div",[["class","col-xs-10 col-xs-offset-1 list-group"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](5,0,null,null,8,"div",[["class","macro-actions-container"]],null,null,null,null,null)),bl["\u0275did"](6,606208,null,0,ru.DragulaDirective,[bl.ElementRef,su.DragulaService],{dragula:[0,"dragula"],dragulaModel:[1,"dragulaModel"]},null),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275and"](16777216,null,null,1,null,jt)),bl["\u0275did"](9,802816,null,0,xl.j,[bl.ViewContainerRef,bl.TemplateRef,bl.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),bl["\u0275ted"](-1,null,["\n\n "])),(e()(),bl["\u0275and"](16777216,null,null,1,null,Ft)),bl["\u0275did"](12,16384,null,0,xl.k,[bl.ViewContainerRef,bl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](15,0,null,null,18,"div",[["class","list-group add-new__action-container"]],[[24,"@toggler",0]],null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\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()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](19,0,null,null,6,"span",[["class","add-new__action-item--link"]],null,[[null,"click"]],function(e,n,t){var l=!0,o=e.component;if("click"===n){l=!1!==o.showNewAction()&&l}return l},null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](21,0,null,null,3,"button",[["class","btn btn-link"],["type","button"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](23,0,null,null,0,"i",[["class","fa fa-plus"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,[" Add macro action\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](27,0,null,null,4,"span",[["class","add-new__action-item--link"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\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,o=e.component;if("keyup"===n){l=!1!==bl["\u0275nov"](e,30).onKeyUp(t)&&l}if("keydown"===n){l=!1!==bl["\u0275nov"](e,30).onKeyDown(t)&&l}if("focusout"===n){l=!1!==bl["\u0275nov"](e,30).onFocusOut()&&l}if("capture"===n){l=!1!==o.onKeysCapture(t)&&l}return l},tn,Sa)),bl["\u0275did"](30,49152,null,0,Oa,[ea],{isLink:[0,"isLink"],captureText:[1,"captureText"]},{capture:"capture"}),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n"])),(e()(),bl["\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 Bt(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,2,"macro-list",[],null,null,null,Vt,fu)),bl["\u0275prd"](8704,null,su.DragulaService,su.DragulaService,[]),bl["\u0275did"](2,49152,null,0,pu,[wi,su.DragulaService],null,null)],null,null)}function $t(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](1,0,null,null,1,"macro-header",[],null,[["window","resize"]],function(e,n,t){var l=!0;if("window:resize"===n){l=!1!==bl["\u0275nov"](e,2).windowResize()&&l}return l},Kt,cu)),bl["\u0275did"](2,4767744,null,0,iu,[Tl.m,bl.Renderer2],{macro:[0,"macro"],isNew:[1,"isNew"]},null),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](4,0,null,null,2,"macro-list",[],null,[[null,"add"],[null,"edit"],[null,"delete"],[null,"reorder"]],function(e,n,t){var l=!0,o=e.component;if("add"===n){l=!1!==o.addAction(t.macroId,t.action)&&l}if("edit"===n){l=!1!==o.editAction(t.macroId,t.index,t.action)&&l}if("delete"===n){l=!1!==o.deleteAction(t.macroId,t.index,t.action)&&l}if("reorder"===n){l=!1!==o.reorderAction(t.macroId,t.oldIndex,t.newIndex)&&l}return l},Vt,fu)),bl["\u0275prd"](8704,null,su.DragulaService,su.DragulaService,[]),bl["\u0275did"](6,49152,null,0,pu,[wi,su.DragulaService],{macro:[0,"macro"]},{add:"add",edit:"edit",delete:"delete",reorder:"reorder"}),(e()(),bl["\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 Ht(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,2,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](1,null,["\n There is no macro with id ",".\n"])),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef])],null,function(e,n){var t=n.component;e(n,1,0,bl["\u0275unv"](n,1,0,bl["\u0275nov"](n,2).transform(t.route.params.select("id"))))})}function Gt(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275and"](16777216,null,null,1,null,$t)),bl["\u0275did"](1,16384,null,0,xl.k,[bl.ViewContainerRef,bl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),bl["\u0275ted"](-1,null,["\n\n"])),(e()(),bl["\u0275and"](16777216,null,null,1,null,Ht)),bl["\u0275did"](4,16384,null,0,xl.k,[bl.ViewContainerRef,bl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),bl["\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 Wt(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,1,"macro-edit",[["class","container-fluid"]],null,null,null,Gt,hu)),bl["\u0275did"](1,180224,null,0,mu,[Tl.m,zl.a],null,null)],null,null)}function zt(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,10,"div",[["class","row"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](2,0,null,null,7,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-puzzle-piece"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](6,0,null,null,2,"span",[["class","macro__name pane-title__name"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](7,null,["",""])),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n"])),(e()(),bl["\u0275ted"](-1,null,["\nTo be done..."]))],null,function(e,n){var t=n.component;e(n,7,0,bl["\u0275unv"](n,7,0,bl["\u0275nov"](n,8).transform(t.name$)))})}function qt(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,1,"add-on",[["class","container-fluid"]],null,null,null,zt,Tu)),bl["\u0275did"](1,49152,null,0,vu,[zl.a],null,null)],null,null)}function Yt(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,0,"span",[["class","fa fa-spinner fa-spin"]],null,null,null,null,null))],null,null)}function Jt(e){return bl["\u0275vid"](2,[(e()(),bl["\u0275eld"](0,0,null,null,38,"div",[["class","row"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](2,0,null,null,35,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](4,0,null,null,6,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](6,0,null,null,3,"label",[],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](8,0,null,null,0,"input",[["type","checkbox"]],[[8,"checked",0]],[[null,"change"]],function(e,n,t){var l=!0,o=e.component;if("change"===n){l=!1!==o.emitCheckForUpdateOnStartUp(t.target.checked)&&l}return l},null,null)),(e()(),bl["\u0275ted"](-1,null,[" Automatically check for update on\n application start\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n\n "])),(e()(),bl["\u0275eld"](12,0,null,null,6,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](14,0,null,null,3,"label",[],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](16,0,null,null,0,"input",[["type","checkbox"]],[[8,"checked",0]],[[null,"change"]],function(e,n,t){var l=!0,o=e.component;if("change"===n){l=!1!==o.emitUsePreReleaseUpdate(t.target.checked)&&l}return l},null,null)),(e()(),bl["\u0275ted"](-1,null,[" Allow alpha / pre release\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](20,0,null,null,10,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](22,0,null,null,1,"label",[["class","col-sm-2 control-label"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["Version:"])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](25,0,null,null,4,"div",[["class","col-sm-10"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](27,0,null,null,1,"p",[["class","form-control-static"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](28,null,["",""])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n\n "])),(e()(),bl["\u0275eld"](32,0,null,null,4,"button",[["class","btn btn-link"]],null,[[null,"click"]],function(e,n,t){var l=!0,o=e.component;if("click"===n){l=!1!==o.emitCheckForUpdate()&&l}return l},null,null)),(e()(),bl["\u0275ted"](-1,null,["\n Check for update\n "])),(e()(),bl["\u0275and"](16777216,null,null,1,null,Yt)),bl["\u0275did"](35,16384,null,0,xl.k,[bl.ViewContainerRef,bl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n"])),(e()(),bl["\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 Xt(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,1,"auto-update-settings",[],null,null,null,Jt,Su)),bl["\u0275did"](1,49152,null,0,Ou,[],null,null)],null,null)}function Qt(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,9,"div",[["class","row"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](2,0,null,null,6,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-gear"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](6,0,null,null,1,"span",[["class","macro__name pane-title__name"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["Settings"])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n"])),(e()(),bl["\u0275ted"](-1,null,["\n"])),(e()(),bl["\u0275eld"](11,0,null,null,4,"auto-update-settings",[],null,[[null,"toggleCheckForUpdateOnStartUp"],[null,"toggleUsePreReleaseUpdate"],[null,"checkForUpdate"]],function(e,n,t){var l=!0,o=e.component;if("toggleCheckForUpdateOnStartUp"===n){l=!1!==o.toogleCheckForUpdateOnStartUp(t)&&l}if("toggleUsePreReleaseUpdate"===n){l=!1!==o.toogleUsePreReleaseUpdate(t)&&l}if("checkForUpdate"===n){l=!1!==o.checkForUpdate()&&l}return l},Jt,Su)),bl["\u0275did"](12,49152,null,0,Ou,[],{version:[0,"version"],settings:[1,"settings"],checkingForUpdate:[2,"checkingForUpdate"]},{toggleCheckForUpdateOnStartUp:"toggleCheckForUpdateOnStartUp",toggleUsePreReleaseUpdate:"toggleUsePreReleaseUpdate",checkForUpdate:"checkForUpdate"}),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),(e()(),bl["\u0275ted"](-1,null,["\n"])),(e()(),bl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,12,0,t.version,bl["\u0275unv"](n,12,1,bl["\u0275nov"](n,13).transform(t.autoUpdateSettings$)),bl["\u0275unv"](n,12,2,bl["\u0275nov"](n,14).transform(t.checkingForUpdate$)))},null)}function Zt(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,1,"settings",[["class","container-fluid"]],null,null,null,Qt,Ru)),bl["\u0275did"](1,49152,null,0,_u,[Tl.m],null,null)],null,null)}function el(e){return bl["\u0275vid"](2,[(e()(),bl["\u0275eld"](0,0,null,null,7,"div",[["class","app-update-available-wrapper"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n New version available.\n "])),(e()(),bl["\u0275eld"](2,0,null,null,1,"button",[["class","btn btn-primary"],["type","button"]],null,[[null,"click"]],function(e,n,t){var l=!0,o=e.component;if("click"===n){l=!1!==o.updateApp.emit()&&l}return l},null,null)),(e()(),bl["\u0275ted"](-1,null,["Update"])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](5,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],null,[[null,"click"]],function(e,n,t){var l=!0,o=e.component;if("click"===n){l=!1!==o.doNotUpdateApp.emit()&&l}return l},null,null)),(e()(),bl["\u0275ted"](-1,null,["Close"])),(e()(),bl["\u0275ted"](-1,null,["\n"])),(e()(),bl["\u0275ted"](-1,null,["\n"]))],null,null)}function nl(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,1,"app-update-available",[],null,null,null,el,Ku)),bl["\u0275did"](1,49152,null,0,Nu,[],null,null)],null,null)}function tl(e){return bl["\u0275vid"](0,[(e()(),bl["\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)),bl["\u0275did"](1,1589248,null,0,fo,[bl.ElementRef,lo.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,bl["\u0275nov"](n,1).placement)})}function ll(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,17,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](2,0,null,null,14,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),bl["\u0275did"](3,1720320,null,2,zl.n,[zl.m,bl.ElementRef,bl.Renderer2,bl.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),bl["\u0275qud"](603979776,10,{links:1}),bl["\u0275qud"](603979776,11,{linksWithHrefs:1}),bl["\u0275pad"](6,1),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\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!==bl["\u0275nov"](e,9).onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)&&l}return l},null,null)),bl["\u0275did"](9,671744,[[11,4]],0,zl.o,[zl.m,zl.a,xl.h],{routerLink:[0,"routerLink"]},null),bl["\u0275pad"](10,2),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),(e()(),bl["\u0275ted"](12,null,["",""])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275and"](16777216,null,null,1,null,tl)),bl["\u0275did"](15,16384,null,0,xl.k,[bl.ViewContainerRef,bl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\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,bl["\u0275unv"](n,8,0,bl["\u0275nov"](n,11).transform(t.updatingFirmware$)),bl["\u0275nov"](n,9).target,bl["\u0275nov"](n,9).href),e(n,12,0,n.context.$implicit.name)})}function ol(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,14,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](2,0,null,null,11,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),bl["\u0275did"](3,1720320,null,2,zl.n,[zl.m,bl.ElementRef,bl.Renderer2,bl.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),bl["\u0275qud"](603979776,12,{links:1}),bl["\u0275qud"](603979776,13,{linksWithHrefs:1}),bl["\u0275pad"](6,1),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\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!==bl["\u0275nov"](e,9).onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)&&l}return l},null,null)),bl["\u0275did"](9,671744,[[13,4]],0,zl.o,[zl.m,zl.a,xl.h],{routerLink:[0,"routerLink"]},null),bl["\u0275pad"](10,2),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),(e()(),bl["\u0275ted"](12,null,["",""])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\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,bl["\u0275unv"](n,8,0,bl["\u0275nov"](n,11).transform(t.updatingFirmware$)),bl["\u0275nov"](n,9).target,bl["\u0275nov"](n,9).href),e(n,12,0,n.context.$implicit.name)})}function il(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,75,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](2,0,null,null,5,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-puzzle-piece"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,[" Add-on modules\n "])),(e()(),bl["\u0275eld"](6,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,n,t){var l=!0,o=e.component;if("click"===n){l=!1!==o.toggleHide(t,"addon")&&l}return l},null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](9,0,null,null,65,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](11,0,null,null,14,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Key cluster"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](13,0,null,null,11,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),bl["\u0275did"](14,1720320,null,2,zl.n,[zl.m,bl.ElementRef,bl.Renderer2,bl.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),bl["\u0275qud"](603979776,14,{links:1}),bl["\u0275qud"](603979776,15,{linksWithHrefs:1}),bl["\u0275pad"](17,1),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\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!==bl["\u0275nov"](e,20).onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)&&l}return l},null,null)),bl["\u0275did"](20,671744,[[15,4]],0,zl.o,[zl.m,zl.a,xl.h],{routerLink:[0,"routerLink"]},null),bl["\u0275pad"](21,2),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),(e()(),bl["\u0275ted"](-1,null,["Key cluster"])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](27,0,null,null,14,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Trackball"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](29,0,null,null,11,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),bl["\u0275did"](30,1720320,null,2,zl.n,[zl.m,bl.ElementRef,bl.Renderer2,bl.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),bl["\u0275qud"](603979776,16,{links:1}),bl["\u0275qud"](603979776,17,{linksWithHrefs:1}),bl["\u0275pad"](33,1),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\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!==bl["\u0275nov"](e,36).onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)&&l}return l},null,null)),bl["\u0275did"](36,671744,[[17,4]],0,zl.o,[zl.m,zl.a,xl.h],{routerLink:[0,"routerLink"]},null),bl["\u0275pad"](37,2),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),(e()(),bl["\u0275ted"](-1,null,["Trackball"])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](43,0,null,null,14,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Toucpad"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](45,0,null,null,11,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),bl["\u0275did"](46,1720320,null,2,zl.n,[zl.m,bl.ElementRef,bl.Renderer2,bl.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),bl["\u0275qud"](603979776,18,{links:1}),bl["\u0275qud"](603979776,19,{linksWithHrefs:1}),bl["\u0275pad"](49,1),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\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!==bl["\u0275nov"](e,52).onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)&&l}return l},null,null)),bl["\u0275did"](52,671744,[[19,4]],0,zl.o,[zl.m,zl.a,xl.h],{routerLink:[0,"routerLink"]},null),bl["\u0275pad"](53,2),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),(e()(),bl["\u0275ted"](-1,null,["Touchpad"])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](59,0,null,null,14,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Trackpoint"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](61,0,null,null,11,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),bl["\u0275did"](62,1720320,null,2,zl.n,[zl.m,bl.ElementRef,bl.Renderer2,bl.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),bl["\u0275qud"](603979776,20,{links:1}),bl["\u0275qud"](603979776,21,{linksWithHrefs:1}),bl["\u0275pad"](65,1),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\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!==bl["\u0275nov"](e,68).onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)&&l}return l},null,null)),bl["\u0275did"](68,671744,[[21,4]],0,zl.o,[zl.m,zl.a,xl.h],{routerLink:[0,"routerLink"]},null),bl["\u0275pad"](69,2),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),(e()(),bl["\u0275ted"](-1,null,["Trackpoint"])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\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,bl["\u0275unv"](n,19,0,bl["\u0275nov"](n,22).transform(t.updatingFirmware$)),bl["\u0275nov"](n,20).target,bl["\u0275nov"](n,20).href),e(n,35,0,bl["\u0275unv"](n,35,0,bl["\u0275nov"](n,38).transform(t.updatingFirmware$)),bl["\u0275nov"](n,36).target,bl["\u0275nov"](n,36).href),e(n,51,0,bl["\u0275unv"](n,51,0,bl["\u0275nov"](n,54).transform(t.updatingFirmware$)),bl["\u0275nov"](n,52).target,bl["\u0275nov"](n,52).href),e(n,67,0,bl["\u0275unv"](n,67,0,bl["\u0275nov"](n,70).transform(t.updatingFirmware$)),bl["\u0275nov"](n,68).target,bl["\u0275nov"](n,68).href)})}function al(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,15,"ul",[["class","menu--bottom"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](2,0,null,null,12,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),bl["\u0275did"](3,1720320,null,2,zl.n,[zl.m,bl.ElementRef,bl.Renderer2,bl.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),bl["\u0275qud"](603979776,22,{links:1}),bl["\u0275qud"](603979776,23,{linksWithHrefs:1}),bl["\u0275pad"](6,1),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](8,0,null,null,5,"a",[["class","sidebar__level-1"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,n,t){var l=!0;if("click"===n){l=!1!==bl["\u0275nov"](e,9).onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)&&l}return l},null,null)),bl["\u0275did"](9,671744,[[23,4]],0,zl.o,[zl.m,zl.a,xl.h],{routerLink:[0,"routerLink"]},null),bl["\u0275pad"](10,1),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](12,0,null,null,0,"i",[["class","fa fa-gear"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,[" Settings\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n"]))],function(e,n){e(n,3,0,e(n,6,0,"active")),e(n,9,0,e(n,10,0,"/settings"))},function(e,n){e(n,8,0,bl["\u0275nov"](n,9).target,bl["\u0275nov"](n,9).href)})}function cl(e){return bl["\u0275vid"](0,[bl["\u0275qud"](402653184,1,{deviceName:0}),(e()(),bl["\u0275eld"](1,0,null,null,139,"ul",[["class","menu--top"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](3,0,null,null,136,"li",[["class","sidebar__level-0--item"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](5,0,null,null,8,"div",[["class","sidebar__level-0"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](7,0,null,null,0,"i",[["class","uhk-icon uhk-icon-0401-usb-stick rotate-right"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\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,o=e.component;if("focus"===n){l=!1!==bl["\u0275nov"](e,10).onFocus()&&l}if("keyup.escape"===n){l=!1!==bl["\u0275nov"](e,10).onEscape()&&l}if("change"===n){l=!1!==o.editDeviceName(t.target.value)&&l}if("keyup.enter"===n){l=!1!==bl["\u0275nov"](e,9).blur()&&l}if("keyup"===n){l=!1!==o.calculateHeaderTextWidth(t.target.value)&&l}return l},null,null)),bl["\u0275did"](10,16384,null,0,ti,[bl.ElementRef,bl.Renderer],null,null),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](12,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,n,t){var l=!0,o=e.component;if("click"===n){l=!1!==o.toggleHide(t,"device")&&l}return l},null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](15,0,null,null,123,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](17,0,null,null,75,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](19,0,null,null,5,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](21,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,[" Device\n "])),(e()(),bl["\u0275eld"](23,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,n,t){var l=!0,o=e.component;if("click"===n){l=!1!==o.toggleHide(t,"configuration")&&l}return l},null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](26,0,null,null,65,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](28,0,null,null,14,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](30,0,null,null,11,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),bl["\u0275did"](31,1720320,null,2,zl.n,[zl.m,bl.ElementRef,bl.Renderer2,bl.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),bl["\u0275qud"](603979776,2,{links:1}),bl["\u0275qud"](603979776,3,{linksWithHrefs:1}),bl["\u0275pad"](34,1),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\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!==bl["\u0275nov"](e,37).onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)&&l}return l},null,null)),bl["\u0275did"](37,671744,[[3,4]],0,zl.o,[zl.m,zl.a,xl.h],{routerLink:[0,"routerLink"]},null),bl["\u0275pad"](38,1),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),(e()(),bl["\u0275ted"](-1,null,["Mouse speed"])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](44,0,null,null,14,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](46,0,null,null,11,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),bl["\u0275did"](47,1720320,null,2,zl.n,[zl.m,bl.ElementRef,bl.Renderer2,bl.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),bl["\u0275qud"](603979776,4,{links:1}),bl["\u0275qud"](603979776,5,{linksWithHrefs:1}),bl["\u0275pad"](50,1),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\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!==bl["\u0275nov"](e,53).onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)&&l}return l},null,null)),bl["\u0275did"](53,671744,[[5,4]],0,zl.o,[zl.m,zl.a,xl.h],{routerLink:[0,"routerLink"]},null),bl["\u0275pad"](54,1),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),(e()(),bl["\u0275ted"](-1,null,["LED brightness"])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](60,0,null,null,14,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](62,0,null,null,11,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),bl["\u0275did"](63,1720320,null,2,zl.n,[zl.m,bl.ElementRef,bl.Renderer2,bl.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),bl["\u0275qud"](603979776,6,{links:1}),bl["\u0275qud"](603979776,7,{linksWithHrefs:1}),bl["\u0275pad"](66,1),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\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!==bl["\u0275nov"](e,69).onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)&&l}return l},null,null)),bl["\u0275did"](69,671744,[[7,4]],0,zl.o,[zl.m,zl.a,xl.h],{routerLink:[0,"routerLink"]},null),bl["\u0275pad"](70,1),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),(e()(),bl["\u0275ted"](-1,null,["Configuration"])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](76,0,null,null,14,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](78,0,null,null,11,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),bl["\u0275did"](79,1720320,null,2,zl.n,[zl.m,bl.ElementRef,bl.Renderer2,bl.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),bl["\u0275qud"](603979776,8,{links:1}),bl["\u0275qud"](603979776,9,{linksWithHrefs:1}),bl["\u0275pad"](82,1),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\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!==bl["\u0275nov"](e,85).onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)&&l}return l},null,null)),bl["\u0275did"](85,671744,[[9,4]],0,zl.o,[zl.m,zl.a,xl.h],{routerLink:[0,"routerLink"]},null),bl["\u0275pad"](86,1),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),(e()(),bl["\u0275ted"](-1,null,["Firmware"])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](94,0,null,null,16,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](96,0,null,null,6,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](98,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,[" Keymaps\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](101,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,n,t){var l=!0,o=e.component;if("click"===n){l=!1!==o.toggleHide(t,"keymap")&&l}return l},null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](104,0,null,null,5,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275and"](16777216,null,null,2,null,ll)),bl["\u0275did"](107,802816,null,0,xl.j,[bl.ViewContainerRef,bl.TemplateRef,bl.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](112,0,null,null,21,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](114,0,null,null,11,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](116,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,[" Macros\n "])),(e()(),bl["\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,o=e.component;if("click"===n){l=!1!==o.addMacro()&&l}return l},null,null)),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](121,0,null,null,0,"i",[["class","fa fa-plus"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](124,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,n,t){var l=!0,o=e.component;if("click"===n){l=!1!==o.toggleHide(t,"macro")&&l}return l},null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](127,0,null,null,5,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275and"](16777216,null,null,2,null,ol)),bl["\u0275did"](130,802816,null,0,xl.j,[bl.ViewContainerRef,bl.TemplateRef,bl.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275and"](16777216,null,null,2,null,il)),bl["\u0275did"](136,16384,null,0,xl.k,[bl.ViewContainerRef,bl.TemplateRef],{ngIf:[0,"ngIf"]},null),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),(e()(),bl["\u0275ted"](-1,null,["\n\n "])),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275ted"](-1,null,["\n"])),(e()(),bl["\u0275ted"](-1,null,["\n"])),(e()(),bl["\u0275and"](16777216,null,null,2,null,al)),bl["\u0275did"](143,16384,null,0,xl.k,[bl.ViewContainerRef,bl.TemplateRef],{ngIf:[0,"ngIf"]},null),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),(e()(),bl["\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,bl["\u0275unv"](n,107,0,bl["\u0275nov"](n,108).transform(t.keymaps$))),e(n,130,0,bl["\u0275unv"](n,130,0,bl["\u0275nov"](n,131).transform(t.macros$))),e(n,136,0,bl["\u0275unv"](n,136,0,bl["\u0275nov"](n,137).transform(t.showAddonMenu$))),e(n,143,0,bl["\u0275unv"](n,143,0,bl["\u0275nov"](n,144).transform(t.runInElectron$)))},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,bl["\u0275unv"](n,36,0,bl["\u0275nov"](n,39).transform(t.updatingFirmware$)),bl["\u0275nov"](n,37).target,bl["\u0275nov"](n,37).href),e(n,52,0,bl["\u0275unv"](n,52,0,bl["\u0275nov"](n,55).transform(t.updatingFirmware$)),bl["\u0275nov"](n,53).target,bl["\u0275nov"](n,53).href),e(n,68,0,bl["\u0275unv"](n,68,0,bl["\u0275nov"](n,71).transform(t.updatingFirmware$)),bl["\u0275nov"](n,69).target,bl["\u0275nov"](n,69).href),e(n,84,0,bl["\u0275unv"](n,84,0,bl["\u0275nov"](n,87).transform(t.updatingFirmware$)),bl["\u0275nov"](n,85).target,bl["\u0275nov"](n,85).href),e(n,104,0,t.animation.keymap),e(n,118,0,bl["\u0275unv"](n,118,0,bl["\u0275nov"](n,119).transform(t.updatingFirmware$))),e(n,127,0,t.animation.macro)})}function ul(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,1,"side-menu",[],null,null,null,cl,Vu)),bl["\u0275did"](1,1228800,null,0,ju,[Tl.m,bl.Renderer2],null,null)],null,null)}function rl(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-spin fa-spinner"]],null,null,null,null,null))],null,null)}function sl(e){return bl["\u0275vid"](2,[(e()(),bl["\u0275eld"](0,0,null,null,4,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,n,t){var l=!0,o=e.component;if("click"===n){l=!1!==o.onClicked()&&l}return l},null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275and"](16777216,null,null,1,null,rl)),bl["\u0275did"](3,16384,null,0,xl.k,[bl.ViewContainerRef,bl.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),bl["\u0275ted"](4,null,[" ","\n"])),(e()(),bl["\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 dl(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,1,"progress-button",[],null,null,null,sl,Wu)),bl["\u0275did"](1,49152,null,0,Hu,[],null,null)],null,null)}function pl(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,2,"app-update-available",[],null,[[null,"updateApp"],[null,"doNotUpdateApp"]],function(e,n,t){var l=!0,o=e.component;if("updateApp"===n){l=!1!==o.updateApp()&&l}if("doNotUpdateApp"===n){l=!1!==o.doNotUpdateApp()&&l}return l},el,Ku)),bl["\u0275did"](1,49152,null,0,Nu,[],null,{updateApp:"updateApp",doNotUpdateApp:"doNotUpdateApp"}),(e()(),bl["\u0275ted"](-1,null,["\n"]))],null,null)}function yl(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,1,"side-menu",[],null,null,null,cl,Vu)),bl["\u0275did"](1,1228800,null,0,ju,[Tl.m,bl.Renderer2],null,null)],null,null)}function fl(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,4,"div",[["class","github-fork-ribbon"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](2,0,null,null,1,"a",[["class",""],["href","https://github.com/UltimateHackingKeyboard/agent"],["title","Fork me on GitHub"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["Fork me on GitHub"])),(e()(),bl["\u0275ted"](-1,null,["\n"]))],null,null)}function ml(e){return bl["\u0275vid"](0,[(e()(),bl["\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,o=e.component;if("clicked"===n){l=!1!==o.clickedOnProgressButton(t)&&l}return l},sl,Wu)),bl["\u0275did"](1,49152,null,0,Hu,[],{state:[0,"state"]},{clicked:"clicked"}),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef])],function(e,n){var t=n.component;e(n,1,0,bl["\u0275unv"](n,1,0,bl["\u0275nov"](n,2).transform(t.saveToKeyboardState$)))},function(e,n){e(n,0,0,void 0)})}function kl(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275and"](16777216,null,null,2,null,pl)),bl["\u0275did"](1,16384,null,0,xl.k,[bl.ViewContainerRef,bl.TemplateRef],{ngIf:[0,"ngIf"]},null),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),(e()(),bl["\u0275ted"](-1,null,["\n\n"])),(e()(),bl["\u0275and"](16777216,null,null,2,null,yl)),bl["\u0275did"](5,16384,null,0,xl.k,[bl.ViewContainerRef,bl.TemplateRef],{ngIf:[0,"ngIf"]},null),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),(e()(),bl["\u0275ted"](-1,null,["\n"])),(e()(),bl["\u0275eld"](8,0,null,null,4,"div",[["class","main-content"],["id","main-content"]],null,null,null,null,null)),(e()(),bl["\u0275ted"](-1,null,["\n "])),(e()(),bl["\u0275eld"](10,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),bl["\u0275did"](11,212992,null,0,zl.q,[zl.b,bl.ViewContainerRef,bl.ComponentFactoryResolver,[8,null],bl.ChangeDetectorRef],null,null),(e()(),bl["\u0275ted"](-1,null,["\n"])),(e()(),bl["\u0275ted"](-1,null,["\n"])),(e()(),bl["\u0275and"](16777216,null,null,2,null,fl)),bl["\u0275did"](15,16384,null,0,xl.k,[bl.ViewContainerRef,bl.TemplateRef],{ngIf:[0,"ngIf"]},null),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),(e()(),bl["\u0275ted"](-1,null,["\n"])),(e()(),bl["\u0275eld"](18,0,null,null,1,"notifier-container",[["class","notifier__container"]],null,null,null,zu.b,zu.a)),bl["\u0275did"](19,245760,null,0,qu.g,[bl.ChangeDetectorRef,qu.h,qu.b],null,null),(e()(),bl["\u0275ted"](-1,null,["\n"])),(e()(),bl["\u0275and"](16777216,null,null,2,null,ml)),bl["\u0275did"](22,16384,null,0,xl.k,[bl.ViewContainerRef,bl.TemplateRef],{ngIf:[0,"ngIf"]},null),bl["\u0275pid"](131072,xl.b,[bl.ChangeDetectorRef]),(e()(),bl["\u0275ted"](-1,null,["\n"]))],function(e,n){var t=n.component;e(n,1,0,bl["\u0275unv"](n,1,0,bl["\u0275nov"](n,2).transform(t.showUpdateAvailable$))),e(n,5,0,bl["\u0275unv"](n,5,0,bl["\u0275nov"](n,6).transform(t.deviceConfigurationLoaded$))),e(n,11,0),e(n,15,0,!bl["\u0275unv"](n,15,0,bl["\u0275nov"](n,16).transform(t.runningInElectron$))),e(n,19,0),e(n,22,0,bl["\u0275unv"](n,22,0,bl["\u0275nov"](n,23).transform(t.saveToKeyboardState$)).showButton)},null)}function hl(e){return bl["\u0275vid"](0,[(e()(),bl["\u0275eld"](0,0,null,null,1,"main-app",[],null,null,null,kl,Ju)),bl["\u0275did"](1,49152,null,0,wl,[Tl.m],null,null)],null,null)}Object.defineProperty(n,"__esModule",{value:!0});var gl,bl=t("/oeL"),vl=t("p5Ee"),Al=function(){function e(){}return e}(),Tl=t("ADVA"),Ml=(t("dy5W"),t("vBds")),Cl=t("KN1q"),wl=function(){function e(e){this.store=e,this.showUpdateAvailable$=e.select(Cl.l),this.deviceConfigurationLoaded$=e.select(Cl.b),this.runningInElectron$=e.select(Cl.p),this.saveToKeyboardState$=e.select(Cl.q)}return e.prototype.updateApp=function(){this.store.dispatch(new Ml.c)},e.prototype.doNotUpdateApp=function(){this.store.dispatch(new Ml.b)},e.prototype.clickedOnProgressButton=function(e){return this.store.dispatch(e)},e.ctorParameters=function(){return[{type:Tl.m}]},e}(),_l=t("UOfe"),Ol=[".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)}}"],xl=t("qbdv"),Sl=function(){function e(){this.rotateLogo=!1}return e}(),Pl=[Ol],Rl=bl["\u0275crt"]({encapsulation:0,styles:Pl,data:{}}),Il=(bl["\u0275ccf"]("uhk-message",Sl,o,{header:"header",subtitle:"subtitle",rotateLogo:"rotateLogo"},{},[]),t("MBEm"),t("IpZT"),t("86mp"),function(){function e(){}return e.ctorParameters=function(){return[]},e}()),El=[],Ul=bl["\u0275crt"]({encapsulation:2,styles:El,data:{}}),Nl=bl["\u0275ccf"]("missing-device",Il,a,{},{},[]),Ll=[".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%}"],Kl=(t("/zHi"),t("S7im"),t("CyOy")),Dl=function(){function e(e){this.store=e}return e.prototype.setUpPermissions=function(){this.store.dispatch(new Kl.j)},e.ctorParameters=function(){return[{type:Tl.m}]},e}(),jl=[Ll],Fl=bl["\u0275crt"]({encapsulation:0,styles:jl,data:{}}),Vl=bl["\u0275ccf"]("privilege-checker",Dl,u,{},{},[]),Bl=function(){function e(){}return e.ctorParameters=function(){return[]},e}(),$l=[],Hl=bl["\u0275crt"]({encapsulation:2,styles:$l,data:{}}),Gl=bl["\u0275ccf"]("loading-device",Bl,s,{},{},[]),Wl=function(){function e(){}return e.prototype.onActivate=function(e,n){n.scrollIntoView()},e.ctorParameters=function(){return[]},e}(),zl=t("BkNc"),ql=["[_nghost-%COMP%]{height:100%; width:100%}"],Yl=bl["\u0275crt"]({encapsulation:0,styles:ql,data:{}}),Jl=bl["\u0275ccf"]("main-page",Wl,p,{},{},[]),Xl=["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}[_nghost-%COMP%] p[_ngcontent-%COMP%]{margin:1.5rem 0}"],Ql=t("pSU5"),Zl=function(){function e(e){this.store=e}return e.prototype.resetUserConfiguration=function(){this.store.dispatch(new Kl.e)},e.prototype.saveConfigurationInJSONFormat=function(){this.store.dispatch(new Ql.j)},e.prototype.saveConfigurationInBINFormat=function(){this.store.dispatch(new Ql.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 Ql.g({filename:e.srcElement.value,data:Array.from(n)}))}.bind(this),t.readAsArrayBuffer(n[0])},e.ctorParameters=function(){return[{type:Tl.m}]},e}(),eo=t("KRXn"),no=t("BJSQ"),to=t("7/Pv"),lo=t("fc+i"),oo=[Xl],io=bl["\u0275crt"]({encapsulation:0,styles:oo,data:{}}),ao=bl["\u0275ccf"]("device-settings",Zl,f,{},{},[]),co=["[_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}"],uo=["[_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}"],ro=["[_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}"],so=function(){function e(){}return e.prototype.ngOnInit=function(){},e.ctorParameters=function(){return[]},e}(),po=[ro],yo=bl["\u0275crt"]({encapsulation:0,styles:po,data:{}}),fo=(bl["\u0275ccf"]("icon",so,O,{name:"name"},{},[]),function(){function e(e,n){this.elementRef=e,this.sanitizer=n,this.customTooltipTemplate='\n
\n
\n
\n
\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:bl.ElementRef},{type:lo.c}]},e}()),mo=t("bKpL"),ko=(t("azLz"),function(){function e(){this.onChange=new bl.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 mo.Observable.create(function(e){n.changeObserver$=e}).debounceTime(this.changeDebounceTime).distinctUntilChanged().subscribe(this.propagateChange);this.changeObserver$.next(e)},e}()),ho=t("4Id2"),go=t("u+1Z"),bo=t("bm2B"),vo=[uo],Ao=bl["\u0275crt"]({encapsulation:0,styles:vo,data:{}}),To=(bl["\u0275ccf"]("slider-wrapper",ko,R,{label:"label",tooltip:"tooltip",min:"min",max:"max",step:"step",pips:"pips",valueUnit:"valueUnit"},{onChange:"onChange"},[]),t("xDyD")),Mo=25,Co=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 decelerate key pressed.",valueUnit:"px/s",value:0},{prop:"mouseMoveAcceleratedSpeed",title:"Accelerated speed",tooltip:"This speed is used while moving with the accelerate key 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 decelerate key pressed.",valueUnit:"pulse/s",value:0},{prop:"mouseScrollAcceleratedSpeed",title:"Accelerated speed",tooltip:"This speed is used while scrolling with the accelerate key pressed.",valueUnit:"pulse/s",value:0}],this.sliderPips={mode:"positions",values:[0,50,100],density:6,stepped:!0},this.moveSettings={min:Mo,max:6375,step:Mo},this.scrollSettings={min:1,max:255,step:1}}return e.prototype.ngOnInit=function(){var e=this;this.userConfig$=this.store.select(Cl.n),this.userConfigSubscription=this.userConfig$.subscribe(function(n){e.moveProps.forEach(function(e){e.value=n[e.prop]*Mo||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 Ql.l({propertyName:e,value:-1!==e.indexOf("mouseMove")?n/Mo:n}))},e.prototype.resetToDefault=function(){this.store.dispatch(new Kl.d)},e.ctorParameters=function(){return[{type:Tl.m},{type:To.a}]},e}(),wo=[co],_o=bl["\u0275crt"]({encapsulation:0,styles:wo,data:{}}),Oo=bl["\u0275ccf"]("device-mouse-speed",Co,N,{},{},[]),xo=["[_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}"],So=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(Cl.n),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 Ql.l({propertyName:e,value:n}))},e.ctorParameters=function(){return[{type:Tl.m}]},e}(),Po=[xo],Ro=bl["\u0275crt"]({encapsulation:0,styles:Po,data:{}}),Io=bl["\u0275ccf"]("device-led-brightness",So,K,{},{},[]),Eo=["[_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}"],Uo=function(){function e(e){var n=this;this.store=e,this.flashFirmwareButtonDisbabled$=e.select(Cl.e),this.xtermLog$=e.select(Cl.t),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(Cl.f),this.firmwareOkButtonDisabled$=e.select(Cl.d)}return e.prototype.ngOnDestroy=function(){this.xtermLogSubscription.unsubscribe()},e.prototype.onUpdateFirmware=function(){this.store.dispatch(new Kl.m)},e.prototype.onUpdateFirmwareWithFile=function(){this.arrayBuffer&&this.store.dispatch(new Kl.r(Array.prototype.slice.call(this.arrayBuffer)))},e.prototype.onOkButtonClick=function(){this.store.dispatch(new Kl.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:Tl.m}]},e}(),No=['[_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:"$ "}'],Lo=function(){function e(){this.logs=[]}return e}(),Ko=[No],Do=bl["\u0275crt"]({encapsulation:0,styles:Ko,data:{}}),jo=(bl["\u0275ccf"]("xterm",Lo,F,{logs:"logs"},{},[]),[Eo]),Fo=bl["\u0275crt"]({encapsulation:0,styles:jo,data:{}}),Vo=bl["\u0275ccf"]("device-firmware",Uo,B,{},{},[]),Bo=["[_nghost-%COMP%]{width:100%;display:block}.not-found[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;text-align:center}"],$o=["[_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}"],Ho=t("5II9"),Go=function(){function e(e){this.store=e,this.undoableNotification$=this.store.select(Cl.m)}return e.prototype.onUndoLastNotification=function(e){this.store.dispatch(new Ho.i(e))},e.prototype.onDismissLastNotification=function(){this.store.dispatch(new Ho.d)},e.ctorParameters=function(){return[{type:Tl.m}]},e}(),Wo=[".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}"],zo=function(){function e(){this.close=new bl.EventEmitter,this.undo=new bl.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}(),qo=[Wo],Yo=bl["\u0275crt"]({encapsulation:0,styles:qo,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:{}}]}}),Jo=(bl["\u0275ccf"]("undoable-notifier",zo,G,{notification:"notification"},{close:"close",undo:"undo"},[]),[]),Xo=bl["\u0275crt"]({encapsulation:2,styles:Jo,data:{}}),Qo=(bl["\u0275ccf"]("uhk-header",Go,z,{},{},["*"]),t("NfUz")),Zo=t("n4Nn"),ei='Delete keymap',ni=function(){function e(e,n){this.store=e,this.renderer=n,this.downloadClick=new bl.EventEmitter,this.trashTitle=ei}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(Qo.a.setDefault(this.keymap.abbreviation))},e.prototype.removeKeymap=function(){this.deletable&&this.store.dispatch(Qo.a.removeKeymap(this.keymap.abbreviation))},e.prototype.duplicateKeymap=function(){this.store.dispatch(Qo.a.duplicateKeymap(this.keymap))},e.prototype.editKeymapName=function(e){if(!Zo.b(e))return void this.setName();this.store.dispatch(Qo.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(Qo.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?ei:'The last keymap cannot be deleted.'},e.prototype.onDownloadIconClick=function(){this.downloadClick.emit()},e.prototype.calculateHeaderTextWidth=function(e){var n=this.keymapName.nativeElement,t=n.parentElement.offsetWidth-530,l=Zo.a(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:Tl.m},{type:bl.Renderer2}]},e}(),ti=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:bl.ElementRef},{type:bl.Renderer}]},e}(),li=[$o],oi=bl["\u0275crt"]({encapsulation:0,styles:li,data:{}}),ii=(bl["\u0275ccf"]("keymap-header",ni,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}"]),ai=["[_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}"],ci=function(){function e(){this.select=new bl.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}(),ui=[ai],ri=bl["\u0275crt"]({encapsulation:0,styles:ui,data:{}}),si=(bl["\u0275ccf"]("layers",ci,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}"]),di=["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;position:relative}"],pi=["[_nghost-%COMP%]{position:relative}"],yi=["[_nghost-%COMP%]{cursor:pointer;outline:none}[_nghost-%COMP%] text{dominant-baseline:central}[_nghost-%COMP%]:hover{fill:#494949}"],fi=[".disabled[_ngcontent-%COMP%]{fill:gray}text[_ngcontent-%COMP%]{font-size:100px}"],mi=function(){function e(){}return e.prototype.ngOnInit=function(){this.svgWidth=this.width/3,this.svgHeight=this.height/3},e.ctorParameters=function(){return[]},e}(),ki=[],hi=bl["\u0275crt"]({encapsulation:2,styles:ki,data:{}}),gi=(bl["\u0275ccf"]("g[svg-single-icon-key]",mi,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}()),bi=[],vi=bl["\u0275crt"]({encapsulation:2,styles:bi,data:{}}),Ai=(bl["\u0275ccf"]("g[svg-one-line-text-key]",gi,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.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}(),_i=function(){function e(){this.width=0,this.height=0,this.x=0,this.y=0,this.disabled=!0}return e}(),Oi=function(){function e(e){this.mapper=e,this.modifierIconNames={},this.textContainer=new _i,this.modifierContainer=new _i,this.shift=new _i,this.control=new _i,this.option=new _i,this.command=new _i}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,o=.8,i=o*n*t,a=o*l;this.modifierContainer.width=this.width,this.modifierContainer.height=this.height/5,this.modifierContainer.y=this.height-this.modifierContainer.height,this.shift.width=i,this.shift.height=a,this.shift.x=(t-i)/2,this.shift.y=(l-a)/2,this.control.width=i,this.control.height=a,this.control.x=this.shift.x+t,this.control.y=this.shift.y,this.option.width=i,this.option.height=a,this.option.x=this.control.x+t,this.option.y=this.shift.y,this.command.width=i,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 c=Math.min(this.modifierContainer.width/2,this.modifierContainer.height/2),o=.8,i=o*this.width*(c/this.modifierContainer.width),a=o*this.height*(c/this.modifierContainer.height);this.shift.width=i,this.shift.height=a,this.shift.x=this.width/4-i/2,this.shift.y=this.height/4-a/2,this.control.width=i,this.control.height=a,this.control.x=this.shift.x+this.width/2,this.control.y=this.shift.y,this.option.width=i,this.option.height=a,this.option.x=this.shift.x,this.option.y=this.shift.y+this.height/2,this.command.width=i,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(Ci.KeyModifiers.leftShift|Ci.KeyModifiers.rightShift),this.control.disabled=!this.keystrokeAction.isActive(Ci.KeyModifiers.leftCtrl|Ci.KeyModifiers.rightCtrl),this.option.disabled=!this.keystrokeAction.isActive(Ci.KeyModifiers.leftAlt|Ci.KeyModifiers.rightAlt),this.command.disabled=!this.keystrokeAction.isActive(Ci.KeyModifiers.leftGui|Ci.KeyModifiers.rightGui)},e.ctorParameters=function(){return[{type:wi}]},e}(),xi=[fi],Si=bl["\u0275crt"]({encapsulation:0,styles:xi,data:{}}),Pi=(bl["\u0275ccf"]("g[svg-keystroke-key]",Oi,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}()),Ri=[],Ii=bl["\u0275crt"]({encapsulation:2,styles:Ri,data:{}}),Ei=(bl["\u0275ccf"]("g[svg-text-icon-key]",Pi,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}()),Ui=[],Ni=bl["\u0275crt"]({encapsulation:2,styles:Ui,data:{}}),Li=(bl["\u0275ccf"]("g[svg-icon-text-key]",Ei,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:wi}]},e}()),Ki=[],Di=bl["\u0275crt"]({encapsulation:2,styles:Ki,data:{}}),ji=(bl["\u0275ccf"]("g[svg-switch-keymap-key]",Li,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:wi}]},e}()),Fi=[],Vi=bl["\u0275crt"]({encapsulation:2,styles:Fi,data:{}}),Bi=(bl["\u0275ccf"]("g[svg-mouse-click-key]",ji,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:wi}]},e}()),$i=[],Hi=bl["\u0275crt"]({encapsulation:2,styles:$i,data:{}}),Gi=(bl["\u0275ccf"]("g[svg-mouse-move-key]",Bi,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:wi}]},e}()),Wi=[],zi=bl["\u0275crt"]({encapsulation:2,styles:Wi,data:{}}),qi=(bl["\u0275ccf"]("g[svg-mouse-scroll-key]",Gi,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:wi}]},e}()),Yi=[],Ji=bl["\u0275crt"]({encapsulation:2,styles:Yi,data:{}}),Xi=(bl["\u0275ccf"]("g[svg-mouse-speed-key]",qi,Ce,{plus:"plus"},{},[]),function(){function e(){}return e.prototype.ngOnChanges=function(){switch(this.mouseAction.mouseAction){case Ci.MouseActionParam.leftClick:this.type="click",this.param="Left";break;case Ci.MouseActionParam.rightClick:this.type="click",this.param="Right";break;case Ci.MouseActionParam.middleClick:this.type="click",this.param="Middle";break;case Ci.MouseActionParam.scrollDown:this.type="scroll",this.param="down";break;case Ci.MouseActionParam.scrollLeft:this.type="scroll",this.param="left";break;case Ci.MouseActionParam.scrollRight:this.type="scroll",this.param="right";break;case Ci.MouseActionParam.scrollUp:this.type="scroll",this.param="up";break;case Ci.MouseActionParam.moveDown:this.type="move",this.param="down";break;case Ci.MouseActionParam.moveLeft:this.type="move",this.param="left";break;case Ci.MouseActionParam.moveRight:this.type="move",this.param="right";break;case Ci.MouseActionParam.moveUp:this.type="move",this.param="up";break;case Ci.MouseActionParam.accelerate:this.type="speed",this.param=!0;break;case Ci.MouseActionParam.decelerate:this.type="speed",this.param=!1}},e.ctorParameters=function(){return[]},e}()),Qi=[],Zi=bl["\u0275crt"]({encapsulation:2,styles:Qi,data:{}}),ea=(bl["\u0275ccf"]("g[svg-mouse-key]",Xi,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}()),na=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"}(gl||(gl={}));var ta,la=function(){function e(e,n,t,l,o){var i=this;this.mapper=e,this.element=t,this.captureService=l,this.renderer=o,this.keyClick=new bl.EventEmitter,this.capture=new bl.EventEmitter,this.enumLabelTypes=gl,this.changeAnimation="inactive",this.subscription=n.let(Object(na.e)()).subscribe(function(e){return i.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=gl.OneLineText);if(this.labelType=gl.OneLineText,this.keyAction instanceof Ci.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=gl.SingleIcon):void 0!==n&&(1===n.length?(this.labelSource=n[0],this.labelType=gl.OneLineText):(this.labelSource=n,this.labelType=gl.TwoLineText))}else if(e.hasOnlyOneActiveModifier()&&!e.hasScancode()){switch(n=[],e.modifierMask){case Ci.KeyModifiers.leftCtrl:case Ci.KeyModifiers.rightCtrl:n.push("Ctrl");break;case Ci.KeyModifiers.leftShift:case Ci.KeyModifiers.rightShift:n.push("Shift");break;case Ci.KeyModifiers.leftAlt:case Ci.KeyModifiers.rightAlt:n.push("Alt");break;case Ci.KeyModifiers.leftGui:case Ci.KeyModifiers.rightGui:n.push("Super");break;default:n.push("Undefined")}this.labelSource=n}else this.labelType=gl.KeystrokeKey,this.labelSource=this.keyAction}else if(this.keyAction instanceof Ci.SwitchLayerAction){var e=this.keyAction,n=void 0;switch(e.layer){case Ci.LayerName.mod:n="Mod";break;case Ci.LayerName.fn:n="Fn";break;case Ci.LayerName.mouse:n="Mouse"}e.isLayerToggleable?(this.labelType=gl.TextIcon,this.labelSource={text:n,icon:this.mapper.getIcon("toggle")}):(this.labelType=gl.OneLineText,this.labelSource=n)}else if(this.keyAction instanceof Ci.SwitchKeymapAction){var e=this.keyAction;this.labelType=gl.SwitchKeymap,this.labelSource=e.keymapAbbreviation}else if(this.keyAction instanceof Ci.PlayMacroAction){var l=this.keyAction,o=this.macros.find(function(e){return e.id===l.macroId});this.labelType=gl.IconText,this.labelSource={icon:this.mapper.getIcon("macro"),text:o.name}}else this.keyAction instanceof Ci.MouseAction?(this.labelType=gl.MouseKey,this.labelSource=this.keyAction):this.labelSource=void 0},e.ctorParameters=function(){return[{type:wi},{type:Tl.m},{type:bl.ElementRef},{type:ea},{type:bl.Renderer}]},e}(),oa=[yi],ia=bl["\u0275crt"]({encapsulation:0,styles:oa,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:{}}]}}),aa=(bl["\u0275ccf"]("g[svg-keyboard-key]",la,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:lo.c}]},e}()),ca=function(){function e(){this.keyClick=new bl.EventEmitter,this.keyHover=new bl.EventEmitter,this.capture=new bl.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}(),ua=[pi],ra=bl["\u0275crt"]({encapsulation:0,styles:ua,data:{}}),sa=(bl["\u0275ccf"]("g[svg-module]",ca,ze,{coverages:"coverages",keyboardKeys:"keyboardKeys",keyActions:"keyActions",selectedKey:"selectedKey",selected:"selected",keybindAnimationEnabled:"keybindAnimationEnabled",capturingEnabled:"capturingEnabled"},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture"},[]),function(){function e(e){var n,t=e.rect.map(function(e){return e.$});this.keyboardKeys=[];for(var l=0;l *",animation:{type:4,styles:null,timings:500},options:null}],options:{}}]}}),ka=(bl["\u0275ccf"]("svg-keyboard",ya,Je,{moduleConfig:"moduleConfig",keybindAnimationEnabled:"keybindAnimationEnabled",capturingEnabled:"capturingEnabled",selectedKey:"selectedKey",selected:"selected",halvesSplit:"halvesSplit",keyboardLayout:"keyboardLayout"},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture"},[]),function(){function e(){this.keyboardLayout=da.a.ANSI,this.keyClick=new bl.EventEmitter,this.keyHover=new bl.EventEmitter,this.capture=new bl.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}()),ha=[si],ga=bl["\u0275crt"]({encapsulation:0,styles:ha,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:{}}]}}),ba=(bl["\u0275ccf"]("keyboard-slider",ka,Ze,{layers:"layers",currentLayer:"currentLayer",keybindAnimationEnabled:"keybindAnimationEnabled",capturingEnabled:"capturingEnabled",halvesSplit:"halvesSplit",selectedKey:"selectedKey",keyboardLayout:"keyboardLayout"},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture"},[]),['.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}']),va=["[_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%] .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}"],Aa=t("4D/6"),Ta=t("foYT"),Ma=function(){function e(){this.validAction=new bl.EventEmitter}return e}(),Ca=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)}}(),wa=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(''+e.text+' '+e.additional.explanation+""):jQuery(''+e.text+""):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 Ca(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,Ci.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 Ci.KeystrokeAction))return!1;var n=e;this.selectedScancodeOption=this.findScancodeOptionByScancode(n.scancode||0,n.type);for(var t=this.leftModifiers.length,l=0;l>l&1);for(var l=t;l>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 Ci.KeystrokeAction,n=this.toScancodeTypePair(this.selectedScancodeOption);e.scancode=n[0],"media"===n[1]?e.type=Ci.KeystrokeType.shortMedia:e.type=Ci.KeystrokeType[n[1]],e.modifierMask=0;for(var t=this.leftModifierSelects.concat(this.rightModifierSelects).map(function(e){return e?1:0}),l=0;l0;){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===Ci.KeystrokeType.shortMedia||n===Ci.KeystrokeType.longMedia?"media":Ci.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:wi}]},n}(Ma),_a=[".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}"],Oa=function(){function e(e){this.captureService=e,this.isLink=!1,this.captureText="Capture keystroke",this.capture=new bl.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:ea}]},e}(),xa=[_a],Sa=bl["\u0275crt"]({encapsulation:0,styles:xa,data:{}}),Pa=(bl["\u0275ccf"]("capture-keystroke-button",Oa,ln,{isLink:"isLink",captureText:"captureText"},{capture:"capture"},[]),[va]),Ra=bl["\u0275crt"]({encapsulation:0,styles:Pa,data:{}}),Ia=(bl["\u0275ccf"]("keypress-tab",wa,rn,{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}"]),Ea=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)}}(),Ua=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=Ci.LayerName.mod,n}return Ea(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 Ci.SwitchLayerAction))return!1;var n=e;return this.toggle=n.isLayerToggleable,this.layer=n.layer,!0},n.prototype.toKeyAction=function(){var e=new Ci.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}(Ma),Na=[Ia],La=bl["\u0275crt"]({encapsulation:0,styles:Na,data:{}}),Ka=(bl["\u0275ccf"]("layer-tab",Ua,hn,{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%] .help-text--mouse-speed[_ngcontent-%COMP%]{margin-bottom:2rem;font-size:.9em;color:#666}[_nghost-%COMP%] .help-text--mouse-speed[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0}[_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}.help-text--mouse-speed.last-help[_ngcontent-%COMP%]{margin-bottom:0;margin-top:2rem}']),Da=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=Ci.MouseActionParam,n.selectedPageIndex=0,n.pages=["Move","Scroll","Click","Speed"],n}return Da(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 Ci.MouseAction))return!1;var n=e;switch(this.mouseActionParam=n.mouseAction,n.mouseAction===Ci.MouseActionParam.moveUp&&(this.selectedPageIndex=0),n.mouseAction){case Ci.MouseActionParam.moveDown:case Ci.MouseActionParam.moveUp:case Ci.MouseActionParam.moveLeft:case Ci.MouseActionParam.moveRight:this.selectedPageIndex=0;break;case Ci.MouseActionParam.scrollDown:case Ci.MouseActionParam.scrollUp:case Ci.MouseActionParam.scrollLeft:case Ci.MouseActionParam.scrollRight:this.selectedPageIndex=1;break;case Ci.MouseActionParam.leftClick:case Ci.MouseActionParam.middleClick:case Ci.MouseActionParam.rightClick:this.selectedPageIndex=2;break;case Ci.MouseActionParam.decelerate:case Ci.MouseActionParam.accelerate:this.selectedPageIndex=3;break;default:return!1}return!0},n.prototype.toKeyAction=function(){var e=new Ci.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}(Ma),Fa=[Ka],Va=bl["\u0275crt"]({encapsulation:0,styles:Fa,data:{}}),Ba=(bl["\u0275ccf"]("mouse-tab",ja,wn,{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}"]),$a=["[_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}"],Ha=function(){function e(e){this.mapper=e,this.save=new bl.EventEmitter,this.cancel=new bl.EventEmitter,this.edit=new bl.EventEmitter,this.delete=new bl.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 Ci.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 Ci.TextMacroAction){var e=this.macroAction;this.iconName="font",this.title="Write text: "+e.text}else if(this.macroAction instanceof Ci.KeyMacroAction){var e=this.macroAction;this.setKeyActionContent(e)}else if(this.macroAction instanceof Ci.MouseButtonMacroAction){var e=this.macroAction;this.setMouseButtonActionContent(e)}else this.macroAction instanceof Ci.MoveMouseMacroAction||this.macroAction instanceof Ci.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=Ci.KeyModifiers.leftCtrl;t<=Ci.KeyModifiers.rightGui;t<<=1)e.isModifierActive(t)&&(this.title+=" "+Ci.KeyModifiers[t])},e.prototype.setMouseMoveScrollActionContent=function(e){var n;e instanceof Ci.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:wi}]},e}(),Ga=['[_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}'],Wa=["[_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}"],za=function(){function e(){var e=this;this.valid=new bl.EventEmitter,this.validate=function(){return e.valid.emit(e.isMacroValid())}}return e}(),qa=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)}}(),Ya=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 Ci.TextMacroAction)},t}return qa(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:bl.Renderer}]},n}(za),Ja=[Wa],Xa=bl["\u0275crt"]({encapsulation:0,styles:Ja,data:{}}),Qa=(bl["\u0275ccf"]("macro-text-tab",Ya,On,{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}"]),Za=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"}(ta||(ta={}));var ec,nc=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.TabName=ta,n.isMacroValid=function(){var e=n.getKeyMacroAction();return!!e.scancode||!!e.modifierMask},n}return Za(n,e),n.prototype.ngOnInit=function(){this.macroAction||(this.macroAction=new Ci.KeyMacroAction),this.defaultKeyAction=new Ci.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===Ci.MacroKeySubAction.press?ta.Press:e.action===Ci.MacroKeySubAction.release?ta.Release:void 0:ta.Tap},n.prototype.getActionType=function(e){switch(e){case ta.Tap:return Ci.MacroKeySubAction.tap;case ta.Press:return Ci.MacroKeySubAction.press;case ta.Release:return Ci.MacroKeySubAction.release;default:throw new Error("Invalid tab type")}},n.prototype.getKeyMacroAction=function(){var e=Object.assign(new Ci.KeyMacroAction,this.keypressTab.toKeyAction());return e.action=this.getActionType(this.activeTab),e},n}(za),tc=[Ga,Qa],lc=bl["\u0275crt"]({encapsulation:0,styles:tc,data:{}}),oc=(bl["\u0275ccf"]("macro-key-tab",nc,In,{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}"]),ic=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"}(ec||(ec={}));var ac,cc=function(e){function n(){var n=e.call(this)||this;return n.TabName=ec,n.isMacroValid=function(){switch(n.macroAction.constructor){case Ci.MoveMouseMacroAction:case Ci.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 Ci.MouseButtonMacroAction:return!!n.macroAction.mouseButtonsMask;default:return!0}},n.buttonLabels=["Left","Middle","Right"],n.selectedButtons=Array(n.buttonLabels.length).fill(!1),n}return ic(n,e),n.prototype.ngOnInit=function(){this.macroAction||(this.macroAction=new Ci.MouseButtonMacroAction,this.macroAction.action=Ci.MacroMouseSubAction.click);var e=this.getTabName(this.macroAction);this.selectTab(e),[ec.Click,ec.Hold,ec.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 ec.Scroll:this.macroAction=new Ci.ScrollMouseMacroAction;break;case ec.Move:this.macroAction=new Ci.MoveMouseMacroAction;break;default:this.macroAction=new Ci.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 ec.Click:return Ci.MacroMouseSubAction.click;case ec.Hold:return Ci.MacroMouseSubAction.hold;case ec.Release:return Ci.MacroMouseSubAction.release;default:throw new Error("Invalid tab name: "+ec[e])}},n.prototype.getTabName=function(e){if(e instanceof Ci.MouseButtonMacroAction){if(!e.action||e.isOnlyClickAction())return ec.Click;if(e.isOnlyHoldAction())return ec.Hold;if(e.isOnlyReleaseAction())return ec.Release}else{if(e instanceof Ci.MoveMouseMacroAction)return ec.Move;if(e instanceof Ci.ScrollMouseMacroAction)return ec.Scroll}return ec.Move},n.ctorParameters=function(){return[]},n}(za),uc=[Ga,oc],rc=bl["\u0275crt"]({encapsulation:0,styles:uc,data:{}}),sc=(bl["\u0275ccf"]("macro-mouse-tab",cc,Vn,{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}"]),dc=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)}}(),pc=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 dc(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 Ci.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}(za),yc=[sc],fc=bl["\u0275crt"]({encapsulation:0,styles:yc,data:{}});bl["\u0275ccf"]("macro-delay-tab",pc,Hn,{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"}(ac||(ac={}));var mc,kc=function(){function e(){var e=this;this.save=new bl.EventEmitter,this.cancel=new bl.EventEmitter,this.TabName=ac,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 nc?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 Ci.DelayMacroAction?ac.Delay:e instanceof Ci.TextMacroAction?ac.Text:e instanceof Ci.KeyMacroAction?ac.Keypress:e instanceof Ci.MouseButtonMacroAction||e instanceof Ci.MoveMouseMacroAction||e instanceof Ci.ScrollMouseMacroAction?ac.Mouse:void 0},e.prototype.updateEditableMacroAction=function(){var e=this.macroAction?this.macroAction:new Ci.TextMacroAction;this.editableMacroAction=Ci.MacroActionHelper.createMacroAction(e)},e}(),hc=[Ga],gc=bl["\u0275crt"]({encapsulation:0,styles:hc,data:{}}),bc=(bl["\u0275ccf"]("macro-action-editor",kc,Jn,{macroAction:"macroAction"},{save:"save",cancel:"cancel"},[]),[$a]),vc=bl["\u0275crt"]({encapsulation:0,styles:bc,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:{}}]}}),Ac=(bl["\u0275ccf"]("macro-item",Ha,nt,{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)}}()),Tc=function(e){function n(n){var t=e.call(this)||this;return t.subscription=n.let(Object(na.e)()).subscribe(function(e){return t.macros=e}),t.macroOptions=[],t.selectedMacroIndex=0,t}return Ac(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 Ci.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 Ci.PlayMacroAction;return e.macroId=this.macros[this.selectedMacroIndex].id,e},n.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},n.ctorParameters=function(){return[{type:Tl.m}]},n}(Ma),Mc=[Ba],Cc=bl["\u0275crt"]({encapsulation:0,styles:Mc,data:{}}),wc=(bl["\u0275ccf"]("macro-tab",Tc,at,{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}"]),_c=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)}}(),Oc=function(e){function n(){var n=e.call(this)||this;return n.keymapOptions=[],n}return _c(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 Ci.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 Ci.SwitchKeymapAction;return e.keymapAbbreviation=this.selectedKeymap.abbreviation,e},n.ctorParameters=function(){return[]},n}(Ma),xc=[wc],Sc=bl["\u0275crt"]({encapsulation:0,styles:xc,data:{}}),Pc=(bl["\u0275ccf"]("keymap-tab",Oc,pt,{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}"]),Rc=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)}}(),Ic=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Rc(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}(Ma),Ec=[Pc],Uc=bl["\u0275crt"]({encapsulation:0,styles:Ec,data:{}}),Nc=(bl["\u0275ccf"]("none-tab",Ic,ft,{},{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"}(mc||(mc={}));var Lc=function(){function e(e){this.cancel=new bl.EventEmitter,this.remap=new bl.EventEmitter,this.tabName=mc,this.leftArrow=!1,this.rightArrow=!1,this.topPosition=0,this.leftPosition=0,this.currentKeymap$=new Nc.BehaviorSubject(void 0),this.animationState="closed",this.keymaps$=e.let(Object(na.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 Ci.KeystrokeAction?mc.Keypress:this.defaultKeyAction instanceof Ci.SwitchLayerAction?mc.Layer:this.defaultKeyAction instanceof Ci.MouseAction?mc.Mouse:this.defaultKeyAction instanceof Ci.PlayMacroAction?mc.Macro:this.defaultKeyAction instanceof Ci.SwitchKeymapAction?mc.Keymap:mc.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=te+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:Tl.m}]},e}(),Kc=[ba],Dc=bl["\u0275crt"]({encapsulation:0,styles:Kc,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:{}}]}}),jc=(bl["\u0275ccf"]("popover",Lc,Tt,{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.currentLayer=0,this.keyEditConfig={moduleId:void 0,keyId:void 0},this.tooltipData={posTop:0,posLeft:0,content:mo.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 o=this.layers[this.currentLayer].modules[e].keyActions[l];t?this.showTooltip(o,n):this.hideTooltip()}},e.prototype.onCapture=function(e,n,t){var l=new Ci.KeystrokeAction,o=t.left.concat(t.right).map(function(e){return e?1:0});l.scancode=t.code,l.modifierMask=0;for(var i=0;i0&&(l+=" ("+o+")"),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:Ci.SecondaryRoleAction[n.secondaryRoleAction]}),mo.Observable.of(t)}if(e instanceof Ci.MouseAction){var i=e,t=[{name:"Action type",value:"Mouse"},{name:"Action",value:Object(Ci.camelCaseToSentence)(Ci.MouseActionParam[i.mouseAction])}];return mo.Observable.of(t)}if(e instanceof Ci.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 Ci.SwitchKeymapAction){var c=e;return this.store.select(function(e){return e.userConfiguration.keymaps}).map(function(e){return e.find(function(e){return e.abbreviation===c.keymapAbbreviation}).name}).map(function(e){return[{name:"Action type",value:"Switch keymap"},{name:"Keymap",value:e}]})}if(e instanceof Ci.SwitchLayerAction){var u=e,t=[{name:"Action type",value:"Switch layer"},{name:"Layer",value:Object(Ci.capitalizeFirstLetter)(Ci.LayerName[u.layer])},{name:"Toogle",value:u.isLayerToggleable?"On":"Off"}];return mo.Observable.of(t)}return mo.Observable.of([])},e.ctorParameters=function(){return[{type:Tl.m},{type:wi},{type:bl.ElementRef},{type:bl.Renderer}]},e}()),Fc=[ii],Vc=bl["\u0275crt"]({encapsulation:0,styles:Fc,data:{}}),Bc=(bl["\u0275ccf"]("svg-keyboard-wrap",jc,_t,{keymap:"keymap",popoverEnabled:"popoverEnabled",tooltipEnabled:"tooltipEnabled",halvesSplit:"halvesSplit",keyboardLayout:"keyboardLayout"},{},[]),t("ZQKz"),t("ykQW"),t("HUu4"),t("Pic8"),t("Ozq5"),t("bbdN")),$c=function(){function e(e,n){this.store=e,this.keymap$=n.params.pluck("abbr").switchMap(function(n){return e.let(Object(na.b)(n))}).publishReplay(1).refCount(),this.deletable$=e.let(Object(na.c)()).map(function(e){return e.length>1}),this.keyboardLayout$=e.select(Cl.j)}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(Bc.saveAs)(new Blob([t],{type:"application/json"}),l)})},e.prototype.toggleKeyboardSplit=function(){this.keyboardSplit=!this.keyboardSplit},e.prototype.toExportableJSON=function(e){return this.store.let(Object(na.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:Tl.m},{type:zl.a}]},e}(),Hc=[Bo],Gc=bl["\u0275crt"]({encapsulation:0,styles:Hc,data:{}}),Wc=bl["\u0275ccf"]("keymap-edit",$c,Pt,{},{},[]),zc=["[_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}"],qc=function(){function e(e){this.store=e,this.presetsAll$=e.select(function(e){return e.presetKeymaps}),this.filterExpression$=new Nc.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(Qo.a.addKeymap(e))},e.ctorParameters=function(){return[{type:Tl.m}]},e}(),Yc=[zc],Jc=bl["\u0275crt"]({encapsulation:0,styles:Yc,data:{}}),Xc=bl["\u0275ccf"]("keymap-add",qc,Ut,{},{},[]),Qc=[".not-found[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;text-align:center}"],Zc=function(){function e(){}return e}(),eu=[Qc],nu=bl["\u0275crt"]({encapsulation:0,styles:eu,data:{}}),tu=bl["\u0275ccf"]("macro-not-found",Zc,Lt,{},{},[]),lu=["[_nghost-%COMP%]{width:100%;height:100%;display:block}.not-found[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;text-align:center}"],ou=[".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}"],iu=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(Qo.b.removeMacro(this.macro.id))},e.prototype.duplicateMacro=function(){this.store.dispatch(Qo.b.duplicateMacro(this.macro))},e.prototype.editMacroName=function(e){if(!Zo.b(e))return void this.setName();this.store.dispatch(Qo.b.editMacroName(this.macro.id,e))},e.prototype.calculateHeaderTextWidth=function(e){var n=this.macroName.nativeElement,t=.8*n.parentElement.offsetWidth,l=Zo.a(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:Tl.m},{type:bl.Renderer2}]},e}(),au=[ou],cu=bl["\u0275crt"]({encapsulation:0,styles:au,data:{}}),uu=(bl["\u0275ccf"]("macro-header",iu,Dt,{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}"]),ru=t("Kg3V"),su=t("sY2v"),du=t("YdjH"),pu=function(){function e(e,n){var t=this;this.mapper=e,this.dragulaService=n,this.add=new bl.EventEmitter,this.edit=new bl.EventEmitter,this.delete=new bl.EventEmitter,this.reorder=new bl.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 Ci.KeyMacroAction,this.toKeyAction(e));n.action=Ci.MacroKeySubAction.tap,this.add.emit({macroId:this.macro.id,action:n})},e.prototype.toKeyAction=function(e){var n=new Ci.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 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:{}}]}}),mu=(bl["\u0275ccf"]("macro-list",pu,Bt,{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 e.let(Object(na.d)(+n))}).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(Qo.b.addMacroAction(e,n))},e.prototype.editAction=function(e,n,t){this.store.dispatch(Qo.b.saveMacroAction(e,n,t))},e.prototype.deleteAction=function(e,n,t){this.store.dispatch(Qo.b.deleteMacroAction(e,n,t))},e.prototype.reorderAction=function(e,n,t){this.store.dispatch(Qo.b.reorderMacroAction(e,n,t))},e.ctorParameters=function(){return[{type:Tl.m},{type:zl.a}]},e}()),ku=[lu],hu=bl["\u0275crt"]({encapsulation:0,styles:ku,data:{}}),gu=bl["\u0275ccf"]("macro-edit",mu,Wt,{},{},[]),bu=["[_nghost-%COMP%]{width:100%;height:100%;display:block}"],vu=function(){function e(e){this.name$=e.params.pluck("name")}return e.ctorParameters=function(){return[{type:zl.a}]},e}(),Au=[bu],Tu=bl["\u0275crt"]({encapsulation:0,styles:Au,data:{}}),Mu=bl["\u0275ccf"]("add-on",vu,qt,{},{},[]),Cu=["[_nghost-%COMP%]{width:100%;height:100%;display:block}"],wu=t("jo2S"),_u=function(){function e(e){this.store=e,this.version="1.0.0",this.autoUpdateSettings$=e.select(Cl.g),this.checkingForUpdate$=e.select(Cl.h)}return e.prototype.toogleCheckForUpdateOnStartUp=function(e){this.store.dispatch(new wu.h(e))},e.prototype.toogleUsePreReleaseUpdate=function(e){this.store.dispatch(new wu.i(e))},e.prototype.checkForUpdate=function(){this.store.dispatch(new wu.c)},e.ctorParameters=function(){return[{type:Tl.m}]},e}(),Ou=function(){function e(){this.toggleCheckForUpdateOnStartUp=new bl.EventEmitter,this.toggleUsePreReleaseUpdate=new bl.EventEmitter,this.checkForUpdate=new bl.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}(),xu=[],Su=bl["\u0275crt"]({encapsulation:2,styles:xu,data:{}}),Pu=(bl["\u0275ccf"]("auto-update-settings",Ou,Xt,{version:"version",settings:"settings",checkingForUpdate:"checkingForUpdate"},{toggleCheckForUpdateOnStartUp:"toggleCheckForUpdateOnStartUp",toggleUsePreReleaseUpdate:"toggleUsePreReleaseUpdate",checkForUpdate:"checkForUpdate"},[]),[Cu]),Ru=bl["\u0275crt"]({encapsulation:0,styles:Pu,data:{}}),Iu=bl["\u0275ccf"]("settings",_u,Zt,{},{},[]),Eu=[".github-fork-ribbon{background-color:#a00;overflow:hidden;white-space:nowrap;position:fixed;right:-50px;bottom:40px;z-index:2000;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);box-shadow:0 0 10px #888}.github-fork-ribbon a{border:1px solid #faa;color:#fff;display:block;font:700 81.25% Helvetica Neue,Helvetica,Arial,sans-serif;margin:1px 0;padding:10px 50px;text-align:center;text-decoration:none;text-shadow:0 0 5px #444}main-app{min-height:100%;height:100%;width:100%;display:block;position:relative}.save-to-keyboard-button{position:fixed;bottom:15px;right:15px}"],Uu=[".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}"],Nu=function(){function e(){this.updateApp=new bl.EventEmitter,this.doNotUpdateApp=new bl.EventEmitter}return e}(),Lu=[Uu],Ku=bl["\u0275crt"]({encapsulation:0,styles:Lu,data:{}}),Du=(bl["\u0275ccf"]("app-update-available",Nu,nl,{},{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-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:inherit}.pane-title__name[_ngcontent-%COMP%]:focus{box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;border-color:transparent;background-color:inherit}"]),ju=(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(na.c)()).map(function(e){return e.slice()}).do(function(e){e.sort(function(e,n){return e.name.localeCompare(n.name)})}),this.macros$=e.let(Object(na.e)()).map(function(e){return e.slice()}).do(function(e){e.sort(function(e,n){return e.name.localeCompare(n.name)})}),this.showAddonMenu$=this.store.select(Cl.r),this.runInElectron$=this.store.select(Cl.p),this.deviceName$=e.select(Cl.i),this.deviceNameSubscription=this.deviceName$.subscribe(function(e){t.deviceNameValue=e,t.setDeviceName()}),this.updatingFirmware$=e.select(Cl.s),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(Qo.b.addMacro())},e.prototype.editDeviceName=function(e){if(!Zo.b(e)||e.trim()===this.deviceNameValue)return void this.setDeviceName();this.store.dispatch(new Ql.h(e))},e.prototype.calculateHeaderTextWidth=function(e){var n=this.deviceName.nativeElement,t=.66*n.parentElement.offsetWidth,l=Zo.a(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:Tl.m},{type:bl.Renderer2}]},e}()),Fu=[Du],Vu=bl["\u0275crt"]({encapsulation:0,styles:Fu,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:{}}]}}),Bu=(bl["\u0275ccf"]("side-menu",ju,ul,{},{},[]),["button[_ngcontent-%COMP%]{min-width:150px}"]),$u=t("Ii5C"),Hu=function(){function e(){this.state=$u.a,this.clicked=new bl.EventEmitter}return e.prototype.onClicked=function(){this.clicked.emit(this.state.action)},e}(),Gu=[Bu],Wu=bl["\u0275crt"]({encapsulation:0,styles:Gu,data:{}}),zu=(bl["\u0275ccf"]("progress-button",Hu,dl,{state:"state"},{clicked:"clicked"},[]),t("cykF")),qu=t("lM2z"),Yu=[Eu],Ju=bl["\u0275crt"]({encapsulation:2,styles:Yu,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:{}}]}}),Xu=bl["\u0275ccf"]("main-app",wl,hl,{},{},[]),Qu=t("f9zQ"),Zu=t("fL27"),er=t("EyWH"),nr=t("0Vo6"),tr=function(){function e(e,n){this.store=e,this.router=n}return e.prototype.canActivate=function(){var e=this;return this.store.let(Object(na.c)()).do(function(n){var t=n.find(function(e){return e.isDefault});t&&e.router.navigate(["/keymap",t.abbreviation])}).switchMap(function(){return mo.Observable.of(!1)})},e.ctorParameters=function(){return[{type:Tl.m},{type:zl.m}]},e}(),lr=function(){function e(e,n){this.store=e,this.router=n}return e.prototype.canActivate=function(){var e=this;return this.store.let(Object(na.e)()).map(function(n){var t=n.length>0;return t&&e.router.navigate(["/macro",n[0].id]),!t})},e.ctorParameters=function(){return[{type:Tl.m},{type:zl.m}]},e}(),or=function(){function e(e,n){this.store=e,this.router=n}return e.prototype.canActivate=function(){var e=this;return this.store.select(Cl.c).do(function(n){n&&e.router.navigate(["/"])}).map(function(e){return!e})},e.ctorParameters=function(){return[{type:Tl.m},{type:zl.m}]},e}(),ir=function(){function e(e,n){this.store=e,this.router=n}return e.prototype.canActivate=function(){var e=this;return this.store.select(Cl.c).do(function(n){n||e.router.navigate(["/detection"])})},e.ctorParameters=function(){return[{type:Tl.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(Cl.o).do(function(n){n&&e.router.navigate(["/detection"])}).map(function(e){return!e})},e.ctorParameters=function(){return[{type:Tl.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(Cl.o).do(function(n){n||e.router.navigate(["/privilege"])})},e.ctorParameters=function(){return[{type:Tl.m},{type:zl.m}]},e}(),ur=function(){function e(e,n){this.store=e,this.router=n}return e.prototype.canActivate=function(){var e=this;return this.store.select(Cl.b).do(function(n){n||e.router.navigate(["/loading"])})},e.ctorParameters=function(){return[{type:Tl.m},{type:zl.m}]},e}(),rr=function(){function e(e,n){this.store=e,this.router=n}return e.prototype.canActivate=function(){var e=this;return this.store.select(Cl.b).do(function(n){n&&e.router.navigate(["/"])}).map(function(e){return!e})},e.ctorParameters=function(){return[{type:Tl.m},{type:zl.m}]},e}(),sr=t("uIf7"),dr=t("NijM"),pr=t("XnCX"),yr=function(){function e(){}return e}(),fr=t("TTza"),mr=t("cVaD"),kr=t("kGlP"),hr=t("C4aZ"),gr=t("Xloh"),br=t("2soc"),vr=t("Tl+Y"),Ar=t("lCMY"),Tr=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(Ci.IpcEvents.app.appStarted)},e.prototype.sendUpdateAndRestartApp=function(){this.ipcRenderer.send(Ci.IpcEvents.autoUpdater.updateAndRestart)},e.prototype.checkForUpdate=function(){this.ipcRenderer.send(Ci.IpcEvents.autoUpdater.checkForUpdate)},e.prototype.registerEvents=function(){var e=this;this.ipcRenderer.on(Ci.IpcEvents.autoUpdater.updateAvailable,function(n,t){e.writeUpdateState(Ci.IpcEvents.autoUpdater.updateAvailable,t)}),this.ipcRenderer.on(Ci.IpcEvents.autoUpdater.updateNotAvailable,function(){e.writeUpdateState(Ci.IpcEvents.autoUpdater.updateNotAvailable),e.dispachStoreAction(new wu.d("No update available"))}),this.ipcRenderer.on(Ci.IpcEvents.autoUpdater.autoUpdateError,function(n,t){e.writeUpdateState(Ci.IpcEvents.autoUpdater.autoUpdateError,t),e.dispachStoreAction(new Ml.e(t))}),this.ipcRenderer.on(Ci.IpcEvents.autoUpdater.autoUpdateDownloadProgress,function(n,t){e.writeUpdateState(Ci.IpcEvents.autoUpdater.autoUpdateDownloadProgress,t)}),this.ipcRenderer.on(Ci.IpcEvents.autoUpdater.autoUpdateDownloaded,function(n,t){e.writeUpdateState(Ci.IpcEvents.autoUpdater.autoUpdateDownloaded,t),e.dispachStoreAction(new Ml.d)}),this.ipcRenderer.on(Ci.IpcEvents.autoUpdater.checkForUpdateNotAvailable,function(n,t){e.writeUpdateState(Ci.IpcEvents.autoUpdater.checkForUpdateNotAvailable,t),e.dispachStoreAction(new wu.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:Tl.m},{type:bl.NgZone},{type:Ar.a}]},e}(),Mr=function(){function e(){}return e.prototype.error=function(){for(var e=[],n=0;n=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(n,t,a):o(n,t))||a);return i>3&&a&&Object.defineProperty(n,t,a),a}),_r=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)},Or=function(){function e(e,n,t,l,o,i){var a=this;this.actions$=e,this.notifierService=n,this.appUpdateRendererService=t,this.appRendererService=l,this.logService=o,this.store=i,this.appStart$=this.actions$.ofType(Ho.a.APP_BOOTSRAPPED).startWith(new Ho.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(Ho.a.APP_SHOW_NOTIFICATION).map(function(e){return e.payload}).do(function(e){e.type!==Ci.NotificationType.Undoable&&a.notifierService.notify(e.type,e.message)}),this.processStartInfo$=this.actions$.ofType(Ho.a.APP_PROCESS_START_INFO).map(function(e){return e.payload}).mergeMap(function(e){return a.logService.debug("[AppEffect][processStartInfo] payload:",e),[new Ho.c(e.commandLineArgs),new Kl.b({connected:e.deviceConnected,hasPermission:e.hasPermission}),new Ho.j(e.agentVersionInfo)]}),this.undoLastNotification$=this.actions$.ofType(Ho.a.UNDO_LAST).map(function(e){return e.payload}).mergeMap(function(e){return[e,new Ho.d]}),this.saveToKeyboardSuccess$=this.actions$.ofType(Kl.a.SAVE_TO_KEYBOARD_SUCCESS).withLatestFrom(this.store.select(Cl.a)).do(function(e){e[0];e[1]&&a.appRendererService.exit()})}return e.ctorParameters=function(){return[{type:vr.a},{type:qu.b},{type:Tr},{type:Cr},{type:Ci.LogService},{type:Tl.m}]},wr([Object(vr.b)(),_r("design:type","function"==typeof(n=void 0!==mo.Observable&&mo.Observable)&&n||Object)],e.prototype,"appStart$",void 0),wr([Object(vr.b)({dispatch:!1}),_r("design:type","function"==typeof(t=void 0!==mo.Observable&&mo.Observable)&&t||Object)],e.prototype,"showNotification$",void 0),wr([Object(vr.b)(),_r("design:type","function"==typeof(l=void 0!==mo.Observable&&mo.Observable)&&l||Object)],e.prototype,"processStartInfo$",void 0),wr([Object(vr.b)(),_r("design:type","function"==typeof(o=void 0!==mo.Observable&&mo.Observable)&&o||Object)],e.prototype,"undoLastNotification$",void 0),wr([Object(vr.b)({dispatch:!1}),_r("design:type",Object)],e.prototype,"saveToKeyboardSuccess$",void 0),e;var n,t,l,o}(),xr=this&&this.__decorate||function(e,n,t,l){var o,i=arguments.length,a=i<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 c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(n,t,a):o(n,t))||a);return i>3&&a&&Object.defineProperty(n,t,a),a},Sr=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)},Pr=function(){function e(e,n,t){var l=this;this.actions$=e,this.appUpdateRendererService=n,this.logService=t,this.appStart$=this.actions$.ofType(Ml.a.UPDATE_APP).first().do(function(){l.appUpdateRendererService.sendUpdateAndRestartApp()}),this.checkForUpdate$=this.actions$.ofType(wu.a.CHECK_FOR_UPDATE_NOW).do(function(){l.logService.debug("[AppUpdateEffect] call checkForUpdate"),l.appUpdateRendererService.checkForUpdate()}),this.handleError$=this.actions$.ofType(Ml.a.UPDATE_ERROR).map(function(e){return e.payload}).map(function(e){return new Ho.h({type:Ci.NotificationType.Error,message:e})})}return e.ctorParameters=function(){return[{type:vr.a},{type:Tr},{type:Ci.LogService}]},xr([Object(vr.b)({dispatch:!1}),Sr("design:type","function"==typeof(n=void 0!==mo.Observable&&mo.Observable)&&n||Object)],e.prototype,"appStart$",void 0),xr([Object(vr.b)({dispatch:!1}),Sr("design:type","function"==typeof(t=void 0!==mo.Observable&&mo.Observable)&&t||Object)],e.prototype,"checkForUpdate$",void 0),xr([Object(vr.b)(),Sr("design:type","function"==typeof(l=void 0!==mo.Observable&&mo.Observable)&&l||Object)],e.prototype,"handleError$",void 0),e;var n,t,l}(),Rr=t("CV5A"),Ir=t("ZRqk"),Er=t("FhXQ"),Ur=(t("9jMf"),t("asHm"),this&&this.__decorate||function(e,n,t,l){var o,i=arguments.length,a=i<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 c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(n,t,a):o(n,t))||a);return i>3&&a&&Object.defineProperty(n,t,a),a}),Nr=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)},Lr=function(){function e(e,n,l){var o=this;this.actions$=e,this.router=n,this.store=l,this.loadKeymaps$=this.actions$.ofType(Qo.a.LOAD_KEYMAPS).startWith(Qo.a.loadKeymaps()).switchMap(function(){var e=t("QCMk"),n=e.keys().map(e).map(function(e){return(new Ci.Keymap).fromJsonObject(e)});return mo.Observable.of(Qo.a.loadKeymapsSuccess(n))}),this.addOrDuplicate$=this.actions$.ofType(Qo.a.ADD,Qo.a.DUPLICATE).withLatestFrom(this.store).map(function(e){return e[1].userConfiguration.keymaps}).do(function(e){o.router.navigate(["/keymap",e[e.length-1].abbreviation])}),this.remove$=this.actions$.ofType(Qo.a.REMOVE).withLatestFrom(this.store).map(function(e){return e[1].userConfiguration.keymaps}).do(function(e){if(0===e.length)o.router.navigate(["/keymap/add"]);else{var n=e.find(function(e){return e.isDefault});o.router.navigate(["/keymap",n.abbreviation])}}),this.editAbbr$=this.actions$.ofType(Qo.a.EDIT_ABBR).withLatestFrom(this.store).do(function(e){for(var n=e[0],t=e[1],l=0,i=t.userConfiguration.keymaps;l=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(n,t,a):o(n,t))||a);return i>3&&a&&Object.defineProperty(n,t,a),a},Dr=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)},jr=function(){function e(e,n,t){var l=this;this.actions$=e,this.router=n,this.store=t,this.remove$=this.actions$.ofType(Qo.b.REMOVE).do(function(e){return l.store.dispatch(Qo.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.add$=this.actions$.ofType(Qo.b.ADD).withLatestFrom(this.store).map(function(e){e[0];return e[1].userConfiguration.macros}).map(function(e){return e[e.length-1]}).do(function(e){l.router.navigate(["/macro",e.id,"new"])}),this.duplicate=this.actions$.ofType(Qo.b.DUPLICATE).withLatestFrom(this.store).map(function(e){e[0];return e[1].userConfiguration.macros}).map(function(e){return e[e.length-1]}).do(function(e){l.router.navigate(["/macro",e.id])})}return e.ctorParameters=function(){return[{type:vr.a},{type:zl.m},{type:Tl.m}]},Kr([Object(vr.b)({dispatch:!1}),Dr("design:type",Object)],e.prototype,"remove$",void 0),Kr([Object(vr.b)({dispatch:!1}),Dr("design:type",Object)],e.prototype,"add$",void 0),Kr([Object(vr.b)({dispatch:!1}),Dr("design:type",Object)],e.prototype,"duplicate",void 0),e}(),Fr=this&&this.__decorate||function(e,n,t,l){var o,i=arguments.length,a=i<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 c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(n,t,a):o(n,t))||a);return i>3&&a&&Object.defineProperty(n,t,a),a},Vr=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)},Br=function(){function e(e,n,t){var l=this;this.actions$=e,this.dataStorageRepository=n,this.store=t,this.loadUserConfig$=this.actions$.ofType(wu.a.LOAD_AUTO_UPDATE_SETTINGS).startWith(new wu.e).switchMap(function(){var e=l.dataStorageRepository.getAutoUpdateSettings();return e||(e=mr.c),mo.Observable.of(new wu.f(e))}),this.saveAutoUpdateConfig$=this.actions$.ofType(wu.a.TOGGLE_CHECK_FOR_UPDATE_ON_STARTUP,wu.a.TOGGLE_PRE_RELEASE_FLAG).withLatestFrom(this.store.select(Cl.g)).map(function(e){var n=(e[0],e[1]);return l.dataStorageRepository.saveAutoUpdateSettings(n),new wu.g}),this.sendNotification$=this.actions$.ofType(wu.a.CHECK_FOR_UPDATE_FAILED,wu.a.CHECK_FOR_UPDATE_SUCCESS).map(vr.d).map(function(e){return new Ho.h({type:Ci.NotificationType.Info,message:e})})}return e.ctorParameters=function(){return[{type:vr.a},{type:Rr.a},{type:Tl.m}]},Fr([Object(vr.b)(),Vr("design:type","function"==typeof(n=void 0!==mo.Observable&&mo.Observable)&&n||Object)],e.prototype,"loadUserConfig$",void 0),Fr([Object(vr.b)(),Vr("design:type","function"==typeof(t=void 0!==mo.Observable&&mo.Observable)&&t||Object)],e.prototype,"saveAutoUpdateConfig$",void 0),Fr([Object(vr.b)(),Vr("design:type","function"==typeof(l=void 0!==mo.Observable&&mo.Observable)&&l||Object)],e.prototype,"sendNotification$",void 0),e;var n,t,l}(),$r=(t("hbO+"),t("BdLl"),this&&this.__decorate||function(e,n,t,l){var o,i=arguments.length,a=i<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 c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(n,t,a):o(n,t))||a);return i>3&&a&&Object.defineProperty(n,t,a),a}),Hr=this&&this.__metadata||function(e,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,n)},Gr=function(){function e(e,n,t,l,o){var i=this;this.actions$=e,this.router=n,this.deviceRendererService=t,this.store=l,this.defaultUserConfigurationService=o,this.deviceConnectionStateChange$=this.actions$.ofType(Kl.a.CONNECTION_STATE_CHANGED).map(function(e){return e.payload}).do(function(e){e.hasPermission?e.connected?i.router.navigate(["/"]):i.router.navigate(["/detection"]):i.router.navigate(["/privilege"])}).switchMap(function(e){return e.connected&&e.hasPermission?mo.Observable.of(new Ql.c):mo.Observable.empty()}),this.setPrivilegeOnLinux$=this.actions$.ofType(Kl.a.SET_PRIVILEGE_ON_LINUX).do(function(){i.deviceRendererService.setPrivilegeOnLinux()}),this.setPrivilegeOnLinuxReply$=this.actions$.ofType(Kl.a.SET_PRIVILEGE_ON_LINUX_REPLY).map(function(e){return e.payload}).mergeMap(function(e){return e.success?[new Kl.b({connected:!0,hasPermission:!0})]:[new Ho.h({type:Ci.NotificationType.Error,message:e.error.message||e.error})]}),this.saveConfiguration$=this.actions$.ofType(Kl.a.SAVE_CONFIGURATION).withLatestFrom(this.store).map(function(e){e[0];return e[1].userConfiguration}).do(function(e){setTimeout(function(){return i.sendUserConfigToKeyboard(e)},100)}).switchMap(function(){return mo.Observable.empty()}),this.saveConfigurationReply$=this.actions$.ofType(Kl.a.SAVE_CONFIGURATION_REPLY).map(function(e){return e.payload}).mergeMap(function(e){return e.success?[new Kl.h]:[new Ho.h({type:Ci.NotificationType.Error,message:e.error.message}),new Kl.i]}),this.autoHideSaveToKeyboardButton$=this.actions$.ofType(Kl.a.SAVE_TO_KEYBOARD_SUCCESS).switchMap(function(){return mo.Observable.timer(1e3).switchMap(function(){return mo.Observable.of(new Kl.c)})}),this.resetMouseSpeedSettings$=this.actions$.ofType(Kl.a.RESET_MOUSE_SPEED_SETTINGS).switchMap(function(){var e=i.defaultUserConfigurationService.getDefault(),n={};return["mouseMoveInitialSpeed","mouseMoveAcceleration","mouseMoveDeceleratedSpeed","mouseMoveBaseSpeed","mouseMoveAcceleratedSpeed","mouseScrollInitialSpeed","mouseScrollAcceleration","mouseScrollDeceleratedSpeed","mouseScrollBaseSpeed","mouseScrollAcceleratedSpeed"].forEach(function(t){n[t]=e[t]}),mo.Observable.of(new Ql.e(n))}),this.resetUserConfiguration$=this.actions$.ofType(Kl.a.RESET_USER_CONFIGURATION).switchMap(function(){var e=i.defaultUserConfigurationService.getDefault();return mo.Observable.of(new Ql.e(e))}),this.saveResetUserConfigurationToDevice$=this.actions$.ofType(Ql.a.LOAD_RESET_USER_CONFIGURATION,Ql.a.APPLY_USER_CONFIGURATION_FROM_FILE).switchMap(function(){return mo.Observable.of(new Kl.f)}),this.updateFirmware$=this.actions$.ofType(Kl.a.UPDATE_FIRMWARE).do(function(){return i.deviceRendererService.updateFirmware()}),this.updateFirmwareWith$=this.actions$.ofType(Kl.a.UPDATE_FIRMWARE_WITH).map(function(e){return e.payload}).do(function(e){return i.deviceRendererService.updateFirmware(e)}),this.updateFirmwareReply$=this.actions$.ofType(Kl.a.UPDATE_FIRMWARE_REPLY).map(function(e){return e.payload}).switchMap(function(e){return e.success?mo.Observable.of(new Kl.q):mo.Observable.of(new Kl.n(e.error))}),this.updateFirmwareOkButton$=this.actions$.ofType(Kl.a.UPDATE_FIRMWARE_OK_BUTTON).do(function(){return i.deviceRendererService.startConnectionPoller()})}return e.prototype.sendUserConfigToKeyboard=function(e){var n=new Ci.UhkBuffer;e.toBinary(n),this.deviceRendererService.saveUserConfiguration(n.getBufferContent())},e.ctorParameters=function(){return[{type:vr.a},{type:zl.m},{type:Ir.a},{type:Tl.m},{type:To.a}]},$r([Object(vr.b)(),Hr("design:type","function"==typeof(n=void 0!==mo.Observable&&mo.Observable)&&n||Object)],e.prototype,"deviceConnectionStateChange$",void 0),$r([Object(vr.b)({dispatch:!1}),Hr("design:type","function"==typeof(t=void 0!==mo.Observable&&mo.Observable)&&t||Object)],e.prototype,"setPrivilegeOnLinux$",void 0),$r([Object(vr.b)(),Hr("design:type","function"==typeof(l=void 0!==mo.Observable&&mo.Observable)&&l||Object)],e.prototype,"setPrivilegeOnLinuxReply$",void 0),$r([Object(vr.b)({dispatch:!1}),Hr("design:type","function"==typeof(o=void 0!==mo.Observable&&mo.Observable)&&o||Object)],e.prototype,"saveConfiguration$",void 0),$r([Object(vr.b)(),Hr("design:type","function"==typeof(i=void 0!==mo.Observable&&mo.Observable)&&i||Object)],e.prototype,"saveConfigurationReply$",void 0),$r([Object(vr.b)(),Hr("design:type","function"==typeof(a=void 0!==mo.Observable&&mo.Observable)&&a||Object)],e.prototype,"autoHideSaveToKeyboardButton$",void 0),$r([Object(vr.b)(),Hr("design:type","function"==typeof(c=void 0!==mo.Observable&&mo.Observable)&&c||Object)],e.prototype,"resetMouseSpeedSettings$",void 0),$r([Object(vr.b)(),Hr("design:type","function"==typeof(u=void 0!==mo.Observable&&mo.Observable)&&u||Object)],e.prototype,"resetUserConfiguration$",void 0),$r([Object(vr.b)(),Hr("design:type",Object)],e.prototype,"saveResetUserConfigurationToDevice$",void 0),$r([Object(vr.b)({dispatch:!1}),Hr("design:type",Object)],e.prototype,"updateFirmware$",void 0),$r([Object(vr.b)({dispatch:!1}),Hr("design:type",Object)],e.prototype,"updateFirmwareWith$",void 0),$r([Object(vr.b)(),Hr("design:type",Object)],e.prototype,"updateFirmwareReply$",void 0),$r([Object(vr.b)({dispatch:!1}),Hr("design:type",Object)],e.prototype,"updateFirmwareOkButton$",void 0),e;var n,t,l,o,i,a,c,u}(),Wr=bl["\u0275cmf"](Al,[wl],function(e){return bl["\u0275mod"]([bl["\u0275mpd"](512,bl.ComponentFactoryResolver,bl["\u0275CodegenComponentFactoryResolver"],[[8,[_l.a,Nl,Vl,Gl,Jl,ao,Oo,Io,Vo,Wc,Xc,tu,gu,Mu,Iu,Xu]],[3,bl.ComponentFactoryResolver],bl.NgModuleRef]),bl["\u0275mpd"](5120,bl.LOCALE_ID,bl["\u0275m"],[[3,bl.LOCALE_ID]]),bl["\u0275mpd"](4608,xl.m,xl.l,[bl.LOCALE_ID]),bl["\u0275mpd"](5120,bl.APP_ID,bl["\u0275f"],[]),bl["\u0275mpd"](5120,bl.IterableDiffers,bl["\u0275k"],[]),bl["\u0275mpd"](5120,bl.KeyValueDiffers,bl["\u0275l"],[]),bl["\u0275mpd"](4608,lo.c,lo.t,[xl.d]),bl["\u0275mpd"](6144,bl.Sanitizer,null,[lo.c]),bl["\u0275mpd"](4608,lo.f,lo.g,[]),bl["\u0275mpd"](5120,lo.d,function(e,n,t,l){return[new lo.l(e),new lo.p(n),new lo.o(t,l)]},[xl.d,xl.d,xl.d,lo.f]),bl["\u0275mpd"](4608,lo.e,lo.e,[lo.d,bl.NgZone]),bl["\u0275mpd"](135680,lo.n,lo.n,[xl.d]),bl["\u0275mpd"](4608,lo.m,lo.m,[lo.e,lo.n]),bl["\u0275mpd"](5120,Qu.a,Zu.d,[]),bl["\u0275mpd"](5120,Qu.c,Zu.e,[]),bl["\u0275mpd"](4608,Qu.b,Zu.c,[Qu.a,Qu.c]),bl["\u0275mpd"](5120,bl.RendererFactory2,Zu.f,[lo.m,Qu.b,bl.NgZone]),bl["\u0275mpd"](6144,lo.q,null,[lo.n]),bl["\u0275mpd"](4608,bl.Testability,bl.Testability,[bl.NgZone]),bl["\u0275mpd"](4608,lo.h,lo.h,[xl.d]),bl["\u0275mpd"](4608,lo.j,lo.j,[xl.d]),bl["\u0275mpd"](4608,er.b,Zu.b,[bl.RendererFactory2,lo.b]),bl["\u0275mpd"](4608,bo["\u0275i"],bo["\u0275i"],[]),bl["\u0275mpd"](4608,su.DragulaService,su.DragulaService,[]),bl["\u0275mpd"](4608,qu.k,qu.k,[]),bl["\u0275mpd"](5120,zl.a,zl.A,[zl.m]),bl["\u0275mpd"](4608,zl.f,zl.f,[]),bl["\u0275mpd"](6144,zl.h,null,[zl.f]),bl["\u0275mpd"](135680,zl.r,zl.r,[zl.m,bl.NgModuleFactoryLoader,bl.Compiler,bl.Injector,zl.h]),bl["\u0275mpd"](4608,zl.g,zl.g,[]),bl["\u0275mpd"](5120,zl.j,zl.D,[zl.B]),bl["\u0275mpd"](5120,bl.APP_BOOTSTRAP_LISTENER,function(e){return[e]},[zl.j]),bl["\u0275mpd"](5120,no.a,nr.c,[nr.b]),bl["\u0275mpd"](4608,to.a,to.a,[]),bl["\u0275mpd"](4608,pa,pa,[]),bl["\u0275mpd"](4608,wi,wi,[]),bl["\u0275mpd"](4608,tr,tr,[Tl.m,zl.m]),bl["\u0275mpd"](4608,lr,lr,[Tl.m,zl.m]),bl["\u0275mpd"](4608,ea,ea,[]),bl["\u0275mpd"](4608,or,or,[Tl.m,zl.m]),bl["\u0275mpd"](4608,ir,ir,[Tl.m,zl.m]),bl["\u0275mpd"](4608,ar,ar,[Tl.m,zl.m]),bl["\u0275mpd"](4608,cr,cr,[Tl.m,zl.m]),bl["\u0275mpd"](4608,ur,ur,[Tl.m,zl.m]),bl["\u0275mpd"](4608,rr,rr,[Tl.m,zl.m]),bl["\u0275mpd"](135680,Tl.k,Tl.k,[Tl.a,Tl.i,Tl.j,Tl.d]),bl["\u0275mpd"](5120,sr.c,sr.d,[sr.k,sr.i]),bl["\u0275mpd"](512,xl.c,xl.c,[]),bl["\u0275mpd"](1024,bl.ErrorHandler,lo.r,[]),bl["\u0275mpd"](1024,bl.NgProbeToken,function(){return[zl.w()]},[]),bl["\u0275mpd"](512,zl.B,zl.B,[bl.Injector]),bl["\u0275mpd"](1024,bl.APP_INITIALIZER,function(e,n,t){return[lo.s(e,n),zl.C(t)]},[[2,lo.i],[2,bl.NgProbeToken],zl.B]),bl["\u0275mpd"](512,bl.ApplicationInitStatus,bl.ApplicationInitStatus,[[2,bl.APP_INITIALIZER]]),bl["\u0275mpd"](131584,bl["\u0275e"],bl["\u0275e"],[bl.NgZone,bl["\u0275Console"],bl.Injector,bl.ErrorHandler,bl.ComponentFactoryResolver,bl.ApplicationInitStatus]),bl["\u0275mpd"](2048,bl.ApplicationRef,null,[bl["\u0275e"]]),bl["\u0275mpd"](512,bl.ApplicationModule,bl.ApplicationModule,[bl.ApplicationRef]),bl["\u0275mpd"](512,lo.a,lo.a,[[3,lo.a]]),bl["\u0275mpd"](512,Zu.a,Zu.a,[]),bl["\u0275mpd"](512,bo["\u0275ba"],bo["\u0275ba"],[]),bl["\u0275mpd"](512,bo.FormsModule,bo.FormsModule,[]),bl["\u0275mpd"](512,dr.DragulaModule,dr.DragulaModule,[]),bl["\u0275mpd"](1024,zl.v,zl.y,[[3,zl.m]]),bl["\u0275mpd"](512,zl.u,zl.c,[]),bl["\u0275mpd"](512,zl.b,zl.b,[]),bl["\u0275mpd"](256,zl.i,{useHash:!0},[]),bl["\u0275mpd"](1024,xl.h,zl.x,[xl.s,[2,xl.a],zl.i]),bl["\u0275mpd"](512,xl.g,xl.g,[xl.h]),bl["\u0275mpd"](512,bl.Compiler,bl.Compiler,[]),bl["\u0275mpd"](512,bl.NgModuleFactoryLoader,bl.SystemJsNgModuleLoader,[bl.Compiler,[2,bl.SystemJsNgModuleLoaderConfig]]),bl["\u0275mpd"](1024,zl.k,function(){return[[{path:"detection",component:Il,canActivate:[or,cr]},{path:"privilege",component:Dl,canActivate:[ar]},{path:"loading",component:Bl,canActivate:[rr]},{path:"",component:Wl,canActivate:[ir,ur],children:[{path:"device",children:[{path:"",redirectTo:"configuration",pathMatch:"full"},{path:"configuration",component:Zl},{path:"mouse-speed",component:Co},{path:"led-brightness",component:So},{path:"firmware",component:Uo}]},{path:"",redirectTo:"keymap",pathMatch:"full"},{path:"keymap",component:$c,canActivate:[tr]},{path:"keymap/add",component:qc},{path:"keymap/:abbr",component:$c},{path:"macro",component:Zc,canActivate:[lr]},{path:"macro/:id",component:mu},{path:"macro/:id/:empty",component:mu},{path:"add-on/:name",component:vu},{path:"settings",component:_u}]}]]},[]),bl["\u0275mpd"](1024,zl.m,zl.z,[bl.ApplicationRef,zl.u,zl.b,xl.g,bl.Injector,bl.NgModuleFactoryLoader,bl.Compiler,zl.k,zl.i,[2,zl.t],[2,zl.l]]),bl["\u0275mpd"](512,zl.p,zl.p,[[2,zl.v],[2,zl.m]]),bl["\u0275mpd"](512,pr.Select2Module,pr.Select2Module,[]),bl["\u0275mpd"](512,go.NouisliderModule,go.NouisliderModule,[]),bl["\u0275mpd"](512,qu.a,qu.a,[]),bl["\u0275mpd"](512,nr.a,nr.a,[]),bl["\u0275mpd"](512,yr,yr,[]),bl["\u0275mpd"](131584,Tl.a,Tl.a,[]),bl["\u0275mpd"](131584,sr.h,sr.h,[]),bl["\u0275mpd"](2048,Tl.h,null,[sr.h]),bl["\u0275mpd"](256,Tl.r,void 0,[]),bl["\u0275mpd"](1024,Tl.d,Tl.v,[Tl.r]),bl["\u0275mpd"](256,Tl.q,{userConfiguration:na.g,presetKeymaps:fr.a,autoUpdateSettings:mr.d,app:kr.h,appUpdate:hr.b,device:gr.e},[]),bl["\u0275mpd"](2048,Tl.t,null,[Tl.q]),bl["\u0275mpd"](1024,Tl.c,Tl.u,[bl.Injector,Tl.q,Tl.t]),bl["\u0275mpd"](256,Tl.s,Tl.w,[]),bl["\u0275mpd"](256,Tl.e,[],[]),bl["\u0275mpd"](1024,Tl.f,Tl.y,[Tl.s,Tl.e]),bl["\u0275mpd"](131584,Tl.g,Tl.g,[Tl.h,Tl.d,Tl.c,Tl.f]),bl["\u0275mpd"](2048,Tl.i,null,[Tl.g]),bl["\u0275mpd"](131584,Tl.j,Tl.j,[]),bl["\u0275mpd"](512,Tl.o,Tl.o,[Tl.a,Tl.i,Tl.j]),bl["\u0275mpd"](1024,sr.k,sr.e,[]),bl["\u0275mpd"](512,sr.l,sr.l,[sr.k]),bl["\u0275mpd"](256,sr.j,{maxAge:10},[]),bl["\u0275mpd"](1024,sr.i,sr.g,[sr.j]),bl["\u0275mpd"](512,sr.a,sr.a,[sr.h,Tl.a,Tl.i,sr.l,Tl.j,Tl.d,sr.i]),bl["\u0275mpd"](1024,Tl.l,sr.f,[sr.a]),bl["\u0275mpd"](512,Tl.m,Tl.m,[Tl.l,Tl.a,Tl.g]),bl["\u0275mpd"](512,br.c,br.a,[]),bl["\u0275mpd"](512,br.d,br.d,[Tl.m,zl.m,br.c]),bl["\u0275mpd"](512,sr.b,sr.b,[]),bl["\u0275mpd"](1024,vr.h,vr.f,[]),bl["\u0275mpd"](512,vr.j,vr.j,[vr.h]),bl["\u0275mpd"](512,vr.c,vr.c,[vr.j]),bl["\u0275mpd"](131584,vr.k,vr.k,[vr.c,Tl.m]),bl["\u0275mpd"](512,vr.a,vr.a,[Tl.j]),bl["\u0275mpd"](512,qu.h,qu.h,[]),bl["\u0275mpd"](256,qu.c,{behaviour:{autoHide:!1},position:{horizontal:{position:"right",distance:12},vertical:{position:"top",distance:12,gap:10}}},[]),bl["\u0275mpd"](1024,qu.d,qu.e,[qu.c]),bl["\u0275mpd"](512,qu.b,qu.b,[qu.h,qu.d]),bl["\u0275mpd"](512,Ar.a,Ar.a,[]),bl["\u0275mpd"](512,Tr,Tr,[Tl.m,bl.NgZone,Ar.a]),bl["\u0275mpd"](512,Mr,Mr,[]),bl["\u0275mpd"](512,Cr,Cr,[Tl.m,bl.NgZone,Ar.a,Mr]),bl["\u0275mpd"](512,Or,Or,[vr.a,qu.b,Tr,Cr,Mr,Tl.m]),bl["\u0275mpd"](512,Pr,Pr,[vr.a,Tr,Mr]),bl["\u0275mpd"](512,Rr.a,Rr.a,[]),bl["\u0275mpd"](512,To.a,To.a,[]),bl["\u0275mpd"](512,Ir.a,Ir.a,[Tl.m,bl.NgZone,Ar.a,Mr]),bl["\u0275mpd"](512,Er.a,Er.a,[vr.a,Rr.a,Tl.m,To.a,Ir.a,Mr,zl.m]),bl["\u0275mpd"](512,Lr,Lr,[vr.a,zl.m,Tl.m]),bl["\u0275mpd"](512,jr,jr,[vr.a,zl.m,Tl.m]),bl["\u0275mpd"](512,Br,Br,[vr.a,Rr.a,Tl.m]),bl["\u0275mpd"](512,Gr,Gr,[vr.a,zl.m,Ir.a,Tl.m,To.a]),bl["\u0275mpd"](1024,vr.g,vr.e,[Or,Pr,Er.a,Lr,jr,Br,Gr]),bl["\u0275mpd"](512,vr.i,vr.i,[vr.c,vr.k,vr.g,[2,Tl.n]]),bl["\u0275mpd"](512,Al,Al,[]),bl["\u0275mpd"](256,nr.b,{confirmButtonType:"danger"},[])])});vl.a.production&&Object(bl.enableProdMode)(),Object(lo.k)().bootstrapModuleFactory(Wr)},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"),o=t("ADVA"),i=t("UCSK"),a=(t.n(i),t("lCMY")),c=t("CyOy"),u=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(i.IpcEvents.device.setPrivilegeOnLinux)},e.prototype.saveUserConfiguration=function(e){this.ipcRenderer.send(i.IpcEvents.device.saveUserConfiguration,JSON.stringify(e))},e.prototype.loadConfigurationFromKeyboard=function(){this.ipcRenderer.send(i.IpcEvents.device.loadConfigurations)},e.prototype.updateFirmware=function(e){e?this.ipcRenderer.send(i.IpcEvents.device.updateFirmware,JSON.stringify(e)):this.ipcRenderer.send(i.IpcEvents.device.updateFirmware)},e.prototype.startConnectionPoller=function(){this.ipcRenderer.send(i.IpcEvents.device.startConnectionPoller)},e.prototype.registerEvents=function(){var e=this;this.ipcRenderer.on(i.IpcEvents.device.deviceConnectionStateChanged,function(n,t){e.dispachStoreAction(new c.b(t))}),this.ipcRenderer.on(i.IpcEvents.device.setPrivilegeOnLinuxReply,function(n,t){e.dispachStoreAction(new c.k(t))}),this.ipcRenderer.on(i.IpcEvents.device.saveUserConfigurationReply,function(n,t){e.dispachStoreAction(new c.g(t))}),this.ipcRenderer.on(i.IpcEvents.device.loadConfigurationReply,function(n,t){e.dispachStoreAction(new u.d(JSON.parse(t)))}),this.ipcRenderer.on(i.IpcEvents.device.updateFirmwareReply,function(n,t){e.dispachStoreAction(new c.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:o.m},{type:l.NgZone},{type:a.a},{type:i.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)}}(),o=this&&this.__decorate||function(e,n,t,l){var o,i=arguments.length,a=i<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 c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(n,t,a):o(n,t))||a);return i>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 a=t("eEV6"),c=t("gx91"),u=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:c.macroActionType.MoveMouseMacroAction,x:this.x,y:this.y}},n.prototype.toBinary=function(e){e.writeUInt8(c.MacroActionId.MoveMouseMacroAction),e.writeInt16(this.x),e.writeInt16(this.y)},n.prototype.toString=function(){return''},n.prototype.getName=function(){return"MoveMouseMacroAction"},o([a.assertInt16,i("design:type",Number)],n.prototype,"x",void 0),o([a.assertInt16,i("design:type",Number)],n.prototype,"y",void 0),n}(c.MacroAction);n.MoveMouseMacroAction=u},cVaD:function(e,n,t){"use strict";function l(e,n){switch(void 0===e&&(e=a),n.type){case o.a.TOGGLE_CHECK_FOR_UPDATE_ON_STARTUP:return Object.assign({},e,{checkForUpdateOnStartUp:n.payload});case o.a.TOGGLE_PRE_RELEASE_FLAG:return Object.assign({},e,{usePreReleaseUpdate:n.payload});case o.a.LOAD_AUTO_UPDATE_SETTINGS_SUCCESS:return Object.assign({},n.payload);case o.a.CHECK_FOR_UPDATE_NOW:return Object.assign({},e,{checkingForUpdate:!0});case i.a.UPDATE_ERROR:case o.a.CHECK_FOR_UPDATE_SUCCESS:case o.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 c}),t.d(n,"a",function(){return u});var o=t("jo2S"),i=t("vBds"),a={checkForUpdateOnStartUp:!1,usePreReleaseUpdate:!1,checkingForUpdate:!1},c=function(e){return{checkForUpdateOnStartUp:e.checkForUpdateOnStartUp,usePreReleaseUpdate:e.usePreReleaseUpdate}},u=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,o=e;l0&&!0,t.writeUInt8(i)}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;ll)throw e.constructor.name+"."+n+": Integer "+o+" is outside the valid ["+t+", "+l+"] interval";this[a]=o}}var a="_"+n;Object.defineProperty(e,n,{get:o,set:i,enumerable:!0,configurable:!0})}function d(e){return function(n,t){function l(){return this[i]}function o(l){if(this[i]!==l){if(void 0===e[l])throw n.constructor.name+"."+t+": "+l+" is not enum";this[i]=l}}var i="_"+t;Object.defineProperty(n,t,{get:l,set:o,enumerable:!0,configurable:!0})}}Object.defineProperty(n,"__esModule",{value:!0}),n.assertUInt8=l,n.assertInt8=o,n.assertUInt16=i,n.assertInt16=a,n.assertUInt32=c,n.assertInt32=u,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 o=t("kPGt");n.MacroActionHelper=o.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 o=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(),o=l[n];if(o===l.KeyMacroAction){if(tl.LastKeyMacroAction)throw"Invalid "+n+" first byte: "+t}else if(o===l.MouseButtonMacroAction){if(tl.LastMouseButtonMacroAction)throw"Invalid "+n+" first byte: "+t}else if(t!==o)throw"Invalid "+n+" first byte: "+t;return t},e}();n.MacroAction=o},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 i}),t.d(n,"h",function(){return a}),t.d(n,"c",function(){return c}),t.d(n,"d",function(){return u}),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"),o=(t.n(l),"[app-update-config] "),i={TOGGLE_CHECK_FOR_UPDATE_ON_STARTUP:Object(l.type)(o+"Check for update on startup"),CHECK_FOR_UPDATE_NOW:Object(l.type)(o+"Check for update now"),CHECK_FOR_UPDATE_SUCCESS:Object(l.type)(o+"Check for update success"),CHECK_FOR_UPDATE_FAILED:Object(l.type)(o+"Check for update faild"),TOGGLE_PRE_RELEASE_FLAG:Object(l.type)(o+"Toggle pre release update flag"),LOAD_AUTO_UPDATE_SETTINGS:Object(l.type)(o+"Load auto update settings"),LOAD_AUTO_UPDATE_SETTINGS_SUCCESS:Object(l.type)(o+"Load auto update settings success"),SAVE_AUTO_UPDATE_SETTINGS_SUCCESS:Object(l.type)(o+"Save auto update settings success")},a=function(){function e(e){this.payload=e,this.type=i.TOGGLE_CHECK_FOR_UPDATE_ON_STARTUP}return e}(),c=function(){function e(){this.type=i.CHECK_FOR_UPDATE_NOW}return e}(),u=function(){function e(e){this.payload=e,this.type=i.CHECK_FOR_UPDATE_SUCCESS}return e}(),r=function(){function e(e){this.payload=e,this.type=i.CHECK_FOR_UPDATE_FAILED}return e}(),s=function(){function e(e){this.payload=e,this.type=i.TOGGLE_PRE_RELEASE_FLAG}return e}(),d=function(){function e(){this.type=i.LOAD_AUTO_UPDATE_SETTINGS_SUCCESS}return e}(),p=function(){function e(e){this.payload=e,this.type=i.LOAD_AUTO_UPDATE_SETTINGS_SUCCESS}return e}(),y=function(){function e(){this.type=i.SAVE_AUTO_UPDATE_SETTINGS_SUCCESS}return e}()},kGlP:function(e,n,t){"use strict";function l(e,n){switch(void 0===e&&(e=d),n.type){case a.a.APP_STARTED:return s({},e,{started:!0});case a.a.APPLY_COMMAND_LINE_ARGS:return s({},e,{showAddonMenu:n.payload.addons,autoWriteUserConfiguration:n.payload.autoWriteConfig});case a.a.APP_SHOW_NOTIFICATION:var t=n;return t.payload.type!==i.NotificationType.Undoable?e:s({},e,{undoableNotification:t.payload,navigationCountAfterNotification:0});case o.b:var l=s({},e);return l.navigationCountAfterNotification++,l.navigationCountAfterNotification>1&&(l.undoableNotification=null),l;case a.a.UNDO_LAST_SUCCESS:case a.a.DISMISS_UNDO_NOTIFICATION:return s({},e,{undoableNotification:null});case c.a.LOAD_USER_CONFIG_SUCCESS:case c.a.SAVE_USER_CONFIG_SUCCESS:return s({},e,{prevUserConfig:n.payload,configLoading:!1});case c.a.LOAD_CONFIG_FROM_DEVICE:case c.a.LOAD_USER_CONFIG:return s({},e,{configLoading:!0});case a.a.LOAD_HARDWARE_CONFIGURATION_SUCCESS:return s({},e,{hardwareConfig:n.payload});case u.a.CONNECTION_STATE_CHANGED:return!0===n.payload?e:s({},e,{hardwareConfig:null});case a.a.UPDATE_AGENT_VERSION_INFORMATION:return s({},e,{agentVersionInfo:n.payload});default:return e}}n.h=l,t.d(n,"j",function(){return p}),t.d(n,"a",function(){return y}),t.d(n,"g",function(){return f}),t.d(n,"f",function(){return m}),t.d(n,"i",function(){return k}),t.d(n,"d",function(){return h}),t.d(n,"e",function(){return g}),t.d(n,"b",function(){return b}),t.d(n,"c",function(){return v});var o=t("2soc"),i=t("UCSK"),a=(t.n(i),t("5II9")),c=t("pSU5"),u=t("CyOy"),r=t("YojH"),s=this&&this.__assign||Object.assign||function(e){for(var n,t=1,l=arguments.length;t=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(n,t,a):o(n,t))||a);return i>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 a=t("eEV6"),c=t("gx91"),u=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:c.macroActionType.ScrollMouseMacroAction,x:this.x,y:this.y}},n.prototype.toBinary=function(e){e.writeUInt8(c.MacroActionId.ScrollMouseMacroAction),e.writeInt16(this.x),e.writeInt16(this.y)},n.prototype.toString=function(){return''},n.prototype.getName=function(){return"ScrollMouseMacroAction"},o([a.assertInt16,i("design:type",Number)],n.prototype,"x",void 0),o([a.assertInt16,i("design:type",Number)],n.prototype,"y",void 0),n}(c.MacroAction);n.ScrollMouseMacroAction=u},kPGt:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var l=t("ct+e"),o=t("gx91"),i=t("lITF"),a=t("s4X1"),c=t("cLwE"),u=t("kNso"),r=t("D4Ey"),s=t("muqS"),d=function(){function e(){}return e.createMacroAction=function(n){return n instanceof o.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>=o.MacroActionId.KeyMacroAction&&n<=o.MacroActionId.LastKeyMacroAction)return(new i.KeyMacroAction).fromBinary(e);if(n>=o.MacroActionId.MouseButtonMacroAction&&n<=o.MacroActionId.LastMouseButtonMacroAction)return(new a.MouseButtonMacroAction).fromBinary(e);switch(n){case o.MacroActionId.MoveMouseMacroAction:return(new c.MoveMouseMacroAction).fromBinary(e);case o.MacroActionId.ScrollMouseMacroAction:return(new u.ScrollMouseMacroAction).fromBinary(e);case o.MacroActionId.DelayMacroAction:return(new r.DelayMacroAction).fromBinary(e);case o.MacroActionId.TextMacroAction:return(new s.TextMacroAction).fromBinary(e);default:throw"Invalid MacroAction first byte: "+n}},e.fromMacroAction=function(e){var n;return e instanceof i.KeyMacroAction?n=new i.KeyMacroAction(e):e instanceof a.MouseButtonMacroAction?n=new a.MouseButtonMacroAction(e):e instanceof c.MoveMouseMacroAction?n=new c.MoveMouseMacroAction(e):e instanceof u.ScrollMouseMacroAction?n=new u.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 o.macroActionType.KeyMacroAction:return(new i.KeyMacroAction).fromJsonObject(e);case o.macroActionType.MouseButtonMacroAction:return(new a.MouseButtonMacroAction).fromJsonObject(e);case o.macroActionType.MoveMouseMacroAction:return(new c.MoveMouseMacroAction).fromJsonObject(e);case o.macroActionType.ScrollMouseMacroAction:return(new u.ScrollMouseMacroAction).fromJsonObject(e);case o.macroActionType.DelayMacroAction:return(new r.DelayMacroAction).fromJsonObject(e);case o.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=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(n,t,a):o(n,t))||a);return i>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 a=t("eEV6"),c=t("gx91"),u=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=c.MacroKeySubAction[e.action],"media"===e.type?this.type=e.scancode<256?u.KeystrokeType.shortMedia:u.KeystrokeType.longMedia:this.type=u.KeystrokeType[e.type],this.scancode=e.scancode,this.modifierMask=e.modifierMask,this},n.prototype.fromBinary=function(e){var n=this.readAndAssertMacroActionId(e),t=n-c.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:c.macroActionType.KeyMacroAction,action:c.MacroKeySubAction[this.action]};return this.hasScancode()&&(this.type===u.KeystrokeType.shortMedia||this.type===u.KeystrokeType.longMedia?e.type="media":e.type=u.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=c.MacroActionId.KeyMacroAction+n;e.writeUInt8(t),this.hasScancode()&&e.writeUInt8(this.scancode),this.hasModifiers()&&e.writeUInt8(this.modifierMask)},n.prototype.toString=function(){return''},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===c.MacroKeySubAction.press},n.prototype.isTapAction=function(){return this.action===c.MacroKeySubAction.tap},n.prototype.isReleaseAction=function(){return this.action===c.MacroKeySubAction.release},n.prototype.getName=function(){return"KeyMacroAction"},o([a.assertEnum(c.MacroKeySubAction),i("design:type",Number)],n.prototype,"action",void 0),o([a.assertEnum(u.KeystrokeType),i("design:type",Number)],n.prototype,"type",void 0),o([a.assertUInt8,i("design:type",Number)],n.prototype,"scancode",void 0),o([a.assertUInt8,i("design:type",Number)],n.prototype,"modifierMask",void 0),n}(c.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 o=t("gx91"),i=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:o.macroActionType.TextMacroAction,text:this.text}},n.prototype.toBinary=function(e){e.writeUInt8(o.MacroActionId.TextMacroAction),e.writeString(this.text)},n.prototype.toString=function(){return''},n.prototype.getName=function(){return"TextMacroAction"},n}(o.MacroAction);n.TextMacroAction=i},n4Nn:function(e,n,t){"use strict";function l(e,n){if(!n)return 0;i||(i=document.createElement("canvas"));var t=i.getContext("2d");return t.font=e.font,t.measureText(n).width}function o(e){return e&&e.trim().length>0}var i;t.d(n,"a",function(){return l}),t.d(n,"b",function(){return o})},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=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(n,t,a):o(n,t))||a);return i>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 a=t("eEV6"),c=t("gx91");!function(e){e[e.Left=1]="Left",e[e.Middle=2]="Middle",e[e.Right=4]="Right"}(n.MouseButtons||(n.MouseButtons={}));var u=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=c.MacroMouseSubAction[e.action],this.mouseButtonsMask=e.mouseButtonsMask,this},n.prototype.fromBinary=function(e){var n=this.readAndAssertMacroActionId(e);return this.action=n-c.MacroActionId.MouseButtonMacroAction,this.mouseButtonsMask=e.readUInt8(),this},n.prototype.toJsonObject=function(){return{macroActionType:c.macroActionType.MouseButtonMacroAction,action:c.MacroMouseSubAction[this.action],mouseButtonsMask:this.mouseButtonsMask}},n.prototype.toBinary=function(e){e.writeUInt8(c.MacroActionId.MouseButtonMacroAction+this.action),e.writeUInt8(this.mouseButtonsMask)},n.prototype.setMouseButtons=function(e){for(var n=0,t=0;t>>=1)e.push(Boolean(1&n));return e},n.prototype.toString=function(){return''},n.prototype.hasButtons=function(){return 0!==this.mouseButtonsMask},n.prototype.isOnlyClickAction=function(){return this.action===c.MacroMouseSubAction.click},n.prototype.isOnlyHoldAction=function(){return this.action===c.MacroMouseSubAction.hold},n.prototype.isOnlyReleaseAction=function(){return this.action===c.MacroMouseSubAction.release},n.prototype.getName=function(){return"MouseButtonMacroAction"},o([a.assertEnum(c.MacroMouseSubAction),i("design:type",Number)],n.prototype,"action",void 0),o([a.assertUInt8,i("design:type",Number)],n.prototype,"mouseButtonsMask",void 0),n}(c.MacroAction);n.MouseButtonMacroAction=u},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 i}),t.d(n,"c",function(){return a}),t.d(n,"b",function(){return c}),t.d(n,"d",function(){return u}),t.d(n,"e",function(){return r});var l=t("UCSK"),o=(t.n(l),"[app-update] "),i={UPDATE_AVAILABLE:Object(l.type)(o+"update available"),UPDATE_APP:Object(l.type)(o+"update app"),DO_NOT_UPDATE_APP:Object(l.type)(o+"do not update app"),UPDATE_DOWNLOADED:Object(l.type)(o+"update downloaded"),UPDATING:Object(l.type)(o+"updating"),UPDATE_ERROR:Object(l.type)(o+"error")},a=(function(){function e(){this.type=i.UPDATE_AVAILABLE}}(),function(){function e(){this.type=i.UPDATE_APP}return e}()),c=function(){function e(){this.type=i.DO_NOT_UPDATE_APP}return e}(),u=function(){function e(){this.type=i.UPDATE_DOWNLOADED}return e}(),r=(function(){function e(){this.type=i.UPDATING}}(),function(){function e(e){this.payload=e,this.type=i.UPDATE_ERROR}return e}())},xDyD:function(e,n,t){"use strict";t.d(n,"a",function(){return o});var l=t("UCSK"),o=(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:!0,abbreviation:"QWR",name:"QWERTY for PC",description:"",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:"DVO",name:"Dvorak for PC",description:"",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:"COL",name:"Colemak for PC",description:"",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,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:"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:"TES",name:"Test",description:"",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]}]}]},{isDefault:!1,abbreviation:"COM",name:"Colemak for Mac",description:"",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,null,{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:"DVM",name:"Dvorak for Mac",description:"",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:"QWM",name:"QWERTY for Mac",description:"",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]}]}]}],macros:[{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"}]},{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"}]}]}},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)}}(),o=this&&this.__decorate||function(e,n,t,l){var o,i=arguments.length,a=i<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 c=e.length-1;c>=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(n,t,a):o(n,t))||a);return i>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 a,c=t("eEV6"),u=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=u.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=u.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 o=0;o"},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"},o([c.assertUInt8,i("design:type",Number)],n.prototype,"modifierMask",void 0),o([c.assertEnum(u.SecondaryRoleAction),i("design:type",Number)],n.prototype,"secondaryRoleAction",void 0),o([c.assertEnum(s.KeystrokeType),i("design:type",Number)],n.prototype,"_type",void 0),n}(r.KeyAction);n.KeystrokeAction=p}},[0]); \ No newline at end of file diff --git a/polyfills.3a6a791c86baf9f6a41b.bundle.js b/polyfills.790ad5326d57d4f316b4.bundle.js similarity index 63% rename from polyfills.3a6a791c86baf9f6a41b.bundle.js rename to polyfills.790ad5326d57d4f316b4.bundle.js index b0456071..43b268b6 100644 --- a/polyfills.3a6a791c86baf9f6a41b.bundle.js +++ b/polyfills.790ad5326d57d4f316b4.bundle.js @@ -1 +1 @@ -webpackJsonp([0],{"+GRi":function(t,e,n){var r=n("Wo2w"),o=n("Wy9r");t.exports=function(t){return r(o(t))}},"+Q6C":function(t,e,n){var r=n("CDXM"),o=n("6De9").f,i=n("+pQw");r(r.S,"Reflect",{deleteProperty:function(t,e){var n=o(i(t),e);return!(n&&!n.configurable)&&delete t[e]}})},"+aW+":function(t,e,n){"use strict";var r=n("CDXM"),o=n("uNkO"),i=n("RT4T"),a=n("umMR"),u=[].sort,s=[1,2,3];r(r.P+r.F*(a(function(){s.sort(void 0)})||!a(function(){s.sort(null)})||!n("bhtb")(u)),"Array",{sort:function(t){return void 0===t?u.call(i(this)):u.call(i(this),o(t))}})},"+c1l":function(t,e,n){var r=n("CDXM");r(r.S+r.F*!n("V+0c"),"Object",{defineProperty:n("tose").f})},"+iEx":function(t,e,n){n("fHxy"),n("5GJ3"),n("X0O/"),n("HCkn"),n("ncNB"),n("soMw"),n("8sYH"),n("IJ3P"),n("t6ta"),t.exports=n("b4gG").Reflect},"+pQw":function(t,e,n){var r=n("JXkd");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},"/JsI":function(t,e,n){var r=n("CDXM");r(r.S+r.F,"Object",{assign:n("rIdM")})},"/Mgt":function(t,e,n){var r=n("CDXM");r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},"/XRd":function(t,e,n){var r=n("tose"),o=n("CDXM"),i=n("+pQw"),a=n("A1WY");o(o.S+o.F*n("umMR")(function(){Reflect.defineProperty(r.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,n){i(t),e=a(e,!0),i(n);try{return r.f(t,e,n),!0}catch(t){return!1}}})},"/wY1":function(t,e,n){n("rMMT"),n("dlwK"),n("/XRd"),n("+Q6C"),n("dBNB"),n("7Fno"),n("gZpL"),n("dSHT"),n("d+61"),n("V2Dj"),n("wJYt"),n("gdNQ"),n("VsLy"),n("wLW2"),t.exports=n("b4gG").Reflect},"0MXQ":function(t,e,n){var r=n("CDXM");r(r.S,"Math",{fround:n("xxX9")})},1:function(t,e,n){t.exports=n("TU+8")},"1zvG":function(t,e,n){"use strict";var r=n("JXkd"),o=n("TJLg"),i=n("3r0D")("hasInstance"),a=Function.prototype;i in a||n("tose").f(a,i,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},"2Fuj":function(t,e,n){var r=n("R5c1"),o=n("a/Sk");t.exports=Object.keys||function(t){return r(t,o)}},"3LDD":function(t,e,n){"use strict";var r=n("tose").f,o=n("51pc"),i=n("pBmS"),a=n("pa70"),u=n("Lcie"),s=n("p/bR"),c=n("WsSm"),l=n("w/BM"),f=n("KpXt"),p=n("V+0c"),h=n("xI8H").fastKey,d=n("Y5fy"),v=p?"_s":"size",g=function(t,e){var n,r=h(e);if("F"!==r)return t._i[r];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,c){var l=t(function(t,r){u(t,l,e,"_i"),t._t=e,t._i=o(null),t._f=void 0,t._l=void 0,t[v]=0,void 0!=r&&s(r,n,t[c],t)});return i(l.prototype,{clear:function(){for(var t=d(this,e),n=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];t._f=t._l=void 0,t[v]=0},delete:function(t){var n=d(this,e),r=g(n,t);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[v]--}return!!r},forEach:function(t){d(this,e);for(var n,r=a(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!g(d(this,e),t)}}),p&&r(l.prototype,"size",{get:function(){return d(this,e)[v]}}),l},def:function(t,e,n){var r,o,i=g(t,e);return i?i.v=n:(t._l=i={i:o=h(e,!0),k:e,v:n,p:r=t._l,n:void 0,r:!1},t._f||(t._f=i),r&&(r.n=i),t[v]++,"F"!==o&&(t._i[o]=i)),t},getEntry:g,setStrong:function(t,e,n){c(t,e,function(t,n){this._t=d(t,e),this._k=n,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?"keys"==e?l(0,n.k):"values"==e?l(0,n.v):l(0,[n.k,n.v]):(t._t=void 0,l(1))},n?"entries":"values",!n,!0),f(e)}}},"3MMU":function(t,e,n){"use strict";var r=n("RT4T"),o=n("KM3d"),i=n("rppw");t.exports=[].copyWithin||function(t,e){var n=r(this),a=i(n.length),u=o(t,a),s=o(e,a),c=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===c?a:o(c,a))-s,a-u),f=1;for(s0;)s in n?n[u]=n[s]:delete n[u],u+=f,s+=f;return n}},"3kLI":function(t,e,n){n("9u0C"),n("nRhc"),n("zRDY"),n("K/pv"),n("bO1C"),n("X1DN"),n("4Ti8"),t.exports=n("b4gG").Object},"3r0D":function(t,e,n){var r=n("Iclu")("wks"),o=n("c09d"),i=n("ptrv").Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},"4D9a":function(t,e,n){"use strict";n("RSwQ");var r=n("+pQw"),o=n("8H1R"),i=n("V+0c"),a=/./.toString,u=function(t){n("lfBE")(RegExp.prototype,"toString",t,!0)};n("umMR")(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?u(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!i&&t instanceof RegExp?o.call(t):void 0)}):"toString"!=a.name&&u(function(){return a.call(this)})},"4TT8":function(t,e,n){var r=n("CDXM");r(r.S+r.F*!n("V+0c"),"Object",{defineProperties:n("ewdp")})},"4Ti8":function(t,e,n){"use strict";var r=n("CDXM"),o=n("RT4T"),i=n("A1WY"),a=n("TJLg"),u=n("6De9").f;n("V+0c")&&r(r.P+n("tDA9"),"Object",{__lookupSetter__:function(t){var e,n=o(this),r=i(t,!0);do{if(e=u(n,r))return e.set}while(n=a(n))}})},"51pc":function(t,e,n){var r=n("+pQw"),o=n("ewdp"),i=n("a/Sk"),a=n("yIWP")("IE_PROTO"),u=function(){},s=function(){var t,e=n("BQSv")("iframe"),r=i.length;for(e.style.display="none",n("Ed9o").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("