Files
agent/main.8e5d209519c925d8b5bf.bundle.js
László Monda 653ab751fd Updates
2018-06-19 17:02:52 +02:00

1 line
1.2 MiB

webpackJsonp([0],{"+3eL":function(e,t,n){"use strict";var o,i=n("WhVc");function r(){try{return o.apply(this,arguments)}catch(e){return i.errorObject.e=e,i.errorObject}}t.tryCatch=function(e){return o=e,r}},"+4ur":function(e,t,n){"use strict";var o=n("LxNc");t._catch=function(e){return o.catchError(e)(this)}},"+EXD":function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("rCTf"),r=n("CURp"),l=n("wAkD");t.DeferObservable=function(e){function t(t){e.call(this),this.observableFactory=t}return o(t,e),t.create=function(e){return new t(e)},t.prototype._subscribe=function(e){return new s(e,this.observableFactory)},t}(i.Observable);var s=function(e){function t(t,n){e.call(this,t),this.factory=n,this.tryDefer()}return o(t,e),t.prototype.tryDefer=function(){try{this._callFactory()}catch(e){this._error(e)}},t.prototype._callFactory=function(){var e=this.factory();e&&this.add(r.subscribeToResult(this,e))},t}(l.OuterSubscriber)},"+GbP":function(e,t,n){"use strict";var o=n("TToO").__decorate,i=n("WT6e"),r=n("xiuF"),l=n("LKU8"),s=function(){};s=o([i.NgModule({exports:[r.DragulaDirective],declarations:[r.DragulaDirective],providers:[l.DragulaService]})],s),t.DragulaModule=s},"+Zxz":function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS");t.defaultIfEmpty=function(e){return void 0===e&&(e=null),function(t){return t.lift(new r(e))}};var r=function(){function e(e){this.defaultValue=e}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.defaultValue))},e}(),l=function(e){function t(t,n){e.call(this,t),this.defaultValue=n,this.isEmpty=!0}return o(t,e),t.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},t.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},t}(i.Subscriber)},"+ayw":function(e,t,n){"use strict";var o=n("sTFn");t.share=function(){return o.share()(this)}},"+pb+":function(e,t,n){"use strict";var o=n("rCTf"),i=n("xAJs");o.Observable.prototype.map=i.map},"/8Ia":function(e,t,n){"use strict";var o=n("xgwM").__decorate,i=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var r=n("CmJd");t.ModuleConfiguration=function(){function e(){}return e.prototype.fromJsonObject=function(e){return this.id=e.id,this.pointerMode=e.pointerMode,this.deceleratedPointerSpeedMultiplier=e.deceleratedPointerSpeedMultiplier,this.basePointerSpeedMultiplier=e.basePointerSpeedMultiplier,this.acceleratedPointerSpeedMultiplier=e.acceleratedPointerSpeedMultiplier,this.angularShift=e.angularShift,this.modLayerPointerFunction=e.modLayerPointerFunction,this.fnLayerPointerFunction=e.fnLayerPointerFunction,this.mouseLayerPointerFunction=e.mouseLayerPointerFunction,this},e.prototype.fromBinary=function(e){return this.id=e.readUInt8(),this.pointerMode=e.readInt8(),this.deceleratedPointerSpeedMultiplier=e.readUInt8(),this.basePointerSpeedMultiplier=e.readUInt8(),this.acceleratedPointerSpeedMultiplier=e.readUInt8(),this.angularShift=e.readUInt16(),this.modLayerPointerFunction=e.readUInt8(),this.fnLayerPointerFunction=e.readUInt8(),this.mouseLayerPointerFunction=e.readUInt8(),this},e.prototype.toJsonObject=function(){return{id:this.id,pointerMode:this.pointerMode,deceleratedPointerSpeedMultiplier:this.deceleratedPointerSpeedMultiplier,basePointerSpeedMultiplier:this.basePointerSpeedMultiplier,acceleratedPointerSpeedMultiplier:this.acceleratedPointerSpeedMultiplier,angularShift:this.angularShift,modeLayerPointerFunction:this.modLayerPointerFunction,fnLayerPointerFunction:this.fnLayerPointerFunction,mouseLayerPointerFunction:this.mouseLayerPointerFunction}},e.prototype.toBinary=function(e){e.writeUInt8(this.id),e.writeUInt8(this.pointerMode),e.writeUInt8(this.deceleratedPointerSpeedMultiplier),e.writeUInt8(this.basePointerSpeedMultiplier),e.writeUInt8(this.acceleratedPointerSpeedMultiplier),e.writeUInt16(this.angularShift),e.writeUInt8(this.modLayerPointerFunction),e.writeUInt8(this.fnLayerPointerFunction),e.writeUInt8(this.mouseLayerPointerFunction)},e.prototype.toString=function(){return'<ModuleConfiguration id="'+this.id+'" >'},o([r.assertUInt8,i("design:type",Number)],e.prototype,"id",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"pointerMode",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"deceleratedPointerSpeedMultiplier",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"basePointerSpeedMultiplier",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"acceleratedPointerSpeedMultiplier",void 0),o([r.assertUInt16,i("design:type",Number)],e.prototype,"angularShift",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"modLayerPointerFunction",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"fnLayerPointerFunction",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"mouseLayerPointerFunction",void 0),e}()},"/KiA":function(e,t,n){"use strict";t.h=function(e,t){switch(void 0===e&&(e=d),t.type){case r.a.APP_STARTED:return c({},e,{started:!0});case r.a.APPLY_COMMAND_LINE_ARGS:return c({},e,{commandLineArgs:t.payload});case r.a.APP_SHOW_NOTIFICATION:return t.payload.type!==i.NotificationType.Undoable?e:c({},e,{undoableNotification:t.payload,navigationCountAfterNotification:0});case o.b:var n=c({},e);return n.navigationCountAfterNotification++,n.navigationCountAfterNotification>1&&(n.undoableNotification=null),n;case r.a.UNDO_LAST_SUCCESS:case r.a.DISMISS_UNDO_NOTIFICATION:return c({},e,{undoableNotification:null});case l.a.LOAD_USER_CONFIG_SUCCESS:case l.a.SAVE_USER_CONFIG_SUCCESS:return c({},e,{prevUserConfig:t.payload,configLoading:!1});case l.a.LOAD_CONFIG_FROM_DEVICE:case l.a.LOAD_USER_CONFIG:return c({},e,{configLoading:!0});case r.a.LOAD_HARDWARE_CONFIGURATION_SUCCESS:return c({},e,{hardwareConfig:t.payload});case s.a.CONNECTION_STATE_CHANGED:return!0===t.payload?e:c({},e,{hardwareConfig:null});case r.a.PRIVILEGE_WHAT_WILL_THIS_DO:return c({},e,{privilegeWhatWillThisDoClicked:!0});case r.a.SETUP_PERMISSION_ERROR:return c({},e,{permissionError:t.payload});case s.a.SET_PRIVILEGE_ON_LINUX:return c({},e,{permissionError:null});default:return e}},n.d(t,"j",function(){return p}),n.d(t,"a",function(){return f}),n.d(t,"g",function(){return h}),n.d(t,"e",function(){return y}),n.d(t,"i",function(){return m}),n.d(t,"d",function(){return g}),n.d(t,"b",function(){return v}),n.d(t,"c",function(){return b}),n.d(t,"f",function(){return k});var o=n("r/Om"),i=n("gI3A"),r=(n.n(i),n("Ji5S")),l=n("at4H"),s=n("fYQU"),a=n("xW7+"),u=n("Lt3n"),c=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},d={started:!1,commandLineArgs:{},navigationCountAfterNotification:0,runningInElectron:Object(i.runInElectron)(),configLoading:!0,agentVersionInfo:Object(u.c)(),privilegeWhatWillThisDoClicked:!1},p=function(e){return e.commandLineArgs.addons},f=function(e){return e.commandLineArgs.layerDoubleTap},h=function(e){return e.undoableNotification},y=function(e){return e.prevUserConfig},m=function(e){return e.runningInElectron},g=function(e){return e.hardwareConfig&&e.hardwareConfig.isIso?a.a.ISO:a.a.ANSI},v=function(e){return!e.runningInElectron||!!e.hardwareConfig},b=function(e){return e.agentVersionInfo||{}},k=function(e){var t=!!e.permissionError;return{permissionSetupFailed:t,showWhatWillThisDo:!e.privilegeWhatWillThisDoClicked&&!t,showWhatWillThisDoContent:e.privilegeWhatWillThisDoClicked||t}}},"/lY3":function(e,t,n){"use strict";var o=n("rCTf"),i=n("Ji1V");o.Observable.prototype.startWith=i.startWith},0:function(e,t,n){e.exports=n("y32t")},"00YY":function(e,t,n){"use strict";t.identity=function(e){return e}},"0gHg":function(e,t,n){"use strict";var o=n("BV2O");t.publishReplay=function(e,t,n,i){return o.publishReplay(e,t,n,i)(this)}},"13YQ":function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("wAkD"),r=n("CURp");t.exhaustMap=function(e,t){return function(n){return n.lift(new l(e,t))}};var l=function(){function e(e,t){this.project=e,this.resultSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.project,this.resultSelector))},e}(),s=function(e){function t(t,n,o){e.call(this,t),this.project=n,this.resultSelector=o,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}return o(t,e),t.prototype._next=function(e){this.hasSubscription||this.tryNext(e)},t.prototype.tryNext=function(e){var t=this.index++,n=this.destination;try{var o=this.project(e,t);this.hasSubscription=!0,this.add(r.subscribeToResult(this,o,e,t))}catch(e){n.error(e)}},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},t.prototype.notifyNext=function(e,t,n,o,i){var r=this.destination;this.resultSelector?this.trySelectResult(e,t,n,o):r.next(t)},t.prototype.trySelectResult=function(e,t,n,o){var i=this.resultSelector,r=this.destination;try{var l=i(e,t,n,o);r.next(l)}catch(e){r.error(e)}},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.remove(e),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(i.OuterSubscriber)},"1APj":function(e,t,n){"use strict";var o=n("rCTf"),i=n("lgiQ");o.Observable.of=i.of},"1KT0":function(e,t,n){"use strict";var o=n("rCTf"),i=n("Yh8Q"),r=n("fWbP"),l=n("rKQy");t.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n=Number.POSITIVE_INFINITY,s=null,a=e[e.length-1];return r.isScheduler(a)?(s=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof a&&(n=e.pop()),null===s&&1===e.length&&e[0]instanceof o.Observable?e[0]:l.mergeAll(n)(new i.ArrayObservable(e,s))}},"1Rl6":function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("4uS6")),o(n("r/AL")),o(n("gohO")),o(n("3EbR")),o(n("3uOy")),o(n("z+Yt")),o(n("ZTdU")),o(n("R30b")),o(n("ov8r")),o(n("/8Ia")),o(n("W1wB")),t.SCANCODES=n("1xu2"),t.SECONDARY_ROLES=n("KqLa")},"1kxm":function(e,t,n){"use strict";t.FastMap=function(){function e(){this.values={}}return e.prototype.delete=function(e){return this.values[e]=null,!0},e.prototype.set=function(e,t){return this.values[e]=t,this},e.prototype.get=function(e){return this.values[e]},e.prototype.forEach=function(e,t){var n=this.values;for(var o in n)n.hasOwnProperty(o)&&null!==n[o]&&e.call(t,n[o],o)},e.prototype.clear=function(){this.values={}},e}()},"1r8+":function(e,t,n){"use strict";t.isArrayLike=function(e){return e&&"number"==typeof e.length}},"1xu2":function(e,t){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"},{id:"100",text:"| ISO"}]},{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:"101",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:"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:"."}]}]},"215F":function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS");t.takeWhile=function(e){return function(t){return t.lift(new r(e))}};var r=function(){function e(e){this.predicate=e}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.predicate))},e}(),l=function(e){function t(t,n){e.call(this,t),this.predicate=n,this.index=0}return o(t,e),t.prototype._next=function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(e){return void n.error(e)}this.nextOrComplete(e,t)},t.prototype.nextOrComplete=function(e,t){var n=this.destination;Boolean(t)?n.next(e):n.complete()},t}(i.Subscriber)},"2AEF":function(e,t,n){"use strict";var o=n("13YQ");t.exhaustMap=function(e,t){return o.exhaustMap(e,t)(this)}},"2ER/":function(e,t,n){"use strict";t.MapPolyfill=function(){function e(){this.size=0,this._values=[],this._keys=[]}return e.prototype.get=function(e){var t=this._keys.indexOf(e);return-1===t?void 0:this._values[t]},e.prototype.set=function(e,t){var n=this._keys.indexOf(e);return-1===n?(this._keys.push(e),this._values.push(t),this.size++):this._values[n]=t,this},e.prototype.delete=function(e){var t=this._keys.indexOf(e);return-1!==t&&(this._values.splice(t,1),this._keys.splice(t,1),this.size--,!0)},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this.size=0},e.prototype.forEach=function(e,t){for(var n=0;n<this.size;n++)e.call(t,this._values[n],this._keys[n])},e}()},"2dDj":function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("ZHJF")),o(n("WWFs"))},"3EbR":function(e,t,n){"use strict";Object.defineProperty(t,"__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"}(t.KeyModifiers||(t.KeyModifiers={}))},"3uOy":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("z+Yt"),i=n("4uS6");t.Keymap=function(){function e(e){e&&(this.name=e.name,this.description=e.description,this.abbreviation=e.abbreviation,this.isDefault=e.isDefault,this.layers=e.layers.map(function(e){return new o.Layer(e)}))}return e.prototype.fromJsonObject=function(e,t){return this.isDefault=e.isDefault,this.abbreviation=e.abbreviation,this.name=e.name,this.description=e.description,this.layers=e.layers.map(function(e){return(new o.Layer).fromJsonObject(e,t)}),this.normalize(),this},e.prototype.fromBinary=function(e,t){return this.abbreviation=e.readString(),this.isDefault=e.readBoolean(),this.name=e.readString(),this.description=e.readString(),this.layers=e.readArray(function(e){return(new o.Layer).fromBinary(e,t)}),this.normalize(),this},e.prototype.toJsonObject=function(e){return{isDefault:this.isDefault,abbreviation:this.abbreviation,name:this.name,description:this.description,layers:this.layers.map(function(t){return t.toJsonObject(e)})}},e.prototype.toBinary=function(e,t){e.writeString(this.abbreviation),e.writeBoolean(this.isDefault),e.writeString(this.name),e.writeString(this.description),e.writeArray(this.layers,function(e,n){n.toBinary(e,t)})},e.prototype.toString=function(){return'<Keymap abbreviation="'+this.abbreviation+'" name="'+this.name+'">'},e.prototype.renameKeymap=function(t,n){var o,i=this,r=!1;if(this.layers.forEach(function(e,l){var s=e.renameKeymap(t,n);s!==e&&(r||(o=i.layers.slice(),r=!0),o[l]=s)}),r){var l=Object.assign(new e,this);return l.layers=o,l}return this},e.prototype.normalize=function(){if(!(this.layers.length<1))for(var e=0;e<this.layers[0].modules.length&&e<2;e++)for(var t=this.layers[0].modules[e],n=0;n<t.keyActions.length;n++){var o=t.keyActions[n];if(o instanceof i.SwitchLayerAction){var r=o.layer+1;this.layers.length<r&&console.error(this.name+" has not enough layer. Need: "+r)}for(var l=1;l<this.layers.length;l++){var s=this.layers[l];if(s.modules.length<e)console.error(this.name+".layers["+l+"] has not enough module. Need: "+e);else{var a=s.modules[e],u=a.keyActions[n];if(o instanceof i.SwitchLayerAction){if(l-1===o.layer){if(u instanceof i.SwitchLayerAction){if(u.layer===o.layer&&u.switchLayerMode===o.switchLayerMode)continue;var c=this.name+".layers["+l+"]modules["+e+"].keyActions["+n+"] is different switch layer. "+u+" will be override with "+o;console.warn(c)}else c=this.name+".layers["+l+"]modules["+e+"].keyActions["+n+"] is not switch layer. "+u+" will be override with "+o,console.warn(c);a.keyActions[n]=i.KeyActionHelper.createKeyAction(o)}}else u instanceof i.SwitchLayerAction&&(c=this.name+".layers["+l+"]modules["+e+"].keyActions["+n+"] is switch layer action, but the base key action is not switch layer action, so will delete",console.warn(c),a.keyActions[n]=null)}}}},e}()},"3vEz":function(e,t){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]}]}]}},"4KnF":function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),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"}(o=t.KeyActionId||(t.KeyActionId={})),t.keyActionType={NoneAction:"none",KeystrokeAction:"keystroke",SwitchLayerAction:"switchLayer",SwitchKeymapAction:"switchKeymap",MouseAction:"mouse",PlayMacroAction:"playMacro"},t.KeyAction=function(){function e(){}return e.prototype.assertKeyActionType=function(e){var n=this.getName();if(e.keyActionType!==t.keyActionType[n])throw"Invalid "+n+".keyActionType: "+e.keyActionType},e.prototype.readAndAssertKeyActionId=function(e){var t=this.getName(),n=e.readUInt8(),i=o[t];if(i===o.KeystrokeAction){if(n<o.KeystrokeAction||n>o.LastKeystrokeAction)throw"Invalid "+t+" first byte: "+n}else if(n!==i)throw"Invalid "+t+" first byte: "+n;return n},e.prototype.renameKeymap=function(e,t){return this},e}()},"4uS6":function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("4KnF")),o(n("I5Xr")),o(n("CfJK")),o(n("78zf")),o(n("HiVc")),o(n("Fq1u")),o(n("9PEG")),o(n("MkTX"));var i=n("wogf");t.KeyActionHelper=i.Helper},"63KW":function(e,t,n){"use strict";(function(e){var o=n("EKta"),i=n("ujcs"),r=n("sOR5");function l(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(l()<t)throw new RangeError("Invalid typed array length");return a.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=a.prototype:(null===e&&(e=new a(t)),e.length=t),e}function a(e,t,n){if(!(a.TYPED_ARRAY_SUPPORT||this instanceof a))return new a(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return u(this,e,t,n)}function u(e,t,n,o){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,o){if(n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(o||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===o?new Uint8Array(t):void 0===o?new Uint8Array(t,n):new Uint8Array(t,n,o),a.TYPED_ARRAY_SUPPORT?(e=t).__proto__=a.prototype:e=p(e,t),e}(e,t,n,o):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!a.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var o=0|h(t,n),i=(e=s(e,o)).write(t,n);return i!==o&&(e=e.slice(0,i)),e}(e,t,n):function(e,t){if(a.isBuffer(t)){var n=0|f(t.length);return 0===(e=s(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(o=t.length)!=o?s(e,0):p(e,t);if("Buffer"===t.type&&r(t.data))return p(e,t.data)}var o;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(c(t),e=s(e,t<0?0:0|f(t)),!a.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|f(t.length);e=s(e,n);for(var o=0;o<n;o+=1)e[o]=255&t[o];return e}function f(e){if(e>=l())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l().toString(16)+" bytes");return 0|e}function h(e,t){if(a.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(e).length;default:if(o)return V(e).length;t=(""+t).toLowerCase(),o=!0}}function y(e,t,n){var o=e[t];e[t]=e[n],e[n]=o}function m(e,t,n,o,i){if(0===e.length)return-1;if("string"==typeof n?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=a.from(t,o)),a.isBuffer(t))return 0===t.length?-1:g(e,t,n,o,i);if("number"==typeof t)return t&=255,a.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,o,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,o,i){var r,l=1,s=e.length,a=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;l=2,s/=2,a/=2,n/=2}function u(e,t){return 1===l?e[t]:e.readUInt16BE(t*l)}if(i){var c=-1;for(r=n;r<s;r++)if(u(e,r)===u(t,-1===c?0:r-c)){if(-1===c&&(c=r),r-c+1===a)return c*l}else-1!==c&&(r-=r-c),c=-1}else for(n+a>s&&(n=s-a),r=n;r>=0;r--){for(var d=!0,p=0;p<a;p++)if(u(e,r+p)!==u(t,p)){d=!1;break}if(d)return r}return-1}function v(e,t,n,o){n=Number(n)||0;var i=e.length-n;o?(o=Number(o))>i&&(o=i):o=i;var r=t.length;if(r%2!=0)throw new TypeError("Invalid hex string");o>r/2&&(o=r/2);for(var l=0;l<o;++l){var s=parseInt(t.substr(2*l,2),16);if(isNaN(s))return l;e[n+l]=s}return l}function b(e,t,n,o){return K(V(t,e.length-n),e,n,o)}function k(e,t,n,o){return K(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,o)}function _(e,t,n,o){return k(e,t,n,o)}function w(e,t,n,o){return K(F(t),e,n,o)}function A(e,t,n,o){return K(function(e,t){for(var n,o,i=[],r=0;r<e.length&&!((t-=2)<0);++r)o=(n=e.charCodeAt(r))>>8,i.push(n%256),i.push(o);return i}(t,e.length-n),e,n,o)}function T(e,t,n){return o.fromByteArray(0===t&&n===e.length?e:e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var o=[],i=t;i<n;){var r,l,s,a,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:128==(192&(r=e[i+1]))&&(a=(31&u)<<6|63&r)>127&&(c=a);break;case 3:l=e[i+2],128==(192&(r=e[i+1]))&&128==(192&l)&&(a=(15&u)<<12|(63&r)<<6|63&l)>2047&&(a<55296||a>57343)&&(c=a);break;case 4:l=e[i+2],s=e[i+3],128==(192&(r=e[i+1]))&&128==(192&l)&&128==(192&s)&&(a=(15&u)<<18|(63&r)<<12|(63&l)<<6|63&s)>65535&&a<1114112&&(c=a)}null===c?(c=65533,d=1):c>65535&&(o.push((c-=65536)>>>10&1023|55296),c=56320|1023&c),o.push(c),i+=d}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);for(var n="",o=0;o<t;)n+=String.fromCharCode.apply(String,e.slice(o,o+=x));return n}(o)}t.Buffer=a,t.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},t.INSPECT_MAX_BYTES=50,a.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=l(),a.poolSize=8192,a._augment=function(e){return e.__proto__=a.prototype,e},a.from=function(e,t,n){return u(null,e,t,n)},a.TYPED_ARRAY_SUPPORT&&(a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0})),a.alloc=function(e,t,n){return function(e,t,n,o){return c(t),t<=0?s(null,t):void 0!==n?"string"==typeof o?s(null,t).fill(n,o):s(null,t).fill(n):s(null,t)}(0,e,t,n)},a.allocUnsafe=function(e){return d(null,e)},a.allocUnsafeSlow=function(e){return d(null,e)},a.isBuffer=function(e){return!(null==e||!e._isBuffer)},a.compare=function(e,t){if(!a.isBuffer(e)||!a.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,o=t.length,i=0,r=Math.min(n,o);i<r;++i)if(e[i]!==t[i]){n=e[i],o=t[i];break}return n<o?-1:o<n?1:0},a.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(e,t){if(!r(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return a.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var o=a.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var l=e[n];if(!a.isBuffer(l))throw new TypeError('"list" argument must be an Array of Buffers');l.copy(o,i),i+=l.length}return o},a.byteLength=h,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},a.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},a.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},a.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?C(this,0,e):(function(e,t,n){var o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return S(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,n);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}).apply(this,arguments)},a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},a.prototype.compare=function(e,t,n,o,i){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===o&&(o=0),void 0===i&&(i=this.length),t<0||n>e.length||o<0||i>this.length)throw new RangeError("out of range index");if(o>=i&&t>=n)return 0;if(o>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,o>>>=0,i>>>=0,this===e)return 0;for(var r=i-o,l=n-t,s=Math.min(r,l),u=this.slice(o,i),c=e.slice(t,n),d=0;d<s;++d)if(u[d]!==c[d]){r=u[d],l=c[d];break}return r<l?-1:l<r?1:0},a.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},a.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},a.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},a.prototype.write=function(e,t,n,o){if(void 0===t)o="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)o=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===o&&(o="utf8")):(o=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var r=!1;;)switch(o){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return k(this,e,t,n);case"latin1":case"binary":return _(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,n);default:if(r)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),r=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function O(e,t,n){var o="";n=Math.min(e.length,n);for(var i=t;i<n;++i)o+=String.fromCharCode(127&e[i]);return o}function S(e,t,n){var o="";n=Math.min(e.length,n);for(var i=t;i<n;++i)o+=String.fromCharCode(e[i]);return o}function M(e,t,n){var o,i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var r="",l=t;l<n;++l)r+=(o=e[l])<16?"0"+o.toString(16):o.toString(16);return r}function E(e,t,n){for(var o=e.slice(t,n),i="",r=0;r<o.length;r+=2)i+=String.fromCharCode(o[r]+256*o[r+1]);return i}function P(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,o,i,r){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<r)throw new RangeError('"value" argument is out of bounds');if(n+o>e.length)throw new RangeError("Index out of range")}function R(e,t,n,o){t<0&&(t=65535+t+1);for(var i=0,r=Math.min(e.length-n,2);i<r;++i)e[n+i]=(t&255<<8*(o?i:1-i))>>>8*(o?i:1-i)}function D(e,t,n,o){t<0&&(t=4294967295+t+1);for(var i=0,r=Math.min(e.length-n,4);i<r;++i)e[n+i]=t>>>8*(o?i:3-i)&255}function N(e,t,n,o,i,r){if(n+o>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(e,t,n,o,r){return r||N(e,0,n,4),i.write(e,t,n,o,23,4),n+4}function L(e,t,n,o,r){return r||N(e,0,n,8),i.write(e,t,n,o,52,8),n+8}a.prototype.slice=function(e,t){var n,o=this.length;if(e=~~e,t=void 0===t?o:~~t,e<0?(e+=o)<0&&(e=0):e>o&&(e=o),t<0?(t+=o)<0&&(t=0):t>o&&(t=o),t<e&&(t=e),a.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=a.prototype;else{var i=t-e;n=new a(i,void 0);for(var r=0;r<i;++r)n[r]=this[r+e]}return n},a.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var o=this[e],i=1,r=0;++r<t&&(i*=256);)o+=this[e+r]*i;return o},a.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var o=this[e+--t],i=1;t>0&&(i*=256);)o+=this[e+--t]*i;return o},a.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var o=this[e],i=1,r=0;++r<t&&(i*=256);)o+=this[e+r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var o=t,i=1,r=this[e+--o];o>0&&(i*=256);)r+=this[e+--o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},a.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,n,o){e=+e,t|=0,n|=0,o||I(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,r=0;for(this[t]=255&e;++r<n&&(i*=256);)this[t+r]=e/i&255;return t+n},a.prototype.writeUIntBE=function(e,t,n,o){e=+e,t|=0,n|=0,o||I(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,r=1;for(this[t+i]=255&e;--i>=0&&(r*=256);)this[t+i]=e/r&255;return t+n},a.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},a.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},a.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},a.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},a.prototype.writeIntLE=function(e,t,n,o){if(e=+e,t|=0,!o){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var r=0,l=1,s=0;for(this[t]=255&e;++r<n&&(l*=256);)e<0&&0===s&&0!==this[t+r-1]&&(s=1),this[t+r]=(e/l>>0)-s&255;return t+n},a.prototype.writeIntBE=function(e,t,n,o){if(e=+e,t|=0,!o){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var r=n-1,l=1,s=0;for(this[t+r]=255&e;--r>=0&&(l*=256);)e<0&&0===s&&0!==this[t+r+1]&&(s=1),this[t+r]=(e/l>>0)-s&255;return t+n},a.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),a.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},a.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},a.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},a.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),a.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},a.prototype.writeFloatLE=function(e,t,n){return j(this,e,t,!0,n)},a.prototype.writeFloatBE=function(e,t,n){return j(this,e,t,!1,n)},a.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},a.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},a.prototype.copy=function(e,t,n,o){if(n||(n=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<n&&(o=n),o===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-n&&(o=e.length-t+n);var i,r=o-n;if(this===e&&n<t&&t<o)for(i=r-1;i>=0;--i)e[i+t]=this[i+n];else if(r<1e3||!a.TYPED_ARRAY_SUPPORT)for(i=0;i<r;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+r),t);return r},a.prototype.fill=function(e,t,n,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,n=this.length):"string"==typeof n&&(o=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!a.isEncoding(o))throw new TypeError("Unknown encoding: "+o)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var r;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(r=t;r<n;++r)this[r]=e;else{var l=a.isBuffer(e)?e:V(new a(e,o).toString()),s=l.length;for(r=0;r<n-t;++r)this[r+t]=l[r%s]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function V(e,t){var n;t=t||1/0;for(var o=e.length,i=null,r=[],l=0;l<o;++l){if((n=e.charCodeAt(l))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&r.push(239,191,189);continue}if(l+1===o){(t-=3)>-1&&r.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&r.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&r.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;r.push(n)}else if(n<2048){if((t-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function F(e){return o.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function K(e,t,n,o){for(var i=0;i<o&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(t,n("srjU"))},"6BaH":function(e,t,n){"use strict";var o=n("sIYO");t.multicast=function(e,t){return function(n){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new i(r,t));var l=Object.create(n,o.connectableObservableDescriptor);return l.source=n,l.subjectFactory=r,l}};var i=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,o=this.subjectFactory(),i=n(o).subscribe(e);return i.add(t.subscribe(o)),i},e}();t.MulticastOperator=i},"6Yye":function(e,t,n){"use strict";var o=n("rCTf"),i=n("+4ur");o.Observable.prototype.catch=i._catch,o.Observable.prototype._catch=i._catch},"78zf":function(e,t,n){"use strict";var o=n("xgwM").__extends,i=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l,s=n("CmJd"),a=n("4KnF");!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"}(l=t.MouseActionParam||(t.MouseActionParam={})),t.MouseAction=function(e){function t(t){var n=e.call(this)||this;return t?(n.mouseAction=t.mouseAction,n):n}return o(t,e),t.prototype.fromJsonObject=function(e){return this.assertKeyActionType(e),this.mouseAction=l[e.mouseAction],this},t.prototype.fromBinary=function(e){return this.readAndAssertKeyActionId(e),this.mouseAction=e.readUInt8(),this},t.prototype.toJsonObject=function(){return{keyActionType:a.keyActionType.MouseAction,mouseAction:l[this.mouseAction]}},t.prototype.toBinary=function(e){e.writeUInt8(a.KeyActionId.MouseAction),e.writeUInt8(this.mouseAction)},t.prototype.toString=function(){return'<MouseAction mouseAction="'+this.mouseAction+'">'},t.prototype.getName=function(){return"MouseAction"},i([s.assertEnum(l),r("design:type",Number)],t.prototype,"mouseAction",void 0),t}(a.KeyAction)},"7DMc":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"AbstractControlDirective",function(){return u}),n.d(t,"AbstractFormGroupDirective",function(){return oe}),n.d(t,"CheckboxControlValueAccessor",function(){return _}),n.d(t,"ControlContainer",function(){return c}),n.d(t,"NG_VALUE_ACCESSOR",function(){return b}),n.d(t,"COMPOSITION_BUFFER_MODE",function(){return A}),n.d(t,"DefaultValueAccessor",function(){return T}),n.d(t,"NgControl",function(){return E}),n.d(t,"NgControlStatus",function(){return le}),n.d(t,"NgControlStatusGroup",function(){return se}),n.d(t,"NgForm",function(){return ge}),n.d(t,"NgModel",function(){return xe}),n.d(t,"NgModelGroup",function(){return Ae}),n.d(t,"RadioControlValueAccessor",function(){return R}),n.d(t,"FormControlDirective",function(){return Me}),n.d(t,"FormControlName",function(){return Ue}),n.d(t,"FormGroupDirective",function(){return Pe}),n.d(t,"FormArrayName",function(){return Ne}),n.d(t,"FormGroupName",function(){return Re}),n.d(t,"NgSelectOption",function(){return V}),n.d(t,"SelectControlValueAccessor",function(){return U}),n.d(t,"SelectMultipleControlValueAccessor",function(){return B}),n.d(t,"CheckboxRequiredValidator",function(){return Be}),n.d(t,"EmailValidator",function(){return We}),n.d(t,"MaxLengthValidator",function(){return Ge}),n.d(t,"MinLengthValidator",function(){return ze}),n.d(t,"PatternValidator",function(){return Qe}),n.d(t,"RequiredValidator",function(){return Ke}),n.d(t,"FormBuilder",function(){return Je}),n.d(t,"AbstractControl",function(){return de}),n.d(t,"FormArray",function(){return he}),n.d(t,"FormControl",function(){return pe}),n.d(t,"FormGroup",function(){return fe}),n.d(t,"NG_ASYNC_VALIDATORS",function(){return f}),n.d(t,"NG_VALIDATORS",function(){return p}),n.d(t,"Validators",function(){return y}),n.d(t,"VERSION",function(){return Ze}),n.d(t,"FormsModule",function(){return it}),n.d(t,"ReactiveFormsModule",function(){return rt}),n.d(t,"\u0275ba",function(){return ot}),n.d(t,"\u0275z",function(){return nt}),n.d(t,"\u0275x",function(){return et}),n.d(t,"\u0275y",function(){return tt}),n.d(t,"\u0275a",function(){return k}),n.d(t,"\u0275b",function(){return w}),n.d(t,"\u0275c",function(){return ie}),n.d(t,"\u0275d",function(){return re}),n.d(t,"\u0275e",function(){return ye}),n.d(t,"\u0275f",function(){return Te}),n.d(t,"\u0275g",function(){return we}),n.d(t,"\u0275bf",function(){return Xe}),n.d(t,"\u0275bb",function(){return O}),n.d(t,"\u0275bc",function(){return S}),n.d(t,"\u0275h",function(){return P}),n.d(t,"\u0275i",function(){return I}),n.d(t,"\u0275bd",function(){return D}),n.d(t,"\u0275be",function(){return N}),n.d(t,"\u0275j",function(){return Se}),n.d(t,"\u0275k",function(){return Le}),n.d(t,"\u0275l",function(){return Ee}),n.d(t,"\u0275n",function(){return De}),n.d(t,"\u0275m",function(){return Ie}),n.d(t,"\u0275o",function(){return j}),n.d(t,"\u0275q",function(){return H}),n.d(t,"\u0275p",function(){return F}),n.d(t,"\u0275s",function(){return Fe}),n.d(t,"\u0275t",function(){return He}),n.d(t,"\u0275v",function(){return $e}),n.d(t,"\u0275u",function(){return qe}),n.d(t,"\u0275w",function(){return Ye}),n.d(t,"\u0275r",function(){return Ve});var o=n("TToO"),i=n("WT6e"),r=n("7rB9"),l=n("ioK+"),s=n("xAJs"),a=n("OE0E"),u=function(){function e(){}return Object.defineProperty(e.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.control?this.control.status:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.reset=function(e){void 0===e&&(e=void 0),this.control&&this.control.reset(e)},e.prototype.hasError=function(e,t){return!!this.control&&this.control.hasError(e,t)},e.prototype.getError=function(e,t){return this.control?this.control.getError(e,t):null},e}(),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t}(u);function d(e){return null==e||0===e.length}var p=new i.InjectionToken("NgValidators"),f=new i.InjectionToken("NgAsyncValidators"),h=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,y=function(){function e(){}return e.min=function(e){return function(t){if(d(t.value)||d(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}},e.max=function(e){return function(t){if(d(t.value)||d(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return d(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return h.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(d(t.value))return null;var n=t.value?t.value.length:0;return n<e?{minlength:{requiredLength:e,actualLength:n}}:null}},e.maxLength=function(e){return function(t){var n=t.value?t.value.length:0;return n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){return t?("string"==typeof t?(o="","^"!==t.charAt(0)&&(o+="^"),o+=t,"$"!==t.charAt(t.length-1)&&(o+="$"),n=new RegExp(o)):(o=t.toString(),n=t),function(e){if(d(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:o,actualValue:t}}}):e.nullValidator;var n,o},e.nullValidator=function(e){return null},e.compose=function(e){if(!e)return null;var t=e.filter(m);return 0==t.length?null:function(e){return v(function(e,n){return t.map(function(t){return t(e)})}(e))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(m);return 0==t.length?null:function(e){var n=function(e,n){return t.map(function(t){return t(e)})}(e).map(g);return s.map.call(Object(r.forkJoin)(n),v)}},e}();function m(e){return null!=e}function g(e){var t=Object(i["\u0275isPromise"])(e)?Object(l.fromPromise)(e):e;if(!Object(i["\u0275isObservable"])(t))throw new Error("Expected validator to return Promise or Observable.");return t}function v(e){var t=e.reduce(function(e,t){return null!=t?Object(o.__assign)({},e,t):e},{});return 0===Object.keys(t).length?null:t}var b=new i.InjectionToken("NgValueAccessor"),k={provide:b,useExisting:Object(i.forwardRef)(function(){return _}),multi:!0},_=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),w={provide:b,useExisting:Object(i.forwardRef)(function(){return T}),multi:!0},A=new i.InjectionToken("CompositionEventMode"),T=function(){function e(e,t,n){var o;this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(o=Object(a.s)()?Object(a.s)().getUserAgent():"",!/android (\d+)/.test(o.toLowerCase())))}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._handleInput=function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)},e.prototype._compositionStart=function(){this._composing=!0},e.prototype._compositionEnd=function(e){this._composing=!1,this._compositionMode&&this.onChange(e)},e}();function C(e){return e.validate?function(t){return e.validate(t)}:e}function x(e){return e.validate?function(t){return e.validate(t)}:e}var O={provide:b,useExisting:Object(i.forwardRef)(function(){return S}),multi:!0},S=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}();function M(){throw new Error("unimplemented")}var E=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"validator",{get:function(){return M()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return M()},enumerable:!0,configurable:!0}),t}(u),P={provide:b,useExisting:Object(i.forwardRef)(function(){return R}),multi:!0},I=function(){function e(){this._accessors=[]}return e.prototype.add=function(e,t){this._accessors.push([e,t])},e.prototype.remove=function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name},e}(),R=function(){function e(e,t,n,o){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=o,this.onChange=function(){},this.onTouched=function(){}}return e.prototype.ngOnInit=function(){this._control=this._injector.get(E),this._checkName(),this._registry.add(this._control,this)},e.prototype.ngOnDestroy=function(){this._registry.remove(this)},e.prototype.writeValue=function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},e.prototype.registerOnChange=function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}},e.prototype.fireUncheck=function(e){this.writeValue(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},e.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type="radio" formControlName="food" name="food">\n ')},e}(),D={provide:b,useExisting:Object(i.forwardRef)(function(){return N}),multi:!0},N=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),j={provide:b,useExisting:Object(i.forwardRef)(function(){return U}),multi:!0};function L(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var U=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=i["\u0275looseIdentical"]}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=L(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(){return(this._idCounter++).toString()},e.prototype._getOptionId=function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var o=n[t];if(this._compareWith(this._optionMap.get(o),e))return o}return null},e.prototype._getOptionValue=function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e},e}(),V=function(){function e(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(e.prototype,"ngValue",{set:function(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(L(this.id,e)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),e.prototype._setElementValue=function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)},e.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},e}(),F={provide:b,useExisting:Object(i.forwardRef)(function(){return B}),multi:!0};function K(e,t){return null==e?""+t:("string"==typeof t&&(t="'"+t+"'"),t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var B=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=i["\u0275looseIdentical"]}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){var t,n=this;if(this.value=e,Array.isArray(e)){var o=e.map(function(e){return n._getOptionId(e)});t=function(e,t){e._setSelected(o.indexOf(t.toString())>-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){var o=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,r=0;r<i.length;r++){var l=i.item(r),s=t._getOptionValue(l.value);o.push(s)}else for(i=n.options,r=0;r<i.length;r++)(l=i.item(r)).selected&&(s=t._getOptionValue(l.value),o.push(s));t.value=o,e(o)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(e){var t=(this._idCounter++).toString();return this._optionMap.set(t,e),t},e.prototype._getOptionId=function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var o=n[t];if(this._compareWith(this._optionMap.get(o)._value,e))return o}return null},e.prototype._getOptionValue=function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e},e}(),H=function(){function e(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(e.prototype,"ngValue",{set:function(e){null!=this._select&&(this._value=e,this._setElementValue(K(this.id,e)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this._select?(this._value=e,this._setElementValue(K(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)},enumerable:!0,configurable:!0}),e.prototype._setElementValue=function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)},e.prototype._setSelected=function(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)},e.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},e}();function W(e,t){return t.path.concat([e])}function q(e,t){e||Y(t,"Cannot find control with"),t.valueAccessor||Y(t,"No value accessor for form control with"),e.validator=y.compose([e.validator,t.validator]),e.asyncValidator=y.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&z(e,t)})}(e,t),function(e,t){e.registerOnChange(function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&z(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(function(e){t.valueAccessor.setDisabledState(e)}),t._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return e.updateValueAndValidity()})}),t._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return e.updateValueAndValidity()})})}function z(e,t){t.viewToModelUpdate(e._pendingValue),e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),e._pendingChange=!1}function $(e,t){null==e&&Y(t,"Cannot find control with"),e.validator=y.compose([e.validator,t.validator]),e.asyncValidator=y.composeAsync([e.asyncValidator,t.asyncValidator])}function G(e){return Y(e,"There is no FormControl instance attached to form control element with")}function Y(e,t){var n;throw n=e.path.length>1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function Q(e){return null!=e?y.compose(e.map(C)):null}function J(e){return null!=e?y.composeAsync(e.map(x)):null}function Z(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object(i["\u0275looseIdentical"])(t,n.currentValue)}var X=[_,N,S,U,B,R];function ee(e,t){e._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function te(e,t){if(!t)return null;var n=void 0,o=void 0,i=void 0;return t.forEach(function(t){var r;t.constructor===T?n=t:(r=t,X.some(function(e){return r.constructor===e})?(o&&Y(e,"More than one built-in value accessor matches form control with"),o=t):(i&&Y(e,"More than one custom value accessor matches form control with"),i=t))}),i||o||n||(Y(e,"No valid value accessor for form control with"),null)}function ne(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return W(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){},t}(c),ie=function(){function e(e){this._cd=e}return Object.defineProperty(e.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),e}(),re={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},le=function(e){function t(t){return e.call(this,t)||this}return Object(o.__extends)(t,e),t}(ie),se=function(e){function t(t){return e.call(this,t)||this}return Object(o.__extends)(t,e),t}(ie);function ae(e){var t=ce(e)?e.validators:e;return Array.isArray(t)?Q(t):t||null}function ue(e,t){var n=ce(t)?t.asyncValidators:e;return Array.isArray(n)?J(n):n||null}function ce(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var de=function(){function e(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),e.prototype.setValidators=function(e){this.validator=ae(e)},e.prototype.setAsyncValidators=function(e){this.asyncValidator=ue(e)},e.prototype.clearValidators=function(){this.validator=null},e.prototype.clearAsyncValidators=function(){this.asyncValidator=null},e.prototype.markAsTouched=function(e){void 0===e&&(e={}),this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)},e.prototype.markAsUntouched=function(e){void 0===e&&(e={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype.markAsDirty=function(e){void 0===e&&(e={}),this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)},e.prototype.markAsPristine=function(e){void 0===e&&(e={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype.markAsPending=function(e){void 0===e&&(e={}),this.status="PENDING",this._parent&&!e.onlySelf&&this._parent.markAsPending(e)},e.prototype.disable=function(e){void 0===e&&(e={}),this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object(o.__assign)({},e,{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(e),this._onDisabledChange.forEach(function(e){return e(!0)})},e.prototype.enable=function(e){void 0===e&&(e={}),this.status="VALID",this._forEachChild(function(t){t.enable(Object(o.__assign)({},e,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(e),this._onDisabledChange.forEach(function(e){return e(!1)})},e.prototype._updateAncestors=function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),this._parent._updatePristine(),this._parent._updateTouched())},e.prototype.setParent=function(e){this._parent=e},e.prototype.updateValueAndValidity=function(e){void 0===e&&(e={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)},e.prototype._updateTreeValidity=function(e){void 0===e&&(e={emitEvent:!0}),this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})},e.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},e.prototype._runValidator=function(){return this.validator?this.validator(this):null},e.prototype._runAsyncValidator=function(e){var t=this;if(this.asyncValidator){this.status="PENDING";var n=g(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return t.setErrors(n,{emitEvent:e})})}},e.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},e.prototype.setErrors=function(e,t){void 0===t&&(t={}),this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)},e.prototype.get=function(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(".")),t instanceof Array&&0===t.length?null:t.reduce(function(e,t){return e instanceof fe?e.controls[t]||null:e instanceof he&&e.at(t)||null},e))}(this,e)},e.prototype.getError=function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null},e.prototype.hasError=function(e,t){return!!this.getError(e,t)},Object.defineProperty(e.prototype,"root",{get:function(){for(var e=this;e._parent;)e=e._parent;return e},enumerable:!0,configurable:!0}),e.prototype._updateControlsErrors=function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)},e.prototype._initObservables=function(){this.valueChanges=new i.EventEmitter,this.statusChanges=new i.EventEmitter},e.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},e.prototype._anyControlsHaveStatus=function(e){return this._anyControls(function(t){return t.status===e})},e.prototype._anyControlsDirty=function(){return this._anyControls(function(e){return e.dirty})},e.prototype._anyControlsTouched=function(){return this._anyControls(function(e){return e.touched})},e.prototype._updatePristine=function(e){void 0===e&&(e={}),this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype._updateTouched=function(e){void 0===e&&(e={}),this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype._isBoxedValue=function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e},e.prototype._registerOnCollectionChange=function(e){this._onCollectionChange=e},e.prototype._setUpdateStrategy=function(e){ce(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)},e}(),pe=function(e){function t(t,n,o){void 0===t&&(t=null);var i=e.call(this,ae(n),ue(o,n))||this;return i._onChange=[],i._applyFormState(t),i._setUpdateStrategy(n),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return Object(o.__extends)(t,e),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(function(e){return e(n.value,!1!==t.emitViewToModelChange)}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){void 0===t&&(t={}),this.setValue(e,t)},t.prototype.reset=function(e,t){void 0===e&&(e=null),void 0===t&&(t={}),this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1},t.prototype._updateValue=function(){},t.prototype._anyControls=function(e){return!1},t.prototype._allControlsDisabled=function(){return this.disabled},t.prototype.registerOnChange=function(e){this._onChange.push(e)},t.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},t.prototype.registerOnDisabledChange=function(e){this._onDisabledChange.push(e)},t.prototype._forEachChild=function(e){},t.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))},t.prototype._applyFormState=function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e},t}(de),fe=function(e){function t(t,n,o){var i=e.call(this,ae(n),ue(o,n))||this;return i.controls=t,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(o.__extends)(t,e),t.prototype.registerControl=function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)},t.prototype.addControl=function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeControl=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.contains=function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled},t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),Object.keys(e).forEach(function(o){n._throwIfControlMissing(o),n.controls[o].setValue(e[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),Object.keys(e).forEach(function(o){n.controls[o]&&n.controls[o].patchValue(e[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this._forEachChild(function(n,o){n.reset(e[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof pe?t.value:t.getRawValue(),e})},t.prototype._syncPendingControls=function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: "+e+".")},t.prototype._forEachChild=function(e){var t=this;Object.keys(this.controls).forEach(function(n){return e(t.controls[n],n)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})},t.prototype._updateValue=function(){this.value=this._reduceValue()},t.prototype._anyControls=function(e){var t=this,n=!1;return this._forEachChild(function(o,i){n=n||t.contains(i)&&e(o)}),n},t.prototype._reduceValue=function(){var e=this;return this._reduceChildren({},function(t,n,o){return(n.enabled||e.disabled)&&(t[o]=n.value),t})},t.prototype._reduceChildren=function(e,t){var n=e;return this._forEachChild(function(e,o){n=t(n,e,o)}),n},t.prototype._allControlsDisabled=function(){for(var e=0,t=Object.keys(this.controls);e<t.length;e++)if(this.controls[t[e]].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},t}(de),he=function(e){function t(t,n,o){var i=e.call(this,ae(n),ue(o,n))||this;return i.controls=t,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(o.__extends)(t,e),t.prototype.at=function(e){return this.controls[e]},t.prototype.push=function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()},t.prototype.removeAt=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),e.forEach(function(e,o){n._throwIfControlMissing(o),n.at(o).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),e.forEach(function(e,o){n.at(o)&&n.at(o).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this._forEachChild(function(n,o){n.reset(e[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this.controls.map(function(e){return e instanceof pe?e.value:e.getRawValue()})},t.prototype._syncPendingControls=function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)},t.prototype._forEachChild=function(e){this.controls.forEach(function(t,n){e(t,n)})},t.prototype._updateValue=function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})},t.prototype._anyControls=function(e){return this.controls.some(function(t){return t.enabled&&e(t)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: "+n+".")})},t.prototype._allControlsDisabled=function(){for(var e=0,t=this.controls;e<t.length;e++)if(t[e].enabled)return!1;return this.controls.length>0||this.disabled},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(de),ye={provide:c,useExisting:Object(i.forwardRef)(function(){return ge})},me=Promise.resolve(null),ge=function(e){function t(t,n){var o=e.call(this)||this;return o.submitted=!1,o._directives=[],o.ngSubmit=new i.EventEmitter,o.form=new fe({},Q(t),J(n)),o}return Object(o.__extends)(t,e),t.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this;me.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),q(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){var t=this;me.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),ne(t._directives,e)})},t.prototype.addFormGroup=function(e){var t=this;me.then(function(){var n=t._findContainer(e.path),o=new fe({});$(o,e),n.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})},t.prototype.removeFormGroup=function(e){var t=this;me.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){var n=this;me.then(function(){n.form.get(e.path).setValue(t)})},t.prototype.setValue=function(e){this.control.setValue(e)},t.prototype.onSubmit=function(e){return this.submitted=!0,ee(this.form,this._directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},t.prototype._findContainer=function(e){return e.pop(),e.length?this.form.get(e):this.form},t}(c),ve='\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',be='\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',ke='\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',_e=function(){function e(){}return e.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+ve+'\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n ')},e.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+be+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+ke)},e.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},e.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+be+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+ke)},e}(),we={provide:c,useExisting:Object(i.forwardRef)(function(){return Ae})},Ae=function(e){function t(t,n,o){var i=e.call(this)||this;return i._parent=t,i._validators=n,i._asyncValidators=o,i}return Object(o.__extends)(t,e),t.prototype._checkParentType=function(){this._parent instanceof t||this._parent instanceof ge||_e.modelGroupParentException()},t}(oe),Te={provide:E,useExisting:Object(i.forwardRef)(function(){return xe})},Ce=Promise.resolve(null),xe=function(e){function t(t,n,o,r){var l=e.call(this)||this;return l.control=new pe,l._registered=!1,l.update=new i.EventEmitter,l._parent=t,l._rawValidators=n||[],l._rawAsyncValidators=o||[],l.valueAccessor=te(l,r),l}return Object(o.__extends)(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),Z(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(t.prototype,"path",{get:function(){return this._parent?W(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},t.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},t.prototype._setUpStandalone=function(){q(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},t.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},t.prototype._checkParentType=function(){!(this._parent instanceof Ae)&&this._parent instanceof oe?_e.formGroupNameException():this._parent instanceof Ae||this._parent instanceof ge||_e.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||_e.missingNameException()},t.prototype._updateValue=function(e){var t=this;Ce.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})},t.prototype._updateDisabled=function(e){var t=this,n=e.isDisabled.currentValue,o=""===n||n&&"false"!==n;Ce.then(function(){o&&!t.control.disabled?t.control.disable():!o&&t.control.disabled&&t.control.enable()})},t}(E),Oe=function(){function e(){}return e.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+ve)},e.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+be+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+ke)},e.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+ve)},e.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+be)},e.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n <div [formGroup]="myGroup">\n <div formArrayName="cities">\n <div *ngFor="let city of cityArray.controls; index as i">\n <input [formControlName]="i">\n </div>\n </div>\n </div>\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},e.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},e}(),Se={provide:E,useExisting:Object(i.forwardRef)(function(){return Me})},Me=function(e){function t(t,n,o){var r=e.call(this)||this;return r.update=new i.EventEmitter,r._rawValidators=t||[],r._rawAsyncValidators=n||[],r.valueAccessor=te(r,o),r}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"isDisabled",{set:function(e){Oe.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._isControlChanged(e)&&(q(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),Z(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._isControlChanged=function(e){return e.hasOwnProperty("form")},t}(E),Ee={provide:c,useExisting:Object(i.forwardRef)(function(){return Pe})},Pe=function(e){function t(t,n){var o=e.call(this)||this;return o._validators=t,o._asyncValidators=n,o.submitted=!1,o.directives=[],o.form=null,o.ngSubmit=new i.EventEmitter,o}return Object(o.__extends)(t,e),t.prototype.ngOnChanges=function(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this.form.get(e.path);return q(t,e),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){ne(this.directives,e)},t.prototype.addFormGroup=function(e){var t=this.form.get(e.path);$(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormGroup=function(e){},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.addFormArray=function(e){var t=this.form.get(e.path);$(t,e),t.updateValueAndValidity({emitEvent:!1})},t.prototype.removeFormArray=function(e){},t.prototype.getFormArray=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){this.form.get(e.path).setValue(t)},t.prototype.onSubmit=function(e){return this.submitted=!0,ee(this.form,this.directives),this.ngSubmit.emit(e),!1},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._updateDomValue=function(){var e=this;this.directives.forEach(function(t){var n=e.form.get(t.path);t.control!==n&&(function(e,t){t.valueAccessor.registerOnChange(function(){return G(t)}),t.valueAccessor.registerOnTouched(function(){return G(t)}),t._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),t._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(null)}),e&&e._clearChangeFns()}(t.control,t),n&&q(n,t),t.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},t.prototype._updateRegistrations=function(){var e=this;this.form._registerOnCollectionChange(function(){return e._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},t.prototype._updateValidators=function(){var e=Q(this._validators);this.form.validator=y.compose([this.form.validator,e]);var t=J(this._asyncValidators);this.form.asyncValidator=y.composeAsync([this.form.asyncValidator,t])},t.prototype._checkFormPresent=function(){this.form||Oe.missingFormException()},t}(c),Ie={provide:c,useExisting:Object(i.forwardRef)(function(){return Re})},Re=function(e){function t(t,n,o){var i=e.call(this)||this;return i._parent=t,i._validators=n,i._asyncValidators=o,i}return Object(o.__extends)(t,e),t.prototype._checkParentType=function(){je(this._parent)&&Oe.groupParentException()},t}(oe),De={provide:c,useExisting:Object(i.forwardRef)(function(){return Ne})},Ne=function(e){function t(t,n,o){var i=e.call(this)||this;return i._parent=t,i._validators=n,i._asyncValidators=o,i}return Object(o.__extends)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return W(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){je(this._parent)&&Oe.arrayParentException()},t}(c);function je(e){return!(e instanceof Re||e instanceof Pe||e instanceof Ne)}var Le={provide:E,useExisting:Object(i.forwardRef)(function(){return Ue})},Ue=function(e){function t(t,n,o,r){var l=e.call(this)||this;return l._added=!1,l.update=new i.EventEmitter,l._parent=t,l._rawValidators=n||[],l._rawAsyncValidators=o||[],l.valueAccessor=te(l,r),l}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"isDisabled",{set:function(e){Oe.disabledAttrWarning()},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(e){this._added||this._setUpControl(),Z(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},Object.defineProperty(t.prototype,"path",{get:function(){return W(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return Q(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return J(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){!(this._parent instanceof Re)&&this._parent instanceof oe?Oe.ngModelGroupException():this._parent instanceof Re||this._parent instanceof Pe||this._parent instanceof Ne||Oe.controlParentException()},t.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},t}(E),Ve={provide:p,useExisting:Object(i.forwardRef)(function(){return Ke}),multi:!0},Fe={provide:p,useExisting:Object(i.forwardRef)(function(){return Be}),multi:!0},Ke=function(){function e(){}return Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this.required?y.required(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e}(),Be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.validate=function(e){return this.required?y.requiredTrue(e):null},t}(Ke),He={provide:p,useExisting:Object(i.forwardRef)(function(){return We}),multi:!0},We=function(){function e(){}return Object.defineProperty(e.prototype,"email",{set:function(e){this._enabled=""===e||!0===e||"true"===e,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this._enabled?y.email(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e}(),qe={provide:p,useExisting:Object(i.forwardRef)(function(){return ze}),multi:!0},ze=function(){function e(){}return e.prototype.ngOnChanges=function(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null==this.minlength?null:this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=y.minLength(parseInt(this.minlength,10))},e}(),$e={provide:p,useExisting:Object(i.forwardRef)(function(){return Ge}),multi:!0},Ge=function(){function e(){}return e.prototype.ngOnChanges=function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return null!=this.maxlength?this._validator(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=y.maxLength(parseInt(this.maxlength,10))},e}(),Ye={provide:p,useExisting:Object(i.forwardRef)(function(){return Qe}),multi:!0},Qe=function(){function e(){}return e.prototype.ngOnChanges=function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())},e.prototype.validate=function(e){return this._validator(e)},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e.prototype._createValidator=function(){this._validator=y.pattern(this.pattern)},e}(),Je=function(){function e(){}return e.prototype.group=function(e,t){void 0===t&&(t=null);var n=this._reduceControls(e);return new fe(n,null!=t?t.validator:null,null!=t?t.asyncValidator:null)},e.prototype.control=function(e,t,n){return new pe(e,t,n)},e.prototype.array=function(e,t,n){var o=this,i=e.map(function(e){return o._createControl(e)});return new he(i,t,n)},e.prototype._reduceControls=function(e){var t=this,n={};return Object.keys(e).forEach(function(o){n[o]=t._createControl(e[o])}),n},e.prototype._createControl=function(e){return e instanceof pe||e instanceof fe||e instanceof he?e:Array.isArray(e)?this.control(e[0],e.length>1?e[1]:null,e.length>2?e[2]:null):this.control(e)},e}(),Ze=new i.Version("5.2.9"),Xe=function(){},et=[Xe,V,H,T,S,N,_,U,B,R,le,se,Ke,ze,Ge,Qe,Be,We],tt=[xe,Ae,ge],nt=[Me,Pe,Ue,Re,Ne],ot=function(){},it=function(){},rt=function(){}},"7MSh":function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS"),r=n("+3eL"),l=n("WhVc");t.distinctUntilChanged=function(e,t){return function(n){return n.lift(new s(e,t))}};var s=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.compare,this.keySelector))},e}(),a=function(e){function t(t,n,o){e.call(this,t),this.keySelector=o,this.hasKey=!1,"function"==typeof n&&(this.compare=n)}return o(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t=e;if(this.keySelector&&(t=r.tryCatch(this.keySelector)(e))===l.errorObject)return this.destination.error(l.errorObject.e);var n=!1;if(this.hasKey){if((n=r.tryCatch(this.compare)(this.key,t))===l.errorObject)return this.destination.error(l.errorObject.e)}else this.hasKey=!0;!1===Boolean(n)&&(this.key=t,this.destination.next(e))},t}(i.Subscriber)},"7OPe":function(e,t,n){"use strict";n.d(t,"c",function(){return r}),t.d=function(e,t){switch(void 0===e&&(e=r),t.type){case o.a.TOGGLE_CHECK_FOR_UPDATE_ON_STARTUP:return Object.assign({},e,{checkForUpdateOnStartUp:t.payload});case o.a.TOGGLE_PRE_RELEASE_FLAG:return Object.assign({},e,{usePreReleaseUpdate:t.payload});case o.a.LOAD_AUTO_UPDATE_SETTINGS_SUCCESS:return Object.assign({},t.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}},n.d(t,"b",function(){return l}),n.d(t,"a",function(){return s});var o=n("w+X5"),i=n("va3Z"),r={checkForUpdateOnStartUp:!1,usePreReleaseUpdate:!1,checkingForUpdate:!1},l=function(e){return{checkForUpdateOnStartUp:e.checkForUpdateOnStartUp,usePreReleaseUpdate:e.usePreReleaseUpdate}},s=function(e){return e.checkingForUpdate}},"7RCQ":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("Bxcs");t.getHardwareConfigFromDeviceResponse=function(e){var t=JSON.parse(e),n=new o.HardwareConfiguration;if(n.fromBinary(o.UhkBuffer.fromArray(t)),"FTY"===n.signature)throw Error("The device is in factory reset mode. Power-cycle the device to use it with Agent!");if("UHK"!==n.signature)throw Error("Please power cycle your keyboard (Invalid hardware configuration: Invalid signature)");return n},t.getUserConfigFromDeviceResponse=function(e){var t=JSON.parse(e),n=new o.UserConfiguration;if(n.fromBinary(o.UhkBuffer.fromArray(t)),n.userConfigMajorVersion>0)return n;throw Error("Invalid user configuration")},t.mapObjectToUserConfigBinaryBuffer=function(e){var t=new o.UserConfiguration;t.fromJsonObject(e);var n=new o.UhkBuffer;return t.toBinary(n),n.getBufferContent()}},"7nvF":function(e,t,n){"use strict";var o=n("p/p0");t.last=function(e,t,n){return o.last(e,t,n)(this)}},"7rB9":function(e,t,n){"use strict";var o=n("t2qv");t.forkJoin=o.ForkJoinObservable.create},"7s/Z":function(e,t){e.exports=function e(t){Object.freeze(t);var n="function"==typeof t,o=Object.prototype.hasOwnProperty;return Object.getOwnPropertyNames(t).forEach(function(i){!o.call(t,i)||n&&("caller"===i||"callee"===i||"arguments"===i)||null===t[i]||"object"!=typeof t[i]&&"function"!=typeof t[i]||Object.isFrozen(t[i])||e(t[i])}),t}},"83T1":function(e,t,n){"use strict";var o=n("fI0c");t.every=function(e,t){return o.every(e,t)(this)}},"8AXl":function(e,t,n){"use strict";n.d(t,"b",function(){return _}),n.d(t,"a",function(){return x}),n.d(t,"c",function(){return P}),n.d(t,"d",function(){return j}),n.d(t,"e",function(){return D}),n.d(t,"f",function(){return N}),n.d(t,"i",function(){return R}),n.d(t,"k",function(){return I}),n.d(t,"j",function(){return E}),n.d(t,"h",function(){return M}),n.d(t,"g",function(){return S});var o,i=n("dyjq"),r=n("1KT0"),l=n("C4lF"),s=(n.n(l),n("Y6hq")),a=(n.n(s),n("xAJs")),u=n("WT6e"),c=n("rCTf"),d=n("ack3"),p=n("cJSH"),f=(n.n(p),n("XO5T")),h=n("2AEF"),y=(n.n(h),n("Oa+j")),m=(n.n(y),n("EEr4")),g=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),v="@ngrx/effects",b=Reflect;function k(e){return e.constructor.propDecorators?(t=e.constructor.propDecorators,Object.keys(t).reduce(function(e,n){return e.concat((o=n,t[n].filter(function(e){return e.type===_}).map(function(e){var t=!0;return e.args&&e.args.length&&(t=!!e.args[0].dispatch),{propertyName:o,dispatch:t}})));var o},[])):b.hasOwnMetadata(v,e)?b.getOwnMetadata(v,e):[];var t}function _(e){var t=(void 0===e?{dispatch:!0}:e).dispatch;return function(e,n){var o,i;o=e,i=k(e).concat([{propertyName:n,dispatch:t}]),b.defineMetadata(v,i,o)}}function w(e){return Object.getPrototypeOf(e)}var A=Object(i.x)(k,w),T="ngrxOnRunEffects";function C(e){var t=function(e){var t=w(e).constructor.name,n=A(e).map(function(n){var o=n.propertyName,i=n.dispatch,r="function"==typeof e[o]?e[o]():e[o];if(!1===i)return l.ignoreElements.call(r);var u=s.materialize.call(r);return a.map.call(u,function(n){return{effect:e[o],notification:n,propertyName:o,sourceName:t,sourceInstance:e}})});return r.merge.apply(void 0,n)}(e);return function(e){var t=w(e);return T in t&&"function"==typeof t[T]}(e)?e.ngrxOnRunEffects(t):t}var x=function(e){function t(t){var n=e.call(this)||this;return t&&(n.source=t),n}return g(t,e),t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.ofType=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return d.filter.call(this,function(t){return e.some(function(e){return e===t.type})})},t}(c.Observable);function O(e){var t=e.propertyName;return'"'+e.sourceName+"."+t+("function"==typeof e.sourceInstance[t]?"()":"")+'"'}new u.InjectionToken("ngrx/effects: Immediate Effects");var S=new u.InjectionToken("ngrx/effects: Root Effects"),M=(new u.InjectionToken("ngrx/effects: Feature Effects"),new u.InjectionToken("Browser Console")),E=function(){function e(e){this.console=e}return e.prototype.report=function(e,t){for(var n in this.console.group(e),t)this.console.error(n+":",t[n]);this.console.groupEnd()},e}(),P=function(e){function t(t){var n=e.call(this)||this;return n.errorReporter=t,n}return g(t,e),t.prototype.addEffects=function(e){this.next(e)},t.prototype.toActions=function(){var e=this;return f.mergeMap.call(p.groupBy.call(this,w),function(t){return y.dematerialize.call(d.filter.call(a.map.call(h.exhaustMap.call(t,C),function(t){return function(e,t){!function(e,t){if("E"===e.notification.kind){var n="Effect "+O(e)+" threw an error";t.report(n,{Source:e.sourceInstance,Effect:e.effect,Error:e.notification.error,Notification:e.notification})}}(e,t),function(e,t){if("N"===e.notification.kind){var n=e.notification.value;if(!function(e){return e&&e.type&&"string"==typeof e.type}(n)){var o="Effect "+O(e)+" dispatched an invalid action";t.report(o,{Source:e.sourceInstance,Effect:e.effect,Dispatched:n,Notification:e.notification})}}}(e,t)}(t,e.errorReporter),t.notification}),function(e){return"N"===e.kind}))})},t}(m.Subject),I=function(){function e(e,t){this.effectSources=e,this.store=t,this.effectsSubscription=null}return e.prototype.start=function(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))},e.prototype.ngOnDestroy=function(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)},e}(),R=function(){function e(e,t,n,o){this.sources=e,t.start(),n.forEach(function(t){return e.addEffects(t)})}return e.prototype.addEffects=function(e){this.sources.addEffects(e)},e}();function D(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e}function N(){return console}function j(e){return e.payload}},"8GmM":function(e,t,n){"use strict";var o=n("rCTf");t.Notification=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},e.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){switch(this.kind){case"N":return o.Observable.of(this.value);case"E":return o.Observable.throw(this.error);case"C":return o.Observable.empty()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return"undefined"!=typeof t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}()},"8Ijx":function(e,t){e.exports={svg:{$:{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"210mm",height:"297mm"},path:[{$:{id:"separator",style:"fill:none;stroke:#f00;stroke-width:3.6496063;stroke-linecap:round",d:"M 16.455118,651.55037 16.455118,737.88305 C 16.455118,737.88305 16.419979,743.14568 11.278346,743.14568 L -10.998425,743.14568 C -10.998425,743.14568 -16.174,743.39316 -16.174,748.40667 L -16.174,804.39801 C -16.174,807.0217 -14.110808,809.66218 -10.998425,809.66218 L -4.719685,809.66218 C -4.719685,809.66218 0.315,809.66109 0.315,814.92517 L 0.315,870.91651 C 0.315,870.91651 0.31884203,876.17868 5.3503937,876.17868 L 28.187008,876.17868 C 28.187008,876.17868 33.311,876.17121 33.311,881.44014 L 33.311,937.43147 C 33.311,937.43147 33.306776,942.69568 28.187008,942.69568 L 4.719685,942.69568 C 4.719685,942.69568 -0.01,942.67983 -0.01,947.95864 L -0.01,1050.5905"}}]}}},"8Z8y":function(e,t,n){"use strict";var o=n("TToO").__extends,i=function(e){function t(){var t=e.call(this,"argument out of range");this.name=t.name="ArgumentOutOfRangeError",this.stack=t.stack,this.message=t.message}return o(t,e),t}(Error);t.ArgumentOutOfRangeError=i},"8hgl":function(e,t,n){"use strict";var o=n("7MSh");t.distinctUntilChanged=function(e,t){return o.distinctUntilChanged(e,t)(this)}},"9Avi":function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("cPwE");t.AsyncScheduler=function(e){function t(){e.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return o(t,e),t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(i.Scheduler)},"9EfN":function(e,t,n){"use strict";n.d(t,"r",function(){return c}),n.d(t,"a",function(){return f}),n.d(t,"q",function(){return h}),n.d(t,"l",function(){return y}),n.d(t,"t",function(){return m}),n.d(t,"k",function(){return g}),n.d(t,"c",function(){return v}),n.d(t,"f",function(){return b}),n.d(t,"m",function(){return k}),n.d(t,"o",function(){return _}),n.d(t,"g",function(){return A}),n.d(t,"i",function(){return T}),n.d(t,"d",function(){return O}),n.d(t,"s",function(){return M}),n.d(t,"u",function(){return P}),n.d(t,"v",function(){return R}),n.d(t,"e",function(){return D}),n.d(t,"j",function(){return N}),n.d(t,"h",function(){return j}),n.d(t,"b",function(){return U}),n.d(t,"p",function(){return V}),n.d(t,"n",function(){return F});var o=n("bndy"),i=(n.n(o),n("KhQu")),r=(n.n(i),n("yqBA"),n("HZ5C"),n("tXwt")),l=n("7OPe"),s=n("/KiA"),a=n("j4Le"),u=n("MptX"),c=(n("kZql"),function(e){return e.userConfiguration}),d=function(e){return e.app},p=Object(o.createSelector)(d,s.j),f=Object(o.createSelector)(d,s.a),h=Object(o.createSelector)(d,s.g),y=Object(o.createSelector)(d,s.e),m=Object(o.createSelector)(d,s.i),g=Object(o.createSelector)(d,s.d),v=Object(o.createSelector)(d,s.b),b=Object(o.createSelector)(d,s.c),k=Object(o.createSelector)(d,s.f),_=Object(o.createSelector)(function(e){return e.appUpdate},r.a),w=function(e){return e.autoUpdateSettings},A=Object(o.createSelector)(w,l.b),T=Object(o.createSelector)(w,l.a),C=function(e){return e.device},x=Object(o.createSelector)(C,a.g),O=Object(o.createSelector)(m,x,function(e,t){return!e||t}),S=Object(o.createSelector)(C,a.f),M=Object(o.createSelector)(m,S,function(e,t){return!e||t}),E=Object(o.createSelector)(C,a.e),P=Object(o.createSelector)(m,E,function(e,t){return e?t:u.a}),I=Object(o.createSelector)(C,a.i),R=Object(o.createSelector)(C,a.j),D=Object(o.createSelector)(m,C,function(e,t){return!e||t.updatingFirmware}),N=Object(o.createSelector)(C,a.c),j=Object(o.createSelector)(C,a.b),L=Object(o.createSelector)(C,a.d),U=Object(o.createSelector)(C,a.a),V=Object(o.createSelector)(p,m,I,c,L,function(e,t,n,o,i){return{showAddonMenu:e,runInElectron:t,updatingFirmware:n,deviceName:o.deviceName,keymaps:o.keymaps,macros:o.macros,restoreUserConfiguration:i}}),F=function(e){return e.router}},"9JPB":function(e,t,n){"use strict";var o=n("VOfZ"),i=n("2ER/");t.Map=o.root.Map||i.MapPolyfill},"9PEG":function(e,t,n){"use strict";var o=n("xgwM").__extends,i=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l=n("CmJd"),s=n("3uOy"),a=n("4KnF"),u=function(e){function t(n){var o=e.call(this)||this;return n?(o.keymapAbbreviation=n instanceof t?n.keymapAbbreviation:n instanceof s.Keymap?n.abbreviation:n,o):o}return o(t,e),t.prototype.fromJsonObject=function(e){return this.assertKeyActionType(e),this.keymapAbbreviation=e.keymapAbbreviation,this},t.prototype.toJsonObject=function(){return{keyActionType:a.keyActionType.SwitchKeymapAction,keymapAbbreviation:this.keymapAbbreviation}},t.prototype.toBinary=function(e,t){var n=this,o=t.keymaps.findIndex(function(e){return e.abbreviation===n.keymapAbbreviation});e.writeUInt8(a.KeyActionId.SwitchKeymapAction),e.writeUInt8(o)},t.prototype.toString=function(){return'<SwitchKeymapAction keymapAbbreviation="'+this.keymapAbbreviation+'">'},t.prototype.renameKeymap=function(e,n){return this.keymapAbbreviation!==e?this:new t(n)},t.prototype.getName=function(){return"SwitchKeymapAction"},t}(a.KeyAction);t.SwitchKeymapAction=u,t.UnresolvedSwitchKeymapAction=function(e){function t(t){var n=e.call(this)||this;return n.keymapIndex=t,n}return o(t,e),t.prototype.fromBinary=function(e){return e.readUInt8(),this.keymapIndex=e.readUInt8(),this},t.prototype.toBinary=function(e){e.writeUInt8(a.KeyActionId.SwitchKeymapAction),e.writeUInt8(this.keymapIndex)},t.prototype.toJsonObject=function(){throw new Error("UnresolvedSwitchKeymapAction cannot be serialized directly. Convert it to SwitchKeymapAction first.")},t.prototype.resolve=function(e){return new u(e[this.keymapIndex])},t.prototype.getName=function(){return"UnresolvedSwitchKeymapAction"},i([l.assertUInt8,r("design:type",Number)],t.prototype,"keymapIndex",void 0),t}(a.KeyAction)},"9dR0":function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS");t.refCount=function(){return function(e){return e.lift(new r(e))}};var r=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var o=new l(e,n),i=t.subscribe(o);return o.closed||(o.connection=n.connect()),i},e}(),l=function(e){function t(t,n){e.call(this,t),this.connectable=n}return o(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,o=e._connection;this.connection=null,!o||n&&o!==n||o.unsubscribe()}}else this.connection=null},t}(i.Subscriber)},"9dXm":function(e,t,n){"use strict";var o=n("xgwM").__extends,i=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l=n("CmJd"),s=n("ao60"),a=n("4uS6");t.KeyMacroAction=function(e){function t(t){var n=e.call(this)||this;return t?(n.action=t.action,n.type=t.type,n._scancode=t._scancode,n.modifierMask=t.modifierMask,n):n}return o(t,e),Object.defineProperty(t.prototype,"scancode",{get:function(){return this._scancode},set:function(e){this._scancode=e,this.type!==a.KeystrokeType.shortMedia&&this.type!==a.KeystrokeType.longMedia||(this.type=e<256?a.KeystrokeType.shortMedia:a.KeystrokeType.longMedia)},enumerable:!0,configurable:!0}),t.prototype.fromJsonObject=function(e){return this.assertMacroActionType(e),this.action=s.MacroKeySubAction[e.action],this.type="media"===e.type?e.scancode<256?a.KeystrokeType.shortMedia:a.KeystrokeType.longMedia:a.KeystrokeType[e.type],this._scancode=e.scancode,this.modifierMask=e.modifierMask,this},t.prototype.fromBinary=function(e){var t=this.readAndAssertMacroActionId(e)-s.MacroActionId.KeyMacroAction;return this.action=3&t,this.type=3&(t>>=2),2&(t>>=2)&&(this._scancode=this.type===a.KeystrokeType.longMedia?e.readUInt16():e.readUInt8()),1&t&&(this.modifierMask=e.readUInt8()),this},t.prototype.toJsonObject=function(){var e={macroActionType:s.macroActionType.KeyMacroAction,action:s.MacroKeySubAction[this.action]};return this.hasScancode()&&(e.type=this.type===a.KeystrokeType.shortMedia||this.type===a.KeystrokeType.longMedia?"media":a.KeystrokeType[this.type],e.scancode=this._scancode),this.hasModifiers()&&(e.modifierMask=this.modifierMask),e},t.prototype.toBinary=function(e){var t=0;t|=this.action,t|=this.type<<2,t|=(this.hasScancode()?2:0)+(this.hasModifiers()?1:0)<<4,e.writeUInt8(s.MacroActionId.KeyMacroAction+t),this.hasScancode()&&(this.type===a.KeystrokeType.longMedia?e.writeUInt16(this.scancode):e.writeUInt8(this.scancode)),this.hasModifiers()&&e.writeUInt8(this.modifierMask)},t.prototype.toString=function(){return'<KeyMacroAction action="'+this.action+'" scancode="'+this._scancode+'" modifierMask="'+this.modifierMask+'">'},t.prototype.isModifierActive=function(e){return(this.modifierMask&e)>0},t.prototype.hasScancode=function(){return!!this._scancode},t.prototype.hasModifiers=function(){return!!this.modifierMask},t.prototype.isPressAction=function(){return this.action===s.MacroKeySubAction.press},t.prototype.isTapAction=function(){return this.action===s.MacroKeySubAction.tap},t.prototype.isReleaseAction=function(){return this.action===s.MacroKeySubAction.release},t.prototype.getName=function(){return"KeyMacroAction"},i([l.assertEnum(s.MacroKeySubAction),r("design:type",Number)],t.prototype,"action",void 0),i([l.assertEnum(a.KeystrokeType),r("design:type",Number)],t.prototype,"type",void 0),i([l.assertUInt8,r("design:type",Number)],t.prototype,"modifierMask",void 0),i([l.assertUInt16,r("design:type",Number)],t.prototype,"_scancode",void 0),t}(s.MacroAction)},"9eyw":function(e,t,n){"use strict";var o=n("YOd+");function i(e){return e?1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}:o.noop}t.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return i(e)},t.pipeFromArray=i},"9omE":function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS");t.map=function(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new r(e,t))}};var r=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.project,this.thisArg))},e}();t.MapOperator=r;var l=function(e){function t(t,n,o){e.call(this,t),this.project=n,this.count=0,this.thisArg=o||this}return o(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(i.Subscriber)},A7JX:function(e,t,n){"use strict";var o=n("ijov");t.combineLatest=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return o.combineLatest.apply(void 0,e)(this)}},AG7Q:function(e,t){(function(t){e.exports=t}).call(t,{})},AGQa:function(e,t,n){"use strict";var o=n("rCTf"),i=n("vvwv");o.Observable.empty=i.empty},ANGw:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("CURp"),r=n("wAkD");t.mergeMap=function(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(o){return"number"==typeof t&&(n=t,t=null),o.lift(new l(e,t,n))}};var l=function(){function e(e,t,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=e,this.resultSelector=t,this.concurrent=n}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.project,this.resultSelector,this.concurrent))},e}();t.MergeMapOperator=l;var s=function(e){function t(t,n,o,i){void 0===i&&(i=Number.POSITIVE_INFINITY),e.call(this,t),this.project=n,this.resultSelector=o,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return o(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this.active++,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){this.add(i.subscribeToResult(this,e,t,n))},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n,o,i){this.resultSelector?this._notifyResultSelector(e,t,n,o):this.destination.next(t)},t.prototype._notifyResultSelector=function(e,t,n,o){var i;try{i=this.resultSelector(e,t,n,o)}catch(e){return void this.destination.error(e)}this.destination.next(i)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(r.OuterSubscriber);t.MergeMapSubscriber=s},B00U:function(e,t,n){"use strict";var o=n("Xajo"),i=n("ICpg"),r=n("SKH6"),l=n("+3eL"),s=n("WhVc"),a=n("GIjk");function u(e){return e.reduce(function(e,t){return e.concat(t instanceof a.UnsubscriptionError?t.errors:t)},[])}t.Subscription=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,c=this._parents,d=this._unsubscribe,p=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var f=-1,h=c?c.length:0;n;)n.remove(this),n=++f<h&&c[f]||null;if(r.isFunction(d)&&l.tryCatch(d).call(this)===s.errorObject&&(t=!0,e=e||(s.errorObject.e instanceof a.UnsubscriptionError?u(s.errorObject.e.errors):[s.errorObject.e])),o.isArray(p))for(f=-1,h=p.length;++f<h;){var y=p[f];if(i.isObject(y)&&l.tryCatch(y.unsubscribe).call(y)===s.errorObject){t=!0,e=e||[];var m=s.errorObject.e;m instanceof a.UnsubscriptionError?e=e.concat(u(m.errors)):e.push(m)}}if(t)throw new a.UnsubscriptionError(e)}},e.prototype.add=function(t){if(!t||t===e.EMPTY)return e.EMPTY;if(t===this)return this;var n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var o=n;(n=new e)._subscriptions=[o]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.prototype._addParent=function(e){var t=this._parent,n=this._parents;t&&t!==e?n?-1===n.indexOf(e)&&n.push(e):this._parents=[e]:this._parent=e},e.EMPTY=((t=new e).closed=!0,t),e}()},BV2O:function(e,t,n){"use strict";var o=n("MQMf"),i=n("6BaH");t.publishReplay=function(e,t,n,r){n&&"function"!=typeof n&&(r=n);var l="function"==typeof n?n:void 0,s=new o.ReplaySubject(e,t,r);return function(e){return i.multicast(function(){return s},l)(e)}}},Bxcs:function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("1Rl6")),o(n("CmJd")),o(n("pxzT")),o(n("H5FS"))},"C/iu":function(e,t,n){"use strict";var o=n("Yh8Q"),i=n("RRVv"),r=n("jBEF"),l=n("lU4I"),s=n("fWbP");t.startWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return function(t){var n=e[e.length-1];s.isScheduler(n)?e.pop():n=null;var a=e.length;return l.concat(1===a?new i.ScalarObservable(e[0],n):a>1?new o.ArrayObservable(e,n):new r.EmptyObservable(n),t)}}},"C0+T":function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("9Avi");t.QueueScheduler=function(e){function t(){e.apply(this,arguments)}return o(t,e),t}(i.AsyncScheduler)},C4lF:function(e,t,n){"use strict";var o=n("ygD2");t.ignoreElements=function(){return o.ignoreElements()(this)}},CGGv:function(e,t,n){"use strict";var o=n("cwzr"),i=n("9Avi");t.async=new i.AsyncScheduler(o.AsyncAction)},CURp:function(e,t,n){"use strict";var o=n("VOfZ"),i=n("1r8+"),r=n("aQl7"),l=n("ICpg"),s=n("rCTf"),a=n("cdmN"),u=n("QqRK"),c=n("mbVC");t.subscribeToResult=function(e,t,n,d){var p=new u.InnerSubscriber(e,n,d);if(p.closed)return null;if(t instanceof s.Observable)return t._isScalar?(p.next(t.value),p.complete(),null):(p.syncErrorThrowable=!0,t.subscribe(p));if(i.isArrayLike(t)){for(var f=0,h=t.length;f<h&&!p.closed;f++)p.next(t[f]);p.closed||p.complete()}else{if(r.isPromise(t))return t.then(function(e){p.closed||(p.next(e),p.complete())},function(e){return p.error(e)}).then(null,function(e){o.root.setTimeout(function(){throw e})}),p;if(t&&"function"==typeof t[a.iterator])for(var y=t[a.iterator]();;){var m=y.next();if(m.done){p.complete();break}if(p.next(m.value),p.closed)break}else if(t&&"function"==typeof t[c.observable]){var g=t[c.observable]();if("function"==typeof g.subscribe)return g.subscribe(new u.InnerSubscriber(e,n,d));p.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var v=l.isObject(t)?"an invalid object":"'"+t+"'";p.error(new TypeError("You provided "+v+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))}}return null}},CfHE:function(e,t,n){"use strict";var o=n("oZkx");t.concatAll=function(){return o.concatAll()(this)}},CfJK:function(e,t,n){"use strict";Object.defineProperty(t,"__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"}(t.KeystrokeType||(t.KeystrokeType={}))},CmJd:function(e,t,n){"use strict";function o(e,t){return i(e,t,0,65535)}function i(e,t,n,o){var i="_"+t;Object.defineProperty(e,t,{get:function(){return this[i]},set:function(r){if(this[i]!==r){if(r<n||r>o)throw e.constructor.name+"."+t+": Integer "+r+" is outside the valid ["+n+", "+o+"] interval";this[i]=r}},enumerable:!0,configurable:!0})}Object.defineProperty(t,"__esModule",{value:!0}),t.assertUInt8=function(e,t){return i(e,t,0,255)},t.assertInt8=function(e,t){return i(e,t,-128,127)},t.assertUInt16=o,t.assertInt16=function(e,t){return i(e,t,-32768,32767)},t.assertUInt32=function(e,t){return i(e,t,0,4294967295)},t.assertInt32=function(e,t){return i(e,t,-2147483648,2147483647)},t.assertCompactLength=function(e,t){return o(e,t)},t.assertEnum=function(e){return function(t,n){var o="_"+n;Object.defineProperty(t,n,{get:function(){return this[o]},set:function(i){if(this[o]!==i){if(void 0===e[i])throw t.constructor.name+"."+n+": "+i+" is not enum";this[o]=i}},enumerable:!0,configurable:!0})}}},D2Nv:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS");t.tap=function(e,t,n){return function(o){return o.lift(new r(e,t,n))}};var r=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.nextOrObserver,this.error,this.complete))},e}(),l=function(e){function t(t,n,o,r){e.call(this,t);var l=new i.Subscriber(n,o,r);l.syncErrorThrowable=!0,this.add(l),this.safeSubscriber=l}return o(t,e),t.prototype._next=function(e){var t=this.safeSubscriber;t.next(e),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.next(e)},t.prototype._error=function(e){var t=this.safeSubscriber;t.error(e),this.destination.error(t.syncErrorThrown?t.syncErrorValue:e)},t.prototype._complete=function(){var e=this.safeSubscriber;e.complete(),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.complete()},t}(i.Subscriber)},DzMp:function(e,t,n){"use strict";var o=n("+EXD");t.defer=o.DeferObservable.create},EEr4:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("rCTf"),r=n("mmVS"),l=n("B00U"),s=n("IZVw"),a=n("ZJf8"),u=n("r8ZY"),c=function(e){function t(t){e.call(this,t),this.destination=t}return o(t,e),t}(r.Subscriber);t.SubjectSubscriber=c;var d=function(e){function t(){e.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return o(t,e),t.prototype[u.rxSubscriber]=function(){return new c(this)},t.prototype.lift=function(e){var t=new p(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new s.ObjectUnsubscribedError;if(!this.isStopped)for(var t=this.observers,n=t.length,o=t.slice(),i=0;i<n;i++)o[i].next(e)},t.prototype.error=function(e){if(this.closed)throw new s.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,o=t.slice(),i=0;i<n;i++)o[i].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new s.ObjectUnsubscribedError;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),o=0;o<t;o++)n[o].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new s.ObjectUnsubscribedError;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new s.ObjectUnsubscribedError;return this.hasError?(e.error(this.thrownError),l.Subscription.EMPTY):this.isStopped?(e.complete(),l.Subscription.EMPTY):(this.observers.push(e),new a.SubjectSubscription(this,e))},t.prototype.asObservable=function(){var e=new i.Observable;return e.source=this,e},t.create=function(e,t){return new p(e,t)},t}(i.Observable);t.Subject=d;var p=function(e){function t(t,n){e.call(this),this.destination=t,this.source=n}return o(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):l.Subscription.EMPTY},t}(d);t.AnonymousSubject=p},EKta:function(e,t,n){"use strict";t.byteLength=function(e){return 3*e.length/4-u(e)},t.toByteArray=function(e){var t,n,o,l,s,a=e.length;l=u(e),s=new r(3*a/4-l),n=l>0?a-4:a;var c=0;for(t=0;t<n;t+=4)o=i[e.charCodeAt(t)]<<18|i[e.charCodeAt(t+1)]<<12|i[e.charCodeAt(t+2)]<<6|i[e.charCodeAt(t+3)],s[c++]=o>>16&255,s[c++]=o>>8&255,s[c++]=255&o;return 2===l?(o=i[e.charCodeAt(t)]<<2|i[e.charCodeAt(t+1)]>>4,s[c++]=255&o):1===l&&(o=i[e.charCodeAt(t)]<<10|i[e.charCodeAt(t+1)]<<4|i[e.charCodeAt(t+2)]>>2,s[c++]=o>>8&255,s[c++]=255&o),s},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,r="",l=[],s=0,a=n-i;s<a;s+=16383)l.push(c(e,s,s+16383>a?a:s+16383));return 1===i?(r+=o[(t=e[n-1])>>2],r+=o[t<<4&63],r+="=="):2===i&&(r+=o[(t=(e[n-2]<<8)+e[n-1])>>10],r+=o[t>>4&63],r+=o[t<<2&63],r+="="),l.push(r),l.join("")};for(var o=[],i=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=l.length;s<a;++s)o[s]=l[s],i[l.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function c(e,t,n){for(var i,r=[],l=t;l<n;l+=3)r.push(o[(i=(e[l]<<16&16711680)+(e[l+1]<<8&65280)+(255&e[l+2]))>>18&63]+o[i>>12&63]+o[i>>6&63]+o[63&i]);return r.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},EnA3:function(e,t,n){"use strict";var o=n("rCTf"),i=n("Rewd");o.Observable.prototype.do=i._do,o.Observable.prototype._do=i._do},EoAl:function(e,t,n){"use strict";var o=n("rCTf"),i=n("KuCq");o.Observable.prototype.takeWhile=i.takeWhile},F7Al:function(e,t,n){"use strict";var o=n("TToO").__extends,i=function(e){function t(){var t=e.call(this,"no elements in sequence");this.name=t.name="EmptyError",this.stack=t.stack,this.message=t.message}return o(t,e),t}(Error);t.EmptyError=i},FA5e:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("rCTf"),r=n("RRVv"),l=n("jBEF");t.ArrayLikeObservable=function(e){function t(t,n){e.call(this),this.arrayLike=t,this.scheduler=n,n||1!==t.length||(this._isScalar=!0,this.value=t[0])}return o(t,e),t.create=function(e,n){var o=e.length;return 0===o?new l.EmptyObservable:1===o?new r.ScalarObservable(e[0],n):new t(e,n)},t.dispatch=function(e){var t=e.arrayLike,n=e.index,o=e.subscriber;o.closed||(n>=e.length?o.complete():(o.next(t[n]),e.index=n+1,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.arrayLike,o=this.scheduler,i=n.length;if(o)return o.schedule(t.dispatch,0,{arrayLike:n,index:0,length:i,subscriber:e});for(var r=0;r<i&&!e.closed;r++)e.next(n[r]);e.complete()},t}(i.Observable)},FDBB:function(e,t,n){"use strict";var o=n("1KT0"),i=n("1KT0");t.mergeStatic=i.merge,t.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return function(t){return t.lift.call(o.merge.apply(void 0,[t].concat(e)))}}},"Ffu+":function(e,t,n){"use strict";var o=n("Uqr9");t.pairwise=function(){return o.pairwise()(this)}},Fq1u:function(e,t,n){"use strict";var o=n("xgwM").__extends,i=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l=n("CmJd"),s=n("4KnF");t.PlayMacroAction=function(e){function t(n){var o=e.call(this)||this;return n?(o.macroId=n instanceof t?n.macroId:n.id,o):o}return o(t,e),t.prototype.fromJsonObject=function(e,t){return this.assertKeyActionType(e),this.macroId=t[e.macroIndex].id,this},t.prototype.fromBinary=function(e,t){this.readAndAssertKeyActionId(e);var n=e.readUInt8();return this.macroId=t[n].id,this},t.prototype.toJsonObject=function(e){var t=this;return{keyActionType:s.keyActionType.PlayMacroAction,macroIndex:e.findIndex(function(e){return e.id===t.macroId})}},t.prototype.toBinary=function(e,t){var n=this;e.writeUInt8(s.KeyActionId.PlayMacroAction),e.writeUInt8(t.macros.findIndex(function(e){return e.id===n.macroId}))},t.prototype.toString=function(){return'<PlayMacroAction macroId="'+this.macroId+'">'},t.prototype.getName=function(){return"PlayMacroAction"},i([l.assertUInt8,r("design:type",Number)],t.prototype,"macroId",void 0),t}(s.KeyAction)},Ftqy:function(e,t){e.exports={userConfigMajorVersion:4,userConfigMinorVersion:0,userConfigPatchVersion:0,deviceName:"My UHK",doubleTapSwitchLayerTimeout:250,iconsAndLayerTextsBrightness:255,alphanumericSegmentsBrightness:255,keyBacklightBrightness:255,mouseMoveInitialSpeed:4,mouseMoveAcceleration:68,mouseMoveDeceleratedSpeed:8,mouseMoveBaseSpeed:32,mouseMoveAcceleratedSpeed:64,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",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{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",switchLayerMode:"holdAndDoubleTapToggle"},{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",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},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:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},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",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{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,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},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",switchLayerMode:"holdAndDoubleTapToggle"},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",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{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",switchLayerMode:"holdAndDoubleTapToggle"},{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",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},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:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},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",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{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,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},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",switchLayerMode:"holdAndDoubleTapToggle"},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",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{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",switchLayerMode:"holdAndDoubleTapToggle"},{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",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},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:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},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",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{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,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},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",switchLayerMode:"holdAndDoubleTapToggle"},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",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{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",switchLayerMode:"holdAndDoubleTapToggle"},{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",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},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:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},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",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{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,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},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",switchLayerMode:"holdAndDoubleTapToggle"},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",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{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",switchLayerMode:"holdAndDoubleTapToggle"},{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",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},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:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},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",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{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,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},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",switchLayerMode:"holdAndDoubleTapToggle"},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",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{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",switchLayerMode:"holdAndDoubleTapToggle"},{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",switchLayerMode:"holdAndDoubleTapToggle"},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},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:101},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",switchLayerMode:"holdAndDoubleTapToggle"},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",switchLayerMode:"holdAndDoubleTapToggle"},null]}]},{modules:[{id:0,keyActions:[null,null,null,null,null,null,{keyActionType:"switchKeymap",keymapAbbreviation:"TES"},{keyActionType:"keystroke",type:"media",scancode:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,null,{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},{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,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",switchLayerMode:"holdAndDoubleTapToggle"},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",switchLayerMode:"holdAndDoubleTapToggle"},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:87},{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:94},{keyActionType:"keystroke",type:"basic",scancode:85},{keyActionType:"keystroke",type:"basic",scancode:95},{keyActionType:"keystroke",type:"basic",scancode:96},{keyActionType:"keystroke",type:"basic",scancode:97},{keyActionType:"keystroke",type:"basic",scancode:98}]},{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:41},{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:86},{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:89},{keyActionType:"keystroke",type:"basic",scancode:90},{keyActionType:"keystroke",type:"basic",scancode:91},{keyActionType:"keystroke",type:"basic",scancode:92},{keyActionType:"keystroke",type:"basic",scancode:84},{keyActionType:"keystroke",type:"basic",scancode:93},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:101},{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:205},{keyActionType:"keystroke",type:"media",scancode:233},null,null,null,null,{keyActionType:"keystroke",type:"system",scancode:130},null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,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,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},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"}]}]}},GIjk:function(e,t,n){"use strict";var o=n("TToO").__extends,i=function(e){function t(t){e.call(this),this.errors=t;var n=Error.call(this,t?t.length+" errors occurred during unsubscription:\n "+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return o(t,e),t}(Error);t.UnsubscriptionError=i},H5FS:function(e,t,n){"use strict";(function(e,n){Object.defineProperty(t,"__esModule",{value:!0}),t.UhkBuffer=function(){function t(){this._enableDump=!1,this.offset=0,this.bytesToBacktrack=0,this.buffer=new e(t.eepromSize),this.buffer.fill(0)}return t.simpleElementWriter=function(e,t){t.toBinary(e)},t.fromArray=function(e){if(e.length<1)return null;for(var n=new t,o=0,i=e;o<i.length;o++){n.writeUInt8(i[o])}return n.offset=0,n},t.prototype.readInt8=function(){var e=this.buffer.readInt8(this.offset);return this.dump("i8("+e+")"),this.bytesToBacktrack=1,this.offset+=this.bytesToBacktrack,e},t.prototype.writeInt8=function(e){this.dump("i8("+e+")"),this.buffer.writeInt8(e,this.offset),this.offset+=1},t.prototype.readUInt8=function(){var e=this.buffer.readUInt8(this.offset);return this.dump("u8("+e+")"),this.bytesToBacktrack=1,this.offset+=this.bytesToBacktrack,e},t.prototype.writeUInt8=function(e){this.dump("u8("+e+")"),this.buffer.writeUInt8(e,this.offset),this.offset+=1},t.prototype.readInt16=function(){var e=this.buffer.readInt16LE(this.offset);return this.dump("i16("+e+")"),this.bytesToBacktrack=2,this.offset+=this.bytesToBacktrack,e},t.prototype.writeInt16=function(e){this.dump("i16("+e+")"),this.buffer.writeInt16LE(e,this.offset),this.offset+=2},t.prototype.readUInt16=function(){var e=this.buffer.readUInt16LE(this.offset);return this.dump("u16("+e+")"),this.bytesToBacktrack=2,this.offset+=this.bytesToBacktrack,e},t.prototype.writeUInt16=function(e){this.dump("u16("+e+")"),this.buffer.writeUInt16LE(e,this.offset),this.offset+=2},t.prototype.readInt32=function(){var e=this.buffer.readInt32LE(this.offset);return this.dump("i32("+e+")"),this.bytesToBacktrack=4,this.offset+=this.bytesToBacktrack,e},t.prototype.writeInt32=function(e){this.dump("i32("+e+")"),this.buffer.writeInt32LE(e,this.offset),this.offset+=4},t.prototype.readUInt32=function(){var e=this.buffer.readUInt32LE(this.offset);return this.dump("u32("+e+")"),this.bytesToBacktrack=4,this.offset+=this.bytesToBacktrack,e},t.prototype.writeUInt32=function(e){this.dump("u32("+e+")"),this.buffer.writeUInt32LE(e,this.offset),this.offset+=4},t.prototype.readCompactLength=function(){var e=this.readUInt8();return e===t.longCompactLengthPrefix&&(e=this.readUInt16()),e},t.prototype.writeCompactLength=function(e){e>=t.longCompactLengthPrefix?(this.writeUInt8(t.longCompactLengthPrefix),this.writeUInt16(e)):this.writeUInt8(e)},t.prototype.readString=function(){var e=this.readCompactLength(),n=this.buffer.toString(t.stringEncoding,this.offset,this.offset+e);return this.dump(t.stringEncoding+"("+n+")"),this.bytesToBacktrack=e,this.offset+=e,n},t.prototype.writeString=function(n){var o=e.byteLength(n,t.stringEncoding);if(o>t.maxCompactLength)throw"Cannot serialize string: "+o+" bytes is larger\n than the maximum allowed length of "+t.maxCompactLength+" bytes";this.writeCompactLength(o),this.dump(t.stringEncoding+"("+n+")"),this.buffer.write(n,this.offset,o,t.stringEncoding),this.offset+=o},t.prototype.readBoolean=function(){return 0!==this.readUInt8()},t.prototype.writeBoolean=function(e){this.writeUInt8(e?1:0)},t.prototype.readArray=function(e){for(var t=[],n=this.readCompactLength(),o=0;o<n;++o)t.push(e(this,o));return t},t.prototype.writeArray=function(e,n){void 0===n&&(n=t.simpleElementWriter);var o=e.length;this.writeCompactLength(o);for(var i=0;i<o;++i)n(this,e[i],i)},t.prototype.backtrack=function(){this.offset-=this.bytesToBacktrack,this.bytesToBacktrack=0},t.prototype.getBufferContent=function(){return this.buffer.slice(0,this.offset)},Object.defineProperty(t.prototype,"enableDump",{get:function(){return this._enableDump},set:function(e){e&&(t.isFirstElementToDump=!0),this._enableDump=e},enumerable:!0,configurable:!0}),t.prototype.dump=function(e){this.enableDump&&(t.isFirstElementToDump||n.stdout.write(", "),n.stdout.write(e),t.isFirstElementToDump&&(t.isFirstElementToDump=!1))},t.eepromSize=32768,t.maxCompactLength=65535,t.longCompactLengthPrefix=255,t.stringEncoding="utf8",t.isFirstElementToDump=!1,t}()}).call(t,n("63KW").Buffer,n("W2nU"))},HZ5C:function(e,t,n){"use strict";t.a=function(e,t){switch(void 0===e&&(e=i),t.type){case o.a.LOAD_KEYMAPS_SUCCESS:return t.payload;default:return e}};var o=n("WP8/"),i=[]},HcJ8:function(e,t,n){"use strict";var o=n("rCTf"),i=n("XO5T");o.Observable.prototype.mergeMap=i.mergeMap,o.Observable.prototype.flatMap=i.mergeMap},HiVc:function(e,t,n){"use strict";var o=n("xgwM").__extends;Object.defineProperty(t,"__esModule",{value:!0});var i=n("4KnF");t.NoneAction=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.fromJsonObject=function(e){return this.assertKeyActionType(e),this},t.prototype.fromBinary=function(e){return this.readAndAssertKeyActionId(e),this},t.prototype.toJsonObject=function(){return{keyActionType:i.keyActionType.NoneAction}},t.prototype.toBinary=function(e){e.writeUInt8(i.KeyActionId.NoneAction)},t.prototype.toString=function(){return"<NoneAction>"},t.prototype.getName=function(){return"NoneAction"},t}(i.KeyAction)},I5Xr:function(e,t,n){"use strict";var o=n("xgwM").__extends,i=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l,s=n("CmJd"),a=n("ZTdU"),u=n("4KnF"),c=n("CfJK");!function(e){e[e.scancode=1]="scancode",e[e.modifierMask=2]="modifierMask",e[e.secondaryRoleAction=4]="secondaryRoleAction"}(l=t.KeystrokeActionFlag||(t.KeystrokeActionFlag={}));var d=["LCtrl","LShift","LAlt","LSuper","RCtrl","RShift","RAlt","RSuper"];t.KeystrokeAction=function(e){function t(t){var n=e.call(this)||this;return t?(n.type=t.type,n._scancode=t._scancode,n.modifierMask=t.modifierMask,n.secondaryRoleAction=t.secondaryRoleAction,n):n}return o(t,e),Object.defineProperty(t.prototype,"scancode",{get:function(){return this._scancode},set:function(e){this._scancode=e,this.type!==c.KeystrokeType.shortMedia&&this.type!==c.KeystrokeType.longMedia||(this.type=e<256?c.KeystrokeType.shortMedia:c.KeystrokeType.longMedia)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},set:function(e){e!==c.KeystrokeType.shortMedia&&e!==c.KeystrokeType.longMedia||(e=this.scancode<256?c.KeystrokeType.shortMedia:c.KeystrokeType.longMedia),this._type=e},enumerable:!0,configurable:!0}),t.prototype.fromJsonObject=function(e){return this.assertKeyActionType(e),this.type="media"===e.type?e.scancode<256?c.KeystrokeType.shortMedia:c.KeystrokeType.longMedia:c.KeystrokeType[e.type],this._scancode=e.scancode,this.modifierMask=e.modifierMask,this.secondaryRoleAction=a.SecondaryRoleAction[e.secondaryRoleAction],this},t.prototype.fromBinary=function(e){var t=this.readAndAssertKeyActionId(e)-u.KeyActionId.NoneAction;return this.type=t>>3&3,t&l.scancode&&(this._scancode=this.type===c.KeystrokeType.longMedia?e.readUInt16():e.readUInt8()),t&l.modifierMask&&(this.modifierMask=e.readUInt8()),t&l.secondaryRoleAction&&(this.secondaryRoleAction=e.readUInt8()),this},t.prototype.toJsonObject=function(){var e={keyActionType:u.keyActionType.KeystrokeAction};return e.type=this.type===c.KeystrokeType.shortMedia||this.type===c.KeystrokeType.longMedia?"media":c.KeystrokeType[this.type],this.hasScancode()&&(e.scancode=this._scancode),this.hasActiveModifier()&&(e.modifierMask=this.modifierMask),this.hasSecondaryRoleAction()&&(e.secondaryRoleAction=a.SecondaryRoleAction[this.secondaryRoleAction]),e},t.prototype.toBinary=function(e){var t=0,n=[];this.hasScancode()&&(t|=l.scancode,n.push({data:this._scancode,long:this.type===c.KeystrokeType.longMedia})),this.hasActiveModifier()&&(t|=l.modifierMask,n.push({data:this.modifierMask,long:!1})),this.hasSecondaryRoleAction()&&(t|=l.secondaryRoleAction,n.push({data:this.secondaryRoleAction,long:!1})),e.writeUInt8(u.KeyActionId.NoneAction+(t+(this.type<<3)));for(var o=0;o<n.length;++o)n[o].long?e.writeUInt16(n[o].data):e.writeUInt8(n[o].data)},t.prototype.toString=function(){var e=[];return e.push('type="'+c.KeystrokeType[this.type]+'"'),this.hasScancode()&&e.push('scancode="'+this._scancode+'"'),this.hasActiveModifier()&&e.push('modifierMask="'+this.modifierMask+'"'),this.hasSecondaryRoleAction()&&e.push('secondaryRoleAction="'+this.secondaryRoleAction+'"'),"<KeystrokeAction "+e.join(" ")+">"},t.prototype.isActive=function(e){return(this.modifierMask&e)>0},t.prototype.hasActiveModifier=function(){return this.modifierMask>0},t.prototype.hasSecondaryRoleAction=function(){return void 0!==this.secondaryRoleAction&&null!==this.secondaryRoleAction},t.prototype.hasScancode=function(){return!!this._scancode},t.prototype.hasOnlyOneActiveModifier=function(){return 0!==this.modifierMask&&!(this.modifierMask&this.modifierMask-1)},t.prototype.getModifierList=function(){for(var e=[],t=this.modifierMask,n=0;0!==t;++n,t>>=1)1&t&&e.push(d[n]);return e},t.prototype.getName=function(){return"KeystrokeAction"},i([s.assertUInt8,r("design:type",Number)],t.prototype,"modifierMask",void 0),i([s.assertEnum(a.SecondaryRoleAction),r("design:type",Number)],t.prototype,"secondaryRoleAction",void 0),i([s.assertEnum(c.KeystrokeType),r("design:type",Number)],t.prototype,"_type",void 0),t}(u.KeyAction)},ICpg:function(e,t,n){"use strict";t.isObject=function(e){return null!=e&&"object"==typeof e}},IZVw:function(e,t,n){"use strict";var o=n("TToO").__extends,i=function(e){function t(){var t=e.call(this,"object unsubscribed");this.name=t.name="ObjectUnsubscribedError",this.stack=t.stack,this.message=t.message}return o(t,e),t}(Error);t.ObjectUnsubscribedError=i},Ilbw:function(e,t,n){"use strict";var o=n("vx8o");t.dragula=o.default||o},JJSU:function(e,t,n){"use strict";var o=n("rCTf"),i=n("7nvF");o.Observable.prototype.last=i.last},JZ4p:function(e,t,n){var o={"./DVR.json":"VMHN","./EMY.json":"TyHZ","./QTY.json":"e8yI","./VIM.json":"3vEz"};function i(e){return n(r(e))}function r(e){var t=o[e];if(!(t+1))throw new Error("Cannot find module '"+e+"'.");return t}i.keys=function(){return Object.keys(o)},i.resolve=r,e.exports=i,i.id="JZ4p"},Ji1B:function(e,t,n){"use strict";var o=n("ODby");t.observeOn=function(e,t){return void 0===t&&(t=0),o.observeOn(e,t)(this)}},Ji1V:function(e,t,n){"use strict";var o=n("C/iu");t.startWith=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return o.startWith.apply(void 0,e)(this)}},Ji5S:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r}),n.d(t,"l",function(){return l}),n.d(t,"c",function(){return s}),n.d(t,"j",function(){return a}),n.d(t,"m",function(){return u}),n.d(t,"d",function(){return c}),n.d(t,"g",function(){return d}),n.d(t,"e",function(){return p}),n.d(t,"h",function(){return f}),n.d(t,"i",function(){return h}),n.d(t,"k",function(){return y}),n.d(t,"f",function(){return m});var o=n("gI3A"),i=(n.n(o),{APP_BOOTSRAPPED:Object(o.type)("[app] bootstrapped"),APP_STARTED:Object(o.type)("[app] started"),APP_SHOW_NOTIFICATION:Object(o.type)("[app] show notification"),APPLY_COMMAND_LINE_ARGS:Object(o.type)("[app] apply command line args"),APP_PROCESS_START_INFO:Object(o.type)("[app] process start info"),UNDO_LAST:Object(o.type)("[app] undo last action"),UNDO_LAST_SUCCESS:Object(o.type)("[app] undo last action success"),DISMISS_UNDO_NOTIFICATION:Object(o.type)("[app] dismiss notification action"),LOAD_HARDWARE_CONFIGURATION_SUCCESS:Object(o.type)("[app] load hardware configuration success"),ELECTRON_MAIN_LOG_RECEIVED:Object(o.type)("[app] Electron main log received"),OPEN_URL_IN_NEW_WINDOW:Object(o.type)("[app] Open URL in new Window"),PRIVILEGE_WHAT_WILL_THIS_DO:Object(o.type)("[app] What will this do clicked"),SETUP_PERMISSION_ERROR:Object(o.type)("[app] Setup permission error"),LOAD_APP_START_INFO:Object(o.type)("[app] Load app start info")}),r=function(){return function(){this.type=i.APP_STARTED}}(),l=function(){return function(e){this.payload=e,this.type=i.APP_SHOW_NOTIFICATION}}(),s=function(){return function(e){this.payload=e,this.type=i.APPLY_COMMAND_LINE_ARGS}}(),a=function(){return function(e){this.payload=e,this.type=i.APP_PROCESS_START_INFO}}(),u=function(){return function(e){this.payload=e,this.type=i.UNDO_LAST}}(),c=function(){return function(){this.type=i.DISMISS_UNDO_NOTIFICATION}}(),d=function(){return function(e){this.payload=e,this.type=i.LOAD_HARDWARE_CONFIGURATION_SUCCESS}}(),p=function(){return function(e){this.payload=e,this.type=i.ELECTRON_MAIN_LOG_RECEIVED}}(),f=function(){return function(e){this.payload=e,this.type=i.OPEN_URL_IN_NEW_WINDOW}}(),h=function(){return function(){this.type=i.PRIVILEGE_WHAT_WILL_THIS_DO}}(),y=function(){return function(e){this.payload=e,this.type=i.SETUP_PERMISSION_ERROR}}(),m=function(){return function(){this.type=i.LOAD_APP_START_INFO}}()},JkZN:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("Xajo"),r=n("1r8+"),l=n("aQl7"),s=n("hYBY"),a=n("U15Z"),u=n("Yh8Q"),c=n("FA5e"),d=n("cdmN"),p=n("rCTf"),f=n("ODby"),h=n("mbVC");t.FromObservable=function(e){function t(t,n){e.call(this,null),this.ish=t,this.scheduler=n}return o(t,e),t.create=function(e,n){if(null!=e){if("function"==typeof e[h.observable])return e instanceof p.Observable&&!n?e:new t(e,n);if(i.isArray(e))return new u.ArrayObservable(e,n);if(l.isPromise(e))return new s.PromiseObservable(e,n);if("function"==typeof e[d.iterator]||"string"==typeof e)return new a.IteratorObservable(e,n);if(r.isArrayLike(e))return new c.ArrayLikeObservable(e,n)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")},t.prototype._subscribe=function(e){var t=this.ish,n=this.scheduler;return null==n?t[h.observable]().subscribe(e):t[h.observable]().subscribe(new f.ObserveOnSubscriber(e,n,0))},t}(p.Observable)},Jnfr:function(e,t){function n(e){return Promise.resolve().then(function(){throw new Error("Cannot find module '"+e+"'.")})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="Jnfr"},JzlZ:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS");t.skip=function(e){return function(t){return t.lift(new r(e))}};var r=function(){function e(e){this.total=e}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.total))},e}(),l=function(e){function t(t,n){e.call(this,t),this.total=n,this.count=0}return o(t,e),t.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},t}(i.Subscriber)},KMB7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("RZVO");t.isEqualArray=function(e,t){if(e.length!==t.length)return!1;for(var n=function(e){if(!t.some(function(t){return o.isEqual(e,t)}))return{value:!1}},i=0,r=e;i<r.length;i++){var l=n(r[i]);if("object"==typeof l)return l.value}return!0}},KRCp:function(e,t,n){"use strict";var o=n("rCTf"),i=n("sb+e");o.Observable.prototype.let=i.letProto,o.Observable.prototype.letBind=i.letProto},KhQu:function(e,t,n){"use strict";var o=n("7s/Z");t.storeFreeze=function(e){return function(t,n){void 0===t&&(t={}),o(t),n.payload&&o(n.payload);var i=e(t,n);return o(i),i}}},KqLa:function(e,t){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"}]}]},KuCq:function(e,t,n){"use strict";var o=n("215F");t.takeWhile=function(e){return o.takeWhile(e)(this)}},L97J:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS");t.dematerialize=function(){return function(e){return e.lift(new r)}};var r=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new l(e))},e}(),l=function(e){function t(t){e.call(this,t)}return o(t,e),t.prototype._next=function(e){e.observe(this.destination)},t}(i.Subscriber)},LKU8:function(e,t,n){"use strict";var o=n("TToO").__decorate,i=n("Ilbw"),r=n("WT6e"),l=function(){function e(){this.cancel=new r.EventEmitter,this.cloned=new r.EventEmitter,this.drag=new r.EventEmitter,this.dragend=new r.EventEmitter,this.drop=new r.EventEmitter,this.out=new r.EventEmitter,this.over=new r.EventEmitter,this.remove=new r.EventEmitter,this.shadow=new r.EventEmitter,this.dropModel=new r.EventEmitter,this.removeModel=new r.EventEmitter,this.events=["cancel","cloned","drag","dragend","drop","out","over","remove","shadow","dropModel","removeModel"],this.bags=[]}return e.prototype.add=function(e,t){var n=this.find(e);if(n)throw new Error('Bag named: "'+e+'" already exists.');return this.bags.push(n={name:e,drake:t}),t.models&&this.handleModels(e,t),n.initEvents||this.setupEvents(n),n},e.prototype.find=function(e){for(var t=0,n=this.bags;t<n.length;t++){var o=n[t];if(o.name===e)return o}},e.prototype.destroy=function(e){var t=this.find(e),n=this.bags.indexOf(t);this.bags.splice(n,1),t.drake.destroy()},e.prototype.setOptions=function(e,t){var n=this.add(e,i.dragula(t));this.handleModels(e,n.drake)},e.prototype.handleModels=function(e,t){var n,o,i,r,l=this;t.on("remove",function(n,i){t.models&&((r=t.models[t.containers.indexOf(i)]).splice(o,1),l.removeModel.emit([e,n,i]))}),t.on("drag",function(e,t){n=e,o=l.domIndexOf(e,t)}),t.on("drop",function(s,a,u){if(t.models&&a){if(i=l.domIndexOf(s,a),r=t.models[t.containers.indexOf(u)],a===u)r.splice(i,0,r.splice(o,1)[0]);else{var c=n===s,d=t.models[t.containers.indexOf(a)],p=c?r[o]:JSON.parse(JSON.stringify(r[o]));c&&r.splice(o,1),d.splice(i,0,p),a.removeChild(s)}l.dropModel.emit([e,s,a,u])}})},e.prototype.setupEvents=function(e){e.initEvents=!0;var t=this;this.events.forEach(function(n){e.drake.on(n,function(){var o=Array.prototype.slice.call(arguments);t[n].emit([e.name].concat(o))})})},e.prototype.domIndexOf=function(e,t){return Array.prototype.indexOf.call(t.children,e)},e}();l=o([r.Injectable()],l),t.DragulaService=l},LppN:function(e,t,n){"use strict";var o=n("rCTf"),i=n("C4lF");o.Observable.prototype.ignoreElements=i.ignoreElements},Lt3n:function(e,t,n){"use strict";function o(e,t){for(var n=0;n<e.length;++n)if(e[n]!==t[n])return t[n];return t[t.length-1]}var i;function r(e,t){if(!t)return 0;i||(i=document.createElement("canvas"));var n=i.getContext("2d");return n.font=e.font,n.measureText(t).width}function l(e){return e&&e.trim().length>0}var s,a=function(){var e=n("OjAK");return{version:e.version,firmwareVersion:e.firmwareVersion,deviceProtocolVersion:e.deviceProtocolVersion,moduleProtocolVersion:e.moduleProtocolVersion,userConfigVersion:e.userConfigVersion,hardwareConfigVersion:e.hardwareConfigVersion}},u=a,c=function(){return s||(s=a()),s};n.d(t,"a",function(){return o}),n.d(t,"b",function(){return r}),n.d(t,"d",function(){return l}),n.d(t,"c",function(){return c}),n.d(t,!1,function(){return u})},LxNc:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("wAkD"),r=n("CURp");t.catchError=function(e){return function(t){var n=new l(e),o=t.lift(n);return n.caught=o}};var l=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.selector,this.caught))},e}(),s=function(e){function t(t,n,o){e.call(this,t),this.selector=n,this.caught=o}return o(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(t){return void e.prototype.error.call(this,t)}this._unsubscribeAndRecycle(),this.add(r.subscribeToResult(this,n))}},t}(i.OuterSubscriber)},M5jZ:function(e,t,n){"use strict";var o=n("JzlZ");t.skip=function(e){return o.skip(e)(this)}},"MEr+":function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS"),r=n("CGGv");t.debounceTime=function(e,t){return void 0===t&&(t=r.async),function(n){return n.lift(new l(e,t))}};var l=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.dueTime,this.scheduler))},e}(),s=function(e){function t(t,n,o){e.call(this,t),this.dueTime=n,this.scheduler=o,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}return o(t,e),t.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(a,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){this.clearDebounce(),this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)},t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},t}(i.Subscriber);function a(e){e.debouncedNext()}},MQMf:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("EEr4"),r=n("RA5l"),l=n("B00U"),s=n("ODby"),a=n("IZVw"),u=n("ZJf8");t.ReplaySubject=function(e){function t(t,n,o){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY),e.call(this),this.scheduler=o,this._events=[],this._bufferSize=t<1?1:t,this._windowTime=n<1?1:n}return o(t,e),t.prototype.next=function(t){var n=this._getNow();this._events.push(new c(n,t)),this._trimBufferThenGetEvents(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._trimBufferThenGetEvents(),o=this.scheduler;if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError?t=l.Subscription.EMPTY:this.isStopped?t=l.Subscription.EMPTY:(this.observers.push(e),t=new u.SubjectSubscription(this,e)),o&&e.add(e=new s.ObserveOnSubscriber(e,o));for(var i=n.length,r=0;r<i&&!e.closed;r++)e.next(n[r].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t},t.prototype._getNow=function(){return(this.scheduler||r.queue).now()},t.prototype._trimBufferThenGetEvents=function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,o=this._events,i=o.length,r=0;r<i&&!(e-o[r].time<n);)r++;return i>t&&(r=Math.max(r,i-t)),r>0&&o.splice(0,r),o},t}(i.Subject);var c=function(e,t){this.time=e,this.value=t}},MkTX:function(e,t,n){"use strict";var o=n("xgwM").__extends,i=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l,s,a=n("CmJd"),u=n("4KnF");!function(e){e[e.mod=0]="mod",e[e.fn=1]="fn",e[e.mouse=2]="mouse"}(l=t.LayerName||(t.LayerName={})),function(e){e.holdAndDoubleTapToggle="holdAndDoubleTapToggle",e.toggle="toggle",e.hold="hold"}(s=t.SwitchLayerMode||(t.SwitchLayerMode={})),t.mapSwitchLayerModeToNumber=function(e){switch(e){case s.holdAndDoubleTapToggle:return 0;case s.toggle:return 1;case s.hold:return 2;default:throw new Error("Can not map "+e+" to number")}},t.mapNumberToSwitchLayerMode=function(e){switch(e){case 0:return s.holdAndDoubleTapToggle;case 1:return s.toggle;case 2:return s.hold;default:throw new Error('Can not map "'+e+'" to SwitchLayerMode')}},t.SwitchLayerAction=function(e){function n(t){var n=e.call(this)||this;return t?(n.switchLayerMode=t.switchLayerMode,n.layer=t.layer,n):n}return o(n,e),n.prototype.fromJsonObject=function(e){return this.assertKeyActionType(e),this.layer=l[e.layer],this.switchLayerMode="boolean"==typeof e.toggle?e.toggle?s.toggle:s.holdAndDoubleTapToggle:e.switchLayerMode,this},n.prototype.fromBinary=function(e){return this.readAndAssertKeyActionId(e),this.layer=e.readUInt8(),this.switchLayerMode=t.mapNumberToSwitchLayerMode(e.readUInt8()),this},n.prototype.toJsonObject=function(){return{keyActionType:u.keyActionType.SwitchLayerAction,layer:l[this.layer],switchLayerMode:this.switchLayerMode}},n.prototype.toBinary=function(e){e.writeUInt8(u.KeyActionId.SwitchLayerAction),e.writeUInt8(this.layer),e.writeUInt8(t.mapSwitchLayerModeToNumber(this.switchLayerMode))},n.prototype.toString=function(){return'<SwitchLayerAction layer="'+this.layer+'" switchLayerMode="'+this.switchLayerMode+'">'},n.prototype.getName=function(){return"SwitchLayerAction"},i([a.assertEnum(s),r("design:type",String)],n.prototype,"switchLayerMode",void 0),i([a.assertEnum(l),r("design:type",Number)],n.prototype,"layer",void 0),n}(u.KeyAction)},MptX:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var o={showButton:!1,text:null,showProgress:!1}},NSzm:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return _});var o=n("TToO"),i=n("8AXl"),r=n("rCTf"),l=n("DzMp"),s=(n.n(l),n("lDdF")),a=(n.n(s),n("+pb+")),u=(n.n(a),n("uCY4")),c=(n.n(u),n("/lY3")),d=(n.n(c),n("fiy1")),p=(n.n(d),n("HcJ8")),f=(n.n(p),n("1APj")),h=(n.n(f),n("AGQa")),y=(n.n(h),n("gI3A")),m=(n.n(y),n("at4H")),g=n("9EfN"),v=n("WP8/"),b=n("Ji5S"),k=n("fYQU"),_=function(){function t(t,n,o,i,a,u,c){var d=this;this.actions$=t,this.dataStorageRepository=n,this.store=o,this.defaultUserConfigurationService=i,this.deviceRendererService=a,this.logService=u,this.router=c,this.loadUserConfig$=Object(l.defer)(function(){return r.Observable.of(new m.f(d.getUserConfiguration()))}),this.saveUserConfig$=this.actions$.ofType(v.a.ADD,v.a.DUPLICATE,v.a.EDIT_NAME,v.a.EDIT_ABBR,v.a.SET_DEFAULT,v.a.REMOVE,v.a.SAVE_KEY,v.a.EDIT_DESCRIPTION,v.b.ADD,v.b.DUPLICATE,v.b.EDIT_NAME,v.b.REMOVE,v.b.ADD_ACTION,v.b.SAVE_ACTION,v.b.DELETE_ACTION,v.b.REORDER_ACTION,m.a.RENAME_USER_CONFIGURATION,m.a.SET_USER_CONFIGURATION_VALUE).withLatestFrom(this.store.select(g.r),this.store.select(g.l)).mergeMap(function(e){var t=e[0],n=e[1],o=e[2];if(n.recalculateConfigurationLength(),d.dataStorageRepository.saveConfig(n),t.type===v.a.REMOVE||t.type===v.b.REMOVE){var i=t.type===v.a.REMOVE?"Keymap":"Macro",r={path:"/"+(t.type===v.a.REMOVE?"keymap":"macro")+"/"+t.payload,config:o.toJsonObject()};return[new m.k(n),new b.l({type:y.NotificationType.Undoable,message:i+" has been deleted",extra:{payload:r,type:v.a.UNDO_LAST_ACTION}}),new k.q]}return[new m.k(n),new b.d,new k.q]}),this.undoUserConfig$=this.actions$.ofType(v.a.UNDO_LAST_ACTION).map(function(e){return e.payload}).mergeMap(function(e){var t=(new y.UserConfiguration).fromJsonObject(e.config);return d.dataStorageRepository.saveConfig(t),d.router.navigate([e.path]),[new m.f(t)]}),this.loadConfigFromDevice$=this.actions$.ofType(m.a.LOAD_CONFIG_FROM_DEVICE).do(function(){return d.deviceRendererService.loadConfigurationFromKeyboard()}),this.loadConfigFromDeviceReply$=this.actions$.ofType(m.a.LOAD_CONFIG_FROM_DEVICE_REPLY).withLatestFrom(this.store.select(g.n)).mergeMap(function(e){var t=e[1],n=e[0].payload;if(!n.success)return[new b.l({type:y.NotificationType.Error,message:n.error})];var o,i=[];try{var r=Object(y.getUserConfigFromDeviceResponse)(n.userConfiguration);i.push(new m.f(r)),t.state&&!t.state.url.startsWith("/device/firmware")&&(o=["/"])}catch(e){d.logService.error("Eeprom user-config parse error:",e),r=(new y.UserConfiguration).fromJsonObject(n.backupConfiguration),i.push(new k.d(!!n.backupConfiguration)),i.push(new m.f(r)),o=["/device/restore-user-configuration"]}try{var l=Object(y.getHardwareConfigFromDeviceResponse)(n.hardwareConfiguration);i.push(new b.g(l))}catch(e){d.logService.error("Eeprom hardware-config parse error:",e),i.push(new b.l({type:y.NotificationType.Error,message:e}))}return i.push(new k.c(n.modules)),o&&d.router.navigate(o),i}),this.saveUserConfigInJsonFile$=this.actions$.ofType(m.a.SAVE_USER_CONFIG_IN_JSON_FILE).withLatestFrom(this.store.select(g.r)).do(function(e){var t=JSON.stringify(e[1].toJsonObject(),null,2),n=new Blob([t],{type:"text/plain"});Object(s.saveAs)(n,"UserConfiguration.json")}),this.saveUserConfigInBinFile$=this.actions$.ofType(m.a.SAVE_USER_CONFIG_IN_BIN_FILE).withLatestFrom(this.store.select(g.r)).do(function(e){var t=e[1],n=new y.UhkBuffer;t.toBinary(n);var o=new Blob([n.getBufferContent()]);Object(s.saveAs)(o,"UserConfiguration.bin")}),this.loadUserConfigurationFromFile$=this.actions$.ofType(m.a.LOAD_USER_CONFIGURATION_FROM_FILE).map(function(e){return e.payload}).map(function(t){try{var n=new y.UserConfiguration;if(t.filename.endsWith(".bin"))n.fromBinary(y.UhkBuffer.fromArray(t.data));else{var o=new e(t.data).toString();n.fromJsonObject(JSON.parse(o))}return n.userConfigMajorVersion?new m.b(n):new b.l({type:y.NotificationType.Error,message:"Invalid configuration specified."})}catch(e){return new b.l({type:y.NotificationType.Error,message:"Invalid configuration specified."})}})}return t.prototype.getUserConfiguration=function(){var e,t=this.dataStorageRepository.getConfig();return t&&t.userConfigMajorVersion===this.defaultUserConfigurationService.getDefault().userConfigMajorVersion&&(e=(new y.UserConfiguration).fromJsonObject(t)),e||(e=this.defaultUserConfigurationService.getDefault()),e},Object(o.__decorate)([Object(i.b)(),Object(o.__metadata)("design:type",r.Observable)],t.prototype,"loadUserConfig$",void 0),Object(o.__decorate)([Object(i.b)(),Object(o.__metadata)("design:type",r.Observable)],t.prototype,"saveUserConfig$",void 0),Object(o.__decorate)([Object(i.b)(),Object(o.__metadata)("design:type",r.Observable)],t.prototype,"undoUserConfig$",void 0),Object(o.__decorate)([Object(i.b)({dispatch:!1}),Object(o.__metadata)("design:type",Object)],t.prototype,"loadConfigFromDevice$",void 0),Object(o.__decorate)([Object(i.b)(),Object(o.__metadata)("design:type",Object)],t.prototype,"loadConfigFromDeviceReply$",void 0),Object(o.__decorate)([Object(i.b)({dispatch:!1}),Object(o.__metadata)("design:type",Object)],t.prototype,"saveUserConfigInJsonFile$",void 0),Object(o.__decorate)([Object(i.b)({dispatch:!1}),Object(o.__metadata)("design:type",Object)],t.prototype,"saveUserConfigInBinFile$",void 0),Object(o.__decorate)([Object(i.b)(),Object(o.__metadata)("design:type",Object)],t.prototype,"loadUserConfigurationFromFile$",void 0),t}()}).call(t,n("63KW").Buffer)},Nkju:function(e,t){e.exports=function(e,t){return Array.prototype.slice.call(e,t)}},ODby:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS"),r=n("8GmM");t.observeOn=function(e,t){return void 0===t&&(t=0),function(n){return n.lift(new l(e,t))}};var l=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.scheduler,this.delay))},e}();t.ObserveOnOperator=l;var s=function(e){function t(t,n,o){void 0===o&&(o=0),e.call(this,t),this.scheduler=n,this.delay=o}return o(t,e),t.dispatch=function(e){e.notification.observe(e.destination),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.add(this.scheduler.schedule(t.dispatch,this.delay,new a(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(r.Notification.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(r.Notification.createError(e))},t.prototype._complete=function(){this.scheduleMessage(r.Notification.createComplete())},t}(i.Subscriber);t.ObserveOnSubscriber=s;var a=function(e,t){this.notification=e,this.destination=t};t.ObserveOnMessage=a},OE0E:function(e,t,n){"use strict";n.d(t,"a",function(){return Fe}),n.d(t,"j",function(){return Ue}),n.d(t,"h",function(){return v}),n.d(t,"i",function(){return w}),n.d(t,"b",function(){return y}),n.d(t,"d",function(){return M}),n.d(t,"e",function(){return E}),n.d(t,"f",function(){return ne}),n.d(t,"g",function(){return oe}),n.d(t,"c",function(){return Me}),n.d(t,"s",function(){return s}),n.d(t,"l",function(){return F}),n.d(t,"k",function(){return ee}),n.d(t,"n",function(){return ie}),n.d(t,"o",function(){return se}),n.d(t,"m",function(){return R}),n.d(t,"p",function(){return I}),n.d(t,"q",function(){return Ve}),n.d(t,"t",function(){return S}),n.d(t,"r",function(){return Ee});var o=n("Xjw4"),i=n("WT6e"),r=n("TToO"),l=null;function s(){return l}var a,u={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},c={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},d={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"};i["\u0275global"].Node&&(a=i["\u0275global"].Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))});var p,f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.parse=function(e){throw new Error("parse not implemented")},t.makeCurrent=function(){var e;e=new t,l||(l=e)},t.prototype.hasProperty=function(e,t){return t in e},t.prototype.setProperty=function(e,t,n){e[t]=n},t.prototype.getProperty=function(e,t){return e[t]},t.prototype.invoke=function(e,t,n){var o;(o=e)[t].apply(o,n)},t.prototype.logError=function(e){window.console&&(console.error?console.error(e):console.log(e))},t.prototype.log=function(e){window.console&&window.console.log&&window.console.log(e)},t.prototype.logGroup=function(e){window.console&&window.console.group&&window.console.group(e)},t.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return u},enumerable:!0,configurable:!0}),t.prototype.contains=function(e,t){return a.call(e,t)},t.prototype.querySelector=function(e,t){return e.querySelector(t)},t.prototype.querySelectorAll=function(e,t){return e.querySelectorAll(t)},t.prototype.on=function(e,t,n){e.addEventListener(t,n,!1)},t.prototype.onAndCancel=function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}},t.prototype.dispatchEvent=function(e,t){e.dispatchEvent(t)},t.prototype.createMouseEvent=function(e){var t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t},t.prototype.createEvent=function(e){var t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t},t.prototype.preventDefault=function(e){e.preventDefault(),e.returnValue=!1},t.prototype.isPrevented=function(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue},t.prototype.getInnerHTML=function(e){return e.innerHTML},t.prototype.getTemplateContent=function(e){return"content"in e&&this.isTemplateElement(e)?e.content:null},t.prototype.getOuterHTML=function(e){return e.outerHTML},t.prototype.nodeName=function(e){return e.nodeName},t.prototype.nodeValue=function(e){return e.nodeValue},t.prototype.type=function(e){return e.type},t.prototype.content=function(e){return this.hasProperty(e,"content")?e.content:e},t.prototype.firstChild=function(e){return e.firstChild},t.prototype.nextSibling=function(e){return e.nextSibling},t.prototype.parentElement=function(e){return e.parentNode},t.prototype.childNodes=function(e){return e.childNodes},t.prototype.childNodesAsList=function(e){for(var t=e.childNodes,n=new Array(t.length),o=0;o<t.length;o++)n[o]=t[o];return n},t.prototype.clearNodes=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},t.prototype.appendChild=function(e,t){e.appendChild(t)},t.prototype.removeChild=function(e,t){e.removeChild(t)},t.prototype.replaceChild=function(e,t,n){e.replaceChild(t,n)},t.prototype.remove=function(e){return e.parentNode&&e.parentNode.removeChild(e),e},t.prototype.insertBefore=function(e,t,n){e.insertBefore(n,t)},t.prototype.insertAllBefore=function(e,t,n){n.forEach(function(n){return e.insertBefore(n,t)})},t.prototype.insertAfter=function(e,t,n){e.insertBefore(n,t.nextSibling)},t.prototype.setInnerHTML=function(e,t){e.innerHTML=t},t.prototype.getText=function(e){return e.textContent},t.prototype.setText=function(e,t){e.textContent=t},t.prototype.getValue=function(e){return e.value},t.prototype.setValue=function(e,t){e.value=t},t.prototype.getChecked=function(e){return e.checked},t.prototype.setChecked=function(e,t){e.checked=t},t.prototype.createComment=function(e){return this.getDefaultDocument().createComment(e)},t.prototype.createTemplate=function(e){var t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t},t.prototype.createElement=function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)},t.prototype.createElementNS=function(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)},t.prototype.createTextNode=function(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)},t.prototype.createScriptTag=function(e,t,n){var o=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return o.setAttribute(e,t),o},t.prototype.createStyleElement=function(e,t){var n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n},t.prototype.createShadowRoot=function(e){return e.createShadowRoot()},t.prototype.getShadowRoot=function(e){return e.shadowRoot},t.prototype.getHost=function(e){return e.host},t.prototype.clone=function(e){return e.cloneNode(!0)},t.prototype.getElementsByClassName=function(e,t){return e.getElementsByClassName(t)},t.prototype.getElementsByTagName=function(e,t){return e.getElementsByTagName(t)},t.prototype.classList=function(e){return Array.prototype.slice.call(e.classList,0)},t.prototype.addClass=function(e,t){e.classList.add(t)},t.prototype.removeClass=function(e,t){e.classList.remove(t)},t.prototype.hasClass=function(e,t){return e.classList.contains(t)},t.prototype.setStyle=function(e,t,n){e.style[t]=n},t.prototype.removeStyle=function(e,t){e.style[t]=""},t.prototype.getStyle=function(e,t){return e.style[t]},t.prototype.hasStyle=function(e,t,n){var o=this.getStyle(e,t)||"";return n?o==n:o.length>0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,o=0;o<n.length;o++){var i=n.item(o);t.set(i.name,i.value)}return t},t.prototype.hasAttribute=function(e,t){return e.hasAttribute(t)},t.prototype.hasAttributeNS=function(e,t,n){return e.hasAttributeNS(t,n)},t.prototype.getAttribute=function(e,t){return e.getAttribute(t)},t.prototype.getAttributeNS=function(e,t,n){return e.getAttributeNS(t,n)},t.prototype.setAttribute=function(e,t,n){e.setAttribute(t,n)},t.prototype.setAttributeNS=function(e,t,n,o){e.setAttributeNS(t,n,o)},t.prototype.removeAttribute=function(e,t){e.removeAttribute(t)},t.prototype.removeAttributeNS=function(e,t,n){e.removeAttributeNS(t,n)},t.prototype.templateAwareRoot=function(e){return this.isTemplateElement(e)?this.content(e):e},t.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},t.prototype.getDefaultDocument=function(){return document},t.prototype.getBoundingClientRect=function(e){try{return e.getBoundingClientRect()}catch(e){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},t.prototype.getTitle=function(e){return e.title},t.prototype.setTitle=function(e,t){e.title=t||""},t.prototype.elementMatches=function(e,t){return!!this.isElementNode(e)&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))},t.prototype.isTemplateElement=function(e){return this.isElementNode(e)&&"TEMPLATE"===e.nodeName},t.prototype.isTextNode=function(e){return e.nodeType===Node.TEXT_NODE},t.prototype.isCommentNode=function(e){return e.nodeType===Node.COMMENT_NODE},t.prototype.isElementNode=function(e){return e.nodeType===Node.ELEMENT_NODE},t.prototype.hasShadowRoot=function(e){return null!=e.shadowRoot&&e instanceof HTMLElement},t.prototype.isShadowRoot=function(e){return e instanceof DocumentFragment},t.prototype.importIntoDoc=function(e){return document.importNode(this.templateAwareRoot(e),!0)},t.prototype.adoptNode=function(e){return document.adoptNode(e)},t.prototype.getHref=function(e){return e.getAttribute("href")},t.prototype.getEventKey=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&d.hasOwnProperty(t)&&(t=d[t]))}return c[t]||t},t.prototype.getGlobalEventTarget=function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null},t.prototype.getHistory=function(){return window.history},t.prototype.getLocation=function(){return window.location},t.prototype.getBaseHref=function(e){var t,n=h||(h=document.querySelector("base"))?h.getAttribute("href"):null;return null==n?null:(t=n,p||(p=document.createElement("a")),p.setAttribute("href",t),"/"===p.pathname.charAt(0)?p.pathname:"/"+p.pathname)},t.prototype.resetBaseElement=function(){h=null},t.prototype.getUserAgent=function(){return window.navigator.userAgent},t.prototype.setData=function(e,t,n){this.setAttribute(e,"data-"+t,n)},t.prototype.getData=function(e,t){return this.getAttribute(e,"data-"+t)},t.prototype.getComputedStyle=function(e){return getComputedStyle(e)},t.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},t.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},t.prototype.supportsCookies=function(){return!0},t.prototype.getCookie=function(e){return Object(o.v)(document.cookie,e)},t.prototype.setCookie=function(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)},t}(function(e){function t(){var t=e.call(this)||this;t._animationPrefix=null,t._transitionEnd=null;try{var n=t.createElement("div",document);if(null!=t.getStyle(n,"animationName"))t._animationPrefix="";else for(var o=["Webkit","Moz","O","ms"],i=0;i<o.length;i++)if(null!=t.getStyle(n,o[i]+"AnimationName")){t._animationPrefix="-"+o[i].toLowerCase()+"-";break}var r={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(r).forEach(function(e){null!=t.getStyle(n,e)&&(t._transitionEnd=r[e])})}catch(e){t._animationPrefix=null,t._transitionEnd=null}return t}return Object(r.__extends)(t,e),t.prototype.getDistributedNodes=function(e){return e.getDistributedNodes()},t.prototype.resolveAndSetHref=function(e,t,n){e.href=null==n?t:t+"/../"+n},t.prototype.supportsDOMEvents=function(){return!0},t.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},t.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},t.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},t.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},t}(function(){function e(){this.resourceLoaderType=null}return Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(e){this._attrToPropMap=e},enumerable:!0,configurable:!0}),e}())),h=null,y=o.d;function m(){return!!window.history.pushState}var g=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n._init(),n}return Object(r.__extends)(t,e),t.prototype._init=function(){this.location=s().getLocation(),this._history=s().getHistory()},t.prototype.getBaseHrefFromDOM=function(){return s().getBaseHref(this._doc)},t.prototype.onPopState=function(e){s().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)},t.prototype.onHashChange=function(e){s().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)},Object.defineProperty(t.prototype,"pathname",{get:function(){return this.location.pathname},set:function(e){this.location.pathname=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),t.prototype.pushState=function(e,t,n){m()?this._history.pushState(e,t,n):this.location.hash=n},t.prototype.replaceState=function(e,t,n){m()?this._history.replaceState(e,t,n):this.location.hash=n},t.prototype.forward=function(){this._history.forward()},t.prototype.back=function(){this._history.back()},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:i.Inject,args:[y]}]}]},t}(o.s),v=function(){function e(e){this._doc=e,this._dom=s()}return e.prototype.addTag=function(e,t){return void 0===t&&(t=!1),e?this._getOrCreateElement(e,t):null},e.prototype.addTags=function(e,t){var n=this;return void 0===t&&(t=!1),e?e.reduce(function(e,o){return o&&e.push(n._getOrCreateElement(o,t)),e},[]):[]},e.prototype.getTag=function(e){return e&&this._dom.querySelector(this._doc,"meta["+e+"]")||null},e.prototype.getTags=function(e){if(!e)return[];var t=this._dom.querySelectorAll(this._doc,"meta["+e+"]");return t?[].slice.call(t):[]},e.prototype.updateTag=function(e,t){if(!e)return null;t=t||this._parseSelector(e);var n=this.getTag(t);return n?this._setMetaElementAttributes(e,n):this._getOrCreateElement(e,!0)},e.prototype.removeTag=function(e){this.removeTagElement(this.getTag(e))},e.prototype.removeTagElement=function(e){e&&this._dom.remove(e)},e.prototype._getOrCreateElement=function(e,t){if(void 0===t&&(t=!1),!t){var n=this._parseSelector(e),o=this.getTag(n);if(o&&this._containsAttributes(e,o))return o}var i=this._dom.createElement("meta");this._setMetaElementAttributes(e,i);var r=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(r,i),i},e.prototype._setMetaElementAttributes=function(e,t){var n=this;return Object.keys(e).forEach(function(o){return n._dom.setAttribute(t,o,e[o])}),t},e.prototype._parseSelector=function(e){var t=e.name?"name":"property";return t+'="'+e[t]+'"'},e.prototype._containsAttributes=function(e,t){var n=this;return Object.keys(e).every(function(o){return n._dom.getAttribute(t,o)===e[o]})},e}(),b=new i.InjectionToken("TRANSITION_ID"),k=[{provide:i.APP_INITIALIZER,useFactory:function(e,t,n){return function(){n.get(i.ApplicationInitStatus).donePromise.then(function(){var n=s();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(function(t){return n.getAttribute(t,"ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[b,y,i.Injector],multi:!0}],_=function(){function e(){}return e.init=function(){Object(i.setTestabilityGetter)(new e)},e.prototype.addToWindow=function(e){i["\u0275global"].getAngularTestability=function(t,n){void 0===n&&(n=!0);var o=e.findTestabilityInTree(t,n);if(null==o)throw new Error("Could not find testability for element.");return o},i["\u0275global"].getAllAngularTestabilities=function(){return e.getAllTestabilities()},i["\u0275global"].getAllAngularRootElements=function(){return e.getAllRootElements()},i["\u0275global"].frameworkStabilizers||(i["\u0275global"].frameworkStabilizers=[]),i["\u0275global"].frameworkStabilizers.push(function(e){var t=i["\u0275global"].getAllAngularTestabilities(),n=t.length,o=!1,r=function(t){o=o||t,0==--n&&e(o)};t.forEach(function(e){e.whenStable(r)})})},e.prototype.findTestabilityInTree=function(e,t,n){if(null==t)return null;var o=e.getTestability(t);return null!=o?o:n?s().isShadowRoot(t)?this.findTestabilityInTree(e,s().getHost(t),!0):this.findTestabilityInTree(e,s().parentElement(t),!0):null},e}(),w=function(){function e(e){this._doc=e}return e.prototype.getTitle=function(){return s().getTitle(this._doc)},e.prototype.setTitle=function(e){s().setTitle(this._doc,e)},e}();function A(e,t){"undefined"!=typeof COMPILED&&COMPILED||((i["\u0275global"].ng=i["\u0275global"].ng||{})[e]=t)}var T={ApplicationRef:i.ApplicationRef,NgZone:i.NgZone},C="probe",x="coreTokens";function O(e){return Object(i.getDebugNode)(e)}function S(e){return A(C,O),A(x,Object(r.__assign)({},T,(e||[]).reduce(function(e,t){return e[t.name]=t.token,e},{}))),function(){return O}}var M=new i.InjectionToken("EventManagerPlugins"),E=function(){function e(e,t){var n=this;this._zone=t,this._eventNameToPlugin=new Map,e.forEach(function(e){return e.manager=n}),this._plugins=e.slice().reverse()}return e.prototype.addEventListener=function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)},e.prototype.addGlobalEventListener=function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)},e.prototype.getZone=function(){return this._zone},e.prototype._findPluginFor=function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,o=0;o<n.length;o++){var i=n[o];if(i.supports(e))return this._eventNameToPlugin.set(e,i),i}throw new Error("No event manager plugin found for event "+e)},e}(),P=function(){function e(e){this._doc=e}return e.prototype.addGlobalEventListener=function(e,t,n){var o=s().getGlobalEventTarget(this._doc,e);if(!o)throw new Error("Unsupported event target "+o+" for event "+t);return this.addEventListener(o,t,n)},e}(),I=function(){function e(){this._stylesSet=new Set}return e.prototype.addStyles=function(e){var t=this,n=new Set;e.forEach(function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))}),this.onStylesAdded(n)},e.prototype.onStylesAdded=function(e){},e.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},e}(),R=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(t.head),n}return Object(r.__extends)(t,e),t.prototype._addStylesToHost=function(e,t){var n=this;e.forEach(function(e){var o=n._doc.createElement("style");o.textContent=e,n._styleNodes.add(t.appendChild(o))})},t.prototype.addHost=function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)},t.prototype.removeHost=function(e){this._hostNodes.delete(e)},t.prototype.onStylesAdded=function(e){var t=this;this._hostNodes.forEach(function(n){return t._addStylesToHost(e,n)})},t.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(e){return s().remove(e)})},t}(I),D={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},N=/%COMP%/g,j="_nghost-%COMP%",L="_ngcontent-%COMP%";function U(e,t,n){for(var o=0;o<t.length;o++){var i=t[o];Array.isArray(i)?U(e,i,n):(i=i.replace(N,e),n.push(i))}return n}function V(e){return function(t){!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var F=function(){function e(e,t){this.eventManager=e,this.sharedStylesHost=t,this.rendererByCompId=new Map,this.defaultRenderer=new K(e)}return e.prototype.createRenderer=function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case i.ViewEncapsulation.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new q(this.eventManager,this.sharedStylesHost,t),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case i.ViewEncapsulation.Native:return new z(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var o=U(t.id,t.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}},e.prototype.begin=function(){},e.prototype.end=function(){},e}(),K=function(){function e(e){this.eventManager=e,this.data=Object.create(null)}return e.prototype.destroy=function(){},e.prototype.createElement=function(e,t){return t?document.createElementNS(D[t],e):document.createElement(e)},e.prototype.createComment=function(e){return document.createComment(e)},e.prototype.createText=function(e){return document.createTextNode(e)},e.prototype.appendChild=function(e,t){e.appendChild(t)},e.prototype.insertBefore=function(e,t,n){e&&e.insertBefore(t,n)},e.prototype.removeChild=function(e,t){e&&e.removeChild(t)},e.prototype.selectRootElement=function(e){var t="string"==typeof e?document.querySelector(e):e;if(!t)throw new Error('The selector "'+e+'" did not match any elements');return t.textContent="",t},e.prototype.parentNode=function(e){return e.parentNode},e.prototype.nextSibling=function(e){return e.nextSibling},e.prototype.setAttribute=function(e,t,n,o){if(o){t=o+":"+t;var i=D[o];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)},e.prototype.removeAttribute=function(e,t,n){if(n){var o=D[n];o?e.removeAttributeNS(o,t):e.removeAttribute(n+":"+t)}else e.removeAttribute(t)},e.prototype.addClass=function(e,t){e.classList.add(t)},e.prototype.removeClass=function(e,t){e.classList.remove(t)},e.prototype.setStyle=function(e,t,n,o){o&i.RendererStyleFlags2.DashCase?e.style.setProperty(t,n,o&i.RendererStyleFlags2.Important?"important":""):e.style[t]=n},e.prototype.removeStyle=function(e,t,n){n&i.RendererStyleFlags2.DashCase?e.style.removeProperty(t):e.style[t]=""},e.prototype.setProperty=function(e,t,n){H(t,"property"),e[t]=n},e.prototype.setValue=function(e,t){e.nodeValue=t},e.prototype.listen=function(e,t,n){return H(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,V(n)):this.eventManager.addEventListener(e,t,V(n))},e}(),B="@".charCodeAt(0);function H(e,t){if(e.charCodeAt(0)===B)throw new Error("Found the synthetic "+t+" "+e+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var W,q=function(e){function t(t,n,o){var i=e.call(this,t)||this;i.component=o;var r=U(o.id,o.styles,[]);return n.addStyles(r),i.contentAttr=L.replace(N,o.id),i.hostAttr=j.replace(N,o.id),i}return Object(r.__extends)(t,e),t.prototype.applyToHost=function(t){e.prototype.setAttribute.call(this,t,this.hostAttr,"")},t.prototype.createElement=function(t,n){var o=e.prototype.createElement.call(this,t,n);return e.prototype.setAttribute.call(this,o,this.contentAttr,""),o},t}(K),z=function(e){function t(t,n,o,i){var r=e.call(this,t)||this;r.sharedStylesHost=n,r.hostEl=o,r.component=i,r.shadowRoot=o.createShadowRoot(),r.sharedStylesHost.addHost(r.shadowRoot);for(var l=U(i.id,i.styles,[]),s=0;s<l.length;s++){var a=document.createElement("style");a.textContent=l[s],r.shadowRoot.appendChild(a)}return r}return Object(r.__extends)(t,e),t.prototype.nodeOrShadowRoot=function(e){return e===this.hostEl?this.shadowRoot:e},t.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},t.prototype.appendChild=function(t,n){return e.prototype.appendChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.insertBefore=function(t,n,o){return e.prototype.insertBefore.call(this,this.nodeOrShadowRoot(t),n,o)},t.prototype.removeChild=function(t,n){return e.prototype.removeChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.parentNode=function(t){return this.nodeOrShadowRoot(e.prototype.parentNode.call(this,this.nodeOrShadowRoot(t)))},t}(K),$="undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e},G=$("addEventListener"),Y=$("removeEventListener"),Q={},J="__zone_symbol__propagationStopped";"undefined"!=typeof Zone&&Zone[$("BLACK_LISTED_EVENTS")]&&(W={});var Z=function(e){return!!W&&W.hasOwnProperty(e)},X=function(e){var t=Q[e.type];if(t){var n=this[t];if(n){var o=[e];if(1===n.length)return(l=n[0]).zone!==Zone.current?l.zone.run(l.handler,this,o):l.handler.apply(this,o);for(var i=n.slice(),r=0;r<i.length&&!0!==e[J];r++){var l;(l=i[r]).zone!==Zone.current?l.zone.run(l.handler,this,o):l.handler.apply(this,o)}}}},ee=function(e){function t(t,n){var o=e.call(this,t)||this;return o.ngZone=n,o.patchEvent(),o}return Object(r.__extends)(t,e),t.prototype.patchEvent=function(){if(Event&&Event.prototype&&!Event.prototype.__zone_symbol__stopImmediatePropagation){var e=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[J]=!0),e&&e.apply(this,arguments)}}},t.prototype.supports=function(e){return!0},t.prototype.addEventListener=function(e,t,n){var o=this,r=n;if(!e[G]||i.NgZone.isInAngularZone()&&!Z(t))e.addEventListener(t,r,!1);else{var l=Q[t];l||(l=Q[t]=$("ANGULAR"+t+"FALSE"));var s=e[l],a=s&&s.length>0;s||(s=e[l]=[]);var u=Z(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:u,handler:r});else{for(var c=!1,d=0;d<s.length;d++)if(s[d].handler===r){c=!0;break}c||s.push({zone:u,handler:r})}a||e[G](t,X,!1)}return function(){return o.removeEventListener(e,t,r)}},t.prototype.removeEventListener=function(e,t,n){var o=e[Y];if(!o)return e.removeEventListener.apply(e,[t,n,!1]);var i=Q[t],r=i&&e[i];if(!r)return e.removeEventListener.apply(e,[t,n,!1]);for(var l=!1,s=0;s<r.length;s++)if(r[s].handler===n){l=!0,r.splice(s,1);break}l?0===r.length&&o.apply(e,[t,X,!1]):e.removeEventListener.apply(e,[t,n,!1])},t}(P),te={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},ne=new i.InjectionToken("HammerGestureConfig"),oe=function(){function e(){this.events=[],this.overrides={}}return e.prototype.buildHammer=function(e){var t=new Hammer(e);for(var n in t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0}),this.overrides)t.get(n).set(this.overrides[n]);return t},e}(),ie=function(e){function t(t,n){var o=e.call(this,t)||this;return o._config=n,o}return Object(r.__extends)(t,e),t.prototype.supports=function(e){if(!te.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e))return!1;if(!window.Hammer)throw new Error("Hammer.js is not loaded, can not bind "+e+" event");return!0},t.prototype.addEventListener=function(e,t,n){var o=this,i=this.manager.getZone();return t=t.toLowerCase(),i.runOutsideAngular(function(){var r=o._config.buildHammer(e),l=function(e){i.runGuarded(function(){n(e)})};return r.on(t,l),function(){return r.off(t,l)}})},t.prototype.isCustomEvent=function(e){return this._config.events.indexOf(e)>-1},t}(P),re=["alt","control","meta","shift"],le={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},se=function(e){function t(t){return e.call(this,t)||this}return Object(r.__extends)(t,e),t.prototype.supports=function(e){return null!=t.parseEventName(e)},t.prototype.addEventListener=function(e,n,o){var i=t.parseEventName(n),r=t.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return s().onAndCancel(e,i.domEventName,r)})},t.parseEventName=function(e){var n=e.toLowerCase().split("."),o=n.shift();if(0===n.length||"keydown"!==o&&"keyup"!==o)return null;var i=t._normalizeKey(n.pop()),r="";if(re.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),r+=e+".")}),r+=i,0!=n.length||0===i.length)return null;var l={};return l.domEventName=o,l.fullKey=r,l},t.getEventFullKey=function(e){var t="",n=s().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),re.forEach(function(o){o!=n&&(0,le[o])(e)&&(t+=o+".")}),t+=n},t.eventCallback=function(e,n,o){return function(i){t.getEventFullKey(i)===e&&o.runGuarded(function(){return n(i)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(P),ae=function(){function e(e,t){this.defaultDoc=e,this.DOM=t;var n=this.DOM.createHtmlDocument();if(this.inertBodyElement=n.body,null==this.inertBodyElement){var o=this.DOM.createElement("html",n);this.inertBodyElement=this.DOM.createElement("body",n),this.DOM.appendChild(o,this.inertBodyElement),this.DOM.appendChild(n,o)}this.DOM.setInnerHTML(this.inertBodyElement,'<svg><g onload="this.parentNode.remove()"></g></svg>'),!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.DOM.setInnerHTML(this.inertBodyElement,'<svg><p><style><img src="</style><img src=x onerror=alert(1)//">'),this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return e.prototype.getInertBodyElement_XHR=function(e){e="<body><remove></remove>"+e+"</body>";try{e=encodeURI(e)}catch(e){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(null);var n=t.response.body;return n.removeChild(n.firstChild),n},e.prototype.getInertBodyElement_DOMParser=function(e){e="<body><remove></remove>"+e+"</body>";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(e){return null}},e.prototype.getInertBodyElement_InertDocument=function(e){var t=this.DOM.createElement("template");return"content"in t?(this.DOM.setInnerHTML(t,e),t):(this.DOM.setInnerHTML(this.inertBodyElement,e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},e.prototype.stripCustomNsAttrs=function(e){var t=this;this.DOM.attributeMap(e).forEach(function(n,o){"xmlns:ns1"!==o&&0!==o.indexOf("ns1:")||t.DOM.removeAttribute(e,o)});for(var n=0,o=this.DOM.childNodesAsList(e);n<o.length;n++){var i=o[n];this.DOM.isElementNode(i)&&this.stripCustomNsAttrs(i)}},e}(),ue=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,ce=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function de(e){return(e=String(e)).match(ue)||e.match(ce)?e:(Object(i.isDevMode)()&&s().log("WARNING: sanitizing unsafe URL value "+e+" (see http://g.co/ng/security#xss)"),"unsafe:"+e)}function pe(e){for(var t={},n=0,o=e.split(",");n<o.length;n++)t[o[n]]=!0;return t}function fe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},o=0,i=e;o<i.length;o++){var r=i[o];for(var l in r)r.hasOwnProperty(l)&&(n[l]=!0)}return n}var he,ye=pe("area,br,col,hr,img,wbr"),me=pe("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ge=pe("rp,rt"),ve=fe(ge,me),be=fe(ye,fe(me,pe("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),fe(ge,pe("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),ve),ke=pe("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),_e=pe("srcset"),we=fe(ke,_e,pe("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width")),Ae=function(){function e(){this.sanitizedSomething=!1,this.buf=[],this.DOM=s()}return e.prototype.sanitizeChildren=function(e){for(var t=this.DOM.firstChild(e);t;)if(this.DOM.isElementNode(t)?this.startElement(t):this.DOM.isTextNode(t)?this.chars(this.DOM.nodeValue(t)):this.sanitizedSomething=!0,this.DOM.firstChild(t))t=this.DOM.firstChild(t);else for(;t;){this.DOM.isElementNode(t)&&this.endElement(t);var n=this.checkClobberedElement(t,this.DOM.nextSibling(t));if(n){t=n;break}t=this.checkClobberedElement(t,this.DOM.parentElement(t))}return this.buf.join("")},e.prototype.startElement=function(e){var t=this,n=this.DOM.nodeName(e).toLowerCase();be.hasOwnProperty(n)?(this.buf.push("<"),this.buf.push(n),this.DOM.attributeMap(e).forEach(function(e,n){var o,i=n.toLowerCase();we.hasOwnProperty(i)?(ke[i]&&(e=de(e)),_e[i]&&(o=e,e=(o=String(o)).split(",").map(function(e){return de(e.trim())}).join(", ")),t.buf.push(" "),t.buf.push(n),t.buf.push('="'),t.buf.push(xe(e)),t.buf.push('"')):t.sanitizedSomething=!0}),this.buf.push(">")):this.sanitizedSomething=!0},e.prototype.endElement=function(e){var t=this.DOM.nodeName(e).toLowerCase();be.hasOwnProperty(t)&&!ye.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))},e.prototype.chars=function(e){this.buf.push(xe(e))},e.prototype.checkClobberedElement=function(e,t){if(t&&this.DOM.contains(e,t))throw new Error("Failed to sanitize html because the element is clobbered: "+this.DOM.getOuterHTML(e));return t},e}(),Te=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ce=/([^\#-~ |!])/g;function xe(e){return e.replace(/&/g,"&amp;").replace(Te,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Ce,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var Oe=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Se=/^url\(([^)]+)\)$/,Me=function(){},Ee=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return Object(r.__extends)(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case i.SecurityContext.NONE:return t;case i.SecurityContext.HTML:return t instanceof Ie?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){var n=s(),o=null;try{he=he||new ae(e,n);var r=t?String(t):"";o=he.getInertBodyElement(r);var l=5,a=r;do{if(0===l)throw new Error("Failed to sanitize html because the input is unstable");l--,r=a,a=n.getInnerHTML(o),o=he.getInertBodyElement(r)}while(r!==a);var u=new Ae,c=u.sanitizeChildren(n.getTemplateContent(o)||o);return Object(i.isDevMode)()&&u.sanitizedSomething&&n.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),c}finally{if(o)for(var d=n.getTemplateContent(o)||o,p=0,f=n.childNodesAsList(d);p<f.length;p++)n.removeChild(d,f[p])}}(this._doc,String(t)));case i.SecurityContext.STYLE:return t instanceof Re?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";var t=e.match(Se);return t&&de(t[1])===t[1]||e.match(Oe)&&function(e){for(var t=!0,n=!0,o=0;o<e.length;o++){var i=e.charAt(o);"'"===i&&n?t=!t:'"'===i&&t&&(n=!n)}return t&&n}(e)?e:(Object(i.isDevMode)()&&s().log("WARNING: sanitizing unsafe style value "+e+" (see http://g.co/ng/security#xss)."),"unsafe")}(t));case i.SecurityContext.SCRIPT:if(t instanceof De)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case i.SecurityContext.URL:return t instanceof je||t instanceof Ne?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),de(String(t)));case i.SecurityContext.RESOURCE_URL:if(t instanceof je)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+e+" (see http://g.co/ng/security#xss)")}},t.prototype.checkNotSafeValue=function(e,t){if(e instanceof Pe)throw new Error("Required a safe "+t+", got a "+e.getTypeName()+" (see http://g.co/ng/security#xss)")},t.prototype.bypassSecurityTrustHtml=function(e){return new Ie(e)},t.prototype.bypassSecurityTrustStyle=function(e){return new Re(e)},t.prototype.bypassSecurityTrustScript=function(e){return new De(e)},t.prototype.bypassSecurityTrustUrl=function(e){return new Ne(e)},t.prototype.bypassSecurityTrustResourceUrl=function(e){return new je(e)},t}(Me),Pe=function(){function e(e){this.changingThisBreaksApplicationSecurity=e}return e.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},e}(),Ie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.getTypeName=function(){return"HTML"},t}(Pe),Re=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.getTypeName=function(){return"Style"},t}(Pe),De=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.getTypeName=function(){return"Script"},t}(Pe),Ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.getTypeName=function(){return"URL"},t}(Pe),je=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.getTypeName=function(){return"ResourceURL"},t}(Pe),Le=[{provide:i.PLATFORM_ID,useValue:o.t},{provide:i.PLATFORM_INITIALIZER,useValue:function(){f.makeCurrent(),_.init()},multi:!0},{provide:o.s,useClass:g,deps:[y]},{provide:y,useFactory:function(){return document},deps:[]}],Ue=Object(i.createPlatformFactory)(i.platformCore,"browser",Le);function Ve(){return new i.ErrorHandler}var Fe=function(){function e(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return e.withServerTransition=function(t){return{ngModule:e,providers:[{provide:i.APP_ID,useValue:t.appId},{provide:b,useExisting:i.APP_ID},k]}},e}();"undefined"!=typeof window&&window},OMCl:function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},"Oa+j":function(e,t,n){"use strict";var o=n("L97J");t.dematerialize=function(){return o.dematerialize()(this)}},OjAK:function(e,t){e.exports={name:"uhk-agent",private:!0,author:"Ultimate Gadget Laboratories",main:"electron/dist/electron-main.js",version:"1.2.3",firmwareVersion:"8.2.5",deviceProtocolVersion:"4.3.1",userConfigVersion:"4.0.1",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":"5.0.1","@types/jasmine":"2.6.0","@types/jquery":"3.3.1","@types/jsonfile":"4.0.1","@types/lodash-es":"4.17.0","@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","check-node-version":"^3.2.0","copy-webpack-plugin":"4.0.1",copyfiles:"^2.0.0","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.8.4","electron-builder":"20.8.1","electron-debug":"1.5.0","electron-devtools-installer":"2.2.3","electron-log":"2.2.14","electron-rebuild":"1.7.3","electron-settings":"3.1.4","electron-updater":"2.21.4","exports-loader":"0.6.3","file-loader":"0.10.0","fs-extra":"5.0.0","gh-pages":"1.1.0",jsonfile:"4.0.0",lerna:"2.9.0","lodash-es":"4.17.4",mkdirp:"0.5.1","node-hid":"0.5.7","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.9.1",typescript:"2.6.2",webpack:"3.10.0"},"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 --project ./packages/uhk-agent/tsconfig.json","lint:ts:electron-renderer":"tslint --project ./packages/uhk-web/src/tsconfig.renderer.json","lint:ts:web":"tslint --project ./packages/uhk-web/src/tsconfig.app.json","lint:ts:test-serializer":"tslint --project ./packages/test-serializer/tsconfig.json","lint:ts:uhk-usb":"tslint --project ./packages/uhk-usb/tsconfig.json","lint:style":'stylelint "packages/uhk-agent/src/**/*.scss" "packages/uhk-web/src/**/*.scss" --syntax scss',prebuild:"check-node-version --package",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","electron:spe":"lerna exec --scope uhk-agent npm run electron:spe","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 && rimraf ./node_modules ./dist","predeploy-gh-pages":"run-s build:web","deploy-gh-pages":"gh-pages -d packages/uhk-web/dist"},dependencies:{}}},Oz3Z:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n("1Rl6");t.isScancodeExists=function(e){return o||function(){o=new Map;for(var e=0,t=i.SCANCODES;e<t.length;e++)for(var n=0,r=t[e].children;n<r.length;n++){var l=r[n];o.set(l.additional&&l.additional.scancode?l.additional.scancode:Number.parseInt(l.id),l)}}(),o.has(e)}},P3oE:function(e,t,n){"use strict";var o=n("Xajo");t.isNumeric=function(e){return!o.isArray(e)&&e-parseFloat(e)+1>=0}},PKvP:function(e,t,n){"use strict";var o=n("JkZN");t.from=o.FromObservable.create},PutI:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("cwzr");t.QueueAction=function(e){function t(t,n){e.call(this,t,n),this.scheduler=t,this.work=n}return o(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,o){return void 0===o&&(o=0),null!==o&&o>0||null===o&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,o):t.flush(this)},t}(i.AsyncAction)},PvYY:function(e,t,n){"use strict";var o=n("rCTf"),i=n("0gHg");o.Observable.prototype.publishReplay=i.publishReplay},Q3m9:function(e,t,n){"use strict";var o=n("xgwM").__extends,i=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l=n("CmJd"),s=n("ao60");t.ScrollMouseMacroAction=function(e){function t(t){var n=e.call(this)||this;return t?(n.x=t.x,n.y=t.y,n):n}return o(t,e),t.prototype.fromJsonObject=function(e){return this.assertMacroActionType(e),this.x=e.x,this.y=e.y,this},t.prototype.fromBinary=function(e){return this.readAndAssertMacroActionId(e),this.x=e.readInt16(),this.y=e.readInt16(),this},t.prototype.toJsonObject=function(){return{macroActionType:s.macroActionType.ScrollMouseMacroAction,x:this.x,y:this.y}},t.prototype.toBinary=function(e){e.writeUInt8(s.MacroActionId.ScrollMouseMacroAction),e.writeInt16(this.x),e.writeInt16(this.y)},t.prototype.toString=function(){return'<ScrollMouseMacroAction pos="('+this.x+","+this.y+')">'},t.prototype.getName=function(){return"ScrollMouseMacroAction"},i([l.assertInt16,r("design:type",Number)],t.prototype,"x",void 0),i([l.assertInt16,r("design:type",Number)],t.prototype,"y",void 0),t}(s.MacroAction)},QqRK:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS");t.InnerSubscriber=function(e){function t(t,n,o){e.call(this),this.parent=t,this.outerValue=n,this.outerIndex=o,this.index=0}return o(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(i.Subscriber)},R30b:function(e,t,n){"use strict";var o=n("xgwM").__decorate,i=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var r=n("CmJd"),l=n("jsdV");t.Macro=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 l.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 l.Helper.createMacroAction(e)}),this},e.prototype.fromBinary=function(e){this.isLooped=e.readBoolean(),this.isPrivate=e.readBoolean(),this.name=e.readString();var t=e.readCompactLength();this.macroActions=[];for(var n=0;n<t;++n)this.macroActions.push(l.Helper.createMacroAction(e));return this},e.prototype.toJsonObject=function(){return{isLooped:this.isLooped,isPrivate:this.isPrivate,name:this.name,macroActions:this.macroActions.map(function(e){return e.toJsonObject()})}},e.prototype.toBinary=function(e){e.writeBoolean(this.isLooped),e.writeBoolean(this.isPrivate),e.writeString(this.name),e.writeArray(this.macroActions)},e.prototype.toString=function(){return'<Macro id="'+this.id+'" name="'+this.name+'">'},o([r.assertUInt8,i("design:type",Number)],e.prototype,"id",void 0),e}()},RA5l:function(e,t,n){"use strict";var o=n("PutI"),i=n("C0+T");t.queue=new i.QueueScheduler(o.QueueAction)},RRVv:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("rCTf");t.ScalarObservable=function(e){function t(t,n){e.call(this),this.value=t,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return o(t,e),t.create=function(e,n){return new t(e,n)},t.dispatch=function(e){var t=e.value,n=e.subscriber;e.done?n.complete():(n.next(t),n.closed||(e.done=!0,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.value,o=this.scheduler;if(o)return o.schedule(t.dispatch,0,{done:!1,value:n,subscriber:e});e.next(n),e.closed||e.complete()},t}(i.Observable)},RU1a:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("wAkD"),r=n("CURp");t.takeUntil=function(e){return function(t){return t.lift(new l(e))}};var l=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.notifier))},e}(),s=function(e){function t(t,n){e.call(this,t),this.notifier=n,this.add(r.subscribeToResult(this,n))}return o(t,e),t.prototype.notifyNext=function(e,t,n,o,i){this.complete()},t.prototype.notifyComplete=function(){},t}(i.OuterSubscriber)},RZVO:function(e,t,n){(function(e,o){var i;!function(r,l){var s="object"==typeof e&&e&&e.exports==("object"==typeof t&&t)&&e,a="object"==typeof o&&o;a.global===a&&(r=a);var u=[],c={},d=0,p=c,f=30,h=r._,y=/&(?:amp|lt|gt|quot|#39);/g,m=/\b__p \+= '';/g,g=/\b(__p \+=) '' \+/g,v=/(__e\(.*?\)|\b__t\)) \+\n'';/g,b=/\w*$/,k=RegExp("^"+(c.valueOf+"").replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/valueOf|for [^\]]+/g,".+?")+"$"),_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,w=/<%=([\s\S]+?)%>/g,A=/($^)/,T=/[&<>"']/g,C=/['\n\r\t\u2028\u2029\\]/g,x=0,O=Math.ceil,S=u.concat,M=Math.floor,E=k.test(E=Object.getPrototypeOf)&&E,P=c.hasOwnProperty,I=u.push,R=c.toString,D=k.test(D=be.bind)&&D,N=k.test(N=Array.isArray)&&N,j=r.isFinite,L=r.isNaN,U=k.test(U=Object.keys)&&U,V=Math.max,F=Math.min,K=Math.random,B="[object Arguments]",H="[object Array]",W="[object Boolean]",q="[object Date]",z="[object Number]",$="[object Object]",G="[object RegExp]",Y="[object String]",Q=!!r.attachEvent,J=D&&!/\n|true/.test(D+Q),Z=D&&!J,X=U&&(Q||J),ee={"[object Function]":!1};ee[B]=ee[H]=ee[W]=ee[q]=ee[z]=ee[$]=ee[G]=ee[Y]=!0;var te={};te[H]=Array,te[W]=Boolean,te[q]=Date,te[$]=Object,te[z]=Number,te[G]=RegExp,te[Y]=String;var ne={boolean:!1,function:!0,object:!0,number:!1,string:!1,undefined:!1},oe={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"};function ie(e){return e&&"object"==typeof e&&e.__wrapped__?e:this instanceof ie?void(this.__wrapped__=e):new ie(e)}ie.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:w,variable:"",imports:{_:ie}};var re=function(e){var t="var index, iterable = "+e.firstArg+", result = iterable;\nif (!iterable) return result;\n"+e.top+";\n";return e.arrays&&(t+="var length = iterable.length; index = -1;\nif ("+e.arrays+") {\n while (++index < length) {\n "+e.loop+"\n }\n}\nelse { "),e.isKeysFast&&e.useHas?t+="\n var ownIndex = -1,\n ownProps = objectTypes[typeof iterable] ? nativeKeys(iterable) : [],\n length = ownProps.length;\n\n while (++ownIndex < length) {\n index = ownProps[ownIndex];\n "+e.loop+"\n } ":(t+="\n for (index in iterable) {",e.useHas&&(t+="\n if (",e.useHas&&(t+="hasOwnProperty.call(iterable, index)"),t+=") { "),t+=e.loop+"; ",e.useHas&&(t+="\n }"),t+="\n } "),e.arrays&&(t+="\n}"),t+(e.bottom+";\nreturn result")},le={args:"object, source, guard",top:"var args = arguments,\n argsIndex = 0,\n argsLength = typeof guard == 'number' ? 2 : args.length;\nwhile (++argsIndex < argsLength) {\n iterable = args[argsIndex];\n if (iterable && objectTypes[typeof iterable]) {",loop:"if (typeof result[index] == 'undefined') result[index] = iterable[index]",bottom:" }\n}"},se={args:"collection, callback, thisArg",top:"callback = callback && typeof thisArg == 'undefined' ? callback : createCallback(callback, thisArg)",arrays:"typeof length == 'number'",loop:"if (callback(iterable[index], index, collection) === false) return result"},ae={top:"if (!objectTypes[typeof iterable]) return result;\n"+se.top,arrays:!1};function ue(e,t,n){t||(t=0);var o=e.length,i=o-t>=(n||f);if(i)for(var r={},l=t-1;++l<o;){var s=e[l]+"";(P.call(r,s)?r[s]:r[s]=[]).push(e[l])}return function(n){if(i){var o=n+"";return P.call(r,o)&&et(r[o],n)>-1}return et(e,n,t)>-1}}function ce(e){return e.charCodeAt(0)}function de(e,t){var n=e.index,o=t.index;if((e=e.criteria)!==(t=t.criteria)){if(e>t||"undefined"==typeof e)return 1;if(e<t||"undefined"==typeof t)return-1}return n<o?-1:1}function pe(e,t,n,o){var i=Ne(e),r=!n,l=t;return r&&(n=t),i||(t=e),function s(){var a=arguments,u=r?this:t;if(i||(e=t[l]),n.length&&(a=a.length?(a=be(a),o?a.concat(n):n.concat(a)):n),this instanceof s){ve.prototype=e.prototype,u=new ve,ve.prototype=null;var c=e.apply(u,a);return je(c)?c:u}return e.apply(u,a)}}function fe(e,t,n){if(null==e)return lt;var o=typeof e;if("function"!=o){if("object"!=o)return function(t){return t[e]};var i=Ce(e);return function(t){for(var n=i.length,o=!1;n--&&(o=De(t[i[n]],e[i[n]],p)););return o}}return"undefined"!=typeof t?1===n?function(n){return e.call(t,n)}:2===n?function(n,o){return e.call(t,n,o)}:4===n?function(n,o,i,r){return e.call(t,n,o,i,r)}:function(n,o,i){return e.call(t,n,o,i)}:e}function he(){for(var e,t={isKeysFast:X,arrays:"isArray(iterable)",bottom:"",loop:"",top:"",useHas:!0},n=0;e=arguments[n];n++)for(var o in e)t[o]=e[o];var i=t.args;return t.firstArg=/^[^,]+/.exec(i)[0],Function("createCallback, hasOwnProperty, isArguments, isArray, isString, objectTypes, nativeKeys","return function("+i+") {\n"+re(t)+"\n}")(fe,P,_e,Te,Ve,ne,U)}var ye=he(se);function me(e){return"\\"+oe[e]}function ge(e){return Oe[e]}function ve(){}function be(e,t,n){t||(t=0),"undefined"==typeof n&&(n=e?e.length:0);for(var o=-1,i=n-t||0,r=Array(i<0?0:i);++o<i;)r[o]=e[t+o];return r}function ke(e){return Se[e]}function _e(e){return R.call(e)==B}var we=he(se,ae,{useHas:!1}),Ae=he(se,ae),Te=N||function(e){return e instanceof Array||R.call(e)==H},Ce=U?function(e){return je(e)?U(e):[]}:function(e){var t=[];return Ae(e,function(e,n){t.push(n)}),t};function xe(e){var t=!1;if(!e||"object"!=typeof e||_e(e))return t;var n=e.constructor;return!Ne(n)||n instanceof n?(we(e,function(e,n){t=n}),!1===t||P.call(e,t)):t}var Oe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Se=Re(Oe),Me=he(le,{top:le.top.replace(";",";\nif (argsLength > 3 && typeof args[argsLength - 2] == 'function') {\n var callback = createCallback(args[--argsLength - 1], args[argsLength--], 2);\n} else if (argsLength > 2 && typeof args[argsLength - 1] == 'function') {\n callback = args[--argsLength];\n}"),loop:"result[index] = callback ? callback(result[index], iterable[index]) : iterable[index]"});function Ee(e,t,n,o,i,r){var s=e;if("function"==typeof t&&(o=n,n=t,t=!1),"function"==typeof n){n="undefined"==typeof o?n:fe(n,o,1);var a="undefined"!=typeof(s=n(s));a||(s=e)}var u=je(s);if(u){var c=R.call(s);if(!ee[c])return s;var d=Te(s)}if(!u||!t)return u&&!a?d?be(s):Me({},s):s;var p=te[c];switch(c){case W:case q:return a?s:new p(+s);case z:case Y:return a?s:new p(s);case G:return a?s:p(s.source,b.exec(s))}i||(i=[]),r||(r=[]);for(var f=i.length;f--;)if(i[f]==e)return r[f];return a||(s=d?p(s.length):{},d&&(P.call(e,"index")&&(s.index=e.index),P.call(e,"input")&&(s.input=e.input))),i.push(e),r.push(s),(d?qe:Ae)(a?s:e,function(e,o){s[o]=Ee(e,t,n,l,i,r)}),s}var Pe=he(le);function Ie(e){var t=[];return we(e,function(e,n){Ne(e)&&t.push(n)}),t.sort()}function Re(e){for(var t=-1,n=Ce(e),o=n.length,i={};++t<o;){var r=n[t];i[e[r]]=r}return i}function De(e,t,n,o,i,r){var l=n===p;if(n&&!l){var s=(n="undefined"==typeof o?n:fe(n,o,2))(e,t);if("undefined"!=typeof s)return!!s}if(e===t)return 0!==e||1/e==1/t;var a=typeof e,u=typeof t;if(e==e&&(!e||"function"!=a&&"object"!=a)&&(!t||"function"!=u&&"object"!=u))return!1;if(null==e||null==t)return e===t;var c=R.call(e),d=R.call(t);if(c==B&&(c=$),d==B&&(d=$),c!=d)return!1;switch(c){case W:case q:return+e==+t;case z:return e!=+e?t!=+t:0==e?1/e==1/t:e==+t;case G:case Y:return e==t+""}var f=c==H;if(!f){if(e.__wrapped__||t.__wrapped__)return De(e.__wrapped__||e,t.__wrapped__||t,n,o,i,r);if(c!=$)return!1;var h=e.constructor,y=t.constructor;if(h!=y&&!(Ne(h)&&h instanceof h&&Ne(y)&&y instanceof y))return!1}i||(i=[]),r||(r=[]);for(var m=i.length;m--;)if(i[m]==e)return r[m]==t;var g=0;if(s=!0,i.push(e),r.push(t),f){if(m=e.length,!(s=(g=t.length)==e.length)&&!l)return s;for(;g--;){var v=m,b=t[g];if(l)for(;v--&&!(s=De(e[v],b,n,o,i,r)););else if(!(s=De(e[g],b,n,o,i,r)))break}return s}return we(t,function(t,l,a){if(P.call(a,l))return g++,s=P.call(e,l)&&De(e[l],t,n,o,i,r)}),s&&!l&&we(e,function(e,t,n){if(P.call(n,t))return s=--g>-1}),s}function Ne(e){return"function"==typeof e}function je(e){return!!e&&ne[typeof e]}function Le(e){return"number"==typeof e||R.call(e)==z}Ne(/x/)&&(Ne=function(e){return e instanceof Function||"[object Function]"==R.call(e)});var Ue=E?function(e){if(!e||"object"!=typeof e)return!1;var t=e.valueOf,n="function"==typeof t&&(n=E(t))&&E(n);return n?e==n||E(e)==n&&!_e(e):xe(e)}:xe;function Ve(e){return"string"==typeof e||R.call(e)==Y}function Fe(e){for(var t=-1,n=Ce(e),o=n.length,i=Array(o);++t<o;)i[t]=e[n[t]];return i}function Ke(e,t,n){var o=-1,i=e?e.length:0,r=!1;return n=(n<0?V(0,i+n):n)||0,"number"==typeof i?r=(Ve(e)?e.indexOf(t,n):et(e,t,n))>-1:ye(e,function(e){if(++o>=n)return!(r=e===t)}),r}function Be(e,t,n){var o=!0;if(t=fe(t,n),Te(e))for(var i=-1,r=e.length;++i<r&&(o=!!t(e[i],i,e)););else ye(e,function(e,n,i){return o=!!t(e,n,i)});return o}function He(e,t,n){var o=[];if(t=fe(t,n),Te(e))for(var i=-1,r=e.length;++i<r;){var l=e[i];t(l,i,e)&&o.push(l)}else ye(e,function(e,n,i){t(e,n,i)&&o.push(e)});return o}function We(e,t,n){var o;return t=fe(t,n),qe(e,function(e,n,i){if(t(e,n,i))return o=e,!1}),o}function qe(e,t,n){if(t&&"undefined"==typeof n&&Te(e))for(var o=-1,i=e.length;++o<i&&!1!==t(e[o],o,e););else ye(e,t,n);return e}function ze(e,t,n){var o=-1,i=e?e.length:0,r=Array("number"==typeof i?i:0);if(t=fe(t,n),Te(e))for(;++o<i;)r[o]=t(e[o],o,e);else ye(e,function(e,n,i){r[++o]=t(e,n,i)});return r}function $e(e,t,n){var o=-1/0,i=o;if(!t&&Te(e))for(var r=-1,l=e.length;++r<l;){var s=e[r];s>i&&(i=s)}else t=!t&&Ve(e)?ce:fe(t,n),ye(e,function(e,n,r){var l=t(e,n,r);l>o&&(o=l,i=e)});return i}var Ge=ze;function Ye(e,t,n,o){var i=arguments.length<3;if(t=fe(t,o,4),Te(e)){var r=-1,l=e.length;for(i&&(n=e[++r]);++r<l;)n=t(n,e[r],r,e)}else ye(e,function(e,o,r){n=i?(i=!1,e):t(n,e,o,r)});return n}function Qe(e,t,n,o){var i=e,r=e?e.length:0,l=arguments.length<3;if("number"!=typeof r){var s=Ce(e);r=s.length}return t=fe(t,o,4),qe(e,function(e,o,a){o=s?s[--r]:--r,n=l?(l=!1,i[o]):t(n,i[o],o,a)}),n}function Je(e,t,n){var o;if(t=fe(t,n),Te(e))for(var i=-1,r=e.length;++i<r&&!(o=t(e[i],i,e)););else ye(e,function(e,n,i){return!(o=t(e,n,i))});return!!o}var Ze=He;function Xe(e,t,n){if(e){var o=0,i=e.length;if("number"!=typeof t&&null!=t){var r=-1;for(t=fe(t,n);++r<i&&t(e[r],r,e);)o++}else if(null==(o=t)||n)return e[0];return be(e,0,F(V(0,o),i))}}function et(e,t,n){var o=-1,i=e?e.length:0;if("number"==typeof n)o=(n<0?V(0,i+n):n||0)-1;else if(n)return e[o=nt(e,t)]===t?o:-1;for(;++o<i;)if(e[o]===t)return o;return-1}function tt(e,t,n){if("number"!=typeof t&&null!=t){var o=0,i=-1,r=e?e.length:0;for(t=fe(t,n);++i<r&&t(e[i],i,e);)o++}else o=null==t||n?1:V(0,t);return be(e,o)}function nt(e,t,n,o){var i=0,r=e?e.length:i;for(t=(n=n?fe(n,o,1):lt)(t);i<r;){var l=i+r>>>1;n(e[l])<t?i=l+1:r=l}return i}function ot(e,t,n,o){var i=-1,r=e?e.length:0,l=[],s=l;"function"==typeof t&&(o=n,n=t,t=!1);var a=!t&&r>=75;if(a)var u={};for(n&&(s=[],n=fe(n,o));++i<r;){var c=e[i],d=n?n(c,i,e):c;if(a)var p=d+"",f=P.call(u,p)?!(s=u[p]):s=u[p]=[];(t?!i||s[s.length-1]!==d:f||et(s,d)<0)&&((n||a)&&s.push(d),l.push(c))}return l}function it(e,t){return Z||D&&arguments.length>2?D.call.apply(D,arguments):pe(e,t,be(arguments,2))}function rt(e){var t=be(arguments,1);return setTimeout(function(){e.apply(l,t)},1)}function lt(e){return e}function st(e){qe(Ie(e),function(t){var n=ie[t]=e[t];ie.prototype[t]=function(){var e=[this.__wrapped__];return I.apply(e,arguments),new ie(n.apply(ie,e))}})}function at(){return this.__wrapped__}J&&s&&"function"==typeof setImmediate&&(rt=it(setImmediate,r)),ie.after=function(e,t){return e<1?t():function(){if(--e<1)return t.apply(this,arguments)}},ie.assign=Me,ie.at=function(e){for(var t=-1,n=S.apply(u,be(arguments,1)),o=n.length,i=Array(o);++t<o;)i[t]=e[n[t]];return i},ie.bind=it,ie.bindAll=function(e){for(var t=S.apply(u,arguments),n=t.length>1?0:(t=Ie(e),-1),o=t.length;++n<o;){var i=t[n];e[i]=it(e[i],e)}return e},ie.bindKey=function(e,t){return pe(e,t,be(arguments,2))},ie.compact=function(e){for(var t=-1,n=e?e.length:0,o=[];++t<n;){var i=e[t];i&&o.push(i)}return o},ie.compose=function(){var e=arguments;return function(){for(var t=arguments,n=e.length;n--;)t=[e[n].apply(this,t)];return t[0]}},ie.countBy=function(e,t,n){var o={};return t=fe(t,n),qe(e,function(e,n,i){n=t(e,n,i)+"",P.call(o,n)?o[n]++:o[n]=1}),o},ie.debounce=function(e,t,n){var o,i,r,l;function s(){l=null,n||(i=e.apply(r,o))}return function(){var a=n&&!l;return o=arguments,r=this,clearTimeout(l),l=setTimeout(s,t),a&&(i=e.apply(r,o)),i}},ie.defaults=Pe,ie.defer=rt,ie.delay=function(e,t){var n=be(arguments,2);return setTimeout(function(){e.apply(l,n)},t)},ie.difference=function(e){for(var t=-1,n=e?e.length:0,o=ue(S.apply(u,arguments),n),i=[];++t<n;){var r=e[t];o(r)||i.push(r)}return i},ie.filter=He,ie.flatten=function e(t,n){for(var o=-1,i=t?t.length:0,r=[];++o<i;){var l=t[o];Te(l)?I.apply(r,n?l:e(l)):r.push(l)}return r},ie.forEach=qe,ie.forIn=we,ie.forOwn=Ae,ie.functions=Ie,ie.groupBy=function(e,t,n){var o={};return t=fe(t,n),qe(e,function(e,n,i){n=t(e,n,i)+"",(P.call(o,n)?o[n]:o[n]=[]).push(e)}),o},ie.initial=function(e,t,n){if(!e)return[];var o=0,i=e.length;if("number"!=typeof t&&null!=t){var r=i;for(t=fe(t,n);r--&&t(e[r],r,e);)o++}else o=null==t||n?1:t||o;return be(e,0,F(V(0,i-o),i))},ie.intersection=function(e){var t=arguments,n=t.length,o={0:{}},i=-1,r=e?e.length:0,l=r>=100,s=[],a=s;e:for(;++i<r;){var u=e[i];if(l)var c=u+"",d=P.call(o[0],c)?!(a=o[0][c]):a=o[0][c]=[];if(d||et(a,u)<0){l&&a.push(u);for(var p=n;--p;)if(!(o[p]||(o[p]=ue(t[p],0,100)))(u))continue e;s.push(u)}}return s},ie.invert=Re,ie.invoke=function(e,t){var n=be(arguments,2),o=-1,i="function"==typeof t,r=e?e.length:0,l=Array("number"==typeof r?r:0);return qe(e,function(e){l[++o]=(i?t:e[t]).apply(e,n)}),l},ie.keys=Ce,ie.map=ze,ie.max=$e,ie.memoize=function(e,t){var n={};return function(){var o=(t?t.apply(this,arguments):arguments[0])+"";return P.call(n,o)?n[o]:n[o]=e.apply(this,arguments)}},ie.merge=function e(t,n,o){var i=arguments,r=0,l=2;if(!je(t))return t;if(o===p)var s=i[3],a=i[4],u=i[5];else a=[],u=[],"number"!=typeof o&&(l=i.length),l>3&&"function"==typeof i[l-2]?s=fe(i[--l-1],i[l--],2):l>2&&"function"==typeof i[l-1]&&(s=i[--l]);for(;++r<l;)(Te(i[r])?qe:Ae)(i[r],function(n,o){var i,r,l=n,c=t[o];if(n&&((r=Te(n))||Ue(n))){for(var d=a.length;d--;)if(i=a[d]==n){c=u[d];break}i||(c=r?Te(c)?c:[]:Ue(c)?c:{},s&&"undefined"!=typeof(l=s(c,n))&&(c=l),a.push(n),u.push(c),s||(c=e(c,n,p,s,a,u)))}else s&&"undefined"==typeof(l=s(c,n))&&(l=n),"undefined"!=typeof l&&(c=l);t[o]=c});return t},ie.min=function(e,t,n){var o=1/0,i=o;if(!t&&Te(e))for(var r=-1,l=e.length;++r<l;){var s=e[r];s<i&&(i=s)}else t=!t&&Ve(e)?ce:fe(t,n),ye(e,function(e,n,r){var l=t(e,n,r);l<o&&(o=l,i=e)});return i},ie.object=function(e,t){for(var n=-1,o=e?e.length:0,i={};++n<o;){var r=e[n];t?i[r]=t[n]:i[r[0]]=r[1]}return i},ie.omit=function(e,t,n){var o="function"==typeof t,i={};if(o)t=fe(t,n);else var r=S.apply(u,arguments);return we(e,function(e,n,l){(o?!t(e,n,l):et(r,n,1)<0)&&(i[n]=e)}),i},ie.once=function(e){var t,n;return function(){return t?n:(t=!0,n=e.apply(this,arguments),e=null,n)}},ie.pairs=function(e){for(var t=-1,n=Ce(e),o=n.length,i=Array(o);++t<o;){var r=n[t];i[t]=[r,e[r]]}return i},ie.partial=function(e){return pe(e,be(arguments,1))},ie.partialRight=function(e){return pe(e,be(arguments,1),null,p)},ie.pick=function(e,t,n){var o={};if("function"!=typeof t)for(var i=0,r=S.apply(u,arguments),l=je(e)?r.length:0;++i<l;){var s=r[i];s in e&&(o[s]=e[s])}else t=fe(t,n),we(e,function(e,n,i){t(e,n,i)&&(o[n]=e)});return o},ie.pluck=Ge,ie.range=function(e,t,n){e=+e||0,n=+n||1,null==t&&(t=e,e=0);for(var o=-1,i=V(0,O((t-e)/n)),r=Array(i);++o<i;)r[o]=e,e+=n;return r},ie.reject=function(e,t,n){return t=fe(t,n),He(e,function(e,n,o){return!t(e,n,o)})},ie.rest=tt,ie.shuffle=function(e){var t=-1,n=e?e.length:0,o=Array("number"==typeof n?n:0);return qe(e,function(e){var n=M(K()*(++t+1));o[t]=o[n],o[n]=e}),o},ie.sortBy=function(e,t,n){var o=-1,i=e?e.length:0,r=Array("number"==typeof i?i:0);for(t=fe(t,n),qe(e,function(e,n,i){r[++o]={criteria:t(e,n,i),index:o,value:e}}),i=r.length,r.sort(de);i--;)r[i]=r[i].value;return r},ie.tap=function(e,t){return t(e),e},ie.throttle=function(e,t){var n,o,i,r,l=0;function s(){l=new Date,r=null,o=e.apply(i,n)}return function(){var a=new Date,u=t-(a-l);return n=arguments,i=this,u<=0?(clearTimeout(r),r=null,l=a,o=e.apply(i,n)):r||(r=setTimeout(s,u)),o}},ie.times=function(e,t,n){e=+e||0;for(var o=-1,i=Array(e);++o<e;)i[o]=t.call(n,o);return i},ie.toArray=function(e){return e&&"number"==typeof e.length?be(e):Fe(e)},ie.union=function(){return ot(S.apply(u,arguments))},ie.uniq=ot,ie.values=Fe,ie.where=Ze,ie.without=function(e){for(var t=-1,n=e?e.length:0,o=ue(arguments,1),i=[];++t<n;){var r=e[t];o(r)||i.push(r)}return i},ie.wrap=function(e,t){return function(){var n=[e];return I.apply(n,arguments),t.apply(this,n)}},ie.zip=function(e){for(var t=-1,n=e?$e(Ge(arguments,"length")):0,o=Array(n);++t<n;)o[t]=Ge(arguments,t);return o},ie.collect=ze,ie.drop=tt,ie.each=qe,ie.extend=Me,ie.methods=Ie,ie.select=He,ie.tail=tt,ie.unique=ot,st(ie),ie.clone=Ee,ie.cloneDeep=function(e,t,n){return Ee(e,!0,t,n)},ie.contains=Ke,ie.escape=function(e){return null==e?"":(e+"").replace(T,ge)},ie.every=Be,ie.find=We,ie.has=function(e,t){return!!e&&P.call(e,t)},ie.identity=lt,ie.indexOf=et,ie.isArguments=_e,ie.isArray=Te,ie.isBoolean=function(e){return!0===e||!1===e||R.call(e)==W},ie.isDate=function(e){return e instanceof Date||R.call(e)==q},ie.isElement=function(e){return!!e&&1===e.nodeType},ie.isEmpty=function(e){var t=!0;if(!e)return t;var n=R.call(e),o=e.length;return n==H||n==Y||n==B||n==$&&"number"==typeof o&&Ne(e.splice)?!o:(Ae(e,function(){return t=!1}),t)},ie.isEqual=De,ie.isFinite=function(e){return j(e)&&!L(parseFloat(e))},ie.isFunction=Ne,ie.isNaN=function(e){return Le(e)&&e!=+e},ie.isNull=function(e){return null===e},ie.isNumber=Le,ie.isObject=je,ie.isPlainObject=Ue,ie.isRegExp=function(e){return e instanceof RegExp||R.call(e)==G},ie.isString=Ve,ie.isUndefined=function(e){return"undefined"==typeof e},ie.lastIndexOf=function(e,t,n){var o=e?e.length:0;for("number"==typeof n&&(o=(n<0?V(0,o+n):F(n,o-1))+1);o--;)if(e[o]===t)return o;return-1},ie.mixin=st,ie.noConflict=function(){return r._=h,this},ie.random=function(e,t){return null==e&&null==t&&(t=1),e=+e||0,null==t&&(t=e,e=0),e+M(K()*((+t||0)-e+1))},ie.reduce=Ye,ie.reduceRight=Qe,ie.result=function(e,t){var n=e?e[t]:l;return Ne(n)?e[t]():n},ie.size=function(e){var t=e?e.length:0;return"number"==typeof t?t:Ce(e).length},ie.some=Je,ie.sortedIndex=nt,ie.template=function(e,t,n){var o=ie.templateSettings;e||(e=""),n=Pe({},n,o);var i,r=Pe({},n.imports,o.imports),s=Ce(r),a=Fe(r),u=0,c=n.interpolate||A,d="__p += '",p=RegExp((n.escape||A).source+"|"+c.source+"|"+(c===w?_:A).source+"|"+(n.evaluate||A).source+"|$","g");e.replace(p,function(t,n,o,r,l,s){return o||(o=r),d+=e.slice(u,s).replace(C,me),n&&(d+="' +\n__e("+n+") +\n'"),l&&(i=!0,d+="';\n"+l+";\n__p += '"),o&&(d+="' +\n((__t = ("+o+")) == null ? '' : __t) +\n'"),u=s+t.length,t}),d+="';\n";var f=n.variable,h=f;h||(d="with ("+(f="obj")+") {\n"+d+"\n}\n"),d=(i?d.replace(m,""):d).replace(g,"$1").replace(v,"$1;"),d="function("+f+") {\n"+(h?"":f+" || ("+f+" = {});\n")+"var __t, __p = '', __e = _.escape"+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var y="\n/*\n//@ sourceURL="+(n.sourceURL||"/lodash/template/source["+x+++"]")+"\n*/";try{var b=Function(s,"return "+d+y).apply(l,a)}catch(e){throw e.source=d,e}return t?b(t):(b.source=d,b)},ie.unescape=function(e){return null==e?"":(e+"").replace(y,ke)},ie.uniqueId=function(e){var t=++d;return(null==e?"":e+"")+t},ie.all=Be,ie.any=Je,ie.detect=We,ie.foldl=Ye,ie.foldr=Qe,ie.include=Ke,ie.inject=Ye,Ae(ie,function(e,t){ie.prototype[t]||(ie.prototype[t]=function(){var t=[this.__wrapped__];return I.apply(t,arguments),e.apply(ie,t)})}),ie.first=Xe,ie.last=function(e,t,n){if(e){var o=0,i=e.length;if("number"!=typeof t&&null!=t){var r=i;for(t=fe(t,n);r--&&t(e[r],r,e);)o++}else if(null==(o=t)||n)return e[i-1];return be(e,V(0,i-o))}},ie.take=Xe,ie.head=Xe,Ae(ie,function(e,t){ie.prototype[t]||(ie.prototype[t]=function(t,n){var o=e(this.__wrapped__,t,n);return null==t||n&&"function"!=typeof t?o:new ie(o)})}),ie.VERSION="1.0.2",ie.prototype.toString=function(){return this.__wrapped__+""},ie.prototype.value=at,ie.prototype.valueOf=at,ye(["join","pop","shift"],function(e){var t=u[e];ie.prototype[e]=function(){return t.apply(this.__wrapped__,arguments)}}),ye(["push","reverse","sort","unshift"],function(e){var t=u[e];ie.prototype[e]=function(){return t.apply(this.__wrapped__,arguments),this}}),ye(["concat","slice","splice"],function(e){var t=u[e];ie.prototype[e]=function(){return new ie(t.apply(this.__wrapped__,arguments))}}),r._=ie,(i=(function(){return ie}).call(t,n,t,e))===l||(e.exports=i)}(this)}).call(t,n("XOs/")(e),n("srjU"))},Rewd:function(e,t,n){"use strict";var o=n("D2Nv");t._do=function(e,t,n){return o.tap(e,t,n)(this)}},SCJi:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.AGENT_GITHUB_URL="https://github.com/UltimateHackingKeyboard/agent",e.FIRMWARE_GITHUB_ISSUE_URL="https://github.com/UltimateHackingKeyboard/agent/issues/new"}(t.Constants||(t.Constants={}))},SKH6:function(e,t,n){"use strict";t.isFunction=function(e){return"function"==typeof e}},SkWt:function(e,t,n){"use strict";var o=n("xgwM").__extends,i=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l=n("CmJd"),s=n("ao60");t.DelayMacroAction=function(e){function t(t){var n=e.call(this)||this;return t?(n.delay=t.delay,n):n}return o(t,e),t.prototype.fromJsonObject=function(e){return this.assertMacroActionType(e),this.delay=e.delay,this},t.prototype.fromBinary=function(e){return this.readAndAssertMacroActionId(e),this.delay=e.readUInt16(),this},t.prototype.toJsonObject=function(){return{macroActionType:s.macroActionType.DelayMacroAction,delay:this.delay}},t.prototype.toBinary=function(e){e.writeUInt8(s.MacroActionId.DelayMacroAction),e.writeUInt16(this.delay)},t.prototype.toString=function(){return'<DelayMacroAction delay="'+this.delay+'">'},t.prototype.getName=function(){return"DelayMacroAction"},i([l.assertUInt16,r("design:type",Number)],t.prototype,"delay",void 0),t}(s.MacroAction)},TToO:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__extends=function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},n.d(t,"__assign",function(){return i}),t.__rest=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&(n[o[i]]=e[o[i]])}return n},t.__decorate=function(e,t,n,o){var i,r=arguments.length,l=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(l=(r<3?i(l):r>3?i(t,n,l):i(t,n))||l);return r>3&&l&&Object.defineProperty(t,n,l),l},t.__param=function(e,t){return function(n,o){t(n,o,e)}},t.__metadata=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},t.__awaiter=function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function l(e){try{a(o.next(e))}catch(e){r(e)}}function s(e){try{a(o.throw(e))}catch(e){r(e)}}function a(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(l,s)}a((o=o.apply(e,t||[])).next())})},t.__generator=function(e,t){var n,o,i,r,l={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,o&&(i=o[2&r[0]?"return":r[0]?"throw":"next"])&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[0,i.value]),r[0]){case 0:case 1:i=r;break;case 4:return l.label++,{value:r[1],done:!1};case 5:l.label++,o=r[1],r=[0];continue;case 7:r=l.ops.pop(),l.trys.pop();continue;default:if(!(i=(i=l.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){l=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){l.label=r[1];break}if(6===r[0]&&l.label<i[1]){l.label=i[1],i=r;break}if(i&&l.label<i[2]){l.label=i[2],l.ops.push(r);break}i[2]&&l.ops.pop(),l.trys.pop();continue}r=t.call(e,l)}catch(e){r=[6,e],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}},t.__exportStar=function(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])},t.__values=r,t.__read=l,t.__spread=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e},t.__await=s,t.__asyncGenerator=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=n.apply(e,t||[]),r=[];return o={},l("next"),l("throw"),l("return"),o[Symbol.asyncIterator]=function(){return this},o;function l(e){i[e]&&(o[e]=function(t){return new Promise(function(n,o){r.push([e,t,n,o])>1||a(e,t)})})}function a(e,t){try{(n=i[e](t)).value instanceof s?Promise.resolve(n.value.v).then(u,c):d(r[0][2],n)}catch(e){d(r[0][3],e)}var n}function u(e){a("next",e)}function c(e){a("throw",e)}function d(e,t){e(t),r.shift(),r.length&&a(r[0][0],r[0][1])}},t.__asyncDelegator=function(e){var t,n;return t={},o("next"),o("throw",function(e){throw e}),o("return"),t[Symbol.iterator]=function(){return this},t;function o(o,i){e[o]&&(t[o]=function(t){return(n=!n)?{value:s(e[o](t)),done:"return"===o}:i?i(t):t})}},t.__asyncValues=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator];return t?t.call(e):"function"==typeof r?r(e):e[Symbol.iterator]()},t.__makeTemplateObject=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},t.__importStar=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},t.__importDefault=function(e){return e&&e.__esModule?e:{default:e}};var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};function r(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)l.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return l}function s(e){return this instanceof s?(this.v=e,this):new s(e)}},TfWX:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("EEr4"),r=n("IZVw");t.BehaviorSubject=function(e){function t(t){e.call(this),this._value=t}return o(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new r.ObjectUnsubscribedError;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(i.Subject)},TyHZ:function(e,t){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]}]}]}},U15Z:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("VOfZ"),r=n("rCTf"),l=n("cdmN");t.IteratorObservable=function(e){function t(t,n){if(e.call(this),this.scheduler=n,null==t)throw new Error("iterator cannot be null.");this.iterator=function(e){var t=e[l.iterator];if(!t&&"string"==typeof e)return new s(e);if(!t&&void 0!==e.length)return new a(e);if(!t)throw new TypeError("object is not iterable");return e[l.iterator]()}(t)}return o(t,e),t.create=function(e,n){return new t(e,n)},t.dispatch=function(e){var t=e.index,n=e.iterator,o=e.subscriber;if(e.hasError)o.error(e.error);else{var i=n.next();i.done?o.complete():(o.next(i.value),e.index=t+1,o.closed?"function"==typeof n.return&&n.return():this.schedule(e))}},t.prototype._subscribe=function(e){var n=this.iterator,o=this.scheduler;if(o)return o.schedule(t.dispatch,0,{index:0,iterator:n,subscriber:e});for(;;){var i=n.next();if(i.done){e.complete();break}if(e.next(i.value),e.closed){"function"==typeof n.return&&n.return();break}}},t}(r.Observable);var s=function(){function e(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length),this.str=e,this.idx=t,this.len=n}return e.prototype[l.iterator]=function(){return this},e.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},e}(),a=function(){function e(e,t,n){void 0===t&&(t=0),void 0===n&&(n=function(t){var n,o,r=+e.length;return isNaN(r)?0:0!==r&&"number"==typeof(n=r)&&i.root.isFinite(n)?(r=(0==(o=+r)?o:isNaN(o)?o:o<0?-1:1)*Math.floor(Math.abs(r)))<=0?0:r>u?u:r:r}()),this.arr=e,this.idx=t,this.len=n}return e.prototype[l.iterator]=function(){return this},e.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},e}(),u=Math.pow(2,53)-1},U9ky:function(e,t,n){"use strict";var o=n("y4xv");t.pluck=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return o.pluck.apply(void 0,e)(this)}},UYy0:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS");t.scan=function(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(o){return o.lift(new r(e,t,n))}};var r=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.accumulator,this.seed,this.hasSeed))},e}(),l=function(e){function t(t,n,o,i){e.call(this,t),this.accumulator=n,this._seed=o,this.hasSeed=i,this.index=0}return o(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},t}(i.Subscriber)},Uqr9:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS");t.pairwise=function(){return function(e){return e.lift(new r)}};var r=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new l(e))},e}(),l=function(e){function t(t){e.call(this,t),this.hasPrev=!1}return o(t,e),t.prototype._next=function(e){this.hasPrev?this.destination.next([this.prev,e]):this.hasPrev=!0,this.prev=e},t}(i.Subscriber)},UwVZ:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS"),r=n("8Z8y"),l=n("jBEF");t.takeLast=function(e){return function(t){return 0===e?new l.EmptyObservable:t.lift(new s(e))}};var s=function(){function e(e){if(this.total=e,this.total<0)throw new r.ArgumentOutOfRangeError}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.total))},e}(),a=function(e){function t(t,n){e.call(this,t),this.total=n,this.ring=new Array,this.count=0}return o(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,o=this.count++;t.length<n?t.push(e):t[o%n]=e},t.prototype._complete=function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,o=this.ring,i=0;i<n;i++){var r=t++%n;e.next(o[r])}e.complete()},t}(i.Subscriber)},VEfc:function(e,t,n){"use strict";var o=n("sAZ4");t.switchMap=function(e,t){return o.switchMap(e,t)(this)}},VMHN:function(e,t){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]}]}]}},VOfZ:function(e,t,n){"use strict";(function(e){var n="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=n||"undefined"!=typeof e&&e||o;t.root=i,function(){if(!i)throw new Error("RxJS could not find any global context (window, self, global)")}()}).call(t,n("srjU"))},W1wB:function(e,t,n){"use strict";var o=n("xgwM").__decorate,i=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var r=n("CmJd"),l=n("H5FS"),s=n("3uOy"),a=n("R30b"),u=n("/8Ia"),c=n("pxzT");t.UserConfiguration=function(){function e(){this.moduleConfigurations=[],this.keymaps=[],this.macros=[],this.setDefaultDeviceName()}return e.prototype.fromJsonObject=function(e){var t=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 u.ModuleConfiguration).fromJsonObject(e)}),this.macros=e.macros.map(function(e,t){var n=(new a.Macro).fromJsonObject(e);return n.id=t,n}),this.keymaps=e.keymaps.map(function(e){return(new s.Keymap).fromJsonObject(e,t.macros)}),this.recalculateConfigurationLength(),this},e.prototype.fromBinary=function(e){var t=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 u.ModuleConfiguration).fromBinary(e)}),this.macros=e.readArray(function(e,t){var n=(new a.Macro).fromBinary(e);return n.id=t,n}),this.keymaps=e.readArray(function(e){return(new s.Keymap).fromBinary(e,t.macros)}),c.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(t){return t.toJsonObject(e.macros)}),macros:this.macros.map(function(e){return e.toJsonObject()})}},e.prototype.toBinary=function(e){var t=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,n){n.toBinary(e,t)})},e.prototype.toString=function(){return'<UserConfiguration userConfigVersion="'+this.userConfigMajorVersion+". "+this.userConfigMinorVersion+"."+this.userConfigPatchVersion+'">'},e.prototype.getKeymap=function(e){return this.keymaps.find(function(t){return e===t.abbreviation})},e.prototype.getMacro=function(e){return this.macros.find(function(t){return e===t.id})},e.prototype.recalculateConfigurationLength=function(){var e=new l.UhkBuffer;this.toBinary(e),this.userConfigurationLength=e.offset},e.prototype.setDefaultDeviceName=function(){this.deviceName&&0!==this.deviceName.trim().length||(this.deviceName="My UHK")},o([r.assertUInt16,i("design:type",Number)],e.prototype,"userConfigMajorVersion",void 0),o([r.assertUInt16,i("design:type",Number)],e.prototype,"userConfigMinorVersion",void 0),o([r.assertUInt16,i("design:type",Number)],e.prototype,"userConfigPatchVersion",void 0),o([r.assertUInt16,i("design:type",Number)],e.prototype,"userConfigurationLength",void 0),o([r.assertUInt16,i("design:type",Number)],e.prototype,"doubleTapSwitchLayerTimeout",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"iconsAndLayerTextsBrightness",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"alphanumericSegmentsBrightness",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"keyBacklightBrightness",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"mouseMoveInitialSpeed",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"mouseMoveAcceleration",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"mouseMoveDeceleratedSpeed",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"mouseMoveBaseSpeed",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"mouseMoveAcceleratedSpeed",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"mouseScrollInitialSpeed",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"mouseScrollAcceleration",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"mouseScrollDeceleratedSpeed",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"mouseScrollBaseSpeed",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"mouseScrollAcceleratedSpeed",void 0),e}()},W2nU:function(e,t){var n,o,i=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(e){n=r}try{o="function"==typeof clearTimeout?clearTimeout:l}catch(e){o=l}}();var a,u=[],c=!1,d=-1;function p(){c&&a&&(c=!1,a.length?u=a.concat(u):d=-1,u.length&&f())}function f(){if(!c){var e=s(p);c=!0;for(var t=u.length;t;){for(a=u,u=[];++d<t;)a&&a[d].run();d=-1,t=u.length}a=null,c=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===l||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function y(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},WDPM:function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0});var i=n("bBHq");t.IpcEvents=i.IpcEvents,o(n("sKfG")),o(n("SCJi")),o(n("7RCQ")),o(n("KMB7")),t.camelCaseToSentence=function(e){return e.replace(/^[a-z]|[A-Z]/g,function(e,t){return 0===t?e.toUpperCase():" "+e.toLowerCase()})},t.capitalizeFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)};var r={};t.type=function(e){if(r[e])throw new Error('Action type "'+e+'" is not unique"');return r[e]=!0,e},t.runInElectron=function(){return window&&window.process&&window.process.type}},"WP8/":function(e,t,n){"use strict";var o,i;!function(e){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",e.EditDescriptionAction=function(t){this.payload=t,this.type=e.EDIT_DESCRIPTION},e.loadKeymaps=function(){return{type:e.LOAD_KEYMAPS}},e.loadKeymapsSuccess=function(t){return{type:e.LOAD_KEYMAPS_SUCCESS,payload:t}},e.addKeymap=function(t){return{type:e.ADD,payload:t}},e.setDefault=function(t){return{type:e.SET_DEFAULT,payload:t}},e.removeKeymap=function(t){return{type:e.REMOVE,payload:t}},e.duplicateKeymap=function(t){return{type:e.DUPLICATE,payload:t}},e.editKeymapName=function(t,n){return{type:e.EDIT_NAME,payload:{abbr:t,name:n}}},e.editKeymapAbbr=function(t,n,o){return{type:e.EDIT_ABBR,payload:{name:t,abbr:n,newAbbr:o}}},e.saveKey=function(t,n,o,i,r){return{type:e.SAVE_KEY,payload:{keymap:t,layer:n,module:o,key:i,keyAction:r}}},e.checkMacro=function(t){return{type:e.CHECK_MACRO,payload:t}}}(o||(o={})),function(e){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=function(){return{type:e.ADD}},e.removeMacro=function(t){return{type:e.REMOVE,payload:t}},e.duplicateMacro=function(t){return{type:e.DUPLICATE,payload:t}},e.editMacroName=function(t,n){return{type:e.EDIT_NAME,payload:{id:t,name:n}}},e.addMacroAction=function(t,n){return{type:e.ADD_ACTION,payload:{id:t,action:n}}},e.saveMacroAction=function(t,n,o){return{type:e.SAVE_ACTION,payload:{id:t,index:n,action:o}}},e.deleteMacroAction=function(t,n,o){return{type:e.DELETE_ACTION,payload:{id:t,index:n,action:o}}},e.reorderMacroAction=function(t,n,o){return{type:e.REORDER_ACTION,payload:{id:t,oldIndex:n,newIndex:o}}}}(i||(i={})),n.d(t,"a",function(){return o}),n.d(t,"b",function(){return i})},WT6e:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(function(e){n.d(t,"createPlatform",function(){return an}),n.d(t,"assertPlatform",function(){return cn}),n.d(t,"destroyPlatform",function(){return dn}),n.d(t,"getPlatform",function(){return pn}),n.d(t,"PlatformRef",function(){return fn}),n.d(t,"ApplicationRef",function(){return yn}),n.d(t,"enableProdMode",function(){return rn}),n.d(t,"isDevMode",function(){return ln}),n.d(t,"createPlatformFactory",function(){return un}),n.d(t,"NgProbeToken",function(){return sn}),n.d(t,"APP_ID",function(){return rt}),n.d(t,"PACKAGE_ROOT_URL",function(){return pt}),n.d(t,"PLATFORM_INITIALIZER",function(){return ut}),n.d(t,"PLATFORM_ID",function(){return ct}),n.d(t,"APP_BOOTSTRAP_LISTENER",function(){return dt}),n.d(t,"APP_INITIALIZER",function(){return ot}),n.d(t,"ApplicationInitStatus",function(){return it}),n.d(t,"DebugElement",function(){return Fn}),n.d(t,"DebugNode",function(){return Vn}),n.d(t,"asNativeElements",function(){return Kn}),n.d(t,"getDebugNode",function(){return qn}),n.d(t,"Testability",function(){return Qt}),n.d(t,"TestabilityRegistry",function(){return Jt}),n.d(t,"setTestabilityGetter",function(){return Zt}),n.d(t,"TRANSLATIONS",function(){return mo}),n.d(t,"TRANSLATIONS_FORMAT",function(){return go}),n.d(t,"LOCALE_ID",function(){return yo}),n.d(t,"MissingTranslationStrategy",function(){return vo}),n.d(t,"ApplicationModule",function(){return wo}),n.d(t,"wtfCreateScope",function(){return Ut}),n.d(t,"wtfLeave",function(){return Vt}),n.d(t,"wtfStartTimeRange",function(){return Ft}),n.d(t,"wtfEndTimeRange",function(){return Kt}),n.d(t,"Type",function(){return De}),n.d(t,"EventEmitter",function(){return Bt}),n.d(t,"ErrorHandler",function(){return Oe}),n.d(t,"Sanitizer",function(){return To}),n.d(t,"SecurityContext",function(){return Ao}),n.d(t,"ANALYZE_FOR_ENTRY_COMPONENTS",function(){return g}),n.d(t,"Attribute",function(){return v}),n.d(t,"ContentChild",function(){return _}),n.d(t,"ContentChildren",function(){return k}),n.d(t,"Query",function(){return b}),n.d(t,"ViewChild",function(){return A}),n.d(t,"ViewChildren",function(){return w}),n.d(t,"Component",function(){return S}),n.d(t,"Directive",function(){return O}),n.d(t,"HostBinding",function(){return I}),n.d(t,"HostListener",function(){return R}),n.d(t,"Input",function(){return E}),n.d(t,"Output",function(){return P}),n.d(t,"Pipe",function(){return M}),n.d(t,"CUSTOM_ELEMENTS_SCHEMA",function(){return D}),n.d(t,"NO_ERRORS_SCHEMA",function(){return N}),n.d(t,"NgModule",function(){return j}),n.d(t,"ViewEncapsulation",function(){return L}),n.d(t,"Version",function(){return U}),n.d(t,"VERSION",function(){return V}),n.d(t,"forwardRef",function(){return te}),n.d(t,"resolveForwardRef",function(){return ne}),n.d(t,"Injector",function(){return se}),n.d(t,"ReflectiveInjector",function(){return Xe}),n.d(t,"ResolvedReflectiveFactory",function(){return ze}),n.d(t,"ReflectiveKey",function(){return Ie}),n.d(t,"InjectionToken",function(){return u}),n.d(t,"Inject",function(){return F}),n.d(t,"Optional",function(){return K}),n.d(t,"Injectable",function(){return B}),n.d(t,"Self",function(){return H}),n.d(t,"SkipSelf",function(){return W}),n.d(t,"Host",function(){return q}),n.d(t,"NgZone",function(){return Ht}),n.d(t,"RenderComponentType",function(){return gn}),n.d(t,"Renderer",function(){return bn}),n.d(t,"Renderer2",function(){return An}),n.d(t,"RendererFactory2",function(){return _n}),n.d(t,"RendererStyleFlags2",function(){return wn}),n.d(t,"RootRenderer",function(){return kn}),n.d(t,"COMPILER_OPTIONS",function(){return gt}),n.d(t,"Compiler",function(){return mt}),n.d(t,"CompilerFactory",function(){return vt}),n.d(t,"ModuleWithComponentFactories",function(){return ht}),n.d(t,"ComponentFactory",function(){return kt}),n.d(t,"ComponentRef",function(){return bt}),n.d(t,"ComponentFactoryResolver",function(){return xt}),n.d(t,"ElementRef",function(){return Tn}),n.d(t,"NgModuleFactory",function(){return Et}),n.d(t,"NgModuleRef",function(){return Mt}),n.d(t,"NgModuleFactoryLoader",function(){return Cn}),n.d(t,"getModuleFactory",function(){return Sn}),n.d(t,"QueryList",function(){return Mn}),n.d(t,"SystemJsNgModuleLoader",function(){return In}),n.d(t,"SystemJsNgModuleLoaderConfig",function(){return En}),n.d(t,"TemplateRef",function(){return Dn}),n.d(t,"ViewContainerRef",function(){return Nn}),n.d(t,"EmbeddedViewRef",function(){return Un}),n.d(t,"ViewRef",function(){return Ln}),n.d(t,"ChangeDetectionStrategy",function(){return T}),n.d(t,"ChangeDetectorRef",function(){return jn}),n.d(t,"DefaultIterableDiffer",function(){return eo}),n.d(t,"IterableDiffers",function(){return ao}),n.d(t,"KeyValueDiffers",function(){return uo}),n.d(t,"SimpleChange",function(){return Yn}),n.d(t,"WrappedValue",function(){return Gn}),n.d(t,"platformCore",function(){return ho}),n.d(t,"\u0275ALLOW_MULTIPLE_PLATFORMS",function(){return on}),n.d(t,"\u0275APP_ID_RANDOM_PROVIDER",function(){return st}),n.d(t,"\u0275devModeEqual",function(){return $n}),n.d(t,"\u0275isListLikeIterable",function(){return Qn}),n.d(t,"\u0275ChangeDetectorStatus",function(){return C}),n.d(t,"\u0275isDefaultChangeDetectionStrategy",function(){return x}),n.d(t,"\u0275Console",function(){return ft}),n.d(t,"\u0275ComponentFactory",function(){return kt}),n.d(t,"\u0275CodegenComponentFactoryResolver",function(){return Ot}),n.d(t,"\u0275ReflectionCapabilities",function(){return Ve}),n.d(t,"\u0275RenderDebugInfo",function(){return vn}),n.d(t,"\u0275global",function(){return G}),n.d(t,"\u0275looseIdentical",function(){return X}),n.d(t,"\u0275stringify",function(){return ee}),n.d(t,"\u0275makeDecorator",function(){return f}),n.d(t,"\u0275isObservable",function(){return nt}),n.d(t,"\u0275isPromise",function(){return tt}),n.d(t,"\u0275clearOverrides",function(){return Zl}),n.d(t,"\u0275overrideComponentView",function(){return Jl}),n.d(t,"\u0275overrideProvider",function(){return Ql}),n.d(t,"\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR",function(){return wr}),n.d(t,"\u0275defineComponent",function(){return ra}),n.d(t,"\u0275detectChanges",function(){return ia}),n.d(t,"\u0275renderComponent",function(){return oa}),n.d(t,"\u0275C",function(){return Ws}),n.d(t,"\u0275D",function(){return Hs}),n.d(t,"\u0275E",function(){return Rs}),n.d(t,"\u0275T",function(){return Ks}),n.d(t,"\u0275V",function(){return Gs}),n.d(t,"\u0275b",function(){return Xs}),n.d(t,"\u0275b1",function(){return ea}),n.d(t,"\u0275c",function(){return qs}),n.d(t,"\u0275cR",function(){return zs}),n.d(t,"\u0275cr",function(){return $s}),n.d(t,"\u0275e",function(){return Ls}),n.d(t,"\u0275p",function(){return Us}),n.d(t,"\u0275s",function(){return Fs}),n.d(t,"\u0275t",function(){return Bs}),n.d(t,"\u0275v",function(){return Ys}),n.d(t,"\u0275registerModuleFactory",function(){return On}),n.d(t,"\u0275EMPTY_ARRAY",function(){return _i}),n.d(t,"\u0275EMPTY_MAP",function(){return wi}),n.d(t,"\u0275and",function(){return Ai}),n.d(t,"\u0275ccf",function(){return Bi}),n.d(t,"\u0275cmf",function(){return Xl}),n.d(t,"\u0275crt",function(){return Ho}),n.d(t,"\u0275did",function(){return pr}),n.d(t,"\u0275eld",function(){return Ti}),n.d(t,"\u0275elementEventFullName",function(){return ti}),n.d(t,"\u0275getComponentViewDefinitionFactory",function(){return Hi}),n.d(t,"\u0275inlineInterpolate",function(){return bi}),n.d(t,"\u0275interpolate",function(){return vi}),n.d(t,"\u0275mod",function(){return Ri}),n.d(t,"\u0275mpd",function(){return Ii}),n.d(t,"\u0275ncd",function(){return Dr}),n.d(t,"\u0275nov",function(){return er}),n.d(t,"\u0275pid",function(){return fr}),n.d(t,"\u0275prd",function(){return hr}),n.d(t,"\u0275pad",function(){return Lr}),n.d(t,"\u0275pod",function(){return Ur}),n.d(t,"\u0275ppd",function(){return jr}),n.d(t,"\u0275qud",function(){return Mr}),n.d(t,"\u0275ted",function(){return Fr}),n.d(t,"\u0275unv",function(){return Fo}),n.d(t,"\u0275vid",function(){return Hr}),n.d(t,"AUTO_STYLE",function(){return ga}),n.d(t,"trigger",function(){return va}),n.d(t,"animate",function(){return ba}),n.d(t,"group",function(){return ka}),n.d(t,"sequence",function(){return _a}),n.d(t,"style",function(){return wa}),n.d(t,"state",function(){return Aa}),n.d(t,"keyframes",function(){return Ta}),n.d(t,"transition",function(){return Ca}),n.d(t,"\u0275bf",function(){return ca}),n.d(t,"\u0275bg",function(){return da}),n.d(t,"\u0275bk",function(){return ya}),n.d(t,"\u0275bh",function(){return pa}),n.d(t,"\u0275bj",function(){return ha}),n.d(t,"\u0275bi",function(){return fa}),n.d(t,"\u0275bl",function(){return ma}),n.d(t,"\u0275be",function(){return ua}),n.d(t,"\u0275n",function(){return bo}),n.d(t,"\u0275o",function(){return ko}),n.d(t,"\u0275q",function(){return _o}),n.d(t,"\u0275i",function(){return lt}),n.d(t,"\u0275j",function(){return po}),n.d(t,"\u0275k",function(){return fo}),n.d(t,"\u0275l",function(){return Zn}),n.d(t,"\u0275m",function(){return ro}),n.d(t,"\u0275f",function(){return et}),n.d(t,"\u0275g",function(){return He}),n.d(t,"\u0275h",function(){return Ge}),n.d(t,"\u0275r",function(){return jt}),n.d(t,"\u0275w",function(){return It}),n.d(t,"\u0275u",function(){return Pt}),n.d(t,"\u0275z",function(){return Nt}),n.d(t,"\u0275x",function(){return Rt}),n.d(t,"\u0275y",function(){return Dt}),n.d(t,"\u0275bc",function(){return hs}),n.d(t,"\u0275a",function(){return y}),n.d(t,"\u0275d",function(){return m}),n.d(t,"\u0275ba",function(){return yr}),n.d(t,"\u0275bb",function(){return Io});var o=n("TToO"),i=n("rCTf"),r=n("1KT0"),l=n("+ayw"),s=n("EEr4"),a=n("B00U"),u=function(){function e(e){this._desc=e,this.ngMetadataName="InjectionToken"}return e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(),c="__annotations__",d="__paramaters__",p="__prop__metadata__";function f(e,t,n,o){var i=h(t);function r(e){if(this instanceof r)return i.call(this,e),this;var t=new r(e),n=function(e){return(e.hasOwnProperty(c)?e[c]:Object.defineProperty(e,c,{value:[]})[c]).push(t),e};return o&&o(n),n}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r}function h(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e){var o=e.apply(void 0,t);for(var i in o)this[i]=o[i]}}}function y(e,t,n){var o=h(t);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this instanceof i)return o.apply(this,e),this;var n,r=new((n=i).bind.apply(n,[void 0].concat(e)));return l.annotation=r,l;function l(e,t,n){for(var o=e.hasOwnProperty(d)?e[d]:Object.defineProperty(e,d,{value:[]})[d];o.length<=n;)o.push(null);return(o[n]=o[n]||[]).push(r),e}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i}function m(e,t,n){var o=h(t);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this instanceof i)return o.apply(this,e),this;var n,r=new((n=i).bind.apply(n,[void 0].concat(e)));return function(e,t){var n=e.constructor,o=n.hasOwnProperty(p)?n[p]:Object.defineProperty(n,p,{value:{}})[p];o[t]=o.hasOwnProperty(t)&&o[t]||[],o[t].unshift(r)}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i}var g=new u("AnalyzeForEntryComponents"),v=y("Attribute",function(e){return{attributeName:e}}),b=function(){},k=m("ContentChildren",function(e,t){return void 0===t&&(t={}),Object(o.__assign)({selector:e,first:!1,isViewQuery:!1,descendants:!1},t)},b),_=m("ContentChild",function(e,t){return void 0===t&&(t={}),Object(o.__assign)({selector:e,first:!0,isViewQuery:!1,descendants:!0},t)},b),w=m("ViewChildren",function(e,t){return void 0===t&&(t={}),Object(o.__assign)({selector:e,first:!1,isViewQuery:!0,descendants:!0},t)},b),A=m("ViewChild",function(e,t){return Object(o.__assign)({selector:e,first:!0,isViewQuery:!0,descendants:!0},t)},b),T=function(){var e={OnPush:0,Default:1};return e[e.OnPush]="OnPush",e[e.Default]="Default",e}(),C=function(){var e={CheckOnce:0,Checked:1,CheckAlways:2,Detached:3,Errored:4,Destroyed:5};return e[e.CheckOnce]="CheckOnce",e[e.Checked]="Checked",e[e.CheckAlways]="CheckAlways",e[e.Detached]="Detached",e[e.Errored]="Errored",e[e.Destroyed]="Destroyed",e}();function x(e){return null==e||e===T.Default}var O=f("Directive",function(e){return void 0===e&&(e={}),e}),S=f("Component",function(e){return void 0===e&&(e={}),Object(o.__assign)({changeDetection:T.Default},e)},O),M=f("Pipe",function(e){return Object(o.__assign)({pure:!0},e)}),E=m("Input",function(e){return{bindingPropertyName:e}}),P=m("Output",function(e){return{bindingPropertyName:e}}),I=m("HostBinding",function(e){return{hostPropertyName:e}}),R=m("HostListener",function(e,t){return{eventName:e,args:t}}),D={name:"custom-elements"},N={name:"no-errors-schema"},j=f("NgModule",function(e){return e}),L=function(){var e={Emulated:0,Native:1,None:2};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e}(),U=function(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")},V=new U("5.2.9"),F=y("Inject",function(e){return{token:e}}),K=y("Optional"),B=f("Injectable"),H=y("Self"),W=y("SkipSelf"),q=y("Host"),z="undefined"!=typeof window&&window,$="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,G=z||"undefined"!=typeof e&&e||$,Y=Promise.resolve(0),Q=null;function J(){if(!Q){var e=G.Symbol;if(e&&e.iterator)Q=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var o=t[n];"entries"!==o&&"size"!==o&&Map.prototype[o]===Map.prototype.entries&&(Q=o)}}return Q}function Z(e){"undefined"==typeof Zone?Y.then(function(){e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}function X(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function ee(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(ee).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function te(e){return e.__forward_ref__=te,e.toString=function(){return ee(this())},e}function ne(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")&&e.__forward_ref__===te?e():e}var oe="__source",ie=new Object,re=ie,le=function(){function e(){}return e.prototype.get=function(e,t){if(void 0===t&&(t=ie),t===ie)throw new Error("NullInjectorError: No provider for "+ee(e)+"!");return t},e}(),se=function(){function e(){}return e.create=function(e,t){return Array.isArray(e)?new ge(e,t):new ge(e.providers,e.parent,e.name||null)},e.THROW_IF_NOT_FOUND=ie,e.NULL=new le,e}(),ae=function(e){return e},ue=[],ce=ae,de=function(){return Array.prototype.slice.call(arguments)},pe={},fe=function(e){for(var t in e)if(e[t]===pe)return t;throw Error("!prop")}({provide:String,useValue:pe}),he=se.NULL,ye=/\n/gm,me="\u0275",ge=function(){function e(e,t,n){void 0===t&&(t=he),void 0===n&&(n=null),this.parent=t,this.source=n;var o=this._records=new Map;o.set(se,{token:se,fn:ae,deps:ue,value:this,useNew:!1}),function e(t,n){if(n)if((n=ne(n))instanceof Array)for(var o=0;o<n.length;o++)e(t,n[o]);else{if("function"==typeof n)throw ke("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw ke("Unexpected provider",n);var i=ne(n.provide),r=function(e){var t=function(e){var t=ue,n=e.deps;if(n&&n.length){t=[];for(var o=0;o<n.length;o++){var i=6;if((a=ne(n[o]))instanceof Array)for(var r=0,l=a;r<l.length;r++){var s=l[r];s instanceof K||s==K?i|=1:s instanceof W||s==W?i&=-3:s instanceof H||s==H?i&=-5:a=s instanceof F?s.token:ne(s)}t.push({token:a,options:i})}}else if(e.useExisting){var a;t=[{token:a=ne(e.useExisting),options:6}]}else if(!(n||fe in e))throw ke("'deps' required",e);return t}(e),n=ae,o=ue,i=!1,r=ne(e.provide);if(fe in e)o=e.useValue;else if(e.useFactory)n=e.useFactory;else if(e.useExisting);else if(e.useClass)i=!0,n=ne(e.useClass);else{if("function"!=typeof r)throw ke("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",e);i=!0,n=r}return{deps:t,fn:n,useNew:i,value:o}}(n);if(!0===n.multi){var l=t.get(i);if(l){if(l.fn!==de)throw ve(i)}else t.set(i,l={token:n.provide,deps:[],useNew:!1,fn:de,value:ue});l.deps.push({token:i=n,options:6})}var s=t.get(i);if(s&&s.fn==de)throw ve(i);t.set(i,r)}}(o,e)}return e.prototype.get=function(e,t){var n=this._records.get(e);try{return function e(t,n,o,i,r){try{return function(t,n,o,i,r){var l,s;if(n){if((l=n.value)==ce)throw Error(me+"Circular dependency");if(l===ue){n.value=ce;var a=n.useNew,u=n.fn,c=n.deps,d=ue;if(c.length){d=[];for(var p=0;p<c.length;p++){var f=c[p],h=f.options,y=2&h?o.get(f.token):void 0;d.push(e(f.token,y,o,y||4&h?i:he,1&h?null:se.THROW_IF_NOT_FOUND))}}n.value=l=a?new((s=u).bind.apply(s,[void 0].concat(d))):u.apply(void 0,d)}}else l=i.get(t,r);return l}(t,n,o,i,r)}catch(e){throw e instanceof Error||(e=new Error(e)),(e.ngTempTokenPath=e.ngTempTokenPath||[]).unshift(t),n&&n.value==ce&&(n.value=ue),e}}(e,n,this._records,this.parent,t)}catch(t){var o=t.ngTempTokenPath;throw e[oe]&&o.unshift(e[oe]),t.message=be("\n"+t.message,o,this.source),t.ngTokenPath=o,t.ngTempTokenPath=null,t}},e.prototype.toString=function(){var e=[];return this._records.forEach(function(t,n){return e.push(ee(n))}),"StaticInjector["+e.join(", ")+"]"},e}();function ve(e){return ke("Cannot mix multi providers and regular providers",e)}function be(e,t,n){void 0===n&&(n=null),e=e&&"\n"===e.charAt(0)&&e.charAt(1)==me?e.substr(2):e;var o=ee(t);if(t instanceof Array)o=t.map(ee).join(" -> ");else if("object"==typeof t){var i=[];for(var r in t)if(t.hasOwnProperty(r)){var l=t[r];i.push(r+":"+("string"==typeof l?JSON.stringify(l):ee(l)))}o="{"+i.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+o+"]: "+e.replace(ye,"\n ")}function ke(e,t){return new Error(be(e,t))}var _e="ngDebugContext",we="ngOriginalError",Ae="ngErrorLogger";function Te(e){return e[_e]}function Ce(e){return e[we]}function xe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e.error.apply(e,t)}var Oe=function(){function e(){this._console=console}return e.prototype.handleError=function(e){var t=this._findOriginalError(e),n=this._findContext(e),o=function(e){return e[Ae]||xe}(e);o(this._console,"ERROR",e),t&&o(this._console,"ORIGINAL ERROR",t),n&&o(this._console,"ERROR CONTEXT",n)},e.prototype._findContext=function(e){return e?Te(e)?Te(e):this._findContext(Ce(e)):null},e.prototype._findOriginalError=function(e){for(var t=Ce(e);t&&Ce(t);)t=Ce(t);return t},e}();function Se(e){return e.length>1?" ("+function(e){for(var t=[],n=0;n<e.length;++n){if(t.indexOf(e[n])>-1)return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map(function(e){return ee(e.token)}).join(" -> ")+")":""}function Me(e,t,n,o){var i=[t],r=n(i),l=o?function(e,t){var n=r+" caused by: "+(t instanceof Error?t.message:t),o=Error(n);return o[we]=t,o}(0,o):Error(r);return l.addKey=Ee,l.keys=i,l.injectors=[e],l.constructResolvingMessage=n,l[we]=o,l}function Ee(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function Pe(e,t){for(var n=[],o=0,i=t.length;o<i;o++){var r=t[o];n.push(r&&0!=r.length?r.map(ee).join(" "):"?")}return Error("Cannot resolve all parameters for '"+ee(e)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+ee(e)+"' is decorated with Injectable.")}var Ie=function(){function e(e,t){if(this.token=e,this.id=t,!e)throw new Error("Token must be defined!");this.displayName=ee(this.token)}return e.get=function(e){return Re.get(ne(e))},Object.defineProperty(e,"numberOfKeys",{get:function(){return Re.numberOfKeys},enumerable:!0,configurable:!0}),e}(),Re=new(function(){function e(){this._allKeys=new Map}return e.prototype.get=function(e){if(e instanceof Ie)return e;if(this._allKeys.has(e))return this._allKeys.get(e);var t=new Ie(e,Ie.numberOfKeys);return this._allKeys.set(e,t),t},Object.defineProperty(e.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),e}()),De=Function;function Ne(e){return"function"==typeof e}var je=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,Le=/^class\s+[A-Za-z\d$_]*\s*extends\s+[A-Za-z\d$_]+\s*{/,Ue=/^class\s+[A-Za-z\d$_]*\s*extends\s+[A-Za-z\d$_]+\s*{[\s\S]*constructor\s*\(/,Ve=function(){function e(e){this._reflect=e||G.Reflect}return e.prototype.isReflectionEnabled=function(){return!0},e.prototype.factory=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new(e.bind.apply(e,[void 0].concat(t)))}},e.prototype._zipTypesAndAnnotations=function(e,t){var n;n="undefined"==typeof e?new Array(t.length):new Array(e.length);for(var o=0;o<n.length;o++)n[o]="undefined"==typeof e?[]:e[o]!=Object?[e[o]]:[],t&&null!=t[o]&&(n[o]=n[o].concat(t[o]));return n},e.prototype._ownParameters=function(e,t){var n=e.toString();if(je.exec(n)||Le.exec(n)&&!Ue.exec(n))return null;if(e.parameters&&e.parameters!==t.parameters)return e.parameters;var o=e.ctorParameters;if(o&&o!==t.ctorParameters){var i="function"==typeof o?o():o,r=i.map(function(e){return e&&e.type}),l=i.map(function(e){return e&&Fe(e.decorators)});return this._zipTypesAndAnnotations(r,l)}var s=e.hasOwnProperty(d)&&e[d],a=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",e);return a||s?this._zipTypesAndAnnotations(a,s):new Array(e.length).fill(void 0)},e.prototype.parameters=function(e){if(!Ne(e))return[];var t=Ke(e),n=this._ownParameters(e,t);return n||t===Object||(n=this.parameters(t)),n||[]},e.prototype._ownAnnotations=function(e,t){if(e.annotations&&e.annotations!==t.annotations){var n=e.annotations;return"function"==typeof n&&n.annotations&&(n=n.annotations),n}return e.decorators&&e.decorators!==t.decorators?Fe(e.decorators):e.hasOwnProperty(c)?e[c]:null},e.prototype.annotations=function(e){if(!Ne(e))return[];var t=Ke(e),n=this._ownAnnotations(e,t)||[];return(t!==Object?this.annotations(t):[]).concat(n)},e.prototype._ownPropMetadata=function(e,t){if(e.propMetadata&&e.propMetadata!==t.propMetadata){var n=e.propMetadata;return"function"==typeof n&&n.propMetadata&&(n=n.propMetadata),n}if(e.propDecorators&&e.propDecorators!==t.propDecorators){var o=e.propDecorators,i={};return Object.keys(o).forEach(function(e){i[e]=Fe(o[e])}),i}return e.hasOwnProperty(p)?e[p]:null},e.prototype.propMetadata=function(e){if(!Ne(e))return{};var t=Ke(e),n={};if(t!==Object){var o=this.propMetadata(t);Object.keys(o).forEach(function(e){n[e]=o[e]})}var i=this._ownPropMetadata(e,t);return i&&Object.keys(i).forEach(function(e){var t=[];n.hasOwnProperty(e)&&t.push.apply(t,n[e]),t.push.apply(t,i[e]),n[e]=t}),n},e.prototype.hasLifecycleHook=function(e,t){return e instanceof De&&t in e.prototype},e.prototype.guards=function(e){return{}},e.prototype.getter=function(e){return new Function("o","return o."+e+";")},e.prototype.setter=function(e){return new Function("o","v","return o."+e+" = v;")},e.prototype.method=function(e){return new Function("o","args","if (!o."+e+") throw new Error('\""+e+"\" is undefined');\n return o."+e+".apply(o, args);")},e.prototype.importUri=function(e){return"object"==typeof e&&e.filePath?e.filePath:"./"+ee(e)},e.prototype.resourceUri=function(e){return"./"+ee(e)},e.prototype.resolveIdentifier=function(e,t,n,o){return o},e.prototype.resolveEnum=function(e,t){return e[t]},e}();function Fe(e){return e?e.map(function(e){var t=e.type.annotationCls;return new(t.bind.apply(t,[void 0].concat(e.args?e.args:[])))}):[]}function Ke(e){var t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}var Be=new(function(){function e(e){this.reflectionCapabilities=e}return e.prototype.updateCapabilities=function(e){this.reflectionCapabilities=e},e.prototype.factory=function(e){return this.reflectionCapabilities.factory(e)},e.prototype.parameters=function(e){return this.reflectionCapabilities.parameters(e)},e.prototype.annotations=function(e){return this.reflectionCapabilities.annotations(e)},e.prototype.propMetadata=function(e){return this.reflectionCapabilities.propMetadata(e)},e.prototype.hasLifecycleHook=function(e,t){return this.reflectionCapabilities.hasLifecycleHook(e,t)},e.prototype.getter=function(e){return this.reflectionCapabilities.getter(e)},e.prototype.setter=function(e){return this.reflectionCapabilities.setter(e)},e.prototype.method=function(e){return this.reflectionCapabilities.method(e)},e.prototype.importUri=function(e){return this.reflectionCapabilities.importUri(e)},e.prototype.resourceUri=function(e){return this.reflectionCapabilities.resourceUri(e)},e.prototype.resolveIdentifier=function(e,t,n,o){return this.reflectionCapabilities.resolveIdentifier(e,t,n,o)},e.prototype.resolveEnum=function(e,t){return this.reflectionCapabilities.resolveEnum(e,t)},e}())(new Ve),He=function(){function e(e,t,n){this.key=e,this.optional=t,this.visibility=n}return e.fromKey=function(t){return new e(t,!1,null)},e}(),We=[],qe=function(e,t,n){this.key=e,this.resolvedFactories=t,this.multiProvider=n,this.resolvedFactory=this.resolvedFactories[0]},ze=function(e,t){this.factory=e,this.dependencies=t};function $e(e){return new qe(Ie.get(e.provide),[function(e){var t,n;if(e.useClass){var o=ne(e.useClass);t=Be.factory(o),n=Ye(o)}else e.useExisting?(t=function(e){return e},n=[He.fromKey(Ie.get(e.useExisting))]):e.useFactory?(t=e.useFactory,n=function(e,t){if(t){var n=t.map(function(e){return[e]});return t.map(function(t){return Qe(e,t,n)})}return Ye(e)}(e.useFactory,e.deps)):(t=function(){return e.useValue},n=We);return new ze(t,n)}(e)],e.multi||!1)}function Ge(e){var t=function(e,t){for(var n=0;n<e.length;n++){var o=e[n],i=t.get(o.key.id);if(i){if(o.multiProvider!==i.multiProvider)throw Error("Cannot mix multi providers and regular providers, got: "+i+" "+o);if(o.multiProvider)for(var r=0;r<o.resolvedFactories.length;r++)i.resolvedFactories.push(o.resolvedFactories[r]);else t.set(o.key.id,o)}else{var l;l=o.multiProvider?new qe(o.key,o.resolvedFactories.slice(),o.multiProvider):o,t.set(o.key.id,l)}}return t}(function e(t,n){return t.forEach(function(t){if(t instanceof De)n.push({provide:t,useClass:t});else if(t&&"object"==typeof t&&void 0!==t.provide)n.push(t);else{if(!(t instanceof Array))throw Error("Invalid provider - only instances of Provider and Type are allowed, got: "+t);e(t,n)}}),n}(e,[]).map($e),new Map);return Array.from(t.values())}function Ye(e){var t=Be.parameters(e);if(!t)return[];if(t.some(function(e){return null==e}))throw Pe(e,t);return t.map(function(n){return Qe(e,n,t)})}function Qe(e,t,n){var o=null,i=!1;if(!Array.isArray(t))return Je(t instanceof F?t.token:t,i,null);for(var r=null,l=0;l<t.length;++l){var s=t[l];s instanceof De?o=s:s instanceof F?o=s.token:s instanceof K?i=!0:s instanceof H||s instanceof W?r=s:s instanceof u&&(o=s)}if(null!=(o=ne(o)))return Je(o,i,r);throw Pe(e,n)}function Je(e,t,n){return new He(Ie.get(e),t,n)}var Ze=new Object,Xe=function(){function e(){}return e.resolve=function(e){return Ge(e)},e.resolveAndCreate=function(t,n){var o=e.resolve(t);return e.fromResolvedProviders(o,n)},e.fromResolvedProviders=function(e,t){return new et(e,t)},e}(),et=function(){function e(e,t){this._constructionCounter=0,this._providers=e,this.parent=t||null;var n=e.length;this.keyIds=new Array(n),this.objs=new Array(n);for(var o=0;o<n;o++)this.keyIds[o]=e[o].key.id,this.objs[o]=Ze}return e.prototype.get=function(e,t){return void 0===t&&(t=re),this._getByKey(Ie.get(e),null,t)},e.prototype.resolveAndCreateChild=function(e){var t=Xe.resolve(e);return this.createChildFromResolved(t)},e.prototype.createChildFromResolved=function(t){var n=new e(t);return n.parent=this,n},e.prototype.resolveAndInstantiate=function(e){return this.instantiateResolved(Xe.resolve([e])[0])},e.prototype.instantiateResolved=function(e){return this._instantiateProvider(e)},e.prototype.getProviderAtIndex=function(e){if(e<0||e>=this._providers.length)throw function(e){return Error("Index "+e+" is out-of-bounds.")}(e);return this._providers[e]},e.prototype._new=function(e){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw Me(this,e.key,function(e){return"Cannot instantiate cyclic dependency!"+Se(e)});return this._instantiateProvider(e)},e.prototype._getMaxNumberOfObjects=function(){return this.objs.length},e.prototype._instantiateProvider=function(e){if(e.multiProvider){for(var t=new Array(e.resolvedFactories.length),n=0;n<e.resolvedFactories.length;++n)t[n]=this._instantiate(e,e.resolvedFactories[n]);return t}return this._instantiate(e,e.resolvedFactories[0])},e.prototype._instantiate=function(e,t){var n,o,i,r=this,l=t.factory;try{n=t.dependencies.map(function(e){return r._getByReflectiveDependency(e)})}catch(t){throw t.addKey&&t.addKey(this,e.key),t}try{o=l.apply(void 0,n)}catch(t){throw Me(this,e.key,function(e){var t=ee(e[0].token);return i.message+": Error during instantiation of "+t+"!"+Se(e)+"."},i=t)}return o},e.prototype._getByReflectiveDependency=function(e){return this._getByKey(e.key,e.visibility,e.optional?null:re)},e.prototype._getByKey=function(t,n,o){return t===e.INJECTOR_KEY?this:n instanceof H?this._getByKeySelf(t,o):this._getByKeyDefault(t,o,n)},e.prototype._getObjByKeyId=function(e){for(var t=0;t<this.keyIds.length;t++)if(this.keyIds[t]===e)return this.objs[t]===Ze&&(this.objs[t]=this._new(this._providers[t])),this.objs[t];return Ze},e.prototype._throwOrNull=function(e,t){if(t!==re)return t;throw function(e,t){return Me(e,t,function(e){return"No provider for "+ee(e[0].token)+"!"+Se(e)})}(this,e)},e.prototype._getByKeySelf=function(e,t){var n=this._getObjByKeyId(e.id);return n!==Ze?n:this._throwOrNull(e,t)},e.prototype._getByKeyDefault=function(t,n,o){var i;for(i=o instanceof W?this.parent:this;i instanceof e;){var r=i,l=r._getObjByKeyId(t.id);if(l!==Ze)return l;i=r.parent}return null!==i?i.get(t.token,n):this._throwOrNull(t,n)},Object.defineProperty(e.prototype,"displayName",{get:function(){return"ReflectiveInjector(providers: ["+function(e,t){for(var n=new Array(e._providers.length),o=0;o<e._providers.length;++o)n[o]=' "'+e.getProviderAtIndex(o).key.displayName+'" ';return n}(this).join(", ")+"])"},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.displayName},e.INJECTOR_KEY=Ie.get(se),e}();function tt(e){return!!e&&"function"==typeof e.then}function nt(e){return!!e&&"function"==typeof e.subscribe}var ot=new u("Application Initializer"),it=function(){function e(e){var t=this;this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,n){t.resolve=e,t.reject=n})}return e.prototype.runInitializers=function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var o=0;o<this.appInits.length;o++){var i=this.appInits[o]();tt(i)&&t.push(i)}Promise.all(t).then(function(){n()}).catch(function(t){e.reject(t)}),0===t.length&&n(),this.initialized=!0}},e}(),rt=new u("AppId");function lt(){return""+at()+at()+at()}var st={provide:rt,useFactory:lt,deps:[]};function at(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var ut=new u("Platform Initializer"),ct=new u("Platform ID"),dt=new u("appBootstrapListener"),pt=new u("Application Packages Root URL"),ft=function(){function e(){}return e.prototype.log=function(e){console.log(e)},e.prototype.warn=function(e){console.warn(e)},e.ctorParameters=function(){return[]},e}(),ht=function(e,t){this.ngModuleFactory=e,this.componentFactories=t};function yt(){throw new Error("Runtime compiler is not loaded")}var mt=function(){function e(){}return e.prototype.compileModuleSync=function(e){throw yt()},e.prototype.compileModuleAsync=function(e){throw yt()},e.prototype.compileModuleAndAllComponentsSync=function(e){throw yt()},e.prototype.compileModuleAndAllComponentsAsync=function(e){throw yt()},e.prototype.clearCache=function(){},e.prototype.clearCacheFor=function(e){},e}(),gt=new u("compilerOptions"),vt=function(){},bt=function(){},kt=function(){};function _t(e){var t=Error("No component factory found for "+ee(e)+". Did you add it to @NgModule.entryComponents?");return t[Tt]=e,t}var wt,At,Tt="ngComponent",Ct=function(){function e(){}return e.prototype.resolveComponentFactory=function(e){throw _t(e)},e}(),xt=function(){function e(){}return e.NULL=new Ct,e}(),Ot=function(){function e(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(var o=0;o<e.length;o++){var i=e[o];this._factories.set(i.componentType,i)}}return e.prototype.resolveComponentFactory=function(e){var t=this._factories.get(e);if(!t&&this._parent&&(t=this._parent.resolveComponentFactory(e)),!t)throw _t(e);return new St(t,this._ngModule)},e}(),St=function(e){function t(t,n){var o=e.call(this)||this;return o.factory=t,o.ngModule=n,o.selector=t.selector,o.componentType=t.componentType,o.ngContentSelectors=t.ngContentSelectors,o.inputs=t.inputs,o.outputs=t.outputs,o}return Object(o.__extends)(t,e),t.prototype.create=function(e,t,n,o){return this.factory.create(e,t,n,o||this.ngModule)},t}(kt),Mt=function(){},Et=function(){};function Pt(){var e=G.wtf;return!(!e||!(wt=e.trace)||(At=wt.events,0))}function It(e,t){return void 0===t&&(t=null),At.createScope(e,t)}function Rt(e,t){return wt.leaveScope(e,t),t}function Dt(e,t){return wt.beginTimeRange(e,t)}function Nt(e){wt.endTimeRange(e)}var jt=Pt();function Lt(e,t){return null}var Ut=jt?It:function(e,t){return Lt},Vt=jt?Rt:function(e,t){return t},Ft=jt?Dt:function(e,t){return null},Kt=jt?Nt:function(e){return null},Bt=function(e){function t(t){void 0===t&&(t=!1);var n=e.call(this)||this;return n.__isAsync=t,n}return Object(o.__extends)(t,e),t.prototype.emit=function(t){e.prototype.next.call(this,t)},t.prototype.subscribe=function(t,n,o){var i,r=function(e){return null},l=function(){return null};t&&"object"==typeof t?(i=this.__isAsync?function(e){setTimeout(function(){return t.next(e)})}:function(e){t.next(e)},t.error&&(r=this.__isAsync?function(e){setTimeout(function(){return t.error(e)})}:function(e){t.error(e)}),t.complete&&(l=this.__isAsync?function(){setTimeout(function(){return t.complete()})}:function(){t.complete()})):(i=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)},n&&(r=this.__isAsync?function(e){setTimeout(function(){return n(e)})}:function(e){n(e)}),o&&(l=this.__isAsync?function(){setTimeout(function(){return o()})}:function(){o()}));var s=e.prototype.subscribe.call(this,i,r,l);return t instanceof a.Subscription&&t.add(s),s},t}(s.Subject),Ht=function(){function e(e){var t,n=e.enableLongStackTrace,o=void 0!==n&&n;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Bt(!1),this.onMicrotaskEmpty=new Bt(!1),this.onStable=new Bt(!1),this.onError=new Bt(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),o&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(t=this)._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,n,o,i,r,l){try{return $t(t),e.invokeTask(o,i,r,l)}finally{Gt(t)}},onInvoke:function(e,n,o,i,r,l,s){try{return $t(t),e.invoke(o,i,r,l,s)}finally{Gt(t)}},onHasTask:function(e,n,o,i){e.hasTask(o,i),n===o&&("microTask"==i.change?(t.hasPendingMicrotasks=i.microTask,zt(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,n,o,i){return e.handleError(o,i),t.runOutsideAngular(function(){return t.onError.emit(i)}),!1}})}return e.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},e.assertInAngularZone=function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},e.assertNotInAngularZone=function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},e.prototype.run=function(e,t,n){return this._inner.run(e,t,n)},e.prototype.runTask=function(e,t,n,o){var i=this._inner,r=i.scheduleEventTask("NgZoneEvent: "+o,e,qt,Wt,Wt);try{return i.runTask(r,t,n)}finally{i.cancelTask(r)}},e.prototype.runGuarded=function(e,t,n){return this._inner.runGuarded(e,t,n)},e.prototype.runOutsideAngular=function(e){return this._outer.run(e)},e}();function Wt(){}var qt={};function zt(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(function(){return e.onStable.emit(null)})}finally{e.isStable=!0}}}function $t(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Gt(e){e._nesting--,zt(e)}var Yt=function(){function e(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Bt,this.onMicrotaskEmpty=new Bt,this.onStable=new Bt,this.onError=new Bt}return e.prototype.run=function(e){return e()},e.prototype.runGuarded=function(e){return e()},e.prototype.runOutsideAngular=function(e){return e()},e.prototype.runTask=function(e){return e()},e}(),Qt=function(){function e(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents()}return e.prototype._watchAngularEvents=function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.subscribe({next:function(){Ht.assertNotInAngularZone(),Z(function(){e._isZoneStable=!0,e._runCallbacksIfReady()})}})})},e.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},e.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},e.prototype.isStable=function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks},e.prototype._runCallbacksIfReady=function(){var e=this;this.isStable()?Z(function(){for(;0!==e._callbacks.length;)e._callbacks.pop()(e._didWork);e._didWork=!1}):this._didWork=!0},e.prototype.whenStable=function(e){this._callbacks.push(e),this._runCallbacksIfReady()},e.prototype.getPendingRequestCount=function(){return this._pendingCount},e.prototype.findProviders=function(e,t,n){return[]},e}(),Jt=function(){function e(){this._applications=new Map,en.addToWindow(this)}return e.prototype.registerApplication=function(e,t){this._applications.set(e,t)},e.prototype.unregisterApplication=function(e){this._applications.delete(e)},e.prototype.unregisterAllApplications=function(){this._applications.clear()},e.prototype.getTestability=function(e){return this._applications.get(e)||null},e.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},e.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},e.prototype.findTestabilityInTree=function(e,t){return void 0===t&&(t=!0),en.findTestabilityInTree(this,e,t)},e.ctorParameters=function(){return[]},e}();function Zt(e){en=e}var Xt,en=new(function(){function e(){}return e.prototype.addToWindow=function(e){},e.prototype.findTestabilityInTree=function(e,t,n){return null},e}()),tn=!0,nn=!1,on=new u("AllowMultipleToken");function rn(){if(nn)throw new Error("Cannot enable prod mode after platform setup.");tn=!1}function ln(){return nn=!0,tn}var sn=function(e,t){this.name=e,this.token=t};function an(e){if(Xt&&!Xt.destroyed&&!Xt.injector.get(on,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Xt=e.get(fn);var t=e.get(ut,null);return t&&t.forEach(function(e){return e()}),Xt}function un(e,t,n){void 0===n&&(n=[]);var o="Platform: "+t,i=new u(o);return function(t){void 0===t&&(t=[]);var r=pn();if(!r||r.injector.get(on,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var l=n.concat(t).concat({provide:i,useValue:!0});an(se.create({providers:l,name:o}))}return cn(i)}}function cn(e){var t=pn();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}function dn(){Xt&&!Xt.destroyed&&Xt.destroy()}function pn(){return Xt&&!Xt.destroyed?Xt:null}var fn=function(){function e(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return e.prototype.bootstrapModuleFactory=function(e,t){var n,o=this,i="noop"===(n=t?t.ngZone:void 0)?new Yt:("zone.js"===n?void 0:n)||new Ht({enableLongStackTrace:ln()}),r=[{provide:Ht,useValue:i}];return i.run(function(){var t=se.create({providers:r,parent:o.injector,name:e.moduleType.name}),n=e.create(t),l=n.injector.get(Oe,null);if(!l)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return mn(o._modules,n)}),i.runOutsideAngular(function(){return i.onError.subscribe({next:function(e){l.handleError(e)}})}),function(e,t,i){try{var r=((l=n.injector.get(it)).runInitializers(),l.donePromise.then(function(){return o._moduleDoBootstrap(n),n}));return tt(r)?r.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):r}catch(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}var l}(l,i)})},e.prototype.bootstrapModule=function(e,t){var n=this;void 0===t&&(t=[]);var o=this.injector.get(vt),i=hn({},t);return o.createCompiler([i]).compileModuleAsync(e).then(function(e){return n.bootstrapModuleFactory(e,i)})},e.prototype._moduleDoBootstrap=function(e){var t=e.injector.get(yn);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+ee(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e}();function hn(e,t){return Array.isArray(t)?t.reduce(hn,e):Object(o.__assign)({},e,t)}var yn=function(){function e(e,t,n,o,s,a){var u=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=o,this._componentFactoryResolver=s,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=ln(),this._zone.onMicrotaskEmpty.subscribe({next:function(){u._zone.run(function(){u.tick()})}});var c=new i.Observable(function(e){u._stable=u._zone.isStable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks,u._zone.runOutsideAngular(function(){e.next(u._stable),e.complete()})}),d=new i.Observable(function(e){var t;u._zone.runOutsideAngular(function(){t=u._zone.onStable.subscribe(function(){Ht.assertNotInAngularZone(),Z(function(){u._stable||u._zone.hasPendingMacrotasks||u._zone.hasPendingMicrotasks||(u._stable=!0,e.next(!0))})})});var n=u._zone.onUnstable.subscribe(function(){Ht.assertInAngularZone(),u._stable&&(u._stable=!1,u._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(r.merge)(c,l.share.call(d))}return e.prototype.bootstrap=function(e,t){var n,o=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof kt?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n instanceof St?null:this._injector.get(Mt),r=n.create(se.NULL,[],t||n.selector,i);r.onDestroy(function(){o._unloadComponent(r)});var l=r.injector.get(Qt,null);return l&&r.injector.get(Jt).registerApplication(r.location.nativeElement,l),this._loadComponent(r),ln()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),r},e.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,Vt(n)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;mn(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(dt,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),mn(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e._tickScope=Ut("ApplicationRef#tick()"),e}();function mn(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var gn=function(e,t,n,o,i,r){this.id=e,this.templateUrl=t,this.slotCount=n,this.encapsulation=o,this.styles=i,this.animations=r},vn=function(){},bn=function(){},kn=function(){},_n=function(){},wn=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),An=function(){},Tn=function(e){this.nativeElement=e},Cn=function(){},xn=new Map;function On(e,t){var n=xn.get(e);if(n)throw new Error("Duplicate module registered for "+e+" - "+n.moduleType.name+" vs "+t.moduleType.name);xn.set(e,t)}function Sn(e){var t=xn.get(e);if(!t)throw new Error("No module with ID "+e+" loaded");return t}var Mn=function(){function e(){this.dirty=!0,this._results=[],this.changes=new Bt,this.length=0}return e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[J()]=function(){return this._results[J()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=function e(t){return t.reduce(function(t,n){var o=Array.isArray(n)?e(n):n;return t.concat(o)},[])}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},e}(),En=function(){},Pn={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},In=function(){function e(e,t){this._compiler=e,this._config=t||Pn}return e.prototype.load=function(e){return this._compiler instanceof mt?this.loadFactory(e):this.loadAndCompile(e)},e.prototype.loadAndCompile=function(e){var t=this,o=e.split("#"),i=o[0],r=o[1];return void 0===r&&(r="default"),n("Jnfr")(i).then(function(e){return e[r]}).then(function(e){return Rn(e,i,r)}).then(function(e){return t._compiler.compileModuleAsync(e)})},e.prototype.loadFactory=function(e){var t=e.split("#"),o=t[0],i=t[1],r="NgFactory";return void 0===i&&(i="default",r=""),n("Jnfr")(this._config.factoryPathPrefix+o+this._config.factoryPathSuffix).then(function(e){return e[i+r]}).then(function(e){return Rn(e,o,i)})},e}();function Rn(e,t,n){if(!e)throw new Error("Cannot find '"+n+"' in '"+t+"'");return e}var Dn=function(){},Nn=function(){},jn=function(){},Ln=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t}(jn),Un=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t}(Ln),Vn=function(){function e(e,t,n){this._debugContext=n,this.nativeNode=e,t&&t instanceof Fn?t.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),Fn=function(e){function t(t,n,o){var i=e.call(this,t,n,o)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=t,i}return Object(o.__extends)(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,o=this,i=this.childNodes.indexOf(e);-1!==i&&((n=this.childNodes).splice.apply(n,[i+1,0].concat(t)),t.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=o}))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return Bn(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return Hn(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(Vn);function Kn(e){return e.map(function(e){return e.nativeElement})}function Bn(e,t,n){e.childNodes.forEach(function(e){e instanceof Fn&&(t(e)&&n.push(e),Bn(e,t,n))})}function Hn(e,t,n){e instanceof Fn&&e.childNodes.forEach(function(e){t(e)&&n.push(e),e instanceof Fn&&Hn(e,t,n)})}var Wn=new Map;function qn(e){return Wn.get(e)||null}function zn(e){Wn.set(e.nativeNode,e)}function $n(e,t){var n=Qn(e),o=Qn(t);return n&&o?function(e,t,n){for(var o=e[J()](),i=t[J()]();;){var r=o.next(),l=i.next();if(r.done&&l.done)return!0;if(r.done||l.done)return!1;if(!n(r.value,l.value))return!1}}(e,t,$n):!(n||!e||"object"!=typeof e&&"function"!=typeof e||o||!t||"object"!=typeof t&&"function"!=typeof t)||X(e,t)}var Gn=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e.unwrap=function(t){return e.isWrapped(t)?t.wrapped:t},e.isWrapped=function(t){return t instanceof e},e}(),Yn=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}();function Qn(e){return!!Jn(e)&&(Array.isArray(e)||!(e instanceof Map)&&J()in e)}function Jn(e){return null!==e&&("function"==typeof e||"object"==typeof e)}var Zn=function(){function e(){}return e.prototype.supports=function(e){return Qn(e)},e.prototype.create=function(e){return new eo(e)},e}(),Xn=function(e,t){return t},eo=function(){function e(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Xn}return e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,o=0,i=null;t||n;){var r=!n||t&&t.currentIndex<io(n,o,i)?t:n,l=io(r,o,i),s=r.currentIndex;if(r===n)o--,n=n._nextRemoved;else if(t=t._next,null==r.previousIndex)o++;else{i||(i=[]);var a=l-o,u=s-o;if(a!=u){for(var c=0;c<a;c++){var d=c<i.length?i[c]:i[c]=0,p=d+c;u<=p&&p<a&&(i[c]=d+1)}i[r.previousIndex]=u-a}}l!==s&&e(r,l,s)}},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachMovedItem=function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.forEachIdentityChange=function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)},e.prototype.diff=function(e){if(null==e&&(e=[]),!Qn(e))throw new Error("Error trying to diff '"+ee(e)+"'. Only arrays and iterables are allowed");return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var t=this;this._reset();var n,o,i,r=this._itHead,l=!1;if(Array.isArray(e)){this.length=e.length;for(var s=0;s<this.length;s++)i=this._trackByFn(s,o=e[s]),null!==r&&X(r.trackById,i)?(l&&(r=this._verifyReinsertion(r,o,i,s)),X(r.item,o)||this._addIdentityChange(r,o)):(r=this._mismatch(r,o,i,s),l=!0),r=r._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var o=e[J()](),i=void 0;!(i=o.next()).done;)t(i.value)}(e,function(e){i=t._trackByFn(n,e),null!==r&&X(r.trackById,i)?(l&&(r=t._verifyReinsertion(r,e,i,n)),X(r.item,e)||t._addIdentityChange(r,e)):(r=t._mismatch(r,e,i,n),l=!0),r=r._next,n++}),this.length=n;return this._truncate(r),this.collection=e,this.isDirty},Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),e.prototype._reset=function(){if(this.isDirty){var e=void 0,t=void 0;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},e.prototype._mismatch=function(e,t,n,o){var i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,o))?(X(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,o)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(X(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,o)):e=this._addAfter(new to(t,n),i,o),e},e.prototype._verifyReinsertion=function(e,t,n,o){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?e=this._reinsertAfter(i,e._prev,o):e.currentIndex!=o&&(e.currentIndex=o,this._addToMoves(e,o)),e},e.prototype._truncate=function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},e.prototype._reinsertAfter=function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var o=e._prevRemoved,i=e._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(e,t,n),this._addToMoves(e,n),e},e.prototype._moveAfter=function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e},e.prototype._addAfter=function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e},e.prototype._insertAfter=function(e,t,n){var o=null===t?this._itHead:t._next;return e._next=o,e._prev=t,null===o?this._itTail=e:o._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new oo),this._linkedRecords.put(e),e.currentIndex=n,e},e.prototype._remove=function(e){return this._addToRemovals(this._unlink(e))},e.prototype._unlink=function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e},e.prototype._addToMoves=function(e,t){return e.previousIndex===t?e:(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e,e)},e.prototype._addToRemovals=function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new oo),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e},e.prototype._addIdentityChange=function(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e},e}(),to=function(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null},no=function(){function e(){this._head=null,this._tail=null}return e.prototype.add=function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)},e.prototype.get=function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&X(n.trackById,e))return n;return null},e.prototype.remove=function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head},e}(),oo=function(){function e(){this.map=new Map}return e.prototype.put=function(e){var t=e.trackById,n=this.map.get(t);n||(n=new no,this.map.set(t,n)),n.add(e)},e.prototype.get=function(e,t){var n=this.map.get(e);return n?n.get(e,t):null},e.prototype.remove=function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.map.clear()},e}();function io(e,t,n){var o=e.previousIndex;if(null===o)return o;var i=0;return n&&o<n.length&&(i=n[o]),o+t+i}var ro=function(){function e(){}return e.prototype.supports=function(e){return e instanceof Map||Jn(e)},e.prototype.create=function(){return new lo},e}(),lo=function(){function e(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),e.prototype.forEachItem=function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachChangedItem=function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.diff=function(e){if(e){if(!(e instanceof Map||Jn(e)))throw new Error("Error trying to diff '"+ee(e)+"'. Only maps and objects are allowed")}else e=new Map;return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,function(e,o){if(n&&n.key===o)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var i=t._getOrCreateRecordForKey(o,e);n=t._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var o=n;null!==o;o=o._nextRemoved)o===this._mapHead&&(this._mapHead=null),this._records.delete(o.key),o._nextRemoved=o._next,o.previousValue=o.currentValue,o.currentValue=null,o._prev=null,o._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},e.prototype._insertBeforeOrAppend=function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null},e.prototype._getOrCreateRecordForKey=function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var o=n._prev,i=n._next;return o&&(o._next=i),i&&(i._prev=o),n._next=null,n._prev=null,n}var r=new so(e);return this._records.set(e,r),r.currentValue=t,this._addToAdditions(r),r},e.prototype._reset=function(){if(this.isDirty){var e=void 0;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},e.prototype._maybeAddToChanges=function(e,t){X(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))},e.prototype._addToAdditions=function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)},e.prototype._addToChanges=function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)},e.prototype._forEach=function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(function(n){return t(e[n],n)})},e}(),so=function(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null},ao=function(){function e(e){this.factories=e}return e.create=function(t,n){if(null!=n){var o=n.factories.slice();return new e(t=t.concat(o))}return new e(t)},e.extend=function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new W,new K]]}},e.prototype.find=function(e){var t,n=this.factories.find(function(t){return t.supports(e)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+((t=e).name||typeof t)+"'")},e}(),uo=function(){function e(e){this.factories=e}return e.create=function(t,n){if(n){var o=n.factories.slice();t=t.concat(o)}return new e(t)},e.extend=function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new W,new K]]}},e.prototype.find=function(e){var t=this.factories.find(function(t){return t.supports(e)});if(t)return t;throw new Error("Cannot find a differ supporting object '"+e+"'")},e}(),co=[new ro],po=new ao([new Zn]),fo=new uo(co),ho=un(null,"core",[{provide:ct,useValue:"unknown"},{provide:fn,deps:[se]},{provide:Jt,deps:[]},{provide:ft,deps:[]}]),yo=new u("LocaleId"),mo=new u("Translations"),go=new u("TranslationsFormat"),vo=function(){var e={Error:0,Warning:1,Ignore:2};return e[e.Error]="Error",e[e.Warning]="Warning",e[e.Ignore]="Ignore",e}();function bo(){return po}function ko(){return fo}function _o(e){return e||"en-US"}var wo=function(e){},Ao=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}(),To=function(){};function Co(e,t,n){var o=e.state,i=1792&o;return i===t?(e.state=-1793&o|n,e.initIndex=-1,!0):i===n}function xo(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function Oo(e,t){return e.nodes[t]}function So(e,t){return e.nodes[t]}function Mo(e,t){return e.nodes[t]}function Eo(e,t){return e.nodes[t]}function Po(e,t){return e.nodes[t]}var Io=function(){},Ro={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0};function Do(e,t,n,o){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+t+"'. Current value: '"+n+"'.";return o&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){var n=new Error(e);return No(n,t),n}(i,e)}function No(e,t){e[_e]=t,e[Ae]=t.logError.bind(t)}function jo(e){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+e)}var Lo=function(){},Uo=new Map;function Vo(e){var t=Uo.get(e);return t||(t=ee(e)+"_"+Uo.size,Uo.set(e,t)),t}function Fo(e,t,n,o){if(Gn.isWrapped(o)){o=Gn.unwrap(o);var i=e.def.nodes[t].bindingIndex+n,r=Gn.unwrap(e.oldValues[i]);e.oldValues[i]=new Gn(r)}return o}var Ko="$$undefined",Bo="$$empty";function Ho(e){return{id:Ko,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}var Wo=0;function qo(e){if(e&&e.id===Ko){var t=null!=e.encapsulation&&e.encapsulation!==L.None||e.styles.length||Object.keys(e.data).length;e.id=t?"c"+Wo++:Bo}return e&&e.id===Bo&&(e=null),e||null}function zo(e,t,n,o){return!(!(2&e.state)&&X(e.oldValues[t.bindingIndex+n],o))}function $o(e,t,n,o){return!!zo(e,t,n,o)&&(e.oldValues[t.bindingIndex+n]=o,!0)}function Go(e,t,n,o){var i=e.oldValues[t.bindingIndex+n];if(1&e.state||!$n(i,o)){var r=t.bindings[n].name;throw Do(Ro.createDebugContext(e,t.nodeIndex),r+": "+i,r+": "+o,0!=(1&e.state))}}function Yo(e){for(var t=e;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function Qo(e,t){for(var n=e;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function Jo(e,t,n,o){try{return Yo(33554432&e.def.nodes[t].flags?So(e,t).componentView:e),Ro.handleEvent(e,t,n,o)}catch(t){e.root.errorHandler.handleError(t)}}function Zo(e){return e.parent?So(e.parent,e.parentNodeDef.nodeIndex):null}function Xo(e){return e.parent?e.parentNodeDef.parent:null}function ei(e,t){switch(201347067&t.flags){case 1:return So(e,t.nodeIndex).renderElement;case 2:return Oo(e,t.nodeIndex).renderText}}function ti(e,t){return e?e+":"+t:t}function ni(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function oi(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function ii(e){return 1<<e%32}function ri(e){var t={},n=0,o={};return e&&e.forEach(function(e){var i=e[0],r=e[1];"number"==typeof i?(t[i]=r,n|=ii(i)):o[i]=r}),{matchedQueries:t,references:o,matchedQueryIds:n}}function li(e,t){return e.map(function(e){var n,o;return Array.isArray(e)?(o=e[0],n=e[1]):(o=0,n=e),n&&("function"==typeof n||"object"==typeof n)&&t&&Object.defineProperty(n,oe,{value:t,configurable:!0}),{flags:o,token:n,tokenKey:Vo(n)}})}function si(e,t,n){var o=n.renderParent;return o?0==(1&o.flags)||0==(33554432&o.flags)||o.element.componentRendererType&&o.element.componentRendererType.encapsulation===L.Native?So(e,n.renderParent.nodeIndex).renderElement:void 0:t}var ai=new WeakMap;function ui(e){var t=ai.get(e);return t||((t=e(function(){return Lo})).factory=e,ai.set(e,t)),t}function ci(e,t,n,o,i){3===t&&(n=e.renderer.parentNode(ei(e,e.def.lastRenderRootNode))),di(e,t,0,e.def.nodes.length-1,n,o,i)}function di(e,t,n,o,i,r,l){for(var s=n;s<=o;s++){var a=e.def.nodes[s];11&a.flags&&fi(e,a,t,i,r,l),s+=a.childCount}}function pi(e,t,n,o,i,r){for(var l=e;l&&!ni(l);)l=l.parent;for(var s=l.parent,a=Xo(l),u=a.nodeIndex+a.childCount,c=a.nodeIndex+1;c<=u;c++){var d=s.def.nodes[c];d.ngContentIndex===t&&fi(s,d,n,o,i,r),c+=d.childCount}if(!s.parent){var p=e.root.projectableNodes[t];if(p)for(c=0;c<p.length;c++)hi(e,p[c],n,o,i,r)}}function fi(e,t,n,o,i,r){if(8&t.flags)pi(e,t.ngContent.index,n,o,i,r);else{var l=ei(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&hi(e,l,n,o,i,r),32&t.bindingFlags&&hi(So(e,t.nodeIndex).componentView,l,n,o,i,r)):hi(e,l,n,o,i,r),16777216&t.flags)for(var s=So(e,t.nodeIndex).viewContainer._embeddedViews,a=0;a<s.length;a++)ci(s[a],n,o,i,r);1&t.flags&&!t.element.name&&di(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,o,i,r)}}function hi(e,t,n,o,i,r){var l=e.renderer;switch(n){case 1:l.appendChild(o,t);break;case 2:l.insertBefore(o,t,i);break;case 3:l.removeChild(o,t);break;case 0:r.push(t)}}var yi=/^:([^:]+):(.+)$/;function mi(e){if(":"===e[0]){var t=e.match(yi);return[t[1],t[2]]}return["",e]}function gi(e){for(var t=0,n=0;n<e.length;n++)t|=e[n].flags;return t}function vi(e,t){for(var n="",o=0;o<2*e;o+=2)n=n+t[o]+ki(t[o+1]);return n+t[2*e]}function bi(e,t,n,o,i,r,l,s,a,u,c,d,p,f,h,y,m,g,v,b){switch(e){case 1:return t+ki(n)+o;case 2:return t+ki(n)+o+ki(i)+r;case 3:return t+ki(n)+o+ki(i)+r+ki(l)+s;case 4:return t+ki(n)+o+ki(i)+r+ki(l)+s+ki(a)+u;case 5:return t+ki(n)+o+ki(i)+r+ki(l)+s+ki(a)+u+ki(c)+d;case 6:return t+ki(n)+o+ki(i)+r+ki(l)+s+ki(a)+u+ki(c)+d+ki(p)+f;case 7:return t+ki(n)+o+ki(i)+r+ki(l)+s+ki(a)+u+ki(c)+d+ki(p)+f+ki(h)+y;case 8:return t+ki(n)+o+ki(i)+r+ki(l)+s+ki(a)+u+ki(c)+d+ki(p)+f+ki(h)+y+ki(m)+g;case 9:return t+ki(n)+o+ki(i)+r+ki(l)+s+ki(a)+u+ki(c)+d+ki(p)+f+ki(h)+y+ki(m)+g+ki(v)+b;default:throw new Error("Does not support more than 9 expressions")}}function ki(e){return null!=e?e.toString():""}var _i=[],wi={};function Ai(e,t,n,o,i,r){e|=1;var l=ri(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:l.matchedQueries,matchedQueryIds:l.matchedQueryIds,references:l.references,ngContentIndex:n,childCount:o,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:r?ui(r):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||Lo},provider:null,text:null,query:null,ngContent:null}}function Ti(e,t,n,o,i,r,l,s,a,u,c,d){void 0===l&&(l=[]),u||(u=Lo);var p=ri(n),f=p.matchedQueries,h=p.references,y=p.matchedQueryIds,m=null,g=null;r&&(m=(E=mi(r))[0],g=E[1]),s=s||[];for(var v=new Array(s.length),b=0;b<s.length;b++){var k=s[b],_=k[0],w=k[2],A=mi(k[1]),T=A[0],C=A[1],x=void 0,O=void 0;switch(15&_){case 4:O=w;break;case 1:case 8:x=w}v[b]={flags:_,ns:T,name:C,nonMinifiedName:C,securityContext:x,suffix:O}}a=a||[];var S=new Array(a.length);for(b=0;b<a.length;b++){var M=a[b];S[b]={type:0,target:M[0],eventName:M[1],propName:null}}var E,P=(l=l||[]).map(function(e){var t=e[1],n=mi(e[0]);return[n[0],n[1],t]});return d=qo(d),c&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:f,matchedQueryIds:y,references:h,ngContentIndex:o,childCount:i,bindings:v,bindingFlags:gi(v),outputs:S,element:{ns:m,name:g,attrs:P,template:null,componentProvider:null,componentView:c||null,componentRendererType:d,publicProviders:null,allProviders:null,handleEvent:u||Lo},provider:null,text:null,query:null,ngContent:null}}function Ci(e,t,n){var o,i=n.element,r=e.root.selectorOrNode,l=e.renderer;if(e.parent||!r){o=i.name?l.createElement(i.name,i.ns):l.createComment("");var s=si(e,t,n);s&&l.appendChild(s,o)}else o=l.selectRootElement(r);if(i.attrs)for(var a=0;a<i.attrs.length;a++){var u=i.attrs[a];l.setAttribute(o,u[1],u[2],u[0])}return o}function xi(e,t,n,o){for(var i=0;i<n.outputs.length;i++){var r=n.outputs[i],l=Oi(e,n.nodeIndex,ti(r.target,r.eventName)),s=r.target,a=e;"component"===r.target&&(s=null,a=t);var u=a.renderer.listen(s||o,r.eventName,l);e.disposables[n.outputIndex+i]=u}}function Oi(e,t,n){return function(o){return Jo(e,t,n,o)}}function Si(e,t,n,o){if(!$o(e,t,n,o))return!1;var i=t.bindings[n],r=So(e,t.nodeIndex),l=r.renderElement,s=i.name;switch(15&i.flags){case 1:!function(e,t,n,o,i,r){var l=t.securityContext,s=l?e.root.sanitizer.sanitize(l,r):r;s=null!=s?s.toString():null;var a=e.renderer;null!=r?a.setAttribute(n,i,s,o):a.removeAttribute(n,i,o)}(e,i,l,i.ns,s,o);break;case 2:!function(e,t,n,o){var i=e.renderer;o?i.addClass(t,n):i.removeClass(t,n)}(e,l,s,o);break;case 4:!function(e,t,n,o,i){var r=e.root.sanitizer.sanitize(Ao.STYLE,i);if(null!=r){r=r.toString();var l=t.suffix;null!=l&&(r+=l)}else r=null;var s=e.renderer;null!=r?s.setStyle(n,o,r):s.removeStyle(n,o)}(e,i,l,s,o);break;case 8:!function(e,t,n,o,i){var r=t.securityContext,l=r?e.root.sanitizer.sanitize(r,i):i;e.renderer.setProperty(n,o,l)}(33554432&t.flags&&32&i.flags?r.componentView:e,i,l,s,o)}return!0}var Mi=new Object,Ei=Vo(se),Pi=Vo(Mt);function Ii(e,t,n,o){return n=ne(n),{index:-1,deps:li(o,ee(t)),flags:e,token:t,value:n}}function Ri(e){for(var t={},n=0;n<e.length;n++){var o=e[n];o.index=n,t[Vo(o.token)]=o}return{factory:null,providersByKey:t,providers:e}}function Di(e,t,n){if(void 0===n&&(n=se.THROW_IF_NOT_FOUND),8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);var o=t.tokenKey;switch(o){case Ei:case Pi:return e}var i=e._def.providersByKey[o];if(i){var r=e._providers[i.index];return void 0===r&&(r=e._providers[i.index]=Ni(e,i)),r===Mi?void 0:r}return e._parent.get(t.token,n)}function Ni(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var o=n.length;switch(o){case 0:return new t;case 1:return new t(Di(e,n[0]));case 2:return new t(Di(e,n[0]),Di(e,n[1]));case 3:return new t(Di(e,n[0]),Di(e,n[1]),Di(e,n[2]));default:for(var i=new Array(o),r=0;r<o;r++)i[r]=Di(e,n[r]);return new(t.bind.apply(t,[void 0].concat(i)))}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){var o=n.length;switch(o){case 0:return t();case 1:return t(Di(e,n[0]));case 2:return t(Di(e,n[0]),Di(e,n[1]));case 3:return t(Di(e,n[0]),Di(e,n[1]),Di(e,n[2]));default:for(var i=Array(o),r=0;r<o;r++)i[r]=Di(e,n[r]);return t.apply(void 0,i)}}(e,t.value,t.deps);break;case 2048:n=Di(e,t.deps[0]);break;case 256:n=t.value}return void 0===n?Mi:n}function ji(e,t){var n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;var o=n[t];return o.viewContainerParent=null,Fi(n,t),Ro.dirtyParentQueries(o),Ui(o),o}function Li(e,t,n){var o=t?ei(t,t.def.lastRenderRootNode):e.renderElement;ci(n,2,n.renderer.parentNode(o),n.renderer.nextSibling(o),void 0)}function Ui(e){ci(e,3,null,null,void 0)}function Vi(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Fi(e,t){t>=e.length-1?e.pop():e.splice(t,1)}var Ki=new Object;function Bi(e,t,n,o,i,r){return new Wi(e,t,n,o,i,r)}function Hi(e){return e.viewDefFactory}var Wi=function(e){function t(t,n,o,i,r,l){var s=e.call(this)||this;return s.selector=t,s.componentType=n,s._inputs=i,s._outputs=r,s.ngContentSelectors=l,s.viewDefFactory=o,s}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,o){if(!o)throw new Error("ngModule should be provided");var i=ui(this.viewDefFactory),r=i.nodes[0].element.componentProvider.nodeIndex,l=Ro.createRootView(e,t||[],n,i,o,Ki),s=Mo(l,r).instance;return n&&l.renderer.setAttribute(So(l,0).renderElement,"ng-version",V.full),new qi(l,new Yi(l),s)},t}(kt),qi=function(e){function t(t,n,o){var i=e.call(this)||this;return i._view=t,i._viewRef=n,i._component=o,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=o,i}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new Tn(So(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Xi(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewRef.destroy()},t.prototype.onDestroy=function(e){this._viewRef.onDestroy(e)},t}(bt);function zi(e,t,n){return new $i(e,t,n)}var $i=function(){function e(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}return Object.defineProperty(e.prototype,"element",{get:function(){return new Tn(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Xi(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=Xo(e),e=e.parent;return e?new Xi(e,t):new Xi(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=ji(this._data,e);Ro.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new Yi(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var o=e.createEmbeddedView(t||{});return this.insert(o,n),o},e.prototype.createComponent=function(e,t,n,o,i){var r=n||this.parentInjector;i||e instanceof St||(i=r.get(Mt));var l=e.create(r,o,void 0,i);return this.insert(l.hostView,t),l},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,o,i,r,l=e;return i=l._view,r=(n=this._data).viewContainer._embeddedViews,null!==(o=t)&&void 0!==o||(o=r.length),i.viewContainerParent=this._view,Vi(r,o,i),function(e,t){var n=Zo(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var o=n.template._projectedViews;o||(o=n.template._projectedViews=[]),o.push(t),function(e,n){if(!(4&n.flags)){t.parent.def.nodeFlags|=4,n.flags|=4;for(var o=n.parent;o;)o.childFlags|=4,o=o.parent}}(0,t.parentNodeDef)}}(n,i),Ro.dirtyParentQueries(i),Li(n,o>0?r[o-1]:null,i),l.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,o,i,r,l,s=this._embeddedViews.indexOf(e._view);return i=t,l=(r=(n=this._data).viewContainer._embeddedViews)[o=s],Fi(r,o),null==i&&(i=r.length),Vi(r,i,l),Ro.dirtyParentQueries(l),Ui(l),Li(n,i>0?r[i-1]:null,l),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=ji(this._data,e);t&&Ro.destroyView(t)},e.prototype.detach=function(e){var t=ji(this._data,e);return t?new Yi(t):null},e}();function Gi(e){return new Yi(e)}var Yi=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return ci(this._view,0,void 0,void 0,e=[]),e;var e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){Yo(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{Ro.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){Ro.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Ro.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,Ui(this._view),Ro.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}();function Qi(e,t){return new Ji(e,t)}var Ji=function(e){function t(t,n){var o=e.call(this)||this;return o._parentView=t,o._def=n,o}return Object(o.__extends)(t,e),t.prototype.createEmbeddedView=function(e){return new Yi(Ro.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new Tn(So(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(Dn);function Zi(e,t){return new Xi(e,t)}var Xi=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=se.THROW_IF_NOT_FOUND),Ro.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Vo(e)},t)},e}();function er(e,t){var n=e.def.nodes[t];if(1&n.flags){var o=So(e,n.nodeIndex);return n.element.template?o.template:o.renderElement}if(2&n.flags)return Oo(e,n.nodeIndex).renderText;if(20240&n.flags)return Mo(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function tr(e){return new nr(e.renderer)}var nr=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=mi(t),o=this.delegate.createElement(n[1],n[0]);return e&&this.delegate.appendChild(e,o),o},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n<t.length;n++)this.delegate.appendChild(e,t[n])},e.prototype.attachViewAfter=function(e,t){for(var n=this.delegate.parentNode(e),o=this.delegate.nextSibling(e),i=0;i<t.length;i++)this.delegate.insertBefore(n,t[i],o)},e.prototype.detachView=function(e){for(var t=0;t<e.length;t++){var n=e[t],o=this.delegate.parentNode(n);this.delegate.removeChild(o,n)}},e.prototype.destroyView=function(e,t){for(var n=0;n<t.length;n++)this.delegate.destroyNode(t[n])},e.prototype.listen=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.listenGlobal=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.setElementProperty=function(e,t,n){this.delegate.setProperty(e,t,n)},e.prototype.setElementAttribute=function(e,t,n){var o=mi(t),i=o[0],r=o[1];null!=n?this.delegate.setAttribute(e,r,n,i):this.delegate.removeAttribute(e,r,i)},e.prototype.setBindingDebugInfo=function(e,t,n){},e.prototype.setElementClass=function(e,t,n){n?this.delegate.addClass(e,t):this.delegate.removeClass(e,t)},e.prototype.setElementStyle=function(e,t,n){null!=n?this.delegate.setStyle(e,t,n):this.delegate.removeStyle(e,t)},e.prototype.invokeElementMethod=function(e,t,n){e[t].apply(e,n)},e.prototype.setText=function(e,t){this.delegate.setValue(e,t)},e.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},e}();function or(e,t,n,o){return new ir(e,t,n,o)}var ir=function(){function e(e,t,n,o){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=o,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){for(var t=e._def,n=e._providers=new Array(t.providers.length),o=0;o<t.providers.length;o++){var i=t.providers[o];4096&i.flags||(n[o]=Ni(e,i))}}(this)}return e.prototype.get=function(e,t){return void 0===t&&(t=se.THROW_IF_NOT_FOUND),Di(this,{token:e,tokenKey:Vo(e),flags:0},t)},Object.defineProperty(e.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentFactoryResolver",{get:function(){return this.get(xt)},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+ee(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,function(e,t){for(var n=e._def,o=0;o<n.providers.length;o++)if(131072&n.providers[o].flags){var i=e._providers[o];i&&i!==Mi&&i.ngOnDestroy()}}(this),this._destroyListeners.forEach(function(e){return e()})},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},e}(),rr=Vo(bn),lr=Vo(An),sr=Vo(Tn),ar=Vo(Nn),ur=Vo(Dn),cr=Vo(jn),dr=Vo(se);function pr(e,t,n,o,i,r,l,s){var a=[];if(l)for(var u in l){var c=l[u];a[c[0]]={flags:8,name:u,nonMinifiedName:c[1],ns:null,securityContext:null,suffix:null}}var d=[];if(s)for(var p in s)d.push({type:1,propName:p,target:null,eventName:s[p]});return yr(e,t|=16384,n,o,i,i,r,a,d)}function fr(e,t,n){return yr(-1,e|=16,null,0,t,t,n)}function hr(e,t,n,o,i){return yr(-1,e,t,0,n,o,i)}function yr(e,t,n,o,i,r,l,s,a){var u=ri(n),c=u.matchedQueries,d=u.references,p=u.matchedQueryIds;a||(a=[]),s||(s=[]),r=ne(r);var f=li(l,ee(i));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:p,references:d,ngContentIndex:-1,childCount:o,bindings:s,bindingFlags:gi(s),outputs:a,element:null,provider:{token:i,value:r,deps:f},text:null,query:null,ngContent:null}}function mr(e,t){return kr(e,t)}function gr(e,t){for(var n=e;n.parent&&!ni(n);)n=n.parent;return _r(n.parent,Xo(n),!0,t.provider.value,t.provider.deps)}function vr(e,t){var n=_r(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var o=0;o<t.outputs.length;o++){var i=t.outputs[o],r=n[i.propName].subscribe(br(e,t.parent.nodeIndex,i.eventName));e.disposables[t.outputIndex+o]=r.unsubscribe.bind(r)}return n}function br(e,t,n){return function(o){return Jo(e,t,n,o)}}function kr(e,t){var n=(8192&t.flags)>0,o=t.provider;switch(201347067&t.flags){case 512:return _r(e,t.parent,n,o.value,o.deps);case 1024:return function(e,t,n,o,i){var r=i.length;switch(r){case 0:return o();case 1:return o(Ar(e,t,n,i[0]));case 2:return o(Ar(e,t,n,i[0]),Ar(e,t,n,i[1]));case 3:return o(Ar(e,t,n,i[0]),Ar(e,t,n,i[1]),Ar(e,t,n,i[2]));default:for(var l=Array(r),s=0;s<r;s++)l[s]=Ar(e,t,n,i[s]);return o.apply(void 0,l)}}(e,t.parent,n,o.value,o.deps);case 2048:return Ar(e,t.parent,n,o.deps[0]);case 256:return o.value}}function _r(e,t,n,o,i){var r=i.length;switch(r){case 0:return new o;case 1:return new o(Ar(e,t,n,i[0]));case 2:return new o(Ar(e,t,n,i[0]),Ar(e,t,n,i[1]));case 3:return new o(Ar(e,t,n,i[0]),Ar(e,t,n,i[1]),Ar(e,t,n,i[2]));default:for(var l=new Array(r),s=0;s<r;s++)l[s]=Ar(e,t,n,i[s]);return new(o.bind.apply(o,[void 0].concat(l)))}}var wr={};function Ar(e,t,n,o,i){if(void 0===i&&(i=se.THROW_IF_NOT_FOUND),8&o.flags)return o.token;var r=e;2&o.flags&&(i=null);var l=o.tokenKey;for(l===cr&&(n=!(!t||!t.element.componentView)),t&&1&o.flags&&(n=!1,t=t.parent);e;){if(t)switch(l){case rr:return tr(Tr(e,t,n));case lr:return Tr(e,t,n).renderer;case sr:return new Tn(So(e,t.nodeIndex).renderElement);case ar:return So(e,t.nodeIndex).viewContainer;case ur:if(t.element.template)return So(e,t.nodeIndex).template;break;case cr:return Gi(Tr(e,t,n));case dr:return Zi(e,t);default:var s=(n?t.element.allProviders:t.element.publicProviders)[l];if(s){var a=Mo(e,s.nodeIndex);return a||(a={instance:kr(e,s)},e.nodes[s.nodeIndex]=a),a.instance}}n=ni(e),t=Xo(e),e=e.parent}var u=r.root.injector.get(o.token,wr);return u!==wr||i===wr?u:r.root.ngModule.injector.get(o.token,i)}function Tr(e,t,n){var o;if(n)o=So(e,t.nodeIndex).componentView;else for(o=e;o.parent&&!ni(o);)o=o.parent;return o}function Cr(e,t,n,o,i,r){if(32768&n.flags){var l=So(e,n.parent.nodeIndex).componentView;2&l.def.flags&&(l.state|=8)}if(t.instance[n.bindings[o].name]=i,524288&n.flags){r=r||{};var s=Gn.unwrap(e.oldValues[n.bindingIndex+o]);r[n.bindings[o].nonMinifiedName]=new Yn(s,i,0!=(2&e.state))}return e.oldValues[n.bindingIndex+o]=i,r}function xr(e,t){if(e.def.nodeFlags&t)for(var n=e.def.nodes,o=0,i=0;i<n.length;i++){var r=n[i],l=r.parent;for(!l&&r.flags&t&&Sr(e,i,r.flags&t,o++),0==(r.childFlags&t)&&(i+=r.childCount);l&&1&l.flags&&i===l.nodeIndex+l.childCount;)l.directChildFlags&t&&(o=Or(e,l,t,o)),l=l.parent}}function Or(e,t,n,o){for(var i=t.nodeIndex+1;i<=t.nodeIndex+t.childCount;i++){var r=e.def.nodes[i];r.flags&n&&Sr(e,i,r.flags&n,o++),i+=r.childCount}return o}function Sr(e,t,n,o){var i=Mo(e,t);if(i){var r=i.instance;r&&(Ro.setCurrentNode(e,t),1048576&n&&xo(e,512,o)&&r.ngAfterContentInit(),2097152&n&&r.ngAfterContentChecked(),4194304&n&&xo(e,768,o)&&r.ngAfterViewInit(),8388608&n&&r.ngAfterViewChecked(),131072&n&&r.ngOnDestroy())}}function Mr(e,t,n){var o=[];for(var i in n)o.push({propName:i,bindingType:n[i]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:t,filterId:ii(t),bindings:o},ngContent:null}}function Er(e){for(var t=e.def.nodeMatchedQueries;e.parent&&oi(e);){var n=e.parentNodeDef;e=e.parent;for(var o=n.nodeIndex+n.childCount,i=0;i<=o;i++)67108864&(r=e.def.nodes[i]).flags&&536870912&r.flags&&(r.query.filterId&t)===r.query.filterId&&Po(e,i).setDirty(),!(1&r.flags&&i+r.childCount<n.nodeIndex)&&67108864&r.childFlags&&536870912&r.childFlags||(i+=r.childCount)}if(134217728&e.def.nodeFlags)for(i=0;i<e.def.nodes.length;i++){var r;134217728&(r=e.def.nodes[i]).flags&&536870912&r.flags&&Po(e,i).setDirty(),i+=r.childCount}}function Pr(e,t){var n=Po(e,t.nodeIndex);if(n.dirty){var o,i=void 0;if(67108864&t.flags){var r=t.parent.parent;i=Ir(e,r.nodeIndex,r.nodeIndex+r.childCount,t.query,[]),o=Mo(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(i=Ir(e,0,e.def.nodes.length-1,t.query,[]),o=e.component);n.reset(i);for(var l=t.query.bindings,s=!1,a=0;a<l.length;a++){var u=l[a],c=void 0;switch(u.bindingType){case 0:c=n.first;break;case 1:c=n,s=!0}o[u.propName]=c}s&&n.notifyOnChanges()}}function Ir(e,t,n,o,i){for(var r=t;r<=n;r++){var l=e.def.nodes[r],s=l.matchedQueries[o.id];if(null!=s&&i.push(Rr(e,l,s)),1&l.flags&&l.element.template&&(l.element.template.nodeMatchedQueries&o.filterId)===o.filterId){var a=So(e,r);if((l.childMatchedQueries&o.filterId)===o.filterId&&(Ir(e,r+1,r+l.childCount,o,i),r+=l.childCount),16777216&l.flags)for(var u=a.viewContainer._embeddedViews,c=0;c<u.length;c++){var d=u[c],p=Zo(d);p&&p===a&&Ir(d,0,d.def.nodes.length-1,o,i)}var f=a.template._projectedViews;if(f)for(c=0;c<f.length;c++){var h=f[c];Ir(h,0,h.def.nodes.length-1,o,i)}}(l.childMatchedQueries&o.filterId)!==o.filterId&&(r+=l.childCount)}return i}function Rr(e,t,n){if(null!=n)switch(n){case 1:return So(e,t.nodeIndex).renderElement;case 0:return new Tn(So(e,t.nodeIndex).renderElement);case 2:return So(e,t.nodeIndex).template;case 3:return So(e,t.nodeIndex).viewContainer;case 4:return Mo(e,t.nodeIndex).instance}}function Dr(e,t){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:t}}}function Nr(e,t,n){var o=si(e,t,n);o&&pi(e,n.ngContent.index,1,o,null,void 0)}function jr(e,t){return Vr(128,e,new Array(t+1))}function Lr(e,t){return Vr(32,e,new Array(t))}function Ur(e,t){for(var n=Object.keys(t),o=n.length,i=new Array(o),r=0;r<o;r++){var l=n[r];i[t[l]]=l}return Vr(64,e,i)}function Vr(e,t,n){for(var o=new Array(n.length),i=0;i<n.length;i++){var r=n[i];o[i]={flags:8,name:r,ns:null,nonMinifiedName:r,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:o,bindingFlags:gi(o),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function Fr(e,t,n){for(var o=new Array(n.length-1),i=1;i<n.length;i++)o[i-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[i]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:o,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function Kr(e,t,n){var o,i=e.renderer;o=i.createText(n.text.prefix);var r=si(e,t,n);return r&&i.appendChild(r,o),{renderText:o}}function Br(e,t){return(null!=e?e.toString():"")+t.suffix}function Hr(e,t,n,o){for(var i=0,r=0,l=0,s=0,a=0,u=null,c=null,d=!1,p=!1,f=null,h=0;h<t.length;h++){var y=t[h];if(y.nodeIndex=h,y.parent=u,y.bindingIndex=i,y.outputIndex=r,y.renderParent=c,l|=y.flags,a|=y.matchedQueryIds,y.element){var m=y.element;m.publicProviders=u?u.element.publicProviders:Object.create(null),m.allProviders=m.publicProviders,d=!1,p=!1,y.element.template&&(a|=y.element.template.nodeMatchedQueries)}if(qr(u,y,t.length),i+=y.bindings.length,r+=y.outputs.length,!c&&3&y.flags&&(f=y),20224&y.flags){d||(d=!0,u.element.publicProviders=Object.create(u.element.publicProviders),u.element.allProviders=u.element.publicProviders);var g=0!=(32768&y.flags);0==(8192&y.flags)||g?u.element.publicProviders[Vo(y.provider.token)]=y:(p||(p=!0,u.element.allProviders=Object.create(u.element.publicProviders)),u.element.allProviders[Vo(y.provider.token)]=y),g&&(u.element.componentProvider=y)}if(u?(u.childFlags|=y.flags,u.directChildFlags|=y.flags,u.childMatchedQueries|=y.matchedQueryIds,y.element&&y.element.template&&(u.childMatchedQueries|=y.element.template.nodeMatchedQueries)):s|=y.flags,y.childCount>0)u=y,Wr(y)||(c=y);else for(;u&&h===u.nodeIndex+u.childCount;){var v=u.parent;v&&(v.childFlags|=u.childFlags,v.childMatchedQueries|=u.childMatchedQueries),c=(u=v)&&Wr(u)?u.renderParent:u}}return{factory:null,nodeFlags:l,rootNodeFlags:s,nodeMatchedQueries:a,flags:e,nodes:t,updateDirectives:n||Lo,updateRenderer:o||Lo,handleEvent:function(e,n,o,i){return t[n].element.handleEvent(e,o,i)},bindingCount:i,outputCount:r,lastRenderRootNode:f}}function Wr(e){return 0!=(1&e.flags)&&null===e.element.name}function qr(e,t,n){var o=t.element&&t.element.template;if(o){if(!o.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(o.lastRenderRootNode&&16777216&o.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.nodeIndex+"!")}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+t.nodeIndex+"!");if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.nodeIndex+"!");if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.nodeIndex+"!")}if(t.childCount){var i=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=i&&t.nodeIndex+t.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function zr(e,t,n,o){var i=Yr(e.root,e.renderer,e,t,n);return Qr(i,e.component,o),Jr(i),i}function $r(e,t,n){var o=Yr(e,e.renderer,null,null,t);return Qr(o,n,n),Jr(o),o}function Gr(e,t,n,o){var i,r=t.element.componentRendererType;return i=r?e.root.rendererFactory.createRenderer(o,r):e.root.renderer,Yr(e.root,i,e,t.element.componentProvider,n)}function Yr(e,t,n,o,i){var r=new Array(i.nodes.length),l=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:o,context:null,component:null,nodes:r,state:13,root:e,renderer:t,oldValues:new Array(i.bindingCount),disposables:l,initIndex:-1}}function Qr(e,t,n){e.component=t,e.context=n}function Jr(e){var t;ni(e)&&(t=So(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,o=e.nodes,i=0;i<n.nodes.length;i++){var r=n.nodes[i];Ro.setCurrentNode(e,i);var l=void 0;switch(201347067&r.flags){case 1:var s=Ci(e,t,r),a=void 0;if(33554432&r.flags){var u=ui(r.element.componentView);a=Ro.createComponentView(e,r,u,s)}xi(e,a,r,s),l={renderElement:s,componentView:a,viewContainer:null,template:r.element.template?Qi(e,r):void 0},16777216&r.flags&&(l.viewContainer=zi(e,r,l));break;case 2:l=Kr(e,t,r);break;case 512:case 1024:case 2048:case 256:(l=o[i])||4096&r.flags||(l={instance:mr(e,r)});break;case 16:l={instance:gr(e,r)};break;case 16384:(l=o[i])||(l={instance:vr(e,r)}),32768&r.flags&&Qr(So(e,r.parent.nodeIndex).componentView,l.instance,l.instance);break;case 32:case 64:case 128:l={value:void 0};break;case 67108864:case 134217728:l=new Mn;break;case 8:Nr(e,t,r),l=void 0}o[i]=l}ll(e,rl.CreateViewNodes),cl(e,201326592,268435456,0)}function Zr(e){tl(e),Ro.updateDirectives(e,1),sl(e,rl.CheckNoChanges),Ro.updateRenderer(e,1),ll(e,rl.CheckNoChanges),e.state&=-97}function Xr(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,Co(e,0,256),tl(e),Ro.updateDirectives(e,0),sl(e,rl.CheckAndUpdate),cl(e,67108864,536870912,0);var t=Co(e,256,512);xr(e,2097152|(t?1048576:0)),Ro.updateRenderer(e,0),ll(e,rl.CheckAndUpdate),cl(e,134217728,536870912,0),xr(e,8388608|((t=Co(e,512,768))?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,Co(e,768,1024)}function el(e,t,n,o,i,r,l,s,a,u,c,d,p){return 0===n?function(e,t,n,o,i,r,l,s,a,u,c,d){switch(201347067&t.flags){case 1:return function(e,t,n,o,i,r,l,s,a,u,c,d){var p=t.bindings.length,f=!1;return p>0&&Si(e,t,0,n)&&(f=!0),p>1&&Si(e,t,1,o)&&(f=!0),p>2&&Si(e,t,2,i)&&(f=!0),p>3&&Si(e,t,3,r)&&(f=!0),p>4&&Si(e,t,4,l)&&(f=!0),p>5&&Si(e,t,5,s)&&(f=!0),p>6&&Si(e,t,6,a)&&(f=!0),p>7&&Si(e,t,7,u)&&(f=!0),p>8&&Si(e,t,8,c)&&(f=!0),p>9&&Si(e,t,9,d)&&(f=!0),f}(e,t,n,o,i,r,l,s,a,u,c,d);case 2:return function(e,t,n,o,i,r,l,s,a,u,c,d){var p=!1,f=t.bindings,h=f.length;if(h>0&&$o(e,t,0,n)&&(p=!0),h>1&&$o(e,t,1,o)&&(p=!0),h>2&&$o(e,t,2,i)&&(p=!0),h>3&&$o(e,t,3,r)&&(p=!0),h>4&&$o(e,t,4,l)&&(p=!0),h>5&&$o(e,t,5,s)&&(p=!0),h>6&&$o(e,t,6,a)&&(p=!0),h>7&&$o(e,t,7,u)&&(p=!0),h>8&&$o(e,t,8,c)&&(p=!0),h>9&&$o(e,t,9,d)&&(p=!0),p){var y=t.text.prefix;h>0&&(y+=Br(n,f[0])),h>1&&(y+=Br(o,f[1])),h>2&&(y+=Br(i,f[2])),h>3&&(y+=Br(r,f[3])),h>4&&(y+=Br(l,f[4])),h>5&&(y+=Br(s,f[5])),h>6&&(y+=Br(a,f[6])),h>7&&(y+=Br(u,f[7])),h>8&&(y+=Br(c,f[8])),h>9&&(y+=Br(d,f[9]));var m=Oo(e,t.nodeIndex).renderText;e.renderer.setValue(m,y)}return p}(e,t,n,o,i,r,l,s,a,u,c,d);case 16384:return function(e,t,n,o,i,r,l,s,a,u,c,d){var p=Mo(e,t.nodeIndex),f=p.instance,h=!1,y=void 0,m=t.bindings.length;return m>0&&zo(e,t,0,n)&&(h=!0,y=Cr(e,p,t,0,n,y)),m>1&&zo(e,t,1,o)&&(h=!0,y=Cr(e,p,t,1,o,y)),m>2&&zo(e,t,2,i)&&(h=!0,y=Cr(e,p,t,2,i,y)),m>3&&zo(e,t,3,r)&&(h=!0,y=Cr(e,p,t,3,r,y)),m>4&&zo(e,t,4,l)&&(h=!0,y=Cr(e,p,t,4,l,y)),m>5&&zo(e,t,5,s)&&(h=!0,y=Cr(e,p,t,5,s,y)),m>6&&zo(e,t,6,a)&&(h=!0,y=Cr(e,p,t,6,a,y)),m>7&&zo(e,t,7,u)&&(h=!0,y=Cr(e,p,t,7,u,y)),m>8&&zo(e,t,8,c)&&(h=!0,y=Cr(e,p,t,8,c,y)),m>9&&zo(e,t,9,d)&&(h=!0,y=Cr(e,p,t,9,d,y)),y&&f.ngOnChanges(y),65536&t.flags&&xo(e,256,t.nodeIndex)&&f.ngOnInit(),262144&t.flags&&f.ngDoCheck(),h}(e,t,n,o,i,r,l,s,a,u,c,d);case 32:case 64:case 128:return function(e,t,n,o,i,r,l,s,a,u,c,d){var p=t.bindings,f=!1,h=p.length;if(h>0&&$o(e,t,0,n)&&(f=!0),h>1&&$o(e,t,1,o)&&(f=!0),h>2&&$o(e,t,2,i)&&(f=!0),h>3&&$o(e,t,3,r)&&(f=!0),h>4&&$o(e,t,4,l)&&(f=!0),h>5&&$o(e,t,5,s)&&(f=!0),h>6&&$o(e,t,6,a)&&(f=!0),h>7&&$o(e,t,7,u)&&(f=!0),h>8&&$o(e,t,8,c)&&(f=!0),h>9&&$o(e,t,9,d)&&(f=!0),f){var y=Eo(e,t.nodeIndex),m=void 0;switch(201347067&t.flags){case 32:m=new Array(p.length),h>0&&(m[0]=n),h>1&&(m[1]=o),h>2&&(m[2]=i),h>3&&(m[3]=r),h>4&&(m[4]=l),h>5&&(m[5]=s),h>6&&(m[6]=a),h>7&&(m[7]=u),h>8&&(m[8]=c),h>9&&(m[9]=d);break;case 64:m={},h>0&&(m[p[0].name]=n),h>1&&(m[p[1].name]=o),h>2&&(m[p[2].name]=i),h>3&&(m[p[3].name]=r),h>4&&(m[p[4].name]=l),h>5&&(m[p[5].name]=s),h>6&&(m[p[6].name]=a),h>7&&(m[p[7].name]=u),h>8&&(m[p[8].name]=c),h>9&&(m[p[9].name]=d);break;case 128:var g=n;switch(h){case 1:m=g.transform(n);break;case 2:m=g.transform(o);break;case 3:m=g.transform(o,i);break;case 4:m=g.transform(o,i,r);break;case 5:m=g.transform(o,i,r,l);break;case 6:m=g.transform(o,i,r,l,s);break;case 7:m=g.transform(o,i,r,l,s,a);break;case 8:m=g.transform(o,i,r,l,s,a,u);break;case 9:m=g.transform(o,i,r,l,s,a,u,c);break;case 10:m=g.transform(o,i,r,l,s,a,u,c,d)}}y.value=m}return f}(e,t,n,o,i,r,l,s,a,u,c,d);default:throw"unreachable"}}(e,t,o,i,r,l,s,a,u,c,d,p):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var o=!1,i=0;i<n.length;i++)Si(e,t,i,n[i])&&(o=!0);return o}(e,t,n);case 2:return function(e,t,n){for(var o=t.bindings,i=!1,r=0;r<n.length;r++)$o(e,t,r,n[r])&&(i=!0);if(i){var l="";for(r=0;r<n.length;r++)l+=Br(n[r],o[r]);l=t.text.prefix+l;var s=Oo(e,t.nodeIndex).renderText;e.renderer.setValue(s,l)}return i}(e,t,n);case 16384:return function(e,t,n){for(var o=Mo(e,t.nodeIndex),i=o.instance,r=!1,l=void 0,s=0;s<n.length;s++)zo(e,t,s,n[s])&&(r=!0,l=Cr(e,o,t,s,n[s],l));return l&&i.ngOnChanges(l),65536&t.flags&&xo(e,256,t.nodeIndex)&&i.ngOnInit(),262144&t.flags&&i.ngDoCheck(),r}(e,t,n);case 32:case 64:case 128:return function(e,t,n){for(var o=t.bindings,i=!1,r=0;r<n.length;r++)$o(e,t,r,n[r])&&(i=!0);if(i){var l=Eo(e,t.nodeIndex),s=void 0;switch(201347067&t.flags){case 32:s=n;break;case 64:for(s={},r=0;r<n.length;r++)s[o[r].name]=n[r];break;case 128:var a=n[0],u=n.slice(1);s=a.transform.apply(a,u)}l.value=s}return i}(e,t,n);default:throw"unreachable"}}(e,t,o)}function tl(e){var t=e.def;if(4&t.nodeFlags)for(var n=0;n<t.nodes.length;n++){var o=t.nodes[n];if(4&o.flags){var i=So(e,n).template._projectedViews;if(i)for(var r=0;r<i.length;r++){var l=i[r];l.state|=32,Qo(l,e)}}else 0==(4&o.childFlags)&&(n+=o.childCount)}}function nl(e,t,n,o,i,r,l,s,a,u,c,d,p){return 0===n?function(e,t,n,o,i,r,l,s,a,u,c,d){var p=t.bindings.length;p>0&&Go(e,t,0,n),p>1&&Go(e,t,1,o),p>2&&Go(e,t,2,i),p>3&&Go(e,t,3,r),p>4&&Go(e,t,4,l),p>5&&Go(e,t,5,s),p>6&&Go(e,t,6,a),p>7&&Go(e,t,7,u),p>8&&Go(e,t,8,c),p>9&&Go(e,t,9,d)}(e,t,o,i,r,l,s,a,u,c,d,p):function(e,t,n){for(var o=0;o<n.length;o++)Go(e,t,o,n[o])}(e,t,o),!1}function ol(e,t){if(Po(e,t.nodeIndex).dirty)throw Do(Ro.createDebugContext(e,t.nodeIndex),"Query "+t.query.id+" not dirty","Query "+t.query.id+" dirty",0!=(1&e.state))}function il(e){if(!(128&e.state)){if(sl(e,rl.Destroy),ll(e,rl.Destroy),xr(e,131072),e.disposables)for(var t=0;t<e.disposables.length;t++)e.disposables[t]();!function(e){if(16&e.state){var t=Zo(e);if(t){var n=t.template._projectedViews;n&&(Fi(n,n.indexOf(e)),Ro.dirtyParentQueries(e))}}}(e),e.renderer.destroyNode&&function(e){for(var t=e.def.nodes.length,n=0;n<t;n++){var o=e.def.nodes[n];1&o.flags?e.renderer.destroyNode(So(e,n).renderElement):2&o.flags?e.renderer.destroyNode(Oo(e,n).renderText):(67108864&o.flags||134217728&o.flags)&&Po(e,n).destroy()}}(e),ni(e)&&e.renderer.destroy(),e.state|=128}}var rl=function(){var e={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};return e[e.CreateViewNodes]="CreateViewNodes",e[e.CheckNoChanges]="CheckNoChanges",e[e.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",e[e.CheckAndUpdate]="CheckAndUpdate",e[e.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",e[e.Destroy]="Destroy",e}();function ll(e,t){var n=e.def;if(33554432&n.nodeFlags)for(var o=0;o<n.nodes.length;o++){var i=n.nodes[o];33554432&i.flags?al(So(e,o).componentView,t):0==(33554432&i.childFlags)&&(o+=i.childCount)}}function sl(e,t){var n=e.def;if(16777216&n.nodeFlags)for(var o=0;o<n.nodes.length;o++){var i=n.nodes[o];if(16777216&i.flags)for(var r=So(e,o).viewContainer._embeddedViews,l=0;l<r.length;l++)al(r[l],t);else 0==(16777216&i.childFlags)&&(o+=i.childCount)}}function al(e,t){var n=e.state;switch(t){case rl.CheckNoChanges:0==(128&n)&&(12==(12&n)?Zr(e):64&n&&ul(e,rl.CheckNoChangesProjectedViews));break;case rl.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?Zr(e):64&n&&ul(e,t));break;case rl.CheckAndUpdate:0==(128&n)&&(12==(12&n)?Xr(e):64&n&&ul(e,rl.CheckAndUpdateProjectedViews));break;case rl.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?Xr(e):64&n&&ul(e,t));break;case rl.Destroy:il(e);break;case rl.CreateViewNodes:Jr(e)}}function ul(e,t){sl(e,t),ll(e,t)}function cl(e,t,n,o){if(e.def.nodeFlags&t&&e.def.nodeFlags&n)for(var i=e.def.nodes.length,r=0;r<i;r++){var l=e.def.nodes[r];if(l.flags&t&&l.flags&n)switch(Ro.setCurrentNode(e,l.nodeIndex),o){case 0:Pr(e,l);break;case 1:ol(e,l)}l.childFlags&t&&l.childFlags&n||(r+=l.childCount)}}var dl=!1;function pl(){if(!dl){dl=!0;var e=ln()?{setCurrentNode:Dl,createRootView:hl,createEmbeddedView:ml,createComponentView:gl,createNgModuleRef:vl,overrideProvider:_l,overrideComponentView:wl,clearOverrides:Al,checkAndUpdateView:Ol,checkNoChangesView:Sl,destroyView:Ml,createDebugContext:function(e,t){return new Wl(e,t)},handleEvent:Nl,updateDirectives:jl,updateRenderer:Ll}:{setCurrentNode:function(){},createRootView:fl,createEmbeddedView:zr,createComponentView:Gr,createNgModuleRef:or,overrideProvider:Lo,overrideComponentView:Lo,clearOverrides:Lo,checkAndUpdateView:Xr,checkNoChangesView:Zr,destroyView:il,createDebugContext:function(e,t){return new Wl(e,t)},handleEvent:function(e,t,n,o){return e.def.handleEvent(e,t,n,o)},updateDirectives:function(e,t){return e.def.updateDirectives(0===t?Cl:xl,e)},updateRenderer:function(e,t){return e.def.updateRenderer(0===t?Cl:xl,e)}};Ro.setCurrentNode=e.setCurrentNode,Ro.createRootView=e.createRootView,Ro.createEmbeddedView=e.createEmbeddedView,Ro.createComponentView=e.createComponentView,Ro.createNgModuleRef=e.createNgModuleRef,Ro.overrideProvider=e.overrideProvider,Ro.overrideComponentView=e.overrideComponentView,Ro.clearOverrides=e.clearOverrides,Ro.checkAndUpdateView=e.checkAndUpdateView,Ro.checkNoChangesView=e.checkNoChangesView,Ro.destroyView=e.destroyView,Ro.resolveDep=Ar,Ro.createDebugContext=e.createDebugContext,Ro.handleEvent=e.handleEvent,Ro.updateDirectives=e.updateDirectives,Ro.updateRenderer=e.updateRenderer,Ro.dirtyParentQueries=Er}}function fl(e,t,n,o,i,r){return $r(yl(e,i,i.injector.get(_n),t,n),o,r)}function hl(e,t,n,o,i,r){var l=i.injector.get(_n),s=yl(e,i,new Gl(l),t,n),a=Tl(o);return zl(Rl.create,$r,null,[s,a,r])}function yl(e,t,n,o,i){var r=t.injector.get(To),l=t.injector.get(Oe);return{ngModule:t,injector:e,projectableNodes:o,selectorOrNode:i,sanitizer:r,rendererFactory:n,renderer:n.createRenderer(null,null),errorHandler:l}}function ml(e,t,n,o){var i=Tl(n);return zl(Rl.create,zr,null,[e,t,i,o])}function gl(e,t,n,o){return n=kl.get(t.element.componentProvider.provider.token)||Tl(n),zl(Rl.create,Gr,null,[e,t,n,o])}function vl(e,t,n,o){return or(e,t,n,function(e){var t=function(e){var t=!1,n=!1;return 0===bl.size?{hasOverrides:t,hasDeprecatedOverrides:n}:(e.providers.forEach(function(e){var o=bl.get(e.token);3840&e.flags&&o&&(t=!0,n=n||o.deprecatedBehavior)}),{hasOverrides:t,hasDeprecatedOverrides:n})}(e),n=t.hasDeprecatedOverrides;return t.hasOverrides?(function(e){for(var t=0;t<e.providers.length;t++){var o=e.providers[t];n&&(o.flags|=4096);var i=bl.get(o.token);i&&(o.flags=-3841&o.flags|i.flags,o.deps=li(i.deps),o.value=i.value)}}(e=e.factory(function(){return Lo})),e):e}(o))}var bl=new Map,kl=new Map;function _l(e){bl.set(e.token,e)}function wl(e,t){var n=ui(ui(Hi(t)).nodes[0].element.componentView);kl.set(e,n)}function Al(){bl.clear(),kl.clear()}function Tl(e){if(0===bl.size)return e;var t=function(e){for(var t=[],n=null,o=0;o<e.nodes.length;o++){var i=e.nodes[o];1&i.flags&&(n=i),n&&3840&i.flags&&bl.has(i.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(function(){return Lo});for(var n=0;n<t.length;n++)o(e,t[n]);return e;function o(e,t){for(var n=t+1;n<e.nodes.length;n++){var o=e.nodes[n];if(1&o.flags)return;if(3840&o.flags){var i=o.provider,r=bl.get(i.token);r&&(o.flags=-3841&o.flags|r.flags,i.deps=li(r.deps),i.value=r.value)}}}}function Cl(e,t,n,o,i,r,l,s,a,u,c,d,p){var f=e.def.nodes[t];return el(e,f,n,o,i,r,l,s,a,u,c,d,p),224&f.flags?Eo(e,t).value:void 0}function xl(e,t,n,o,i,r,l,s,a,u,c,d,p){var f=e.def.nodes[t];return nl(e,f,n,o,i,r,l,s,a,u,c,d,p),224&f.flags?Eo(e,t).value:void 0}function Ol(e){return zl(Rl.detectChanges,Xr,null,[e])}function Sl(e){return zl(Rl.checkNoChanges,Zr,null,[e])}function Ml(e){return zl(Rl.destroy,il,null,[e])}var El,Pl,Il,Rl=function(){var e={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};return e[e.create]="create",e[e.detectChanges]="detectChanges",e[e.checkNoChanges]="checkNoChanges",e[e.destroy]="destroy",e[e.handleEvent]="handleEvent",e}();function Dl(e,t){Pl=e,Il=t}function Nl(e,t,n,o){return Dl(e,t),zl(Rl.handleEvent,e.def.handleEvent,null,[e,t,n,o])}function jl(e,t){if(128&e.state)throw jo(Rl[El]);return Dl(e,Bl(e,0)),e.def.updateDirectives(function(e,n,o){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r];var l=e.def.nodes[n];return 0===t?Ul(e,l,o,i):Vl(e,l,o,i),16384&l.flags&&Dl(e,Bl(e,n)),224&l.flags?Eo(e,l.nodeIndex).value:void 0},e)}function Ll(e,t){if(128&e.state)throw jo(Rl[El]);return Dl(e,Hl(e,0)),e.def.updateRenderer(function(e,n,o){for(var i=[],r=3;r<arguments.length;r++)i[r-3]=arguments[r];var l=e.def.nodes[n];return 0===t?Ul(e,l,o,i):Vl(e,l,o,i),3&l.flags&&Dl(e,Hl(e,n)),224&l.flags?Eo(e,l.nodeIndex).value:void 0},e)}function Ul(e,t,n,o){if(el.apply(void 0,[e,t,n].concat(o))){var i=1===n?o[0]:o;if(16384&t.flags){for(var r={},l=0;l<t.bindings.length;l++){var s=t.bindings[l],a=i[l];8&s.flags&&(r[(p=s.nonMinifiedName,"ng-reflect-"+(p=p.replace(/[$@]/g,"_").replace(Fl,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return"-"+e[1].toLowerCase()})))]=Kl(a))}var u=t.parent,c=So(e,u.nodeIndex).renderElement;if(u.element.name)for(var d in r)null!=(a=r[d])?e.renderer.setAttribute(c,d,a):e.renderer.removeAttribute(c,d);else e.renderer.setValue(c,"bindings="+JSON.stringify(r,null,2))}}var p}function Vl(e,t,n,o){nl.apply(void 0,[e,t,n].concat(o))}var Fl=/([A-Z])/g;function Kl(e){try{return null!=e?e.toString().slice(0,30):e}catch(e){return"[ERROR] Exception while trying to serialize the value"}}function Bl(e,t){for(var n=t;n<e.def.nodes.length;n++){var o=e.def.nodes[n];if(16384&o.flags&&o.bindings&&o.bindings.length)return n}return null}function Hl(e,t){for(var n=t;n<e.def.nodes.length;n++){var o=e.def.nodes[n];if(3&o.flags&&o.bindings&&o.bindings.length)return n}return null}var Wl=function(){function e(e,t){this.view=e,this.nodeIndex=t,null==t&&(this.nodeIndex=t=0),this.nodeDef=e.def.nodes[t];for(var n=this.nodeDef,o=e;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&o;)n=Xo(o),o=o.parent;this.elDef=n,this.elView=o}return Object.defineProperty(e.prototype,"elOrCompView",{get:function(){return So(this.elView,this.elDef.nodeIndex).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return Zi(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){var e=[];if(this.elDef)for(var t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];20224&n.flags&&e.push(n.provider.token),t+=n.childCount}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){var e={};if(this.elDef){ql(this.elView,this.elDef,e);for(var t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];20224&n.flags&&ql(this.elView,n,e),t+=n.childCount}}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentRenderElement",{get:function(){var e=function(e){for(;e&&!ni(e);)e=e.parent;return e.parent?So(e.parent,Xo(e).nodeIndex):null}(this.elOrCompView);return e?e.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?ei(this.view,this.nodeDef):ei(this.elView,this.elDef)},enumerable:!0,configurable:!0}),e.prototype.logError=function(e){for(var t,n,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];2&this.nodeDef.flags?(t=this.view.def,n=this.nodeDef.nodeIndex):(t=this.elView.def,n=this.elDef.nodeIndex);var r=function(e,t){for(var n=-1,o=0;o<=t;o++)3&e.nodes[o].flags&&n++;return n}(t,n),l=-1;t.factory(function(){return++l===r?(t=e.error).bind.apply(t,[e].concat(o)):Lo;var t}),l<r&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error.apply(e,o))},e}();function ql(e,t,n){for(var o in t.references)n[o]=Rr(e,t,t.references[o])}function zl(e,t,n,o){var i=El,r=Pl,l=Il;try{El=e;var s=t.apply(n,o);return Pl=r,Il=l,El=i,s}catch(e){if(Te(e)||!Pl)throw e;throw function(e,t){return e instanceof Error||(e=new Error(e.toString())),No(e,t),e}(e,$l())}}function $l(){return Pl?new Wl(Pl,Il):null}var Gl=function(){function e(e){this.delegate=e}return e.prototype.createRenderer=function(e,t){return new Yl(this.delegate.createRenderer(e,t))},e.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},e.prototype.end=function(){this.delegate.end&&this.delegate.end()},e.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},e}(),Yl=function(){function e(e){this.delegate=e,this.data=this.delegate.data}return e.prototype.destroyNode=function(e){!function(e){Wn.delete(e.nativeNode)}(qn(e)),this.delegate.destroyNode&&this.delegate.destroyNode(e)},e.prototype.destroy=function(){this.delegate.destroy()},e.prototype.createElement=function(e,t){var n=this.delegate.createElement(e,t),o=$l();if(o){var i=new Fn(n,null,o);i.name=e,zn(i)}return n},e.prototype.createComment=function(e){var t=this.delegate.createComment(e),n=$l();return n&&zn(new Vn(t,null,n)),t},e.prototype.createText=function(e){var t=this.delegate.createText(e),n=$l();return n&&zn(new Vn(t,null,n)),t},e.prototype.appendChild=function(e,t){var n=qn(e),o=qn(t);n&&o&&n instanceof Fn&&n.addChild(o),this.delegate.appendChild(e,t)},e.prototype.insertBefore=function(e,t,n){var o=qn(e),i=qn(t),r=qn(n);o&&i&&o instanceof Fn&&o.insertBefore(r,i),this.delegate.insertBefore(e,t,n)},e.prototype.removeChild=function(e,t){var n=qn(e),o=qn(t);n&&o&&n instanceof Fn&&n.removeChild(o),this.delegate.removeChild(e,t)},e.prototype.selectRootElement=function(e){var t=this.delegate.selectRootElement(e),n=$l();return n&&zn(new Fn(t,null,n)),t},e.prototype.setAttribute=function(e,t,n,o){var i=qn(e);i&&i instanceof Fn&&(i.attributes[o?o+":"+t:t]=n),this.delegate.setAttribute(e,t,n,o)},e.prototype.removeAttribute=function(e,t,n){var o=qn(e);o&&o instanceof Fn&&(o.attributes[n?n+":"+t:t]=null),this.delegate.removeAttribute(e,t,n)},e.prototype.addClass=function(e,t){var n=qn(e);n&&n instanceof Fn&&(n.classes[t]=!0),this.delegate.addClass(e,t)},e.prototype.removeClass=function(e,t){var n=qn(e);n&&n instanceof Fn&&(n.classes[t]=!1),this.delegate.removeClass(e,t)},e.prototype.setStyle=function(e,t,n,o){var i=qn(e);i&&i instanceof Fn&&(i.styles[t]=n),this.delegate.setStyle(e,t,n,o)},e.prototype.removeStyle=function(e,t,n){var o=qn(e);o&&o instanceof Fn&&(o.styles[t]=null),this.delegate.removeStyle(e,t,n)},e.prototype.setProperty=function(e,t,n){var o=qn(e);o&&o instanceof Fn&&(o.properties[t]=n),this.delegate.setProperty(e,t,n)},e.prototype.listen=function(e,t,n){if("string"!=typeof e){var o=qn(e);o&&o.listeners.push(new function(e,t){this.name=e,this.callback=t}(t,n))}return this.delegate.listen(e,t,n)},e.prototype.parentNode=function(e){return this.delegate.parentNode(e)},e.prototype.nextSibling=function(e){return this.delegate.nextSibling(e)},e.prototype.setValue=function(e,t){return this.delegate.setValue(e,t)},e}();function Ql(e){return pl(),Ro.overrideProvider(e)}function Jl(e,t){return pl(),Ro.overrideComponentView(e,t)}function Zl(){return pl(),Ro.clearOverrides()}function Xl(e,t,n){return new es(e,t,n)}var es=function(e){function t(t,n,o){var i=e.call(this)||this;return i.moduleType=t,i._bootstrapComponents=n,i._ngModuleDefFactory=o,i}return Object(o.__extends)(t,e),t.prototype.create=function(e){pl();var t=ui(this._ngModuleDefFactory);return Ro.createNgModuleRef(this.moduleType,e||se.NULL,this._bootstrapComponents,t)},t}(Et);function ts(e){return"string"==typeof e?'"'+e+'"':""+e}function ns(e,t,n,o){e!=t&&rs(e,t,n,"==",o)}function os(e,t){is(e,null,t)}function is(e,t,n){e==t&&rs(e,t,n,"!=")}function rs(e,t,n,o,i){throw void 0===i&&(i=ts),new Error("ASSERT: expected "+n+" "+o+" "+i(t)+" but was "+i(e)+"!")}function ls(e,t){is(e,null,"node"),ns(3&e.flags,t,"Node.type",ss)}function ss(e){return 1==e?"Projection":0==e?"Container":2==e?"View":3==e?"Element":"??? "+e+" ???"}function as(e,t,n,o){ngDevMode&&ls(e,0),ngDevMode&&ls(t,2);var i=function(e){for(var t=e;t;){ngDevMode&&ls(t,0);var n=t.data.renderParent;if(null!==n)return n.native;var o=t.parent;if(ngDevMode&&os(o,"container.parent"),3==(3&o.flags))return null;ngDevMode&&ls(o,2),t=o.parent}return null}(e),r=t.child;if(i)for(;r;){var l=3&r.flags,s=null,a=e.view.renderer,u=a.listen;if(3===l)n?u?a.insertBefore(i,r.native,o):i.insertBefore(r.native,o,!0):u?a.removeChild(i,r.native):i.removeChild(r.native),s=r.next;else if(0===l){var c=r.data;n?u?a.appendChild(i,r.native):i.appendChild(r.native):u?a.removeChild(i,r.native):i.removeChild(r.native),s=c.views.length?c.views[0].child:null}else s=1===l?r.data[0]:r.child;if(null===s){for(;r&&!r.next;)(r=r.parent)===t&&(r=null);r=r&&r.next}else r=s}}function us(e,t){var n=e.data.views,o=n[t];return t>0&&cs(n[t-1],o.next),n.splice(t,1),function(e){for(var t=e;t;){var n=null;if(t.views&&t.views.length?n=t.views[0].data:t.child?n=t.child:t.next&&(ps(t),n=t.next),null==n){for(;t&&!t.next;)ps(t),t=ds(t,e);ps(t||e),n=t&&t.next}t=n}}(o.data),as(e,o,!1),e.query&&e.query.removeView(e,o,t),o}function cs(e,t){e.next=t,e.data.next=t?t.data:null}function ds(e,t){var n;return(n=e.node)&&2==(3&n.flags)?n.parent.data:e.parent===t?null:e.parent}function ps(e){if(e.cleanup){for(var t=e.cleanup,n=0;n<t.length-1;n+=2)"string"==typeof t[n]?(t[n+1].removeEventListener(t[n],t[n+2],t[n+3]),n+=2):t[n].call(t[n+1]);e.cleanup=null}}function fs(e,t,n){if(null!==t&&3==(3&e.flags)&&(e.view!==n||null===e.data)){var o=n.renderer;return o.listen?o.appendChild(e.native,t):e.native.appendChild(t),!0}return!1}function hs(e){return"function"==typeof e?e.name||e:"string"==typeof e?e:null==e?"":""+e}"undefined"==typeof ngDevMode&&("undefined"!=typeof window&&(window.ngDevMode=!0),"undefined"!=typeof self&&(self.ngDevMode=!0),"undefined"!=typeof e&&(e.ngDevMode=!0));var ys,ms,gs,vs,bs,ks,_s,ws,As,Ts,Cs,xs=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),Os={createRenderer:function(e,t){return document}},Ss="__ngHostLNode__";function Ms(e,t){var n=ks;return As=e.data,Ts=e.bindingStartIndex||0,bs=e.ngStaticData,ws=e.creationMode,Cs=e.viewHookStartIndex,ys=e.renderer,null!=t&&(gs=t,vs=!0),ks=e,n}function Es(e){!function(){if(null!=Cs){for(var e=Cs,t=e;e<As.length;)As[e+1].call(As[e+2]),16===As[e]&&(t<e&&(As[t]=As[e],As[t+1]=As[e+1],As[t+2]=As[e+2]),t+=3),e+=3;As.length=t}}(),Ms(e,null)}function Ps(e,t,n){return{parent:ks,id:e,node:null,data:[],ngStaticData:n,cleanup:null,renderer:t,child:null,tail:null,next:null,bindingStartIndex:null,creationMode:!0,viewHookStartIndex:null}}function Is(e,t,n,o){var i=vs?gs:gs&&gs.parent,r=(vs?_s:gs&&gs.query)||i&&i.query&&i.query.child(),l=null!=o,s={flags:t,native:n,view:ks,parent:i,child:null,next:null,nodeInjector:i?i.nodeInjector:null,data:l?o:null,query:r,staticData:null};return 2==(2&t)&&l&&(ngDevMode&&ns(o.node,null,"viewState.node"),o.node=s),null!=e&&(ngDevMode&&ns(As.length,e,"data.length not in sequence"),As[e]=s,e>=bs.length?bs[e]=null:s.staticData=bs[e],vs?(_s=null,gs.view!==ks&&2!=(3&gs.flags)||(ngDevMode&&ns(gs.child,null,"previousNode.child"),gs.child=s)):gs&&(ngDevMode&&ns(gs.next,null,"previousNode.next"),gs.next=s)),gs=s,vs=!0,s}function Rs(e,t,n,o){var i,r;if(null==t){var l=As[e];r=l&&l.native}else{ngDevMode&&ns(ks.bindingStartIndex,null,"bindingStartIndex");var s="string"!=typeof t,a=s?t.tag:t;if(null===a)throw"for now name is required";r=ys.createElement(a);var u=null;if(s){var c=Ds(t.template);u=Js(Ps(-1,ms.createRenderer(r,t.rendererType),c))}null==(i=Is(e,3,r,u)).staticData&&(ngDevMode&&na(e-1),i.staticData=bs[e]=Vs(a,n||null,null,o||null)),n&&function(e,t){ngDevMode&&ns(t.length%2,0,"attrs.length % 2");for(var n=ys.setAttribute,o=0;o<t.length;o+=2)n?ys.setAttribute(e,t[o],t[1|o]):e.setAttribute(t[o],t[1|o])}(r,n),fs(i.parent,r,ks)}return r}function Ds(e){return e.ngStaticData||(e.ngStaticData=[])}function Ns(e,t){return new Error("Renderer: "+e+" ["+hs(t)+"]")}function js(e,t){ngDevMode&&na(-1),ms=e;var n=e.createRenderer(null,null),o="string"==typeof t?n.selectRootElement?n.selectRootElement(t):n.querySelector(t):t;if(ngDevMode&&!o)throw Ns("string"==typeof t?"Host node with selector not found:":"Host node is required:",t);return o}function Ls(){vs?vs=!1:(ngDevMode&&ta(),gs=gs.parent),ngDevMode&&ls(gs,3);var e=gs.query;e&&e.addNode(gs)}function Us(e,t,n){if(n!==Zs){var o=As[e],i=o.staticData;void 0===i.inputs&&(i.inputs=null,i=function(e,t,n){void 0===n&&(n=!1);for(var o=e>>12,i=o,r=o+((4092&e)>>2);i<r;i++){var l=bs[i],s=n?l.inputs:l.outputs;for(var a in s)if(s.hasOwnProperty(a)){var u=s[a],c=n?t.inputs||(t.inputs={}):t.outputs||(t.outputs={});c.hasOwnProperty(a)?c[a].push(i,u):c[a]=[i,u]}}return t}(o.flags,i,!0));var r,l=i.inputs;if(l&&(r=l[t]))!function(e,t){for(var n=0;n<e.length;n+=2)ngDevMode&&na(e[n]),As[e[n]][e[1|n]]=t}(r,n);else{var s=o.native;ys.setProperty?ys.setProperty(s,t,n):s.setProperty?s.setProperty(t,n):s[t]=n}}}function Vs(e,t,n,o){return{tagName:e,attrs:t,localNames:o?[o,-1]:null,initialInputs:void 0,inputs:void 0,outputs:void 0,containerStatic:n}}function Fs(e,t,n,o){if(n!==Zs){var i=As[e];null==n?ys.removeStyle?ys.removeStyle(i.native,t,xs.DashCase):i.native.style.removeProperty(t):ys.setStyle?ys.setStyle(i.native,t,o?hs(n)+o:hs(n),xs.DashCase):i.native.style.setProperty(t,o?hs(n)+o:hs(n))}}function Ks(e,t){ngDevMode&&ns(ks.bindingStartIndex,null,"bindingStartIndex");var n=null!=t?ys.createText?ys.createText(hs(t)):ys.createTextNode(hs(t)):null,o=Is(e,3,n);vs=!1,fs(o.parent,n,ks)}function Bs(e,t){var n=e<As.length&&As[e];n&&n.native?t!==Zs&&(ys.setValue?ys.setValue(n.native,hs(t)):n.native.textContent=hs(t)):n?(n.native=ys.createText?ys.createText(hs(t)):ys.createTextNode(hs(t)),function(e,t){var n=e.parent;if(3==(3&n.flags)&&(n.view!==t||null===n.data)){for(var o=e.next,i=null;o&&null===(i=o.native);)o=o.next;var r=t.renderer;r.listen?r.insertBefore(n.native,e.native,i):n.native.insertBefore(e.native,i,!1)}}(n,ks)):Ks(e,t)}function Hs(e,t,n,o){var i;if(null==t)ngDevMode&&na(e),i=As[e];else{ngDevMode&&ns(ks.bindingStartIndex,null,"bindingStartIndex"),ngDevMode&&ns(vs,!0,"isParent");var r=gs.flags;if(0==(4092&r)?r=e<<12|4|3&r:r+=4,gs.flags=r,ngDevMode&&na(e-1),Object.defineProperty(t,Ss,{enumerable:!1,value:gs}),As[e]=i=t,e>=bs.length&&(bs[e]=n,o)){ngDevMode&&os(gs.staticData,"previousOrParentNode.staticData");var l=gs.staticData;(l.localNames||(l.localNames=[])).push(o,e)}var s=n.diPublic;s&&s(n);var a=gs.staticData;a&&a.attrs&&function(e,t,o){var i=((4092&gs.flags)>>2)-1,r=o.initialInputs;(void 0===r||i>=r.length)&&(r=function(e,t,n){var o=n.initialInputs||(n.initialInputs=[]);o[e]=null;for(var i=n.attrs,r=0;r<i.length;r+=2){var l=t[i[r]];void 0!==l&&(o[e]||(o[e]=[])).push(l,i[1|r])}return o}(i,n.inputs,o));var l=r[i];if(l)for(var s=0;s<l.length;s+=2)e[l[s]]=l[1|s]}(i,0,a)}return i}function Ws(e,t,n,o,i){ngDevMode&&ns(ks.bindingStartIndex,null,"bindingStartIndex");var r=ys.createComment(ngDevMode?"container":""),l=null,s=vs?gs:gs.parent;ngDevMode&&is(s,null,"currentParent"),fs(s,r,ks)&&(l=s);var a=Is(e,0,r,{views:[],nextIndex:0,renderParent:l,template:null==t?null:t,next:null,parent:ks});null==a.staticData&&(a.staticData=bs[e]=Vs(n||null,o||null,[],i||null)),Js(a.data)}function qs(){vs?vs=!1:(ngDevMode&&ta(),gs=gs.parent),ngDevMode&&ls(gs,0);var e=gs.query;e&&e.addNode(gs)}function zs(e){ngDevMode&&na(e),gs=As[e],ngDevMode&&ls(gs,0),vs=!0,gs.data.nextIndex=0}function $s(){vs?vs=!1:(ngDevMode&&ls(gs,2),ngDevMode&&ta(),gs=gs.parent),ngDevMode&&ls(gs,0);var e=gs;ngDevMode&&ls(e,0);for(var t=e.data.nextIndex;t<e.data.views.length;)us(e,t)}function Gs(e){var t=vs?gs:gs.parent;ngDevMode&&ls(t,0);var n=t.data,o=n.views,i=!ws&&n.nextIndex<o.length&&o[n.nextIndex],r=i&&e===i.data.id;if(r)gs=o[n.nextIndex++],ngDevMode&&ls(gs,2),vs=!0,Ms(i.data,gs);else{var l=Ps(e,ys,function(e,t){ngDevMode&&ls(t,0);var n=t.staticData.containerStatic;return(e>=n.length||null==n[e])&&(n[e]=[]),n[e]}(e,t));Ms(l,Is(null,2,null,l)),n.nextIndex++}return!r}function Ys(){vs=!1;var e=gs=ks.node,t=gs.parent;ngDevMode&&ls(e,2),ngDevMode&&ls(t,0);var n=t.data,o=n.nextIndex<=n.views.length?n.views[n.nextIndex-1]:null;(null==o||o.data.id!==e.data.id)&&(function(e,t,n){var o=e.data,i=o.views;n>0&&cs(i[n-1],t),n<i.length&&i[n].data.id!==t.data.id?(cs(t,i[n]),i.splice(n,0,t)):n>=i.length&&i.push(t),o.nextIndex<=n&&o.nextIndex++,null!==e.data.renderParent&&as(e,t,!0,function(t,n,o){var i=n.views;return t+1<i.length?i[t+1].child.native:e.native}(n,o)),e.query&&e.query.insertView(e,t,n)}(t,e,n.nextIndex-1),ks.creationMode=!1),Es(ks.parent),ngDevMode&&ns(vs,!1,"isParent"),ngDevMode&&ls(gs,2)}ks=Ps(null,null,[]);var Qs=function(e,t,n){ngDevMode&&na(t);var o=As[t];ngDevMode&&ls(o,3),ngDevMode&&is(o.data,null,"isComponent"),ngDevMode&&na(e);var i=o.data;ngDevMode&&is(i,null,"hostView");var r=As[e],l=Ms(i,o);try{n(r,ws)}finally{i.creationMode=!1,Es(l)}};function Js(e){return ks.tail?ks.tail.next=e:ks.child=e,ks.tail=e,e}var Zs={};function Xs(e){var t,n,o;return(t=ws)?("number"!=typeof ks.bindingStartIndex&&(Ts=ks.bindingStartIndex=As.length),As[Ts++]=e):((t=e!==Zs&&(o=e,!((n=As[Ts])!=n&&o!=o)&&n!==o))&&(As[Ts]=e),Ts++),t?e:Zs}function ea(e,t,n){return Xs(t)===Zs?Zs:e+hs(t)+n}function ta(){is(gs.parent,null,"isParent")}function na(e,t){var n,o;null==t&&(t=As),(n=t?t.length:0)<(o=e)&&rs(n,o,"data.length",">")}function oa(e,t){void 0===t&&(t={});var n,o=t.rendererFactory||Os,i=e.ngComponentDef,r=js(o,t.host||i.tag),l=Ms(Ps(-1,o.createRenderer(r,i.rendererType),[]),null);try{vs=!1,gs=null,Is(0,3,r,Ps(-1,ys,Ds(i.template))),n=Hs(1,i.n(),i)}finally{Es(l)}return t.features&&t.features.forEach(function(e){return e(n,i)}),ia(n),n}function ia(e){ngDevMode&&os(e,"component");var t=e[Ss];ngDevMode&&!t&&Ns("Not a directive instance",e),ngDevMode&&os(t.data,"hostNode.data"),function(e,n,o,i){var r=Ms(n,t);try{ms.begin&&ms.begin(),o.constructor.ngComponentDef.r(1,0)}finally{ms.end&&ms.end(),n.creationMode=!1,Es(r)}}(0,t.view,e)}function ra(e){var t={type:e.type,diPublic:null,n:e.factory,tag:e.tag||null,template:e.template||null,r:e.refresh||function(t,n){Qs(t,n,e.template)},h:e.hostBindings||sa,inputs:aa(e.inputs),outputs:aa(e.outputs),methods:aa(e.methods),rendererType:qo(e.rendererType)||null},n=e.features;return n&&n.forEach(function(e){return e(t)}),t}var la={};function sa(){}function aa(e){if(null==e)return la;var t={};for(var n in e)t[e[n]]=n;return t}function ua(e,t){return{type:7,name:e,definitions:t,options:{}}}function ca(e,t){return void 0===t&&(t=null),{type:4,styles:t,timings:e}}function da(e,t){return void 0===t&&(t=null),{type:3,steps:e,options:t}}function pa(e,t){return void 0===t&&(t=null),{type:2,steps:e,options:t}}function fa(e){return{type:6,styles:e,offset:null}}function ha(e,t,n){return{type:0,name:e,styles:t,options:n}}function ya(e){return{type:5,steps:e}}function ma(e,t,n){return void 0===n&&(n=null),{type:1,expr:e,animation:t,options:n}}var ga="*";function va(e,t){return ua(e,t)}function ba(e,t){return ca(e,t)}function ka(e){return da(e)}function _a(e){return pa(e)}function wa(e){return fa(e)}function Aa(e,t){return ha(e,t)}function Ta(e){return ya(e)}function Ca(e,t){return ma(e,t)}}).call(t,n("srjU"))},WWFs:function(e,t,n){"use strict";var o=n("xgwM").__extends;Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.IpcResponse=i,t.FirmwareUpgradeIpcResponse=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(i)},WWez:function(e,t,n){"use strict";var o=n("ys6Q");e.exports=function(e,t,n){e&&o(function(){e.apply(n||null,t||[])})}},Wfm2:function(e,t){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"}}]}}},WhVc:function(e,t,n){"use strict";t.errorObject={e:{}}},XO5T:function(e,t,n){"use strict";var o=n("ANGw");t.mergeMap=function(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),o.mergeMap(e,t,n)(this)}},"XOs/":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},Xajo:function(e,t,n){"use strict";t.isArray=Array.isArray||function(e){return e&&"number"==typeof e.length}},Xjw4:function(e,t,n){"use strict";n.d(t,"l",function(){return v}),n.d(t,"m",function(){return g}),n.d(t,"v",function(){return b}),n.d(t,"c",function(){return N}),n.d(t,"i",function(){return k}),n.d(t,"j",function(){return w}),n.d(t,"k",function(){return T}),n.d(t,"n",function(){return O}),n.d(t,"o",function(){return S}),n.d(t,"p",function(){return M}),n.d(t,"q",function(){return E}),n.d(t,"d",function(){return j}),n.d(t,"b",function(){return D}),n.d(t,"t",function(){return L}),n.d(t,"s",function(){return r}),n.d(t,"f",function(){return l}),n.d(t,"h",function(){return s}),n.d(t,"a",function(){return a}),n.d(t,"e",function(){return d}),n.d(t,"r",function(){return p}),n.d(t,"g",function(){return u}),n.d(t,"u",function(){return m});var o=n("WT6e"),i=n("TToO"),r=function(){},l=new o.InjectionToken("Location Initialized"),s=function(){},a=new o.InjectionToken("appBaseHref"),u=function(){function e(t){var n=this;this._subject=new o.EventEmitter,this._platformStrategy=t;var i=this._platformStrategy.getBaseHref();this._baseHref=e.stripTrailingSlash(c(i)),this._platformStrategy.onPopState(function(e){n._subject.emit({url:n.path(!0),pop:!0,type:e.type})})}return e.prototype.path=function(e){return void 0===e&&(e=!1),this.normalize(this._platformStrategy.path(e))},e.prototype.isCurrentPathEqualTo=function(t,n){return void 0===n&&(n=""),this.path()==this.normalize(t+e.normalizeQueryParams(n))},e.prototype.normalize=function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,c(t)))},e.prototype.prepareExternalUrl=function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)},e.prototype.go=function(e,t){void 0===t&&(t=""),this._platformStrategy.pushState(null,"",e,t)},e.prototype.replaceState=function(e,t){void 0===t&&(t=""),this._platformStrategy.replaceState(null,"",e,t)},e.prototype.forward=function(){this._platformStrategy.forward()},e.prototype.back=function(){this._platformStrategy.back()},e.prototype.subscribe=function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})},e.normalizeQueryParams=function(e){return e&&"?"!==e[0]?"?"+e:e},e.joinWithSlash=function(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t},e.stripTrailingSlash=function(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)},e}();function c(e){return e.replace(/\/index.html$/,"")}var d=function(e){function t(t,n){var o=e.call(this)||this;return o._platformLocation=t,o._baseHref="",null!=n&&(o._baseHref=n),o}return Object(i.__extends)(t,e),t.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t},t.prototype.prepareExternalUrl=function(e){var t=u.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t},t.prototype.pushState=function(e,t,n,o){var i=this.prepareExternalUrl(n+u.normalizeQueryParams(o));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)},t.prototype.replaceState=function(e,t,n,o){var i=this.prepareExternalUrl(n+u.normalizeQueryParams(o));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(s),p=function(e){function t(t,n){var o=e.call(this)||this;if(o._platformLocation=t,null==n&&(n=o._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return o._baseHref=n,o}return Object(i.__extends)(t,e),t.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},t.prototype.getBaseHref=function(){return this._baseHref},t.prototype.prepareExternalUrl=function(e){return u.joinWithSlash(this._baseHref,e)},t.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.pathname+u.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?""+t+n:t},t.prototype.pushState=function(e,t,n,o){var i=this.prepareExternalUrl(n+u.normalizeQueryParams(o));this._platformLocation.pushState(e,t,i)},t.prototype.replaceState=function(e,t,n,o){var i=this.prepareExternalUrl(n+u.normalizeQueryParams(o));this._platformLocation.replaceState(e,t,i)},t.prototype.forward=function(){this._platformLocation.forward()},t.prototype.back=function(){this._platformLocation.back()},t}(s),f=["en",[["a","p"],["AM","PM"]],[["AM","PM"],,],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",,"{1} 'at' {0}"],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],h={},y=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),m=new o.InjectionToken("UseV4Plurals"),g=function(){},v=function(e){function t(t,n){var o=e.call(this)||this;return o.locale=t,o.deprecatedPluralFn=n,o}return Object(i.__extends)(t,e),t.prototype.getPluralCategory=function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return function(e){var t=e.toLowerCase().replace(/_/g,"-"),n=h[t];if(n)return n;var o=t.split("-")[0];if(n=h[o])return n;if("en"===o)return f;throw new Error('Missing locale data for the locale "'+e+'".')}(e)[17]}(t||this.locale)(e)){case y.Zero:return"zero";case y.One:return"one";case y.Two:return"two";case y.Few:return"few";case y.Many:return"many";default:return"other"}},t}(g);function b(e,t){t=encodeURIComponent(t);for(var n=0,o=e.split(";");n<o.length;n++){var i=o[n],r=i.indexOf("="),l=-1==r?[i,""]:[i.slice(0,r),i.slice(r+1)],s=l[1];if(l[0].trim()===t)return decodeURIComponent(s)}return null}var k=function(){function e(e,t,n,o){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=o,this._initialClasses=[]}return Object.defineProperty(e.prototype,"klass",{set:function(e){this._applyInitialClasses(!0),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClass",{set:function(e){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(o["\u0275isListLikeIterable"])(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}},e.prototype._cleanupClasses=function(e){this._applyClasses(e,!0),this._applyInitialClasses(!1)},e.prototype._applyKeyValueChanges=function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})},e.prototype._applyIterableChanges=function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(o["\u0275stringify"])(e.item));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})},e.prototype._applyInitialClasses=function(e){var t=this;this._initialClasses.forEach(function(n){return t._toggleClass(n,!e)})},e.prototype._applyClasses=function(e,t){var n=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return n._toggleClass(e,!t)}):Object.keys(e).forEach(function(o){null!=e[o]&&n._toggleClass(o,!t)}))},e.prototype._toggleClass=function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})},e}(),_=function(){function e(e,t,n,o){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=o}return Object.defineProperty(e.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),e}(),w=function(){function e(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._differ=null}return Object.defineProperty(e.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(e){Object(o.isDevMode)()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(e)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){if("ngForOf"in e){var t=e.ngForOf.currentValue;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(e){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((n=t).name||typeof n)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var n},e.prototype.ngDoCheck=function(){if(this._differ){var e=this._differ.diff(this.ngForOf);e&&this._applyChanges(e)}},e.prototype._applyChanges=function(e){var t=this,n=[];e.forEachOperation(function(e,o,i){if(null==e.previousIndex){var r=t._viewContainer.createEmbeddedView(t._template,new _(null,t.ngForOf,-1,-1),i),l=new A(e,r);n.push(l)}else null==i?t._viewContainer.remove(o):(r=t._viewContainer.get(o),t._viewContainer.move(r,i),l=new A(e,r),n.push(l))});for(var o=0;o<n.length;o++)this._perViewChange(n[o].view,n[o].record);o=0;for(var i=this._viewContainer.length;o<i;o++){var r=this._viewContainer.get(o);r.context.index=o,r.context.count=i}e.forEachIdentityChange(function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item})},e.prototype._perViewChange=function(e,t){e.context.$implicit=t.item},e}(),A=function(e,t){this.record=e,this.view=t},T=function(){function e(e,t){this._viewContainer=e,this._context=new C,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}return Object.defineProperty(e.prototype,"ngIf",{set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngIfThen",{set:function(e){this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngIfElse",{set:function(e){this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),e.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},e}(),C=function(){this.$implicit=null,this.ngIf=null},x=function(){function e(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}return e.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},e.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},e.prototype.enforceState=function(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()},e}(),O=function(){function e(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(e.prototype,"ngSwitch",{set:function(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),e.prototype._addCase=function(){return this._caseCount++},e.prototype._addDefault=function(e){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(e)},e.prototype._matchCase=function(e){var t=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||t,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),t},e.prototype._updateDefaultCases=function(e){if(this._defaultViews&&e!==this._defaultUsed){this._defaultUsed=e;for(var t=0;t<this._defaultViews.length;t++)this._defaultViews[t].enforceState(e)}},e}(),S=function(){function e(e,t,n){this.ngSwitch=n,n._addCase(),this._view=new x(e,t)}return e.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},e}(),M=function(){return function(e,t,n){n._addDefault(new x(e,t))}}(),E=function(){function e(e){this._viewContainerRef=e}return e.prototype.ngOnChanges=function(e){this._shouldRecreateView(e)?(this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))):this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)},e.prototype._shouldRecreateView=function(e){var t=e.ngTemplateOutletContext;return!!e.ngTemplateOutlet||t&&this._hasContextShapeChanged(t)},e.prototype._hasContextShapeChanged=function(e){var t=Object.keys(e.previousValue||{}),n=Object.keys(e.currentValue||{});if(t.length===n.length){for(var o=0,i=n;o<i.length;o++)if(-1===t.indexOf(i[o]))return!0;return!1}return!0},e.prototype._updateExistingContext=function(e){for(var t=0,n=Object.keys(e);t<n.length;t++){var o=n[t];this._viewRef.context[o]=this.ngTemplateOutletContext[o]}},e}(),P=function(){function e(){}return e.prototype.createSubscription=function(e,t){return e.subscribe({next:t,error:function(e){throw e}})},e.prototype.dispose=function(e){e.unsubscribe()},e.prototype.onDestroy=function(e){e.unsubscribe()},e}(),I=new(function(){function e(){}return e.prototype.createSubscription=function(e,t){return e.then(t,function(e){throw e})},e.prototype.dispose=function(e){},e.prototype.onDestroy=function(e){},e}()),R=new P,D=function(){function e(e){this._ref=e,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return e.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},e.prototype.transform=function(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,o.WrappedValue.wrap(this._latestValue)):(e&&this._subscribe(e),this._latestReturnedValue=this._latestValue,this._latestValue)},e.prototype._subscribe=function(e){var t=this;this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,function(n){return t._updateLatestValue(e,n)})},e.prototype._selectStrategy=function(t){if(Object(o["\u0275isPromise"])(t))return I;if(Object(o["\u0275isObservable"])(t))return R;throw n=e,Error("InvalidPipeArgument: '"+t+"' for pipe '"+Object(o["\u0275stringify"])(n)+"'");var n},e.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},e.prototype._updateLatestValue=function(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())},e}(),N=function(){},j=new o.InjectionToken("DocumentToken"),L="browser"},"Y0+V":function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS"),r=n("8GmM");t.materialize=function(){return function(e){return e.lift(new l)}};var l=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new s(e))},e}(),s=function(e){function t(t){e.call(this,t)}return o(t,e),t.prototype._next=function(e){this.destination.next(r.Notification.createNext(e))},t.prototype._error=function(e){var t=this.destination;t.next(r.Notification.createError(e)),t.complete()},t.prototype._complete=function(){var e=this.destination;e.next(r.Notification.createComplete()),e.complete()},t}(i.Subscriber)},Y6hq:function(e,t,n){"use strict";var o=n("Y0+V");t.materialize=function(){return o.materialize()(this)}},"YOd+":function(e,t,n){"use strict";t.noop=function(){}},YXEY:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",function(){return StoreDevtoolsModule}),__webpack_require__.d(__webpack_exports__,"a",function(){return StoreDevtools}),__webpack_require__.d(__webpack_exports__,"j",function(){return INITIAL_OPTIONS}),__webpack_require__.d(__webpack_exports__,"i",function(){return STORE_DEVTOOLS_CONFIG}),__webpack_require__.d(__webpack_exports__,"h",function(){return DevtoolsDispatcher}),__webpack_require__.d(__webpack_exports__,"l",function(){return DevtoolsExtension}),__webpack_require__.d(__webpack_exports__,"k",function(){return REDUX_DEVTOOLS_EXTENSION}),__webpack_require__.d(__webpack_exports__,"c",function(){return IS_EXTENSION_OR_MONITOR_PRESENT}),__webpack_require__.d(__webpack_exports__,"g",function(){return createConfig}),__webpack_require__.d(__webpack_exports__,"d",function(){return createIsExtensionOrMonitorPresent}),__webpack_require__.d(__webpack_exports__,"e",function(){return createReduxDevtoolsExtension}),__webpack_require__.d(__webpack_exports__,"f",function(){return createStateObservable});var __WEBPACK_IMPORTED_MODULE_0__angular_core__=__webpack_require__("WT6e"),__WEBPACK_IMPORTED_MODULE_1__ngrx_store__=__webpack_require__("dyjq"),__WEBPACK_IMPORTED_MODULE_2_rxjs_ReplaySubject__=__webpack_require__("MQMf"),__WEBPACK_IMPORTED_MODULE_2_rxjs_ReplaySubject___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs_ReplaySubject__),__WEBPACK_IMPORTED_MODULE_3_rxjs_operator_map__=__webpack_require__("xAJs"),__WEBPACK_IMPORTED_MODULE_3_rxjs_operator_map___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_rxjs_operator_map__),__WEBPACK_IMPORTED_MODULE_4_rxjs_operator_merge__=__webpack_require__("kkb0"),__WEBPACK_IMPORTED_MODULE_4_rxjs_operator_merge___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_rxjs_operator_merge__),__WEBPACK_IMPORTED_MODULE_5_rxjs_operator_observeOn__=__webpack_require__("Ji1B"),__WEBPACK_IMPORTED_MODULE_5_rxjs_operator_observeOn___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_rxjs_operator_observeOn__),__WEBPACK_IMPORTED_MODULE_6_rxjs_operator_scan__=__webpack_require__("td8d"),__WEBPACK_IMPORTED_MODULE_6_rxjs_operator_scan___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_rxjs_operator_scan__),__WEBPACK_IMPORTED_MODULE_7_rxjs_operator_skip__=__webpack_require__("M5jZ"),__WEBPACK_IMPORTED_MODULE_7_rxjs_operator_skip___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_rxjs_operator_skip__),__WEBPACK_IMPORTED_MODULE_8_rxjs_operator_withLatestFrom__=__webpack_require__("u2wr"),__WEBPACK_IMPORTED_MODULE_8_rxjs_operator_withLatestFrom___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_8_rxjs_operator_withLatestFrom__),__WEBPACK_IMPORTED_MODULE_9_rxjs_scheduler_queue__=__webpack_require__("RA5l"),__WEBPACK_IMPORTED_MODULE_9_rxjs_scheduler_queue___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_9_rxjs_scheduler_queue__),__WEBPACK_IMPORTED_MODULE_10_rxjs_Observable__=__webpack_require__("rCTf"),__WEBPACK_IMPORTED_MODULE_10_rxjs_Observable___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_10_rxjs_Observable__),__WEBPACK_IMPORTED_MODULE_11_rxjs_observable_empty__=__webpack_require__("vvwv"),__WEBPACK_IMPORTED_MODULE_11_rxjs_observable_empty___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11_rxjs_observable_empty__),__WEBPACK_IMPORTED_MODULE_12_rxjs_operator_filter__=__webpack_require__("ack3"),__WEBPACK_IMPORTED_MODULE_12_rxjs_operator_filter___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_rxjs_operator_filter__),__WEBPACK_IMPORTED_MODULE_13_rxjs_operator_share__=__webpack_require__("+ayw"),__WEBPACK_IMPORTED_MODULE_13_rxjs_operator_share___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_13_rxjs_operator_share__),__WEBPACK_IMPORTED_MODULE_14_rxjs_operator_switchMap__=__webpack_require__("VEfc"),__WEBPACK_IMPORTED_MODULE_14_rxjs_operator_switchMap___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_14_rxjs_operator_switchMap__),__WEBPACK_IMPORTED_MODULE_15_rxjs_operator_takeUntil__=__webpack_require__("q+cp"),__WEBPACK_IMPORTED_MODULE_15_rxjs_operator_takeUntil___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_15_rxjs_operator_takeUntil__),__extends=this&&this.__extends||(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),extendStatics,PERFORM_ACTION="PERFORM_ACTION",RESET="RESET",ROLLBACK="ROLLBACK",COMMIT="COMMIT",SWEEP="SWEEP",TOGGLE_ACTION="TOGGLE_ACTION",SET_ACTIONS_ACTIVE="SET_ACTIONS_ACTIVE",JUMP_TO_STATE="JUMP_TO_STATE",IMPORT_STATE="IMPORT_STATE",PerformAction=function(){return function(e,t){if(this.action=e,this.timestamp=t,this.type=PERFORM_ACTION,"undefined"==typeof e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}}(),Reset=function(){return function(e){this.timestamp=e,this.type=RESET}}(),Rollback=function(){return function(e){this.timestamp=e,this.type=ROLLBACK}}(),Commit=function(){return function(e){this.timestamp=e,this.type=COMMIT}}(),Sweep=function(){return function(){this.type=SWEEP}}(),ToggleAction=function(){return function(e){this.id=e,this.type=TOGGLE_ACTION}}(),JumpToState=function(){return function(e){this.index=e,this.type=JUMP_TO_STATE}}(),ImportState=function(){return function(e){this.nextLiftedState=e,this.type=IMPORT_STATE}}();function difference(e,t){return e.filter(function(e){return t.indexOf(e)<0})}function unliftState(e){return e.computedStates[e.currentStateIndex].state}function liftAction(e){return new PerformAction(e)}function applyOperators(e,t){return t.reduce(function(e,t){var n=t[0],o=t.slice(1);return n.apply(e,o)},e)}var ExtensionActionTypes={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},REDUX_DEVTOOLS_EXTENSION=new __WEBPACK_IMPORTED_MODULE_0__angular_core__.InjectionToken("Redux Devtools Extension"),DevtoolsExtension=function(){function DevtoolsExtension(e){this.instanceId="ngrx-store-"+Date.now(),this.devtoolsExtension=e,this.createActionStreams()}return DevtoolsExtension.prototype.notify=function(e,t){this.devtoolsExtension&&this.devtoolsExtension.send(null,t,{serialize:!1},this.instanceId)},DevtoolsExtension.prototype.createChangesObservable=function(){var e=this;return this.devtoolsExtension?new __WEBPACK_IMPORTED_MODULE_10_rxjs_Observable__.Observable(function(t){var n=e.devtoolsExtension.connect({instanceId:e.instanceId});return n.subscribe(function(e){return t.next(e)}),n.unsubscribe}):Object(__WEBPACK_IMPORTED_MODULE_11_rxjs_observable_empty__.empty)()},DevtoolsExtension.prototype.createActionStreams=function(){var e=this,t=__WEBPACK_IMPORTED_MODULE_13_rxjs_operator_share__.share.call(this.createChangesObservable()),n=__WEBPACK_IMPORTED_MODULE_12_rxjs_operator_filter__.filter.call(t,function(e){return e.type===ExtensionActionTypes.START}),o=__WEBPACK_IMPORTED_MODULE_12_rxjs_operator_filter__.filter.call(t,function(e){return e.type===ExtensionActionTypes.STOP}),i=applyOperators(t,[[__WEBPACK_IMPORTED_MODULE_12_rxjs_operator_filter__.filter,function(e){return e.type===ExtensionActionTypes.DISPATCH}],[__WEBPACK_IMPORTED_MODULE_3_rxjs_operator_map__.map,function(t){return e.unwrapAction(t.payload)}]]),r=applyOperators(t,[[__WEBPACK_IMPORTED_MODULE_12_rxjs_operator_filter__.filter,function(e){return e.type===ExtensionActionTypes.ACTION}],[__WEBPACK_IMPORTED_MODULE_3_rxjs_operator_map__.map,function(t){return e.unwrapAction(t.payload)}]]),l=__WEBPACK_IMPORTED_MODULE_15_rxjs_operator_takeUntil__.takeUntil.call(r,o),s=__WEBPACK_IMPORTED_MODULE_15_rxjs_operator_takeUntil__.takeUntil.call(i,o);this.actions$=__WEBPACK_IMPORTED_MODULE_14_rxjs_operator_switchMap__.switchMap.call(n,function(){return l}),this.liftedActions$=__WEBPACK_IMPORTED_MODULE_14_rxjs_operator_switchMap__.switchMap.call(n,function(){return s})},DevtoolsExtension.prototype.unwrapAction=function(action){return"string"==typeof action?eval("("+action+")"):action},DevtoolsExtension}(),INIT_ACTION={type:__WEBPACK_IMPORTED_MODULE_1__ngrx_store__.b};function computeNextEntry(e,t,n,o){if(o)return{state:n,error:"Interrupted by an error up the chain"};var i,r=n;try{r=e(n,t)}catch(e){i=e.toString(),console.error(e.stack||e)}return{state:r,error:i}}function recomputeStates(e,t,n,o,i,r,l){if(t>=e.length&&e.length===r.length)return e;for(var s=e.slice(0,t),a=t;a<r.length;a++){var u=r[a],c=i[u].action,d=s[a-1],p=d?d.state:o,f=d?d.error:void 0,h=l.indexOf(u)>-1?d:computeNextEntry(n,c,p,f);s.push(h)}return s}function liftInitialState(e,t){return{monitorState:t(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:e,currentStateIndex:0,computedStates:[]}}function liftReducerWith(e,t,n,o){return void 0===o&&(o={}),function(i){return function(r,l){var s=r||t,a=s.monitorState,u=s.actionsById,c=s.nextActionId,d=s.stagedActionIds,p=s.skippedActionIds,f=s.committedState,h=s.currentStateIndex,y=s.computedStates;function m(e){for(var t=e,n=d.slice(1,t+1),o=0;o<n.length;o++){if(y[o+1].error){n=d.slice(1,(t=o)+1);break}delete u[n[o]]}p=p.filter(function(e){return-1===n.indexOf(e)}),d=[0].concat(d.slice(t+1)),f=y[t].state,y=y.slice(t),h=h>t?h-t:0}r||(u=Object.create(u));var g,v=0;switch(l.type){case RESET:u={0:liftAction(INIT_ACTION)},c=1,d=[0],p=[],f=e,h=0,y=[];break;case COMMIT:u={0:liftAction(INIT_ACTION)},c=1,d=[0],p=[],f=y[h].state,h=0,y=[];break;case ROLLBACK:u={0:liftAction(INIT_ACTION)},c=1,d=[0],p=[],h=0,y=[];break;case TOGGLE_ACTION:var b=l.id,k=p.indexOf(b);p=-1===k?[b].concat(p):p.filter(function(e){return e!==b}),v=d.indexOf(b);break;case SET_ACTIONS_ACTIVE:for(var _=l.start,w=l.end,A=l.active,T=[],C=_;C<w;C++)T.push(C);p=A?difference(p,T):p.concat(T),v=d.indexOf(_);break;case JUMP_TO_STATE:h=l.index,v=1/0;break;case SWEEP:d=difference(d,p),p=[],h=Math.min(h,d.length-1);break;case PERFORM_ACTION:o.maxAge&&d.length===o.maxAge&&m(1),h===d.length-1&&h++;var x=c++;u[x]=l,v=(d=d.concat([x])).length-1;break;case IMPORT_STATE:a=(g=l.nextLiftedState).monitorState,u=g.actionsById,c=g.nextActionId,d=g.stagedActionIds,p=g.skippedActionIds,f=g.committedState,h=g.currentStateIndex,y=g.computedStates;break;case __WEBPACK_IMPORTED_MODULE_1__ngrx_store__.p:case __WEBPACK_IMPORTED_MODULE_1__ngrx_store__.b:v=0,o.maxAge&&d.length>o.maxAge&&(y=recomputeStates(y,v,i,f,u,d,p),m(d.length-o.maxAge),v=1/0);break;default:v=1/0}return y=recomputeStates(y,v,i,f,u,d,p),{monitorState:a=n(a,l),actionsById:u,nextActionId:c,stagedActionIds:d,skippedActionIds:p,committedState:f,currentStateIndex:h,computedStates:y}}}}var StoreDevtoolsConfig=function(){},STORE_DEVTOOLS_CONFIG=new __WEBPACK_IMPORTED_MODULE_0__angular_core__.InjectionToken("@ngrx/devtools Options"),INITIAL_OPTIONS=new __WEBPACK_IMPORTED_MODULE_0__angular_core__.InjectionToken("@ngrx/devtools Initial Config"),DevtoolsDispatcher=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(__WEBPACK_IMPORTED_MODULE_1__ngrx_store__.a),StoreDevtools=function(){function e(e,t,n,o,i,r,l){var s=liftInitialState(r,l.monitor),a=liftReducerWith(r,s,l.monitor,l.maxAge?{maxAge:l.maxAge}:{}),u=applyOperators(t.asObservable(),[[__WEBPACK_IMPORTED_MODULE_7_rxjs_operator_skip__.skip,1],[__WEBPACK_IMPORTED_MODULE_4_rxjs_operator_merge__.merge,o.actions$],[__WEBPACK_IMPORTED_MODULE_3_rxjs_operator_map__.map,liftAction],[__WEBPACK_IMPORTED_MODULE_4_rxjs_operator_merge__.merge,e,o.liftedActions$],[__WEBPACK_IMPORTED_MODULE_5_rxjs_operator_observeOn__.observeOn,__WEBPACK_IMPORTED_MODULE_9_rxjs_scheduler_queue__.queue]]),c=__WEBPACK_IMPORTED_MODULE_3_rxjs_operator_map__.map.call(n,a),d=new __WEBPACK_IMPORTED_MODULE_2_rxjs_ReplaySubject__.ReplaySubject(1),p=applyOperators(u,[[__WEBPACK_IMPORTED_MODULE_8_rxjs_operator_withLatestFrom__.withLatestFrom,c],[__WEBPACK_IMPORTED_MODULE_6_rxjs_operator_scan__.scan,function(e,t){var n=t[0],i=(0,t[1])(e.state,n);return o.notify(n,i),{state:i,action:n}},{state:s,action:null}]]).subscribe(function(e){var t=e.action;d.next(e.state),t.type===PERFORM_ACTION&&i.next(t.action)}),f=d.asObservable(),h=__WEBPACK_IMPORTED_MODULE_3_rxjs_operator_map__.map.call(f,unliftState);this.stateSubscription=p,this.dispatcher=e,this.liftedState=f,this.state=h}return e.prototype.dispatch=function(e){this.dispatcher.next(e)},e.prototype.next=function(e){this.dispatcher.next(e)},e.prototype.error=function(e){},e.prototype.complete=function(){},e.prototype.performAction=function(e){this.dispatch(new PerformAction(e))},e.prototype.reset=function(){this.dispatch(new Reset)},e.prototype.rollback=function(){this.dispatch(new Rollback)},e.prototype.commit=function(){this.dispatch(new Commit)},e.prototype.sweep=function(){this.dispatch(new Sweep)},e.prototype.toggleAction=function(e){this.dispatch(new ToggleAction(e))},e.prototype.jumpToState=function(e){this.dispatch(new JumpToState(e))},e.prototype.importState=function(e){this.dispatch(new ImportState(e))},e}(),IS_EXTENSION_OR_MONITOR_PRESENT=new __WEBPACK_IMPORTED_MODULE_0__angular_core__.InjectionToken("Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(e,t){return Boolean(e)||t.monitor!==noMonitor}function createReduxDevtoolsExtension(){return"object"==typeof window&&"undefined"!=typeof window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null}function createStateObservable(e){return e.state}function noMonitor(){return null}function createConfig(e){var t={maxAge:!1,monitor:noMonitor},n="function"==typeof e?e():e,o=Object.assign({},t,n);if(o.maxAge&&o.maxAge<2)throw new Error("Devtools 'maxAge' cannot be less than 2, got "+o.maxAge);return o}var StoreDevtoolsModule=function(){function e(){}return e.instrument=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:t},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:__WEBPACK_IMPORTED_MODULE_1__ngrx_store__.l,deps:[StoreDevtools],useFactory:createStateObservable},{provide:__WEBPACK_IMPORTED_MODULE_1__ngrx_store__.h,useExisting:DevtoolsDispatcher}]}},e}()},Yh8Q:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("rCTf"),r=n("RRVv"),l=n("jBEF"),s=n("fWbP");t.ArrayObservable=function(e){function t(t,n){e.call(this),this.array=t,this.scheduler=n,n||1!==t.length||(this._isScalar=!0,this.value=t[0])}return o(t,e),t.create=function(e,n){return new t(e,n)},t.of=function(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var o=e[e.length-1];s.isScheduler(o)?e.pop():o=null;var i=e.length;return i>1?new t(e,o):1===i?new r.ScalarObservable(e[0],o):new l.EmptyObservable(o)},t.dispatch=function(e){var t=e.array,n=e.index,o=e.subscriber;n>=e.count?o.complete():(o.next(t[n]),o.closed||(e.index=n+1,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.array,o=n.length,i=this.scheduler;if(i)return i.schedule(t.dispatch,0,{array:n,index:0,count:o,subscriber:e});for(var r=0;r<o&&!e.closed;r++)e.next(n[r]);e.complete()},t}(i.Observable)},ZHJF:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Default="default",e.Success="success",e.Error="error",e.Warning="warning",e.Info="info",e.Undoable="undoable"}(t.NotificationType||(t.NotificationType={}))},ZJf8:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("B00U");t.SubjectSubscription=function(e){function t(t,n){e.call(this),this.subject=t,this.subscriber=n,this.closed=!1}return o(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(i.Subscription)},ZTdU:function(e,t,n){"use strict";Object.defineProperty(t,"__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"}(t.SecondaryRoleAction||(t.SecondaryRoleAction={}))},aQ5C:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS"),r=n("B00U"),l=n("rCTf"),s=n("EEr4"),a=n("9JPB"),u=n("1kxm");t.groupBy=function(e,t,n,o){return function(i){return i.lift(new c(e,t,n,o))}};var c=function(){function e(e,t,n,o){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=o}return e.prototype.call=function(e,t){return t.subscribe(new d(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},e}(),d=function(e){function t(t,n,o,i,r){e.call(this,t),this.keySelector=n,this.elementSelector=o,this.durationSelector=i,this.subjectSelector=r,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}return o(t,e),t.prototype._next=function(e){var t;try{t=this.keySelector(e)}catch(e){return void this.error(e)}this._group(e,t)},t.prototype._group=function(e,t){var n=this.groups;n||(n=this.groups="string"==typeof t?new u.FastMap:new a.Map);var o,i=n.get(t);if(this.elementSelector)try{o=this.elementSelector(e)}catch(e){this.error(e)}else o=e;if(!i){i=this.subjectSelector?this.subjectSelector():new s.Subject,n.set(t,i);var r=new f(t,i,this);if(this.destination.next(r),this.durationSelector){var l=void 0;try{l=this.durationSelector(new f(t,i))}catch(e){return void this.error(e)}this.add(l.subscribe(new p(t,i,this)))}}i.closed||i.next(o)},t.prototype._error=function(e){var t=this.groups;t&&(t.forEach(function(t,n){t.error(e)}),t.clear()),this.destination.error(e)},t.prototype._complete=function(){var e=this.groups;e&&(e.forEach(function(e,t){e.complete()}),e.clear()),this.destination.complete()},t.prototype.removeGroup=function(e){this.groups.delete(e)},t.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&e.prototype.unsubscribe.call(this))},t}(i.Subscriber),p=function(e){function t(t,n,o){e.call(this,n),this.key=t,this.group=n,this.parent=o}return o(t,e),t.prototype._next=function(e){this.complete()},t.prototype._unsubscribe=function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)},t}(i.Subscriber),f=function(e){function t(t,n,o){e.call(this),this.key=t,this.groupSubject=n,this.refCountSubscription=o}return o(t,e),t.prototype._subscribe=function(e){var t=new r.Subscription,n=this.refCountSubscription,o=this.groupSubject;return n&&!n.closed&&t.add(new h(n)),t.add(o.subscribe(e)),t},t}(l.Observable);t.GroupedObservable=f;var h=function(e){function t(t){e.call(this),this.parent=t,t.count++}return o(t,e),t.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(e.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},t}(r.Subscription)},aQl7:function(e,t,n){"use strict";t.isPromise=function(e){return e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}},aV5h:function(e,t,n){"use strict";var o=n("rCTf"),i=n("driz");o.Observable.prototype.debounceTime=i.debounceTime},ack3:function(e,t,n){"use strict";var o=n("dI0l");t.filter=function(e,t){return o.filter(e,t)(this)}},ad5O:function(e,t,n){"use strict";var o=n("xgwM").__extends,i=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l=n("CmJd"),s=n("ao60");t.MoveMouseMacroAction=function(e){function t(t){var n=e.call(this)||this;return t?(n.x=t.x,n.y=t.y,n):n}return o(t,e),t.prototype.fromJsonObject=function(e){return this.assertMacroActionType(e),this.x=e.x,this.y=e.y,this},t.prototype.fromBinary=function(e){return this.readAndAssertMacroActionId(e),this.x=e.readInt16(),this.y=e.readInt16(),this},t.prototype.toJsonObject=function(){return{macroActionType:s.macroActionType.MoveMouseMacroAction,x:this.x,y:this.y}},t.prototype.toBinary=function(e){e.writeUInt8(s.MacroActionId.MoveMouseMacroAction),e.writeInt16(this.x),e.writeInt16(this.y)},t.prototype.toString=function(){return'<MoveMouseMacroAction pos="('+this.x+","+this.y+')">'},t.prototype.getName=function(){return"MoveMouseMacroAction"},i([l.assertInt16,r("design:type",Number)],t.prototype,"x",void 0),i([l.assertInt16,r("design:type",Number)],t.prototype,"y",void 0),t}(s.MacroAction)},ao60:function(e,t,n){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),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"}(o=t.MacroActionId||(t.MacroActionId={})),function(e){e[e.tap=0]="tap",e[e.press=1]="press",e[e.release=2]="release"}(t.MacroKeySubAction||(t.MacroKeySubAction={})),function(e){e[e.click=0]="click",e[e.hold=1]="hold",e[e.release=2]="release"}(t.MacroMouseSubAction||(t.MacroMouseSubAction={})),t.macroActionType={KeyMacroAction:"key",MouseButtonMacroAction:"mouseButton",MoveMouseMacroAction:"moveMouse",ScrollMouseMacroAction:"scrollMouse",DelayMacroAction:"delay",TextMacroAction:"text"},t.MacroAction=function(){function e(){}return e.prototype.assertMacroActionType=function(e){var n=this.getName();if(e.macroActionType!==t.macroActionType[n])throw"Invalid "+n+".macroActionType: "+e.macroActionType},e.prototype.readAndAssertMacroActionId=function(e){var t=this.getName(),n=e.readUInt8(),i=o[t];if(i===o.KeyMacroAction){if(n<o.KeyMacroAction||n>o.LastKeyMacroAction)throw"Invalid "+t+" first byte: "+n}else if(i===o.MouseButtonMacroAction){if(n<o.MouseButtonMacroAction||n>o.LastMouseButtonMacroAction)throw"Invalid "+t+" first byte: "+n}else if(n!==i)throw"Invalid "+t+" first byte: "+n;return n},e}()},at4H:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"c",function(){return l}),n.d(t,"d",function(){return s}),n.d(t,"f",function(){return a}),n.d(t,"k",function(){return u}),n.d(t,"j",function(){return c}),n.d(t,"i",function(){return d}),n.d(t,"e",function(){return p}),n.d(t,"h",function(){return f}),n.d(t,"l",function(){return h}),n.d(t,"g",function(){return y}),n.d(t,"b",function(){return m});var o=n("gI3A"),i=(n.n(o),"[user-config] "),r={LOAD_USER_CONFIG:Object(o.type)(i+"Load User Config"),LOAD_CONFIG_FROM_DEVICE:Object(o.type)(i+"Load User Config from Device"),LOAD_CONFIG_FROM_DEVICE_REPLY:Object(o.type)(i+"Load User Config from Device reply"),LOAD_USER_CONFIG_SUCCESS:Object(o.type)(i+"Load User Config Success"),SAVE_USER_CONFIG_SUCCESS:Object(o.type)(i+"Save User Config Success"),SAVE_USER_CONFIG_IN_JSON_FILE:Object(o.type)(i+"Save User Config in JSON file"),SAVE_USER_CONFIG_IN_BIN_FILE:Object(o.type)(i+"Save User Config in binary file"),LOAD_RESET_USER_CONFIGURATION:Object(o.type)(i+"Load reset user configuration"),RENAME_USER_CONFIGURATION:Object(o.type)(i+"Rename user configuration"),SET_USER_CONFIGURATION_VALUE:Object(o.type)(i+"Set user configuration value"),LOAD_USER_CONFIGURATION_FROM_FILE:Object(o.type)(i+"Load user configuration from file"),APPLY_USER_CONFIGURATION_FROM_FILE:Object(o.type)(i+"Apply user configuration from file")},l=function(){return function(){this.type=r.LOAD_CONFIG_FROM_DEVICE}}(),s=function(){return function(e){this.payload=e,this.type=r.LOAD_CONFIG_FROM_DEVICE_REPLY}}(),a=function(){return function(e){this.payload=e,this.type=r.LOAD_USER_CONFIG_SUCCESS}}(),u=function(){return function(e){this.payload=e,this.type=r.SAVE_USER_CONFIG_SUCCESS}}(),c=function(){return function(){this.type=r.SAVE_USER_CONFIG_IN_JSON_FILE}}(),d=function(){return function(){this.type=r.SAVE_USER_CONFIG_IN_BIN_FILE}}(),p=function(){return function(e){this.payload=e,this.type=r.LOAD_RESET_USER_CONFIGURATION}}(),f=function(){return function(e){this.payload=e,this.type=r.RENAME_USER_CONFIGURATION}}(),h=function(){return function(e){this.payload=e,this.type=r.SET_USER_CONFIGURATION_VALUE}}(),y=function(){return function(e){this.payload=e,this.type=r.LOAD_USER_CONFIGURATION_FROM_FILE}}(),m=function(){return function(e){this.payload=e,this.type=r.APPLY_USER_CONFIGURATION_FROM_FILE}}()},bBHq:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=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}();t.App=o;var 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}();t.AutoUpdate=i;var r=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.recoveryDevice="device-recovery",e}();t.Device=r,t.IpcEvents=function(){function e(){}return e.app=o,e.autoUpdater=i,e.device=r,e}()},bBiI:function(e,t,n){"use strict";var o=n("c8IX");t.first=function(e,t,n){return o.first(e,t,n)(this)}},bE1M:function(e,t,n){"use strict";var o=n("oBYf");t.concatMap=function(e,t){return o.concatMap(e,t)(this)}},bfOx:function(e,t,n){"use strict";n.d(t,"o",function(){return St}),n.d(t,"n",function(){return Et}),n.d(t,"q",function(){return Rt}),n.d(t,"d",function(){return S}),n.d(t,"e",function(){return M}),n.d(t,"s",function(){return E}),n.d(t,"l",function(){return gt}),n.d(t,"m",function(){return Ct}),n.d(t,"k",function(){return bt}),n.d(t,"i",function(){return Vt}),n.d(t,"j",function(){return Zt}),n.d(t,"p",function(){return Ht}),n.d(t,"b",function(){return It}),n.d(t,"f",function(){return Lt}),n.d(t,"g",function(){return jt}),n.d(t,"h",function(){return Nt}),n.d(t,"r",function(){return Ut}),n.d(t,"a",function(){return Fe}),n.d(t,"t",function(){return _t}),n.d(t,"c",function(){return ue}),n.d(t,"u",function(){return ae}),n.d(t,"v",function(){return Ft}),n.d(t,"B",function(){return Yt}),n.d(t,"C",function(){return Qt}),n.d(t,"D",function(){return Jt}),n.d(t,"y",function(){return qt}),n.d(t,"x",function(){return Wt}),n.d(t,"A",function(){return Gt}),n.d(t,"w",function(){return Bt}),n.d(t,"z",function(){return $t});var o=n("Xjw4"),i=n("WT6e"),r=n("TToO"),l=n("TfWX"),s=n("EEr4"),a=n("lgiQ"),u=n("bE1M"),c=n("xAJs"),d=n("XO5T"),p=n("rCTf"),f=n("PKvP"),h=n("+4ur"),y=n("CfHE"),m=n("bBiI"),g=n("F7Al"),v=n("ioK+"),b=n("83T1"),k=n("7nvF"),_=n("cbuX"),w=n("pgP5"),A=n("OE0E"),T=n("ack3"),C=function(e,t){this.id=e,this.url=t},x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},t}(C),O=function(e){function t(t,n,o){var i=e.call(this,t,n)||this;return i.urlAfterRedirects=o,i}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}(C),S=function(e){function t(t,n,o){var i=e.call(this,t,n)||this;return i.reason=o,i}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}(C),M=function(e){function t(t,n,o){var i=e.call(this,t,n)||this;return i.error=o,i}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}(C),E=function(e){function t(t,n,o,i){var r=e.call(this,t,n)||this;return r.urlAfterRedirects=o,r.state=i,r}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(C),P=function(e){function t(t,n,o,i){var r=e.call(this,t,n)||this;return r.urlAfterRedirects=o,r.state=i,r}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(C),I=function(e){function t(t,n,o,i,r){var l=e.call(this,t,n)||this;return l.urlAfterRedirects=o,l.state=i,l.shouldActivate=r,l}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},t}(C),R=function(e){function t(t,n,o,i){var r=e.call(this,t,n)||this;return r.urlAfterRedirects=o,r.state=i,r}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(C),D=function(e){function t(t,n,o,i){var r=e.call(this,t,n)||this;return r.urlAfterRedirects=o,r.state=i,r}return Object(r.__extends)(t,e),t.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(C),N=function(){function e(e){this.route=e}return e.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},e}(),j=function(){function e(e){this.route=e}return e.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},e}(),L=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),U=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),V=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),F=function(){function e(e){this.snapshot=e}return e.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},e}(),K="primary",B=function(){function e(e){this.params=e||{}}return e.prototype.has=function(e){return this.params.hasOwnProperty(e)},e.prototype.get=function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null},e.prototype.getAll=function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]},Object.defineProperty(e.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),e}();function H(e){return new B(e)}function W(e,t,n){var o=n.path.split("/");if(o.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||o.length<e.length))return null;for(var i={},r=0;r<o.length;r++){var l=o[r],s=e[r];if(l.startsWith(":"))i[l.substring(1)]=s;else if(l!==s.path)return null}return{consumed:e.slice(0,o.length),posParams:i}}var q=function(e,t){this.routes=e,this.module=t};function z(e,t){void 0===t&&(t="");for(var n=0;n<e.length;n++){var o=e[n];$(o,G(t,o))}}function $(e,t){if(!e)throw new Error("\n Invalid configuration of route '"+t+"': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n ");if(Array.isArray(e))throw new Error("Invalid configuration of route '"+t+"': Array cannot be specified");if(!e.component&&e.outlet&&e.outlet!==K)throw new Error("Invalid configuration of route '"+t+"': a componentless route cannot have a named outlet set");if(e.redirectTo&&e.children)throw new Error("Invalid configuration of route '"+t+"': redirectTo and children cannot be used together");if(e.redirectTo&&e.loadChildren)throw new Error("Invalid configuration of route '"+t+"': redirectTo and loadChildren cannot be used together");if(e.children&&e.loadChildren)throw new Error("Invalid configuration of route '"+t+"': children and loadChildren cannot be used together");if(e.redirectTo&&e.component)throw new Error("Invalid configuration of route '"+t+"': redirectTo and component cannot be used together");if(e.path&&e.matcher)throw new Error("Invalid configuration of route '"+t+"': path and matcher cannot be used together");if(void 0===e.redirectTo&&!e.component&&!e.children&&!e.loadChildren)throw new Error("Invalid configuration of route '"+t+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===e.path&&void 0===e.matcher)throw new Error("Invalid configuration of route '"+t+"': routes must have either a path or a matcher specified");if("string"==typeof e.path&&"/"===e.path.charAt(0))throw new Error("Invalid configuration of route '"+t+"': path cannot start with a slash");if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch)throw new Error("Invalid configuration of route '{path: \""+t+'", redirectTo: "'+e.redirectTo+"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.");if(void 0!==e.pathMatch&&"full"!==e.pathMatch&&"prefix"!==e.pathMatch)throw new Error("Invalid configuration of route '"+t+"': pathMatch can only be set to 'prefix' or 'full'");e.children&&z(e.children,t)}function G(e,t){return t?e||t.path?e&&!t.path?e+"/":!e&&t.path?t.path:e+"/"+t.path:"":e}function Y(e){var t=e.children&&e.children.map(Y);return t?Object(r.__assign)({},e,{children:t}):Object(r.__assign)({},e)}function Q(e,t){var n,o=Object.keys(e),i=Object.keys(t);if(o.length!=i.length)return!1;for(var r=0;r<o.length;r++)if(e[n=o[r]]!==t[n])return!1;return!0}function J(e){return Array.prototype.concat.apply([],e)}function Z(e){return e.length>0?e[e.length-1]:null}function X(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function ee(e){var t=_.mergeAll.call(e);return b.every.call(t,function(e){return!0===e})}function te(e){return Object(i["\u0275isObservable"])(e)?e:Object(i["\u0275isPromise"])(e)?Object(v.fromPromise)(Promise.resolve(e)):Object(a.of)(e)}function ne(e,t,n){return n?function(e,t){return Q(e,t)}(e.queryParams,t.queryParams)&&function e(t,n){if(!le(t.segments,n.segments))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var o in n.children){if(!t.children[o])return!1;if(!e(t.children[o],n.children[o]))return!1}return!0}(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return t[n]===e[n]})}(e.queryParams,t.queryParams)&&function e(t,n){return function t(n,o,i){if(n.segments.length>i.length)return!!le(l=n.segments.slice(0,i.length),i)&&!o.hasChildren();if(n.segments.length===i.length){if(!le(n.segments,i))return!1;for(var r in o.children){if(!n.children[r])return!1;if(!e(n.children[r],o.children[r]))return!1}return!0}var l=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!!le(n.segments,l)&&!!n.children[K]&&t(n.children[K],o,s)}(t,n,n.segments)}(e.root,t.root)}var oe=function(){function e(e,t,n){this.root=e,this.queryParams=t,this.fragment=n}return Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=H(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return ce.serialize(this)},e}(),ie=function(){function e(e,t){var n=this;this.segments=e,this.children=t,this.parent=null,X(t,function(e,t){return e.parent=n})}return e.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(e.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return de(this)},e}(),re=function(){function e(e,t){this.path=e,this.parameters=t}return Object.defineProperty(e.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=H(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return ge(this)},e}();function le(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}function se(e,t){var n=[];return X(e.children,function(e,o){o===K&&(n=n.concat(t(e,o)))}),X(e.children,function(e,o){o!==K&&(n=n.concat(t(e,o)))}),n}var ae=function(){},ue=function(){function e(){}return e.prototype.parse=function(e){var t=new we(e);return new oe(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())},e.prototype.serialize=function(e){var t,n;return"/"+function e(t,n){if(!t.hasChildren())return de(t);if(n){var o=t.children[K]?e(t.children[K],!1):"",i=[];return X(t.children,function(t,n){n!==K&&i.push(n+":"+e(t,!1))}),i.length>0?o+"("+i.join("//")+")":o}var r=se(t,function(n,o){return o===K?[e(t.children[K],!1)]:[o+":"+e(n,!1)]});return de(t)+"/("+r.join("//")+")"}(e.root,!0)+(t=e.queryParams,(n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return fe(e)+"="+fe(t)}).join("&"):fe(e)+"="+fe(n)})).length?"?"+n.join("&"):"")+("string"==typeof e.fragment?"#"+encodeURI(e.fragment):"")},e}(),ce=new ue;function de(e){return e.segments.map(function(e){return ge(e)}).join("/")}function pe(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function fe(e){return pe(e).replace(/%3B/gi,";")}function he(e){return pe(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ye(e){return decodeURIComponent(e)}function me(e){return ye(e.replace(/\+/g,"%20"))}function ge(e){return""+he(e.path)+(t=e.parameters,Object.keys(t).map(function(e){return";"+he(e)+"="+he(t[e])}).join(""));var t}var ve=/^[^\/()?;=&#]+/;function be(e){var t=e.match(ve);return t?t[0]:""}var ke=/^[^=?&#]+/,_e=/^[^?&#]+/,we=function(){function e(e){this.url=e,this.remaining=e}return e.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ie([],{}):new ie([],this.parseChildren())},e.prototype.parseQueryParams=function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e},e.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},e.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[K]=new ie(e,t)),n},e.prototype.parseSegment=function(){var e=be(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(e),new re(ye(e),this.parseMatrixParams())},e.prototype.parseMatrixParams=function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e},e.prototype.parseParam=function(e){var t=be(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var o=be(this.remaining);o&&this.capture(n=o)}e[ye(t)]=ye(n)}},e.prototype.parseQueryParam=function(e){var t,n=(t=this.remaining.match(ke))?t[0]:"";if(n){this.capture(n);var o="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(_e);return t?t[0]:""}(this.remaining);i&&this.capture(o=i)}var r=me(n),l=me(o);if(e.hasOwnProperty(r)){var s=e[r];Array.isArray(s)||(e[r]=s=[s]),s.push(l)}else e[r]=l}},e.prototype.parseParens=function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=be(this.remaining),o=this.remaining[n.length];if("/"!==o&&")"!==o&&";"!==o)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=K);var r=this.parseChildren();t[i]=1===Object.keys(r).length?r[K]:new ie([],r),this.consumeOptional("//")}return t},e.prototype.peekStartsWith=function(e){return this.remaining.startsWith(e)},e.prototype.consumeOptional=function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)},e.prototype.capture=function(e){if(!this.consumeOptional(e))throw new Error('Expected "'+e+'".')},e}(),Ae=function(e){this.segmentGroup=e||null},Te=function(e){this.urlTree=e};function Ce(e){return new p.Observable(function(t){return t.error(new Ae(e))})}function xe(e){return new p.Observable(function(t){return t.error(new Te(e))})}function Oe(e){return new p.Observable(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+e+"'"))})}var Se=function(){function e(e,t,n,o,r){this.configLoader=t,this.urlSerializer=n,this.urlTree=o,this.config=r,this.allowRedirects=!0,this.ngModule=e.get(i.NgModuleRef)}return e.prototype.apply=function(){var e=this,t=this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,K),n=c.map.call(t,function(t){return e.createUrlTree(t,e.urlTree.queryParams,e.urlTree.fragment)});return h._catch.call(n,function(t){if(t instanceof Te)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof Ae)throw e.noMatchError(t);throw t})},e.prototype.match=function(e){var t=this,n=this.expandSegmentGroup(this.ngModule,this.config,e.root,K),o=c.map.call(n,function(n){return t.createUrlTree(n,e.queryParams,e.fragment)});return h._catch.call(o,function(e){if(e instanceof Ae)throw t.noMatchError(e);throw e})},e.prototype.noMatchError=function(e){return new Error("Cannot match any routes. URL Segment: '"+e.segmentGroup+"'")},e.prototype.createUrlTree=function(e,t,n){var o,i=e.segments.length>0?new ie([],((o={})[K]=e,o)):e;return new oe(i,t,n)},e.prototype.expandSegmentGroup=function(e,t,n,o){return 0===n.segments.length&&n.hasChildren()?c.map.call(this.expandChildren(e,t,n),function(e){return new ie([],e)}):this.expandSegment(e,n,t,n.segments,o,!0)},e.prototype.expandChildren=function(e,t,n){var o=this;return function(n,i){if(0===Object.keys(n).length)return Object(a.of)({});var r=[],l=[],s={};X(n,function(n,i){var a=c.map.call(o.expandSegmentGroup(e,t,n,i),function(e){return s[i]=e});i===K?r.push(a):l.push(a)});var u=y.concatAll.call(a.of.apply(void 0,r.concat(l))),d=k.last.call(u);return c.map.call(d,function(){return s})}(n.children)},e.prototype.expandSegment=function(e,t,n,o,i,r){var l=this,s=a.of.apply(void 0,n),u=c.map.call(s,function(s){var u=l.expandSegmentAgainstRoute(e,t,n,s,o,i,r);return h._catch.call(u,function(e){if(e instanceof Ae)return Object(a.of)(null);throw e})}),d=y.concatAll.call(u),p=m.first.call(d,function(e){return!!e});return h._catch.call(p,function(e,n){if(e instanceof g.EmptyError||"EmptyError"===e.name){if(l.noLeftoversInUrl(t,o,i))return Object(a.of)(new ie([],{}));throw new Ae(t)}throw e})},e.prototype.noLeftoversInUrl=function(e,t,n){return 0===t.length&&!e.children[n]},e.prototype.expandSegmentAgainstRoute=function(e,t,n,o,i,r,l){return Ie(o)!==r?Ce(t):void 0===o.redirectTo?this.matchSegmentAgainstRoute(e,t,o,i):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,o,i,r):Ce(t)},e.prototype.expandSegmentAgainstRouteUsingRedirect=function(e,t,n,o,i,r){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,o,r):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,o,i,r)},e.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(e,t,n,o){var i=this,r=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?xe(r):d.mergeMap.call(this.lineralizeSegments(n,r),function(n){var r=new ie(n,{});return i.expandSegment(e,r,t,n,o,!1)})},e.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(e,t,n,o,i,r){var l=this,s=Me(t,o,i),a=s.consumedSegments,u=s.lastChild,c=s.positionalParamSegments;if(!s.matched)return Ce(t);var p=this.applyRedirectCommands(a,o.redirectTo,c);return o.redirectTo.startsWith("/")?xe(p):d.mergeMap.call(this.lineralizeSegments(o,p),function(o){return l.expandSegment(e,t,n,o.concat(i.slice(u)),r,!1)})},e.prototype.matchSegmentAgainstRoute=function(e,t,n,o){var i=this;if("**"===n.path)return n.loadChildren?c.map.call(this.configLoader.load(e.injector,n),function(e){return n._loadedConfig=e,new ie(o,{})}):Object(a.of)(new ie(o,{}));var l=Me(t,n,o),s=l.consumedSegments,u=l.lastChild;if(!l.matched)return Ce(t);var p=o.slice(u),f=this.getChildConfig(e,n);return d.mergeMap.call(f,function(e){var n=e.module,o=e.routes,l=function(e,t,n,o){return n.length>0&&function(e,t,n){return o.some(function(n){return Pe(e,t,n)&&Ie(n)!==K})}(e,n)?{segmentGroup:Ee(new ie(t,function(e,t){var n={};n[K]=t;for(var o=0,i=e;o<i.length;o++){var r=i[o];""===r.path&&Ie(r)!==K&&(n[Ie(r)]=new ie([],{}))}return n}(o,new ie(n,e.children)))),slicedSegments:[]}:0===n.length&&function(e,t,n){return o.some(function(n){return Pe(e,t,n)})}(e,n)?{segmentGroup:Ee(new ie(e.segments,function(e,t,n,i){for(var l={},s=0,a=o;s<a.length;s++){var u=a[s];Pe(e,t,u)&&!i[Ie(u)]&&(l[Ie(u)]=new ie([],{}))}return Object(r.__assign)({},i,l)}(e,n,0,e.children))),slicedSegments:n}:{segmentGroup:e,slicedSegments:n}}(t,s,p,o),u=l.segmentGroup,d=l.slicedSegments;if(0===d.length&&u.hasChildren()){var f=i.expandChildren(n,o,u);return c.map.call(f,function(e){return new ie(s,e)})}if(0===o.length&&0===d.length)return Object(a.of)(new ie(s,{}));var h=i.expandSegment(n,u,o,d,K,!0);return c.map.call(h,function(e){return new ie(s.concat(e.segments),e.children)})})},e.prototype.getChildConfig=function(e,t){var n=this;return t.children?Object(a.of)(new q(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Object(a.of)(t._loadedConfig):d.mergeMap.call(function(e,t){var n=t.canLoad;return n&&0!==n.length?ee(c.map.call(Object(f.from)(n),function(n){var o=e.get(n);return te(o.canLoad?o.canLoad(t):o(t))})):Object(a.of)(!0)}(e.injector,t),function(o){return o?c.map.call(n.configLoader.load(e.injector,t),function(e){return t._loadedConfig=e,e}):function(e){return new p.Observable(function(t){return t.error(((n=Error("NavigationCancelingError: Cannot load children because the guard of the route \"path: '"+e.path+"'\" returned false")).ngNavigationCancelingError=!0,n));var n})}(t)}):Object(a.of)(new q([],e))},e.prototype.lineralizeSegments=function(e,t){for(var n=[],o=t.root;;){if(n=n.concat(o.segments),0===o.numberOfChildren)return Object(a.of)(n);if(o.numberOfChildren>1||!o.children[K])return Oe(e.redirectTo);o=o.children[K]}},e.prototype.applyRedirectCommands=function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)},e.prototype.applyRedirectCreatreUrlTree=function(e,t,n,o){var i=this.createSegmentGroup(e,t.root,n,o);return new oe(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)},e.prototype.createQueryParams=function(e,t){var n={};return X(e,function(e,o){if("string"==typeof e&&e.startsWith(":")){var i=e.substring(1);n[o]=t[i]}else n[o]=e}),n},e.prototype.createSegmentGroup=function(e,t,n,o){var i=this,r=this.createSegments(e,t.segments,n,o),l={};return X(t.children,function(t,r){l[r]=i.createSegmentGroup(e,t,n,o)}),new ie(r,l)},e.prototype.createSegments=function(e,t,n,o){var i=this;return t.map(function(t){return t.path.startsWith(":")?i.findPosParam(e,t,o):i.findOrReturn(t,n)})},e.prototype.findPosParam=function(e,t,n){var o=n[t.path.substring(1)];if(!o)throw new Error("Cannot redirect to '"+e+"'. Cannot find '"+t.path+"'.");return o},e.prototype.findOrReturn=function(e,t){for(var n=0,o=0,i=t;o<i.length;o++){var r=i[o];if(r.path===e.path)return t.splice(n),r;n++}return e},e}();function Me(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var o=(t.matcher||W)(n,e,t);return o?{matched:!0,consumedSegments:o.consumed,lastChild:o.consumed.length,positionalParamSegments:o.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Ee(e){if(1===e.numberOfChildren&&e.children[K]){var t=e.children[K];return new ie(e.segments.concat(t.segments),t.children)}return e}function Pe(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Ie(e){return e.outlet||K}var Re=function(){function e(e){this._root=e}return Object.defineProperty(e.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),e.prototype.parent=function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null},e.prototype.children=function(e){var t=De(e,this._root);return t?t.children.map(function(e){return e.value}):[]},e.prototype.firstChild=function(e){var t=De(e,this._root);return t&&t.children.length>0?t.children[0].value:null},e.prototype.siblings=function(e){var t=Ne(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})},e.prototype.pathFromRoot=function(e){return Ne(e,this._root).map(function(e){return e.value})},e}();function De(e,t){if(e===t.value)return t;for(var n=0,o=t.children;n<o.length;n++){var i=De(e,o[n]);if(i)return i}return null}function Ne(e,t){if(e===t.value)return[t];for(var n=0,o=t.children;n<o.length;n++){var i=Ne(e,o[n]);if(i.length)return i.unshift(t),i}return[]}var je=function(){function e(e,t){this.value=e,this.children=t}return e.prototype.toString=function(){return"TreeNode("+this.value+")"},e}();function Le(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var Ue=function(e){function t(t,n){var o=e.call(this,t)||this;return o.snapshot=n,We(o,t),o}return Object(r.__extends)(t,e),t.prototype.toString=function(){return this.snapshot.toString()},t}(Re);function Ve(e,t){var n=function(e,t){var n=new Be([],{},{},"",{},K,t,null,e.root,-1,{});return new He("",new je(n,[]))}(e,t),o=new l.BehaviorSubject([new re("",{})]),i=new l.BehaviorSubject({}),r=new l.BehaviorSubject({}),s=new l.BehaviorSubject({}),a=new l.BehaviorSubject(""),u=new Fe(o,i,s,a,r,K,t,n.root);return u.snapshot=n.root,new Ue(new je(u,[]),n)}var Fe=function(){function e(e,t,n,o,i,r,l,s){this.url=e,this.params=t,this.queryParams=n,this.fragment=o,this.data=i,this.outlet=r,this.component=l,this._futureSnapshot=s}return Object.defineProperty(e.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=c.map.call(this.params,function(e){return H(e)})),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=c.map.call(this.queryParams,function(e){return H(e)})),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},e}();function Ke(e,t){void 0===t&&(t="emptyOnly");var n=e.pathFromRoot,o=0;if("always"!==t)for(o=n.length-1;o>=1;){var i=n[o],l=n[o-1];if(i.routeConfig&&""===i.routeConfig.path)o--;else{if(l.component)break;o--}}return function(e){return e.reduce(function(e,t){return{params:Object(r.__assign)({},e.params,t.params),data:Object(r.__assign)({},e.data,t.data),resolve:Object(r.__assign)({},e.resolve,t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(o))}var Be=function(){function e(e,t,n,o,i,r,l,s,a,u,c){this.url=e,this.params=t,this.queryParams=n,this.fragment=o,this.data=i,this.outlet=r,this.component=l,this.routeConfig=s,this._urlSegment=a,this._lastPathIndex=u,this._resolve=c}return Object.defineProperty(e.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=H(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=H(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"Route(url:'"+this.url.map(function(e){return e.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},e}(),He=function(e){function t(t,n){var o=e.call(this,n)||this;return o.url=t,We(o,n),o}return Object(r.__extends)(t,e),t.prototype.toString=function(){return qe(this._root)},t}(Re);function We(e,t){t.value._routerState=e,t.children.forEach(function(t){return We(e,t)})}function qe(e){var t=e.children.length>0?" { "+e.children.map(qe).join(", ")+" } ":"";return""+e.value+t}function ze(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Q(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Q(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!Q(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),Q(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function $e(e,t){var n,o;return Q(e.params,t.params)&&le(n=e.url,o=t.url)&&n.every(function(e,t){return Q(e.parameters,o[t].parameters)})&&!(!e.parent!=!t.parent)&&(!e.parent||$e(e.parent,t.parent))}function Ge(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Ye(e,t,n,o,i){var r={};return o&&X(o,function(e,t){r[t]=Array.isArray(e)?e.map(function(e){return""+e}):""+e}),new oe(n.root===e?t:function e(t,n,o){var i={};return X(t.children,function(t,r){i[r]=t===n?o:e(t,n,o)}),new ie(t.segments,i)}(n.root,e,t),r,i)}var Qe=function(){function e(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&Ge(n[0]))throw new Error("Root segment cannot have matrix parameters");var o=n.find(function(e){return"object"==typeof e&&null!=e&&e.outlets});if(o&&o!==Z(n))throw new Error("{outlets:{}} has to be the last command")}return e.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},e}(),Je=function(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n};function Ze(e){return"object"==typeof e&&null!=e&&e.outlets?e.outlets[K]:""+e}function Xe(e,t,n){if(e||(e=new ie([],{})),0===e.segments.length&&e.hasChildren())return et(e,t,n);var o=function(e,t,n){for(var o=0,i=t,r={match:!1,pathIndex:0,commandIndex:0};i<e.segments.length;){if(o>=n.length)return r;var l=e.segments[i],s=Ze(n[o]),a=o<n.length-1?n[o+1]:null;if(i>0&&void 0===s)break;if(s&&a&&"object"==typeof a&&void 0===a.outlets){if(!it(s,a,l))return r;o+=2}else{if(!it(s,{},l))return r;o++}i++}return{match:!0,pathIndex:i,commandIndex:o}}(e,t,n),i=n.slice(o.commandIndex);if(o.match&&o.pathIndex<e.segments.length){var r=new ie(e.segments.slice(0,o.pathIndex),{});return r.children[K]=new ie(e.segments.slice(o.pathIndex),e.children),et(r,0,i)}return o.match&&0===i.length?new ie(e.segments,{}):o.match&&!e.hasChildren()?tt(e,t,n):o.match?et(e,0,i):tt(e,t,n)}function et(e,t,n){if(0===n.length)return new ie(e.segments,{});var o=function(e){return"object"!=typeof e[0]?((t={})[K]=e,t):void 0===e[0].outlets?((n={})[K]=e,n):e[0].outlets;var t,n}(n),i={};return X(o,function(n,o){null!==n&&(i[o]=Xe(e.children[o],t,n))}),X(e.children,function(e,t){void 0===o[t]&&(i[t]=e)}),new ie(e.segments,i)}function tt(e,t,n){for(var o=e.segments.slice(0,t),i=0;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){var r=nt(n[i].outlets);return new ie(o,r)}if(0===i&&Ge(n[0]))o.push(new re(e.segments[t].path,n[0])),i++;else{var l=Ze(n[i]),s=i<n.length-1?n[i+1]:null;l&&s&&Ge(s)?(o.push(new re(l,ot(s))),i+=2):(o.push(new re(l,{})),i++)}}return new ie(o,{})}function nt(e){var t={};return X(e,function(e,n){null!==e&&(t[n]=tt(new ie([],{}),0,e))}),t}function ot(e){var t={};return X(e,function(e,n){return t[n]=""+e}),t}function it(e,t,n){return e==n.path&&Q(t,n.parameters)}var rt=function(e){this.path=e,this.route=this.path[this.path.length-1]},lt=function(e,t){this.component=e,this.route=t},st=function(){function e(e,t,n,o){this.future=e,this.curr=t,this.moduleInjector=n,this.forwardEvent=o,this.canActivateChecks=[],this.canDeactivateChecks=[]}return e.prototype.initialize=function(e){var t=this.future._root;this.setupChildRouteGuards(t,this.curr?this.curr._root:null,e,[t.value])},e.prototype.checkGuards=function(){var e=this;if(!this.isDeactivating()&&!this.isActivating())return Object(a.of)(!0);var t=this.runCanDeactivateChecks();return d.mergeMap.call(t,function(t){return t?e.runCanActivateChecks():Object(a.of)(!1)})},e.prototype.resolveData=function(e){var t=this;if(!this.isActivating())return Object(a.of)(null);var n=Object(f.from)(this.canActivateChecks),o=u.concatMap.call(n,function(n){return t.runResolve(n.route,e)});return w.reduce.call(o,function(e,t){return e})},e.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},e.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},e.prototype.setupChildRouteGuards=function(e,t,n,o){var i=this,r=Le(t);e.children.forEach(function(e){i.setupRouteGuards(e,r[e.value.outlet],n,o.concat([e.value])),delete r[e.value.outlet]}),X(r,function(e,t){return i.deactivateRouteAndItsChildren(e,n.getContext(t))})},e.prototype.setupRouteGuards=function(e,t,n,o){var i=e.value,r=t?t.value:null,l=n?n.getContext(e.value.outlet):null;if(r&&i.routeConfig===r.routeConfig){var s=this.shouldRunGuardsAndResolvers(r,i,i.routeConfig.runGuardsAndResolvers);s?this.canActivateChecks.push(new rt(o)):(i.data=r.data,i._resolvedData=r._resolvedData),this.setupChildRouteGuards(e,t,i.component?l?l.children:null:n,o),s&&this.canDeactivateChecks.push(new lt(l.outlet.component,r))}else r&&this.deactivateRouteAndItsChildren(t,l),this.canActivateChecks.push(new rt(o)),this.setupChildRouteGuards(e,null,i.component?l?l.children:null:n,o)},e.prototype.shouldRunGuardsAndResolvers=function(e,t,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!$e(e,t)||!Q(e.queryParams,t.queryParams);case"paramsChange":default:return!$e(e,t)}},e.prototype.deactivateRouteAndItsChildren=function(e,t){var n=this,o=Le(e),i=e.value;X(o,function(e,o){n.deactivateRouteAndItsChildren(e,i.component?t?t.children.getContext(o):null:t)}),this.canDeactivateChecks.push(new lt(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))},e.prototype.runCanDeactivateChecks=function(){var e=this,t=Object(f.from)(this.canDeactivateChecks),n=d.mergeMap.call(t,function(t){return e.runCanDeactivate(t.component,t.route)});return b.every.call(n,function(e){return!0===e})},e.prototype.runCanActivateChecks=function(){var e=this,t=Object(f.from)(this.canActivateChecks),n=u.concatMap.call(t,function(t){return ee(Object(f.from)([e.fireChildActivationStart(t.route.parent),e.fireActivationStart(t.route),e.runCanActivateChild(t.path),e.runCanActivate(t.route)]))});return b.every.call(n,function(e){return!0===e})},e.prototype.fireActivationStart=function(e){return null!==e&&this.forwardEvent&&this.forwardEvent(new V(e)),Object(a.of)(!0)},e.prototype.fireChildActivationStart=function(e){return null!==e&&this.forwardEvent&&this.forwardEvent(new L(e)),Object(a.of)(!0)},e.prototype.runCanActivate=function(e){var t=this,n=e.routeConfig?e.routeConfig.canActivate:null;return n&&0!==n.length?ee(c.map.call(Object(f.from)(n),function(n){var o,i=t.getToken(n,e);return o=te(i.canActivate?i.canActivate(e,t.future):i(e,t.future)),m.first.call(o)})):Object(a.of)(!0)},e.prototype.runCanActivateChild=function(e){var t=this,n=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(function(e){return t.extractCanActivateChild(e)}).filter(function(e){return null!==e});return ee(c.map.call(Object(f.from)(o),function(e){return ee(c.map.call(Object(f.from)(e.guards),function(o){var i,r=t.getToken(o,e.node);return i=te(r.canActivateChild?r.canActivateChild(n,t.future):r(n,t.future)),m.first.call(i)}))}))},e.prototype.extractCanActivateChild=function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null},e.prototype.runCanDeactivate=function(e,t){var n=this,o=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(a.of)(!0);var i=d.mergeMap.call(Object(f.from)(o),function(o){var i,r=n.getToken(o,t);return i=te(r.canDeactivate?r.canDeactivate(e,t,n.curr,n.future):r(e,t,n.curr,n.future)),m.first.call(i)});return b.every.call(i,function(e){return!0===e})},e.prototype.runResolve=function(e,t){return c.map.call(this.resolveNode(e._resolve,e),function(n){return e._resolvedData=n,e.data=Object(r.__assign)({},e.data,Ke(e,t).resolve),null})},e.prototype.resolveNode=function(e,t){var n=this,o=Object.keys(e);if(0===o.length)return Object(a.of)({});if(1===o.length){var i=o[0];return c.map.call(this.getResolver(e[i],t),function(e){return(t={})[i]=e,t;var t})}var r={},l=d.mergeMap.call(Object(f.from)(o),function(o){return c.map.call(n.getResolver(e[o],t),function(e){return r[o]=e,e})});return c.map.call(k.last.call(l),function(){return r})},e.prototype.getResolver=function(e,t){var n=this.getToken(e,t);return te(n.resolve?n.resolve(t,this.future):n(t,this.future))},e.prototype.getToken=function(e,t){var n=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(n?n.module.injector:this.moduleInjector).get(e)},e}(),at=function(){},ut=function(){function e(e,t,n,o,i){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=o,this.paramsInheritanceStrategy=i}return e.prototype.recognize=function(){try{var e=pt(this.urlTree.root,[],[],this.config).segmentGroup,t=this.processSegmentGroup(this.config,e,K),n=new Be([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},K,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new je(n,t),i=new He(this.url,o);return this.inheritParamsAndData(i._root),Object(a.of)(i)}catch(e){return new p.Observable(function(t){return t.error(e)})}},e.prototype.inheritParamsAndData=function(e){var t=this,n=e.value,o=Ke(n,this.paramsInheritanceStrategy);n.params=Object.freeze(o.params),n.data=Object.freeze(o.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})},e.prototype.processSegmentGroup=function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)},e.prototype.processChildren=function(e,t){var n,o=this,i=se(t,function(t,n){return o.processSegmentGroup(e,t,n)});return n={},i.forEach(function(e){var t=n[e.value.outlet];if(t){var o=t.url.map(function(e){return e.toString()}).join("/"),i=e.value.url.map(function(e){return e.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+o+"' and '"+i+"'.")}n[e.value.outlet]=e.value}),i.sort(function(e,t){return e.value.outlet===K?-1:t.value.outlet===K?1:e.value.outlet.localeCompare(t.value.outlet)}),i},e.prototype.processSegment=function(e,t,n,o){for(var i=0,r=e;i<r.length;i++){var l=r[i];try{return this.processSegmentAgainstRoute(l,t,n,o)}catch(e){if(!(e instanceof at))throw e}}if(this.noLeftoversInUrl(t,n,o))return[];throw new at},e.prototype.noLeftoversInUrl=function(e,t,n){return 0===t.length&&!e.children[n]},e.prototype.processSegmentAgainstRoute=function(e,t,n,o){if(e.redirectTo)throw new at;if((e.outlet||K)!==o)throw new at;var i,l=[],s=[];if("**"===e.path){var a=n.length>0?Z(n).parameters:{};i=new Be(n,a,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,yt(e),o,e.component,e,ct(t),dt(t)+n.length,mt(e))}else{var u=function(e,t,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||n.length>0))throw new at;return{consumedSegments:[],lastChild:0,parameters:{}}}var o=(t.matcher||W)(n,e,t);if(!o)throw new at;var i={};X(o.posParams,function(e,t){i[t]=e.path});var l=o.consumed.length>0?Object(r.__assign)({},i,o.consumed[o.consumed.length-1].parameters):i;return{consumedSegments:o.consumed,lastChild:o.consumed.length,parameters:l}}(t,e,n);l=u.consumedSegments,s=n.slice(u.lastChild),i=new Be(l,u.parameters,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,yt(e),o,e.component,e,ct(t),dt(t)+l.length,mt(e))}var c=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),d=pt(t,l,s,c),p=d.segmentGroup,f=d.slicedSegments;if(0===f.length&&p.hasChildren()){var h=this.processChildren(c,p);return[new je(i,h)]}if(0===c.length&&0===f.length)return[new je(i,[])];var y=this.processSegment(c,p,f,K);return[new je(i,y)]},e}();function ct(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function dt(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function pt(e,t,n,o){if(n.length>0&&function(e,t,n){return o.some(function(n){return ft(e,t,n)&&ht(n)!==K})}(e,n)){var i=new ie(t,function(e,t,n,o){var i={};i[K]=o,o._sourceSegment=e,o._segmentIndexShift=t.length;for(var r=0,l=n;r<l.length;r++){var s=l[r];if(""===s.path&&ht(s)!==K){var a=new ie([],{});a._sourceSegment=e,a._segmentIndexShift=t.length,i[ht(s)]=a}}return i}(e,t,o,new ie(n,e.children)));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return o.some(function(n){return ft(e,t,n)})}(e,n)){var l=new ie(e.segments,function(e,t,n,i){for(var l={},s=0,a=o;s<a.length;s++){var u=a[s];if(ft(e,t,u)&&!i[ht(u)]){var c=new ie([],{});c._sourceSegment=e,c._segmentIndexShift=e.segments.length,l[ht(u)]=c}}return Object(r.__assign)({},i,l)}(e,n,0,e.children));return l._sourceSegment=e,l._segmentIndexShift=t.length,{segmentGroup:l,slicedSegments:n}}var s=new ie(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function ft(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function ht(e){return e.outlet||K}function yt(e){return e.data||{}}function mt(e){return e.resolve||{}}var gt=function(){},vt=function(){function e(){}return e.prototype.shouldDetach=function(e){return!1},e.prototype.store=function(e,t){},e.prototype.shouldAttach=function(e){return!1},e.prototype.retrieve=function(e){return null},e.prototype.shouldReuseRoute=function(e,t){return e.routeConfig===t.routeConfig},e}(),bt=new i.InjectionToken("ROUTES"),kt=function(){function e(e,t,n,o){this.loader=e,this.compiler=t,this.onLoadStartListener=n,this.onLoadEndListener=o}return e.prototype.load=function(e,t){var n=this;this.onLoadStartListener&&this.onLoadStartListener(t);var o=this.loadModuleFactory(t.loadChildren);return c.map.call(o,function(o){n.onLoadEndListener&&n.onLoadEndListener(t);var i=o.create(e);return new q(J(i.injector.get(bt)).map(Y),i)})},e.prototype.loadModuleFactory=function(e){var t=this;return"string"==typeof e?Object(v.fromPromise)(this.loader.load(e)):d.mergeMap.call(te(e()),function(e){return e instanceof i.NgModuleFactory?Object(a.of)(e):Object(v.fromPromise)(t.compiler.compileModuleAsync(e))})},e}(),_t=function(){},wt=function(){function e(){}return e.prototype.shouldProcessUrl=function(e){return!0},e.prototype.extract=function(e){return e},e.prototype.merge=function(e,t){return e},e}();function At(e){throw e}function Tt(e){return Object(a.of)(null)}var Ct=function(){function e(e,t,n,o,r,a,u,c){var d=this;this.rootComponentType=e,this.urlSerializer=t,this.rootContexts=n,this.location=o,this.config=c,this.navigations=new l.BehaviorSubject(null),this.navigationId=0,this.events=new s.Subject,this.errorHandler=At,this.navigated=!1,this.hooks={beforePreactivation:Tt,afterPreactivation:Tt},this.urlHandlingStrategy=new wt,this.routeReuseStrategy=new vt,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.ngModule=r.get(i.NgModuleRef),this.resetConfig(c),this.currentUrlTree=new oe(new ie([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new kt(a,u,function(e){return d.triggerEvent(new N(e))},function(e){return d.triggerEvent(new j(e))}),this.routerState=Ve(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return e.prototype.resetRootComponentType=function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType},e.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},e.prototype.setUpLocationChangeListener=function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.urlSerializer.parse(t.url),o="popstate"===t.type?"popstate":"hashchange";setTimeout(function(){e.scheduleNavigation(n,o,{replaceUrl:!0})},0)}))},Object.defineProperty(e.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),e.prototype.triggerEvent=function(e){this.events.next(e)},e.prototype.resetConfig=function(e){z(e),this.config=e.map(Y),this.navigated=!1},e.prototype.ngOnDestroy=function(){this.dispose()},e.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},e.prototype.createUrlTree=function(e,t){void 0===t&&(t={});var n=t.relativeTo,o=t.queryParams,l=t.fragment,s=t.preserveQueryParams,a=t.queryParamsHandling,u=t.preserveFragment;Object(i.isDevMode)()&&s&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=n||this.routerState.root,d=u?this.currentUrlTree.fragment:l,p=null;if(a)switch(a){case"merge":p=Object(r.__assign)({},this.currentUrlTree.queryParams,o);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=o||null}else p=s?this.currentUrlTree.queryParams:o||null;return null!==p&&(p=this.removeEmptyProps(p)),function(e,t,n,o,i){if(0===n.length)return Ye(t.root,t.root,t,o,i);var r=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Qe(!0,0,e);var t=0,n=!1,o=e.reduce(function(e,o,i){if("object"==typeof o&&null!=o){if(o.outlets){var r={};return X(o.outlets,function(e,t){r[t]="string"==typeof e?e.split("/"):e}),e.concat([{outlets:r}])}if(o.segmentPath)return e.concat([o.segmentPath])}return"string"!=typeof o?e.concat([o]):0===i?(o.split("/").forEach(function(o,i){0==i&&"."===o||(0==i&&""===o?n=!0:".."===o?t++:""!=o&&e.push(o))}),e):e.concat([o])},[]);return new Qe(n,t,o)}(n);if(r.toRoot())return Ye(t.root,new ie([],{}),t,o,i);var l=function(e,n,o){if(e.isAbsolute)return new Je(t.root,!0,0);if(-1===o.snapshot._lastPathIndex)return new Je(o.snapshot._urlSegment,!0,0);var i=Ge(e.commands[0])?0:1;return function(t,n,r){for(var l=o.snapshot._urlSegment,s=o.snapshot._lastPathIndex+i,a=e.numberOfDoubleDots;a>s;){if(a-=s,!(l=l.parent))throw new Error("Invalid number of '../'");s=l.segments.length}return new Je(l,!1,s-a)}()}(r,0,e),s=l.processChildren?et(l.segmentGroup,l.index,r.commands):Xe(l.segmentGroup,l.index,r.commands);return Ye(l.segmentGroup,s,t,o,i)}(c,this.currentUrlTree,e,p,d)},e.prototype.navigateByUrl=function(e,t){void 0===t&&(t={skipLocationChange:!1});var n=e instanceof oe?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(o,"imperative",t)},e.prototype.navigate=function(e,t){return void 0===t&&(t={skipLocationChange:!1}),function(e){for(var t=0;t<e.length;t++){var n=e[t];if(null==n)throw new Error("The requested path contains "+n+" segment at index "+t)}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)},e.prototype.serializeUrl=function(e){return this.urlSerializer.serialize(e)},e.prototype.parseUrl=function(e){return this.urlSerializer.parse(e)},e.prototype.isActive=function(e,t){if(e instanceof oe)return ne(this.currentUrlTree,e,t);var n=this.urlSerializer.parse(e);return ne(this.currentUrlTree,n,t)},e.prototype.removeEmptyProps=function(e){return Object.keys(e).reduce(function(t,n){var o=e[n];return null!==o&&void 0!==o&&(t[n]=o),t},{})},e.prototype.processNavigations=function(){var e=this;u.concatMap.call(this.navigations,function(t){return t?(e.executeScheduledNavigation(t),t.promise.catch(function(){})):Object(a.of)(null)}).subscribe(function(){})},e.prototype.scheduleNavigation=function(e,t,n){var o=this.navigations.value;if(o&&"imperative"!==t&&"imperative"===o.source&&o.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(o&&"hashchange"==t&&"popstate"===o.source&&o.rawUrl.toString()===e.toString())return Promise.resolve(!0);if(o&&"popstate"==t&&"hashchange"===o.source&&o.rawUrl.toString()===e.toString())return Promise.resolve(!0);var i=null,r=null,l=new Promise(function(e,t){i=e,r=t}),s=++this.navigationId;return this.navigations.next({id:s,source:t,rawUrl:e,extras:n,resolve:i,reject:r,promise:l}),l.catch(function(e){return Promise.reject(e)})},e.prototype.executeScheduledNavigation=function(e){var t=this,n=e.id,o=e.rawUrl,i=e.extras,r=e.resolve,l=e.reject,s=this.urlHandlingStrategy.extract(o),a=!this.navigated||s.toString()!==this.currentUrlTree.toString();("reload"===this.onSameUrlNavigation||a)&&this.urlHandlingStrategy.shouldProcessUrl(o)?(this.events.next(new x(n,this.serializeUrl(s))),Promise.resolve().then(function(e){return t.runNavigate(s,o,!!i.skipLocationChange,!!i.replaceUrl,n,null)}).then(r,l)):a&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)?(this.events.next(new x(n,this.serializeUrl(s))),Promise.resolve().then(function(e){return t.runNavigate(s,o,!1,!1,n,Ve(s,t.rootComponentType).snapshot)}).then(r,l)):(this.rawUrlTree=o,r(null))},e.prototype.runNavigate=function(e,t,n,o,i,r){var s=this;return i!==this.navigationId?(this.events.next(new S(i,this.serializeUrl(e),"Navigation ID "+i+" is not equal to the current navigation id "+this.navigationId)),Promise.resolve(!1)):new Promise(function(u,p){var f;if(r)f=Object(a.of)({appliedUrl:e,snapshot:r});else{var h=new Se(s.ngModule.injector,s.configLoader,s.urlSerializer,e,s.config).apply();f=d.mergeMap.call(h,function(t){return c.map.call(function(e,t,n,o,i){return void 0===i&&(i="emptyOnly"),new ut(e,t,n,o,i).recognize()}(s.rootComponentType,s.config,t,s.serializeUrl(t),s.paramsInheritanceStrategy),function(n){return s.events.next(new E(i,s.serializeUrl(e),s.serializeUrl(t),n)),{appliedUrl:t,snapshot:n}})})}var y,m=d.mergeMap.call(f,function(e){return c.map.call(s.hooks.beforePreactivation(e.snapshot),function(){return e})}),g=c.map.call(m,function(e){var t=e.appliedUrl,n=e.snapshot;return(y=new st(n,s.routerState.snapshot,s.ngModule.injector,function(e){return s.triggerEvent(e)})).initialize(s.rootContexts),{appliedUrl:t,snapshot:n}}),v=d.mergeMap.call(g,function(t){var n=t.appliedUrl,o=t.snapshot;return s.navigationId!==i?Object(a.of)(!1):(s.triggerEvent(new P(i,s.serializeUrl(e),n,o)),c.map.call(y.checkGuards(),function(t){return s.triggerEvent(new I(i,s.serializeUrl(e),n,o,t)),{appliedUrl:n,snapshot:o,shouldActivate:t}}))}),b=d.mergeMap.call(v,function(t){return s.navigationId!==i?Object(a.of)(!1):t.shouldActivate&&y.isActivating()?(s.triggerEvent(new R(i,s.serializeUrl(e),t.appliedUrl,t.snapshot)),c.map.call(y.resolveData(s.paramsInheritanceStrategy),function(){return s.triggerEvent(new D(i,s.serializeUrl(e),t.appliedUrl,t.snapshot)),t})):Object(a.of)(t)}),k=d.mergeMap.call(b,function(e){return c.map.call(s.hooks.afterPreactivation(e.snapshot),function(){return e})}),_=c.map.call(k,function(e){var t,n,o,i=e.appliedUrl,r=e.shouldActivate;return r?{appliedUrl:i,state:(o=function e(t,n,o){if(o&&t.shouldReuseRoute(n.value,o.value.snapshot)){(a=o.value)._futureSnapshot=n.value;var i=function(t,n,o){return n.children.map(function(n){for(var i=0,r=o.children;i<r.length;i++){var l=r[i];if(t.shouldReuseRoute(l.value.snapshot,n.value))return e(t,n,l)}return e(t,n)})}(t,n,o);return new je(a,i)}if(t.retrieve(n.value)){var r=t.retrieve(n.value).route;return function e(t,n){if(t.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=t.value;for(var o=0;o<t.children.length;++o)e(t.children[o],n.children[o])}(n,r),r}var s,a=new Fe(new l.BehaviorSubject((s=n.value).url),new l.BehaviorSubject(s.params),new l.BehaviorSubject(s.queryParams),new l.BehaviorSubject(s.fragment),new l.BehaviorSubject(s.data),s.outlet,s.component,s);return i=n.children.map(function(n){return e(t,n)}),new je(a,i)}(s.routeReuseStrategy,(t=e.snapshot)._root,(n=s.routerState)?n._root:void 0),new Ue(o,t)),shouldActivate:r}:{appliedUrl:i,state:null,shouldActivate:r}});s.activateRoutes(_,s.routerState,s.currentUrlTree,i,e,t,n,o,u,p)})},e.prototype.activateRoutes=function(e,t,n,o,i,r,l,s,a,u){var c,d=this;e.forEach(function(e){var n=e.state;if(e.shouldActivate&&o===d.navigationId){if(d.currentUrlTree=e.appliedUrl,d.rawUrlTree=d.urlHandlingStrategy.merge(d.currentUrlTree,r),d.routerState=n,!l){var i=d.urlSerializer.serialize(d.rawUrlTree);d.location.isCurrentPathEqualTo(i)||s?d.location.replaceState(i):d.location.go(i)}new xt(d.routeReuseStrategy,n,t,function(e){return d.triggerEvent(e)}).activate(d.rootContexts),c=!0}else c=!1}).then(function(){c?(d.navigated=!0,d.events.next(new O(o,d.serializeUrl(i),d.serializeUrl(d.currentUrlTree))),a(!0)):(d.resetUrlToCurrentUrlTree(),d.events.next(new S(o,d.serializeUrl(i),"")),a(!1))},function(e){if((l=e)&&l.ngNavigationCancelingError)d.navigated=!0,d.resetStateAndUrl(t,n,r),d.events.next(new S(o,d.serializeUrl(i),e.message)),a(!1);else{d.resetStateAndUrl(t,n,r),d.events.next(new M(o,d.serializeUrl(i),e));try{a(d.errorHandler(e))}catch(e){u(e)}}var l})},e.prototype.resetStateAndUrl=function(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()},e.prototype.resetUrlToCurrentUrlTree=function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree))},e}(),xt=function(){function e(e,t,n,o){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=o}return e.prototype.activate=function(e){var t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),ze(this.futureState.root),this.activateChildRoutes(t,n,e)},e.prototype.deactivateChildRoutes=function(e,t,n){var o=this,i=Le(t);e.children.forEach(function(e){var t=e.value.outlet;o.deactivateRoutes(e,i[t],n),delete i[t]}),X(i,function(e,t){o.deactivateRouteAndItsChildren(e,n)})},e.prototype.deactivateRoutes=function(e,t,n){var o=e.value,i=t?t.value:null;if(o===i)if(o.component){var r=n.getContext(o.outlet);r&&this.deactivateChildRoutes(e,t,r.children)}else this.deactivateChildRoutes(e,t,n);else i&&this.deactivateRouteAndItsChildren(t,n)},e.prototype.deactivateRouteAndItsChildren=function(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)},e.prototype.detachAndStoreRouteSubtree=function(e,t){var n=t.getContext(e.value.outlet);if(n&&n.outlet){var o=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:o,route:e,contexts:i})}},e.prototype.deactivateRouteAndOutlet=function(e,t){var n=this,o=t.getContext(e.value.outlet);if(o){var i=Le(e),r=e.value.component?o.children:t;X(i,function(e,t){return n.deactivateRouteAndItsChildren(e,r)}),o.outlet&&(o.outlet.deactivate(),o.children.onOutletDeactivated())}},e.prototype.activateChildRoutes=function(e,t,n){var o=this,i=Le(t);e.children.forEach(function(e){o.activateRoutes(e,i[e.value.outlet],n),o.forwardEvent(new F(e.value.snapshot))}),e.children.length&&this.forwardEvent(new U(e.value.snapshot))},e.prototype.activateRoutes=function(e,t,n){var o=e.value,i=t?t.value:null;if(ze(o),o===i)if(o.component){var r=n.getOrCreateContext(o.outlet);this.activateChildRoutes(e,t,r.children)}else this.activateChildRoutes(e,t,n);else if(o.component)if(r=n.getOrCreateContext(o.outlet),this.routeReuseStrategy.shouldAttach(o.snapshot)){var l=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),r.children.onOutletReAttached(l.contexts),r.attachRef=l.componentRef,r.route=l.route.value,r.outlet&&r.outlet.attach(l.componentRef,l.route.value),Ot(l.route)}else{var s=function(e){for(var t=o.snapshot.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(),a=s?s.module.componentFactoryResolver:null;r.route=o,r.resolver=a,r.outlet&&r.outlet.activateWith(o,a),this.activateChildRoutes(e,null,r.children)}else this.activateChildRoutes(e,null,n)},e}();function Ot(e){ze(e.value),e.children.forEach(Ot)}var St=function(){function e(e,t,n){var o=this;this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.subscription=e.events.subscribe(function(e){e instanceof O&&o.updateTargetUrlAndHref()})}return Object.defineProperty(e.prototype,"routerLink",{set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"preserveQueryParams",{set:function(e){Object(i.isDevMode)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=e},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.updateTargetUrlAndHref()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.onClick=function(e,t,n,o){if(0!==e||t||n||o)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var i={skipLocationChange:Mt(this.skipLocationChange),replaceUrl:Mt(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,i),!1},e.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(e.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Mt(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Mt(this.preserveFragment)})},enumerable:!0,configurable:!0}),e}();function Mt(e){return""===e||!!e}var Et=function(){function e(e,t,n,o){var i=this;this.router=e,this.element=t,this.renderer=n,this.cdr=o,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=e.events.subscribe(function(e){e instanceof O&&i.update()})}return e.prototype.ngAfterContentInit=function(){var e=this;this.links.changes.subscribe(function(t){return e.update()}),this.linksWithHrefs.changes.subscribe(function(t){return e.update()}),this.update()},Object.defineProperty(e.prototype,"routerLinkActive",{set:function(e){var t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter(function(e){return!!e})},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){this.update()},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.update=function(){var e=this;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(function(){var t=e.hasActiveLinks();e.isActive!==t&&(e.isActive=t,e.classes.forEach(function(n){t?e.renderer.addClass(e.element.nativeElement,n):e.renderer.removeClass(e.element.nativeElement,n)}))})},e.prototype.isLinkActive=function(e){var t=this;return function(n){return e.isActive(n.urlTree,t.routerLinkActiveOptions.exact)}},e.prototype.hasActiveLinks=function(){return this.links.some(this.isLinkActive(this.router))||this.linksWithHrefs.some(this.isLinkActive(this.router))},e}(),Pt=function(){return function(){this.outlet=null,this.route=null,this.resolver=null,this.children=new It,this.attachRef=null}}(),It=function(){function e(){this.contexts=new Map}return e.prototype.onChildOutletCreated=function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)},e.prototype.onChildOutletDestroyed=function(e){var t=this.getContext(e);t&&(t.outlet=null)},e.prototype.onOutletDeactivated=function(){var e=this.contexts;return this.contexts=new Map,e},e.prototype.onOutletReAttached=function(e){this.contexts=e},e.prototype.getOrCreateContext=function(e){var t=this.getContext(e);return t||(t=new Pt,this.contexts.set(e,t)),t},e.prototype.getContext=function(e){return this.contexts.get(e)||null},e}(),Rt=function(){function e(e,t,n,o,r){this.parentContexts=e,this.location=t,this.resolver=n,this.changeDetector=r,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.EventEmitter,this.deactivateEvents=new i.EventEmitter,this.name=o||K,e.onChildOutletCreated(this.name,this)}return e.prototype.ngOnDestroy=function(){this.parentContexts.onChildOutletDestroyed(this.name)},e.prototype.ngOnInit=function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.resolver||null))}},Object.defineProperty(e.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activatedRouteData",{get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}},enumerable:!0,configurable:!0}),e.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var e=this.activated;return this.activated=null,this._activatedRoute=null,e},e.prototype.attach=function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)},e.prototype.deactivate=function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}},e.prototype.activateWith=function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),o=this.parentContexts.getOrCreateContext(this.name).children,i=new Dt(e,o,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)},e}(),Dt=function(){function e(e,t,n){this.route=e,this.childContexts=t,this.parent=n}return e.prototype.get=function(e,t){return e===Fe?this.route:e===It?this.childContexts:this.parent.get(e,t)},e}(),Nt=function(){},jt=function(){function e(){}return e.prototype.preload=function(e,t){return h._catch.call(t(),function(){return Object(a.of)(null)})},e}(),Lt=function(){function e(){}return e.prototype.preload=function(e,t){return Object(a.of)(null)},e}(),Ut=function(){function e(e,t,n,o,i){this.router=e,this.injector=o,this.preloadingStrategy=i,this.loader=new kt(t,n,function(t){return e.triggerEvent(new N(t))},function(t){return e.triggerEvent(new j(t))})}return e.prototype.setUpPreloading=function(){var e=this,t=T.filter.call(this.router.events,function(e){return e instanceof O});this.subscription=u.concatMap.call(t,function(){return e.preload()}).subscribe(function(){})},e.prototype.preload=function(){var e=this.injector.get(i.NgModuleRef);return this.processRoutes(e,this.router.config)},e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.processRoutes=function(e,t){for(var n=[],o=0,i=t;o<i.length;o++){var r=i[o];if(r.loadChildren&&!r.canLoad&&r._loadedConfig){var l=r._loadedConfig;n.push(this.processRoutes(l.module,l.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(e,r)):r.children&&n.push(this.processRoutes(e,r.children))}return _.mergeAll.call(Object(f.from)(n))},e.prototype.preloadConfig=function(e,t){var n=this;return this.preloadingStrategy.preload(t,function(){var o=n.loader.load(e.injector,t);return d.mergeMap.call(o,function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)})})},e}(),Vt=new i.InjectionToken("ROUTER_CONFIGURATION"),Ft=new i.InjectionToken("ROUTER_FORROOT_GUARD"),Kt=[o.g,{provide:ae,useClass:ue},{provide:Ct,useFactory:$t,deps:[i.ApplicationRef,ae,It,o.g,i.Injector,i.NgModuleFactoryLoader,i.Compiler,bt,Vt,[_t,new i.Optional],[gt,new i.Optional]]},It,{provide:Fe,useFactory:Gt,deps:[Ct]},{provide:i.NgModuleFactoryLoader,useClass:i.SystemJsNgModuleLoader},Ut,Lt,jt,{provide:Vt,useValue:{enableTracing:!1}}];function Bt(){return new i.NgProbeToken("Router",Ct)}var Ht=function(){function e(e,t){}return e.forRoot=function(t,n){return{ngModule:e,providers:[Kt,zt(t),{provide:Ft,useFactory:qt,deps:[[Ct,new i.Optional,new i.SkipSelf]]},{provide:Vt,useValue:n||{}},{provide:o.h,useFactory:Wt,deps:[o.s,[new i.Inject(o.a),new i.Optional],Vt]},{provide:Nt,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Lt},{provide:i.NgProbeToken,multi:!0,useFactory:Bt},[Yt,{provide:i.APP_INITIALIZER,multi:!0,useFactory:Qt,deps:[Yt]},{provide:Zt,useFactory:Jt,deps:[Yt]},{provide:i.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:Zt}]]}},e.forChild=function(t){return{ngModule:e,providers:[zt(t)]}},e}();function Wt(e,t,n){return void 0===n&&(n={}),n.useHash?new o.e(e,t):new o.r(e,t)}function qt(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function zt(e){return[{provide:i.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:e},{provide:bt,multi:!0,useValue:e}]}function $t(e,t,n,o,i,r,l,s,a,u,c){void 0===a&&(a={});var d=new Ct(null,t,n,o,i,r,l,J(s));if(u&&(d.urlHandlingStrategy=u),c&&(d.routeReuseStrategy=c),a.errorHandler&&(d.errorHandler=a.errorHandler),a.enableTracing){var p=Object(A.s)();d.events.subscribe(function(e){p.logGroup("Router Event: "+e.constructor.name),p.log(e.toString()),p.log(e),p.logGroupEnd()})}return a.onSameUrlNavigation&&(d.onSameUrlNavigation=a.onSameUrlNavigation),a.paramsInheritanceStrategy&&(d.paramsInheritanceStrategy=a.paramsInheritanceStrategy),d}function Gt(e){return e.routerState.root}var Yt=function(){function e(e){this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new s.Subject}return e.prototype.appInitializer=function(){var e=this;return this.injector.get(o.f,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),o=e.injector.get(Ct),i=e.injector.get(Vt);if(e.isLegacyDisabled(i)||e.isLegacyEnabled(i))t(!0);else if("disabled"===i.initialNavigation)o.setUpLocationChangeListener(),t(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '"+i.initialNavigation+"'");o.hooks.afterPreactivation=function(){return e.initNavigation?Object(a.of)(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},o.initialNavigation()}return n})},e.prototype.bootstrapListener=function(e){var t=this.injector.get(Vt),n=this.injector.get(Ut),o=this.injector.get(Ct),r=this.injector.get(i.ApplicationRef);e===r.components[0]&&(this.isLegacyEnabled(t)?o.initialNavigation():this.isLegacyDisabled(t)&&o.setUpLocationChangeListener(),n.setUpPreloading(),o.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())},e.prototype.isLegacyEnabled=function(e){return"legacy_enabled"===e.initialNavigation||!0===e.initialNavigation||void 0===e.initialNavigation},e.prototype.isLegacyDisabled=function(e){return"legacy_disabled"===e.initialNavigation||!1===e.initialNavigation},e}();function Qt(e){return e.appInitializer.bind(e)}function Jt(e){return e.bootstrapListener.bind(e)}var Zt=new i.InjectionToken("Router Initializer")},bndy:function(e,t,n){"use strict";function o(e,t){return e===t}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,n=null,i=null;return function(){return function(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var o=t.length,i=0;i<o;i++)if(!e(t[i],n[i]))return!1;return!0}(t,n,arguments)||(i=e.apply(null,arguments)),n=arguments,i}}function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return function(){for(var t=arguments.length,o=Array(t),r=0;r<t;r++)o[r]=arguments[r];var l=0,s=o.pop(),a=function(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return"function"==typeof e})){var n=t.map(function(e){return typeof e}).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}(o),u=e.apply(void 0,[function(){return l++,s.apply(null,arguments)}].concat(n)),c=i(function(){for(var e=[],t=a.length,n=0;n<t;n++)e.push(a[n].apply(null,arguments));return u.apply(null,e)});return c.resultFunc=s,c.recomputations=function(){return l},c.resetRecomputations=function(){return l=0},c}}t.__esModule=!0,t.defaultMemoize=i,t.createSelectorCreator=r,t.createStructuredSelector=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;if("object"!=typeof e)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);var n=Object.keys(e);return t(n.map(function(t){return e[t]}),function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.reduce(function(e,t,o){return e[n[o]]=t,e},{})})};var l=t.createSelector=r(i)},bpTZ:function(e,t){e.exports={svg:{$:{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"744.094488189",height:"1052.36220472"},rect:[{$:{id:"key-1",x:"18.116484",y:"678.38116",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-2",x:"84.457497",y:"678.38116",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-3",x:"150.79849",y:"678.38116",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-4",x:"217.14047",y:"678.38116",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-5",x:"283.48148",y:"678.38116",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-6",x:"349.82248",y:"678.38116",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-7",x:"416.16348",y:"678.38116",ry:"3.5107117",width:"96.728996",height:"63.014999",style:"fill:#333"}},{$:{id:"key-8",x:"51.829502",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-9",x:"118.17051",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-10",x:"184.51248",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-11",x:"250.85349",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-12",x:"317.19449",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-13",x:"383.53549",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-14",x:"449.87747",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-15",x:"-14.511499",y:"744.89612",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-16",x:"67.828499",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-17",x:"133.81949",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-18",x:"199.81052",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-19",x:"265.80252",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-20",x:"331.79349",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-21",x:"397.78452",y:"811.41412",ry:"3.5107117",width:"115.108",height:"63.014999",style:"fill:#333"}},{$:{id:"key-22",x:"1.8374995",y:"811.41315",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-23",x:"34.921108",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-24",x:"101.15734",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-25",x:"167.39355",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-26",x:"233.62976",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-27",x:"299.86551",y:"877.92914",ry:"3.5107117",width:"63.014999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-28",x:"366.20651",y:"877.93018",ry:"3.5107117",width:"146.686",height:"63.014999",style:"fill:#333"}},{$:{id:"key-30",x:"1.2074946",y:"944.44714",ry:"3.5107117",width:"115.108",height:"63.014999",style:"fill:#333"}},{$:{id:"key-31",x:"1.2074946",y:"1011.1872",ry:"3.6962967",width:"115.108",height:"41.174999",style:"fill:#333"}},{$:{id:"key-32",x:"118.76652",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-33",x:"201.24649",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-34",x:"283.72647",y:"944.44714",ry:"3.5107117",width:"80.029999",height:"63.014999",style:"fill:#333"}},{$:{id:"key-35",x:"366.20651",y:"944.44714",ry:"3.5107117",width:"146.686",height:"63.014999",style:"fill:#333"}}],path:[{$:{d:"M 516.38706,680.32407 C 516.38706,677.38911 514.00888,675.01093 511.07392,675.01093 L 19.888327,675.01093 C 18.909867,675.01093 18.116667,674.21746 18.116667,673.23866 L 18.116667,651.55868 18.116667,651.55194 C 18.116667,650.57349 18.909867,649.78029 19.888327,649.78029 L 125.68888,649.78029 C 127.81809,649.73639 128.89871,648.55406 129.17114,646.84101 132.26186,628.99452 135.45421,611.20795 138.49949,593.93731 139.53551,589.17354 143.88942,585.96932 148.65533,586.72553 281.11656,609.26905 403.66743,628.75963 532.4454,649.98632 536.92364,650.86249 539.55062,654.40739 539.84604,658.70669 L 539.84604,1043.5236 C 539.65045,1048.4273 535.86191,1052.3324 531.008,1052.3616 L 120.53833,1052.3616 C 119.55987,1052.3616 118.76667,1051.5684 118.76667,1050.5899 L 118.76667,1050.5832 118.76667,1012.9583 C 118.76667,1011.9795 119.55987,1011.1861 120.53833,1011.1861 L 511.07392,1011.1861 C 514.00888,1011.1861 516.38706,1008.8079 516.38706,1005.8729 Z",style:"fill:#333"}}]}}},c8IX:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS"),r=n("F7Al");t.first=function(e,t,n){return function(o){return o.lift(new l(e,t,n,o))}};var l=function(){function e(e,t,n,o){this.predicate=e,this.resultSelector=t,this.defaultValue=n,this.source=o}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.predicate,this.resultSelector,this.defaultValue,this.source))},e}(),s=function(e){function t(t,n,o,i,r){e.call(this,t),this.predicate=n,this.resultSelector=o,this.defaultValue=i,this.source=r,this.index=0,this.hasCompleted=!1,this._emitted=!1}return o(t,e),t.prototype._next=function(e){var t=this.index++;this.predicate?this._tryPredicate(e,t):this._emit(e,t)},t.prototype._tryPredicate=function(e,t){var n;try{n=this.predicate(e,t,this.source)}catch(e){return void this.destination.error(e)}n&&this._emit(e,t)},t.prototype._emit=function(e,t){this.resultSelector?this._tryResultSelector(e,t):this._emitFinal(e)},t.prototype._tryResultSelector=function(e,t){var n;try{n=this.resultSelector(e,t)}catch(e){return void this.destination.error(e)}this._emitFinal(n)},t.prototype._emitFinal=function(e){var t=this.destination;this._emitted||(this._emitted=!0,t.next(e),t.complete(),this.hasCompleted=!0)},t.prototype._complete=function(){var e=this.destination;this.hasCompleted||"undefined"==typeof this.defaultValue?this.hasCompleted||e.error(new r.EmptyError):(e.next(this.defaultValue),e.complete())},t}(i.Subscriber)},cJSH:function(e,t,n){"use strict";var o=n("aQ5C");t.GroupedObservable=o.GroupedObservable,t.groupBy=function(e,t,n,i){return o.groupBy(e,t,n,i)(this)}},cPwE:function(e,t,n){"use strict";t.Scheduler=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=Date.now?Date.now:function(){return+new Date},e}()},cbuX:function(e,t,n){"use strict";var o=n("rKQy");t.mergeAll=function(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),o.mergeAll(e)(this)}},cdmN:function(e,t,n){"use strict";var o=n("VOfZ");function i(e){var t=e.Symbol;if("function"==typeof t)return t.iterator||(t.iterator=t("iterator polyfill")),t.iterator;var n=e.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var o=e.Map;if(o)for(var i=Object.getOwnPropertyNames(o.prototype),r=0;r<i.length;++r){var l=i[r];if("entries"!==l&&"size"!==l&&o.prototype[l]===o.prototype.entries)return l}return"@@iterator"}t.symbolIteratorPonyfill=i,t.iterator=i(o.root),t.$$iterator=t.iterator},cwzr:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("VOfZ"),r=n("zQPq");t.AsyncAction=function(e){function t(t,n){e.call(this,t,n),this.scheduler=t,this.work=n,this.pending=!1}return o(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e,this.pending=!0;var n=this.id,o=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(o,n,t)),this.delay=t,this.id=this.id||this.requestAsyncId(o,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),i.root.setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;i.root.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,o=void 0;try{this.work(e)}catch(e){n=!0,o=!!e&&e||new Error(e)}if(n)return this.unsubscribe(),o},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,o=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==o&&n.splice(o,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(r.Action)},dI0l:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS");t.filter=function(e,t){return function(n){return n.lift(new r(e,t))}};var r=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.predicate,this.thisArg))},e}(),l=function(e){function t(t,n,o){e.call(this,t),this.predicate=n,this.thisArg=o,this.count=0}return o(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(i.Subscriber)},dmgA:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n("y1XC"))},driz:function(e,t,n){"use strict";var o=n("CGGv"),i=n("MEr+");t.debounceTime=function(e,t){return void 0===t&&(t=o.async),i.debounceTime(e,t)(this)}},dt7L:function(e,t,n){"use strict";var o=n("UYy0"),i=n("UwVZ"),r=n("+Zxz"),l=n("9eyw");t.reduce=function(e,t){return arguments.length>=2?function(n){return l.pipe(o.scan(e,t),i.takeLast(1),r.defaultIfEmpty(t))(n)}:function(t){return l.pipe(o.scan(function(t,n,o){return e(t,n,o+1)}),i.takeLast(1))(t)}}},dyjq:function(e,t,n){"use strict";n.d(t,"n",function(){return Y}),n.d(t,"m",function(){return q}),n.d(t,"w",function(){return m}),n.d(t,"x",function(){return g}),n.d(t,"y",function(){return v}),n.d(t,"a",function(){return I}),n.d(t,"b",function(){return P}),n.d(t,"g",function(){return L}),n.d(t,"i",function(){return D}),n.d(t,"h",function(){return N}),n.d(t,"p",function(){return j}),n.d(t,"j",function(){return V}),n.d(t,"k",function(){return B}),n.d(t,"l",function(){return K}),n.d(t,"d",function(){return k}),n.d(t,"s",function(){return w}),n.d(t,"f",function(){return _}),n.d(t,"q",function(){return T}),n.d(t,"c",function(){return A}),n.d(t,"r",function(){return b}),n.d(t,"e",function(){return C}),n.d(t,"t",function(){return O}),n.d(t,"o",function(){return $}),n.d(t,"v",function(){return Z}),n.d(t,"u",function(){return Q});var o,i=n("WT6e"),r=n("TfWX"),l=n("rCTf"),s=n("EEr4"),a=n("RA5l"),u=(n.n(a),n("Ji1B")),c=(n.n(u),n("u2wr")),d=(n.n(c),n("td8d")),p=(n.n(d),n("xAJs")),f=n("U9ky"),h=(n.n(f),n("8hgl")),y=(n.n(h),this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}));function m(e,t){void 0===t&&(t={});for(var n=Object.keys(e),o={},i=0;i<n.length;i++){var r=n[i];"function"==typeof e[r]&&(o[r]=e[r])}var l=Object.keys(o);return function(e,n){void 0===e&&(e=t);for(var i=!1,r={},s=0;s<l.length;s++){var a=l[s],u=e[a],c=(0,o[a])(u,n);r[a]=c,i=i||c!==u}return i?r:e}}function g(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){if(0===e.length)return t;var n=e[e.length-1];return e.slice(0,-1).reduceRight(function(e,t){return t(e)},n(t))}}function v(e,t){return Array.isArray(t)&&t.length>0?g.apply(null,t.concat([e])):e}var b=new i.InjectionToken("@ngrx/store Internal Initial State"),k=new i.InjectionToken("@ngrx/store Initial State"),_=new i.InjectionToken("@ngrx/store Reducer Factory"),w=new i.InjectionToken("@ngrx/store Reducer Factory Provider"),A=new i.InjectionToken("@ngrx/store Initial Reducers"),T=new i.InjectionToken("@ngrx/store Internal Initial Reducers"),C=new i.InjectionToken("@ngrx/store Meta Reducers"),x=new i.InjectionToken("@ngrx/store Store Features"),O=new i.InjectionToken("@ngrx/store Internal Store Reducers"),S=new i.InjectionToken("@ngrx/store Internal Feature Reducers"),M=new i.InjectionToken("@ngrx/store Internal Feature Reducers Token"),E=new i.InjectionToken("@ngrx/store Feature Reducers"),P="@ngrx/store/init",I=function(e){function t(){return e.call(this,{type:P})||this}return y(t,e),t.prototype.next=function(t){if("undefined"==typeof t)throw new TypeError("Actions must be objects");if("undefined"==typeof t.type)throw new TypeError("Actions must have a type property");e.prototype.next.call(this,t)},t.prototype.complete=function(){},t.prototype.ngOnDestroy=function(){e.prototype.complete.call(this)},t}(r.BehaviorSubject),R=[I],D=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t}(l.Observable),N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t}(I),j="@ngrx/store/update-reducers",L=function(e){function t(t,n,o,i){var r=e.call(this,i(o,n))||this;return r.dispatcher=t,r.initialState=n,r.reducers=o,r.reducerFactory=i,r}return y(t,e),t.prototype.addFeature=function(e){var t=e.reducers,n=e.initialState,o=e.key,i="function"==typeof t?function(e,o){return void 0===e&&(e=n),t(e,o)}:v(e.reducerFactory,e.metaReducers)(t,n);this.addReducer(o,i)},t.prototype.removeFeature=function(e){this.removeReducer(e.key)},t.prototype.addReducer=function(e,t){var n;this.reducers=Object.assign({},this.reducers,((n={})[e]=t,n)),this.updateReducers()},t.prototype.removeReducer=function(e){var t,n;this.reducers=(t=this.reducers,n=e,Object.keys(t).filter(function(e){return e!==n}).reduce(function(e,n){return Object.assign(e,((o={})[n]=t[n],o));var o},{})),this.updateReducers()},t.prototype.updateReducers=function(){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:j})},t.prototype.ngOnDestroy=function(){this.complete()},t}(r.BehaviorSubject),U=[L,{provide:D,useExisting:L},{provide:N,useExisting:I}],V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.ngOnDestroy=function(){this.complete()},t}(s.Subject),F=[V],K=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t}(l.Observable),B=function(e){function t(t,n,o,i){var r=e.call(this,i)||this,l=u.observeOn.call(t,a.queue),s=c.withLatestFrom.call(l,n),p=d.scan.call(s,H,i);return r.stateSubscription=p.subscribe({next:function(e){var t=e.action;r.next(e.state),o.next(t)}}),r}return y(t,e),t.prototype.ngOnDestroy=function(){this.stateSubscription.unsubscribe(),this.complete()},t}(r.BehaviorSubject);function H(e,t){void 0===e&&(e={state:void 0});var n=t[0];return{state:(0,t[1])(e.state,n),action:n}}B.INIT=P;var W=[B,{provide:K,useExisting:B}],q=function(e){function t(t,n,o){var i=e.call(this)||this;return i.actionsObserver=n,i.reducerManager=o,i.source=t,i}return y(t,e),t.prototype.select=function(e){for(var t,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if("string"==typeof e)t=f.pluck.call.apply(f.pluck,[this,e].concat(n));else{if("function"!=typeof e)throw new TypeError("Unexpected type '"+typeof e+"' in select operator, expected 'string' or 'function'");t=p.map.call(this,e)}return h.distinctUntilChanged.call(t)},t.prototype.lift=function(e){var n=new t(this,this.actionsObserver,this.reducerManager);return n.operator=e,n},t.prototype.dispatch=function(e){this.actionsObserver.next(e)},t.prototype.next=function(e){this.actionsObserver.next(e)},t.prototype.error=function(e){this.actionsObserver.error(e)},t.prototype.complete=function(){this.actionsObserver.complete()},t.prototype.addReducer=function(e,t){this.reducerManager.addReducer(e,t)},t.prototype.removeReducer=function(e){this.reducerManager.removeReducer(e)},t}(l.Observable),z=[q],$=function(e,t,n){},G=function(){function e(e,t,n){this.features=e,this.featureReducers=t,this.reducerManager=n,e.map(function(e,n){var o=t.shift();return Object.assign({},e,{reducers:o[n],initialState:Z(e.initialState)})}).forEach(function(e){return n.addFeature(e)})}return e.prototype.ngOnDestroy=function(){var e=this;this.features.forEach(function(t){return e.reducerManager.removeFeature(t)})},e}(),Y=function(){function e(){}return e.forRoot=function(e,t){return void 0===t&&(t={}),{ngModule:$,providers:[{provide:b,useValue:t.initialState},{provide:k,useFactory:Z,deps:[b]},{provide:T,useValue:e},{provide:O,useExisting:e instanceof i.InjectionToken?e:T},{provide:A,deps:[i.Injector,T,[new i.Inject(O)]],useFactory:Q},{provide:C,useValue:t.metaReducers?t.metaReducers:[]},{provide:w,useValue:t.reducerFactory?t.reducerFactory:m},{provide:_,deps:[w,C],useFactory:v},R,U,F,W,z]}},e.forFeature=function(e,t,n){return void 0===n&&(n={}),{ngModule:G,providers:[{provide:x,multi:!0,useValue:{key:e,reducerFactory:n.reducerFactory?n.reducerFactory:m,metaReducers:n.metaReducers?n.metaReducers:[],initialState:n.initialState}},{provide:S,multi:!0,useValue:t},{provide:M,multi:!0,useExisting:t instanceof i.InjectionToken?t:S},{provide:E,multi:!0,deps:[i.Injector,S,[new i.Inject(M)]],useFactory:J}]}},e}();function Q(e,t,n){return t instanceof i.InjectionToken?e.get(t):t}function J(e,t,n){return t.map(function(t,n){return t instanceof i.InjectionToken?e.get(t):t})}function Z(e){return"function"==typeof e?e():e}},e8yI:function(e,t){e.exports={isDefault:!1,abbreviation:"QTY",name:"QWERTY",description:"Maecenas sem dui, ullamcorper consequat pellentesque ut, mattis at velit. Duis scelerisque eleifend gravida. Aenean at mauris rhoncus, dictum mi vitae, semper eros. Quisque maximus est elit, at condimentum ligula consectetur vel. Aenean lorem felis, molestie id ex suscipit, sagittis mollis dui. Phasellus in felis in libero bibendum ornare. Duis vestibulum dolor sed diam tempor vulputate. Curabitur scelerisque pretium ipsum. Phasellus non orci vestibulum, vehicula lectus sit amet, lacinia velit. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. In diam lacus, cursus at pretium vel, ullamcorper at ante.",layers:[{modules:[{id:0,pointerRole:"move",keyActions:[{keyActionType:"keystroke",type:"basic",scancode:36},{keyActionType:"keystroke",type:"basic",scancode:37},{keyActionType:"keystroke",type:"basic",scancode:38},{keyActionType:"keystroke",type:"basic",scancode:39},{keyActionType:"keystroke",type:"basic",scancode:45},{keyActionType:"keystroke",type:"basic",scancode:46},{keyActionType:"keystroke",type:"basic",scancode:42},{keyActionType:"keystroke",type:"basic",scancode:24},{keyActionType:"keystroke",type:"basic",scancode:12},{keyActionType:"keystroke",type:"basic",scancode:18},{keyActionType:"keystroke",type:"basic",scancode:19},{keyActionType:"keystroke",type:"basic",scancode:47},{keyActionType:"keystroke",type:"basic",scancode:48},{keyActionType:"keystroke",type:"basic",scancode:49},{keyActionType:"keystroke",type:"basic",scancode:28},{keyActionType:"keystroke",type:"basic",scancode:13},{keyActionType:"keystroke",type:"basic",scancode:14},{keyActionType:"keystroke",type:"basic",scancode:15},{keyActionType:"keystroke",type:"basic",scancode:51},{keyActionType:"keystroke",type:"basic",scancode:52},{keyActionType:"keystroke",type:"basic",scancode:40},{keyActionType:"keystroke",type:"basic",scancode:11},{keyActionType:"keystroke",type:"basic",scancode:17},{keyActionType:"keystroke",type:"basic",scancode:16},{keyActionType:"keystroke",type:"basic",scancode:54},{keyActionType:"keystroke",type:"basic",scancode:55},{keyActionType:"keystroke",type:"basic",scancode:56},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",toggle:!1},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,pointerRole:"move",keyActions:[{keyActionType:"keystroke",type:"basic",scancode:53},{keyActionType:"keystroke",type:"basic",scancode:30},{keyActionType:"keystroke",type:"basic",scancode:31},{keyActionType:"keystroke",type:"basic",scancode:32},{keyActionType:"keystroke",type:"basic",scancode:33},{keyActionType:"keystroke",type:"basic",scancode:34},{keyActionType:"keystroke",type:"basic",scancode:35},{keyActionType:"keystroke",type:"basic",scancode:43},{keyActionType:"keystroke",type:"basic",scancode:20},{keyActionType:"keystroke",type:"basic",scancode:26},{keyActionType:"keystroke",type:"basic",scancode:8},{keyActionType:"keystroke",type:"basic",scancode:21},null,{keyActionType:"keystroke",type:"basic",scancode:23},{keyActionType:"switchLayer",layer:"mouse",toggle:!1},{keyActionType:"keystroke",type:"basic",scancode:4},{keyActionType:"keystroke",type:"basic",scancode:22},{keyActionType:"keystroke",type:"basic",scancode:7},{keyActionType:"keystroke",type:"basic",scancode:9},null,{keyActionType:"keystroke",type:"basic",scancode:10},{keyActionType:"keystroke",type:"basic",modifierMask:2},null,{keyActionType:"keystroke",type:"basic",scancode:29},{keyActionType:"keystroke",type:"basic",scancode:27},{keyActionType:"keystroke",type:"basic",scancode:6},{keyActionType:"keystroke",type:"basic",scancode:25},{keyActionType:"keystroke",type:"basic",scancode:5},{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"keystroke",type:"basic",scancode:44},{keyActionType:"switchLayer",layer:"mod",toggle:!1},null]},{id:2,pointerRole:"scroll",keyActions:[]}]},{modules:[{id:0,pointerRole:"none",keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",scancode:74},{keyActionType:"keystroke",type:"basic",scancode:82},{keyActionType:"keystroke",type:"basic",scancode:77},null,null,null,null,{keyActionType:"keystroke",type:"basic",scancode:75},{keyActionType:"keystroke",type:"basic",scancode:80},{keyActionType:"keystroke",type:"basic",scancode:81},{keyActionType:"keystroke",type:"basic",scancode:79},null,null,null,{keyActionType:"keystroke",type:"basic",scancode:78},null,null,null,null,{keyActionType:"keystroke",type:"basic",scancode:118},{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",toggle:!1},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,pointerRole:"none",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",toggle:!1},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",toggle:!1},null,{keyActionType:"switchLayer",layer:"mod",toggle:!1},null]}]},{modules:[{id:0,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:176},{keyActionType:"keystroke",type:"media",scancode:233},{keyActionType:"keystroke",type:"media",scancode:183},null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:182},{keyActionType:"keystroke",type:"media",scancode:234},{keyActionType:"keystroke",type:"media",scancode:181},null,null,null,null,null,null,{keyActionType:"keystroke",type:"media",scancode:226},null,null,{keyActionType:"keystroke",type:"basic",modifierMask:32},null,null,{keyActionType:"switchLayer",layer:"mod",toggle:!1},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,pointerRole:"scroll",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",toggle:!1},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:2},null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",toggle:!1},null,{keyActionType:"switchLayer",layer:"mod",toggle:!1},null]}]},{modules:[{id:0,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,{keyActionType:"mouse",mouseAction:"moveUp"},null,null,null,null,null,{keyActionType:"mouse",mouseAction:"scrollUp"},{keyActionType:"mouse",mouseAction:"moveLeft"},{keyActionType:"mouse",mouseAction:"moveDown"},{keyActionType:"mouse",mouseAction:"moveRight"},null,null,null,{keyActionType:"mouse",mouseAction:"scrollDown"},null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mod",toggle:!1},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"keystroke",type:"basic",modifierMask:64},{keyActionType:"keystroke",type:"basic",modifierMask:128},{keyActionType:"keystroke",type:"basic",modifierMask:16}]},{id:1,pointerRole:"move",keyActions:[null,null,null,null,null,null,null,null,null,null,null,null,null,null,{keyActionType:"switchLayer",layer:"mouse",toggle:!1},null,{keyActionType:"mouse",mouseAction:"rightClick"},{keyActionType:"mouse",mouseAction:"middleClick"},{keyActionType:"mouse",mouseAction:"leftClick"},null,null,null,null,null,null,null,null,null,{keyActionType:"keystroke",type:"basic",modifierMask:1},{keyActionType:"keystroke",type:"basic",modifierMask:8},{keyActionType:"keystroke",type:"basic",modifierMask:4},{keyActionType:"switchLayer",layer:"fn",toggle:!1},{keyActionType:"mouse",mouseAction:"decelerate"},{keyActionType:"switchLayer",layer:"mod",toggle:!1},null]}]}]}},fI0c:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS");t.every=function(e,t){return function(n){return n.lift(new r(e,t,n))}};var r=function(){function e(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.predicate,this.thisArg,this.source))},e}(),l=function(e){function t(t,n,o,i){e.call(this,t),this.predicate=n,this.thisArg=o,this.source=i,this.index=0,this.thisArg=o||this}return o(t,e),t.prototype.notifyComplete=function(e){this.destination.next(e),this.destination.complete()},t.prototype._next=function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(e){return void this.destination.error(e)}t||this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(i.Subscriber)},fWbP:function(e,t,n){"use strict";t.isScheduler=function(e){return e&&"function"==typeof e.schedule}},fYQU:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"o",function(){return l}),n.d(t,"p",function(){return s}),n.d(t,"b",function(){return a}),n.d(t,"k",function(){return u}),n.d(t,"l",function(){return c}),n.d(t,"q",function(){return d}),n.d(t,"m",function(){return p}),n.d(t,"n",function(){return f}),n.d(t,"e",function(){return h}),n.d(t,"h",function(){return y}),n.d(t,"r",function(){return m}),n.d(t,"v",function(){return g}),n.d(t,"t",function(){return v}),n.d(t,"u",function(){return b}),n.d(t,"s",function(){return k}),n.d(t,"g",function(){return _}),n.d(t,"c",function(){return w}),n.d(t,"i",function(){return A}),n.d(t,"d",function(){return T}),n.d(t,"j",function(){return C}),n.d(t,"f",function(){return x});var o=n("gI3A"),i=(n.n(o),"[device] "),r={SET_PRIVILEGE_ON_LINUX:Object(o.type)(i+"set privilege on linux"),SET_PRIVILEGE_ON_LINUX_REPLY:Object(o.type)(i+"set privilege on linux reply"),CONNECTION_STATE_CHANGED:Object(o.type)(i+"connection state changed"),SAVE_CONFIGURATION:Object(o.type)(i+"save configuration"),SAVE_CONFIGURATION_REPLY:Object(o.type)(i+"save configuration reply"),SAVING_CONFIGURATION:Object(o.type)(i+"saving configuration"),SHOW_SAVE_TO_KEYBOARD_BUTTON:Object(o.type)(i+"show save to keyboard button"),SAVE_TO_KEYBOARD_SUCCESS:Object(o.type)(i+"save to keyboard success"),SAVE_TO_KEYBOARD_FAILED:Object(o.type)(i+"save to keyboard failed"),HIDE_SAVE_TO_KEYBOARD_BUTTON:Object(o.type)(i+"hide save to keyboard button"),RESET_USER_CONFIGURATION:Object(o.type)(i+"reset user configuration"),RESET_MOUSE_SPEED_SETTINGS:Object(o.type)(i+"reset mouse speed settings"),UPDATE_FIRMWARE:Object(o.type)(i+"update firmware"),UPDATE_FIRMWARE_WITH:Object(o.type)(i+"update firmware with"),UPDATE_FIRMWARE_REPLY:Object(o.type)(i+"update firmware reply"),UPDATE_FIRMWARE_SUCCESS:Object(o.type)(i+"update firmware success"),UPDATE_FIRMWARE_FAILED:Object(o.type)(i+"update firmware failed"),UPDATE_FIRMWARE_OK_BUTTON:Object(o.type)(i+"update firmware ok button click"),MODULES_INFO_LOADED:Object(o.type)(i+"module info loaded"),HAS_BACKUP_USER_CONFIGURATION:Object(o.type)(i+"Store backup user configuration"),RESTORE_CONFIGURATION_FROM_BACKUP:Object(o.type)(i+"Restore configuration from backup"),RESTORE_CONFIGURATION_FROM_BACKUP_SUCCESS:Object(o.type)(i+"Restore configuration from backup success"),RECOVERY_DEVICE:Object(o.type)(i+"Recovery device")},l=function(){return function(){this.type=r.SET_PRIVILEGE_ON_LINUX}}(),s=function(){return function(e){this.payload=e,this.type=r.SET_PRIVILEGE_ON_LINUX_REPLY}}(),a=function(){return function(e){this.payload=e,this.type=r.CONNECTION_STATE_CHANGED}}(),u=function(){return function(){this.type=r.SAVE_CONFIGURATION}}(),c=function(){return function(e){this.payload=e,this.type=r.SAVE_CONFIGURATION_REPLY}}(),d=function(){return function(){this.type=r.SHOW_SAVE_TO_KEYBOARD_BUTTON}}(),p=function(){return function(){this.type=r.SAVE_TO_KEYBOARD_SUCCESS}}(),f=function(){return function(){this.type=r.SAVE_TO_KEYBOARD_FAILED}}(),h=function(){return function(){this.type=r.HIDE_SAVE_TO_KEYBOARD_BUTTON}}(),y=function(){return function(){this.type=r.RESET_USER_CONFIGURATION}}(),m=function(){return function(){this.type=r.UPDATE_FIRMWARE}}(),g=function(){return function(e){this.payload=e,this.type=r.UPDATE_FIRMWARE_WITH}}(),v=function(){return function(e){this.payload=e,this.type=r.UPDATE_FIRMWARE_REPLY}}(),b=function(){return function(e){this.payload=e,this.type=r.UPDATE_FIRMWARE_SUCCESS}}(),k=function(){return function(e){this.payload=e,this.type=r.UPDATE_FIRMWARE_FAILED}}(),_=function(){return function(){this.type=r.RESET_MOUSE_SPEED_SETTINGS}}(),w=function(){return function(e){this.payload=e,this.type=r.MODULES_INFO_LOADED}}(),A=function(){return function(){this.type=r.RESTORE_CONFIGURATION_FROM_BACKUP}}(),T=function(){return function(e){this.payload=e,this.type=r.HAS_BACKUP_USER_CONFIGURATION}}(),C=function(){return function(){this.type=r.RESTORE_CONFIGURATION_FROM_BACKUP_SUCCESS}}(),x=function(){return function(){this.type=r.RECOVERY_DEVICE}}()},fiy1:function(e,t,n){"use strict";var o=n("rCTf"),i=n("u2wr");o.Observable.prototype.withLatestFrom=i.withLatestFrom},fuZx:function(e,t,n){"use strict";t.isDate=function(e){return e instanceof Date&&!isNaN(+e)}},gI3A:function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("WDPM")),o(n("2dDj")),o(n("dmgA")),o(n("Bxcs"))},"gN9/":function(e,t,n){(function(t){var n=t.CustomEvent;e.exports=function(){try{var e=new n("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?n:"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("CustomEvent");return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.bubbles=Boolean(t.bubbles),n.cancelable=Boolean(t.cancelable),n.detail=t.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n}}).call(t,n("srjU"))},gohO:function(e,t,n){"use strict";var o=n("xgwM").__decorate,i=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var r=n("CmJd");t.HardwareConfiguration=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){try{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}catch(e){throw new Error("Please power cycle your keyboard (Invalid hardware configuration: Index out of bounds)")}},e.prototype.toJsonObject=function(){return{signature:this.signature,majorVersion:this.majorVersion,minorVersion:this.minorVersion,patchVersion:this.patchVersion,brandId:this.brandId,deviceId:this.deviceId,uniqueId:this.uniqueId,isVendorModeOn:this.isVendorModeOn,isIso:this.isIso}},e.prototype.toBinary=function(e){e.writeString(this.signature),e.writeUInt8(this.majorVersion),e.writeUInt8(this.minorVersion),e.writeUInt8(this.patchVersion),e.writeUInt8(this.brandId),e.writeUInt8(this.deviceId),e.writeUInt32(this.uniqueId),e.writeBoolean(this.isVendorModeOn),e.writeBoolean(this.isIso)},e.prototype.toString=function(){return'<HardwareConfiguration signature="'+this.signature+'">'},o([r.assertUInt8,i("design:type",Number)],e.prototype,"majorVersion",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"minorVersion",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"patchVersion",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"brandId",void 0),o([r.assertUInt8,i("design:type",Number)],e.prototype,"deviceId",void 0),o([r.assertUInt32,i("design:type",Number)],e.prototype,"uniqueId",void 0),e}()},hTTC:function(e,t,n){"use strict";(function(t){var n=[],o="",i=/^on/;for(o in t)i.test(o)&&n.push(o.slice(2));e.exports=n}).call(t,n("srjU"))},hYBY:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("VOfZ"),r=n("rCTf");function l(e){var t=e.subscriber;t.closed||(t.next(e.value),t.complete())}function s(e){var t=e.subscriber;t.closed||t.error(e.err)}t.PromiseObservable=function(e){function t(t,n){e.call(this),this.promise=t,this.scheduler=n}return o(t,e),t.create=function(e,n){return new t(e,n)},t.prototype._subscribe=function(e){var t=this,n=this.promise,o=this.scheduler;if(null==o)this._isScalar?e.closed||(e.next(this.value),e.complete()):n.then(function(n){t.value=n,t._isScalar=!0,e.closed||(e.next(n),e.complete())},function(t){e.closed||e.error(t)}).then(null,function(e){i.root.setTimeout(function(){throw e})});else if(this._isScalar){if(!e.closed)return o.schedule(l,0,{value:this.value,subscriber:e})}else n.then(function(n){t.value=n,t._isScalar=!0,e.closed||e.add(o.schedule(l,0,{value:n,subscriber:e}))},function(t){e.closed||e.add(o.schedule(s,0,{err:t,subscriber:e}))}).then(null,function(e){i.root.setTimeout(function(){throw e})})},t}(r.Observable)},iIfT:function(e,t,n){"use strict";var o=n("rCTf"),i=n("Ffu+");o.Observable.prototype.pairwise=i.pairwise},ijov:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("Yh8Q"),r=n("Xajo"),l=n("wAkD"),s=n("CURp"),a={};t.combineLatest=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n=null;return"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&r.isArray(e[0])&&(e=e[0].slice()),function(t){return t.lift.call(new i.ArrayObservable([t].concat(e)),new u(n))}};var u=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.project))},e}();t.CombineLatestOperator=u;var c=function(e){function t(t,n){e.call(this,t),this.project=n,this.active=0,this.values=[],this.observables=[]}return o(t,e),t.prototype._next=function(e){this.values.push(a),this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var o=e[n];this.add(s.subscribeToResult(this,o,o,n))}}},t.prototype.notifyComplete=function(e){0==(this.active-=1)&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n,o,i){var r=this.values,l=this.toRespond?r[n]===a?--this.toRespond:this.toRespond:0;r[n]=t,0===l&&(this.project?this._tryProject(r):this.destination.next(r.slice()))},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(l.OuterSubscriber);t.CombineLatestSubscriber=c},"ioK+":function(e,t,n){"use strict";var o=n("hYBY");t.fromPromise=o.PromiseObservable.create},j4Le:function(e,t,n){"use strict";var o,i=n("fYQU"),r=n("Ji5S"),l=n("MptX");!function(e){e.standard="xterm-standard",e.error="xterm-error"}(o||(o={})),t.h=function(e,t){switch(void 0===e&&(e=a),t.type){case i.a.CONNECTION_STATE_CHANGED:return s({},e,{connected:(n=t.payload).connected,hasPermission:n.hasPermission,bootloaderActive:n.bootloaderActive});case i.a.SAVING_CONFIGURATION:return s({},e,{savingToKeyboard:!0});case i.a.SHOW_SAVE_TO_KEYBOARD_BUTTON:return s({},e,{saveToKeyboard:{showButton:!0,text:"Save to keyboard",action:new i.k}});case i.a.SAVE_CONFIGURATION:return s({},e,{saveToKeyboard:{showButton:!0,text:"Saving",showProgress:!0}});case i.a.SAVE_TO_KEYBOARD_SUCCESS:return s({},e,{saveToKeyboard:{showButton:!0,text:"Saved!",action:null},restoringUserConfiguration:!1});case i.a.SAVE_TO_KEYBOARD_FAILED:return s({},e,{saveToKeyboard:{showButton:!0,text:"Save to keyboard",action:new i.k}});case i.a.HIDE_SAVE_TO_KEYBOARD_BUTTON:return s({},e,{saveToKeyboard:l.a});case i.a.UPDATE_FIRMWARE_WITH:case i.a.UPDATE_FIRMWARE:return s({},e,{updatingFirmware:!0,firmwareUpdateFinished:!1,log:[{message:"Start flashing firmware",cssClass:o.standard}]});case i.a.UPDATE_FIRMWARE_SUCCESS:return s({},e,{updatingFirmware:!1,firmwareUpdateFinished:!0,modules:t.payload});case i.a.UPDATE_FIRMWARE_FAILED:var n;return s({},e,{updatingFirmware:!1,firmwareUpdateFinished:!0,modules:(n=t.payload).modules,log:e.log.concat([{message:n.error.message,cssClass:o.error}])});case r.a.ELECTRON_MAIN_LOG_RECEIVED:if(!e.updatingFirmware)return e;var u=t.payload;return u.message.indexOf("UHK Device not found:")>-1?e:s({},e,{log:e.log.concat([{message:u.message,cssClass:"error"===u.level?o.error:o.standard}])});case i.a.MODULES_INFO_LOADED:return s({},e,{modules:t.payload});case i.a.RESET_USER_CONFIGURATION:case i.a.RESTORE_CONFIGURATION_FROM_BACKUP:return s({},e,{restoringUserConfiguration:!0});case i.a.HAS_BACKUP_USER_CONFIGURATION:return s({},e,{hasBackupUserConfiguration:t.payload});case i.a.RESTORE_CONFIGURATION_FROM_BACKUP_SUCCESS:return s({},e,{hasBackupUserConfiguration:!1});case i.a.RECOVERY_DEVICE:return s({},e,{updatingFirmware:!0,log:[{message:"",cssClass:o.standard}]});default:return e}},n.d(t,"i",function(){return u}),n.d(t,"g",function(){return c}),n.d(t,"f",function(){return d}),n.d(t,"e",function(){return p}),n.d(t,"j",function(){return f}),n.d(t,"c",function(){return h}),n.d(t,"d",function(){return y}),n.d(t,"b",function(){return m}),n.d(t,"a",function(){return g});var s=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a={connected:!0,hasPermission:!0,bootloaderActive:!1,saveToKeyboard:l.a,savingToKeyboard:!1,updatingFirmware:!1,firmwareUpdateFinished:!1,modules:{leftModuleInfo:{firmwareVersion:"",moduleProtocolVersion:""},rightModuleInfo:{firmwareVersion:""}},log:[{message:"",cssClass:o.standard}],restoringUserConfiguration:!1,hasBackupUserConfiguration:!1},u=function(e){return e.updatingFirmware},c=function(e){return e.connected||e.updatingFirmware},d=function(e){return e.hasPermission},p=function(e){return e.saveToKeyboard},f=function(e){return e.log},h=function(e){return e.modules},y=function(e){return e.hasBackupUserConfiguration},m=function(e){return{restoringUserConfiguration:e.restoringUserConfiguration,hasBackupUserConfiguration:e.hasBackupUserConfiguration}},g=function(e){return e.bootloaderActive}},jBEF:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("rCTf");t.EmptyObservable=function(e){function t(t){e.call(this),this.scheduler=t}return o(t,e),t.create=function(e){return new t(e)},t.dispatch=function(e){e.subscriber.complete()},t.prototype._subscribe=function(e){var n=this.scheduler;if(n)return n.schedule(t.dispatch,0,{subscriber:e});e.complete()},t}(i.Observable)},jdTm:function(e,t,n){"use strict";var o=n("jnJ8");t.timer=o.TimerObservable.create},jdeX:function(e,t,n){"use strict";var o=n("rCTf"),i=n("jdTm");o.Observable.timer=i.timer},jnJ8:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("P3oE"),r=n("rCTf"),l=n("CGGv"),s=n("fWbP"),a=n("fuZx");t.TimerObservable=function(e){function t(t,n,o){void 0===t&&(t=0),e.call(this),this.period=-1,this.dueTime=0,i.isNumeric(n)?this.period=Number(n)<1?1:Number(n):s.isScheduler(n)&&(o=n),s.isScheduler(o)||(o=l.async),this.scheduler=o,this.dueTime=a.isDate(t)?+t-this.scheduler.now():t}return o(t,e),t.create=function(e,n,o){return void 0===e&&(e=0),new t(e,n,o)},t.dispatch=function(e){var t=e.index,n=e.period,o=e.subscriber;if(o.next(t),!o.closed){if(-1===n)return o.complete();e.index=t+1,this.schedule(e,n)}},t.prototype._subscribe=function(e){return this.scheduler.schedule(t.dispatch,this.dueTime,{index:0,period:this.period,subscriber:e})},t}(r.Observable)},jsdV:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("H5FS"),i=n("ao60"),r=n("9dXm"),l=n("lWw8"),s=n("ad5O"),a=n("Q3m9"),u=n("SkWt"),c=n("tQJL");t.Helper=function(){function e(){}return e.createMacroAction=function(t){return t instanceof i.MacroAction?e.fromMacroAction(t):t instanceof o.UhkBuffer?e.fromUhkBuffer(t):e.fromJSONObject(t)},e.fromUhkBuffer=function(e){var t=e.readUInt8();if(e.backtrack(),t>=i.MacroActionId.KeyMacroAction&&t<=i.MacroActionId.LastKeyMacroAction)return(new r.KeyMacroAction).fromBinary(e);if(t>=i.MacroActionId.MouseButtonMacroAction&&t<=i.MacroActionId.LastMouseButtonMacroAction)return(new l.MouseButtonMacroAction).fromBinary(e);switch(t){case i.MacroActionId.MoveMouseMacroAction:return(new s.MoveMouseMacroAction).fromBinary(e);case i.MacroActionId.ScrollMouseMacroAction:return(new a.ScrollMouseMacroAction).fromBinary(e);case i.MacroActionId.DelayMacroAction:return(new u.DelayMacroAction).fromBinary(e);case i.MacroActionId.TextMacroAction:return(new c.TextMacroAction).fromBinary(e);default:throw"Invalid MacroAction first byte: "+t}},e.fromMacroAction=function(e){var t;return e instanceof r.KeyMacroAction?t=new r.KeyMacroAction(e):e instanceof l.MouseButtonMacroAction?t=new l.MouseButtonMacroAction(e):e instanceof s.MoveMouseMacroAction?t=new s.MoveMouseMacroAction(e):e instanceof a.ScrollMouseMacroAction?t=new a.ScrollMouseMacroAction(e):e instanceof u.DelayMacroAction?t=new u.DelayMacroAction(e):e instanceof c.TextMacroAction&&(t=new c.TextMacroAction(e)),t},e.fromJSONObject=function(e){switch(e.macroActionType){case i.macroActionType.KeyMacroAction:return(new r.KeyMacroAction).fromJsonObject(e);case i.macroActionType.MouseButtonMacroAction:return(new l.MouseButtonMacroAction).fromJsonObject(e);case i.macroActionType.MoveMouseMacroAction:return(new s.MoveMouseMacroAction).fromJsonObject(e);case i.macroActionType.ScrollMouseMacroAction:return(new a.ScrollMouseMacroAction).fromJsonObject(e);case i.macroActionType.DelayMacroAction:return(new u.DelayMacroAction).fromJsonObject(e);case i.macroActionType.TextMacroAction:return(new c.TextMacroAction).fromJsonObject(e);default:throw'Invalid MacroAction.macroActionType: "'+e.macroActionType+'"'}},e}()},kZql:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var o={production:!0}},kkb0:function(e,t,n){"use strict";var o=n("FDBB"),i=n("1KT0");t.mergeStatic=i.merge,t.merge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return o.merge.apply(void 0,e)(this)}},kkgw:function(e,t,n){"use strict";var o=n("s+3b");t.dragula=o.dragula,t.DragulaDirective=o.DragulaDirective,t.DragulaModule=o.DragulaModule,t.DragulaService=o.DragulaService},lDdF:function(e,t,n){var o,i=i||function(e){"use strict";if(!("undefined"==typeof e||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var t=function(){return e.URL||e.webkitURL||e},n=e.document.createElementNS("http://www.w3.org/1999/xhtml","a"),o="download"in n,i=/constructor/i.test(e.HTMLElement)||e.safari,r=/CriOS\/[\d]+/.test(navigator.userAgent),l=function(t){(e.setImmediate||e.setTimeout)(function(){throw t},0)},s=function(e){setTimeout(function(){"string"==typeof e?t().revokeObjectURL(e):e.remove()},4e4)},a=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},u=function(u,c,d){d||(u=a(u));var p,f=this,h="application/octet-stream"===u.type,y=function(){!function(e,t,n){for(var o=(t=[].concat(t)).length;o--;){var i=e["on"+t[o]];if("function"==typeof i)try{i.call(e,e)}catch(e){l(e)}}}(f,"writestart progress write writeend".split(" "))};if(f.readyState=f.INIT,o)return p=t().createObjectURL(u),void setTimeout(function(){var e,t;n.href=p,n.download=c,e=n,t=new MouseEvent("click"),e.dispatchEvent(t),y(),s(p),f.readyState=f.DONE});!function(){if((r||h&&i)&&e.FileReader){var n=new FileReader;return n.onloadend=function(){var t=r?n.result:n.result.replace(/^data:[^;]*;/,"data:attachment/file;");e.open(t,"_blank")||(e.location.href=t),t=void 0,f.readyState=f.DONE,y()},n.readAsDataURL(u),void(f.readyState=f.INIT)}p||(p=t().createObjectURL(u)),h?e.location.href=p:e.open(p,"_blank")||(e.location.href=p),f.readyState=f.DONE,y(),s(p)}()},c=u.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,n){return t=t||e.name||"download",n||(e=a(e)),navigator.msSaveOrOpenBlob(e,t)}:(c.abort=function(){},c.readyState=c.INIT=0,c.WRITING=1,c.DONE=2,c.error=c.onwritestart=c.onprogress=c.onwrite=c.onabort=c.onerror=c.onwriteend=null,function(e,t,n){return new u(e,t||e.name||"download",n)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof e&&e.exports?e.exports.saveAs=i:null!==n("OMCl")&&null!==n("AG7Q")&&(void 0===(o=(function(){return i}).call(t,n,t,e))||(e.exports=o))},lHsB:function(e,t,n){"use strict";var o=n("mmVS"),i=n("r8ZY"),r=n("yrou");t.toSubscriber=function(e,t,n){if(e){if(e instanceof o.Subscriber)return e;if(e[i.rxSubscriber])return e[i.rxSubscriber]()}return e||t||n?new o.Subscriber(e,t,n):new o.Subscriber(r.empty)}},lU4I:function(e,t,n){"use strict";var o=n("fWbP"),i=n("lgiQ"),r=n("PKvP"),l=n("oZkx");t.concat=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return 1===e.length||2===e.length&&o.isScheduler(e[1])?r.from(e[0]):l.concatAll()(i.of.apply(void 0,e))}},lWw8:function(e,t,n){"use strict";var o=n("xgwM").__extends,i=n("xgwM").__decorate,r=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var l=n("CmJd"),s=n("ao60");!function(e){e[e.Left=1]="Left",e[e.Middle=2]="Middle",e[e.Right=4]="Right"}(t.MouseButtons||(t.MouseButtons={})),t.MouseButtonMacroAction=function(e){function t(t){var n=e.call(this)||this;return t?(n.action=t.action,n.mouseButtonsMask=t.mouseButtonsMask,n):n}return o(t,e),t.prototype.fromJsonObject=function(e){return this.assertMacroActionType(e),this.action=s.MacroMouseSubAction[e.action],this.mouseButtonsMask=e.mouseButtonsMask,this},t.prototype.fromBinary=function(e){var t=this.readAndAssertMacroActionId(e);return this.action=t-s.MacroActionId.MouseButtonMacroAction,this.mouseButtonsMask=e.readUInt8(),this},t.prototype.toJsonObject=function(){return{macroActionType:s.macroActionType.MouseButtonMacroAction,action:s.MacroMouseSubAction[this.action],mouseButtonsMask:this.mouseButtonsMask}},t.prototype.toBinary=function(e){e.writeUInt8(s.MacroActionId.MouseButtonMacroAction+this.action),e.writeUInt8(this.mouseButtonsMask)},t.prototype.setMouseButtons=function(e){for(var t=0,n=0;n<e.length;n++)t|=Number(e[n])<<n;this.mouseButtonsMask=t},t.prototype.getMouseButtons=function(){for(var e=[],t=this.mouseButtonsMask;t;t>>>=1)e.push(Boolean(1&t));return e},t.prototype.toString=function(){return'<MouseButtonMacroAction mouseButtonsMask="'+this.mouseButtonsMask+'">'},t.prototype.hasButtons=function(){return 0!==this.mouseButtonsMask},t.prototype.isOnlyClickAction=function(){return this.action===s.MacroMouseSubAction.click},t.prototype.isOnlyHoldAction=function(){return this.action===s.MacroMouseSubAction.hold},t.prototype.isOnlyReleaseAction=function(){return this.action===s.MacroMouseSubAction.release},t.prototype.getName=function(){return"MouseButtonMacroAction"},i([l.assertEnum(s.MacroMouseSubAction),r("design:type",Number)],t.prototype,"action",void 0),i([l.assertUInt8,r("design:type",Number)],t.prototype,"mouseButtonsMask",void 0),t}(s.MacroAction)},lgiQ:function(e,t,n){"use strict";var o=n("Yh8Q");t.of=o.ArrayObservable.of},lyLw:function(e,t,n){"use strict";var o=n("Nkju"),i=n("WWez");e.exports=function(e,t){var n=t||{},r={};return void 0===e&&(e={}),e.on=function(t,n){return r[t]?r[t].push(n):r[t]=[n],e},e.once=function(t,n){return n._once=!0,e.on(t,n),e},e.off=function(t,n){var o=arguments.length;if(1===o)delete r[t];else if(0===o)r={};else{var i=r[t];if(!i)return e;i.splice(i.indexOf(n),1)}return e},e.emit=function(){var t=o(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var l=(r[t]||[]).slice(0);return function(){var r=o(arguments),s=this||e;if("error"===t&&!1!==n.throws&&!l.length)throw 1===r.length?r[0]:r;return l.forEach(function(o){n.async?i(o,r,s):o.apply(s,r),o._once&&e.off(t,o)}),e}},e}},mbVC:function(e,t,n){"use strict";var o=n("VOfZ");function i(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}t.getSymbolObservable=i,t.observable=i(o.root),t.$$observable=t.observable},mmVS:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("SKH6"),r=n("B00U"),l=n("yrou"),s=n("r8ZY"),a=function(e){function t(t,n,o){switch(e.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l.empty;break;case 1:if(!t){this.destination=l.empty;break}if("object"==typeof t){if(c(t)){var i=t[s.rxSubscriber]();this.syncErrorThrowable=i.syncErrorThrowable,this.destination=i,i.add(this)}else this.syncErrorThrowable=!0,this.destination=new u(this,t);break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,n,o)}}return o(t,e),t.prototype[s.rxSubscriber]=function(){return this},t.create=function(e,n,o){var i=new t(e,n,o);return i.syncErrorThrowable=!1,i},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parent,t=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this},t}(r.Subscription);t.Subscriber=a;var u=function(e){function t(t,n,o,r){var s;e.call(this),this._parentSubscriber=t;var a=this;i.isFunction(n)?s=n:n&&(s=n.next,o=n.error,r=n.complete,n!==l.empty&&(a=Object.create(n),i.isFunction(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=s,this._error=o,this._complete=r}return o(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber;if(this._error)t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else{if(!t.syncErrorThrowable)throw this.unsubscribe(),e;t.syncErrorValue=e,t.syncErrorThrown=!0,this.unsubscribe()}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){throw this.unsubscribe(),e}},t.prototype.__tryOrSetError=function(e,t,n){try{t.call(this._context,n)}catch(t){return e.syncErrorValue=t,e.syncErrorThrown=!0,!0}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(a);function c(e){return e instanceof a||"syncErrorThrowable"in e&&e[s.rxSubscriber]}},mp4z:function(e,t,n){"use strict";var o=n("TToO").__decorate,i=n("WT6e"),r=n("rlkT"),l=n("rlkT");t.Select2Component=l.Select2Component;var s=function(){};s=o([i.NgModule({declarations:[r.Select2Component],exports:[r.Select2Component]})],s),t.Select2Module=s},oBYf:function(e,t,n){"use strict";var o=n("ANGw");t.concatMap=function(e,t){return o.mergeMap(e,t,1)}},oZkx:function(e,t,n){"use strict";var o=n("rKQy");t.concatAll=function(){return o.mergeAll(1)}},ob4r:function(e,t,n){"use strict";var o={},i="(?:^|\\s)",r="(?:\\s|$)";function l(e){var t=o[e];return t?t.lastIndex=0:o[e]=t=new RegExp(i+e+r,"g"),t}e.exports={add:function(e,t){var n=e.className;n.length?l(t).test(n)||(e.className+=" "+t):e.className=t},rm:function(e,t){e.className=e.className.replace(l(t)," ").trim()}}},offc:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("wAkD"),r=n("CURp");t.withLatestFrom=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return function(t){var n;return"function"==typeof e[e.length-1]&&(n=e.pop()),t.lift(new l(e,n))}};var l=function(){function e(e,t){this.observables=e,this.project=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.observables,this.project))},e}(),s=function(e){function t(t,n,o){e.call(this,t),this.observables=n,this.project=o,this.toRespond=[];var i=n.length;this.values=new Array(i);for(var l=0;l<i;l++)this.toRespond.push(l);for(l=0;l<i;l++){var s=n[l];this.add(r.subscribeToResult(this,s,s,l))}}return o(t,e),t.prototype.notifyNext=function(e,t,n,o,i){this.values[n]=t;var r=this.toRespond;if(r.length>0){var l=r.indexOf(n);-1!==l&&r.splice(l,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(i.OuterSubscriber)},okk1:function(e,t,n){"use strict";var o=n("rCTf"),i=n("bBiI");o.Observable.prototype.first=i.first},ov8r:function(e,t,n){"use strict";var o=n("xgwM").__decorate,i=n("xgwM").__metadata;Object.defineProperty(t,"__esModule",{value:!0});var r=n("CmJd"),l=n("4uS6");t.Module=function(){function e(e){e&&(this.id=e.id,this.keyActions=e.keyActions.map(function(e){return l.KeyActionHelper.createKeyAction(e)}))}return e.prototype.fromJsonObject=function(e,t){return this.id=e.id,this.keyActions=e.keyActions.map(function(e){return l.KeyActionHelper.createKeyAction(e,t)}),this},e.prototype.fromBinary=function(e,t){this.id=e.readUInt8();var n=e.readCompactLength();this.keyActions=[];for(var o=0;o<n;++o)this.keyActions.push(l.KeyActionHelper.createKeyAction(e,t));return this},e.prototype.toJsonObject=function(e){return{id:this.id,keyActions:this.keyActions.map(function(t){return!t||!e&&(t instanceof l.PlayMacroAction||t instanceof l.SwitchKeymapAction)?null:t.toJsonObject(e)})}},e.prototype.toBinary=function(e,t){e.writeUInt8(this.id);var n=new l.NoneAction;e.writeArray(this.keyActions,function(e,o){o?o.toBinary(e,t):n.toBinary(e)})},e.prototype.toString=function(){return'<Module id="'+this.id+'">'},e.prototype.renameKeymap=function(t,n){var o,i=this,r=!1;if(this.keyActions.forEach(function(e,l){if(e){var s=e.renameKeymap(t,n);s!==e&&(r||(o=i.keyActions.slice(),r=!0),o[l]=s)}}),r){var l=Object.assign(new e,this);return l.keyActions=o,l}return this},o([r.assertUInt8,i("design:type",Number)],e.prototype,"id",void 0),e}()},"p/p0":function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS"),r=n("F7Al");t.last=function(e,t,n){return function(o){return o.lift(new l(e,t,n,o))}};var l=function(){function e(e,t,n,o){this.predicate=e,this.resultSelector=t,this.defaultValue=n,this.source=o}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.predicate,this.resultSelector,this.defaultValue,this.source))},e}(),s=function(e){function t(t,n,o,i,r){e.call(this,t),this.predicate=n,this.resultSelector=o,this.defaultValue=i,this.source=r,this.hasValue=!1,this.index=0,"undefined"!=typeof i&&(this.lastValue=i,this.hasValue=!0)}return o(t,e),t.prototype._next=function(e){var t=this.index++;if(this.predicate)this._tryPredicate(e,t);else{if(this.resultSelector)return void this._tryResultSelector(e,t);this.lastValue=e,this.hasValue=!0}},t.prototype._tryPredicate=function(e,t){var n;try{n=this.predicate(e,t,this.source)}catch(e){return void this.destination.error(e)}if(n){if(this.resultSelector)return void this._tryResultSelector(e,t);this.lastValue=e,this.hasValue=!0}},t.prototype._tryResultSelector=function(e,t){var n;try{n=this.resultSelector(e,t)}catch(e){return void this.destination.error(e)}this.lastValue=n,this.hasValue=!0},t.prototype._complete=function(){var e=this.destination;this.hasValue?(e.next(this.lastValue),e.complete()):e.error(new r.EmptyError)},t}(i.Subscriber)},pgP5:function(e,t,n){"use strict";var o=n("dt7L");t.reduce=function(e,t){return arguments.length>=2?o.reduce(e,t)(this):o.reduce(e)(this)}},pxzT:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("4uS6");(t.ConfigSerializer||(t.ConfigSerializer={})).resolveSwitchKeymapActions=function(e){for(var t=0,n=e;t<n.length;t++)for(var i=0,r=n[t].layers;i<r.length;i++)for(var l=0,s=r[i].modules;l<s.length;l++)for(var a=s[l],u=0;u<a.keyActions.length;++u){var c=a.keyActions[u];c instanceof o.UnresolvedSwitchKeymapAction&&(a.keyActions[u]=c.resolve(e))}}},"q+cp":function(e,t,n){"use strict";var o=n("RU1a");t.takeUntil=function(e){return o.takeUntil(e)(this)}},q3ik:function(e,t,n){"use strict";var o=n("rCTf"),i=n("8hgl");o.Observable.prototype.distinctUntilChanged=i.distinctUntilChanged},qjx7:function(e,t,n){"use strict";(function(t){var o=n("gN9/"),i=n("hTTC"),r=t.document,l=function(e,t,n,o){return e.addEventListener(t,n,o)},s=function(e,t,n,o){return e.removeEventListener(t,n,o)},a=[];function u(e,t,n){var o=function(e,t,n){var o,i;for(o=0;o<a.length;o++)if((i=a[o]).element===e&&i.type===t&&i.fn===n)return o}(e,t,n);if(o){var i=a[o].wrapper;return a.splice(o,1),i}}t.addEventListener||(l=function(e,n,o){return e.attachEvent("on"+n,function(e,n,o){var i=u(e,n,o)||function(e,n,o){return function(n){var i=n||t.event;i.target=i.target||i.srcElement,i.preventDefault=i.preventDefault||function(){i.returnValue=!1},i.stopPropagation=i.stopPropagation||function(){i.cancelBubble=!0},i.which=i.which||i.keyCode,o.call(e,i)}}(e,0,o);return a.push({wrapper:i,element:e,type:n,fn:o}),i}(e,n,o))},s=function(e,t,n){var o=u(e,t,n);if(o)return e.detachEvent("on"+t,o)}),e.exports={add:l,remove:s,fabricate:function(e,t,n){var l=-1===i.indexOf(t)?new o(t,{detail:n}):function(){var e;return r.createEvent?(e=r.createEvent("Event")).initEvent(t,!0,!0):r.createEventObject&&(e=r.createEventObject()),e}();e.dispatchEvent?e.dispatchEvent(l):e.fireEvent("on"+t,l)}}}).call(t,n("srjU"))},qp8k:function(e,t,n){"use strict";var o=n("rCTf"),i=n("A7JX");o.Observable.prototype.combineLatest=i.combineLatest},"r/AL":function(e,t,n){"use strict";function o(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),o(n("SkWt")),o(n("9dXm")),o(n("ao60")),o(n("ad5O")),o(n("lWw8")),o(n("Q3m9")),o(n("tQJL"));var i=n("jsdV");t.MacroActionHelper=i.Helper},"r/Om":function(e,t,n){"use strict";n.d(t,"b",function(){return s}),n.d(t,"e",function(){return c}),n.d(t,"d",function(){return d}),n.d(t,"c",function(){return r}),n.d(t,"a",function(){return l});var o=n("bfOx"),i=n("lgiQ"),r=function(){function e(){}return e.prototype.serialize=function(e){},e}(),l=function(){function e(){}return e.prototype.serialize=function(e){return e},e}(),s="ROUTER_NAVIGATION",a="ROUTER_CANCEL",u="ROUTE_ERROR";function c(e,t){switch(t.type){case s:case u:case a:return{state:t.payload.routerState,navigationId:t.payload.event.id};default:return e}}var d=function(){function e(e,t,n){this.store=e,this.router=t,this.serializer=n,this.dispatchTriggeredByRouter=!1,this.navigationTriggeredByDispatch=!1,this.setUpBeforePreactivationHook(),this.setUpStoreStateListener(),this.setUpStateRollbackEvents()}return e.prototype.setUpBeforePreactivationHook=function(){var e=this;this.router.hooks.beforePreactivation=function(t){return e.routerState=e.serializer.serialize(t),e.shouldDispatchRouterNavigation()&&e.dispatchRouterNavigation(),Object(i.of)(!0)}},e.prototype.setUpStoreStateListener=function(){var e=this;this.store.subscribe(function(t){e.storeState=t,e.navigateIfNeeded()})},e.prototype.shouldDispatchRouterNavigation=function(){return!this.storeState.routerReducer||!this.navigationTriggeredByDispatch},e.prototype.navigateIfNeeded=function(){this.storeState.routerReducer&&this.storeState.routerReducer.state&&(this.dispatchTriggeredByRouter||this.router.url!==this.storeState.routerReducer.state.url&&(this.navigationTriggeredByDispatch=!0,this.router.navigateByUrl(this.storeState.routerReducer.state.url)))},e.prototype.setUpStateRollbackEvents=function(){var e=this;this.router.events.subscribe(function(t){t instanceof o.s?e.lastRoutesRecognized=t:t instanceof o.d?e.dispatchRouterCancel(t):t instanceof o.e&&e.dispatchRouterError(t)})},e.prototype.dispatchRouterNavigation=function(){this.dispatchRouterAction(s,{routerState:this.routerState,event:new o.s(this.lastRoutesRecognized.id,this.lastRoutesRecognized.url,this.lastRoutesRecognized.urlAfterRedirects,this.routerState)})},e.prototype.dispatchRouterCancel=function(e){this.dispatchRouterAction(a,{routerState:this.routerState,storeState:this.storeState,event:e})},e.prototype.dispatchRouterError=function(e){this.dispatchRouterAction(u,{routerState:this.routerState,storeState:this.storeState,event:e})},e.prototype.dispatchRouterAction=function(e,t){this.dispatchTriggeredByRouter=!0;try{this.store.dispatch({type:e,payload:t})}finally{this.dispatchTriggeredByRouter=!1,this.navigationTriggeredByDispatch=!1}},e}()},r8ZY:function(e,t,n){"use strict";var o=n("VOfZ").root.Symbol;t.rxSubscriber="function"==typeof o&&"function"==typeof o.for?o.for("rxSubscriber"):"@@rxSubscriber",t.$$rxSubscriber=t.rxSubscriber},rCTf:function(e,t,n){"use strict";var o=n("VOfZ"),i=n("lHsB"),r=n("mbVC"),l=n("9eyw");t.Observable=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var o=this.operator,r=i.toSubscriber(e,t,n);if(o?o.call(r,this.source):r.add(this.source||!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.syncErrorThrown=!0,e.syncErrorValue=t,e.error(t)}},e.prototype.forEach=function(e,t){var n=this;if(t||(o.root.Rx&&o.root.Rx.config&&o.root.Rx.config.Promise?t=o.root.Rx.config.Promise:o.root.Promise&&(t=o.root.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,o){var i;i=n.subscribe(function(t){if(i)try{e(t)}catch(e){o(e),i.unsubscribe()}else e(t)},o,t)})},e.prototype._subscribe=function(e){return this.source.subscribe(e)},e.prototype[r.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return 0===e.length?this:l.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;if(e||(o.root.Rx&&o.root.Rx.config&&o.root.Rx.config.Promise?e=o.root.Rx.config.Promise:o.root.Promise&&(e=o.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,n){var o;t.subscribe(function(e){return o=e},function(e){return n(e)},function(){return e(o)})})},e.create=function(t){return new e(t)},e}()},rKQy:function(e,t,n){"use strict";var o=n("ANGw"),i=n("00YY");t.mergeAll=function(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),o.mergeMap(i.identity,null,e)}},rhbT:function(e,t){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"}}]}}},rlkT:function(e,t,n){"use strict";var o=n("TToO").__decorate,i=n("TToO").__metadata,r=n("WT6e"),l=function(){function e(e){this.renderer=e,this.cssImport=!0,this.disabled=!1,this.valueChanged=new r.EventEmitter,this.element=void 0,this.check=!1,this.style=".select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle;min-width:100px}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:#fff;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0!important;clip:rect(0 0 0 0)!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important}.select2-container--classic .select2-results>.select2-results__options,.select2-container--default .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--default .select2-selection--single{background-color:#fff;border:1px solid #aaa;border-radius:4px}.select2-container--default .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--default .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700}.select2-container--default .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--default .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--default .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent;border-style:solid;border-width:5px 4px 0;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--default.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888;border-width:0 4px 5px}.select2-container--default .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text}.select2-container--default .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px;width:100%}.select2-container--default .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--default .select2-selection--multiple .select2-selection__placeholder{color:#999;margin-top:5px;float:left}.select2-container--default .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-top:5px;margin-right:10px}.select2-container--default .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove{color:#999;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover{color:#333}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-search--inline,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice,.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__placeholder{float:right}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin-left:5px;margin-right:auto}.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--default.select2-container--focus .select2-selection--multiple{border:1px solid #000;outline:0}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--default.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0}.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--default.select2-container--open.select2-container--below .select2-selection--single{border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--default .select2-search--dropdown .select2-search__field{border:1px solid #aaa}.select2-container--default .select2-search--inline .select2-search__field{background:0 0;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield}.select2-container--default .select2-results__option[role=group]{padding:0}.select2-container--default .select2-results__option[aria-disabled=true]{color:#999}.select2-container--default .select2-results__option[aria-selected=true]{background-color:#ddd}.select2-container--default .select2-results__option .select2-results__option{padding-left:1em}.select2-container--default .select2-results__option .select2-results__option .select2-results__group{padding-left:0}.select2-container--default .select2-results__option .select2-results__option .select2-results__option{margin-left:-1em;padding-left:2em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-2em;padding-left:3em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-3em;padding-left:4em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-4em;padding-left:5em}.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option{margin-left:-5em;padding-left:6em}.select2-container--default .select2-results__option--highlighted[aria-selected]{background-color:#5897fb;color:#fff}.select2-container--default .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic .select2-selection--single{background-color:#f7f7f7;border:1px solid #aaa;border-radius:4px;outline:0;background-image:-webkit-linear-gradient(top,#fff 50%,#eee 100%);background-image:-o-linear-gradient(top,#fff 50%,#eee 100%);background-image:linear-gradient(to bottom,#fff 50%,#eee 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic .select2-selection--single:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--classic .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-right:10px}.select2-container--classic .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--classic .select2-selection--single .select2-selection__arrow{background-color:#ddd;border:none;border-left:1px solid #aaa;border-top-right-radius:4px;border-bottom-right-radius:4px;height:26px;position:absolute;top:1px;right:1px;width:20px;background-image:-webkit-linear-gradient(top,#eee 50%,#ccc 100%);background-image:-o-linear-gradient(top,#eee 50%,#ccc 100%);background-image:linear-gradient(to bottom,#eee 50%,#ccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0)}.select2-container--classic .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent;border-style:solid;border-width:5px 4px 0;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__arrow{border:none;border-right:1px solid #aaa;border-radius:4px 0 0 4px;left:1px;right:auto}.select2-container--classic.select2-container--open .select2-selection--single{border:1px solid #5897fb}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow{background:0 0;border:none}.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888;border-width:0 4px 5px}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single{border-top:none;border-top-left-radius:0;border-top-right-radius:0;background-image:-webkit-linear-gradient(top,#fff 0,#eee 50%);background-image:-o-linear-gradient(top,#fff 0,#eee 50%);background-image:linear-gradient(to bottom,#fff 0,#eee 50%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0)}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0;background-image:-webkit-linear-gradient(top,#eee 50%,#fff 100%);background-image:-o-linear-gradient(top,#eee 50%,#fff 100%);background-image:linear-gradient(to bottom,#eee 50%,#fff 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0)}.select2-container--classic .select2-selection--multiple{background-color:#fff;border:1px solid #aaa;border-radius:4px;cursor:text;outline:0}.select2-container--classic .select2-selection--multiple:focus{border:1px solid #5897fb}.select2-container--classic .select2-selection--multiple .select2-selection__rendered{list-style:none;margin:0;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__clear{display:none}.select2-container--classic .select2-selection--multiple .select2-selection__choice{background-color:#e4e4e4;border:1px solid #aaa;border-radius:4px;cursor:default;float:left;margin-right:5px;margin-top:5px;padding:0 5px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove{color:#888;cursor:pointer;display:inline-block;font-weight:700;margin-right:2px}.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover{color:#555}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice{float:right;margin-left:5px;margin-right:auto}.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--classic.select2-container--open .select2-selection--multiple{border:1px solid #5897fb}.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--classic .select2-search--dropdown .select2-search__field{border:1px solid #aaa;outline:0}.select2-container--classic .select2-search--inline .select2-search__field{outline:0;box-shadow:none}.select2-container--classic .select2-dropdown{background-color:#fff;border:1px solid transparent}.select2-container--classic .select2-dropdown--above{border-bottom:none}.select2-container--classic .select2-dropdown--below{border-top:none}.select2-container--classic .select2-results__option[role=group]{padding:0}.select2-container--classic .select2-results__option[aria-disabled=true]{color:grey}.select2-container--classic .select2-results__option--highlighted[aria-selected]{background-color:#3875d7;color:#fff}.select2-container--classic .select2-results__group{cursor:default;display:block;padding:6px}.select2-container--classic.select2-container--open .select2-dropdown{border-color:#5897fb}"}return e.prototype.ngOnInit=function(){if(this.cssImport){var e=document.getElementsByTagName("head")[0];if(!e.children[e.children.length-1].version){var t=this.renderer.createElement(e,"style");this.renderer.setElementProperty(t,"type","text/css"),this.renderer.setElementProperty(t,"version","select2"),this.renderer.setElementProperty(t,"innerHTML",this.style)}}},e.prototype.ngOnChanges=function(e){if(this.element){if(e.data&&JSON.stringify(e.data.previousValue)!==JSON.stringify(e.data.currentValue)){this.initPlugin();var t=this.element.val();this.valueChanged.emit({value:t})}e.value&&e.value.previousValue!==e.value.currentValue&&(this.setElementValue(t=e.value.currentValue),this.valueChanged.emit({value:t})),e.disabled&&e.disabled.previousValue!==e.disabled.currentValue&&this.renderer.setElementProperty(this.selector.nativeElement,"disabled",this.disabled)}},e.prototype.ngAfterViewInit=function(){var e=this;this.element=jQuery(this.selector.nativeElement),this.initPlugin(),"undefined"!=typeof this.value&&this.setElementValue(this.value),this.element.on("select2:select select2:unselect",function(){e.valueChanged.emit({value:e.element.val()})})},e.prototype.ngOnDestroy=function(){this.element.off("select2:select")},e.prototype.initPlugin=function(){var e=this;if(this.element.select2){1==this.element.hasClass("select2-hidden-accessible")&&(this.element.select2("destroy"),this.renderer.setElementProperty(this.selector.nativeElement,"innerHTML",""));var t={data:this.data,width:this.width?this.width:"resolve"};Object.assign(t,this.options),t.matcher?jQuery.fn.select2.amd.require(["select2/compat/matcher"],function(n){t.matcher=n(t.matcher),e.element.select2(t),"undefined"!=typeof e.value&&e.setElementValue(e.value)}):this.element.select2(t),this.disabled&&this.renderer.setElementProperty(this.selector.nativeElement,"disabled",this.disabled)}else this.check||(this.check=!0,console.log("Please add Select2 library (js file) to the project. You can download it from https://github.com/select2/select2/tree/master/dist/js."))},e.prototype.setElementValue=function(e){if(Array.isArray(e))for(var t=0,n=this.selector.nativeElement.options;t<n.length;t++){var o=n[t];e.indexOf(o.value)>-1&&this.renderer.setElementProperty(o,"selected","true")}else this.renderer.setElementProperty(this.selector.nativeElement,"value",e);this.element.val(e),this.element.trigger("change.select2")},e}();o([r.ViewChild("selector"),i("design:type",r.ElementRef)],l.prototype,"selector",void 0),o([r.Input(),i("design:type",Array)],l.prototype,"data",void 0),o([r.Input(),i("design:type",Object)],l.prototype,"value",void 0),o([r.Input(),i("design:type",Boolean)],l.prototype,"cssImport",void 0),o([r.Input(),i("design:type",String)],l.prototype,"width",void 0),o([r.Input(),i("design:type",Boolean)],l.prototype,"disabled",void 0),o([r.Input(),i("design:type",Object)],l.prototype,"options",void 0),o([r.Output(),i("design:type",Object)],l.prototype,"valueChanged",void 0),l=o([r.Component({selector:"select2",template:"<select #selector></select>",encapsulation:r.ViewEncapsulation.None,changeDetection:r.ChangeDetectionStrategy.OnPush})],l),t.Select2Component=l},"s+3b":function(e,t,n){"use strict";var o=n("Ilbw");t.dragula=o.dragula;var i=n("xiuF");t.DragulaDirective=i.DragulaDirective;var r=n("LKU8");t.DragulaService=r.DragulaService;var l=n("+GbP");t.DragulaModule=l.DragulaModule},sAZ4:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("wAkD"),r=n("CURp");t.switchMap=function(e,t){return function(n){return n.lift(new l(e,t))}};var l=function(){function e(e,t){this.project=e,this.resultSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.project,this.resultSelector))},e}(),s=function(e){function t(t,n,o){e.call(this,t),this.project=n,this.resultSelector=o,this.index=0}return o(t,e),t.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){var o=this.innerSubscription;o&&o.unsubscribe(),this.add(this.innerSubscription=r.subscribeToResult(this,e,t,n))},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,n,o,i){this.resultSelector?this._tryNotifyNext(e,t,n,o):this.destination.next(t)},t.prototype._tryNotifyNext=function(e,t,n,o){var i;try{i=this.resultSelector(e,t,n,o)}catch(e){return void this.destination.error(e)}this.destination.next(i)},t}(i.OuterSubscriber)},sIYO:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("EEr4"),r=n("rCTf"),l=(n("mmVS"),n("B00U")),s=n("9dR0"),a=function(e){function t(t,n){e.call(this),this.source=t,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}return o(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new l.Subscription).add(this.source.subscribe(new c(this.getSubject(),this))),e.closed?(this._connection=null,e=l.Subscription.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return s.refCount()(this)},t}(r.Observable);t.ConnectableObservable=a;var u=a.prototype;t.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:u._subscribe},_isComplete:{value:u._isComplete,writable:!0},getSubject:{value:u.getSubject},connect:{value:u.connect},refCount:{value:u.refCount}};var c=function(e){function t(t,n){e.call(this,t),this.connectable=n}return o(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(i.SubjectSubscriber)},sKfG:function(e,t,n){"use strict";Object.defineProperty(t,"__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])))/}(t.LogRegExps||(t.LogRegExps={}))},sOR5:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},sTFn:function(e,t,n){"use strict";var o=n("6BaH"),i=n("9dR0"),r=n("EEr4");function l(){return new r.Subject}t.share=function(){return function(e){return i.refCount()(o.multicast(l)(e))}}},"sb+e":function(e,t,n){"use strict";t.letProto=function(e){return e(this)}},srjU:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},t2qv:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("rCTf"),r=n("jBEF"),l=n("Xajo"),s=n("CURp"),a=n("wAkD");t.ForkJoinObservable=function(e){function t(t,n){e.call(this),this.sources=t,this.resultSelector=n}return o(t,e),t.create=function(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];if(null===e||0===arguments.length)return new r.EmptyObservable;var o=null;return"function"==typeof e[e.length-1]&&(o=e.pop()),1===e.length&&l.isArray(e[0])&&(e=e[0]),0===e.length?new r.EmptyObservable:new t(e,o)},t.prototype._subscribe=function(e){return new u(e,this.sources,this.resultSelector)},t}(i.Observable);var u=function(e){function t(t,n,o){e.call(this,t),this.sources=n,this.resultSelector=o,this.completed=0,this.haveValues=0;var i=n.length;this.total=i,this.values=new Array(i);for(var r=0;r<i;r++){var l=s.subscribeToResult(this,n[r],null,r);l&&(l.outerIndex=r,this.add(l))}}return o(t,e),t.prototype.notifyNext=function(e,t,n,o,i){this.values[n]=t,i._hasValue||(i._hasValue=!0,this.haveValues++)},t.prototype.notifyComplete=function(e){var t=this.destination,n=this.haveValues,o=this.resultSelector,i=this.values,r=i.length;if(e._hasValue){if(this.completed++,this.completed===r){if(n===r){var l=o?o.apply(this,i):i;t.next(l)}t.complete()}}else t.complete()},t}(a.OuterSubscriber)},tQJL:function(e,t,n){"use strict";var o=n("xgwM").__extends;Object.defineProperty(t,"__esModule",{value:!0});var i=n("ao60");t.TextMacroAction=function(e){function t(t){var n=e.call(this)||this;return t?(n.text=t.text,n):n}return o(t,e),t.prototype.fromJsonObject=function(e){return this.assertMacroActionType(e),this.text=e.text,this},t.prototype.fromBinary=function(e){return this.readAndAssertMacroActionId(e),this.text=e.readString(),this},t.prototype.toJsonObject=function(){return{macroActionType:i.macroActionType.TextMacroAction,text:this.text}},t.prototype.toBinary=function(e){e.writeUInt8(i.MacroActionId.TextMacroAction),e.writeString(this.text)},t.prototype.toString=function(){return'<TextMacroAction text="'+this.text+'">'},t.prototype.getName=function(){return"TextMacroAction"},t}(i.MacroAction)},tXwt:function(e,t,n){"use strict";t.b=function(e,t){switch(void 0===e&&(e=i),t.type){case o.a.UPDATE_AVAILABLE:return(n=Object.assign({},e)).updateAvailable=!0,n;case o.a.UPDATE_DOWNLOADED:return(n=Object.assign({},e)).updateDownloaded=!0,n;case o.a.DO_NOT_UPDATE_APP:var n;return(n=Object.assign({},e)).doNotUpdateApp=!0,n;default:return e}},n.d(t,"a",function(){return r});var o=n("va3Z"),i={updateAvailable:!1,updateDownloaded:!1,doNotUpdateApp:!1},r=function(e){return e.updateDownloaded&&!e.doNotUpdateApp}},td8d:function(e,t,n){"use strict";var o=n("UYy0");t.scan=function(e,t){return arguments.length>=2?o.scan(e,t)(this):o.scan(e)(this)}},u2wr:function(e,t,n){"use strict";var o=n("offc");t.withLatestFrom=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return o.withLatestFrom.apply(void 0,e)(this)}},uCY4:function(e,t,n){"use strict";var o=n("rCTf"),i=n("VEfc");o.Observable.prototype.switchMap=i.switchMap},ujcs:function(e,t){t.read=function(e,t,n,o,i){var r,l,s=8*i-o-1,a=(1<<s)-1,u=a>>1,c=-7,d=n?i-1:0,p=n?-1:1,f=e[t+d];for(d+=p,r=f&(1<<-c)-1,f>>=-c,c+=s;c>0;r=256*r+e[t+d],d+=p,c-=8);for(l=r&(1<<-c)-1,r>>=-c,c+=o;c>0;l=256*l+e[t+d],d+=p,c-=8);if(0===r)r=1-u;else{if(r===a)return l?NaN:1/0*(f?-1:1);l+=Math.pow(2,o),r-=u}return(f?-1:1)*l*Math.pow(2,r-o)},t.write=function(e,t,n,o,i,r){var l,s,a,u=8*r-i-1,c=(1<<u)-1,d=c>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=o?0:r-1,h=o?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,l=c):(l=Math.floor(Math.log(t)/Math.LN2),t*(a=Math.pow(2,-l))<1&&(l--,a*=2),(t+=l+d>=1?p/a:p*Math.pow(2,1-d))*a>=2&&(l++,a/=2),l+d>=c?(s=0,l=c):l+d>=1?(s=(t*a-1)*Math.pow(2,i),l+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),l=0));i>=8;e[n+f]=255&s,f+=h,s/=256,i-=8);for(l=l<<i|s,u+=i;u>0;e[n+f]=255&l,f+=h,l/=256,u-=8);e[n+f-h]|=128*y}},va3Z:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"c",function(){return l}),n.d(t,"b",function(){return s}),n.d(t,"d",function(){return a}),n.d(t,"e",function(){return u});var o=n("gI3A"),i=(n.n(o),"[app-update] "),r={UPDATE_AVAILABLE:Object(o.type)(i+"update available"),UPDATE_APP:Object(o.type)(i+"update app"),DO_NOT_UPDATE_APP:Object(o.type)(i+"do not update app"),UPDATE_DOWNLOADED:Object(o.type)(i+"update downloaded"),UPDATING:Object(o.type)(i+"updating"),UPDATE_ERROR:Object(o.type)(i+"error")},l=function(){return function(){this.type=r.UPDATE_APP}}(),s=function(){return function(){this.type=r.DO_NOT_UPDATE_APP}}(),a=function(){return function(){this.type=r.UPDATE_DOWNLOADED}}(),u=function(){return function(e){this.payload=e,this.type=r.UPDATE_ERROR}}()},vvwv:function(e,t,n){"use strict";var o=n("jBEF");t.empty=o.EmptyObservable.create},vx8o:function(e,t,n){"use strict";(function(t){var o=n("lyLw"),i=n("qjx7"),r=n("ob4r"),l=document,s=l.documentElement;function a(e,n,o,r){t.navigator.pointerEnabled?i[n](e,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[o],r):t.navigator.msPointerEnabled?i[n](e,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[o],r):(i[n](e,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[o],r),i[n](e,o,r))}function u(e){if(void 0!==e.touches)return e.touches.length;if(void 0!==e.which&&0!==e.which)return e.which;if(void 0!==e.buttons)return e.buttons;var t=e.button;return void 0!==t?1&t?1:2&t?3:4&t?2:0:void 0}function c(e,n){return"undefined"!=typeof t[n]?t[n]:s.clientHeight?s[e]:l.body[e]}function d(e,t,n){var o,i=e||{},r=i.className;return i.className+=" gu-hide",o=l.elementFromPoint(t,n),i.className=r,o}function p(){return!1}function f(){return!0}function h(e){return e.width||e.right-e.left}function y(e){return e.height||e.bottom-e.top}function m(e){return e.parentNode===l?null:e.parentNode}function g(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||function e(t){return!!t&&"false"!==t.contentEditable&&("true"===t.contentEditable||e(m(t)))}(e)}function v(e){return e.nextElementSibling||function(){var t=e;do{t=t.nextSibling}while(t&&1!==t.nodeType);return t}()}function b(e,t){var n=function(e){return e.targetTouches&&e.targetTouches.length?e.targetTouches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e}(t),o={pageX:"clientX",pageY:"clientY"};return e in o&&!(e in n)&&o[e]in n&&(e=o[e]),n[e]}e.exports=function(e,t){var n,k,_,w,A,T,C,x,O,S,M;1===arguments.length&&!1===Array.isArray(e)&&(t=e,e=[]);var E,P=null,I=t||{};void 0===I.moves&&(I.moves=f),void 0===I.accepts&&(I.accepts=f),void 0===I.invalid&&(I.invalid=function(){return!1}),void 0===I.containers&&(I.containers=e||[]),void 0===I.isContainer&&(I.isContainer=p),void 0===I.copy&&(I.copy=!1),void 0===I.copySortSource&&(I.copySortSource=!1),void 0===I.revertOnSpill&&(I.revertOnSpill=!1),void 0===I.removeOnSpill&&(I.removeOnSpill=!1),void 0===I.direction&&(I.direction="vertical"),void 0===I.ignoreInputTextSelection&&(I.ignoreInputTextSelection=!0),void 0===I.mirrorContainer&&(I.mirrorContainer=l.body);var R=o({containers:I.containers,start:function(e){var t=K(e);t&&B(t)},end:H,cancel:G,remove:$,destroy:function(){N(!0),q({})},canMove:function(e){return!!K(e)},dragging:!1});return!0===I.removeOnSpill&&R.on("over",function(e){r.rm(e,"gu-hide")}).on("out",function(e){R.dragging&&r.add(e,"gu-hide")}),N(),R;function D(e){return-1!==R.containers.indexOf(e)||I.isContainer(e)}function N(e){var t=e?"remove":"add";a(s,t,"mousedown",V),a(s,t,"mouseup",q)}function j(e){a(s,e?"remove":"add","mousemove",F)}function L(e){var t=e?"remove":"add";i[t](s,"selectstart",U),i[t](s,"click",U)}function U(e){E&&e.preventDefault()}function V(e){if(T=e.clientX,C=e.clientY,1===u(e)&&!e.metaKey&&!e.ctrlKey){var t=e.target,n=K(t);n&&(E=n,j(),"mousedown"===e.type&&(g(t)?t.focus():e.preventDefault()))}}function F(e){if(E)if(0!==u(e)){if(void 0===e.clientX||e.clientX!==T||void 0===e.clientY||e.clientY!==C){if(I.ignoreInputTextSelection){var t=b("clientX",e),o=b("clientY",e);if(g(l.elementFromPoint(t,o)))return}var i=E;j(!0),L(),H(),B(i);var d,p={left:(d=_.getBoundingClientRect()).left+c("scrollLeft","pageXOffset"),top:d.top+c("scrollTop","pageYOffset")};w=b("pageX",e)-p.left,A=b("pageY",e)-p.top,r.add(S||_,"gu-transit"),function(){if(!n){var e=_.getBoundingClientRect();(n=_.cloneNode(!0)).style.width=h(e)+"px",n.style.height=y(e)+"px",r.rm(n,"gu-transit"),r.add(n,"gu-mirror"),I.mirrorContainer.appendChild(n),a(s,"add","mousemove",Z),r.add(I.mirrorContainer,"gu-unselectable"),R.emit("cloned",n,_,"mirror")}}(),Z(e)}}else q({})}function K(e){if(!(R.dragging&&n||D(e))){for(var t=e;m(e)&&!1===D(m(e));){if(I.invalid(e,t))return;if(!(e=m(e)))return}var o=m(e);if(o&&!I.invalid(e,t)&&I.moves(e,o,t,v(e)))return{item:e,source:o}}}function B(e){("boolean"==typeof I.copy?I.copy:I.copy(e.item,e.source))&&(S=e.item.cloneNode(!0),R.emit("cloned",S,e.item,"copy")),k=e.source,_=e.item,x=O=v(e.item),R.dragging=!0,R.emit("drag",_,k)}function H(){if(R.dragging){var e=S||_;z(e,m(e))}}function W(){E=!1,j(!0),L(!0)}function q(e){if(W(),R.dragging){var t=S||_,o=b("clientX",e),i=b("clientY",e),r=J(d(n,o,i),o,i);r&&(S&&I.copySortSource||!S||r!==k)?z(t,r):I.removeOnSpill?$():G()}}function z(e,t){var n=m(e);S&&I.copySortSource&&t===k&&n.removeChild(_),Q(t)?R.emit("cancel",e,k,k):R.emit("drop",e,t,k,O),Y()}function $(){if(R.dragging){var e=S||_,t=m(e);t&&t.removeChild(e),R.emit(S?"cancel":"remove",e,t,k),Y()}}function G(e){if(R.dragging){var t=arguments.length>0?e:I.revertOnSpill,n=S||_,o=m(n),i=Q(o);!1===i&&t&&(S?o&&o.removeChild(S):k.insertBefore(n,x)),i||t?R.emit("cancel",n,k,k):R.emit("drop",n,o,k,O),Y()}}function Y(){var e=S||_;W(),n&&(r.rm(I.mirrorContainer,"gu-unselectable"),a(s,"remove","mousemove",Z),m(n).removeChild(n),n=null),e&&r.rm(e,"gu-transit"),M&&clearTimeout(M),R.dragging=!1,P&&R.emit("out",e,P,k),R.emit("dragend",e),k=_=S=x=O=M=P=null}function Q(e,t){var o;return o=void 0!==t?t:n?O:v(S||_),e===k&&o===x}function J(e,t,n){for(var o=e;o&&!i();)o=m(o);return o;function i(){if(!1===D(o))return!1;var i=X(o,e),r=ee(o,i,t,n);return!!Q(o,r)||I.accepts(_,o,k,r)}}function Z(e){if(n){e.preventDefault();var t=b("clientX",e),o=b("clientY",e),i=o-A;n.style.left=t-w+"px",n.style.top=i+"px";var r=S||_,l=d(n,t,o),s=J(l,t,o),a=null!==s&&s!==P;(a||null===s)&&(P&&f("out"),P=s,a&&f("over"));var u=m(r);if(s!==k||!S||I.copySortSource){var c,p=X(s,l);if(null!==p)c=ee(s,p,t,o);else{if(!0!==I.revertOnSpill||S)return void(S&&u&&u.removeChild(r));c=x,s=k}(null===c&&a||c!==r&&c!==v(r))&&(O=c,s.insertBefore(r,c),R.emit("shadow",r,s,k))}else u&&u.removeChild(r)}function f(e){R.emit(e,r,P,k)}}function X(e,t){for(var n=t;n!==e&&m(n)!==e;)n=m(n);return n===s?null:n}function ee(e,t,n,o){var i,r="horizontal"===I.direction;return t!==e?(i=t.getBoundingClientRect(),(r?n>i.left+h(i)/2:o>i.top+y(i)/2)?v(t):t):function(){var t,i,l,s=e.children.length;for(t=0;t<s;t++){if(l=(i=e.children[t]).getBoundingClientRect(),r&&l.left+l.width/2>n)return i;if(!r&&l.top+l.height/2>o)return i}return null}()}}}).call(t,n("srjU"))},"w+X5":function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"h",function(){return l}),n.d(t,"c",function(){return s}),n.d(t,"d",function(){return a}),n.d(t,"b",function(){return u}),n.d(t,"i",function(){return c}),n.d(t,"e",function(){return d}),n.d(t,"f",function(){return p}),n.d(t,"g",function(){return f});var o=n("gI3A"),i=(n.n(o),"[app-update-config] "),r={TOGGLE_CHECK_FOR_UPDATE_ON_STARTUP:Object(o.type)(i+"Check for update on startup"),CHECK_FOR_UPDATE_NOW:Object(o.type)(i+"Check for update now"),CHECK_FOR_UPDATE_SUCCESS:Object(o.type)(i+"Check for update success"),CHECK_FOR_UPDATE_FAILED:Object(o.type)(i+"Check for update faild"),TOGGLE_PRE_RELEASE_FLAG:Object(o.type)(i+"Toggle pre release update flag"),LOAD_AUTO_UPDATE_SETTINGS:Object(o.type)(i+"Load auto update settings"),LOAD_AUTO_UPDATE_SETTINGS_SUCCESS:Object(o.type)(i+"Load auto update settings success"),SAVE_AUTO_UPDATE_SETTINGS_SUCCESS:Object(o.type)(i+"Save auto update settings success")},l=function(){return function(e){this.payload=e,this.type=r.TOGGLE_CHECK_FOR_UPDATE_ON_STARTUP}}(),s=function(){return function(){this.type=r.CHECK_FOR_UPDATE_NOW}}(),a=function(){return function(e){this.payload=e,this.type=r.CHECK_FOR_UPDATE_SUCCESS}}(),u=function(){return function(e){this.payload=e,this.type=r.CHECK_FOR_UPDATE_FAILED}}(),c=function(){return function(e){this.payload=e,this.type=r.TOGGLE_PRE_RELEASE_FLAG}}(),d=function(){return function(){this.type=r.LOAD_AUTO_UPDATE_SETTINGS_SUCCESS}}(),p=function(){return function(e){this.payload=e,this.type=r.LOAD_AUTO_UPDATE_SETTINGS_SUCCESS}}(),f=function(){return function(){this.type=r.SAVE_AUTO_UPDATE_SETTINGS_SUCCESS}}()},wAkD:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS");t.OuterSubscriber=function(e){function t(){e.apply(this,arguments)}return o(t,e),t.prototype.notifyNext=function(e,t,n,o,i){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(i.Subscriber)},wogf:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("H5FS"),i=n("4KnF"),r=n("I5Xr"),l=n("MkTX"),s=n("9PEG"),a=n("78zf"),u=n("Fq1u"),c=n("HiVc"),d=n("Oz3Z");function p(e){return e.hasSecondaryRoleAction()||e.hasActiveModifier()||e.hasScancode()&&d.isScancodeExists(e.scancode)}t.Helper=function(){function e(){}return e.createKeyAction=function(t,n){return t instanceof i.KeyAction?e.fromKeyAction(t):t instanceof o.UhkBuffer?e.fromUhkBuffer(t,n):e.fromJSONObject(t,n)},e.fromUhkBuffer=function(e,t){var n=e.readUInt8();if(e.backtrack(),n>=i.KeyActionId.KeystrokeAction&&n<i.KeyActionId.LastKeystrokeAction){var o=(new r.KeystrokeAction).fromBinary(e);return p(o)?o:new c.NoneAction}switch(n){case i.KeyActionId.NoneAction:return void e.readUInt8();case i.KeyActionId.SwitchLayerAction:return(new l.SwitchLayerAction).fromBinary(e);case i.KeyActionId.SwitchKeymapAction:return(new s.UnresolvedSwitchKeymapAction).fromBinary(e);case i.KeyActionId.MouseAction:return(new a.MouseAction).fromBinary(e);case i.KeyActionId.PlayMacroAction:return(new u.PlayMacroAction).fromBinary(e,t);default:throw"Invalid KeyAction first byte: "+n}},e.fromKeyAction=function(e){var t;return e instanceof r.KeystrokeAction?t=new r.KeystrokeAction(e):e instanceof l.SwitchLayerAction?t=new l.SwitchLayerAction(e):e instanceof s.SwitchKeymapAction?t=new s.SwitchKeymapAction(e):e instanceof a.MouseAction?t=new a.MouseAction(e):e instanceof u.PlayMacroAction&&(t=new u.PlayMacroAction(e)),t},e.fromJSONObject=function(e,t){if(!e)return null;switch(e.keyActionType){case i.keyActionType.KeystrokeAction:var n=(new r.KeystrokeAction).fromJsonObject(e);return p(n)?n:new c.NoneAction;case i.keyActionType.SwitchLayerAction:return(new l.SwitchLayerAction).fromJsonObject(e);case i.keyActionType.SwitchKeymapAction:return(new s.SwitchKeymapAction).fromJsonObject(e);case i.keyActionType.MouseAction:return(new a.MouseAction).fromJsonObject(e);case i.keyActionType.PlayMacroAction:return(new u.PlayMacroAction).fromJsonObject(e,t);case i.keyActionType.NoneAction:return new c.NoneAction;default:throw'Invalid KeyAction.keyActionType: "'+e.keyActionType+'"'}},e}()},xA9i:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("zF5W"),i=n("WT6e"),r=n("7DMc"),l=function(){function e(){}return e.prototype.to=function(e){return String(parseFloat(parseFloat(String(e)).toFixed(2)))},e.prototype.from=function(e){return parseFloat(e)},e}();t.DefaultFormatter=l;var s=function(){function e(e,t){var n=this;this.el=e,this.renderer=t,this.config={},this.change=new i.EventEmitter(!0),this.update=new i.EventEmitter(!0),this.slide=new i.EventEmitter(!0),this.set=new i.EventEmitter(!0),this.start=new i.EventEmitter(!0),this.end=new i.EventEmitter(!0),this.onChange=Function.prototype,this.onTouched=Function.prototype,this.eventHandler=function(e,t,o,i){var r=n.toValues(t),l=!1;void 0!==n.value?(Array.isArray(r)&&n.value[o]!=r[o]&&(l=!0),Array.isArray(r)||n.value==r||(l=!0),l&&(e.emit(r),n.onChange(r)),Array.isArray(r)?n.value[o]=r[o]:n.value=r):n.value=r},this.defaultKeyHandler=function(e){var t,o,i=n.slider.steps(),r=parseInt(e.target.getAttribute("data-handle")),l=1,s=1,a=0;switch(e.which){case 34:s=n.config.pageSteps;case 40:case 37:l=-1,a=i[r][0],e.preventDefault();break;case 33:s=n.config.pageSteps;case 38:case 39:a=i[r][1],e.preventDefault()}t=l*s*a,Array.isArray(n.value)?(o=[].concat(n.value))[r]=o[r]+t:o=n.value+t,n.slider.set(o)}}return e.prototype.ngOnInit=function(){var e=this,t=JSON.parse(JSON.stringify({behaviour:this.behaviour,connect:this.connect,limit:this.limit,start:void 0!==this.formControl?this.formControl.value:this.ngModel,step:this.step,pageSteps:this.pageSteps,keyboard:this.keyboard,onKeydown:this.onKeydown,range:this.config.range||{min:this.min,max:this.max},tooltips:this.tooltips}));if(t.format=this.format||this.config.format||new l,this.slider=o.create(this.el.nativeElement.querySelector("div"),Object.assign(this.config,t)),this.handles=[].slice.call(this.el.nativeElement.querySelectorAll(".noUi-handle")),this.config.keyboard){void 0===this.config.pageSteps&&(this.config.pageSteps=10);for(var n=function(e){e.setAttribute("tabindex",0),e.addEventListener("click",function(){e.focus()}),e.addEventListener("keydown",void 0===i.config.onKeydown?i.defaultKeyHandler:i.config.onKeydown)},i=this,r=0,s=this.handles;r<s.length;r++)n(s[r])}this.slider.on("set",function(t,n,o){e.eventHandler(e.set,t,n,o)}),this.slider.on("update",function(t,n,o){e.update.emit(e.toValues(t))}),this.slider.on("change",function(t,n,o){e.change.emit(e.toValues(t))}),this.slider.on("slide",function(t,n,o){e.eventHandler(e.slide,t,n,o)}),this.slider.on("start",function(t,n,o){e.start.emit(e.toValues(t))}),this.slider.on("end",function(t,n,o){e.end.emit(e.toValues(t))})},e.prototype.ngOnChanges=function(e){var t=this;this.slider&&(e.min||e.max||e.step)&&setTimeout(function(){t.slider.updateOptions({range:{min:t.min,max:t.max},step:t.step})})},e.prototype.toValues=function(e){var t=e.map(this.config.format.from);return 1==t.length?t[0]:t},e.prototype.writeValue=function(e){this.slider&&this.slider.set(e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){e?this.renderer.setAttribute(this.el.nativeElement.childNodes[0],"disabled","true"):this.renderer.removeAttribute(this.el.nativeElement.childNodes[0],"disabled")},e.decorators=[{type:i.Component,args:[{selector:"nouislider",host:{"[class.ng2-nouislider]":"true"},template:'<div [attr.disabled]="disabled ? true : undefined"></div>',styles:["\n :host {\n display: block;\n margin-top: 1rem;\n margin-bottom: 1rem;\n }\n "],providers:[{provide:r.NG_VALUE_ACCESSOR,useExisting:i.forwardRef(function(){return e}),multi:!0}]}]}],e.propDecorators={disabled:[{type:i.Input}],behaviour:[{type:i.Input}],connect:[{type:i.Input}],limit:[{type:i.Input}],min:[{type:i.Input}],max:[{type:i.Input}],step:[{type:i.Input}],format:[{type:i.Input}],pageSteps:[{type:i.Input}],config:[{type:i.Input}],ngModel:[{type:i.Input}],keyboard:[{type:i.Input}],onKeydown:[{type:i.Input}],formControl:[{type:i.Input}],tooltips:[{type:i.Input}],change:[{type:i.Output}],update:[{type:i.Output}],slide:[{type:i.Output}],set:[{type:i.Output}],start:[{type:i.Output}],end:[{type:i.Output}]},e}();t.NouisliderComponent=s,t.NouisliderModule=function(){function e(){}return e.decorators=[{type:i.NgModule,args:[{imports:[],exports:[s],declarations:[s]}]}],e}()},xAJs:function(e,t,n){"use strict";var o=n("9omE");t.map=function(e,t){return o.map(e,t)(this)}},xOQQ:function(e,t,n){"use strict";var o=n("rCTf"),i=n("U9ky");o.Observable.prototype.pluck=i.pluck},"xW7+":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var o=function(e){return e[e.ANSI=0]="ANSI",e[e.ISO=1]="ISO",e}({})},xgwM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__extends=function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},n.d(t,"__assign",function(){return i}),t.__rest=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(e);i<o.length;i++)t.indexOf(o[i])<0&&(n[o[i]]=e[o[i]])}return n},t.__decorate=function(e,t,n,o){var i,r=arguments.length,l=r<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(l=(r<3?i(l):r>3?i(t,n,l):i(t,n))||l);return r>3&&l&&Object.defineProperty(t,n,l),l},t.__param=function(e,t){return function(n,o){t(n,o,e)}},t.__metadata=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},t.__awaiter=function(e,t,n,o){return new(n||(n=Promise))(function(i,r){function l(e){try{a(o.next(e))}catch(e){r(e)}}function s(e){try{a(o.throw(e))}catch(e){r(e)}}function a(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(l,s)}a((o=o.apply(e,t||[])).next())})},t.__generator=function(e,t){var n,o,i,r,l={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;l;)try{if(n=1,o&&(i=o[2&r[0]?"return":r[0]?"throw":"next"])&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[0,i.value]),r[0]){case 0:case 1:i=r;break;case 4:return l.label++,{value:r[1],done:!1};case 5:l.label++,o=r[1],r=[0];continue;case 7:r=l.ops.pop(),l.trys.pop();continue;default:if(!(i=(i=l.trys).length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){l=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){l.label=r[1];break}if(6===r[0]&&l.label<i[1]){l.label=i[1],i=r;break}if(i&&l.label<i[2]){l.label=i[2],l.ops.push(r);break}i[2]&&l.ops.pop(),l.trys.pop();continue}r=t.call(e,l)}catch(e){r=[6,e],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}},t.__exportStar=function(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])},t.__values=r,t.__read=l,t.__spread=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e},t.__await=s,t.__asyncGenerator=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=n.apply(e,t||[]),r=[];return o={},l("next"),l("throw"),l("return"),o[Symbol.asyncIterator]=function(){return this},o;function l(e){i[e]&&(o[e]=function(t){return new Promise(function(n,o){r.push([e,t,n,o])>1||a(e,t)})})}function a(e,t){try{(n=i[e](t)).value instanceof s?Promise.resolve(n.value.v).then(u,c):d(r[0][2],n)}catch(e){d(r[0][3],e)}var n}function u(e){a("next",e)}function c(e){a("throw",e)}function d(e,t){e(t),r.shift(),r.length&&a(r[0][0],r[0][1])}},t.__asyncDelegator=function(e){var t,n;return t={},o("next"),o("throw",function(e){throw e}),o("return"),t[Symbol.iterator]=function(){return this},t;function o(o,i){e[o]&&(t[o]=function(t){return(n=!n)?{value:s(e[o](t)),done:"return"===o}:i?i(t):t})}},t.__asyncValues=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator];return t?t.call(e):"function"==typeof r?r(e):e[Symbol.iterator]()},t.__makeTemplateObject=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},t.__importStar=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},t.__importDefault=function(e){return e&&e.__esModule?e:{default:e}};var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},i=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};function r(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function l(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,i,r=n.call(e),l=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)l.push(o.value)}catch(e){i={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(i)throw i.error}}return l}function s(e){return this instanceof s?(this.v=e,this):new s(e)}},xiuF:function(e,t,n){"use strict";var o=n("TToO").__decorate,i=n("TToO").__metadata,r=n("WT6e"),l=(n("LKU8"),n("Ilbw")),s=function(){function e(e,t){this.el=e,this.dragulaService=t,this.container=e.nativeElement}return e.prototype.ngOnInit=function(){var e=this,t=this.dragulaService.find(this.dragula),n=function(){e.dragulaModel&&(e.drake.models?e.drake.models.push(e.dragulaModel):e.drake.models=[e.dragulaModel])};t?(this.drake=t.drake,n(),this.drake.containers.push(this.container)):(this.drake=l.dragula([this.container],Object.assign({},this.dragulaOptions)),n(),this.dragulaService.add(this.dragula,this.drake))},e.prototype.ngOnChanges=function(e){if(e&&e.dragulaModel&&this.drake)if(this.drake.models){var t=this.drake.models.indexOf(e.dragulaModel.previousValue);this.drake.models.splice(t,1,e.dragulaModel.currentValue)}else this.drake.models=[e.dragulaModel.currentValue]},e}();o([r.Input(),i("design:type",String)],s.prototype,"dragula",void 0),o([r.Input(),i("design:type",Object)],s.prototype,"dragulaModel",void 0),o([r.Input(),i("design:type",Object)],s.prototype,"dragulaOptions",void 0),s=o([r.Directive({selector:"[dragula]"})],s),t.DragulaDirective=s},y1XC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogService=function(){function e(){}return e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.error(e)},e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.log(e)},e.prototype.silly=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.log(e)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];console.info(e)},e}()},y32t:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,i=n("WT6e"),r=n("kZql"),l=function(){},s=n("dyjq"),a=(n("JJSU"),n("va3Z")),u=n("9EfN"),c=function(){function e(e){this.store=e,this.showUpdateAvailable$=e.select(u.o),this.deviceConfigurationLoaded$=e.select(u.c),this.runningInElectron$=e.select(u.t),this.saveToKeyboardState$=e.select(u.u)}return e.prototype.updateApp=function(){this.store.dispatch(new a.c)},e.prototype.doNotUpdateApp=function(){this.store.dispatch(new a.b)},e.prototype.clickedOnProgressButton=function(e){return this.store.dispatch(e)},e}(),d=n("Xjw4"),p=function(){function e(e){this.elm=e}return e.prototype.ngOnChanges=function(e){e.mwlFocus&&!0===this.mwlFocus&&this.elm.nativeElement.focus()},e}(),f=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),h=function(){this.confirmText="Confirm",this.cancelText="Cancel",this.confirmButtonType="success",this.cancelButtonType="default",this.placement="top",this.hideConfirmButton=!1,this.hideCancelButton=!1,this.popoverClass="",this.appendToBody=!1},y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t}(h),m=function(){function e(e){this.options=e}return e.prototype.ngAfterViewInit=function(){this.options.onAfterViewInit()},e}(),g=i["\u0275crt"]({encapsulation:0,styles:[".popover[_ngcontent-%COMP%] {\n display: block;\n }\n .bs-popover-top[_ngcontent-%COMP%] .arrow[_ngcontent-%COMP%], .bs-popover-bottom[_ngcontent-%COMP%] .arrow[_ngcontent-%COMP%] {\n left: 50%;\n }\n .bs-popover-left[_ngcontent-%COMP%] .arrow[_ngcontent-%COMP%], .bs-popover-right[_ngcontent-%COMP%] .arrow[_ngcontent-%COMP%] {\n top: 50%;\n }\n .btn[_ngcontent-%COMP%] {\n transition: none;\n }"],data:{}});function v(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,7,"div",[["class","col-xs-6 col-6"]],null,null,null,null,null)),i["\u0275did"](1,278528,null,0,d.i,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),i["\u0275pod"](2,{"col-xs-offset-3 col-offset-3":0}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,2,"button",[],[[8,"className",0],[8,"innerHTML",1]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.parent.context.options.onConfirm({clickEvent:n})&&o),o},null,null)),i["\u0275did"](5,540672,null,0,p,[i.ElementRef],{mwlFocus:[0,"mwlFocus"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,1,0,"col-xs-6 col-6",e(t,2,0,t.parent.context.options.hideCancelButton)),e(t,5,0,"confirm"===t.parent.context.options.focusButton)},function(e,t){e(t,4,0,"btn btn-block btn-"+t.parent.context.options.confirmButtonType,t.parent.context.options.confirmText)})}function b(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,7,"div",[["class","col-xs-6 col-6"]],null,null,null,null,null)),i["\u0275did"](1,278528,null,0,d.i,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),i["\u0275pod"](2,{"col-xs-offset-3 col-offset-3":0}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,2,"button",[],[[8,"className",0],[8,"innerHTML",1]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.parent.context.options.onCancel({clickEvent:n})&&o),o},null,null)),i["\u0275did"](5,540672,null,0,p,[i.ElementRef],{mwlFocus:[0,"mwlFocus"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,1,0,"col-xs-6 col-6",e(t,2,0,t.parent.context.options.hideConfirmButton)),e(t,5,0,"cancel"===t.parent.context.options.focusButton)},function(e,t){e(t,4,0,"btn btn-block btn-"+t.parent.context.options.cancelButtonType,t.parent.context.options.cancelText)})}function k(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,21,"div",[],null,null,null,null,null)),i["\u0275did"](2,278528,null,0,d.i,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{ngClass:[0,"ngClass"]},null),i["\u0275pad"](3,5),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,0,"div",[["class","popover-arrow arrow"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,0,"h3",[["class","popover-title popover-header"]],[[8,"innerHTML",1]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,12,"div",[["class","popover-content popover-body"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,0,"p",[],[[8,"innerHTML",1]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](13,0,null,null,7,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,v)),i["\u0275did"](16,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,b)),i["\u0275did"](19,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,2,0,e(t,3,0,"popover",t.context.options.placement,"popover-"+t.context.options.placement,"bs-popover-"+t.context.options.placement,t.context.options.popoverClass)),e(t,16,0,!t.context.options.hideConfirmButton),e(t,19,0,!t.context.options.hideCancelButton)},function(e,t){e(t,7,0,t.context.options.title),e(t,11,0,t.context.options.message)})}function _(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "]))],null,null)}function w(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](0,[["defaultTemplate",2]],null,0,null,k)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,2,null,_)),i["\u0275did"](4,540672,null,0,d.q,[i.ViewContainerRef],{ngTemplateOutletContext:[0,"ngTemplateOutletContext"],ngTemplateOutlet:[1,"ngTemplateOutlet"]},null),i["\u0275pod"](5,{options:0}),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,4,0,e(t,5,0,n.options),n.options.customTemplate||i["\u0275nov"](t,1))},null)}var A=i["\u0275ccf"]("ng-component",m,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"ng-component",[],null,null,null,w,g)),i["\u0275did"](1,4243456,null,0,m,[y],null,null)],null,null)},{},{},[]),T=function(){this.rotateLogo=!1},C=i["\u0275crt"]({encapsulation:0,styles:[[".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:2s ease-in-out infinite spin;animation:2s ease-in-out infinite spin}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%,50%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%,50%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}"]],data:{}});function x(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,14,"span",[["class","uhk-message-wrapper"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,2,"img",[["class","agent-logo spin-logo"],["src","assets/images/agent-icon.png"]],null,null,null,null,null)),i["\u0275did"](3,278528,null,0,d.i,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),i["\u0275pod"](4,{"spin-logo":0}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,7,"div",[["class","messages"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,1,"h1",[],null,null,null,null,null)),(e()(),i["\u0275ted"](9,null,[" "," "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),i["\u0275ted"](12,null,[" "," "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,3,0,"agent-logo spin-logo",e(t,4,0,t.component.rotateLogo))},function(e,t){var n=t.component;e(t,9,0,n.header),e(t,12,0,n.subtitle)})}n("q3ik"),n("LppN"),n("EoAl");var O=function(){},S=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function M(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"uhk-message",[["header","Cannot find your UHK"],["subtitle","Please plug it in!"]],null,null,null,x,C)),i["\u0275did"](1,49152,null,0,T,[],{header:[0,"header"],subtitle:[1,"subtitle"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,1,0,"Cannot find your UHK","Please plug it in!")},null)}var E=i["\u0275ccf"]("missing-device",O,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"missing-device",[],null,null,null,M,S)),i["\u0275did"](1,49152,null,0,O,[],null,null)],null,null)},{},{},[]),P=n("OE0E"),I=new i.InjectionToken("WindowToken");function R(){return window}var D=function(){},N=function(){function e(e,t){this.document=e,this.window=t}return Object.defineProperty(e.prototype,"isSupported",{get:function(){return!!this.document.queryCommandSupported&&!!this.document.queryCommandSupported("copy")},enumerable:!0,configurable:!0}),e.prototype.isTargetValid=function(e){if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement){if(e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');return!0}throw new Error("Target should be input or textarea")},e.prototype.copyFromInputElement=function(e){try{this.selectTarget(e);var t=this.copyText();return this.clearSelection(e,this.window),t}catch(e){return!1}},e.prototype.copyFromContent=function(e){return this.tempTextArea||(this.tempTextArea=this.createTempTextArea(this.document,this.window),this.document.body.appendChild(this.tempTextArea)),this.tempTextArea.value=e,this.copyFromInputElement(this.tempTextArea)},e.prototype.destroy=function(){this.tempTextArea&&(this.document.body.removeChild(this.tempTextArea),this.tempTextArea=void 0)},e.prototype.selectTarget=function(e){return e.select(),e.setSelectionRange(0,e.value.length),e.value.length},e.prototype.copyText=function(){return this.document.execCommand("copy")},e.prototype.clearSelection=function(e,t){e&&e.blur(),t.getSelection().removeAllRanges()},e.prototype.createTempTextArea=function(e,t){var n,o="rtl"===e.documentElement.getAttribute("dir");return(n=e.createElement("textarea")).style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[o?"right":"left"]="-9999px",n.style.top=(t.pageYOffset||e.documentElement.scrollTop)+"px",n.setAttribute("readonly",""),n},e}();function j(e,t,n){return n||new N(e,t)}new i.Optional,new i.SkipSelf;var L=function(){function e(e){this.clipboardSrv=e,this.cbOnSuccess=new i.EventEmitter,this.cbOnError=new i.EventEmitter}return e.prototype.ngOnInit=function(){},e.prototype.ngOnDestroy=function(){this.clipboardSrv.destroy()},e.prototype.onClick=function(e){this.clipboardSrv.isSupported?this.targetElm&&this.clipboardSrv.isTargetValid(this.targetElm)?this.handleResult(this.clipboardSrv.copyFromInputElement(this.targetElm),this.targetElm.value):this.cbContent&&this.handleResult(this.clipboardSrv.copyFromContent(this.cbContent),this.cbContent):this.handleResult(!1,void 0)},e.prototype.handleResult=function(e,t){e?this.cbOnSuccess.emit({isSuccess:!0,content:t}):this.cbOnError.emit({isSuccess:!1})},e}(),U=function(){function e(e,t){this.elementRef=e,this.sanitizer=t}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.getCustomTemplate(),title:this.title})},e.prototype.fixTitle=function(){jQuery(this.elementRef.nativeElement).tooltip({placement:this.placement,html:this.html,template:this.getCustomTemplate(),title:this.title}),jQuery(this.elementRef.nativeElement).attr("title",this.title).tooltip("fixTitle")},e.prototype.getCustomTemplate=function(){var e="",t="";return this.maxWidth&&(e='style="width: '+this.maxWidth+'px;"',t='style="max-width: '+this.maxWidth+'px;"'),'<div class="tooltip" '+e+'>\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" '+t+"></div>\n </div>"},e}(),V=n("fYQU"),F=n("Ji5S"),K=function(){function e(e,t){this.store=e,this.cdRef=t,this.command='cat <<EOF >/etc/udev/rules.d/50-uhk60.rules\n# Ultimate Hacking Keyboard rules\n# These are the udev rules for accessing the USB interfaces of the UHK as non-root users.\n# Copy this file to /etc/udev/rules.d and physically reconnect the UHK afterwards.\nSUBSYSTEMS=="usb", ATTRS{idVendor}=="1d50", ATTRS{idProduct}=="612[0-7]", MODE:="0666"\nEOF\nudevadm trigger\nudevadm settle'}return e.prototype.ngOnInit=function(){var e=this;this.stateSubscription=this.store.select(u.m).subscribe(function(t){e.state=t,e.cdRef.markForCheck()})},e.prototype.ngOnDestroy=function(){this.stateSubscription&&this.stateSubscription.unsubscribe()},e.prototype.setUpPermissions=function(){this.store.dispatch(new V.o)},e.prototype.whatWillThisDo=function(){this.store.dispatch(new F.i)},e.prototype.retry=function(){this.store.dispatch(new F.f)},e}(),B=i["\u0275crt"]({encapsulation:0,styles:[[".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%}.privilege-error[_ngcontent-%COMP%]{-webkit-animation:2s error-fade-in;animation:2s error-fade-in}@-webkit-keyframes error-fade-in{0%{color:#fff;background-color:red}100%{color:inherit;background-color:inherit}}@keyframes error-fade-in{0%{color:#fff;background-color:red}100%{color:inherit;background-color:inherit}}"]],data:{}});function H(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"a",[["class","link-inline"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.whatWillThisDo()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["What will this do?\n "]))],null,null)}function W(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,[["privilegeError",1]],null,4,"p",[["class","privilege-error"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n Agent wasn't able to set up permissions via PolicyKit. This is most likely because the\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["polkit"])),(e()(),i["\u0275ted"](-1,null,[" package is not installed on your system.\n "]))],null,null)}function q(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,15,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n Agent uses the following script to set up permissions. You can run it manually as root, then\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"a",[["class","link-inline"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.retry()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["retry"])),(e()(),i["\u0275ted"](-1,null,[".\n "])),(e()(),i["\u0275eld"](5,0,null,null,9,"div",[["class","copy-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,2,"span",[["class","fa fa-2x fa-copy"],["data-placement","top"],["data-toggle","tooltip"],["ngxClipboard",""],["title","Copy to clipboard"]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,8).onClick(n.target)&&o),o},null,null)),i["\u0275did"](8,212992,null,0,L,[N],{targetElm:[0,"targetElm"],cbContent:[1,"cbContent"]},null),i["\u0275did"](9,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,2,"pre",[],null,null,null,null,null)),(e()(),i["\u0275eld"](12,0,null,null,1,"code",[],null,null,null,null,null)),(e()(),i["\u0275ted"](13,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,8,0,"",t.component.command),e(t,9,0,"Copy to clipboard")},function(e,t){var n=t.component;e(t,7,0,i["\u0275nov"](t,9).placement),e(t,13,0,n.command)})}function z(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,22,"div",[["class","privilege-checker-wrapper"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"uhk-message",[["header","Cannot talk to your UHK"],["subtitle","Your UHK has been detected, but its permissions are not set up yet, so Agent can't talk to it."]],null,null,null,x,C)),i["\u0275did"](3,49152,null,0,T,[],{header:[0,"header"],subtitle:[1,"subtitle"]},null),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](5,0,null,null,1,"button",[["class","btn btn-default btn-lg btn-primary"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.setUpPermissions()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,[" Set up permissions\n "])),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](8,0,null,null,13,"div",[["class","mt-10"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,H)),i["\u0275did"](11,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](13,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,W)),i["\u0275did"](16,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,q)),i["\u0275did"](19,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,"Cannot talk to your UHK","Your UHK has been detected, but its permissions are not set up yet, so Agent can't talk to it."),e(t,11,0,n.state.showWhatWillThisDo),e(t,16,0,n.state.permissionSetupFailed),e(t,19,0,n.state.showWhatWillThisDoContent)},null)}var $=i["\u0275ccf"]("privilege-checker",K,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"privilege-checker",[],null,null,null,z,B)),i["\u0275did"](1,245760,null,0,K,[s.m,i.ChangeDetectorRef],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),G=function(){},Y=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Q(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,1,"uhk-message",[["header","Loading keyboard configuration..."],["subtitle","Hang tight!"]],null,null,null,x,C)),i["\u0275did"](2,49152,null,0,T,[],{header:[0,"header"],subtitle:[1,"subtitle"],rotateLogo:[2,"rotateLogo"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,2,0,"Loading keyboard configuration...","Hang tight!",!0)},null)}var J=i["\u0275ccf"]("loading-device",G,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"loading-device",[],null,null,null,Q,Y)),i["\u0275did"](1,49152,null,0,G,[],null,null)],null,null)},{},{},[]),Z=function(){function e(){this.logs=[]}return e.prototype.ngOnChanges=function(e){var t=this;e.logs&&this.divElement&&this.divElement.nativeElement&&setTimeout(function(){t.divElement.nativeElement.scrollTop=t.divElement.nativeElement.scrollHeight})},e.prototype.getClipboardContent=function(){return this.logs.reduce(function(e,t){return e+t.message+"\n"},"")},e}(),X=i["\u0275crt"]({encapsulation:0,styles:[["[_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;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;width:100%;height:100%}.x-term-container[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;position:relative}.x-term-wrapper[_ngcontent-%COMP%]{background-color:#000;overflow:auto;position:absolute;top:0;left:0;width:100%;height:100%}.copy-container-wrapper[_ngcontent-%COMP%]{position:absolute;top:2px;right:14px}.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:'$ '}"]],data:{}});function ee(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,3,"li",[],null,null,null,null,null)),i["\u0275did"](1,278528,null,0,d.i,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{ngClass:[0,"ngClass"]},null),(e()(),i["\u0275eld"](2,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](3,null,["",""]))],function(e,t){e(t,1,0,t.context.$implicit.cssClass)},function(e,t){e(t,3,0,t.context.$implicit.message)})}function te(e){return i["\u0275vid"](2,[i["\u0275qud"](402653184,1,{divElement:0}),(e()(),i["\u0275eld"](1,0,null,null,20,"div",[["class","x-term-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,[[1,0],["scrollMe",1]],null,7,"div",[["class","x-term-wrapper"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,4,"ul",[["class","list-unstyled"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,ee)),i["\u0275did"](8,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,8,"div",[["class","copy-container-wrapper"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,5,"div",[["class","copy-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](16,0,null,null,2,"span",[["class","fa fa-2x fa-copy"],["data-placement","top"],["data-toggle","tooltip"],["ngxClipboard",""],["title","Copy to clipboard"]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,17).onClick(n.target)&&o),o},null,null)),i["\u0275did"](17,212992,null,0,L,[N],{targetElm:[0,"targetElm"],cbContent:[1,"cbContent"]},null),i["\u0275did"](18,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,8,0,n.logs),e(t,17,0,"",n.getClipboardContent()),e(t,18,0,"Copy to clipboard")},function(e,t){e(t,16,0,i["\u0275nov"](t,18).placement)})}var ne=function(){function e(e){this.store=e}return e.prototype.ngOnInit=function(){this.flashFirmwareButtonDisbabled$=this.store.select(u.e),this.xtermLog$=this.store.select(u.v)},e.prototype.onRecoveryDevice=function(){this.store.dispatch(new V.f)},e}(),oe=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}[_nghost-%COMP%] p[_ngcontent-%COMP%]{margin:1.5rem 0}"]],data:{}});function ie(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,35,"div",[["class","full-height"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,32,"div",[["class","flex-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,19,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](6,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,0,"i",[["class","fa fa-wrench"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Fix device"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n Your device seems to be broken. No worries, Agent can fix it.\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](17,0,null,null,5,"p",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](19,0,null,null,2,"button",[["class","btn btn-primary"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.onRecoveryDevice()&&o),o},null,null)),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["Fix device\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](25,0,null,null,5,"div",[["class","flex-grow"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](27,0,null,null,2,"xterm",[],null,null,null,te,X)),i["\u0275did"](28,573440,null,0,Z,[],{logs:[0,"logs"]},null),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](32,0,null,null,1,"div",[["class","flex-footer"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,28,0,i["\u0275unv"](t,28,0,i["\u0275nov"](t,29).transform(n.xtermLog$)))},function(e,t){var n=t.component;e(t,19,0,i["\u0275unv"](t,19,0,i["\u0275nov"](t,20).transform(n.flashFirmwareButtonDisbabled$)))})}var re=i["\u0275ccf"]("device-recovery-mode",ne,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"device-recovery-mode",[["class","container-fluid"]],null,null,null,ie,oe)),i["\u0275did"](1,114688,null,0,ne,[s.m],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),le=n("bfOx"),se=function(){function e(){}return e.prototype.onActivate=function(e,t){t.scrollIntoView()},e}(),ae=i["\u0275crt"]({encapsulation:0,styles:["[_nghost-%COMP%]{height:100%; width:100%}"],data:{}});function ue(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,4,"div",[["class","split split-horizontal main-page-content"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,16777216,[["outlet",1]],null,1,"router-outlet",[],null,[[null,"activate"]],function(e,t,n){var o=!0;return"activate"===t&&(o=!1!==e.component.onActivate(n,i["\u0275nov"](e,2))&&o),o},null,null)),i["\u0275did"](3,212992,null,0,le.q,[le.b,i.ViewContainerRef,i.ComponentFactoryResolver,[8,null],i.ChangeDetectorRef],null,{activateEvents:"activate"}),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,3,0)},null)}var ce=i["\u0275ccf"]("main-page",se,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"main-page",[],null,null,null,ue,ae)),i["\u0275did"](1,49152,null,0,se,[],null,null)],null,null)},{},{},[]),de=function(){function e(){this.label="Select file",this.fileChanged=new i.EventEmitter}return e.prototype.changeFile=function(e){var t=e.srcElement.files;if(0!==t.length){var n=new FileReader;n.onloadend=(function(){var t=new Uint8Array(n.result);(e.target||e.srcElement||e.currentTarget).value=null,this.fileChanged.emit({filename:e.srcElement.value,data:Array.from(t)})}).bind(this),n.readAsArrayBuffer(t[0])}},e}(),pe=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function fe(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,3,"label",[["class","btn btn-primary btn-file"]],[[2,"disabled",null]],null,null,null,null)),(e()(),i["\u0275ted"](1,null,["\n ","\n "])),(e()(),i["\u0275eld"](2,0,[["inputControl",1]],null,0,"input",[["type","file"]],[[8,"accept",0],[8,"disabled",0]],[[null,"change"]],function(e,t,n){var o=!0;return"change"===t&&(o=!1!==e.component.changeFile(n)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.disabled),e(t,1,0,n.label),e(t,2,0,n.accept,n.disabled)})}var he=function(){function e(){}return e.prototype.getAllStyles=function(e){return window.getComputedStyle(e)},e.prototype.getStyle=function(e,t){return this.getAllStyles(e)[t]},e.prototype.isStaticPositioned=function(e){return"static"===(this.getStyle(e,"position")||"static")},e.prototype.offsetParent=function(e){for(var t=e.offsetParent||document.documentElement;t&&t!==document.documentElement&&this.isStaticPositioned(t);)t=t.offsetParent;return t||document.documentElement},e.prototype.position=function(e,t){var n;void 0===t&&(t=!0);var o={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(e,"position"))n=e.getBoundingClientRect();else{var i=this.offsetParent(e);n=this.offset(e,!1),i!==document.documentElement&&(o=this.offset(i,!1)),o.top+=i.clientTop,o.left+=i.clientLeft}return n.top-=o.top,n.bottom-=o.top,n.left-=o.left,n.right-=o.left,t&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n},e.prototype.offset=function(e,t){void 0===t&&(t=!0);var n=e.getBoundingClientRect(),o=window.pageYOffset-document.documentElement.clientTop,i=window.pageXOffset-document.documentElement.clientLeft,r={height:n.height||e.offsetHeight,width:n.width||e.offsetWidth,top:n.top+o,bottom:n.bottom+o,left:n.left+i,right:n.right+i};return t&&(r.height=Math.round(r.height),r.width=Math.round(r.width),r.top=Math.round(r.top),r.bottom=Math.round(r.bottom),r.left=Math.round(r.left),r.right=Math.round(r.right)),r},e.prototype.positionElements=function(e,t,n,o){var i=o?this.offset(e,!1):this.position(e,!1),r=this.getAllStyles(t),l=t.getBoundingClientRect(),s=n.split("-")[0]||"top",a=n.split("-")[1]||"center",u={height:l.height||t.offsetHeight,width:l.width||t.offsetWidth,top:0,bottom:l.height||t.offsetHeight,left:0,right:l.width||t.offsetWidth};switch(s){case"top":u.top=i.top-(t.offsetHeight+parseFloat(r.marginBottom));break;case"bottom":u.top=i.top+i.height;break;case"left":u.left=i.left-(t.offsetWidth+parseFloat(r.marginRight));break;case"right":u.left=i.left+i.width}switch(a){case"top":u.top=i.top;break;case"bottom":u.top=i.top+i.height-t.offsetHeight;break;case"left":u.left=i.left;break;case"right":u.left=i.left+i.width-t.offsetWidth;break;case"center":"top"===s||"bottom"===s?u.left=i.left+i.width/2-t.offsetWidth/2:u.top=i.top+i.height/2-t.offsetHeight/2}return u.top=Math.round(u.top),u.bottom=Math.round(u.bottom),u.left=Math.round(u.left),u.right=Math.round(u.right),u},e}();new he;var ye=function(){function e(e,t,n,o,r,l,s){this.viewContainerRef=e,this.elm=t,this.defaultOptions=n,this.cfr=o,this.position=r,this.renderer=l,this.document=s,this.isDisabled=!1,this.isOpen=!1,this.isOpenChange=new i.EventEmitter(!0),this.confirm=new i.EventEmitter,this.cancel=new i.EventEmitter,this.popover=null,this.eventListeners=[]}return e.prototype.ngOnInit=function(){this.isOpenChange.emit(!1)},e.prototype.ngOnChanges=function(e){e.isOpen&&(!0===e.isOpen.currentValue?this.showPopover():this.hidePopover())},e.prototype.ngOnDestroy=function(){this.hidePopover()},e.prototype.onConfirm=function(e){this.confirm.emit(e),this.hidePopover()},e.prototype.onCancel=function(e){this.cancel.emit(e),this.hidePopover()},e.prototype.togglePopover=function(){this.popover?this.hidePopover():this.showPopover()},e.prototype.onDocumentClick=function(e){!this.popover||this.elm.nativeElement.contains(e.target)||this.popover.location.nativeElement.contains(e.target)||this.hidePopover()},e.prototype.showPopover=function(){var e=this;if(!this.popover&&!this.isDisabled){this.eventListeners=[this.renderer.listen("document","click",function(t){return e.onDocumentClick(t)}),this.renderer.listen("document","touchend",function(t){return e.onDocumentClick(t)}),this.renderer.listen("window","resize",function(){return e.positionPopover()})];var t=new y;Object.assign(t,this.defaultOptions,{title:this.title,message:this.message,onConfirm:function(t){e.onConfirm(t)},onCancel:function(t){e.onCancel(t)},onAfterViewInit:function(){e.positionPopover()}}),["confirmText","cancelText","placement","confirmButtonType","cancelButtonType","focusButton","hideConfirmButton","hideCancelButton","popoverClass","appendToBody","customTemplate"].forEach(function(n){"undefined"!=typeof e[n]&&(t[n]=e[n])});var n=this.cfr.resolveComponentFactory(m),o=i.ReflectiveInjector.resolve([{provide:y,useValue:t}]),r=i.ReflectiveInjector.fromResolvedProviders(o,this.viewContainerRef.parentInjector);this.popover=this.viewContainerRef.createComponent(n,this.viewContainerRef.length,r),t.appendToBody&&this.document.body.appendChild(this.popover.location.nativeElement),this.isOpenChange.emit(!0)}},e.prototype.positionPopover=function(){if(this.popover){var e=this.popover.location.nativeElement.children[0],t=this.position.positionElements(this.elm.nativeElement,e,this.placement||this.defaultOptions.placement,this.appendToBody||this.defaultOptions.appendToBody);this.renderer.setStyle(e,"top",t.top+"px"),this.renderer.setStyle(e,"left",t.left+"px")}},e.prototype.hidePopover=function(){this.popover&&(this.popover.destroy(),this.popover=null,this.isOpenChange.emit(!1),this.eventListeners.forEach(function(e){return e()}),this.eventListeners=[])},e}(),me=n("at4H"),ge=function(){function e(e){this.store=e}return e.prototype.resetUserConfiguration=function(){this.store.dispatch(new V.h)},e.prototype.saveConfigurationInJSONFormat=function(){this.store.dispatch(new me.j)},e.prototype.saveConfigurationInBINFormat=function(){this.store.dispatch(new me.i)},e.prototype.exportUserConfiguration=function(e){e.shiftKey?this.saveConfigurationInBINFormat():this.saveConfigurationInJSONFormat()},e.prototype.changeFile=function(e){this.store.dispatch(new me.g(e))},e}(),ve=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}[_nghost-%COMP%] p[_ngcontent-%COMP%]{margin:1.5rem 0}"]],data:{}});function be(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Device configuration"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n\n"])),(e()(),i["\u0275eld"](8,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n The device configuration contains all the keymaps, macros, and settings that are stored on the device.\n"])),(e()(),i["\u0275ted"](-1,null,["\n\n"])),(e()(),i["\u0275eld"](11,0,null,null,21,"ul",[["class","list-unstyled btn-list"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](13,0,null,null,4,"li",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](15,0,null,null,1,"button",[["class","btn btn-primary"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.exportUserConfiguration(n)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["Export device configuration\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](19,0,null,null,5,"li",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](21,0,null,null,2,"file-upload",[["label","Import device configuration"]],null,[[null,"fileChanged"]],function(e,t,n){var o=!0;return"fileChanged"===t&&(o=!1!==e.component.changeFile(n)&&o),o},fe,pe)),i["\u0275did"](22,49152,null,0,de,[],{label:[0,"label"]},{fileChanged:"fileChanged"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](26,0,null,null,5,"li",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](28,16777216,null,null,2,"button",[["cancelText","No"],["class","btn btn-danger"],["confirmText","Yes"],["mwlConfirmationPopover",""],["placement","bottom"],["title","Are you sure?"]],null,[[null,"confirm"],[null,"click"]],function(e,t,n){var o=!0,r=e.component;return"click"===t&&(o=!1!==i["\u0275nov"](e,29).togglePopover()&&o),"confirm"===t&&(o=!1!==r.resetUserConfiguration()&&o),o},null,null)),i["\u0275did"](29,737280,null,0,ye,[i.ViewContainerRef,i.ElementRef,h,i.ComponentFactoryResolver,he,i.Renderer2,P.b],{title:[0,"title"],confirmText:[1,"confirmText"],cancelText:[2,"cancelText"],placement:[3,"placement"]},{confirm:"confirm"}),(e()(),i["\u0275ted"](-1,null,["Reset device configuration\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,22,0,"Import device configuration"),e(t,29,0,"Are you sure?","Yes","No","bottom")},null)}var ke=i["\u0275ccf"]("device-settings",ge,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"device-settings",[["class","container-fluid"]],null,null,null,be,ve)),i["\u0275did"](1,49152,null,0,ge,[s.m],null,null)],null,null)},{},{},[]),_e=function(){function e(){}return e.prototype.ngOnInit=function(){},e}(),we=i["\u0275crt"]({encapsulation:0,styles:[["[_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}"]],data:{}});function Ae(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"span",[["aria-hidden","true"],["class","glyphicon glyphicon-option-vertical"]],null,null,null,null,null))],null,null)}function Te(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-square"]],null,null,null,null,null))],null,null)}function Ce(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-hand-pointer-o"]],null,null,null,null,null))],null,null)}function xe(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-hand-rock-o"]],null,null,null,null,null))],null,null)}function Oe(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-hand-paper-o"]],null,null,null,null,null))],null,null)}function Se(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null))],null,null)}function Me(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-clock-o"]],null,null,null,null,null))],null,null)}function Ee(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-font"]],null,null,null,null,null))],null,null)}function Pe(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"i",[["class","glyphicon glyphicon-trash action--trash"]],null,null,null,null,null))],null,null)}function Ie(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"i",[["class","glyphicon glyphicon-pencil action--edit"]],null,null,null,null,null))],null,null)}function Re(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-question-circle"]],null,null,null,null,null))],null,null)}function De(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,35,"div",[],null,null,null,null,null)),i["\u0275did"](1,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ae)),i["\u0275did"](4,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Te)),i["\u0275did"](7,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ce)),i["\u0275did"](10,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,xe)),i["\u0275did"](13,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Oe)),i["\u0275did"](16,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Se)),i["\u0275did"](19,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Me)),i["\u0275did"](22,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ee)),i["\u0275did"](25,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Pe)),i["\u0275did"](28,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ie)),i["\u0275did"](31,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Re)),i["\u0275did"](34,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,1,0,t.component.name),e(t,4,0,"option-vertical"),e(t,7,0,"square"),e(t,10,0,"hand-pointer"),e(t,13,0,"hand-rock"),e(t,16,0,"hand-paper"),e(t,19,0,"mouse-pointer"),e(t,22,0,"clock"),e(t,25,0,"font"),e(t,28,0,"trash"),e(t,31,0,"pencil"),e(t,34,0,"question-circle")},null)}var Ne=n("xA9i"),je=n("7DMc"),Le=i["\u0275crt"]({encapsulation:0,styles:["[_nghost-%COMP%] {\n display: block;\n margin-top: 1rem;\n margin-bottom: 1rem;\n }"],data:{}});function Ue(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"div",[],[[1,"disabled",0]],null,null,null,null))],null,function(e,t){e(t,0,0,!!t.component.disabled||void 0)})}var Ve=n("rCTf"),Fe=(n("aV5h"),function(){function e(){this.onChange=new i.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 t=this;this.changeObserver$?this.changeObserver$.next(e):Ve.Observable.create(function(e){t.changeObserver$=e}).debounceTime(this.changeDebounceTime).distinctUntilChanged().subscribe(this.propagateChange)},e}()),Ke=i["\u0275crt"]({encapsulation:0,styles:[["[_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}"]],data:{}});function Be(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["name","question-circle"]],[[1,"data-placement",0]],null,null,De,we)),i["\u0275did"](1,114688,null,0,_e,[],{name:[0,"name"]},null),i["\u0275did"](2,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"],html:[1,"html"]},null)],function(e,t){var n=t.component;e(t,1,0,"question-circle"),e(t,2,0,n.tooltip,"true")},function(e,t){e(t,0,0,i["\u0275nov"](t,2).placement)})}function He(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,7,"label",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](3,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Be)),i["\u0275did"](6,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,6,0,t.component.tooltip)},function(e,t){e(t,3,0,t.component.label)})}function We(e){return i["\u0275vid"](0,[i["\u0275qud"](402653184,1,{slider:0}),(e()(),i["\u0275and"](16777216,null,null,1,null,He)),i["\u0275did"](2,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](4,0,null,null,17,"div",[["class","slider-wrapper"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,8,"div",[["class","slider-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,5,"nouislider",[],[[2,"ng2-nouislider",null],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var o=!0,i=e.component;return"ngModelChange"===t&&(o=!1!==(i.value=n)&&o),"ngModelChange"===t&&(o=!1!==i.onSliderChange(n)&&o),o},Ue,Le)),i["\u0275did"](9,638976,[[1,4]],0,Ne.NouisliderComponent,[i.ElementRef,i.Renderer2],{min:[0,"min"],max:[1,"max"],step:[2,"step"],ngModel:[3,"ngModel"],keyboard:[4,"keyboard"],tooltips:[5,"tooltips"]},null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Ne.NouisliderComponent]),i["\u0275did"](11,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](13,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](16,0,null,null,4,"div",[["class","slider-value"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](18,0,null,null,1,"div",[["class","value-indicator"]],null,null,null,null,null)),(e()(),i["\u0275ted"](19,null,[""," ",""])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.label),e(t,9,0,n.min,n.max,n.step,n.value,!0,!0),e(t,11,0,n.value)},function(e,t){var n=t.component;e(t,8,0,!0,i["\u0275nov"](t,13).ngClassUntouched,i["\u0275nov"](t,13).ngClassTouched,i["\u0275nov"](t,13).ngClassPristine,i["\u0275nov"](t,13).ngClassDirty,i["\u0275nov"](t,13).ngClassValid,i["\u0275nov"](t,13).ngClassInvalid,i["\u0275nov"](t,13).ngClassPending),e(t,19,0,n.value,n.valueUnit)})}var qe=n("gI3A"),ze=function(){function e(){this._defaultConfig=(new qe.UserConfiguration).fromJsonObject(n("Ftqy"))}return e.prototype.getDefault=function(){return this._defaultConfig},e}(),$e=25,Ge=function(){function e(e,t){this.store=e,this.defaultUserConfigurationService=t,this.moveProps=[{prop:"mouseMoveInitialSpeed",title:"Initial speed",tooltip:"When mouse movement begins, this is the starting speed.",valueUnit:"px/s",value:0},{prop:"mouseMoveBaseSpeed",title:"Base speed",tooltip:"This speed is reached after the initial moving speed sufficiently ramps up.",valueUnit:"px/s",value:0},{prop:"mouseMoveAcceleration",title:"Acceleration",tooltip:"The rate of acceleration from the initial movement speed to the base speed.",valueUnit:"px/s\xb2",value:0},{prop:"mouseMoveDeceleratedSpeed",title:"Decelerated speed",tooltip:"This speed is used while moving with the <i>decelerate key</i> pressed.",valueUnit:"px/s",value:0},{prop:"mouseMoveAcceleratedSpeed",title:"Accelerated speed",tooltip:"This speed is used while moving with the <i>accelerate key</i> pressed.",valueUnit:"px/s",value:0}],this.scrollProps=[{prop:"mouseScrollInitialSpeed",title:"Initial speed",tooltip:"When mouse scrolling begins, this is the starting speed.",valueUnit:"pulse/s",value:0},{prop:"mouseScrollBaseSpeed",title:"Base speed",tooltip:"This speed is reached after the initial scrolling speed sufficiently ramps up.",valueUnit:"pulse/s",value:0},{prop:"mouseScrollAcceleration",title:"Acceleration",tooltip:"The rate of acceleration from the initial scrolling speed to the base speed.",valueUnit:"pulse/s\xb2",value:0},{prop:"mouseScrollDeceleratedSpeed",title:"Decelerated speed",tooltip:"This speed is used while scrolling with the <i>decelerate key</i> pressed.",valueUnit:"pulse/s",value:0},{prop:"mouseScrollAcceleratedSpeed",title:"Accelerated speed",tooltip:"This speed is used while scrolling with the <i>accelerate key</i> pressed.",valueUnit:"pulse/s",value:0}],this.sliderPips={mode:"positions",values:[0,50,100],density:6,stepped:!0},this.moveSettings={min:$e,max:6375,step:$e},this.scrollSettings={min:1,max:255,step:1}}return e.prototype.ngOnInit=function(){var e=this;this.userConfig$=this.store.select(u.r),this.userConfigSubscription=this.userConfig$.subscribe(function(t){e.moveProps.forEach(function(e){e.value=t[e.prop]*$e||0}),e.scrollProps.forEach(function(e){e.value=t[e.prop]||0})})},e.prototype.ngOnDestroy=function(){this.userConfigSubscription.unsubscribe()},e.prototype.onSetPropertyValue=function(e,t){this.store.dispatch(new me.l({propertyName:e,value:-1!==e.indexOf("mouseMove")?t/$e:t}))},e.prototype.resetToDefault=function(){this.store.dispatch(new V.g)},e}(),Ye=i["\u0275crt"]({encapsulation:0,styles:[["[_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}"]],data:{}});function Qe(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,11,"div",[["class","row mouse-speed-setting"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,5,"slider-wrapper",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var o=!0,i=e.component;return"ngModelChange"===t&&(o=!1!==(e.context.$implicit.value=n)&&o),"ngModelChange"===t&&(o=!1!==i.onSetPropertyValue(e.context.$implicit.prop,n)&&o),o},We,Ke)),i["\u0275did"](5,4374528,null,0,Fe,[],{label:[0,"label"],tooltip:[1,"tooltip"],min:[2,"min"],max:[3,"max"],step:[4,"step"],pips:[5,"pips"],valueUnit:[6,"valueUnit"]},null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Fe]),i["\u0275did"](7,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](9,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,5,0,t.context.$implicit.title,t.context.$implicit.tooltip,n.moveSettings.min,n.moveSettings.max,n.moveSettings.step,n.sliderPips,t.context.$implicit.valueUnit),e(t,7,0,t.context.$implicit.value)},function(e,t){e(t,4,0,i["\u0275nov"](t,9).ngClassUntouched,i["\u0275nov"](t,9).ngClassTouched,i["\u0275nov"](t,9).ngClassPristine,i["\u0275nov"](t,9).ngClassDirty,i["\u0275nov"](t,9).ngClassValid,i["\u0275nov"](t,9).ngClassInvalid,i["\u0275nov"](t,9).ngClassPending)})}function Je(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,11,"div",[["class","row mouse-speed-setting"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,5,"slider-wrapper",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var o=!0,i=e.component;return"ngModelChange"===t&&(o=!1!==(e.context.$implicit.value=n)&&o),"ngModelChange"===t&&(o=!1!==i.onSetPropertyValue(e.context.$implicit.prop,n)&&o),o},We,Ke)),i["\u0275did"](5,4374528,null,0,Fe,[],{label:[0,"label"],tooltip:[1,"tooltip"],min:[2,"min"],max:[3,"max"],step:[4,"step"],pips:[5,"pips"],valueUnit:[6,"valueUnit"]},null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Fe]),i["\u0275did"](7,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](9,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,5,0,t.context.$implicit.title,t.context.$implicit.tooltip,n.scrollSettings.min,n.scrollSettings.max,n.scrollSettings.step,n.sliderPips,t.context.$implicit.valueUnit),e(t,7,0,t.context.$implicit.value)},function(e,t){e(t,4,0,i["\u0275nov"](t,9).ngClassUntouched,i["\u0275nov"](t,9).ngClassTouched,i["\u0275nov"](t,9).ngClassPristine,i["\u0275nov"](t,9).ngClassDirty,i["\u0275nov"](t,9).ngClassValid,i["\u0275nov"](t,9).ngClassInvalid,i["\u0275nov"](t,9).ngClassPending)})}function Ze(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Mouse speed"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](8,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Mouse pointer speed"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,Qe)),i["\u0275did"](12,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](14,0,null,null,1,"h3",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Mouse scroll speed"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,Je)),i["\u0275did"](18,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](20,16777216,null,null,2,"button",[["cancelText","No"],["class","btn btn-danger mouse-speed-reset-button"],["confirmText","Yes"],["mwlConfirmationPopover",""],["placement","top"],["title","Are you sure?"]],null,[[null,"confirm"],[null,"click"]],function(e,t,n){var o=!0,r=e.component;return"click"===t&&(o=!1!==i["\u0275nov"](e,21).togglePopover()&&o),"confirm"===t&&(o=!1!==r.resetToDefault()&&o),o},null,null)),i["\u0275did"](21,737280,null,0,ye,[i.ViewContainerRef,i.ElementRef,h,i.ComponentFactoryResolver,he,i.Renderer2,P.b],{title:[0,"title"],confirmText:[1,"confirmText"],cancelText:[2,"cancelText"],placement:[3,"placement"]},{confirm:"confirm"}),(e()(),i["\u0275ted"](-1,null,["Reset speeds to default\n"]))],function(e,t){var n=t.component;e(t,12,0,n.moveProps),e(t,18,0,n.scrollProps),e(t,21,0,"Are you sure?","Yes","No","top")},null)}var Xe=i["\u0275ccf"]("device-mouse-speed",Ge,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"device-mouse-speed",[["class","container-fluid"]],null,null,null,Ze,Ye)),i["\u0275did"](1,245760,null,0,Ge,[s.m,ze],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),et=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(u.r),this.userConfigSubscription=this.userConfig$.subscribe(function(t){e.iconsAndLayerTextsBrightness=t.iconsAndLayerTextsBrightness,e.alphanumericSegmentsBrightness=t.alphanumericSegmentsBrightness,e.keyBacklightBrightness=t.keyBacklightBrightness})},e.prototype.ngOnDestroy=function(){this.userConfigSubscription.unsubscribe()},e.prototype.onSetPropertyValue=function(e,t){this.store.dispatch(new me.l({propertyName:e,value:t}))},e}(),tt=i["\u0275crt"]({encapsulation:0,styles:[["[_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}"]],data:{}});function nt(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["LED brightness"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](8,0,null,null,11,"div",[["class","row led-setting"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,5,"slider-wrapper",[["label","LED display icon and layer texts brightness"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var o=!0,i=e.component;return"ngModelChange"===t&&(o=!1!==(i.iconsAndLayerTextsBrightness=n)&&o),"ngModelChange"===t&&(o=!1!==i.onSetPropertyValue("iconsAndLayerTextsBrightness",n)&&o),o},We,Ke)),i["\u0275did"](13,4374528,null,0,Fe,[],{label:[0,"label"],min:[1,"min"],max:[2,"max"],step:[3,"step"],pips:[4,"pips"]},null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Fe]),i["\u0275did"](15,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](17,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](21,0,null,null,11,"div",[["class","row led-setting"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](23,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](25,0,null,null,5,"slider-wrapper",[["label","LED display alphanumeric segments brightness"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var o=!0,i=e.component;return"ngModelChange"===t&&(o=!1!==(i.alphanumericSegmentsBrightness=n)&&o),"ngModelChange"===t&&(o=!1!==i.onSetPropertyValue("alphanumericSegmentsBrightness",n)&&o),o},We,Ke)),i["\u0275did"](26,4374528,null,0,Fe,[],{label:[0,"label"],min:[1,"min"],max:[2,"max"],step:[3,"step"],pips:[4,"pips"]},null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Fe]),i["\u0275did"](28,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](30,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](34,0,null,null,11,"div",[["class","row led-setting"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](36,0,null,null,8,"div",[["class","col-xs-12 col-md-6"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](38,0,null,null,5,"slider-wrapper",[["label","Key backlight brightness"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var o=!0,i=e.component;return"ngModelChange"===t&&(o=!1!==(i.keyBacklightBrightness=n)&&o),"ngModelChange"===t&&(o=!1!==i.onSetPropertyValue("keyBacklightBrightness",n)&&o),o},We,Ke)),i["\u0275did"](39,4374528,null,0,Fe,[],{label:[0,"label"],min:[1,"min"],max:[2,"max"],step:[3,"step"],pips:[4,"pips"]},null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Fe]),i["\u0275did"](41,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](43,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,13,0,"LED display icon and layer texts brightness",0,255,1,n.sliderPips),e(t,15,0,n.iconsAndLayerTextsBrightness),e(t,26,0,"LED display alphanumeric segments brightness",0,255,1,n.sliderPips),e(t,28,0,n.alphanumericSegmentsBrightness),e(t,39,0,"Key backlight brightness",0,255,1,n.sliderPips),e(t,41,0,n.keyBacklightBrightness)},function(e,t){e(t,12,0,i["\u0275nov"](t,17).ngClassUntouched,i["\u0275nov"](t,17).ngClassTouched,i["\u0275nov"](t,17).ngClassPristine,i["\u0275nov"](t,17).ngClassDirty,i["\u0275nov"](t,17).ngClassValid,i["\u0275nov"](t,17).ngClassInvalid,i["\u0275nov"](t,17).ngClassPending),e(t,25,0,i["\u0275nov"](t,30).ngClassUntouched,i["\u0275nov"](t,30).ngClassTouched,i["\u0275nov"](t,30).ngClassPristine,i["\u0275nov"](t,30).ngClassDirty,i["\u0275nov"](t,30).ngClassValid,i["\u0275nov"](t,30).ngClassInvalid,i["\u0275nov"](t,30).ngClassPending),e(t,38,0,i["\u0275nov"](t,43).ngClassUntouched,i["\u0275nov"](t,43).ngClassTouched,i["\u0275nov"](t,43).ngClassPristine,i["\u0275nov"](t,43).ngClassDirty,i["\u0275nov"](t,43).ngClassValid,i["\u0275nov"](t,43).ngClassInvalid,i["\u0275nov"](t,43).ngClassPending)})}var ot=i["\u0275ccf"]("device-led-brightness",et,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"device-led-brightness",[["class","container-fluid"]],null,null,null,nt,tt)),i["\u0275did"](1,245760,null,0,et,[s.m],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),it=function(){function e(e){var t=this;this.store=e,this.flashFirmwareButtonDisbabled$=e.select(u.e),this.xtermLog$=e.select(u.v),this.getAgentVersionInfo$=e.select(u.f),this.hardwareModulesSubscription=e.select(u.j).subscribe(function(e){t.hardwareModules=e})}return e.prototype.ngOnDestroy=function(){this.hardwareModulesSubscription.unsubscribe()},e.prototype.onUpdateFirmware=function(){this.store.dispatch(new V.r)},e.prototype.changeFile=function(e){this.store.dispatch(new V.v(e.data))},e.prototype.openFirmwareGitHubIssuePage=function(e){e.preventDefault(),this.store.dispatch(new F.h(qe.Constants.FIRMWARE_GITHUB_ISSUE_URL))},e}(),rt=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100vh;min-height:100%;width:100%}.link-github[_ngcontent-%COMP%]{cursor:pointer}"]],data:{}});function lt(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,54,"div",[["class","full-height"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,51,"div",[["class","flex-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,38,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](6,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Firmware"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](14,0,null,null,3,"p",[],null,null,null,null,null)),(e()(),i["\u0275ted"](15,null,["\n Firmware "," is running on the left keyboard half."])),(e()(),i["\u0275eld"](16,0,null,null,0,"br",[],null,null,null,null,null)),(e()(),i["\u0275ted"](17,null,["\n Firmware "," is running on the right keyboard half.\n "])),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](19,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Please note that firmware update doesn't work on Windows 7, Windows Vista, and Windows XP. Use Windows 10, Windows 8, Linux, or OSX instead."])),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](22,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["If the update process fails, disconnect every USB device from your computer including USB hubs, KVM switches, and every USB device. Then connect only your UHK and retry."])),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](25,0,null,null,4,"p",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["If you tried the above and the update still keeps failing, please "])),(e()(),i["\u0275eld"](27,0,null,null,1,"a",[["class","link-github"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.openFirmwareGitHubIssuePage(n)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["create a GitHub issue"])),(e()(),i["\u0275ted"](-1,null,[", and attach the update log."])),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](31,0,null,null,10,"p",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](33,0,null,null,3,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.onUpdateFirmware()&&o),o},null,null)),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](35,null,["\n Flash firmware "," (bundled with Agent)\n "])),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](38,0,null,null,2,"file-upload",[["accept",".tar.bz2"],["label","Choose firmware file and flash it"]],null,[[null,"fileChanged"]],function(e,t,n){var o=!0;return"fileChanged"===t&&(o=!1!==e.component.changeFile(n)&&o),o},fe,pe)),i["\u0275did"](39,49152,null,0,de,[],{label:[0,"label"],disabled:[1,"disabled"],accept:[2,"accept"]},{fileChanged:"fileChanged"}),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](44,0,null,null,5,"div",[["class","flex-grow"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](46,0,null,null,2,"xterm",[],null,null,null,te,X)),i["\u0275did"](47,573440,null,0,Z,[],{logs:[0,"logs"]},null),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](51,0,null,null,1,"div",[["class","flex-footer"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,39,0,"Choose firmware file and flash it",i["\u0275unv"](t,39,1,i["\u0275nov"](t,40).transform(n.flashFirmwareButtonDisbabled$)),".tar.bz2"),e(t,47,0,i["\u0275unv"](t,47,0,i["\u0275nov"](t,48).transform(n.xtermLog$)))},function(e,t){var n=t.component;e(t,15,0,n.hardwareModules.leftModuleInfo.firmwareVersion),e(t,17,0,n.hardwareModules.rightModuleInfo.firmwareVersion),e(t,33,0,i["\u0275unv"](t,33,0,i["\u0275nov"](t,34).transform(n.flashFirmwareButtonDisbabled$))),e(t,35,0,i["\u0275unv"](t,35,0,i["\u0275nov"](t,36).transform(n.getAgentVersionInfo$)).firmwareVersion)})}var st=i["\u0275ccf"]("device-firmware",it,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"device-firmware",[["class","container-fluid"]],null,null,null,lt,rt)),i["\u0275did"](1,180224,null,0,it,[s.m],null,null)],null,null)},{},{},[]),at=function(){function e(e,t){this.store=e,this.cdRef=t}return e.prototype.ngOnDestroy=function(){this.stateSubscription&&this.stateSubscription.unsubscribe()},e.prototype.ngOnInit=function(){var e=this;this.stateSubscription=this.store.select(u.h).subscribe(function(t){e.state=t,e.cdRef.markForCheck()})},e.prototype.resetUserConfiguration=function(){this.store.dispatch(new V.h)},e.prototype.restoreUserConfiguration=function(){this.store.dispatch(new V.i)},e}(),ut=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{overflow-y:auto;display:block;height:100%;width:100%}[_nghost-%COMP%] p[_ngcontent-%COMP%]{margin:1.5rem 0}"]],data:{}});function ct(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.restoreUserConfiguration()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,[" Restore the last valid device configuration\n"]))],null,function(e,t){e(t,0,0,t.component.state.restoringUserConfiguration)})}function dt(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-danger"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.resetUserConfiguration()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["Reset device configuration\n"]))],null,function(e,t){e(t,0,0,t.component.state.restoringUserConfiguration)})}function pt(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-exclamation-circle"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Fix configuration"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n\n"])),(e()(),i["\u0275eld"](8,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n Your on-board device configuration is invalid.\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,ct)),i["\u0275did"](12,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,dt)),i["\u0275did"](15,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,12,0,n.state.hasBackupUserConfiguration),e(t,15,0,!n.state.hasBackupUserConfiguration)},null)}var ft=i["\u0275ccf"]("restore-configuration",at,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"restore-configuration",[["class","container-fluid"]],null,null,null,pt,ut)),i["\u0275did"](1,245760,null,0,at,[s.m,i.ChangeDetectorRef],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),ht=function(){function e(){this.close=new i.EventEmitter,this.undo=new i.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 t=e.notification.currentValue;t&&(this.text=t.message,this.undoable=!!t.extra)}},e.prototype.clickOnClose=function(){this.close.emit()},e.prototype.clickOnUndo=function(){this.undo.emit(this.notification.extra)},e}(),yt=i["\u0275crt"]({encapsulation:0,styles:[[".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}"]],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:{}}]}});function mt(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"a",[["class","undo-button"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.clickOnUndo()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["Undo"]))],null,null)}function gt(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,13,"div",[["class","pull-right"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,10,"div",[["class","alert alert-warning alert-dismissible"],["role","alert"]],[[24,"@slideInOut",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,4,"button",[["aria-label","Close"],["class","close"],["type","button"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.clickOnClose()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\xd7"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](9,null,["\n ","\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,mt)),i["\u0275did"](11,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,11,0,t.component.undoable)},function(e,t){var n=t.component;e(t,2,0,n.slideInOut),e(t,9,0,n.text)})}var vt=function(){function e(e){this.store=e,this.undoableNotification$=this.store.select(u.q)}return e.prototype.onUndoLastNotification=function(e){this.store.dispatch(new F.m(e))},e.prototype.onDismissLastNotification=function(){this.store.dispatch(new F.d)},e}(),bt=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function kt(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,3,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),i["\u0275ncd"](null,0),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](5,0,null,null,9,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,6,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,3,"undoable-notifier",[],null,[[null,"close"],[null,"undo"]],function(e,t,n){var o=!0,i=e.component;return"close"===t&&(o=!1!==i.onDismissLastNotification()&&o),"undo"===t&&(o=!1!==i.onUndoLastNotification(n)&&o),o},gt,yt)),i["\u0275did"](10,573440,null,0,ht,[],{notification:[0,"notification"]},{close:"close",undo:"undo"}),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n\n"]))],function(e,t){var n=t.component;e(t,10,0,i["\u0275unv"](t,10,0,i["\u0275nov"](t,11).transform(n.undoableNotification$)))},null)}var _t=function(){function e(e,t){this.elementRef=e,this.renderer=t}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}(),wt=n("WP8/"),At=n("Lt3n"),Tt='<span class="text-nowrap">Delete keymap</span>',Ct=function(){function e(e,t){this.store=e,this.renderer=t,this.downloadClick=new i.EventEmitter,this.trashTitle=Tt}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(wt.a.setDefault(this.keymap.abbreviation))},e.prototype.removeKeymap=function(){this.deletable&&this.store.dispatch(wt.a.removeKeymap(this.keymap.abbreviation))},e.prototype.duplicateKeymap=function(){this.store.dispatch(wt.a.duplicateKeymap(this.keymap))},e.prototype.editKeymapName=function(e){At.d(e)?this.store.dispatch(wt.a.editKeymapName(this.keymap.abbreviation,e)):this.setName()},e.prototype.editKeymapAbbr=function(e){var t=new RegExp(/^[a-zA-Z\d]+$/g);e.length<1||e.length>3||!t.test(e)?this.setAbbreviation():(e=e.toUpperCase(),this.store.dispatch(wt.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?Tt:'<span class="text-nowrap">The last keymap cannot be deleted.</span>'},e.prototype.onDownloadIconClick=function(){this.downloadClick.emit()},e.prototype.calculateHeaderTextWidth=function(e){var t=this.keymapName.nativeElement,n=t.parentElement.offsetWidth-530,o=At.b(window.getComputedStyle(t),e);this.renderer.setStyle(t,"width",Math.min(n,o)+"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}(),xt=i["\u0275crt"]({encapsulation:0,styles:[["[_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{-webkit-box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;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}"]],data:{}});function Ot(e){return i["\u0275vid"](2,[i["\u0275qud"](402653184,1,{keymapName:0}),i["\u0275qud"](402653184,2,{keymapAbbr:0}),(e()(),i["\u0275eld"](2,0,null,null,30,"uhk-header",[],null,null,null,kt,bt)),i["\u0275did"](3,49152,null,0,vt,[s.m],null,null),(e()(),i["\u0275ted"](-1,0,["\n "])),(e()(),i["\u0275eld"](5,0,null,0,26,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,23,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,[[1,0],["name",1]],null,1,"input",[["cancelable",""],["class","keymap__name pane-title__name"],["type","text"]],null,[[null,"change"],[null,"keyup.enter"],[null,"keyup"],[null,"focus"],[null,"keyup.escape"]],function(e,t,n){var o=!0,r=e.component;return"focus"===t&&(o=!1!==i["\u0275nov"](e,12).onFocus()&&o),"keyup.escape"===t&&(o=!1!==i["\u0275nov"](e,12).onEscape()&&o),"change"===t&&(o=!1!==r.editKeymapName(n.target.value)&&o),"keyup.enter"===t&&(o=!1!==i["\u0275nov"](e,11).blur()&&o),"keyup"===t&&(o=!1!==r.calculateHeaderTextWidth(n.target.value)&&o),o},null,null)),i["\u0275did"](12,16384,null,0,_t,[i.ElementRef,i.Renderer],null,null),(e()(),i["\u0275ted"](-1,null,[" keymap\n ("])),(e()(),i["\u0275eld"](14,0,[[2,0],["abbr",1]],null,1,"input",[["cancelable",""],["class","keymap__abbrev pane-title__abbrev"],["type","text"]],[[1,"maxLength",0]],[[null,"change"],[null,"keyup.enter"],[null,"focus"],[null,"keyup.escape"]],function(e,t,n){var o=!0,r=e.component;return"focus"===t&&(o=!1!==i["\u0275nov"](e,15).onFocus()&&o),"keyup.escape"===t&&(o=!1!==i["\u0275nov"](e,15).onEscape()&&o),"change"===t&&(o=!1!==r.editKeymapAbbr(n.target.value)&&o),"keyup.enter"===t&&(o=!1!==i["\u0275nov"](e,14).blur()&&o),o},null,null)),i["\u0275did"](15,16384,null,0,_t,[i.ElementRef,i.Renderer],null,null),(e()(),i["\u0275ted"](-1,null,[")\n "])),(e()(),i["\u0275eld"](17,0,null,null,3,"i",[["class","fa keymap__is-default"],["data-placement","bottom"],["data-toggle","tooltip"]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.setDefault()&&o),o},null,null)),i["\u0275did"](18,278528,null,0,d.i,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),i["\u0275pod"](19,{"fa-star-o":0,"fa-star":1}),i["\u0275did"](20,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](22,0,null,null,1,"i",[["class","glyphicon glyphicon-trash keymap__remove pull-right"],["data-placement","bottom"],["data-toggle","tooltip"],["html","true"]],[[2,"disabled",null],[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.removeKeymap()&&o),o},null,null)),i["\u0275did"](23,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"],html:[1,"html"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](25,0,null,null,1,"i",[["class","fa fa-files-o keymap__duplicate pull-right"],["data-placement","bottom"],["data-toggle","tooltip"],["title","Duplicate keymap"]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.duplicateKeymap()&&o),o},null,null)),i["\u0275did"](26,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](28,0,null,null,1,"i",[["class","fa fa-download keymap__download pull-right"],["data-placement","bottom"],["data-toggle","tooltip"],["title","Download keymap"]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.onDownloadIconClick()&&o),o},null,null)),i["\u0275did"](29,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"],html:[1,"html"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,0,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,18,0,"fa keymap__is-default",e(t,19,0,!n.keymap.isDefault,n.keymap.isDefault)),e(t,20,0,n.starTitle),e(t,23,0,n.trashTitle,"true"),e(t,26,0,"Duplicate keymap"),e(t,29,0,"Download keymap",!0)},function(e,t){var n=t.component;e(t,14,0,3),e(t,17,0,i["\u0275nov"](t,20).placement),e(t,22,0,!n.deletable,i["\u0275nov"](t,23).placement),e(t,25,0,i["\u0275nov"](t,26).placement),e(t,28,0,i["\u0275nov"](t,29).placement)})}var St=function(){function e(){this.select=new i.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}(),Mt=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:block}.disabled[_nghost-%COMP%] button[_ngcontent-%COMP%]{cursor:no-drop;background:rgba(204,204,204,.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}"]],data:{}});function Et(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.selectLayer(e.context.index)&&o),o},null,null)),(e()(),i["\u0275ted"](1,null,["\n ","\n "]))],null,function(e,t){e(t,0,0,t.context.index===t.component.current),e(t,1,0,t.context.$implicit)})}function Pt(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,7,"div",[["class","text-center"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,4,"span",[["class","uhk__layer-switcher--wrapper btn-group btn-group-lg"],["data-title","Layers: "],["role","group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Et)),i["\u0275did"](5,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,5,0,t.component.buttons)},null)}var It=function(){function e(){}return e.prototype.ngOnInit=function(){this.svgWidth=this.width/3,this.svgHeight=this.height/3},e}(),Rt=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Dt(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,1,":svg:use",[],[[1,":xlink:href",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.icon,n.svgWidth,n.svgHeight,n.svgWidth,n.svgHeight)})}var Nt=function(){function e(){}return e.prototype.ngOnInit=function(){this.textY=this.height/2,this.spanX=this.width/2},e}(),jt=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Lt(e){return i["\u0275vid"](2,[(e()(),i["\u0275ted"](-1,null,[" "])),(e()(),i["\u0275eld"](1,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,1,":svg:tspan",[["dy","0"]],[[1,"x",0]],null,null,null,null)),(e()(),i["\u0275ted"](4,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,1,0,0,n.textY,"middle"),e(t,3,0,n.spanX),e(t,4,0,n.text)})}var Ut=function(){function e(){this.spanYs=[]}return e.prototype.ngOnInit=function(){this.textY=this.height/2,this.spanX=this.width/2;for(var e=0;e<this.texts.length;++e)this.spanYs.push((.75-.5*e)*this.height)},e}(),Vt=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Ft(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,":svg:tspan",[["dy","0"]],[[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),i["\u0275ted"](1,null,["",""]))],null,function(e,t){var n=t.component;e(t,0,0,n.spanX,n.spanYs[t.context.index]),e(t,1,0,t.context.$implicit)})}function Kt(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ft)),i["\u0275did"](3,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,t.component.texts)},function(e,t){e(t,0,0,0,t.component.textY,"middle")})}var Bt=function(){function e(){this.initScanCodeTextMap(),this.initScancodeIcons(),this.initNameToFileNames()}return e.prototype.scanCodeToText=function(e,t){var n;switch(void 0===t&&(t=qe.KeystrokeType.basic),t){case qe.KeystrokeType.shortMedia:case qe.KeystrokeType.longMedia:n=this.mediaScanCodeTextMap;break;case qe.KeystrokeType.system:n=this.sytemScanCodeTextMap;break;default:n=this.basicScanCodeTextMap}return n.get(e)},e.prototype.hasScancodeIcon=function(e,t){var n;switch(void 0===t&&(t=qe.KeystrokeType.basic),t){case qe.KeystrokeType.basic:n=this.basicScancodeIcons;break;case qe.KeystrokeType.shortMedia:case qe.KeystrokeType.longMedia:n=this.mediaScancodeIcons;break;case qe.KeystrokeType.system:n=this.systemScancodeIcons;break;default:n=new Map}return n.has(e)},e.prototype.scanCodeToSvgImagePath=function(e,t){var n;switch(void 0===t&&(t=qe.KeystrokeType.basic),t){case qe.KeystrokeType.basic:n=this.basicScancodeIcons;break;case qe.KeystrokeType.shortMedia:case qe.KeystrokeType.longMedia:n=this.mediaScancodeIcons;break;case qe.KeystrokeType.system:n=this.systemScancodeIcons;break;default:return}var o=n.get(e);if(o)return"assets/compiled_sprite.svg#"+o},e.prototype.getIcon=function(e){return"assets/compiled_sprite.svg#"+this.nameToFileName.get(e)},e.prototype.modifierMapper=function(e){return e<8?4*Math.floor(e/2)+1-e:e},e.prototype.initScanCodeTextMap=function(){this.basicScanCodeTextMap=new Map,this.basicScanCodeTextMap.set(4,["A"]),this.basicScanCodeTextMap.set(5,["B"]),this.basicScanCodeTextMap.set(6,["C"]),this.basicScanCodeTextMap.set(7,["D"]),this.basicScanCodeTextMap.set(8,["E"]),this.basicScanCodeTextMap.set(9,["F"]),this.basicScanCodeTextMap.set(10,["G"]),this.basicScanCodeTextMap.set(11,["H"]),this.basicScanCodeTextMap.set(12,["I"]),this.basicScanCodeTextMap.set(13,["J"]),this.basicScanCodeTextMap.set(14,["K"]),this.basicScanCodeTextMap.set(15,["L"]),this.basicScanCodeTextMap.set(16,["M"]),this.basicScanCodeTextMap.set(17,["N"]),this.basicScanCodeTextMap.set(18,["O"]),this.basicScanCodeTextMap.set(19,["P"]),this.basicScanCodeTextMap.set(20,["Q"]),this.basicScanCodeTextMap.set(21,["R"]),this.basicScanCodeTextMap.set(22,["S"]),this.basicScanCodeTextMap.set(23,["T"]),this.basicScanCodeTextMap.set(24,["U"]),this.basicScanCodeTextMap.set(25,["V"]),this.basicScanCodeTextMap.set(26,["W"]),this.basicScanCodeTextMap.set(27,["X"]),this.basicScanCodeTextMap.set(28,["Y"]),this.basicScanCodeTextMap.set(29,["Z"]),this.basicScanCodeTextMap.set(30,["1","!"]),this.basicScanCodeTextMap.set(31,["2","@"]),this.basicScanCodeTextMap.set(32,["3","#"]),this.basicScanCodeTextMap.set(33,["4","$"]),this.basicScanCodeTextMap.set(34,["5","%"]),this.basicScanCodeTextMap.set(35,["6","^"]),this.basicScanCodeTextMap.set(36,["7","&"]),this.basicScanCodeTextMap.set(37,["8","*"]),this.basicScanCodeTextMap.set(38,["9","("]),this.basicScanCodeTextMap.set(39,["0",")"]),this.basicScanCodeTextMap.set(40,["Enter"]),this.basicScanCodeTextMap.set(41,["Esc"]),this.basicScanCodeTextMap.set(42,["Backspace"]),this.basicScanCodeTextMap.set(43,["Tab"]),this.basicScanCodeTextMap.set(44,["Space"]),this.basicScanCodeTextMap.set(45,["-","_"]),this.basicScanCodeTextMap.set(46,["=","+"]),this.basicScanCodeTextMap.set(47,["[","{"]),this.basicScanCodeTextMap.set(48,["]","}"]),this.basicScanCodeTextMap.set(49,["\\","|"]),this.basicScanCodeTextMap.set(50,["NON_US_HASHMARK_AND_TILDE"]),this.basicScanCodeTextMap.set(51,[";",":"]),this.basicScanCodeTextMap.set(52,["'",'"']),this.basicScanCodeTextMap.set(53,["`","~"]),this.basicScanCodeTextMap.set(54,[",","<"]),this.basicScanCodeTextMap.set(55,[".",">"]),this.basicScanCodeTextMap.set(56,["/","?"]),this.basicScanCodeTextMap.set(57,["Caps Lock"]),this.basicScanCodeTextMap.set(58,["F1"]),this.basicScanCodeTextMap.set(59,["F2"]),this.basicScanCodeTextMap.set(60,["F3"]),this.basicScanCodeTextMap.set(61,["F4"]),this.basicScanCodeTextMap.set(62,["F5"]),this.basicScanCodeTextMap.set(63,["F6"]),this.basicScanCodeTextMap.set(64,["F7"]),this.basicScanCodeTextMap.set(65,["F8"]),this.basicScanCodeTextMap.set(66,["F9"]),this.basicScanCodeTextMap.set(67,["F10"]),this.basicScanCodeTextMap.set(68,["F11"]),this.basicScanCodeTextMap.set(69,["F12"]),this.basicScanCodeTextMap.set(70,["PrtScn"]),this.basicScanCodeTextMap.set(71,["Scroll Lock"]),this.basicScanCodeTextMap.set(72,["Pause"]),this.basicScanCodeTextMap.set(73,["Insert"]),this.basicScanCodeTextMap.set(74,["Home"]),this.basicScanCodeTextMap.set(75,["PgUp"]),this.basicScanCodeTextMap.set(76,["Del"]),this.basicScanCodeTextMap.set(77,["End"]),this.basicScanCodeTextMap.set(78,["PgDn"]),this.basicScanCodeTextMap.set(79,["Right Arrow"]),this.basicScanCodeTextMap.set(80,["Left Arrow"]),this.basicScanCodeTextMap.set(81,["Down Arrow"]),this.basicScanCodeTextMap.set(82,["Up Arrow"]),this.basicScanCodeTextMap.set(83,["Num Lock"]),this.basicScanCodeTextMap.set(84,["/"]),this.basicScanCodeTextMap.set(85,["*"]),this.basicScanCodeTextMap.set(86,["-"]),this.basicScanCodeTextMap.set(87,["+"]),this.basicScanCodeTextMap.set(88,["Enter"]),this.basicScanCodeTextMap.set(89,["end","1"]),this.basicScanCodeTextMap.set(90,["2"]),this.basicScanCodeTextMap.set(91,["pgdn","3"]),this.basicScanCodeTextMap.set(92,["4"]),this.basicScanCodeTextMap.set(93,["5"]),this.basicScanCodeTextMap.set(94,["6"]),this.basicScanCodeTextMap.set(95,["home","7"]),this.basicScanCodeTextMap.set(96,["8"]),this.basicScanCodeTextMap.set(97,["pgup","9"]),this.basicScanCodeTextMap.set(98,["Insert","0"]),this.basicScanCodeTextMap.set(99,["Del","."]),this.basicScanCodeTextMap.set(100,["ISO key","|"]),this.basicScanCodeTextMap.set(101,["Menu"]),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(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(101,"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("double-tap","icon-kbd__fn--double-tap"),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}(),Ht=function(){this.width=0,this.height=0,this.x=0,this.y=0,this.disabled=!0},Wt=function(){function e(e){this.mapper=e,this.modifierIconNames={},this.textContainer=new Ht,this.modifierContainer=new Ht,this.shift=new Ht,this.control=new Ht,this.option=new Ht,this.command=new Ht}return e.prototype.ngOnInit=function(){if(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"),this.width<1.8*this.height){var e=this.width/4,t=this.height,n=(i=.8)*(this.height/this.width)*e,o=i*t;this.modifierContainer.width=this.width,this.modifierContainer.height=this.height/5,this.modifierContainer.y=this.height-this.modifierContainer.height,this.shift.width=n,this.shift.height=o,this.shift.x=(e-n)/2,this.shift.y=(t-o)/2,this.control.width=n,this.control.height=o,this.control.x=this.shift.x+e,this.control.y=this.shift.y,this.option.width=n,this.option.height=o,this.option.x=this.control.x+e,this.option.y=this.shift.y,this.command.width=n,this.command.height=o,this.command.x=this.option.x+e,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 i,r=Math.min(this.modifierContainer.width/2,this.modifierContainer.height/2);o=(i=.8)*this.height*(r/this.modifierContainer.height),this.shift.width=n=i*this.width*(r/this.modifierContainer.width),this.shift.height=o,this.shift.x=this.width/4-n/2,this.shift.y=this.height/4-o/2,this.control.width=n,this.control.height=o,this.control.x=this.shift.x+this.width/2,this.control.y=this.shift.y,this.option.width=n,this.option.height=o,this.option.x=this.shift.x,this.option.y=this.shift.y+this.height/2,this.command.width=n,this.command.height=o,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,t=this.keystrokeAction.scancode;this.labelSource=this.mapper.scanCodeToSvgImagePath(t,this.keystrokeAction.type),this.labelSource?this.labelType="icon":(e=this.mapper.scanCodeToText(t,this.keystrokeAction.type))&&(1===e.length?(this.labelSource=e[0],this.labelType="one-line"):(this.labelSource=e,this.labelType="two-line"))}else this.labelType="empty";this.shift.disabled=!this.keystrokeAction.isActive(qe.KeyModifiers.leftShift|qe.KeyModifiers.rightShift),this.control.disabled=!this.keystrokeAction.isActive(qe.KeyModifiers.leftCtrl|qe.KeyModifiers.rightCtrl),this.option.disabled=!this.keystrokeAction.isActive(qe.KeyModifiers.leftAlt|qe.KeyModifiers.rightAlt),this.command.disabled=!this.keystrokeAction.isActive(qe.KeyModifiers.leftGui|qe.KeyModifiers.rightGui)},e}(),qt=i["\u0275crt"]({encapsulation:0,styles:[[".disabled[_ngcontent-%COMP%]{fill:gray}text[_ngcontent-%COMP%]{font-size:100px}"]],data:{}});function zt(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-single-icon-key",""]],null,null,null,Dt,Rt)),i["\u0275did"](1,114688,null,0,It,[],{width:[0,"width"],height:[1,"height"],icon:[2,"icon"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource)},null)}function $t(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-one-line-text-key",""]],null,null,null,Lt,jt)),i["\u0275did"](1,114688,null,0,Nt,[],{height:[0,"height"],width:[1,"width"],text:[2,"text"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource)},null)}function Gt(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-two-line-text-key",""]],null,null,null,Kt,Vt)),i["\u0275did"](1,114688,null,0,Ut,[],{height:[0,"height"],width:[1,"width"],texts:[2,"texts"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource)},null)}function Yt(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,11,":svg:svg",[],[[1,"viewBox",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),i["\u0275did"](1,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,zt)),i["\u0275did"](4,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,$t)),i["\u0275did"](7,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Gt)),i["\u0275did"](10,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](13,0,null,null,22,":svg:svg",[["preserveAspectRatio","none"]],[[1,"viewBox",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](15,0,null,null,3,":svg:svg",[["preserveAspectRatio","none"],["viewBox","0 0 100 100"]],[[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0],[2,"disabled",null]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](17,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](20,0,null,null,4,":svg:svg",[["preserveAspectRatio","none"],["viewBox","0 0 100 100"]],[[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0],[2,"disabled",null]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](22,0,null,null,1,":svg:text",[],[[1,"text-anchor",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["C"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](26,0,null,null,3,":svg:svg",[["preserveAspectRatio","none"],["viewBox","0 0 100 100"]],[[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0],[2,"disabled",null]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](28,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](31,0,null,null,3,":svg:svg",[["preserveAspectRatio","none"],["viewBox","0 0 100 100"]],[[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0],[2,"disabled",null]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](33,0,null,null,0,":svg:use",[],[[1,":xlink:href",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,1,0,t.component.labelType),e(t,4,0,"icon"),e(t,7,0,"one-line"),e(t,10,0,"two-line")},function(e,t){var n=t.component;e(t,0,0,n.viewBox,n.textContainer.width,n.textContainer.height,n.textContainer.x,n.textContainer.y),e(t,13,0,n.viewBox,n.modifierContainer.width,n.modifierContainer.height,n.modifierContainer.x,n.modifierContainer.y),e(t,15,0,n.shift.width,n.shift.height,n.shift.x,n.shift.y,n.shift.disabled),e(t,17,0,n.modifierIconNames.shift),e(t,20,0,n.control.width,n.control.height,n.control.x,n.control.y,n.control.disabled),e(t,22,0,"middle",50,50),e(t,26,0,n.option.width,n.option.height,n.option.x,n.option.y,n.option.disabled),e(t,28,0,n.modifierIconNames.option),e(t,31,0,n.command.width,n.command.height,n.command.x,n.command.y,n.command.disabled),e(t,33,0,n.modifierIconNames.command)})}var Qt=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}(),Jt=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Zt(e){return i["\u0275vid"](2,[(e()(),i["\u0275ted"](-1,null,[" "])),(e()(),i["\u0275eld"](1,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,1,":svg:tspan",[],[[1,"x",0]],null,null,null,null)),(e()(),i["\u0275ted"](4,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](7,0,null,null,1,":svg:use",[],[[1,":xlink:href",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,1,0,0,n.textY,n.textAnchor),e(t,3,0,n.spanX),e(t,4,0,n.text),e(t,7,0,n.icon,n.useWidth,n.useHeight,n.useX,n.useY)})}var Xt=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}(),en=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function tn(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,1,":svg:use",[],[[1,":xlink:href",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](3,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,1,":svg:tspan",[],[[1,"x",0]],null,null,null,null)),(e()(),i["\u0275ted"](6,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.icon,n.useWidth,n.useHeight,n.useX,n.useY),e(t,3,0,0,n.textY,"middle",11),e(t,5,0,n.spanX),e(t,6,0,n.text)})}var nn=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}(),on=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function rn(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,1,":svg:use",[],[[1,":xlink:href",0],[1,"width",0],[1,"height",0],[1,"x",0],[1,"y",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](3,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,1,":svg:tspan",[],[[1,"x",0]],null,null,null,null)),(e()(),i["\u0275ted"](6,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.icon,n.useWidth,n.useHeight,n.useX,n.useY),e(t,3,0,0,n.textY,"middle"),e(t,5,0,n.spanX),e(t,6,0,n.abbreviation)})}var ln=function(){function e(e){this.mapper=e,this.icon=this.mapper.getIcon("mouse")}return e.prototype.ngOnInit=function(){},e}(),sn=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function an(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,1,":svg:use",[["height","20"],["width","20"],["x","10"],["y","25"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](3,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,1,":svg:tspan",[["dy","34"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Click "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](9,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,1,":svg:tspan",[["dy","70"]],null,null,null,null,null)),(e()(),i["\u0275ted"](12,null,[" "," "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.icon),e(t,3,0,60,0,"middle",25),e(t,9,0,50,0,"middle",25),e(t,12,0,n.button)})}var un=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}(),cn=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function dn(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,0,":svg:use",[["height","20"],["width","20"],["x","8"],["y","25"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](2,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,1,":svg:tspan",[["dy","34"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Move "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](8,0,null,null,0,":svg:use",[["height","30"],["width","30"],["x","35"],["y","55"]],[[1,":xlink:href",0]],null,null,null,null))],null,function(e,t){var n=t.component;e(t,0,0,n.mouseIcon),e(t,2,0,60,0,"middle",24),e(t,8,0,n.directionIcon)})}var pn=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}(),fn=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function hn(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,0,":svg:use",[["height","20"],["width","20"],["x","8"],["y","25"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](2,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,1,":svg:tspan",[["dy","34"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Scroll "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](8,0,null,null,0,":svg:use",[["height","30"],["width","30"],["x","35"],["y","55"]],[[1,":xlink:href",0]],null,null,null,null))],null,function(e,t){var n=t.component;e(t,0,0,n.mouseIcon),e(t,2,0,60,0,"middle",24),e(t,8,0,n.directionIcon)})}var yn=function(){function e(e){this.mapper=e,this.icon=this.mapper.getIcon("mouse")}return e.prototype.ngOnChanges=function(){this.sign=this.plus?"+":"-"},e}(),mn=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function gn(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,1,":svg:use",[["height","20"],["width","20"],["x","4"],["y","25"]],[[1,":xlink:href",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](3,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,1,":svg:tspan",[["dy","34"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Speed "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](9,0,null,null,4,":svg:text",[],[[1,"x",0],[1,"y",0],[1,"text-anchor",0],[1,"font-size",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,1,":svg:tspan",[["dy","70"]],null,null,null,null,null)),(e()(),i["\u0275ted"](12,null,[" "," "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,0,0,n.icon),e(t,3,0,60,0,"middle",25),e(t,9,0,50,0,"middle",30),e(t,12,0,n.sign)})}var vn=function(){function e(){}return e.prototype.ngOnChanges=function(){switch(this.mouseAction.mouseAction){case qe.MouseActionParam.leftClick:this.type="click",this.param="Left";break;case qe.MouseActionParam.rightClick:this.type="click",this.param="Right";break;case qe.MouseActionParam.middleClick:this.type="click",this.param="Middle";break;case qe.MouseActionParam.scrollDown:this.type="scroll",this.param="down";break;case qe.MouseActionParam.scrollLeft:this.type="scroll",this.param="left";break;case qe.MouseActionParam.scrollRight:this.type="scroll",this.param="right";break;case qe.MouseActionParam.scrollUp:this.type="scroll",this.param="up";break;case qe.MouseActionParam.moveDown:this.type="move",this.param="down";break;case qe.MouseActionParam.moveLeft:this.type="move",this.param="left";break;case qe.MouseActionParam.moveRight:this.type="move",this.param="right";break;case qe.MouseActionParam.moveUp:this.type="move",this.param="up";break;case qe.MouseActionParam.accelerate:this.type="speed",this.param=!0;break;case qe.MouseActionParam.decelerate:this.type="speed",this.param=!1}},e}(),bn=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function kn(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-mouse-click-key",""]],null,null,null,an,sn)),i["\u0275did"](1,114688,null,0,ln,[Bt],{button:[0,"button"]},null)],function(e,t){e(t,1,0,t.component.param)},null)}function _n(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-mouse-move-key",""]],null,null,null,dn,cn)),i["\u0275did"](1,573440,null,0,un,[Bt],{direction:[0,"direction"]},null)],function(e,t){e(t,1,0,t.component.param)},null)}function wn(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-mouse-scroll-key",""]],null,null,null,hn,fn)),i["\u0275did"](1,573440,null,0,pn,[Bt],{direction:[0,"direction"]},null)],function(e,t){e(t,1,0,t.component.param)},null)}function An(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-mouse-speed-key",""]],null,null,null,gn,mn)),i["\u0275did"](1,573440,null,0,yn,[Bt],{plus:[0,"plus"]},null)],function(e,t){e(t,1,0,t.component.param)},null)}function Tn(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,14,":svg:g",[],null,null,null,null,null)),i["\u0275did"](1,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,kn)),i["\u0275did"](4,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,_n)),i["\u0275did"](7,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,wn)),i["\u0275did"](10,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,An)),i["\u0275did"](13,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,1,0,t.component.type),e(t,4,0,"click"),e(t,7,0,"move"),e(t,10,0,"scroll"),e(t,13,0,"speed")},null)}var Cn=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,t){return e?this.leftModifiers.set(t,!0):this.rightModifiers.set(t,!0)},e.prototype.getModifiers=function(e){return this.reMap(e?this.leftModifiers: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,101),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}(),xn=n("yqBA"),On=function(e){return 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",e}({}),Sn=function(){function e(e,t,n,o,r){var l=this;this.mapper=e,this.element=n,this.captureService=o,this.renderer=r,this.keyClick=new i.EventEmitter,this.capture=new i.EventEmitter,this.enumLabelTypes=On,this.changeAnimation="inactive",this.subscription=t.let(Object(xn.d)()).subscribe(function(e){return l.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 t=e.keyCode;this.recording&&(e.preventDefault(),this.captureService.hasMap(t)?(this.saveScanCode(this.captureService.getMap(t)),this.scanCodePressed=!0):this.captureService.setModifier(1===e.location,t))},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.recordAnimation=this.recording&&"inactive"===this.recordAnimation?"active":"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 t=this.captureService.getModifiers(!0),n=this.captureService.getModifiers(!1);this.capture.emit({code:e,left:t,right:n}),this.captureService.initModifiers()},e.prototype.setLabels=function(){if(!this.keyAction)return this.labelSource=void 0,void(this.labelType=On.OneLineText);if(this.labelType=On.OneLineText,this.keyAction instanceof qe.KeystrokeAction){var e=void 0;if(!(n=this.keyAction).hasActiveModifier()&&n.hasScancode()){var t=n.scancode;e=this.mapper.scanCodeToText(t,n.type),this.mapper.hasScancodeIcon(t,n.type)?(this.labelSource=this.mapper.scanCodeToSvgImagePath(t,n.type),this.labelType=On.SingleIcon):void 0!==e&&(1===e.length?(this.labelSource=e[0],this.labelType=On.OneLineText):(this.labelSource=e,this.labelType=On.TwoLineText))}else if(n.hasOnlyOneActiveModifier()&&!n.hasScancode()){switch(e=[],n.modifierMask){case qe.KeyModifiers.leftCtrl:case qe.KeyModifiers.rightCtrl:e.push("Ctrl");break;case qe.KeyModifiers.leftShift:case qe.KeyModifiers.rightShift:e.push("Shift");break;case qe.KeyModifiers.leftAlt:case qe.KeyModifiers.rightAlt:e.push("Alt");break;case qe.KeyModifiers.leftGui:case qe.KeyModifiers.rightGui:e.push("Super");break;default:e.push("Undefined")}this.labelSource=e}else this.labelType=On.KeystrokeKey,this.labelSource=this.keyAction}else if(this.keyAction instanceof qe.SwitchLayerAction){switch(e=void 0,(n=this.keyAction).layer){case qe.LayerName.mod:e="Mod";break;case qe.LayerName.fn:e="Fn";break;case qe.LayerName.mouse:e="Mouse"}n.switchLayerMode===qe.SwitchLayerMode.toggle?(this.labelType=On.TextIcon,this.labelSource={text:e,icon:this.mapper.getIcon("toggle")}):n.switchLayerMode===qe.SwitchLayerMode.holdAndDoubleTapToggle?(this.labelType=On.TextIcon,this.labelSource={text:e,icon:this.mapper.getIcon("double-tap")}):(this.labelType=On.OneLineText,this.labelSource=e)}else if(this.keyAction instanceof qe.SwitchKeymapAction){var n=this.keyAction;this.labelType=On.SwitchKeymap,this.labelSource=n.keymapAbbreviation}else if(this.keyAction instanceof qe.PlayMacroAction){var o=this.keyAction,i=this.macros.find(function(e){return e.id===o.macroId});this.labelType=On.IconText,this.labelSource={icon:this.mapper.getIcon("macro"),text:i.name}}else this.keyAction instanceof qe.MouseAction?(this.labelType=On.MouseKey,this.labelSource=this.keyAction):this.labelSource=void 0},e}(),Mn=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{cursor:pointer;outline:0}[_nghost-%COMP%] text{dominant-baseline:central}[_nghost-%COMP%]:hover{fill:#494949}"]],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:{}}]}});function En(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,0,":svg:circle",[],[[24,"@recording",0],[1,"cx",0],[1,"cy",0],[1,"r",0],[1,"fill",0]],[[null,"@recording.done"]],function(e,t,n){var o=!0;return"@recording.done"===t&&(o=!1!==e.component.onRecordingAnimationDone()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,1,0,n.recordAnimation,n.width/2,n.height/2,10,"#c00")})}function Pn(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-keystroke-key",""]],null,null,null,Yt,qt)),i["\u0275did"](1,638976,null,0,Wt,[Bt],{height:[0,"height"],width:[1,"width"],keystrokeAction:[2,"keystrokeAction"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource)},null)}function In(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-one-line-text-key",""]],null,null,null,Lt,jt)),i["\u0275did"](1,114688,null,0,Nt,[],{height:[0,"height"],width:[1,"width"],text:[2,"text"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource)},null)}function Rn(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-two-line-text-key",""]],null,null,null,Kt,Vt)),i["\u0275did"](1,114688,null,0,Ut,[],{height:[0,"height"],width:[1,"width"],texts:[2,"texts"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.height,n.width,n.labelSource)},null)}function Dn(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-text-icon-key",""]],null,null,null,Zt,Jt)),i["\u0275did"](1,114688,null,0,Qt,[],{width:[0,"width"],height:[1,"height"],text:[2,"text"],icon:[3,"icon"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource.text,n.labelSource.icon)},null)}function Nn(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-icon-text-key",""]],null,null,null,tn,en)),i["\u0275did"](1,114688,null,0,Xt,[],{width:[0,"width"],height:[1,"height"],icon:[2,"icon"],text:[3,"text"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource.icon,n.labelSource.text)},null)}function jn(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-single-icon-key",""]],null,null,null,Dt,Rt)),i["\u0275did"](1,114688,null,0,It,[],{width:[0,"width"],height:[1,"height"],icon:[2,"icon"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource)},null)}function Ln(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,":svg:g",[["svg-switch-keymap-key",""]],null,null,null,rn,on)),i["\u0275did"](1,114688,null,0,nn,[Bt],{width:[0,"width"],height:[1,"height"],abbreviation:[2,"abbreviation"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,1,0,n.width,n.height,n.labelSource)},null)}function Un(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,4,":svg:svg",[],[[1,"viewBox",0],[1,"width",0],[1,"height",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,":svg:g",[["svg-mouse-key",""]],null,null,null,Tn,bn)),i["\u0275did"](3,573440,null,0,vn,[],{mouseAction:[0,"mouseAction"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,t.component.labelSource)},function(e,t){var n=t.component;e(t,0,0,"0 0 100 100",n.width,n.height)})}function Vn(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,26,":svg:g",[],[[1,"font-size",0],[1,"font-family",0],[1,"fill",0]],null,null,null,null)),i["\u0275did"](2,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Pn)),i["\u0275did"](5,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,In)),i["\u0275did"](8,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Rn)),i["\u0275did"](11,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Dn)),i["\u0275did"](14,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Nn)),i["\u0275did"](17,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,jn)),i["\u0275did"](20,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ln)),i["\u0275did"](23,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Un)),i["\u0275did"](26,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.labelType),e(t,5,0,n.enumLabelTypes.KeystrokeKey),e(t,8,0,n.enumLabelTypes.OneLineText),e(t,11,0,n.enumLabelTypes.TwoLineText),e(t,14,0,n.enumLabelTypes.TextIcon),e(t,17,0,n.enumLabelTypes.IconText),e(t,20,0,n.enumLabelTypes.SingleIcon),e(t,23,0,n.enumLabelTypes.SwitchKeymap),e(t,26,0,n.enumLabelTypes.MouseKey)},function(e,t){e(t,1,0,19,"Helvetica","white")})}function Fn(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,0,":svg:rect",[],[[24,"@change",0],[24,"@active",0],[8,"id",0],[1,"rx",0],[1,"ry",0],[1,"height",0],[1,"width",0]],[[null,"@change.done"]],function(e,t,n){var o=!0;return"@change.done"===t&&(o=!1!==e.component.onChangeAnimationDone()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,En)),i["\u0275did"](3,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,Vn)),i["\u0275did"](6,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,n.recording),e(t,6,0,!n.recording)},function(e,t){var n=t.component;e(t,0,0,n.changeAnimation,n.active,n.id,n.rx,n.ry,n.height,n.width)})}var Kn=function(){function e(e){this.sanitizer=e}return e.prototype.transform=function(e){return this.sanitizer.bypassSecurityTrustStyle(e)},e}(),Bn=function(){function e(){this.keyClick=new i.EventEmitter,this.keyHover=new i.EventEmitter,this.capture=new i.EventEmitter,this.keyboardKeys=[]}return e.prototype.onKeyClick=function(e,t){this.keyClick.emit({index:e,keyTarget:t})},e.prototype.onKeyHover=function(e,t,n){this.keyHover.emit({index:e,event:t,over:n})},e.prototype.onCapture=function(e,t){this.capture.emit({index:e,captured:t})},e}(),Hn=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{position:relative}"]],data:{}});function Wn(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,":svg:path",[],[[1,"d",0],[1,"style",2]],null,null,null,null)),i["\u0275ppd"](1,1)],null,function(e,t){e(t,0,0,t.context.$implicit.$.d,i["\u0275unv"](t,0,1,e(t,1,0,i["\u0275nov"](t.parent,0),t.context.$implicit.$.style)))})}function qn(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-keyboard-key",""]],[[1,"transform",0],[1,"fill",0],[1,"tabindex",0]],[[null,"keyClick"],[null,"capture"],[null,"mouseenter"],[null,"mouseleave"],[null,"click"],[null,"mousedown"],[null,"keyup"],[null,"keydown"],[null,"focusout"]],function(e,t,n){var o=!0,r=e.component;return"click"===t&&(o=!1!==i["\u0275nov"](e,1).onClick()&&o),"mousedown"===t&&(o=!1!==i["\u0275nov"](e,1).onMouseDown(n)&&o),"keyup"===t&&(o=!1!==i["\u0275nov"](e,1).onKeyUp(n)&&o),"keydown"===t&&(o=!1!==i["\u0275nov"](e,1).onKeyDown(n)&&o),"focusout"===t&&(o=!1!==i["\u0275nov"](e,1).onFocusOut()&&o),"keyClick"===t&&(o=!1!==r.onKeyClick(e.parent.context.index,n)&&o),"capture"===t&&(o=!1!==r.onCapture(e.parent.context.index,n)&&o),"mouseenter"===t&&(o=!1!==r.onKeyHover(e.parent.context.index,n,!0)&&o),"mouseleave"===t&&(o=!1!==r.onKeyHover(e.parent.context.index,n,!1)&&o),o},Fn,Mn)),i["\u0275did"](1,770048,null,0,Sn,[Bt,s.m,i.ElementRef,Cn,i.Renderer],{id:[0,"id"],rx:[1,"rx"],ry:[2,"ry"],height:[3,"height"],width:[4,"width"],keyAction:[5,"keyAction"],keybindAnimationEnabled:[6,"keybindAnimationEnabled"],capturingEnabled:[7,"capturingEnabled"],active:[8,"active"]},{keyClick:"keyClick",capture:"capture"})],function(e,t){var n=t.component;e(t,1,0,t.parent.context.$implicit.id,t.parent.context.$implicit.rx,t.parent.context.$implicit.ry,t.parent.context.$implicit.height,t.parent.context.$implicit.width,n.keyActions[t.parent.context.index],n.keybindAnimationEnabled,n.capturingEnabled,n.selected&&t.parent.context.index==n.selectedKey.keyId)},function(e,t){e(t,0,0,"translate("+t.parent.context.$implicit.x+" "+t.parent.context.$implicit.y+")",t.parent.context.$implicit.fill,0)})}function zn(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,4,null,null,null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,qn)),i["\u0275did"](3,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,3,0,t.context.$implicit)},null)}function $n(e){return i["\u0275vid"](2,[i["\u0275pid"](0,Kn,[P.c]),(e()(),i["\u0275and"](16777216,null,null,1,null,Wn)),i["\u0275did"](2,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,zn)),i["\u0275did"](5,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.coverages),e(t,5,0,n.keyboardKeys)},null)}var Gn=function(){function e(e){this.el=e}return e.prototype.ngOnInit=function(){},e.prototype.ngAfterViewInit=function(){this.el.nativeElement.focus()},e}(),Yn=function(){function e(e){this.cdr=e,this.placeholder="No editable content",this.editing=!1,this.textChange=function(){}}return Object.defineProperty(e.prototype,"isSaveDisabled",{get:function(){return!this.text||0===this.text.trim().length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"displayText",{get:function(){return this.text&&this.text.replace(/\n/g,"<br>")},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.text!==e&&(this.text=e,this.cdr.markForCheck())},e.prototype.registerOnChange=function(e){this.textChange=e},e.prototype.registerOnTouched=function(e){},e.prototype.saveText=function(){this.originalText=null,this.editing=!1,this.textChange(this.text)},e.prototype.editText=function(){this.originalText=this.text,this.editing=!0},e.prototype.cancelEditText=function(){this.text=this.originalText,this.editing=!1},e.prototype.keydownEnter=function(){this.isSaveDisabled||this.saveText()},Object.defineProperty(e.prototype,"showPlaceholder",{get:function(){return!this.editing&&!this.text},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showText",{get:function(){return!this.editing&&!!this.text},enumerable:!0,configurable:!0}),e}(),Qn=i["\u0275crt"]({encapsulation:0,styles:[["[_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}"]],data:{}});function Jn(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,4,"span",[["class","placeholder"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"span",[],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.editText()&&o),o},null,null)),(e()(),i["\u0275ted"](3,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,3,0,t.component.placeholder)})}function Zn(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,3,"span",[["class","editable"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,0,"span",[],[[8,"innerHTML",1]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.editText()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,2,0,t.component.displayText)})}function Xn(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,18,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,6,"textarea",[["autofocus",""],["class","text-editor"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keydown.control.enter"],[null,"keydown.alt.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var o=!0,r=e.component;return"input"===t&&(o=!1!==i["\u0275nov"](e,3)._handleInput(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,3).onTouched()&&o),"compositionstart"===t&&(o=!1!==i["\u0275nov"](e,3)._compositionStart()&&o),"compositionend"===t&&(o=!1!==i["\u0275nov"](e,3)._compositionEnd(n.target.value)&&o),"ngModelChange"===t&&(o=!1!==(r.text=n)&&o),"keydown.control.enter"===t&&(o=!1!==r.keydownEnter()&&o),"keydown.alt.enter"===t&&(o=!1!==r.keydownEnter()&&o),o},null,null)),i["\u0275did"](3,16384,null,0,je.DefaultValueAccessor,[i.Renderer2,i.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[je.DefaultValueAccessor]),i["\u0275did"](5,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](7,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),i["\u0275did"](8,4276224,null,0,Gn,[i.ElementRef],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,7,"div",[["class","pull-right buttons"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,1,"button",[["class","btn btn-danger"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.cancelEditText()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n Cancel\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](15,0,null,null,1,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.saveText()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n Update description\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,5,0,t.component.text),e(t,8,0)},function(e,t){var n=t.component;e(t,2,0,i["\u0275nov"](t,7).ngClassUntouched,i["\u0275nov"](t,7).ngClassTouched,i["\u0275nov"](t,7).ngClassPristine,i["\u0275nov"](t,7).ngClassDirty,i["\u0275nov"](t,7).ngClassValid,i["\u0275nov"](t,7).ngClassInvalid,i["\u0275nov"](t,7).ngClassPending),e(t,15,0,n.isSaveDisabled)})}function eo(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,7,"div",[["class","text-center"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Jn)),i["\u0275did"](3,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Zn)),i["\u0275did"](6,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,Xn)),i["\u0275did"](10,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,n.showPlaceholder),e(t,6,0,n.showText),e(t,10,0,n.editing)},null)}var to=function(e){var t,n=e.rect.map(function(e){return e.$});this.keyboardKeys=[];for(var o=0;o<n.length;++o)t=n[o].id.slice(4)-1,n[o].height=+n[o].height,n[o].width=+n[o].width,n[o].fill=n[o].style.slice(5),this.keyboardKeys[t]=n[o];this.coverages=e.path,this.attributes=e.$},no=n("xW7+"),oo=function(){function e(){}return e.prototype.getSvgModules=function(e){return void 0===e&&(e=no.a.ANSI),[this.getRightModule(),this.getLeftModule(e)]},e.prototype.getSvgSeparator=function(){return this.separator||(this.separator=n("8Ijx").svg.path[0].$),this.separator},e.prototype.getLeftModule=function(e){return void 0===e&&(e=no.a.ANSI),e===no.a.ISO?(this.isoLeft||(this.isoLeft=new to(n("rhbT").svg)),this.isoLeft):(this.ansiLeft||(this.ansiLeft=new to(n("Wfm2").svg)),this.ansiLeft)},e.prototype.getRightModule=function(){return this.right||(this.right=new to(n("bpTZ").svg)),this.right},e}(),io=function(){function e(e,t){this.svgModuleProvider=e,this.sanitizer=t,this.keyboardLayout=no.a.ANSI,this.showDescription=!1,this.keyClick=new i.EventEmitter,this.keyHover=new i.EventEmitter,this.capture=new i.EventEmitter,this.descriptionChanged=new i.EventEmitter,this.modules=[],this.viewBox="-520 582 1100 470",this.halvesSplit=!1,this.moduleAnimationStates=[]}return e.prototype.ngOnInit=function(){this.setModules()},e.prototype.ngOnChanges=function(e){e.halvesSplit&&this.updateModuleAnimationStates(),e.keyboardLayout&&this.setModules()},e.prototype.onKeyClick=function(e,t,n){this.keyClick.emit({moduleId:e,keyId:t,keyTarget:n})},e.prototype.onCapture=function(e,t,n){this.capture.emit({moduleId:e,keyId:t,captured:n})},e.prototype.onKeyHover=function(e,t,n,o){this.keyHover.emit({moduleId:o,event:t,over:n,keyId:e})},e.prototype.updateModuleAnimationStates=function(){this.moduleAnimationStates=this.halvesSplit?["rotateRight","rotateLeft"]:[]},e.prototype.setModules=function(){this.modules=this.svgModuleProvider.getSvgModules(this.keyboardLayout),this.separator=this.svgModuleProvider.getSvgSeparator(),this.separatorStyle=this.sanitizer.bypassSecurityTrustStyle(this.separator.style)},e}(),ro=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:block;width:100%;position:relative}editable-text[_ngcontent-%COMP%]{padding-left:2em;padding-right:2em;display:block}.separator-visible[_ngcontent-%COMP%]{-webkit-animation:1.5s visible-fade-in;animation:1.5s visible-fade-in;opacity:1}@-webkit-keyframes visible-fade-in{0%{opacity:0}100%{opacity:1}}@keyframes visible-fade-in{0%{opacity:0}100%{opacity:1}}.separator-hide[_ngcontent-%COMP%]{-webkit-animation:1.5s visible-fade-out;animation:1.5s visible-fade-out;opacity:0}@-webkit-keyframes visible-fade-out{0%{opacity:1}100%{opacity:0}}@keyframes visible-fade-out{0%{opacity:1}100%{opacity:0}}"]],data:{animation:[{type:7,name:"split",definitions:[{type:0,name:"rotateLeft",styles:{type:6,styles:{transform:"translate(-3%, 15%) rotate(4deg) scale(0.92, 0.92)"},offset:null},options:void 0},{type:0,name:"rotateRight",styles:{type:6,styles:{transform:"translate(3%, 15%) rotate(-4deg) scale(0.92, 0.92)"},offset:null},options:void 0},{type:1,expr:"* <=> *",animation:{type:4,styles:null,timings:500},options:null}],options:{}}]}});function lo(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,":svg:g",[["svg-module",""]],[[1,"transform",0],[24,"@split",0]],[[null,"keyClick"],[null,"keyHover"],[null,"capture"]],function(e,t,n){var o=!0,i=e.component;return"keyClick"===t&&(o=!1!==i.onKeyClick(e.context.index,n.index,n.keyTarget)&&o),"keyHover"===t&&(o=!1!==i.onKeyHover(n.index,n.event,n.over,e.context.index)&&o),"capture"===t&&(o=!1!==i.onCapture(e.context.index,n.index,n.captured)&&o),o},$n,Hn)),i["\u0275did"](1,49152,null,0,Bn,[],{coverages:[0,"coverages"],keyboardKeys:[1,"keyboardKeys"],keyActions:[2,"keyActions"],selectedKey:[3,"selectedKey"],selected:[4,"selected"],keybindAnimationEnabled:[5,"keybindAnimationEnabled"],capturingEnabled:[6,"capturingEnabled"]},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture"})],function(e,t){var n=t.component;e(t,1,0,t.context.$implicit.coverages,t.context.$implicit.keyboardKeys,n.moduleConfig[t.context.index].keyActions,n.selectedKey,(null==n.selectedKey?null:n.selectedKey.moduleId)===t.context.index,n.keybindAnimationEnabled,n.capturingEnabled)},function(e,t){e(t,0,0,t.context.$implicit.attributes.transform,t.component.moduleAnimationStates[t.context.index])})}function so(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,5,"editable-text",[["placeholder","No description provided for this keymap."]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(e,t,n){var o=!0;return"ngModelChange"===t&&(o=!1!==e.component.descriptionChanged.emit(n)&&o),o},eo,Qn)),i["\u0275did"](1,49152,null,0,Yn,[i.ChangeDetectorRef],{placeholder:[0,"placeholder"]},null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[Yn]),i["\u0275did"](3,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](5,16384,null,0,je.NgControlStatus,[je.NgControl],null,null)],function(e,t){var n=t.component;e(t,1,0,"No description provided for this keymap."),e(t,3,0,n.description)},function(e,t){e(t,0,0,i["\u0275nov"](t,5).ngClassUntouched,i["\u0275nov"](t,5).ngClassTouched,i["\u0275nov"](t,5).ngClassPristine,i["\u0275nov"](t,5).ngClassDirty,i["\u0275nov"](t,5).ngClassValid,i["\u0275nov"](t,5).ngClassInvalid,i["\u0275nov"](t,5).ngClassPending)})}function ao(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,8,":svg:svg",[["height","100%"],["width","100%"],["xmlns","http://www.w3.org/2000/svg"]],[[1,"viewBox",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,lo)),i["\u0275did"](3,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](5,0,null,null,2,":svg:path",[],[[1,"d",0],[1,"style",2]],null,null,null,null)),i["\u0275did"](6,278528,null,0,d.i,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{ngClass:[0,"ngClass"]},null),i["\u0275pod"](7,{"separator-visible":0,"separator-hide":1}),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,so)),i["\u0275did"](11,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,n.modules),e(t,6,0,e(t,7,0,!n.halvesSplit,n.halvesSplit)),e(t,11,0,n.showDescription)},function(e,t){var n=t.component;e(t,0,0,n.viewBox),e(t,5,0,n.separator.d,n.separatorStyle)})}var uo=function(){function e(){this.keyboardLayout=no.a.ANSI,this.keyClick=new i.EventEmitter,this.keyHover=new i.EventEmitter,this.capture=new i.EventEmitter,this.descriptionChanged=new i.EventEmitter}return e.prototype.ngOnChanges=function(e){e.layers&&(this.layerAnimationState=this.layers.map(function(){return"initOut"}),this.layerAnimationState[this.currentLayer]="init");var t=e.currentLayer;if(t)if(e.layers);else{var n=t.isFirstChange()?t.currentValue:t.previousValue;this.onLayerChange(n,t.currentValue)}},e.prototype.trackKeyboard=function(e){return e},e.prototype.onLayerChange=function(e,t){t>e?(this.layerAnimationState[e]="leftOut",this.layerAnimationState[t]="leftIn"):(this.layerAnimationState[e]="rightOut",this.layerAnimationState[t]="rightIn")},e}(),co=i["\u0275crt"]({encapsulation:0,styles:[["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}"]],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:{}}]}});function po(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,"svg-keyboard",[],[[24,"@layerState",0]],[[null,"keyClick"],[null,"keyHover"],[null,"capture"],[null,"descriptionChanged"]],function(e,t,n){var o=!0,i=e.component;return"keyClick"===t&&(o=!1!==i.keyClick.emit(n)&&o),"keyHover"===t&&(o=!1!==i.keyHover.emit(n)&&o),"capture"===t&&(o=!1!==i.capture.emit(n)&&o),"descriptionChanged"===t&&(o=!1!==i.descriptionChanged.emit(n)&&o),o},ao,ro)),i["\u0275did"](1,638976,null,0,io,[oo,P.c],{moduleConfig:[0,"moduleConfig"],keybindAnimationEnabled:[1,"keybindAnimationEnabled"],capturingEnabled:[2,"capturingEnabled"],selectedKey:[3,"selectedKey"],selected:[4,"selected"],halvesSplit:[5,"halvesSplit"],keyboardLayout:[6,"keyboardLayout"],description:[7,"description"],showDescription:[8,"showDescription"]},{keyClick:"keyClick",keyHover:"keyHover",capture:"capture",descriptionChanged:"descriptionChanged"}),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,t.context.$implicit.modules,n.keybindAnimationEnabled,n.capturingEnabled,n.selectedKey,(null==n.selectedKey?null:n.selectedKey.layerId)===t.context.index,n.halvesSplit,n.keyboardLayout,n.description,!0)},function(e,t){e(t,0,0,t.component.layerAnimationState[t.context.index])})}function fo(e){return i["\u0275vid"](2,[(e()(),i["\u0275and"](16777216,null,null,1,null,po)),i["\u0275did"](1,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,n.layers,n.trackKeyboard)},null)}var ho=n("rlkT"),yo=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function mo(e){return i["\u0275vid"](2,[i["\u0275qud"](402653184,1,{selector:0}),(e()(),i["\u0275eld"](1,0,[[1,0],["selector",1]],null,0,"select",[],null,null,null,null,null))],null,null)}var go=function(){function e(e){this.captureService=e,this.isLink=!1,this.captureText="Capture keystroke",this.capture=new i.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 t=e.keyCode;this.record?(e.preventDefault(),e.stopPropagation(),this.first=!1,this.captureService.hasMap(t)?(this.saveScanCode(this.captureService.getMap(t)),this.scanCodePressed=!0):this.captureService.setModifier(1===e.location,t)):13===t&&(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 t=this.captureService.getModifiers(!0),n=this.captureService.getModifiers(!1);this.capture.emit({code:e,left:t,right:n}),this.reset()},e.prototype.reset=function(){this.first=!1,this.captureService.initModifiers()},e}(),vo=i["\u0275crt"]({encapsulation:0,styles:[[".link--capture-keystroke[_ngcontent-%COMP%]{padding:7px 0;text-decoration:none;border:0;width:100%}.link--capture-keystroke[_ngcontent-%COMP%]:focus{outline:0}.btn--capture-keystroke[_ngcontent-%COMP%]{display:inline-block;margin:0 0 0 .25rem}.fa-circle[_ngcontent-%COMP%]{color:#c00}"]],data:{}});function bo(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](0,null,["\n","\n"]))],null,function(e,t){e(t,0,0,t.component.captureText)})}function ko(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\nCapturing ...\n"]))],null,null)}function _o(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,11,"button",[["type","button"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.start()&&o),o},null,null)),i["\u0275did"](1,278528,null,0,d.i,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{ngClass:[0,"ngClass"]},null),i["\u0275pod"](2,{"btn btn-sm btn--capture-keystroke":0,"btn-link link--capture-keystroke":1,"btn-default":2,"btn-info":3}),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-circle"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,bo)),i["\u0275did"](7,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,ko)),i["\u0275did"](10,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,e(t,2,0,!n.isLink,n.isLink,!n.record&&!n.isLink,n.record&&!n.isLink)),e(t,7,0,!n.record),e(t,10,0,n.record)},null)}var wo=n("TToO"),Ao=function(){return function(){this.validAction=new i.EventEmitter}}(),To=function(e){function t(t){var n=e.call(this)||this;return n.mapper=t,n.scanCodeTemplateResult=function(e){return e.id?e.additional&&e.additional.explanation?jQuery('<span class="select2-item"><span>'+e.text+'</span><span class="scancode--searchterm"> '+e.additional.explanation+"</span></span>"):jQuery('<span class="select2-item">'+e.text+"</span>"):e.text},n.leftModifiers=["LShift","LCtrl","LSuper","LAlt"],n.rightModifiers=["RShift","RCtrl","RSuper","RAlt"],n.scanCodeGroups=[{id:"0",text:"None"}],n.scanCodeGroups=n.scanCodeGroups.concat(qe.SCANCODES),n.secondaryRoleGroups=qe.SECONDARY_ROLES,n.leftModifierSelects=Array(n.leftModifiers.length).fill(!1),n.rightModifierSelects=Array(n.rightModifiers.length).fill(!1),n.selectedScancodeOption=n.scanCodeGroups[0],n.selectedSecondaryRoleIndex=-1,n.options={templateResult:n.scanCodeTemplateResult,matcher:function(e,t,n){var o=t.toUpperCase().indexOf(e.toUpperCase())>-1;return!o&&n.additional&&n.additional.explanation&&(o=n.additional.explanation.toUpperCase().indexOf(e.toUpperCase())>-1),o}},n}return Object(wo.__extends)(t,e),t.prototype.ngOnChanges=function(){this.fromKeyAction(this.defaultKeyAction),this.validAction.emit(this.keyActionValid())},t.prototype.keyActionValid=function(e){return e||(e=this.toKeyAction()),!!e&&(e.scancode>0||e.modifierMask>0)},t.prototype.onKeysCapture=function(e){this.selectedScancodeOption=e.code?this.findScancodeOptionByScancode(e.code,qe.KeystrokeType.basic):this.scanCodeGroups[0],this.leftModifierSelects=e.left,this.rightModifierSelects=e.right,this.validAction.emit(this.keyActionValid())},t.prototype.fromKeyAction=function(e){if(!(e instanceof qe.KeystrokeAction))return!1;var t=e;this.selectedScancodeOption=this.findScancodeOptionByScancode(t.scancode||0,t.type);for(var n=this.leftModifiers.length,o=0;o<n;++o)this.leftModifierSelects[this.mapper.modifierMapper(o)]=1==(t.modifierMask>>o&1);for(o=n;o<n+this.rightModifierSelects.length;++o){var i=this.mapper.modifierMapper(o)-n;this.rightModifierSelects[i]=1==(t.modifierMask>>o&1)}return this.selectedSecondaryRoleIndex=void 0!==t.secondaryRoleAction?this.mapper.modifierMapper(t.secondaryRoleAction):-1,!0},t.prototype.toKeyAction=function(){var e=new qe.KeystrokeAction,t=this.toScancodeTypePair(this.selectedScancodeOption);e.scancode=t[0],e.type="media"===t[1]?e.scancode>255?qe.KeystrokeType.longMedia:qe.KeystrokeType.shortMedia:qe.KeystrokeType[t[1]],e.modifierMask=0;for(var n=this.leftModifierSelects.concat(this.rightModifierSelects).map(function(e){return e?1:0}),o=0;o<n.length;++o)e.modifierMask|=n[o]<<this.mapper.modifierMapper(o);if(e.secondaryRoleAction=-1===this.selectedSecondaryRoleIndex?void 0:this.mapper.modifierMapper(this.selectedSecondaryRoleIndex),this.keyActionValid(e))return e},t.prototype.toggleModifier=function(e,t){var n=e?this.rightModifierSelects:this.leftModifierSelects;n[t]=!n[t],this.validAction.emit(this.keyActionValid())},t.prototype.onSecondaryRoleChange=function(e){this.selectedSecondaryRoleIndex=+e.value},t.prototype.onScancodeChange=function(e){this.selectedScancodeOption=this.findScancodeOptionById(e.value),this.validAction.emit(this.keyActionValid())},t.prototype.findScancodeOptionBy=function(e){for(var t,n=this.scanCodeGroups.slice();n.length>0;){var o=n.shift();if(e(o)){t=o;break}o.children&&n.push.apply(n,o.children)}return t},t.prototype.findScancodeOptionById=function(e){return this.findScancodeOptionBy(function(t){return t.id===e})},t.prototype.findScancodeOptionByScancode=function(e,t){var n=t===qe.KeystrokeType.shortMedia||t===qe.KeystrokeType.longMedia?"media":qe.KeystrokeType[t];return this.findScancodeOptionBy(function(t){var o=t.additional;return!(!o||o.scancode!==e||o.type!==n)||!(o&&void 0!==o.scancode||+t.id!==e)})},t.prototype.toScancodeTypePair=function(e){var t,n;return e.additional?(t=e.additional.scancode,n=e.additional.type||"basic"):n="basic",void 0===t&&(t=+e.id),[t,n]},t}(Ao),Co=i["\u0275crt"]({encapsulation:0,styles:[["[_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}"]],data:{}});function xo(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.toggleModifier(!1,e.context.index)&&o),o},null,null)),(e()(),i["\u0275ted"](1,null,["\n ","\n "]))],null,function(e,t){e(t,0,0,t.component.leftModifierSelects[t.context.index]),e(t,1,0,t.context.$implicit)})}function Oo(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.toggleModifier(!0,e.context.index)&&o),o},null,null)),(e()(),i["\u0275ted"](1,null,["\n ","\n "]))],null,function(e,t){e(t,0,0,t.component.rightModifierSelects[t.context.index]),e(t,1,0,t.context.$implicit)})}function So(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,11,"div",[["class","long-press-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"b",[["class","setting-label"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Secondary role:"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,1,"select2",[],null,[[null,"valueChanged"]],function(e,t,n){var o=!0;return"valueChanged"===t&&(o=!1!==e.component.onSecondaryRoleChange(n)&&o),o},mo,yo)),i["\u0275did"](6,4964352,[["secondaryRoleSelect",4]],0,ho.Select2Component,[i.Renderer],{data:[0,"data"],value:[1,"value"],width:[2,"width"]},{valueChanged:"valueChanged"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["maxWidth","620"],["name","question-circle"],["title","<p class='text-left'>The secondary role activates when another key gets pressed while holding this key.</p>\n <p class='text-left'>Let's say that the scancode is Escape and the secondary role is Mouse. Then:</p>\n <ul class='text-left'>\n <li>Tap this key to trigger Escape. <i>(Primary role)</i></li>\n <li>Hold this key and press another key to activate the relevant key of the Mouse layer. <i>(Secondary role)</i></li>\n </ul>\n <p class='text-left pt-3'>The secondary role can be any layer or modifier.</p>"]],[[1,"data-placement",0]],null,null,De,we)),i["\u0275did"](9,114688,null,0,_e,[],{name:[0,"name"]},null),i["\u0275did"](10,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"],html:[1,"html"],maxWidth:[2,"maxWidth"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,6,0,n.secondaryRoleGroups,n.selectedSecondaryRoleIndex.toString(),140),e(t,9,0,"question-circle"),e(t,10,0,"<p class='text-left'>The secondary role activates when another key gets pressed while holding this key.</p>\n <p class='text-left'>Let's say that the scancode is Escape and the secondary role is Mouse. Then:</p>\n <ul class='text-left'>\n <li>Tap this key to trigger Escape. <i>(Primary role)</i></li>\n <li>Hold this key and press another key to activate the relevant key of the Mouse layer. <i>(Secondary role)</i></li>\n </ul>\n <p class='text-left pt-3'>The secondary role can be any layer or modifier.</p>","true","620")},function(e,t){e(t,8,0,i["\u0275nov"](t,10).placement)})}function Mo(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,14,"div",[["class","scancode-options"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"b",[["class","setting-label"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Scancode:"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,1,"select2",[],null,[[null,"valueChanged"]],function(e,t,n){var o=!0;return"valueChanged"===t&&(o=!1!==e.component.onScancodeChange(n)&&o),o},mo,yo)),i["\u0275did"](6,4964352,null,0,ho.Select2Component,[i.Renderer],{data:[0,"data"],value:[1,"value"],width:[2,"width"],options:[3,"options"]},{valueChanged:"valueChanged"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["maxWidth","330"],["name","question-circle"],["title","<p>Looking for a non-US character? Just pick the character of the desired key according to the US layout.</p>\n <p>Let's say you're a German user and want to map the \xd6 character. You can see that on US keyboards this is the semicolon key, so choose semicolon in this dropdown.</p>"]],[[1,"data-placement",0]],null,null,De,we)),i["\u0275did"](9,114688,null,0,_e,[],{name:[0,"name"]},null),i["\u0275did"](10,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"],html:[1,"html"],maxWidth:[2,"maxWidth"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,1,"capture-keystroke-button",[["tabindex","0"]],null,[[null,"capture"],[null,"keyup"],[null,"keydown"],[null,"focusout"]],function(e,t,n){var o=!0,r=e.component;return"keyup"===t&&(o=!1!==i["\u0275nov"](e,13).onKeyUp(n)&&o),"keydown"===t&&(o=!1!==i["\u0275nov"](e,13).onKeyDown(n)&&o),"focusout"===t&&(o=!1!==i["\u0275nov"](e,13).onFocusOut()&&o),"capture"===t&&(o=!1!==r.onKeysCapture(n)&&o),o},_o,vo)),i["\u0275did"](13,49152,null,0,go,[Cn],null,{capture:"capture"}),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](16,0,null,null,19,"div",[["class","modifier-options"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](18,0,null,null,1,"b",[["class","setting-label"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Modifiers:"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](21,0,null,null,13,"div",[["class","btn-toolbar modifiers"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](23,0,null,null,4,"div",[["class","btn-group btn-group-sm modifiers__left"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,xo)),i["\u0275did"](26,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](29,0,null,null,4,"div",[["class","btn-group btn-group-sm modifiers__right"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Oo)),i["\u0275did"](32,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,So)),i["\u0275did"](38,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n\n"])),(e()(),i["\u0275eld"](40,0,null,null,9,"div",[["class","disabled-state--text"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](42,0,null,null,0,"i",[["class","fa fa-info-circle"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n When a key is configured as layer switcher key, you can't assign other functions to it.\n To assign a scancode to the key, set the "])),(e()(),i["\u0275eld"](44,0,null,null,1,"em",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Layer action"])),(e()(),i["\u0275ted"](-1,null,[" to "])),(e()(),i["\u0275eld"](47,0,null,null,1,"em",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["None"])),(e()(),i["\u0275ted"](-1,null,[".\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,6,0,n.scanCodeGroups,n.selectedScancodeOption.id,200,n.options),e(t,9,0,"question-circle"),e(t,10,0,"<p>Looking for a non-US character? Just pick the character of the desired key according to the US layout.</p>\n <p>Let's say you're a German user and want to map the \xd6 character. You can see that on US keyboards this is the semicolon key, so choose semicolon in this dropdown.</p>","true","330"),e(t,26,0,n.leftModifiers),e(t,32,0,n.rightModifiers),e(t,38,0,n.secondaryRoleEnabled)},function(e,t){e(t,8,0,i["\u0275nov"](t,10).placement)})}var Eo=function(e){function t(){var t=e.call(this)||this;return t.toggleData=[{id:"active",text:"Activate"},{id:"toggle",text:"Toggle"}],t.layerData=[{id:0,text:"Mod"},{id:1,text:"Fn"},{id:2,text:"Mouse"}],t.toggle="active",t.layer=qe.LayerName.mod,t}return Object(wo.__extends)(t,e),t.prototype.ngOnChanges=function(e){e.defaultKeyAction&&this.fromKeyAction(this.defaultKeyAction),e.currentLayer&&(this.isNotBase=this.currentLayer>0),this.validAction.emit(!0)},t.prototype.keyActionValid=function(){return!this.isNotBase},t.prototype.fromKeyAction=function(e){if(!(e instanceof qe.SwitchLayerAction))return!1;var t=e;switch(t.switchLayerMode){case qe.SwitchLayerMode.holdAndDoubleTapToggle:this.toggle="active",this.lockLayerWhenDoubleTapping=!0;break;case qe.SwitchLayerMode.hold:this.toggle="active",this.lockLayerWhenDoubleTapping=!1;break;default:this.toggle="toggle",this.lockLayerWhenDoubleTapping=!1}return this.layer=t.layer,!0},t.prototype.toKeyAction=function(){var e=new qe.SwitchLayerAction;if(e.switchLayerMode="toggle"===this.toggle?qe.SwitchLayerMode.toggle:!this.allowLayerDoubleTap||this.lockLayerWhenDoubleTapping?qe.SwitchLayerMode.holdAndDoubleTapToggle:qe.SwitchLayerMode.hold,e.layer=this.layer,!this.keyActionValid())throw new Error("KeyAction is invalid!");return e},t.prototype.toggleChanged=function(e){this.toggle=e},t.prototype.layerChanged=function(e){this.layer=+e},t}(Ao),Po=i["\u0275crt"]({encapsulation:0,styles:[["[_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}"]],data:{}});function Io(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,3,"option",[],[[8,"selected",0]],null,null,null,null)),i["\u0275did"](1,147456,null,0,je.NgSelectOption,[i.ElementRef,i.Renderer2,[8,null]],{value:[0,"value"]},null),i["\u0275did"](2,147456,null,0,je["\u0275q"],[i.ElementRef,i.Renderer2,[8,null]],{value:[0,"value"]},null),(e()(),i["\u0275ted"](3,null,["\n ","\n "]))],function(e,t){e(t,1,0,t.context.$implicit.id),e(t,2,0,t.context.$implicit.id)},function(e,t){e(t,0,0,t.component.toggle===t.context.$implicit.id),e(t,3,0,t.context.$implicit.text)})}function Ro(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,3,"option",[],[[8,"selected",0]],null,null,null,null)),i["\u0275did"](1,147456,null,0,je.NgSelectOption,[i.ElementRef,i.Renderer2,[8,null]],{value:[0,"value"]},null),i["\u0275did"](2,147456,null,0,je["\u0275q"],[i.ElementRef,i.Renderer2,[8,null]],{value:[0,"value"]},null),(e()(),i["\u0275ted"](3,null,["\n ","\n "]))],function(e,t){e(t,1,0,t.context.$implicit.id),e(t,2,0,t.context.$implicit.id)},function(e,t){e(t,0,0,t.component.layer===t.context.$implicit.id),e(t,3,0,t.context.$implicit.text)})}function Do(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["layer by tapping this key."]))],null,null)}function No(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["layer by holding this key."]))],null,null)}function jo(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,14,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,11,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,8,"label",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,5,"input",[["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var o=!0,r=e.component;return"change"===t&&(o=!1!==i["\u0275nov"](e,7).onChange(n.target.checked)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,7).onTouched()&&o),"ngModelChange"===t&&(o=!1!==(r.lockLayerWhenDoubleTapping=n)&&o),o},null,null)),i["\u0275did"](7,16384,null,0,je.CheckboxControlValueAccessor,[i.Renderer2,i.ElementRef],null,null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[je.CheckboxControlValueAccessor]),i["\u0275did"](9,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](11,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,[" Lock layer when double tapping this key.\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,9,0,t.component.lockLayerWhenDoubleTapping)},function(e,t){e(t,6,0,i["\u0275nov"](t,11).ngClassUntouched,i["\u0275nov"](t,11).ngClassTouched,i["\u0275nov"](t,11).ngClassPristine,i["\u0275nov"](t,11).ngClassDirty,i["\u0275nov"](t,11).ngClassValid,i["\u0275nov"](t,11).ngClassInvalid,i["\u0275nov"](t,11).ngClassPending)})}function Lo(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,32,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,26,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,4,"select",[],null,[[null,"change"]],function(e,t,n){var o=!0;return"change"===t&&(o=!1!==e.component.toggleChanged(n.target.value)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Io)),i["\u0275did"](8,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["the"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,4,"select",[],null,[[null,"change"]],function(e,t,n){var o=!0;return"change"===t&&(o=!1!==e.component.layerChanged(n.target.value)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ro)),i["\u0275did"](17,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](20,0,null,null,8,"span",[],null,null,null,null,null)),i["\u0275did"](21,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Do)),i["\u0275did"](24,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,No)),i["\u0275did"](27,16384,null,0,d.p,[i.ViewContainerRef,i.TemplateRef,d.n],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,jo)),i["\u0275did"](32,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,8,0,n.toggleData),e(t,17,0,n.layerData),e(t,21,0,n.toggle),e(t,24,0,"toggle"),e(t,32,0,"active"===n.toggle&&n.allowLayerDoubleTap)},null)}function Uo(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Layer switching is only possible from the base layer. "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,null)}function Vo(e){return i["\u0275vid"](0,[(e()(),i["\u0275and"](16777216,null,null,1,null,Lo)),i["\u0275did"](1,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,Uo)),i["\u0275did"](4,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,!n.isNotBase),e(t,4,0,n.isNotBase)},null)}var Fo=function(e){function t(){var t=e.call(this)||this;return t.MouseActionParam=qe.MouseActionParam,t.selectedPageIndex=0,t.pages=["Move","Scroll","Click","Speed"],t}return Object(wo.__extends)(t,e),t.prototype.ngOnChanges=function(){this.fromKeyAction(this.defaultKeyAction),this.validAction.emit(this.keyActionValid())},t.prototype.keyActionValid=function(){return void 0!==this.mouseActionParam},t.prototype.fromKeyAction=function(e){if(!(e instanceof qe.MouseAction))return!1;var t=e;switch(this.mouseActionParam=t.mouseAction,t.mouseAction===qe.MouseActionParam.moveUp&&(this.selectedPageIndex=0),t.mouseAction){case qe.MouseActionParam.moveDown:case qe.MouseActionParam.moveUp:case qe.MouseActionParam.moveLeft:case qe.MouseActionParam.moveRight:this.selectedPageIndex=0;break;case qe.MouseActionParam.scrollDown:case qe.MouseActionParam.scrollUp:case qe.MouseActionParam.scrollLeft:case qe.MouseActionParam.scrollRight:this.selectedPageIndex=1;break;case qe.MouseActionParam.leftClick:case qe.MouseActionParam.middleClick:case qe.MouseActionParam.rightClick:this.selectedPageIndex=2;break;case qe.MouseActionParam.decelerate:case qe.MouseActionParam.accelerate:this.selectedPageIndex=3;break;default:return!1}return!0},t.prototype.toKeyAction=function(){var e=new qe.MouseAction;return e.mouseAction=this.mouseActionParam,e},t.prototype.changePage=function(e){e<-1||e>3?console.error("Invalid index error: "+e):(this.selectedPageIndex=e,this.mouseActionParam=void 0,this.validAction.emit(!1))},t.prototype.setMouseActionParam=function(e){this.mouseActionParam=e,this.validAction.emit(!0)},t}(Ao),Ko=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex}.popover-content[_nghost-%COMP%]{padding:10px;display:-webkit-box;display:-ms-flexbox;display:flex;-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}"]],data:{}});function Bo(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,4,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.changePage(e.context.index)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](3,null,[" ",""])),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){e(t,0,0,t.component.selectedPageIndex===t.context.index),e(t,3,0,t.context.$implicit)})}function Ho(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,35,"div",[["class","mouse__config mouse__config--move text-center"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.moveUp)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,0,"i",[["class","fa fa-arrow-up"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,16,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.moveLeft)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,0,"i",[["class","fa fa-arrow-left"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](17,0,null,null,3,"button",[["class","btn btn-default btn-lg btn-placeholder"],["type","button"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](19,0,null,null,0,"i",[["class","fa fa-square"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](22,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.moveRight)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](24,0,null,null,0,"i",[["class","fa fa-arrow-right"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](28,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](30,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.moveDown)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](32,0,null,null,0,"i",[["class","fa fa-arrow-down"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,4,0,n.mouseActionParam===n.MouseActionParam.moveUp),e(t,12,0,n.mouseActionParam===n.MouseActionParam.moveLeft),e(t,22,0,n.mouseActionParam===n.MouseActionParam.moveRight),e(t,30,0,n.mouseActionParam===n.MouseActionParam.moveDown)})}function Wo(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,35,"div",[["class","mouse__config mouse__config--scroll text-center"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.scrollUp)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,0,"i",[["class","fa fa-angle-double-up"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,16,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.scrollLeft)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,0,"i",[["class","fa fa-angle-double-left"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](17,0,null,null,3,"button",[["class","btn btn-default btn-lg btn-placeholder"],["type","button"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](19,0,null,null,0,"i",[["class","fa fa-square"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](22,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.scrollRight)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](24,0,null,null,0,"i",[["class","fa fa-angle-double-right"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](28,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](30,0,null,null,3,"button",[["class","btn btn-default btn-lg"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.scrollDown)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](32,0,null,null,0,"i",[["class","fa fa-angle-double-down"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,4,0,n.mouseActionParam===n.MouseActionParam.scrollUp),e(t,12,0,n.mouseActionParam===n.MouseActionParam.scrollLeft),e(t,22,0,n.mouseActionParam===n.MouseActionParam.scrollRight),e(t,30,0,n.mouseActionParam===n.MouseActionParam.scrollDown)})}function qo(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,13,"div",[["class","mouse__config mouse__config--click"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,10,"div",[["class","btn-group col-xs-12"],["role","group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,1,"button",[["class","btn btn-default col-xs-4"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.leftClick)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["Left"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,1,"button",[["class","btn btn-default col-xs-4"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.middleClick)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["Middle"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,1,"button",[["class","btn btn-default col-xs-4"],["type","button"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.rightClick)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["Right"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,4,0,n.mouseActionParam===n.MouseActionParam.leftClick),e(t,7,0,n.mouseActionParam===n.MouseActionParam.middleClick),e(t,10,0,n.mouseActionParam===n.MouseActionParam.rightClick)})}function zo(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,22,"div",[["class","mouse__config mouse__config--speed text-center"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,4,"div",[["class","help-text--mouse-speed text-left"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Press this key along with mouse movement/scrolling to accelerate/decelerate its speed."])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,13,"div",[["class","btn-group btn-group-lg"],["role","group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,4,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.decelerate)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n -\n "])),(e()(),i["\u0275eld"](12,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Decelerate"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](16,0,null,null,4,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.setMouseActionParam(i.MouseActionParam.accelerate)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n +\n "])),(e()(),i["\u0275eld"](18,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Accelerate"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,function(e,t){var n=t.component;e(t,10,0,n.mouseActionParam===n.MouseActionParam.decelerate),e(t,16,0,n.mouseActionParam===n.MouseActionParam.accelerate)})}function $o(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,null)}function Go(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,7,"div",[["class","mouse-action col-sm-4"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,4,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Bo)),i["\u0275did"](5,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](9,0,null,null,17,"div",[["class","details col-sm-8"]],null,null,null,null,null)),i["\u0275did"](10,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ho)),i["\u0275did"](13,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Wo)),i["\u0275did"](16,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,qo)),i["\u0275did"](19,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,zo)),i["\u0275did"](22,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,$o)),i["\u0275did"](25,16384,null,0,d.p,[i.ViewContainerRef,i.TemplateRef,d.n],null,null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,5,0,n.pages),e(t,10,0,n.selectedPageIndex),e(t,13,0,0),e(t,16,0,1),e(t,19,0,2),e(t,22,0,3)},null)}var Yo=["[_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}"],Qo=function(){return function(){var e=this;this.valid=new i.EventEmitter,this.validate=function(){return e.valid.emit(e.isMacroValid())}}}(),Jo=/[^\x00-\x7F]/g,Zo=function(e){function t(t){var n=e.call(this)||this;return n.renderer=t,n.isMacroValid=function(){return!!n.input.nativeElement.value},n.init=function(){n.macroAction||(n.macroAction=new qe.TextMacroAction)},n}return Object(wo.__extends)(t,e),t.prototype.ngOnInit=function(){this.init()},t.prototype.ngAfterViewInit=function(){this.renderer.invokeElementMethod(this.input.nativeElement,"focus")},t.prototype.onTextChange=function(){this.init(),this.macroAction.text=this.input.nativeElement.value},t.prototype.onKeydown=function(e){new RegExp(Jo).test(e.key)&&(e.preventDefault(),e.stopPropagation())},t.prototype.onPaste=function(e){e.preventDefault();var t=this.input.nativeElement,n=e.clipboardData.getData("text/plain"),o=n&&n.replace(Jo,"")||"";if(0!==o.length){var i=t.value||"",r=i.substr(0,t.selectionStart),l=t.selectionEnd,s=i.substr(t.selectionEnd);t.value=r+o+s,t.selectionStart=t.selectionEnd=l+o.length-(0===l?0:1),this.macroAction.text=t.value}},t}(Qo),Xo=i["\u0275crt"]({encapsulation:0,styles:[["[_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}"]],data:{}});function ei(e){return i["\u0275vid"](0,[i["\u0275qud"](402653184,1,{input:0}),(e()(),i["\u0275eld"](1,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Type text"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,[[1,0],["macroTextInput",1]],null,1,"textarea",[["class","macro__text-input"],["name","macro-text"]],null,[[null,"keydown"],[null,"change"],[null,"keyup"],[null,"paste"]],function(e,t,n){var o=!0,i=e.component;return"keydown"===t&&(o=!1!==i.onKeydown(n)&&o),"change"===t&&(o=!1!==i.onTextChange()&&o),"keyup"===t&&(o=!1!==i.validate()&&o),"paste"===t&&(o=!1!==i.onPaste(n)&&o),o},null,null)),(e()(),i["\u0275ted"](7,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,7,0,null==n.macroAction?null:n.macroAction.text)})}var ti=function(e){function t(){var t=e.call(this)||this;return t.keymapOptions=[],t}return Object(wo.__extends)(t,e),t.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)},t.prototype.onChange=function(e){this.selectedKeymap="-1"===e.value?void 0:this.keymaps.find(function(t){return t.abbreviation===e.value})},t.prototype.keyActionValid=function(){return!!this.selectedKeymap},t.prototype.fromKeyAction=function(e){if(!(e instanceof qe.SwitchKeymapAction))return!1;var t=e;this.selectedKeymap=this.keymaps.find(function(e){return e.abbreviation===t.keymapAbbreviation})},t.prototype.toKeyAction=function(){if(!this.keyActionValid())throw new Error("KeyAction is not valid. No selected keymap!");var e=new qe.SwitchKeymapAction;return e.keymapAbbreviation=this.selectedKeymap.abbreviation,e},t}(Ao),ni=function(e){function t(t){var n=e.call(this)||this;return n.subscription=t.let(Object(xn.d)()).subscribe(function(e){return n.macros=e}),n.macroOptions=[],n.selectedMacroIndex=0,n}return Object(wo.__extends)(t,e),t.prototype.ngOnInit=function(){this.macroOptions=this.macros.map(function(e,t){return{id:t.toString(),text:e.name}})},t.prototype.ngOnChanges=function(){this.fromKeyAction(this.defaultKeyAction),this.validAction.emit(!0)},t.prototype.onChange=function(e){this.selectedMacroIndex=+e.value},t.prototype.keyActionValid=function(){return this.selectedMacroIndex>=0},t.prototype.fromKeyAction=function(e){if(!(e instanceof qe.PlayMacroAction))return!1;var t=e;return this.selectedMacroIndex=this.macros.findIndex(function(e){return t.macroId===e.id}),!0},t.prototype.toKeyAction=function(){if(!this.keyActionValid())throw new Error("KeyAction is not valid. No selected macro!");var e=new qe.PlayMacroAction;return e.macroId=this.macros[this.selectedMacroIndex].id,e},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t}(Ao),oi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(wo.__extends)(t,e),t.prototype.ngOnInit=function(){this.validAction.emit(!0)},t.prototype.keyActionValid=function(){return!0},t.prototype.fromKeyAction=function(){return!1},t.prototype.toKeyAction=function(){},t}(Ao),ii=function(e){return e[e.Tap=0]="Tap",e[e.Press=1]="Press",e[e.Release=2]="Release",e}({}),ri=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.TabName=ii,t.isMacroValid=function(){var e=t.getKeyMacroAction();return!!e.scancode||!!e.modifierMask},t}return Object(wo.__extends)(t,e),t.prototype.ngOnInit=function(){this.macroAction||(this.macroAction=new qe.KeyMacroAction),this.defaultKeyAction=new qe.KeystrokeAction(this.macroAction),this.selectTab(this.getTabName(this.macroAction))},t.prototype.selectTab=function(e){this.activeTab=e,this.validate()},t.prototype.getTabName=function(e){return e.action?e.action===qe.MacroKeySubAction.press?ii.Press:e.action===qe.MacroKeySubAction.release?ii.Release:void 0:ii.Tap},t.prototype.getActionType=function(e){switch(e){case ii.Tap:return qe.MacroKeySubAction.tap;case ii.Press:return qe.MacroKeySubAction.press;case ii.Release:return qe.MacroKeySubAction.release;default:throw new Error("Invalid tab type")}},t.prototype.getKeyMacroAction=function(){var e=new qe.KeyMacroAction(this.keypressTab.toKeyAction());return e.action=this.getActionType(this.activeTab),e},t}(Qo),li=i["\u0275crt"]({encapsulation:0,styles:[Yo,[".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}"]],data:{}});function si(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Tap key"]))],null,null)}function ai(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Press key"]))],null,null)}function ui(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Release key"]))],null,null)}function ci(e){return i["\u0275vid"](0,[i["\u0275qud"](402653184,1,{selectedTab:0}),i["\u0275qud"](402653184,2,{keypressTab:0}),(e()(),i["\u0275eld"](2,0,null,null,58,"div",[["class","col-xs-12 macro-key__container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,37,"div",[["class","col-xs-3 macro-key__types"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,34,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,[["keyMove",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Tap)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,0,"i",[["class","fa fa-hand-pointer-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Tap key"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](19,0,[["keyHold",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Press)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](21,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](23,0,null,null,0,"i",[["class","fa fa-hand-rock-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](25,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Press key"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](30,0,[["keyRelease",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Release)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](32,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](34,0,null,null,0,"i",[["class","fa fa-hand-paper-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](36,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Release key"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](43,0,null,null,16,"div",[["class","col-xs-9 macro-key__action-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](45,0,null,null,13,"div",[["class","macro-key__action"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,si)),i["\u0275did"](48,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,ai)),i["\u0275did"](51,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,ui)),i["\u0275did"](54,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](56,0,null,null,1,"keypress-tab",[],null,[[null,"validAction"]],function(e,t,n){var o=!0;return"validAction"===t&&(o=!1!==e.component.validate()&&o),o},Mo,Co)),i["\u0275did"](57,573440,[[2,4],["keypressTab",4]],0,To,[Bt],{defaultKeyAction:[0,"defaultKeyAction"],secondaryRoleEnabled:[1,"secondaryRoleEnabled"]},{validAction:"validAction"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,48,0,n.activeTab===n.TabName.Tap),e(t,51,0,n.activeTab===n.TabName.Press),e(t,54,0,n.activeTab===n.TabName.Release),e(t,57,0,n.defaultKeyAction,!1)},function(e,t){var n=t.component;e(t,8,0,n.activeTab===n.TabName.Tap),e(t,19,0,n.activeTab===n.TabName.Press),e(t,30,0,n.activeTab===n.TabName.Release)})}var di=function(e){return 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",e}({}),pi=function(e){function t(){var t=e.call(this)||this;return t.TabName=di,t.isMacroValid=function(){switch(t.macroAction.constructor){case qe.MoveMouseMacroAction:case qe.ScrollMouseMacroAction:var e=t.macroAction,n=e.x,o=e.y;return void 0!==n&&null!==n&&void 0!==o&&null!==o&&(0!==n||0!==o)&&n<1e4&&n>-1e4&&o<1e4&&o>-1e4;case qe.MouseButtonMacroAction:return!!t.macroAction.mouseButtonsMask;default:return!0}},t.buttonLabels=["Left","Middle","Right"],t.selectedButtons=Array(t.buttonLabels.length).fill(!1),t}return Object(wo.__extends)(t,e),t.prototype.ngOnInit=function(){this.macroAction||(this.macroAction=new qe.MouseButtonMacroAction,this.macroAction.action=qe.MacroMouseSubAction.click);var e=this.getTabName(this.macroAction);this.selectTab(e),[di.Click,di.Hold,di.Release].includes(this.activeTab)&&(this.selectedButtons=this.macroAction.getMouseButtons())},t.prototype.ngOnChanges=function(){this.ngOnInit()},t.prototype.selectTab=function(e){if(this.activeTab=e,e!==this.getTabName(this.macroAction)){switch(this.selectedButtons=[],e){case di.Scroll:this.macroAction=new qe.ScrollMouseMacroAction;break;case di.Move:this.macroAction=new qe.MoveMouseMacroAction;break;default:this.macroAction=new qe.MouseButtonMacroAction,this.macroAction.action=this.getAction(e)}this.validate()}},t.prototype.setMouseClick=function(e){this.selectedButtons[e]=!this.selectedButtons[e],this.macroAction.setMouseButtons(this.selectedButtons),this.validate()},t.prototype.hasButton=function(e){return this.selectedButtons[e]},t.prototype.getAction=function(e){switch(e){case di.Click:return qe.MacroMouseSubAction.click;case di.Hold:return qe.MacroMouseSubAction.hold;case di.Release:return qe.MacroMouseSubAction.release;default:throw new Error("Invalid tab name: "+di[e])}},t.prototype.getTabName=function(e){if(e instanceof qe.MouseButtonMacroAction){if(!e.action||e.isOnlyClickAction())return di.Click;if(e.isOnlyHoldAction())return di.Hold;if(e.isOnlyReleaseAction())return di.Release}else{if(e instanceof qe.MoveMouseMacroAction)return di.Move;if(e instanceof qe.ScrollMouseMacroAction)return di.Scroll}return di.Move},t}(Qo),fi=i["\u0275crt"]({encapsulation:0,styles:[Yo,[".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}"]],data:{}});function hi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,[[1,0],["tab",1]],null,39,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Move mouse pointer"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,33,"div",[["class","form-horizontal"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,1,"label",[["for","move-mouse-x"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["X:"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,8,"input",[["class","form-control"],["id","move-mouse-x"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var o=!0,r=e.component;return"input"===t&&(o=!1!==i["\u0275nov"](e,13)._handleInput(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,13).onTouched()&&o),"compositionstart"===t&&(o=!1!==i["\u0275nov"](e,13)._compositionStart()&&o),"compositionend"===t&&(o=!1!==i["\u0275nov"](e,13)._compositionEnd(n.target.value)&&o),"change"===t&&(o=!1!==i["\u0275nov"](e,14).onChange(n.target.value)&&o),"input"===t&&(o=!1!==i["\u0275nov"](e,14).onChange(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,14).onTouched()&&o),"ngModelChange"===t&&(o=!1!==(r.macroAction.x=n)&&o),"keyup"===t&&(o=!1!==r.validate()&&o),o},null,null)),i["\u0275did"](13,16384,null,0,je.DefaultValueAccessor,[i.Renderer2,i.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),i["\u0275did"](14,16384,null,0,je["\u0275bc"],[i.Renderer2,i.ElementRef],null,null),i["\u0275did"](15,540672,null,0,je.MaxLengthValidator,[],{maxlength:[0,"maxlength"]},null),i["\u0275prd"](1024,null,je.NG_VALIDATORS,function(e){return[e]},[je.MaxLengthValidator]),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[je.DefaultValueAccessor,je["\u0275bc"]]),i["\u0275did"](18,671744,null,0,je.NgModel,[[8,null],[2,je.NG_VALIDATORS],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](20,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,[" pixels\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](23,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](25,0,null,null,1,"label",[["for","move-mouse-y"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Y:"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](28,0,null,null,8,"input",[["class","form-control"],["id","move-mouse-y"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var o=!0,r=e.component;return"input"===t&&(o=!1!==i["\u0275nov"](e,29)._handleInput(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,29).onTouched()&&o),"compositionstart"===t&&(o=!1!==i["\u0275nov"](e,29)._compositionStart()&&o),"compositionend"===t&&(o=!1!==i["\u0275nov"](e,29)._compositionEnd(n.target.value)&&o),"change"===t&&(o=!1!==i["\u0275nov"](e,30).onChange(n.target.value)&&o),"input"===t&&(o=!1!==i["\u0275nov"](e,30).onChange(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,30).onTouched()&&o),"ngModelChange"===t&&(o=!1!==(r.macroAction.y=n)&&o),"keyup"===t&&(o=!1!==r.validate()&&o),o},null,null)),i["\u0275did"](29,16384,null,0,je.DefaultValueAccessor,[i.Renderer2,i.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),i["\u0275did"](30,16384,null,0,je["\u0275bc"],[i.Renderer2,i.ElementRef],null,null),i["\u0275did"](31,540672,null,0,je.MaxLengthValidator,[],{maxlength:[0,"maxlength"]},null),i["\u0275prd"](1024,null,je.NG_VALIDATORS,function(e){return[e]},[je.MaxLengthValidator]),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[je.DefaultValueAccessor,je["\u0275bc"]]),i["\u0275did"](34,671744,null,0,je.NgModel,[[8,null],[2,je.NG_VALIDATORS],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](36,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,[" pixels\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,15,0,"4"),e(t,18,0,n.macroAction.x),e(t,31,0,"4"),e(t,34,0,n.macroAction.y)},function(e,t){e(t,12,0,i["\u0275nov"](t,15).maxlength?i["\u0275nov"](t,15).maxlength:null,i["\u0275nov"](t,20).ngClassUntouched,i["\u0275nov"](t,20).ngClassTouched,i["\u0275nov"](t,20).ngClassPristine,i["\u0275nov"](t,20).ngClassDirty,i["\u0275nov"](t,20).ngClassValid,i["\u0275nov"](t,20).ngClassInvalid,i["\u0275nov"](t,20).ngClassPending),e(t,28,0,i["\u0275nov"](t,31).maxlength?i["\u0275nov"](t,31).maxlength:null,i["\u0275nov"](t,36).ngClassUntouched,i["\u0275nov"](t,36).ngClassTouched,i["\u0275nov"](t,36).ngClassPristine,i["\u0275nov"](t,36).ngClassDirty,i["\u0275nov"](t,36).ngClassValid,i["\u0275nov"](t,36).ngClassInvalid,i["\u0275nov"](t,36).ngClassPending)})}function yi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,[[1,0],["tab",1]],null,39,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Scroll with mouse"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,33,"div",[["class","form-horizontal"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,1,"label",[["for","scroll-mouse-x"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["X:"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,8,"input",[["class","form-control"],["id","scroll-mouse-x"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var o=!0,r=e.component;return"input"===t&&(o=!1!==i["\u0275nov"](e,13)._handleInput(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,13).onTouched()&&o),"compositionstart"===t&&(o=!1!==i["\u0275nov"](e,13)._compositionStart()&&o),"compositionend"===t&&(o=!1!==i["\u0275nov"](e,13)._compositionEnd(n.target.value)&&o),"change"===t&&(o=!1!==i["\u0275nov"](e,14).onChange(n.target.value)&&o),"input"===t&&(o=!1!==i["\u0275nov"](e,14).onChange(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,14).onTouched()&&o),"ngModelChange"===t&&(o=!1!==(r.macroAction.x=n)&&o),"keyup"===t&&(o=!1!==r.validate()&&o),o},null,null)),i["\u0275did"](13,16384,null,0,je.DefaultValueAccessor,[i.Renderer2,i.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),i["\u0275did"](14,16384,null,0,je["\u0275bc"],[i.Renderer2,i.ElementRef],null,null),i["\u0275did"](15,540672,null,0,je.MaxLengthValidator,[],{maxlength:[0,"maxlength"]},null),i["\u0275prd"](1024,null,je.NG_VALIDATORS,function(e){return[e]},[je.MaxLengthValidator]),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[je.DefaultValueAccessor,je["\u0275bc"]]),i["\u0275did"](18,671744,null,0,je.NgModel,[[8,null],[2,je.NG_VALIDATORS],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](20,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,[" pixels\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](23,0,null,null,14,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](25,0,null,null,1,"label",[["for","scroll-mouse-y"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Y:"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](28,0,null,null,8,"input",[["class","form-control"],["id","scroll-mouse-y"],["max","9999"],["maxlength","4"],["min","-9999"],["type","number"]],[[1,"maxlength",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var o=!0,r=e.component;return"input"===t&&(o=!1!==i["\u0275nov"](e,29)._handleInput(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,29).onTouched()&&o),"compositionstart"===t&&(o=!1!==i["\u0275nov"](e,29)._compositionStart()&&o),"compositionend"===t&&(o=!1!==i["\u0275nov"](e,29)._compositionEnd(n.target.value)&&o),"change"===t&&(o=!1!==i["\u0275nov"](e,30).onChange(n.target.value)&&o),"input"===t&&(o=!1!==i["\u0275nov"](e,30).onChange(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,30).onTouched()&&o),"ngModelChange"===t&&(o=!1!==(r.macroAction.y=n)&&o),"keyup"===t&&(o=!1!==r.validate()&&o),o},null,null)),i["\u0275did"](29,16384,null,0,je.DefaultValueAccessor,[i.Renderer2,i.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),i["\u0275did"](30,16384,null,0,je["\u0275bc"],[i.Renderer2,i.ElementRef],null,null),i["\u0275did"](31,540672,null,0,je.MaxLengthValidator,[],{maxlength:[0,"maxlength"]},null),i["\u0275prd"](1024,null,je.NG_VALIDATORS,function(e){return[e]},[je.MaxLengthValidator]),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[je.DefaultValueAccessor,je["\u0275bc"]]),i["\u0275did"](34,671744,null,0,je.NgModel,[[8,null],[2,je.NG_VALIDATORS],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](36,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,[" pixels\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,15,0,"4"),e(t,18,0,n.macroAction.x),e(t,31,0,"4"),e(t,34,0,n.macroAction.y)},function(e,t){e(t,12,0,i["\u0275nov"](t,15).maxlength?i["\u0275nov"](t,15).maxlength:null,i["\u0275nov"](t,20).ngClassUntouched,i["\u0275nov"](t,20).ngClassTouched,i["\u0275nov"](t,20).ngClassPristine,i["\u0275nov"](t,20).ngClassDirty,i["\u0275nov"](t,20).ngClassValid,i["\u0275nov"](t,20).ngClassInvalid,i["\u0275nov"](t,20).ngClassPending),e(t,28,0,i["\u0275nov"](t,31).maxlength?i["\u0275nov"](t,31).maxlength:null,i["\u0275nov"](t,36).ngClassUntouched,i["\u0275nov"](t,36).ngClassTouched,i["\u0275nov"](t,36).ngClassPristine,i["\u0275nov"](t,36).ngClassDirty,i["\u0275nov"](t,36).ngClassValid,i["\u0275nov"](t,36).ngClassInvalid,i["\u0275nov"](t,36).ngClassPending)})}function mi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Click mouse button"]))],null,null)}function gi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Hold mouse button"]))],null,null)}function vi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Release mouse button"]))],null,null)}function bi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-default"]],[[2,"btn-primary",null]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.setMouseClick(e.context.index)&&o),o},null,null)),(e()(),i["\u0275ted"](1,null,["","\n "]))],null,function(e,t){e(t,0,0,t.component.hasButton(t.context.index)),e(t,1,0,t.context.$implicit)})}function ki(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,[[1,0],["tab",1]],null,16,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,mi)),i["\u0275did"](3,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,gi)),i["\u0275did"](6,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,vi)),i["\u0275did"](9,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,4,"div",[["class","btn-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,bi)),i["\u0275did"](14,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){var n=t.component;e(t,3,0,n.activeTab===n.TabName.Click),e(t,6,0,n.activeTab===n.TabName.Hold),e(t,9,0,n.activeTab===n.TabName.Release),e(t,14,0,n.buttonLabels)},null)}function _i(e){return i["\u0275vid"](0,[i["\u0275qud"](671088640,1,{selectedTab:0}),(e()(),i["\u0275eld"](1,0,null,null,75,"div",[["class","col-xs-12 macro-mouse__container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,59,"div",[["class","col-xs-3 macro-mouse__types"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,56,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,[["mouseMove",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Move)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,0,"i",[["class","fa fa-arrows"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](13,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Move pointer"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](18,0,[["mouseScroll",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Scroll)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](20,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](22,0,null,null,0,"i",[["class","fa fa-arrows-v"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](24,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Scroll"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](29,0,[["mouseClick",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Click)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](31,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](33,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](35,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Click button"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](40,0,[["mouseHold",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Hold)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](42,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](44,0,null,null,0,"i",[["class","fa fa-hand-rock-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](46,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Hold button"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](51,0,[["mouseRelease",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Release)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](53,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](55,0,null,null,0,"i",[["class","fa fa-hand-paper-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](57,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Release button"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](64,0,null,null,11,"div",[["class","col-xs-9 macro-mouse__actions"]],null,null,null,null,null)),i["\u0275did"](65,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,hi)),i["\u0275did"](68,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,yi)),i["\u0275did"](71,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,ki)),i["\u0275did"](74,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,65,0,n.activeTab),e(t,68,0,n.TabName.Move),e(t,71,0,n.TabName.Scroll),e(t,74,0,n.activeTab===n.TabName.Click||n.activeTab===n.TabName.Hold||n.activeTab===n.TabName.Release)},function(e,t){var n=t.component;e(t,7,0,n.activeTab===n.TabName.Move),e(t,18,0,n.activeTab===n.TabName.Scroll),e(t,29,0,n.activeTab===n.TabName.Click),e(t,40,0,n.activeTab===n.TabName.Hold),e(t,51,0,n.activeTab===n.TabName.Release)})}var wi=function(e){function t(){var t=e.call(this)||this;return t.presets=[.1,.5,1,5,10],t.isMacroValid=function(){return 0!==t.macroAction.delay},t}return Object(wo.__extends)(t,e),Object.defineProperty(t.prototype,"delay",{get:function(){return this._delay},set:function(e){this._delay=e,this.validate()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.macroAction||(this.macroAction=new qe.DelayMacroAction),this.delay=this.macroAction.delay>0?this.macroAction.delay/1e3:.5},t.prototype.setDelay=function(e){this._delay=e,this.macroAction.delay=1e3*this._delay,this.validate()},t}(Qo),Ai=i["\u0275crt"]({encapsulation:0,styles:[["[_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}"]],data:{}});function Ti(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"button",[["class","btn btn-sm btn-default"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.setDelay(e.context.$implicit)&&o),o},null,null)),(e()(),i["\u0275ted"](1,null,["","s\n "]))],null,function(e,t){e(t,1,0,t.context.$implicit)})}function Ci(e){return i["\u0275vid"](2,[i["\u0275qud"](402653184,1,{input:0}),(e()(),i["\u0275eld"](1,0,null,null,39,"div",[["class","macro-delay"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,7,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,4,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,1,"h4",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Delay"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,15,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,12,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](16,0,null,null,9,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](18,0,[[1,0],["macroDelayInput",1]],null,6,"input",[["class","form-control"],["max","1000"],["min","0"],["placeholder","Delay amount"],["step","0.1"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var o=!0,r=e.component;return"input"===t&&(o=!1!==i["\u0275nov"](e,19)._handleInput(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,19).onTouched()&&o),"compositionstart"===t&&(o=!1!==i["\u0275nov"](e,19)._compositionStart()&&o),"compositionend"===t&&(o=!1!==i["\u0275nov"](e,19)._compositionEnd(n.target.value)&&o),"change"===t&&(o=!1!==i["\u0275nov"](e,20).onChange(n.target.value)&&o),"input"===t&&(o=!1!==i["\u0275nov"](e,20).onChange(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,20).onTouched()&&o),"ngModelChange"===t&&(o=!1!==r.setDelay(i["\u0275nov"](e,18).value)&&o),o},null,null)),i["\u0275did"](19,16384,null,0,je.DefaultValueAccessor,[i.Renderer2,i.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),i["\u0275did"](20,16384,null,0,je["\u0275bc"],[i.Renderer2,i.ElementRef],null,null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e,t){return[e,t]},[je.DefaultValueAccessor,je["\u0275bc"]]),i["\u0275did"](22,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{model:[0,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](24,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,["\n seconds\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](29,0,null,null,10,"div",[["class","row macro-delay__presets"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](31,0,null,null,7,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](33,0,null,null,1,"h6",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Choose a preset"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ti)),i["\u0275did"](37,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,22,0,n.delay),e(t,37,0,n.presets)},function(e,t){e(t,18,0,i["\u0275nov"](t,24).ngClassUntouched,i["\u0275nov"](t,24).ngClassTouched,i["\u0275nov"](t,24).ngClassPristine,i["\u0275nov"](t,24).ngClassDirty,i["\u0275nov"](t,24).ngClassValid,i["\u0275nov"](t,24).ngClassInvalid,i["\u0275nov"](t,24).ngClassPending)})}var xi=function(e){return e[e.Keypress=0]="Keypress",e[e.Text=1]="Text",e[e.Mouse=2]="Mouse",e[e.Delay=3]="Delay",e}({}),Oi=function(){function e(){var e=this;this.save=new i.EventEmitter,this.cancel=new i.EventEmitter,this.TabName=xi,this.isSelectedMacroValid=!1,this.onValid=function(t){return e.isSelectedMacroValid=t}}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 ri?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 qe.DelayMacroAction?xi.Delay:e instanceof qe.TextMacroAction?xi.Text:e instanceof qe.KeyMacroAction?xi.Keypress:e instanceof qe.MouseButtonMacroAction||e instanceof qe.MoveMouseMacroAction||e instanceof qe.ScrollMouseMacroAction?xi.Mouse:void 0},e.prototype.updateEditableMacroAction=function(){var e=this.macroAction?this.macroAction:new qe.TextMacroAction;this.editableMacroAction=qe.MacroActionHelper.createMacroAction(e)},e}(),Si=i["\u0275crt"]({encapsulation:0,styles:[Yo],data:{}});function Mi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"macro-text-tab",[["class","macro__text"]],null,[[null,"valid"]],function(e,t,n){var o=!0;return"valid"===t&&(o=!1!==e.component.onValid(n)&&o),o},ei,Xo)),i["\u0275did"](1,4308992,[[1,4],["tab",4]],0,Zo,[i.Renderer],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function Ei(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"macro-key-tab",[["class","macro__mouse"]],null,[[null,"valid"]],function(e,t,n){var o=!0;return"valid"===t&&(o=!1!==e.component.onValid(n)&&o),o},ci,li)),i["\u0275did"](1,114688,[[1,4],["tab",4]],0,ri,[],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function Pi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"macro-mouse-tab",[["class","macro__mouse"]],null,[[null,"valid"]],function(e,t,n){var o=!0;return"valid"===t&&(o=!1!==e.component.onValid(n)&&o),o},_i,fi)),i["\u0275did"](1,638976,[[1,4],["tab",4]],0,pi,[],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function Ii(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"macro-delay-tab",[["class","macro__delay"]],null,[[null,"valid"]],function(e,t,n){var o=!0;return"valid"===t&&(o=!1!==e.component.onValid(n)&&o),o},Ci,Ai)),i["\u0275did"](1,114688,[[1,4],["tab",4]],0,wi,[],{macroAction:[0,"macroAction"]},{valid:"valid"})],function(e,t){e(t,1,0,t.component.editableMacroAction)},null)}function Ri(e){return i["\u0275vid"](0,[i["\u0275qud"](671088640,1,{selectedTab:0}),(e()(),i["\u0275eld"](1,0,null,null,85,"div",[["class","action--editor"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,67,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,48,"div",[["class","col-lg-3 editor__tab-links"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,45,"ul",[["class","nav nav-pills nav-stacked"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,[["macroText",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Text)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](13,0,null,null,0,"i",[["class","fa fa-font"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](15,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Type text"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](20,0,[["macroKeypress",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Keypress)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](22,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](24,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](26,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Key action"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](31,0,[["macroMouse",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Mouse)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](33,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](35,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](37,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Mouse action"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](42,0,[["macroDelay",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.TabName.Delay)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](44,0,null,null,6,"a",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](46,0,null,null,0,"i",[["class","fa fa-clock-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](48,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Delay"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](55,0,null,null,14,"div",[["class","col-xs-12 col-lg-9 editor__tabs"]],null,null,null,null,null)),i["\u0275did"](56,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Mi)),i["\u0275did"](59,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ei)),i["\u0275did"](62,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Pi)),i["\u0275did"](65,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ii)),i["\u0275did"](68,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](72,0,null,null,13,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](74,0,null,null,10,"div",[["class","col-xs-12 flex-button-wrapper editor__actions-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](76,0,null,null,7,"div",[["class","editor__actions"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](78,0,null,null,1,"button",[["class","btn btn-sm btn-default flex-button"],["type","button"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.onCancelClick()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,[" Cancel "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](81,0,null,null,1,"button",[["class","btn btn-sm btn-primary flex-button"],["type","button"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.onSaveClick()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,[" Save "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,56,0,n.activeTab),e(t,59,0,n.TabName.Text),e(t,62,0,n.TabName.Keypress),e(t,65,0,n.TabName.Mouse),e(t,68,0,n.TabName.Delay)},function(e,t){var n=t.component;e(t,9,0,n.activeTab===n.TabName.Text),e(t,20,0,n.activeTab===n.TabName.Keypress),e(t,31,0,n.activeTab===n.TabName.Mouse),e(t,42,0,n.activeTab===n.TabName.Delay),e(t,81,0,!n.isSelectedMacroValid)})}var Di=function(){function e(e){this.mapper=e,this.save=new i.EventEmitter,this.cancel=new i.EventEmitter,this.edit=new i.EventEmitter,this.delete=new i.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(){this.editable&&!this.editing?(this.editing=!0,this.edit.emit()):this.cancelEdit()},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 qe.DelayMacroAction)this.iconName="clock",this.title="Delay of "+((e=this.macroAction).delay>0?e.delay/1e3:0)+"s";else if(this.macroAction instanceof qe.TextMacroAction){var e=this.macroAction;this.iconName="font",this.title="Write text: "+e.text}else this.macroAction instanceof qe.KeyMacroAction?this.setKeyActionContent(e=this.macroAction):this.macroAction instanceof qe.MouseButtonMacroAction?this.setMouseButtonActionContent(e=this.macroAction):this.macroAction instanceof qe.MoveMouseMacroAction||this.macroAction instanceof qe.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()){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 t=(this.mapper.scanCodeToText(e.scancode,e.type)||["Unknown"]).join(" ");t&&(this.title+=t)}if(e.hasModifiers())for(var n=qe.KeyModifiers.leftCtrl;n<=qe.KeyModifiers.rightGui;n<<=1)e.isModifierActive(n)&&(this.title+=" "+qe.KeyModifiers[n])}else this.title="Invalid keypress"},e.prototype.setMouseMoveScrollActionContent=function(e){var t,n;e instanceof qe.MoveMouseMacroAction?(this.iconName="mouse-pointer",this.title="Move pointer",t=this.macroAction):(this.iconName="mouse-pointer",this.title="Scroll",t=this.macroAction),0!==Math.abs(t.x)&&(this.title+=" by "+Math.abs(t.x)+"px "+(t.x>0?"leftward":"rightward"),n=!0),0!==Math.abs(t.y)&&(this.title+=" "+(n?"and":"by")+" "+Math.abs(t.y)+"px "+(t.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 t=["Left","Middle","Right"],n=[];e.getMouseButtons().forEach(function(e,o){e&&t[o]&&n.push(t[o])}),this.title+=n.join(", ")},e}(),Ni=i["\u0275crt"]({encapsulation:0,styles:[["[_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}"]],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:{}}]}});function ji(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"span",[["aria-hidden","true"],["class","glyphicon glyphicon-option-vertical action--movable"]],null,null,null,null,null))],null,null)}function Li(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"icon",[["name","pencil"]],null,null,null,De,we)),i["\u0275did"](1,114688,null,0,_e,[],{name:[0,"name"]},null)],function(e,t){e(t,1,0,"pencil")},null)}function Ui(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"icon",[["name","trash"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.deleteAction()&&o),o},De,we)),i["\u0275did"](1,114688,null,0,_e,[],{name:[0,"name"]},null)],function(e,t){e(t,1,0,"trash")},null)}function Vi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,19,"div",[["class","list-group-item action--item"]],[[2,"is-editing",null]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,ji)),i["\u0275did"](3,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,10,"div",[["class","action--item--wrap"]],[[2,"pointer",null]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.editAction()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,1,"icon",[],null,null,null,De,we)),i["\u0275did"](8,114688,null,0,_e,[],{name:[0,"name"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,1,"div",[["class","action--title"]],null,null,null,null,null)),(e()(),i["\u0275ted"](11,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Li)),i["\u0275did"](14,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ui)),i["\u0275did"](18,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](21,0,null,null,5,"div",[["class","list-group-item macro-action-editor__container"]],[[24,"@toggler",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](23,0,null,null,2,"macro-action-editor",[["class","macro-action-editor"]],null,[[null,"cancel"],[null,"save"]],function(e,t,n){var o=!0,i=e.component;return"cancel"===t&&(o=!1!==i.cancelEdit()&&o),"save"===t&&(o=!1!==i.saveEditedAction(n)&&o),o},Ri,Si)),i["\u0275did"](24,638976,null,0,Oi,[],{macroAction:[0,"macroAction"]},{save:"save",cancel:"cancel"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,n.movable),e(t,8,0,n.iconName),e(t,14,0,n.editable&&n.macroAction&&!n.editing),e(t,18,0,n.deletable),e(t,24,0,n.macroAction)},function(e,t){var n=t.component;e(t,0,0,n.editing),e(t,5,0,n.editable),e(t,11,0,n.title),e(t,21,0,n.editable&&n.editing||n.newItem?"active":"inactive")})}var Fi=i["\u0275crt"]({encapsulation:0,styles:[["[_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%]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:2px}[_nghost-%COMP%] .macro-selector[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-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}"]],data:{}});function Ki(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" No macros are available to choose from. Create a macro first! "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,null)}function Bi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,"macro-item",[["class","macro-item"]],null,null,null,Vi,Ni)),i["\u0275did"](1,638976,null,0,Di,[Bt],{macroAction:[0,"macroAction"],editable:[1,"editable"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,1,0,t.context.$implicit,!1)},null)}function Hi(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),i["\u0275eld"](2,0,null,null,1,"i",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Please note that macro playback is not implemented yet. You can bind macros, but they won't have any effect until firmware support is implemented. We're working on this."])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,7,"div",[["class","macro-selector"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,1,"b",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Play macro: "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,1,"select2",[],null,[[null,"valueChanged"]],function(e,t,n){var o=!0;return"valueChanged"===t&&(o=!1!==e.component.onChange(n)&&o),o},mo,yo)),i["\u0275did"](11,4964352,null,0,ho.Select2Component,[i.Renderer],{data:[0,"data"],value:[1,"value"],width:[2,"width"]},{valueChanged:"valueChanged"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,7,"div",[["class","macro-action-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](16,0,null,null,4,"div",[["class","list-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Bi)),i["\u0275did"](19,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,11,0,n.macroOptions,n.macroOptions[n.selectedMacroIndex].id,"100%"),e(t,19,0,n.macros[n.selectedMacroIndex].macroActions)},null)}function Wi(e){return i["\u0275vid"](0,[(e()(),i["\u0275and"](16777216,null,null,1,null,Ki)),i["\u0275did"](1,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,Hi)),i["\u0275did"](4,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,1,0,0===n.macroOptions.length),e(t,4,0,n.macroOptions.length>0)},null)}var qi=i["\u0275crt"]({encapsulation:0,styles:[["[_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%]{display:-webkit-box;display:-ms-flexbox;display:flex;margin-top:2px}[_nghost-%COMP%] > div[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-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%]{display:-webkit-box;display:-ms-flexbox;display:flex}.empty[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;height:100%;position:relative}"]],data:{}});function zi(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" No keymaps are available to choose from. Create a keymap first! "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,null)}function $i(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,3,"div",[["class","empty"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,0,"img",[["src","assets/images/base-layer--blank.svg"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "]))],null,null)}function Gi(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,"svg-keyboard",[],null,null,null,ao,ro)),i["\u0275did"](1,638976,null,0,io,[oo,P.c],{moduleConfig:[0,"moduleConfig"]},null),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,1,0,t.component.selectedKeymap.layers[0].modules)},null)}function Yi(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,1,"b",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Switch to keymap:"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,1,"select2",[],null,[[null,"valueChanged"]],function(e,t,n){var o=!0;return"valueChanged"===t&&(o=!1!==e.component.onChange(n)&&o),o},mo,yo)),i["\u0275did"](7,4964352,null,0,ho.Select2Component,[i.Renderer],{data:[0,"data"],value:[1,"value"],width:[2,"width"]},{valueChanged:"valueChanged"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,7,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,$i)),i["\u0275did"](13,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Gi)),i["\u0275did"](16,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,7,0,n.keymapOptions,(null==n.selectedKeymap?null:n.selectedKeymap.abbreviation)||-1,"100%"),e(t,13,0,!(null!=n.selectedKeymap&&n.selectedKeymap.abbreviation)),e(t,16,0,null==n.selectedKeymap?null:n.selectedKeymap.abbreviation)},null)}function Qi(e){return i["\u0275vid"](2,[(e()(),i["\u0275and"](16777216,null,null,1,null,zi)),i["\u0275did"](1,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,Yi)),i["\u0275did"](4,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,0===n.keymapOptions.length),e(t,4,0,n.keymapOptions.length>0)},null)}var Ji=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:2rem 0}"]],data:{}});function Zi(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["This key is unassigned and has no functionality."]))],null,null)}var Xi=n("TfWX"),er=(n("qp8k"),n("+pb+"),function(e){return 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",e}({})),tr=function(){function e(e){this.cancel=new i.EventEmitter,this.remap=new i.EventEmitter,this.tabName=er,this.leftArrow=!1,this.rightArrow=!1,this.topPosition=0,this.leftPosition=0,this.currentKeymap$=new Xi.BehaviorSubject(void 0),this.animationState="closed",this.keymaps$=e.let(Object(xn.b)()).combineLatest(this.currentKeymap$).map(function(e){var t=e[1];return e[0].filter(function(e){return t.abbreviation!==e.abbreviation})})}return e.prototype.ngOnChanges=function(e){this.keyPosition&&this.wrapPosition&&(e.keyPosition||e.wrapPosition)&&this.calculatePosition(),e.defaultKeyAction&&this.selectTab(this.defaultKeyAction instanceof qe.KeystrokeAction?er.Keypress:this.defaultKeyAction instanceof qe.SwitchLayerAction?er.Layer:this.defaultKeyAction instanceof qe.MouseAction?er.Mouse:this.defaultKeyAction instanceof qe.PlayMacroAction?er.Macro:this.defaultKeyAction instanceof qe.SwitchKeymapAction?er.Keymap:er.None),e.visible&&(e.visible.currentValue?(this.animationState="opened",this.remapOnAllKeymap=!1,this.remapOnAllLayer=!1):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{this.remap.emit({remapOnAllKeymap:this.remapOnAllKeymap,remapOnAllLayer:this.remapOnAllLayer,action:this.selectedTab.toKeyAction()})}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,t=this.popoverHost.nativeElement,n=this.keyPosition.left+this.keyPosition.width/2;this.leftArrow=n<e,this.rightArrow=n+t.offsetWidth>e+this.wrapPosition.width,this.leftArrow?n=this.keyPosition.left:this.rightArrow?n=this.keyPosition.left-t.offsetWidth+this.keyPosition.width:n-=t.offsetWidth/2,this.topPosition=this.keyPosition.top+this.keyPosition.height+7+window.scrollY,this.leftPosition=n},e}(),nr=i["\u0275crt"]({encapsulation:0,styles:[[".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{content:'';width:0;height:0;border-left:21px solid transparent;border-right:21px solid transparent;border-bottom:17px solid rgba(0,0,0,.2);display:block;position:absolute;top:-1px}.arrowCustom[_ngcontent-%COMP%]:after{content:'';width:0;height:0;border-left:20px solid transparent;border-right:20px solid transparent;border-bottom:16px solid #f7f7f7;display:block;position:absolute;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}.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:0 0;-webkit-transition:background .2s ease-out,height 0s .2s linear;transition:background .2s ease-out,height 0s .2s linear}.popover-overlay.display[_ngcontent-%COMP%]{height:100%;background:rgba(0,0,0,.2);-webkit-transition:background .2s ease-out;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}.popover-action-form[_ngcontent-%COMP%]{margin-top:4px}.popover-action-form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{margin-right:5px}"]],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:{}}]}});function or(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"keypress-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var o=!0;return"validAction"===t&&(o=!1!==(e.component.keyActionValid=n)&&o),o},Mo,Co)),i["\u0275did"](1,573440,[[1,4],["tab",4]],0,To,[Bt],{defaultKeyAction:[0,"defaultKeyAction"],secondaryRoleEnabled:[1,"secondaryRoleEnabled"]},{validAction:"validAction"})],function(e,t){e(t,1,0,t.component.defaultKeyAction,!0)},null)}function ir(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"layer-tab",[["class","popover-content"]],[[2,"no-base",null]],[[null,"validAction"]],function(e,t,n){var o=!0;return"validAction"===t&&(o=!1!==(e.component.keyActionValid=n)&&o),o},Vo,Po)),i["\u0275did"](1,573440,[[1,4],["tab",4]],0,Eo,[],{defaultKeyAction:[0,"defaultKeyAction"],currentLayer:[1,"currentLayer"],allowLayerDoubleTap:[2,"allowLayerDoubleTap"]},{validAction:"validAction"})],function(e,t){var n=t.component;e(t,1,0,n.defaultKeyAction,n.currentLayer,n.allowLayerDoubleTap)},function(e,t){e(t,0,0,i["\u0275nov"](t,1).isNotBase)})}function rr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"mouse-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var o=!0;return"validAction"===t&&(o=!1!==(e.component.keyActionValid=n)&&o),o},Go,Ko)),i["\u0275did"](1,573440,[[1,4],["tab",4]],0,Fo,[],{defaultKeyAction:[0,"defaultKeyAction"]},{validAction:"validAction"})],function(e,t){e(t,1,0,t.component.defaultKeyAction)},null)}function lr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"macro-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var o=!0;return"validAction"===t&&(o=!1!==(e.component.keyActionValid=n)&&o),o},Wi,Fi)),i["\u0275did"](1,770048,[[1,4],["tab",4]],0,ni,[s.m],{defaultKeyAction:[0,"defaultKeyAction"]},{validAction:"validAction"})],function(e,t){e(t,1,0,t.component.defaultKeyAction)},null)}function sr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,"keymap-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var o=!0;return"validAction"===t&&(o=!1!==(e.component.keyActionValid=n)&&o),o},Qi,qi)),i["\u0275did"](1,573440,[[1,4],["tab",4]],0,ti,[],{defaultKeyAction:[0,"defaultKeyAction"],keymaps:[1,"keymaps"]},{validAction:"validAction"}),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef])],function(e,t){var n=t.component;e(t,1,0,n.defaultKeyAction,i["\u0275unv"](t,1,1,i["\u0275nov"](t,2).transform(n.keymaps$)))},null)}function ar(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"none-tab",[["class","popover-content"]],null,[[null,"validAction"]],function(e,t,n){var o=!0;return"validAction"===t&&(o=!1!==(e.component.keyActionValid=n)&&o),o},Zi,Ji)),i["\u0275did"](1,114688,[[1,4],["tab",4]],0,oi,[],null,{validAction:"validAction"})],function(e,t){e(t,1,0)},null)}function ur(e){return i["\u0275vid"](0,[i["\u0275qud"](671088640,1,{selectedTab:0}),i["\u0275qud"](402653184,2,{popoverHost:0}),(e()(),i["\u0275eld"](2,0,[[2,0],["popover",1]],null,151,"div",[["class","popover"]],[[24,"@popover",0],[4,"top","px"],[4,"left","px"]],null,null,null,null)),i["\u0275did"](3,278528,null,0,d.i,[i.IterableDiffers,i.KeyValueDiffers,i.ElementRef,i.Renderer2],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),i["\u0275pod"](4,{leftArrow:0,rightArrow:1}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,0,"div",[["class","arrowCustom"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,70,"div",[["class","popover-title menu-tabs"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,67,"ul",[["class","nav nav-tabs popover-menu"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,[["keypress",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.tabName.Keypress)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](16,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](18,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Keypress"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](23,0,[["layer",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.tabName.Layer)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](25,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](27,0,null,null,0,"i",[["class","fa fa-clone"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](29,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Layer"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](34,0,[["mouse",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.tabName.Mouse)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](36,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](38,0,null,null,0,"i",[["class","fa fa-mouse-pointer"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](40,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Mouse"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](45,0,[["macro",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.tabName.Macro)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](47,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](49,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](51,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Macro"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](56,0,[["keymap",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.tabName.Keymap)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](58,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](60,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](62,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Keymap"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](67,0,[["none",1]],null,9,"li",[],[[2,"active",null]],[[null,"click"]],function(e,t,n){var o=!0,i=e.component;return"click"===t&&(o=!1!==i.selectTab(i.tabName.None)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](69,0,null,null,6,"a",[["class","menu-tabs--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](71,0,null,null,0,"i",[["class","fa fa-ban"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](73,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["None"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](80,0,null,null,20,"div",[],null,null,null,null,null)),i["\u0275did"](81,16384,null,0,d.n,[],{ngSwitch:[0,"ngSwitch"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,or)),i["\u0275did"](84,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,ir)),i["\u0275did"](87,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,rr)),i["\u0275did"](90,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,lr)),i["\u0275did"](93,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,sr)),i["\u0275did"](96,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,ar)),i["\u0275did"](99,278528,null,0,d.o,[i.ViewContainerRef,i.TemplateRef,d.n],{ngSwitchCase:[0,"ngSwitchCase"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](102,0,null,null,50,"div",[["class","popover-action"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](104,0,null,null,38,"form",[["class","form-inline d-inline-block popover-action-form"],["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(e,t,n){var o=!0;return"submit"===t&&(o=!1!==i["\u0275nov"](e,106).onSubmit(n)&&o),"reset"===t&&(o=!1!==i["\u0275nov"](e,106).onReset()&&o),o},null,null)),i["\u0275did"](105,16384,null,0,je["\u0275bf"],[],null,null),i["\u0275did"](106,4210688,null,0,je.NgForm,[[8,null],[8,null]],null,null),i["\u0275prd"](2048,null,je.ControlContainer,null,[je.NgForm]),i["\u0275did"](108,16384,null,0,je.NgControlStatusGroup,[je.ControlContainer],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](110,0,null,null,11,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](112,0,null,null,8,"label",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](114,0,null,null,5,"input",[["name","remapOnAllKeymap"],["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var o=!0,r=e.component;return"change"===t&&(o=!1!==i["\u0275nov"](e,115).onChange(n.target.checked)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,115).onTouched()&&o),"ngModelChange"===t&&(o=!1!==(r.remapOnAllKeymap=n)&&o),o},null,null)),i["\u0275did"](115,16384,null,0,je.CheckboxControlValueAccessor,[i.Renderer2,i.ElementRef],null,null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[je.CheckboxControlValueAccessor]),i["\u0275did"](117,671744,null,0,je.NgModel,[[2,je.ControlContainer],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](119,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,[" Remap on all keymaps\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](123,0,null,null,11,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](125,0,null,null,8,"label",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](127,0,null,null,5,"input",[["name","remapOnAllLayer"],["type","checkbox"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var o=!0,r=e.component;return"change"===t&&(o=!1!==i["\u0275nov"](e,128).onChange(n.target.checked)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,128).onTouched()&&o),"ngModelChange"===t&&(o=!1!==(r.remapOnAllLayer=n)&&o),o},null,null)),i["\u0275did"](128,16384,null,0,je.CheckboxControlValueAccessor,[i.Renderer2,i.ElementRef],null,null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[je.CheckboxControlValueAccessor]),i["\u0275did"](130,671744,null,0,je.NgModel,[[2,je.ControlContainer],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](132,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,[" Remap on all layers\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](136,0,null,null,5,"div",[["class","d-inline-block"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](138,0,null,null,2,"icon",[["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["maxWidth","525"],["name","question-circle"],["title","<ul class='no-indent text-left'>\n <li><strong>Default behavior</strong>: Remap the key on the the current layer of the current keymap.</li>\n <li><strong>Remap on all keymaps</strong>: Remap key on the current layer of all keymaps.</li>\n <li><strong>Remap on all layers</strong>: Remap key on all layers of the current keymap.</li>\n <li><strong>Remap on all keymaps + Remap on all layers</strong>: Remap key on all layers of all keymaps.</li>\n </ul>"]],[[1,"data-placement",0]],null,null,De,we)),i["\u0275did"](139,114688,null,0,_e,[],{name:[0,"name"]},null),i["\u0275did"](140,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"],html:[1,"html"],maxWidth:[2,"maxWidth"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](144,0,null,null,7,"div",[["class","d-inline-block pull-right"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](146,0,null,null,1,"button",[["class","btn btn-sm btn-default"],["type","button"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.onCancelClick()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,[" Cancel"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](149,0,null,null,1,"button",[["class","btn btn-sm btn-primary"],["type","button"]],[[2,"disabled",null]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.onRemapKey()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,[" Remap Key\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](155,0,null,null,0,"div",[["class","popover-overlay"]],[[2,"display",null]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.onOverlay()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,3,0,"popover",e(t,4,0,n.leftArrow,n.rightArrow)),e(t,81,0,n.activeTab),e(t,84,0,n.tabName.Keypress),e(t,87,0,n.tabName.Layer),e(t,90,0,n.tabName.Mouse),e(t,93,0,n.tabName.Macro),e(t,96,0,n.tabName.Keymap),e(t,99,0,n.tabName.None),e(t,117,0,"remapOnAllKeymap",n.remapOnAllKeymap),e(t,130,0,"remapOnAllLayer",n.remapOnAllLayer),e(t,139,0,"question-circle"),e(t,140,0,"<ul class='no-indent text-left'>\n <li><strong>Default behavior</strong>: Remap the key on the the current layer of the current keymap.</li>\n <li><strong>Remap on all keymaps</strong>: Remap key on the current layer of all keymaps.</li>\n <li><strong>Remap on all layers</strong>: Remap key on all layers of the current keymap.</li>\n <li><strong>Remap on all keymaps + Remap on all layers</strong>: Remap key on all layers of all keymaps.</li>\n </ul>","true","525")},function(e,t){var n=t.component;e(t,2,0,n.animationState,n.topPosition,n.leftPosition),e(t,12,0,n.activeTab===n.tabName.Keypress),e(t,23,0,n.activeTab===n.tabName.Layer),e(t,34,0,n.activeTab===n.tabName.Mouse),e(t,45,0,n.activeTab===n.tabName.Macro),e(t,56,0,n.activeTab===n.tabName.Keymap),e(t,67,0,n.activeTab===n.tabName.None),e(t,104,0,i["\u0275nov"](t,108).ngClassUntouched,i["\u0275nov"](t,108).ngClassTouched,i["\u0275nov"](t,108).ngClassPristine,i["\u0275nov"](t,108).ngClassDirty,i["\u0275nov"](t,108).ngClassValid,i["\u0275nov"](t,108).ngClassInvalid,i["\u0275nov"](t,108).ngClassPending),e(t,114,0,i["\u0275nov"](t,119).ngClassUntouched,i["\u0275nov"](t,119).ngClassTouched,i["\u0275nov"](t,119).ngClassPristine,i["\u0275nov"](t,119).ngClassDirty,i["\u0275nov"](t,119).ngClassValid,i["\u0275nov"](t,119).ngClassInvalid,i["\u0275nov"](t,119).ngClassPending),e(t,127,0,i["\u0275nov"](t,132).ngClassUntouched,i["\u0275nov"](t,132).ngClassTouched,i["\u0275nov"](t,132).ngClassPristine,i["\u0275nov"](t,132).ngClassDirty,i["\u0275nov"](t,132).ngClassValid,i["\u0275nov"](t,132).ngClassInvalid,i["\u0275nov"](t,132).ngClassPending),e(t,138,0,i["\u0275nov"](t,140).placement),e(t,149,0,!n.keyActionValid),e(t,155,0,n.visible)})}n("1APj");var cr=function(){function e(e,t,n,o){this.store=e,this.mapper=t,this.element=n,this.renderer=o,this.popoverEnabled=!0,this.tooltipEnabled=!1,this.descriptionChanged=new i.EventEmitter,this.currentLayer=0,this.keyEditConfig={moduleId:void 0,keyId:void 0},this.tooltipData={posTop:0,posLeft:0,content:Ve.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 t=e.keymap;t&&(this.popoverShown=!1,this.layers=this.keymap.layers,t.isFirstChange()||t.previousValue.abbreviation!==t.currentValue.abbreviation?(this.currentLayer=0,this.keybindAnimationEnabled=t.isFirstChange()):this.keybindAnimationEnabled=!0)},e.prototype.onKeyClick=function(e,t,n){if(!this.popoverShown&&this.popoverEnabled){this.keyEditConfig={moduleId:e,keyId:t},this.selectedKey={layerId:this.currentLayer,moduleId:e,keyId:t};var o=this.layers[this.currentLayer].modules[e].keyActions[t];this.keyElement=n,this.showPopover(o)}},e.prototype.onKeyHover=function(e,t,n,o){this.tooltipEnabled&&(n?this.showTooltip(this.layers[this.currentLayer].modules[e].keyActions[o],t):this.hideTooltip())},e.prototype.onCapture=function(e,t,n){var o=new qe.KeystrokeAction,i=n.left.concat(n.right).map(function(e){return e?1:0});o.scancode=n.code,o.modifierMask=0;for(var r=0;r<i.length;++r)o.modifierMask|=i[r]<<this.mapper.modifierMapper(r);this.store.dispatch(wt.a.saveKey(this.keymap,this.currentLayer,e,t,{remapOnAllKeymap:!1,remapOnAllLayer:!1,action:o}))},e.prototype.onRemap=function(e){this.store.dispatch(wt.a.saveKey(this.keymap,this.currentLayer,this.keyEditConfig.moduleId,this.keyEditConfig.keyId,e)),this.hidePopover()},e.prototype.showPopover=function(e){this.keyPosition=this.keyElement.getBoundingClientRect(),this.popoverInitKeyAction=e,this.popoverShown=!0,this.renderer.invokeElementMethod(this.popover.nativeElement,"focus")},e.prototype.showTooltip=function(e,t){if(void 0!==e){var n=t.target||t.srcElement,o=n.getBoundingClientRect(),i=this.tooltipData.posLeft,r=this.tooltipData.posTop;"g"===n.tagName&&(i=o.left+o.width/2,r=o.top+o.height),this.tooltipData={posLeft:i,posTop:r,content:this.getKeyActionContent(e),show:!0}}},e.prototype.hideTooltip=function(){this.tooltipData.show=!1},e.prototype.hidePopover=function(){this.popoverShown=!1,this.selectedKey=void 0},e.prototype.selectLayer=function(e){this.currentLayer=e},e.prototype.getSelectedLayer=function(){return this.currentLayer},e.prototype.onDescriptionChanged=function(e){this.descriptionChanged.emit({description:e,abbr:this.keymap.abbreviation})},e.prototype.getKeyActionContent=function(e){if(e instanceof qe.KeystrokeAction){var t=e;if((r=[]).push({name:"Action type",value:"Keystroke"}),t.hasScancode()){var n=t.scancode.toString(),o=(this.mapper.scanCodeToText(t.scancode,t.type)||[]).join(", ");o.length>0&&(n+=" ("+o+")"),r.push({name:"Scancode",value:n})}return t.hasActiveModifier()&&r.push({name:"Modifiers",value:t.getModifierList().join(", ")}),t.hasSecondaryRoleAction()&&r.push({name:"Secondary role",value:qe.SecondaryRoleAction[t.secondaryRoleAction]}),Ve.Observable.of(r)}if(e instanceof qe.MouseAction){var i=e,r=[{name:"Action type",value:"Mouse"},{name:"Action",value:Object(qe.camelCaseToSentence)(qe.MouseActionParam[i.mouseAction])}];return Ve.Observable.of(r)}if(e instanceof qe.PlayMacroAction){var l=e;return this.store.select(function(e){return e.userConfiguration.macros}).map(function(e){return e.find(function(e){return e.id===l.macroId}).name}).map(function(e){return[{name:"Action type",value:"Play macro"},{name:"Macro name",value:e}]})}if(e instanceof qe.SwitchKeymapAction){var s=e;return this.store.select(function(e){return e.userConfiguration.keymaps}).map(function(e){return e.find(function(e){return e.abbreviation===s.keymapAbbreviation}).name}).map(function(e){return[{name:"Action type",value:"Switch keymap"},{name:"Keymap",value:e}]})}if(e instanceof qe.SwitchLayerAction){var a=e;return r=[{name:"Action type",value:"Switch layer"},{name:"Layer",value:Object(qe.capitalizeFirstLetter)(qe.LayerName[a.layer])},{name:"Toogle",value:a.switchLayerMode===qe.SwitchLayerMode.toggle?"On":"Off"}],Ve.Observable.of(r)}return Ve.Observable.of([])},e}(),dr=i["\u0275crt"]({encapsulation:0,styles:[["[_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;-webkit-box-shadow:0 1px 5px #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}"]],data:{}});function pr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),i["\u0275ted"](1,null,["\n ",": ","\n "]))],null,function(e,t){e(t,1,0,t.context.$implicit.name,t.context.$implicit.value)})}function fr(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,1,"layers",[],[[2,"disabled",null]],[[null,"select"]],function(e,t,n){var o=!0;return"select"===t&&(o=!1!==e.component.selectLayer(n.index)&&o),o},Pt,Mt)),i["\u0275did"](2,49152,null,0,St,[],{current:[0,"current"]},{select:"select"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,1,"keyboard-slider",[],null,[[null,"keyClick"],[null,"keyHover"],[null,"capture"],[null,"descriptionChanged"]],function(e,t,n){var o=!0,i=e.component;return"keyClick"===t&&(o=!1!==i.onKeyClick(n.moduleId,n.keyId,n.keyTarget)&&o),"keyHover"===t&&(o=!1!==i.onKeyHover(n.moduleId,n.event,n.over,n.keyId)&&o),"capture"===t&&(o=!1!==i.onCapture(n.moduleId,n.keyId,n.captured)&&o),"descriptionChanged"===t&&(o=!1!==i.onDescriptionChanged(n)&&o),o},fo,co)),i["\u0275did"](5,573440,null,0,uo,[],{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()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](7,0,[[1,0]],null,1,"popover",[["tabindex","0"]],null,[[null,"cancel"],[null,"remap"],[null,"keydown.escape"]],function(e,t,n){var o=!0,r=e.component;return"keydown.escape"===t&&(o=!1!==i["\u0275nov"](e,8).onEscape()&&o),"cancel"===t&&(o=!1!==r.hidePopover()&&o),"remap"===t&&(o=!1!==r.onRemap(n)&&o),o},ur,nr)),i["\u0275did"](8,573440,null,0,tr,[s.m],{defaultKeyAction:[0,"defaultKeyAction"],currentKeymap:[1,"currentKeymap"],currentLayer:[2,"currentLayer"],keyPosition:[3,"keyPosition"],wrapPosition:[4,"wrapPosition"],visible:[5,"visible"],allowLayerDoubleTap:[6,"allowLayerDoubleTap"]},{cancel:"cancel",remap:"remap"}),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](10,0,null,null,10,"div",[["class","tooltip bottom"]],[[2,"in",null],[4,"top","px"],[4,"left","px"]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,0,"div",[["class","tooltip-arrow"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,5,"div",[["class","tooltip-inner"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,2,null,pr)),i["\u0275did"](17,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.currentLayer),e(t,5,0,n.layers,n.currentLayer,n.keybindAnimationEnabled,n.popoverEnabled,n.halvesSplit,n.selectedKey,n.keyboardLayout,n.keymap.description),e(t,8,0,n.popoverInitKeyAction,n.keymap,n.currentLayer,n.keyPosition,n.wrapPosition,n.popoverShown,n.allowLayerDoubleTap),e(t,17,0,i["\u0275unv"](t,17,0,i["\u0275nov"](t,18).transform(n.tooltipData.content)))},function(e,t){var n=t.component;e(t,1,0,n.popoverShown),e(t,10,0,n.tooltipData.show,n.tooltipData.posTop,n.tooltipData.posLeft)})}function hr(e){return i["\u0275vid"](2,[i["\u0275qud"](671088640,1,{popover:0}),(e()(),i["\u0275and"](16777216,null,null,1,null,fr)),i["\u0275did"](2,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,2,0,t.component.layers)},null)}n("okk1"),n("KRCp"),n("PvYY"),n("uCY4"),n("xOQQ");var yr=n("lDdF"),mr=function(){function e(e,t){this.store=e,this.keymap$=t.params.pluck("abbr").switchMap(function(t){return e.let(Object(xn.a)(t))}).publishReplay(1).refCount(),this.deletable$=e.let(Object(xn.b)()).map(function(e){return e.length>1}),this.keyboardLayout$=e.select(u.k),this.allowLayerDoubleTap$=e.select(u.a)}return e.prototype.downloadKeymap=function(){var e=this,t=this.keymap$.switchMap(function(t){return e.toExportableJSON(t)}).map(function(e){return JSON.stringify(e)});this.keymap$.combineLatest(t).first().subscribe(function(e){var t=e[1],n=e[0].name+"_keymap.json";Object(yr.saveAs)(new Blob([t],{type:"application/json"}),n)})},e.prototype.toggleKeyboardSplit=function(){this.keyboardSplit=!this.keyboardSplit},e.prototype.descriptionChanged=function(e){this.store.dispatch(new wt.a.EditDescriptionAction(e))},e.prototype.toExportableJSON=function(e){return this.store.let(Object(xn.e)()).first().map(function(t){return{site:"https://ultimatehackingkeyboard.com",description:"Ultimate Hacking Keyboard keymap",keyboardModel:"UHK60",userConfigMajorVersion:t.userConfigMajorVersion,userConfigMinorVersion:t.userConfigMinorVersion,userConfigPatchVersion:t.userConfigPatchVersion,objectType:"keymap",objectValue:e.toJsonObject()}})},e}(),gr=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;display:block}.not-found[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;text-align:center}"]],data:{}});function vr(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,3,"keymap-header",[],null,[[null,"downloadClick"],["window","resize"]],function(e,t,n){var o=!0,r=e.component;return"window:resize"===t&&(o=!1!==i["\u0275nov"](e,2).windowResize()&&o),"downloadClick"===t&&(o=!1!==r.downloadKeymap()&&o),o},Ot,xt)),i["\u0275did"](2,573440,null,0,Ct,[s.m,i.Renderer2],{keymap:[0,"keymap"],deletable:[1,"deletable"]},{downloadClick:"downloadClick"}),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,4,"svg-keyboard-wrap",[],[[2,"space",null]],[[null,"descriptionChanged"],["window","resize"]],function(e,t,n){var o=!0,r=e.component;return"window:resize"===t&&(o=!1!==i["\u0275nov"](e,7).onResize()&&o),"descriptionChanged"===t&&(o=!1!==r.descriptionChanged(n)&&o),o},hr,dr)),i["\u0275did"](7,638976,null,0,cr,[s.m,Bt,i.ElementRef,i.Renderer],{keymap:[0,"keymap"],halvesSplit:[1,"halvesSplit"],keyboardLayout:[2,"keyboardLayout"],allowLayerDoubleTap:[3,"allowLayerDoubleTap"]},{descriptionChanged:"descriptionChanged"}),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,i["\u0275unv"](t,2,0,i["\u0275nov"](t,3).transform(n.keymap$)),i["\u0275unv"](t,2,1,i["\u0275nov"](t,4).transform(n.deletable$))),e(t,7,0,i["\u0275unv"](t,7,0,i["\u0275nov"](t,8).transform(n.keymap$)),n.keyboardSplit,i["\u0275unv"](t,7,2,i["\u0275nov"](t,9).transform(n.keyboardLayout$)),i["\u0275unv"](t,7,3,i["\u0275nov"](t,10).transform(n.allowLayerDoubleTap$)))},function(e,t){e(t,6,0,i["\u0275nov"](t,7).space)})}function br(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n Sorry, there is no keymap with this abbreviation.\n"]))],null,null)}function kr(e){return i["\u0275vid"](0,[(e()(),i["\u0275and"](16777216,null,null,2,null,vr)),i["\u0275did"](1,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n\n"])),(e()(),i["\u0275and"](16777216,null,null,2,null,br)),i["\u0275did"](5,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,i["\u0275unv"](t,1,0,i["\u0275nov"](t,2).transform(n.keymap$))),e(t,5,0,!i["\u0275unv"](t,5,0,i["\u0275nov"](t,6).transform(n.keymap$)))},null)}var _r=i["\u0275ccf"]("keymap-edit",mr,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"keymap-edit",[["class","container-fluid"]],null,[["window","keydown.alt.s"]],function(e,t,n){var o=!0;return"window:keydown.alt.s"===t&&(o=!1!==i["\u0275nov"](e,1).toggleKeyboardSplit(n)&&o),o},kr,gr)),i["\u0275did"](1,49152,null,0,mr,[s.m,le.a],null,null)],null,null)},{},{},[]),wr=function(){function e(e){this.store=e,this.presetsAll$=e.select(function(e){return e.presetKeymaps}),this.filterExpression$=new Xi.BehaviorSubject(""),this.presets$=this.presetsAll$.combineLatest(this.filterExpression$,function(e,t){return e.filter(function(e){return e.name.toLocaleLowerCase().includes(t)})}).publishReplay(1).refCount()}return e.prototype.filterKeyboards=function(e){this.filterExpression$.next(e)},e.prototype.addKeymap=function(e){this.store.dispatch(wt.a.addKeymap(e))},e}(),Ar=i["\u0275crt"]({encapsulation:0,styles:[["[_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}"]],data:{}});function Tr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,[["keyboard",1]],null,17,"div",[["class","keymap__list_item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),i["\u0275ted"](3,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,1,"p",[["class","keymap__description"]],null,null,null,null,null)),(e()(),i["\u0275ted"](6,null,["\n ","\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,2,"svg-keyboard-wrap",[],[[2,"space",null]],[["window","resize"]],function(e,t,n){var o=!0;return"window:resize"===t&&(o=!1!==i["\u0275nov"](e,9).onResize()&&o),o},hr,dr)),i["\u0275did"](9,638976,null,0,cr,[s.m,Bt,i.ElementRef,i.Renderer],{keymap:[0,"keymap"],popoverEnabled:[1,"popoverEnabled"],tooltipEnabled:[2,"tooltipEnabled"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,4,"div",[["class","btn-group btn-group-lg"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,1,"button",[["class","btn btn-default"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.addKeymap(e.context.$implicit)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["Add keymap"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,9,0,t.context.$implicit,!1,!0)},function(e,t){e(t,3,0,t.context.$implicit.name),e(t,6,0,t.context.$implicit.description),e(t,8,0,i["\u0275nov"](t,9).space)})}function Cr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"div",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n Sorry, no keyboard found under this search query.\n"]))],null,null)}function xr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,6,"h1",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Add new keymap"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](8,0,null,null,16,"div",[["class","keymap__search clearfix"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,8,"div",[["class","input-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,3,"span",[["class","input-group-addon"],["id","sizing-addon1"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,0,"i",[["class","fa fa-search"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](17,0,null,null,0,"input",[["class","form-control"],["placeholder","Search ..."],["type","text"]],null,[[null,"input"]],function(e,t,n){var o=!0;return"input"===t&&(o=!1!==e.component.filterKeyboards(n.target.value)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](20,0,null,null,3,"div",[["class","keymap__search_amount"]],null,null,null,null,null)),(e()(),i["\u0275ted"](21,null,["\n "," / "," keymaps shown\n "])),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](26,0,null,null,5,"div",[["class","keymap__list"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,2,null,Tr)),i["\u0275did"](29,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,2,null,Cr)),i["\u0275did"](34,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef])],function(e,t){var n=t.component;e(t,29,0,i["\u0275unv"](t,29,0,i["\u0275nov"](t,30).transform(n.presets$))),e(t,34,0,0===i["\u0275unv"](t,34,0,i["\u0275nov"](t,35).transform(n.presets$)).length)},function(e,t){var n=t.component;e(t,21,0,i["\u0275unv"](t,21,0,i["\u0275nov"](t,22).transform(n.presets$)).length,i["\u0275unv"](t,21,1,i["\u0275nov"](t,23).transform(n.presetsAll$)).length)})}var Or=i["\u0275ccf"]("keymap-add",wr,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"keymap-add",[["class","container-fluid"]],null,null,null,xr,Ar)),i["\u0275did"](1,49152,null,0,wr,[s.m],null,null)],null,null)},{},{},[]),Sr=function(){},Mr=i["\u0275crt"]({encapsulation:0,styles:[[".not-found[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;text-align:center}"]],data:{}});function Er(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,11,"div",[["class","container-fluid"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,5,"uhk-header",[],null,null,null,kt,bt)),i["\u0275did"](3,49152,null,0,vt,[s.m],null,null),(e()(),i["\u0275ted"](-1,0,["\n "])),(e()(),i["\u0275eld"](5,0,null,0,1,"h1",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\xa0"])),(e()(),i["\u0275ted"](-1,0,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,1,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n You don't have any macros. Try to add one!\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,null)}var Pr=i["\u0275ccf"]("macro-not-found",Sr,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"macro-not-found",[],null,null,null,Er,Mr)),i["\u0275did"](1,49152,null,0,Sr,[],null,null)],null,null)},{},{},[]),Ir=function(){function e(e,t){this.store=e,this.renderer=t}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(wt.b.removeMacro(this.macro.id))},e.prototype.duplicateMacro=function(){this.store.dispatch(wt.b.duplicateMacro(this.macro))},e.prototype.editMacroName=function(e){At.d(e)?this.store.dispatch(wt.b.editMacroName(this.macro.id,e)):this.setName()},e.prototype.calculateHeaderTextWidth=function(e){var t=this.macroName.nativeElement,n=.8*t.parentElement.offsetWidth,o=At.b(window.getComputedStyle(t),e);this.renderer.setStyle(t,"width",Math.min(n,o)+"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}(),Rr=i["\u0275crt"]({encapsulation:0,styles:[[".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{-webkit-box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;box-shadow:0 0 0 1px #ccc,0 0 5px 0 #ccc;border-color:transparent}"]],data:{}});function Dr(e){return i["\u0275vid"](2,[i["\u0275qud"](402653184,1,{macroName:0}),(e()(),i["\u0275eld"](1,0,null,null,19,"uhk-header",[],null,null,null,kt,bt)),i["\u0275did"](2,49152,null,0,vt,[s.m],null,null),(e()(),i["\u0275ted"](-1,0,["\n "])),(e()(),i["\u0275eld"](4,0,null,0,15,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,12,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\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,t,n){var o=!0,r=e.component;return"focus"===t&&(o=!1!==i["\u0275nov"](e,11).onFocus()&&o),"keyup.escape"===t&&(o=!1!==i["\u0275nov"](e,11).onEscape()&&o),"change"===t&&(o=!1!==r.editMacroName(n.target.value)&&o),"keyup.enter"===t&&(o=!1!==i["\u0275nov"](e,10).blur()&&o),"keyup"===t&&(o=!1!==r.calculateHeaderTextWidth(n.target.value)&&o),o},null,null)),i["\u0275did"](11,16384,null,0,_t,[i.ElementRef,i.Renderer],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](13,0,null,null,1,"i",[["class","glyphicon glyphicon-trash macro__remove pull-right"],["data-original-title","<span class='text-nowrap'>Delete macro</span>"],["data-placement","bottom"],["data-toggle","tooltip"],["html","true"],["title",""]],[[1,"data-placement",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.removeMacro()&&o),o},null,null)),i["\u0275did"](14,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"],html:[1,"html"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\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,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.duplicateMacro()&&o),o},null,null)),i["\u0275did"](17,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,0,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,14,0,"","true"),e(t,17,0,"")},function(e,t){e(t,13,0,i["\u0275nov"](t,14).placement),e(t,16,0,i["\u0275nov"](t,17).placement)})}var Nr=n("xiuF"),jr=n("LKU8"),Lr=(n("kkgw"),function(){function e(e,t){var n=this;this.mapper=e,this.dragulaService=t,this.add=new i.EventEmitter,this.edit=new i.EventEmitter,this.delete=new i.EventEmitter,this.reorder=new i.EventEmitter,this.newMacro=void 0,this.showNew=!1,this.activeEdit=void 0,t.setOptions("macroActions",{moves:function(e,t,n){return n.className.includes("action--movable")}}),t.drag.subscribe(function(e){n.dragIndex=+e[1].getAttribute("data-index")}),t.drop.subscribe(function(e){e[4]&&n.reorder.emit({macroId:n.macro.id,oldIndex:n.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,t){this.edit.emit({macroId:this.macro.id,index:t,action:e}),this.hideActiveEditor()},e.prototype.deleteAction=function(e,t){this.delete.emit({macroId:this.macro.id,index:t,action:e}),this.hideActiveEditor()},e.prototype.onKeysCapture=function(e){var t=Object.assign(new qe.KeyMacroAction,this.toKeyAction(e));t.action=qe.MacroKeySubAction.tap,this.add.emit({macroId:this.macro.id,action:t})},e.prototype.toKeyAction=function(e){var t=new qe.KeystrokeAction;t.scancode=e.code,t.modifierMask=0;for(var n=e.left.concat(e.right).map(function(e){return e?1:0}),o=0;o<n.length;++o)t.modifierMask|=n[o]<<this.mapper.modifierMapper(o);return t},e.prototype.hideActiveEditor=function(){void 0!==this.activeEdit&&this.macroItems.toArray()[this.activeEdit].cancelEdit()},e}()),Ur=i["\u0275crt"]({encapsulation:0,styles:[[".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:0}[_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;height:100%}[_nghost-%COMP%] .list-container[_ngcontent-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex;-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%]{-webkit-box-shadow:0 0 20px 0 rgba(0,0,0,.5);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}"]],data:{animation:[{type:7,name:"toggler",definitions:[{type:0,name:"inactive",styles:{type:6,styles:{height:"0px"},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{height:"*"},offset:null},options:void 0},{type:1,expr:"inactive <=> active",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null}],options:{}},{type:7,name:"togglerNew",definitions:[{type:0,name:"void",styles:{type:6,styles:{height:"0px"},offset:null},options:void 0},{type:0,name:"active",styles:{type:6,styles:{height:"*"},offset:null},options:void 0},{type:1,expr:":enter",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null},{type:1,expr:":leave",animation:{type:4,styles:null,timings:"500ms ease-out"},options:null}],options:{}}]}});function Vr(e){return i["\u0275vid"](0,[(e()(),i["\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,t,n){var o=!0,i=e.component;return"save"===t&&(o=!1!==i.saveAction(n,e.context.index)&&o),"edit"===t&&(o=!1!==i.editAction(e.context.index)&&o),"cancel"===t&&(o=!1!==i.cancelAction()&&o),"delete"===t&&(o=!1!==i.deleteAction(e.context.$implicit,e.context.index)&&o),o},Vi,Ni)),i["\u0275did"](1,638976,[[1,4]],0,Di,[Bt],{macroAction:[0,"macroAction"],editable:[1,"editable"],deletable:[2,"deletable"],movable:[3,"movable"]},{save:"save",cancel:"cancel",edit:"edit",delete:"delete"})],function(e,t){e(t,1,0,t.context.$implicit,!0,!0,!0)},function(e,t){e(t,0,0,t.context.index)})}function Fr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"macro-item",[["class","macro-item"]],[[24,"@togglerNew",0]],[[null,"save"],[null,"cancel"]],function(e,t,n){var o=!0,i=e.component;return"save"===t&&(o=!1!==i.addNewAction(n)&&o),"cancel"===t&&(o=!1!==i.hideNewAction()&&o),o},Vi,Ni)),i["\u0275did"](1,638976,[[1,4]],0,Di,[Bt],{macroAction:[0,"macroAction"],editable:[1,"editable"],deletable:[2,"deletable"],movable:[3,"movable"]},{save:"save",cancel:"cancel"})],function(e,t){e(t,1,0,t.component.newMacro,!0,!1,!1)},function(e,t){e(t,0,0,t.component.showNew?"active":"inactive")})}function Kr(e){return i["\u0275vid"](0,[i["\u0275qud"](671088640,1,{macroItems:1}),(e()(),i["\u0275eld"](1,0,null,null,38,"div",[["class","row list-container"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,35,"div",[["class","col-xs-10 col-xs-offset-1 list-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),i["\u0275eld"](6,0,null,null,1,"i",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Please note that macro playback is not implemented yet. You can create macros, but they won't have any effect until firmware support is implemented. We're working on this."])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,8,"div",[["class","macro-actions-container"]],null,null,null,null,null)),i["\u0275did"](10,606208,null,0,Nr.DragulaDirective,[i.ElementRef,jr.DragulaService],{dragula:[0,"dragula"],dragulaModel:[1,"dragulaModel"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Vr)),i["\u0275did"](13,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Fr)),i["\u0275did"](16,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](19,0,null,null,18,"div",[["class","list-group add-new__action-container"]],[[24,"@toggler",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](21,0,null,null,15,"div",[["class","list-group-item action--item add-new__action-item no-reorder clearfix"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](23,0,null,null,6,"span",[["class","add-new__action-item--link"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.showNewAction()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](25,0,null,null,3,"button",[["class","btn btn-link"],["type","button"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](27,0,null,null,0,"i",[["class","fa fa-plus"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Add macro action\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](31,0,null,null,4,"span",[["class","add-new__action-item--link"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](33,0,null,null,1,"capture-keystroke-button",[["captureText","Add captured keystroke"],["isLink","true"]],null,[[null,"capture"],[null,"keyup"],[null,"keydown"],[null,"focusout"]],function(e,t,n){var o=!0,r=e.component;return"keyup"===t&&(o=!1!==i["\u0275nov"](e,34).onKeyUp(n)&&o),"keydown"===t&&(o=!1!==i["\u0275nov"](e,34).onKeyDown(n)&&o),"focusout"===t&&(o=!1!==i["\u0275nov"](e,34).onFocusOut()&&o),"capture"===t&&(o=!1!==r.onKeysCapture(n)&&o),o},_o,vo)),i["\u0275did"](34,49152,null,0,go,[Cn],{isLink:[0,"isLink"],captureText:[1,"captureText"]},{capture:"capture"}),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,10,0,"macroActions",n.macro.macroActions),e(t,13,0,n.macro.macroActions),e(t,16,0,n.showNew),e(t,34,0,"true","Add captured keystroke")},function(e,t){e(t,19,0,t.component.showNew?"inactive":"active")})}var Br=function(){function e(e,t){var n=this;this.store=e,this.route=t,this.subscription=t.params.pluck("id").switchMap(function(t){return n.macroId=+t,e.let(Object(xn.c)(n.macroId))}).subscribe(function(e){n.macro=e}),this.isNew="new"===this.route.snapshot.params.empty}return e.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},e.prototype.addAction=function(e,t){this.store.dispatch(wt.b.addMacroAction(e,t))},e.prototype.editAction=function(e,t,n){this.store.dispatch(wt.b.saveMacroAction(e,t,n))},e.prototype.deleteAction=function(e,t,n){this.store.dispatch(wt.b.deleteMacroAction(e,t,n))},e.prototype.reorderAction=function(e,t,n){this.store.dispatch(wt.b.reorderMacroAction(e,t,n))},e}(),Hr=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;height:100%;display:block}.not-found[_ngcontent-%COMP%]{margin-top:30px;font-size:16px;text-align:center}"]],data:{}});function Wr(e){return i["\u0275vid"](0,[(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](1,0,null,null,1,"macro-header",[],null,[["window","resize"]],function(e,t,n){var o=!0;return"window:resize"===t&&(o=!1!==i["\u0275nov"](e,2).windowResize()&&o),o},Dr,Rr)),i["\u0275did"](2,4767744,null,0,Ir,[s.m,i.Renderer2],{macro:[0,"macro"],isNew:[1,"isNew"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,2,"macro-list",[],null,[[null,"add"],[null,"edit"],[null,"delete"],[null,"reorder"]],function(e,t,n){var o=!0,i=e.component;return"add"===t&&(o=!1!==i.addAction(n.macroId,n.action)&&o),"edit"===t&&(o=!1!==i.editAction(n.macroId,n.index,n.action)&&o),"delete"===t&&(o=!1!==i.deleteAction(n.macroId,n.index,n.action)&&o),"reorder"===t&&(o=!1!==i.reorderAction(n.macroId,n.oldIndex,n.newIndex)&&o),o},Kr,Ur)),i["\u0275prd"](8704,null,jr.DragulaService,jr.DragulaService,[]),i["\u0275did"](6,49152,null,0,Lr,[Bt,jr.DragulaService],{macro:[0,"macro"]},{add:"add",edit:"edit",delete:"delete",reorder:"reorder"}),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,2,0,n.macro,n.isNew),e(t,6,0,n.macro)},null)}function qr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"div",[["class","not-found"]],null,null,null,null,null)),(e()(),i["\u0275ted"](1,null,["\n There is no macro with id ",".\n"]))],null,function(e,t){e(t,1,0,t.component.macroId)})}function zr(e){return i["\u0275vid"](0,[(e()(),i["\u0275and"](16777216,null,null,1,null,Wr)),i["\u0275did"](1,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n\n"])),(e()(),i["\u0275and"](16777216,null,null,1,null,qr)),i["\u0275did"](4,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,n.macro),e(t,4,0,!n.macro)},null)}var $r=i["\u0275ccf"]("macro-edit",Br,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"macro-edit",[["class","container-fluid"]],null,null,null,zr,Hr)),i["\u0275did"](1,180224,null,0,Br,[s.m,le.a],null,null)],null,null)},{},{},[]),Gr=function(e){this.name$=e.params.pluck("name")},Yr=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;height:100%;display:block}"]],data:{}});function Qr(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,10,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,7,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-puzzle-piece"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,2,"span",[["class","macro__name pane-title__name"]],null,null,null,null,null)),(e()(),i["\u0275ted"](7,null,["",""])),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\nTo be done..."]))],null,function(e,t){var n=t.component;e(t,7,0,i["\u0275unv"](t,7,0,i["\u0275nov"](t,8).transform(n.name$)))})}var Jr=i["\u0275ccf"]("add-on",Gr,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"add-on",[["class","container-fluid"]],null,null,null,Qr,Yr)),i["\u0275did"](1,49152,null,0,Gr,[le.a],null,null)],null,null)},{},{},[]),Zr=function(){function e(){this.toggleCheckForUpdateOnStartUp=new i.EventEmitter,this.toggleUsePreReleaseUpdate=new i.EventEmitter,this.checkForUpdate=new i.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}(),Xr=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function el(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"span",[["class","fa fa-spinner fa-spin"]],null,null,null,null,null))],null,null)}function tl(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,38,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,35,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,6,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,3,"label",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,0,"input",[["type","checkbox"]],[[8,"checked",0]],[[null,"change"]],function(e,t,n){var o=!0;return"change"===t&&(o=!1!==e.component.emitCheckForUpdateOnStartUp(n.target.checked)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,[" Automatically check for update on\n application start\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](12,0,null,null,6,"div",[["class","checkbox"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,3,"label",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](16,0,null,null,0,"input",[["type","checkbox"]],[[8,"checked",0]],[[null,"change"]],function(e,t,n){var o=!0;return"change"===t&&(o=!1!==e.component.emitUsePreReleaseUpdate(n.target.checked)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,[" Allow alpha / pre release\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](20,0,null,null,10,"div",[["class","form-group"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](22,0,null,null,1,"label",[["class","col-sm-2 control-label"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Version:"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](25,0,null,null,4,"div",[["class","col-sm-10"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](27,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),i["\u0275ted"](28,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n\n "])),(e()(),i["\u0275eld"](32,0,null,null,4,"button",[["class","btn btn-link"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.emitCheckForUpdate()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n Check for update\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,el)),i["\u0275did"](35,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,35,0,t.component.checkingForUpdate)},function(e,t){var n=t.component;e(t,8,0,n.settings.checkForUpdateOnStartUp),e(t,16,0,n.settings.usePreReleaseUpdate),e(t,28,0,n.version)})}var nl=n("w+X5"),ol=function(){function e(e){this.store=e,this.version=Object(At.c)().version,this.autoUpdateSettings$=e.select(u.g),this.checkingForUpdate$=e.select(u.i)}return e.prototype.toogleCheckForUpdateOnStartUp=function(e){this.store.dispatch(new nl.h(e))},e.prototype.toogleUsePreReleaseUpdate=function(e){this.store.dispatch(new nl.i(e))},e.prototype.checkForUpdate=function(){this.store.dispatch(new nl.c)},e}(),il=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{width:100%;height:100%;display:block}"]],data:{}});function rl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,9,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,6,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-gear"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,1,"span",[["class","macro__name pane-title__name"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Settings"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](11,0,null,null,4,"auto-update-settings",[],null,[[null,"toggleCheckForUpdateOnStartUp"],[null,"toggleUsePreReleaseUpdate"],[null,"checkForUpdate"]],function(e,t,n){var o=!0,i=e.component;return"toggleCheckForUpdateOnStartUp"===t&&(o=!1!==i.toogleCheckForUpdateOnStartUp(n)&&o),"toggleUsePreReleaseUpdate"===t&&(o=!1!==i.toogleUsePreReleaseUpdate(n)&&o),"checkForUpdate"===t&&(o=!1!==i.checkForUpdate()&&o),o},tl,Xr)),i["\u0275did"](12,49152,null,0,Zr,[],{version:[0,"version"],settings:[1,"settings"],checkingForUpdate:[2,"checkingForUpdate"]},{toggleCheckForUpdateOnStartUp:"toggleCheckForUpdateOnStartUp",toggleUsePreReleaseUpdate:"toggleUsePreReleaseUpdate",checkForUpdate:"checkForUpdate"}),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,12,0,n.version,i["\u0275unv"](t,12,1,i["\u0275nov"](t,13).transform(n.autoUpdateSettings$)),i["\u0275unv"](t,12,2,i["\u0275nov"](t,14).transform(n.checkingForUpdate$)))},null)}var ll=i["\u0275ccf"]("settings",ol,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"settings",[["class","container-fluid"]],null,null,null,rl,il)),i["\u0275did"](1,49152,null,0,ol,[s.m],null,null)],null,null)},{},{},[]),sl=function(){function e(e){this.store=e,this.version=Object(At.c)().version}return e.prototype.openAgentGitHubPage=function(e){e.preventDefault(),this.store.dispatch(new F.h(qe.Constants.AGENT_GITHUB_URL))},e}(),al=i["\u0275crt"]({encapsulation:0,styles:[["[_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}"]],data:{}});function ul(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,21,"div",[["class","row"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,6,"h1",[["class","col-xs-12 pane-title"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,0,"i",[["class","uhk-icon uhk-icon-agent-icon"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](6,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["About"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,10,"div",[["class","col-xs-12"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](12,0,null,null,3,"div",[["class","agent-version"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["Agent version: "])),(e()(),i["\u0275eld"](14,0,null,null,1,"span",[["class","text-bold"]],null,null,null,null,null)),(e()(),i["\u0275ted"](15,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](17,0,null,null,2,"div",[],null,null,null,null,null)),(e()(),i["\u0275eld"](18,0,null,null,1,"a",[["class","link-github"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.openAgentGitHubPage(n)&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["Agent on GitHub"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,function(e,t){e(t,15,0,t.component.version)})}var cl=i["\u0275ccf"]("about-page",sl,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"about-page",[["class","container-fluid"]],null,null,null,ul,al)),i["\u0275did"](1,49152,null,0,sl,[s.m],null,null)],null,null)},{},{},[]),dl=function(){return function(){this.updateApp=new i.EventEmitter,this.doNotUpdateApp=new i.EventEmitter}}(),pl=i["\u0275crt"]({encapsulation:0,styles:[[".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}"]],data:{}});function fl(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,7,"div",[["class","app-update-available-wrapper"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n New version available.\n "])),(e()(),i["\u0275eld"](2,0,null,null,1,"button",[["class","btn btn-primary"],["type","button"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.updateApp.emit()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["Update"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,1,"button",[["class","btn btn-default"],["type","button"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.doNotUpdateApp.emit()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["Close"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,null)}var hl=function(e){},yl=function(){function e(e,t){this._cdRef=e,this._renderer=t,this.maxParentWidthPercent=1,this._onChanged=hl,this._onTouched=hl}return Object.defineProperty(e.prototype,"model",{get:function(){return this._model},set:function(e){this._model!==e&&(this._model=e)},enumerable:!0,configurable:!0}),e.prototype.registerOnChange=function(e){this._onChanged=e},e.prototype.registerOnTouched=function(e){this._onTouched=e},e.prototype.setDisabledState=function(e){this.disabled!==e&&(this.disabled=e,this._cdRef.markForCheck())},e.prototype.windowResize=function(){this.calculateTextWidth(this._model)},e.prototype.writeValue=function(e){console.log("write",new Date),this.model!==e&&(this._model=e,this._originalModel=e,this.calculateTextWidth(this._model),this._cdRef.markForCheck())},e.prototype.focus=function(){this._onTouched(this)},e.prototype.blur=function(){if(!At.d(this._model)||this._model.trim()===this._originalModel)return this._model=this._originalModel,this.calculateTextWidth(this._model),void this._cdRef.markForCheck();this._originalModel=this._model,this._onChanged(this._model)},e.prototype.keyEnter=function(e){e.target.blur()},e.prototype.calculateTextWidth=function(e){var t=this.inputControl.nativeElement,n=t.parentElement.parentElement.offsetWidth*this.maxParentWidthPercent,o=At.b(window.getComputedStyle(t),e);this._renderer.setStyle(t,"width",Math.min(n,o)+"px")},e}(),ml=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function gl(e){return i["\u0275vid"](2,[i["\u0275qud"](402653184,1,{inputControl:0}),(e()(),i["\u0275eld"](1,0,[[1,0],["inputControl",1]],null,6,"input",[["cancelable",""],["type","text"]],[[8,"className",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"blur"],[null,"focus"],[null,"keyup.enter"],[null,"keyup"],[null,"input"],[null,"compositionstart"],[null,"compositionend"],[null,"keyup.escape"]],function(e,t,n){var o=!0,r=e.component;return"input"===t&&(o=!1!==i["\u0275nov"](e,2)._handleInput(n.target.value)&&o),"blur"===t&&(o=!1!==i["\u0275nov"](e,2).onTouched()&&o),"compositionstart"===t&&(o=!1!==i["\u0275nov"](e,2)._compositionStart()&&o),"compositionend"===t&&(o=!1!==i["\u0275nov"](e,2)._compositionEnd(n.target.value)&&o),"focus"===t&&(o=!1!==i["\u0275nov"](e,7).onFocus()&&o),"keyup.escape"===t&&(o=!1!==i["\u0275nov"](e,7).onEscape()&&o),"ngModelChange"===t&&(o=!1!==(r.model=n)&&o),"blur"===t&&(o=!1!==r.blur()&&o),"focus"===t&&(o=!1!==r.focus()&&o),"keyup.enter"===t&&(o=!1!==r.keyEnter(n)&&o),"keyup"===t&&(o=!1!==r.calculateTextWidth(n.target.value)&&o),o},null,null)),i["\u0275did"](2,16384,null,0,je.DefaultValueAccessor,[i.Renderer2,i.ElementRef,[2,je.COMPOSITION_BUFFER_MODE]],null,null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[je.DefaultValueAccessor]),i["\u0275did"](4,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](6,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),i["\u0275did"](7,16384,null,0,_t,[i.ElementRef,i.Renderer],null,null),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,4,0,n.disabled,n.model)},function(e,t){e(t,1,0,t.component.css,i["\u0275nov"](t,6).ngClassUntouched,i["\u0275nov"](t,6).ngClassTouched,i["\u0275nov"](t,6).ngClassPristine,i["\u0275nov"](t,6).ngClassDirty,i["\u0275nov"](t,6).ngClassValid,i["\u0275nov"](t,6).ngClassInvalid,i["\u0275nov"](t,6).ngClassPending)})}n("EnA3");var vl=function(){function e(e,t,n){this.store=e,this.renderer=t,this.cdRef=n,this.animation={device:"active",configuration:"active",keymap:"active",macro:"active",addon:"active"}}return e.prototype.ngOnInit=function(){var e=this;this.stateSubscription=this.store.select(u.p).subscribe(function(t){e.state=t,e.cdRef.markForCheck()})},e.prototype.ngOnDestroy=function(){this.stateSubscription&&this.stateSubscription.unsubscribe()},e.prototype.toggleHide=function(e,t){if(!this.state.updatingFirmware){var n=!1;e.target.classList.contains("fa-chevron-down")?(n=!0,this.animation[t]="active"):this.animation[t]="inactive",n?(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(wt.b.addMacro())},e.prototype.editDeviceName=function(e){this.store.dispatch(new me.h(e))},e}(),bl=i["\u0275crt"]({encapsulation:0,styles:[["[_nghost-%COMP%]{background-color:#f5f5f5;border-right:1px solid #ccc;position:fixed;overflow-y:auto;width:250px;height:100%}a[_ngcontent-%COMP%]{color:#333}a.disabled[_ngcontent-%COMP%]{opacity:.65}ul[_ngcontent-%COMP%]{padding:0;margin:0}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{list-style:none;padding:0}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%]:nth-child(1), .sidebar__level-1--item[_ngcontent-%COMP%]:nth-child(1){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-2--item[_ngcontent-%COMP%] a.disabled[_ngcontent-%COMP%]{opacity:.65}.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}"]],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:{}}]}});function kl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](3,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,2,{links:1}),i["\u0275qud"](603979776,3,{linksWithHrefs:1}),i["\u0275pad"](6,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](9,671744,[[3,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](10,1),(e()(),i["\u0275ted"](-1,null,["Mouse speed"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/device/mouse-speed"))},function(e,t){e(t,8,0,t.component.state.updatingFirmware,i["\u0275nov"](t,9).target,i["\u0275nov"](t,9).href)})}function _l(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](3,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,4,{links:1}),i["\u0275qud"](603979776,5,{linksWithHrefs:1}),i["\u0275pad"](6,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](9,671744,[[5,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](10,1),(e()(),i["\u0275ted"](-1,null,["LED brightness"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/device/led-brightness"))},function(e,t){e(t,8,0,t.component.state.updatingFirmware,i["\u0275nov"](t,9).target,i["\u0275nov"](t,9).href)})}function wl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](3,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,6,{links:1}),i["\u0275qud"](603979776,7,{linksWithHrefs:1}),i["\u0275pad"](6,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](9,671744,[[7,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](10,1),(e()(),i["\u0275ted"](-1,null,["Configuration"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/device/configuration"))},function(e,t){e(t,8,0,t.component.state.updatingFirmware,i["\u0275nov"](t,9).target,i["\u0275nov"](t,9).href)})}function Al(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](3,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,8,{links:1}),i["\u0275qud"](603979776,9,{linksWithHrefs:1}),i["\u0275pad"](6,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,3,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](9,671744,[[9,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](10,1),(e()(),i["\u0275ted"](-1,null,["Fix configuration"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/device/restore-user-configuration"))},function(e,t){e(t,8,0,i["\u0275nov"](t,9).target,i["\u0275nov"](t,9).href)})}function Tl(e){return i["\u0275vid"](0,[(e()(),i["\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)),i["\u0275did"](1,1589248,null,0,U,[i.ElementRef,P.c],{title:[0,"title"]},null)],function(e,t){e(t,1,0,"This is the default keymap which gets activated when powering the keyboard.")},function(e,t){e(t,0,0,i["\u0275nov"](t,1).placement)})}function Cl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,16,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,13,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](3,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,12,{links:1}),i["\u0275qud"](603979776,13,{linksWithHrefs:1}),i["\u0275pad"](6,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](9,671744,[[13,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](10,2),(e()(),i["\u0275ted"](11,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Tl)),i["\u0275did"](14,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/keymap",t.context.$implicit.abbreviation)),e(t,14,0,t.context.$implicit.isDefault)},function(e,t){e(t,8,0,t.component.state.updatingFirmware,i["\u0275nov"](t,9).target,i["\u0275nov"](t,9).href),e(t,11,0,t.context.$implicit.name)})}function xl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,15,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,6,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-keyboard-o"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Keymaps\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.toggleHide(n,"keymap")&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,0,null,null,4,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Cl)),i["\u0275did"](13,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,13,0,t.component.state.keymaps)},function(e,t){e(t,10,0,t.component.animation.keymap)})}function Ol(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](3,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,14,{links:1}),i["\u0275qud"](603979776,15,{linksWithHrefs:1}),i["\u0275pad"](6,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,9).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](9,671744,[[15,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](10,2),(e()(),i["\u0275ted"](11,null,["",""])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,3,0,e(t,6,0,"active")),e(t,9,0,e(t,10,0,"/macro",t.context.$implicit.id))},function(e,t){e(t,8,0,t.component.state.updatingFirmware,i["\u0275nov"](t,9).target,i["\u0275nov"](t,9).href),e(t,11,0,t.context.$implicit.name)})}function Sl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,19,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,10,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-play"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Macros\n "])),(e()(),i["\u0275eld"](6,0,null,null,3,"a",[["class","btn btn-default pull-right btn-sm"]],[[2,"disabled",null]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.addMacro()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](8,0,null,null,0,"i",[["class","fa fa-plus"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.toggleHide(n,"macro")&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](14,0,null,null,4,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ol)),i["\u0275did"](17,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,17,0,t.component.state.macros)},function(e,t){var n=t.component;e(t,6,0,n.state.updatingFirmware),e(t,14,0,n.animation.macro)})}function Ml(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,71,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](2,0,null,null,5,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](4,0,null,null,0,"i",[["class","fa fa-puzzle-piece"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Add-on modules\n "])),(e()(),i["\u0275eld"](6,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.toggleHide(n,"addon")&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,61,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](11,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Key cluster"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](13,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](14,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,16,{links:1}),i["\u0275qud"](603979776,17,{linksWithHrefs:1}),i["\u0275pad"](17,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](19,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,20).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](20,671744,[[17,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](21,2),(e()(),i["\u0275ted"](-1,null,["Key cluster"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](26,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Trackball"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](28,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](29,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,18,{links:1}),i["\u0275qud"](603979776,19,{linksWithHrefs:1}),i["\u0275pad"](32,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](34,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,35).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](35,671744,[[19,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](36,2),(e()(),i["\u0275ted"](-1,null,["Trackball"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](41,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Toucpad"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](43,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](44,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,20,{links:1}),i["\u0275qud"](603979776,21,{linksWithHrefs:1}),i["\u0275pad"](47,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](49,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,50).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](50,671744,[[21,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](51,2),(e()(),i["\u0275ted"](-1,null,["Touchpad"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](56,0,null,null,13,"li",[["class","sidebar__level-2--item"],["data-abbrev",""],["data-name","Trackpoint"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](58,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](59,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,22,{links:1}),i["\u0275qud"](603979776,23,{linksWithHrefs:1}),i["\u0275pad"](62,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](64,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,65).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](65,671744,[[23,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](66,2),(e()(),i["\u0275ted"](-1,null,["Trackpoint"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "]))],function(e,t){e(t,14,0,e(t,17,0,"active")),e(t,20,0,e(t,21,0,"/add-on","Key cluster")),e(t,29,0,e(t,32,0,"active")),e(t,35,0,e(t,36,0,"/add-on","Trackball")),e(t,44,0,e(t,47,0,"active")),e(t,50,0,e(t,51,0,"/add-on","Touchpad")),e(t,59,0,e(t,62,0,"active")),e(t,65,0,e(t,66,0,"/add-on","Trackpoint"))},function(e,t){var n=t.component;e(t,9,0,n.animation.addon),e(t,19,0,n.state.updatingFirmware,i["\u0275nov"](t,20).target,i["\u0275nov"](t,20).href),e(t,34,0,n.state.updatingFirmware,i["\u0275nov"](t,35).target,i["\u0275nov"](t,35).href),e(t,49,0,n.state.updatingFirmware,i["\u0275nov"](t,50).target,i["\u0275nov"](t,50).href),e(t,64,0,n.state.updatingFirmware,i["\u0275nov"](t,65).target,i["\u0275nov"](t,65).href)})}function El(e){return i["\u0275vid"](2,[i["\u0275qud"](402653184,1,{deviceName:0}),(e()(),i["\u0275eld"](1,0,null,null,117,"ul",[["class","menu--top"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](3,0,null,null,67,"li",[["class","sidebar__level-0--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](5,0,null,null,12,"div",[["class","sidebar__level-0"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](7,0,null,null,0,"i",[["class","uhk-icon uhk-icon-0401-usb-stick rotate-right"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](9,0,null,null,5,"auto-grow-input",[],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],["window","resize"]],function(e,t,n){var o=!0,r=e.component;return"window:resize"===t&&(o=!1!==i["\u0275nov"](e,10).windowResize()&&o),"ngModelChange"===t&&(o=!1!==r.editDeviceName(n)&&o),o},gl,ml)),i["\u0275did"](10,49152,null,0,yl,[i.ChangeDetectorRef,i.Renderer2],{maxParentWidthPercent:[0,"maxParentWidthPercent"],css:[1,"css"]},null),i["\u0275prd"](1024,null,je.NG_VALUE_ACCESSOR,function(e){return[e]},[yl]),i["\u0275did"](12,671744,null,0,je.NgModel,[[8,null],[8,null],[8,null],[2,je.NG_VALUE_ACCESSOR]],{isDisabled:[0,"isDisabled"],model:[1,"model"]},{update:"ngModelChange"}),i["\u0275prd"](2048,null,je.NgControl,null,[je.NgModel]),i["\u0275did"](14,16384,null,0,je.NgControlStatus,[je.NgControl],null,null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](16,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.toggleHide(n,"device")&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](19,0,null,null,50,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](21,0,null,null,38,"li",[["class","sidebar__level-1--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](23,0,null,null,5,"div",[["class","sidebar__level-1"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](25,0,null,null,0,"i",[["class","fa fa-sliders"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Device\n "])),(e()(),i["\u0275eld"](27,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.toggleHide(n,"configuration")&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](30,0,null,null,28,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,kl)),i["\u0275did"](33,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,_l)),i["\u0275did"](36,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,wl)),i["\u0275did"](39,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Al)),i["\u0275did"](42,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](44,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](46,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](47,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,10,{links:1}),i["\u0275qud"](603979776,11,{linksWithHrefs:1}),i["\u0275pad"](50,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](52,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,53).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](53,671744,[[11,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](54,1),(e()(),i["\u0275ted"](-1,null,["Firmware"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,xl)),i["\u0275did"](62,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Sl)),i["\u0275did"](65,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Ml)),i["\u0275did"](68,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](72,0,null,null,45,"li",[["class","sidebar__level-0--item"]],null,null,null,null,null)),i["\u0275did"](73,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,24,{links:1}),i["\u0275qud"](603979776,25,{linksWithHrefs:1}),i["\u0275pad"](76,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](78,0,null,null,5,"div",[["class","sidebar__level-0"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](80,0,null,null,0,"i",[["class","uhk-icon uhk-icon-agent-icon"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,[" Agent\n "])),(e()(),i["\u0275eld"](82,0,null,null,0,"i",[["class","fa fa-chevron-up pull-right"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.toggleHide(n,"agent")&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](85,0,null,null,31,"ul",[],[[24,"@toggler",0]],null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](87,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](89,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](90,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,26,{links:1}),i["\u0275qud"](603979776,27,{linksWithHrefs:1}),i["\u0275pad"](93,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](95,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,96).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](96,671744,[[27,4],[25,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](97,1),(e()(),i["\u0275ted"](-1,null,["Settings"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](102,0,null,null,13,"li",[["class","sidebar__level-2--item"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](104,0,null,null,10,"div",[["class","sidebar__level-2"]],null,null,null,null,null)),i["\u0275did"](105,1720320,null,2,le.n,[le.m,i.ElementRef,i.Renderer2,i.ChangeDetectorRef],{routerLinkActive:[0,"routerLinkActive"]},null),i["\u0275qud"](603979776,28,{links:1}),i["\u0275qud"](603979776,29,{linksWithHrefs:1}),i["\u0275pad"](108,1),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](110,0,null,null,3,"a",[],[[2,"disabled",null],[1,"target",0],[8,"href",4]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==i["\u0275nov"](e,111).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&o),o},null,null)),i["\u0275did"](111,671744,[[29,4],[25,4]],0,le.o,[le.m,le.a,d.h],{routerLink:[0,"routerLink"]},null),i["\u0275pad"](112,1),(e()(),i["\u0275ted"](-1,null,["About"])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,10,0,.65,"side-menu-pane-title__name"),e(t,12,0,n.state.restoreUserConfiguration||n.state.updatingFirmware,n.state.deviceName),e(t,33,0,!n.state.restoreUserConfiguration),e(t,36,0,!n.state.restoreUserConfiguration),e(t,39,0,!n.state.restoreUserConfiguration),e(t,42,0,n.state.restoreUserConfiguration),e(t,47,0,e(t,50,0,"active")),e(t,53,0,e(t,54,0,"/device/firmware")),e(t,62,0,!n.state.restoreUserConfiguration),e(t,65,0,!n.state.restoreUserConfiguration),e(t,68,0,n.state.showAddonMenu),e(t,73,0,e(t,76,0,"active")),e(t,90,0,e(t,93,0,"active")),e(t,96,0,e(t,97,0,"/settings")),e(t,105,0,e(t,108,0,"active")),e(t,111,0,e(t,112,0,"/about"))},function(e,t){var n=t.component;e(t,9,0,i["\u0275nov"](t,14).ngClassUntouched,i["\u0275nov"](t,14).ngClassTouched,i["\u0275nov"](t,14).ngClassPristine,i["\u0275nov"](t,14).ngClassDirty,i["\u0275nov"](t,14).ngClassValid,i["\u0275nov"](t,14).ngClassInvalid,i["\u0275nov"](t,14).ngClassPending),e(t,19,0,n.animation.device),e(t,30,0,n.animation.configuration),e(t,52,0,n.state.updatingFirmware,i["\u0275nov"](t,53).target,i["\u0275nov"](t,53).href),e(t,85,0,n.animation.agent),e(t,95,0,n.state.updatingFirmware,i["\u0275nov"](t,96).target,i["\u0275nov"](t,96).href),e(t,110,0,n.state.updatingFirmware,i["\u0275nov"](t,111).target,i["\u0275nov"](t,111).href)})}var Pl=n("MptX"),Il=function(){function e(){this.state=Pl.a,this.clicked=new i.EventEmitter}return e.prototype.onClicked=function(){this.clicked.emit(this.state.action)},e}(),Rl=i["\u0275crt"]({encapsulation:0,styles:[["button[_ngcontent-%COMP%]{min-width:150px}"]],data:{}});function Dl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,0,"i",[["class","fa fa-spin fa-spinner"]],null,null,null,null,null))],null,null)}function Nl(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,4,"button",[["class","btn btn-primary"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.onClicked()&&o),o},null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275and"](16777216,null,null,1,null,Dl)),i["\u0275did"](3,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),(e()(),i["\u0275ted"](4,null,[" ","\n"])),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){e(t,3,0,t.component.state.showProgress)},function(e,t){var n=t.component;e(t,0,0,n.state.showProgress),e(t,4,0,n.state.text)})}var jl=n("EEr4"),Ll=function(){return function(e){Object.assign(this,e),void 0===e.id&&(this.id="ID_"+(new Date).getTime())}}(),Ul=function(){function e(){this.actionStream=new jl.Subject,this.actionQueue=[],this.isActionInProgress=!1}return e.prototype.push=function(e){this.actionQueue.push(e),this.tryToRunNextAction()},e.prototype.continue=function(){this.isActionInProgress=!1,this.tryToRunNextAction()},e.prototype.tryToRunNextAction=function(){this.isActionInProgress||0===this.actionQueue.length||(this.isActionInProgress=!0,this.actionStream.next(this.actionQueue.shift()))},e}(),Vl=function(){return function(e){void 0===e&&(e={}),this.animations={enabled:!0,hide:{easing:"ease",offset:50,preset:"fade",speed:300},overlap:150,shift:{easing:"ease",speed:300},show:{easing:"ease",preset:"slide",speed:300}},this.behaviour={autoHide:7e3,onClick:!1,onMouseover:"pauseAutoHide",showDismissButton:!0,stacking:4},this.position={horizontal:{distance:12,position:"left"},vertical:{distance:12,gap:10,position:"bottom"}},this.theme="material",void 0!==e.theme&&(this.theme=e.theme),void 0!==e.animations&&(void 0!==e.animations.enabled&&(this.animations.enabled=e.animations.enabled),void 0!==e.animations.overlap&&(this.animations.overlap=e.animations.overlap),void 0!==e.animations.hide&&Object.assign(this.animations.hide,e.animations.hide),void 0!==e.animations.shift&&Object.assign(this.animations.shift,e.animations.shift),void 0!==e.animations.show&&Object.assign(this.animations.show,e.animations.show)),void 0!==e.behaviour&&Object.assign(this.behaviour,e.behaviour),void 0!==e.position&&(void 0!==e.position.horizontal&&Object.assign(this.position.horizontal,e.position.horizontal),void 0!==e.position.vertical&&Object.assign(this.position.vertical,e.position.vertical))}}(),Fl=function(){function e(e,t){this.queueService=e,this.config=t}return e.prototype.getConfig=function(){return this.config},e.prototype.show=function(e){this.queueService.push({payload:e,type:"SHOW"})},e.prototype.hide=function(e){this.queueService.push({payload:e,type:"HIDE"})},e.prototype.hideNewest=function(){this.queueService.push({type:"HIDE_NEWEST"})},e.prototype.hideOldest=function(){this.queueService.push({type:"HIDE_OLDEST"})},e.prototype.hideAll=function(){this.queueService.push({type:"HIDE_ALL"})},e.prototype.notify=function(e,t,n){var o={message:t,type:e};void 0!==n&&(o.id=n),this.show(o)},e}(),Kl=function(){function e(e,t,n){this.changeDetector=e,this.queueService=t,this.config=n.getConfig(),this.notifications=[]}return e.prototype.ngOnInit=function(){var e=this;this.queueServiceSubscription=this.queueService.actionStream.subscribe(function(t){e.handleAction(t).then(function(){e.queueService.continue()})})},e.prototype.ngOnDestroy=function(){this.queueServiceSubscription&&this.queueServiceSubscription.unsubscribe()},e.prototype.identifyNotification=function(e,t){return t.id},e.prototype.onNotificationDismiss=function(e){this.queueService.push({payload:e,type:"HIDE"})},e.prototype.onNotificationReady=function(e){var t=this.notifications[this.notifications.length-1];t.component=e,this.continueHandleShowAction(t)},e.prototype.handleAction=function(e){switch(e.type){case"SHOW":return this.handleShowAction(e);case"HIDE":return this.handleHideAction(e);case"HIDE_OLDEST":return this.handleHideOldestAction(e);case"HIDE_NEWEST":return this.handleHideNewestAction(e);case"HIDE_ALL":return this.handleHideAllAction(e);default:return new Promise(function(e,t){e()})}},e.prototype.handleShowAction=function(e){var t=this;return new Promise(function(n,o){t.tempPromiseResolver=n,t.addNotificationToList(new Ll(e.payload))})},e.prototype.continueHandleShowAction=function(e){var t=this,n=this.notifications.length;if(1===n)e.component.show().then(this.tempPromiseResolver);else if(!1===this.config.behaviour.stacking||this.config.behaviour.stacking<2)this.notifications[0].component.hide().then(function(){t.removeNotificationFromList(t.notifications[0]),e.component.show().then(t.tempPromiseResolver)});else{var o=[];if(n>this.config.behaviour.stacking){var i=this.notifications.slice(1,n-1);this.config.animations.enabled?!1!==this.config.animations.overlap&&this.config.animations.overlap>0?(o.push(this.notifications[0].component.hide()),setTimeout(function(){o.push(t.shiftNotifications(i,e.component.getHeight(),!0))},this.config.animations.hide.speed-this.config.animations.overlap),setTimeout(function(){o.push(e.component.show())},this.config.animations.hide.speed+this.config.animations.shift.speed-this.config.animations.overlap)):o.push(new Promise(function(n,o){t.notifications[0].component.hide().then(function(){t.shiftNotifications(i,e.component.getHeight(),!0).then(function(){e.component.show().then(n)})})})):(o.push(this.notifications[0].component.hide()),o.push(this.shiftNotifications(i,e.component.getHeight(),!0)),o.push(e.component.show()))}else{var r=this.notifications.slice(0,n-1);this.config.animations.enabled?!1!==this.config.animations.overlap&&this.config.animations.overlap>0?(o.push(this.shiftNotifications(r,e.component.getHeight(),!0)),setTimeout(function(){o.push(e.component.show())},this.config.animations.shift.speed-this.config.animations.overlap)):o.push(new Promise(function(n,o){t.shiftNotifications(r,e.component.getHeight(),!0).then(function(){e.component.show().then(n)})})):(o.push(this.shiftNotifications(r,e.component.getHeight(),!0)),o.push(e.component.show()))}Promise.all(o).then(function(){n>t.config.behaviour.stacking&&t.removeNotificationFromList(t.notifications[0]),t.tempPromiseResolver()})}},e.prototype.handleHideAction=function(e){var t=this;return new Promise(function(n,o){var i=[],r=t.findNotificationById(e.payload);if(void 0!==r){var l=t.findNotificationIndexById(e.payload);if(void 0!==l){var s=t.notifications.slice(0,l);s.length>0?t.config.animations.enabled&&t.config.animations.hide.speed>0?!1!==t.config.animations.overlap&&t.config.animations.overlap>0?(i.push(r.component.hide()),setTimeout(function(){i.push(t.shiftNotifications(s,r.component.getHeight(),!1))},t.config.animations.hide.speed-t.config.animations.overlap)):r.component.hide().then(function(){i.push(t.shiftNotifications(s,r.component.getHeight(),!1))}):(i.push(r.component.hide()),i.push(t.shiftNotifications(s,r.component.getHeight(),!1))):i.push(r.component.hide()),Promise.all(i).then(function(){t.removeNotificationFromList(r),n()})}else n()}else n()})},e.prototype.handleHideOldestAction=function(e){return 0===this.notifications.length?new Promise(function(e,t){e()}):(e.payload=this.notifications[0].id,this.handleHideAction(e))},e.prototype.handleHideNewestAction=function(e){return 0===this.notifications.length?new Promise(function(e,t){e()}):(e.payload=this.notifications[this.notifications.length-1].id,this.handleHideAction(e))},e.prototype.handleHideAllAction=function(e){var t=this;return new Promise(function(e,n){var o=t.notifications.length;if(0!==o)if(t.config.animations.enabled&&t.config.animations.hide.speed>0&&!1!==t.config.animations.hide.offset&&t.config.animations.hide.offset>0)for(var i=function(n){setTimeout(function(){t.notifications[n].component.hide().then(function(){("top"===t.config.position.vertical.position&&0===n||"bottom"===t.config.position.vertical.position&&n===o-1)&&(t.removeAllNotificationsFromList(),e())})},t.config.animations.hide.offset*("top"===t.config.position.vertical.position?o-1:n))},r=o-1;r>=0;r--)i(r);else{var l=[];for(r=o-1;r>=0;r--)l.push(t.notifications[r].component.hide());Promise.all(l).then(function(){t.removeAllNotificationsFromList(),e()})}else e()})},e.prototype.shiftNotifications=function(e,t,n){return new Promise(function(o,i){if(0!==e.length){for(var r=[],l=e.length-1;l>=0;l--)r.push(e[l].component.shift(t,n));Promise.all(r).then(o)}else o()})},e.prototype.addNotificationToList=function(e){this.notifications.push(e),this.changeDetector.markForCheck()},e.prototype.removeNotificationFromList=function(e){this.notifications=this.notifications.filter(function(t){return t.component!==e.component}),this.changeDetector.markForCheck()},e.prototype.removeAllNotificationsFromList=function(){this.notifications=[],this.changeDetector.markForCheck()},e.prototype.findNotificationById=function(e){return this.notifications.find(function(t){return t.id===e})},e.prototype.findNotificationIndexById=function(e){var t=this.notifications.findIndex(function(t){return t.id===e});return-1!==t?t:void 0},e}(),Bl={hide:function(e){return{from:{opacity:"1"},to:{opacity:"0"}}},show:function(e){return{from:{opacity:"0"},to:{opacity:"1"}}}},Hl={hide:function(e){var t,n,o=e.component.getConfig(),i=e.component.getShift();return"left"===o.position.horizontal.position?(t={transform:"translate3d( 0, "+i+"px, 0 )"},n={transform:"translate3d( calc( -100% - "+o.position.horizontal.distance+"px - 10px ), "+i+"px, 0 )"}):"right"===o.position.horizontal.position?(t={transform:"translate3d( 0, "+i+"px, 0 )"},n={transform:"translate3d( calc( 100% + "+o.position.horizontal.distance+"px + 10px ), "+i+"px, 0 )"}):(t={transform:"translate3d( -50%, "+i+"px, 0 )"},n={transform:"translate3d( -50%, "+("top"===o.position.vertical.position?"calc( -100% - "+o.position.horizontal.distance+"px - 10px )":"calc( 100% + "+o.position.horizontal.distance+"px + 10px )")+", 0 )"}),{from:t,to:n}},show:function(e){var t,n,o=e.component.getConfig();return"left"===o.position.horizontal.position?(t={transform:"translate3d( calc( -100% - "+o.position.horizontal.distance+"px - 10px ), 0, 0 )"},n={transform:"translate3d( 0, 0, 0 )"}):"right"===o.position.horizontal.position?(t={transform:"translate3d( calc( 100% + "+o.position.horizontal.distance+"px + 10px ), 0, 0 )"},n={transform:"translate3d( 0, 0, 0 )"}):(t={transform:"translate3d( -50%, "+("top"===o.position.vertical.position?"calc( -100% - "+o.position.horizontal.distance+"px - 10px )":"calc( 100% + "+o.position.horizontal.distance+"px + 10px )")+", 0 )"},n={transform:"translate3d( -50%, 0, 0 )"}),{from:t,to:n}}},Wl=function(){function e(){this.animationPresets={fade:Bl,slide:Hl}}return e.prototype.getAnimationData=function(e,t){var n,o,i;return"show"===e?(n=this.animationPresets[t.component.getConfig().animations.show.preset].show(t),o=t.component.getConfig().animations.show.speed,i=t.component.getConfig().animations.show.easing):(n=this.animationPresets[t.component.getConfig().animations.hide.preset].hide(t),o=t.component.getConfig().animations.hide.speed,i=t.component.getConfig().animations.hide.easing),{keyframes:[n.from,n.to],options:{duration:o,easing:i,fill:"forwards"}}},e}(),ql=function(){function e(){this.now=0,this.remaining=0}return e.prototype.start=function(e){var t=this;return new Promise(function(n,o){t.remaining=e,t.finishPromiseResolver=n,t.continue()})},e.prototype.pause=function(){clearTimeout(this.timerId),this.remaining-=(new Date).getTime()-this.now},e.prototype.continue=function(){var e=this;this.now=(new Date).getTime(),this.timerId=setTimeout(function(){e.finish()},this.remaining)},e.prototype.stop=function(){clearTimeout(this.timerId),this.remaining=0},e.prototype.finish=function(){this.finishPromiseResolver()},e}(),zl=function(){function e(e,t,n,o,r){this.config=n.getConfig(),this.ready=new i.EventEmitter,this.dismiss=new i.EventEmitter,this.timerService=o,this.animationService=r,this.renderer=t,this.element=e.nativeElement,this.elementShift=0}return e.prototype.ngAfterViewInit=function(){this.setup(),this.elementHeight=this.element.offsetHeight,this.elementWidth=this.element.offsetWidth,this.ready.emit(this)},e.prototype.getConfig=function(){return this.config},e.prototype.getHeight=function(){return this.elementHeight},e.prototype.getWidth=function(){return this.elementWidth},e.prototype.getShift=function(){return this.elementShift},e.prototype.show=function(){var e=this;return new Promise(function(t,n){if(e.config.animations.enabled&&e.config.animations.show.speed>0){for(var o=e.animationService.getAnimationData("show",e.notification),i=Object.keys(o.keyframes[0]),r=i.length-1;r>=0;r--)e.renderer.setStyle(e.element,i[r],o.keyframes[0][i[r]]);e.renderer.setStyle(e.element,"visibility","visible"),e.element.animate(o.keyframes,o.options).onfinish=function(){e.startAutoHideTimer(),t()}}else e.renderer.setStyle(e.element,"visibility","visible"),e.startAutoHideTimer(),t()})},e.prototype.hide=function(){var e=this;return new Promise(function(t,n){if(e.stopAutoHideTimer(),e.config.animations.enabled&&e.config.animations.hide.speed>0){var o=e.animationService.getAnimationData("hide",e.notification);e.element.animate(o.keyframes,o.options).onfinish=function(){t()}}else t()})},e.prototype.shift=function(e,t){var n=this;return new Promise(function(o,i){var r;r="top"===n.config.position.vertical.position&&t||"bottom"===n.config.position.vertical.position&&!t?n.elementShift+e+n.config.position.vertical.gap:n.elementShift-e-n.config.position.vertical.gap;var l="middle"===n.config.position.horizontal.position?"-50%":"0";if(n.config.animations.enabled&&n.config.animations.shift.speed>0){var s={keyframes:[{transform:"translate3d( "+l+", "+n.elementShift+"px, 0 )"},{transform:"translate3d( "+l+", "+r+"px, 0 )"}],options:{duration:n.config.animations.shift.speed,easing:n.config.animations.shift.easing,fill:"forwards"}};n.elementShift=r,n.element.animate(s.keyframes,s.options).onfinish=function(){o()}}else n.renderer.setStyle(n.element,"transform","translate3d( "+l+", "+r+"px, 0 )"),n.elementShift=r,o()})},e.prototype.onClickDismiss=function(){this.dismiss.emit(this.notification.id)},e.prototype.onNotificationMouseover=function(){"pauseAutoHide"===this.config.behaviour.onMouseover?this.pauseAutoHideTimer():"resetAutoHide"===this.config.behaviour.onMouseover&&this.stopAutoHideTimer()},e.prototype.onNotificationMouseout=function(){"pauseAutoHide"===this.config.behaviour.onMouseover?this.continueAutoHideTimer():"resetAutoHide"===this.config.behaviour.onMouseover&&this.startAutoHideTimer()},e.prototype.onNotificationClick=function(){"hide"===this.config.behaviour.onClick&&this.onClickDismiss()},e.prototype.startAutoHideTimer=function(){var e=this;!1!==this.config.behaviour.autoHide&&this.config.behaviour.autoHide>0&&this.timerService.start(this.config.behaviour.autoHide).then(function(){e.onClickDismiss()})},e.prototype.pauseAutoHideTimer=function(){!1!==this.config.behaviour.autoHide&&this.config.behaviour.autoHide>0&&this.timerService.pause()},e.prototype.continueAutoHideTimer=function(){!1!==this.config.behaviour.autoHide&&this.config.behaviour.autoHide>0&&this.timerService.continue()},e.prototype.stopAutoHideTimer=function(){!1!==this.config.behaviour.autoHide&&this.config.behaviour.autoHide>0&&this.timerService.stop()},e.prototype.setup=function(){"left"===this.config.position.horizontal.position?this.renderer.setStyle(this.element,"left",this.config.position.horizontal.distance+"px"):"right"===this.config.position.horizontal.position?this.renderer.setStyle(this.element,"right",this.config.position.horizontal.distance+"px"):(this.renderer.setStyle(this.element,"left","50%"),this.renderer.setStyle(this.element,"transform","translate3d( -50%, 0, 0 )")),this.renderer.setStyle(this.element,"top"===this.config.position.vertical.position?"top":"bottom",this.config.position.vertical.distance+"px"),this.renderer.addClass(this.element,"notifier__notification--"+this.notification.type),this.renderer.addClass(this.element,"notifier__notification--"+this.config.theme)},e}(),$l=new i.InjectionToken("[angular-notifier] Notifier Options"),Gl=new i.InjectionToken("[anuglar-notifier] Notifier Config");function Yl(e){return new Vl(e)}var Ql=function(){function e(){}return e.withConfig=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[{provide:$l,useValue:t},{deps:[$l],provide:Gl,useFactory:Yl}]}},e}(),Jl=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function Zl(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,3,"li",[["class","notifier__container-list"]],null,null,null,null,null)),(e()(),i["\u0275eld"](1,0,null,null,2,"notifier-notification",[["class","notifier__notification"]],null,[[null,"dismiss"],[null,"ready"],[null,"click"],[null,"mouseout"],[null,"mouseover"]],function(e,t,n){var o=!0,r=e.component;return"click"===t&&(o=!1!==i["\u0275nov"](e,3).onNotificationClick()&&o),"mouseout"===t&&(o=!1!==i["\u0275nov"](e,3).onNotificationMouseout()&&o),"mouseover"===t&&(o=!1!==i["\u0275nov"](e,3).onNotificationMouseover()&&o),"dismiss"===t&&(o=!1!==r.onNotificationDismiss(n)&&o),"ready"===t&&(o=!1!==r.onNotificationReady(n)&&o),o},ns,es)),i["\u0275prd"](512,null,ql,ql,[]),i["\u0275did"](3,4243456,null,0,zl,[i.ElementRef,i.Renderer2,Fl,ql,Wl],{notification:[0,"notification"]},{ready:"ready",dismiss:"dismiss"})],function(e,t){e(t,3,0,t.context.$implicit)},null)}function Xl(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,2,"ul",[],null,null,null,null,null)),(e()(),i["\u0275and"](16777216,null,null,1,null,Zl)),i["\u0275did"](2,802816,null,0,d.j,[i.ViewContainerRef,i.TemplateRef,i.IterableDiffers],{ngForOf:[0,"ngForOf"],ngForTrackBy:[1,"ngForTrackBy"]},null)],function(e,t){var n=t.component;e(t,2,0,n.notifications,n.identifyNotification)},null)}var es=i["\u0275crt"]({encapsulation:2,styles:[],data:{}});function ts(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,"button",[["class","notifier__notification-button"],["title","dismiss"],["type","button"]],null,[[null,"click"]],function(e,t,n){var o=!0;return"click"===t&&(o=!1!==e.component.onClickDismiss()&&o),o},null,null)),(e()(),i["\u0275eld"](1,0,null,null,1,":svg:svg",[["class","notifier__notification-button-icon"],["height","20"],["viewBox","0 0 24 24"],["width","20"]],null,null,null,null,null)),(e()(),i["\u0275eld"](2,0,null,null,0,":svg:path",[["d","M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"]],null,null,null,null,null))],null,null)}function ns(e){return i["\u0275vid"](2,[(e()(),i["\u0275eld"](0,0,null,null,1,"p",[["class","notifier__notification-message"]],null,null,null,null,null)),(e()(),i["\u0275ted"](1,null,["",""])),(e()(),i["\u0275and"](16777216,null,null,1,null,ts)),i["\u0275did"](3,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,3,0,t.component.config.behaviour.showDismissButton)},function(e,t){e(t,1,0,t.component.notification.message)})}var os=i["\u0275crt"]({encapsulation:2,styles:[["main-app{min-height:100%;height:100%;width:100%;display:block;position:relative}.save-to-keyboard-button{position:fixed;bottom:15px;right:15px}"]],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:{}}]}});function is(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,"app-update-available",[],null,[[null,"updateApp"],[null,"doNotUpdateApp"]],function(e,t,n){var o=!0,i=e.component;return"updateApp"===t&&(o=!1!==i.updateApp()&&o),"doNotUpdateApp"===t&&(o=!1!==i.doNotUpdateApp()&&o),o},fl,pl)),i["\u0275did"](1,49152,null,0,dl,[],null,{updateApp:"updateApp",doNotUpdateApp:"doNotUpdateApp"}),(e()(),i["\u0275ted"](-1,null,["\n"]))],null,null)}function rs(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"side-menu",[],null,null,null,El,bl)),i["\u0275did"](1,245760,null,0,vl,[s.m,i.Renderer2,i.ChangeDetectorRef],null,null)],function(e,t){e(t,1,0)},null)}function ls(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,2,"progress-button",[["class","save-to-keyboard-button"]],[[24,"@showSaveToKeyboardButton",0]],[[null,"clicked"]],function(e,t,n){var o=!0;return"clicked"===t&&(o=!1!==e.component.clickedOnProgressButton(n)&&o),o},Nl,Rl)),i["\u0275did"](1,49152,null,0,Il,[],{state:[0,"state"]},{clicked:"clicked"}),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef])],function(e,t){var n=t.component;e(t,1,0,i["\u0275unv"](t,1,0,i["\u0275nov"](t,2).transform(n.saveToKeyboardState$)))},function(e,t){e(t,0,0,void 0)})}function ss(e){return i["\u0275vid"](0,[(e()(),i["\u0275and"](16777216,null,null,2,null,is)),i["\u0275did"](1,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n\n"])),(e()(),i["\u0275and"](16777216,null,null,2,null,rs)),i["\u0275did"](5,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](8,0,null,null,4,"div",[["class","main-content"],["id","main-content"]],null,null,null,null,null)),(e()(),i["\u0275ted"](-1,null,["\n "])),(e()(),i["\u0275eld"](10,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),i["\u0275did"](11,212992,null,0,le.q,[le.b,i.ViewContainerRef,i.ComponentFactoryResolver,[8,null],i.ChangeDetectorRef],null,null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275eld"](14,0,null,null,1,"notifier-container",[["class","notifier__container"]],null,null,null,Xl,Jl)),i["\u0275did"](15,245760,null,0,Kl,[i.ChangeDetectorRef,Ul,Fl],null,null),(e()(),i["\u0275ted"](-1,null,["\n"])),(e()(),i["\u0275and"](16777216,null,null,2,null,ls)),i["\u0275did"](18,16384,null,0,d.k,[i.ViewContainerRef,i.TemplateRef],{ngIf:[0,"ngIf"]},null),i["\u0275pid"](131072,d.b,[i.ChangeDetectorRef]),(e()(),i["\u0275ted"](-1,null,["\n"]))],function(e,t){var n=t.component;e(t,1,0,i["\u0275unv"](t,1,0,i["\u0275nov"](t,2).transform(n.showUpdateAvailable$))),e(t,5,0,i["\u0275unv"](t,5,0,i["\u0275nov"](t,6).transform(n.deviceConfigurationLoaded$))),e(t,11,0),e(t,15,0),e(t,18,0,i["\u0275unv"](t,18,0,i["\u0275nov"](t,19).transform(n.saveToKeyboardState$)).showButton)},null)}var as=i["\u0275ccf"]("main-app",c,function(e){return i["\u0275vid"](0,[(e()(),i["\u0275eld"](0,0,null,null,1,"main-app",[],null,null,null,ss,os)),i["\u0275did"](1,49152,null,0,c,[s.m],null,null)],null,null)},{},{},[]),us=function(){},cs="*";function ds(e,t){return void 0===t&&(t=null),{type:2,steps:e,options:t}}function ps(e){return{type:6,styles:e,offset:null}}function fs(e){Promise.resolve(null).then(e)}var hs=function(){function e(){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=0}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.init=function(){},e.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},e.prototype.triggerMicrotask=function(){var e=this;fs(function(){return e._onFinish()})},e.prototype._onStart=function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]},e.prototype.pause=function(){},e.prototype.restart=function(){},e.prototype.finish=function(){this._onFinish()},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.reset=function(){},e.prototype.setPosition=function(e){},e.prototype.getPosition=function(){return 0},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),ys=function(){function e(e){var t=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var n=0,o=0,i=0,r=this.players.length;0==r?fs(function(){return t._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++n==r&&t._onFinish()}),e.onDestroy(function(){++o==r&&t._onDestroy()}),e.onStart(function(){++i==r&&t._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this.players.forEach(function(e){return e.init()})},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})},e.prototype.pause=function(){this.players.forEach(function(e){return e.pause()})},e.prototype.restart=function(){this.players.forEach(function(e){return e.restart()})},e.prototype.finish=function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})},e.prototype.destroy=function(){this._onDestroy()},e.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.reset=function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype.setPosition=function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})},e.prototype.getPosition=function(){var e=0;return this.players.forEach(function(t){var n=t.getPosition();e=Math.min(n,e)}),e},e.prototype.beforeDestroy=function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),ms="!";function gs(e){switch(e.length){case 0:return new hs;case 1:return e[0];default:return new ys(e)}}function vs(e,t,n,o,i,r){void 0===i&&(i={}),void 0===r&&(r={});var l=[],s=[],a=-1,u=null;if(o.forEach(function(e){var n=e.offset,o=n==a,c=o&&u||{};Object.keys(e).forEach(function(n){var o=n,s=e[n];if("offset"!==n)switch(o=t.normalizePropertyName(o,l),s){case ms:s=i[n];break;case cs:s=r[n];break;default:s=t.normalizeStyleValue(n,o,s,l)}c[o]=s}),o||s.push(c),u=c,a=n}),l.length)throw new Error("Unable to animate due to the following errors:\n - "+l.join("\n - "));return s}function bs(e,t,n,o){switch(t){case"start":e.onStart(function(){return o(n&&ks(n,"start",e.totalTime))});break;case"done":e.onDone(function(){return o(n&&ks(n,"done",e.totalTime))});break;case"destroy":e.onDestroy(function(){return o(n&&ks(n,"destroy",e.totalTime))})}}function ks(e,t,n){var o=_s(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,void 0==n?e.totalTime:n),i=e._data;return null!=i&&(o._data=i),o}function _s(e,t,n,o,i,r){return void 0===i&&(i=""),void 0===r&&(r=0),{element:e,triggerName:t,fromState:n,toState:o,phaseName:i,totalTime:r}}function ws(e,t,n){var o;return e instanceof Map?(o=e.get(t))||e.set(t,o=n):(o=e[t])||(o=e[t]=n),o}function As(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var Ts=function(e,t){return!1},Cs=function(e,t){return!1},xs=function(e,t,n){return[]};if("undefined"!=typeof Element){if(Ts=function(e,t){return e.contains(t)},Element.prototype.matches)Cs=function(e,t){return e.matches(t)};else{var Os=Element.prototype,Ss=Os.matchesSelector||Os.mozMatchesSelector||Os.msMatchesSelector||Os.oMatchesSelector||Os.webkitMatchesSelector;Ss&&(Cs=function(e,t){return Ss.apply(e,[t])})}xs=function(e,t,n){var o=[];if(n)o.push.apply(o,e.querySelectorAll(t));else{var i=e.querySelector(t);i&&o.push(i)}return o}}var Ms=null,Es=!1;function Ps(e){Ms||(Ms=Is()||{},Es=!!Ms.style&&"WebkitAppearance"in Ms.style);var t=!0;return Ms.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(t=e in Ms.style)&&Es&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Ms.style),t}function Is(){return"undefined"!=typeof document?document.body:null}var Rs=Cs,Ds=Ts,Ns=xs,js=function(){function e(){}return e.prototype.validateStyleProperty=function(e){return Ps(e)},e.prototype.matchesElement=function(e,t){return Rs(e,t)},e.prototype.containsElement=function(e,t){return Ds(e,t)},e.prototype.query=function(e,t,n){return Ns(e,t,n)},e.prototype.computeStyle=function(e,t,n){return n||""},e.prototype.animate=function(e,t,n,o,i,r){return void 0===r&&(r=[]),new hs},e}(),Ls=function(){function e(){}return e.NOOP=new js,e}(),Us=1e3;function Vs(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Fs(parseFloat(t[1]),t[2])}function Fs(e,t){switch(t){case"s":return e*Us;default:return e}}function Ks(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var o,i=0,r="";if("string"==typeof e){var l=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===l)return t.push('The provided timing value "'+e+'" is invalid.'),{duration:0,delay:0,easing:""};o=Fs(parseFloat(l[1]),l[2]);var s=l[3];null!=s&&(i=Fs(Math.floor(parseFloat(s)),l[4]));var a=l[5];a&&(r=a)}else o=e;if(!n){var u=!1,c=t.length;o<0&&(t.push("Duration values below 0 are not allowed for this animation step."),u=!0),i<0&&(t.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&t.splice(c,0,'The provided timing value "'+e+'" is invalid.')}return{duration:o,delay:i,easing:r}}(e,t,n)}function Bs(e,t){return void 0===t&&(t={}),Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function Hs(e,t,n){if(void 0===n&&(n={}),t)for(var o in e)n[o]=e[o];else Bs(e,n);return n}function Ws(e,t){e.style&&Object.keys(t).forEach(function(n){var o=Zs(n);e.style[o]=t[n]})}function qs(e,t){e.style&&Object.keys(t).forEach(function(t){var n=Zs(t);e.style[n]=""})}function zs(e){return Array.isArray(e)?1==e.length?e[0]:ds(e):e}var $s=new RegExp("{{\\s*(.+?)\\s*}}","g");function Gs(e){var t=[];if("string"==typeof e){for(var n=e.toString(),o=void 0;o=$s.exec(n);)t.push(o[1]);$s.lastIndex=0}return t}function Ys(e,t,n){var o=e.toString(),i=o.replace($s,function(e,o){var i=t[o];return t.hasOwnProperty(o)||(n.push("Please provide a value for the animation param "+o),i=""),i.toString()});return i==o?e:i}function Qs(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var Js=/-+([a-z0-9])/g;function Zs(e){return e.replace(Js,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e[1].toUpperCase()})}function Xs(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #"+t.type)}}var ea="*",ta=new Set(["true","1"]),na=new Set(["false","0"]);function oa(e,t){var n=ta.has(e)||na.has(e),o=ta.has(t)||na.has(t);return function(i,r){var l=e==ea||e==i,s=t==ea||t==r;return!l&&n&&"boolean"==typeof i&&(l=i?ta.has(e):na.has(e)),!s&&o&&"boolean"==typeof r&&(s=r?ta.has(t):na.has(t)),l&&s}}var ia=new RegExp("s*:selfs*,?","g");function ra(e,t,n){return new la(e).build(t,n)}var la=function(){function e(e){this._driver=e}return e.prototype.build=function(e,t){var n=new sa(t);return this._resetContextStyleTimingState(n),Xs(this,zs(e),n)},e.prototype._resetContextStyleTimingState=function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0},e.prototype.visitTrigger=function(e,t){var n=this,o=t.queryCount=0,i=t.depCount=0,r=[],l=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(function(e){if(n._resetContextStyleTimingState(t),0==e.type){var s=e,a=s.name;a.split(/\s*,\s*/).forEach(function(e){s.name=e,r.push(n.visitState(s,t))}),s.name=a}else if(1==e.type){var u=n.visitTransition(e,t);o+=u.queryCount,i+=u.depCount,l.push(u)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:r,transitions:l,queryCount:o,depCount:i,options:null}},e.prototype.visitState=function(e,t){var n=this.visitStyle(e.styles,t),o=e.options&&e.options.params||null;if(n.containsDynamicStyles){var i=new Set,r=o||{};if(n.styles.forEach(function(e){if(aa(e)){var t=e;Object.keys(t).forEach(function(e){Gs(t[e]).forEach(function(e){r.hasOwnProperty(e)||i.add(e)})})}}),i.size){var l=Qs(i.values());t.errors.push('state("'+e.name+'", ...) must define default values for all the following style substitutions: '+l.join(", "))}}return{type:0,name:e.name,style:n,options:o?{params:o}:null}},e.prototype.visitTransition=function(e,t){t.queryCount=0,t.depCount=0;var n,o,i,r=Xs(this,zs(e.animation),t);return{type:1,matchers:(n=e.expr,o=t.errors,i=[],"string"==typeof n?n.split(/\s*,\s*/).forEach(function(e){return function(e,t,n){if(":"==e[0]){var o=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t)<parseFloat(e)};default:return t.push('The transition alias value "'+e+'" is not supported'),"* => *"}}(e,n);if("function"==typeof o)return void t.push(o);e=o}var i=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'+e+'" is not supported'),t;var r=i[1],l=i[2],s=i[3];t.push(oa(r,s)),"<"!=l[0]||r==ea&&s==ea||t.push(oa(s,r))}(e,i,o)}):i.push(n),i),animation:r,queryCount:t.queryCount,depCount:t.depCount,options:ua(e.options)}},e.prototype.visitSequence=function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return Xs(n,e,t)}),options:ua(e.options)}},e.prototype.visitGroup=function(e,t){var n=this,o=t.currentTime,i=0,r=e.steps.map(function(e){t.currentTime=o;var r=Xs(n,e,t);return i=Math.max(i,t.currentTime),r});return t.currentTime=i,{type:3,steps:r,options:ua(e.options)}},e.prototype.visitAnimate=function(e,t){var n,o=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return ca(Ks(e,t).duration,0,"");var o=e;if(o.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var i=ca(0,0,"");return i.dynamic=!0,i.strValue=o,i}return ca((n=n||Ks(o,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=o;var i=e.styles?e.styles:ps({});if(5==i.type)n=this.visitKeyframes(i,t);else{var r=e.styles,l=!1;if(!r){l=!0;var s={};o.easing&&(s.easing=o.easing),r=ps(s)}t.currentTime+=o.duration+o.delay;var a=this.visitStyle(r,t);a.isEmptyStep=l,n=a}return t.currentAnimateTimings=null,{type:4,timings:o,style:n,options:null}},e.prototype.visitStyle=function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n},e.prototype._makeStyleAst=function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==cs?n.push(e):t.errors.push("The provided style string value "+e+" is not allowed."):n.push(e)}):n.push(e.styles);var o=!1,i=null;return n.forEach(function(e){if(aa(e)){var t=e,n=t.easing;if(n&&(i=n,delete t.easing),!o)for(var r in t)if(t[r].toString().indexOf("{{")>=0){o=!0;break}}}),{type:6,styles:n,easing:i,offset:e.offset,containsDynamicStyles:o,options:null}},e.prototype._validateStyleAst=function(e,t){var n=this,o=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;o&&r>0&&(r-=o.duration+o.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(o){if(n._driver.validateStyleProperty(o)){var l,s,a,u=t.collectedStyles[t.currentQuerySelector],c=u[o],d=!0;c&&(r!=i&&r>=c.startTime&&i<=c.endTime&&(t.errors.push('The CSS property "'+o+'" that exists between the times of "'+c.startTime+'ms" and "'+c.endTime+'ms" is also being animated in a parallel animation between the times of "'+r+'ms" and "'+i+'ms"'),d=!1),r=c.startTime),d&&(u[o]={startTime:r,endTime:i}),t.options&&(l=t.errors,s=t.options.params||{},(a=Gs(e[o])).length&&a.forEach(function(e){s.hasOwnProperty(e)||l.push("Unable to resolve the local animation param "+e+" in the given list of values")}))}else t.errors.push('The provided animation property "'+o+'" is not a supported CSS property for animations')})})},e.prototype.visitKeyframes=function(e,t){var n=this,o={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),o;var i=0,r=[],l=!1,s=!1,a=0,u=e.steps.map(function(e){var o=n._makeStyleAst(e,t),u=null!=o.offset?o.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(aa(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(aa(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(o.styles),c=0;return null!=u&&(i++,c=o.offset=u),s=s||c<0||c>1,l=l||c<a,a=c,r.push(c),o});s&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),l&&t.errors.push("Please ensure that all keyframe offsets are in order");var c=e.steps.length,d=0;i>0&&i<c?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(d=1/(c-1));var p=c-1,f=t.currentTime,h=t.currentAnimateTimings,y=h.duration;return u.forEach(function(e,i){var l=d>0?i==p?1:d*i:r[i],s=l*y;t.currentTime=f+h.delay+s,h.duration=s,n._validateStyleAst(e,t),e.offset=l,o.styles.push(e)}),o},e.prototype.visitReference=function(e,t){return{type:8,animation:Xs(this,zs(e.animation),t),options:ua(e.options)}},e.prototype.visitAnimateChild=function(e,t){return t.depCount++,{type:9,options:ua(e.options)}},e.prototype.visitAnimateRef=function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:ua(e.options)}},e.prototype.visitQuery=function(e,t){var n=t.currentQuerySelector,o=e.options||{};t.queryCount++,t.currentQuery=e;var i=function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(ia,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),r=i[0],l=i[1];t.currentQuerySelector=n.length?n+" "+r:r,ws(t.collectedStyles,t.currentQuerySelector,{});var s=Xs(this,zs(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:r,limit:o.limit||0,optional:!!o.optional,includeSelf:l,animation:s,originalSelector:e.selector,options:ua(e.options)}},e.prototype.visitStagger=function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Ks(e.timings,t.errors,!0);return{type:12,animation:Xs(this,zs(e.animation),t),timings:n,options:null}},e}(),sa=function(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function aa(e){return!Array.isArray(e)&&"object"==typeof e}function ua(e){var t;return e?(e=Bs(e)).params&&(e.params=(t=e.params)?Bs(t):null):e={},e}function ca(e,t,n){return{duration:e,delay:t,easing:n}}function da(e,t,n,o,i,r,l,s){return void 0===l&&(l=null),void 0===s&&(s=!1),{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:o,duration:i,delay:r,totalTime:i+r,easing:l,subTimeline:s}}var pa=function(){function e(){this._map=new Map}return e.prototype.consume=function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t},e.prototype.append=function(e,t){var n=this._map.get(e);n||this._map.set(e,n=[]),n.push.apply(n,t)},e.prototype.has=function(e){return this._map.has(e)},e.prototype.clear=function(){this._map.clear()},e}(),fa=new RegExp(":enter","g"),ha=new RegExp(":leave","g");function ya(e,t,n,o,i,r,l,s,a,u){return void 0===r&&(r={}),void 0===l&&(l={}),void 0===u&&(u=[]),(new ma).buildKeyframes(e,t,n,o,i,r,l,s,a,u)}var ma=function(){function e(){}return e.prototype.buildKeyframes=function(e,t,n,o,i,r,l,s,a,u){void 0===u&&(u=[]),a=a||new pa;var c=new va(e,t,a,o,i,u,[]);c.options=s,c.currentTimeline.setStyles([r],null,c.errors,s),Xs(this,n,c);var d=c.timelines.filter(function(e){return e.containsAnimation()});if(d.length&&Object.keys(l).length){var p=d[d.length-1];p.allowOnlyTimelineStyles()||p.setStyles([l],null,c.errors,s)}return d.length?d.map(function(e){return e.buildKeyframes()}):[da(t,[],[],[],0,0,"",!1)]},e.prototype.visitTrigger=function(e,t){},e.prototype.visitState=function(e,t){},e.prototype.visitTransition=function(e,t){},e.prototype.visitAnimateChild=function(e,t){var n=t.subInstructions.consume(t.element);if(n){var o=t.createSubContext(e.options),i=t.currentTimeline.currentTime,r=this._visitSubInstructions(n,o,o.options);i!=r&&t.transformIntoNewTimeline(r)}t.previousNode=e},e.prototype.visitAnimateRef=function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e},e.prototype._visitSubInstructions=function(e,t,n){var o=t.currentTimeline.currentTime,i=null!=n.duration?Vs(n.duration):null,r=null!=n.delay?Vs(n.delay):null;return 0!==i&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,i,r);o=Math.max(o,n.duration+n.delay)}),o},e.prototype.visitReference=function(e,t){t.updateOptions(e.options,!0),Xs(this,e.animation,t),t.previousNode=e},e.prototype.visitSequence=function(e,t){var n=this,o=t.subContextCount,i=t,r=e.options;if(r&&(r.params||r.delay)&&((i=t.createSubContext(r)).transformIntoNewTimeline(),null!=r.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=ga);var l=Vs(r.delay);i.delayNextStep(l)}e.steps.length&&(e.steps.forEach(function(e){return Xs(n,e,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>o&&i.transformIntoNewTimeline()),t.previousNode=e},e.prototype.visitGroup=function(e,t){var n=this,o=[],i=t.currentTimeline.currentTime,r=e.options&&e.options.delay?Vs(e.options.delay):0;e.steps.forEach(function(l){var s=t.createSubContext(e.options);r&&s.delayNextStep(r),Xs(n,l,s),i=Math.max(i,s.currentTimeline.currentTime),o.push(s.currentTimeline)}),o.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(i),t.previousNode=e},e.prototype._visitTiming=function(e,t){if(e.dynamic){var n=e.strValue;return Ks(t.params?Ys(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}},e.prototype.visitAnimate=function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),o=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),o.snapshotCurrentStyles());var i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),o.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e},e.prototype.visitStyle=function(e,t){var n=t.currentTimeline,o=t.currentAnimateTimings;!o&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=o&&o.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(i):n.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e},e.prototype.visitKeyframes=function(e,t){var n=t.currentAnimateTimings,o=t.currentTimeline.duration,i=n.duration,r=t.createSubContext().currentTimeline;r.easing=n.easing,e.styles.forEach(function(e){r.forwardTime((e.offset||0)*i),r.setStyles(e.styles,e.easing,t.errors,t.options),r.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(r),t.transformIntoNewTimeline(o+i),t.previousNode=e},e.prototype.visitQuery=function(e,t){var n=this,o=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?Vs(i.delay):0;r&&(6===t.previousNode.type||0==o&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=ga);var l=o,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=s.length;var a=null;s.forEach(function(o,i){t.currentQueryIndex=i;var s=t.createSubContext(e.options,o);r&&s.delayNextStep(r),o===t.element&&(a=s.currentTimeline),Xs(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),l=Math.max(l,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(l),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e},e.prototype.visitStagger=function(e,t){var n=t.parentContext,o=t.currentTimeline,i=e.timings,r=Math.abs(i.duration),l=r*(t.currentQueryTotal-1),s=r*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":s=l-s;break;case"full":s=n.currentStaggerTime}var a=t.currentTimeline;s&&a.delayNextStep(s);var u=a.currentTime;Xs(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=o.currentTime-u+(o.startTime-n.currentTimeline.startTime)},e}(),ga={},va=function(){function e(e,t,n,o,i,r,l,s){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=o,this._leaveClassName=i,this.errors=r,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ga,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new ba(this._driver,t,0),l.push(this.currentTimeline)}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.updateOptions=function(e,t){var n=this;if(e){var o=e,i=this.options;null!=o.duration&&(i.duration=Vs(o.duration)),null!=o.delay&&(i.delay=Vs(o.delay));var r=o.params;if(r){var l=i.params;l||(l=this.options.params={}),Object.keys(r).forEach(function(e){t&&l.hasOwnProperty(e)||(l[e]=Ys(r[e],l,n.errors))})}}},e.prototype._copyOptions=function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e},e.prototype.createSubContext=function(t,n,o){void 0===t&&(t=null);var i=n||this.element,r=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,o||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(t),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r},e.prototype.transformIntoNewTimeline=function(e){return this.previousNode=ga,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline},e.prototype.appendInstructionToTimeline=function(e,t,n){var o={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},i=new ka(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,o,e.stretchStartingKeyframe);return this.timelines.push(i),o},e.prototype.incrementTime=function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)},e.prototype.delayNextStep=function(e){e>0&&this.currentTimeline.delayNextStep(e)},e.prototype.invokeQuery=function(e,t,n,o,i,r){var l=[];if(o&&l.push(this.element),e.length>0){e=(e=e.replace(fa,"."+this._enterClassName)).replace(ha,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),l.push.apply(l,s)}return i||0!=l.length||r.push('`query("'+t+'")` returned zero elements. (Use `query("'+t+'", { optional: true })` if you wish to allow this.)'),l},e}(),ba=function(){function e(e,t,n,o){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=o,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return e.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},e.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(e.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),e.prototype.delayNextStep=function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e},e.prototype.fork=function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)},e.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},e.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},e.prototype.forwardTime=function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()},e.prototype._updateStyle=function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}},e.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},e.prototype.applyEmptyStep=function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||cs,t._currentKeyframe[e]=cs}),this._currentEmptyStepKeyframe=this._currentKeyframe},e.prototype.setStyles=function(e,t,n,o){var i=this;t&&(this._previousKeyframe.easing=t);var r=o&&o.params||{},l=function(e,t){var n,o={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){o[e]=cs}):Hs(e,!1,o)}),o}(e,this._globalTimelineStyles);Object.keys(l).forEach(function(e){var t=Ys(l[e],r,n);i._pendingStyles[e]=t,i._localTimelineStyles.hasOwnProperty(e)||(i._backFill[e]=i._globalTimelineStyles.hasOwnProperty(e)?i._globalTimelineStyles[e]:cs),i._updateStyle(e,t)})},e.prototype.applyStylesToKeyframe=function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))},e.prototype.snapshotCurrentStyles=function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})},e.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(e.prototype,"properties",{get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e},enumerable:!0,configurable:!0}),e.prototype.mergeTimelineCollectedStyles=function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var o=t._styleSummary[n],i=e._styleSummary[n];(!o||i.time>o.time)&&t._updateStyle(n,i.value)})},e.prototype.buildKeyframes=function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,o=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(r,l){var s=Hs(r,!0);Object.keys(s).forEach(function(e){var o=s[e];o==ms?t.add(e):o==cs&&n.add(e)}),o||(s.offset=l/e.duration),i.push(s)});var r=t.size?Qs(t.values()):[],l=n.size?Qs(n.values()):[];if(o){var s=i[0],a=Bs(s);s.offset=0,a.offset=1,i=[s,a]}return da(this.element,i,r,l,this.duration,this.startTime,this.easing,!1)},e}(),ka=function(e){function t(t,n,o,i,r,l,s){void 0===s&&(s=!1);var a=e.call(this,t,n,l.delay)||this;return a.element=n,a.keyframes=o,a.preStyleProps=i,a.postStyleProps=r,a._stretchStartingKeyframe=s,a.timings={duration:l.duration,delay:l.delay,easing:l.easing},a}return Object(wo.__extends)(t,e),t.prototype.containsAnimation=function(){return this.keyframes.length>1},t.prototype.buildKeyframes=function(){var e=this.keyframes,t=this.timings,n=t.delay,o=t.duration,i=t.easing;if(this._stretchStartingKeyframe&&n){var r=[],l=o+n,s=n/l,a=Hs(e[0],!1);a.offset=0,r.push(a);var u=Hs(e[0],!1);u.offset=_a(s),r.push(u);for(var c=e.length-1,d=1;d<=c;d++){var p=Hs(e[d],!1);p.offset=_a((n+p.offset*o)/l),r.push(p)}o=l,n=0,i="",e=r}return da(this.element,e,this.preStyleProps,this.postStyleProps,o,n,i,!0)},t}(ba);function _a(e,t){void 0===t&&(t=3);var n=Math.pow(10,t-1);return Math.round(e*n)/n}var wa=function(){},Aa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(wo.__extends)(t,e),t.prototype.normalizePropertyName=function(e,t){return Zs(e)},t.prototype.normalizeStyleValue=function(e,t,n,o){var i="",r=n.toString().trim();if(Ta[t]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var l=n.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&0==l[1].length&&o.push("Please provide a CSS unit value for "+e+":"+n)}return r+i},t}(wa),Ta=function(e){var t={};return"width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",").forEach(function(e){return t[e]=!0}),t}();function Ca(e,t,n,o,i,r,l,s,a,u,c,d){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:r,toState:o,toStyles:l,timelines:s,queriedElements:a,preStyleProps:u,postStyleProps:c,errors:d}}var xa={},Oa=function(){function e(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}return e.prototype.match=function(e,t){return function(e,t,n){return e.some(function(e){return e(t,n)})}(this.ast.matchers,e,t)},e.prototype.buildStyles=function(e,t,n){var o=this._stateStyles["*"],i=this._stateStyles[e],r=o?o.buildStyles(t,n):{};return i?i.buildStyles(t,n):r},e.prototype.build=function(e,t,n,o,i,r,l,s,a){var u=[],c=this.ast.options&&this.ast.options.params||xa,d=this.buildStyles(n,l&&l.params||xa,u),p=s&&s.params||xa,f=this.buildStyles(o,p,u),h=new Set,y=new Map,m=new Map,g="void"===o,v={params:Object(wo.__assign)({},c,p)},b=ya(e,t,this.ast.animation,i,r,d,f,v,a,u);if(u.length)return Ca(t,this._triggerName,n,o,g,d,f,[],[],y,m,u);b.forEach(function(e){var n=e.element,o=ws(y,n,{});e.preStyleProps.forEach(function(e){return o[e]=!0});var i=ws(m,n,{});e.postStyleProps.forEach(function(e){return i[e]=!0}),n!==t&&h.add(n)});var k=Qs(h.values());return Ca(t,this._triggerName,n,o,g,d,f,b,k,y,m)},e}(),Sa=function(){function e(e,t){this.styles=e,this.defaultParams=t}return e.prototype.buildStyles=function(e,t){var n={},o=Bs(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(o[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var i=e;Object.keys(i).forEach(function(e){var r=i[e];r.length>1&&(r=Ys(r,o,t)),n[e]=r})}}),n},e}(),Ma=function(){function e(e,t){var n=this;this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(function(e){n.states[e.name]=new Sa(e.style,e.options&&e.options.params||{})}),Ea(this.states,"true","1"),Ea(this.states,"false","0"),t.transitions.forEach(function(t){n.transitionFactories.push(new Oa(e,t,n.states))}),this.fallbackTransition=new Oa(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(e.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),e.prototype.matchTransition=function(e,t){return this.transitionFactories.find(function(n){return n.match(e,t)})||null},e.prototype.matchStyles=function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)},e}();function Ea(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var Pa=new pa,Ia=function(){function e(e,t){this._driver=e,this._normalizer=t,this._animations={},this._playersById={},this.players=[]}return e.prototype.register=function(e,t){var n=[],o=ra(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=o},e.prototype._buildPlayer=function(e,t,n){var o=e.element,i=vs(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(o,i,e.duration,e.delay,e.easing,[])},e.prototype.create=function(e,t,n){var o=this;void 0===n&&(n={});var i,r=[],l=this._animations[e],s=new Map;if(l?(i=ya(this._driver,t,l,"ng-enter","ng-leave",{},{},n,Pa,r)).forEach(function(e){var t=ws(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(r.push("The requested animation doesn't exist or has already been destroyed"),i=[]),r.length)throw new Error("Unable to create the animation due to the following errors: "+r.join("\n"));s.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=o._driver.computeStyle(t,n,cs)})});var a=gs(i.map(function(e){var t=s.get(e.element);return o._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(function(){return o.destroy(e)}),this.players.push(a),a},e.prototype.destroy=function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)},e.prototype._getPlayer=function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t},e.prototype.listen=function(e,t,n,o){var i=_s(t,"","","");return bs(this._getPlayer(e),n,i,o),function(){}},e.prototype.command=function(e,t,n,o){if("register"!=n)if("create"!=n){var i=this._getPlayer(e);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(o[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,o[0]||{});else this.register(e,o[0])},e}(),Ra=[],Da={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!1},Na={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!0},ja="__ng_removed",La=function(){function e(e,t){void 0===t&&(t=""),this.namespaceId=t;var n=e&&e.hasOwnProperty("value");if(this.value=function(e){return null!=e?e:null}(n?e.value:e),n){var o=Bs(e);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.absorbOptions=function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}},e}(),Ua=new La("void"),Va=new La("DELETED"),Fa=function(){function e(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Ga(t,this._hostClassName)}return e.prototype.listen=function(e,t,n,o){var i,r=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+t+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+t+'" because the provided event is undefined!');if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+t+'" is not supported!');var l=ws(this._elementListeners,e,[]),s={name:t,phase:n,callback:o};l.push(s);var a=ws(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Ga(e,"ng-trigger"),Ga(e,"ng-trigger-"+t),a[t]=Ua),function(){r._engine.afterFlush(function(){var e=l.indexOf(s);e>=0&&l.splice(e,1),r._triggers[t]||delete a[t]})}},e.prototype.register=function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)},e.prototype._getTrigger=function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'+e+'" has not been registered!');return t},e.prototype.trigger=function(e,t,n,o){var i=this;void 0===o&&(o=!0);var r=this._getTrigger(t),l=new Ba(this.id,t,e),s=this._engine.statesByElement.get(e);s||(Ga(e,"ng-trigger"),Ga(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var a=s[t],u=new La(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&u.absorbOptions(a.options),s[t]=u,a){if(a===Va)return l}else a=Ua;if("void"===u.value||a.value!==u.value){var c=ws(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var d=r.matchTransition(a.value,u.value),p=!1;if(!d){if(!o)return;d=r.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:a,toState:u,player:l,isFallbackTransition:p}),p||(Ga(e,"ng-animate-queued"),l.onStart(function(){Ya(e,"ng-animate-queued")})),l.onDone(function(){var t=i.players.indexOf(l);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var o=n.indexOf(l);o>=0&&n.splice(o,1)}}),this.players.push(l),c.push(l),l}if(!function(e,t){var n=Object.keys(e),o=Object.keys(t);if(n.length!=o.length)return!1;for(var i=0;i<n.length;i++){var r=n[i];if(!t.hasOwnProperty(r)||e[r]!==t[r])return!1}return!0}(a.params,u.params)){var f=[],h=r.matchStyles(a.value,a.params,f),y=r.matchStyles(u.value,u.params,f);f.length?this._engine.reportError(f):this._engine.afterFlush(function(){qs(e,h),Ws(e,y)})}},e.prototype.deregister=function(e){var t=this;delete this._triggers[e],this._engine.statesByElement.forEach(function(t,n){delete t[e]}),this._elementListeners.forEach(function(n,o){t._elementListeners.set(o,n.filter(function(t){return t.name!=e}))})},e.prototype.clearElementCache=function(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);var t=this._engine.playersByElement.get(e);t&&(t.forEach(function(e){return e.destroy()}),this._engine.playersByElement.delete(e))},e.prototype._signalRemovalForInnerTriggers=function(e,t,n){var o=this;void 0===n&&(n=!1),this._engine.driver.query(e,".ng-trigger",!0).forEach(function(e){if(!e[ja]){var n=o._engine.fetchNamespacesByElement(e);n.size?n.forEach(function(n){return n.triggerLeaveAnimation(e,t,!1,!0)}):o.clearElementCache(e)}})},e.prototype.triggerLeaveAnimation=function(e,t,n,o){var i=this,r=this._engine.statesByElement.get(e);if(r){var l=[];if(Object.keys(r).forEach(function(t){if(i._triggers[t]){var n=i.trigger(e,t,"void",o);n&&l.push(n)}}),l.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&gs(l).onDone(function(){return i._engine.processLeaveNode(e)}),!0}return!1},e.prototype.prepareLeaveAnimationListeners=function(e){var t=this,n=this._elementListeners.get(e);if(n){var o=new Set;n.forEach(function(n){var i=n.name;if(!o.has(i)){o.add(i);var r=t._triggers[i].fallbackTransition,l=t._engine.statesByElement.get(e)[i]||Ua,s=new La("void"),a=new Ba(t.id,i,e);t._engine.totalQueuedPlayers++,t._queue.push({element:e,triggerName:i,transition:r,fromState:l,toState:s,player:a,isFallbackTransition:!0})}})}},e.prototype.removeNode=function(e,t){var n=this,o=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t,!0),!this.triggerLeaveAnimation(e,t,!0)){var i=!1;if(o.totalAnimations){var r=o.players.length?o.playersByQueriedElement.get(e):[];if(r&&r.length)i=!0;else for(var l=e;l=l.parentNode;)if(o.statesByElement.get(l)){i=!0;break}}this.prepareLeaveAnimationListeners(e),i?o.markElementAsRemoved(this.id,e,!1,t):(o.afterFlush(function(){return n.clearElementCache(e)}),o.destroyInnerAnimations(e),o._onRemovalComplete(e,t))}},e.prototype.insertNode=function(e,t){Ga(e,this._hostClassName)},e.prototype.drainQueuedTransitions=function(e){var t=this,n=[];return this._queue.forEach(function(o){var i=o.player;if(!i.destroyed){var r=o.element,l=t._elementListeners.get(r);l&&l.forEach(function(t){if(t.name==o.triggerName){var n=_s(r,o.triggerName,o.fromState.value,o.toState.value);n._data=e,bs(o.player,t.phase,n,t.callback)}}),i.markedForDestroy?t._engine.afterFlush(function(){i.destroy()}):n.push(o)}}),this._queue=[],n.sort(function(e,n){var o=e.transition.ast.depCount,i=n.transition.ast.depCount;return 0==o||0==i?o-i:t._engine.driver.containsElement(e.element,n.element)?1:-1})},e.prototype.destroy=function(e){this.players.forEach(function(e){return e.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,e)},e.prototype.elementContainsData=function(e){var t=!1;return this._elementListeners.has(e)&&(t=!0),!!this._queue.find(function(t){return t.element===e})||t},e}(),Ka=function(){function e(e,t){this.driver=e,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(e,t){}}return e.prototype._onRemovalComplete=function(e,t){this.onRemovalComplete(e,t)},Object.defineProperty(e.prototype,"queuedPlayers",{get:function(){var e=[];return this._namespaceList.forEach(function(t){t.players.forEach(function(t){t.queued&&e.push(t)})}),e},enumerable:!0,configurable:!0}),e.prototype.createNamespace=function(e,t){var n=new Fa(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n},e.prototype._balanceNamespaceList=function(e,t){var n=this._namespaceList.length-1;if(n>=0){for(var o=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+1,0,e),o=!0;break}o||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e},e.prototype.register=function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n},e.prototype.registerTrigger=function(e,t,n){var o=this._namespaceLookup[e];o&&o.register(t,n)&&this.totalAnimations++},e.prototype.destroy=function(e,t){var n=this;if(e){var o=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(o.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(o);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return o.destroy(t)})}},e.prototype._fetchNamespace=function(e){return this._namespaceLookup[e]},e.prototype.fetchNamespacesByElement=function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var o=Object.keys(n),i=0;i<o.length;i++){var r=n[o[i]].namespaceId;if(r){var l=this._fetchNamespace(r);l&&t.add(l)}}return t},e.prototype.trigger=function(e,t,n,o){return!!Ha(t)&&(this._fetchNamespace(e).trigger(t,n,o),!0)},e.prototype.insertNode=function(e,t,n,o){if(Ha(t)){var i=t[ja];i&&i.setForRemoval&&(i.setForRemoval=!1),e&&this._fetchNamespace(e).insertNode(t,n),o&&this.collectEnterElement(t)}},e.prototype.collectEnterElement=function(e){this.collectedEnterElements.push(e)},e.prototype.markElementAsDisabled=function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Ga(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Ya(e,"ng-animate-disabled"))},e.prototype.removeNode=function(e,t,n){if(Ha(t)){var o=e?this._fetchNamespace(e):null;o?o.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n)}else this._onRemovalComplete(t,n)},e.prototype.markElementAsRemoved=function(e,t,n,o){this.collectedLeaveElements.push(t),t[ja]={namespaceId:e,setForRemoval:o,hasAnimation:n,removedBeforeQueried:!1}},e.prototype.listen=function(e,t,n,o,i){return Ha(t)?this._fetchNamespace(e).listen(t,n,o,i):function(){}},e.prototype._buildInstruction=function(e,t,n,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,o,e.fromState.options,e.toState.options,t)},e.prototype.destroyInnerAnimations=function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})},e.prototype.destroyActiveAnimationsForElement=function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()});var n=this.statesByElement.get(e);n&&Object.keys(n).forEach(function(e){return n[e]=Va})},e.prototype.finishActiveQueriedAnimationOnElement=function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})},e.prototype.whenRenderingDone=function(){var e=this;return new Promise(function(t){if(e.players.length)return gs(e.players).onDone(function(){return t()});t()})},e.prototype.processLeaveNode=function(e){var t=this,n=e[ja];if(n&&n.setForRemoval){if(e[ja]=Da,n.namespaceId){this.destroyInnerAnimations(e);var o=this._fetchNamespace(n.namespaceId);o&&o.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(n){t.markElementAsDisabled(e,!1)})},e.prototype.flush=function(e){var t=this;void 0===e&&(e=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(e,n){return t._balanceNamespaceList(e,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var o=0;o<this.collectedEnterElements.length;o++)Ga(this.collectedEnterElements[o],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var i=[];try{n=this._flushAnimations(i,e)}finally{for(o=0;o<i.length;o++)i[o]()}}else for(o=0;o<this.collectedLeaveElements.length;o++)this.processLeaveNode(this.collectedLeaveElements[o]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(e){return e()}),this._flushFns=[],this._whenQuietFns.length){var r=this._whenQuietFns;this._whenQuietFns=[],n.length?gs(n).onDone(function(){r.forEach(function(e){return e()})}):r.forEach(function(e){return e()})}},e.prototype.reportError=function(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+e.join("\n"))},e.prototype._flushAnimations=function(e,t){var n=this,o=new pa,i=[],r=new Map,l=[],s=new Map,a=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(function(e){c.add(e);for(var t=n.driver.query(e,".ng-animate-queued",!0),o=0;o<t.length;o++)c.add(t[o])});var d=Is(),p=Array.from(this.statesByElement.keys()),f=za(p,this.collectedEnterElements),h=new Map,y=0;f.forEach(function(e,t){var n="ng-enter"+y++;h.set(t,n),e.forEach(function(e){return Ga(e,n)})});for(var m=[],g=new Set,v=new Set,b=0;b<this.collectedLeaveElements.length;b++)(j=(N=this.collectedLeaveElements[b])[ja])&&j.setForRemoval&&(m.push(N),g.add(N),j.hasAnimation?this.driver.query(N,".ng-star-inserted",!0).forEach(function(e){return g.add(e)}):v.add(N));var k=new Map,_=za(p,Array.from(g));_.forEach(function(e,t){var n="ng-leave"+y++;k.set(t,n),e.forEach(function(e){return Ga(e,n)})}),e.push(function(){f.forEach(function(e,t){var n=h.get(t);e.forEach(function(e){return Ya(e,n)})}),_.forEach(function(e,t){var n=k.get(t);e.forEach(function(e){return Ya(e,n)})}),m.forEach(function(e){n.processLeaveNode(e)})});for(var w=[],A=[],T=this._namespaceList.length-1;T>=0;T--)this._namespaceList[T].drainQueuedTransitions(t).forEach(function(e){var t=e.player;w.push(t);var r=e.element;if(d&&n.driver.containsElement(d,r)){var c=k.get(r),p=h.get(r),f=n._buildInstruction(e,o,p,c);if(f.errors&&f.errors.length)A.push(f);else{if(e.isFallbackTransition)return t.onStart(function(){return qs(r,f.fromStyles)}),t.onDestroy(function(){return Ws(r,f.toStyles)}),void i.push(t);f.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),o.append(r,f.timelines),l.push({instruction:f,player:t,element:r}),f.queriedElements.forEach(function(e){return ws(s,e,[]).push(t)}),f.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var o=a.get(t);o||a.set(t,o=new Set),n.forEach(function(e){return o.add(e)})}}),f.postStyleProps.forEach(function(e,t){var n=Object.keys(e),o=u.get(t);o||u.set(t,o=new Set),n.forEach(function(e){return o.add(e)})})}}else t.destroy()});if(A.length){var C=[];A.forEach(function(e){C.push("@"+e.triggerName+" has failed due to:\n"),e.errors.forEach(function(e){return C.push("- "+e+"\n")})}),w.forEach(function(e){return e.destroy()}),this.reportError(C)}var x=new Map,O=new Map;l.forEach(function(e){var t=e.element;o.has(t)&&(O.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,x))}),i.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){ws(x,t,[]).push(e),e.destroy()})});var S=m.filter(function(e){return Ja(e,a,u)}),M=new Map;qa(M,this.driver,v,u,cs).forEach(function(e){Ja(e,a,u)&&S.push(e)});var E=new Map;f.forEach(function(e,t){qa(E,n.driver,new Set(e),a,ms)}),S.forEach(function(e){var t=M.get(e),n=E.get(e);M.set(e,Object(wo.__assign)({},t,n))});var P=[],I=[],R={};l.forEach(function(e){var t=e.element,l=e.player,s=e.instruction;if(o.has(t)){if(c.has(t))return l.onDestroy(function(){return Ws(t,s.toStyles)}),void i.push(l);var a=R;if(O.size>1){for(var u=t,d=[];u=u.parentNode;){var p=O.get(u);if(p){a=p;break}d.push(u)}d.forEach(function(e){return O.set(e,a)})}var f=n._buildAnimation(l.namespaceId,s,x,r,E,M);if(l.setRealPlayer(f),a===R)P.push(l);else{var h=n.playersByElement.get(a);h&&h.length&&(l.parentPlayer=gs(h)),i.push(l)}}else qs(t,s.fromStyles),l.onDestroy(function(){return Ws(t,s.toStyles)}),I.push(l),c.has(t)&&i.push(l)}),I.forEach(function(e){var t=r.get(e.element);if(t&&t.length){var n=gs(t);e.setRealPlayer(n)}}),i.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var D=0;D<m.length;D++){var N,j=(N=m[D])[ja];if(Ya(N,"ng-leave"),!j||!j.hasAnimation){var L=[];if(s.size){var U=s.get(N);U&&U.length&&L.push.apply(L,U);for(var V=this.driver.query(N,".ng-animating",!0),F=0;F<V.length;F++){var K=s.get(V[F]);K&&K.length&&L.push.apply(L,K)}}var B=L.filter(function(e){return!e.destroyed});B.length?Qa(this,N,B):this.processLeaveNode(N)}}return m.length=0,P.forEach(function(e){n.players.push(e),e.onDone(function(){e.destroy();var t=n.players.indexOf(e);n.players.splice(t,1)}),e.play()}),P},e.prototype.elementContainsData=function(e,t){var n=!1,o=t[ja];return o&&o.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n},e.prototype.afterFlush=function(e){this._flushFns.push(e)},e.prototype.afterFlushAnimationsDone=function(e){this._whenQuietFns.push(e)},e.prototype._getPreviousPlayers=function(e,t,n,o,i){var r=[];if(t){var l=this.playersByQueriedElement.get(e);l&&(r=l)}else{var s=this.playersByElement.get(e);if(s){var a=!i||"void"==i;s.forEach(function(e){e.queued||(a||e.triggerName==o)&&r.push(e)})}}return(n||o)&&(r=r.filter(function(e){return!(n&&n!=e.namespaceId||o&&o!=e.triggerName)})),r},e.prototype._beforeAnimationBuild=function(e,t,n){for(var o=t.element,i=t.isRemovalTransition?void 0:e,r=t.isRemovalTransition?void 0:t.triggerName,l=function(e){var l=e.element,a=l!==o,u=ws(n,l,[]);s._getPreviousPlayers(l,a,i,r,t.toState).forEach(function(e){var t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),u.push(e)})},s=this,a=0,u=t.timelines;a<u.length;a++)l(u[a]);qs(o,t.fromStyles)},e.prototype._buildAnimation=function(e,t,n,o,i,r){var l=this,s=t.triggerName,a=t.element,u=[],c=new Set,d=new Set,p=t.timelines.map(function(t){var p=t.element;c.add(p);var f=p[ja];if(f&&f.removedBeforeQueried)return new hs;var h,y,m=p!==a,g=(h=(n.get(p)||Ra).map(function(e){return e.getRealPlayer()}),y=[],function e(t,n){for(var o=0;o<t.length;o++){var i=t[o];i instanceof ys?e(i.players,n):n.push(i)}}(h,y),y).filter(function(e){return!!e.element&&e.element===p}),v=i.get(p),b=r.get(p),k=vs(0,l._normalizer,0,t.keyframes,v,b),_=l._buildPlayer(t,k,g);if(t.subTimeline&&o&&d.add(p),m){var w=new Ba(e,s,p);w.setRealPlayer(_),u.push(w)}return _});u.forEach(function(e){ws(l.playersByQueriedElement,e.element,[]).push(e),e.onDone(function(){return function(e,t,n){var o;if(e instanceof Map){if(o=e.get(t)){if(o.length){var i=o.indexOf(n);o.splice(i,1)}0==o.length&&e.delete(t)}}else(o=e[t])&&(o.length&&(i=o.indexOf(n),o.splice(i,1)),0==o.length&&delete e[t]);return o}(l.playersByQueriedElement,e.element,e)})}),c.forEach(function(e){return Ga(e,"ng-animating")});var f=gs(p);return f.onDestroy(function(){c.forEach(function(e){return Ya(e,"ng-animating")}),Ws(a,t.toStyles)}),d.forEach(function(e){ws(o,e,[]).push(f)}),f},e.prototype._buildPlayer=function(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new hs},e}(),Ba=function(){function e(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new hs,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.queued=!0}return e.prototype.setRealPlayer=function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return bs(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.queued=!1)},e.prototype.getRealPlayer=function(){return this._player},e.prototype.syncPlayerEvents=function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})},e.prototype._queueEvent=function(e,t){ws(this._queuedCallbacks,e,[]).push(t)},e.prototype.onDone=function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)},e.prototype.onStart=function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)},e.prototype.onDestroy=function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)},e.prototype.init=function(){this._player.init()},e.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},e.prototype.play=function(){!this.queued&&this._player.play()},e.prototype.pause=function(){!this.queued&&this._player.pause()},e.prototype.restart=function(){!this.queued&&this._player.restart()},e.prototype.finish=function(){this._player.finish()},e.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},e.prototype.reset=function(){!this.queued&&this._player.reset()},e.prototype.setPosition=function(e){this.queued||this._player.setPosition(e)},e.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},Object.defineProperty(e.prototype,"totalTime",{get:function(){return this._player.totalTime},enumerable:!0,configurable:!0}),e.prototype.triggerCallback=function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)},e}();function Ha(e){return e&&1===e.nodeType}function Wa(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function qa(e,t,n,o,i){var r=[];n.forEach(function(e){return r.push(Wa(e))});var l=[];o.forEach(function(n,o){var r={};n.forEach(function(e){var n=r[e]=t.computeStyle(o,e,i);n&&0!=n.length||(o[ja]=Na,l.push(o))}),e.set(o,r)});var s=0;return n.forEach(function(e){return Wa(e,r[s++])}),l}function za(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var o=new Set(t),i=new Map;return t.forEach(function(e){var t=function e(t){if(!t)return 1;var r=i.get(t);if(r)return r;var l=t.parentNode;return r=n.has(l)?l:o.has(l)?1:e(l),i.set(t,r),r}(e);1!==t&&n.get(t).push(e)}),n}var $a="$$classes";function Ga(e,t){if(e.classList)e.classList.add(t);else{var n=e[$a];n||(n=e[$a]={}),n[t]=!0}}function Ya(e,t){if(e.classList)e.classList.remove(t);else{var n=e[$a];n&&delete n[t]}}function Qa(e,t,n){gs(n).onDone(function(){return e.processLeaveNode(t)})}function Ja(e,t,n){var o=n.get(e);if(!o)return!1;var i=t.get(e);return i?o.forEach(function(e){return i.add(e)}):t.set(e,o),n.delete(e),!0}var Za=function(){function e(e,t){var n=this;this._driver=e,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new Ka(e,t),this._timelineEngine=new Ia(e,t),this._transitionEngine.onRemovalComplete=function(e,t){return n.onRemovalComplete(e,t)}}return e.prototype.registerTrigger=function(e,t,n,o,i){var r=e+"-"+o,l=this._triggerCache[r];if(!l){var s=[],a=ra(this._driver,i,s);if(s.length)throw new Error('The animation trigger "'+o+'" has failed to build due to the following errors:\n - '+s.join("\n - "));l=function(e,t){return new Ma(e,t)}(o,a),this._triggerCache[r]=l}this._transitionEngine.registerTrigger(t,o,l)},e.prototype.register=function(e,t){this._transitionEngine.register(e,t)},e.prototype.destroy=function(e,t){this._transitionEngine.destroy(e,t)},e.prototype.onInsert=function(e,t,n,o){this._transitionEngine.insertNode(e,t,n,o)},e.prototype.onRemove=function(e,t,n){this._transitionEngine.removeNode(e,t,n)},e.prototype.disableAnimations=function(e,t){this._transitionEngine.markElementAsDisabled(e,t)},e.prototype.process=function(e,t,n,o){if("@"==n.charAt(0)){var i=As(n);this._timelineEngine.command(i[0],t,i[1],o)}else this._transitionEngine.trigger(e,t,n,o)},e.prototype.listen=function(e,t,n,o,i){if("@"==n.charAt(0)){var r=As(n);return this._timelineEngine.listen(r[0],t,r[1],i)}return this._transitionEngine.listen(e,t,n,o,i)},e.prototype.flush=function(e){void 0===e&&(e=-1),this._transitionEngine.flush(e)},Object.defineProperty(e.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),e.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},e}(),Xa=function(){function e(e,t,n,o){void 0===o&&(o=[]);var i=this;this.element=e,this.keyframes=t,this.options=n,this.previousPlayers=o,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.previousStyles={},this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay,(0===this._duration||0===this._delay)&&o.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return i.previousStyles[e]=t[e]})})}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},e.prototype._buildPlayer=function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes.map(function(e){return Hs(e,!1)}),n=Object.keys(this.previousStyles);if(n.length&&t.length){var o=t[0],i=[];if(n.forEach(function(t){o.hasOwnProperty(t)||i.push(t),o[t]=e.previousStyles[t]}),i.length)for(var r=this,l=function(){var e=t[s];i.forEach(function(t){e[t]=eu(r.element,t)})},s=1;s<t.length;s++)l()}this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}},e.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},e.prototype._triggerWebAnimation=function(e,t,n){return e.animate(t,n)},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0),this.domPlayer.play()},e.prototype.pause=function(){this.init(),this.domPlayer.pause()},e.prototype.finish=function(){this.init(),this._onFinish(),this.domPlayer.finish()},e.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},e.prototype.restart=function(){this.reset(),this.play()},e.prototype.hasStarted=function(){return this._started},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.setPosition=function(e){this.domPlayer.currentTime=e*this.time},e.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(e.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),e.prototype.beforeDestroy=function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:eu(e.element,n))}),this.currentSnapshot=t},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}();function eu(e,t){return window.getComputedStyle(e)[t]}var tu=function(){function e(){}return e.prototype.validateStyleProperty=function(e){return Ps(e)},e.prototype.matchesElement=function(e,t){return Rs(e,t)},e.prototype.containsElement=function(e,t){return Ds(e,t)},e.prototype.query=function(e,t,n){return Ns(e,t,n)},e.prototype.computeStyle=function(e,t,n){return window.getComputedStyle(e)[t]},e.prototype.animate=function(e,t,n,o,i,r){void 0===r&&(r=[]);var l={duration:n,delay:o,fill:0==o?"both":"forwards"};i&&(l.easing=i);var s=r.filter(function(e){return e instanceof Xa});return new Xa(e,t,l,s)},e}(),nu=function(e){function t(t,n){var o=e.call(this)||this;return o._nextAnimationId=0,o._renderer=t.createRenderer(n.body,{id:"0",encapsulation:i.ViewEncapsulation.None,styles:[],data:{animation:[]}}),o}return Object(wo.__extends)(t,e),t.prototype.build=function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?ds(e):e;return ru(this._renderer,null,t,"register",[n]),new ou(t,this._renderer)},t}(us),ou=function(e){function t(t,n){var o=e.call(this)||this;return o._id=t,o._renderer=n,o}return Object(wo.__extends)(t,e),t.prototype.create=function(e,t){return new iu(this._id,e,t||{},this._renderer)},t}(function(){}),iu=function(){function e(e,t,n,o){this.id=e,this.element=t,this._renderer=o,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return e.prototype._listen=function(e,t){return this._renderer.listen(this.element,"@@"+this.id+":"+e,t)},e.prototype._command=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return ru(this._renderer,this.element,this.id,e,t)},e.prototype.onDone=function(e){this._listen("done",e)},e.prototype.onStart=function(e){this._listen("start",e)},e.prototype.onDestroy=function(e){this._listen("destroy",e)},e.prototype.init=function(){this._command("init")},e.prototype.hasStarted=function(){return this._started},e.prototype.play=function(){this._command("play"),this._started=!0},e.prototype.pause=function(){this._command("pause")},e.prototype.restart=function(){this._command("restart")},e.prototype.finish=function(){this._command("finish")},e.prototype.destroy=function(){this._command("destroy")},e.prototype.reset=function(){this._command("reset")},e.prototype.setPosition=function(e){this._command("setPosition",e)},e.prototype.getPosition=function(){return 0},e}();function ru(e,t,n,o,i){return e.setProperty(t,"@@"+n+":"+o,i)}var lu=function(){function e(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=function(e,t){t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}return e.prototype.createRenderer=function(e,t){var n=this,o=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){var i=this._rendererCache.get(o);return i||(i=new su("",o,this.engine),this._rendererCache.set(o,i)),i}var r=t.id,l=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(l,e),t.data.animation.forEach(function(t){return n.engine.registerTrigger(r,l,e,t.name,t)}),new au(this,l,o,this.engine)},e.prototype.begin=function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()},e.prototype._scheduleCountTask=function(){var e=this;this.promise.then(function(){e._microtaskId++})},e.prototype.scheduleListenerCallback=function(e,t,n){var o=this;e>=0&&e<this._microtaskId?this._zone.run(function(){return t(n)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){o._zone.run(function(){o._animationCallbacksBuffer.forEach(function(e){(0,e[0])(e[1])}),o._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))},e.prototype.end=function(){var e=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){e._scheduleCountTask(),e.engine.flush(e._microtaskId)}),this.delegate.end&&this.delegate.end()},e.prototype.whenRenderingDone=function(){return this.engine.whenRenderingDone()},e}(),su=function(){function e(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?function(e){return t.destroyNode(e)}:null}return Object.defineProperty(e.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()},e.prototype.createElement=function(e,t){return this.delegate.createElement(e,t)},e.prototype.createComment=function(e){return this.delegate.createComment(e)},e.prototype.createText=function(e){return this.delegate.createText(e)},e.prototype.appendChild=function(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)},e.prototype.insertBefore=function(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)},e.prototype.removeChild=function(e,t){this.engine.onRemove(this.namespaceId,t,this.delegate)},e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.parentNode=function(e){return this.delegate.parentNode(e)},e.prototype.nextSibling=function(e){return this.delegate.nextSibling(e)},e.prototype.setAttribute=function(e,t,n,o){this.delegate.setAttribute(e,t,n,o)},e.prototype.removeAttribute=function(e,t,n){this.delegate.removeAttribute(e,t,n)},e.prototype.addClass=function(e,t){this.delegate.addClass(e,t)},e.prototype.removeClass=function(e,t){this.delegate.removeClass(e,t)},e.prototype.setStyle=function(e,t,n,o){this.delegate.setStyle(e,t,n,o)},e.prototype.removeStyle=function(e,t,n){this.delegate.removeStyle(e,t,n)},e.prototype.setProperty=function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)},e.prototype.setValue=function(e,t){this.delegate.setValue(e,t)},e.prototype.listen=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.disableAnimations=function(e,t){this.engine.disableAnimations(e,t)},e}(),au=function(e){function t(t,n,o,i){var r=e.call(this,n,o,i)||this;return r.factory=t,r.namespaceId=n,r}return Object(wo.__extends)(t,e),t.prototype.setProperty=function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)},t.prototype.listen=function(e,t,n){var o,i,r,l=this;if("@"==t.charAt(0)){var s=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),a=t.substr(1),u="";return"@"!=a.charAt(0)&&(a=(i=a,r=i.indexOf("."),o=[i.substring(0,r),i.substr(r+1)])[0],u=o[1]),this.engine.listen(this.namespaceId,s,a,u,function(e){l.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)},t}(su),uu=function(e){function t(t,n){return e.call(this,t,n)||this}return Object(wo.__extends)(t,e),t}(Za);function cu(){return"undefined"!=typeof Element&&"function"==typeof Element.prototype.animate?new tu:new js}function du(){return new Aa}function pu(e,t,n){return new lu(e,t,n)}var fu=function(){},hu=new i.InjectionToken("confirmation popover user options");function yu(e){var t=new h;return Object.assign(t,e),t}var mu=function(){function e(){}return e.forRoot=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[{provide:hu,useValue:t},{provide:h,useFactory:yu,deps:[hu]},he]}},e}(),gu=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.let(Object(xn.b)()).do(function(t){var n=t.find(function(e){return e.isDefault});n&&e.router.navigate(["/keymap",n.abbreviation])}).switchMap(function(){return Ve.Observable.of(!1)})},e}(),vu=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.let(Object(xn.d)()).map(function(t){var n=t.length>0;return n&&e.router.navigate(["/macro",t[0].id]),!n})},e}(),bu=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(u.d).do(function(t){t&&e.router.navigate(["/"])}).map(function(e){return!e})},e}(),ku=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(u.d).do(function(t){t||e.router.navigate(["/detection"])})},e}(),_u=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(u.s).do(function(t){t&&e.router.navigate(["/detection"])}).map(function(e){return!e})},e}(),wu=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(u.s).do(function(t){t||e.router.navigate(["/privilege"])})},e}(),Au=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(u.c).do(function(t){t||e.router.navigate(["/loading"])})},e}(),Tu=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(u.c).do(function(t){t&&e.router.navigate(["/"])}).map(function(e){return!e})},e}(),Cu=function(){function e(e,t){this.store=e,this.router=t}return e.prototype.canActivate=function(){var e=this;return this.store.select(u.b).do(function(t){t||e.router.navigate(["/"])})},e}(),xu=n("YXEY"),Ou=n("+GbP"),Su=n("mp4z"),Mu=function(){},Eu=function(){},Pu=n("HZ5C"),Iu=n("7OPe"),Ru=n("/KiA"),Du=n("r/Om"),Nu=n("tXwt"),ju=n("j4Le"),Lu=n("8AXl"),Uu=function(){function e(){}return e.prototype.send=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.on=function(e,t){return this},e}(),Vu=function(){function e(e,t,n){this.store=e,this.zone=t,this.ipcRenderer=n,this.registerEvents()}return e.prototype.sendAppStarted=function(){this.ipcRenderer.send(qe.IpcEvents.app.appStarted)},e.prototype.sendUpdateAndRestartApp=function(){this.ipcRenderer.send(qe.IpcEvents.autoUpdater.updateAndRestart)},e.prototype.checkForUpdate=function(){this.ipcRenderer.send(qe.IpcEvents.autoUpdater.checkForUpdate)},e.prototype.registerEvents=function(){var e=this;this.ipcRenderer.on(qe.IpcEvents.autoUpdater.updateAvailable,function(t,n){e.writeUpdateState(qe.IpcEvents.autoUpdater.updateAvailable,n)}),this.ipcRenderer.on(qe.IpcEvents.autoUpdater.updateNotAvailable,function(){e.writeUpdateState(qe.IpcEvents.autoUpdater.updateNotAvailable),e.dispachStoreAction(new nl.d("No update available"))}),this.ipcRenderer.on(qe.IpcEvents.autoUpdater.autoUpdateError,function(t,n){e.writeUpdateState(qe.IpcEvents.autoUpdater.autoUpdateError,n),e.dispachStoreAction(new a.e(n))}),this.ipcRenderer.on(qe.IpcEvents.autoUpdater.autoUpdateDownloadProgress,function(t,n){e.writeUpdateState(qe.IpcEvents.autoUpdater.autoUpdateDownloadProgress,n)}),this.ipcRenderer.on(qe.IpcEvents.autoUpdater.autoUpdateDownloaded,function(t,n){e.writeUpdateState(qe.IpcEvents.autoUpdater.autoUpdateDownloaded,n),e.dispachStoreAction(new a.d)}),this.ipcRenderer.on(qe.IpcEvents.autoUpdater.checkForUpdateNotAvailable,function(t,n){e.writeUpdateState(qe.IpcEvents.autoUpdater.checkForUpdateNotAvailable,n),e.dispachStoreAction(new nl.b(n))})},e.prototype.dispachStoreAction=function(e){var t=this;this.zone.run(function(){return t.store.dispatch(e)})},e.prototype.writeUpdateState=function(e,t){console.log({event:e,arg:t})},e}(),Fu=n("y1XC"),Ku=function(){function e(e,t,n,o){this.store=e,this.zone=t,this.ipcRenderer=n,this.logService=o,this.registerEvents(),this.logService.info("[AppRendererService] init success ")}return e.prototype.getAppStartInfo=function(){this.logService.info("[AppRendererService] getAppStartInfo"),this.ipcRenderer.send(qe.IpcEvents.app.getAppStartInfo)},e.prototype.exit=function(){this.logService.info("[AppRendererService] exit"),this.ipcRenderer.send(qe.IpcEvents.app.exit)},e.prototype.openUrl=function(e){this.logService.info("[AppRendererService] open url: "+e),this.ipcRenderer.send(qe.IpcEvents.app.openUrl,e)},e.prototype.registerEvents=function(){var e=this;this.ipcRenderer.on(qe.IpcEvents.app.getAppStartInfoReply,function(t,n){e.dispachStoreAction(new F.j(n))}),this.ipcRenderer.on("__ELECTRON_LOG_RENDERER__",function(t,n,o){e.zone.run(function(){return e.store.dispatch(new F.e({level:n,message:o}))})})},e.prototype.dispachStoreAction=function(e){var t=this;this.logService.info("[AppRendererService] dispatch action",e),this.zone.run(function(){return t.store.dispatch(e)})},e}(),Bu=(n("HcJ8"),n("6Yye"),function(){function e(e,t,n,o,i,r){var l=this;this.actions$=e,this.notifierService=t,this.appUpdateRendererService=n,this.appRendererService=o,this.logService=i,this.store=r,this.appStart$=this.actions$.ofType(F.a.APP_BOOTSRAPPED).startWith(new F.b).do(function(){l.logService.info("Renderer appStart effect start"),l.appUpdateRendererService.sendAppStarted(),l.appRendererService.getAppStartInfo(),l.logService.info("Renderer appStart effect end")}),this.appStartInfo$=this.actions$.ofType(F.a.LOAD_APP_START_INFO).do(function(){l.appRendererService.getAppStartInfo()}),this.showNotification$=this.actions$.ofType(F.a.APP_SHOW_NOTIFICATION).map(function(e){return e.payload}).do(function(e){e.type!==qe.NotificationType.Undoable&&l.notifierService.notify(e.type,e.message)}),this.processStartInfo$=this.actions$.ofType(F.a.APP_PROCESS_START_INFO).map(function(e){return e.payload}).mergeMap(function(e){return l.logService.debug("[AppEffect][processStartInfo] payload:",e),[new F.c(e.commandLineArgs),new V.b({connected:e.deviceConnected,hasPermission:e.hasPermission,bootloaderActive:e.bootloaderActive})]}),this.undoLastNotification$=this.actions$.ofType(F.a.UNDO_LAST).map(function(e){return e.payload}).mergeMap(function(e){return[e,new F.d]}),this.openUrlInNewWindow$=this.actions$.ofType(F.a.OPEN_URL_IN_NEW_WINDOW).withLatestFrom(this.store.select(u.t)).do(function(e){var t=e[0].payload;e[1]?l.appRendererService.openUrl(t):window.open(t,"_blank")})}return Object(wo.__decorate)([Object(Lu.b)(),Object(wo.__metadata)("design:type",Ve.Observable)],e.prototype,"appStart$",void 0),Object(wo.__decorate)([Object(Lu.b)({dispatch:!1}),Object(wo.__metadata)("design:type",Ve.Observable)],e.prototype,"appStartInfo$",void 0),Object(wo.__decorate)([Object(Lu.b)({dispatch:!1}),Object(wo.__metadata)("design:type",Ve.Observable)],e.prototype,"showNotification$",void 0),Object(wo.__decorate)([Object(Lu.b)(),Object(wo.__metadata)("design:type",Ve.Observable)],e.prototype,"processStartInfo$",void 0),Object(wo.__decorate)([Object(Lu.b)(),Object(wo.__metadata)("design:type",Ve.Observable)],e.prototype,"undoLastNotification$",void 0),Object(wo.__decorate)([Object(Lu.b)({dispatch:!1}),Object(wo.__metadata)("design:type",Object)],e.prototype,"openUrlInNewWindow$",void 0),e}()),Hu=function(){function e(e,t,n){var o=this;this.actions$=e,this.appUpdateRendererService=t,this.logService=n,this.appStart$=this.actions$.ofType(a.a.UPDATE_APP).first().do(function(){o.appUpdateRendererService.sendUpdateAndRestartApp()}),this.checkForUpdate$=this.actions$.ofType(nl.a.CHECK_FOR_UPDATE_NOW).do(function(){o.logService.debug("[AppUpdateEffect] call checkForUpdate"),o.appUpdateRendererService.checkForUpdate()}),this.handleError$=this.actions$.ofType(a.a.UPDATE_ERROR).map(function(e){return e.payload}).map(function(e){return new F.l({type:qe.NotificationType.Error,message:e})})}return Object(wo.__decorate)([Object(Lu.b)({dispatch:!1}),Object(wo.__metadata)("design:type",Ve.Observable)],e.prototype,"appStart$",void 0),Object(wo.__decorate)([Object(Lu.b)({dispatch:!1}),Object(wo.__metadata)("design:type",Ve.Observable)],e.prototype,"checkForUpdate$",void 0),Object(wo.__decorate)([Object(Lu.b)(),Object(wo.__metadata)("design:type",Ve.Observable)],e.prototype,"handleError$",void 0),e}(),Wu=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}(),qu=function(){function e(e,t,n,o){this.store=e,this.zone=t,this.ipcRenderer=n,this.logService=o,this.registerEvents(),this.logService.info("[DeviceRendererService] init success ")}return e.prototype.setPrivilegeOnLinux=function(){this.ipcRenderer.send(qe.IpcEvents.device.setPrivilegeOnLinux)},e.prototype.saveUserConfiguration=function(e){this.ipcRenderer.send(qe.IpcEvents.device.saveUserConfiguration,JSON.stringify(e))},e.prototype.loadConfigurationFromKeyboard=function(){this.ipcRenderer.send(qe.IpcEvents.device.loadConfigurations)},e.prototype.updateFirmware=function(e){e?this.ipcRenderer.send(qe.IpcEvents.device.updateFirmware,JSON.stringify(e)):this.ipcRenderer.send(qe.IpcEvents.device.updateFirmware)},e.prototype.startConnectionPoller=function(){this.ipcRenderer.send(qe.IpcEvents.device.startConnectionPoller)},e.prototype.recoveryDevice=function(){this.ipcRenderer.send(qe.IpcEvents.device.recoveryDevice)},e.prototype.registerEvents=function(){var e=this;this.ipcRenderer.on(qe.IpcEvents.device.deviceConnectionStateChanged,function(t,n){e.dispachStoreAction(new V.b(n))}),this.ipcRenderer.on(qe.IpcEvents.device.setPrivilegeOnLinuxReply,function(t,n){e.dispachStoreAction(new V.p(n))}),this.ipcRenderer.on(qe.IpcEvents.device.saveUserConfigurationReply,function(t,n){e.dispachStoreAction(new V.l(n))}),this.ipcRenderer.on(qe.IpcEvents.device.loadConfigurationReply,function(t,n){e.dispachStoreAction(new me.d(JSON.parse(n)))}),this.ipcRenderer.on(qe.IpcEvents.device.updateFirmwareReply,function(t,n){e.dispachStoreAction(new V.t(n))})},e.prototype.dispachStoreAction=function(e){var t=this;this.logService.info("[DeviceRendererService] dispatch action",JSON.stringify(e)),this.zone.run(function(){return t.store.dispatch(e)})},e}(),zu=n("NSzm"),$u=(n("iIfT"),n("/lY3"),n("fiy1"),function(){function e(e,t,o){var i=this;this.actions$=e,this.router=t,this.store=o,this.loadKeymaps$=this.actions$.ofType(wt.a.LOAD_KEYMAPS).startWith(wt.a.loadKeymaps()).switchMap(function(){var e=n("JZ4p"),t=e.keys().map(e).map(function(e){return(new qe.Keymap).fromJsonObject(e)});return Ve.Observable.of(wt.a.loadKeymapsSuccess(t))}),this.addOrDuplicate$=this.actions$.ofType(wt.a.ADD,wt.a.DUPLICATE).withLatestFrom(this.store.let(Object(xn.b)()).pairwise(),function(e,t){return t}).do(function(e){var t=e[0],n=e[1],o=Object(At.a)(t,n);i.router.navigate(["/keymap",o.abbreviation])}),this.remove$=this.actions$.ofType(wt.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 t=e.find(function(e){return e.isDefault});i.router.navigate(["/keymap",t.abbreviation])}}),this.editAbbr$=this.actions$.ofType(wt.a.EDIT_ABBR).withLatestFrom(this.store).do(function(e){for(var t=e[0],n=0,o=e[1].userConfiguration.keymaps;n<o.length;n++){var r=o[n];if(r.name===t.payload.name&&r.abbreviation===t.payload.newAbbr)return void i.router.navigate(["/keymap",t.payload.newAbbr])}})}return Object(wo.__decorate)([Object(Lu.b)(),Object(wo.__metadata)("design:type",Ve.Observable)],e.prototype,"loadKeymaps$",void 0),Object(wo.__decorate)([Object(Lu.b)({dispatch:!1}),Object(wo.__metadata)("design:type",Object)],e.prototype,"addOrDuplicate$",void 0),Object(wo.__decorate)([Object(Lu.b)({dispatch:!1}),Object(wo.__metadata)("design:type",Object)],e.prototype,"remove$",void 0),Object(wo.__decorate)([Object(Lu.b)({dispatch:!1}),Object(wo.__metadata)("design:type",Object)],e.prototype,"editAbbr$",void 0),e}()),Gu=function(){function e(e,t,n){var o=this;this.actions$=e,this.router=t,this.store=n,this.remove$=this.actions$.ofType(wt.b.REMOVE).do(function(e){return o.store.dispatch(wt.a.checkMacro(e.payload))}).withLatestFrom(this.store).map(function(e){return e[1].userConfiguration.macros}).do(function(e){o.router.navigate(0===e.length?["/macro"]:["/macro",e[0].id])}),this.addOrDuplicate$=this.actions$.ofType(wt.b.ADD,wt.b.DUPLICATE).withLatestFrom(this.store.let(Object(xn.d)()).pairwise(),function(e,t){return[e,t[0],t[1]]}).do(function(e){var t=e[0],n=e[1],i=e[2],r=["/macro",Object(At.a)(n,i).id];t.type===wt.b.ADD&&r.push("new"),o.router.navigate(r)})}return Object(wo.__decorate)([Object(Lu.b)({dispatch:!1}),Object(wo.__metadata)("design:type",Object)],e.prototype,"remove$",void 0),Object(wo.__decorate)([Object(Lu.b)({dispatch:!1}),Object(wo.__metadata)("design:type",Object)],e.prototype,"addOrDuplicate$",void 0),e}(),Yu=function(){function e(e,t,n){var o=this;this.actions$=e,this.dataStorageRepository=t,this.store=n,this.loadUserConfig$=this.actions$.ofType(nl.a.LOAD_AUTO_UPDATE_SETTINGS).startWith(new nl.e).switchMap(function(){var e=o.dataStorageRepository.getAutoUpdateSettings();return e||(e=Iu.c),Ve.Observable.of(new nl.f(e))}),this.saveAutoUpdateConfig$=this.actions$.ofType(nl.a.TOGGLE_CHECK_FOR_UPDATE_ON_STARTUP,nl.a.TOGGLE_PRE_RELEASE_FLAG).withLatestFrom(this.store.select(u.g)).map(function(e){return o.dataStorageRepository.saveAutoUpdateSettings(e[1]),new nl.g}),this.sendNotification$=this.actions$.ofType(nl.a.CHECK_FOR_UPDATE_FAILED,nl.a.CHECK_FOR_UPDATE_SUCCESS).map(Lu.d).map(function(e){return new F.l({type:qe.NotificationType.Info,message:e})})}return Object(wo.__decorate)([Object(Lu.b)(),Object(wo.__metadata)("design:type",Ve.Observable)],e.prototype,"loadUserConfig$",void 0),Object(wo.__decorate)([Object(Lu.b)(),Object(wo.__metadata)("design:type",Ve.Observable)],e.prototype,"saveAutoUpdateConfig$",void 0),Object(wo.__decorate)([Object(Lu.b)(),Object(wo.__metadata)("design:type",Ve.Observable)],e.prototype,"sendNotification$",void 0),e}(),Qu=(n("AGQa"),n("jdeX"),function(){function e(e,t,n,o,i,r){var l=this;this.actions$=e,this.router=t,this.deviceRendererService=n,this.store=o,this.dataStorageRepository=i,this.defaultUserConfigurationService=r,this.deviceConnectionStateChange$=this.actions$.ofType(V.a.CONNECTION_STATE_CHANGED).withLatestFrom(this.store.select(u.n)).do(function(e){var t=e[1],n=e[0].payload;t.state&&t.state.url.startsWith("/device/firmware")||l.router.navigate(n.hasPermission?n.bootloaderActive?["/recovery-device"]:n.connected?["/"]:["/detection"]:["/privilege"])}).switchMap(function(e){var t=e[0].payload;return t.connected&&t.hasPermission?Ve.Observable.of(new me.c):Ve.Observable.empty()}),this.setPrivilegeOnLinux$=this.actions$.ofType(V.a.SET_PRIVILEGE_ON_LINUX).do(function(){l.deviceRendererService.setPrivilegeOnLinux()}),this.setPrivilegeOnLinuxReply$=this.actions$.ofType(V.a.SET_PRIVILEGE_ON_LINUX_REPLY).map(function(e){return e.payload}).map(function(e){return e.success?new V.b({connected:!0,hasPermission:!0,bootloaderActive:!1}):new F.k(e.error)}),this.saveConfiguration$=this.actions$.ofType(V.a.SAVE_CONFIGURATION).withLatestFrom(this.store).do(function(e){var t=e[1];setTimeout(function(){return l.sendUserConfigToKeyboard(t.userConfiguration,t.app.hardwareConfig)},100)}).switchMap(function(){return Ve.Observable.empty()}),this.saveConfigurationReply$=this.actions$.ofType(V.a.SAVE_CONFIGURATION_REPLY).map(function(e){return e.payload}).mergeMap(function(e){return e.success?[new V.m]:[new F.l({type:qe.NotificationType.Error,message:e.error.message}),new V.n]}),this.autoHideSaveToKeyboardButton$=this.actions$.ofType(V.a.SAVE_TO_KEYBOARD_SUCCESS).withLatestFrom(this.store).switchMap(function(e){var t=e[1];return Ve.Observable.timer(1e3).mergeMap(function(){var e=[new V.e];return t.device.hasBackupUserConfiguration&&(e.push(new V.j),l.router.navigate(["/"])),e})}),this.resetMouseSpeedSettings$=this.actions$.ofType(V.a.RESET_MOUSE_SPEED_SETTINGS).switchMap(function(){var e=l.defaultUserConfigurationService.getDefault(),t={};return["mouseMoveInitialSpeed","mouseMoveAcceleration","mouseMoveDeceleratedSpeed","mouseMoveBaseSpeed","mouseMoveAcceleratedSpeed","mouseScrollInitialSpeed","mouseScrollAcceleration","mouseScrollDeceleratedSpeed","mouseScrollBaseSpeed","mouseScrollAcceleratedSpeed"].forEach(function(n){t[n]=e[n]}),Ve.Observable.of(new me.e(t))}),this.resetUserConfiguration$=this.actions$.ofType(V.a.RESET_USER_CONFIGURATION).switchMap(function(){var e=l.defaultUserConfigurationService.getDefault();return Ve.Observable.of(new me.e(e))}),this.saveResetUserConfigurationToDevice$=this.actions$.ofType(me.a.LOAD_RESET_USER_CONFIGURATION,me.a.APPLY_USER_CONFIGURATION_FROM_FILE).map(function(e){return e.payload}).switchMap(function(e){return l.dataStorageRepository.saveConfig(e),Ve.Observable.of(new V.k)}),this.updateFirmware$=this.actions$.ofType(V.a.UPDATE_FIRMWARE).do(function(){return l.deviceRendererService.updateFirmware()}),this.updateFirmwareWith$=this.actions$.ofType(V.a.UPDATE_FIRMWARE_WITH).map(function(e){return e.payload}).do(function(e){return l.deviceRendererService.updateFirmware(e)}),this.updateFirmwareReply$=this.actions$.ofType(V.a.UPDATE_FIRMWARE_REPLY).map(function(e){return e.payload}).switchMap(function(e){return Ve.Observable.of(e.success?new V.u(e.modules):new V.s({error:e.error,modules:e.modules}))}),this.restoreUserConfiguration$=this.actions$.ofType(V.a.RESTORE_CONFIGURATION_FROM_BACKUP).map(function(){return new V.k}),this.recoveryDevice$=this.actions$.ofType(V.a.RECOVERY_DEVICE).do(function(){return l.deviceRendererService.recoveryDevice()})}return e.prototype.sendUserConfigToKeyboard=function(e,t){this.deviceRendererService.saveUserConfiguration({uniqueId:t&&t.uniqueId,configuration:e.toJsonObject()})},Object(wo.__decorate)([Object(Lu.b)(),Object(wo.__metadata)("design:type",Ve.Observable)],e.prototype,"deviceConnectionStateChange$",void 0),Object(wo.__decorate)([Object(Lu.b)({dispatch:!1}),Object(wo.__metadata)("design:type",Ve.Observable)],e.prototype,"setPrivilegeOnLinux$",void 0),Object(wo.__decorate)([Object(Lu.b)(),Object(wo.__metadata)("design:type",Ve.Observable)],e.prototype,"setPrivilegeOnLinuxReply$",void 0),Object(wo.__decorate)([Object(Lu.b)({dispatch:!1}),Object(wo.__metadata)("design:type",Ve.Observable)],e.prototype,"saveConfiguration$",void 0),Object(wo.__decorate)([Object(Lu.b)(),Object(wo.__metadata)("design:type",Ve.Observable)],e.prototype,"saveConfigurationReply$",void 0),Object(wo.__decorate)([Object(Lu.b)(),Object(wo.__metadata)("design:type",Ve.Observable)],e.prototype,"autoHideSaveToKeyboardButton$",void 0),Object(wo.__decorate)([Object(Lu.b)(),Object(wo.__metadata)("design:type",Ve.Observable)],e.prototype,"resetMouseSpeedSettings$",void 0),Object(wo.__decorate)([Object(Lu.b)(),Object(wo.__metadata)("design:type",Ve.Observable)],e.prototype,"resetUserConfiguration$",void 0),Object(wo.__decorate)([Object(Lu.b)(),Object(wo.__metadata)("design:type",Object)],e.prototype,"saveResetUserConfigurationToDevice$",void 0),Object(wo.__decorate)([Object(Lu.b)({dispatch:!1}),Object(wo.__metadata)("design:type",Object)],e.prototype,"updateFirmware$",void 0),Object(wo.__decorate)([Object(Lu.b)({dispatch:!1}),Object(wo.__metadata)("design:type",Object)],e.prototype,"updateFirmwareWith$",void 0),Object(wo.__decorate)([Object(Lu.b)(),Object(wo.__metadata)("design:type",Object)],e.prototype,"updateFirmwareReply$",void 0),Object(wo.__decorate)([Object(Lu.b)(),Object(wo.__metadata)("design:type",Object)],e.prototype,"restoreUserConfiguration$",void 0),Object(wo.__decorate)([Object(Lu.b)({dispatch:!1}),Object(wo.__metadata)("design:type",Object)],e.prototype,"recoveryDevice$",void 0),e}()),Ju=i["\u0275cmf"](l,[c],function(e){return i["\u0275mod"]([i["\u0275mpd"](512,i.ComponentFactoryResolver,i["\u0275CodegenComponentFactoryResolver"],[[8,[A,E,$,J,re,ce,ke,Xe,ot,st,ft,_r,Or,Pr,$r,Jr,ll,cl,as]],[3,i.ComponentFactoryResolver],i.NgModuleRef]),i["\u0275mpd"](5120,i.LOCALE_ID,i["\u0275q"],[[3,i.LOCALE_ID]]),i["\u0275mpd"](4608,d.m,d.l,[i.LOCALE_ID,[2,d.u]]),i["\u0275mpd"](5120,i.APP_ID,i["\u0275i"],[]),i["\u0275mpd"](5120,i.IterableDiffers,i["\u0275n"],[]),i["\u0275mpd"](5120,i.KeyValueDiffers,i["\u0275o"],[]),i["\u0275mpd"](4608,P.c,P.r,[d.d]),i["\u0275mpd"](6144,i.Sanitizer,null,[P.c]),i["\u0275mpd"](4608,P.f,P.g,[]),i["\u0275mpd"](5120,P.d,function(e,t,n,o,i){return[new P.k(e,t),new P.o(n),new P.n(o,i)]},[d.d,i.NgZone,d.d,d.d,P.f]),i["\u0275mpd"](4608,P.e,P.e,[P.d,i.NgZone]),i["\u0275mpd"](135680,P.m,P.m,[d.d]),i["\u0275mpd"](4608,P.l,P.l,[P.e,P.m]),i["\u0275mpd"](5120,Ls,cu,[]),i["\u0275mpd"](5120,wa,du,[]),i["\u0275mpd"](4608,Za,uu,[Ls,wa]),i["\u0275mpd"](5120,i.RendererFactory2,pu,[P.l,Za,i.NgZone]),i["\u0275mpd"](6144,P.p,null,[P.m]),i["\u0275mpd"](4608,i.Testability,i.Testability,[i.NgZone]),i["\u0275mpd"](4608,P.h,P.h,[d.d]),i["\u0275mpd"](4608,P.i,P.i,[d.d]),i["\u0275mpd"](4608,us,nu,[i.RendererFactory2,P.b]),i["\u0275mpd"](4608,je["\u0275i"],je["\u0275i"],[]),i["\u0275mpd"](4608,jr.DragulaService,jr.DragulaService,[]),i["\u0275mpd"](4608,Wl,Wl,[]),i["\u0275mpd"](5120,I,R,[]),i["\u0275mpd"](5120,N,j,[P.b,I,[3,N]]),i["\u0275mpd"](5120,le.a,le.A,[le.m]),i["\u0275mpd"](4608,le.f,le.f,[]),i["\u0275mpd"](6144,le.h,null,[le.f]),i["\u0275mpd"](135680,le.r,le.r,[le.m,i.NgModuleFactoryLoader,i.Compiler,i.Injector,le.h]),i["\u0275mpd"](4608,le.g,le.g,[]),i["\u0275mpd"](5120,le.j,le.D,[le.B]),i["\u0275mpd"](5120,i.APP_BOOTSTRAP_LISTENER,function(e){return[e]},[le.j]),i["\u0275mpd"](5120,h,yu,[hu]),i["\u0275mpd"](4608,he,he,[]),i["\u0275mpd"](4608,oo,oo,[]),i["\u0275mpd"](4608,Bt,Bt,[]),i["\u0275mpd"](4608,gu,gu,[s.m,le.m]),i["\u0275mpd"](4608,vu,vu,[s.m,le.m]),i["\u0275mpd"](4608,Cn,Cn,[]),i["\u0275mpd"](4608,bu,bu,[s.m,le.m]),i["\u0275mpd"](4608,ku,ku,[s.m,le.m]),i["\u0275mpd"](4608,_u,_u,[s.m,le.m]),i["\u0275mpd"](4608,wu,wu,[s.m,le.m]),i["\u0275mpd"](4608,Au,Au,[s.m,le.m]),i["\u0275mpd"](4608,Tu,Tu,[s.m,le.m]),i["\u0275mpd"](4608,Cu,Cu,[s.m,le.m]),i["\u0275mpd"](135680,s.k,s.k,[s.a,s.i,s.j,s.d]),i["\u0275mpd"](5120,xu.c,xu.d,[xu.k,xu.i]),i["\u0275mpd"](512,d.c,d.c,[]),i["\u0275mpd"](1024,i.ErrorHandler,P.q,[]),i["\u0275mpd"](1024,i.NgProbeToken,function(){return[le.w()]},[]),i["\u0275mpd"](512,le.B,le.B,[i.Injector]),i["\u0275mpd"](1024,i.APP_INITIALIZER,function(e,t){return[P.t(e),le.C(t)]},[[2,i.NgProbeToken],le.B]),i["\u0275mpd"](512,i.ApplicationInitStatus,i.ApplicationInitStatus,[[2,i.APP_INITIALIZER]]),i["\u0275mpd"](131584,i.ApplicationRef,i.ApplicationRef,[i.NgZone,i["\u0275Console"],i.Injector,i.ErrorHandler,i.ComponentFactoryResolver,i.ApplicationInitStatus]),i["\u0275mpd"](512,i.ApplicationModule,i.ApplicationModule,[i.ApplicationRef]),i["\u0275mpd"](512,P.a,P.a,[[3,P.a]]),i["\u0275mpd"](512,fu,fu,[]),i["\u0275mpd"](512,je["\u0275ba"],je["\u0275ba"],[]),i["\u0275mpd"](512,je.FormsModule,je.FormsModule,[]),i["\u0275mpd"](512,Ou.DragulaModule,Ou.DragulaModule,[]),i["\u0275mpd"](1024,le.v,le.y,[[3,le.m]]),i["\u0275mpd"](512,le.u,le.c,[]),i["\u0275mpd"](512,le.b,le.b,[]),i["\u0275mpd"](256,le.i,{useHash:!0},[]),i["\u0275mpd"](1024,d.h,le.x,[d.s,[2,d.a],le.i]),i["\u0275mpd"](512,d.g,d.g,[d.h]),i["\u0275mpd"](512,i.Compiler,i.Compiler,[]),i["\u0275mpd"](512,i.NgModuleFactoryLoader,i.SystemJsNgModuleLoader,[i.Compiler,[2,i.SystemJsNgModuleLoaderConfig]]),i["\u0275mpd"](1024,le.k,function(){return[[{path:"detection",component:O,canActivate:[bu,wu]},{path:"privilege",component:K,canActivate:[_u]},{path:"loading",component:G,canActivate:[Tu]},{path:"recovery-device",component:ne,canActivate:[Cu]},{path:"",component:se,canActivate:[ku,Au],children:[{path:"device",children:[{path:"",redirectTo:"configuration",pathMatch:"full"},{path:"configuration",component:ge},{path:"mouse-speed",component:Ge},{path:"led-brightness",component:et},{path:"firmware",component:it},{path:"restore-user-configuration",component:at},{path:"recovery-mode",component:ne}]},{path:"",redirectTo:"keymap",pathMatch:"full"},{path:"keymap",component:mr,canActivate:[gu]},{path:"keymap/add",component:wr},{path:"keymap/:abbr",component:mr},{path:"macro",component:Sr,canActivate:[vu]},{path:"macro/:id",component:Br},{path:"macro/:id/:empty",component:Br},{path:"add-on/:name",component:Gr},{path:"settings",component:ol},{path:"about",component:sl}]}]]},[]),i["\u0275mpd"](1024,le.m,le.z,[i.ApplicationRef,le.u,le.b,d.g,i.Injector,i.NgModuleFactoryLoader,i.Compiler,le.k,le.i,[2,le.t],[2,le.l]]),i["\u0275mpd"](512,le.p,le.p,[[2,le.v],[2,le.m]]),i["\u0275mpd"](512,Su.Select2Module,Su.Select2Module,[]),i["\u0275mpd"](512,Ne.NouisliderModule,Ne.NouisliderModule,[]),i["\u0275mpd"](512,Ql,Ql,[]),i["\u0275mpd"](512,mu,mu,[]),i["\u0275mpd"](512,D,D,[]),i["\u0275mpd"](512,Mu,Mu,[]),i["\u0275mpd"](512,Eu,Eu,[]),i["\u0275mpd"](131584,s.a,s.a,[]),i["\u0275mpd"](131584,xu.h,xu.h,[]),i["\u0275mpd"](2048,s.h,null,[xu.h]),i["\u0275mpd"](256,s.r,void 0,[]),i["\u0275mpd"](1024,s.d,s.v,[s.r]),i["\u0275mpd"](256,s.q,{userConfiguration:xn.f,presetKeymaps:Pu.a,autoUpdateSettings:Iu.d,app:Ru.h,router:Du.e,appUpdate:Nu.b,device:ju.h},[]),i["\u0275mpd"](2048,s.t,null,[s.q]),i["\u0275mpd"](1024,s.c,s.u,[i.Injector,s.q,s.t]),i["\u0275mpd"](256,s.s,s.w,[]),i["\u0275mpd"](256,s.e,[],[]),i["\u0275mpd"](1024,s.f,s.y,[s.s,s.e]),i["\u0275mpd"](131584,s.g,s.g,[s.h,s.d,s.c,s.f]),i["\u0275mpd"](2048,s.i,null,[s.g]),i["\u0275mpd"](131584,s.j,s.j,[]),i["\u0275mpd"](512,s.o,s.o,[s.a,s.i,s.j]),i["\u0275mpd"](1024,xu.k,xu.e,[]),i["\u0275mpd"](512,xu.l,xu.l,[xu.k]),i["\u0275mpd"](256,xu.j,{maxAge:10},[]),i["\u0275mpd"](1024,xu.i,xu.g,[xu.j]),i["\u0275mpd"](512,xu.a,xu.a,[xu.h,s.a,s.i,xu.l,s.j,s.d,xu.i]),i["\u0275mpd"](1024,s.l,xu.f,[xu.a]),i["\u0275mpd"](512,s.m,s.m,[s.l,s.a,s.g]),i["\u0275mpd"](512,Du.c,Du.a,[]),i["\u0275mpd"](512,Du.d,Du.d,[s.m,le.m,Du.c]),i["\u0275mpd"](512,xu.b,xu.b,[]),i["\u0275mpd"](1024,Lu.h,Lu.f,[]),i["\u0275mpd"](512,Lu.j,Lu.j,[Lu.h]),i["\u0275mpd"](512,Lu.c,Lu.c,[Lu.j]),i["\u0275mpd"](131584,Lu.k,Lu.k,[Lu.c,s.m]),i["\u0275mpd"](512,Lu.a,Lu.a,[s.j]),i["\u0275mpd"](512,Ul,Ul,[]),i["\u0275mpd"](256,$l,{behaviour:{autoHide:!1},position:{horizontal:{position:"right",distance:12},vertical:{position:"top",distance:12,gap:10}}},[]),i["\u0275mpd"](1024,Gl,Yl,[$l]),i["\u0275mpd"](512,Fl,Fl,[Ul,Gl]),i["\u0275mpd"](512,Uu,Uu,[]),i["\u0275mpd"](512,Vu,Vu,[s.m,i.NgZone,Uu]),i["\u0275mpd"](512,Fu.LogService,Fu.LogService,[]),i["\u0275mpd"](512,Ku,Ku,[s.m,i.NgZone,Uu,Fu.LogService]),i["\u0275mpd"](512,Bu,Bu,[Lu.a,Fl,Vu,Ku,Fu.LogService,s.m]),i["\u0275mpd"](512,Hu,Hu,[Lu.a,Vu,Fu.LogService]),i["\u0275mpd"](512,Wu,Wu,[]),i["\u0275mpd"](512,ze,ze,[]),i["\u0275mpd"](512,qu,qu,[s.m,i.NgZone,Uu,Fu.LogService]),i["\u0275mpd"](512,zu.a,zu.a,[Lu.a,Wu,s.m,ze,qu,Fu.LogService,le.m]),i["\u0275mpd"](512,$u,$u,[Lu.a,le.m,s.m]),i["\u0275mpd"](512,Gu,Gu,[Lu.a,le.m,s.m]),i["\u0275mpd"](512,Yu,Yu,[Lu.a,Wu,s.m]),i["\u0275mpd"](512,Qu,Qu,[Lu.a,le.m,qu,s.m,Wu,ze]),i["\u0275mpd"](1024,Lu.g,Lu.e,[Bu,Hu,zu.a,$u,Gu,Yu,Qu]),i["\u0275mpd"](512,Lu.i,Lu.i,[Lu.c,Lu.k,Lu.g,[2,s.n]]),i["\u0275mpd"](512,l,l,[]),i["\u0275mpd"](256,hu,{confirmButtonType:"danger"},[])])});r.a.production&&Object(i.enableProdMode)(),P.j().bootstrapModuleFactory(Ju)},y4xv:function(e,t,n){"use strict";var o=n("9omE");t.pluck=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n=e.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(t){return o.map(function(e,t){return function(n){for(var o=n,i=0;i<t;i++){var r=o[e[i]];if("undefined"==typeof r)return;o=r}return o}}(e,n))(t)}}},ygD2:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("mmVS"),r=n("YOd+");t.ignoreElements=function(){return function(e){return e.lift(new l)}};var l=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new s(e))},e}(),s=function(e){function t(){e.apply(this,arguments)}return o(t,e),t.prototype._next=function(e){r.noop()},t}(i.Subscriber)},yqBA:function(e,t,n){"use strict";t.f=function(e,t){void 0===e&&(e=c);var n=Object.assign(new l.UserConfiguration,e);switch(t.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(n,t.payload),n.keymaps=n.keymaps.slice(),n.keymaps.sort(function(e,t){return e.name.localeCompare(t.name)}),n.macros=n.macros.slice(),n.macros.sort(function(e,t){return e.name.localeCompare(t.name)}),n;case s.a.ADD:case s.a.DUPLICATE:var o=new l.Keymap(t.payload);o.abbreviation=function(e,t){for(var n="23456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),o=0;e.some(function(e){return e.abbreviation===t});)if(t=t.substring(0,t.length-1)+n[o],++o>n.length){o=0;var i=n.indexOf(t.substr(0,1)),r=n.indexOf(t.substr(1,1));++r>n.length&&(r=0,i++),t=n[i]+n[r]+n[o]}return t}(e.keymaps,o.abbreviation),o.name=d(e.keymaps,o.name),o.isDefault=0===e.keymaps.length,n.keymaps=f(e.keymaps,o);break;case s.a.EDIT_NAME:if(!Object(u.d)(t.payload.name))break;var i=t.payload.name.trim(),r=null;if(e.keymaps.some(function(e){return e.abbreviation===t.payload.abbr&&(r=e),e.name===i&&e.abbreviation!==t.payload.abbr}))break;var m=Object.assign(new l.Keymap,r,{name:i});n.keymaps=f(e.keymaps,m,function(e){return e.abbreviation!==m.abbreviation});break;case s.a.EDIT_ABBR:var g=t.payload.newAbbr.toUpperCase(),v=e.keymaps.some(function(e){return e.name!==t.payload.name&&e.abbreviation===g});n.keymaps=e.keymaps.map(function(e){return e=Object.assign(new l.Keymap,e),v||e.abbreviation!==t.payload.abbr?e=e.renameKeymap(t.payload.abbr,t.payload.newAbbr):e.abbreviation=g,e});break;case s.a.SET_DEFAULT:n.keymaps=e.keymaps.map(function(e){return(e.abbreviation===t.payload||e.isDefault)&&((e=Object.assign(new l.Keymap,e)).isDefault=e.abbreviation===t.payload),e});break;case s.a.REMOVE:var b,k=e.keymaps.filter(function(e){return e.abbreviation!==t.payload||(b=e.isDefault,!1)});b&&k.length>0&&(k[0]=Object.assign(new l.Keymap,k[0],{isDefault:!0})),n.keymaps=k.map(function(e){return(e=Object.assign(new l.Keymap,e)).layers=h(e.layers,"keymapAbbreviation",t.payload),e});break;case s.a.SAVE_KEY:var _=t.payload.key,w=t.payload.layer,A=t.payload.module,T=t.payload.keyAction,C=T.action,x=t.payload.keymap,O=C instanceof l.SwitchLayerAction;n.keymaps=e.keymaps.map(function(e){return(T.remapOnAllKeymap||e.abbreviation===x.abbreviation)&&((e=new l.Keymap(e)).layers=e.layers.map(function(e,t){if(T.remapOnAllLayer||t===w||O){e=new l.Layer(e);var n=l.KeyActionHelper.createKeyAction(C);if(O)if(0===t||t-1===C.layer)y(e,A,_,n);else{var o=e.modules[A].keyActions[_];o&&o instanceof l.SwitchLayerAction&&y(e,A,_,null)}else y(e,A,_,n)}return e})),e});break;case s.a.CHECK_MACRO:n.keymaps=e.keymaps.map(function(e){return(e=Object.assign(new l.Keymap,e)).layers=h(e.layers,"_macroId",t.payload),e});break;case s.b.ADD:(S=new l.Macro).id=p(e.macros),S.name=d(e.macros,"New macro"),S.isLooped=!1,S.isPrivate=!0,S.macroActions=[],n.macros=f(e.macros,S);break;case s.b.DUPLICATE:var S;(S=new l.Macro(t.payload)).name=d(e.macros,S.name),S.id=p(e.macros),n.macros=f(e.macros,S);break;case s.b.EDIT_NAME:if(!Object(u.d)(t.payload.name))break;var M=t.payload.name.trim(),E=null;if(e.macros.some(function(e){return e.id===t.payload.id&&(E=e),e.id!==t.payload.id&&e.name===M}))break;var P=Object.assign(new l.Macro,E,{name:M});n.macros=f(e.macros,P,function(e){return e.id!==P.id});break;case s.b.REMOVE:var I=t.payload;n.macros=e.macros.filter(function(e){return e.id!==I});for(var R=0;R<n.keymaps.length;R++){for(var D=n.keymaps[R],N=!1,j=0,L=D.layers;j<L.length;j++)for(var U=0,V=L[j].modules;U<V.length;U++)for(var F=V[U],K=0;K<F.keyActions.length;K++){var B=F.keyActions[K];B instanceof l.PlayMacroAction&&B.macroId===I&&(N=!0,F.keyActions[K]=new l.NoneAction)}N&&(n.keymaps[R]=new l.Keymap(D))}break;case s.b.ADD_ACTION:n.macros=e.macros.map(function(e){return e.id===t.payload.id&&(e=new l.Macro(e)).macroActions.push(t.payload.action),e});break;case s.b.SAVE_ACTION:n.macros=e.macros.map(function(e){return e.id===t.payload.id&&((e=new l.Macro(e)).macroActions[t.payload.index]=t.payload.action),e});break;case s.b.DELETE_ACTION:n.macros=e.macros.map(function(e){return e.id===t.payload.id&&(e=new l.Macro(e)).macroActions.splice(t.payload.index,1),e});break;case s.b.REORDER_ACTION:n.macros=e.macros.map(function(e){if(e.id===t.payload.id){var n=t.payload.newIndex;n>t.payload.oldIndex&&--n,(e=new l.Macro(e)).macroActions.splice(n,0,e.macroActions.splice(t.payload.oldIndex,1)[0])}return e});break;case a.a.RENAME_USER_CONFIGURATION:Object(u.d)(t.payload)&&(n.deviceName=t.payload.trim());break;case a.a.SET_USER_CONFIGURATION_VALUE:n[t.payload.propertyName]=t.payload.value;break;case s.a.EDIT_DESCRIPTION:var H=t.payload;n.keymaps=e.keymaps.map(function(e){return e.abbreviation===H.abbr&&(e.description=H.description),e})}return n},t.e=function(){return function(e){return e.map(function(e){return e.userConfiguration})}},t.b=function(){return function(e){return e.map(function(e){return e.userConfiguration.keymaps})}},t.a=function(e){return void 0===e?function(e){return function(e){return e.map(function(e){return e.userConfiguration.keymaps})}(e).map(function(e){return e.find(function(e){return e.isDefault})})}:function(t){return function(e){return e.map(function(e){return e.userConfiguration.keymaps})}(t).map(function(t){return t.find(function(t){return t.abbreviation===e})})}},t.d=function(){return function(e){return e.map(function(e){return e.userConfiguration.macros})}},t.c=function(e){return isNaN(e)?function(){return o.Observable.of(void 0)}:function(t){return function(e){return e.map(function(e){return e.userConfiguration.macros})}(t).map(function(t){return t.find(function(t){return t.id===e})})}};var o=n("rCTf"),i=n("1APj"),r=(n.n(i),n("+pb+")),l=(n.n(r),n("gI3A")),s=(n.n(l),n("WP8/")),a=n("at4H"),u=n("Lt3n"),c=new l.UserConfiguration;function d(e,t){var n=1,o=/ \(\d+\)$/g,i=t.replace(o,"");return e.forEach(function(e){e.name.replace(o,"")===i&&n++}),i+" ("+n+")"}function p(e){var t=0;return e.forEach(function(e){e.id>t&&(t=e.id)}),t+1}function f(e,t,n){void 0===n&&(n=function(){return!0});for(var o=[],i=!1,r=0,l=e;r<l.length;r++){var s=l[r];!i&&s.name.localeCompare(t.name)>0&&(o.push(t),i=!0),n(s)&&o.push(s)}return i||o.push(t),o}function h(e,t,n){for(var o=[],i=0;i<e.length;++i)for(var r=e[i].modules,s=0;s<r.length;++s)for(var a=r[s].keyActions,u=0;u<a.length;++u){var c=a[u];c&&c.hasOwnProperty(t)&&c[t]===n&&o.push({layerIdx:i,moduleIdx:s,keyActionIdx:u})}if(0===o.length)return e;for(var d=e.slice(),p=0,f=o;p<f.length;p++){var h=f[p];d[h.layerIdx]===e[h.layerIdx]&&(d[h.layerIdx]=Object.assign(new l.Layer,d[h.layerIdx]),d[h.layerIdx].modules=d[h.layerIdx].modules.slice());var y=d[h.layerIdx].modules;y[h.moduleIdx]===e[h.layerIdx].modules[h.moduleIdx]&&(y[h.moduleIdx]=Object.assign(new l.Module,y[h.moduleIdx]),y[h.moduleIdx].keyActions=y[h.moduleIdx].keyActions.slice()),y[h.moduleIdx].keyActions[h.keyActionIdx]=void 0}return d}function y(e,t,n,o){var i=Object.assign(new l.Module,e.modules[t]);e.modules=e.modules.slice(),e.modules[t]=i,i.keyActions=i.keyActions.slice(),i.keyActions[n]=o}},yrou:function(e,t,n){"use strict";t.empty={closed:!0,next:function(e){},error:function(e){throw e},complete:function(){}}},ys6Q:function(e,t){var n="function"==typeof setImmediate;e.exports=n?function(e){setImmediate(e)}:function(e){setTimeout(e,0)}},"z+Yt":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("ov8r");t.Layer=function(){function e(e){e&&(this.modules=e.modules.map(function(e){return new o.Module(e)}))}return e.prototype.fromJsonObject=function(e,t){return this.modules=e.modules.map(function(e){return(new o.Module).fromJsonObject(e,t)}),this},e.prototype.fromBinary=function(e,t){return this.modules=e.readArray(function(e){return(new o.Module).fromBinary(e,t)}),this},e.prototype.toJsonObject=function(e){return{modules:this.modules.map(function(t){return t.toJsonObject(e)})}},e.prototype.toBinary=function(e,t){e.writeArray(this.modules,function(e,n){n.toBinary(e,t)})},e.prototype.toString=function(){return"<Layer>"},e.prototype.renameKeymap=function(t,n){var o,i=this,r=!1;if(this.modules.forEach(function(e,l){var s=e.renameKeymap(t,n);s!==e&&(r||(o=i.modules.slice(),r=!0),o[l]=s)}),r){var l=Object.assign(new e,this);return l.modules=o,l}return this},e}()},zF5W:function(e,t,n){var o,i;void 0===(i="function"==typeof(o=function(){"use strict";var e="11.1.0";function t(e){return null!==e&&void 0!==e}function n(e){e.preventDefault()}function o(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function i(e,t,n){n>0&&(a(e,t),setTimeout(function(){u(e,t)},n))}function r(e){return Math.max(Math.min(e,100),0)}function l(e){return Array.isArray(e)?e:[e]}function s(e){var t=(e=String(e)).split(".");return t.length>1?t[1].length:0}function a(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function u(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function c(e){var t=void 0!==window.pageXOffset,n="CSS1Compat"===(e.compatMode||"");return{x:t?window.pageXOffset:n?e.documentElement.scrollLeft:e.body.scrollLeft,y:t?window.pageYOffset:n?e.documentElement.scrollTop:e.body.scrollTop}}function d(e,t){return 100/(t-e)}function p(e,t){return 100*t/(e[1]-e[0])}function f(e,t){for(var n=1;e>=t[n];)n+=1;return n}function h(t,n,i){var r;if("number"==typeof n&&(n=[n]),!Array.isArray(n))throw new Error("noUiSlider ("+e+"): 'range' contains invalid value.");if(!o(r="min"===t?0:"max"===t?100:parseFloat(t))||!o(n[0]))throw new Error("noUiSlider ("+e+"): 'range' value isn't numeric.");i.xPct.push(r),i.xVal.push(n[0]),r?i.xSteps.push(!isNaN(n[1])&&n[1]):isNaN(n[1])||(i.xSteps[0]=n[1]),i.xHighestCompleteStep.push(0)}function y(e,t,n){if(!t)return!0;n.xSteps[e]=p([n.xVal[e],n.xVal[e+1]],t)/d(n.xPct[e],n.xPct[e+1]);var o=Math.ceil(Number(((n.xVal[e+1]-n.xVal[e])/n.xNumSteps[e]).toFixed(3))-1);n.xHighestCompleteStep[e]=n.xVal[e]+n.xNumSteps[e]*o}function m(e,t,n){var o;this.xPct=[],this.xVal=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.xHighestCompleteStep=[],this.snap=t;var i=[];for(o in e)e.hasOwnProperty(o)&&i.push([e[o],o]);for(i.sort(i.length&&"object"==typeof i[0][0]?function(e,t){return e[0][0]-t[0][0]}:function(e,t){return e[0]-t[0]}),o=0;o<i.length;o++)h(i[o][1],i[o][0],this);for(this.xNumSteps=this.xSteps.slice(0),o=0;o<this.xNumSteps.length;o++)y(o,this.xNumSteps[o],this)}m.prototype.getMargin=function(t){var n=this.xNumSteps[0];if(n&&t/n%1!=0)throw new Error("noUiSlider ("+e+"): 'limit', 'margin' and 'padding' must be divisible by step.");return 2===this.xPct.length&&p(this.xVal,t)},m.prototype.toStepping=function(e){return function(e,t,n){if(n>=e.slice(-1)[0])return 100;var o=f(n,e),i=t[o-1],r=t[o];return i+function(e,t){return p(e,e[0]<0?t+Math.abs(e[0]):t-e[0])}([e[o-1],e[o]],n)/d(i,r)}(this.xVal,this.xPct,e)},m.prototype.fromStepping=function(e){return function(e,t,n){if(n>=100)return e.slice(-1)[0];var o=f(n,t),i=t[o-1];return function(e,t){return t*(e[1]-e[0])/100+e[0]}([e[o-1],e[o]],(n-i)*d(i,t[o]))}(this.xVal,this.xPct,e)},m.prototype.getStep=function(e){return function(e,t,n,o){if(100===o)return o;var i=f(o,e),r=e[i-1],l=e[i];return n?o-r>(l-r)/2?l:r:t[i-1]?e[i-1]+function(e,t){return Math.round(e/t)*t}(o-e[i-1],t[i-1]):o}(this.xPct,this.xSteps,this.snap,e)},m.prototype.getNearbySteps=function(e){var t=f(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t-0],step:this.xNumSteps[t-0],highestStep:this.xHighestCompleteStep[t-0]}}},m.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(s);return Math.max.apply(null,e)},m.prototype.convert=function(e){return this.getStep(this.toStepping(e))};var g={to:function(e){return void 0!==e&&e.toFixed(2)},from:Number};function v(t){if(function(e){return"object"==typeof e&&"function"==typeof e.to&&"function"==typeof e.from}(t))return!0;throw new Error("noUiSlider ("+e+"): 'format' requires 'to' and 'from' methods.")}function b(t,n){if(!o(n))throw new Error("noUiSlider ("+e+"): 'step' is not numeric.");t.singleStep=n}function k(t,n){if("object"!=typeof n||Array.isArray(n))throw new Error("noUiSlider ("+e+"): 'range' is not an object.");if(void 0===n.min||void 0===n.max)throw new Error("noUiSlider ("+e+"): Missing 'min' or 'max' in 'range'.");if(n.min===n.max)throw new Error("noUiSlider ("+e+"): 'range' 'min' and 'max' cannot be equal.");t.spectrum=new m(n,t.snap,t.singleStep)}function _(t,n){if(n=l(n),!Array.isArray(n)||!n.length)throw new Error("noUiSlider ("+e+"): 'start' option is incorrect.");t.handles=n.length,t.start=n}function w(t,n){if(t.snap=n,"boolean"!=typeof n)throw new Error("noUiSlider ("+e+"): 'snap' option must be a boolean.")}function A(t,n){if(t.animate=n,"boolean"!=typeof n)throw new Error("noUiSlider ("+e+"): 'animate' option must be a boolean.")}function T(t,n){if(t.animationDuration=n,"number"!=typeof n)throw new Error("noUiSlider ("+e+"): 'animationDuration' option must be a number.")}function C(t,n){var o,i=[!1];if("lower"===n?n=[!0,!1]:"upper"===n&&(n=[!1,!0]),!0===n||!1===n){for(o=1;o<t.handles;o++)i.push(n);i.push(!1)}else{if(!Array.isArray(n)||!n.length||n.length!==t.handles+1)throw new Error("noUiSlider ("+e+"): 'connect' option doesn't match handle count.");i=n}t.connect=i}function x(t,n){switch(n){case"horizontal":t.ort=0;break;case"vertical":t.ort=1;break;default:throw new Error("noUiSlider ("+e+"): 'orientation' option is invalid.")}}function O(t,n){if(!o(n))throw new Error("noUiSlider ("+e+"): 'margin' option must be numeric.");if(0!==n&&(t.margin=t.spectrum.getMargin(n),!t.margin))throw new Error("noUiSlider ("+e+"): 'margin' option is only supported on linear sliders.")}function S(t,n){if(!o(n))throw new Error("noUiSlider ("+e+"): 'limit' option must be numeric.");if(t.limit=t.spectrum.getMargin(n),!t.limit||t.handles<2)throw new Error("noUiSlider ("+e+"): 'limit' option is only supported on linear sliders with 2 or more handles.")}function M(t,n){if(!o(n)&&!Array.isArray(n))throw new Error("noUiSlider ("+e+"): 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(n)&&2!==n.length&&!o(n[0])&&!o(n[1]))throw new Error("noUiSlider ("+e+"): 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==n){if(Array.isArray(n)||(n=[n,n]),t.padding=[t.spectrum.getMargin(n[0]),t.spectrum.getMargin(n[1])],!1===t.padding[0]||!1===t.padding[1])throw new Error("noUiSlider ("+e+"): 'padding' option is only supported on linear sliders.");if(t.padding[0]<0||t.padding[1]<0)throw new Error("noUiSlider ("+e+"): 'padding' option must be a positive number(s).");if(t.padding[0]+t.padding[1]>=100)throw new Error("noUiSlider ("+e+"): 'padding' option must not exceed 100% of the range.")}}function E(t,n){switch(n){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider ("+e+"): 'direction' option was not recognized.")}}function P(t,n){if("string"!=typeof n)throw new Error("noUiSlider ("+e+"): 'behaviour' must be a string containing options.");var o=n.indexOf("tap")>=0,i=n.indexOf("drag")>=0,r=n.indexOf("fixed")>=0,l=n.indexOf("snap")>=0,s=n.indexOf("hover")>=0;if(r){if(2!==t.handles)throw new Error("noUiSlider ("+e+"): 'fixed' behaviour must be used with 2 handles");O(t,t.start[1]-t.start[0])}t.events={tap:o||l,drag:i,fixed:r,snap:l,hover:s}}function I(t,n){if(!1!==n)if(!0===n){t.tooltips=[];for(var o=0;o<t.handles;o++)t.tooltips.push(!0)}else{if(t.tooltips=l(n),t.tooltips.length!==t.handles)throw new Error("noUiSlider ("+e+"): must pass a formatter for all handles.");t.tooltips.forEach(function(t){if("boolean"!=typeof t&&("object"!=typeof t||"function"!=typeof t.to))throw new Error("noUiSlider ("+e+"): 'tooltips' must be passed a formatter or 'false'.")})}}function R(e,t){e.ariaFormat=t,v(t)}function D(e,t){e.format=t,v(t)}function N(t,n){if("string"!=typeof n&&!1!==n)throw new Error("noUiSlider ("+e+"): 'cssPrefix' must be a string or `false`.");t.cssPrefix=n}function j(t,n){if("object"!=typeof n)throw new Error("noUiSlider ("+e+"): 'cssClasses' must be an object.");if("string"==typeof t.cssPrefix)for(var o in t.cssClasses={},n)n.hasOwnProperty(o)&&(t.cssClasses[o]=t.cssPrefix+n[o]);else t.cssClasses=n}function L(n){var o={margin:0,limit:0,padding:0,animate:!0,animationDuration:300,ariaFormat:g,format:g},i={step:{r:!1,t:b},start:{r:!0,t:_},connect:{r:!0,t:C},direction:{r:!0,t:E},snap:{r:!1,t:w},animate:{r:!1,t:A},animationDuration:{r:!1,t:T},range:{r:!0,t:k},orientation:{r:!1,t:x},margin:{r:!1,t:O},limit:{r:!1,t:S},padding:{r:!1,t:M},behaviour:{r:!0,t:P},ariaFormat:{r:!1,t:R},format:{r:!1,t:D},tooltips:{r:!1,t:I},cssPrefix:{r:!0,t:N},cssClasses:{r:!0,t:j}},r={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",cssPrefix:"noUi-",cssClasses:{target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"}};n.format&&!n.ariaFormat&&(n.ariaFormat=n.format),Object.keys(i).forEach(function(l){if(!t(n[l])&&void 0===r[l]){if(i[l].r)throw new Error("noUiSlider ("+e+"): '"+l+"' is required.");return!0}i[l].t(o,t(n[l])?n[l]:r[l])}),o.pips=n.pips;var l=document.createElement("div");return o.transformRule=void 0!==l.style.transform?"transform":void 0!==l.style.msTransform?"msTransform":"webkitTransform",o.style=[["left","top"],["right","bottom"]][o.dir][o.ort],o}return{version:e,create:function(t,o){if(!t||!t.nodeName)throw new Error("noUiSlider ("+e+"): create requires a single element, got: "+t);if(t.noUiSlider)throw new Error("noUiSlider ("+e+"): Slider was already initialized.");var s=function(t,o,s){var d,p,f,h,y,m,g,v,b=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},k=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}(),_=t,w=[],A=[],T=0,C=o.spectrum,x=[],O={},S=t.ownerDocument,M=S.documentElement,E=S.body,P="rtl"===S.dir||1===o.ort?0:100;function I(e,t){var n=S.createElement("div");return t&&a(n,t),e.appendChild(n),n}function R(e,t){var n=I(e,o.cssClasses.origin),i=I(n,o.cssClasses.handle);return i.setAttribute("data-handle",t),i.setAttribute("tabindex","0"),i.setAttribute("role","slider"),i.setAttribute("aria-orientation",o.ort?"vertical":"horizontal"),0===t?a(i,o.cssClasses.handleLower):t===o.handles-1&&a(i,o.cssClasses.handleUpper),n}function D(e,t){return!!t&&I(e,o.cssClasses.connect)}function N(){var e;y&&((e=y).parentElement.removeChild(e),y=null)}function j(t){N();var n=t.mode,i=t.density||1,r=t.filter||!1,l=function(t,n,o){if("range"===t||"steps"===t)return C.xVal;if("count"===t){if(n<2)throw new Error("noUiSlider ("+e+"): 'values' (>= 2) required for mode 'count'.");var i=n-1,r=100/i;for(n=[];i--;)n[i]=i*r;n.push(100),t="positions"}return"positions"===t?n.map(function(e){return C.fromStepping(o?C.getStep(e):e)}):"values"===t?o?n.map(function(e){return C.fromStepping(C.getStep(C.toStepping(e)))}):n:void 0}(n,t.values||!1,t.stepped||!1),s=function(e,t,n){var o,i={},r=C.xVal[0],l=C.xVal[C.xVal.length-1],s=!1,a=!1,u=0;return o=n.slice().sort(function(e,t){return e-t}),(n=o.filter(function(e){return!this[e]&&(this[e]=!0)},{}))[0]!==r&&(n.unshift(r),s=!0),n[n.length-1]!==l&&(n.push(l),a=!0),n.forEach(function(o,r){var l,c,d,p,f,h,y,m,g=o,v=n[r+1];if("steps"===t&&(l=C.xNumSteps[r]),l||(l=v-g),!1!==g&&void 0!==v)for(l=Math.max(l,1e-7),c=g;c<=v;c=(c+l).toFixed(7)/1){for(m=(f=(p=C.toStepping(c))-u)/(y=Math.round(f/e)),d=1;d<=y;d+=1)i[(u+d*m).toFixed(5)]=["x",0];h=n.indexOf(c)>-1?1:"steps"===t?2:0,!r&&s&&(h=0),c===v&&a||(i[p.toFixed(5)]=[c,h]),u=p}}),i}(i,n,l),u=t.format||{to:Math.round};return y=_.appendChild(function(e,t,n){var i=S.createElement("div"),r=[o.cssClasses.valueNormal,o.cssClasses.valueLarge,o.cssClasses.valueSub],l=[o.cssClasses.markerNormal,o.cssClasses.markerLarge,o.cssClasses.markerSub],s=[o.cssClasses.valueHorizontal,o.cssClasses.valueVertical],u=[o.cssClasses.markerHorizontal,o.cssClasses.markerVertical];function c(e,t){var n=t===o.cssClasses.value;return t+" "+(n?s:u)[o.ort]+" "+(n?r:l)[e]}return a(i,o.cssClasses.pips),a(i,0===o.ort?o.cssClasses.pipsHorizontal:o.cssClasses.pipsVertical),Object.keys(e).forEach(function(r){!function(e,r){r[1]=r[1]&&t?t(r[0],r[1]):r[1];var l=I(i,!1);l.className=c(r[1],o.cssClasses.marker),l.style[o.style]=e+"%",r[1]&&((l=I(i,!1)).className=c(r[1],o.cssClasses.value),l.setAttribute("data-value",r[0]),l.style[o.style]=e+"%",l.innerText=n.to(r[0]))}(r,e[r])}),i}(s,r,u))}function U(){var e=d.getBoundingClientRect(),t="offset"+["Width","Height"][o.ort];return 0===o.ort?e.width||d[t]:e.height||d[t]}function V(e,t,n,i){var r=function(r){return!!(r=function(e,t,n){var o,i,r=0===e.type.indexOf("touch"),l=0===e.type.indexOf("mouse"),s=0===e.type.indexOf("pointer");if(0===e.type.indexOf("MSPointer")&&(s=!0),r){var a=function(e){return e.target===n||n.contains(e.target)};if("touchstart"===e.type){var u=Array.prototype.filter.call(e.touches,a);if(u.length>1)return!1;o=u[0].pageX,i=u[0].pageY}else{var d=Array.prototype.find.call(e.changedTouches,a);if(!d)return!1;o=d.pageX,i=d.pageY}}return t=t||c(S),(l||s)&&(o=e.clientX+t.x,i=e.clientY+t.y),e.pageOffset=t,e.points=[o,i],e.cursor=l||s,e}(r,i.pageOffset,i.target||t))&&!(_.hasAttribute("disabled")&&!i.doNotReject)&&(s=o.cssClasses.tap,!(((l=_).classList?l.classList.contains(s):new RegExp("\\b"+s+"\\b").test(l.className))&&!i.doNotReject)&&!(e===b.start&&void 0!==r.buttons&&r.buttons>1)&&(!i.hover||!r.buttons)&&(k||r.preventDefault(),r.calcPoint=r.points[o.ort],void n(r,i)));var l,s},l=[];return e.split(" ").forEach(function(e){t.addEventListener(e,r,!!k&&{passive:!0}),l.push([e,r])}),l}function F(e){var t,n,i,l,s,a,u=100*(e-(n=o.ort,i=(t=d).getBoundingClientRect(),s=(l=t.ownerDocument).documentElement,a=c(l),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(a.x=0),n?i.top+a.y-s.clientTop:i.left+a.x-s.clientLeft))/U();return u=r(u),o.dir?100-u:u}function K(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&H(e,t)}function B(e,t){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===e.buttons&&0!==t.buttonsProperty)return H(e,t);var n=(o.dir?-1:1)*(e.calcPoint-t.startCalcPoint);Q(n>0,100*n/t.baseSize,t.locations,t.handleNumbers)}function H(e,t){t.handle&&(u(t.handle,o.cssClasses.active),T-=1),t.listeners.forEach(function(e){M.removeEventListener(e[0],e[1])}),0===T&&(u(_,o.cssClasses.drag),Z(),e.cursor&&(E.style.cursor="",E.removeEventListener("selectstart",n))),t.handleNumbers.forEach(function(e){z("change",e),z("set",e),z("end",e)})}function W(e,t){var i;if(1===t.handleNumbers.length){var r=p[t.handleNumbers[0]];if(r.hasAttribute("disabled"))return!1;T+=1,a(i=r.children[0],o.cssClasses.active)}e.stopPropagation();var l=[],s=V(b.move,M,B,{target:e.target,handle:i,listeners:l,startCalcPoint:e.calcPoint,baseSize:U(),pageOffset:e.pageOffset,handleNumbers:t.handleNumbers,buttonsProperty:e.buttons,locations:w.slice()}),u=V(b.end,M,H,{target:e.target,handle:i,listeners:l,doNotReject:!0,handleNumbers:t.handleNumbers}),c=V("mouseout",M,K,{target:e.target,handle:i,listeners:l,doNotReject:!0,handleNumbers:t.handleNumbers});l.push.apply(l,s.concat(u,c)),e.cursor&&(E.style.cursor=getComputedStyle(e.target).cursor,p.length>1&&a(_,o.cssClasses.drag),E.addEventListener("selectstart",n,!1)),t.handleNumbers.forEach(function(e){z("start",e)})}function q(e,t){O[e]=O[e]||[],O[e].push(t),"update"===e.split(".")[0]&&p.forEach(function(e,t){z("update",t)})}function z(e,t,n){Object.keys(O).forEach(function(i){var r=i.split(".")[0];e===r&&O[i].forEach(function(e){e.call(h,x.map(o.format.to),t,x.slice(),n||!1,w.slice())})})}function $(e){return e+"%"}function G(e,t,n,i,l,s){return p.length>1&&(i&&t>0&&(n=Math.max(n,e[t-1]+o.margin)),l&&t<p.length-1&&(n=Math.min(n,e[t+1]-o.margin))),p.length>1&&o.limit&&(i&&t>0&&(n=Math.min(n,e[t-1]+o.limit)),l&&t<p.length-1&&(n=Math.max(n,e[t+1]-o.limit))),o.padding&&(0===t&&(n=Math.max(n,o.padding[0])),t===p.length-1&&(n=Math.min(n,100-o.padding[1]))),!((n=r(n=C.getStep(n)))===e[t]&&!s)&&n}function Y(e,t){var n=o.ort;return(n?t:e)+", "+(n?e:t)}function Q(e,t,n,o){var i=n.slice(),r=[!e,e],l=[e,!e];o=o.slice(),e&&o.reverse(),o.length>1?o.forEach(function(e,n){var o=G(i,e,i[e]+t,r[n],l[n],!1);!1===o?t=0:(t=o-i[e],i[e]=o)}):r=l=[!0];var s=!1;o.forEach(function(e,o){s=X(e,n[e]+t,r[o],l[o])||s}),s&&o.forEach(function(e){z("update",e),z("slide",e)})}function J(e,t){return o.dir?100-e-t:e}function Z(){A.forEach(function(e){p[e].style.zIndex=3+(p.length+(w[e]>50?-1:1)*e)})}function X(e,t,n,i){return!1!==(t=G(w,e,t,n,i,!1))&&(function(e,t){w[e]=t,x[e]=C.fromStepping(t);var n="translate("+Y($(J(t,0)-P),"0")+")";p[e].style[o.transformRule]=n,ee(e),ee(e+1)}(e,t),!0)}function ee(e){if(f[e]){var t=0,n=100;0!==e&&(t=w[e-1]),e!==f.length-1&&(n=w[e]);var i=n-t,r="translate("+Y($(J(t,i)),"0")+")",l="scale("+Y(i/100,"1")+")";f[e].style[o.transformRule]=r+" "+l}}function te(e,t){var n=l(e);t=void 0===t||!!t,o.animate&&!(void 0===w[0])&&i(_,o.cssClasses.tap,o.animationDuration),A.forEach(function(e){X(e,function(e,t){return null===e||!1===e||void 0===e?w[t]:("number"==typeof e&&(e=String(e)),e=o.format.from(e),!1===(e=C.toStepping(e))||isNaN(e)?w[t]:e)}(n[e],e),!0,!1)}),A.forEach(function(e){X(e,w[e],!0,!0)}),Z(),A.forEach(function(e){z("update",e),null!==n[e]&&t&&z("set",e)})}function ne(){var e=x.map(o.format.to);return 1===e.length?e[0]:e}return a(m=_,o.cssClasses.target),a(m,0===o.dir?o.cssClasses.ltr:o.cssClasses.rtl),a(m,0===o.ort?o.cssClasses.horizontal:o.cssClasses.vertical),d=I(m,o.cssClasses.base),function(e,t){var n=I(t,o.cssClasses.connects);p=[],(f=[]).push(D(n,e[0]));for(var i=0;i<o.handles;i++)p.push(R(t,i)),A[i]=i,f.push(D(n,e[i+1]))}(o.connect,d),(g=o.events).fixed||p.forEach(function(e,t){V(b.start,e.children[0],W,{handleNumbers:[t]})}),g.tap&&V(b.start,d,function(e){e.stopPropagation();var t=F(e.calcPoint),n=function(e){var t=100,n=!1;return p.forEach(function(o,i){if(!o.hasAttribute("disabled")){var r=Math.abs(w[i]-e);(r<t||100===r&&100===t)&&(n=i,t=r)}}),n}(t);if(!1===n)return!1;o.events.snap||i(_,o.cssClasses.tap,o.animationDuration),X(n,t,!0,!0),Z(),z("slide",n,!0),z("update",n,!0),z("change",n,!0),z("set",n,!0),o.events.snap&&W(e,{handleNumbers:[n]})},{}),g.hover&&V(b.move,d,function(e){var t=F(e.calcPoint),n=C.getStep(t),o=C.fromStepping(n);Object.keys(O).forEach(function(e){"hover"===e.split(".")[0]&&O[e].forEach(function(e){e.call(h,o)})})},{hover:!0}),g.drag&&f.forEach(function(e,t){if(!1!==e&&0!==t&&t!==f.length-1){var n=p[t-1],i=p[t],r=[e];a(e,o.cssClasses.draggable),g.fixed&&(r.push(n.children[0]),r.push(i.children[0])),r.forEach(function(e){V(b.start,e,W,{handles:[n,i],handleNumbers:[t-1,t]})})}}),te(o.start),h={destroy:function(){for(var e in o.cssClasses)o.cssClasses.hasOwnProperty(e)&&u(_,o.cssClasses[e]);for(;_.firstChild;)_.removeChild(_.firstChild);delete _.noUiSlider},steps:function(){return w.map(function(e,t){var n=C.getNearbySteps(e),o=x[t],i=n.thisStep.step,r=null;!1!==i&&o+i>n.stepAfter.startValue&&(i=n.stepAfter.startValue-o),r=o>n.thisStep.startValue?n.thisStep.step:!1!==n.stepBefore.step&&o-n.stepBefore.highestStep,100===e?i=null:0===e&&(r=null);var l=C.countStepDecimals();return null!==i&&!1!==i&&(i=Number(i.toFixed(l))),null!==r&&!1!==r&&(r=Number(r.toFixed(l))),[r,i]})},on:q,off:function(e){var t=e&&e.split(".")[0],n=t&&e.substring(t.length);Object.keys(O).forEach(function(e){var o=e.split(".")[0],i=e.substring(o.length);t&&t!==o||n&&n!==i||delete O[e]})},get:ne,set:te,reset:function(e){te(o.start,e)},__moveHandles:function(e,t,n){Q(e,t,w,n)},options:s,updateOptions:function(e,t){var n=ne(),i=["margin","limit","padding","range","animate","snap","step","format"];i.forEach(function(t){void 0!==e[t]&&(s[t]=e[t])});var r=L(s);i.forEach(function(t){void 0!==e[t]&&(o[t]=r[t])}),C=r.spectrum,o.margin=r.margin,o.limit=r.limit,o.padding=r.padding,o.pips&&j(o.pips),w=[],te(e.start||n,t)},target:_,removePips:N,pips:j},o.pips&&j(o.pips),o.tooltips&&(v=p.map(function(e,t){return!!o.tooltips[t]&&I(e.firstChild,o.cssClasses.tooltip)}),q("update",function(e,t,n){if(v[t]){var i=e[t];!0!==o.tooltips[t]&&(i=o.tooltips[t].to(n[t])),v[t].innerHTML=i}})),q("update",function(e,t,n,i,r){A.forEach(function(e){var t=p[e],i=G(w,e,0,!0,!0,!0),l=G(w,e,100,!0,!0,!0),s=r[e],a=o.ariaFormat.to(n[e]);t.children[0].setAttribute("aria-valuemin",i.toFixed(1)),t.children[0].setAttribute("aria-valuemax",l.toFixed(1)),t.children[0].setAttribute("aria-valuenow",s.toFixed(1)),t.children[0].setAttribute("aria-valuetext",a)})}),h}(t,L(o),o);return t.noUiSlider=s,s}}})?o.apply(t,[]):o)||(e.exports=i)},zQPq:function(e,t,n){"use strict";var o=n("TToO").__extends,i=n("B00U");t.Action=function(e){function t(t,n){e.call(this)}return o(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(i.Subscription)}},[0]);