!function(e){e.su=e.su||{},e.su.CHAR={VALIDATION:{INVALIDTEXT:"Invalid format.",BLANKTEXT:"This field is required.",EMAIL:"Invalid email format.",NUMBER:"Invalid format.",NUMBER_MIN:"This number should be greater than %min.",NUMBER_MAX:"This number should be less than %max.",NUMBER_MIN_MAX:"This number should be between %min and %max.",DATE:"Invalid format.",DATE_INVALID:"Please enter a valid date between 01/01/1970 and 12/31/2030.",IPV6:"Invalid format.",IPV6_NOT_GLOBAL:"Invalid format.",IPV6_NOT_PREFIX:"Invalid format.",IPV6_PREFIX:"The IPv6 address prefix cannot start with 2002.",IP:"Invalid format.",IP_DOMAIN:"Invalid format.",IP_NO_ALL_ZERO:"The address cannot be 0.0.0.0.",IP_NO_LOOP:"The address cannot be loopback address.",IP_NO_D_TYPE:"The IP address cannot be a Class D address.",IP_NO_E_TYPE:"The IP address cannot be a Class E address.",IP_NO_ALL_ONE:"The address cannot be 255.255.255.255.",IP_NO_FIRST_ALL_ONE:"The address cannot start with 255.",IP_NO_FIRST_ZERO:"The address cannot start with 0.",MASK_NO_ALL_ONE:"Subnet mask cannot be 255.255.255.255.",MAC:"Invalid format.",MULTI_MAC:"Invalid format.",MASK:"Invalid format.",STRING_DOMAIN:"Invalid format.",DOMAIN:"Invalid format.",ASCII_VISIBLE:"Invalid format.",STRING_VISIBLE:"Invalid format.",STRING_VISIBLE_NO_COMMA:"Invalid format.",STRING_VISIBLE_ALLOW_BLANK:"Invalid format.",PWD:"Invalid format.",NAME:"Invalid format.",NAME_START:"Invalid format.",VPN_NAME_PWD:"Please enter 1-15 alpha characters, numbers, - and _.",NOTE:"Invalid format.",SIM_PIN:"The PIN should consist of 4 digits.",SIM_DIALNUM:"The dial number should only contain '#','*' or digits.",portInput:"Port is not complete",AC_NAME:"Invalid AC Name",END_TIME_WRONG:"End Time should be later than Start Time",ILLEGAL_PWD:"invalid password",INTEGER_INVALID:"Invalid integer.",IP_MASK_UNION:"Invalid format for IP or mask.",IP_RANGE:"The ending IP should be greater than the starting IP.",MAIL_INVALID:"Invalid email address",MAX_MILLION:"The maximum value for this field is 1000000",MIN_THIRTY:"The minimum value for this field is 30",PASSWORD_FORMAT:"Invalid password",PORT_RANGE_FORMAT:"Invalid format",PORT_RANGE_OUT:"Out of range",SERVICE_NAME:"Invalid Service Name",TIME_FORMAT:"Invalid time format",TIME_START:"Invalid start time",TIME_END:"Invalid end time",USERNAME:"Invalid user name",DEVICE_NAME_INVALID:'Devicename should only contain A~z or 0~9 or "-" or "_"',START_SPACE_IS_NOT_ALLOW:"Invalid input",NO_SPECIAL_CHARACTER:"Invalid input",LEN_MIN:"This length should be greater than %min.",LEN_MAX:"This length should be less than %max.",LEN_MIN_MAX:"This length should be between %min and %max.",ADMIN_PWD:'"admin" is invalid. Please enter another. ',BIGGER_THAN_NEXT:"The value should be smaller than the next value.",broadcastIp:"It cannot be a broadcast IP address.",deviceNameInvalid:'Device Name should only contain "A-Z", "a-z", "0-9", "-" and "_".',decimalOverflow:"Decimal overflow",domainFormat:"Invalid domain",ENGRESS_COMPARE:"The number cannot be smaller than the minvalue.",ENABLE_ONE_KEY:"Please enable at least one key",FIELD_REQUIRED:"This field is required.",fileEmpty:"choose file",FILE_UN_MATCH:"The file type is wrong.",FILE_NAME_OVER:"The file name is too long. ",HOST_MAC_EXIST:"The MAC already exists and cannot be added again.",illegalPwd:"Invalid password.",INGRESS_COMPARE:"The number cannot be smaller than the minvalue.",integerInvalid:"Invalid integer.",INVALID_NUMBER:"Invalid Number.",IP_ALL_ZERO:"0.0.0.0 is invalid",IP_FORMAT:"Invalid IP format.",ipEClass:"The IP address cannot be E-class. ",IP_MASK:"Invalid network because of invalid IP or mask.",ipRangeConflict:"IP Range conflicts with LAN.",IP_RANGE_NUM:"Invalid format for IP range.",INVALID_PORT_RANGE:"Invalid format of port range",INVALID_CHAR:"Invalid charset",invalidIpOrDomain:"Invalid IP or Domain",loopIp:"It cannot be a loop IP (127.X.X.X).",macFormat:"Invalid MAC format",MAC_FULL:"The list is full. No more MAC can be added.",macBroadcast:"It cannot be a broadcast MAC.",macMulti:"It cannot be a multicast MAC.",MAC_CONFLICT:"The MAC conflicts with other MAC.",macCftWithHost:"The MAC conflicts with host MAC.",maxValue:"The maximum value for this field is {0}.",maskFormat:"Invalid mask format",maskInValid:"Invalid mask",maskIpNet:"Network address cannot be 0.0.0.0.",maxLen:"The maximum length of this field is {0} characters.",minLen:"The minimum length of this field is {0} characters.",minValue:"The minimum value for this field is {0}.",numberRange90:"Number should range from -90 to 90.",numberRange180:"Number should range from -180 to 180.",oneIsRequired:"At least one SSID or MAC address of the AP is required.",PASSWORD_LENGTH:"Invalid password length.",PORT_INPUT:"Port is not complete",PORT_NUM:"5 ports at most can be added.",PORT_RANGE_INVALID:"Port Range should be in the format of 12 or 12-34.",PORT_RANGE_ERR:"The ending port should be greater than the starting port.",PORT_START_ERR:"The starting port should be greater than 0.",PORT_END_ERR:"The ending port should be smaller than 65536.",PWD_NOT_EQUAL:"Passwords do not match.",SESSION_TIMEOUT:"The session timed out. Please log in again.",START_YEAR_WRONG:"End Time should be later than Start Time",START_END_YEAR_RANGE_WRONG:"The range between End Time and Start Time should be less than a year",THE_MAX_LENGTH_5:"The length for this field is 5",THE_MAX_LENGTH_13:"The length for this field is 13",THE_MAX_LENGTH_16:"The length for this field is 16",THE_MAX_LENGTH_10:"The length for this field is 10",THE_MAX_LENGTH_26:"The length for this field is 26",THE_MAX_LENGTH_32:"The length for this field is 32",TIME_RANGE:"TimeEnd must be greater than timeStart",TIME_TEXT:'Invalid time. It should be in the format of "12:34 PM".',tooLongPwd:"The password is too long.",tooShortPwd:"The password is too short.",USERNAME_PWD_ERROR:"User Name or Password is incorrect"},ERROR:{"00000074":"Invalid file type.","00000131":"NTP Server cannot be loopback address.","00000256":"Content must be up to 31 characters.","00000257":"Content must be up to 1023 characters.","00000259":"Password must be 8-16 alpha characters, numbers and _."},OPERATION:{ADD:"Add",FILEBUTTONTEXT:"Browse",FILEBLANKTEXT:"Please select a file.",FORM_SAVED:"Saved",FORM_FAILED:"Failed",LOW:"Low",MIDDLE:"Middle",HIGH:"High",EDIT:"Edit",DELETE:"Delete",DELETE_ALL:"Delete All",OK:"OK",CANCEL:"Cancel",SHOW:"Show",YES:"Yes",NO:"No",SAVE:"Save",PREV:"Prev",NEXT:"Next",ENABLE:"Enable",DISABLE:"Disable",SEARCH:"Search...",REFRESH:"Refresh"},GRID:{ID:"ID",MODIFY:"Modify",STATUS:"Status",ENABLED:"Enabled",DISABLED:"Disabled"}}}(jQuery),function(e){e.su=e.su||{},e.su.Language=function(){var a=function(){return{locale:"en",URL_LAN_CHECK:"./data/version.json",DEFAULT_LAN_TYPE:"en",URL_JS:"./locale/%LAN_TYPE%/lan.js",URL_CSS:"./locale/%LAN_TYPE%/lan.css",URL_HELP:"./locale/%LAN_TYPE%/help.js"}},t=function(t){this.settings=e.extend({},a(),t),this.init()};return t.prototype.init=function(){this.getLocale()},t.prototype.getLocale=function(a,t){var n=this,i=this.settings,s=i.URL_LAN_CHECK;e.ajax({type:"GET",url:s,async:!1,dataType:"json",data:{operation:"read"},success:function(e){e.languageInfo?n.changeType(e.languageInfo):n.reset(),a&&a.call(n,e.data)},error:function(){n.reset(),t&&t.call(n)}})},t.prototype.defineGlobal=function(){},t.prototype.getDeviceLanguage=function(){},t.prototype.getClientLanguage=function(){},t.prototype.reset=function(){this.changeType(this.settings.DEFAULT_LAN_TYPE)},t.prototype.switchTo=function(a,t,n){var i=this,s=this.settings;if(a){var o=s.URL_LAN_CHECK;e.ajax({type:"POST",url:o,async:!1,dataType:"json",cache:!1,data:{operation:"write",locale:a},success:function(e){location.reload(),t&&t.call(i)},error:function(){i.reset(),n&&n.call(i)}})}},t.prototype.changeType=function(a){var t=this.settings,n=a||t.DEFAULT_LAN_TYPE,i=t.URL_JS.replace("%LAN_TYPE%",n),s=t.URL_CSS.replace("%LAN_TYPE%",n);e("script#lan-js").remove(),e("link#lan-css").remove(),e("head").append('