12 |
- (()=>{var e,t={125:(e,t,o)=>{var s=o(3019),r=s,i="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof window&&window||void 0!==i&&i||"undefined"!=typeof self&&self||function(){return this}.call(null)||Function("return this")(),n=o(3021);r.object.extend(proto,n);var a=o(5465);r.object.extend(proto,a),r.exportSymbol("proto.sys.AirPlay",null,i),proto.sys.AirPlay=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.AirPlay,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.AirPlay.displayName="proto.sys.AirPlay"),s.Message.GENERATE_TO_OBJECT&&(proto.sys.AirPlay.prototype.toObject=function(e){return proto.sys.AirPlay.toObject(e,this)},proto.sys.AirPlay.toObject=function(e,t){var o={enabled:s.Message.getBooleanFieldWithDefault(t,1,!1),port:s.Message.getFieldWithDefault(t,2,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.sys.AirPlay.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.AirPlay;return proto.sys.AirPlay.deserializeBinaryFromReader(o,t)},proto.sys.AirPlay.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readBool();e.setEnabled(o);break;case 2:o=t.readUint32();e.setPort(o);break;default:t.skipField()}}return e},proto.sys.AirPlay.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.AirPlay.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.AirPlay.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getEnabled())&&t.writeBool(1,o),0!==(o=e.getPort())&&t.writeUint32(2,o)},proto.sys.AirPlay.prototype.getEnabled=function(){return s.Message.getBooleanFieldWithDefault(this,1,!1)},proto.sys.AirPlay.prototype.setEnabled=function(e){return s.Message.setProto3BooleanField(this,1,e)},proto.sys.AirPlay.prototype.getPort=function(){return s.Message.getFieldWithDefault(this,2,0)},proto.sys.AirPlay.prototype.setPort=function(e){return s.Message.setProto3IntField(this,2,e)},r.object.extend(t,proto.sys)},3353:(e,t,o)=>{var s=o(3019),r=s,i="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof window&&window||void 0!==i&&i||"undefined"!=typeof self&&self||function(){return this}.call(null)||Function("return this")(),n=o(3021);r.object.extend(proto,n),r.exportSymbol("proto.sys.Artwork",null,i),proto.sys.Artwork=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.Artwork,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.Artwork.displayName="proto.sys.Artwork"),s.Message.GENERATE_TO_OBJECT&&(proto.sys.Artwork.prototype.toObject=function(e){return proto.sys.Artwork.toObject(e,this)},proto.sys.Artwork.toObject=function(e,t){var o={enabled:s.Message.getBooleanFieldWithDefault(t,1,!1),resize:s.Message.getBooleanFieldWithDefault(t,2,!1)};return e&&(o.$jspbMessageInstance=t),o}),proto.sys.Artwork.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.Artwork;return proto.sys.Artwork.deserializeBinaryFromReader(o,t)},proto.sys.Artwork.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readBool();e.setEnabled(o);break;case 2:o=t.readBool();e.setResize(o);break;default:t.skipField()}}return e},proto.sys.Artwork.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.Artwork.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.Artwork.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getEnabled())&&t.writeBool(1,o),(o=e.getResize())&&t.writeBool(2,o)},proto.sys.Artwork.prototype.getEnabled=function(){return s.Message.getBooleanFieldWithDefault(this,1,!1)},proto.sys.Artwork.prototype.setEnabled=function(e){return s.Message.setProto3BooleanField(this,1,e)},proto.sys.Artwork.prototype.getResize=function(){return s.Message.getBooleanFieldWithDefault(this,2,!1)},proto.sys.Artwork.prototype.setResize=function(e){return s.Message.setProto3BooleanField(this,2,e)},r.object.extend(t,proto.sys)},6746:(e,t,o)=>{var s=o(3019),r=s,i="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof window&&window||void 0!==i&&i||"undefined"!=typeof self&&self||function(){return this}.call(null)||Function("return this")(),n=o(3021);r.object.extend(proto,n),r.exportSymbol("proto.sys.Battery",null,i),r.exportSymbol("proto.sys.BatteryAttenEnum",null,i),r.exportSymbol("proto.sys.BatteryChannelEnum",null,i),proto.sys.Battery=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.Battery,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.Battery.displayName="proto.sys.Battery"),s.Message.GENERATE_TO_OBJECT&&(proto.sys.Battery.prototype.toObject=function(e){return proto.sys.Battery.toObject(e,this)},proto.sys.Battery.toObject=function(e,t){var o={channel:s.Message.getFieldWithDefault(t,1,0),scale:s.Message.getFloatingPointFieldWithDefault(t,2,0),cells:s.Message.getFieldWithDefault(t,3,0),atten:s.Message.getFieldWithDefault(t,4,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.sys.Battery.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.Battery;return proto.sys.Battery.deserializeBinaryFromReader(o,t)},proto.sys.Battery.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readEnum();e.setChannel(o);break;case 2:o=t.readFloat();e.setScale(o);break;case 3:o=t.readInt32();e.setCells(o);break;case 4:o=t.readEnum();e.setAtten(o);break;default:t.skipField()}}return e},proto.sys.Battery.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.Battery.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.Battery.serializeBinaryToWriter=function(e,t){var o=void 0;0!==(o=e.getChannel())&&t.writeEnum(1,o),0!==(o=e.getScale())&&t.writeFloat(2,o),0!==(o=e.getCells())&&t.writeInt32(3,o),0!==(o=e.getAtten())&&t.writeEnum(4,o)},proto.sys.Battery.prototype.getChannel=function(){return s.Message.getFieldWithDefault(this,1,0)},proto.sys.Battery.prototype.setChannel=function(e){return s.Message.setProto3EnumField(this,1,e)},proto.sys.Battery.prototype.getScale=function(){return s.Message.getFloatingPointFieldWithDefault(this,2,0)},proto.sys.Battery.prototype.setScale=function(e){return s.Message.setProto3FloatField(this,2,e)},proto.sys.Battery.prototype.getCells=function(){return s.Message.getFieldWithDefault(this,3,0)},proto.sys.Battery.prototype.setCells=function(e){return s.Message.setProto3IntField(this,3,e)},proto.sys.Battery.prototype.getAtten=function(){return s.Message.getFieldWithDefault(this,4,0)},proto.sys.Battery.prototype.setAtten=function(e){return s.Message.setProto3EnumField(this,4,e)},proto.sys.BatteryChannelEnum={UNSPECIFIED_CH:0,CH0:1,CH1:2,CH2:3,CH3:4,CH4:5,CH5:6,CH6:7,CH7:8},proto.sys.BatteryAttenEnum={UNSPECIFIED_ATT:0,ATT_0:1,ATT_1:2,ATT_2:3,ATT_3:4},r.object.extend(t,proto.sys)},7794:(e,t,o)=>{var s=o(3019),r=s,i="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof window&&window||void 0!==i&&i||"undefined"!=typeof self&&self||function(){return this}.call(null)||Function("return this")(),n=o(7567);r.object.extend(proto,n);var a=o(3021);r.object.extend(proto,a),r.exportSymbol("proto.sys.Button",null,i),r.exportSymbol("proto.sys.ButtonAction",null,i),r.exportSymbol("proto.sys.ButtonActionChoice",null,i),r.exportSymbol("proto.sys.ButtonActionChoice.ActiontypeCase",null,i),r.exportSymbol("proto.sys.ButtonActions",null,i),r.exportSymbol("proto.sys.ButtonProfile",null,i),r.exportSymbol("proto.sys.KnobOnly",null,i),r.exportSymbol("proto.sys.Rotary",null,i),proto.sys.ButtonActionChoice=function(e){s.Message.initialize(this,e,0,-1,null,proto.sys.ButtonActionChoice.oneofGroups_)},r.inherits(proto.sys.ButtonActionChoice,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.ButtonActionChoice.displayName="proto.sys.ButtonActionChoice"),proto.sys.ButtonActions=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.ButtonActions,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.ButtonActions.displayName="proto.sys.ButtonActions"),proto.sys.Button=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.Button,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.Button.displayName="proto.sys.Button"),proto.sys.ButtonProfile=function(e){s.Message.initialize(this,e,0,-1,proto.sys.ButtonProfile.repeatedFields_,null)},r.inherits(proto.sys.ButtonProfile,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.ButtonProfile.displayName="proto.sys.ButtonProfile"),proto.sys.KnobOnly=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.KnobOnly,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.KnobOnly.displayName="proto.sys.KnobOnly"),proto.sys.Rotary=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.Rotary,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.Rotary.displayName="proto.sys.Rotary"),proto.sys.ButtonActionChoice.oneofGroups_=[[1,2]],proto.sys.ButtonActionChoice.ActiontypeCase={ACTIONTYPE_NOT_SET:0,ACTION:1,PROFILE_NAME:2},proto.sys.ButtonActionChoice.prototype.getActiontypeCase=function(){return s.Message.computeOneofCase(this,proto.sys.ButtonActionChoice.oneofGroups_[0])},s.Message.GENERATE_TO_OBJECT&&(proto.sys.ButtonActionChoice.prototype.toObject=function(e){return proto.sys.ButtonActionChoice.toObject(e,this)},proto.sys.ButtonActionChoice.toObject=function(e,t){var o={action:s.Message.getFieldWithDefault(t,1,0),profileName:s.Message.getFieldWithDefault(t,2,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.sys.ButtonActionChoice.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.ButtonActionChoice;return proto.sys.ButtonActionChoice.deserializeBinaryFromReader(o,t)},proto.sys.ButtonActionChoice.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readEnum();e.setAction(o);break;case 2:o=t.readString();e.setProfileName(o);break;default:t.skipField()}}return e},proto.sys.ButtonActionChoice.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.ButtonActionChoice.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.ButtonActionChoice.serializeBinaryToWriter=function(e,t){var o=void 0;null!=(o=s.Message.getField(e,1))&&t.writeEnum(1,o),null!=(o=s.Message.getField(e,2))&&t.writeString(2,o)},proto.sys.ButtonActionChoice.prototype.getAction=function(){return s.Message.getFieldWithDefault(this,1,0)},proto.sys.ButtonActionChoice.prototype.setAction=function(e){return s.Message.setOneofField(this,1,proto.sys.ButtonActionChoice.oneofGroups_[0],e)},proto.sys.ButtonActionChoice.prototype.clearAction=function(){return s.Message.setOneofField(this,1,proto.sys.ButtonActionChoice.oneofGroups_[0],void 0)},proto.sys.ButtonActionChoice.prototype.hasAction=function(){return null!=s.Message.getField(this,1)},proto.sys.ButtonActionChoice.prototype.getProfileName=function(){return s.Message.getFieldWithDefault(this,2,"")},proto.sys.ButtonActionChoice.prototype.setProfileName=function(e){return s.Message.setOneofField(this,2,proto.sys.ButtonActionChoice.oneofGroups_[0],e)},proto.sys.ButtonActionChoice.prototype.clearProfileName=function(){return s.Message.setOneofField(this,2,proto.sys.ButtonActionChoice.oneofGroups_[0],void 0)},proto.sys.ButtonActionChoice.prototype.hasProfileName=function(){return null!=s.Message.getField(this,2)},s.Message.GENERATE_TO_OBJECT&&(proto.sys.ButtonActions.prototype.toObject=function(e){return proto.sys.ButtonActions.toObject(e,this)},proto.sys.ButtonActions.toObject=function(e,t){var o,s={normal:(o=t.getNormal())&&proto.sys.ButtonActionChoice.toObject(e,o),longpress:(o=t.getLongpress())&&proto.sys.ButtonActionChoice.toObject(e,o),shifted:(o=t.getShifted())&&proto.sys.ButtonActionChoice.toObject(e,o),longshifted:(o=t.getLongshifted())&&proto.sys.ButtonActionChoice.toObject(e,o)};return e&&(s.$jspbMessageInstance=t),s}),proto.sys.ButtonActions.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.ButtonActions;return proto.sys.ButtonActions.deserializeBinaryFromReader(o,t)},proto.sys.ButtonActions.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new proto.sys.ButtonActionChoice;t.readMessage(o,proto.sys.ButtonActionChoice.deserializeBinaryFromReader),e.setNormal(o);break;case 2:o=new proto.sys.ButtonActionChoice;t.readMessage(o,proto.sys.ButtonActionChoice.deserializeBinaryFromReader),e.setLongpress(o);break;case 3:o=new proto.sys.ButtonActionChoice;t.readMessage(o,proto.sys.ButtonActionChoice.deserializeBinaryFromReader),e.setShifted(o);break;case 4:o=new proto.sys.ButtonActionChoice;t.readMessage(o,proto.sys.ButtonActionChoice.deserializeBinaryFromReader),e.setLongshifted(o);break;default:t.skipField()}}return e},proto.sys.ButtonActions.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.ButtonActions.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.ButtonActions.serializeBinaryToWriter=function(e,t){var o=void 0;null!=(o=e.getNormal())&&t.writeMessage(1,o,proto.sys.ButtonActionChoice.serializeBinaryToWriter),null!=(o=e.getLongpress())&&t.writeMessage(2,o,proto.sys.ButtonActionChoice.serializeBinaryToWriter),null!=(o=e.getShifted())&&t.writeMessage(3,o,proto.sys.ButtonActionChoice.serializeBinaryToWriter),null!=(o=e.getLongshifted())&&t.writeMessage(4,o,proto.sys.ButtonActionChoice.serializeBinaryToWriter)},proto.sys.ButtonActions.prototype.getNormal=function(){return s.Message.getWrapperField(this,proto.sys.ButtonActionChoice,1)},proto.sys.ButtonActions.prototype.setNormal=function(e){return s.Message.setWrapperField(this,1,e)},proto.sys.ButtonActions.prototype.clearNormal=function(){return this.setNormal(void 0)},proto.sys.ButtonActions.prototype.hasNormal=function(){return null!=s.Message.getField(this,1)},proto.sys.ButtonActions.prototype.getLongpress=function(){return s.Message.getWrapperField(this,proto.sys.ButtonActionChoice,2)},proto.sys.ButtonActions.prototype.setLongpress=function(e){return s.Message.setWrapperField(this,2,e)},proto.sys.ButtonActions.prototype.clearLongpress=function(){return this.setLongpress(void 0)},proto.sys.ButtonActions.prototype.hasLongpress=function(){return null!=s.Message.getField(this,2)},proto.sys.ButtonActions.prototype.getShifted=function(){return s.Message.getWrapperField(this,proto.sys.ButtonActionChoice,3)},proto.sys.ButtonActions.prototype.setShifted=function(e){return s.Message.setWrapperField(this,3,e)},proto.sys.ButtonActions.prototype.clearShifted=function(){return this.setShifted(void 0)},proto.sys.ButtonActions.prototype.hasShifted=function(){return null!=s.Message.getField(this,3)},proto.sys.ButtonActions.prototype.getLongshifted=function(){return s.Message.getWrapperField(this,proto.sys.ButtonActionChoice,4)},proto.sys.ButtonActions.prototype.setLongshifted=function(e){return s.Message.setWrapperField(this,4,e)},proto.sys.ButtonActions.prototype.clearLongshifted=function(){return this.setLongshifted(void 0)},proto.sys.ButtonActions.prototype.hasLongshifted=function(){return null!=s.Message.getField(this,4)},s.Message.GENERATE_TO_OBJECT&&(proto.sys.Button.prototype.toObject=function(e){return proto.sys.Button.toObject(e,this)},proto.sys.Button.toObject=function(e,t){var o,r={gpio:(o=t.getGpio())&&n.GPIO.toObject(e,o),pull:s.Message.getBooleanFieldWithDefault(t,2,!1),debounce:s.Message.getFieldWithDefault(t,3,0),shifter:(o=t.getShifter())&&n.GPIO.toObject(e,o),longduration:s.Message.getFieldWithDefault(t,5,0),pressed:(o=t.getPressed())&&proto.sys.ButtonActions.toObject(e,o),released:(o=t.getReleased())&&proto.sys.ButtonActions.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.sys.Button.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.Button;return proto.sys.Button.deserializeBinaryFromReader(o,t)},proto.sys.Button.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new n.GPIO;t.readMessage(o,n.GPIO.deserializeBinaryFromReader),e.setGpio(o);break;case 2:o=t.readBool();e.setPull(o);break;case 3:o=t.readInt32();e.setDebounce(o);break;case 4:o=new n.GPIO;t.readMessage(o,n.GPIO.deserializeBinaryFromReader),e.setShifter(o);break;case 5:o=t.readInt32();e.setLongduration(o);break;case 6:o=new proto.sys.ButtonActions;t.readMessage(o,proto.sys.ButtonActions.deserializeBinaryFromReader),e.setPressed(o);break;case 7:o=new proto.sys.ButtonActions;t.readMessage(o,proto.sys.ButtonActions.deserializeBinaryFromReader),e.setReleased(o);break;default:t.skipField()}}return e},proto.sys.Button.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.Button.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.Button.serializeBinaryToWriter=function(e,t){var o=void 0;null!=(o=e.getGpio())&&t.writeMessage(1,o,n.GPIO.serializeBinaryToWriter),(o=e.getPull())&&t.writeBool(2,o),0!==(o=e.getDebounce())&&t.writeInt32(3,o),null!=(o=e.getShifter())&&t.writeMessage(4,o,n.GPIO.serializeBinaryToWriter),0!==(o=e.getLongduration())&&t.writeInt32(5,o),null!=(o=e.getPressed())&&t.writeMessage(6,o,proto.sys.ButtonActions.serializeBinaryToWriter),null!=(o=e.getReleased())&&t.writeMessage(7,o,proto.sys.ButtonActions.serializeBinaryToWriter)},proto.sys.Button.prototype.getGpio=function(){return s.Message.getWrapperField(this,n.GPIO,1)},proto.sys.Button.prototype.setGpio=function(e){return s.Message.setWrapperField(this,1,e)},proto.sys.Button.prototype.clearGpio=function(){return this.setGpio(void 0)},proto.sys.Button.prototype.hasGpio=function(){return null!=s.Message.getField(this,1)},proto.sys.Button.prototype.getPull=function(){return s.Message.getBooleanFieldWithDefault(this,2,!1)},proto.sys.Button.prototype.setPull=function(e){return s.Message.setProto3BooleanField(this,2,e)},proto.sys.Button.prototype.getDebounce=function(){return s.Message.getFieldWithDefault(this,3,0)},proto.sys.Button.prototype.setDebounce=function(e){return s.Message.setProto3IntField(this,3,e)},proto.sys.Button.prototype.getShifter=function(){return s.Message.getWrapperField(this,n.GPIO,4)},proto.sys.Button.prototype.setShifter=function(e){return s.Message.setWrapperField(this,4,e)},proto.sys.Button.prototype.clearShifter=function(){return this.setShifter(void 0)},proto.sys.Button.prototype.hasShifter=function(){return null!=s.Message.getField(this,4)},proto.sys.Button.prototype.getLongduration=function(){return s.Message.getFieldWithDefault(this,5,0)},proto.sys.Button.prototype.setLongduration=function(e){return s.Message.setProto3IntField(this,5,e)},proto.sys.Button.prototype.getPressed=function(){return s.Message.getWrapperField(this,proto.sys.ButtonActions,6)},proto.sys.Button.prototype.setPressed=function(e){return s.Message.setWrapperField(this,6,e)},proto.sys.Button.prototype.clearPressed=function(){return this.setPressed(void 0)},proto.sys.Button.prototype.hasPressed=function(){return null!=s.Message.getField(this,6)},proto.sys.Button.prototype.getReleased=function(){return s.Message.getWrapperField(this,proto.sys.ButtonActions,7)},proto.sys.Button.prototype.setReleased=function(e){return s.Message.setWrapperField(this,7,e)},proto.sys.Button.prototype.clearReleased=function(){return this.setReleased(void 0)},proto.sys.Button.prototype.hasReleased=function(){return null!=s.Message.getField(this,7)},proto.sys.ButtonProfile.repeatedFields_=[2],s.Message.GENERATE_TO_OBJECT&&(proto.sys.ButtonProfile.prototype.toObject=function(e){return proto.sys.ButtonProfile.toObject(e,this)},proto.sys.ButtonProfile.toObject=function(e,t){var o={profileName:s.Message.getFieldWithDefault(t,1,""),buttonList:s.Message.toObjectList(t.getButtonList(),proto.sys.Button.toObject,e)};return e&&(o.$jspbMessageInstance=t),o}),proto.sys.ButtonProfile.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.ButtonProfile;return proto.sys.ButtonProfile.deserializeBinaryFromReader(o,t)},proto.sys.ButtonProfile.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setProfileName(o);break;case 2:o=new proto.sys.Button;t.readMessage(o,proto.sys.Button.deserializeBinaryFromReader),e.addButton(o);break;default:t.skipField()}}return e},proto.sys.ButtonProfile.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.ButtonProfile.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.ButtonProfile.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getProfileName()).length>0&&t.writeString(1,o),(o=e.getButtonList()).length>0&&t.writeRepeatedMessage(2,o,proto.sys.Button.serializeBinaryToWriter)},proto.sys.ButtonProfile.prototype.getProfileName=function(){return s.Message.getFieldWithDefault(this,1,"")},proto.sys.ButtonProfile.prototype.setProfileName=function(e){return s.Message.setProto3StringField(this,1,e)},proto.sys.ButtonProfile.prototype.getButtonList=function(){return s.Message.getRepeatedWrapperField(this,proto.sys.Button,2)},proto.sys.ButtonProfile.prototype.setButtonList=function(e){return s.Message.setRepeatedWrapperField(this,2,e)},proto.sys.ButtonProfile.prototype.addButton=function(e,t){return s.Message.addToRepeatedWrapperField(this,2,e,proto.sys.Button,t)},proto.sys.ButtonProfile.prototype.clearButtonList=function(){return this.setButtonList([])},s.Message.GENERATE_TO_OBJECT&&(proto.sys.KnobOnly.prototype.toObject=function(e){return proto.sys.KnobOnly.toObject(e,this)},proto.sys.KnobOnly.toObject=function(e,t){var o={enable:s.Message.getBooleanFieldWithDefault(t,1,!1),delayMs:s.Message.getFieldWithDefault(t,2,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.sys.KnobOnly.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.KnobOnly;return proto.sys.KnobOnly.deserializeBinaryFromReader(o,t)},proto.sys.KnobOnly.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readBool();e.setEnable(o);break;case 2:o=t.readInt32();e.setDelayMs(o);break;default:t.skipField()}}return e},proto.sys.KnobOnly.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.KnobOnly.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.KnobOnly.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getEnable())&&t.writeBool(1,o),0!==(o=e.getDelayMs())&&t.writeInt32(2,o)},proto.sys.KnobOnly.prototype.getEnable=function(){return s.Message.getBooleanFieldWithDefault(this,1,!1)},proto.sys.KnobOnly.prototype.setEnable=function(e){return s.Message.setProto3BooleanField(this,1,e)},proto.sys.KnobOnly.prototype.getDelayMs=function(){return s.Message.getFieldWithDefault(this,2,0)},proto.sys.KnobOnly.prototype.setDelayMs=function(e){return s.Message.setProto3IntField(this,2,e)},s.Message.GENERATE_TO_OBJECT&&(proto.sys.Rotary.prototype.toObject=function(e){return proto.sys.Rotary.toObject(e,this)},proto.sys.Rotary.toObject=function(e,t){var o,r={a:(o=t.getA())&&n.GPIO.toObject(e,o),b:(o=t.getB())&&n.GPIO.toObject(e,o),sw:(o=t.getSw())&&n.GPIO.toObject(e,o),knobonly:(o=t.getKnobonly())&&proto.sys.KnobOnly.toObject(e,o),volume:s.Message.getBooleanFieldWithDefault(t,5,!1),longpress:s.Message.getBooleanFieldWithDefault(t,6,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.sys.Rotary.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.Rotary;return proto.sys.Rotary.deserializeBinaryFromReader(o,t)},proto.sys.Rotary.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new n.GPIO;t.readMessage(o,n.GPIO.deserializeBinaryFromReader),e.setA(o);break;case 2:o=new n.GPIO;t.readMessage(o,n.GPIO.deserializeBinaryFromReader),e.setB(o);break;case 3:o=new n.GPIO;t.readMessage(o,n.GPIO.deserializeBinaryFromReader),e.setSw(o);break;case 4:o=new proto.sys.KnobOnly;t.readMessage(o,proto.sys.KnobOnly.deserializeBinaryFromReader),e.setKnobonly(o);break;case 5:o=t.readBool();e.setVolume(o);break;case 6:o=t.readBool();e.setLongpress(o);break;default:t.skipField()}}return e},proto.sys.Rotary.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.Rotary.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.Rotary.serializeBinaryToWriter=function(e,t){var o=void 0;null!=(o=e.getA())&&t.writeMessage(1,o,n.GPIO.serializeBinaryToWriter),null!=(o=e.getB())&&t.writeMessage(2,o,n.GPIO.serializeBinaryToWriter),null!=(o=e.getSw())&&t.writeMessage(3,o,n.GPIO.serializeBinaryToWriter),null!=(o=e.getKnobonly())&&t.writeMessage(4,o,proto.sys.KnobOnly.serializeBinaryToWriter),(o=e.getVolume())&&t.writeBool(5,o),(o=e.getLongpress())&&t.writeBool(6,o)},proto.sys.Rotary.prototype.getA=function(){return s.Message.getWrapperField(this,n.GPIO,1)},proto.sys.Rotary.prototype.setA=function(e){return s.Message.setWrapperField(this,1,e)},proto.sys.Rotary.prototype.clearA=function(){return this.setA(void 0)},proto.sys.Rotary.prototype.hasA=function(){return null!=s.Message.getField(this,1)},proto.sys.Rotary.prototype.getB=function(){return s.Message.getWrapperField(this,n.GPIO,2)},proto.sys.Rotary.prototype.setB=function(e){return s.Message.setWrapperField(this,2,e)},proto.sys.Rotary.prototype.clearB=function(){return this.setB(void 0)},proto.sys.Rotary.prototype.hasB=function(){return null!=s.Message.getField(this,2)},proto.sys.Rotary.prototype.getSw=function(){return s.Message.getWrapperField(this,n.GPIO,3)},proto.sys.Rotary.prototype.setSw=function(e){return s.Message.setWrapperField(this,3,e)},proto.sys.Rotary.prototype.clearSw=function(){return this.setSw(void 0)},proto.sys.Rotary.prototype.hasSw=function(){return null!=s.Message.getField(this,3)},proto.sys.Rotary.prototype.getKnobonly=function(){return s.Message.getWrapperField(this,proto.sys.KnobOnly,4)},proto.sys.Rotary.prototype.setKnobonly=function(e){return s.Message.setWrapperField(this,4,e)},proto.sys.Rotary.prototype.clearKnobonly=function(){return this.setKnobonly(void 0)},proto.sys.Rotary.prototype.hasKnobonly=function(){return null!=s.Message.getField(this,4)},proto.sys.Rotary.prototype.getVolume=function(){return s.Message.getBooleanFieldWithDefault(this,5,!1)},proto.sys.Rotary.prototype.setVolume=function(e){return s.Message.setProto3BooleanField(this,5,e)},proto.sys.Rotary.prototype.getLongpress=function(){return s.Message.getBooleanFieldWithDefault(this,6,!1)},proto.sys.Rotary.prototype.setLongpress=function(e){return s.Message.setProto3BooleanField(this,6,e)},proto.sys.ButtonAction={ACTRLS_NONE:0,ACTRLS_POWER:1,ACTRLS_VOLUP:2,ACTRLS_VOLDOWN:3,ACTRLS_TOGGLE:4,ACTRLS_PLAY:5,ACTRLS_PAUSE:6,ACTRLS_STOP:7,ACTRLS_REW:8,ACTRLS_FWD:9,ACTRLS_PREV:10,ACTRLS_NEXT:11,BCTRLS_UP:12,BCTRLS_DOWN:13,BCTRLS_LEFT:14,BCTRLS_RIGHT:15,BCTRLS_PS1:16,BCTRLS_PS2:17,BCTRLS_PS3:18,BCTRLS_PS4:19,BCTRLS_PS5:20,BCTRLS_PS6:21,BCTRLS_PS7:22,BCTRLS_PS8:23,BCTRLS_PS9:24,BCTRLS_PS10:25,KNOB_LEFT:26,KNOB_RIGHT:27,KNOB_PUSH:28,ACTRLS_SLEEP:29},r.object.extend(t,proto.sys)},2038:(e,t,o)=>{var s=o(3019),r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof window&&window||void 0!==r&&r||"undefined"!=typeof self&&self||function(){return this}.call(null)||Function("return this")(),i=o(3021);s.object.extend(proto,i),s.exportSymbol("proto.sys.DeviceTypeEnum",null,r),s.exportSymbol("proto.sys.HostEnum",null,r),s.exportSymbol("proto.sys.PortEnum",null,r),proto.sys.DeviceTypeEnum={UNSPECIFIED_TYPE:0,DEVTYPE_SPI:1,DEVTYPE_I2C:2,DEVTYPE__RMII:3},proto.sys.PortEnum={UNSPECIFIED_SYSTPORT:0,SYSTEM:1,DAC_PORT:2},proto.sys.HostEnum={UNSPECIFIED_HOST:0,HOST0:1,HOST1:2},s.object.extend(t,proto.sys)},7284:(e,t,o)=>{var s=o(3019),r=s,i="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof window&&window||void 0!==i&&i||"undefined"!=typeof self&&self||function(){return this}.call(null)||Function("return this")(),n=o(7567);r.object.extend(proto,n);var a=o(5184);r.object.extend(proto,a);var p=o(2035);r.object.extend(proto,p);var l=o(5465);r.object.extend(proto,l);var u=o(3021);r.object.extend(proto,u),r.exportSymbol("proto.sys.DAC",null,i),r.exportSymbol("proto.sys.DACModelEnum",null,i),r.exportSymbol("proto.sys.MCKEnum",null,i),proto.sys.DAC=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.DAC,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.DAC.displayName="proto.sys.DAC"),s.Message.GENERATE_TO_OBJECT&&(proto.sys.DAC.prototype.toObject=function(e){return proto.sys.DAC.toObject(e,this)},proto.sys.DAC.toObject=function(e,t){var o,r={bck:(o=t.getBck())&&n.GPIO.toObject(e,o),ws:(o=t.getWs())&&n.GPIO.toObject(e,o),dout:(o=t.getDout())&&n.GPIO.toObject(e,o),mck:s.Message.getFieldWithDefault(t,4,0),mute:(o=t.getMute())&&n.GPIO.toObject(e,o),model:s.Message.getFieldWithDefault(t,6,0),i2c:(o=t.getI2c())&&p.I2CBus.toObject(e,o),daccontrolset:(o=t.getDaccontrolset())&&a.DacControlSet.toObject(e,o),jackMutesAmp:s.Message.getBooleanFieldWithDefault(t,9,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.sys.DAC.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.DAC;return proto.sys.DAC.deserializeBinaryFromReader(o,t)},proto.sys.DAC.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new n.GPIO;t.readMessage(o,n.GPIO.deserializeBinaryFromReader),e.setBck(o);break;case 2:o=new n.GPIO;t.readMessage(o,n.GPIO.deserializeBinaryFromReader),e.setWs(o);break;case 3:o=new n.GPIO;t.readMessage(o,n.GPIO.deserializeBinaryFromReader),e.setDout(o);break;case 4:o=t.readEnum();e.setMck(o);break;case 5:o=new n.GPIO;t.readMessage(o,n.GPIO.deserializeBinaryFromReader),e.setMute(o);break;case 6:o=t.readEnum();e.setModel(o);break;case 7:o=new p.I2CBus;t.readMessage(o,p.I2CBus.deserializeBinaryFromReader),e.setI2c(o);break;case 8:o=new a.DacControlSet;t.readMessage(o,a.DacControlSet.deserializeBinaryFromReader),e.setDaccontrolset(o);break;case 9:o=t.readBool();e.setJackMutesAmp(o);break;default:t.skipField()}}return e},proto.sys.DAC.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.DAC.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.DAC.serializeBinaryToWriter=function(e,t){var o=void 0;null!=(o=e.getBck())&&t.writeMessage(1,o,n.GPIO.serializeBinaryToWriter),null!=(o=e.getWs())&&t.writeMessage(2,o,n.GPIO.serializeBinaryToWriter),null!=(o=e.getDout())&&t.writeMessage(3,o,n.GPIO.serializeBinaryToWriter),0!==(o=e.getMck())&&t.writeEnum(4,o),null!=(o=e.getMute())&&t.writeMessage(5,o,n.GPIO.serializeBinaryToWriter),0!==(o=e.getModel())&&t.writeEnum(6,o),null!=(o=e.getI2c())&&t.writeMessage(7,o,p.I2CBus.serializeBinaryToWriter),null!=(o=e.getDaccontrolset())&&t.writeMessage(8,o,a.DacControlSet.serializeBinaryToWriter),(o=e.getJackMutesAmp())&&t.writeBool(9,o)},proto.sys.DAC.prototype.getBck=function(){return s.Message.getWrapperField(this,n.GPIO,1)},proto.sys.DAC.prototype.setBck=function(e){return s.Message.setWrapperField(this,1,e)},proto.sys.DAC.prototype.clearBck=function(){return this.setBck(void 0)},proto.sys.DAC.prototype.hasBck=function(){return null!=s.Message.getField(this,1)},proto.sys.DAC.prototype.getWs=function(){return s.Message.getWrapperField(this,n.GPIO,2)},proto.sys.DAC.prototype.setWs=function(e){return s.Message.setWrapperField(this,2,e)},proto.sys.DAC.prototype.clearWs=function(){return this.setWs(void 0)},proto.sys.DAC.prototype.hasWs=function(){return null!=s.Message.getField(this,2)},proto.sys.DAC.prototype.getDout=function(){return s.Message.getWrapperField(this,n.GPIO,3)},proto.sys.DAC.prototype.setDout=function(e){return s.Message.setWrapperField(this,3,e)},proto.sys.DAC.prototype.clearDout=function(){return this.setDout(void 0)},proto.sys.DAC.prototype.hasDout=function(){return null!=s.Message.getField(this,3)},proto.sys.DAC.prototype.getMck=function(){return s.Message.getFieldWithDefault(this,4,0)},proto.sys.DAC.prototype.setMck=function(e){return s.Message.setProto3EnumField(this,4,e)},proto.sys.DAC.prototype.getMute=function(){return s.Message.getWrapperField(this,n.GPIO,5)},proto.sys.DAC.prototype.setMute=function(e){return s.Message.setWrapperField(this,5,e)},proto.sys.DAC.prototype.clearMute=function(){return this.setMute(void 0)},proto.sys.DAC.prototype.hasMute=function(){return null!=s.Message.getField(this,5)},proto.sys.DAC.prototype.getModel=function(){return s.Message.getFieldWithDefault(this,6,0)},proto.sys.DAC.prototype.setModel=function(e){return s.Message.setProto3EnumField(this,6,e)},proto.sys.DAC.prototype.getI2c=function(){return s.Message.getWrapperField(this,p.I2CBus,7)},proto.sys.DAC.prototype.setI2c=function(e){return s.Message.setWrapperField(this,7,e)},proto.sys.DAC.prototype.clearI2c=function(){return this.setI2c(void 0)},proto.sys.DAC.prototype.hasI2c=function(){return null!=s.Message.getField(this,7)},proto.sys.DAC.prototype.getDaccontrolset=function(){return s.Message.getWrapperField(this,a.DacControlSet,8)},proto.sys.DAC.prototype.setDaccontrolset=function(e){return s.Message.setWrapperField(this,8,e)},proto.sys.DAC.prototype.clearDaccontrolset=function(){return this.setDaccontrolset(void 0)},proto.sys.DAC.prototype.hasDaccontrolset=function(){return null!=s.Message.getField(this,8)},proto.sys.DAC.prototype.getJackMutesAmp=function(){return s.Message.getBooleanFieldWithDefault(this,9,!1)},proto.sys.DAC.prototype.setJackMutesAmp=function(e){return s.Message.setProto3BooleanField(this,9,e)},proto.sys.DACModelEnum={UNSPECIFIED_MODEL:0,TAS57XX:1,TAS5713:2,AC101:3,WM8978:4,ES8388:5,I2S:6,CS4265:7},proto.sys.MCKEnum={UNSPECIFIED_MCK:0,MCK0:1,MCK1:2,MCK2:3},r.object.extend(t,proto.sys)},5184:(e,t,o)=>{var s=o(3019),r=s,i="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof window&&window||void 0!==i&&i||"undefined"!=typeof self&&self||function(){return this}.call(null)||Function("return this")(),n=o(3021);r.object.extend(proto,n),r.exportSymbol("proto.sys.ControlCommand",null,i),r.exportSymbol("proto.sys.ControlCommandType",null,i),r.exportSymbol("proto.sys.ControlItem",null,i),r.exportSymbol("proto.sys.ControlItem.ItemTypeCase",null,i),r.exportSymbol("proto.sys.DacControlSet",null,i),r.exportSymbol("proto.sys.DelayAction",null,i),r.exportSymbol("proto.sys.GpioAction",null,i),r.exportSymbol("proto.sys.GpioActionLevel",null,i),r.exportSymbol("proto.sys.Mode",null,i),r.exportSymbol("proto.sys.RegisterAction",null,i),proto.sys.DacControlSet=function(e){s.Message.initialize(this,e,0,-1,proto.sys.DacControlSet.repeatedFields_,null)},r.inherits(proto.sys.DacControlSet,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.DacControlSet.displayName="proto.sys.DacControlSet"),proto.sys.ControlCommand=function(e){s.Message.initialize(this,e,0,-1,proto.sys.ControlCommand.repeatedFields_,null)},r.inherits(proto.sys.ControlCommand,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.ControlCommand.displayName="proto.sys.ControlCommand"),proto.sys.ControlItem=function(e){s.Message.initialize(this,e,0,-1,null,proto.sys.ControlItem.oneofGroups_)},r.inherits(proto.sys.ControlItem,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.ControlItem.displayName="proto.sys.ControlItem"),proto.sys.RegisterAction=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.RegisterAction,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.RegisterAction.displayName="proto.sys.RegisterAction"),proto.sys.GpioAction=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.GpioAction,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.GpioAction.displayName="proto.sys.GpioAction"),proto.sys.DelayAction=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.DelayAction,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.DelayAction.displayName="proto.sys.DelayAction"),proto.sys.DacControlSet.repeatedFields_=[1],s.Message.GENERATE_TO_OBJECT&&(proto.sys.DacControlSet.prototype.toObject=function(e){return proto.sys.DacControlSet.toObject(e,this)},proto.sys.DacControlSet.toObject=function(e,t){var o={commandsList:s.Message.toObjectList(t.getCommandsList(),proto.sys.ControlCommand.toObject,e)};return e&&(o.$jspbMessageInstance=t),o}),proto.sys.DacControlSet.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.DacControlSet;return proto.sys.DacControlSet.deserializeBinaryFromReader(o,t)},proto.sys.DacControlSet.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var o=new proto.sys.ControlCommand;t.readMessage(o,proto.sys.ControlCommand.deserializeBinaryFromReader),e.addCommands(o)}else t.skipField()}return e},proto.sys.DacControlSet.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.DacControlSet.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.DacControlSet.serializeBinaryToWriter=function(e,t){var o;(o=e.getCommandsList()).length>0&&t.writeRepeatedMessage(1,o,proto.sys.ControlCommand.serializeBinaryToWriter)},proto.sys.DacControlSet.prototype.getCommandsList=function(){return s.Message.getRepeatedWrapperField(this,proto.sys.ControlCommand,1)},proto.sys.DacControlSet.prototype.setCommandsList=function(e){return s.Message.setRepeatedWrapperField(this,1,e)},proto.sys.DacControlSet.prototype.addCommands=function(e,t){return s.Message.addToRepeatedWrapperField(this,1,e,proto.sys.ControlCommand,t)},proto.sys.DacControlSet.prototype.clearCommandsList=function(){return this.setCommandsList([])},proto.sys.ControlCommand.repeatedFields_=[2],s.Message.GENERATE_TO_OBJECT&&(proto.sys.ControlCommand.prototype.toObject=function(e){return proto.sys.ControlCommand.toObject(e,this)},proto.sys.ControlCommand.toObject=function(e,t){var o={type:s.Message.getFieldWithDefault(t,1,0),itemsList:s.Message.toObjectList(t.getItemsList(),proto.sys.ControlItem.toObject,e)};return e&&(o.$jspbMessageInstance=t),o}),proto.sys.ControlCommand.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.ControlCommand;return proto.sys.ControlCommand.deserializeBinaryFromReader(o,t)},proto.sys.ControlCommand.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readEnum();e.setType(o);break;case 2:o=new proto.sys.ControlItem;t.readMessage(o,proto.sys.ControlItem.deserializeBinaryFromReader),e.addItems(o);break;default:t.skipField()}}return e},proto.sys.ControlCommand.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.ControlCommand.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.ControlCommand.serializeBinaryToWriter=function(e,t){var o=void 0;0!==(o=e.getType())&&t.writeEnum(1,o),(o=e.getItemsList()).length>0&&t.writeRepeatedMessage(2,o,proto.sys.ControlItem.serializeBinaryToWriter)},proto.sys.ControlCommand.prototype.getType=function(){return s.Message.getFieldWithDefault(this,1,0)},proto.sys.ControlCommand.prototype.setType=function(e){return s.Message.setProto3EnumField(this,1,e)},proto.sys.ControlCommand.prototype.getItemsList=function(){return s.Message.getRepeatedWrapperField(this,proto.sys.ControlItem,2)},proto.sys.ControlCommand.prototype.setItemsList=function(e){return s.Message.setRepeatedWrapperField(this,2,e)},proto.sys.ControlCommand.prototype.addItems=function(e,t){return s.Message.addToRepeatedWrapperField(this,2,e,proto.sys.ControlItem,t)},proto.sys.ControlCommand.prototype.clearItemsList=function(){return this.setItemsList([])},proto.sys.ControlItem.oneofGroups_=[[1,2,3]],proto.sys.ControlItem.ItemTypeCase={ITEM_TYPE_NOT_SET:0,REG_ACTION:1,GPIO_ACTION:2,DELAY_ACTION:3},proto.sys.ControlItem.prototype.getItemTypeCase=function(){return s.Message.computeOneofCase(this,proto.sys.ControlItem.oneofGroups_[0])},s.Message.GENERATE_TO_OBJECT&&(proto.sys.ControlItem.prototype.toObject=function(e){return proto.sys.ControlItem.toObject(e,this)},proto.sys.ControlItem.toObject=function(e,t){var o,s={regAction:(o=t.getRegAction())&&proto.sys.RegisterAction.toObject(e,o),gpioAction:(o=t.getGpioAction())&&proto.sys.GpioAction.toObject(e,o),delayAction:(o=t.getDelayAction())&&proto.sys.DelayAction.toObject(e,o)};return e&&(s.$jspbMessageInstance=t),s}),proto.sys.ControlItem.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.ControlItem;return proto.sys.ControlItem.deserializeBinaryFromReader(o,t)},proto.sys.ControlItem.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new proto.sys.RegisterAction;t.readMessage(o,proto.sys.RegisterAction.deserializeBinaryFromReader),e.setRegAction(o);break;case 2:o=new proto.sys.GpioAction;t.readMessage(o,proto.sys.GpioAction.deserializeBinaryFromReader),e.setGpioAction(o);break;case 3:o=new proto.sys.DelayAction;t.readMessage(o,proto.sys.DelayAction.deserializeBinaryFromReader),e.setDelayAction(o);break;default:t.skipField()}}return e},proto.sys.ControlItem.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.ControlItem.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.ControlItem.serializeBinaryToWriter=function(e,t){var o=void 0;null!=(o=e.getRegAction())&&t.writeMessage(1,o,proto.sys.RegisterAction.serializeBinaryToWriter),null!=(o=e.getGpioAction())&&t.writeMessage(2,o,proto.sys.GpioAction.serializeBinaryToWriter),null!=(o=e.getDelayAction())&&t.writeMessage(3,o,proto.sys.DelayAction.serializeBinaryToWriter)},proto.sys.ControlItem.prototype.getRegAction=function(){return s.Message.getWrapperField(this,proto.sys.RegisterAction,1)},proto.sys.ControlItem.prototype.setRegAction=function(e){return s.Message.setOneofWrapperField(this,1,proto.sys.ControlItem.oneofGroups_[0],e)},proto.sys.ControlItem.prototype.clearRegAction=function(){return this.setRegAction(void 0)},proto.sys.ControlItem.prototype.hasRegAction=function(){return null!=s.Message.getField(this,1)},proto.sys.ControlItem.prototype.getGpioAction=function(){return s.Message.getWrapperField(this,proto.sys.GpioAction,2)},proto.sys.ControlItem.prototype.setGpioAction=function(e){return s.Message.setOneofWrapperField(this,2,proto.sys.ControlItem.oneofGroups_[0],e)},proto.sys.ControlItem.prototype.clearGpioAction=function(){return this.setGpioAction(void 0)},proto.sys.ControlItem.prototype.hasGpioAction=function(){return null!=s.Message.getField(this,2)},proto.sys.ControlItem.prototype.getDelayAction=function(){return s.Message.getWrapperField(this,proto.sys.DelayAction,3)},proto.sys.ControlItem.prototype.setDelayAction=function(e){return s.Message.setOneofWrapperField(this,3,proto.sys.ControlItem.oneofGroups_[0],e)},proto.sys.ControlItem.prototype.clearDelayAction=function(){return this.setDelayAction(void 0)},proto.sys.ControlItem.prototype.hasDelayAction=function(){return null!=s.Message.getField(this,3)},s.Message.GENERATE_TO_OBJECT&&(proto.sys.RegisterAction.prototype.toObject=function(e){return proto.sys.RegisterAction.toObject(e,this)},proto.sys.RegisterAction.toObject=function(e,t){var o={reg:s.Message.getFieldWithDefault(t,1,0),val:s.Message.getFieldWithDefault(t,2,0),mode:s.Message.getFieldWithDefault(t,3,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.sys.RegisterAction.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.RegisterAction;return proto.sys.RegisterAction.deserializeBinaryFromReader(o,t)},proto.sys.RegisterAction.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readInt32();e.setReg(o);break;case 2:o=t.readInt32();e.setVal(o);break;case 3:o=t.readEnum();e.setMode(o);break;default:t.skipField()}}return e},proto.sys.RegisterAction.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.RegisterAction.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.RegisterAction.serializeBinaryToWriter=function(e,t){var o=void 0;0!==(o=e.getReg())&&t.writeInt32(1,o),0!==(o=e.getVal())&&t.writeInt32(2,o),0!==(o=e.getMode())&&t.writeEnum(3,o)},proto.sys.RegisterAction.prototype.getReg=function(){return s.Message.getFieldWithDefault(this,1,0)},proto.sys.RegisterAction.prototype.setReg=function(e){return s.Message.setProto3IntField(this,1,e)},proto.sys.RegisterAction.prototype.getVal=function(){return s.Message.getFieldWithDefault(this,2,0)},proto.sys.RegisterAction.prototype.setVal=function(e){return s.Message.setProto3IntField(this,2,e)},proto.sys.RegisterAction.prototype.getMode=function(){return s.Message.getFieldWithDefault(this,3,0)},proto.sys.RegisterAction.prototype.setMode=function(e){return s.Message.setProto3EnumField(this,3,e)},s.Message.GENERATE_TO_OBJECT&&(proto.sys.GpioAction.prototype.toObject=function(e){return proto.sys.GpioAction.toObject(e,this)},proto.sys.GpioAction.toObject=function(e,t){var o={gpio:s.Message.getFieldWithDefault(t,1,0),level:s.Message.getFieldWithDefault(t,2,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.sys.GpioAction.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.GpioAction;return proto.sys.GpioAction.deserializeBinaryFromReader(o,t)},proto.sys.GpioAction.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readInt32();e.setGpio(o);break;case 2:o=t.readEnum();e.setLevel(o);break;default:t.skipField()}}return e},proto.sys.GpioAction.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.GpioAction.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.GpioAction.serializeBinaryToWriter=function(e,t){var o=void 0;0!==(o=e.getGpio())&&t.writeInt32(1,o),0!==(o=e.getLevel())&&t.writeEnum(2,o)},proto.sys.GpioAction.prototype.getGpio=function(){return s.Message.getFieldWithDefault(this,1,0)},proto.sys.GpioAction.prototype.setGpio=function(e){return s.Message.setProto3IntField(this,1,e)},proto.sys.GpioAction.prototype.getLevel=function(){return s.Message.getFieldWithDefault(this,2,0)},proto.sys.GpioAction.prototype.setLevel=function(e){return s.Message.setProto3EnumField(this,2,e)},s.Message.GENERATE_TO_OBJECT&&(proto.sys.DelayAction.prototype.toObject=function(e){return proto.sys.DelayAction.toObject(e,this)},proto.sys.DelayAction.toObject=function(e,t){var o={delay:s.Message.getFieldWithDefault(t,1,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.sys.DelayAction.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.DelayAction;return proto.sys.DelayAction.deserializeBinaryFromReader(o,t)},proto.sys.DelayAction.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var o=t.readInt32();e.setDelay(o)}else t.skipField()}return e},proto.sys.DelayAction.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.DelayAction.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.DelayAction.serializeBinaryToWriter=function(e,t){var o;0!==(o=e.getDelay())&&t.writeInt32(1,o)},proto.sys.DelayAction.prototype.getDelay=function(){return s.Message.getFieldWithDefault(this,1,0)},proto.sys.DelayAction.prototype.setDelay=function(e){return s.Message.setProto3IntField(this,1,e)},proto.sys.ControlCommandType={INIT:0,POWER_ON:1,POWER_OFF:2,SPEAKER_ON:3,SPEAKER_OFF:4,HEADSET_ON:5,HEADSET_OFF:6},proto.sys.GpioActionLevel={ACTION_LEVEL_UNDEFINED:0,ACTION_LEVEL_1:1,ACTION_LEVEL_0:2},proto.sys.Mode={REG_MODE_NOTHING:0,REG_MODE_OR:1,REG_MODE_AND:2},r.object.extend(t,proto.sys)},5437:(e,t,o)=>{var s=o(3019),r=s,i="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof window&&window||void 0!==i&&i||"undefined"!=typeof self&&self||function(){return this}.call(null)||Function("return this")(),n=o(7567);r.object.extend(proto,n);var a=o(2038);r.object.extend(proto,a);var p=o(2035);r.object.extend(proto,p);var l=o(7284);r.object.extend(proto,l);var u=o(874);r.object.extend(proto,u);var y=o(7794);r.object.extend(proto,y);var d=o(6746);r.object.extend(proto,d);var c=o(9716);r.object.extend(proto,c);var g=o(3021);r.object.extend(proto,g),r.exportSymbol("proto.sys.Dev",null,i),r.exportSymbol("proto.sys.Infrared",null,i),r.exportSymbol("proto.sys.InfraredType",null,i),r.exportSymbol("proto.sys.LEDStrip",null,i),r.exportSymbol("proto.sys.LEDStripType",null,i),r.exportSymbol("proto.sys.SPDIF",null,i),r.exportSymbol("proto.sys.SPIBus",null,i),proto.sys.SPDIF=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.SPDIF,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.SPDIF.displayName="proto.sys.SPDIF"),proto.sys.SPIBus=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.SPIBus,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.SPIBus.displayName="proto.sys.SPIBus"),proto.sys.LEDStrip=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.LEDStrip,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.LEDStrip.displayName="proto.sys.LEDStrip"),proto.sys.Infrared=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.Infrared,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.Infrared.displayName="proto.sys.Infrared"),proto.sys.Dev=function(e){s.Message.initialize(this,e,0,-1,proto.sys.Dev.repeatedFields_,null)},r.inherits(proto.sys.Dev,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.Dev.displayName="proto.sys.Dev"),s.Message.GENERATE_TO_OBJECT&&(proto.sys.SPDIF.prototype.toObject=function(e){return proto.sys.SPDIF.toObject(e,this)},proto.sys.SPDIF.toObject=function(e,t){var o,s={ws:(o=t.getWs())&&n.GPIO.toObject(e,o),data:(o=t.getData())&&n.GPIO.toObject(e,o),clk:(o=t.getClk())&&n.GPIO.toObject(e,o)};return e&&(s.$jspbMessageInstance=t),s}),proto.sys.SPDIF.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.SPDIF;return proto.sys.SPDIF.deserializeBinaryFromReader(o,t)},proto.sys.SPDIF.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new n.GPIO;t.readMessage(o,n.GPIO.deserializeBinaryFromReader),e.setWs(o);break;case 2:o=new n.GPIO;t.readMessage(o,n.GPIO.deserializeBinaryFromReader),e.setData(o);break;case 3:o=new n.GPIO;t.readMessage(o,n.GPIO.deserializeBinaryFromReader),e.setClk(o);break;default:t.skipField()}}return e},proto.sys.SPDIF.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.SPDIF.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.SPDIF.serializeBinaryToWriter=function(e,t){var o=void 0;null!=(o=e.getWs())&&t.writeMessage(1,o,n.GPIO.serializeBinaryToWriter),null!=(o=e.getData())&&t.writeMessage(2,o,n.GPIO.serializeBinaryToWriter),null!=(o=e.getClk())&&t.writeMessage(3,o,n.GPIO.serializeBinaryToWriter)},proto.sys.SPDIF.prototype.getWs=function(){return s.Message.getWrapperField(this,n.GPIO,1)},proto.sys.SPDIF.prototype.setWs=function(e){return s.Message.setWrapperField(this,1,e)},proto.sys.SPDIF.prototype.clearWs=function(){return this.setWs(void 0)},proto.sys.SPDIF.prototype.hasWs=function(){return null!=s.Message.getField(this,1)},proto.sys.SPDIF.prototype.getData=function(){return s.Message.getWrapperField(this,n.GPIO,2)},proto.sys.SPDIF.prototype.setData=function(e){return s.Message.setWrapperField(this,2,e)},proto.sys.SPDIF.prototype.clearData=function(){return this.setData(void 0)},proto.sys.SPDIF.prototype.hasData=function(){return null!=s.Message.getField(this,2)},proto.sys.SPDIF.prototype.getClk=function(){return s.Message.getWrapperField(this,n.GPIO,3)},proto.sys.SPDIF.prototype.setClk=function(e){return s.Message.setWrapperField(this,3,e)},proto.sys.SPDIF.prototype.clearClk=function(){return this.setClk(void 0)},proto.sys.SPDIF.prototype.hasClk=function(){return null!=s.Message.getField(this,3)},s.Message.GENERATE_TO_OBJECT&&(proto.sys.SPIBus.prototype.toObject=function(e){return proto.sys.SPIBus.toObject(e,this)},proto.sys.SPIBus.toObject=function(e,t){var o,r={mosi:(o=t.getMosi())&&n.GPIO.toObject(e,o),miso:(o=t.getMiso())&&n.GPIO.toObject(e,o),clk:(o=t.getClk())&&n.GPIO.toObject(e,o),dc:(o=t.getDc())&&n.GPIO.toObject(e,o),host:s.Message.getFieldWithDefault(t,5,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.sys.SPIBus.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.SPIBus;return proto.sys.SPIBus.deserializeBinaryFromReader(o,t)},proto.sys.SPIBus.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new n.GPIO;t.readMessage(o,n.GPIO.deserializeBinaryFromReader),e.setMosi(o);break;case 2:o=new n.GPIO;t.readMessage(o,n.GPIO.deserializeBinaryFromReader),e.setMiso(o);break;case 3:o=new n.GPIO;t.readMessage(o,n.GPIO.deserializeBinaryFromReader),e.setClk(o);break;case 4:o=new n.GPIO;t.readMessage(o,n.GPIO.deserializeBinaryFromReader),e.setDc(o);break;case 5:o=t.readEnum();e.setHost(o);break;default:t.skipField()}}return e},proto.sys.SPIBus.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.SPIBus.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.SPIBus.serializeBinaryToWriter=function(e,t){var o=void 0;null!=(o=e.getMosi())&&t.writeMessage(1,o,n.GPIO.serializeBinaryToWriter),null!=(o=e.getMiso())&&t.writeMessage(2,o,n.GPIO.serializeBinaryToWriter),null!=(o=e.getClk())&&t.writeMessage(3,o,n.GPIO.serializeBinaryToWriter),null!=(o=e.getDc())&&t.writeMessage(4,o,n.GPIO.serializeBinaryToWriter),0!==(o=e.getHost())&&t.writeEnum(5,o)},proto.sys.SPIBus.prototype.getMosi=function(){return s.Message.getWrapperField(this,n.GPIO,1)},proto.sys.SPIBus.prototype.setMosi=function(e){return s.Message.setWrapperField(this,1,e)},proto.sys.SPIBus.prototype.clearMosi=function(){return this.setMosi(void 0)},proto.sys.SPIBus.prototype.hasMosi=function(){return null!=s.Message.getField(this,1)},proto.sys.SPIBus.prototype.getMiso=function(){return s.Message.getWrapperField(this,n.GPIO,2)},proto.sys.SPIBus.prototype.setMiso=function(e){return s.Message.setWrapperField(this,2,e)},proto.sys.SPIBus.prototype.clearMiso=function(){return this.setMiso(void 0)},proto.sys.SPIBus.prototype.hasMiso=function(){return null!=s.Message.getField(this,2)},proto.sys.SPIBus.prototype.getClk=function(){return s.Message.getWrapperField(this,n.GPIO,3)},proto.sys.SPIBus.prototype.setClk=function(e){return s.Message.setWrapperField(this,3,e)},proto.sys.SPIBus.prototype.clearClk=function(){return this.setClk(void 0)},proto.sys.SPIBus.prototype.hasClk=function(){return null!=s.Message.getField(this,3)},proto.sys.SPIBus.prototype.getDc=function(){return s.Message.getWrapperField(this,n.GPIO,4)},proto.sys.SPIBus.prototype.setDc=function(e){return s.Message.setWrapperField(this,4,e)},proto.sys.SPIBus.prototype.clearDc=function(){return this.setDc(void 0)},proto.sys.SPIBus.prototype.hasDc=function(){return null!=s.Message.getField(this,4)},proto.sys.SPIBus.prototype.getHost=function(){return s.Message.getFieldWithDefault(this,5,0)},proto.sys.SPIBus.prototype.setHost=function(e){return s.Message.setProto3EnumField(this,5,e)},s.Message.GENERATE_TO_OBJECT&&(proto.sys.LEDStrip.prototype.toObject=function(e){return proto.sys.LEDStrip.toObject(e,this)},proto.sys.LEDStrip.toObject=function(e,t){var o,r={gpio:(o=t.getGpio())&&n.GPIO.toObject(e,o),length:s.Message.getFieldWithDefault(t,2,0),stripType:s.Message.getFieldWithDefault(t,3,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.sys.LEDStrip.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.LEDStrip;return proto.sys.LEDStrip.deserializeBinaryFromReader(o,t)},proto.sys.LEDStrip.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new n.GPIO;t.readMessage(o,n.GPIO.deserializeBinaryFromReader),e.setGpio(o);break;case 2:o=t.readInt32();e.setLength(o);break;case 3:o=t.readEnum();e.setStripType(o);break;default:t.skipField()}}return e},proto.sys.LEDStrip.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.LEDStrip.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.LEDStrip.serializeBinaryToWriter=function(e,t){var o=void 0;null!=(o=e.getGpio())&&t.writeMessage(1,o,n.GPIO.serializeBinaryToWriter),0!==(o=e.getLength())&&t.writeInt32(2,o),0!==(o=e.getStripType())&&t.writeEnum(3,o)},proto.sys.LEDStrip.prototype.getGpio=function(){return s.Message.getWrapperField(this,n.GPIO,1)},proto.sys.LEDStrip.prototype.setGpio=function(e){return s.Message.setWrapperField(this,1,e)},proto.sys.LEDStrip.prototype.clearGpio=function(){return this.setGpio(void 0)},proto.sys.LEDStrip.prototype.hasGpio=function(){return null!=s.Message.getField(this,1)},proto.sys.LEDStrip.prototype.getLength=function(){return s.Message.getFieldWithDefault(this,2,0)},proto.sys.LEDStrip.prototype.setLength=function(e){return s.Message.setProto3IntField(this,2,e)},proto.sys.LEDStrip.prototype.getStripType=function(){return s.Message.getFieldWithDefault(this,3,0)},proto.sys.LEDStrip.prototype.setStripType=function(e){return s.Message.setProto3EnumField(this,3,e)},s.Message.GENERATE_TO_OBJECT&&(proto.sys.Infrared.prototype.toObject=function(e){return proto.sys.Infrared.toObject(e,this)},proto.sys.Infrared.toObject=function(e,t){var o,r={type:s.Message.getFieldWithDefault(t,1,0),gpio:(o=t.getGpio())&&n.GPIO.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.sys.Infrared.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.Infrared;return proto.sys.Infrared.deserializeBinaryFromReader(o,t)},proto.sys.Infrared.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readEnum();e.setType(o);break;case 2:o=new n.GPIO;t.readMessage(o,n.GPIO.deserializeBinaryFromReader),e.setGpio(o);break;default:t.skipField()}}return e},proto.sys.Infrared.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.Infrared.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.Infrared.serializeBinaryToWriter=function(e,t){var o=void 0;0!==(o=e.getType())&&t.writeEnum(1,o),null!=(o=e.getGpio())&&t.writeMessage(2,o,n.GPIO.serializeBinaryToWriter)},proto.sys.Infrared.prototype.getType=function(){return s.Message.getFieldWithDefault(this,1,0)},proto.sys.Infrared.prototype.setType=function(e){return s.Message.setProto3EnumField(this,1,e)},proto.sys.Infrared.prototype.getGpio=function(){return s.Message.getWrapperField(this,n.GPIO,2)},proto.sys.Infrared.prototype.setGpio=function(e){return s.Message.setWrapperField(this,2,e)},proto.sys.Infrared.prototype.clearGpio=function(){return this.setGpio(void 0)},proto.sys.Infrared.prototype.hasGpio=function(){return null!=s.Message.getField(this,2)},proto.sys.Dev.repeatedFields_=[6,9],s.Message.GENERATE_TO_OBJECT&&(proto.sys.Dev.prototype.toObject=function(e){return proto.sys.Dev.toObject(e,this)},proto.sys.Dev.toObject=function(e,t){var o,r={spi:(o=t.getSpi())&&proto.sys.SPIBus.toObject(e,o),i2c:(o=t.getI2c())&&p.I2CBus.toObject(e,o),dac:(o=t.getDac())&&l.DAC.toObject(e,o),spdif:(o=t.getSpdif())&&proto.sys.SPDIF.toObject(e,o),display:(o=t.getDisplay())&&u.Display.toObject(e,o),gpioExpList:s.Message.toObjectList(t.getGpioExpList(),n.GPIOExp.toObject,e),ledStrip:(o=t.getLedStrip())&&proto.sys.LEDStrip.toObject(e,o),rotary:(o=t.getRotary())&&y.Rotary.toObject(e,o),buttonsList:s.Message.toObjectList(t.getButtonsList(),y.ButtonProfile.toObject,e),eth:(o=t.getEth())&&c.Eth.toObject(e,o),battery:(o=t.getBattery())&&d.Battery.toObject(e,o),ir:(o=t.getIr())&&proto.sys.Infrared.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.sys.Dev.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.Dev;return proto.sys.Dev.deserializeBinaryFromReader(o,t)},proto.sys.Dev.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new proto.sys.SPIBus;t.readMessage(o,proto.sys.SPIBus.deserializeBinaryFromReader),e.setSpi(o);break;case 2:o=new p.I2CBus;t.readMessage(o,p.I2CBus.deserializeBinaryFromReader),e.setI2c(o);break;case 3:o=new l.DAC;t.readMessage(o,l.DAC.deserializeBinaryFromReader),e.setDac(o);break;case 4:o=new proto.sys.SPDIF;t.readMessage(o,proto.sys.SPDIF.deserializeBinaryFromReader),e.setSpdif(o);break;case 5:o=new u.Display;t.readMessage(o,u.Display.deserializeBinaryFromReader),e.setDisplay(o);break;case 6:o=new n.GPIOExp;t.readMessage(o,n.GPIOExp.deserializeBinaryFromReader),e.addGpioExp(o);break;case 7:o=new proto.sys.LEDStrip;t.readMessage(o,proto.sys.LEDStrip.deserializeBinaryFromReader),e.setLedStrip(o);break;case 8:o=new y.Rotary;t.readMessage(o,y.Rotary.deserializeBinaryFromReader),e.setRotary(o);break;case 9:o=new y.ButtonProfile;t.readMessage(o,y.ButtonProfile.deserializeBinaryFromReader),e.addButtons(o);break;case 10:o=new c.Eth;t.readMessage(o,c.Eth.deserializeBinaryFromReader),e.setEth(o);break;case 11:o=new d.Battery;t.readMessage(o,d.Battery.deserializeBinaryFromReader),e.setBattery(o);break;case 12:o=new proto.sys.Infrared;t.readMessage(o,proto.sys.Infrared.deserializeBinaryFromReader),e.setIr(o);break;default:t.skipField()}}return e},proto.sys.Dev.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.Dev.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.Dev.serializeBinaryToWriter=function(e,t){var o=void 0;null!=(o=e.getSpi())&&t.writeMessage(1,o,proto.sys.SPIBus.serializeBinaryToWriter),null!=(o=e.getI2c())&&t.writeMessage(2,o,p.I2CBus.serializeBinaryToWriter),null!=(o=e.getDac())&&t.writeMessage(3,o,l.DAC.serializeBinaryToWriter),null!=(o=e.getSpdif())&&t.writeMessage(4,o,proto.sys.SPDIF.serializeBinaryToWriter),null!=(o=e.getDisplay())&&t.writeMessage(5,o,u.Display.serializeBinaryToWriter),(o=e.getGpioExpList()).length>0&&t.writeRepeatedMessage(6,o,n.GPIOExp.serializeBinaryToWriter),null!=(o=e.getLedStrip())&&t.writeMessage(7,o,proto.sys.LEDStrip.serializeBinaryToWriter),null!=(o=e.getRotary())&&t.writeMessage(8,o,y.Rotary.serializeBinaryToWriter),(o=e.getButtonsList()).length>0&&t.writeRepeatedMessage(9,o,y.ButtonProfile.serializeBinaryToWriter),null!=(o=e.getEth())&&t.writeMessage(10,o,c.Eth.serializeBinaryToWriter),null!=(o=e.getBattery())&&t.writeMessage(11,o,d.Battery.serializeBinaryToWriter),null!=(o=e.getIr())&&t.writeMessage(12,o,proto.sys.Infrared.serializeBinaryToWriter)},proto.sys.Dev.prototype.getSpi=function(){return s.Message.getWrapperField(this,proto.sys.SPIBus,1)},proto.sys.Dev.prototype.setSpi=function(e){return s.Message.setWrapperField(this,1,e)},proto.sys.Dev.prototype.clearSpi=function(){return this.setSpi(void 0)},proto.sys.Dev.prototype.hasSpi=function(){return null!=s.Message.getField(this,1)},proto.sys.Dev.prototype.getI2c=function(){return s.Message.getWrapperField(this,p.I2CBus,2)},proto.sys.Dev.prototype.setI2c=function(e){return s.Message.setWrapperField(this,2,e)},proto.sys.Dev.prototype.clearI2c=function(){return this.setI2c(void 0)},proto.sys.Dev.prototype.hasI2c=function(){return null!=s.Message.getField(this,2)},proto.sys.Dev.prototype.getDac=function(){return s.Message.getWrapperField(this,l.DAC,3)},proto.sys.Dev.prototype.setDac=function(e){return s.Message.setWrapperField(this,3,e)},proto.sys.Dev.prototype.clearDac=function(){return this.setDac(void 0)},proto.sys.Dev.prototype.hasDac=function(){return null!=s.Message.getField(this,3)},proto.sys.Dev.prototype.getSpdif=function(){return s.Message.getWrapperField(this,proto.sys.SPDIF,4)},proto.sys.Dev.prototype.setSpdif=function(e){return s.Message.setWrapperField(this,4,e)},proto.sys.Dev.prototype.clearSpdif=function(){return this.setSpdif(void 0)},proto.sys.Dev.prototype.hasSpdif=function(){return null!=s.Message.getField(this,4)},proto.sys.Dev.prototype.getDisplay=function(){return s.Message.getWrapperField(this,u.Display,5)},proto.sys.Dev.prototype.setDisplay=function(e){return s.Message.setWrapperField(this,5,e)},proto.sys.Dev.prototype.clearDisplay=function(){return this.setDisplay(void 0)},proto.sys.Dev.prototype.hasDisplay=function(){return null!=s.Message.getField(this,5)},proto.sys.Dev.prototype.getGpioExpList=function(){return s.Message.getRepeatedWrapperField(this,n.GPIOExp,6)},proto.sys.Dev.prototype.setGpioExpList=function(e){return s.Message.setRepeatedWrapperField(this,6,e)},proto.sys.Dev.prototype.addGpioExp=function(e,t){return s.Message.addToRepeatedWrapperField(this,6,e,proto.sys.GPIOExp,t)},proto.sys.Dev.prototype.clearGpioExpList=function(){return this.setGpioExpList([])},proto.sys.Dev.prototype.getLedStrip=function(){return s.Message.getWrapperField(this,proto.sys.LEDStrip,7)},proto.sys.Dev.prototype.setLedStrip=function(e){return s.Message.setWrapperField(this,7,e)},proto.sys.Dev.prototype.clearLedStrip=function(){return this.setLedStrip(void 0)},proto.sys.Dev.prototype.hasLedStrip=function(){return null!=s.Message.getField(this,7)},proto.sys.Dev.prototype.getRotary=function(){return s.Message.getWrapperField(this,y.Rotary,8)},proto.sys.Dev.prototype.setRotary=function(e){return s.Message.setWrapperField(this,8,e)},proto.sys.Dev.prototype.clearRotary=function(){return this.setRotary(void 0)},proto.sys.Dev.prototype.hasRotary=function(){return null!=s.Message.getField(this,8)},proto.sys.Dev.prototype.getButtonsList=function(){return s.Message.getRepeatedWrapperField(this,y.ButtonProfile,9)},proto.sys.Dev.prototype.setButtonsList=function(e){return s.Message.setRepeatedWrapperField(this,9,e)},proto.sys.Dev.prototype.addButtons=function(e,t){return s.Message.addToRepeatedWrapperField(this,9,e,proto.sys.ButtonProfile,t)},proto.sys.Dev.prototype.clearButtonsList=function(){return this.setButtonsList([])},proto.sys.Dev.prototype.getEth=function(){return s.Message.getWrapperField(this,c.Eth,10)},proto.sys.Dev.prototype.setEth=function(e){return s.Message.setWrapperField(this,10,e)},proto.sys.Dev.prototype.clearEth=function(){return this.setEth(void 0)},proto.sys.Dev.prototype.hasEth=function(){return null!=s.Message.getField(this,10)},proto.sys.Dev.prototype.getBattery=function(){return s.Message.getWrapperField(this,d.Battery,11)},proto.sys.Dev.prototype.setBattery=function(e){return s.Message.setWrapperField(this,11,e)},proto.sys.Dev.prototype.clearBattery=function(){return this.setBattery(void 0)},proto.sys.Dev.prototype.hasBattery=function(){return null!=s.Message.getField(this,11)},proto.sys.Dev.prototype.getIr=function(){return s.Message.getWrapperField(this,proto.sys.Infrared,12)},proto.sys.Dev.prototype.setIr=function(e){return s.Message.setWrapperField(this,12,e)},proto.sys.Dev.prototype.clearIr=function(){return this.setIr(void 0)},proto.sys.Dev.prototype.hasIr=function(){return null!=s.Message.getField(this,12)},proto.sys.LEDStripType={LS_UNKNOWN:0,LS_WS2812:1,LS_SK6812:2,LS_APA106:3},proto.sys.InfraredType={IR_UNKNOWN:0,IR_RC5:1,IR_NEC:2},r.object.extend(t,proto.sys)},874:(e,t,o)=>{var s=o(3019),r=s,i="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof window&&window||void 0!==i&&i||"undefined"!=typeof self&&self||function(){return this}.call(null)||Function("return this")(),n=o(7567);r.object.extend(proto,n);var a=o(2038);r.object.extend(proto,a);var p=o(3021);r.object.extend(proto,p),r.exportSymbol("proto.sys.DispCommon",null,i),r.exportSymbol("proto.sys.DispOffsets",null,i),r.exportSymbol("proto.sys.Display",null,i),r.exportSymbol("proto.sys.Display.DisptypeCase",null,i),r.exportSymbol("proto.sys.DisplayDriverEnum",null,i),r.exportSymbol("proto.sys.I2CDisplay",null,i),r.exportSymbol("proto.sys.SPIDisplay",null,i),proto.sys.DispOffsets=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.DispOffsets,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.DispOffsets.displayName="proto.sys.DispOffsets"),proto.sys.I2CDisplay=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.I2CDisplay,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.I2CDisplay.displayName="proto.sys.I2CDisplay"),proto.sys.SPIDisplay=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.SPIDisplay,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.SPIDisplay.displayName="proto.sys.SPIDisplay"),proto.sys.DispCommon=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.DispCommon,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.DispCommon.displayName="proto.sys.DispCommon"),proto.sys.Display=function(e){s.Message.initialize(this,e,0,-1,null,proto.sys.Display.oneofGroups_)},r.inherits(proto.sys.Display,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.Display.displayName="proto.sys.Display"),s.Message.GENERATE_TO_OBJECT&&(proto.sys.DispOffsets.prototype.toObject=function(e){return proto.sys.DispOffsets.toObject(e,this)},proto.sys.DispOffsets.toObject=function(e,t){var o={height:s.Message.getFieldWithDefault(t,1,0),width:s.Message.getFieldWithDefault(t,2,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.sys.DispOffsets.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.DispOffsets;return proto.sys.DispOffsets.deserializeBinaryFromReader(o,t)},proto.sys.DispOffsets.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readInt32();e.setHeight(o);break;case 2:o=t.readInt32();e.setWidth(o);break;default:t.skipField()}}return e},proto.sys.DispOffsets.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.DispOffsets.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.DispOffsets.serializeBinaryToWriter=function(e,t){var o=void 0;0!==(o=e.getHeight())&&t.writeInt32(1,o),0!==(o=e.getWidth())&&t.writeInt32(2,o)},proto.sys.DispOffsets.prototype.getHeight=function(){return s.Message.getFieldWithDefault(this,1,0)},proto.sys.DispOffsets.prototype.setHeight=function(e){return s.Message.setProto3IntField(this,1,e)},proto.sys.DispOffsets.prototype.getWidth=function(){return s.Message.getFieldWithDefault(this,2,0)},proto.sys.DispOffsets.prototype.setWidth=function(e){return s.Message.setProto3IntField(this,2,e)},s.Message.GENERATE_TO_OBJECT&&(proto.sys.I2CDisplay.prototype.toObject=function(e){return proto.sys.I2CDisplay.toObject(e,this)},proto.sys.I2CDisplay.toObject=function(e,t){var o={address:s.Message.getFieldWithDefault(t,1,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.sys.I2CDisplay.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.I2CDisplay;return proto.sys.I2CDisplay.deserializeBinaryFromReader(o,t)},proto.sys.I2CDisplay.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(1===t.getFieldNumber()){var o=t.readInt32();e.setAddress(o)}else t.skipField()}return e},proto.sys.I2CDisplay.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.I2CDisplay.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.I2CDisplay.serializeBinaryToWriter=function(e,t){var o;0!==(o=e.getAddress())&&t.writeInt32(1,o)},proto.sys.I2CDisplay.prototype.getAddress=function(){return s.Message.getFieldWithDefault(this,1,0)},proto.sys.I2CDisplay.prototype.setAddress=function(e){return s.Message.setProto3IntField(this,1,e)},s.Message.GENERATE_TO_OBJECT&&(proto.sys.SPIDisplay.prototype.toObject=function(e){return proto.sys.SPIDisplay.toObject(e,this)},proto.sys.SPIDisplay.toObject=function(e,t){var o,r={cs:(o=t.getCs())&&n.GPIO.toObject(e,o),speed:s.Message.getFieldWithDefault(t,4,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.sys.SPIDisplay.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.SPIDisplay;return proto.sys.SPIDisplay.deserializeBinaryFromReader(o,t)},proto.sys.SPIDisplay.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new n.GPIO;t.readMessage(o,n.GPIO.deserializeBinaryFromReader),e.setCs(o);break;case 4:o=t.readInt32();e.setSpeed(o);break;default:t.skipField()}}return e},proto.sys.SPIDisplay.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.SPIDisplay.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.SPIDisplay.serializeBinaryToWriter=function(e,t){var o=void 0;null!=(o=e.getCs())&&t.writeMessage(1,o,n.GPIO.serializeBinaryToWriter),0!==(o=e.getSpeed())&&t.writeInt32(4,o)},proto.sys.SPIDisplay.prototype.getCs=function(){return s.Message.getWrapperField(this,n.GPIO,1)},proto.sys.SPIDisplay.prototype.setCs=function(e){return s.Message.setWrapperField(this,1,e)},proto.sys.SPIDisplay.prototype.clearCs=function(){return this.setCs(void 0)},proto.sys.SPIDisplay.prototype.hasCs=function(){return null!=s.Message.getField(this,1)},proto.sys.SPIDisplay.prototype.getSpeed=function(){return s.Message.getFieldWithDefault(this,4,0)},proto.sys.SPIDisplay.prototype.setSpeed=function(e){return s.Message.setProto3IntField(this,4,e)},s.Message.GENERATE_TO_OBJECT&&(proto.sys.DispCommon.prototype.toObject=function(e){return proto.sys.DispCommon.toObject(e,this)},proto.sys.DispCommon.toObject=function(e,t){var o,r={width:s.Message.getFieldWithDefault(t,1,0),height:s.Message.getFieldWithDefault(t,2,0),hflip:s.Message.getBooleanFieldWithDefault(t,3,!1),vflip:s.Message.getBooleanFieldWithDefault(t,4,!1),driver:s.Message.getFieldWithDefault(t,5,0),bitdepth:s.Message.getFieldWithDefault(t,6,0),back:(o=t.getBack())&&n.GPIO.toObject(e,o),reset:(o=t.getReset())&&n.GPIO.toObject(e,o),ready:(o=t.getReady())&&n.GPIO.toObject(e,o),offsets:(o=t.getOffsets())&&proto.sys.DispOffsets.toObject(e,o),rotate:s.Message.getBooleanFieldWithDefault(t,11,!1),invert:s.Message.getBooleanFieldWithDefault(t,12,!1),colowSwap:s.Message.getBooleanFieldWithDefault(t,13,!1)};return e&&(r.$jspbMessageInstance=t),r}),proto.sys.DispCommon.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.DispCommon;return proto.sys.DispCommon.deserializeBinaryFromReader(o,t)},proto.sys.DispCommon.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readInt32();e.setWidth(o);break;case 2:o=t.readInt32();e.setHeight(o);break;case 3:o=t.readBool();e.setHflip(o);break;case 4:o=t.readBool();e.setVflip(o);break;case 5:o=t.readEnum();e.setDriver(o);break;case 6:o=t.readInt32();e.setBitdepth(o);break;case 7:o=new n.GPIO;t.readMessage(o,n.GPIO.deserializeBinaryFromReader),e.setBack(o);break;case 8:o=new n.GPIO;t.readMessage(o,n.GPIO.deserializeBinaryFromReader),e.setReset(o);break;case 9:o=new n.GPIO;t.readMessage(o,n.GPIO.deserializeBinaryFromReader),e.setReady(o);break;case 10:o=new proto.sys.DispOffsets;t.readMessage(o,proto.sys.DispOffsets.deserializeBinaryFromReader),e.setOffsets(o);break;case 11:o=t.readBool();e.setRotate(o);break;case 12:o=t.readBool();e.setInvert(o);break;case 13:o=t.readBool();e.setColowSwap(o);break;default:t.skipField()}}return e},proto.sys.DispCommon.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.DispCommon.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.DispCommon.serializeBinaryToWriter=function(e,t){var o=void 0;0!==(o=e.getWidth())&&t.writeInt32(1,o),0!==(o=e.getHeight())&&t.writeInt32(2,o),(o=e.getHflip())&&t.writeBool(3,o),(o=e.getVflip())&&t.writeBool(4,o),0!==(o=e.getDriver())&&t.writeEnum(5,o),0!==(o=e.getBitdepth())&&t.writeInt32(6,o),null!=(o=e.getBack())&&t.writeMessage(7,o,n.GPIO.serializeBinaryToWriter),null!=(o=e.getReset())&&t.writeMessage(8,o,n.GPIO.serializeBinaryToWriter),null!=(o=e.getReady())&&t.writeMessage(9,o,n.GPIO.serializeBinaryToWriter),null!=(o=e.getOffsets())&&t.writeMessage(10,o,proto.sys.DispOffsets.serializeBinaryToWriter),(o=e.getRotate())&&t.writeBool(11,o),(o=e.getInvert())&&t.writeBool(12,o),(o=e.getColowSwap())&&t.writeBool(13,o)},proto.sys.DispCommon.prototype.getWidth=function(){return s.Message.getFieldWithDefault(this,1,0)},proto.sys.DispCommon.prototype.setWidth=function(e){return s.Message.setProto3IntField(this,1,e)},proto.sys.DispCommon.prototype.getHeight=function(){return s.Message.getFieldWithDefault(this,2,0)},proto.sys.DispCommon.prototype.setHeight=function(e){return s.Message.setProto3IntField(this,2,e)},proto.sys.DispCommon.prototype.getHflip=function(){return s.Message.getBooleanFieldWithDefault(this,3,!1)},proto.sys.DispCommon.prototype.setHflip=function(e){return s.Message.setProto3BooleanField(this,3,e)},proto.sys.DispCommon.prototype.getVflip=function(){return s.Message.getBooleanFieldWithDefault(this,4,!1)},proto.sys.DispCommon.prototype.setVflip=function(e){return s.Message.setProto3BooleanField(this,4,e)},proto.sys.DispCommon.prototype.getDriver=function(){return s.Message.getFieldWithDefault(this,5,0)},proto.sys.DispCommon.prototype.setDriver=function(e){return s.Message.setProto3EnumField(this,5,e)},proto.sys.DispCommon.prototype.getBitdepth=function(){return s.Message.getFieldWithDefault(this,6,0)},proto.sys.DispCommon.prototype.setBitdepth=function(e){return s.Message.setProto3IntField(this,6,e)},proto.sys.DispCommon.prototype.getBack=function(){return s.Message.getWrapperField(this,n.GPIO,7)},proto.sys.DispCommon.prototype.setBack=function(e){return s.Message.setWrapperField(this,7,e)},proto.sys.DispCommon.prototype.clearBack=function(){return this.setBack(void 0)},proto.sys.DispCommon.prototype.hasBack=function(){return null!=s.Message.getField(this,7)},proto.sys.DispCommon.prototype.getReset=function(){return s.Message.getWrapperField(this,n.GPIO,8)},proto.sys.DispCommon.prototype.setReset=function(e){return s.Message.setWrapperField(this,8,e)},proto.sys.DispCommon.prototype.clearReset=function(){return this.setReset(void 0)},proto.sys.DispCommon.prototype.hasReset=function(){return null!=s.Message.getField(this,8)},proto.sys.DispCommon.prototype.getReady=function(){return s.Message.getWrapperField(this,n.GPIO,9)},proto.sys.DispCommon.prototype.setReady=function(e){return s.Message.setWrapperField(this,9,e)},proto.sys.DispCommon.prototype.clearReady=function(){return this.setReady(void 0)},proto.sys.DispCommon.prototype.hasReady=function(){return null!=s.Message.getField(this,9)},proto.sys.DispCommon.prototype.getOffsets=function(){return s.Message.getWrapperField(this,proto.sys.DispOffsets,10)},proto.sys.DispCommon.prototype.setOffsets=function(e){return s.Message.setWrapperField(this,10,e)},proto.sys.DispCommon.prototype.clearOffsets=function(){return this.setOffsets(void 0)},proto.sys.DispCommon.prototype.hasOffsets=function(){return null!=s.Message.getField(this,10)},proto.sys.DispCommon.prototype.getRotate=function(){return s.Message.getBooleanFieldWithDefault(this,11,!1)},proto.sys.DispCommon.prototype.setRotate=function(e){return s.Message.setProto3BooleanField(this,11,e)},proto.sys.DispCommon.prototype.getInvert=function(){return s.Message.getBooleanFieldWithDefault(this,12,!1)},proto.sys.DispCommon.prototype.setInvert=function(e){return s.Message.setProto3BooleanField(this,12,e)},proto.sys.DispCommon.prototype.getColowSwap=function(){return s.Message.getBooleanFieldWithDefault(this,13,!1)},proto.sys.DispCommon.prototype.setColowSwap=function(e){return s.Message.setProto3BooleanField(this,13,e)},proto.sys.Display.oneofGroups_=[[3,4]],proto.sys.Display.DisptypeCase={DISPTYPE_NOT_SET:0,I2C:3,SPI:4},proto.sys.Display.prototype.getDisptypeCase=function(){return s.Message.computeOneofCase(this,proto.sys.Display.oneofGroups_[0])},s.Message.GENERATE_TO_OBJECT&&(proto.sys.Display.prototype.toObject=function(e){return proto.sys.Display.toObject(e,this)},proto.sys.Display.toObject=function(e,t){var o,r={type:s.Message.getFieldWithDefault(t,1,0),common:(o=t.getCommon())&&proto.sys.DispCommon.toObject(e,o),i2c:(o=t.getI2c())&&proto.sys.I2CDisplay.toObject(e,o),spi:(o=t.getSpi())&&proto.sys.SPIDisplay.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.sys.Display.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.Display;return proto.sys.Display.deserializeBinaryFromReader(o,t)},proto.sys.Display.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readEnum();e.setType(o);break;case 2:o=new proto.sys.DispCommon;t.readMessage(o,proto.sys.DispCommon.deserializeBinaryFromReader),e.setCommon(o);break;case 3:o=new proto.sys.I2CDisplay;t.readMessage(o,proto.sys.I2CDisplay.deserializeBinaryFromReader),e.setI2c(o);break;case 4:o=new proto.sys.SPIDisplay;t.readMessage(o,proto.sys.SPIDisplay.deserializeBinaryFromReader),e.setSpi(o);break;default:t.skipField()}}return e},proto.sys.Display.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.Display.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.Display.serializeBinaryToWriter=function(e,t){var o=void 0;0!==(o=e.getType())&&t.writeEnum(1,o),null!=(o=e.getCommon())&&t.writeMessage(2,o,proto.sys.DispCommon.serializeBinaryToWriter),null!=(o=e.getI2c())&&t.writeMessage(3,o,proto.sys.I2CDisplay.serializeBinaryToWriter),null!=(o=e.getSpi())&&t.writeMessage(4,o,proto.sys.SPIDisplay.serializeBinaryToWriter)},proto.sys.Display.prototype.getType=function(){return s.Message.getFieldWithDefault(this,1,0)},proto.sys.Display.prototype.setType=function(e){return s.Message.setProto3EnumField(this,1,e)},proto.sys.Display.prototype.getCommon=function(){return s.Message.getWrapperField(this,proto.sys.DispCommon,2)},proto.sys.Display.prototype.setCommon=function(e){return s.Message.setWrapperField(this,2,e)},proto.sys.Display.prototype.clearCommon=function(){return this.setCommon(void 0)},proto.sys.Display.prototype.hasCommon=function(){return null!=s.Message.getField(this,2)},proto.sys.Display.prototype.getI2c=function(){return s.Message.getWrapperField(this,proto.sys.I2CDisplay,3)},proto.sys.Display.prototype.setI2c=function(e){return s.Message.setOneofWrapperField(this,3,proto.sys.Display.oneofGroups_[0],e)},proto.sys.Display.prototype.clearI2c=function(){return this.setI2c(void 0)},proto.sys.Display.prototype.hasI2c=function(){return null!=s.Message.getField(this,3)},proto.sys.Display.prototype.getSpi=function(){return s.Message.getWrapperField(this,proto.sys.SPIDisplay,4)},proto.sys.Display.prototype.setSpi=function(e){return s.Message.setOneofWrapperField(this,4,proto.sys.Display.oneofGroups_[0],e)},proto.sys.Display.prototype.clearSpi=function(){return this.setSpi(void 0)},proto.sys.Display.prototype.hasSpi=function(){return null!=s.Message.getField(this,4)},proto.sys.DisplayDriverEnum={UNSPECIFIED_DRIVER:0,SSD1306:1,SSD1322:2,SSD1326:3,SSD1327:4,SH1106:5,SSD1675:6,ST7735:7,ST7789:8,ILI9341:9,ILI9341_24:10,SSD1351:11},r.object.extend(t,proto.sys)},190:(e,t,o)=>{var s=o(3019),r=s,i="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof window&&window||void 0!==i&&i||"undefined"!=typeof self&&self||function(){return this}.call(null)||Function("return this")(),n=o(3021);r.object.extend(proto,n),r.exportSymbol("proto.sys.Equalizer",null,i),proto.sys.Equalizer=function(e){s.Message.initialize(this,e,0,-1,proto.sys.Equalizer.repeatedFields_,null)},r.inherits(proto.sys.Equalizer,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.Equalizer.displayName="proto.sys.Equalizer"),proto.sys.Equalizer.repeatedFields_=[1],s.Message.GENERATE_TO_OBJECT&&(proto.sys.Equalizer.prototype.toObject=function(e){return proto.sys.Equalizer.toObject(e,this)},proto.sys.Equalizer.toObject=function(e,t){var o,r={gainsList:null==(o=s.Message.getRepeatedFloatingPointField(t,1))?void 0:o,loudness:s.Message.getFloatingPointFieldWithDefault(t,2,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.sys.Equalizer.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.Equalizer;return proto.sys.Equalizer.deserializeBinaryFromReader(o,t)},proto.sys.Equalizer.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:for(var o=t.isDelimited()?t.readPackedFloat():[t.readFloat()],s=0;s<o.length;s++)e.addGains(o[s]);break;case 2:var r=t.readFloat();e.setLoudness(r);break;default:t.skipField()}}return e},proto.sys.Equalizer.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.Equalizer.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.Equalizer.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getGainsList()).length>0&&t.writePackedFloat(1,o),0!==(o=e.getLoudness())&&t.writeFloat(2,o)},proto.sys.Equalizer.prototype.getGainsList=function(){return s.Message.getRepeatedFloatingPointField(this,1)},proto.sys.Equalizer.prototype.setGainsList=function(e){return s.Message.setField(this,1,e||[])},proto.sys.Equalizer.prototype.addGains=function(e,t){return s.Message.addToRepeatedField(this,1,e,t)},proto.sys.Equalizer.prototype.clearGainsList=function(){return this.setGainsList([])},proto.sys.Equalizer.prototype.getLoudness=function(){return s.Message.getFloatingPointFieldWithDefault(this,2,0)},proto.sys.Equalizer.prototype.setLoudness=function(e){return s.Message.setProto3FloatField(this,2,e)},r.object.extend(t,proto.sys)},9716:(e,t,o)=>{var s=o(3019),r=s,i="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof window&&window||void 0!==i&&i||"undefined"!=typeof self&&self||function(){return this}.call(null)||Function("return this")(),n=o(2038);r.object.extend(proto,n);var a=o(7567);r.object.extend(proto,a);var p=o(3021);r.object.extend(proto,p);var l=o(5465);r.object.extend(proto,l),r.exportSymbol("proto.sys.Eth",null,i),r.exportSymbol("proto.sys.Eth.EthtypeCase",null,i),r.exportSymbol("proto.sys.EthCommon",null,i),r.exportSymbol("proto.sys.EthModelEnum",null,i),r.exportSymbol("proto.sys.EthRMII",null,i),r.exportSymbol("proto.sys.EthSPI",null,i),r.exportSymbol("proto.sys.EthType",null,i),proto.sys.EthCommon=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.EthCommon,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.EthCommon.displayName="proto.sys.EthCommon"),proto.sys.EthSPI=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.EthSPI,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.EthSPI.displayName="proto.sys.EthSPI"),proto.sys.EthRMII=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.EthRMII,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.EthRMII.displayName="proto.sys.EthRMII"),proto.sys.Eth=function(e){s.Message.initialize(this,e,0,-1,null,proto.sys.Eth.oneofGroups_)},r.inherits(proto.sys.Eth,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.Eth.displayName="proto.sys.Eth"),s.Message.GENERATE_TO_OBJECT&&(proto.sys.EthCommon.prototype.toObject=function(e){return proto.sys.EthCommon.toObject(e,this)},proto.sys.EthCommon.toObject=function(e,t){var o,r={model:s.Message.getFieldWithDefault(t,1,0),rst:(o=t.getRst())&&a.GPIO.toObject(e,o),ethtmoutS:s.Message.getFieldWithDefault(t,3,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.sys.EthCommon.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.EthCommon;return proto.sys.EthCommon.deserializeBinaryFromReader(o,t)},proto.sys.EthCommon.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readEnum();e.setModel(o);break;case 2:o=new a.GPIO;t.readMessage(o,a.GPIO.deserializeBinaryFromReader),e.setRst(o);break;case 3:o=t.readUint32();e.setEthtmoutS(o);break;default:t.skipField()}}return e},proto.sys.EthCommon.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.EthCommon.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.EthCommon.serializeBinaryToWriter=function(e,t){var o=void 0;0!==(o=e.getModel())&&t.writeEnum(1,o),null!=(o=e.getRst())&&t.writeMessage(2,o,a.GPIO.serializeBinaryToWriter),0!==(o=e.getEthtmoutS())&&t.writeUint32(3,o)},proto.sys.EthCommon.prototype.getModel=function(){return s.Message.getFieldWithDefault(this,1,0)},proto.sys.EthCommon.prototype.setModel=function(e){return s.Message.setProto3EnumField(this,1,e)},proto.sys.EthCommon.prototype.getRst=function(){return s.Message.getWrapperField(this,a.GPIO,2)},proto.sys.EthCommon.prototype.setRst=function(e){return s.Message.setWrapperField(this,2,e)},proto.sys.EthCommon.prototype.clearRst=function(){return this.setRst(void 0)},proto.sys.EthCommon.prototype.hasRst=function(){return null!=s.Message.getField(this,2)},proto.sys.EthCommon.prototype.getEthtmoutS=function(){return s.Message.getFieldWithDefault(this,3,0)},proto.sys.EthCommon.prototype.setEthtmoutS=function(e){return s.Message.setProto3IntField(this,3,e)},s.Message.GENERATE_TO_OBJECT&&(proto.sys.EthSPI.prototype.toObject=function(e){return proto.sys.EthSPI.toObject(e,this)},proto.sys.EthSPI.toObject=function(e,t){var o,r={cs:(o=t.getCs())&&a.GPIO.toObject(e,o),speed:s.Message.getFieldWithDefault(t,2,0),intr:(o=t.getIntr())&&a.GPIO.toObject(e,o),host:s.Message.getFieldWithDefault(t,4,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.sys.EthSPI.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.EthSPI;return proto.sys.EthSPI.deserializeBinaryFromReader(o,t)},proto.sys.EthSPI.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new a.GPIO;t.readMessage(o,a.GPIO.deserializeBinaryFromReader),e.setCs(o);break;case 2:o=t.readInt32();e.setSpeed(o);break;case 3:o=new a.GPIO;t.readMessage(o,a.GPIO.deserializeBinaryFromReader),e.setIntr(o);break;case 4:o=t.readInt32();e.setHost(o);break;default:t.skipField()}}return e},proto.sys.EthSPI.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.EthSPI.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.EthSPI.serializeBinaryToWriter=function(e,t){var o=void 0;null!=(o=e.getCs())&&t.writeMessage(1,o,a.GPIO.serializeBinaryToWriter),0!==(o=e.getSpeed())&&t.writeInt32(2,o),null!=(o=e.getIntr())&&t.writeMessage(3,o,a.GPIO.serializeBinaryToWriter),0!==(o=e.getHost())&&t.writeInt32(4,o)},proto.sys.EthSPI.prototype.getCs=function(){return s.Message.getWrapperField(this,a.GPIO,1)},proto.sys.EthSPI.prototype.setCs=function(e){return s.Message.setWrapperField(this,1,e)},proto.sys.EthSPI.prototype.clearCs=function(){return this.setCs(void 0)},proto.sys.EthSPI.prototype.hasCs=function(){return null!=s.Message.getField(this,1)},proto.sys.EthSPI.prototype.getSpeed=function(){return s.Message.getFieldWithDefault(this,2,0)},proto.sys.EthSPI.prototype.setSpeed=function(e){return s.Message.setProto3IntField(this,2,e)},proto.sys.EthSPI.prototype.getIntr=function(){return s.Message.getWrapperField(this,a.GPIO,3)},proto.sys.EthSPI.prototype.setIntr=function(e){return s.Message.setWrapperField(this,3,e)},proto.sys.EthSPI.prototype.clearIntr=function(){return this.setIntr(void 0)},proto.sys.EthSPI.prototype.hasIntr=function(){return null!=s.Message.getField(this,3)},proto.sys.EthSPI.prototype.getHost=function(){return s.Message.getFieldWithDefault(this,4,0)},proto.sys.EthSPI.prototype.setHost=function(e){return s.Message.setProto3IntField(this,4,e)},s.Message.GENERATE_TO_OBJECT&&(proto.sys.EthRMII.prototype.toObject=function(e){return proto.sys.EthRMII.toObject(e,this)},proto.sys.EthRMII.toObject=function(e,t){var o,s={mdc:(o=t.getMdc())&&a.GPIO.toObject(e,o),mdio:(o=t.getMdio())&&a.GPIO.toObject(e,o)};return e&&(s.$jspbMessageInstance=t),s}),proto.sys.EthRMII.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.EthRMII;return proto.sys.EthRMII.deserializeBinaryFromReader(o,t)},proto.sys.EthRMII.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new a.GPIO;t.readMessage(o,a.GPIO.deserializeBinaryFromReader),e.setMdc(o);break;case 2:o=new a.GPIO;t.readMessage(o,a.GPIO.deserializeBinaryFromReader),e.setMdio(o);break;default:t.skipField()}}return e},proto.sys.EthRMII.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.EthRMII.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.EthRMII.serializeBinaryToWriter=function(e,t){var o=void 0;null!=(o=e.getMdc())&&t.writeMessage(1,o,a.GPIO.serializeBinaryToWriter),null!=(o=e.getMdio())&&t.writeMessage(2,o,a.GPIO.serializeBinaryToWriter)},proto.sys.EthRMII.prototype.getMdc=function(){return s.Message.getWrapperField(this,a.GPIO,1)},proto.sys.EthRMII.prototype.setMdc=function(e){return s.Message.setWrapperField(this,1,e)},proto.sys.EthRMII.prototype.clearMdc=function(){return this.setMdc(void 0)},proto.sys.EthRMII.prototype.hasMdc=function(){return null!=s.Message.getField(this,1)},proto.sys.EthRMII.prototype.getMdio=function(){return s.Message.getWrapperField(this,a.GPIO,2)},proto.sys.EthRMII.prototype.setMdio=function(e){return s.Message.setWrapperField(this,2,e)},proto.sys.EthRMII.prototype.clearMdio=function(){return this.setMdio(void 0)},proto.sys.EthRMII.prototype.hasMdio=function(){return null!=s.Message.getField(this,2)},proto.sys.Eth.oneofGroups_=[[3,4]],proto.sys.Eth.EthtypeCase={ETHTYPE_NOT_SET:0,SPI:3,RMII:4},proto.sys.Eth.prototype.getEthtypeCase=function(){return s.Message.computeOneofCase(this,proto.sys.Eth.oneofGroups_[0])},s.Message.GENERATE_TO_OBJECT&&(proto.sys.Eth.prototype.toObject=function(e){return proto.sys.Eth.toObject(e,this)},proto.sys.Eth.toObject=function(e,t){var o,r={type:s.Message.getFieldWithDefault(t,1,0),common:(o=t.getCommon())&&proto.sys.EthCommon.toObject(e,o),spi:(o=t.getSpi())&&proto.sys.EthSPI.toObject(e,o),rmii:(o=t.getRmii())&&proto.sys.EthRMII.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.sys.Eth.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.Eth;return proto.sys.Eth.deserializeBinaryFromReader(o,t)},proto.sys.Eth.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readEnum();e.setType(o);break;case 2:o=new proto.sys.EthCommon;t.readMessage(o,proto.sys.EthCommon.deserializeBinaryFromReader),e.setCommon(o);break;case 3:o=new proto.sys.EthSPI;t.readMessage(o,proto.sys.EthSPI.deserializeBinaryFromReader),e.setSpi(o);break;case 4:o=new proto.sys.EthRMII;t.readMessage(o,proto.sys.EthRMII.deserializeBinaryFromReader),e.setRmii(o);break;default:t.skipField()}}return e},proto.sys.Eth.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.Eth.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.Eth.serializeBinaryToWriter=function(e,t){var o=void 0;0!==(o=e.getType())&&t.writeEnum(1,o),null!=(o=e.getCommon())&&t.writeMessage(2,o,proto.sys.EthCommon.serializeBinaryToWriter),null!=(o=e.getSpi())&&t.writeMessage(3,o,proto.sys.EthSPI.serializeBinaryToWriter),null!=(o=e.getRmii())&&t.writeMessage(4,o,proto.sys.EthRMII.serializeBinaryToWriter)},proto.sys.Eth.prototype.getType=function(){return s.Message.getFieldWithDefault(this,1,0)},proto.sys.Eth.prototype.setType=function(e){return s.Message.setProto3EnumField(this,1,e)},proto.sys.Eth.prototype.getCommon=function(){return s.Message.getWrapperField(this,proto.sys.EthCommon,2)},proto.sys.Eth.prototype.setCommon=function(e){return s.Message.setWrapperField(this,2,e)},proto.sys.Eth.prototype.clearCommon=function(){return this.setCommon(void 0)},proto.sys.Eth.prototype.hasCommon=function(){return null!=s.Message.getField(this,2)},proto.sys.Eth.prototype.getSpi=function(){return s.Message.getWrapperField(this,proto.sys.EthSPI,3)},proto.sys.Eth.prototype.setSpi=function(e){return s.Message.setOneofWrapperField(this,3,proto.sys.Eth.oneofGroups_[0],e)},proto.sys.Eth.prototype.clearSpi=function(){return this.setSpi(void 0)},proto.sys.Eth.prototype.hasSpi=function(){return null!=s.Message.getField(this,3)},proto.sys.Eth.prototype.getRmii=function(){return s.Message.getWrapperField(this,proto.sys.EthRMII,4)},proto.sys.Eth.prototype.setRmii=function(e){return s.Message.setOneofWrapperField(this,4,proto.sys.Eth.oneofGroups_[0],e)},proto.sys.Eth.prototype.clearRmii=function(){return this.setRmii(void 0)},proto.sys.Eth.prototype.hasRmii=function(){return null!=s.Message.getField(this,4)},proto.sys.EthModelEnum={UNSPECIFIED_ETHMODEL:0,LAN8720:1,DM9051:2,W5500:3},proto.sys.EthType={UNSPECIFIED_ETH:0,SPI:1,RMII:2},r.object.extend(t,proto.sys)},7567:(e,t,o)=>{var s=o(3019),r=s,i="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof window&&window||void 0!==i&&i||"undefined"!=typeof self&&self||function(){return this}.call(null)||Function("return this")(),n=o(2038);r.object.extend(proto,n);var a=o(5465);r.object.extend(proto,a);var p=o(3021);r.object.extend(proto,p),r.exportSymbol("proto.sys.GPIO",null,i),r.exportSymbol("proto.sys.GPIOExp",null,i),r.exportSymbol("proto.sys.GPIOExp.ExptypeCase",null,i),r.exportSymbol("proto.sys.GPIOExpI2C",null,i),r.exportSymbol("proto.sys.GPIOExpModelEnum",null,i),r.exportSymbol("proto.sys.GPIOExpSPI",null,i),r.exportSymbol("proto.sys.Gpios",null,i),r.exportSymbol("proto.sys.LED",null,i),r.exportSymbol("proto.sys.LedTypesEnum",null,i),r.exportSymbol("proto.sys.LevelsEnum",null,i),proto.sys.GPIO=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.GPIO,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.GPIO.displayName="proto.sys.GPIO"),proto.sys.LED=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.LED,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.LED.displayName="proto.sys.LED"),proto.sys.Gpios=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.Gpios,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.Gpios.displayName="proto.sys.Gpios"),proto.sys.GPIOExpI2C=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.GPIOExpI2C,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.GPIOExpI2C.displayName="proto.sys.GPIOExpI2C"),proto.sys.GPIOExpSPI=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.GPIOExpSPI,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.GPIOExpSPI.displayName="proto.sys.GPIOExpSPI"),proto.sys.GPIOExp=function(e){s.Message.initialize(this,e,0,-1,null,proto.sys.GPIOExp.oneofGroups_)},r.inherits(proto.sys.GPIOExp,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.GPIOExp.displayName="proto.sys.GPIOExp"),s.Message.GENERATE_TO_OBJECT&&(proto.sys.GPIO.prototype.toObject=function(e){return proto.sys.GPIO.toObject(e,this)},proto.sys.GPIO.toObject=function(e,t){var o={pin:s.Message.getFieldWithDefault(t,1,0),level:s.Message.getFieldWithDefault(t,2,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.sys.GPIO.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.GPIO;return proto.sys.GPIO.deserializeBinaryFromReader(o,t)},proto.sys.GPIO.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readInt32();e.setPin(o);break;case 2:o=t.readEnum();e.setLevel(o);break;default:t.skipField()}}return e},proto.sys.GPIO.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.GPIO.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.GPIO.serializeBinaryToWriter=function(e,t){var o=void 0;0!==(o=e.getPin())&&t.writeInt32(1,o),0!==(o=e.getLevel())&&t.writeEnum(2,o)},proto.sys.GPIO.prototype.getPin=function(){return s.Message.getFieldWithDefault(this,1,0)},proto.sys.GPIO.prototype.setPin=function(e){return s.Message.setProto3IntField(this,1,e)},proto.sys.GPIO.prototype.getLevel=function(){return s.Message.getFieldWithDefault(this,2,0)},proto.sys.GPIO.prototype.setLevel=function(e){return s.Message.setProto3EnumField(this,2,e)},s.Message.GENERATE_TO_OBJECT&&(proto.sys.LED.prototype.toObject=function(e){return proto.sys.LED.toObject(e,this)},proto.sys.LED.toObject=function(e,t){var o,r={gpio:(o=t.getGpio())&&proto.sys.GPIO.toObject(e,o),brightness:s.Message.getFieldWithDefault(t,2,0),ledType:s.Message.getFieldWithDefault(t,3,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.sys.LED.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.LED;return proto.sys.LED.deserializeBinaryFromReader(o,t)},proto.sys.LED.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new proto.sys.GPIO;t.readMessage(o,proto.sys.GPIO.deserializeBinaryFromReader),e.setGpio(o);break;case 2:o=t.readInt32();e.setBrightness(o);break;case 3:o=t.readEnum();e.setLedType(o);break;default:t.skipField()}}return e},proto.sys.LED.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.LED.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.LED.serializeBinaryToWriter=function(e,t){var o=void 0;null!=(o=e.getGpio())&&t.writeMessage(1,o,proto.sys.GPIO.serializeBinaryToWriter),0!==(o=e.getBrightness())&&t.writeInt32(2,o),0!==(o=e.getLedType())&&t.writeEnum(3,o)},proto.sys.LED.prototype.getGpio=function(){return s.Message.getWrapperField(this,proto.sys.GPIO,1)},proto.sys.LED.prototype.setGpio=function(e){return s.Message.setWrapperField(this,1,e)},proto.sys.LED.prototype.clearGpio=function(){return this.setGpio(void 0)},proto.sys.LED.prototype.hasGpio=function(){return null!=s.Message.getField(this,1)},proto.sys.LED.prototype.getBrightness=function(){return s.Message.getFieldWithDefault(this,2,0)},proto.sys.LED.prototype.setBrightness=function(e){return s.Message.setProto3IntField(this,2,e)},proto.sys.LED.prototype.getLedType=function(){return s.Message.getFieldWithDefault(this,3,0)},proto.sys.LED.prototype.setLedType=function(e){return s.Message.setProto3EnumField(this,3,e)},s.Message.GENERATE_TO_OBJECT&&(proto.sys.Gpios.prototype.toObject=function(e){return proto.sys.Gpios.toObject(e,this)},proto.sys.Gpios.toObject=function(e,t){var o,s={greenled:(o=t.getGreenled())&&proto.sys.LED.toObject(e,o),redled:(o=t.getRedled())&&proto.sys.LED.toObject(e,o),audiojack:(o=t.getAudiojack())&&proto.sys.GPIO.toObject(e,o),amp:(o=t.getAmp())&&proto.sys.GPIO.toObject(e,o),power:(o=t.getPower())&&proto.sys.GPIO.toObject(e,o),jack:(o=t.getJack())&&proto.sys.GPIO.toObject(e,o),spkfault:(o=t.getSpkfault())&&proto.sys.GPIO.toObject(e,o),vcc:(o=t.getVcc())&&proto.sys.GPIO.toObject(e,o),gnd:(o=t.getGnd())&&proto.sys.GPIO.toObject(e,o)};return e&&(s.$jspbMessageInstance=t),s}),proto.sys.Gpios.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.Gpios;return proto.sys.Gpios.deserializeBinaryFromReader(o,t)},proto.sys.Gpios.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new proto.sys.LED;t.readMessage(o,proto.sys.LED.deserializeBinaryFromReader),e.setGreenled(o);break;case 2:o=new proto.sys.LED;t.readMessage(o,proto.sys.LED.deserializeBinaryFromReader),e.setRedled(o);break;case 3:o=new proto.sys.GPIO;t.readMessage(o,proto.sys.GPIO.deserializeBinaryFromReader),e.setAudiojack(o);break;case 4:o=new proto.sys.GPIO;t.readMessage(o,proto.sys.GPIO.deserializeBinaryFromReader),e.setAmp(o);break;case 5:o=new proto.sys.GPIO;t.readMessage(o,proto.sys.GPIO.deserializeBinaryFromReader),e.setPower(o);break;case 6:o=new proto.sys.GPIO;t.readMessage(o,proto.sys.GPIO.deserializeBinaryFromReader),e.setJack(o);break;case 7:o=new proto.sys.GPIO;t.readMessage(o,proto.sys.GPIO.deserializeBinaryFromReader),e.setSpkfault(o);break;case 8:o=new proto.sys.GPIO;t.readMessage(o,proto.sys.GPIO.deserializeBinaryFromReader),e.setVcc(o);break;case 9:o=new proto.sys.GPIO;t.readMessage(o,proto.sys.GPIO.deserializeBinaryFromReader),e.setGnd(o);break;default:t.skipField()}}return e},proto.sys.Gpios.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.Gpios.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.Gpios.serializeBinaryToWriter=function(e,t){var o=void 0;null!=(o=e.getGreenled())&&t.writeMessage(1,o,proto.sys.LED.serializeBinaryToWriter),null!=(o=e.getRedled())&&t.writeMessage(2,o,proto.sys.LED.serializeBinaryToWriter),null!=(o=e.getAudiojack())&&t.writeMessage(3,o,proto.sys.GPIO.serializeBinaryToWriter),null!=(o=e.getAmp())&&t.writeMessage(4,o,proto.sys.GPIO.serializeBinaryToWriter),null!=(o=e.getPower())&&t.writeMessage(5,o,proto.sys.GPIO.serializeBinaryToWriter),null!=(o=e.getJack())&&t.writeMessage(6,o,proto.sys.GPIO.serializeBinaryToWriter),null!=(o=e.getSpkfault())&&t.writeMessage(7,o,proto.sys.GPIO.serializeBinaryToWriter),null!=(o=e.getVcc())&&t.writeMessage(8,o,proto.sys.GPIO.serializeBinaryToWriter),null!=(o=e.getGnd())&&t.writeMessage(9,o,proto.sys.GPIO.serializeBinaryToWriter)},proto.sys.Gpios.prototype.getGreenled=function(){return s.Message.getWrapperField(this,proto.sys.LED,1)},proto.sys.Gpios.prototype.setGreenled=function(e){return s.Message.setWrapperField(this,1,e)},proto.sys.Gpios.prototype.clearGreenled=function(){return this.setGreenled(void 0)},proto.sys.Gpios.prototype.hasGreenled=function(){return null!=s.Message.getField(this,1)},proto.sys.Gpios.prototype.getRedled=function(){return s.Message.getWrapperField(this,proto.sys.LED,2)},proto.sys.Gpios.prototype.setRedled=function(e){return s.Message.setWrapperField(this,2,e)},proto.sys.Gpios.prototype.clearRedled=function(){return this.setRedled(void 0)},proto.sys.Gpios.prototype.hasRedled=function(){return null!=s.Message.getField(this,2)},proto.sys.Gpios.prototype.getAudiojack=function(){return s.Message.getWrapperField(this,proto.sys.GPIO,3)},proto.sys.Gpios.prototype.setAudiojack=function(e){return s.Message.setWrapperField(this,3,e)},proto.sys.Gpios.prototype.clearAudiojack=function(){return this.setAudiojack(void 0)},proto.sys.Gpios.prototype.hasAudiojack=function(){return null!=s.Message.getField(this,3)},proto.sys.Gpios.prototype.getAmp=function(){return s.Message.getWrapperField(this,proto.sys.GPIO,4)},proto.sys.Gpios.prototype.setAmp=function(e){return s.Message.setWrapperField(this,4,e)},proto.sys.Gpios.prototype.clearAmp=function(){return this.setAmp(void 0)},proto.sys.Gpios.prototype.hasAmp=function(){return null!=s.Message.getField(this,4)},proto.sys.Gpios.prototype.getPower=function(){return s.Message.getWrapperField(this,proto.sys.GPIO,5)},proto.sys.Gpios.prototype.setPower=function(e){return s.Message.setWrapperField(this,5,e)},proto.sys.Gpios.prototype.clearPower=function(){return this.setPower(void 0)},proto.sys.Gpios.prototype.hasPower=function(){return null!=s.Message.getField(this,5)},proto.sys.Gpios.prototype.getJack=function(){return s.Message.getWrapperField(this,proto.sys.GPIO,6)},proto.sys.Gpios.prototype.setJack=function(e){return s.Message.setWrapperField(this,6,e)},proto.sys.Gpios.prototype.clearJack=function(){return this.setJack(void 0)},proto.sys.Gpios.prototype.hasJack=function(){return null!=s.Message.getField(this,6)},proto.sys.Gpios.prototype.getSpkfault=function(){return s.Message.getWrapperField(this,proto.sys.GPIO,7)},proto.sys.Gpios.prototype.setSpkfault=function(e){return s.Message.setWrapperField(this,7,e)},proto.sys.Gpios.prototype.clearSpkfault=function(){return this.setSpkfault(void 0)},proto.sys.Gpios.prototype.hasSpkfault=function(){return null!=s.Message.getField(this,7)},proto.sys.Gpios.prototype.getVcc=function(){return s.Message.getWrapperField(this,proto.sys.GPIO,8)},proto.sys.Gpios.prototype.setVcc=function(e){return s.Message.setWrapperField(this,8,e)},proto.sys.Gpios.prototype.clearVcc=function(){return this.setVcc(void 0)},proto.sys.Gpios.prototype.hasVcc=function(){return null!=s.Message.getField(this,8)},proto.sys.Gpios.prototype.getGnd=function(){return s.Message.getWrapperField(this,proto.sys.GPIO,9)},proto.sys.Gpios.prototype.setGnd=function(e){return s.Message.setWrapperField(this,9,e)},proto.sys.Gpios.prototype.clearGnd=function(){return this.setGnd(void 0)},proto.sys.Gpios.prototype.hasGnd=function(){return null!=s.Message.getField(this,9)},s.Message.GENERATE_TO_OBJECT&&(proto.sys.GPIOExpI2C.prototype.toObject=function(e){return proto.sys.GPIOExpI2C.toObject(e,this)},proto.sys.GPIOExpI2C.toObject=function(e,t){var o={port:s.Message.getFieldWithDefault(t,5,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.sys.GPIOExpI2C.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.GPIOExpI2C;return proto.sys.GPIOExpI2C.deserializeBinaryFromReader(o,t)},proto.sys.GPIOExpI2C.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){if(5===t.getFieldNumber()){var o=t.readEnum();e.setPort(o)}else t.skipField()}return e},proto.sys.GPIOExpI2C.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.GPIOExpI2C.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.GPIOExpI2C.serializeBinaryToWriter=function(e,t){var o;0!==(o=e.getPort())&&t.writeEnum(5,o)},proto.sys.GPIOExpI2C.prototype.getPort=function(){return s.Message.getFieldWithDefault(this,5,0)},proto.sys.GPIOExpI2C.prototype.setPort=function(e){return s.Message.setProto3EnumField(this,5,e)},s.Message.GENERATE_TO_OBJECT&&(proto.sys.GPIOExpSPI.prototype.toObject=function(e){return proto.sys.GPIOExpSPI.toObject(e,this)},proto.sys.GPIOExpSPI.toObject=function(e,t){var o,r={speed:s.Message.getFieldWithDefault(t,1,0),host:s.Message.getFieldWithDefault(t,2,0),cs:(o=t.getCs())&&proto.sys.GPIO.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.sys.GPIOExpSPI.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.GPIOExpSPI;return proto.sys.GPIOExpSPI.deserializeBinaryFromReader(o,t)},proto.sys.GPIOExpSPI.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readInt32();e.setSpeed(o);break;case 2:o=t.readEnum();e.setHost(o);break;case 3:o=new proto.sys.GPIO;t.readMessage(o,proto.sys.GPIO.deserializeBinaryFromReader),e.setCs(o);break;default:t.skipField()}}return e},proto.sys.GPIOExpSPI.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.GPIOExpSPI.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.GPIOExpSPI.serializeBinaryToWriter=function(e,t){var o=void 0;0!==(o=e.getSpeed())&&t.writeInt32(1,o),0!==(o=e.getHost())&&t.writeEnum(2,o),null!=(o=e.getCs())&&t.writeMessage(3,o,proto.sys.GPIO.serializeBinaryToWriter)},proto.sys.GPIOExpSPI.prototype.getSpeed=function(){return s.Message.getFieldWithDefault(this,1,0)},proto.sys.GPIOExpSPI.prototype.setSpeed=function(e){return s.Message.setProto3IntField(this,1,e)},proto.sys.GPIOExpSPI.prototype.getHost=function(){return s.Message.getFieldWithDefault(this,2,0)},proto.sys.GPIOExpSPI.prototype.setHost=function(e){return s.Message.setProto3EnumField(this,2,e)},proto.sys.GPIOExpSPI.prototype.getCs=function(){return s.Message.getWrapperField(this,proto.sys.GPIO,3)},proto.sys.GPIOExpSPI.prototype.setCs=function(e){return s.Message.setWrapperField(this,3,e)},proto.sys.GPIOExpSPI.prototype.clearCs=function(){return this.setCs(void 0)},proto.sys.GPIOExpSPI.prototype.hasCs=function(){return null!=s.Message.getField(this,3)},proto.sys.GPIOExp.oneofGroups_=[[3,4]],proto.sys.GPIOExp.ExptypeCase={EXPTYPE_NOT_SET:0,I2C:3,SPI:4},proto.sys.GPIOExp.prototype.getExptypeCase=function(){return s.Message.computeOneofCase(this,proto.sys.GPIOExp.oneofGroups_[0])},s.Message.GENERATE_TO_OBJECT&&(proto.sys.GPIOExp.prototype.toObject=function(e){return proto.sys.GPIOExp.toObject(e,this)},proto.sys.GPIOExp.toObject=function(e,t){var o,r={model:s.Message.getFieldWithDefault(t,1,0),addr:s.Message.getFieldWithDefault(t,2,0),i2c:(o=t.getI2c())&&proto.sys.GPIOExpI2C.toObject(e,o),spi:(o=t.getSpi())&&proto.sys.GPIOExpSPI.toObject(e,o),base:s.Message.getFieldWithDefault(t,5,0),count:s.Message.getFieldWithDefault(t,6,0),intr:(o=t.getIntr())&&proto.sys.GPIO.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.sys.GPIOExp.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.GPIOExp;return proto.sys.GPIOExp.deserializeBinaryFromReader(o,t)},proto.sys.GPIOExp.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readEnum();e.setModel(o);break;case 2:o=t.readInt32();e.setAddr(o);break;case 3:o=new proto.sys.GPIOExpI2C;t.readMessage(o,proto.sys.GPIOExpI2C.deserializeBinaryFromReader),e.setI2c(o);break;case 4:o=new proto.sys.GPIOExpSPI;t.readMessage(o,proto.sys.GPIOExpSPI.deserializeBinaryFromReader),e.setSpi(o);break;case 5:o=t.readInt32();e.setBase(o);break;case 6:o=t.readInt32();e.setCount(o);break;case 7:o=new proto.sys.GPIO;t.readMessage(o,proto.sys.GPIO.deserializeBinaryFromReader),e.setIntr(o);break;default:t.skipField()}}return e},proto.sys.GPIOExp.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.GPIOExp.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.GPIOExp.serializeBinaryToWriter=function(e,t){var o=void 0;0!==(o=e.getModel())&&t.writeEnum(1,o),0!==(o=e.getAddr())&&t.writeInt32(2,o),null!=(o=e.getI2c())&&t.writeMessage(3,o,proto.sys.GPIOExpI2C.serializeBinaryToWriter),null!=(o=e.getSpi())&&t.writeMessage(4,o,proto.sys.GPIOExpSPI.serializeBinaryToWriter),0!==(o=e.getBase())&&t.writeInt32(5,o),0!==(o=e.getCount())&&t.writeInt32(6,o),null!=(o=e.getIntr())&&t.writeMessage(7,o,proto.sys.GPIO.serializeBinaryToWriter)},proto.sys.GPIOExp.prototype.getModel=function(){return s.Message.getFieldWithDefault(this,1,0)},proto.sys.GPIOExp.prototype.setModel=function(e){return s.Message.setProto3EnumField(this,1,e)},proto.sys.GPIOExp.prototype.getAddr=function(){return s.Message.getFieldWithDefault(this,2,0)},proto.sys.GPIOExp.prototype.setAddr=function(e){return s.Message.setProto3IntField(this,2,e)},proto.sys.GPIOExp.prototype.getI2c=function(){return s.Message.getWrapperField(this,proto.sys.GPIOExpI2C,3)},proto.sys.GPIOExp.prototype.setI2c=function(e){return s.Message.setOneofWrapperField(this,3,proto.sys.GPIOExp.oneofGroups_[0],e)},proto.sys.GPIOExp.prototype.clearI2c=function(){return this.setI2c(void 0)},proto.sys.GPIOExp.prototype.hasI2c=function(){return null!=s.Message.getField(this,3)},proto.sys.GPIOExp.prototype.getSpi=function(){return s.Message.getWrapperField(this,proto.sys.GPIOExpSPI,4)},proto.sys.GPIOExp.prototype.setSpi=function(e){return s.Message.setOneofWrapperField(this,4,proto.sys.GPIOExp.oneofGroups_[0],e)},proto.sys.GPIOExp.prototype.clearSpi=function(){return this.setSpi(void 0)},proto.sys.GPIOExp.prototype.hasSpi=function(){return null!=s.Message.getField(this,4)},proto.sys.GPIOExp.prototype.getBase=function(){return s.Message.getFieldWithDefault(this,5,0)},proto.sys.GPIOExp.prototype.setBase=function(e){return s.Message.setProto3IntField(this,5,e)},proto.sys.GPIOExp.prototype.getCount=function(){return s.Message.getFieldWithDefault(this,6,0)},proto.sys.GPIOExp.prototype.setCount=function(e){return s.Message.setProto3IntField(this,6,e)},proto.sys.GPIOExp.prototype.getIntr=function(){return s.Message.getWrapperField(this,proto.sys.GPIO,7)},proto.sys.GPIOExp.prototype.setIntr=function(e){return s.Message.setWrapperField(this,7,e)},proto.sys.GPIOExp.prototype.clearIntr=function(){return this.setIntr(void 0)},proto.sys.GPIOExp.prototype.hasIntr=function(){return null!=s.Message.getField(this,7)},proto.sys.LevelsEnum={L_LOW:0,L_HIGH:1},proto.sys.LedTypesEnum={UNKNOWN:0,LED_TYPE_GPIO:1,LED_TYPE_WS2812:2},proto.sys.GPIOExpModelEnum={UNSPECIFIED_EXP:0,PCA9535:1,PCA85XX:2,MCP23017:3,MCP23S17:4},r.object.extend(t,proto.sys)},2035:(e,t,o)=>{var s=o(3019),r=s,i="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof window&&window||void 0!==i&&i||"undefined"!=typeof self&&self||function(){return this}.call(null)||Function("return this")(),n=o(7567);r.object.extend(proto,n);var a=o(3021);r.object.extend(proto,a),r.exportSymbol("proto.sys.I2CBus",null,i),r.exportSymbol("proto.sys.I2CPortEnum",null,i),proto.sys.I2CBus=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.I2CBus,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.I2CBus.displayName="proto.sys.I2CBus"),s.Message.GENERATE_TO_OBJECT&&(proto.sys.I2CBus.prototype.toObject=function(e){return proto.sys.I2CBus.toObject(e,this)},proto.sys.I2CBus.toObject=function(e,t){var o,r={port:s.Message.getFieldWithDefault(t,1,0),speed:s.Message.getFieldWithDefault(t,2,0),sda:(o=t.getSda())&&n.GPIO.toObject(e,o),scl:(o=t.getScl())&&n.GPIO.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.sys.I2CBus.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.I2CBus;return proto.sys.I2CBus.deserializeBinaryFromReader(o,t)},proto.sys.I2CBus.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readEnum();e.setPort(o);break;case 2:o=t.readInt32();e.setSpeed(o);break;case 3:o=new n.GPIO;t.readMessage(o,n.GPIO.deserializeBinaryFromReader),e.setSda(o);break;case 4:o=new n.GPIO;t.readMessage(o,n.GPIO.deserializeBinaryFromReader),e.setScl(o);break;default:t.skipField()}}return e},proto.sys.I2CBus.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.I2CBus.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.I2CBus.serializeBinaryToWriter=function(e,t){var o=void 0;0!==(o=e.getPort())&&t.writeEnum(1,o),0!==(o=e.getSpeed())&&t.writeInt32(2,o),null!=(o=e.getSda())&&t.writeMessage(3,o,n.GPIO.serializeBinaryToWriter),null!=(o=e.getScl())&&t.writeMessage(4,o,n.GPIO.serializeBinaryToWriter)},proto.sys.I2CBus.prototype.getPort=function(){return s.Message.getFieldWithDefault(this,1,0)},proto.sys.I2CBus.prototype.setPort=function(e){return s.Message.setProto3EnumField(this,1,e)},proto.sys.I2CBus.prototype.getSpeed=function(){return s.Message.getFieldWithDefault(this,2,0)},proto.sys.I2CBus.prototype.setSpeed=function(e){return s.Message.setProto3IntField(this,2,e)},proto.sys.I2CBus.prototype.getSda=function(){return s.Message.getWrapperField(this,n.GPIO,3)},proto.sys.I2CBus.prototype.setSda=function(e){return s.Message.setWrapperField(this,3,e)},proto.sys.I2CBus.prototype.clearSda=function(){return this.setSda(void 0)},proto.sys.I2CBus.prototype.hasSda=function(){return null!=s.Message.getField(this,3)},proto.sys.I2CBus.prototype.getScl=function(){return s.Message.getWrapperField(this,n.GPIO,4)},proto.sys.I2CBus.prototype.setScl=function(e){return s.Message.setWrapperField(this,4,e)},proto.sys.I2CBus.prototype.clearScl=function(){return this.setScl(void 0)},proto.sys.I2CBus.prototype.hasScl=function(){return null!=s.Message.getField(this,4)},proto.sys.I2CPortEnum={UNSPECIFIED_PORT:0,I2CPORT0:1,I2CPORT1:2},r.object.extend(t,proto.sys)},8395:(e,t,o)=>{var s=o(3019),r=s,i="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof window&&window||void 0!==i&&i||"undefined"!=typeof self&&self||function(){return this}.call(null)||Function("return this")(),n=o(5465);r.object.extend(proto,n);var a=o(3021);r.object.extend(proto,a),r.exportSymbol("proto.sys.Names",null,i),proto.sys.Names=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.Names,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.Names.displayName="proto.sys.Names"),s.Message.GENERATE_TO_OBJECT&&(proto.sys.Names.prototype.toObject=function(e){return proto.sys.Names.toObject(e,this)},proto.sys.Names.toObject=function(e,t){var o={device:s.Message.getFieldWithDefault(t,1,""),airplay:s.Message.getFieldWithDefault(t,2,""),spotify:s.Message.getFieldWithDefault(t,3,""),bluetooth:s.Message.getFieldWithDefault(t,4,""),squeezelite:s.Message.getFieldWithDefault(t,5,""),wifiApName:s.Message.getFieldWithDefault(t,6,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.sys.Names.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.Names;return proto.sys.Names.deserializeBinaryFromReader(o,t)},proto.sys.Names.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setDevice(o);break;case 2:o=t.readString();e.setAirplay(o);break;case 3:o=t.readString();e.setSpotify(o);break;case 4:o=t.readString();e.setBluetooth(o);break;case 5:o=t.readString();e.setSqueezelite(o);break;case 6:o=t.readString();e.setWifiApName(o);break;default:t.skipField()}}return e},proto.sys.Names.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.Names.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.Names.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getDevice()).length>0&&t.writeString(1,o),(o=e.getAirplay()).length>0&&t.writeString(2,o),(o=e.getSpotify()).length>0&&t.writeString(3,o),(o=e.getBluetooth()).length>0&&t.writeString(4,o),(o=e.getSqueezelite()).length>0&&t.writeString(5,o),(o=e.getWifiApName()).length>0&&t.writeString(6,o)},proto.sys.Names.prototype.getDevice=function(){return s.Message.getFieldWithDefault(this,1,"")},proto.sys.Names.prototype.setDevice=function(e){return s.Message.setProto3StringField(this,1,e)},proto.sys.Names.prototype.getAirplay=function(){return s.Message.getFieldWithDefault(this,2,"")},proto.sys.Names.prototype.setAirplay=function(e){return s.Message.setProto3StringField(this,2,e)},proto.sys.Names.prototype.getSpotify=function(){return s.Message.getFieldWithDefault(this,3,"")},proto.sys.Names.prototype.setSpotify=function(e){return s.Message.setProto3StringField(this,3,e)},proto.sys.Names.prototype.getBluetooth=function(){return s.Message.getFieldWithDefault(this,4,"")},proto.sys.Names.prototype.setBluetooth=function(e){return s.Message.setProto3StringField(this,4,e)},proto.sys.Names.prototype.getSqueezelite=function(){return s.Message.getFieldWithDefault(this,5,"")},proto.sys.Names.prototype.setSqueezelite=function(e){return s.Message.setProto3StringField(this,5,e)},proto.sys.Names.prototype.getWifiApName=function(){return s.Message.getFieldWithDefault(this,6,"")},proto.sys.Names.prototype.setWifiApName=function(e){return s.Message.setProto3StringField(this,6,e)},r.object.extend(t,proto.sys)},5397:(e,t,o)=>{var s=o(3019),r=s,i="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof window&&window||void 0!==i&&i||"undefined"!=typeof self&&self||function(){return this}.call(null)||Function("return this")(),n=o(1134);r.object.extend(proto,n);var a=o(5465);r.object.extend(proto,a);var p=o(3021);r.object.extend(proto,p),r.exportSymbol("proto.sys.IP",null,i),r.exportSymbol("proto.sys.NetworkConfig",null,i),r.exportSymbol("proto.sys.NetworkConfig.PowerSaveTypeEnum",null,i),r.exportSymbol("proto.sys.Server",null,i),r.exportSymbol("proto.sys.WifiAP",null,i),r.exportSymbol("proto.sys.WifiAuthTypeEnum",null,i),r.exportSymbol("proto.sys.WifiRadioTypesEnum",null,i),r.exportSymbol("proto.sys.WifiSTAEntry",null,i),proto.sys.IP=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.IP,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.IP.displayName="proto.sys.IP"),proto.sys.WifiSTAEntry=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.WifiSTAEntry,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.WifiSTAEntry.displayName="proto.sys.WifiSTAEntry"),proto.sys.WifiAP=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.WifiAP,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.WifiAP.displayName="proto.sys.WifiAP"),proto.sys.Server=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.Server,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.Server.displayName="proto.sys.Server"),proto.sys.NetworkConfig=function(e){s.Message.initialize(this,e,0,-1,proto.sys.NetworkConfig.repeatedFields_,null)},r.inherits(proto.sys.NetworkConfig,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.NetworkConfig.displayName="proto.sys.NetworkConfig"),s.Message.GENERATE_TO_OBJECT&&(proto.sys.IP.prototype.toObject=function(e){return proto.sys.IP.toObject(e,this)},proto.sys.IP.toObject=function(e,t){var o={ip:s.Message.getFieldWithDefault(t,14,""),netmask:s.Message.getFieldWithDefault(t,15,""),gw:s.Message.getFieldWithDefault(t,16,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.sys.IP.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.IP;return proto.sys.IP.deserializeBinaryFromReader(o,t)},proto.sys.IP.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 14:var o=t.readString();e.setIp(o);break;case 15:o=t.readString();e.setNetmask(o);break;case 16:o=t.readString();e.setGw(o);break;default:t.skipField()}}return e},proto.sys.IP.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.IP.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.IP.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getIp()).length>0&&t.writeString(14,o),(o=e.getNetmask()).length>0&&t.writeString(15,o),(o=e.getGw()).length>0&&t.writeString(16,o)},proto.sys.IP.prototype.getIp=function(){return s.Message.getFieldWithDefault(this,14,"")},proto.sys.IP.prototype.setIp=function(e){return s.Message.setProto3StringField(this,14,e)},proto.sys.IP.prototype.getNetmask=function(){return s.Message.getFieldWithDefault(this,15,"")},proto.sys.IP.prototype.setNetmask=function(e){return s.Message.setProto3StringField(this,15,e)},proto.sys.IP.prototype.getGw=function(){return s.Message.getFieldWithDefault(this,16,"")},proto.sys.IP.prototype.setGw=function(e){return s.Message.setProto3StringField(this,16,e)},s.Message.GENERATE_TO_OBJECT&&(proto.sys.WifiSTAEntry.prototype.toObject=function(e){return proto.sys.WifiSTAEntry.toObject(e,this)},proto.sys.WifiSTAEntry.toObject=function(e,t){var o,r={ssid:s.Message.getFieldWithDefault(t,1,""),bssid:s.Message.getFieldWithDefault(t,2,""),channel:s.Message.getFieldWithDefault(t,3,0),authType:s.Message.getFieldWithDefault(t,4,0),radioType:s.Message.getFieldWithDefault(t,5,0),lastTry:(o=t.getLastTry())&&n.Timestamp.toObject(e,o),lastSeen:(o=t.getLastSeen())&&n.Timestamp.toObject(e,o),connected:s.Message.getBooleanFieldWithDefault(t,8,!1),password:s.Message.getFieldWithDefault(t,9,""),rssi:s.Message.getFieldWithDefault(t,10,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.sys.WifiSTAEntry.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.WifiSTAEntry;return proto.sys.WifiSTAEntry.deserializeBinaryFromReader(o,t)},proto.sys.WifiSTAEntry.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setSsid(o);break;case 2:o=t.readString();e.setBssid(o);break;case 3:o=t.readUint32();e.setChannel(o);break;case 4:o=t.readEnum();e.setAuthType(o);break;case 5:o=t.readEnum();e.setRadioType(o);break;case 6:o=new n.Timestamp;t.readMessage(o,n.Timestamp.deserializeBinaryFromReader),e.setLastTry(o);break;case 7:o=new n.Timestamp;t.readMessage(o,n.Timestamp.deserializeBinaryFromReader),e.setLastSeen(o);break;case 8:o=t.readBool();e.setConnected(o);break;case 9:o=t.readString();e.setPassword(o);break;case 10:o=t.readUint32();e.setRssi(o);break;default:t.skipField()}}return e},proto.sys.WifiSTAEntry.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.WifiSTAEntry.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.WifiSTAEntry.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getSsid()).length>0&&t.writeString(1,o),(o=e.getBssid()).length>0&&t.writeString(2,o),0!==(o=e.getChannel())&&t.writeUint32(3,o),0!==(o=e.getAuthType())&&t.writeEnum(4,o),0!==(o=e.getRadioType())&&t.writeEnum(5,o),null!=(o=e.getLastTry())&&t.writeMessage(6,o,n.Timestamp.serializeBinaryToWriter),null!=(o=e.getLastSeen())&&t.writeMessage(7,o,n.Timestamp.serializeBinaryToWriter),(o=e.getConnected())&&t.writeBool(8,o),(o=e.getPassword()).length>0&&t.writeString(9,o),0!==(o=e.getRssi())&&t.writeUint32(10,o)},proto.sys.WifiSTAEntry.prototype.getSsid=function(){return s.Message.getFieldWithDefault(this,1,"")},proto.sys.WifiSTAEntry.prototype.setSsid=function(e){return s.Message.setProto3StringField(this,1,e)},proto.sys.WifiSTAEntry.prototype.getBssid=function(){return s.Message.getFieldWithDefault(this,2,"")},proto.sys.WifiSTAEntry.prototype.setBssid=function(e){return s.Message.setProto3StringField(this,2,e)},proto.sys.WifiSTAEntry.prototype.getChannel=function(){return s.Message.getFieldWithDefault(this,3,0)},proto.sys.WifiSTAEntry.prototype.setChannel=function(e){return s.Message.setProto3IntField(this,3,e)},proto.sys.WifiSTAEntry.prototype.getAuthType=function(){return s.Message.getFieldWithDefault(this,4,0)},proto.sys.WifiSTAEntry.prototype.setAuthType=function(e){return s.Message.setProto3EnumField(this,4,e)},proto.sys.WifiSTAEntry.prototype.getRadioType=function(){return s.Message.getFieldWithDefault(this,5,0)},proto.sys.WifiSTAEntry.prototype.setRadioType=function(e){return s.Message.setProto3EnumField(this,5,e)},proto.sys.WifiSTAEntry.prototype.getLastTry=function(){return s.Message.getWrapperField(this,n.Timestamp,6)},proto.sys.WifiSTAEntry.prototype.setLastTry=function(e){return s.Message.setWrapperField(this,6,e)},proto.sys.WifiSTAEntry.prototype.clearLastTry=function(){return this.setLastTry(void 0)},proto.sys.WifiSTAEntry.prototype.hasLastTry=function(){return null!=s.Message.getField(this,6)},proto.sys.WifiSTAEntry.prototype.getLastSeen=function(){return s.Message.getWrapperField(this,n.Timestamp,7)},proto.sys.WifiSTAEntry.prototype.setLastSeen=function(e){return s.Message.setWrapperField(this,7,e)},proto.sys.WifiSTAEntry.prototype.clearLastSeen=function(){return this.setLastSeen(void 0)},proto.sys.WifiSTAEntry.prototype.hasLastSeen=function(){return null!=s.Message.getField(this,7)},proto.sys.WifiSTAEntry.prototype.getConnected=function(){return s.Message.getBooleanFieldWithDefault(this,8,!1)},proto.sys.WifiSTAEntry.prototype.setConnected=function(e){return s.Message.setProto3BooleanField(this,8,e)},proto.sys.WifiSTAEntry.prototype.getPassword=function(){return s.Message.getFieldWithDefault(this,9,"")},proto.sys.WifiSTAEntry.prototype.setPassword=function(e){return s.Message.setProto3StringField(this,9,e)},proto.sys.WifiSTAEntry.prototype.getRssi=function(){return s.Message.getFieldWithDefault(this,10,0)},proto.sys.WifiSTAEntry.prototype.setRssi=function(e){return s.Message.setProto3IntField(this,10,e)},s.Message.GENERATE_TO_OBJECT&&(proto.sys.WifiAP.prototype.toObject=function(e){return proto.sys.WifiAP.toObject(e,this)},proto.sys.WifiAP.toObject=function(e,t){var o,r={ip:(o=t.getIp())&&proto.sys.IP.toObject(e,o),password:s.Message.getFieldWithDefault(t,2,""),channel:s.Message.getFieldWithDefault(t,3,0),authMode:s.Message.getFieldWithDefault(t,4,0),hidden:s.Message.getBooleanFieldWithDefault(t,5,!1),maxConnection:s.Message.getFieldWithDefault(t,6,0),beaconInterval:s.Message.getFieldWithDefault(t,7,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.sys.WifiAP.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.WifiAP;return proto.sys.WifiAP.deserializeBinaryFromReader(o,t)},proto.sys.WifiAP.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new proto.sys.IP;t.readMessage(o,proto.sys.IP.deserializeBinaryFromReader),e.setIp(o);break;case 2:o=t.readString();e.setPassword(o);break;case 3:o=t.readUint32();e.setChannel(o);break;case 4:o=t.readEnum();e.setAuthMode(o);break;case 5:o=t.readBool();e.setHidden(o);break;case 6:o=t.readUint32();e.setMaxConnection(o);break;case 7:o=t.readUint32();e.setBeaconInterval(o);break;default:t.skipField()}}return e},proto.sys.WifiAP.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.WifiAP.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.WifiAP.serializeBinaryToWriter=function(e,t){var o=void 0;null!=(o=e.getIp())&&t.writeMessage(1,o,proto.sys.IP.serializeBinaryToWriter),(o=e.getPassword()).length>0&&t.writeString(2,o),0!==(o=e.getChannel())&&t.writeUint32(3,o),0!==(o=e.getAuthMode())&&t.writeEnum(4,o),(o=e.getHidden())&&t.writeBool(5,o),0!==(o=e.getMaxConnection())&&t.writeUint32(6,o),0!==(o=e.getBeaconInterval())&&t.writeUint32(7,o)},proto.sys.WifiAP.prototype.getIp=function(){return s.Message.getWrapperField(this,proto.sys.IP,1)},proto.sys.WifiAP.prototype.setIp=function(e){return s.Message.setWrapperField(this,1,e)},proto.sys.WifiAP.prototype.clearIp=function(){return this.setIp(void 0)},proto.sys.WifiAP.prototype.hasIp=function(){return null!=s.Message.getField(this,1)},proto.sys.WifiAP.prototype.getPassword=function(){return s.Message.getFieldWithDefault(this,2,"")},proto.sys.WifiAP.prototype.setPassword=function(e){return s.Message.setProto3StringField(this,2,e)},proto.sys.WifiAP.prototype.getChannel=function(){return s.Message.getFieldWithDefault(this,3,0)},proto.sys.WifiAP.prototype.setChannel=function(e){return s.Message.setProto3IntField(this,3,e)},proto.sys.WifiAP.prototype.getAuthMode=function(){return s.Message.getFieldWithDefault(this,4,0)},proto.sys.WifiAP.prototype.setAuthMode=function(e){return s.Message.setProto3EnumField(this,4,e)},proto.sys.WifiAP.prototype.getHidden=function(){return s.Message.getBooleanFieldWithDefault(this,5,!1)},proto.sys.WifiAP.prototype.setHidden=function(e){return s.Message.setProto3BooleanField(this,5,e)},proto.sys.WifiAP.prototype.getMaxConnection=function(){return s.Message.getFieldWithDefault(this,6,0)},proto.sys.WifiAP.prototype.setMaxConnection=function(e){return s.Message.setProto3IntField(this,6,e)},proto.sys.WifiAP.prototype.getBeaconInterval=function(){return s.Message.getFieldWithDefault(this,7,0)},proto.sys.WifiAP.prototype.setBeaconInterval=function(e){return s.Message.setProto3IntField(this,7,e)},s.Message.GENERATE_TO_OBJECT&&(proto.sys.Server.prototype.toObject=function(e){return proto.sys.Server.toObject(e,this)},proto.sys.Server.toObject=function(e,t){var o={cport:s.Message.getFieldWithDefault(t,1,0),port:s.Message.getFieldWithDefault(t,2,0),ip:s.Message.getFieldWithDefault(t,3,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.sys.Server.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.Server;return proto.sys.Server.deserializeBinaryFromReader(o,t)},proto.sys.Server.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readInt32();e.setCport(o);break;case 2:o=t.readInt32();e.setPort(o);break;case 3:o=t.readString();e.setIp(o);break;default:t.skipField()}}return e},proto.sys.Server.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.Server.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.Server.serializeBinaryToWriter=function(e,t){var o=void 0;0!==(o=e.getCport())&&t.writeInt32(1,o),0!==(o=e.getPort())&&t.writeInt32(2,o),(o=e.getIp()).length>0&&t.writeString(3,o)},proto.sys.Server.prototype.getCport=function(){return s.Message.getFieldWithDefault(this,1,0)},proto.sys.Server.prototype.setCport=function(e){return s.Message.setProto3IntField(this,1,e)},proto.sys.Server.prototype.getPort=function(){return s.Message.getFieldWithDefault(this,2,0)},proto.sys.Server.prototype.setPort=function(e){return s.Message.setProto3IntField(this,2,e)},proto.sys.Server.prototype.getIp=function(){return s.Message.getFieldWithDefault(this,3,"")},proto.sys.Server.prototype.setIp=function(e){return s.Message.setProto3StringField(this,3,e)},proto.sys.NetworkConfig.repeatedFields_=[3],s.Message.GENERATE_TO_OBJECT&&(proto.sys.NetworkConfig.prototype.toObject=function(e){return proto.sys.NetworkConfig.toObject(e,this)},proto.sys.NetworkConfig.toObject=function(e,t){var o,r={disableDhcp:s.Message.getBooleanFieldWithDefault(t,1,!1),manualIp:(o=t.getManualIp())&&proto.sys.IP.toObject(e,o),credentialsList:s.Message.toObjectList(t.getCredentialsList(),proto.sys.WifiSTAEntry.toObject,e),ap:(o=t.getAp())&&proto.sys.WifiAP.toObject(e,o),staPollingMaxS:s.Message.getFieldWithDefault(t,5,0),apDurationS:s.Message.getFieldWithDefault(t,6,0),staPollingMinS:s.Message.getFieldWithDefault(t,7,0),dhcpTmoutS:s.Message.getFieldWithDefault(t,8,0),ethBoot:s.Message.getBooleanFieldWithDefault(t,9,!1),maxWifiRetry:s.Message.getFieldWithDefault(t,10,0),maxApNum:s.Message.getFieldWithDefault(t,11,0),maxSsidSize:s.Message.getFieldWithDefault(t,12,0),maxPasswordSize:s.Message.getFieldWithDefault(t,13,0),taskPriority:s.Message.getFieldWithDefault(t,14,0),powerSaveMode:s.Message.getFieldWithDefault(t,15,0),maxInitialWifiAttempt:s.Message.getFieldWithDefault(t,16,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.sys.NetworkConfig.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.NetworkConfig;return proto.sys.NetworkConfig.deserializeBinaryFromReader(o,t)},proto.sys.NetworkConfig.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readBool();e.setDisableDhcp(o);break;case 2:o=new proto.sys.IP;t.readMessage(o,proto.sys.IP.deserializeBinaryFromReader),e.setManualIp(o);break;case 3:o=new proto.sys.WifiSTAEntry;t.readMessage(o,proto.sys.WifiSTAEntry.deserializeBinaryFromReader),e.addCredentials(o);break;case 4:o=new proto.sys.WifiAP;t.readMessage(o,proto.sys.WifiAP.deserializeBinaryFromReader),e.setAp(o);break;case 5:o=t.readUint32();e.setStaPollingMaxS(o);break;case 6:o=t.readUint32();e.setApDurationS(o);break;case 7:o=t.readUint32();e.setStaPollingMinS(o);break;case 8:o=t.readUint32();e.setDhcpTmoutS(o);break;case 9:o=t.readBool();e.setEthBoot(o);break;case 10:o=t.readUint32();e.setMaxWifiRetry(o);break;case 11:o=t.readUint32();e.setMaxApNum(o);break;case 12:o=t.readUint32();e.setMaxSsidSize(o);break;case 13:o=t.readUint32();e.setMaxPasswordSize(o);break;case 14:o=t.readUint32();e.setTaskPriority(o);break;case 15:o=t.readEnum();e.setPowerSaveMode(o);break;case 16:o=t.readUint32();e.setMaxInitialWifiAttempt(o);break;default:t.skipField()}}return e},proto.sys.NetworkConfig.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.NetworkConfig.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.NetworkConfig.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getDisableDhcp())&&t.writeBool(1,o),null!=(o=e.getManualIp())&&t.writeMessage(2,o,proto.sys.IP.serializeBinaryToWriter),(o=e.getCredentialsList()).length>0&&t.writeRepeatedMessage(3,o,proto.sys.WifiSTAEntry.serializeBinaryToWriter),null!=(o=e.getAp())&&t.writeMessage(4,o,proto.sys.WifiAP.serializeBinaryToWriter),0!==(o=e.getStaPollingMaxS())&&t.writeUint32(5,o),0!==(o=e.getApDurationS())&&t.writeUint32(6,o),0!==(o=e.getStaPollingMinS())&&t.writeUint32(7,o),0!==(o=e.getDhcpTmoutS())&&t.writeUint32(8,o),(o=e.getEthBoot())&&t.writeBool(9,o),0!==(o=e.getMaxWifiRetry())&&t.writeUint32(10,o),0!==(o=e.getMaxApNum())&&t.writeUint32(11,o),0!==(o=e.getMaxSsidSize())&&t.writeUint32(12,o),0!==(o=e.getMaxPasswordSize())&&t.writeUint32(13,o),0!==(o=e.getTaskPriority())&&t.writeUint32(14,o),0!==(o=e.getPowerSaveMode())&&t.writeEnum(15,o),0!==(o=e.getMaxInitialWifiAttempt())&&t.writeUint32(16,o)},proto.sys.NetworkConfig.PowerSaveTypeEnum={WIFI_PS_NONE:0,WIFI_PS_MIN_MODEM:1,WIFI_PS_MAX_MODEM:2},proto.sys.NetworkConfig.prototype.getDisableDhcp=function(){return s.Message.getBooleanFieldWithDefault(this,1,!1)},proto.sys.NetworkConfig.prototype.setDisableDhcp=function(e){return s.Message.setProto3BooleanField(this,1,e)},proto.sys.NetworkConfig.prototype.getManualIp=function(){return s.Message.getWrapperField(this,proto.sys.IP,2)},proto.sys.NetworkConfig.prototype.setManualIp=function(e){return s.Message.setWrapperField(this,2,e)},proto.sys.NetworkConfig.prototype.clearManualIp=function(){return this.setManualIp(void 0)},proto.sys.NetworkConfig.prototype.hasManualIp=function(){return null!=s.Message.getField(this,2)},proto.sys.NetworkConfig.prototype.getCredentialsList=function(){return s.Message.getRepeatedWrapperField(this,proto.sys.WifiSTAEntry,3)},proto.sys.NetworkConfig.prototype.setCredentialsList=function(e){return s.Message.setRepeatedWrapperField(this,3,e)},proto.sys.NetworkConfig.prototype.addCredentials=function(e,t){return s.Message.addToRepeatedWrapperField(this,3,e,proto.sys.WifiSTAEntry,t)},proto.sys.NetworkConfig.prototype.clearCredentialsList=function(){return this.setCredentialsList([])},proto.sys.NetworkConfig.prototype.getAp=function(){return s.Message.getWrapperField(this,proto.sys.WifiAP,4)},proto.sys.NetworkConfig.prototype.setAp=function(e){return s.Message.setWrapperField(this,4,e)},proto.sys.NetworkConfig.prototype.clearAp=function(){return this.setAp(void 0)},proto.sys.NetworkConfig.prototype.hasAp=function(){return null!=s.Message.getField(this,4)},proto.sys.NetworkConfig.prototype.getStaPollingMaxS=function(){return s.Message.getFieldWithDefault(this,5,0)},proto.sys.NetworkConfig.prototype.setStaPollingMaxS=function(e){return s.Message.setProto3IntField(this,5,e)},proto.sys.NetworkConfig.prototype.getApDurationS=function(){return s.Message.getFieldWithDefault(this,6,0)},proto.sys.NetworkConfig.prototype.setApDurationS=function(e){return s.Message.setProto3IntField(this,6,e)},proto.sys.NetworkConfig.prototype.getStaPollingMinS=function(){return s.Message.getFieldWithDefault(this,7,0)},proto.sys.NetworkConfig.prototype.setStaPollingMinS=function(e){return s.Message.setProto3IntField(this,7,e)},proto.sys.NetworkConfig.prototype.getDhcpTmoutS=function(){return s.Message.getFieldWithDefault(this,8,0)},proto.sys.NetworkConfig.prototype.setDhcpTmoutS=function(e){return s.Message.setProto3IntField(this,8,e)},proto.sys.NetworkConfig.prototype.getEthBoot=function(){return s.Message.getBooleanFieldWithDefault(this,9,!1)},proto.sys.NetworkConfig.prototype.setEthBoot=function(e){return s.Message.setProto3BooleanField(this,9,e)},proto.sys.NetworkConfig.prototype.getMaxWifiRetry=function(){return s.Message.getFieldWithDefault(this,10,0)},proto.sys.NetworkConfig.prototype.setMaxWifiRetry=function(e){return s.Message.setProto3IntField(this,10,e)},proto.sys.NetworkConfig.prototype.getMaxApNum=function(){return s.Message.getFieldWithDefault(this,11,0)},proto.sys.NetworkConfig.prototype.setMaxApNum=function(e){return s.Message.setProto3IntField(this,11,e)},proto.sys.NetworkConfig.prototype.getMaxSsidSize=function(){return s.Message.getFieldWithDefault(this,12,0)},proto.sys.NetworkConfig.prototype.setMaxSsidSize=function(e){return s.Message.setProto3IntField(this,12,e)},proto.sys.NetworkConfig.prototype.getMaxPasswordSize=function(){return s.Message.getFieldWithDefault(this,13,0)},proto.sys.NetworkConfig.prototype.setMaxPasswordSize=function(e){return s.Message.setProto3IntField(this,13,e)},proto.sys.NetworkConfig.prototype.getTaskPriority=function(){return s.Message.getFieldWithDefault(this,14,0)},proto.sys.NetworkConfig.prototype.setTaskPriority=function(e){return s.Message.setProto3IntField(this,14,e)},proto.sys.NetworkConfig.prototype.getPowerSaveMode=function(){return s.Message.getFieldWithDefault(this,15,0)},proto.sys.NetworkConfig.prototype.setPowerSaveMode=function(e){return s.Message.setProto3EnumField(this,15,e)},proto.sys.NetworkConfig.prototype.getMaxInitialWifiAttempt=function(){return s.Message.getFieldWithDefault(this,16,0)},proto.sys.NetworkConfig.prototype.setMaxInitialWifiAttempt=function(e){return s.Message.setProto3IntField(this,16,e)},proto.sys.WifiAuthTypeEnum={AUTH_UNKNOWN:0,AUTH_OPEN:1,AUTH_WEP:2,AUTH_WPA_PSK:3,AUTH_WPA2_PSK:4,AUTH_WPA_WPA2_PSK:5,AUTH_WPA2_ENTERPRISE:6,AUTH_WPA3_PSK:7,AUTH_WPA2_WPA3_PSK:8,AUTH_WAPI_PSK:9},proto.sys.WifiRadioTypesEnum={PHY_UNKNOWN:0,PHY_11B:1,PHY_11G:2,PHY_11N:3,PHY_LR:4,PHY_WPS:5,PHY_FTM_RESPONDER:6,PHY_FTM_INITIATOR:7},r.object.extend(t,proto.sys)},3359:(e,t,o)=>{var s=o(3019),r=s,i="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof window&&window||void 0!==i&&i||"undefined"!=typeof self&&self||function(){return this}.call(null)||Function("return this")(),n=o(7567);r.object.extend(proto,n);var a=o(3353);r.object.extend(proto,a);var p=o(3043);r.object.extend(proto,p);var l=o(125);r.object.extend(proto,l);var u=o(1480);r.object.extend(proto,u);var y=o(190);r.object.extend(proto,y);var d=o(3021);r.object.extend(proto,d);var c=o(5465);r.object.extend(proto,c),r.exportSymbol("proto.sys.BluetoothSink",null,i),r.exportSymbol("proto.sys.Metadata",null,i),r.exportSymbol("proto.sys.Services",null,i),r.exportSymbol("proto.sys.SleepService",null,i),r.exportSymbol("proto.sys.Telnet",null,i),r.exportSymbol("proto.sys.TelnetEnableEnum",null,i),proto.sys.SleepService=function(e){s.Message.initialize(this,e,0,-1,proto.sys.SleepService.repeatedFields_,null)},r.inherits(proto.sys.SleepService,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.SleepService.displayName="proto.sys.SleepService"),proto.sys.Telnet=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.Telnet,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.Telnet.displayName="proto.sys.Telnet"),proto.sys.Metadata=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.Metadata,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.Metadata.displayName="proto.sys.Metadata"),proto.sys.BluetoothSink=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.BluetoothSink,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.BluetoothSink.displayName="proto.sys.BluetoothSink"),proto.sys.Services=function(e){s.Message.initialize(this,e,0,-1,proto.sys.Services.repeatedFields_,null)},r.inherits(proto.sys.Services,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.Services.displayName="proto.sys.Services"),proto.sys.SleepService.repeatedFields_=[4,5],s.Message.GENERATE_TO_OBJECT&&(proto.sys.SleepService.prototype.toObject=function(e){return proto.sys.SleepService.toObject(e,this)},proto.sys.SleepService.toObject=function(e,t){var o,r={delay:s.Message.getFieldWithDefault(t,1,0),spurious:s.Message.getFieldWithDefault(t,2,0),sleep:(o=t.getSleep())&&n.GPIO.toObject(e,o),wakeList:s.Message.toObjectList(t.getWakeList(),n.GPIO.toObject,e),rtcList:s.Message.toObjectList(t.getRtcList(),n.GPIO.toObject,e),batt:s.Message.getFloatingPointFieldWithDefault(t,6,0)};return e&&(r.$jspbMessageInstance=t),r}),proto.sys.SleepService.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.SleepService;return proto.sys.SleepService.deserializeBinaryFromReader(o,t)},proto.sys.SleepService.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readUint32();e.setDelay(o);break;case 2:o=t.readInt32();e.setSpurious(o);break;case 3:o=new n.GPIO;t.readMessage(o,n.GPIO.deserializeBinaryFromReader),e.setSleep(o);break;case 4:o=new n.GPIO;t.readMessage(o,n.GPIO.deserializeBinaryFromReader),e.addWake(o);break;case 5:o=new n.GPIO;t.readMessage(o,n.GPIO.deserializeBinaryFromReader),e.addRtc(o);break;case 6:o=t.readFloat();e.setBatt(o);break;default:t.skipField()}}return e},proto.sys.SleepService.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.SleepService.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.SleepService.serializeBinaryToWriter=function(e,t){var o=void 0;0!==(o=e.getDelay())&&t.writeUint32(1,o),0!==(o=e.getSpurious())&&t.writeInt32(2,o),null!=(o=e.getSleep())&&t.writeMessage(3,o,n.GPIO.serializeBinaryToWriter),(o=e.getWakeList()).length>0&&t.writeRepeatedMessage(4,o,n.GPIO.serializeBinaryToWriter),(o=e.getRtcList()).length>0&&t.writeRepeatedMessage(5,o,n.GPIO.serializeBinaryToWriter),0!==(o=e.getBatt())&&t.writeFloat(6,o)},proto.sys.SleepService.prototype.getDelay=function(){return s.Message.getFieldWithDefault(this,1,0)},proto.sys.SleepService.prototype.setDelay=function(e){return s.Message.setProto3IntField(this,1,e)},proto.sys.SleepService.prototype.getSpurious=function(){return s.Message.getFieldWithDefault(this,2,0)},proto.sys.SleepService.prototype.setSpurious=function(e){return s.Message.setProto3IntField(this,2,e)},proto.sys.SleepService.prototype.getSleep=function(){return s.Message.getWrapperField(this,n.GPIO,3)},proto.sys.SleepService.prototype.setSleep=function(e){return s.Message.setWrapperField(this,3,e)},proto.sys.SleepService.prototype.clearSleep=function(){return this.setSleep(void 0)},proto.sys.SleepService.prototype.hasSleep=function(){return null!=s.Message.getField(this,3)},proto.sys.SleepService.prototype.getWakeList=function(){return s.Message.getRepeatedWrapperField(this,n.GPIO,4)},proto.sys.SleepService.prototype.setWakeList=function(e){return s.Message.setRepeatedWrapperField(this,4,e)},proto.sys.SleepService.prototype.addWake=function(e,t){return s.Message.addToRepeatedWrapperField(this,4,e,proto.sys.GPIO,t)},proto.sys.SleepService.prototype.clearWakeList=function(){return this.setWakeList([])},proto.sys.SleepService.prototype.getRtcList=function(){return s.Message.getRepeatedWrapperField(this,n.GPIO,5)},proto.sys.SleepService.prototype.setRtcList=function(e){return s.Message.setRepeatedWrapperField(this,5,e)},proto.sys.SleepService.prototype.addRtc=function(e,t){return s.Message.addToRepeatedWrapperField(this,5,e,proto.sys.GPIO,t)},proto.sys.SleepService.prototype.clearRtcList=function(){return this.setRtcList([])},proto.sys.SleepService.prototype.getBatt=function(){return s.Message.getFloatingPointFieldWithDefault(this,6,0)},proto.sys.SleepService.prototype.setBatt=function(e){return s.Message.setProto3FloatField(this,6,e)},s.Message.GENERATE_TO_OBJECT&&(proto.sys.Telnet.prototype.toObject=function(e){return proto.sys.Telnet.toObject(e,this)},proto.sys.Telnet.toObject=function(e,t){var o={enable:s.Message.getFieldWithDefault(t,1,0),block:s.Message.getFieldWithDefault(t,2,0),buffer:s.Message.getFieldWithDefault(t,3,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.sys.Telnet.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.Telnet;return proto.sys.Telnet.deserializeBinaryFromReader(o,t)},proto.sys.Telnet.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readEnum();e.setEnable(o);break;case 2:o=t.readUint32();e.setBlock(o);break;case 3:o=t.readUint32();e.setBuffer(o);break;default:t.skipField()}}return e},proto.sys.Telnet.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.Telnet.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.Telnet.serializeBinaryToWriter=function(e,t){var o=void 0;0!==(o=e.getEnable())&&t.writeEnum(1,o),0!==(o=e.getBlock())&&t.writeUint32(2,o),0!==(o=e.getBuffer())&&t.writeUint32(3,o)},proto.sys.Telnet.prototype.getEnable=function(){return s.Message.getFieldWithDefault(this,1,0)},proto.sys.Telnet.prototype.setEnable=function(e){return s.Message.setProto3EnumField(this,1,e)},proto.sys.Telnet.prototype.getBlock=function(){return s.Message.getFieldWithDefault(this,2,0)},proto.sys.Telnet.prototype.setBlock=function(e){return s.Message.setProto3IntField(this,2,e)},proto.sys.Telnet.prototype.getBuffer=function(){return s.Message.getFieldWithDefault(this,3,0)},proto.sys.Telnet.prototype.setBuffer=function(e){return s.Message.setProto3IntField(this,3,e)},s.Message.GENERATE_TO_OBJECT&&(proto.sys.Metadata.prototype.toObject=function(e){return proto.sys.Metadata.toObject(e,this)},proto.sys.Metadata.toObject=function(e,t){var o,r={format:s.Message.getFieldWithDefault(t,1,""),speed:s.Message.getFieldWithDefault(t,2,0),pause:s.Message.getFieldWithDefault(t,3,0),artwork:(o=t.getArtwork())&&a.Artwork.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.sys.Metadata.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.Metadata;return proto.sys.Metadata.deserializeBinaryFromReader(o,t)},proto.sys.Metadata.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setFormat(o);break;case 2:o=t.readUint32();e.setSpeed(o);break;case 3:o=t.readUint32();e.setPause(o);break;case 4:o=new a.Artwork;t.readMessage(o,a.Artwork.deserializeBinaryFromReader),e.setArtwork(o);break;default:t.skipField()}}return e},proto.sys.Metadata.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.Metadata.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.Metadata.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getFormat()).length>0&&t.writeString(1,o),0!==(o=e.getSpeed())&&t.writeUint32(2,o),0!==(o=e.getPause())&&t.writeUint32(3,o),null!=(o=e.getArtwork())&&t.writeMessage(4,o,a.Artwork.serializeBinaryToWriter)},proto.sys.Metadata.prototype.getFormat=function(){return s.Message.getFieldWithDefault(this,1,"")},proto.sys.Metadata.prototype.setFormat=function(e){return s.Message.setProto3StringField(this,1,e)},proto.sys.Metadata.prototype.getSpeed=function(){return s.Message.getFieldWithDefault(this,2,0)},proto.sys.Metadata.prototype.setSpeed=function(e){return s.Message.setProto3IntField(this,2,e)},proto.sys.Metadata.prototype.getPause=function(){return s.Message.getFieldWithDefault(this,3,0)},proto.sys.Metadata.prototype.setPause=function(e){return s.Message.setProto3IntField(this,3,e)},proto.sys.Metadata.prototype.getArtwork=function(){return s.Message.getWrapperField(this,a.Artwork,4)},proto.sys.Metadata.prototype.setArtwork=function(e){return s.Message.setWrapperField(this,4,e)},proto.sys.Metadata.prototype.clearArtwork=function(){return this.setArtwork(void 0)},proto.sys.Metadata.prototype.hasArtwork=function(){return null!=s.Message.getField(this,4)},s.Message.GENERATE_TO_OBJECT&&(proto.sys.BluetoothSink.prototype.toObject=function(e){return proto.sys.BluetoothSink.toObject(e,this)},proto.sys.BluetoothSink.toObject=function(e,t){var o={enabled:s.Message.getBooleanFieldWithDefault(t,1,!1),volume:s.Message.getFieldWithDefault(t,2,0),pin:s.Message.getFieldWithDefault(t,3,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.sys.BluetoothSink.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.BluetoothSink;return proto.sys.BluetoothSink.deserializeBinaryFromReader(o,t)},proto.sys.BluetoothSink.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readBool();e.setEnabled(o);break;case 2:o=t.readUint32();e.setVolume(o);break;case 3:o=t.readString();e.setPin(o);break;default:t.skipField()}}return e},proto.sys.BluetoothSink.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.BluetoothSink.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.BluetoothSink.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getEnabled())&&t.writeBool(1,o),0!==(o=e.getVolume())&&t.writeUint32(2,o),(o=e.getPin()).length>0&&t.writeString(3,o)},proto.sys.BluetoothSink.prototype.getEnabled=function(){return s.Message.getBooleanFieldWithDefault(this,1,!1)},proto.sys.BluetoothSink.prototype.setEnabled=function(e){return s.Message.setProto3BooleanField(this,1,e)},proto.sys.BluetoothSink.prototype.getVolume=function(){return s.Message.getFieldWithDefault(this,2,0)},proto.sys.BluetoothSink.prototype.setVolume=function(e){return s.Message.setProto3IntField(this,2,e)},proto.sys.BluetoothSink.prototype.getPin=function(){return s.Message.getFieldWithDefault(this,3,"")},proto.sys.BluetoothSink.prototype.setPin=function(e){return s.Message.setProto3StringField(this,3,e)},proto.sys.Services.repeatedFields_=[6],s.Message.GENERATE_TO_OBJECT&&(proto.sys.Services.prototype.toObject=function(e){return proto.sys.Services.toObject(e,this)},proto.sys.Services.toObject=function(e,t){var o,r={metadata:(o=t.getMetadata())&&proto.sys.Metadata.toObject(e,o),sleep:(o=t.getSleep())&&proto.sys.SleepService.toObject(e,o),cspot:(o=t.getCspot())&&p.Spotify.toObject(e,o),airplay:(o=t.getAirplay())&&l.AirPlay.toObject(e,o),squeezeliteProfilesList:s.Message.toObjectList(t.getSqueezeliteProfilesList(),u.SqueezeliteProfile.toObject,e),releaseUrl:s.Message.getFieldWithDefault(t,7,""),btSink:(o=t.getBtSink())&&proto.sys.BluetoothSink.toObject(e,o),statistics:s.Message.getBooleanFieldWithDefault(t,9,!1),telnet:(o=t.getTelnet())&&proto.sys.Telnet.toObject(e,o),equalizer:(o=t.getEqualizer())&&y.Equalizer.toObject(e,o),currentProfile:s.Message.getFieldWithDefault(t,12,"")};return e&&(r.$jspbMessageInstance=t),r}),proto.sys.Services.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.Services;return proto.sys.Services.deserializeBinaryFromReader(o,t)},proto.sys.Services.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new proto.sys.Metadata;t.readMessage(o,proto.sys.Metadata.deserializeBinaryFromReader),e.setMetadata(o);break;case 2:o=new proto.sys.SleepService;t.readMessage(o,proto.sys.SleepService.deserializeBinaryFromReader),e.setSleep(o);break;case 4:o=new p.Spotify;t.readMessage(o,p.Spotify.deserializeBinaryFromReader),e.setCspot(o);break;case 5:o=new l.AirPlay;t.readMessage(o,l.AirPlay.deserializeBinaryFromReader),e.setAirplay(o);break;case 6:o=new u.SqueezeliteProfile;t.readMessage(o,u.SqueezeliteProfile.deserializeBinaryFromReader),e.addSqueezeliteProfiles(o);break;case 7:o=t.readString();e.setReleaseUrl(o);break;case 8:o=new proto.sys.BluetoothSink;t.readMessage(o,proto.sys.BluetoothSink.deserializeBinaryFromReader),e.setBtSink(o);break;case 9:o=t.readBool();e.setStatistics(o);break;case 10:o=new proto.sys.Telnet;t.readMessage(o,proto.sys.Telnet.deserializeBinaryFromReader),e.setTelnet(o);break;case 11:o=new y.Equalizer;t.readMessage(o,y.Equalizer.deserializeBinaryFromReader),e.setEqualizer(o);break;case 12:o=t.readString();e.setCurrentProfile(o);break;default:t.skipField()}}return e},proto.sys.Services.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.Services.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.Services.serializeBinaryToWriter=function(e,t){var o=void 0;null!=(o=e.getMetadata())&&t.writeMessage(1,o,proto.sys.Metadata.serializeBinaryToWriter),null!=(o=e.getSleep())&&t.writeMessage(2,o,proto.sys.SleepService.serializeBinaryToWriter),null!=(o=e.getCspot())&&t.writeMessage(4,o,p.Spotify.serializeBinaryToWriter),null!=(o=e.getAirplay())&&t.writeMessage(5,o,l.AirPlay.serializeBinaryToWriter),(o=e.getSqueezeliteProfilesList()).length>0&&t.writeRepeatedMessage(6,o,u.SqueezeliteProfile.serializeBinaryToWriter),(o=e.getReleaseUrl()).length>0&&t.writeString(7,o),null!=(o=e.getBtSink())&&t.writeMessage(8,o,proto.sys.BluetoothSink.serializeBinaryToWriter),(o=e.getStatistics())&&t.writeBool(9,o),null!=(o=e.getTelnet())&&t.writeMessage(10,o,proto.sys.Telnet.serializeBinaryToWriter),null!=(o=e.getEqualizer())&&t.writeMessage(11,o,y.Equalizer.serializeBinaryToWriter),(o=e.getCurrentProfile()).length>0&&t.writeString(12,o)},proto.sys.Services.prototype.getMetadata=function(){return s.Message.getWrapperField(this,proto.sys.Metadata,1)},proto.sys.Services.prototype.setMetadata=function(e){return s.Message.setWrapperField(this,1,e)},proto.sys.Services.prototype.clearMetadata=function(){return this.setMetadata(void 0)},proto.sys.Services.prototype.hasMetadata=function(){return null!=s.Message.getField(this,1)},proto.sys.Services.prototype.getSleep=function(){return s.Message.getWrapperField(this,proto.sys.SleepService,2)},proto.sys.Services.prototype.setSleep=function(e){return s.Message.setWrapperField(this,2,e)},proto.sys.Services.prototype.clearSleep=function(){return this.setSleep(void 0)},proto.sys.Services.prototype.hasSleep=function(){return null!=s.Message.getField(this,2)},proto.sys.Services.prototype.getCspot=function(){return s.Message.getWrapperField(this,p.Spotify,4)},proto.sys.Services.prototype.setCspot=function(e){return s.Message.setWrapperField(this,4,e)},proto.sys.Services.prototype.clearCspot=function(){return this.setCspot(void 0)},proto.sys.Services.prototype.hasCspot=function(){return null!=s.Message.getField(this,4)},proto.sys.Services.prototype.getAirplay=function(){return s.Message.getWrapperField(this,l.AirPlay,5)},proto.sys.Services.prototype.setAirplay=function(e){return s.Message.setWrapperField(this,5,e)},proto.sys.Services.prototype.clearAirplay=function(){return this.setAirplay(void 0)},proto.sys.Services.prototype.hasAirplay=function(){return null!=s.Message.getField(this,5)},proto.sys.Services.prototype.getSqueezeliteProfilesList=function(){return s.Message.getRepeatedWrapperField(this,u.SqueezeliteProfile,6)},proto.sys.Services.prototype.setSqueezeliteProfilesList=function(e){return s.Message.setRepeatedWrapperField(this,6,e)},proto.sys.Services.prototype.addSqueezeliteProfiles=function(e,t){return s.Message.addToRepeatedWrapperField(this,6,e,proto.sys.SqueezeliteProfile,t)},proto.sys.Services.prototype.clearSqueezeliteProfilesList=function(){return this.setSqueezeliteProfilesList([])},proto.sys.Services.prototype.getReleaseUrl=function(){return s.Message.getFieldWithDefault(this,7,"")},proto.sys.Services.prototype.setReleaseUrl=function(e){return s.Message.setProto3StringField(this,7,e)},proto.sys.Services.prototype.getBtSink=function(){return s.Message.getWrapperField(this,proto.sys.BluetoothSink,8)},proto.sys.Services.prototype.setBtSink=function(e){return s.Message.setWrapperField(this,8,e)},proto.sys.Services.prototype.clearBtSink=function(){return this.setBtSink(void 0)},proto.sys.Services.prototype.hasBtSink=function(){return null!=s.Message.getField(this,8)},proto.sys.Services.prototype.getStatistics=function(){return s.Message.getBooleanFieldWithDefault(this,9,!1)},proto.sys.Services.prototype.setStatistics=function(e){return s.Message.setProto3BooleanField(this,9,e)},proto.sys.Services.prototype.getTelnet=function(){return s.Message.getWrapperField(this,proto.sys.Telnet,10)},proto.sys.Services.prototype.setTelnet=function(e){return s.Message.setWrapperField(this,10,e)},proto.sys.Services.prototype.clearTelnet=function(){return this.setTelnet(void 0)},proto.sys.Services.prototype.hasTelnet=function(){return null!=s.Message.getField(this,10)},proto.sys.Services.prototype.getEqualizer=function(){return s.Message.getWrapperField(this,y.Equalizer,11)},proto.sys.Services.prototype.setEqualizer=function(e){return s.Message.setWrapperField(this,11,e)},proto.sys.Services.prototype.clearEqualizer=function(){return this.setEqualizer(void 0)},proto.sys.Services.prototype.hasEqualizer=function(){return null!=s.Message.getField(this,11)},proto.sys.Services.prototype.getCurrentProfile=function(){return s.Message.getFieldWithDefault(this,12,"")},proto.sys.Services.prototype.setCurrentProfile=function(e){return s.Message.setProto3StringField(this,12,e)},proto.sys.TelnetEnableEnum={SERIAL_ONLY:0,TELNET:1,TELNET_SERIAL:2},r.object.extend(t,proto.sys)},3043:(e,t,o)=>{var s=o(3019),r=s,i="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof window&&window||void 0!==i&&i||"undefined"!=typeof self&&self||function(){return this}.call(null)||Function("return this")(),n=o(5465);r.object.extend(proto,n);var a=o(3021);r.object.extend(proto,a),r.exportSymbol("proto.sys.Spotify",null,i),proto.sys.Spotify=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.Spotify,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.Spotify.displayName="proto.sys.Spotify"),s.Message.GENERATE_TO_OBJECT&&(proto.sys.Spotify.prototype.toObject=function(e){return proto.sys.Spotify.toObject(e,this)},proto.sys.Spotify.toObject=function(e,t){var o={enabled:s.Message.getBooleanFieldWithDefault(t,1,!1),bitrate:s.Message.getFieldWithDefault(t,2,0),zeroconf:s.Message.getBooleanFieldWithDefault(t,3,!1),volume:s.Message.getFieldWithDefault(t,4,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.sys.Spotify.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.Spotify;return proto.sys.Spotify.deserializeBinaryFromReader(o,t)},proto.sys.Spotify.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readBool();e.setEnabled(o);break;case 2:o=t.readUint32();e.setBitrate(o);break;case 3:o=t.readBool();e.setZeroconf(o);break;case 4:o=t.readUint32();e.setVolume(o);break;default:t.skipField()}}return e},proto.sys.Spotify.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.Spotify.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.Spotify.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getEnabled())&&t.writeBool(1,o),0!==(o=e.getBitrate())&&t.writeUint32(2,o),(o=e.getZeroconf())&&t.writeBool(3,o),0!==(o=e.getVolume())&&t.writeUint32(4,o)},proto.sys.Spotify.prototype.getEnabled=function(){return s.Message.getBooleanFieldWithDefault(this,1,!1)},proto.sys.Spotify.prototype.setEnabled=function(e){return s.Message.setProto3BooleanField(this,1,e)},proto.sys.Spotify.prototype.getBitrate=function(){return s.Message.getFieldWithDefault(this,2,0)},proto.sys.Spotify.prototype.setBitrate=function(e){return s.Message.setProto3IntField(this,2,e)},proto.sys.Spotify.prototype.getZeroconf=function(){return s.Message.getBooleanFieldWithDefault(this,3,!1)},proto.sys.Spotify.prototype.setZeroconf=function(e){return s.Message.setProto3BooleanField(this,3,e)},proto.sys.Spotify.prototype.getVolume=function(){return s.Message.getFieldWithDefault(this,4,0)},proto.sys.Spotify.prototype.setVolume=function(e){return s.Message.setProto3IntField(this,4,e)},r.object.extend(t,proto.sys)},1480:(e,t,o)=>{var s=o(3019),r=s,i="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof window&&window||void 0!==i&&i||"undefined"!=typeof self&&self||function(){return this}.call(null)||Function("return this")(),n=o(5465);r.object.extend(proto,n);var a=o(3021);r.object.extend(proto,a),r.exportSymbol("proto.sys.BufferOption",null,i),r.exportSymbol("proto.sys.CodexEnum",null,i),r.exportSymbol("proto.sys.DebugLevelEnum",null,i),r.exportSymbol("proto.sys.DebugOptions",null,i),r.exportSymbol("proto.sys.OutputBT",null,i),r.exportSymbol("proto.sys.OutputTypeEnum",null,i),r.exportSymbol("proto.sys.RatesOption",null,i),r.exportSymbol("proto.sys.ResampleAlgorithm",null,i),r.exportSymbol("proto.sys.ResampleOptions",null,i),r.exportSymbol("proto.sys.SampleRate",null,i),r.exportSymbol("proto.sys.Squeezelite",null,i),r.exportSymbol("proto.sys.SqueezeliteProfile",null,i),proto.sys.OutputBT=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.OutputBT,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.OutputBT.displayName="proto.sys.OutputBT"),proto.sys.ResampleOptions=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.ResampleOptions,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.ResampleOptions.displayName="proto.sys.ResampleOptions"),proto.sys.RatesOption=function(e){s.Message.initialize(this,e,0,-1,proto.sys.RatesOption.repeatedFields_,null)},r.inherits(proto.sys.RatesOption,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.RatesOption.displayName="proto.sys.RatesOption"),proto.sys.BufferOption=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.BufferOption,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.BufferOption.displayName="proto.sys.BufferOption"),proto.sys.DebugOptions=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.DebugOptions,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.DebugOptions.displayName="proto.sys.DebugOptions"),proto.sys.Squeezelite=function(e){s.Message.initialize(this,e,0,-1,proto.sys.Squeezelite.repeatedFields_,null)},r.inherits(proto.sys.Squeezelite,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.Squeezelite.displayName="proto.sys.Squeezelite"),proto.sys.SqueezeliteProfile=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.SqueezeliteProfile,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.SqueezeliteProfile.displayName="proto.sys.SqueezeliteProfile"),s.Message.GENERATE_TO_OBJECT&&(proto.sys.OutputBT.prototype.toObject=function(e){return proto.sys.OutputBT.toObject(e,this)},proto.sys.OutputBT.toObject=function(e,t){var o={sinkName:s.Message.getFieldWithDefault(t,1,""),pin:s.Message.getFieldWithDefault(t,2,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.sys.OutputBT.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.OutputBT;return proto.sys.OutputBT.deserializeBinaryFromReader(o,t)},proto.sys.OutputBT.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setSinkName(o);break;case 2:o=t.readString();e.setPin(o);break;default:t.skipField()}}return e},proto.sys.OutputBT.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.OutputBT.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.OutputBT.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getSinkName()).length>0&&t.writeString(1,o),(o=e.getPin()).length>0&&t.writeString(2,o)},proto.sys.OutputBT.prototype.getSinkName=function(){return s.Message.getFieldWithDefault(this,1,"")},proto.sys.OutputBT.prototype.setSinkName=function(e){return s.Message.setProto3StringField(this,1,e)},proto.sys.OutputBT.prototype.getPin=function(){return s.Message.getFieldWithDefault(this,2,"")},proto.sys.OutputBT.prototype.setPin=function(e){return s.Message.setProto3StringField(this,2,e)},s.Message.GENERATE_TO_OBJECT&&(proto.sys.ResampleOptions.prototype.toObject=function(e){return proto.sys.ResampleOptions.toObject(e,this)},proto.sys.ResampleOptions.toObject=function(e,t){var o={algorithm:s.Message.getFieldWithDefault(t,1,0),interpolateFilterCoefficients:s.Message.getBooleanFieldWithDefault(t,2,!1)};return e&&(o.$jspbMessageInstance=t),o}),proto.sys.ResampleOptions.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.ResampleOptions;return proto.sys.ResampleOptions.deserializeBinaryFromReader(o,t)},proto.sys.ResampleOptions.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readEnum();e.setAlgorithm(o);break;case 2:o=t.readBool();e.setInterpolateFilterCoefficients(o);break;default:t.skipField()}}return e},proto.sys.ResampleOptions.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.ResampleOptions.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.ResampleOptions.serializeBinaryToWriter=function(e,t){var o=void 0;0!==(o=e.getAlgorithm())&&t.writeEnum(1,o),(o=e.getInterpolateFilterCoefficients())&&t.writeBool(2,o)},proto.sys.ResampleOptions.prototype.getAlgorithm=function(){return s.Message.getFieldWithDefault(this,1,0)},proto.sys.ResampleOptions.prototype.setAlgorithm=function(e){return s.Message.setProto3EnumField(this,1,e)},proto.sys.ResampleOptions.prototype.getInterpolateFilterCoefficients=function(){return s.Message.getBooleanFieldWithDefault(this,2,!1)},proto.sys.ResampleOptions.prototype.setInterpolateFilterCoefficients=function(e){return s.Message.setProto3BooleanField(this,2,e)},proto.sys.RatesOption.repeatedFields_=[3],s.Message.GENERATE_TO_OBJECT&&(proto.sys.RatesOption.prototype.toObject=function(e){return proto.sys.RatesOption.toObject(e,this)},proto.sys.RatesOption.toObject=function(e,t){var o,r={min:s.Message.getFieldWithDefault(t,1,0),max:s.Message.getFieldWithDefault(t,2,0),listList:null==(o=s.Message.getRepeatedField(t,3))?void 0:o};return e&&(r.$jspbMessageInstance=t),r}),proto.sys.RatesOption.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.RatesOption;return proto.sys.RatesOption.deserializeBinaryFromReader(o,t)},proto.sys.RatesOption.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readEnum();e.setMin(o);break;case 2:o=t.readEnum();e.setMax(o);break;case 3:for(var s=t.isDelimited()?t.readPackedEnum():[t.readEnum()],r=0;r<s.length;r++)e.addList(s[r]);break;default:t.skipField()}}return e},proto.sys.RatesOption.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.RatesOption.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.RatesOption.serializeBinaryToWriter=function(e,t){var o=void 0;0!==(o=e.getMin())&&t.writeEnum(1,o),0!==(o=e.getMax())&&t.writeEnum(2,o),(o=e.getListList()).length>0&&t.writePackedEnum(3,o)},proto.sys.RatesOption.prototype.getMin=function(){return s.Message.getFieldWithDefault(this,1,0)},proto.sys.RatesOption.prototype.setMin=function(e){return s.Message.setProto3EnumField(this,1,e)},proto.sys.RatesOption.prototype.getMax=function(){return s.Message.getFieldWithDefault(this,2,0)},proto.sys.RatesOption.prototype.setMax=function(e){return s.Message.setProto3EnumField(this,2,e)},proto.sys.RatesOption.prototype.getListList=function(){return s.Message.getRepeatedField(this,3)},proto.sys.RatesOption.prototype.setListList=function(e){return s.Message.setField(this,3,e||[])},proto.sys.RatesOption.prototype.addList=function(e,t){return s.Message.addToRepeatedField(this,3,e,t)},proto.sys.RatesOption.prototype.clearListList=function(){return this.setListList([])},s.Message.GENERATE_TO_OBJECT&&(proto.sys.BufferOption.prototype.toObject=function(e){return proto.sys.BufferOption.toObject(e,this)},proto.sys.BufferOption.toObject=function(e,t){var o={stream:s.Message.getFieldWithDefault(t,1,0),output:s.Message.getFieldWithDefault(t,2,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.sys.BufferOption.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.BufferOption;return proto.sys.BufferOption.deserializeBinaryFromReader(o,t)},proto.sys.BufferOption.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readUint32();e.setStream(o);break;case 2:o=t.readUint32();e.setOutput(o);break;default:t.skipField()}}return e},proto.sys.BufferOption.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.BufferOption.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.BufferOption.serializeBinaryToWriter=function(e,t){var o=void 0;0!==(o=e.getStream())&&t.writeUint32(1,o),0!==(o=e.getOutput())&&t.writeUint32(2,o)},proto.sys.BufferOption.prototype.getStream=function(){return s.Message.getFieldWithDefault(this,1,0)},proto.sys.BufferOption.prototype.setStream=function(e){return s.Message.setProto3IntField(this,1,e)},proto.sys.BufferOption.prototype.getOutput=function(){return s.Message.getFieldWithDefault(this,2,0)},proto.sys.BufferOption.prototype.setOutput=function(e){return s.Message.setProto3IntField(this,2,e)},s.Message.GENERATE_TO_OBJECT&&(proto.sys.DebugOptions.prototype.toObject=function(e){return proto.sys.DebugOptions.toObject(e,this)},proto.sys.DebugOptions.toObject=function(e,t){var o={output:s.Message.getFieldWithDefault(t,1,0),stream:s.Message.getFieldWithDefault(t,2,0),decode:s.Message.getFieldWithDefault(t,3,0),slimproto:s.Message.getFieldWithDefault(t,4,0),ir:s.Message.getFieldWithDefault(t,5,0),all:s.Message.getFieldWithDefault(t,6,0)};return e&&(o.$jspbMessageInstance=t),o}),proto.sys.DebugOptions.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.DebugOptions;return proto.sys.DebugOptions.deserializeBinaryFromReader(o,t)},proto.sys.DebugOptions.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readEnum();e.setOutput(o);break;case 2:o=t.readEnum();e.setStream(o);break;case 3:o=t.readEnum();e.setDecode(o);break;case 4:o=t.readEnum();e.setSlimproto(o);break;case 5:o=t.readEnum();e.setIr(o);break;case 6:o=t.readEnum();e.setAll(o);break;default:t.skipField()}}return e},proto.sys.DebugOptions.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.DebugOptions.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.DebugOptions.serializeBinaryToWriter=function(e,t){var o=void 0;0!==(o=e.getOutput())&&t.writeEnum(1,o),0!==(o=e.getStream())&&t.writeEnum(2,o),0!==(o=e.getDecode())&&t.writeEnum(3,o),0!==(o=e.getSlimproto())&&t.writeEnum(4,o),0!==(o=e.getIr())&&t.writeEnum(5,o),0!==(o=e.getAll())&&t.writeEnum(6,o)},proto.sys.DebugOptions.prototype.getOutput=function(){return s.Message.getFieldWithDefault(this,1,0)},proto.sys.DebugOptions.prototype.setOutput=function(e){return s.Message.setProto3EnumField(this,1,e)},proto.sys.DebugOptions.prototype.getStream=function(){return s.Message.getFieldWithDefault(this,2,0)},proto.sys.DebugOptions.prototype.setStream=function(e){return s.Message.setProto3EnumField(this,2,e)},proto.sys.DebugOptions.prototype.getDecode=function(){return s.Message.getFieldWithDefault(this,3,0)},proto.sys.DebugOptions.prototype.setDecode=function(e){return s.Message.setProto3EnumField(this,3,e)},proto.sys.DebugOptions.prototype.getSlimproto=function(){return s.Message.getFieldWithDefault(this,4,0)},proto.sys.DebugOptions.prototype.setSlimproto=function(e){return s.Message.setProto3EnumField(this,4,e)},proto.sys.DebugOptions.prototype.getIr=function(){return s.Message.getFieldWithDefault(this,5,0)},proto.sys.DebugOptions.prototype.setIr=function(e){return s.Message.setProto3EnumField(this,5,e)},proto.sys.DebugOptions.prototype.getAll=function(){return s.Message.getFieldWithDefault(this,6,0)},proto.sys.DebugOptions.prototype.setAll=function(e){return s.Message.setProto3EnumField(this,6,e)},proto.sys.Squeezelite.repeatedFields_=[13,14],s.Message.GENERATE_TO_OBJECT&&(proto.sys.Squeezelite.prototype.toObject=function(e){return proto.sys.Squeezelite.toObject(e,this)},proto.sys.Squeezelite.toObject=function(e,t){var o,r={outputType:s.Message.getFieldWithDefault(t,1,0),rates:(o=t.getRates())&&proto.sys.RatesOption.toObject(e,o),ampGpioTimeout:s.Message.getFieldWithDefault(t,3,0),wavAiffHeaderParsing:s.Message.getBooleanFieldWithDefault(t,4,!1),serverNameIp:s.Message.getFieldWithDefault(t,5,""),serverPort:s.Message.getFieldWithDefault(t,6,0),enabled:s.Message.getBooleanFieldWithDefault(t,7,!1),outputBt:(o=t.getOutputBt())&&proto.sys.OutputBT.toObject(e,o),log:(o=t.getLog())&&proto.sys.DebugOptions.toObject(e,o),maxRate:s.Message.getFieldWithDefault(t,10,0),buffers:(o=t.getBuffers())&&proto.sys.BufferOption.toObject(e,o),resample:s.Message.getFieldWithDefault(t,12,""),includedCodexList:null==(o=s.Message.getRepeatedField(t,13))?void 0:o,excludedCodexList:null==(o=s.Message.getRepeatedField(t,14))?void 0:o};return e&&(r.$jspbMessageInstance=t),r}),proto.sys.Squeezelite.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.Squeezelite;return proto.sys.Squeezelite.deserializeBinaryFromReader(o,t)},proto.sys.Squeezelite.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readEnum();e.setOutputType(o);break;case 2:o=new proto.sys.RatesOption;t.readMessage(o,proto.sys.RatesOption.deserializeBinaryFromReader),e.setRates(o);break;case 3:o=t.readInt32();e.setAmpGpioTimeout(o);break;case 4:o=t.readBool();e.setWavAiffHeaderParsing(o);break;case 5:o=t.readString();e.setServerNameIp(o);break;case 6:o=t.readUint32();e.setServerPort(o);break;case 7:o=t.readBool();e.setEnabled(o);break;case 8:o=new proto.sys.OutputBT;t.readMessage(o,proto.sys.OutputBT.deserializeBinaryFromReader),e.setOutputBt(o);break;case 9:o=new proto.sys.DebugOptions;t.readMessage(o,proto.sys.DebugOptions.deserializeBinaryFromReader),e.setLog(o);break;case 10:o=t.readUint32();e.setMaxRate(o);break;case 11:o=new proto.sys.BufferOption;t.readMessage(o,proto.sys.BufferOption.deserializeBinaryFromReader),e.setBuffers(o);break;case 12:o=t.readString();e.setResample(o);break;case 13:for(var s=t.isDelimited()?t.readPackedEnum():[t.readEnum()],r=0;r<s.length;r++)e.addIncludedCodex(s[r]);break;case 14:for(s=t.isDelimited()?t.readPackedEnum():[t.readEnum()],r=0;r<s.length;r++)e.addExcludedCodex(s[r]);break;default:t.skipField()}}return e},proto.sys.Squeezelite.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.Squeezelite.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.Squeezelite.serializeBinaryToWriter=function(e,t){var o=void 0;0!==(o=e.getOutputType())&&t.writeEnum(1,o),null!=(o=e.getRates())&&t.writeMessage(2,o,proto.sys.RatesOption.serializeBinaryToWriter),0!==(o=e.getAmpGpioTimeout())&&t.writeInt32(3,o),(o=e.getWavAiffHeaderParsing())&&t.writeBool(4,o),(o=e.getServerNameIp()).length>0&&t.writeString(5,o),0!==(o=e.getServerPort())&&t.writeUint32(6,o),(o=e.getEnabled())&&t.writeBool(7,o),null!=(o=e.getOutputBt())&&t.writeMessage(8,o,proto.sys.OutputBT.serializeBinaryToWriter),null!=(o=e.getLog())&&t.writeMessage(9,o,proto.sys.DebugOptions.serializeBinaryToWriter),0!==(o=e.getMaxRate())&&t.writeUint32(10,o),null!=(o=e.getBuffers())&&t.writeMessage(11,o,proto.sys.BufferOption.serializeBinaryToWriter),(o=e.getResample()).length>0&&t.writeString(12,o),(o=e.getIncludedCodexList()).length>0&&t.writePackedEnum(13,o),(o=e.getExcludedCodexList()).length>0&&t.writePackedEnum(14,o)},proto.sys.Squeezelite.prototype.getOutputType=function(){return s.Message.getFieldWithDefault(this,1,0)},proto.sys.Squeezelite.prototype.setOutputType=function(e){return s.Message.setProto3EnumField(this,1,e)},proto.sys.Squeezelite.prototype.getRates=function(){return s.Message.getWrapperField(this,proto.sys.RatesOption,2)},proto.sys.Squeezelite.prototype.setRates=function(e){return s.Message.setWrapperField(this,2,e)},proto.sys.Squeezelite.prototype.clearRates=function(){return this.setRates(void 0)},proto.sys.Squeezelite.prototype.hasRates=function(){return null!=s.Message.getField(this,2)},proto.sys.Squeezelite.prototype.getAmpGpioTimeout=function(){return s.Message.getFieldWithDefault(this,3,0)},proto.sys.Squeezelite.prototype.setAmpGpioTimeout=function(e){return s.Message.setProto3IntField(this,3,e)},proto.sys.Squeezelite.prototype.getWavAiffHeaderParsing=function(){return s.Message.getBooleanFieldWithDefault(this,4,!1)},proto.sys.Squeezelite.prototype.setWavAiffHeaderParsing=function(e){return s.Message.setProto3BooleanField(this,4,e)},proto.sys.Squeezelite.prototype.getServerNameIp=function(){return s.Message.getFieldWithDefault(this,5,"")},proto.sys.Squeezelite.prototype.setServerNameIp=function(e){return s.Message.setProto3StringField(this,5,e)},proto.sys.Squeezelite.prototype.getServerPort=function(){return s.Message.getFieldWithDefault(this,6,0)},proto.sys.Squeezelite.prototype.setServerPort=function(e){return s.Message.setProto3IntField(this,6,e)},proto.sys.Squeezelite.prototype.getEnabled=function(){return s.Message.getBooleanFieldWithDefault(this,7,!1)},proto.sys.Squeezelite.prototype.setEnabled=function(e){return s.Message.setProto3BooleanField(this,7,e)},proto.sys.Squeezelite.prototype.getOutputBt=function(){return s.Message.getWrapperField(this,proto.sys.OutputBT,8)},proto.sys.Squeezelite.prototype.setOutputBt=function(e){return s.Message.setWrapperField(this,8,e)},proto.sys.Squeezelite.prototype.clearOutputBt=function(){return this.setOutputBt(void 0)},proto.sys.Squeezelite.prototype.hasOutputBt=function(){return null!=s.Message.getField(this,8)},proto.sys.Squeezelite.prototype.getLog=function(){return s.Message.getWrapperField(this,proto.sys.DebugOptions,9)},proto.sys.Squeezelite.prototype.setLog=function(e){return s.Message.setWrapperField(this,9,e)},proto.sys.Squeezelite.prototype.clearLog=function(){return this.setLog(void 0)},proto.sys.Squeezelite.prototype.hasLog=function(){return null!=s.Message.getField(this,9)},proto.sys.Squeezelite.prototype.getMaxRate=function(){return s.Message.getFieldWithDefault(this,10,0)},proto.sys.Squeezelite.prototype.setMaxRate=function(e){return s.Message.setProto3IntField(this,10,e)},proto.sys.Squeezelite.prototype.getBuffers=function(){return s.Message.getWrapperField(this,proto.sys.BufferOption,11)},proto.sys.Squeezelite.prototype.setBuffers=function(e){return s.Message.setWrapperField(this,11,e)},proto.sys.Squeezelite.prototype.clearBuffers=function(){return this.setBuffers(void 0)},proto.sys.Squeezelite.prototype.hasBuffers=function(){return null!=s.Message.getField(this,11)},proto.sys.Squeezelite.prototype.getResample=function(){return s.Message.getFieldWithDefault(this,12,"")},proto.sys.Squeezelite.prototype.setResample=function(e){return s.Message.setProto3StringField(this,12,e)},proto.sys.Squeezelite.prototype.getIncludedCodexList=function(){return s.Message.getRepeatedField(this,13)},proto.sys.Squeezelite.prototype.setIncludedCodexList=function(e){return s.Message.setField(this,13,e||[])},proto.sys.Squeezelite.prototype.addIncludedCodex=function(e,t){return s.Message.addToRepeatedField(this,13,e,t)},proto.sys.Squeezelite.prototype.clearIncludedCodexList=function(){return this.setIncludedCodexList([])},proto.sys.Squeezelite.prototype.getExcludedCodexList=function(){return s.Message.getRepeatedField(this,14)},proto.sys.Squeezelite.prototype.setExcludedCodexList=function(e){return s.Message.setField(this,14,e||[])},proto.sys.Squeezelite.prototype.addExcludedCodex=function(e,t){return s.Message.addToRepeatedField(this,14,e,t)},proto.sys.Squeezelite.prototype.clearExcludedCodexList=function(){return this.setExcludedCodexList([])},s.Message.GENERATE_TO_OBJECT&&(proto.sys.SqueezeliteProfile.prototype.toObject=function(e){return proto.sys.SqueezeliteProfile.toObject(e,this)},proto.sys.SqueezeliteProfile.toObject=function(e,t){var o,r={name:s.Message.getFieldWithDefault(t,1,""),profile:(o=t.getProfile())&&proto.sys.Squeezelite.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.sys.SqueezeliteProfile.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.SqueezeliteProfile;return proto.sys.SqueezeliteProfile.deserializeBinaryFromReader(o,t)},proto.sys.SqueezeliteProfile.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readString();e.setName(o);break;case 2:o=new proto.sys.Squeezelite;t.readMessage(o,proto.sys.Squeezelite.deserializeBinaryFromReader),e.setProfile(o);break;default:t.skipField()}}return e},proto.sys.SqueezeliteProfile.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.SqueezeliteProfile.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.SqueezeliteProfile.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getName()).length>0&&t.writeString(1,o),null!=(o=e.getProfile())&&t.writeMessage(2,o,proto.sys.Squeezelite.serializeBinaryToWriter)},proto.sys.SqueezeliteProfile.prototype.getName=function(){return s.Message.getFieldWithDefault(this,1,"")},proto.sys.SqueezeliteProfile.prototype.setName=function(e){return s.Message.setProto3StringField(this,1,e)},proto.sys.SqueezeliteProfile.prototype.getProfile=function(){return s.Message.getWrapperField(this,proto.sys.Squeezelite,2)},proto.sys.SqueezeliteProfile.prototype.setProfile=function(e){return s.Message.setWrapperField(this,2,e)},proto.sys.SqueezeliteProfile.prototype.clearProfile=function(){return this.setProfile(void 0)},proto.sys.SqueezeliteProfile.prototype.hasProfile=function(){return null!=s.Message.getField(this,2)},proto.sys.OutputTypeEnum={OUTPUT_UNKNOWN:0,OUTPUT_I2S:1,OUTPUT_SPDIF:2,OUTPUT_BLUETOOTH:3},proto.sys.ResampleAlgorithm={RA_DISABLED:0,RA_BASIC_LINEAR:1,RA_THIRTEEN_TAPS:2,RA_TWENTY_ONE_TAPS:3},proto.sys.SampleRate={SAMPLE_RATE_UNSPECIFIED:0,SAMPLE_RATE_8000:8e3,SAMPLE_RATE_11025:11025,SAMPLE_RATE_12000:12e3,SAMPLE_RATE_16000:16e3,SAMPLE_RATE_22050:22050,SAMPLE_RATE_24000:24e3,SAMPLE_RATE_32000:32e3,SAMPLE_RATE_44100:44100,SAMPLE_RATE_48000:48e3,SAMPLE_RATE_88200:88200,SAMPLE_RATE_96000:96e3,SAMPLE_RATE_176400:176400,SAMPLE_RATE_192000:192e3,SAMPLE_RATE_352800:352800,SAMPLE_RATE_384000:384e3,SAMPLE_RATE_705600:705600,SAMPLE_RATE_768000:768e3},proto.sys.DebugLevelEnum={DEFAULT:0,ERROR:1,WARN:2,INFO:3,DEBUG:4,SDEBUG:5},proto.sys.CodexEnum={C_UNDEFINED:0,C_ALAC:1,C_OGG:2,C_OPS:3,C_FLAC:4,C_PCM:5,C_MP3:6,C_MAD:7,C_MPG:8},r.object.extend(t,proto.sys)},4874:(e,t,o)=>{var s=o(3019),r=s,i="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof window&&window||void 0!==i&&i||"undefined"!=typeof self&&self||function(){return this}.call(null)||Function("return this")(),n=o(3359);r.object.extend(proto,n);var a=o(7567);r.object.extend(proto,a);var p=o(5437);r.object.extend(proto,p);var l=o(8395);r.object.extend(proto,l);var u=o(5397);r.object.extend(proto,u);var y=o(5465);r.object.extend(proto,y);var d=o(3021);r.object.extend(proto,d),r.exportSymbol("proto.sys.Config",null,i),proto.sys.Config=function(e){s.Message.initialize(this,e,0,-1,null,null)},r.inherits(proto.sys.Config,s.Message),r.DEBUG&&!COMPILED&&(proto.sys.Config.displayName="proto.sys.Config"),s.Message.GENERATE_TO_OBJECT&&(proto.sys.Config.prototype.toObject=function(e){return proto.sys.Config.toObject(e,this)},proto.sys.Config.toObject=function(e,t){var o,r={gpios:(o=t.getGpios())&&a.Gpios.toObject(e,o),dev:(o=t.getDev())&&p.Dev.toObject(e,o),services:(o=t.getServices())&&n.Services.toObject(e,o),names:(o=t.getNames())&&l.Names.toObject(e,o),target:s.Message.getFieldWithDefault(t,5,""),net:(o=t.getNet())&&u.NetworkConfig.toObject(e,o)};return e&&(r.$jspbMessageInstance=t),r}),proto.sys.Config.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.sys.Config;return proto.sys.Config.deserializeBinaryFromReader(o,t)},proto.sys.Config.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=new a.Gpios;t.readMessage(o,a.Gpios.deserializeBinaryFromReader),e.setGpios(o);break;case 2:o=new p.Dev;t.readMessage(o,p.Dev.deserializeBinaryFromReader),e.setDev(o);break;case 3:o=new n.Services;t.readMessage(o,n.Services.deserializeBinaryFromReader),e.setServices(o);break;case 4:o=new l.Names;t.readMessage(o,l.Names.deserializeBinaryFromReader),e.setNames(o);break;case 5:o=t.readString();e.setTarget(o);break;case 6:o=new u.NetworkConfig;t.readMessage(o,u.NetworkConfig.deserializeBinaryFromReader),e.setNet(o);break;default:t.skipField()}}return e},proto.sys.Config.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.sys.Config.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.sys.Config.serializeBinaryToWriter=function(e,t){var o=void 0;null!=(o=e.getGpios())&&t.writeMessage(1,o,a.Gpios.serializeBinaryToWriter),null!=(o=e.getDev())&&t.writeMessage(2,o,p.Dev.serializeBinaryToWriter),null!=(o=e.getServices())&&t.writeMessage(3,o,n.Services.serializeBinaryToWriter),null!=(o=e.getNames())&&t.writeMessage(4,o,l.Names.serializeBinaryToWriter),(o=e.getTarget()).length>0&&t.writeString(5,o),null!=(o=e.getNet())&&t.writeMessage(6,o,u.NetworkConfig.serializeBinaryToWriter)},proto.sys.Config.prototype.getGpios=function(){return s.Message.getWrapperField(this,a.Gpios,1)},proto.sys.Config.prototype.setGpios=function(e){return s.Message.setWrapperField(this,1,e)},proto.sys.Config.prototype.clearGpios=function(){return this.setGpios(void 0)},proto.sys.Config.prototype.hasGpios=function(){return null!=s.Message.getField(this,1)},proto.sys.Config.prototype.getDev=function(){return s.Message.getWrapperField(this,p.Dev,2)},proto.sys.Config.prototype.setDev=function(e){return s.Message.setWrapperField(this,2,e)},proto.sys.Config.prototype.clearDev=function(){return this.setDev(void 0)},proto.sys.Config.prototype.hasDev=function(){return null!=s.Message.getField(this,2)},proto.sys.Config.prototype.getServices=function(){return s.Message.getWrapperField(this,n.Services,3)},proto.sys.Config.prototype.setServices=function(e){return s.Message.setWrapperField(this,3,e)},proto.sys.Config.prototype.clearServices=function(){return this.setServices(void 0)},proto.sys.Config.prototype.hasServices=function(){return null!=s.Message.getField(this,3)},proto.sys.Config.prototype.getNames=function(){return s.Message.getWrapperField(this,l.Names,4)},proto.sys.Config.prototype.setNames=function(e){return s.Message.setWrapperField(this,4,e)},proto.sys.Config.prototype.clearNames=function(){return this.setNames(void 0)},proto.sys.Config.prototype.hasNames=function(){return null!=s.Message.getField(this,4)},proto.sys.Config.prototype.getTarget=function(){return s.Message.getFieldWithDefault(this,5,"")},proto.sys.Config.prototype.setTarget=function(e){return s.Message.setProto3StringField(this,5,e)},proto.sys.Config.prototype.getNet=function(){return s.Message.getWrapperField(this,u.NetworkConfig,6)},proto.sys.Config.prototype.setNet=function(e){return s.Message.setWrapperField(this,6,e)},proto.sys.Config.prototype.clearNet=function(){return this.setNet(void 0)},proto.sys.Config.prototype.hasNet=function(){return null!=s.Message.getField(this,6)},r.object.extend(t,proto.sys)},5465:(e,t,o)=>{var s=o(3019),r=s,i="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof window&&window||void 0!==i&&i||"undefined"!=typeof self&&self||function(){return this}.call(null)||Function("return this")(),n=o(9392);r.object.extend(proto,n);var a=o(3021);r.object.extend(proto,a),r.exportSymbol("proto.CustomOptions",null,i),r.exportSymbol("proto.CustomOptions.DefaultValueCase",null,i),r.exportSymbol("proto.custEnum",null,i),r.exportSymbol("proto.custField",null,i),r.exportSymbol("proto.custFile",null,i),r.exportSymbol("proto.custMsg",null,i),proto.CustomOptions=function(e){s.Message.initialize(this,e,0,500,null,proto.CustomOptions.oneofGroups_)},r.inherits(proto.CustomOptions,s.Message),r.DEBUG&&!COMPILED&&(proto.CustomOptions.displayName="proto.CustomOptions"),proto.CustomOptions.oneofGroups_=[[50050,50051,50052,50053,50054,50055,50056,50057,50058,50059,50060]],proto.CustomOptions.DefaultValueCase={DEFAULT_VALUE_NOT_SET:0,V_STRING:50050,V_UINT32:50051,V_INT32:50052,V_UINT64:50053,V_INT64:50054,V_DOUBLE:50055,V_FLOAT:50056,V_BOOL:50057,V_ENUM:50058,V_BYTES:50059,V_MSG:50060},proto.CustomOptions.prototype.getDefaultValueCase=function(){return s.Message.computeOneofCase(this,proto.CustomOptions.oneofGroups_[0])},s.Message.GENERATE_TO_OBJECT&&(proto.CustomOptions.prototype.toObject=function(e){return proto.CustomOptions.toObject(e,this)},proto.CustomOptions.toObject=function(e,t){var o={initFromMac:s.Message.getBooleanFieldWithDefault(t,50001,!1),constPrefix:s.Message.getFieldWithDefault(t,50002,""),readOnly:s.Message.getBooleanFieldWithDefault(t,50003,!1),vString:s.Message.getFieldWithDefault(t,50050,""),vUint32:s.Message.getFieldWithDefault(t,50051,0),vInt32:s.Message.getFieldWithDefault(t,50052,0),vUint64:s.Message.getFieldWithDefault(t,50053,0),vInt64:s.Message.getFieldWithDefault(t,50054,0),vDouble:s.Message.getFloatingPointFieldWithDefault(t,50055,0),vFloat:s.Message.getFloatingPointFieldWithDefault(t,50056,0),vBool:s.Message.getBooleanFieldWithDefault(t,50057,!1),vEnum:s.Message.getFieldWithDefault(t,50058,""),vBytes:t.getVBytes_asB64(),vMsg:t.getVMsg_asB64(),globalName:s.Message.getFieldWithDefault(t,50005,"")};return e&&(o.$jspbMessageInstance=t),o}),proto.CustomOptions.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.CustomOptions;return proto.CustomOptions.deserializeBinaryFromReader(o,t)},proto.CustomOptions.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 50001:var o=t.readBool();e.setInitFromMac(o);break;case 50002:o=t.readString();e.setConstPrefix(o);break;case 50003:o=t.readBool();e.setReadOnly(o);break;case 50050:o=t.readString();e.setVString(o);break;case 50051:o=t.readUint32();e.setVUint32(o);break;case 50052:o=t.readInt32();e.setVInt32(o);break;case 50053:o=t.readUint64();e.setVUint64(o);break;case 50054:o=t.readInt64();e.setVInt64(o);break;case 50055:o=t.readDouble();e.setVDouble(o);break;case 50056:o=t.readFloat();e.setVFloat(o);break;case 50057:o=t.readBool();e.setVBool(o);break;case 50058:o=t.readString();e.setVEnum(o);break;case 50059:o=t.readBytes();e.setVBytes(o);break;case 50060:o=t.readBytes();e.setVMsg(o);break;case 50005:o=t.readString();e.setGlobalName(o);break;default:t.skipField()}}return e},proto.CustomOptions.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.CustomOptions.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.CustomOptions.serializeBinaryToWriter=function(e,t){var o=void 0;(o=e.getInitFromMac())&&t.writeBool(50001,o),(o=e.getConstPrefix()).length>0&&t.writeString(50002,o),(o=e.getReadOnly())&&t.writeBool(50003,o),null!=(o=s.Message.getField(e,50050))&&t.writeString(50050,o),null!=(o=s.Message.getField(e,50051))&&t.writeUint32(50051,o),null!=(o=s.Message.getField(e,50052))&&t.writeInt32(50052,o),null!=(o=s.Message.getField(e,50053))&&t.writeUint64(50053,o),null!=(o=s.Message.getField(e,50054))&&t.writeInt64(50054,o),null!=(o=s.Message.getField(e,50055))&&t.writeDouble(50055,o),null!=(o=s.Message.getField(e,50056))&&t.writeFloat(50056,o),null!=(o=s.Message.getField(e,50057))&&t.writeBool(50057,o),null!=(o=s.Message.getField(e,50058))&&t.writeString(50058,o),null!=(o=s.Message.getField(e,50059))&&t.writeBytes(50059,o),null!=(o=s.Message.getField(e,50060))&&t.writeBytes(50060,o),(o=e.getGlobalName()).length>0&&t.writeString(50005,o)},proto.CustomOptions.prototype.getInitFromMac=function(){return s.Message.getBooleanFieldWithDefault(this,50001,!1)},proto.CustomOptions.prototype.setInitFromMac=function(e){return s.Message.setProto3BooleanField(this,50001,e)},proto.CustomOptions.prototype.getConstPrefix=function(){return s.Message.getFieldWithDefault(this,50002,"")},proto.CustomOptions.prototype.setConstPrefix=function(e){return s.Message.setProto3StringField(this,50002,e)},proto.CustomOptions.prototype.getReadOnly=function(){return s.Message.getBooleanFieldWithDefault(this,50003,!1)},proto.CustomOptions.prototype.setReadOnly=function(e){return s.Message.setProto3BooleanField(this,50003,e)},proto.CustomOptions.prototype.getVString=function(){return s.Message.getFieldWithDefault(this,50050,"")},proto.CustomOptions.prototype.setVString=function(e){return s.Message.setOneofField(this,50050,proto.CustomOptions.oneofGroups_[0],e)},proto.CustomOptions.prototype.clearVString=function(){return s.Message.setOneofField(this,50050,proto.CustomOptions.oneofGroups_[0],void 0)},proto.CustomOptions.prototype.hasVString=function(){return null!=s.Message.getField(this,50050)},proto.CustomOptions.prototype.getVUint32=function(){return s.Message.getFieldWithDefault(this,50051,0)},proto.CustomOptions.prototype.setVUint32=function(e){return s.Message.setOneofField(this,50051,proto.CustomOptions.oneofGroups_[0],e)},proto.CustomOptions.prototype.clearVUint32=function(){return s.Message.setOneofField(this,50051,proto.CustomOptions.oneofGroups_[0],void 0)},proto.CustomOptions.prototype.hasVUint32=function(){return null!=s.Message.getField(this,50051)},proto.CustomOptions.prototype.getVInt32=function(){return s.Message.getFieldWithDefault(this,50052,0)},proto.CustomOptions.prototype.setVInt32=function(e){return s.Message.setOneofField(this,50052,proto.CustomOptions.oneofGroups_[0],e)},proto.CustomOptions.prototype.clearVInt32=function(){return s.Message.setOneofField(this,50052,proto.CustomOptions.oneofGroups_[0],void 0)},proto.CustomOptions.prototype.hasVInt32=function(){return null!=s.Message.getField(this,50052)},proto.CustomOptions.prototype.getVUint64=function(){return s.Message.getFieldWithDefault(this,50053,0)},proto.CustomOptions.prototype.setVUint64=function(e){return s.Message.setOneofField(this,50053,proto.CustomOptions.oneofGroups_[0],e)},proto.CustomOptions.prototype.clearVUint64=function(){return s.Message.setOneofField(this,50053,proto.CustomOptions.oneofGroups_[0],void 0)},proto.CustomOptions.prototype.hasVUint64=function(){return null!=s.Message.getField(this,50053)},proto.CustomOptions.prototype.getVInt64=function(){return s.Message.getFieldWithDefault(this,50054,0)},proto.CustomOptions.prototype.setVInt64=function(e){return s.Message.setOneofField(this,50054,proto.CustomOptions.oneofGroups_[0],e)},proto.CustomOptions.prototype.clearVInt64=function(){return s.Message.setOneofField(this,50054,proto.CustomOptions.oneofGroups_[0],void 0)},proto.CustomOptions.prototype.hasVInt64=function(){return null!=s.Message.getField(this,50054)},proto.CustomOptions.prototype.getVDouble=function(){return s.Message.getFloatingPointFieldWithDefault(this,50055,0)},proto.CustomOptions.prototype.setVDouble=function(e){return s.Message.setOneofField(this,50055,proto.CustomOptions.oneofGroups_[0],e)},proto.CustomOptions.prototype.clearVDouble=function(){return s.Message.setOneofField(this,50055,proto.CustomOptions.oneofGroups_[0],void 0)},proto.CustomOptions.prototype.hasVDouble=function(){return null!=s.Message.getField(this,50055)},proto.CustomOptions.prototype.getVFloat=function(){return s.Message.getFloatingPointFieldWithDefault(this,50056,0)},proto.CustomOptions.prototype.setVFloat=function(e){return s.Message.setOneofField(this,50056,proto.CustomOptions.oneofGroups_[0],e)},proto.CustomOptions.prototype.clearVFloat=function(){return s.Message.setOneofField(this,50056,proto.CustomOptions.oneofGroups_[0],void 0)},proto.CustomOptions.prototype.hasVFloat=function(){return null!=s.Message.getField(this,50056)},proto.CustomOptions.prototype.getVBool=function(){return s.Message.getBooleanFieldWithDefault(this,50057,!1)},proto.CustomOptions.prototype.setVBool=function(e){return s.Message.setOneofField(this,50057,proto.CustomOptions.oneofGroups_[0],e)},proto.CustomOptions.prototype.clearVBool=function(){return s.Message.setOneofField(this,50057,proto.CustomOptions.oneofGroups_[0],void 0)},proto.CustomOptions.prototype.hasVBool=function(){return null!=s.Message.getField(this,50057)},proto.CustomOptions.prototype.getVEnum=function(){return s.Message.getFieldWithDefault(this,50058,"")},proto.CustomOptions.prototype.setVEnum=function(e){return s.Message.setOneofField(this,50058,proto.CustomOptions.oneofGroups_[0],e)},proto.CustomOptions.prototype.clearVEnum=function(){return s.Message.setOneofField(this,50058,proto.CustomOptions.oneofGroups_[0],void 0)},proto.CustomOptions.prototype.hasVEnum=function(){return null!=s.Message.getField(this,50058)},proto.CustomOptions.prototype.getVBytes=function(){return s.Message.getFieldWithDefault(this,50059,"")},proto.CustomOptions.prototype.getVBytes_asB64=function(){return s.Message.bytesAsB64(this.getVBytes())},proto.CustomOptions.prototype.getVBytes_asU8=function(){return s.Message.bytesAsU8(this.getVBytes())},proto.CustomOptions.prototype.setVBytes=function(e){return s.Message.setOneofField(this,50059,proto.CustomOptions.oneofGroups_[0],e)},proto.CustomOptions.prototype.clearVBytes=function(){return s.Message.setOneofField(this,50059,proto.CustomOptions.oneofGroups_[0],void 0)},proto.CustomOptions.prototype.hasVBytes=function(){return null!=s.Message.getField(this,50059)},proto.CustomOptions.prototype.getVMsg=function(){return s.Message.getFieldWithDefault(this,50060,"")},proto.CustomOptions.prototype.getVMsg_asB64=function(){return s.Message.bytesAsB64(this.getVMsg())},proto.CustomOptions.prototype.getVMsg_asU8=function(){return s.Message.bytesAsU8(this.getVMsg())},proto.CustomOptions.prototype.setVMsg=function(e){return s.Message.setOneofField(this,50060,proto.CustomOptions.oneofGroups_[0],e)},proto.CustomOptions.prototype.clearVMsg=function(){return s.Message.setOneofField(this,50060,proto.CustomOptions.oneofGroups_[0],void 0)},proto.CustomOptions.prototype.hasVMsg=function(){return null!=s.Message.getField(this,50060)},proto.CustomOptions.prototype.getGlobalName=function(){return s.Message.getFieldWithDefault(this,50005,"")},proto.CustomOptions.prototype.setGlobalName=function(e){return s.Message.setProto3StringField(this,50005,e)},proto.custFile=new s.ExtensionFieldInfo(2010,{custFile:0},proto.CustomOptions,proto.CustomOptions.toObject,0),n.FileOptions.extensionsBinary[2010]=new s.ExtensionFieldBinaryInfo(proto.custFile,s.BinaryReader.prototype.readMessage,s.BinaryWriter.prototype.writeMessage,proto.CustomOptions.serializeBinaryToWriter,proto.CustomOptions.deserializeBinaryFromReader,!1),n.FileOptions.extensions[2010]=proto.custFile,proto.custMsg=new s.ExtensionFieldInfo(2010,{custMsg:0},proto.CustomOptions,proto.CustomOptions.toObject,0),n.MessageOptions.extensionsBinary[2010]=new s.ExtensionFieldBinaryInfo(proto.custMsg,s.BinaryReader.prototype.readMessage,s.BinaryWriter.prototype.writeMessage,proto.CustomOptions.serializeBinaryToWriter,proto.CustomOptions.deserializeBinaryFromReader,!1),n.MessageOptions.extensions[2010]=proto.custMsg,proto.custEnum=new s.ExtensionFieldInfo(2010,{custEnum:0},proto.CustomOptions,proto.CustomOptions.toObject,0),n.EnumOptions.extensionsBinary[2010]=new s.ExtensionFieldBinaryInfo(proto.custEnum,s.BinaryReader.prototype.readMessage,s.BinaryWriter.prototype.writeMessage,proto.CustomOptions.serializeBinaryToWriter,proto.CustomOptions.deserializeBinaryFromReader,!1),n.EnumOptions.extensions[2010]=proto.custEnum,proto.custField=new s.ExtensionFieldInfo(2010,{custField:0},proto.CustomOptions,proto.CustomOptions.toObject,0),n.FieldOptions.extensionsBinary[2010]=new s.ExtensionFieldBinaryInfo(proto.custField,s.BinaryReader.prototype.readMessage,s.BinaryWriter.prototype.writeMessage,proto.CustomOptions.serializeBinaryToWriter,proto.CustomOptions.deserializeBinaryFromReader,!1),n.FieldOptions.extensions[2010]=proto.custField,r.object.extend(t,proto)},3021:(e,t,o)=>{var s=o(3019),r=s,i="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof window&&window||void 0!==i&&i||"undefined"!=typeof self&&self||function(){return this}.call(null)||Function("return this")(),n=o(9392);r.object.extend(proto,n),r.exportSymbol("proto.DescriptorSize",null,i),r.exportSymbol("proto.FieldType",null,i),r.exportSymbol("proto.IntSize",null,i),r.exportSymbol("proto.NanoPBOptions",null,i),r.exportSymbol("proto.TypenameMangling",null,i),r.exportSymbol("proto.nanopb",null,i),r.exportSymbol("proto.nanopbEnumopt",null,i),r.exportSymbol("proto.nanopbFileopt",null,i),r.exportSymbol("proto.nanopbMsgopt",null,i),proto.NanoPBOptions=function(e){s.Message.initialize(this,e,0,-1,proto.NanoPBOptions.repeatedFields_,null)},r.inherits(proto.NanoPBOptions,s.Message),r.DEBUG&&!COMPILED&&(proto.NanoPBOptions.displayName="proto.NanoPBOptions"),proto.NanoPBOptions.repeatedFields_=[24,26],s.Message.GENERATE_TO_OBJECT&&(proto.NanoPBOptions.prototype.toObject=function(e){return proto.NanoPBOptions.toObject(e,this)},proto.NanoPBOptions.toObject=function(e,t){var o,r={maxSize:null==(o=s.Message.getField(t,1))?void 0:o,maxLength:null==(o=s.Message.getField(t,14))?void 0:o,maxCount:null==(o=s.Message.getField(t,2))?void 0:o,intSize:s.Message.getFieldWithDefault(t,7,0),type:s.Message.getFieldWithDefault(t,3,0),longNames:s.Message.getBooleanFieldWithDefault(t,4,!0),packedStruct:s.Message.getBooleanFieldWithDefault(t,5,!1),packedEnum:s.Message.getBooleanFieldWithDefault(t,10,!1),skipMessage:s.Message.getBooleanFieldWithDefault(t,6,!1),noUnions:s.Message.getBooleanFieldWithDefault(t,8,!1),msgid:null==(o=s.Message.getField(t,9))?void 0:o,anonymousOneof:s.Message.getBooleanFieldWithDefault(t,11,!1),proto3:s.Message.getBooleanFieldWithDefault(t,12,!1),proto3SingularMsgs:s.Message.getBooleanFieldWithDefault(t,21,!1),enumToString:s.Message.getBooleanFieldWithDefault(t,13,!1),fixedLength:s.Message.getBooleanFieldWithDefault(t,15,!1),fixedCount:s.Message.getBooleanFieldWithDefault(t,16,!1),submsgCallback:s.Message.getBooleanFieldWithDefault(t,22,!1),mangleNames:s.Message.getFieldWithDefault(t,17,0),callbackDatatype:s.Message.getFieldWithDefault(t,18,"pb_callback_t"),callbackFunction:s.Message.getFieldWithDefault(t,19,"pb_default_field_callback"),descriptorsize:s.Message.getFieldWithDefault(t,20,0),defaultHas:s.Message.getBooleanFieldWithDefault(t,23,!1),includeList:null==(o=s.Message.getRepeatedField(t,24))?void 0:o,excludeList:null==(o=s.Message.getRepeatedField(t,26))?void 0:o,pb_package:null==(o=s.Message.getField(t,25))?void 0:o,typeOverride:null==(o=s.Message.getField(t,27))?void 0:o,sortByTag:s.Message.getBooleanFieldWithDefault(t,28,!0)};return e&&(r.$jspbMessageInstance=t),r}),proto.NanoPBOptions.deserializeBinary=function(e){var t=new s.BinaryReader(e),o=new proto.NanoPBOptions;return proto.NanoPBOptions.deserializeBinaryFromReader(o,t)},proto.NanoPBOptions.deserializeBinaryFromReader=function(e,t){for(;t.nextField()&&!t.isEndGroup();){switch(t.getFieldNumber()){case 1:var o=t.readInt32();e.setMaxSize(o);break;case 14:o=t.readInt32();e.setMaxLength(o);break;case 2:o=t.readInt32();e.setMaxCount(o);break;case 7:o=t.readEnum();e.setIntSize(o);break;case 3:o=t.readEnum();e.setType(o);break;case 4:o=t.readBool();e.setLongNames(o);break;case 5:o=t.readBool();e.setPackedStruct(o);break;case 10:o=t.readBool();e.setPackedEnum(o);break;case 6:o=t.readBool();e.setSkipMessage(o);break;case 8:o=t.readBool();e.setNoUnions(o);break;case 9:o=t.readUint32();e.setMsgid(o);break;case 11:o=t.readBool();e.setAnonymousOneof(o);break;case 12:o=t.readBool();e.setProto3(o);break;case 21:o=t.readBool();e.setProto3SingularMsgs(o);break;case 13:o=t.readBool();e.setEnumToString(o);break;case 15:o=t.readBool();e.setFixedLength(o);break;case 16:o=t.readBool();e.setFixedCount(o);break;case 22:o=t.readBool();e.setSubmsgCallback(o);break;case 17:o=t.readEnum();e.setMangleNames(o);break;case 18:o=t.readString();e.setCallbackDatatype(o);break;case 19:o=t.readString();e.setCallbackFunction(o);break;case 20:o=t.readEnum();e.setDescriptorsize(o);break;case 23:o=t.readBool();e.setDefaultHas(o);break;case 24:o=t.readString();e.addInclude(o);break;case 26:o=t.readString();e.addExclude(o);break;case 25:o=t.readString();e.setPackage(o);break;case 27:o=t.readEnum();e.setTypeOverride(o);break;case 28:o=t.readBool();e.setSortByTag(o);break;default:t.skipField()}}return e},proto.NanoPBOptions.prototype.serializeBinary=function(){var e=new s.BinaryWriter;return proto.NanoPBOptions.serializeBinaryToWriter(this,e),e.getResultBuffer()},proto.NanoPBOptions.serializeBinaryToWriter=function(e,t){var o=void 0;null!=(o=s.Message.getField(e,1))&&t.writeInt32(1,o),null!=(o=s.Message.getField(e,14))&&t.writeInt32(14,o),null!=(o=s.Message.getField(e,2))&&t.writeInt32(2,o),null!=(o=s.Message.getField(e,7))&&t.writeEnum(7,o),null!=(o=s.Message.getField(e,3))&&t.writeEnum(3,o),null!=(o=s.Message.getField(e,4))&&t.writeBool(4,o),null!=(o=s.Message.getField(e,5))&&t.writeBool(5,o),null!=(o=s.Message.getField(e,10))&&t.writeBool(10,o),null!=(o=s.Message.getField(e,6))&&t.writeBool(6,o),null!=(o=s.Message.getField(e,8))&&t.writeBool(8,o),null!=(o=s.Message.getField(e,9))&&t.writeUint32(9,o),null!=(o=s.Message.getField(e,11))&&t.writeBool(11,o),null!=(o=s.Message.getField(e,12))&&t.writeBool(12,o),null!=(o=s.Message.getField(e,21))&&t.writeBool(21,o),null!=(o=s.Message.getField(e,13))&&t.writeBool(13,o),null!=(o=s.Message.getField(e,15))&&t.writeBool(15,o),null!=(o=s.Message.getField(e,16))&&t.writeBool(16,o),null!=(o=s.Message.getField(e,22))&&t.writeBool(22,o),null!=(o=s.Message.getField(e,17))&&t.writeEnum(17,o),null!=(o=s.Message.getField(e,18))&&t.writeString(18,o),null!=(o=s.Message.getField(e,19))&&t.writeString(19,o),null!=(o=s.Message.getField(e,20))&&t.writeEnum(20,o),null!=(o=s.Message.getField(e,23))&&t.writeBool(23,o),(o=e.getIncludeList()).length>0&&t.writeRepeatedString(24,o),(o=e.getExcludeList()).length>0&&t.writeRepeatedString(26,o),null!=(o=s.Message.getField(e,25))&&t.writeString(25,o),null!=(o=s.Message.getField(e,27))&&t.writeEnum(27,o),null!=(o=s.Message.getField(e,28))&&t.writeBool(28,o)},proto.NanoPBOptions.prototype.getMaxSize=function(){return s.Message.getFieldWithDefault(this,1,0)},proto.NanoPBOptions.prototype.setMaxSize=function(e){return s.Message.setField(this,1,e)},proto.NanoPBOptions.prototype.clearMaxSize=function(){return s.Message.setField(this,1,void 0)},proto.NanoPBOptions.prototype.hasMaxSize=function(){return null!=s.Message.getField(this,1)},proto.NanoPBOptions.prototype.getMaxLength=function(){return s.Message.getFieldWithDefault(this,14,0)},proto.NanoPBOptions.prototype.setMaxLength=function(e){return s.Message.setField(this,14,e)},proto.NanoPBOptions.prototype.clearMaxLength=function(){return s.Message.setField(this,14,void 0)},proto.NanoPBOptions.prototype.hasMaxLength=function(){return null!=s.Message.getField(this,14)},proto.NanoPBOptions.prototype.getMaxCount=function(){return s.Message.getFieldWithDefault(this,2,0)},proto.NanoPBOptions.prototype.setMaxCount=function(e){return s.Message.setField(this,2,e)},proto.NanoPBOptions.prototype.clearMaxCount=function(){return s.Message.setField(this,2,void 0)},proto.NanoPBOptions.prototype.hasMaxCount=function(){return null!=s.Message.getField(this,2)},proto.NanoPBOptions.prototype.getIntSize=function(){return s.Message.getFieldWithDefault(this,7,0)},proto.NanoPBOptions.prototype.setIntSize=function(e){return s.Message.setField(this,7,e)},proto.NanoPBOptions.prototype.clearIntSize=function(){return s.Message.setField(this,7,void 0)},proto.NanoPBOptions.prototype.hasIntSize=function(){return null!=s.Message.getField(this,7)},proto.NanoPBOptions.prototype.getType=function(){return s.Message.getFieldWithDefault(this,3,0)},proto.NanoPBOptions.prototype.setType=function(e){return s.Message.setField(this,3,e)},proto.NanoPBOptions.prototype.clearType=function(){return s.Message.setField(this,3,void 0)},proto.NanoPBOptions.prototype.hasType=function(){return null!=s.Message.getField(this,3)},proto.NanoPBOptions.prototype.getLongNames=function(){return s.Message.getBooleanFieldWithDefault(this,4,!0)},proto.NanoPBOptions.prototype.setLongNames=function(e){return s.Message.setField(this,4,e)},proto.NanoPBOptions.prototype.clearLongNames=function(){return s.Message.setField(this,4,void 0)},proto.NanoPBOptions.prototype.hasLongNames=function(){return null!=s.Message.getField(this,4)},proto.NanoPBOptions.prototype.getPackedStruct=function(){return s.Message.getBooleanFieldWithDefault(this,5,!1)},proto.NanoPBOptions.prototype.setPackedStruct=function(e){return s.Message.setField(this,5,e)},proto.NanoPBOptions.prototype.clearPackedStruct=function(){return s.Message.setField(this,5,void 0)},proto.NanoPBOptions.prototype.hasPackedStruct=function(){return null!=s.Message.getField(this,5)},proto.NanoPBOptions.prototype.getPackedEnum=function(){return s.Message.getBooleanFieldWithDefault(this,10,!1)},proto.NanoPBOptions.prototype.setPackedEnum=function(e){return s.Message.setField(this,10,e)},proto.NanoPBOptions.prototype.clearPackedEnum=function(){return s.Message.setField(this,10,void 0)},proto.NanoPBOptions.prototype.hasPackedEnum=function(){return null!=s.Message.getField(this,10)},proto.NanoPBOptions.prototype.getSkipMessage=function(){return s.Message.getBooleanFieldWithDefault(this,6,!1)},proto.NanoPBOptions.prototype.setSkipMessage=function(e){return s.Message.setField(this,6,e)},proto.NanoPBOptions.prototype.clearSkipMessage=function(){return s.Message.setField(this,6,void 0)},proto.NanoPBOptions.prototype.hasSkipMessage=function(){return null!=s.Message.getField(this,6)},proto.NanoPBOptions.prototype.getNoUnions=function(){return s.Message.getBooleanFieldWithDefault(this,8,!1)},proto.NanoPBOptions.prototype.setNoUnions=function(e){return s.Message.setField(this,8,e)},proto.NanoPBOptions.prototype.clearNoUnions=function(){return s.Message.setField(this,8,void 0)},proto.NanoPBOptions.prototype.hasNoUnions=function(){return null!=s.Message.getField(this,8)},proto.NanoPBOptions.prototype.getMsgid=function(){return s.Message.getFieldWithDefault(this,9,0)},proto.NanoPBOptions.prototype.setMsgid=function(e){return s.Message.setField(this,9,e)},proto.NanoPBOptions.prototype.clearMsgid=function(){return s.Message.setField(this,9,void 0)},proto.NanoPBOptions.prototype.hasMsgid=function(){return null!=s.Message.getField(this,9)},proto.NanoPBOptions.prototype.getAnonymousOneof=function(){return s.Message.getBooleanFieldWithDefault(this,11,!1)},proto.NanoPBOptions.prototype.setAnonymousOneof=function(e){return s.Message.setField(this,11,e)},proto.NanoPBOptions.prototype.clearAnonymousOneof=function(){return s.Message.setField(this,11,void 0)},proto.NanoPBOptions.prototype.hasAnonymousOneof=function(){return null!=s.Message.getField(this,11)},proto.NanoPBOptions.prototype.getProto3=function(){return s.Message.getBooleanFieldWithDefault(this,12,!1)},proto.NanoPBOptions.prototype.setProto3=function(e){return s.Message.setField(this,12,e)},proto.NanoPBOptions.prototype.clearProto3=function(){return s.Message.setField(this,12,void 0)},proto.NanoPBOptions.prototype.hasProto3=function(){return null!=s.Message.getField(this,12)},proto.NanoPBOptions.prototype.getProto3SingularMsgs=function(){return s.Message.getBooleanFieldWithDefault(this,21,!1)},proto.NanoPBOptions.prototype.setProto3SingularMsgs=function(e){return s.Message.setField(this,21,e)},proto.NanoPBOptions.prototype.clearProto3SingularMsgs=function(){return s.Message.setField(this,21,void 0)},proto.NanoPBOptions.prototype.hasProto3SingularMsgs=function(){return null!=s.Message.getField(this,21)},proto.NanoPBOptions.prototype.getEnumToString=function(){return s.Message.getBooleanFieldWithDefault(this,13,!1)},proto.NanoPBOptions.prototype.setEnumToString=function(e){return s.Message.setField(this,13,e)},proto.NanoPBOptions.prototype.clearEnumToString=function(){return s.Message.setField(this,13,void 0)},proto.NanoPBOptions.prototype.hasEnumToString=function(){return null!=s.Message.getField(this,13)},proto.NanoPBOptions.prototype.getFixedLength=function(){return s.Message.getBooleanFieldWithDefault(this,15,!1)},proto.NanoPBOptions.prototype.setFixedLength=function(e){return s.Message.setField(this,15,e)},proto.NanoPBOptions.prototype.clearFixedLength=function(){return s.Message.setField(this,15,void 0)},proto.NanoPBOptions.prototype.hasFixedLength=function(){return null!=s.Message.getField(this,15)},proto.NanoPBOptions.prototype.getFixedCount=function(){return s.Message.getBooleanFieldWithDefault(this,16,!1)},proto.NanoPBOptions.prototype.setFixedCount=function(e){return s.Message.setField(this,16,e)},proto.NanoPBOptions.prototype.clearFixedCount=function(){return s.Message.setField(this,16,void 0)},proto.NanoPBOptions.prototype.hasFixedCount=function(){return null!=s.Message.getField(this,16)},proto.NanoPBOptions.prototype.getSubmsgCallback=function(){return s.Message.getBooleanFieldWithDefault(this,22,!1)},proto.NanoPBOptions.prototype.setSubmsgCallback=function(e){return s.Message.setField(this,22,e)},proto.NanoPBOptions.prototype.clearSubmsgCallback=function(){return s.Message.setField(this,22,void 0)},proto.NanoPBOptions.prototype.hasSubmsgCallback=function(){return null!=s.Message.getField(this,22)},proto.NanoPBOptions.prototype.getMangleNames=function(){return s.Message.getFieldWithDefault(this,17,0)},proto.NanoPBOptions.prototype.setMangleNames=function(e){return s.Message.setField(this,17,e)},proto.NanoPBOptions.prototype.clearMangleNames=function(){return s.Message.setField(this,17,void 0)},proto.NanoPBOptions.prototype.hasMangleNames=function(){return null!=s.Message.getField(this,17)},proto.NanoPBOptions.prototype.getCallbackDatatype=function(){return s.Message.getFieldWithDefault(this,18,"pb_callback_t")},proto.NanoPBOptions.prototype.setCallbackDatatype=function(e){return s.Message.setField(this,18,e)},proto.NanoPBOptions.prototype.clearCallbackDatatype=function(){return s.Message.setField(this,18,void 0)},proto.NanoPBOptions.prototype.hasCallbackDatatype=function(){return null!=s.Message.getField(this,18)},proto.NanoPBOptions.prototype.getCallbackFunction=function(){return s.Message.getFieldWithDefault(this,19,"pb_default_field_callback")},proto.NanoPBOptions.prototype.setCallbackFunction=function(e){return s.Message.setField(this,19,e)},proto.NanoPBOptions.prototype.clearCallbackFunction=function(){return s.Message.setField(this,19,void 0)},proto.NanoPBOptions.prototype.hasCallbackFunction=function(){return null!=s.Message.getField(this,19)},proto.NanoPBOptions.prototype.getDescriptorsize=function(){return s.Message.getFieldWithDefault(this,20,0)},proto.NanoPBOptions.prototype.setDescriptorsize=function(e){return s.Message.setField(this,20,e)},proto.NanoPBOptions.prototype.clearDescriptorsize=function(){return s.Message.setField(this,20,void 0)},proto.NanoPBOptions.prototype.hasDescriptorsize=function(){return null!=s.Message.getField(this,20)},proto.NanoPBOptions.prototype.getDefaultHas=function(){return s.Message.getBooleanFieldWithDefault(this,23,!1)},proto.NanoPBOptions.prototype.setDefaultHas=function(e){return s.Message.setField(this,23,e)},proto.NanoPBOptions.prototype.clearDefaultHas=function(){return s.Message.setField(this,23,void 0)},proto.NanoPBOptions.prototype.hasDefaultHas=function(){return null!=s.Message.getField(this,23)},proto.NanoPBOptions.prototype.getIncludeList=function(){return s.Message.getRepeatedField(this,24)},proto.NanoPBOptions.prototype.setIncludeList=function(e){return s.Message.setField(this,24,e||[])},proto.NanoPBOptions.prototype.addInclude=function(e,t){return s.Message.addToRepeatedField(this,24,e,t)},proto.NanoPBOptions.prototype.clearIncludeList=function(){return this.setIncludeList([])},proto.NanoPBOptions.prototype.getExcludeList=function(){return s.Message.getRepeatedField(this,26)},proto.NanoPBOptions.prototype.setExcludeList=function(e){return s.Message.setField(this,26,e||[])},proto.NanoPBOptions.prototype.addExclude=function(e,t){return s.Message.addToRepeatedField(this,26,e,t)},proto.NanoPBOptions.prototype.clearExcludeList=function(){return this.setExcludeList([])},proto.NanoPBOptions.prototype.getPackage=function(){return s.Message.getFieldWithDefault(this,25,"")},proto.NanoPBOptions.prototype.setPackage=function(e){return s.Message.setField(this,25,e)},proto.NanoPBOptions.prototype.clearPackage=function(){return s.Message.setField(this,25,void 0)},proto.NanoPBOptions.prototype.hasPackage=function(){return null!=s.Message.getField(this,25)},proto.NanoPBOptions.prototype.getTypeOverride=function(){return s.Message.getFieldWithDefault(this,27,1)},proto.NanoPBOptions.prototype.setTypeOverride=function(e){return s.Message.setField(this,27,e)},proto.NanoPBOptions.prototype.clearTypeOverride=function(){return s.Message.setField(this,27,void 0)},proto.NanoPBOptions.prototype.hasTypeOverride=function(){return null!=s.Message.getField(this,27)},proto.NanoPBOptions.prototype.getSortByTag=function(){return s.Message.getBooleanFieldWithDefault(this,28,!0)},proto.NanoPBOptions.prototype.setSortByTag=function(e){return s.Message.setField(this,28,e)},proto.NanoPBOptions.prototype.clearSortByTag=function(){return s.Message.setField(this,28,void 0)},proto.NanoPBOptions.prototype.hasSortByTag=function(){return null!=s.Message.getField(this,28)},proto.FieldType={FT_DEFAULT:0,FT_CALLBACK:1,FT_POINTER:4,FT_STATIC:2,FT_IGNORE:3,FT_INLINE:5},proto.IntSize={IS_DEFAULT:0,IS_8:8,IS_16:16,IS_32:32,IS_64:64},proto.TypenameMangling={M_NONE:0,M_STRIP_PACKAGE:1,M_FLATTEN:2,M_PACKAGE_INITIALS:3},proto.DescriptorSize={DS_AUTO:0,DS_1:1,DS_2:2,DS_4:4,DS_8:8},proto.nanopbFileopt=new s.ExtensionFieldInfo(1010,{nanopbFileopt:0},proto.NanoPBOptions,proto.NanoPBOptions.toObject,0),n.FileOptions.extensionsBinary[1010]=new s.ExtensionFieldBinaryInfo(proto.nanopbFileopt,s.BinaryReader.prototype.readMessage,s.BinaryWriter.prototype.writeMessage,proto.NanoPBOptions.serializeBinaryToWriter,proto.NanoPBOptions.deserializeBinaryFromReader,!1),n.FileOptions.extensions[1010]=proto.nanopbFileopt,proto.nanopbMsgopt=new s.ExtensionFieldInfo(1010,{nanopbMsgopt:0},proto.NanoPBOptions,proto.NanoPBOptions.toObject,0),n.MessageOptions.extensionsBinary[1010]=new s.ExtensionFieldBinaryInfo(proto.nanopbMsgopt,s.BinaryReader.prototype.readMessage,s.BinaryWriter.prototype.writeMessage,proto.NanoPBOptions.serializeBinaryToWriter,proto.NanoPBOptions.deserializeBinaryFromReader,!1),n.MessageOptions.extensions[1010]=proto.nanopbMsgopt,proto.nanopbEnumopt=new s.ExtensionFieldInfo(1010,{nanopbEnumopt:0},proto.NanoPBOptions,proto.NanoPBOptions.toObject,0),n.EnumOptions.extensionsBinary[1010]=new s.ExtensionFieldBinaryInfo(proto.nanopbEnumopt,s.BinaryReader.prototype.readMessage,s.BinaryWriter.prototype.writeMessage,proto.NanoPBOptions.serializeBinaryToWriter,proto.NanoPBOptions.deserializeBinaryFromReader,!1),n.EnumOptions.extensions[1010]=proto.nanopbEnumopt,proto.nanopb=new s.ExtensionFieldInfo(1010,{nanopb:0},proto.NanoPBOptions,proto.NanoPBOptions.toObject,0),n.FieldOptions.extensionsBinary[1010]=new s.ExtensionFieldBinaryInfo(proto.nanopb,s.BinaryReader.prototype.readMessage,s.BinaryWriter.prototype.writeMessage,proto.NanoPBOptions.serializeBinaryToWriter,proto.NanoPBOptions.deserializeBinaryFromReader,!1),n.FieldOptions.extensions[1010]=proto.nanopb,r.object.extend(t,proto)},8393:(e,t,o)=>{"use strict";o.r(t)},3607:(e,t,o)=>{"use strict";o(3138),o(8393),o(4861),o(9044),o(4874)},9044:function(e,t,o){"use strict";var s=o(9755),r=this&&this.__createBinding||(Object.create?function(e,t,o,s){void 0===s&&(s=o);var r=Object.getOwnPropertyDescriptor(t,o);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[o]}}),Object.defineProperty(e,s,r)}:function(e,t,o,s){void 0===s&&(s=o),e[s]=t[o]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&r(t,e,o);return i(t,e),t},a=this&&this.__awaiter||function(e,t,o,s){return new(o||(o=Promise))((function(r,i){function n(e){try{p(s.next(e))}catch(e){i(e)}}function a(e){try{p(s.throw(e))}catch(e){i(e)}}function p(e){var t;e.done?r(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(n,a)}p((s=s.apply(e,t||[])).next())}))},p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=o(6492);const u=p(o(646));o(3281);const y=n(o(3138));function d(){s("#flashfilename").val=null,O.StartOTA()}function c(e){"reboot_ota"==e?(s("#reboot_ota_nav").removeClass("active").prop("disabled",!0),re(500,"","reboot_ota")):(s("#reboot_nav").removeClass("active"),re(500,"",e))}function g(e){let t,o,r,i;return"string"==typeof e?(o=e,t=s(`#${o}`)):(o=s(e).attr("id"),t=s(e)),"checkbox"===t.attr("type")?(i=t.prop("checked")?o.replace("cmd_opt_",""):"",r=!0):(i=o.replace("cmd_opt_",""),r=t.val(),"string"==typeof r?r=`${r.includes(" ")?'"':""}${r}${r.includes(" ")?'"':""}`:"number"!=typeof r&&(r=r.toString())),{opt:i,val:r}}function f(){let e=function(e){const t=e&&"string"==typeof e&&e.match("[Yy1]");return t&&null!==t&&t.length>0}(u.default.get("show-nvs"));const t=s("input#show-nvs")[0];t.checked=e,t.checked||R?s('*[href*="-nvs"]').show():s('*[href*="-nvs"]').hide()}var h;window.hideSurrounding=function(e){s(e).parent().parent().hide()},window.hFlash=function(){d()},window.handleReboot=function(e){c(e)},Object.assign(String.prototype,{format(...e){return this.replace(/{(\d+)}/g,(function(t,o){const s=parseInt(o,10);return void 0!==e[s]?e[s]:t}))}}),Object.assign(String.prototype,{encodeHTML(){return l.encode(this).replace(/\n/g,"<br />")}}),Object.assign(Date.prototype,{toLocalShort(){return this.toLocaleString(void 0,{dateStyle:"short",timeStyle:"short"})}}),function(e){e[e.NVS_TYPE_U8=1]="NVS_TYPE_U8",e[e.NVS_TYPE_I8=17]="NVS_TYPE_I8",e[e.NVS_TYPE_U16=2]="NVS_TYPE_U16",e[e.NVS_TYPE_I16=18]="NVS_TYPE_I16",e[e.NVS_TYPE_U32=4]="NVS_TYPE_U32",e[e.NVS_TYPE_I32=20]="NVS_TYPE_I32",e[e.NVS_TYPE_U64=8]="NVS_TYPE_U64",e[e.NVS_TYPE_I64=24]="NVS_TYPE_I64",e[e.NVS_TYPE_STR=33]="NVS_TYPE_STR",e[e.NVS_TYPE_BLOB=66]="NVS_TYPE_BLOB",e[e.NVS_TYPE_ANY=255]="NVS_TYPE_ANY"}(h||(h={}));const M={bt_playing:{label:"",icon:"media_bluetooth_on"},bt_disconnected:{label:"",icon:"media_bluetooth_off"},bt_neutral:{label:"",icon:"bluetooth"},bt_connecting:{label:"",icon:"bluetooth_searching"},bt_connected:{label:"",icon:"bluetooth_connected"},bt_disabled:{label:"",icon:"bluetooth_disabled"},play_arrow:{label:"",icon:"play_circle_filled"},pause:{label:"",icon:"pause_circle"},stop:{label:"",icon:"stop_circle"},"":{label:"",icon:""}},m=[{icon:"battery_0_bar",label:"▪",ranges:[{f:5.8,t:6.8},{f:8.8,t:10.2}]},{icon:"battery_2_bar",label:"▪▪",ranges:[{f:6.8,t:7.4},{f:10.2,t:11.1}]},{icon:"battery_3_bar",label:"▪▪▪",ranges:[{f:7.4,t:7.5},{f:11.1,t:11.25}]},{icon:"battery_4_bar",label:"▪▪▪▪",ranges:[{f:7.5,t:7.8},{f:11.25,t:11.7}]}],B=[{desc:"Idle",sub:["bt_neutral"]},{desc:"Discovering",sub:["bt_connecting"]},{desc:"Discovered",sub:["bt_connecting"]},{desc:"Unconnected",sub:["bt_disconnected"]},{desc:"Connecting",sub:["bt_connecting"]},{desc:"Connected",sub:["bt_connected","play_arrow","bt_playing","pause","stop"]},{desc:"Disconnecting",sub:["bt_disconnected"]}],F={OK:0,FAIL:1,DISC:2,LOST:3,RESTORE:4,ETH:5},S=["eRunning","eReady","eBlocked","eSuspended","eDeleted"];let O={NONE:0,REBOOT_TO_RECOVERY:2,SET_FWURL:5,FLASHING:6,DONE:7,UPLOADING:8,ERROR:9,UPLOADCOMPLETE:10,_state:-1,olderRecovery:!1,statusText:"",flashURL:"",flashFileName:"",statusPercent:0,Completed:!1,recovery:!1,prevRecovery:!1,updateModal:new y.Modal(document.getElementById("otadiv"),{}),reset:function(){return this.olderRecovery=!1,this.statusText="",this.statusPercent=-1,this.flashURL="",this.flashFileName=void 0,this.UpdateProgress(),s("#rTable tr.release").removeClass("table-success table-warning"),s(".flact").prop("disabled",!1),s("#flashfilename")[0].value=null,s("#fw-url-input")[0].value=null,this.isStateError()||(s("span#flash-status").html(""),s("#fwProgressLabel").parent().removeClass("bg-danger")),this._state=this.NONE,this},isStateUploadComplete:function(){return this._state==this.UPLOADCOMPLETE},isStateError:function(){return this._state==this.ERROR},isStateNone:function(){return this._state==this.NONE},isStateRebootRecovery:function(){return this._state==this.REBOOT_TO_RECOVERY},isStateSetUrl:function(){return this._state==this.SET_FWURL},isStateFlashing:function(){return this._state==this.FLASHING},isStateDone:function(){return this._state==this.DONE},isStateUploading:function(){return this._state==this.UPLOADING},init:function(){return this._state=this.NONE,this},SetStateError:function(){return this._state=this.ERROR,s("#fwProgressLabel").parent().addClass("bg-danger"),this},SetStateNone:function(){return this._state=this.NONE,this},SetStateRebootRecovery:function(){return this._state=this.REBOOT_TO_RECOVERY,this.SetStatusText("Starting recovery mode."),s.ajax({url:"/recovery.zzz",context:this,dataType:"text",method:"POST",cache:!1,contentType:"application/json; charset=utf-8",data:JSON.stringify({timestamp:Date.now()}),error:function(e,t,o){var s;this.setOTAError(`Unexpected error while trying to restart to recovery. (status=${null!==(s=e.status)&&void 0!==s?s:""}, error=${null!=o?o:""} ) `)},complete:function(e){this.SetStatusText("Waiting for system to boot.")}}),this},SetStateSetUrl:function(){return this._state=this.SET_FWURL,this.statusText="Sending firmware download location.",I({fwurl:{value:this.flashURL,type:33}}),this},SetStateFlashing:function(){return this._state=this.FLASHING,this},SetStateDone:function(){return this._state=this.DONE,this.reset(),this},SetStateUploading:function(){return this._state=this.UPLOADING,this.SetStatusText("Sending file to device.")},SetStateUploadComplete:function(){return this._state=this.UPLOADCOMPLETE,this},isFlashExecuting:function(){return!0==(this._state!=this.UPLOADING&&(""!==this.statusText||this.statusPercent>=0))},toString:function(){return Object.keys(this).find((e=>this[e]===this._state))},setOTATargets:function(){this.flashURL="",this.flashFileName="",this.flashURL=s("#fw-url-input").val();let e=s("#flashfilename")[0].files;return e.length>0&&(this.flashFileName=e[0]),0==this.flashFileName.length&&0==this.flashURL.length&&this.setOTAError("Invalid url or file. Cannot start OTA"),this},setOTAError:function(e){return this.SetStateError().SetStatusPercent(0).SetStatusText(e).reset(),this},ShowDialog:function(){return this.isStateNone()||(this.updateModal.show(),s(".flact").prop("disabled",!0)),this},SetStatusPercent:function(e){var t=this.statusPercent!=e;return this.statusPercent=e,t&&(this.isStateUploading()||this.isStateFlashing()||this.SetStateFlashing(),100==e&&(this.isStateFlashing()?this.SetStateDone():this.isStateUploading()&&(this.statusPercent=0,this.SetStateFlashing())),this.UpdateProgress().ShowDialog()),this},SetStatusText:function(e){var t=this.statusText!=e;return this.statusText=e,t&&(s("span#flash-status").html(this.statusText),this.ShowDialog()),this},UpdateProgress:function(){return s(".progress-bar").css("width",this.statusPercent+"%").attr("aria-valuenow",this.statusPercent).text(this.statusPercent+"%"),s(".progress-bar").html((this.isStateDone()?100:this.statusPercent)+"%"),this},StartOTA:function(){return this.logEvent(this.StartOTA.name),s("#fwProgressLabel").parent().removeClass("bg-danger"),this.setOTATargets(),this.isStateError()||(R?this.SetStateFlashing().TargetReadyStartOTA():this.SetStateRebootRecovery()),this},UploadLocalFile:function(){this.SetStateUploading();const e=new XMLHttpRequest;var t=this.HandleUploadProgressEvent.bind(this),o=this.setOTAError.bind(this);e.upload.addEventListener("progress",t,!1),e.onreadystatechange=function(){4===e.readyState&&(0!==e.status&&404!==e.status||o("Upload Failed. Recovery version might not support uploading. Please use web update instead."))},e.open("POST","/flash.zzz",!0),e.send(this.flashFileName)},TargetReadyStartOTA:function(){return R&&this.prevRecovery&&!this.isStateRebootRecovery()&&!this.isStateFlashing()?this:(this.logEvent(this.TargetReadyStartOTA.name),R?(this.prevRecovery=!0,void(""!==this.flashFileName?this.UploadLocalFile():""!=this.flashURL?this.SetStateSetUrl():this.setOTAError("Invalid URL or file name while trying to start the OTa process"))):(console.error("Event TargetReadyStartOTA fired in the wrong mode "),this))},HandleUploadProgressEvent:function(e){this.logEvent(this.HandleUploadProgressEvent.name),this.SetStateUploading().SetStatusPercent(Math.round(e.loaded/e.total*100)).SetStatusText("Uploading file to device")},EventTargetStatus:function(e){var t,o;this.isStateNone()||this.logEvent(this.EventTargetStatus.name),null!==(t=e.ota_pct)&&void 0!==t&&t&&(this.olderRecovery=!0,this.SetStatusPercent(e.ota_pct)),""!=(null!==(o=e.ota_dsc)&&void 0!==o?o:"")&&(this.olderRecovery=!0,this.SetStatusText(e.ota_dsc)),null!=e.recovery&&(this.recovery=1===e.recovery),this.isStateRebootRecovery()&&this.recovery&&this.TargetReadyStartOTA()},EventOTAMessageClass:function(e){this.logEvent(this.EventOTAMessageClass.name);var t=JSON.parse(e);this.SetStatusPercent(t.ota_pct).SetStatusText(t.ota_dsc)},logEvent:function(e){console.log(`${e}, flash state ${this.toString()}, recovery: ${this.recovery}, ota pct: ${this.statusPercent}, ota desc: ${this.statusText}`)}},b=!1,E=!1,P=2500;function I(e){let t={timestamp:Date.now(),config:e};s.ajax({url:"/config.zzz",dataType:"text",method:"POST",cache:!1,contentType:"application/json; charset=utf-8",data:JSON.stringify(t),error:w})}function D(){return null!=U&&U.hasOwnProperty("ip")&&"0.0.0.0"!=U.ip&&""!=U.ip}function v(e){return D()?e.icon:e.label}function C(e){s("#o_type").children("span").css({display:"none"});let t=!1;e!==L&&(t=!0,L=e),s("#"+L).prop("checked",!0),s("#o_"+L).css({display:"inline"}),t&&Object.entries(A[L]).forEach((([e,t])=>{s(`#cmd_opt_${e}`).val(t)}))}function w(e,t,o){console.log(e.status),console.log(o),""!==o&&Be(o,"MESSAGING_ERROR")}function W(e,t,o,r=!1){let i="table-success";"MESSAGING_WARNING"===t?i="table-warning":"MESSAGING_ERROR"===t&&(i="table-danger"),s("#toast_"+e).removeClass("table-success").removeClass("table-warning").removeClass("table-danger").addClass(i).addClass("show");let n=o.substring(0,o.length-1).encodeHTML().replace(/\n/g,"<br />");n=(s("#msg_"+e).html().length>0&&r?s("#msg_"+e).html()+"<br/>":"")+n,s("#msg_"+e).html(n)}let T="https://api.github.com/repos/sle118/squeezelite-esp32/releases",R=!1,z=!1;const A={i2s:{b:"500:2000",C:"30",W:"",Z:"96000",o:"I2S"},spdif:{b:"500:2000",C:"30",W:"",Z:"48000",o:"SPDIF"},bt:{b:"500:2000",C:"30",W:"",Z:"44100",o:"BT"}};let G,k={codecs:["flac","pcm","mp3","ogg","aac","wma","alac","dsd","mad","mpg"]},N=null,_=0,x="MESSAGING_INFO",j=NaN;var L="";let U,$,q="",V="Squeezelite-ESP32",H="",J=V,Y=16,K="",X=V,Z="",Q="",ee="";const te={CONN:0,MAN:1,STS:2};function oe(e,t){return new Promise(((o,s)=>{e.then((e=>setTimeout((()=>o(e)),t)),(e=>setTimeout((()=>s(e)),t)))}))}function se(e){const t={};s("input.nvs").each((function(o,s){const r=s,i=r.attributes.getNamedItem("nvs_type");if(!e&&i){const e=parseInt(i.value,10);if(""!==r.id){const o=e<=h.NVS_TYPE_I64?parseInt(r.value,10):r.value;t[r.id]={value:o,type:e}}}else""!==r.id&&(t[r.id]=r.value)}));const o=s("#nvs-new-key").val(),r=s("#nvs-new-value").val();return o&&""!==o&&(t[o]=e?r:{value:r,type:h.NVS_TYPE_I8}),t}function re(e,t,o="reboot"){const r=`/${o}.json`;s("tbody#tasks").empty(),s("#tasks_sect").css("visibility","collapse"),oe(Promise.resolve({cmdname:t,url:r}),e).then((function(e){console.log("now triggering reboot"),s("button[onclick*='handleReboot']").addClass("rebooting"),s.ajax({complete:function(){console.log("reboot call completed"),oe(Promise.resolve(e),6e3).then((function(e){}))}})}))}function ie(e){W("cfg-audio-tmpl","MESSAGING_INFO","Saving.\n",!1);let t=`squeezelite -o ${L} `;s(".sqcmd").each((function(){let{opt:e,val:o}=g(s(this));if(e&&e.length>0&&"boolean"==typeof o||"string"==typeof o&&o.length>0){o="boolean"==typeof o?"":o,t+=`${":"===e?e:` -${e} `} ${o}`}}));const o=s("#cmd_opt_R input[name=resample]:checked");o.length>0&&""!==o.attr("suffix")&&(t+=o.attr("suffix"),s("#resample_i").is(":checked")&&"true"==o.attr("aint")&&(t+=s("#resample_i").attr("suffix"))),"bt"===L&&W("cfg-audio-tmpl","MESSAGING_INFO","Remember to configure the Bluetooth audio device name.\n",!0);const r={timestamp:Date.now(),config:{autoexec1:{value:t,type:h.NVS_TYPE_STR}}};s.ajax({url:"/config.zzz",dataType:"text",method:"POST",cache:!1,contentType:"application/json; charset=utf-8",data:JSON.stringify(r),error:w,complete:function(t){t.responseText&&"OK"===JSON.parse(t.responseText).result?(W("cfg-audio-tmpl","MESSAGING_INFO","Done.\n",!0),e&&re(1500,"cfg-audio-tmpl")):JSON.parse(t.responseText).result?W("cfg-audio-tmpl","MESSAGING_WARNING",JSON.parse(t.responseText).Result+"\n",!0):W("cfg-audio-tmpl","MESSAGING_ERROR",t.statusText+"\n"),console.log(t.responseText)}}),console.log("sent data:",JSON.stringify(r))}function ne(e){return s(".upf").filter((function(){return s(this).text().toUpperCase()===e.toUpperCase()})).length>0&&(s("#splf").val(e).trigger("input"),!0)}function ae(e,t){const o=`cmd_opt_${e}`;let r=`${o}-error`,i=s(`#${r}`),n=s(`#${o}`);return i&&0!=i.length||(n.after(`<div id="${r}" class="invalid-feedback"></div>`),i=s(`#${r}`)),0==t.length?(i.hide(),n.removeClass("is-invalid"),n.addClass("is-valid"),i.text("")):(i.show(),i.text(t),n.removeClass("is-valid"),n.addClass("is-invalid")),i}function pe(e){return e>=-55?{label:"****",icon:"signal_wifi_statusbar_4_bar"}:e>=-60?{label:"***",icon:"network_wifi_3_bar"}:e>=-65?{label:"**",icon:"network_wifi_2_bar"}:e>=-70?{label:"*",icon:"network_wifi_1_bar"}:{label:".",icon:"signal_wifi_statusbar_null"}}function le(){(null==U?void 0:U.urc)!==F.ETH&&(s.ajaxSetup({timeout:3e3}),s.getJSON("/scan.zzz",(function(){return a(this,void 0,void 0,(function*(){var e;yield(e=2e3,new Promise((t=>setTimeout(t,e)))),s.getJSON("/ap.zzz",(function(e){e.length>0&&(e.sort((function(e,t){const o=e.rssi,s=t.rssi;return o<s?1:o>s?-1:0})),N=e,ye(N))}))}))})))}function ue(e,t,o){const s=pe(t),r={label:0==o?"🔓":"🔒",icon:0==o?"no_encryption":"lock"};return`<tr data-bs-toggle="modal" data-bs-target="#WifiConnectDialog"><td></td><td>${e}</td><td>\n <span class="material-icons" style="fill:white; display: inline" aria-label="${s.label}" icon="${s.icon}" >${v(s)}</span>\n \t</td><td>\n <span class="material-icons" aria-label="${r.label}" icon="${r.icon}">${v(r)}</span>\n </td></tr>`}function ye(e){var t;let o="";if(s("#wifiTable tr td:first-of-type").text(""),s("#wifiTable tr").removeClass("table-success table-warning"),e&&(e.forEach((function(e){o+=ue(e.ssid,e.rssi,e.auth)})),s("#wifiTable").html(o)),0==s(".manual_add").length&&(s("#wifiTable").append(ue("Manual add",0,0)),s("#wifiTable tr:last").addClass("table-light text-dark").addClass("manual_add")),U&&U.ssid&&(U.urc===F.OK||U.urc===F.RESTORE)){const e=`#wifiTable td:contains("${U.ssid}")`;0==s(e).filter((function(){return s(this).text()===U.ssid})).length&&s("#wifiTable").prepend(`${ue(U.ssid,null!==(t=U.rssi)&&void 0!==t?t:0,0)}`),s(e).filter((function(){return s(this).text()===U.ssid})).siblings().first().html("✓").parent().addClass(U.urc===F.OK?"table-success":"table-warning"),s("span#foot-if").html(`SSID: <strong>${U.ssid}</strong>, IP: <strong>${U.ip}</strong>`);const o=pe(U.rssi),r=v(o);s("#wifiStsIcon").text(r),s("#wifiStsIcon").attr("aria-label",o.label),s("#wifiStsIcon").attr("icon",o.icon)}else(null==U?void 0:U.urc)!==F.ETH&&s("span#foot-if").html("")}function de(e){console.debug(`${this.toLocaleString()}\t${e.nme}\t${e.cpu}\t${S[e.st]}\t${e.minstk}\t${e.bprio}\t${e.cprio}\t${e.num}`),s("tbody#tasks").append(`<tr class="table-primary"><th scope="row">${e.num}</th><td>${e.nme}</td><td>${e.cpu}</td><td>${S[e.st]}</td><td>${e.minstk}</td><td>${e.bprio}</td><td>${e.cprio}</td></tr>`)}function ce(){s.ajaxSetup({timeout:P}),s.getJSON("/messages.zzz",(function(e){return a(this,void 0,void 0,(function*(){for(const i of e){const e=i.current_time-i.sent_time;var t=new Date;switch(t.setTime(t.getTime()-e),i.class){case"MESSAGING_CLASS_OTA":O.EventOTAMessageClass(i.message);break;case"MESSAGING_CLASS_STATS":var o=JSON.parse(i.message);if(console.debug(t.toLocalShort()+" - Number of running tasks: "+o.ntasks),console.debug(`${t.toLocalShort()}\tname\tcpu\tstate\tminstk\tbprio\tcprio\tnum`),o.tasks){o.tasks;"collapse"===s("#tasks_sect").css("visibility")&&s("#tasks_sect").css("visibility","visible"),s("tbody#tasks").html(""),o.taskList.sort((function(e,t){return t.cpu-e.cpu})).forEach(de,t)}else"visible"===s("#tasks_sect").css("visibility")&&(s("tbody#tasks").empty(),s("#tasks_sect").css("visibility","collapse"));break;case"MESSAGING_CLASS_SYSTEM":Fe(i,t);break;case"MESSAGING_CLASS_CFGCMD":var r=i.message.split(/([^\n]*)\n(.*)/gs);W(r[1],i.type,r[2],!0)}}setTimeout(ce,P)}))})).fail((function(e,t,o){404==e.status?(s(".orec").hide(),z=!0):w(e,0,o),0==e.status&&0==e.readyState?setTimeout(ce,2*P):z||setTimeout(ce,P)}))}function ge(e){if(s("#WifiConnectDialog").is(":visible")){if(U.ip&&s("#ipAddress").text(U.ip),U.ssid&&s("#connectedToSSID").text(U.ssid),U.gw&&s("#gateway").text(U.gw),U.netmask&&s("#netmask").text(U.netmask),(void 0===$.Action||$.Action&&$.Action==te.STS)&&(s("*[class*='connecting']").hide(),s(".connecting-status").show()),G.ap_ssid&&s("#apName").text(G.ap_ssid.value),G.ap_pwd&&s("#apPass").text(G.ap_pwd.value),!e)return;switch(e.urc){case F.OK:e.ssid&&e.ssid===$.ssid&&(s("*[class*='connecting']").hide(),s(".connecting-success").show(),$.Action=te.STS);break;case F.FAIL:$.Action!=te.STS&&$.ssid==e.ssid&&(s("*[class*='connecting']").hide(),s(".connecting-fail").show());break;case F.LOST:break;case F.RESTORE:$.Action!=te.STS&&$.ssid!=e.ssid&&(s("*[class*='connecting']").hide(),s(".connecting-fail").show());case F.DISC:}}}function fe(e){s(".material-icons").each((function(t,o){const s=o;s.textContent=s.getAttribute(e?"aria-label":"data-icon")||""}))}function he(e){fe(!D()),!function(e){return U&&(e.urc!==U.urc||e.ssid!==U.ssid||e.gw!==U.gw||e.netmask!==U.netmask||e.ip!==U.ip||e.rssi!==U.rssi)}(e)&&e.urc||(U=function(e){var t;return{urc:null!==(t=e.urc)&&void 0!==t?t:0,auth:void 0,pwd:void 0,dhcpname:void 0,Action:void 0,ip:e.ip,ssid:e.ssid,rssi:e.rssi,gw:e.gw,netmask:e.netmask}}(e),s(".if_eth").hide(),s(".if_wifi").hide(),e.urc&&U.urc==F.ETH?(s(".if_eth").show(),U.urc===F.ETH&&s("span#foot-if").html(`Network: Ethernet, IP: <strong>${U.ip}</strong>`)):(s(".if_wifi").show(),ye())),ge(e)}function Me(){s.ajaxSetup({timeout:2e3}),s.getJSON("/status.zzz",(function(e){var t;if(function(e){var t;1===(null!==(t=e.recovery)&&void 0!==t?t:0)?(R=!0,s(".recovery_element").show(),s(".ota_element").hide(),s("#boot-button").html("Reboot"),s("#boot-form").attr("action","/reboot_ota.zzz")):(!R&&z&&(z=!1,setTimeout(ce,P)),R=!1,s(".recovery_element").hide(),s(".ota_element").show(),s("#boot-button").html("Recovery"),s("#boot-form").attr("action","/recovery.zzz"))}(e),f(),he(e),function(e){var t;let o={label:"",icon:""},r="";if(void 0!==e.bt_status&&void 0!==e.bt_sub_status){const s=null===(t=B[e.bt_status])||void 0===t?void 0:t.sub[e.bt_sub_status];s?(o=M[s],r=B[e.bt_status].desc):(o=M.bt_connected,r="Output status")}s("#o_type").attr("title",r),s("#o_bt").html(D()?o.label:o.icon)}(e),O.EventTargetStatus(e),e.depth&&(Y=e.depth,16==Y?s("#cmd_opt_R").show():s("#cmd_opt_R").hide()),e.project_name&&""!==e.project_name&&(J=e.project_name),e.platform_name&&""!==e.platform_name&&(X=e.platform_name),""===K&&(K=J),""===K&&(K="Squeezelite-ESP32"),e.version&&""!==e.version?(V=e.version,s("#navtitle").html(`${K}${R?"<br>[recovery]":""}`),s("span#foot-fw").html(`fw: <strong>${V}</strong>, mode: <strong>${R?"Recovery":J}</strong>`)):s("span#flash-status").html(""),e.Voltage){const t=function(e){for(const r of m)for(const i of r.ranges)if(t=e,o=i.f,s=i.t,(t-o)*(t-s)<=0)return{label:r.label,icon:r.icon};var t,o,s;return{label:"▪▪▪▪",icon:"battery_full"}}(e.Voltage);s("#battery").html(`${v(t)}`),s("#battery").attr("aria-label",t.label),s("#battery").attr("data-icon",t.icon),s("#battery").show()}else s("#battery").hide();if(""!=(null!==(t=e.message)&&void 0!==t?t:"")&&H!=e.message&&(H=e.message,Be(e.message,"MESSAGING_INFO")),E=e.is_i2c_locked,E?s("flds-cfg-hw-preset").hide():s("flds-cfg-hw-preset").show(),s("button[onclick*='handleReboot']").removeClass("rebooting"),void 0===Q||e.lms_ip!=ee&&e.lms_ip&&e.lms_port){const t="http://"+e.lms_ip+":"+e.lms_port;ee=e.lms_ip,s.ajax({url:t+"/plugins/SqueezeESP32/firmware/-check.bin",type:"HEAD",dataType:"text",cache:!1,error:function(){Q=""},success:function(){Q=t}})}s("#o_jack").css({display:Number(e.Jack)?"inline":"none"}),setTimeout(Me,2e3)})).fail((function(e,t,o){w(e,0,o),0==e.status&&0==e.readyState?setTimeout(Me,2*P):setTimeout(Me,P)}))}function me(e,t,o){return void 0!==e[t]?e[t][o]:""}function Be(e,t){Fe({message:e,type:t,class:"",sent_time:0,current_time:0},new Date)}function Fe(e,t){let o="table-success";"MESSAGING_WARNING"===e.type?(o="table-warning","MESSAGING_INFO"===x&&(x="MESSAGING_WARNING")):"MESSAGING_ERROR"===e.type&&("MESSAGING_INFO"!==x&&"MESSAGING_WARNING"!==x||(x="MESSAGING_ERROR"),o="table-danger"),++_>0&&(s("#msgcnt").removeClass("badge-success"),s("#msgcnt").removeClass("badge-warning"),s("#msgcnt").removeClass("badge-danger"),s("#msgcnt").addClass({MESSAGING_INFO:"badge-success",MESSAGING_WARNING:"badge-warning",MESSAGING_ERROR:"badge-danger"}[x]),s("#msgcnt").text(_)),s("#syslogTable").append(`<tr class='${o}'><td>${t.toLocalShort()}</td><td>${e.message.encodeHTML()}</td></tr>`)}s((function(){s(".material-icons").each((function(e,t){t.setAttribute("data-icon",t.textContent||"")})),fe(!0),f(),O.init(),s("#fw-url-input").on("input",(function(){const e=s(this).val().toString();e.length>8&&(e.startsWith("http://")||e.startsWith("https://"))?s("#start-flash").show():s("#start-flash").hide()})),s(".upSrch").on("input",(function(){const e=this,t=e.value;s("#rTable tr").removeClass(e.id+"_hide"),t.length>0&&s(`#rTable td:nth-child(${s(e).parent().index()+1})`).filter((function(){return!s(this).text().toUpperCase().includes(t.toUpperCase())})).parent().addClass(this.id+"_hide"),s('[class*="_hide"]').hide(),s("#rTable tr").not('[class*="_hide"]').show()})),setTimeout(le,1500),s("#options input").on("input",(function(){const{opt:e,val:t}=g(this);if("c"===e||"e"===e){const o=t.toString().split(",").map((function(e){return e.trim()})).filter((function(e){return!k.codecs.includes(e)}));ae(e,o.length>0?`Invalid codec(s) ${o.join(", ")}`:"")}if("m"===e){ae(e,/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/.test(t.toString())?"":"Invalid MAC address")}if("r"===e){ae(e,/^(\d+\.?\d*|\.\d+)-(\d+\.?\d*|\.\d+)$|^(\d+\.?\d*)$|^(\d+\.?\d*,)+\d+\.?\d*$/.test(t.toString())?"":`Invalid rate(s) ${t}. Acceptable format: <maxrate>|<minrate>-<maxrate>|<rate1>,<rate2>,<rate3>`)}})),s("#WifiConnectDialog")[0].addEventListener("shown.bs.modal",(function(e){s("*[class*='connecting']").hide(),(null==e?void 0:e.relatedTarget)&&($.Action=te.CONN,s(e.relatedTarget).children("td:eq(1)").text()==U.ssid?$.Action=te.STS:s(e.relatedTarget).is(":last-child")?($.Action=te.MAN,$.ssid="",s("#manual_ssid").val($.ssid)):($.ssid=s(e.relatedTarget).children("td:eq(1)").text(),s("#manual_ssid").val($.ssid))),$.Action!==te.STS?(s(".connecting-init").show(),s("#manual_ssid").trigger("focus")):ge()})),s("#WifiConnectDialog")[0].addEventListener("hidden.bs.modal",(function(){s("#WifiConnectDialog input").val("")})),s("#uCnfrm")[0].addEventListener("shown.bs.modal",(function(){s("#selectedFWURL").text(s("#fw-url-input").val().toString())})),s("input#show-commands")[0].checked=1===j,s('a[href^="#tab-commands"]').hide(),s("#load-nvs").on("click",(function(){s("#nvsfilename").trigger("click")})),s("#nvsfilename").on("change",(function(){const e=this;if("function"!=typeof window.FileReader)throw"The file API isn't supported on this browser.";if(!e.files)throw"This browser does not support the `files` property of the file input.";if(!e.files[0])return;const t=e.files[0];let o=new FileReader;o.onload=function(e){let t;try{t=JSON.parse(e.target.result.toString())}catch(e){alert("Parsing failed!\r\n "+e)}s("input.nvs").each((function(e,o){s(this).parent().removeClass("bg-warning").removeClass("bg-success"),t[o.id]&&(t[o.id]!==o.value?(console.log("Changed "+o.id+" "+o.value+"==>"+t[o.id]),s(this).parent().addClass("bg-warning"),s(this).val(t[o.id])):s(this).parent().addClass("bg-success"))})),s("input.nvs").children(".bg-warning")&&alert("Highlighted values were changed. Press Commit to change on the device")},o.readAsText(t),e.value=null})),s("#clear-syslog").on("click",(function(){_=0,x="MESSAGING_INFO",s("#msgcnt").text(""),s("#syslogTable").html("")})),s("#ok-credits").on("click",(function(){s("#credits").slideUp("fast",(function(){})),s("#app").slideDown("fast",(function(){}))})),s("#acredits").on("click",(function(e){e.preventDefault(),s("#app").slideUp("fast",(function(){})),s("#credits").slideDown("fast",(function(){}))})),s("input#show-commands").on("click",(function(){const e=this;e.checked=!!e.checked,e.checked?(s('a[href^="#tab-commands"]').show(),j=1):(j=0,s('a[href^="#tab-commands"]').hide())})),s("#disable-squeezelite").on("click",(function(){if(this.checked){const e=s("#cmd_opt_s").val();s("#cmd_opt_s").data("originalValue",e),s("#cmd_opt_s").val("-disable")}else{const e=s("#cmd_opt_s").data("originalValue");s("#cmd_opt_s").val(e||"")}})),s("input#show-nvs").on("click",(function(){const e=this;e.checked=!!e.checked,u.default.set("show-nvs",e.checked?"Y":"N"),f()})),s("#btn_reboot_recovery").on("click",(function(){c("recovery")})),s("#btn_reboot").on("click",(function(){c("reboot")})),s("#btn_flash").on("click",(function(){d()})),s("#save-autoexec1").on("click",(function(){ie(!1)})),s("#commit-autoexec1").on("click",(function(){ie(!0)})),s("#btn_disconnect").on("click",(function(){U={auth:void 0,pwd:void 0,dhcpname:void 0,Action:void 0,ip:void 0,ssid:void 0,rssi:void 0,gw:void 0,netmask:void 0,urc:0},ye(),s.ajax({url:"/connect.zzz",dataType:"text",method:"DELETE",cache:!1,contentType:"application/json; charset=utf-8",data:JSON.stringify({timestamp:Date.now()})})})),s("#btnJoin").on("click",(function(){$.ssid=s("#manual_ssid").val().toString(),$.pwd=s("#manual_pwd").val().toString(),$.dhcpname=s("#dhcp-name2").val().toString(),s("*[class*='connecting']").hide(),s("#ssid-wait").text($.ssid),s(".connecting").show(),s.ajax({url:"/connect.zzz",dataType:"text",method:"POST",cache:!1,contentType:"application/json; charset=utf-8",data:JSON.stringify({timestamp:Date.now(),ssid:$.ssid,pwd:$.pwd}),error:w})})),s("#reboot_nav").on("click",(function(){c("reboot")})),s("#reboot_ota_nav").on("click",(function(){c("reboot_ota")})),s("#save-as-nvs").on("click",(function(){const e=se(!0),t=document.createElement("a");t.href=URL.createObjectURL(new Blob([JSON.stringify(e,null,2)],{type:"text/plain"})),t.setAttribute("download","nvs_config_"+q+"_"+Date.now()+"json"),document.body.appendChild(t),t.click(),document.body.removeChild(t)})),s("#save-nvs").on("click",(function(){I(se(!1))})),s("#fwUpload").on("click",(function(){0===document.getElementById("flashfilename").files.length?alert("No file selected!"):(s("#fw-url-input").value=null,O.StartOTA())})),s("[name=output-tmpl]").on("click",(function(){C(this.id)})),s("#chkUpdates").on("click",(function(){s("#rTable").html(""),s.getJSON(T,(function(e){const t=[];e.forEach((function(e){const o=e.name.split("#")[3];t.includes(o)||t.push(o)}));let o="";t.forEach((function(e){o+='<option value="'+e+'">'+e+"</option>"})),s("#fwbranch").append(o),e.forEach((function(e){let t="";e.assets.forEach((function(e){e.name.match(/\.bin$/)&&(t=e.browser_download_url)}));const o=e.name.split("#"),r=o[0],i=o[2],n=o[3];var a=r.substr(r.lastIndexOf("-")+1);a="32"==a||"16"==a?a:"";let p=e.body;p=p.replace(/'/gi,'"'),p=p.replace(/[\s\S]+(### Revision Log[\s\S]+)### ESP-IDF Version Used[\s\S]+/,"$1"),p=p.replace(/- \(.+?\) /g,"- ").encodeHTML(),s("#rTable").append(`<tr class='release ' fwurl='${t}'>\n <td data-bs-toggle='tooltip' title='${p}'>${r}</td><td>${new Date(e.created_at).toLocalShort()}\n </td><td class='upf'>${i}</td><td>${n}</td><td>${a}</td></tr>`)})),s("#searchfw").css("display","inline"),ne(X)||ne(J),s("#rTable tr.release").on("click",(function(){var e=this.getAttribute("fwurl");Q&&(e=e.replace(/.*\/download\//,Q+"/plugins/SqueezeESP32/firmware/")),s("#fw-url-input").val(e),s("#start-flash").show(),s("#rTable tr.release").removeClass("table-success table-warning"),s(this).addClass("table-success table-warning")}))})).fail((function(){alert("failed to fetch release history!")}))})),s("#fwcheck").on("click",(function(){s("#releaseTable").html(""),s("#fwbranch").empty(),s.getJSON(T,(function(e){let t=0;const o=[];let r;e.forEach((function(e){const t=e.name.split("#")[3];o.includes(t)||o.push(t)})),o.forEach((function(e){r+=`<option value="${e}">${e}</option>`})),s("#fwbranch").append(r),e.forEach((function(e){let o="";e.assets.forEach((function(e){e.name.match(/\.bin$/)&&(o=e.browser_download_url)}));const r=e.name.split("#"),i=r[0],n=r[1],a=r[2],p=r[3];let l=e.body;l=l.replace(/'/gi,'"'),l=l.replace(/[\s\S]+(### Revision Log[\s\S]+)### ESP-IDF Version Used[\s\S]+/,"$1"),l=l.replace(/- \(.+?\) /g,"- ");const u=t++>6?" hide":"";s("#releaseTable").append(`<tr class='release${u}'><td data-bs-toggle='tooltip' title='${l}'>${i}</td><td>${new Date(e.created_at).toLocalShort()}</td><td>${a}</td><td>${n}</td><td>${p}</td><td><input type='button' class='btn btn-success' value='Select' data-bs-url='${o}' onclick='setURL(this);' /></td></tr>`)})),t>7&&(s("#releaseTable").append("<tr id='showall'><td colspan='6'><input type='button' id='showallbutton' class='btn btn-info' value='Show older releases' /></td></tr>"),s("#showallbutton").on("click",(function(){s("tr.hide").removeClass("hide"),s("tr#showall").addClass("hide")}))),s("#searchfw").css("display","inline")})).fail((function(){alert("failed to fetch release history!")}))})),s("#updateAP").on("click",(function(){le(),console.log("refresh AP")})),function(){s.ajaxSetup({timeout:7e3});var e=new proto.sys.request.Payload;e.setType(proto.sys.request.Type.CONFIG),e.setAction(proto.sys.request.Action.GET);var t=e.serializeBinary();s.ajax({url:"/data.bin",method:"POST",contentType:"application/octet-stream",processData:!1,data:t,success:function(e){console.log("Response received:",e);try{var t=proto.sys.Config.deserializeBinary(new Uint8Array(e));console.log("Config received:",t),document.title=t.getNames().getDevice(),q=t.getNames().getDevice(),T=t.getServices().getReleaseUrl(),s("#s_airplay").css({display:t.getServices().getAirplay().getEnabled()?"inline":"none"}),s("#s_cspot").css({display:t.getServices().getCspot().getEnabled()?"inline":"none"})}catch(e){console.error("Error decoding protobuf message:",e)}},error:function(e,t,o){console.error("Error sending config:",t,o)}}).fail((function(e,t,o){w(e,0,o)}))}(),s.ajaxSetup({timeout:7e3}),s.getJSON("/commands.zzz",(function(e){console.log(e),s(".orec").show(),e.commands.forEach((function(t){if(0===s("#flds-"+t.name).length){const o=t.name.split("-"),r="cfg"===o[0],i="#tab-"+o[0]+"-"+o[1];let n="";n+=`<div class="card text-white mb-3"><div class="card-header">${t.help.encodeHTML().replace(/\n/g,"<br />")}</div><div class="card-body"><fieldset id="flds-${t.name}">`,t.argtable&&t.argtable.forEach((function(o){let s=o.datatype||"";const r=t.name+"-"+o.longopts,i=me(e.values,t.name,o.longopts);let a=`hasvalue=${o.hasvalue} `;a+='longopts="'+o.longopts+'" ',a+='shortopts="'+o.shortopts+'" ',a+="checkbox="+o.checkbox+" ",a+='cmdname="'+t.name+'" ',a+=`id="${r}" name="${r}" hasvalue="${o.hasvalue}" `;let p=o.mincount>0?"bg-success":"";"hidden"===o.glossary&&(a+=' style="visibility: hidden;"'),o.checkbox?n+=`<div class="form-check"><label class="form-check-label"><input type="checkbox" ${a} class="form-check-input ${p}" value="" >${o.glossary.encodeHTML()}</label>`:(n+=`<div class="form-group" ><label for="${r}">${o.glossary.encodeHTML()}</label>`,s.includes("|")?(p=s.startsWith("+")?" multiple ":"",s=s.replace("<","").replace("=","").replace(">",""),n+=`<select ${a} class="form-control ${p}" >`,s="--|"+s,s.split("|").forEach((function(e){n+="<option >"+e+"</option>"})),n+="</select>"):n+=`<input type="text" class="form-control ${p}" placeholder="${s}" ${a}>`),n+=`${o.checkbox?"</div>":""}<small class="form-text text-muted">Previous value: ${o.checkbox?i?"Checked":"Unchecked":i||""}</small>${o.checkbox?"":"</div>"}`})),n+=`<div style="margin-top: 16px;">\n <div class="toast hide" role="alert" aria-live="assertive" aria-atomic="true" id="toast_${t.name}">\n <div class="toast-header">\n <strong class="mr-auto">Result</strong\n <button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>\n </div>\n <div class="toast-body" id="msg_${t.name}"></div>\n </div>`,n+=r?`<button type="submit" class="btn btn-info sclk" id="btn-save-${t.name}" cmdname="${t.name}">Save</button>\n<button type="submit" class="btn btn-warning cclk" id="btn-commit-${t.name}" cmdname="${t.name}">Apply</button>`:`<button type="submit" class="btn btn-success sclk" id="btn-run-${t.name}" cmdname="${t.name}">Execute</button>`,n+="</div></fieldset></div></div>",r?s(i).append(n):s("#commands-list").append(n)}})),s(".sclk").off("click").on("click",(function(){window.runCommand(this,!1)})),s(".cclk").off("click").on("click",(function(){window.runCommand(this,!0)})),e.commands.forEach((function(t){s("[cmdname="+t.name+"]:input").val(""),s("[cmdname="+t.name+"]:checkbox").prop("checked",!1),t.argtable&&t.argtable.forEach((function(o){const r="#"+t.name+"-"+o.longopts;if(o.checkbox)s(r)[0].checked=me(e,t.name,o.longopts);else{let i=me(e,t.name,o.longopts);void 0!==i&&s(r).val(i.toString()).trigger("change"),0===s(r)[0].value.length&&(o.datatype||"").includes("|")&&(s(r)[0].value="--")}}))})),0!=s("#cfg-hw-preset-model_config").length&&(b||(b=!0,s("#cfg-hw-preset-model_config").html("<option>--</option>"),s.getJSON("https://gist.githubusercontent.com/sle118/dae585e157b733a639c12dc70f0910c5/raw/",{_:(new Date).getTime()},(function(e){s.each(e,(function(e,t){s("#cfg-hw-preset-model_config").append(`<option value='${JSON.stringify(t).replace(/"/g,'"').replace(/\'/g,'"')}'>${t.name}</option>`),""!==Z&&Z==t.name&&s("#cfg-hw-preset-model_config").val(Z)})),""!==Z&&s("#prev_preset").show().val(Z)})).fail((function(e,t,o){const s=t+", "+o;console.log("Request Failed: "+s)}))))})).fail((function(e,t,o){404==e.status?s(".orec").hide():w(e,0,o),s("#commands-list").empty()})),ce(),Me()})),window.setURL=function(e){let t=e.dataset.url;s('[data-bs-url^="http"]').addClass("btn-success").removeClass("btn-danger"),s('[data-bs-url="'+t+'"]').addClass("btn-danger").removeClass("btn-success"),Q&&(t=t.replace(/.*\/download\//,Q+"/plugins/SqueezeESP32/firmware/")),s("#fwurl").val(t)},window.runCommand=function(e,t){let o=e.getAttribute("cmdname");W(o,"MESSAGING_INFO","Executing.",!1);const r=document.getElementById("flds-"+o),i=null==r?void 0:r.querySelectorAll("select,input");if("cfg-hw-preset"===o)return function(e,t){const o=JSON.parse(e[0].value),r=e[0].getAttribute("cmdname");console.log(`selected model: ${o.name}`);let i={timestamp:Date.now(),config:{model_config:{value:o.name,type:33}}};for(const[e,t]of Object.entries(o.config)){const o="string"==typeof t||t instanceof String?t:JSON.stringify(t);i.config[e]={value:o.toString(),type:h.NVS_TYPE_STR},W(r,"MESSAGING_INFO",`Setting ${e}=${o} `,!0)}W(r,"MESSAGING_INFO","Committing ",!0),s.ajax({url:"/config.zzz",dataType:"text",method:"POST",cache:!1,contentType:"application/json; charset=utf-8",data:JSON.stringify(i),error:function(e,t,o){w(e,0,o),W(r,"MESSAGING_ERROR",`Unexpected error ${""!==o?o:"with return status = "+e.status} `,!0)},success:function(e){W(r,"MESSAGING_INFO","Saving complete ",!0),console.log(e),t&&re(2500,r)}})}(i,t);if(o+=" ",r)for(const e of i){let t="",s="";const r="SELECT"===e.tagName,i="true"===e.getAttribute("hasvalue"),n=r&&"--"!==e.value||!r&&""!==e.value;if(!i||i&&n){const r=e.getAttribute("longopts"),n=e.getAttribute("shortopts");null!==r&&"undefined"!==r?s+="--"+r:null!==n&&"undefined"!==n&&(s="-"+n),i?(t=/\s/.test(e.value)?'"':"",o+=`${s} ${t}${e.value}${t} `):e.checked&&(o+=`${s} `)}}console.log(o);const n={timestamp:Date.now(),command:o};s.ajax({url:"/commands.zzz",dataType:"text",method:"POST",cache:!1,contentType:"application/json; charset=utf-8",data:JSON.stringify(n),error:function(e,t,o){var s=JSON.parse(this.data).command;404==e.status?W(s.substr(0,s.indexOf(" ")),"MESSAGING_ERROR",""+(R?"Limited recovery mode active. Unsupported action ":"Unexpected error while processing command"),!0):(w(e,0,o),W(s.substr(0,s.indexOf(" ")-1),"MESSAGING_ERROR",`Unexpected error ${""!==o?o:"with return status = "+e.status}`,!0))},success:function(o){s(".orec").show(),console.log(o),"Success"===JSON.parse(o).Result&&t&&re(2500,e.getAttribute("cmdname"))}})}},4861:e=>{"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAb1BMVEXIycuswsKMjI4rqqZyc3RQlpQ6jIEmJifW2dq5ursppJ8Om4zC0NAFdGYmmpb///8Hg3O4x8cHkoEggX0jko5Ks6/P0dM5r6ocoZb3+PgiiYVevrp/y8bg4uOS09FtxMDs7+7M6um529qoysik2tiNn72gAAAAF3RSTlP94Fr/Wf39BP26/////////////////kibhL0AAAGjSURBVDjLbZMJkoMgEEWtmETEJWpkiSC45P5nnF4wk7HmW2jLfzYIdFYUxbXUYp5nIbTOUFoLAR2ivIKZFQXYuu6TahSHmdAlAqWub0/QNI1jSxrHacKeWw9EdtH1xHbbyiRgCJn67JqVAr9nO2fJnBDMoUuYEvsfmxnJBM66Zj8/iYmaAPKlOvRNJAC/fz8OefINEAngAbYPEMiHTJCCAZrACciVMpCCgDEBKwsAowymMO3IAP3Btqa5vYJx0ZlcOSUZaE/AWznvnTHOyfZ/wMUQvAIg/wb27QNEH94BgGj+APsZiF8AXAhQQEMwkIYYLW7xvsENoyUoF0I0ysf0F2O743kDQNXzXM8+j8Eb6byzDEz7gtpsO1PgrXG5Nd6btNTP+YXarKTny1uQ9JiAN6vbqT9au+BzMQjAWtlq6BiYttdjiVVVqfXxWFWFkk6Cz0DTdYOFPmpHAAK/YQCJoTppQJ8A3TAxVAAhR439Bg5tKe7NgSDEje3mDsf+ovuGCUbYZb/BwoHS6ykHMYfo/U6lx8Xb/+qo3U/x/lf+VP9c/j9c3zy20WEMxgAAAABJRU5ErkJggg=="}},o={};function s(e){var r=o[e];if(void 0!==r)return r.exports;var i=o[e]={id:e,loaded:!1,exports:{}};return t[e].call(i.exports,i,i.exports,s),i.loaded=!0,i.exports}s.m=t,e=[],s.O=(t,o,r,i)=>{if(!o){var n=1/0;for(u=0;u<e.length;u++){for(var[o,r,i]=e[u],a=!0,p=0;p<o.length;p++)(!1&i||n>=i)&&Object.keys(s.O).every((e=>s.O[e](o[p])))?o.splice(p--,1):(a=!1,i<n&&(n=i));if(a){e.splice(u--,1);var l=r();void 0!==l&&(t=l)}}return t}i=i||0;for(var u=e.length;u>0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[o,r,i]},s.d=(e,t)=>{for(var o in t)s.o(t,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={826:0};s.O.j=t=>0===e[t];var t=(t,o)=>{var r,i,[n,a,p]=o,l=0;if(n.some((t=>0!==e[t]))){for(r in a)s.o(a,r)&&(s.m[r]=a[r]);if(p)var u=p(s)}for(t&&t(o);l<n.length;l++)i=n[l],s.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return s.O(u)},o=self.webpackChunksqueezelite_esp32=self.webpackChunksqueezelite_esp32||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})();var r=s.O(void 0,[987],(()=>s(3607)));r=s.O(r)})();
- //# sourceMappingURL=index.bundle.js.map
|