From 5cfd5644fe5f888040786cbae1cbaa197481b7c7 Mon Sep 17 00:00:00 2001 From: Jeremy Poulter Date: Wed, 4 Jul 2018 23:28:25 +0100 Subject: [PATCH 1/2] 'Fix' for changing charge mode when the timer is enabled. Fixes #184, as detailed in the ticket there is an issue with sendinf $FE/$FS when the delay timer is set. This change detects is the time is enabled and sends the $F1 command instead to emulate a button press, and this will toggle the charging mode. --- src/divert.cpp | 25 +++++++++++++++-- src/html/openevse.js | 10 +++++++ src/html/view_models/OpenEvseViewModel.js | 33 ++++++++++++++++++++++- 3 files changed, 65 insertions(+), 3 deletions(-) diff --git a/src/divert.cpp b/src/divert.cpp index 2e7d201..a9e8a95 100644 --- a/src/divert.cpp +++ b/src/divert.cpp @@ -193,9 +193,30 @@ void divert_update_state() } // If charge rate > min current and EVSE is sleeping then start charging - if (state == OPENEVSE_STATE_SLEEPING){ + if (state == OPENEVSE_STATE_SLEEPING) + { DBUGLN(F("Wake up EVSE")); - if(0 == rapiSender.sendCmd(F("$FE"))) { + bool chargeStarted = false; + + // Check if the timer is enabled, we need to do a bit of hackery if it is + if(0 == rapiSender.sendCmd("$GD")) + { + if(rapiSender.getTokenCnt() >= 5 && + (0 != String(rapiSender.getToken(1)).toInt() || + 0 != String(rapiSender.getToken(2)).toInt() || + 0 != String(rapiSender.getToken(3)).toInt() || + 0 != String(rapiSender.getToken(4)).toInt())) + { + // Timer is enabled so we need to emulate a button press to work around + // an issue with $FE not working + if(false == chargeStarted && 0 == rapiSender.sendCmd(F("$F1"))) { + DBUGLN(F("Starting charge with button press")); + chargeStarted = true; + } + } + } + + if(false == chargeStarted && 0 == rapiSender.sendCmd(F("$FE"))) { DBUGLN(F("Starting charge")); } } diff --git a/src/html/openevse.js b/src/html/openevse.js index 760b738..a67a4ea 100644 --- a/src/html/openevse.js +++ b/src/html/openevse.js @@ -681,6 +681,16 @@ function OpenEVSE(endpoint) return request; }; + /** + * + */ + self.press_button = function(callback) { + var request = self._request("F1", function() { + callback(); + }); + return request; + }; + self.setEndpoint = function (endpoint) { self._endpoint = endpoint; }; diff --git a/src/html/view_models/OpenEvseViewModel.js b/src/html/view_models/OpenEvseViewModel.js index 35450a6..7286c1a 100644 --- a/src/html/view_models/OpenEvseViewModel.js +++ b/src/html/view_models/OpenEvseViewModel.js @@ -431,8 +431,39 @@ function OpenEvseViewModel(baseEndpoint, statusViewModel) { }; // support for changing status - self.setStatus = function (action) { + self.setStatus = function (action) + { + var currentState = self.status.state(); + if(("disabled" === action && 255 === currentState) || + ("sleep" === action && 254 === currentState) || + ("enable" === action && currentState < 254)) + { + // nothing to do + return; + } + self.updatingStatus(true); + if(self.delayTimerEnabled() && ("sleep" === action || "enable" === action)) + { + // If the delay Timer is enabled we have to do a bit of hackery to work around a + // firmware issue + // + // When in timer mode the RAPI cpmmands to change state might not work, but + // Emulating a button press does toggle between sleep/enable + + self.openevse.press_button(function () { + action = false; + }).always(function () { + self.openevse.status(function (state) { + self.status.state(state); + }, action).always(function() { + self.updatingStatus(false); + }); + }); + + return; + } + self.openevse.status(function (state) { self.status.state(state); }, action).always(function() { From 34aa295516ed7d49bd1c85a5d2298aff4b8fcbbf Mon Sep 17 00:00:00 2001 From: Jeremy Poulter Date: Wed, 4 Jul 2018 23:28:41 +0100 Subject: [PATCH 2/2] Auto generated files --- src/data/home.js | 67 +-- src/data/lib.js | 710 +++++++++++++++---------------- src/data/wifi_portal.htm | 2 +- src/web_server.home.js.h | 67 +-- src/web_server.lib.js.h | 710 +++++++++++++++---------------- src/web_server.wifi_portal.htm.h | 2 +- 6 files changed, 780 insertions(+), 778 deletions(-) diff --git a/src/data/home.js b/src/data/home.js index 751af5b..d1c9fa8 100644 --- a/src/data/home.js +++ b/src/data/home.js @@ -1,54 +1,55 @@ function OpenEVSEError(f,b){this.type=f;this.message=void 0===b?"":b}function OpenEVSERequest(){var f=this;f._done=function(){};f._error=function(){};f._always=function(){};f.done=function(b){f._done=b;return f};f.error=function(b){f._error=b;return f};f.always=function(b){f._always=b;return f}} function OpenEVSE(f){var b=this;b._version="0.1";b._endpoint=f;b.states={0:"unknown",1:"not connected",2:"connected",3:"charging",4:"vent required",5:"diode check failed",6:"gfci fault",7:"no ground",8:"stuck relay",9:"gfci self-test failure",10:"over temperature",254:"sleeping",255:"disabled"};b._lcd_colors="off red green yellow blue violet teal white".split(" ");b._status_functions={disable:"FD",enable:"FE",sleep:"FS"};b._lcd_types=["monochrome","rgb"];b._service_levels=["A","1","2"];b.STANDARD_SERIAL_TIMEOUT= -.5;b.RESET_SERIAL_TIMEOUT=10;b.STATUS_SERIAL_TIMEOUT=0;b.SYNC_SERIAL_TIMEOUT=.5;b.NEWLINE_MAX_AGE=5;b.CORRECT_RESPONSE_PREFIXES=("$OK","$NK");b.regex=/\$([^\^]*)(\^..)?/;b._request=function(d,a){a=void 0===a?function(){}:a;var c="$"+(Array.isArray(d)?d.join("+"):d),e=new OpenEVSERequest;$.get(b._endpoint+"?json=1&rapi="+encodeURI(c),function(c){c=c.ret.match(b.regex);null!==c?(c=c[1].split(" "),"OK"===c[0]?(a(c.slice(1)),e._done(c.slice(1))):e._error(new OpenEVSEError("OperationFailed"))):e._error(new OpenEVSEError("UnexpectedResponse"))}, -"json").always(function(){e._always()}).fail(function(){e._error(new OpenEVSEError("RequestFailed"))});return e};b._flags=function(d){var a=b._request("GE",function(b){var c=parseInt(b[1],16);isNaN(c)?a._error(new OpenEVSEError("ParseError",'Failed to parse "'+b[0]+'"')):d({service_level:(c&1)+1,diode_check:0===(c&2),vent_required:0===(c&4),ground_check:0===(c&8),stuck_relay_check:0===(c&16),auto_service_level:0===(c&32),auto_start:0===(c&64),serial_debug:0!==(c&128),lcd_type:0!==(c&256)?"monochrome": -"rgb",gfi_self_test:0===(c&512),temp_check:0===(c&1024)})});return a};b.reset=function(){return b._request("FR")};b.time=function(d,a){a=void 0===a?!1:a;if(!1!==a)return b._request(["S1",a.getFullYear()-2E3,a.getMonth()+1,a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds()],function(){b.time(d)});var c=b._request("GT",function(a){if(6<=a.length){var b=parseInt(a[0]),e=parseInt(a[1]),h=parseInt(a[2]),f=parseInt(a[3]),l=parseInt(a[4]),m=parseInt(a[5]);isNaN(b)||isNaN(e)||isNaN(h)||isNaN(f)||isNaN(l)|| -isNaN(m)?c._error(new OpenEVSEError("ParseError",'Could not parse time "'+a.join(" ")+'" arguments')):165==b&&165==e&&165==h&&165==f&&165==l&&85==m?(a=new Date(0),d(a,!1)):(a=new Date(2E3+b,e-1,h,f,l,m),d(a,!0))}else c._error(new OpenEVSEError("ParseError","Only received "+a.length+" arguments"))});return c};b.timer=function(d,a,c){a=void 0===a?!1:a;c=void 0===c?!1:c;if(!1!==a&&!1!==c){var e=/([01]\d|2[0-3]):([0-5]\d)/,g=a.match(e),e=c.match(e);return null!==g&&null!==e?b._request(["ST",parseInt(g[1]), -parseInt(g[2]),parseInt(e[1]),parseInt(e[2])],function(){b.timer(d)}):!1}var f=b._request("GD",function(b){if(4<=b.length){var e=parseInt(b[0]),g=parseInt(b[1]),h=parseInt(b[2]),k=parseInt(b[3]);isNaN(e)||isNaN(g)||isNaN(h)||isNaN(k)?f._error(new OpenEVSEError("ParseError",'Could not parse time "'+b.join(" ")+'" arguments')):0===e&&0===g&&0===h&&0===k?d(!1,"--:--","--:--"):(a=(10>e?"0":"")+e+":"+((10>g?"0":"")+g),c=(10>h?"0":"")+h+":"+((10>k?"0":"")+k),d(!0,a,c))}else f._error(new OpenEVSEError("ParseError", -"Only received "+b.length+" arguments"))});return f};b.cancelTimer=function(d){return b._request(["ST",0,0,0,0],function(){d()})};b.time_limit=function(d,a){a=void 0===a?!1:a;if(!1!==a)return b._request(["S3",Math.round(a/15)],function(){b.time_limit(d)});var c=b._request("G3",function(a){if(1<=a.length){var b=parseInt(a[0]);isNaN(b)?c._error(new OpenEVSEError("ParseError",'Could not parse "'+a.join(" ")+'" arguments')):d(15*b)}else c._error(new OpenEVSEError("ParseError","Only received "+a.length+ -" arguments"))});return c};b.charge_limit=function(d,a){a=void 0===a?!1:a;if(!1!==a)return b._request(["SH",a],function(){b.charge_limit(d)});var c=b._request("GH",function(a){if(1<=a.length){var b=parseInt(a[0]);isNaN(b)?c._error(new OpenEVSEError("ParseError",'Could not parse "'+a.join(" ")+'" arguments')):d(b)}else c._error(new OpenEVSEError("ParseError","Only received "+a.length+" arguments"))});return c};b.ammeter_settings=function(d,a,c){a=void 0===a?!1:a;c=void 0===c?!1:c;if(!1!==a&&!1!==c)return b._request(["SA", -a,c],function(){d(a,c)});var e=b._request("GA",function(a){if(2<=a.length){var b=parseInt(a[0]),c=parseInt(a[0]);isNaN(b)||isNaN(c)?e._error(new OpenEVSEError("ParseError",'Could not parse "'+a.join(" ")+'" arguments')):d(b,c)}else e._error(new OpenEVSEError("ParseError","Only received "+a.length+" arguments"))});return e};b.current_capacity=function(d,a){a=void 0===a?!1:a;if(!1!==a)return b._request(["SC",a],function(){b.current_capacity(d)});var c=b._request("GE",function(a){if(1<=a.length){var b= -parseInt(a[0]);isNaN(b)?c._error(new OpenEVSEError("ParseError",'Could not parse "'+a.join(" ")+'" arguments')):d(b)}else c._error(new OpenEVSEError("ParseError","Only received "+a.length+" arguments"))});return c};b.service_level=function(d,a){a=void 0===a?!1:a;return!1!==a?b._request(["SL",b._service_levels[a]],function(){b.service_level(d)}):b._flags(function(a){d(a.auto_service_level?0:a.service_level,a.service_level)})};b.current_capacity_range=function(d){var a=b._request("GC",function(b){if(2<= -b.length){var c=parseInt(b[0]),f=parseInt(b[1]);isNaN(c)||isNaN(f)?a._error(new OpenEVSEError("ParseError",'Could not parse "'+b.join(" ")+'" arguments')):d(c,f)}else a._error(new OpenEVSEError("ParseError","Only received "+b.length+" arguments"))});return a};b.status=function(d,a){a=void 0===a?!1:a;if(!1!==a)return b._request([b._status_functions[a]],function(){b.status(d)});var c=b._request("GS",function(a){if(1<=a.length){var b=parseInt(a[0]);isNaN(b)?c._error(new OpenEVSEError("ParseError",'Could not parse "'+ -a.join(" ")+'" arguments')):d(b)}else c._error(new OpenEVSEError("ParseError","Only received "+a.length+" arguments"))});return c};b.diode_check=function(d,a){a=void 0===a?null:a;return null!==a?b._request(["FF","D",a?"1":"0"],function(){b.diode_check(d)}):b._flags(function(a){d(a.diode_check)})};b.gfi_self_test=function(d,a){a=void 0===a?null:a;return null!==a?b._request(["FF F",a?"1":"0"],function(){b.gfi_self_test(d)}):b._flags(function(a){d(a.gfi_self_test)})};b.ground_check=function(d,a){a=void 0=== -a?null:a;return null!==a?b._request(["FF G",a?"1":"0"],function(){b.ground_check(d)}):b._flags(function(a){d(a.ground_check)})};b.stuck_relay_check=function(d,a){a=void 0===a?null:a;return null!==a?b._request(["FF R",a?"1":"0"],function(){b.stuck_relay_check(d)}):b._flags(function(a){d(a.stuck_relay_check)})};b.vent_required=function(d,a){a=void 0===a?null:a;return null!==a?b._request(["FF V",a?"1":"0"],function(){b.vent_required(d)}):b._flags(function(a){d(a.vent_required)})};b.temp_check=function(d, -a){a=void 0===a?null:a;return null!==a?b._request(["FF T",a?"1":"0"],function(){b.temp_check(d)}):b._flags(function(a){d(a.temp_check)})};b.over_temperature_thresholds=function(d,a,c){a=void 0===a?!1:a;c=void 0===c?!1:c;if(!1!==a&&!1!==c)return b._request(["SO",a,c],function(){b.over_temperature_thresholds(d)});var e=b._request("GO",function(a){if(2<=a.length){var b=parseInt(a[0]),c=parseInt(a[0]);isNaN(b)||isNaN(c)?e._error(new OpenEVSEError("ParseError",'Could not parse "'+a.join(" ")+'" arguments')): -d(b,c)}else e._error(new OpenEVSEError("ParseError","Only received "+a.length+" arguments"))});return e};b.setEndpoint=function(d){b._endpoint=d}}; +.5;b.RESET_SERIAL_TIMEOUT=10;b.STATUS_SERIAL_TIMEOUT=0;b.SYNC_SERIAL_TIMEOUT=.5;b.NEWLINE_MAX_AGE=5;b.CORRECT_RESPONSE_PREFIXES=("$OK","$NK");b.regex=/\$([^\^]*)(\^..)?/;b._request=function(c,a){a=void 0===a?function(){}:a;c="$"+(Array.isArray(c)?c.join("+"):c);var d=new OpenEVSERequest;$.get(b._endpoint+"?json=1&rapi="+encodeURI(c),function(e){e=e.ret.match(b.regex);null!==e?(e=e[1].split(" "),"OK"===e[0]?(a(e.slice(1)),d._done(e.slice(1))):d._error(new OpenEVSEError("OperationFailed"))):d._error(new OpenEVSEError("UnexpectedResponse"))}, +"json").always(function(){d._always()}).fail(function(){d._error(new OpenEVSEError("RequestFailed"))});return d};b._flags=function(c){var a=b._request("GE",function(b){var e=parseInt(b[1],16);isNaN(e)?a._error(new OpenEVSEError("ParseError",'Failed to parse "'+b[0]+'"')):c({service_level:(e&1)+1,diode_check:0===(e&2),vent_required:0===(e&4),ground_check:0===(e&8),stuck_relay_check:0===(e&16),auto_service_level:0===(e&32),auto_start:0===(e&64),serial_debug:0!==(e&128),lcd_type:0!==(e&256)?"monochrome": +"rgb",gfi_self_test:0===(e&512),temp_check:0===(e&1024)})});return a};b.reset=function(){return b._request("FR")};b.time=function(c,a){a=void 0===a?!1:a;if(!1!==a)return b._request(["S1",a.getFullYear()-2E3,a.getMonth()+1,a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds()],function(){b.time(c)});var d=b._request("GT",function(a){if(6<=a.length){var b=parseInt(a[0]),e=parseInt(a[1]),h=parseInt(a[2]),f=parseInt(a[3]),l=parseInt(a[4]),m=parseInt(a[5]);isNaN(b)||isNaN(e)||isNaN(h)||isNaN(f)||isNaN(l)|| +isNaN(m)?d._error(new OpenEVSEError("ParseError",'Could not parse time "'+a.join(" ")+'" arguments')):165==b&&165==e&&165==h&&165==f&&165==l&&85==m?(a=new Date(0),c(a,!1)):(a=new Date(2E3+b,e-1,h,f,l,m),c(a,!0))}else d._error(new OpenEVSEError("ParseError","Only received "+a.length+" arguments"))});return d};b.timer=function(c,a,d){a=void 0===a?!1:a;d=void 0===d?!1:d;if(!1!==a&&!1!==d){var e=/([01]\d|2[0-3]):([0-5]\d)/,g=a.match(e);e=d.match(e);return null!==g&&null!==e?b._request(["ST",parseInt(g[1]), +parseInt(g[2]),parseInt(e[1]),parseInt(e[2])],function(){b.timer(c)}):!1}var f=b._request("GD",function(b){if(4<=b.length){var e=parseInt(b[0]),g=parseInt(b[1]),h=parseInt(b[2]),k=parseInt(b[3]);isNaN(e)||isNaN(g)||isNaN(h)||isNaN(k)?f._error(new OpenEVSEError("ParseError",'Could not parse time "'+b.join(" ")+'" arguments')):0===e&&0===g&&0===h&&0===k?c(!1,"--:--","--:--"):(a=(10>e?"0":"")+e+":"+((10>g?"0":"")+g),d=(10>h?"0":"")+h+":"+((10>k?"0":"")+k),c(!0,a,d))}else f._error(new OpenEVSEError("ParseError", +"Only received "+b.length+" arguments"))});return f};b.cancelTimer=function(c){return b._request(["ST",0,0,0,0],function(){c()})};b.time_limit=function(c,a){a=void 0===a?!1:a;if(!1!==a)return b._request(["S3",Math.round(a/15)],function(){b.time_limit(c)});var d=b._request("G3",function(a){if(1<=a.length){var b=parseInt(a[0]);isNaN(b)?d._error(new OpenEVSEError("ParseError",'Could not parse "'+a.join(" ")+'" arguments')):c(15*b)}else d._error(new OpenEVSEError("ParseError","Only received "+a.length+ +" arguments"))});return d};b.charge_limit=function(c,a){a=void 0===a?!1:a;if(!1!==a)return b._request(["SH",a],function(){b.charge_limit(c)});var d=b._request("GH",function(a){if(1<=a.length){var b=parseInt(a[0]);isNaN(b)?d._error(new OpenEVSEError("ParseError",'Could not parse "'+a.join(" ")+'" arguments')):c(b)}else d._error(new OpenEVSEError("ParseError","Only received "+a.length+" arguments"))});return d};b.ammeter_settings=function(c,a,d){a=void 0===a?!1:a;d=void 0===d?!1:d;if(!1!==a&&!1!==d)return b._request(["SA", +a,d],function(){c(a,d)});var e=b._request("GA",function(a){if(2<=a.length){var b=parseInt(a[0]),d=parseInt(a[0]);isNaN(b)||isNaN(d)?e._error(new OpenEVSEError("ParseError",'Could not parse "'+a.join(" ")+'" arguments')):c(b,d)}else e._error(new OpenEVSEError("ParseError","Only received "+a.length+" arguments"))});return e};b.current_capacity=function(c,a){a=void 0===a?!1:a;if(!1!==a)return b._request(["SC",a],function(){b.current_capacity(c)});var d=b._request("GE",function(a){if(1<=a.length){var b= +parseInt(a[0]);isNaN(b)?d._error(new OpenEVSEError("ParseError",'Could not parse "'+a.join(" ")+'" arguments')):c(b)}else d._error(new OpenEVSEError("ParseError","Only received "+a.length+" arguments"))});return d};b.service_level=function(c,a){a=void 0===a?!1:a;return!1!==a?b._request(["SL",b._service_levels[a]],function(){b.service_level(c)}):b._flags(function(a){c(a.auto_service_level?0:a.service_level,a.service_level)})};b.current_capacity_range=function(c){var a=b._request("GC",function(b){if(2<= +b.length){var d=parseInt(b[0]),f=parseInt(b[1]);isNaN(d)||isNaN(f)?a._error(new OpenEVSEError("ParseError",'Could not parse "'+b.join(" ")+'" arguments')):c(d,f)}else a._error(new OpenEVSEError("ParseError","Only received "+b.length+" arguments"))});return a};b.status=function(c,a){a=void 0===a?!1:a;if(!1!==a)return b._request([b._status_functions[a]],function(){b.status(c)});var d=b._request("GS",function(a){if(1<=a.length){var b=parseInt(a[0]);isNaN(b)?d._error(new OpenEVSEError("ParseError",'Could not parse "'+ +a.join(" ")+'" arguments')):c(b)}else d._error(new OpenEVSEError("ParseError","Only received "+a.length+" arguments"))});return d};b.diode_check=function(c,a){a=void 0===a?null:a;return null!==a?b._request(["FF","D",a?"1":"0"],function(){b.diode_check(c)}):b._flags(function(a){c(a.diode_check)})};b.gfi_self_test=function(c,a){a=void 0===a?null:a;return null!==a?b._request(["FF F",a?"1":"0"],function(){b.gfi_self_test(c)}):b._flags(function(a){c(a.gfi_self_test)})};b.ground_check=function(c,a){a=void 0=== +a?null:a;return null!==a?b._request(["FF G",a?"1":"0"],function(){b.ground_check(c)}):b._flags(function(a){c(a.ground_check)})};b.stuck_relay_check=function(c,a){a=void 0===a?null:a;return null!==a?b._request(["FF R",a?"1":"0"],function(){b.stuck_relay_check(c)}):b._flags(function(a){c(a.stuck_relay_check)})};b.vent_required=function(c,a){a=void 0===a?null:a;return null!==a?b._request(["FF V",a?"1":"0"],function(){b.vent_required(c)}):b._flags(function(a){c(a.vent_required)})};b.temp_check=function(c, +a){a=void 0===a?null:a;return null!==a?b._request(["FF T",a?"1":"0"],function(){b.temp_check(c)}):b._flags(function(a){c(a.temp_check)})};b.over_temperature_thresholds=function(c,a,d){a=void 0===a?!1:a;d=void 0===d?!1:d;if(!1!==a&&!1!==d)return b._request(["SO",a,d],function(){b.over_temperature_thresholds(c)});var e=b._request("GO",function(a){if(2<=a.length){var b=parseInt(a[0]),d=parseInt(a[0]);isNaN(b)||isNaN(d)?e._error(new OpenEVSEError("ParseError",'Could not parse "'+a.join(" ")+'" arguments')): +c(b,d)}else e._error(new OpenEVSEError("ParseError","Only received "+a.length+" arguments"))});return e};b.press_button=function(c){return b._request("F1",function(){c()})};b.setEndpoint=function(c){b._endpoint=c}}; function RapiViewModel(c){var a=this;a.baseEndpoint=c;a.rapiSend=ko.observable(!1);a.cmd=ko.observable("");a.ret=ko.observable("");a.send=function(){a.rapiSend(!0);$.get(a.baseEndpoint()+"/r?json=1&rapi="+encodeURI(a.cmd()),function(b){a.ret(">"+b.ret);a.cmd(b.cmd)},"json").always(function(){a.rapiSend(!1)})}}; function TimeViewModel(e){function d(a){return(10>a?"0":"")+a}function g(){f=setInterval(function(){a.automaticTime()&&a.nowTimedate(new Date(a.evseTimedate().getTime()+(new Date-a.localTimedate())));e.isCharging()&&a.elapsedNow(new Date(1E3*e.status.elapsed()+(new Date-a.elapsedLocal())));a.divertUpdateNow(new Date(1E3*e.status.divert_update()+(new Date-a.divertUpdateLocal())))},1E3)}var a=this;a.evseTimedate=ko.observable(new Date);a.localTimedate=ko.observable(new Date);a.nowTimedate=ko.observable(null); a.hasRTC=ko.observable(!0);a.elapsedNow=ko.observable(new Date(0));a.elapsedLocal=ko.observable(new Date);a.divertUpdateNow=ko.observable(new Date(0));a.divertUpdateLocal=ko.observable(new Date);a.date=ko.pureComputed({read:function(){if(null===a.nowTimedate())return"";var b=a.nowTimedate();return b.getFullYear()+"-"+d(b.getMonth()+1)+"-"+d(b.getDate())},write:function(b){a.evseTimedate(new Date(b));a.localTimedate(new Date)}});a.time=ko.pureComputed({read:function(){if(null===a.nowTimedate())return"--:--:--"; -var b=a.nowTimedate();return d(b.getHours())+":"+d(b.getMinutes())+":"+d(b.getSeconds())},write:function(b){b=b.split(":");var c=a.evseTimedate();c.setHours(parseInt(b[0]));c.setMinutes(parseInt(b[1]));a.evseTimedate(c);a.localTimedate(new Date)}});a.elapsed=ko.pureComputed(function(){if(null===a.nowTimedate())return"0:00:00";var b=a.elapsedNow().getTime(),b=Math.round(b/1E3),c=b%60,b=Math.round(b/60);return Math.round(b/60)+":"+d(b%60)+":"+d(c)});e.status.elapsed.subscribe(function(b){a.elapsedNow(new Date(1E3* +var b=a.nowTimedate();return d(b.getHours())+":"+d(b.getMinutes())+":"+d(b.getSeconds())},write:function(b){b=b.split(":");var c=a.evseTimedate();c.setHours(parseInt(b[0]));c.setMinutes(parseInt(b[1]));a.evseTimedate(c);a.localTimedate(new Date)}});a.elapsed=ko.pureComputed(function(){if(null===a.nowTimedate())return"0:00:00";var b=a.elapsedNow().getTime();b=Math.round(b/1E3);var c=b%60;b=Math.round(b/60);return Math.round(b/60)+":"+d(b%60)+":"+d(c)});e.status.elapsed.subscribe(function(b){a.elapsedNow(new Date(1E3* b));a.elapsedLocal(new Date)});a.divert_update=ko.pureComputed(function(){if(null===a.nowTimedate())return!1;var b=a.divertUpdateNow().getTime();return Math.round(b/1E3)});e.status.divert_update.subscribe(function(b){a.divertUpdateNow(new Date(1E3*b));a.divertUpdateLocal(new Date)});var f=null;a.automaticTime=ko.observable(!0);a.setTime=function(){var b=a.automaticTime()?new Date:a.evseTimedate();e.openevse.time(a.timeUpdate,b)};a.timeUpdate=function(b,c){a.hasRTC(void 0===c?!0:c);null!==f&&(clearInterval(f), f=null);a.evseTimedate(b);a.nowTimedate(b);a.localTimedate(new Date);g()}}; -function OpenEvseViewModel(k,l){var a=this,g=ko.pureComputed(function(){return k()+"/r"});a.openevse=new OpenEVSE(g());g.subscribe(function(b){a.openevse.setEndpoint(b)});a.status=l;a.time=new TimeViewModel(a);a.serviceLevels=[{name:"Auto",value:0},{name:"1",value:1},{name:"2",value:2}];a.currentLevels=ko.observableArray([]);a.timeLimits=[{name:"none",value:0},{name:"15 min",value:15},{name:"30 min",value:30},{name:"45 min",value:45},{name:"1 hour",value:60},{name:"1.5 hours",value:90},{name:"2 hours", +function OpenEvseViewModel(h,k){var a=this,f=ko.pureComputed(function(){return h()+"/r"});a.openevse=new OpenEVSE(f());f.subscribe(function(b){a.openevse.setEndpoint(b)});a.status=k;a.time=new TimeViewModel(a);a.serviceLevels=[{name:"Auto",value:0},{name:"1",value:1},{name:"2",value:2}];a.currentLevels=ko.observableArray([]);a.timeLimits=[{name:"none",value:0},{name:"15 min",value:15},{name:"30 min",value:30},{name:"45 min",value:45},{name:"1 hour",value:60},{name:"1.5 hours",value:90},{name:"2 hours", value:120},{name:"2.5 hours",value:150},{name:"3 hours",value:180},{name:"4 hours",value:240},{name:"5 hours",value:300},{name:"6 hours",value:360},{name:"7 hours",value:420},{name:"8 hours",value:480}];a.chargeLimits=[{name:"none",value:0},{name:"1 kWh",value:1},{name:"2 kWh",value:2},{name:"3 kWh",value:3},{name:"4 kWh",value:4},{name:"5 kWh",value:5},{name:"6 kWh",value:6},{name:"7 kWh",value:7},{name:"8 kWh",value:8},{name:"9 kWh",value:9},{name:"10 kWh",value:10},{name:"15 kWh",value:11},{name:"20 kWh", value:12},{name:"25 kWh",value:25},{name:"30 kWh",value:30},{name:"35 kWh",value:35},{name:"40 kWh",value:40},{name:"45 kWh",value:45},{name:"50 kWh",value:50},{name:"55 kWh",value:55},{name:"60 kWh",value:60},{name:"70 kWh",value:70},{name:"80 kWh",value:80},{name:"90 kWh",value:90}];a.serviceLevel=ko.observable(-1);a.actualServiceLevel=ko.observable(-1);a.minCurrentLevel=ko.observable(-1);a.maxCurrentLevel=ko.observable(-1);a.currentCapacity=ko.observable(-1);a.timeLimit=ko.observable(-1);a.chargeLimit= ko.observable(-1);a.delayTimerEnabled=ko.observable(!1);a.delayTimerStart=ko.observable("--:--");a.delayTimerStop=ko.observable("--:--");a.gfiSelfTestEnabled=ko.observable(!1);a.groundCheckEnabled=ko.observable(!1);a.stuckRelayEnabled=ko.observable(!1);a.tempCheckEnabled=ko.observable(!1);a.diodeCheckEnabled=ko.observable(!1);a.ventRequiredEnabled=ko.observable(!1);a.allTestsEnabled=ko.pureComputed(function(){return a.gfiSelfTestEnabled()&&a.groundCheckEnabled()&&a.stuckRelayEnabled()&&a.tempCheckEnabled()&& a.diodeCheckEnabled()&&a.ventRequiredEnabled()});a.tempCheckSupported=ko.observable(!1);a.isConnected=ko.pureComputed(function(){return-1!==[2,3].indexOf(a.status.state())});a.isReady=ko.pureComputed(function(){return-1!==[0,1].indexOf(a.status.state())});a.isCharging=ko.pureComputed(function(){return 3===a.status.state()});a.isError=ko.pureComputed(function(){return-1!==[4,5,6,7,8,9,10].indexOf(a.status.state())});a.isEnabled=ko.pureComputed(function(){return-1!==[0,1,2,3].indexOf(a.status.state())}); -a.isSleeping=ko.pureComputed(function(){return 254===a.status.state()});a.isDisabled=ko.pureComputed(function(){return 255===a.status.state()});a.selectTimeLimit=function(b){if(a.timeLimit()!==b)for(var c=0;c=b){a.timeLimit(d.value);break}}};a.selectChargeLimit=function(b){if(a.chargeLimit()!==b)for(var c=0;c=b){a.chargeLimit(d.value);break}}};var f=[function(){return a.openevse.time(a.time.timeUpdate)}, +a.isSleeping=ko.pureComputed(function(){return 254===a.status.state()});a.isDisabled=ko.pureComputed(function(){return 255===a.status.state()});a.selectTimeLimit=function(b){if(a.timeLimit()!==b)for(var c=0;c=b){a.timeLimit(d.value);break}}};a.selectChargeLimit=function(b){if(a.chargeLimit()!==b)for(var c=0;c=b){a.chargeLimit(d.value);break}}};var e=[function(){return a.openevse.time(a.time.timeUpdate)}, function(){return a.openevse.service_level(function(b,c){a.serviceLevel(b);a.actualServiceLevel(c)})},function(){return a.updateCurrentCapacity()},function(){return a.openevse.current_capacity(function(b){a.currentCapacity(b)})},function(){return a.openevse.time_limit(function(b){a.selectTimeLimit(b)})},function(){return a.openevse.charge_limit(function(b){a.selectChargeLimit(b)})},function(){return a.openevse.gfi_self_test(function(b){a.gfiSelfTestEnabled(b)})},function(){return a.openevse.ground_check(function(b){a.groundCheckEnabled(b)})}, function(){return a.openevse.stuck_relay_check(function(b){a.stuckRelayEnabled(b)})},function(){return a.openevse.temp_check(function(b){a.tempCheckEnabled(b)})},function(){return a.openevse.diode_check(function(b){a.diodeCheckEnabled(b)})},function(){return a.openevse.vent_required(function(b){a.ventRequiredEnabled(b)})},function(){return a.openevse.temp_check(function(){a.tempCheckSupported(!0)},a.tempCheckEnabled()).error(function(){a.tempCheckSupported(!1)})},function(){return a.openevse.timer(function(b, -c,d){a.delayTimerEnabled(b);a.delayTimerStart(c);a.delayTimerStop(d)})}];a.updateCount=ko.observable(0);a.updateTotal=ko.observable(f.length);a.updateCurrentCapacity=function(){return a.openevse.current_capacity_range(function(b,c){a.minCurrentLevel(b);a.maxCurrentLevel(c);var d=a.currentCapacity();a.currentLevels.removeAll();for(var e=a.minCurrentLevel();e<=a.maxCurrentLevel();e++)a.currentLevels.push({name:e+" A",value:e});a.currentCapacity(d)})};a.updatingServiceLevel=ko.observable(!1);a.savedServiceLevel= +c,d){a.delayTimerEnabled(b);a.delayTimerStart(c);a.delayTimerStop(d)})}];a.updateCount=ko.observable(0);a.updateTotal=ko.observable(e.length);a.updateCurrentCapacity=function(){return a.openevse.current_capacity_range(function(b,c){a.minCurrentLevel(b);a.maxCurrentLevel(c);b=a.currentCapacity();a.currentLevels.removeAll();for(c=a.minCurrentLevel();c<=a.maxCurrentLevel();c++)a.currentLevels.push({name:c+" A",value:c});a.currentCapacity(b)})};a.updatingServiceLevel=ko.observable(!1);a.savedServiceLevel= ko.observable(!1);a.updatingCurrentCapacity=ko.observable(!1);a.savedCurrentCapacity=ko.observable(!1);a.updatingTimeLimit=ko.observable(!1);a.savedTimeLimit=ko.observable(!1);a.updatingChargeLimit=ko.observable(!1);a.savedChargeLimit=ko.observable(!1);a.updatingDelayTimer=ko.observable(!1);a.savedDelayTimer=ko.observable(!1);a.updatingStatus=ko.observable(!1);a.savedStatus=ko.observable(!1);a.updatingGfiSelfTestEnabled=ko.observable(!1);a.savedGfiSelfTestEnabled=ko.observable(!1);a.updatingGroundCheckEnabled= -ko.observable(!1);a.savedGroundCheckEnabled=ko.observable(!1);a.updatingStuckRelayEnabled=ko.observable(!1);a.savedStuckRelayEnabled=ko.observable(!1);a.updatingTempCheckEnabled=ko.observable(!1);a.savedTempCheckEnabled=ko.observable(!1);a.updatingDiodeCheckEnabled=ko.observable(!1);a.savedDiodeCheckEnabled=ko.observable(!1);a.updatingVentRequiredEnabled=ko.observable(!1);a.savedVentRequiredEnabled=ko.observable(!1);a.setForTime=function(a,c){a(!0);setTimeout(function(){a(!1)},c)};var h=!1;a.subscribe= -function(){h||(a.serviceLevel.subscribe(function(b){a.updatingServiceLevel(!0);a.openevse.service_level(function(b,d){a.setForTime(a.savedServiceLevel,2E3);a.actualServiceLevel(d);a.updateCurrentCapacity().always(function(){})},b).always(function(){a.updatingServiceLevel(!1)})}),a.currentCapacity.subscribe(function(b){!0!==a.updatingServiceLevel()&&(a.updatingCurrentCapacity(!0),a.openevse.current_capacity(function(c){a.setForTime(a.savedCurrentCapacity,2E3);b!==c&&a.currentCapacity(c)},b).always(function(){a.updatingCurrentCapacity(!1)}))}), +ko.observable(!1);a.savedGroundCheckEnabled=ko.observable(!1);a.updatingStuckRelayEnabled=ko.observable(!1);a.savedStuckRelayEnabled=ko.observable(!1);a.updatingTempCheckEnabled=ko.observable(!1);a.savedTempCheckEnabled=ko.observable(!1);a.updatingDiodeCheckEnabled=ko.observable(!1);a.savedDiodeCheckEnabled=ko.observable(!1);a.updatingVentRequiredEnabled=ko.observable(!1);a.savedVentRequiredEnabled=ko.observable(!1);a.setForTime=function(a,c){a(!0);setTimeout(function(){a(!1)},c)};var g=!1;a.subscribe= +function(){g||(a.serviceLevel.subscribe(function(b){a.updatingServiceLevel(!0);a.openevse.service_level(function(b,d){a.setForTime(a.savedServiceLevel,2E3);a.actualServiceLevel(d);a.updateCurrentCapacity().always(function(){})},b).always(function(){a.updatingServiceLevel(!1)})}),a.currentCapacity.subscribe(function(b){!0!==a.updatingServiceLevel()&&(a.updatingCurrentCapacity(!0),a.openevse.current_capacity(function(c){a.setForTime(a.savedCurrentCapacity,2E3);b!==c&&a.currentCapacity(c)},b).always(function(){a.updatingCurrentCapacity(!1)}))}), a.timeLimit.subscribe(function(b){a.updatingTimeLimit(!0);a.openevse.time_limit(function(c){a.setForTime(a.savedTimeLimit,2E3);b!==c&&a.selectTimeLimit(c)},b).always(function(){a.updatingTimeLimit(!1)})}),a.chargeLimit.subscribe(function(b){a.updatingChargeLimit(!0);a.openevse.charge_limit(function(c){a.setForTime(a.savedChargeLimit,2E3);b!==c&&a.selectChargeLimit(c)},b).always(function(){a.updatingChargeLimit(!1)})}),a.gfiSelfTestEnabled.subscribe(function(b){a.updatingGfiSelfTestEnabled(!0);a.openevse.gfi_self_test(function(c){a.setForTime(a.savedGfiSelfTestEnabled, 2E3);b!==c&&a.gfiSelfTestEnabled(c)},b).always(function(){a.updatingGfiSelfTestEnabled(!1)})}),a.groundCheckEnabled.subscribe(function(b){a.updatingGroundCheckEnabled(!0);a.openevse.ground_check(function(c){a.setForTime(a.savedGroundCheckEnabled,2E3);b!==c&&a.groundCheckEnabled(c)},b).always(function(){a.updatingGroundCheckEnabled(!1)})}),a.stuckRelayEnabled.subscribe(function(b){a.updatingStuckRelayEnabled(!0);a.savedStuckRelayEnabled(!1);a.openevse.stuck_relay_check(function(c){a.savedStuckRelayEnabled(!0); setTimeout(function(){a.savedStuckRelayEnabled(!1)},2E3);b!==c&&a.stuckRelayEnabled(c)},b).always(function(){a.updatingStuckRelayEnabled(!1)})}),a.tempCheckEnabled.subscribe(function(b){a.updatingTempCheckEnabled(!0);a.openevse.temp_check(function(c){a.setForTime(a.savedTempCheckEnabled,2E3);b!==c&&a.tempCheckEnabled(c)},b).always(function(){a.updatingTempCheckEnabled(!1)})}),a.diodeCheckEnabled.subscribe(function(b){a.updatingDiodeCheckEnabled(!0);a.openevse.diode_check(function(c){a.setForTime(a.savedDiodeCheckEnabled, -2E3);b!==c&&a.diodeCheckEnabled(c)},b).always(function(){a.updatingDiodeCheckEnabled(!1)})}),a.ventRequiredEnabled.subscribe(function(b){a.updatingVentRequiredEnabled(!0);a.openevse.vent_required(function(c){a.setForTime(a.savedVentRequiredEnabled,2E3);b!==c&&a.ventRequiredEnabled(c)},b).always(function(){a.updatingVentRequiredEnabled(!1)})}),h=!0)};a.update=function(b){b=void 0===b?function(){}:b;a.updateCount(0);a.nextUpdate(b)};a.nextUpdate=function(b){(0,f[a.updateCount()])().always(function(){a.updateCount(a.updateCount()+ -1);a.updateCount()=f}},"es6-impl","es3"); -function OpenEvseWiFiViewModel(c,e,d){var a=this;a.baseHost=ko.observable(""!==c?c:"openevse.local");a.basePort=ko.observable(e);a.baseProtocol=ko.observable(d);a.baseEndpoint=ko.pureComputed(function(){var b="//"+a.baseHost();80!==a.basePort()&&(b+=":"+a.basePort());return b});a.wsEndpoint=ko.pureComputed(function(){var b="ws://"+a.baseHost();"https:"===a.baseProtocol()&&(b="wss://"+a.baseHost());80!==a.basePort()&&(b+=":"+a.basePort());return b+"/ws"});a.config=new ConfigViewModel(a.baseEndpoint); +2E3);b!==c&&a.diodeCheckEnabled(c)},b).always(function(){a.updatingDiodeCheckEnabled(!1)})}),a.ventRequiredEnabled.subscribe(function(b){a.updatingVentRequiredEnabled(!0);a.openevse.vent_required(function(c){a.setForTime(a.savedVentRequiredEnabled,2E3);b!==c&&a.ventRequiredEnabled(c)},b).always(function(){a.updatingVentRequiredEnabled(!1)})}),g=!0)};a.update=function(b){b=void 0===b?function(){}:b;a.updateCount(0);a.nextUpdate(b)};a.nextUpdate=function(b){(0,e[a.updateCount()])().always(function(){a.updateCount(a.updateCount()+ +1);a.updateCount()c||(a.updatingStatus(!0),!a.delayTimerEnabled()||"sleep"!==b&&"enable"!==b?a.openevse.status(function(b){a.status.state(b)},b).always(function(){a.updatingStatus(!1)}):a.openevse.press_button(function(){b=!1}).always(function(){a.openevse.status(function(b){a.status.state(b)},b).always(function(){a.updatingStatus(!1)})}))};a.restartFetching=ko.observable(!1);a.restart=function(){confirm("Restart OpenEVSE? Current config will be saved, takes approximately 10s.")&& +(a.restartFetching(!0),a.openevse.reset().always(function(){a.restartFetching(!1)}))}}; +var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.checkStringArgs=function(c,f,d){if(null==c)throw new TypeError("The 'this' value for String.prototype."+d+" must not be null or undefined");if(f instanceof RegExp)throw new TypeError("First argument to String.prototype."+d+" must not be a regular expression");return c+""};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1; +$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(c,f,d){c!=Array.prototype&&c!=Object.prototype&&(c[f]=d.value)};$jscomp.getGlobal=function(c){return"undefined"!=typeof window&&window===c?c:"undefined"!=typeof global&&null!=global?global:c};$jscomp.global=$jscomp.getGlobal(this); +$jscomp.polyfill=function(c,f,d,a){if(f){d=$jscomp.global;c=c.split(".");for(a=0;a=e}},"es6","es3"); +function OpenEvseWiFiViewModel(c,f,d){var a=this;a.baseHost=ko.observable(""!==c?c:"openevse.local");a.basePort=ko.observable(f);a.baseProtocol=ko.observable(d);a.baseEndpoint=ko.pureComputed(function(){var b="//"+a.baseHost();80!==a.basePort()&&(b+=":"+a.basePort());return b});a.wsEndpoint=ko.pureComputed(function(){var b="ws://"+a.baseHost();"https:"===a.baseProtocol()&&(b="wss://"+a.baseHost());80!==a.basePort()&&(b+=":"+a.basePort());return b+"/ws"});a.config=new ConfigViewModel(a.baseEndpoint); a.status=new StatusViewModel(a.baseEndpoint);a.rapi=new RapiViewModel(a.baseEndpoint);a.scan=new WiFiScanViewModel(a.baseEndpoint);a.wifi=new WiFiConfigViewModel(a.baseEndpoint,a.config,a.status,a.scan);a.openevse=new OpenEvseViewModel(a.baseEndpoint,a.status);a.initialised=ko.observable(!1);a.updating=ko.observable(!1);a.scanUpdating=ko.observable(!1);a.bssid=ko.observable("");a.bssid.subscribe(function(b){for(var c=0;ca?b="updateGood":60>a?b="updateSlow":7200>a&&(b="updateSlower");return b}; diff --git a/src/data/lib.js b/src/data/lib.js index 8a43322..0a8e584 100644 --- a/src/data/lib.js +++ b/src/data/lib.js @@ -19,375 +19,375 @@ Date: 2016-08-08 */ -var $jscomp={scope:{},findInternal:function(p,t,K){p instanceof String&&(p=String(p));for(var F=p.length,D=0;Dtbody",a)[0]||a:a}function Vb(a){a.type=(null!==a.getAttribute("type"))+"/"+a.type;return a}function Wb(a){var b=Xb.exec(a.type);b?a.type=b[1]:a.removeAttribute("type");return a}function gb(a,b){var c,e,f,g;if(1===b.nodeType){if(v.hasData(a)&&(g=v.access(a),c=v.set(b,g),g=g.events))for(f in delete c.handle,c.events={},g)for(c= -0,e=g[f].length;cb;b+=2)"margin"===c&&(g+=d.css(a,c+T[b],!0,f)),e?("content"===c&&(g-=d.css(a,"padding"+T[b],!0,f)),"margin"!==c&&(g-=d.css(a,"border"+T[b]+"Width",!0,f))):(g+=d.css(a,"padding"+T[b],!0,f),"padding"!==c&&(g+=d.css(a,"border"+T[b]+"Width", -!0,f)));return g}function qb(a,b,c){var e,f=Ca(a),g=ta(a,b,f),h="border-box"===d.css(a,"boxSizing",!1,f);if(Na.test(g))return g;e=h&&(x.boxSizingReliable()||g===a.style[b]);"auto"===g&&(g=a["offset"+b[0].toUpperCase()+b.slice(1)]);g=parseFloat(g)||0;return g+pb(a,b,c||(h?"border":"content"),e,f)+"px"}function A(a,b,c,d,f){return new A.prototype.init(a,b,c,d,f)}function Oa(){Da&&(!1===r.hidden&&p.requestAnimationFrame?p.requestAnimationFrame(Oa):p.setTimeout(Oa,d.fx.interval),d.fx.tick())}function rb(){p.setTimeout(function(){ka= -void 0});return ka=d.now()}function Ea(a,b){var c,d=0,f={height:a};for(b=b?1:0;4>d;d+=2-b)c=T[d],f["margin"+c]=f["padding"+c]=a;b&&(f.opacity=f.width=a);return f}function sb(a,b,c){for(var d,f=(R.tweeners[b]||[]).concat(R.tweeners["*"]),g=0,h=f.length;gc&&f)return b;f||h.notifyWith(a,[l,1,0]);h.resolveWith(a,[l]);return!1},l=h.promise({elem:a,props:d.extend({},b),opts:d.extend(!0,{specialEasing:{},easing:d.easing._default},c), -originalProperties:b,originalOptions:c,startTime:ka||rb(),duration:c.duration,tweens:[],createTween:function(b,c){var e=d.Tween(a,l.opts,b,c,l.opts.specialEasing[b]||l.opts.easing);l.tweens.push(e);return e},stop:function(b){var c=0,d=b?l.tweens.length:0;if(e)return this;for(e=!0;ca?this[a+this.length]:this[a]},pushStack:function(a){a=d.merge(this.constructor(),a);a.prevObject=this;return a},each:function(a){return d.each(this,a)},map:function(a){return this.pushStack(d.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(ba.apply(this,arguments))}, -first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length;a=+a+(0>a?b:0);return this.pushStack(0<=a&&aw.cacheLength&&delete a[b.shift()];return a[c+" "]=d}var b=[];return a}function d(a){a[B]=!0;return a}function f(a){var b=z.createElement("fieldset");try{return!!a(b)}catch(E){return!1}finally{b.parentNode&&b.parentNode.removeChild(b)}}function g(a,b){for(var c=a.split("|"),d=c.length;d--;)w.attrHandle[c[d]]=b}function h(a,b){var c=b&&a,d=c&&1=== -a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)for(;c=c.nextSibling;)if(c===b)return-1;return a?1:-1}function k(a){return function(b){return"input"===b.nodeName.toLowerCase()&&b.type===a}}function l(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function n(a){return function(b){return"form"in b?b.parentNode&&!1===b.disabled?"label"in b?"label"in b.parentNode?b.parentNode.disabled===a:b.disabled===a:b.isDisabled===a|| -b.isDisabled!==!a&&xa(b)===a:b.disabled===a:"label"in b?b.disabled===a:!1}}function q(a){return d(function(b){b=+b;return d(function(c,d){for(var e,f=a([],c.length,b),g=f.length;g--;)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function O(a){return a&&"undefined"!==typeof a.getElementsByTagName&&a}function m(){}function p(a){for(var b=0,c=a.length,d="";b+~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/,ka=RegExp("=[\\x20\\t\\r\\n\\f]*([^\\]'\"]*?)[\\x20\\t\\r\\n\\f]*\\]","g"),na=/:((?:\\.|[\w-]|[^\x00-\xa0])+)(?:\((('((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)")|((?:\\.|[^\\()[\]]|\[[\x20\t\r\n\f]*((?:\\.|[\w-]|[^\x00-\xa0])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\.|[\w-]|[^\x00-\xa0])+))|)[\x20\t\r\n\f]*\])*)|.*)\)|)/, -oa=/^(?:\\.|[\w-]|[^\x00-\xa0])+$/,Y={ID:/^#((?:\\.|[\w-]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[\w-]|[^\x00-\xa0])+)/,TAG:/^((?:\\.|[\w-]|[^\x00-\xa0])+|[*])/,ATTR:/^\[[\x20\t\r\n\f]*((?:\\.|[\w-]|[^\x00-\xa0])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\.|[\w-]|[^\x00-\xa0])+))|)[\x20\t\r\n\f]*\]/,PSEUDO:/^:((?:\\.|[\w-]|[^\x00-\xa0])+)(?:\((('((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)")|((?:\\.|[^\\()[\]]|\[[\x20\t\r\n\f]*((?:\\.|[\w-]|[^\x00-\xa0])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\.|[\w-]|[^\x00-\xa0])+))|)[\x20\t\r\n\f]*\])*)|.*)\)|)/, -CHILD:/^:(only|first|last|nth|nth-last)-(child|of-type)(?:\([\x20\t\r\n\f]*(even|odd|(([+-]|)(\d*)n|)[\x20\t\r\n\f]*(?:([+-]|)[\x20\t\r\n\f]*(\d+)|))[\x20\t\r\n\f]*\)|)/i,bool:/^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$/i,needsContext:/^[\x20\t\r\n\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\([\x20\t\r\n\f]*((?:-\d)?\d*)[\x20\t\r\n\f]*\)|)(?=[^-]|$)/i},ra=/^(?:input|select|textarea|button)$/i,ta=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/, -wa=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ga=/[+~]/,da=RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)","ig"),ea=function(a,b,c){a="0x"+b-65536;return a!==a||c?b:0>a?String.fromCharCode(a+65536):String.fromCharCode(a>>10|55296,a&1023|56320)},pa=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,qa=function(a,b){return b?"\x00"===a?"\ufffd":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a},sa=function(){M()},xa=Ba(function(a){return!0===a.disabled&&("form"in -a||"label"in a)},{dir:"parentNode",next:"legend"});try{la.apply(P=Z.call(S.childNodes),S.childNodes),P[S.childNodes.length].nodeType}catch(y){la={apply:P.length?function(a,b){fa.apply(a,Z.call(b))}:function(a,b){for(var c=a.length,d=0;a[c++]=b[d++];);a.length=c-1}}}u=b.support={};yb=b.isXML=function(a){return(a=a&&(a.ownerDocument||a).documentElement)?"HTML"!==a.nodeName:!1};M=b.setDocument=function(a){var b;a=a?a.ownerDocument||a:S;if(a===z||9!==a.nodeType||!a.documentElement)return z;z=a;L=z.documentElement; -G=!yb(z);S!==z&&(b=z.defaultView)&&b.top!==b&&(b.addEventListener?b.addEventListener("unload",sa,!1):b.attachEvent&&b.attachEvent("onunload",sa));u.attributes=f(function(a){a.className="i";return!a.getAttribute("className")});u.getElementsByTagName=f(function(a){a.appendChild(z.createComment(""));return!a.getElementsByTagName("*").length});u.getElementsByClassName=X.test(z.getElementsByClassName);u.getById=f(function(a){L.appendChild(a).id=B;return!z.getElementsByName||!z.getElementsByName(B).length}); -u.getById?(w.filter.ID=function(a){var b=a.replace(da,ea);return function(a){return a.getAttribute("id")===b}},w.find.ID=function(a,b){if("undefined"!==typeof b.getElementById&&G){var c=b.getElementById(a);return c?[c]:[]}}):(w.filter.ID=function(a){var b=a.replace(da,ea);return function(a){return(a="undefined"!==typeof a.getAttributeNode&&a.getAttributeNode("id"))&&a.value===b}},w.find.ID=function(a,b){if("undefined"!==typeof b.getElementById&&G){var c,d,e,f=b.getElementById(a);if(f){if((c=f.getAttributeNode("id"))&& -c.value===a)return[f];e=b.getElementsByName(a);for(d=0;f=e[d++];)if((c=f.getAttributeNode("id"))&&c.value===a)return[f]}return[]}});w.find.TAG=u.getElementsByTagName?function(a,b){if("undefined"!==typeof b.getElementsByTagName)return b.getElementsByTagName(a);if(u.qsa)return b.querySelectorAll(a)}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){for(;c=f[e++];)1===c.nodeType&&d.push(c);return d}return f};w.find.CLASS=u.getElementsByClassName&&function(a,b){if("undefined"!==typeof b.getElementsByClassName&& -G)return b.getElementsByClassName(a)};va=[];I=[];if(u.qsa=X.test(z.querySelectorAll))f(function(a){L.appendChild(a).innerHTML="";a.querySelectorAll("[msallowcapture^='']").length&&I.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")");a.querySelectorAll("[selected]").length||I.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)"); -a.querySelectorAll("[id~="+B+"-]").length||I.push("~=");a.querySelectorAll(":checked").length||I.push(":checked");a.querySelectorAll("a#"+B+"+*").length||I.push(".#.+[+~]")}),f(function(a){a.innerHTML="";var b=z.createElement("input");b.setAttribute("type","hidden");a.appendChild(b).setAttribute("name","D");a.querySelectorAll("[name=d]").length&&I.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?=");2!==a.querySelectorAll(":enabled").length&& -I.push(":enabled",":disabled");L.appendChild(a).disabled=!0;2!==a.querySelectorAll(":disabled").length&&I.push(":enabled",":disabled");a.querySelectorAll("*,:x");I.push(",.*:")});(u.matchesSelector=X.test(F=L.matches||L.webkitMatchesSelector||L.mozMatchesSelector||L.oMatchesSelector||L.msMatchesSelector))&&f(function(a){u.disconnectedMatch=F.call(a,"*");F.call(a,"[s!='']:x");va.push("!=",":((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\.|[\\w-]|[^\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)")}); -I=I.length&&new RegExp(I.join("|"));va=va.length&&new RegExp(va.join("|"));Aa=(b=X.test(L.compareDocumentPosition))||X.test(L.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!!(d&&1===d.nodeType&&(c.contains?c.contains(d):a.compareDocumentPosition&&a.compareDocumentPosition(d)&16))}:function(a,b){if(b)for(;b=b.parentNode;)if(b===a)return!0;return!1};W=b?function(a,b){if(a===b)return ya=!0,0;var c=!a.compareDocumentPosition-!b.compareDocumentPosition; -if(c)return c;c=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1;return c&1||!u.sortDetached&&b.compareDocumentPosition(a)===c?a===z||a.ownerDocument===S&&Aa(S,a)?-1:b===z||b.ownerDocument===S&&Aa(S,b)?1:ma?ua(ma,a)-ua(ma,b):0:c&4?-1:1}:function(a,b){if(a===b)return ya=!0,0;var c,d=0;c=a.parentNode;var e=b.parentNode,f=[a],g=[b];if(!c||!e)return a===z?-1:b===z?1:c?-1:e?1:ma?ua(ma,a)-ua(ma,b):0;if(c===e)return h(a,b);for(c=a;c=c.parentNode;)f.unshift(c);for(c=b;c=c.parentNode;)g.unshift(c); -for(;f[d]===g[d];)d++;return d?h(f[d],g[d]):f[d]===S?-1:g[d]===S?1:0};return z};b.matches=function(a,c){return b(a,null,null,c)};b.matchesSelector=function(a,c){(a.ownerDocument||a)!==z&&M(a);c=c.replace(ka,"='$1']");if(!(!u.matchesSelector||!G||T[c+" "]||va&&va.test(c)||I&&I.test(c)))try{var d=F.call(a,c);if(d||u.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(ca){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0}, -"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){a[1]=a[1].replace(da,ea);a[3]=(a[3]||a[4]||a[5]||"").replace(da,ea);"~="===a[2]&&(a[3]=" "+a[3]+" ");return a.slice(0,4)},CHILD:function(a){a[1]=a[1].toLowerCase();"nth"===a[1].slice(0,3)?(a[3]||b.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&b.error(a[0]);return a},PSEUDO:function(a){var b,c=!a[6]&&a[2];if(Y.CHILD.test(a[0]))return null;a[3]?a[2]=a[4]||a[5]||"":c&&na.test(c)&& -(b=J(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b));return a.slice(0,3)}},filter:{TAG:function(a){var b=a.replace(da,ea).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=R[a+" "];return b||(b=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+a+"([\\x20\\t\\r\\n\\f]|$)"),R(a,function(a){return b.test("string"===typeof a.className&&a.className||"undefined"!==typeof a.getAttribute&&a.getAttribute("class")|| -"")}))},ATTR:function(a,c,d){return function(e){e=b.attr(e,a);if(null==e)return"!="===c;if(!c)return!0;e+="";return"="===c?e===d:"!="===c?e!==d:"^="===c?d&&0===e.indexOf(d):"*="===c?d&&-1a.nodeType)return!1;return!0},parent:function(a){return!w.pseudos.empty(a)},header:function(a){return ta.test(a.nodeName)},input:function(a){return ra.test(a.nodeName)},button:function(a){var b= -a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:q(function(){return[0]}),last:q(function(a,b){return[b-1]}),eq:q(function(a,b,c){return[0>c?c+b:c]}),even:q(function(a,b){for(var c=0;cc?c+b:c;0<=--b;)a.push(b); -return a}),gt:q(function(a,b,c){for(c=0>c?c+b:c;++c";a.firstChild.setAttribute("value","");return""===a.firstChild.getAttribute("value")})|| -g("value",function(a,b,c){if(!c&&"input"===a.nodeName.toLowerCase())return a.defaultValue});f(function(a){return null==a.getAttribute("disabled")})||g("checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",function(a,b,c){var d;if(!c)return!0===a[b]?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null});return b}(p);d.find=fa;d.expr=fa.selectors;d.expr[":"]=d.expr.pseudos;d.uniqueSort=d.unique=fa.uniqueSort;d.text= -fa.getText;d.isXMLDoc=fa.isXML;d.contains=fa.contains;d.escapeSelector=fa.escape;var na=function(a,b,c){for(var e=[],f=void 0!==c;(a=a[b])&&9!==a.nodeType;)if(1===a.nodeType){if(f&&d(a).is(c))break;e.push(a)}return e},zb=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},Ab=d.expr.match.needsContext,Bb=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,Qb=/^.[^:#\[\.,]*$/;d.filter=function(a,b,c){var e=b[0];c&&(a=":not("+a+")");return 1===b.length&& -1===e.nodeType?d.find.matchesSelector(e,a)?[e]:[]:d.find.matches(a,d.grep(b,function(a){return 1===a.nodeType}))};d.fn.extend({find:function(a){var b,c,e=this.length,f=this;if("string"!==typeof a)return this.pushStack(d(a).filter(function(){for(b=0;b)[^>]*|#([\w-]+))$/;(d.fn.init=function(a,b,c){var e;if(!a)return this;c=c||Cb;if("string"===typeof a){e="<"===a[0]&&">"===a[a.length-1]&&3<=a.length?[null,a,null]:hc.exec(a);if(!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof d?b[0]:b,d.merge(this,d.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:r,!0)),Bb.test(e[1])&&d.isPlainObject(b))for(e in b)if(d.isFunction(this[e]))this[e](b[e]); -else this.attr(e,b[e])}else if(a=r.getElementById(e[2]))this[0]=a,this.length=1;return this}return a.nodeType?(this[0]=a,this.length=1,this):d.isFunction(a)?void 0!==c.ready?c.ready(a):a(d):d.makeArray(a,this)}).prototype=d.fn;Cb=d(r);var ic=/^(?:parents|prev(?:Until|All))/,jc={children:!0,contents:!0,next:!0,prev:!0};d.fn.extend({has:function(a){var b=d(a,this),c=b.length;return this.filter(function(){for(var a=0;ac.nodeType&&(h?-1=g&&(c!==pa&&(h=void 0,k=[xb]),b.rejectWith(h,k))}};a?m():(d.Deferred.getStackHook&&(m.stackTrace=d.Deferred.getStackHook()),p.setTimeout(m))}}var g=0;return d.Deferred(function(g){b[0][3].add(f(0, -g,d.isFunction(e)?e:ha,g.notifyWith));b[1][3].add(f(0,g,d.isFunction(a)?a:ha));b[2][3].add(f(0,g,d.isFunction(c)?c:pa))}).promise()},promise:function(a){return null!=a?d.extend(a,e):e}},f={};d.each(b,function(a,d){var g=d[2],h=d[5];e[d[1]]=g.add;h&&g.add(function(){c=h},b[3-a][2].disable,b[0][2].lock);g.add(d[3].fire);f[d[0]]=function(){f[d[0]+"With"](this===f?void 0:this,arguments);return this};f[d[0]+"With"]=g.fireWith});e.promise(f);a&&a.call(f,f);return f},when:function(a){var b=arguments.length, -c=b,e=Array(c),f=ba.call(arguments),g=d.Deferred(),h=function(a){return function(c){e[a]=this;f[a]=1=b&&(Ya(a,g.done(h(c)).resolve,g.reject,!b),"pending"===g.state()||d.isFunction(f[c]&&f[c].then)))return g.then();for(;c--;)Ya(f[c],h(c),g.reject);return g.promise()}});var kc=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;d.Deferred.exceptionHook=function(a,b){p.console&&p.console.warn&&a&&kc.test(a.name)&&p.console.warn("jQuery.Deferred exception: "+ -a.message,a.stack,b)};d.readyException=function(a){p.setTimeout(function(){throw a;})};var Ta=d.Deferred();d.fn.ready=function(a){Ta.then(a)["catch"](function(a){d.readyException(a)});return this};d.extend({isReady:!1,readyWait:1,ready:function(a){(!0===a?--d.readyWait:d.isReady)||(d.isReady=!0,!0!==a&&0<--d.readyWait||Ta.resolveWith(r,[d]))}});d.ready.then=Ta.then;"complete"===r.readyState||"loading"!==r.readyState&&!r.documentElement.doScroll?p.setTimeout(d.ready):(r.addEventListener("DOMContentLoaded", -qa),p.addEventListener("load",qa));var U=function(a,b,c,e,f,g,h){var k=0,l=a.length,n=null==c;if("object"===d.type(c))for(k in f=!0,c)U(a,b,k,c[k],!0,g,h);else if(void 0!==e&&(f=!0,d.isFunction(e)||(h=!0),n&&(h?(b.call(a,e),b=null):(n=b,b=function(a,b,c){return n.call(d(a),c)})),b))for(;k\x20\t\r\n\f]+)/i,db=/^$|\/(?:java|ecma)script/i,Q={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};Q.optgroup=Q.option;Q.tbody=Q.tfoot=Q.colgroup=Q.caption=Q.thead;Q.th=Q.td; -var Ub=/<|&#?\w+;/;(function(){var a=r.createDocumentFragment().appendChild(r.createElement("div")),b=r.createElement("input");b.setAttribute("type","radio");b.setAttribute("checked","checked");b.setAttribute("name","t");a.appendChild(b);x.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked;a.innerHTML="";x.noCloneChecked=!!a.cloneNode(!0).lastChild.defaultValue})();var Ka=r.documentElement,lc=/^key/,mc=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Gb=/^([^.]*)(?:\.(.+)|)/; -d.event={global:{},add:function(a,b,c,e,f){var g,h,k,l,n,q,p,m,r;if(n=v.get(a))for(c.handler&&(g=c,c=g.handler,f=g.selector),f&&d.find.matchesSelector(Ka,f),c.guid||(c.guid=d.guid++),(l=n.events)||(l=n.events={}),(h=n.handle)||(h=n.handle=function(b){return"undefined"!==typeof d&&d.event.triggered!==b.type?d.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(C)||[""],n=b.length;n--;)k=Gb.exec(b[n])||[],m=q=k[1],r=(k[2]||"").split(".").sort(),m&&(k=d.event.special[m]||{},m=(f?k.delegateType: -k.bindType)||m,k=d.event.special[m]||{},q=d.extend({type:m,origType:q,data:e,handler:c,guid:c.guid,selector:f,needsContext:f&&d.expr.match.needsContext.test(f),namespace:r.join(".")},g),(p=l[m])||(p=l[m]=[],p.delegateCount=0,k.setup&&!1!==k.setup.call(a,e,r,h)||a.addEventListener&&a.addEventListener(m,h)),k.add&&(k.add.call(a,q),q.handler.guid||(q.handler.guid=c.guid)),f?p.splice(p.delegateCount++,0,q):p.push(q),d.event.global[m]=!0)},remove:function(a,b,c,e,f){var g,h,k,l,n,q,p,m,r,x,D,t=v.hasData(a)&& -v.get(a);if(t&&(l=t.events)){b=(b||"").match(C)||[""];for(n=b.length;n--;)if(k=Gb.exec(b[n])||[],r=D=k[1],x=(k[2]||"").split(".").sort(),r){p=d.event.special[r]||{};r=(e?p.delegateType:p.bindType)||r;m=l[r]||[];k=k[2]&&new RegExp("(^|\\.)"+x.join("\\.(?:.*\\.|)")+"(\\.|$)");for(h=g=m.length;g--;)q=m[g],!f&&D!==q.origType||c&&c.guid!==q.guid||k&&!k.test(q.namespace)||e&&e!==q.selector&&("**"!==e||!q.selector)||(m.splice(g,1),q.selector&&m.delegateCount--,p.remove&&p.remove.call(a,q));h&&!m.length&& -(p.teardown&&!1!==p.teardown.call(a,x,t.handle)||d.removeEvent(a,r,t.handle),delete l[r])}else for(r in l)d.event.remove(a,r+b[n],c,e,!0);d.isEmptyObject(l)&&v.remove(a,"handle events")}},dispatch:function(a){var b=d.event.fix(a),c,e,f,g,h,k=Array(arguments.length);e=(v.get(this,"events")||{})[b.type]||[];var l=d.event.special[b.type]||{};k[0]=b;for(c=1;c\x20\t\r\n\f]*)[^>]*)\/>/gi,oc=/\s*$/g;d.extend({htmlPrefilter:function(a){return a.replace(nc,"<$1>")},clone:function(a,b,c){var e,f,g,h,k=a.cloneNode(!0),l=d.contains(a.ownerDocument,a);if(!(x.noCloneChecked|| -1!==a.nodeType&&11!==a.nodeType||d.isXMLDoc(a)))for(h=H(k),g=H(a),e=0,f=g.length;ed.inArray(this,a)&&(d.cleanData(H(this)),c&&c.replaceChild(b,this))},a)}});d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){d.fn[a]=function(a){for(var c=[],f=d(a),g=f.length-1,h=0;h<=g;h++)a=h===g?this:this.clone(!0),d(f[h])[b](a),Sa.apply(c,a.get());return this.pushStack(c)}}); -var jb=/^margin/,Na=new RegExp("^("+Db+")(?!px)[a-z%]+$","i"),Ca=function(a){var b=a.ownerDocument.defaultView;b&&b.opener||(b=p);return b.getComputedStyle(a)};(function(){function a(){if(h){h.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%";h.innerHTML="";Ka.appendChild(g);var a=p.getComputedStyle(h);b="1%"!==a.top;f="2px"===a.marginLeft;c="4px"===a.width;h.style.marginRight="50%";e="4px"===a.marginRight;Ka.removeChild(g);h= -null}}var b,c,e,f,g=r.createElement("div"),h=r.createElement("div");h.style&&(h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",x.clearCloneStyle="content-box"===h.style.backgroundClip,g.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",g.appendChild(h),d.extend(x,{pixelPosition:function(){a();return b},boxSizingReliable:function(){a();return c},pixelMarginRight:function(){a();return e},reliableMarginLeft:function(){a(); -return f}}))})();var pc=/^(none|table(?!-c[ea]).+)/,Hb=/^--/,qc={position:"absolute",visibility:"hidden",display:"block"},Ib={letterSpacing:"0",fontWeight:"400"},nb=["Webkit","Moz","ms"],mb=r.createElement("div").style;d.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=ta(a,"opacity");return""===c?"1":c}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"}, -style:function(a,b,c,e){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var f,g,h,k=d.camelCase(b),l=Hb.test(b),n=a.style;l||(b=lb(k));h=d.cssHooks[b]||d.cssHooks[k];if(void 0!==c)g=typeof c,"string"===g&&(f=ra.exec(c))&&f[1]&&(c=$a(a,b,f),g="number"),null!=c&&c===c&&("number"===g&&(c+=f&&f[3]||(d.cssNumber[k]?"":"px")),x.clearCloneStyle||""!==c||0!==b.indexOf("background")||(n[b]="inherit"),h&&"set"in h&&void 0===(c=h.set(a,c,e))||(l?n.setProperty(b,c):n[b]=c));else return h&&"get"in h&&void 0!== -(f=h.get(a,!1,e))?f:n[b]}},css:function(a,b,c,e){var f,g;g=d.camelCase(b);Hb.test(b)||(b=lb(g));(g=d.cssHooks[b]||d.cssHooks[g])&&"get"in g&&(f=g.get(a,!0,c));void 0===f&&(f=ta(a,b,e));"normal"===f&&b in Ib&&(f=Ib[b]);return""===c||c?(a=parseFloat(f),!0===c||isFinite(a)?a||0:f):f}});d.each(["height","width"],function(a,b){d.cssHooks[b]={get:function(a,e,f){if(e)return!pc.test(d.css(a,"display"))||a.getClientRects().length&&a.getBoundingClientRect().width?qb(a,b,f):Eb(a,qc,function(){return qb(a,b, -f)})},set:function(a,e,f){var c,h=f&&Ca(a);(f=f&&pb(a,b,f,"border-box"===d.css(a,"boxSizing",!1,h),h))&&(c=ra.exec(e))&&"px"!==(c[3]||"px")&&(a.style[b]=e,e=d.css(a,b));return ob(a,e,f)}}});d.cssHooks.marginLeft=kb(x.reliableMarginLeft,function(a,b){if(b)return(parseFloat(ta(a,"marginLeft"))||a.getBoundingClientRect().left-Eb(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px"});d.each({margin:"",padding:"",border:"Width"},function(a,b){d.cssHooks[a+b]={expand:function(c){var d= -0,f={};for(c="string"===typeof c?c.split(" "):[c];4>d;d++)f[a+T[d]+b]=c[d]||c[d-2]||c[0];return f}};jb.test(a)||(d.cssHooks[a+b].set=ob)});d.fn.extend({css:function(a,b){return U(this,function(a,b,f){var c,e={},k=0;if(Array.isArray(b)){f=Ca(a);for(c=b.length;ke.indexOf(" "+g+" ")&&(e+=g+" ");e=W(e);f!==e&&c.setAttribute("class",e)}return this},removeClass:function(a){var b,c,e,f,g,h,k=0;if(d.isFunction(a))return this.each(function(b){d(this).removeClass(a.call(this,b,aa(this)))});if(!arguments.length)return this.attr("class","");if("string"===typeof a&&a)for(b=a.match(C)||[];c=this[k++];)if(f=aa(c),e=1===c.nodeType&&" "+W(f)+" "){for(h=0;g=b[h++];)for(;-1e?h:f?e:0;at.indexOf(":")&&"on"+t,a=a[d.expando]?a:new d.Event(t,"object"===typeof a&& -a),a.isTrigger=e?2:3,a.namespace=n.join("."),a.rnamespace=a.namespace?new RegExp("(^|\\.)"+n.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,a.result=void 0,a.target||(a.target=c),b=null==b?[a]:d.makeArray(b,[a]),n=d.event.special[t]||{},e||!n.trigger||!1!==n.trigger.apply(c,b))){if(!e&&!n.noBubble&&!d.isWindow(c)){h=n.delegateType||t;Kb.test(h+t)||(g=g.parentNode);for(;g;g=g.parentNode)q.push(g),f=g;f===(c.ownerDocument||r)&&q.push(f.defaultView||f.parentWindow||p)}for(f=0;(g=q[f++])&&!a.isPropagationStopped();)a.type= -1a||304===a;if(c){r=m;for(var C=u,M,z,L,G,I=r.contents,F=r.dataTypes;"*"===F[0];)F.shift(),void 0===M&&(M=r.mimeType||C.getResponseHeader("Content-Type"));if(M)for(z in I)if(I[z]&&I[z].test(M)){F.unshift(z);break}if(F[0]in c)L=F[0];else{for(z in c){if(!F[0]||r.converters[z+" "+F[0]]){L=z;break}G|| -(G=z)}L=L||G}L?(L!==F[0]&&F.unshift(L),r=c[L]):r=void 0}a:{c=m;M=r;z=u;L=h;var H,A,B,C={},I=c.dataTypes.slice();if(I[1])for(A in c.converters)C[A.toLowerCase()]=c.converters[A];for(G=I.shift();G;)if(c.responseFields[G]&&(z[c.responseFields[G]]=M),!B&&L&&c.dataFilter&&(M=c.dataFilter(M,c.dataType)),B=G,G=I.shift())if("*"===G)G=B;else if("*"!==B&&B!==G){A=C[B+" "+G]||C["* "+G];if(!A)for(H in C)if(r=H.split(" "),r[1]===G&&(A=C[B+" "+r[0]]||C["* "+r[0]])){!0===A?A=C[H]:!0!==C[H]&&(G=r[0],I.unshift(r[1])); -break}if(!0!==A)if(A&&c["throws"])M=A(M);else try{M=A(M)}catch(S){r={state:"parsererror",error:A?S:"No conversion from "+B+" to "+G};break a}}r={state:"success",data:M}}if(h)m.ifModified&&((w=u.getResponseHeader("Last-Modified"))&&(d.lastModified[f]=w),(w=u.getResponseHeader("etag"))&&(d.etag[f]=w)),204===a||"HEAD"===m.type?w="nocontent":304===a?w="notmodified":(w=r.state,l=r.data,t=r.error,h=!t);else if(t=w,a||!w)w="error",0>a&&(a=0);u.status=a;u.statusText=(b||w)+"";h?D.resolveWith(v,[l,w,u]):D.rejectWith(v, -[u,w,t]);u.statusCode(J);J=void 0;q&&x.trigger(h?"ajaxSuccess":"ajaxError",[u,m,h?l:t]);K.fireWith(v,[u,w]);q&&(x.trigger("ajaxComplete",[u,m]),--d.active||d.event.trigger("ajaxStop"))}}"object"===typeof a&&(b=a,a=void 0);b=b||{};var e,f,g,h,k,l,n,q,t,m=d.ajaxSetup({},b),v=m.context||m,x=m.context&&(v.nodeType||v.jquery)?d(v):d.event,D=d.Deferred(),K=d.Callbacks("once memory"),J=m.statusCode||{},F={},H={},A="canceled",u={readyState:0,getResponseHeader:function(a){var b;if(n){if(!h)for(h={};b=Bc.exec(g);)h[b[1].toLowerCase()]= -b[2];b=h[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return n?g:null},setRequestHeader:function(a,b){null==n&&(a=H[a.toLowerCase()]=H[a.toLowerCase()]||a,F[a]=b);return this},overrideMimeType:function(a){null==n&&(m.mimeType=a);return this},statusCode:function(a){var b;if(a)if(n)u.always(a[u.status]);else for(b in a)J[b]=[J[b],a[b]];return this},abort:function(a){a=a||A;e&&e.abort(a);c(0,a);return this}};D.promise(u);m.url=((a||m.url||wa.href)+"").replace(Dc,wa.protocol+ -"//");m.type=b.method||b.type||m.method||m.type;m.dataTypes=(m.dataType||"*").toLowerCase().match(C)||[""];if(null==m.crossDomain){l=r.createElement("a");try{l.href=m.url,l.href=l.href,m.crossDomain=Va.protocol+"//"+Va.host!==l.protocol+"//"+l.host}catch(w){m.crossDomain=!0}}m.data&&m.processData&&"string"!==typeof m.data&&(m.data=d.param(m.data,m.traditional));ub(Nb,m,b,u);if(n)return u;(q=d.event&&m.global)&&0===d.active++&&d.event.trigger("ajaxStart");m.type=m.type.toUpperCase();m.hasContent=!Cc.test(m.type); -f=m.url.replace(zc,"");m.hasContent?m.data&&m.processData&&0===(m.contentType||"").indexOf("application/x-www-form-urlencoded")&&(m.data=m.data.replace(yc,"+")):(l=m.url.slice(f.length),m.data&&(f+=(Ua.test(f)?"&":"?")+m.data,delete m.data),!1===m.cache&&(f=f.replace(Ac,"$1"),l=(Ua.test(f)?"&":"?")+"_="+Lb++ +l),m.url=f+l);m.ifModified&&(d.lastModified[f]&&u.setRequestHeader("If-Modified-Since",d.lastModified[f]),d.etag[f]&&u.setRequestHeader("If-None-Match",d.etag[f]));(m.data&&m.hasContent&&!1!== -m.contentType||b.contentType)&&u.setRequestHeader("Content-Type",m.contentType);u.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+Ob+"; q=0.01":""):m.accepts["*"]);for(t in m.headers)u.setRequestHeader(t,m.headers[t]);if(m.beforeSend&&(!1===m.beforeSend.call(v,u,m)||n))return u.abort();A="abort";K.add(m.complete);u.done(m.success);u.fail(m.error);if(e=ub(Qa,m,b,u)){u.readyState=1;q&&x.trigger("ajaxSend",[u,m]);if(n)return u; -m.async&&0").prop({charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove();c=null;a&&f("error"===a.type?404:200,a.type)});r.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Pb=[],Wa=/(=)\?(?=&|$)|\?\?/;d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Pb.pop()||d.expando+"_"+Lb++;this[a]=!0;return a}});d.ajaxPrefilter("json jsonp",function(a,b,c){var e,f,g,h=!1!==a.jsonp&&(Wa.test(a.url)?"url": -"string"===typeof a.data&&0===(a.contentType||"").indexOf("application/x-www-form-urlencoded")&&Wa.test(a.data)&&"data");if(h||"jsonp"===a.dataTypes[0])return e=a.jsonpCallback=d.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,h?a[h]=a[h].replace(Wa,"$1"+e):!1!==a.jsonp&&(a.url+=(Ua.test(a.url)?"&":"?")+a.jsonp+"="+e),a.converters["script json"]=function(){g||d.error(e+" was not called");return g[0]},a.dataTypes[0]="json",f=p[e],p[e]=function(){g=arguments},c.always(function(){void 0=== -f?d(p).removeProp(e):p[e]=f;a[e]&&(a.jsonpCallback=b.jsonpCallback,Pb.push(e));g&&d.isFunction(f)&&f(g[0]);g=f=void 0}),"script"});x.createHTMLDocument=function(){var a=r.implementation.createHTMLDocument("").body;a.innerHTML="
";return 2===a.childNodes.length}();d.parseHTML=function(a,b,c){if("string"!==typeof a)return[];"boolean"===typeof b&&(c=b,b=!1);var e;b||(x.createHTMLDocument?(b=r.implementation.createHTMLDocument(""),e=b.createElement("base"),e.href=r.location.href, -b.head.appendChild(e)):b=r);e=Bb.exec(a);c=!c&&[];if(e)return[b.createElement(e[1])];e=bb([a],b,c);c&&c.length&&d(c).remove();return d.merge([],e.childNodes)};d.fn.load=function(a,b,c){var e,f,g,h=this,k=a.indexOf(" ");-1").append(d.parseHTML(a)).find(e):a)}).always(c&&function(a,b){h.each(function(){c.apply(this, -g||[a.responseText,b,a])})});return this};d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){d.fn[b]=function(a){return this.on(b,a)}});d.expr.pseudos.animated=function(a){return d.grep(d.timers,function(b){return a===b.elem}).length};d.offset={setOffset:function(a,b,c){var e,f,g,h=d.css(a,"position"),k=d(a),l={};"static"===h&&(a.style.position="relative");g=k.offset();f=d.css(a,"top");e=d.css(a,"left");("absolute"===h||"fixed"===h)&&-1<(f+e).indexOf("auto")? -(e=k.position(),f=e.top,e=e.left):(f=parseFloat(f)||0,e=parseFloat(e)||0);d.isFunction(b)&&(b=b.call(a,c,d.extend({},g)));null!=b.top&&(l.top=b.top-g.top+f);null!=b.left&&(l.left=b.left-g.left+e);"using"in b?b.using.call(a,l):k.css(l)}};d.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){d.offset.setOffset(this,a,b)});var b,c,e;if(c=this[0]){if(!c.getClientRects().length)return{top:0,left:0};e=c.getBoundingClientRect();b=c.ownerDocument;c=b.documentElement; -b=b.defaultView;return{top:e.top+b.pageYOffset-c.clientTop,left:e.left+b.pageXOffset-c.clientLeft}}},position:function(){if(this[0]){var a,b,c=this[0],e={top:0,left:0};"fixed"===d.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),D(a[0],"html")||(e=a.offset()),e={top:e.top+d.css(a[0],"borderTopWidth",!0),left:e.left+d.css(a[0],"borderLeftWidth",!0)});return{top:b.top-e.top-d.css(c,"marginTop",!0),left:b.left-e.left-d.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a= -this.offsetParent;a&&"static"===d.css(a,"position");)a=a.offsetParent;return a||Ka})}});d.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c="pageYOffset"===b;d.fn[a]=function(e){return U(this,function(a,e,h){var f;d.isWindow(a)?f=a:9===a.nodeType&&(f=a.defaultView);if(void 0===h)return f?f[b]:a[e];f?f.scrollTo(c?f.pageXOffset:h,c?h:f.pageYOffset):a[e]=h},a,e,arguments.length)}});d.each(["top","left"],function(a,b){d.cssHooks[b]=kb(x.pixelPosition,function(a,e){if(e)return e= -ta(a,b),Na.test(e)?d(a).position()[b]+"px":e})});d.each({Height:"height",Width:"width"},function(a,b){d.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,e){d.fn[e]=function(f,g){var h=arguments.length&&(c||"boolean"!==typeof f),k=c||(!0===f||!0===g?"margin":"border");return U(this,function(b,c,f){return d.isWindow(b)?0===e.indexOf("outer")?b["inner"+a]:b.document.documentElement["client"+a]:9===b.nodeType?(c=b.documentElement,Math.max(b.body["scroll"+a],c["scroll"+a],b.body["offset"+a], -c["offset"+a],c["client"+a])):void 0===f?d.css(b,c,k):d.style(b,c,f,k)},b,h?f:void 0,h)}})});d.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});d.holdReady=function(a){a?d.readyWait++:d.ready(!0)};d.isArray=Array.isArray;d.parseJSON=JSON.parse;d.nodeName=D;"function"===typeof define&&define.amd&& -define("jquery",[],function(){return d});var Fc=p.jQuery,Gc=p.$;d.noConflict=function(a){p.$===d&&(p.$=Gc);a&&p.jQuery===d&&(p.jQuery=Fc);return d};t||(p.jQuery=p.$=d);return d}); +var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(n,C,w){n instanceof String&&(n=String(n));for(var I=n.length,t=0;ttbody",a)[0]||a:a}function Ub(a){a.type=(null!==a.getAttribute("type"))+"/"+a.type;return a}function Vb(a){var b=Wb.exec(a.type);b?a.type=b[1]:a.removeAttribute("type");return a}function ib(a,b){var d,e;if(1===b.nodeType){if(q.hasData(a)){var f=q.access(a);var g=q.set(b,f);if(f=f.events)for(e in delete g.handle, +g.events={},f)for(g=0,d=f[e].length;gb;b+=2)"margin"===d&&(g+=c.css(a,d+ba[b],!0,f)),e?("content"===d&&(g-=c.css(a,"padding"+ba[b],!0,f)),"margin"!==d&&(g-=c.css(a,"border"+ba[b]+"Width",!0,f))):(g+=c.css(a,"padding"+ba[b],!0,f),"padding"!== +d&&(g+=c.css(a,"border"+ba[b]+"Width",!0,f)));return g}function sb(a,b,d){var e=Ga(a),f=ra(a,b,e),g="border-box"===c.css(a,"boxSizing",!1,e);if(Pa.test(f))return f;var h=g&&(y.boxSizingReliable()||f===a.style[b]);"auto"===f&&(f=a["offset"+b[0].toUpperCase()+b.slice(1)]);f=parseFloat(f)||0;return f+rb(a,b,d||(g?"border":"content"),h,e)+"px"}function E(a,b,d,c,f){return new E.prototype.init(a,b,d,c,f)}function Qa(){Ha&&(!1===p.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(Qa):n.setTimeout(Qa, +c.fx.interval),c.fx.tick())}function tb(){n.setTimeout(function(){sa=void 0});return sa=c.now()}function Ia(a,b){var d=0,c={height:a};for(b=b?1:0;4>d;d+=2-b){var f=ba[d];c["margin"+f]=c["padding"+f]=a}b&&(c.opacity=c.width=a);return c}function ub(a,b,d){for(var c,f=(S.tweeners[b]||[]).concat(S.tweeners["*"]),g=0,h=f.length;gd&&f)return b;f||h.notifyWith(a,[k,1,0]);h.resolveWith(a,[k]);return!1},k=h.promise({elem:a,props:c.extend({}, +b),opts:c.extend(!0,{specialEasing:{},easing:c.easing._default},d),originalProperties:b,originalOptions:d,startTime:sa||tb(),duration:d.duration,tweens:[],createTween:function(b,d){b=c.Tween(a,k.opts,b,d,k.opts.specialEasing[b]||k.opts.easing);k.tweens.push(b);return b},stop:function(b){var d=0,c=b?k.tweens.length:0;if(e)return this;for(e=!0;da?this[a+this.length]:this[a]},pushStack:function(a){a=c.merge(this.constructor(),a);a.prevObject=this;return a},each:function(a){return c.each(this,a)},map:function(a){return this.pushStack(c.map(this,function(b, +d){return a.call(b,d,b)}))},slice:function(){return this.pushStack(fa.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length;a=+a+(0>a?b:0);return this.pushStack(0<=a&&aG.cacheLength&&delete a[b.shift()];return a[c+" "]=d}var b=[];return a}function e(a){a[A]=!0;return a}function f(a){var b=z.createElement("fieldset");try{return!!a(b)}catch(v){return!1}finally{b.parentNode&&b.parentNode.removeChild(b)}} +function g(a,b){a=a.split("|");for(var c=a.length;c--;)G.attrHandle[a[c]]=b}function h(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)for(;c=c.nextSibling;)if(c===b)return-1;return a?1:-1}function l(a){return function(b){return"input"===b.nodeName.toLowerCase()&&b.type===a}}function k(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function m(a){return function(b){return"form"in b?b.parentNode&& +!1===b.disabled?"label"in b?"label"in b.parentNode?b.parentNode.disabled===a:b.disabled===a:b.isDisabled===a||b.isDisabled!==!a&&za(b)===a:b.disabled===a:"label"in b?b.disabled===a:!1}}function n(a){return e(function(b){b=+b;return e(function(c,d){for(var e,f=a([],c.length,b),g=f.length;g--;)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function x(a){return a&&"undefined"!==typeof a.getElementsByTagName&&a}function u(){}function q(a){for(var b=0,c=a.length,d="";b+~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/,la=/=[\x20\t\r\n\f]*([^\]'"]*?)[\x20\t\r\n\f]*\]/g,ma=/:((?:\\.|[\w-]|[^\x00-\xa0])+)(?:\((('((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)")|((?:\\.|[^\\()[\]]|\[[\x20\t\r\n\f]*((?:\\.|[\w-]|[^\x00-\xa0])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\.|[\w-]|[^\x00-\xa0])+))|)[\x20\t\r\n\f]*\])*)|.*)\)|)/, +pa=/^(?:\\.|[\w-]|[^\x00-\xa0])+$/,Z={ID:/^#((?:\\.|[\w-]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[\w-]|[^\x00-\xa0])+)/,TAG:/^((?:\\.|[\w-]|[^\x00-\xa0])+|[*])/,ATTR:/^\[[\x20\t\r\n\f]*((?:\\.|[\w-]|[^\x00-\xa0])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\.|[\w-]|[^\x00-\xa0])+))|)[\x20\t\r\n\f]*\]/,PSEUDO:/^:((?:\\.|[\w-]|[^\x00-\xa0])+)(?:\((('((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)")|((?:\\.|[^\\()[\]]|\[[\x20\t\r\n\f]*((?:\\.|[\w-]|[^\x00-\xa0])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\.|[\w-]|[^\x00-\xa0])+))|)[\x20\t\r\n\f]*\])*)|.*)\)|)/, +CHILD:/^:(only|first|last|nth|nth-last)-(child|of-type)(?:\([\x20\t\r\n\f]*(even|odd|(([+-]|)(\d*)n|)[\x20\t\r\n\f]*(?:([+-]|)[\x20\t\r\n\f]*(\d+)|))[\x20\t\r\n\f]*\)|)/i,bool:/^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$/i,needsContext:/^[\x20\t\r\n\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\([\x20\t\r\n\f]*((?:-\d)?\d*)[\x20\t\r\n\f]*\)|)(?=[^-]|$)/i},qa=/^(?:input|select|textarea|button)$/i,sa=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/, +va=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,da=/[+~]/,ia=/\\([\da-f]{1,6}[\x20\t\r\n\f]?|([\x20\t\r\n\f])|.)/ig,ja=function(a,b,c){a="0x"+b-65536;return a!==a||c?b:0>a?String.fromCharCode(a+65536):String.fromCharCode(a>>10|55296,a&1023|56320)},oa=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ra=function(a,b){return b?"\x00"===a?"\ufffd":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a},ua=function(){xa()},za=Fa(function(a){return!0===a.disabled&&("form"in a||"label"in a)},{dir:"parentNode", +next:"legend"});try{ta.apply(D=ba.call(V.childNodes),V.childNodes),D[V.childNodes.length].nodeType}catch(F){ta={apply:D.length?function(a,b){aa.apply(a,ba.call(b))}:function(a,b){for(var c=a.length,d=0;a[c++]=b[d++];);a.length=c-1}}}var J=b.support={};var Aa=b.isXML=function(a){return(a=a&&(a.ownerDocument||a).documentElement)?"HTML"!==a.nodeName:!1};var xa=b.setDocument=function(a){var b;a=a?a.ownerDocument||a:V;if(a===z||9!==a.nodeType||!a.documentElement)return z;z=a;X=z.documentElement;W=!Aa(z); +V!==z&&(b=z.defaultView)&&b.top!==b&&(b.addEventListener?b.addEventListener("unload",ua,!1):b.attachEvent&&b.attachEvent("onunload",ua));J.attributes=f(function(a){a.className="i";return!a.getAttribute("className")});J.getElementsByTagName=f(function(a){a.appendChild(z.createComment(""));return!a.getElementsByTagName("*").length});J.getElementsByClassName=Y.test(z.getElementsByClassName);J.getById=f(function(a){X.appendChild(a).id=A;return!z.getElementsByName||!z.getElementsByName(A).length});J.getById? +(G.filter.ID=function(a){var b=a.replace(ia,ja);return function(a){return a.getAttribute("id")===b}},G.find.ID=function(a,b){if("undefined"!==typeof b.getElementById&&W)return(a=b.getElementById(a))?[a]:[]}):(G.filter.ID=function(a){var b=a.replace(ia,ja);return function(a){return(a="undefined"!==typeof a.getAttributeNode&&a.getAttributeNode("id"))&&a.value===b}},G.find.ID=function(a,b){if("undefined"!==typeof b.getElementById&&W){var c,d=b.getElementById(a);if(d){if((c=d.getAttributeNode("id"))&& +c.value===a)return[d];var e=b.getElementsByName(a);for(b=0;d=e[b++];)if((c=d.getAttributeNode("id"))&&c.value===a)return[d]}return[]}});G.find.TAG=J.getElementsByTagName?function(a,b){if("undefined"!==typeof b.getElementsByTagName)return b.getElementsByTagName(a);if(J.qsa)return b.querySelectorAll(a)}:function(a,b){var c=[],d=0;b=b.getElementsByTagName(a);if("*"===a){for(;a=b[d++];)1===a.nodeType&&c.push(a);return c}return b};G.find.CLASS=J.getElementsByClassName&&function(a,b){if("undefined"!==typeof b.getElementsByClassName&& +W)return b.getElementsByClassName(a)};ya=[];Q=[];if(J.qsa=Y.test(z.querySelectorAll))f(function(a){X.appendChild(a).innerHTML="";a.querySelectorAll("[msallowcapture^='']").length&&Q.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")");a.querySelectorAll("[selected]").length||Q.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)"); +a.querySelectorAll("[id~="+A+"-]").length||Q.push("~=");a.querySelectorAll(":checked").length||Q.push(":checked");a.querySelectorAll("a#"+A+"+*").length||Q.push(".#.+[+~]")}),f(function(a){a.innerHTML="";var b=z.createElement("input");b.setAttribute("type","hidden");a.appendChild(b).setAttribute("name","D");a.querySelectorAll("[name=d]").length&&Q.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?=");2!==a.querySelectorAll(":enabled").length&& +Q.push(":enabled",":disabled");X.appendChild(a).disabled=!0;2!==a.querySelectorAll(":disabled").length&&Q.push(":enabled",":disabled");a.querySelectorAll("*,:x");Q.push(",.*:")});(J.matchesSelector=Y.test(C=X.matches||X.webkitMatchesSelector||X.mozMatchesSelector||X.oMatchesSelector||X.msMatchesSelector))&&f(function(a){J.disconnectedMatch=C.call(a,"*");C.call(a,"[s!='']:x");ya.push("!=",":((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\.|[\\w-]|[^\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)")}); +Q=Q.length&&new RegExp(Q.join("|"));ya=ya.length&&new RegExp(ya.join("|"));w=(b=Y.test(X.compareDocumentPosition))||Y.test(X.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a;b=b&&b.parentNode;return a===b||!!(b&&1===b.nodeType&&(c.contains?c.contains(b):a.compareDocumentPosition&&a.compareDocumentPosition(b)&16))}:function(a,b){if(b)for(;b=b.parentNode;)if(b===a)return!0;return!1};I=b?function(a,b){if(a===b)return Da=!0,0;var c=!a.compareDocumentPosition-!b.compareDocumentPosition; +if(c)return c;c=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1;return c&1||!J.sortDetached&&b.compareDocumentPosition(a)===c?a===z||a.ownerDocument===V&&w(V,a)?-1:b===z||b.ownerDocument===V&&w(V,b)?1:T?L(T,a)-L(T,b):0:c&4?-1:1}:function(a,b){if(a===b)return Da=!0,0;var c=0,d=a.parentNode,e=b.parentNode,f=[a],g=[b];if(!d||!e)return a===z?-1:b===z?1:d?-1:e?1:T?L(T,a)-L(T,b):0;if(d===e)return h(a,b);for(;a=a.parentNode;)f.unshift(a);for(a=b;a=a.parentNode;)g.unshift(a);for(;f[c]=== +g[c];)c++;return c?h(f[c],g[c]):f[c]===V?-1:g[c]===V?1:0};return z};b.matches=function(a,c){return b(a,null,null,c)};b.matchesSelector=function(a,c){(a.ownerDocument||a)!==z&&xa(a);c=c.replace(la,"='$1']");if(!(!J.matchesSelector||!W||E[c+" "]||ya&&ya.test(c)||Q&&Q.test(c)))try{var d=C.call(a,c);if(d||J.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(P){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0}, +"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){a[1]=a[1].replace(ia,ja);a[3]=(a[3]||a[4]||a[5]||"").replace(ia,ja);"~="===a[2]&&(a[3]=" "+a[3]+" ");return a.slice(0,4)},CHILD:function(a){a[1]=a[1].toLowerCase();"nth"===a[1].slice(0,3)?(a[3]||b.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&b.error(a[0]);return a},PSEUDO:function(a){var b,c=!a[6]&&a[2];if(Z.CHILD.test(a[0]))return null;a[3]?a[2]=a[4]||a[5]||"":c&&ma.test(c)&& +(b=ca(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b));return a.slice(0,3)}},filter:{TAG:function(a){var b=a.replace(ia,ja).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=H[a+" "];return b||(b=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+a+"([\\x20\\t\\r\\n\\f]|$)"),H(a,function(a){return b.test("string"===typeof a.className&&a.className||"undefined"!==typeof a.getAttribute&&a.getAttribute("class")|| +"")}))},ATTR:function(a,c,d){return function(e){e=b.attr(e,a);if(null==e)return"!="===c;if(!c)return!0;e+="";return"="===c?e===d:"!="===c?e!==d:"^="===c?d&&0===e.indexOf(d):"*="===c?d&&-1a.nodeType)return!1;return!0},parent:function(a){return!G.pseudos.empty(a)},header:function(a){return sa.test(a.nodeName)},input:function(a){return qa.test(a.nodeName)}, +button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:n(function(){return[0]}),last:n(function(a,b){return[b-1]}),eq:n(function(a,b,c){return[0>c?c+b:c]}),even:n(function(a,b){for(var c=0;cc?c+b:c;0<=--b;)a.push(b);return a}),gt:n(function(a,b,c){for(c=0>c?c+b:c;++c"; +a.firstChild.setAttribute("value","");return""===a.firstChild.getAttribute("value")})||g("value",function(a,b,c){if(!c&&"input"===a.nodeName.toLowerCase())return a.defaultValue});f(function(a){return null==a.getAttribute("disabled")})||g("checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",function(a,b,c){var d;if(!c)return!0===a[b]?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null});return b}(n);c.find=ka;c.expr= +ka.selectors;c.expr[":"]=c.expr.pseudos;c.uniqueSort=c.unique=ka.uniqueSort;c.text=ka.getText;c.isXMLDoc=ka.isXML;c.contains=ka.contains;c.escapeSelector=ka.escape;var Y=function(a,b,d){for(var e=[],f=void 0!==d;(a=a[b])&&9!==a.nodeType;)if(1===a.nodeType){if(f&&c(a).is(d))break;e.push(a)}return e},Ab=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},Bb=c.expr.match.needsContext,Cb=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,Pb=/^.[^:#\[\.,]*$/; +c.filter=function(a,b,d){var e=b[0];d&&(a=":not("+a+")");return 1===b.length&&1===e.nodeType?c.find.matchesSelector(e,a)?[e]:[]:c.find.matches(a,c.grep(b,function(a){return 1===a.nodeType}))};c.fn.extend({find:function(a){var b,d=this.length,e=this;if("string"!==typeof a)return this.pushStack(c(a).filter(function(){for(b=0;b)[^>]*|#([\w-]+))$/;(c.fn.init=function(a,b,d){if(!a)return this;d=d||jc;if("string"===typeof a){var e="<"===a[0]&&">"===a[a.length-1]&&3<=a.length?[null,a,null]:ic.exec(a);if(!e||!e[1]&&b)return!b||b.jquery?(b||d).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof c?b[0]:b,c.merge(this,c.parseHTML(e[1],b&& +b.nodeType?b.ownerDocument||b:p,!0)),Cb.test(e[1])&&c.isPlainObject(b))for(e in b)if(c.isFunction(this[e]))this[e](b[e]);else this.attr(e,b[e])}else if(a=p.getElementById(e[2]))this[0]=a,this.length=1;return this}return a.nodeType?(this[0]=a,this.length=1,this):c.isFunction(a)?void 0!==d.ready?d.ready(a):a(c):c.makeArray(a,this)}).prototype=c.fn;var jc=c(p);var kc=/^(?:parents|prev(?:Until|All))/,lc={children:!0,contents:!0,next:!0,prev:!0};c.fn.extend({has:function(a){var b=c(a,this),d=b.length; +return this.filter(function(){for(var a=0;ad.nodeType&&(h?-1=g&&(d!==na&&(h=void 0,l=[B]),b.rejectWith(h, +l))}};a?m():(c.Deferred.getStackHook&&(m.stackTrace=c.Deferred.getStackHook()),n.setTimeout(m))}}var g=0;return c.Deferred(function(g){b[0][3].add(f(0,g,c.isFunction(e)?e:ma,g.notifyWith));b[1][3].add(f(0,g,c.isFunction(a)?a:ma));b[2][3].add(f(0,g,c.isFunction(d)?d:na))}).promise()},promise:function(a){return null!=a?c.extend(a,e):e}},f={};c.each(b,function(a,c){var g=c[2],h=c[5];e[c[1]]=g.add;h&&g.add(function(){d=h},b[3-a][2].disable,b[0][2].lock);g.add(c[3].fire);f[c[0]]=function(){f[c[0]+"With"](this=== +f?void 0:this,arguments);return this};f[c[0]+"With"]=g.fireWith});e.promise(f);a&&a.call(f,f);return f},when:function(a){var b=arguments.length,d=b,e=Array(d),f=fa.call(arguments),g=c.Deferred(),h=function(a){return function(c){e[a]=this;f[a]=1=b&&($a(a,g.done(h(d)).resolve,g.reject,!b),"pending"===g.state()||c.isFunction(f[d]&&f[d].then)))return g.then();for(;d--;)$a(f[d],h(d),g.reject);return g.promise()}});var mc=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/; +c.Deferred.exceptionHook=function(a,b){n.console&&n.console.warn&&a&&mc.test(a.name)&&n.console.warn("jQuery.Deferred exception: "+a.message,a.stack,b)};c.readyException=function(a){n.setTimeout(function(){throw a;})};var Va=c.Deferred();c.fn.ready=function(a){Va.then(a).catch(function(a){c.readyException(a)});return this};c.extend({isReady:!1,readyWait:1,ready:function(a){(!0===a?--c.readyWait:c.isReady)||(c.isReady=!0,!0!==a&&0<--c.readyWait||Va.resolveWith(p,[c]))}});c.ready.then=Va.then;"complete"=== +p.readyState||"loading"!==p.readyState&&!p.documentElement.doScroll?n.setTimeout(c.ready):(p.addEventListener("DOMContentLoaded",ca),n.addEventListener("load",ca));var aa=function(a,b,d,e,f,g,h){var l=0,k=a.length,m=null==d;if("object"===c.type(d))for(l in f=!0,d)aa(a,b,l,d[l],!0,g,h);else if(void 0!==e&&(f=!0,c.isFunction(e)||(h=!0),m&&(h?(b.call(a,e),b=null):(m=b,b=function(a,b,d){return m.call(c(a),d)})),b))for(;l\x20\t\r\n\f]+)/i,fb=/^$|\/(?:java|ecma)script/i,D={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3, +"","
"],_default:[0,"",""]};D.optgroup=D.option;D.tbody=D.tfoot=D.colgroup=D.caption=D.thead;D.th=D.td;var Tb=/<|&#?\w+;/;(function(){var a=p.createDocumentFragment().appendChild(p.createElement("div")),b=p.createElement("input");b.setAttribute("type","radio");b.setAttribute("checked","checked");b.setAttribute("name","t");a.appendChild(b);y.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked;a.innerHTML="";y.noCloneChecked=!!a.cloneNode(!0).lastChild.defaultValue})(); +var Ma=p.documentElement,nc=/^key/,oc=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Gb=/^([^.]*)(?:\.(.+)|)/;c.event={global:{},add:function(a,b,d,e,f){var g,h,l,k,m;if(l=q.get(a)){if(d.handler){var n=d;d=n.handler;f=n.selector}f&&c.find.matchesSelector(Ma,f);d.guid||(d.guid=c.guid++);(h=l.events)||(h=l.events={});(g=l.handle)||(g=l.handle=function(b){return"undefined"!==typeof c&&c.event.triggered!==b.type?c.event.dispatch.apply(a,arguments):void 0});b=(b||"").match(R)||[""];for(l=b.length;l--;){var x= +Gb.exec(b[l])||[];var u=k=x[1];var p=(x[2]||"").split(".").sort();u&&(x=c.event.special[u]||{},u=(f?x.delegateType:x.bindType)||u,x=c.event.special[u]||{},k=c.extend({type:u,origType:k,data:e,handler:d,guid:d.guid,selector:f,needsContext:f&&c.expr.match.needsContext.test(f),namespace:p.join(".")},n),(m=h[u])||(m=h[u]=[],m.delegateCount=0,x.setup&&!1!==x.setup.call(a,e,p,g)||a.addEventListener&&a.addEventListener(u,g)),x.add&&(x.add.call(a,k),k.handler.guid||(k.handler.guid=d.guid)),f?m.splice(m.delegateCount++, +0,k):m.push(k),c.event.global[u]=!0)}}},remove:function(a,b,d,e,f){var g,h,l,k,m,n=q.hasData(a)&&q.get(a);if(n&&(l=n.events)){b=(b||"").match(R)||[""];for(k=b.length;k--;){var x=Gb.exec(b[k])||[];var u=m=x[1];var p=(x[2]||"").split(".").sort();if(u){var y=c.event.special[u]||{};u=(e?y.delegateType:y.bindType)||u;var t=l[u]||[];x=x[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)");for(h=g=t.length;g--;){var w=t[g];!f&&m!==w.origType||d&&d.guid!==w.guid||x&&!x.test(w.namespace)||e&&e!==w.selector&& +("**"!==e||!w.selector)||(t.splice(g,1),w.selector&&t.delegateCount--,y.remove&&y.remove.call(a,w))}h&&!t.length&&(y.teardown&&!1!==y.teardown.call(a,p,n.handle)||c.removeEvent(a,u,n.handle),delete l[u])}else for(u in l)c.event.remove(a,u+b[k],d,e,!0)}c.isEmptyObject(l)&&q.remove(a,"handle events")}},dispatch:function(a){var b=c.event.fix(a),d,e,f,g=Array(arguments.length);var h=(q.get(this,"events")||{})[b.type]||[];var l=c.event.special[b.type]||{};g[0]=b;for(d=1;d\x20\t\r\n\f]*)[^>]*)\/>/gi,qc=/\s*$/g;c.extend({htmlPrefilter:function(a){return a.replace(pc, +"<$1>")},clone:function(a,b,d){var e,f=a.cloneNode(!0),g=c.contains(a.ownerDocument,a);if(!(y.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||c.isXMLDoc(a))){var h=H(f);var l=H(a);var k=0;for(e=l.length;kc.inArray(this,a)&&(c.cleanData(H(this)),d&&d.replaceChild(b,this))},a)}});c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]= +function(a){for(var d=[],f=c(a),g=f.length-1,h=0;h<=g;h++)a=h===g?this:this.clone(!0),c(f[h])[b](a),Ua.apply(d,a.get());return this.pushStack(d)}});var lb=/^margin/,Pa=new RegExp("^("+Db+")(?!px)[a-z%]+$","i"),Ga=function(a){var b=a.ownerDocument.defaultView;b&&b.opener||(b=n);return b.getComputedStyle(a)};(function(){function a(){if(h){h.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%";h.innerHTML="";Ma.appendChild(g);var a= +n.getComputedStyle(h);b="1%"!==a.top;f="2px"===a.marginLeft;d="4px"===a.width;h.style.marginRight="50%";e="4px"===a.marginRight;Ma.removeChild(g);h=null}}var b,d,e,f,g=p.createElement("div"),h=p.createElement("div");h.style&&(h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===h.style.backgroundClip,g.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",g.appendChild(h),c.extend(y,{pixelPosition:function(){a(); +return b},boxSizingReliable:function(){a();return d},pixelMarginRight:function(){a();return e},reliableMarginLeft:function(){a();return f}}))})();var rc=/^(none|table(?!-c[ea]).+)/,Hb=/^--/,sc={position:"absolute",visibility:"hidden",display:"block"},Ib={letterSpacing:"0",fontWeight:"400"},pb=["Webkit","Moz","ms"],ob=p.createElement("div").style;c.extend({cssHooks:{opacity:{get:function(a,b){if(b)return a=ra(a,"opacity"),""===a?"1":a}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0, +flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(a,b,d,e){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var f,g=c.camelCase(b),h=Hb.test(b),l=a.style;h||(b=nb(g));var k=c.cssHooks[b]||c.cssHooks[g];if(void 0!==d){var m=typeof d;"string"===m&&(f=oa.exec(d))&&f[1]&&(d=bb(a,b,f),m="number");null!=d&&d===d&&("number"===m&&(d+=f&&f[3]||(c.cssNumber[g]?"":"px")),y.clearCloneStyle||""!==d||0!== +b.indexOf("background")||(l[b]="inherit"),k&&"set"in k&&void 0===(d=k.set(a,d,e))||(h?l.setProperty(b,d):l[b]=d))}else return k&&"get"in k&&void 0!==(f=k.get(a,!1,e))?f:l[b]}},css:function(a,b,d,e){var f;var g=c.camelCase(b);Hb.test(b)||(b=nb(g));(g=c.cssHooks[b]||c.cssHooks[g])&&"get"in g&&(f=g.get(a,!0,d));void 0===f&&(f=ra(a,b,e));"normal"===f&&b in Ib&&(f=Ib[b]);return""===d||d?(a=parseFloat(f),!0===d||isFinite(a)?a||0:f):f}});c.each(["height","width"],function(a,b){c.cssHooks[b]={get:function(a, +e,f){if(e)return!rc.test(c.css(a,"display"))||a.getClientRects().length&&a.getBoundingClientRect().width?sb(a,b,f):Eb(a,sc,function(){return sb(a,b,f)})},set:function(a,e,f){var d,h=f&&Ga(a);(f=f&&rb(a,b,f,"border-box"===c.css(a,"boxSizing",!1,h),h))&&(d=oa.exec(e))&&"px"!==(d[3]||"px")&&(a.style[b]=e,e=c.css(a,b));return qb(a,e,f)}}});c.cssHooks.marginLeft=mb(y.reliableMarginLeft,function(a,b){if(b)return(parseFloat(ra(a,"marginLeft"))||a.getBoundingClientRect().left-Eb(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+ +"px"});c.each({margin:"",padding:"",border:"Width"},function(a,b){c.cssHooks[a+b]={expand:function(c){var d=0,f={};for(c="string"===typeof c?c.split(" "):[c];4>d;d++)f[a+ba[d]+b]=c[d]||c[d-2]||c[0];return f}};lb.test(a)||(c.cssHooks[a+b].set=qb)});c.fn.extend({css:function(a,b){return aa(this,function(a,b,f){var d,e={},l=0;if(Array.isArray(b)){f=Ga(a);for(d=b.length;le.indexOf(" "+f+" ")&&(e+=f+" ");e=L(e);l!==e&&d.setAttribute("class",e)}}return this},removeClass:function(a){var b,d,e,f,g,h=0;if(c.isFunction(a))return this.each(function(b){c(this).removeClass(a.call(this,b,ea(this)))}); +if(!arguments.length)return this.attr("class","");if("string"===typeof a&&a)for(b=a.match(R)||[];d=this[h++];){var l=ea(d);if(e=1===d.nodeType&&" "+L(l)+" "){for(g=0;f=b[g++];)for(;-1d?g:e?d:0;al.indexOf(":")&&"on"+l;a=a[c.expando]?a:new c.Event(l,"object"===typeof a&&a);a.isTrigger=e?2:3;a.namespace=k.join(".");a.rnamespace=a.namespace?new RegExp("(^|\\.)"+k.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;a.result=void 0;a.target||(a.target=d);b=null==b?[a]:c.makeArray(b,[a]);k=c.event.special[l]||{};if(e||!k.trigger||!1!==k.trigger.apply(d,b)){if(!e&& +!k.noBubble&&!c.isWindow(d)){var t=k.delegateType||l;Jb.test(t+l)||(m=m.parentNode);for(;m;m=m.parentNode)h.push(m),f=m;f===(d.ownerDocument||p)&&h.push(f.defaultView||f.parentWindow||n)}for(f=0;(m=h[f++])&&!a.isPropagationStopped();)a.type=1a||304===a;if(d){var p=m;for(var x=B,w,z,N,A,C=p.contents,D=p.dataTypes;"*"===D[0];)D.shift(),void 0===w&&(w=p.mimeType||x.getResponseHeader("Content-Type"));if(w)for(z in C)if(C[z]&&C[z].test(w)){D.unshift(z); +break}if(D[0]in d)N=D[0];else{for(z in d){if(!D[0]||p.converters[z+" "+D[0]]){N=z;break}A||(A=z)}N=N||A}N?(N!==D[0]&&D.unshift(N),p=d[N]):p=void 0}a:{d=m;w=p;z=B;N=g;var T;x={};C=d.dataTypes.slice();if(C[1])for(H in d.converters)x[H.toLowerCase()]=d.converters[H];for(A=C.shift();A;){d.responseFields[A]&&(z[d.responseFields[A]]=w);!I&&N&&d.dataFilter&&(w=d.dataFilter(w,d.dataType));var I=A;if(A=C.shift())if("*"===A)A=I;else if("*"!==I&&I!==A){var H=x[I+" "+A]||x["* "+A];if(!H)for(T in x)if(p=T.split(" "), +p[1]===A&&(H=x[I+" "+p[0]]||x["* "+p[0]])){!0===H?H=x[T]:!0!==x[T]&&(A=p[0],C.unshift(p[1]));break}if(!0!==H)if(H&&d.throws)w=H(w);else try{w=H(w)}catch(hc){p={state:"parsererror",error:H?hc:"No conversion from "+I+" to "+A};break a}}}p={state:"success",data:w}}if(g)if(m.ifModified&&((k=B.getResponseHeader("Last-Modified"))&&(c.lastModified[E]=k),(k=B.getResponseHeader("etag"))&&(c.etag[E]=k)),204===a||"HEAD"===m.type)k="nocontent";else if(304===a)k="notmodified";else{k=p.state;var M=p.data;var L= +p.error;g=!L}else if(L=k,a||!k)k="error",0>a&&(a=0);B.status=a;B.statusText=(b||k)+"";g?u.resolveWith(r,[M,k,B]):u.rejectWith(r,[B,k,L]);B.statusCode(y);y=void 0;l&&q.trigger(g?"ajaxSuccess":"ajaxError",[B,m,g?M:L]);t.fireWith(r,[B,k]);l&&(q.trigger("ajaxComplete",[B,m]),--c.active||c.event.trigger("ajaxStop"))}}"object"===typeof a&&(b=a,a=void 0);b=b||{};var e,f,g,h,l,k,m=c.ajaxSetup({},b),r=m.context||m,q=m.context&&(r.nodeType||r.jquery)?c(r):c.event,u=c.Deferred(),t=c.Callbacks("once memory"), +y=m.statusCode||{},w={},C={},D="canceled",B={readyState:0,getResponseHeader:function(a){var b;if(O){if(!g)for(g={};b=Ec.exec(f);)g[b[1].toLowerCase()]=b[2];b=g[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return O?f:null},setRequestHeader:function(a,b){null==O&&(a=C[a.toLowerCase()]=C[a.toLowerCase()]||a,w[a]=b);return this},overrideMimeType:function(a){null==O&&(m.mimeType=a);return this},statusCode:function(a){var b;if(a)if(O)B.always(a[B.status]);else for(b in a)y[b]= +[y[b],a[b]];return this},abort:function(a){a=a||D;e&&e.abort(a);d(0,a);return this}};u.promise(B);m.url=((a||m.url||za.href)+"").replace(Gc,za.protocol+"//");m.type=b.method||b.type||m.method||m.type;m.dataTypes=(m.dataType||"*").toLowerCase().match(R)||[""];if(null==m.crossDomain){a=p.createElement("a");try{a.href=m.url,a.href=a.href,m.crossDomain=Xa.protocol+"//"+Xa.host!==a.protocol+"//"+a.host}catch(N){m.crossDomain=!0}}m.data&&m.processData&&"string"!==typeof m.data&&(m.data=c.param(m.data,m.traditional)); +wb(Mb,m,b,B);if(O)return B;(l=c.event&&m.global)&&0===c.active++&&c.event.trigger("ajaxStart");m.type=m.type.toUpperCase();m.hasContent=!Fc.test(m.type);var E=m.url.replace(Cc,"");m.hasContent?m.data&&m.processData&&0===(m.contentType||"").indexOf("application/x-www-form-urlencoded")&&(m.data=m.data.replace(Bc,"+")):(a=m.url.slice(E.length),m.data&&(E+=(Wa.test(E)?"&":"?")+m.data,delete m.data),!1===m.cache&&(E=E.replace(Dc,"$1"),a=(Wa.test(E)?"&":"?")+"_="+Kb++ +a),m.url=E+a);m.ifModified&&(c.lastModified[E]&& +B.setRequestHeader("If-Modified-Since",c.lastModified[E]),c.etag[E]&&B.setRequestHeader("If-None-Match",c.etag[E]));(m.data&&m.hasContent&&!1!==m.contentType||b.contentType)&&B.setRequestHeader("Content-Type",m.contentType);B.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+Nb+"; q=0.01":""):m.accepts["*"]);for(k in m.headers)B.setRequestHeader(k,m.headers[k]);if(m.beforeSend&&(!1===m.beforeSend.call(r,B,m)||O))return B.abort(); +D="abort";t.add(m.complete);B.done(m.success);B.fail(m.error);if(e=wb(Sa,m,b,B)){B.readyState=1;l&&q.trigger("ajaxSend",[B,m]);if(O)return B;m.async&&0").prop({charset:a.scriptCharset,src:a.url}).on("load error",d=function(a){b.remove();d=null;a&&f("error"===a.type?404:200,a.type)});p.head.appendChild(b[0])},abort:function(){d&&d()}}}});var Ob=[],Ya=/(=)\?(?=&|$)|\?\?/;c.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Ob.pop()|| +c.expando+"_"+Kb++;this[a]=!0;return a}});c.ajaxPrefilter("json jsonp",function(a,b,d){var e,f=!1!==a.jsonp&&(Ya.test(a.url)?"url":"string"===typeof a.data&&0===(a.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ya.test(a.data)&&"data");if(f||"jsonp"===a.dataTypes[0]){var g=a.jsonpCallback=c.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback;f?a[f]=a[f].replace(Ya,"$1"+g):!1!==a.jsonp&&(a.url+=(Wa.test(a.url)?"&":"?")+a.jsonp+"="+g);a.converters["script json"]=function(){e|| +c.error(g+" was not called");return e[0]};a.dataTypes[0]="json";var h=n[g];n[g]=function(){e=arguments};d.always(function(){void 0===h?c(n).removeProp(g):n[g]=h;a[g]&&(a.jsonpCallback=b.jsonpCallback,Ob.push(g));e&&c.isFunction(h)&&h(e[0]);e=h=void 0});return"script"}});y.createHTMLDocument=function(){var a=p.implementation.createHTMLDocument("").body;a.innerHTML="
";return 2===a.childNodes.length}();c.parseHTML=function(a,b,d){if("string"!==typeof a)return[];"boolean"=== +typeof b&&(d=b,b=!1);if(!b)if(y.createHTMLDocument){b=p.implementation.createHTMLDocument("");var e=b.createElement("base");e.href=p.location.href;b.head.appendChild(e)}else b=p;e=Cb.exec(a);d=!d&&[];if(e)return[b.createElement(e[1])];e=db([a],b,d);d&&d.length&&c(d).remove();return c.merge([],e.childNodes)};c.fn.load=function(a,b,d){var e,f,g=this,h=a.indexOf(" ");if(-1").append(c.parseHTML(a)).find(l):a)}).always(d&&function(a,b){g.each(function(){d.apply(this,f||[a.responseText,b,a])})});return this};c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(a){return this.on(b,a)}});c.expr.pseudos.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};c.offset={setOffset:function(a,b,d){var e= +c.css(a,"position"),f=c(a),g={};"static"===e&&(a.style.position="relative");var h=f.offset();var l=c.css(a,"top");var k=c.css(a,"left");("absolute"===e||"fixed"===e)&&-1<(l+k).indexOf("auto")?(k=f.position(),l=k.top,k=k.left):(l=parseFloat(l)||0,k=parseFloat(k)||0);c.isFunction(b)&&(b=b.call(a,d,c.extend({},h)));null!=b.top&&(g.top=b.top-h.top+l);null!=b.left&&(g.left=b.left-h.left+k);"using"in b?b.using.call(a,g):f.css(g)}};c.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this: +this.each(function(b){c.offset.setOffset(this,a,b)});var b;if(b=this[0]){if(!b.getClientRects().length)return{top:0,left:0};var d=b.getBoundingClientRect();var e=b.ownerDocument;b=e.documentElement;e=e.defaultView;return{top:d.top+e.pageYOffset-b.clientTop,left:d.left+e.pageXOffset-b.clientLeft}}},position:function(){if(this[0]){var a=this[0],b={top:0,left:0};if("fixed"===c.css(a,"position"))var d=a.getBoundingClientRect();else{var e=this.offsetParent();d=this.offset();t(e[0],"html")||(b=e.offset()); +b={top:b.top+c.css(e[0],"borderTopWidth",!0),left:b.left+c.css(e[0],"borderLeftWidth",!0)}}return{top:d.top-b.top-c.css(a,"marginTop",!0),left:d.left-b.left-c.css(a,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent;a&&"static"===c.css(a,"position");)a=a.offsetParent;return a||Ma})}});c.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var d="pageYOffset"===b;c.fn[a]=function(e){return aa(this,function(a,e,h){if(c.isWindow(a))var f= +a;else 9===a.nodeType&&(f=a.defaultView);if(void 0===h)return f?f[b]:a[e];f?f.scrollTo(d?f.pageXOffset:h,d?h:f.pageYOffset):a[e]=h},a,e,arguments.length)}});c.each(["top","left"],function(a,b){c.cssHooks[b]=mb(y.pixelPosition,function(a,e){if(e)return e=ra(a,b),Pa.test(e)?c(a).position()[b]+"px":e})});c.each({Height:"height",Width:"width"},function(a,b){c.each({padding:"inner"+a,content:b,"":"outer"+a},function(d,e){c.fn[e]=function(f,g){var h=arguments.length&&(d||"boolean"!==typeof f),l=d||(!0=== +f||!0===g?"margin":"border");return aa(this,function(b,d,f){return c.isWindow(b)?0===e.indexOf("outer")?b["inner"+a]:b.document.documentElement["client"+a]:9===b.nodeType?(d=b.documentElement,Math.max(b.body["scroll"+a],d["scroll"+a],b.body["offset"+a],d["offset"+a],d["client"+a])):void 0===f?c.css(b,d,l):c.style(b,d,f,l)},b,h?f:void 0,h)}})});c.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,e){return this.on(b,a, +c,e)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});c.holdReady=function(a){a?c.readyWait++:c.ready(!0)};c.isArray=Array.isArray;c.parseJSON=JSON.parse;c.nodeName=t;"function"===typeof define&&define.amd&&define("jquery",[],function(){return c});var Ic=n.jQuery,Jc=n.$;c.noConflict=function(a){n.$===c&&(n.$=Jc);a&&n.jQuery===c&&(n.jQuery=Ic);return c};C||(n.jQuery=n.$=c);return c}); /* Knockout JavaScript library v3.4.2 (c) The Knockout.js team - http://knockoutjs.com/ License: MIT (http://www.opensource.org/licenses/mit-license.php) */ -var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(n,u,r){if(r.get||r.set)throw new TypeError("ES3 does not support getters and setters.");n!=Array.prototype&&n!=Object.prototype&&(n[u]=r.value)};$jscomp.getGlobal=function(n){return"undefined"!=typeof window&&window===n?n:"undefined"!=typeof global&&null!=global?global:n};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_"; -$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(n){return $jscomp.SYMBOL_PREFIX+(n||"")+$jscomp.symbolCounter_++}; +var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(n,u,t){n!=Array.prototype&&n!=Object.prototype&&(n[u]=t.value)};$jscomp.getGlobal=function(n){return"undefined"!=typeof window&&window===n?n:"undefined"!=typeof global&&null!=global?global:n};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_"; +$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.Symbol=function(){var n=0;return function(u){return $jscomp.SYMBOL_PREFIX+(u||"")+n++}}(); $jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var n=$jscomp.global.Symbol.iterator;n||(n=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[n]&&$jscomp.defineProperty(Array.prototype,n,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(n){var u=0;return $jscomp.iteratorPrototype(function(){return ua.utils.arrayIndexOf(h,b[c])&&h.push(b[c]);return h},arrayMap:function(a,b){a=a||[];for(var h=[],c=0,d=a.length;ch?d&&b.push(c):d||b.splice(h,1)},canSetPrototype:f,extend:c,setPrototypeOf:d,setPrototypeOfOrExtend:f?d:c,objectForEach:b,objectMap:function(a,b){if(!a)return a;var c={},h;for(h in a)a.hasOwnProperty(h)&& -(c[h]=b(a[h],h,a));return c},emptyDomNode:function(b){for(;b.firstChild;)a.removeNode(b.firstChild)},moveCleanedNodesToContainerElement:function(b){b=a.utils.makeArray(b);for(var c=(b[0]&&b[0].ownerDocument||r).createElement("div"),h=0,d=b.length;hg?a.setAttribute("selected",b):a.selected=b},stringTrim:function(a){return null===a||a===n?"":a.trim?a.trim():a.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},stringStartsWith:function(a,b){a=a||"";return b.length>a.length?!1:a.substring(0,b.length)===b},domNodeIsContainedBy:function(a,b){if(a===b)return!0;if(11===a.nodeType)return!1;if(b.contains)return b.contains(3===a.nodeType?a.parentNode:a);if(b.compareDocumentPosition)return 16== -(b.compareDocumentPosition(a)&16);for(;a&&a!=b;)a=a.parentNode;return!!a},domNodeIsAttachedToDocument:function(b){return a.utils.domNodeIsContainedBy(b,b.ownerDocument.documentElement)},anyDomNodeIsAttachedToDocument:function(b){return!!a.utils.arrayFirst(b,a.utils.domNodeIsAttachedToDocument)},tagNameLower:function(a){return a&&a.tagName&&a.tagName.toLowerCase()},catchFunctionErrors:function(b){return a.onError?function(){try{return b.apply(this,arguments)}catch(w){throw a.onError&&a.onError(w), -w;}}:b},setTimeout:function(b,c){return setTimeout(a.utils.catchFunctionErrors(b),c)},deferError:function(b){setTimeout(function(){a.onError&&a.onError(b);throw b;},0)},registerEventHandler:function(b,c,d){var e=a.utils.catchFunctionErrors(d);d=g&&q[c];if(a.options.useOnlyNativeEvents||d||!t)if(d||"function"!=typeof b.addEventListener)if("undefined"!=typeof b.attachEvent){var h=function(a){e.call(b,a)},f="on"+c;b.attachEvent(f,h);a.utils.domNodeDisposal.addDisposeCallback(b,function(){b.detachEvent(f, -h)})}else throw Error("Browser doesn't support addEventListener or attachEvent");else b.addEventListener(c,e,!1);else t(b).bind(c,e)},triggerEvent:function(b,c){if(!b||!b.nodeType)throw Error("element must be a DOM node when calling triggerEvent");var d;"input"===a.utils.tagNameLower(b)&&b.type?"click"!=c.toLowerCase()?d=!1:(d=b.type,d="checkbox"==d||"radio"==d):d=!1;if(a.options.useOnlyNativeEvents||!t||d)if("function"==typeof r.createEvent)if("function"==typeof b.dispatchEvent)d=r.createEvent(m[c]|| -"HTMLEvents"),d.initEvent(c,!0,!0,u,0,0,0,0,0,!1,!1,!1,!1,0,b),b.dispatchEvent(d);else throw Error("The supplied element doesn't support dispatchEvent");else if(d&&b.click)b.click();else if("undefined"!=typeof b.fireEvent)b.fireEvent("on"+c);else throw Error("Browser doesn't support triggering events");else t(b).trigger(c)},unwrapObservable:function(b){return a.isObservable(b)?b():b},peekObservable:function(b){return a.isObservable(b)?b.peek():b},toggleDomNodeCssClass:function(b,c,d){var g;c&&("object"=== -typeof b.classList?(g=b.classList[d?"add":"remove"],a.utils.arrayForEach(c.match(p),function(a){g.call(b.classList,a)})):"string"===typeof b.className.baseVal?e(b.className,"baseVal",c,d):e(b,"className",c,d))},setTextContent:function(b,c){var d=a.utils.unwrapObservable(c);if(null===d||d===n)d="";var e=a.virtualElements.firstChild(b);!e||3!=e.nodeType||a.virtualElements.nextSibling(e)?a.virtualElements.setDomNodeChildren(b,[b.ownerDocument.createTextNode(d)]):e.data=d;a.utils.forceRefresh(b)},setElementName:function(a, -b){a.name=b;if(7>=g)try{a.mergeAttributes(r.createElement(""),!1)}catch(z){}},forceRefresh:function(a){9<=g&&(a=1==a.nodeType?a:a.parentNode,a.style&&(a.style.zoom=a.style.zoom))},ensureSelectElementIsRenderedCorrectly:function(a){if(g){var b=a.style.width;a.style.width=0;a.style.width=b}},range:function(b,c){b=a.utils.unwrapObservable(b);c=a.utils.unwrapObservable(c);for(var d=[],e=b;e<=c;e++)d.push(e);return d},makeArray:function(a){for(var b=[],c=0,d=a.length;c",""],d=[3,"","
"],e=[1,""],f={thead:c,tbody:c,tfoot:c,tr:[2,"","
"],td:d,th:d,option:e,optgroup:e},k=8>=a.utils.ieVersion; -a.utils.parseHtmlFragment=function(c,d){var e;if(t)if(t.parseHTML)e=t.parseHTML(c,d)||[];else{if((e=t.clean([c],d))&&e[0]){for(var g=e[0];g.parentNode&&11!==g.parentNode.nodeType;)g=g.parentNode;g.parentNode&&g.parentNode.removeChild(g)}}else{(e=d)||(e=r);var g=e.parentWindow||e.defaultView||u,l=a.utils.stringTrim(c).toLowerCase(),h=e.createElement("div"),m;m=(l=l.match(/^<([a-z]+)[ >]/))&&f[l[1]]||b;l=m[0];m="ignored
"+m[1]+c+m[2]+"
";"function"==typeof g.innerShiv?h.appendChild(g.innerShiv(m)): -(k&&e.appendChild(h),h.innerHTML=m,k&&h.parentNode.removeChild(h));for(;l--;)h=h.lastChild;e=a.utils.makeArray(h.lastChild.childNodes)}return e};a.utils.setHtml=function(b,c){a.utils.emptyDomNode(b);c=a.utils.unwrapObservable(c);if(null!==c&&c!==n)if("string"!=typeof c&&(c=c.toString()),t)t(b).html(c);else for(var d=a.utils.parseHtmlFragment(c,b.ownerDocument),e=0;eb){if(5E3<=++c){k=e;a.utils.deferError(Error("'Too much recursion' after processing "+ -c+" task groups."));break}b=e}try{f()}catch(g){a.utils.deferError(g)}}}function c(){b();k=e=d.length=0}var d=[],e=0,f=1,k=0;return{scheduler:u.MutationObserver?function(a){var b=r.createElement("div");(new MutationObserver(a)).observe(b,{attributes:!0});return function(){b.classList.toggle("foo")}}(c):r&&"onreadystatechange"in r.createElement("script")?function(a){var b=r.createElement("script");b.onreadystatechange=function(){b.onreadystatechange=null;r.documentElement.removeChild(b);b=null;a()}; -r.documentElement.appendChild(b)}:function(a){setTimeout(a,0)},schedule:function(b){e||a.tasks.scheduler(c);d[e++]=b;return f++},cancel:function(a){a-=f-e;a>=k&&ad[0]?l+d[0]:d[0]),l);for(var l=1===q?l:Math.min(c+(d[1]||0),l),q=c+q-2,p=Math.max(l,q),k=[],w=[],n=2;ca.utils.arrayIndexOf(c,b[l])&&c.push(b[l]);return c},arrayMap:function(a,b){a=a||[];for(var c=[],l=0,d=a.length;ll?d&&b.push(c):d||b.splice(l,1)},canSetPrototype:f,extend:c,setPrototypeOf:e,setPrototypeOfOrExtend:f?e:c,objectForEach:b,objectMap:function(a,b){if(!a)return a;var c={},l;for(l in a)a.hasOwnProperty(l)&& +(c[l]=b(a[l],l,a));return c},emptyDomNode:function(b){for(;b.firstChild;)a.removeNode(b.firstChild)},moveCleanedNodesToContainerElement:function(b){b=a.utils.makeArray(b);for(var c=(b[0]&&b[0].ownerDocument||t).createElement("div"),l=0,d=b.length;lh?a.setAttribute("selected",b):a.selected=b},stringTrim:function(a){return null===a||a===n?"":a.trim?a.trim():a.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},stringStartsWith:function(a,b){a=a||"";return b.length>a.length?!1:a.substring(0,b.length)===b},domNodeIsContainedBy:function(a,b){if(a===b)return!0;if(11===a.nodeType)return!1;if(b.contains)return b.contains(3===a.nodeType?a.parentNode:a);if(b.compareDocumentPosition)return 16==(b.compareDocumentPosition(a)& +16);for(;a&&a!=b;)a=a.parentNode;return!!a},domNodeIsAttachedToDocument:function(b){return a.utils.domNodeIsContainedBy(b,b.ownerDocument.documentElement)},anyDomNodeIsAttachedToDocument:function(b){return!!a.utils.arrayFirst(b,a.utils.domNodeIsAttachedToDocument)},tagNameLower:function(a){return a&&a.tagName&&a.tagName.toLowerCase()},catchFunctionErrors:function(b){return a.onError?function(){try{return b.apply(this,arguments)}catch(B){throw a.onError&&a.onError(B),B;}}:b},setTimeout:function(b, +c){return setTimeout(a.utils.catchFunctionErrors(b),c)},deferError:function(b){setTimeout(function(){a.onError&&a.onError(b);throw b;},0)},registerEventHandler:function(b,c,d){var e=a.utils.catchFunctionErrors(d);d=h&&p[c];if(a.options.useOnlyNativeEvents||d||!r)if(d||"function"!=typeof b.addEventListener)if("undefined"!=typeof b.attachEvent){var l=function(a){e.call(b,a)},g="on"+c;b.attachEvent(g,l);a.utils.domNodeDisposal.addDisposeCallback(b,function(){b.detachEvent(g,l)})}else throw Error("Browser doesn't support addEventListener or attachEvent"); +else b.addEventListener(c,e,!1);else r(b).bind(c,e)},triggerEvent:function(b,c){if(!b||!b.nodeType)throw Error("element must be a DOM node when calling triggerEvent");if("input"===a.utils.tagNameLower(b)&&b.type)if("click"!=c.toLowerCase())var d=!1;else d=b.type,d="checkbox"==d||"radio"==d;else d=!1;if(a.options.useOnlyNativeEvents||!r||d)if("function"==typeof t.createEvent)if("function"==typeof b.dispatchEvent)d=t.createEvent(m[c]||"HTMLEvents"),d.initEvent(c,!0,!0,u,0,0,0,0,0,!1,!1,!1,!1,0,b),b.dispatchEvent(d); +else throw Error("The supplied element doesn't support dispatchEvent");else if(d&&b.click)b.click();else if("undefined"!=typeof b.fireEvent)b.fireEvent("on"+c);else throw Error("Browser doesn't support triggering events");else r(b).trigger(c)},unwrapObservable:function(b){return a.isObservable(b)?b():b},peekObservable:function(b){return a.isObservable(b)?b.peek():b},toggleDomNodeCssClass:function(b,c,e){if(c)if("object"===typeof b.classList){var l=b.classList[e?"add":"remove"];a.utils.arrayForEach(c.match(q), +function(a){l.call(b.classList,a)})}else"string"===typeof b.className.baseVal?d(b.className,"baseVal",c,e):d(b,"className",c,e)},setTextContent:function(b,c){c=a.utils.unwrapObservable(c);if(null===c||c===n)c="";var d=a.virtualElements.firstChild(b);!d||3!=d.nodeType||a.virtualElements.nextSibling(d)?a.virtualElements.setDomNodeChildren(b,[b.ownerDocument.createTextNode(c)]):d.data=c;a.utils.forceRefresh(b)},setElementName:function(a,b){a.name=b;if(7>=h)try{a.mergeAttributes(t.createElement(""),!1)}catch(y){}},forceRefresh:function(a){9<=h&&(a=1==a.nodeType?a:a.parentNode,a.style&&(a.style.zoom=a.style.zoom))},ensureSelectElementIsRenderedCorrectly:function(a){if(h){var b=a.style.width;a.style.width=0;a.style.width=b}},range:function(b,c){b=a.utils.unwrapObservable(b);c=a.utils.unwrapObservable(c);for(var d=[];b<=c;b++)d.push(b);return d},makeArray:function(a){for(var b=[],c=0,d=a.length;c",""],e=[3,"","
"],d=[1,""],f={thead:c,tbody:c,tfoot:c,tr:[2,"","
"],td:e,th:e,option:d,optgroup:d},k=8>=a.utils.ieVersion;a.utils.parseHtmlFragment=function(c,d){if(r)if(r.parseHTML)c=r.parseHTML(c, +d)||[];else{if((c=r.clean([c],d))&&c[0]){for(d=c[0];d.parentNode&&11!==d.parentNode.nodeType;)d=d.parentNode;d.parentNode&&d.parentNode.removeChild(d)}}else{d||(d=t);var e=d.parentWindow||d.defaultView||u,h=a.utils.stringTrim(c).toLowerCase(),g=d.createElement("div");var l=(h=h.match(/^<([a-z]+)[ >]/))&&f[h[1]]||b;h=l[0];c="ignored
"+l[1]+c+l[2]+"
";"function"==typeof e.innerShiv?g.appendChild(e.innerShiv(c)):(k&&d.appendChild(g),g.innerHTML=c,k&&g.parentNode.removeChild(g));for(;h--;)g= +g.lastChild;c=a.utils.makeArray(g.lastChild.childNodes)}return c};a.utils.setHtml=function(b,c){a.utils.emptyDomNode(b);c=a.utils.unwrapObservable(c);if(null!==c&&c!==n)if("string"!=typeof c&&(c=c.toString()),r)r(b).html(c);else{c=a.utils.parseHtmlFragment(c,b.ownerDocument);for(var d=0;db){if(5E3<=++c){k=d;a.utils.deferError(Error("'Too much recursion' after processing "+c+" task groups.")); +break}b=d}try{p()}catch(h){a.utils.deferError(h)}}}function c(){b();k=d=e.length=0}var e=[],d=0,f=1,k=0;return{scheduler:u.MutationObserver?function(a){var b=t.createElement("div");(new MutationObserver(a)).observe(b,{attributes:!0});return function(){b.classList.toggle("foo")}}(c):t&&"onreadystatechange"in t.createElement("script")?function(a){var b=t.createElement("script");b.onreadystatechange=function(){b.onreadystatechange=null;t.documentElement.removeChild(b);b=null;a()};t.documentElement.appendChild(b)}: +function(a){setTimeout(a,0)},schedule:function(b){d||a.tasks.scheduler(c);e[d++]=b;return f++},cancel:function(a){a-=f-d;a>=k&&ae[0]?g+e[0]:e[0]),g);g=1===l?g:Math.min(c+(e[1]||0),g);l=c+l-2;q=Math.max(g,l);for(var k=[],n=[],B=2;cc;c++)b=b();return b})};a.toJSON=function(b,c,d){b=a.toJS(b);return a.utils.stringifyJson(b,c,d)};d.prototype={constructor:d,save:function(b,c){var d=a.utils.arrayIndexOf(this.keys,b);0<=d?this.values[d]=c:(this.keys.push(b),this.values.push(c))},get:function(b){b=a.utils.arrayIndexOf(this.keys, -b);return 0<=b?this.values[b]:n}}})();a.exportSymbol("toJS",a.toJS);a.exportSymbol("toJSON",a.toJSON);(function(){a.selectExtensions={readValue:function(b){switch(a.utils.tagNameLower(b)){case "option":return!0===b.__ko__hasDomDataOptionValue__?a.utils.domData.get(b,a.bindingHandlers.options.optionValueDomDataKey):7>=a.utils.ieVersion?b.getAttributeNode("value")&&b.getAttributeNode("value").specified?b.value:b.text:b.value;case "select":return 0<=b.selectedIndex?a.selectExtensions.readValue(b.options[b.selectedIndex]): -n;default:return b.value}},writeValue:function(b,c,d){switch(a.utils.tagNameLower(b)){case "option":switch(typeof c){case "string":a.utils.domData.set(b,a.bindingHandlers.options.optionValueDomDataKey,n);"__ko__hasDomDataOptionValue__"in b&&delete b.__ko__hasDomDataOptionValue__;b.value=c;break;default:a.utils.domData.set(b,a.bindingHandlers.options.optionValueDomDataKey,c),b.__ko__hasDomDataOptionValue__=!0,b.value="number"===typeof c?c:""}break;case "select":if(""===c||null===c)c=n;for(var e=-1, -f=0,k=b.options.length,m;f=m){c.push(l&&h.length?{key:l,value:h.join("")}:{unknown:l||h.join("")});l=m=0;h=[];continue}}else if(58===B){if(!m&&!l&&1===h.length){l=h.pop();continue}}else 47===B&&z&&1=a.utils.ieVersion&& -b.tagName===c))return c};a.components.addBindingsForCustomElement=function(b,d,k,m){if(1===d.nodeType){var e=a.components.getComponentNameForNode(d);if(e){b=b||{};if(b.component)throw Error('Cannot use the "component" binding on a custom element matching a component');var f={name:e,params:c(d,k)};b.component=m?function(){return f}:f}}return b};var d=new a.bindingProvider;9>a.utils.ieVersion&&(a.components.register=function(a){return function(b){r.createElement(b);return a.apply(this,arguments)}}(a.components.register), -r.createDocumentFragment=function(b){return function(){var c=b(),d=a.components._allRegisteredComponents,e;for(e in d)d.hasOwnProperty(e)&&c.createElement(e);return c}}(r.createDocumentFragment))})();(function(b){function c(b,c,d){c=c.template;if(!c)throw Error("Component '"+b+"' has no template");b=a.utils.cloneNodes(c);a.virtualElements.setDomNodeChildren(d,b)}function d(a,b,c,d){var e=a.createViewModel;return e?e.call(a,d,{element:b,templateNodes:c}):d}var e=0;a.bindingHandlers.component={init:function(f, -k,m,l,q){var g,p,h=function(){var a=g&&g.dispose;"function"===typeof a&&a.call(g);p=g=null},n=a.utils.makeArray(a.virtualElements.childNodes(f));a.utils.domNodeDisposal.addDisposeCallback(f,h);a.computed(function(){var l=a.utils.unwrapObservable(k()),m,w;"string"===typeof l?m=l:(m=a.utils.unwrapObservable(l.name),w=a.utils.unwrapObservable(l.params));if(!m)throw Error("No component name specified");var r=p=++e;a.components.get(m,function(e){if(p===r){h();if(!e)throw Error("Unknown component '"+m+ -"'");c(m,e,f);var l=d(e,f,n,w);e=q.createChildContext(l,b,function(a){a.$component=l;a.$componentTemplateNodes=n});g=l;a.applyBindingsToDescendants(e,f)}})},null,{disposeWhenNodeIsRemoved:f});return{controlsDescendantBindings:!0}}};a.virtualElements.allowedBindings.component=!0})();var Q={"class":"className","for":"htmlFor"};a.bindingHandlers.attr={update:function(b,c,d){c=a.utils.unwrapObservable(c())||{};a.utils.objectForEach(c,function(c,d){d=a.utils.unwrapObservable(d);var e=!1===d||null===d|| -d===n;e&&b.removeAttribute(c);8>=a.utils.ieVersion&&c in Q?(c=Q[c],e?b.removeAttribute(c):b[c]=d):e||b.setAttribute(c,d.toString());"name"===c&&a.utils.setElementName(b,e?"":d.toString())})}};(function(){a.bindingHandlers.checked={after:["value","attr"],init:function(b,c,d){function e(){var e=b.checked,l=h?f():e;if(!a.computedContext.isInitial()&&(!m||e)){var k=a.dependencyDetection.ignore(c);if(q){var n=g?k.peek():k;p!==l?(e&&(a.utils.addOrRemoveItem(n,l,!0),a.utils.addOrRemoveItem(n,p,!1)),p=l): -a.utils.addOrRemoveItem(n,l,e);g&&a.isWriteableObservable(k)&&k(n)}else a.expressionRewriting.writeValueToProperty(k,d,"checked",l,!0)}}var f=a.pureComputed(function(){return d.has("checkedValue")?a.utils.unwrapObservable(d.get("checkedValue")):d.has("value")?a.utils.unwrapObservable(d.get("value")):b.value}),k="checkbox"==b.type,m="radio"==b.type;if(k||m){var l=c(),q=k&&a.utils.unwrapObservable(l)instanceof Array,g=!(q&&l.push&&l.splice),p=q?f():n,h=m||q;m&&!b.name&&a.bindingHandlers.uniqueName.init(b, -function(){return!0});a.computed(e,null,{disposeWhenNodeIsRemoved:b});a.utils.registerEventHandler(b,"click",e);a.computed(function(){var d=a.utils.unwrapObservable(c());b.checked=q?0<=a.utils.arrayIndexOf(d,f()):k?d:f()===d},null,{disposeWhenNodeIsRemoved:b});l=n}}};a.expressionRewriting.twoWayBindings.checked=!0;a.bindingHandlers.checkedValue={update:function(b,c){b.value=a.utils.unwrapObservable(c())}}})();a.bindingHandlers.css={update:function(b,c){var d=a.utils.unwrapObservable(c());null!==d&& -"object"==typeof d?a.utils.objectForEach(d,function(c,d){d=a.utils.unwrapObservable(d);a.utils.toggleDomNodeCssClass(b,c,d)}):(d=a.utils.stringTrim(String(d||"")),a.utils.toggleDomNodeCssClass(b,b.__ko__cssValue,!1),b.__ko__cssValue=d,a.utils.toggleDomNodeCssClass(b,d,!0))}};a.bindingHandlers.enable={update:function(b,c){var d=a.utils.unwrapObservable(c());d&&b.disabled?b.removeAttribute("disabled"):d||b.disabled||(b.disabled=!0)}};a.bindingHandlers.disable={update:function(b,c){a.bindingHandlers.enable.update(b, -function(){return!a.utils.unwrapObservable(c())})}};a.bindingHandlers.event={init:function(b,c,d,e,f){var k=c()||{};a.utils.objectForEach(k,function(k){"string"==typeof k&&a.utils.registerEventHandler(b,k,function(b){var l,g=c()[k];if(g){try{var m=a.utils.makeArray(arguments);e=f.$data;m.unshift(e);l=g.apply(e,m)}finally{!0!==l&&(b.preventDefault?b.preventDefault():b.returnValue=!1)}!1===d.get(k+"Bubble")&&(b.cancelBubble=!0,b.stopPropagation&&b.stopPropagation())}})})}};a.bindingHandlers.foreach= -{makeTemplateValueAccessor:function(b){return function(){var c=b(),d=a.utils.peekObservable(c);if(!d||"number"==typeof d.length)return{foreach:c,templateEngine:a.nativeTemplateEngine.instance};a.utils.unwrapObservable(c);return{foreach:d.data,as:d.as,includeDestroyed:d.includeDestroyed,afterAdd:d.afterAdd,beforeRemove:d.beforeRemove,afterRender:d.afterRender,beforeMove:d.beforeMove,afterMove:d.afterMove,templateEngine:a.nativeTemplateEngine.instance}}},init:function(b,c,d,e,f){return a.bindingHandlers.template.init(b, -a.bindingHandlers.foreach.makeTemplateValueAccessor(c))},update:function(b,c,d,e,f){return a.bindingHandlers.template.update(b,a.bindingHandlers.foreach.makeTemplateValueAccessor(c),d,e,f)}};a.expressionRewriting.bindingRewriteValidators.foreach=!1;a.virtualElements.allowedBindings.foreach=!0;a.bindingHandlers.hasfocus={init:function(b,c,d){var e=function(e){b.__ko_hasfocusUpdating=!0;var f=b.ownerDocument;if("activeElement"in f){var l;try{l=f.activeElement}catch(q){l=f.body}e=l===b}f=c();a.expressionRewriting.writeValueToProperty(f, -d,"hasfocus",e,!0);b.__ko_hasfocusLastValue=e;b.__ko_hasfocusUpdating=!1},f=e.bind(null,!0),e=e.bind(null,!1);a.utils.registerEventHandler(b,"focus",f);a.utils.registerEventHandler(b,"focusin",f);a.utils.registerEventHandler(b,"blur",e);a.utils.registerEventHandler(b,"focusout",e)},update:function(b,c){var d=!!a.utils.unwrapObservable(c());b.__ko_hasfocusUpdating||b.__ko_hasfocusLastValue===d||(d?b.focus():b.blur(),!d&&b.__ko_hasfocusLastValue&&b.ownerDocument.body.focus(),a.dependencyDetection.ignore(a.utils.triggerEvent, -null,[b,d?"focusin":"focusout"]))}};a.expressionRewriting.twoWayBindings.hasfocus=!0;a.bindingHandlers.hasFocus=a.bindingHandlers.hasfocus;a.expressionRewriting.twoWayBindings.hasFocus=!0;a.bindingHandlers.html={init:function(){return{controlsDescendantBindings:!0}},update:function(b,c){a.utils.setHtml(b,c())}};K("if");K("ifnot",!1,!0);K("with",!0,!1,function(a,c){return a.createStaticChildContext(c)});var M={};a.bindingHandlers.options={init:function(b){if("select"!==a.utils.tagNameLower(b))throw Error("options binding applies only to SELECT elements"); -for(;0a.utils.ieVersion)var k=a.utils.domData.nextKey(),m=a.utils.domData.nextKey(), -l=function(b){var c=this.activeElement;(c=c&&a.utils.domData.get(c,m))&&c(b)},q=function(b,c){var d=b.ownerDocument;a.utils.domData.get(d,k)||(a.utils.domData.set(d,k,!0),a.utils.registerEventHandler(d,"selectionchange",l));a.utils.domData.set(b,m,c)};a.bindingHandlers.textInput={init:function(b,d,l){var g=b.value,h,k,m=function(c){clearTimeout(h);k=h=n;var e=b.value;g!==e&&(c&&(b._ko_textInputProcessedEvent=c.type),g=e,a.expressionRewriting.writeValueToProperty(d(),l,"textInput",e))},p=function(c){h|| -(k=b.value,c=m.bind(b,{type:c.type}),h=a.utils.setTimeout(c,4))},r=9==a.utils.ieVersion?p:m,u=function(){var c=a.utils.unwrapObservable(d());if(null===c||c===n)c="";k!==n&&c===k?a.utils.setTimeout(u,4):b.value!==c&&(g=c,b.value=c)},t=function(c,d){a.utils.registerEventHandler(b,c,d)};a.bindingHandlers.textInput._forceUpdateOn?a.utils.arrayForEach(a.bindingHandlers.textInput._forceUpdateOn,function(a){"after"==a.slice(0,5)?t(a.slice(5),p):t(a,m)}):10>a.utils.ieVersion?(t("propertychange",function(a){"value"=== -a.propertyName&&r(a)}),8==a.utils.ieVersion&&(t("keyup",m),t("keydown",m)),8<=a.utils.ieVersion&&(q(b,r),t("dragend",p))):(t("input",m),5>e&&"textarea"===a.utils.tagNameLower(b)?(t("keydown",p),t("paste",p),t("cut",p)):11>c?t("keydown",p):4>f&&(t("DOMAutoComplete",m),t("dragdrop",m),t("drop",m)));t("change",m);a.computed(u,null,{disposeWhenNodeIsRemoved:b})}};a.expressionRewriting.twoWayBindings.textInput=!0;a.bindingHandlers.textinput={preprocess:function(a,b,c){c("textInput",a)}}})();a.bindingHandlers.uniqueName= -{init:function(b,c){if(c()){var d="ko_unique_"+ ++a.bindingHandlers.uniqueName.currentIndex;a.utils.setElementName(b,d)}}};a.bindingHandlers.uniqueName.currentIndex=0;a.bindingHandlers.value={after:["options","foreach"],init:function(b,c,d){if("input"!=b.tagName.toLowerCase()||"checkbox"!=b.type&&"radio"!=b.type){var e=["change"],f=d.get("valueUpdate"),k=!1,m=null;f&&("string"==typeof f&&(f=[f]),a.utils.arrayPushAll(e,f),e=a.utils.arrayGetDistinctValues(e));var l=function(){m=null;k=!1;var e=c(), -f=a.selectExtensions.readValue(b);a.expressionRewriting.writeValueToProperty(e,d,"value",f)};!a.utils.ieVersion||"input"!=b.tagName.toLowerCase()||"text"!=b.type||"off"==b.autocomplete||b.form&&"off"==b.form.autocomplete||-1!=a.utils.arrayIndexOf(e,"propertychange")||(a.utils.registerEventHandler(b,"propertychange",function(){k=!0}),a.utils.registerEventHandler(b,"focus",function(){k=!1}),a.utils.registerEventHandler(b,"blur",function(){k&&l()}));a.utils.arrayForEach(e,function(c){var d=l;a.utils.stringStartsWith(c, -"after")&&(d=function(){m=a.selectExtensions.readValue(b);a.utils.setTimeout(l,0)},c=c.substring(5));a.utils.registerEventHandler(b,c,d)});var q=function(){var e=a.utils.unwrapObservable(c()),f=a.selectExtensions.readValue(b);if(null!==m&&e===m)a.utils.setTimeout(q,0);else if(e!==f)if("select"===a.utils.tagNameLower(b)){var l=d.get("valueAllowUnset"),f=function(){a.selectExtensions.writeValue(b,e,l)};f();l||e===a.selectExtensions.readValue(b)?a.utils.setTimeout(f,0):a.dependencyDetection.ignore(a.utils.triggerEvent, -null,[b,"change"])}else a.selectExtensions.writeValue(b,e)};a.computed(q,null,{disposeWhenNodeIsRemoved:b})}else a.applyBindingAccessorsToNode(b,{checkedValue:c})},update:function(){}};a.expressionRewriting.twoWayBindings.value=!0;a.bindingHandlers.visible={update:function(b,c){var d=a.utils.unwrapObservable(c()),e="none"!=b.style.display;d&&!e?b.style.display="":!d&&e&&(b.style.display="none")}};(function(b){a.bindingHandlers[b]={init:function(c,d,e,f,k){return a.bindingHandlers.event.init.call(this, -c,function(){var a={};a[b]=d();return a},e,f,k)}}})("click");a.templateEngine=function(){};a.templateEngine.prototype.renderTemplateSource=function(a,c,d,e){throw Error("Override renderTemplateSource");};a.templateEngine.prototype.createJavaScriptEvaluatorBlock=function(a){throw Error("Override createJavaScriptEvaluatorBlock");};a.templateEngine.prototype.makeTemplateSource=function(b,c){if("string"==typeof b){c=c||r;var d=c.getElementById(b);if(!d)throw Error("Cannot find template with ID "+b);return new a.templateSources.domElement(d)}if(1== -b.nodeType||8==b.nodeType)return new a.templateSources.anonymousTemplate(b);throw Error("Unknown template type: "+b);};a.templateEngine.prototype.renderTemplate=function(a,c,d,e){a=this.makeTemplateSource(a,e);return this.renderTemplateSource(a,c,d,e)};a.templateEngine.prototype.isTemplateRewritten=function(a,c){return!1===this.allowTemplateRewriting?!0:this.makeTemplateSource(a,c).data("isRewritten")};a.templateEngine.prototype.rewriteTemplate=function(a,c,d){a=this.makeTemplateSource(a,d);c=c(a.text()); -a.text(c);a.data("isRewritten",!0)};a.exportSymbol("templateEngine",a.templateEngine);a.templateRewriting=function(){function b(b,c,d,m){b=a.expressionRewriting.parseObjectLiteral(b);for(var e=a.expressionRewriting.bindingRewriteValidators,f=0;f]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,d=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{ensureTemplateIsRewritten:function(b,c,d){c.isTemplateRewritten(b,d)||c.rewriteTemplate(b,function(b){return a.templateRewriting.memoizeBindingAttributeSyntax(b,c)},d)},memoizeBindingAttributeSyntax:function(a, -f){return a.replace(c,function(a,c,d,e,g){return b(g,c,d,f)}).replace(d,function(a,c){return b(c,"\x3c!-- ko --\x3e","#comment",f)})},applyMemoizedBindingsToNextSibling:function(b,c){return a.memoization.memoize(function(d,e){var f=d.nextSibling;f&&f.nodeName.toLowerCase()===c&&a.applyBindingAccessorsToNode(f,b,e)})}}}();a.exportSymbol("__tr_ambtns",a.templateRewriting.applyMemoizedBindingsToNextSibling);(function(){a.templateSources={};a.templateSources.domElement=function(b){if(this.domElement= -b){var c=a.utils.tagNameLower(b);this.templateType="script"===c?1:"textarea"===c?2:"template"==c&&b.content&&11===b.content.nodeType?3:4}};a.templateSources.domElement.prototype.text=function(){var b=1===this.templateType?"text":2===this.templateType?"value":"innerHTML";if(0==arguments.length)return this.domElement[b];var c=arguments[0];"innerHTML"===b?a.utils.setHtml(this.domElement,c):this.domElement[b]=c};var b=a.utils.domData.nextKey()+"_";a.templateSources.domElement.prototype.data=function(c){if(1=== +Y={beforeSubscriptionAdd:function(a){"change"!=a&&"beforeChange"!=a||this.peek()}};a.utils.canSetPrototype&&a.utils.setPrototypeOf(A,a.subscribable.fn);J=a.observable.protoProperty;a.computed[J]=a.observable;A[J]=a.computed;a.isComputed=function(b){return a.hasPrototype(b,a.computed)};a.isPureComputed=function(b){return a.hasPrototype(b,a.computed)&&b[v]&&b[v].pure};a.exportSymbol("computed",a.computed);a.exportSymbol("dependentObservable",a.computed);a.exportSymbol("isComputed",a.isComputed);a.exportSymbol("isPureComputed", +a.isPureComputed);a.exportSymbol("computed.fn",A);a.exportProperty(A,"peek",A.peek);a.exportProperty(A,"dispose",A.dispose);a.exportProperty(A,"isActive",A.isActive);a.exportProperty(A,"getDependenciesCount",A.getDependenciesCount);a.pureComputed=function(b,c){if("function"===typeof b)return a.computed(b,c,{pure:!0});b=a.utils.extend({},b);b.pure=!0;return a.computed(b,c)};a.exportSymbol("pureComputed",a.pureComputed);(function(){function b(a,f,k){k=k||new e;a=f(a);if("object"!=typeof a||null===a|| +a===n||a instanceof RegExp||a instanceof Date||a instanceof String||a instanceof Number||a instanceof Boolean)return a;var d=a instanceof Array?[]:{};k.save(a,d);c(a,function(c){var e=f(a[c]);switch(typeof e){case "boolean":case "number":case "string":case "function":d[c]=e;break;case "object":case "undefined":var h=k.get(e);d[c]=h!==n?h:b(e,f,k)}});return d}function c(a,b){if(a instanceof Array){for(var c=0;cc;c++)b=b();return b})};a.toJSON=function(b,c,e){b=a.toJS(b);return a.utils.stringifyJson(b,c,e)};e.prototype={constructor:e,save:function(b,c){var d=a.utils.arrayIndexOf(this.keys,b);0<=d?this.values[d]=c:(this.keys.push(b),this.values.push(c))},get:function(b){b=a.utils.arrayIndexOf(this.keys,b);return 0<=b? +this.values[b]:n}}})();a.exportSymbol("toJS",a.toJS);a.exportSymbol("toJSON",a.toJSON);(function(){a.selectExtensions={readValue:function(b){switch(a.utils.tagNameLower(b)){case "option":return!0===b.__ko__hasDomDataOptionValue__?a.utils.domData.get(b,a.bindingHandlers.options.optionValueDomDataKey):7>=a.utils.ieVersion?b.getAttributeNode("value")&&b.getAttributeNode("value").specified?b.value:b.text:b.value;case "select":return 0<=b.selectedIndex?a.selectExtensions.readValue(b.options[b.selectedIndex]): +n;default:return b.value}},writeValue:function(b,c,e){switch(a.utils.tagNameLower(b)){case "option":switch(typeof c){case "string":a.utils.domData.set(b,a.bindingHandlers.options.optionValueDomDataKey,n);"__ko__hasDomDataOptionValue__"in b&&delete b.__ko__hasDomDataOptionValue__;b.value=c;break;default:a.utils.domData.set(b,a.bindingHandlers.options.optionValueDomDataKey,c),b.__ko__hasDomDataOptionValue__=!0,b.value="number"===typeof c?c:""}break;case "select":if(""===c||null===c)c=n;for(var d=-1, +f=0,k=b.options.length,m;f=l){c.push(F&&g.length?{key:F,value:g.join("")}:{unknown:F||g.join("")});var F=l=0;g=[];continue}}else if(58===z){if(!l&&!F&&1===g.length){F=g.pop();continue}}else 47===z&&m&&1=a.utils.ieVersion&&b.tagName=== +c))return c};a.components.addBindingsForCustomElement=function(b,e,k,m){if(1===e.nodeType){var d=a.components.getComponentNameForNode(e);if(d){b=b||{};if(b.component)throw Error('Cannot use the "component" binding on a custom element matching a component');var f={name:d,params:c(e,k)};b.component=m?function(){return f}:f}}return b};var e=new a.bindingProvider;9>a.utils.ieVersion&&(a.components.register=function(a){return function(b){t.createElement(b);return a.apply(this,arguments)}}(a.components.register), +t.createDocumentFragment=function(b){return function(){var c=b(),d=a.components._allRegisteredComponents,e;for(e in d)d.hasOwnProperty(e)&&c.createElement(e);return c}}(t.createDocumentFragment))})();(function(b){function c(b,c,d){c=c.template;if(!c)throw Error("Component '"+b+"' has no template");b=a.utils.cloneNodes(c);a.virtualElements.setDomNodeChildren(d,b)}function e(a,b,c,d){var e=a.createViewModel;return e?e.call(a,d,{element:b,templateNodes:c}):d}var d=0;a.bindingHandlers.component={init:function(f, +k,m,g,p){var h,q,l=function(){var a=h&&h.dispose;"function"===typeof a&&a.call(h);q=h=null},n=a.utils.makeArray(a.virtualElements.childNodes(f));a.utils.domNodeDisposal.addDisposeCallback(f,l);a.computed(function(){var g=a.utils.unwrapObservable(k());if("string"===typeof g)var m=g;else{m=a.utils.unwrapObservable(g.name);var F=a.utils.unwrapObservable(g.params)}if(!m)throw Error("No component name specified");var B=q=++d;a.components.get(m,function(d){if(q===B){l();if(!d)throw Error("Unknown component '"+ +m+"'");c(m,d,f);var g=e(d,f,n,F);d=p.createChildContext(g,b,function(a){a.$component=g;a.$componentTemplateNodes=n});h=g;a.applyBindingsToDescendants(d,f)}})},null,{disposeWhenNodeIsRemoved:f});return{controlsDescendantBindings:!0}}};a.virtualElements.allowedBindings.component=!0})();var P={"class":"className","for":"htmlFor"};a.bindingHandlers.attr={update:function(b,c,e){c=a.utils.unwrapObservable(c())||{};a.utils.objectForEach(c,function(c,e){e=a.utils.unwrapObservable(e);var d=!1===e||null=== +e||e===n;d&&b.removeAttribute(c);8>=a.utils.ieVersion&&c in P?(c=P[c],d?b.removeAttribute(c):b[c]=e):d||b.setAttribute(c,e.toString());"name"===c&&a.utils.setElementName(b,d?"":e.toString())})}};(function(){a.bindingHandlers.checked={after:["value","attr"],init:function(b,c,e){function d(){var d=b.checked,g=l?f():d;if(!a.computedContext.isInitial()&&(!m||d)){var k=a.dependencyDetection.ignore(c);if(p){var n=h?k.peek():k;q!==g?(d&&(a.utils.addOrRemoveItem(n,g,!0),a.utils.addOrRemoveItem(n,q,!1)),q= +g):a.utils.addOrRemoveItem(n,g,d);h&&a.isWriteableObservable(k)&&k(n)}else a.expressionRewriting.writeValueToProperty(k,e,"checked",g,!0)}}var f=a.pureComputed(function(){return e.has("checkedValue")?a.utils.unwrapObservable(e.get("checkedValue")):e.has("value")?a.utils.unwrapObservable(e.get("value")):b.value}),k="checkbox"==b.type,m="radio"==b.type;if(k||m){var g=c(),p=k&&a.utils.unwrapObservable(g)instanceof Array,h=!(p&&g.push&&g.splice),q=p?f():n,l=m||p;m&&!b.name&&a.bindingHandlers.uniqueName.init(b, +function(){return!0});a.computed(d,null,{disposeWhenNodeIsRemoved:b});a.utils.registerEventHandler(b,"click",d);a.computed(function(){var d=a.utils.unwrapObservable(c());b.checked=p?0<=a.utils.arrayIndexOf(d,f()):k?d:f()===d},null,{disposeWhenNodeIsRemoved:b});g=n}}};a.expressionRewriting.twoWayBindings.checked=!0;a.bindingHandlers.checkedValue={update:function(b,c){b.value=a.utils.unwrapObservable(c())}}})();a.bindingHandlers.css={update:function(b,c){c=a.utils.unwrapObservable(c());null!==c&&"object"== +typeof c?a.utils.objectForEach(c,function(c,d){d=a.utils.unwrapObservable(d);a.utils.toggleDomNodeCssClass(b,c,d)}):(c=a.utils.stringTrim(String(c||"")),a.utils.toggleDomNodeCssClass(b,b.__ko__cssValue,!1),b.__ko__cssValue=c,a.utils.toggleDomNodeCssClass(b,c,!0))}};a.bindingHandlers.enable={update:function(b,c){(c=a.utils.unwrapObservable(c()))&&b.disabled?b.removeAttribute("disabled"):c||b.disabled||(b.disabled=!0)}};a.bindingHandlers.disable={update:function(b,c){a.bindingHandlers.enable.update(b, +function(){return!a.utils.unwrapObservable(c())})}};a.bindingHandlers.event={init:function(b,c,e,d,f){var k=c()||{};a.utils.objectForEach(k,function(k){"string"==typeof k&&a.utils.registerEventHandler(b,k,function(b){var g=c()[k];if(g){try{var h=a.utils.makeArray(arguments);d=f.$data;h.unshift(d);var m=g.apply(d,h)}finally{!0!==m&&(b.preventDefault?b.preventDefault():b.returnValue=!1)}!1===e.get(k+"Bubble")&&(b.cancelBubble=!0,b.stopPropagation&&b.stopPropagation())}})})}};a.bindingHandlers.foreach= +{makeTemplateValueAccessor:function(b){return function(){var c=b(),e=a.utils.peekObservable(c);if(!e||"number"==typeof e.length)return{foreach:c,templateEngine:a.nativeTemplateEngine.instance};a.utils.unwrapObservable(c);return{foreach:e.data,as:e.as,includeDestroyed:e.includeDestroyed,afterAdd:e.afterAdd,beforeRemove:e.beforeRemove,afterRender:e.afterRender,beforeMove:e.beforeMove,afterMove:e.afterMove,templateEngine:a.nativeTemplateEngine.instance}}},init:function(b,c,e,d,f){return a.bindingHandlers.template.init(b, +a.bindingHandlers.foreach.makeTemplateValueAccessor(c))},update:function(b,c,e,d,f){return a.bindingHandlers.template.update(b,a.bindingHandlers.foreach.makeTemplateValueAccessor(c),e,d,f)}};a.expressionRewriting.bindingRewriteValidators.foreach=!1;a.virtualElements.allowedBindings.foreach=!0;a.bindingHandlers.hasfocus={init:function(b,c,e){var d=function(d){b.__ko_hasfocusUpdating=!0;var f=b.ownerDocument;if("activeElement"in f){try{var g=f.activeElement}catch(p){g=f.body}d=g===b}f=c();a.expressionRewriting.writeValueToProperty(f, +e,"hasfocus",d,!0);b.__ko_hasfocusLastValue=d;b.__ko_hasfocusUpdating=!1},f=d.bind(null,!0);d=d.bind(null,!1);a.utils.registerEventHandler(b,"focus",f);a.utils.registerEventHandler(b,"focusin",f);a.utils.registerEventHandler(b,"blur",d);a.utils.registerEventHandler(b,"focusout",d)},update:function(b,c){c=!!a.utils.unwrapObservable(c());b.__ko_hasfocusUpdating||b.__ko_hasfocusLastValue===c||(c?b.focus():b.blur(),!c&&b.__ko_hasfocusLastValue&&b.ownerDocument.body.focus(),a.dependencyDetection.ignore(a.utils.triggerEvent, +null,[b,c?"focusin":"focusout"]))}};a.expressionRewriting.twoWayBindings.hasfocus=!0;a.bindingHandlers.hasFocus=a.bindingHandlers.hasfocus;a.expressionRewriting.twoWayBindings.hasFocus=!0;a.bindingHandlers.html={init:function(){return{controlsDescendantBindings:!0}},update:function(b,c){a.utils.setHtml(b,c())}};L("if");L("ifnot",!1,!0);L("with",!0,!1,function(a,c){return a.createStaticChildContext(c)});var N={};a.bindingHandlers.options={init:function(b){if("select"!==a.utils.tagNameLower(b))throw Error("options binding applies only to SELECT elements"); +for(;0a.utils.ieVersion)var k=a.utils.domData.nextKey(),m=a.utils.domData.nextKey(), +g=function(b){var c=this.activeElement;(c=c&&a.utils.domData.get(c,m))&&c(b)},p=function(b,c){var d=b.ownerDocument;a.utils.domData.get(d,k)||(a.utils.domData.set(d,k,!0),a.utils.registerEventHandler(d,"selectionchange",g));a.utils.domData.set(b,m,c)};a.bindingHandlers.textInput={init:function(b,e,g){var h=b.value,l,k,m=function(c){clearTimeout(l);k=l=n;var d=b.value;h!==d&&(c&&(b._ko_textInputProcessedEvent=c.type),h=d,a.expressionRewriting.writeValueToProperty(e(),g,"textInput",d))},q=function(c){l|| +(k=b.value,c=m.bind(b,{type:c.type}),l=a.utils.setTimeout(c,4))},t=9==a.utils.ieVersion?q:m,u=function(){var c=a.utils.unwrapObservable(e());if(null===c||c===n)c="";k!==n&&c===k?a.utils.setTimeout(u,4):b.value!==c&&(h=c,b.value=c)},r=function(c,d){a.utils.registerEventHandler(b,c,d)};a.bindingHandlers.textInput._forceUpdateOn?a.utils.arrayForEach(a.bindingHandlers.textInput._forceUpdateOn,function(a){"after"==a.slice(0,5)?r(a.slice(5),q):r(a,m)}):10>a.utils.ieVersion?(r("propertychange",function(a){"value"=== +a.propertyName&&t(a)}),8==a.utils.ieVersion&&(r("keyup",m),r("keydown",m)),8<=a.utils.ieVersion&&(p(b,t),r("dragend",q))):(r("input",m),5>d&&"textarea"===a.utils.tagNameLower(b)?(r("keydown",q),r("paste",q),r("cut",q)):11>c?r("keydown",q):4>f&&(r("DOMAutoComplete",m),r("dragdrop",m),r("drop",m)));r("change",m);a.computed(u,null,{disposeWhenNodeIsRemoved:b})}};a.expressionRewriting.twoWayBindings.textInput=!0;a.bindingHandlers.textinput={preprocess:function(a,b,c){c("textInput",a)}}})();a.bindingHandlers.uniqueName= +{init:function(b,c){c()&&(c="ko_unique_"+ ++a.bindingHandlers.uniqueName.currentIndex,a.utils.setElementName(b,c))}};a.bindingHandlers.uniqueName.currentIndex=0;a.bindingHandlers.value={after:["options","foreach"],init:function(b,c,e){if("input"!=b.tagName.toLowerCase()||"checkbox"!=b.type&&"radio"!=b.type){var d=["change"],f=e.get("valueUpdate"),k=!1,m=null;f&&("string"==typeof f&&(f=[f]),a.utils.arrayPushAll(d,f),d=a.utils.arrayGetDistinctValues(d));var g=function(){m=null;k=!1;var d=c(),g=a.selectExtensions.readValue(b); +a.expressionRewriting.writeValueToProperty(d,e,"value",g)};!a.utils.ieVersion||"input"!=b.tagName.toLowerCase()||"text"!=b.type||"off"==b.autocomplete||b.form&&"off"==b.form.autocomplete||-1!=a.utils.arrayIndexOf(d,"propertychange")||(a.utils.registerEventHandler(b,"propertychange",function(){k=!0}),a.utils.registerEventHandler(b,"focus",function(){k=!1}),a.utils.registerEventHandler(b,"blur",function(){k&&g()}));a.utils.arrayForEach(d,function(c){var d=g;a.utils.stringStartsWith(c,"after")&&(d=function(){m= +a.selectExtensions.readValue(b);a.utils.setTimeout(g,0)},c=c.substring(5));a.utils.registerEventHandler(b,c,d)});var p=function(){var d=a.utils.unwrapObservable(c()),g=a.selectExtensions.readValue(b);if(null!==m&&d===m)a.utils.setTimeout(p,0);else if(d!==g)if("select"===a.utils.tagNameLower(b)){var f=e.get("valueAllowUnset");g=function(){a.selectExtensions.writeValue(b,d,f)};g();f||d===a.selectExtensions.readValue(b)?a.utils.setTimeout(g,0):a.dependencyDetection.ignore(a.utils.triggerEvent,null,[b, +"change"])}else a.selectExtensions.writeValue(b,d)};a.computed(p,null,{disposeWhenNodeIsRemoved:b})}else a.applyBindingAccessorsToNode(b,{checkedValue:c})},update:function(){}};a.expressionRewriting.twoWayBindings.value=!0;a.bindingHandlers.visible={update:function(b,c){c=a.utils.unwrapObservable(c());var e="none"!=b.style.display;c&&!e?b.style.display="":!c&&e&&(b.style.display="none")}};(function(b){a.bindingHandlers[b]={init:function(c,e,d,f,k){return a.bindingHandlers.event.init.call(this,c,function(){var a= +{};a[b]=e();return a},d,f,k)}}})("click");a.templateEngine=function(){};a.templateEngine.prototype.renderTemplateSource=function(a,c,e,d){throw Error("Override renderTemplateSource");};a.templateEngine.prototype.createJavaScriptEvaluatorBlock=function(a){throw Error("Override createJavaScriptEvaluatorBlock");};a.templateEngine.prototype.makeTemplateSource=function(b,c){if("string"==typeof b){c=c||t;c=c.getElementById(b);if(!c)throw Error("Cannot find template with ID "+b);return new a.templateSources.domElement(c)}if(1== +b.nodeType||8==b.nodeType)return new a.templateSources.anonymousTemplate(b);throw Error("Unknown template type: "+b);};a.templateEngine.prototype.renderTemplate=function(a,c,e,d){a=this.makeTemplateSource(a,d);return this.renderTemplateSource(a,c,e,d)};a.templateEngine.prototype.isTemplateRewritten=function(a,c){return!1===this.allowTemplateRewriting?!0:this.makeTemplateSource(a,c).data("isRewritten")};a.templateEngine.prototype.rewriteTemplate=function(a,c,e){a=this.makeTemplateSource(a,e);c=c(a.text()); +a.text(c);a.data("isRewritten",!0)};a.exportSymbol("templateEngine",a.templateEngine);a.templateRewriting=function(){function b(b,c,e,m){b=a.expressionRewriting.parseObjectLiteral(b);for(var d=a.expressionRewriting.bindingRewriteValidators,f=0;f]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,e=/\x3c!--\s*ko\b\s*([\s\S]*?)\s*--\x3e/g;return{ensureTemplateIsRewritten:function(b,c,e){c.isTemplateRewritten(b,e)||c.rewriteTemplate(b,function(b){return a.templateRewriting.memoizeBindingAttributeSyntax(b,c)},e)},memoizeBindingAttributeSyntax:function(a, +f){return a.replace(c,function(a,c,d,e,h){return b(h,c,d,f)}).replace(e,function(a,c){return b(c,"\x3c!-- ko --\x3e","#comment",f)})},applyMemoizedBindingsToNextSibling:function(b,c){return a.memoization.memoize(function(d,e){(d=d.nextSibling)&&d.nodeName.toLowerCase()===c&&a.applyBindingAccessorsToNode(d,b,e)})}}}();a.exportSymbol("__tr_ambtns",a.templateRewriting.applyMemoizedBindingsToNextSibling);(function(){a.templateSources={};a.templateSources.domElement=function(b){if(this.domElement=b){var c= +a.utils.tagNameLower(b);this.templateType="script"===c?1:"textarea"===c?2:"template"==c&&b.content&&11===b.content.nodeType?3:4}};a.templateSources.domElement.prototype.text=function(){var b=1===this.templateType?"text":2===this.templateType?"value":"innerHTML";if(0==arguments.length)return this.domElement[b];var c=arguments[0];"innerHTML"===b?a.utils.setHtml(this.domElement,c):this.domElement[b]=c};var b=a.utils.domData.nextKey()+"_";a.templateSources.domElement.prototype.data=function(c){if(1=== arguments.length)return a.utils.domData.get(this.domElement,b+c);a.utils.domData.set(this.domElement,b+c,arguments[1])};var c=a.utils.domData.nextKey();a.templateSources.domElement.prototype.nodes=function(){var b=this.domElement;if(0==arguments.length)return(a.utils.domData.get(b,c)||{}).containerData||(3===this.templateType?b.content:4===this.templateType?b:n);a.utils.domData.set(b,c,{containerData:arguments[0]})};a.templateSources.anonymousTemplate=function(a){this.domElement=a};a.templateSources.anonymousTemplate.prototype= new a.templateSources.domElement;a.templateSources.anonymousTemplate.prototype.constructor=a.templateSources.anonymousTemplate;a.templateSources.anonymousTemplate.prototype.text=function(){if(0==arguments.length){var b=a.utils.domData.get(this.domElement,c)||{};b.textData===n&&b.containerData&&(b.textData=b.containerData.innerHTML);return b.textData}a.utils.domData.set(this.domElement,c,{textData:arguments[0]})};a.exportSymbol("templateSources",a.templateSources);a.exportSymbol("templateSources.domElement", -a.templateSources.domElement);a.exportSymbol("templateSources.anonymousTemplate",a.templateSources.anonymousTemplate)})();(function(){function b(b,c,d){var e;for(c=a.virtualElements.nextSibling(c);b&&(e=b)!==c;)b=a.virtualElements.nextSibling(e),d(e,b)}function c(c,d){if(c.length){var e=c[0],f=c[c.length-1],h=e.parentNode,l=a.bindingProvider.instance,k=l.preprocessNode;if(k){b(e,f,function(a,b){var c=a.previousSibling,d=k.call(l,a);d&&(a===e&&(e=d[0]||b),a===f&&(f=d[d.length-1]||c))});c.length=0; -if(!e)return;e===f?c.push(e):(c.push(e,f),a.utils.fixUpContinuousNodeArray(c,h))}b(e,f,function(b){1!==b.nodeType&&8!==b.nodeType||a.applyBindings(d,b)});b(e,f,function(b){1!==b.nodeType&&8!==b.nodeType||a.memoization.unmemoizeDomNodeAndDescendants(b,[d])});a.utils.fixUpContinuousNodeArray(c,h)}}function d(a){return a.nodeType?a:0a.utils.ieVersion?0:b.nodes)?b.nodes():null)return a.utils.makeArray(c.cloneNode(!0).childNodes);b=b.text();return a.utils.parseHtmlFragment(b,e)};a.nativeTemplateEngine.instance=new a.nativeTemplateEngine;a.setTemplateEngine(a.nativeTemplateEngine.instance);a.exportSymbol("nativeTemplateEngine", -a.nativeTemplateEngine);(function(){a.jqueryTmplTemplateEngine=function(){var a=this.jQueryTmplVersion=function(){if(!t||!t.tmpl)return 0;try{if(0<=t.tmpl.tag.tmpl.open.toString().indexOf("__"))return 2}catch(d){}return 1}();this.renderTemplateSource=function(b,c,f,k){k=k||r;f=f||{};if(2>a)throw Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.");var d=b.data("precompiled");d||(d=b.text()||"",d=t.template(null,"{{ko_with $item.koBindingContext}}"+d+"{{/ko_with}}"), -b.data("precompiled",d));b=[c.$data];c=t.extend({koBindingContext:c},f.templateOptions);c=t.tmpl(d,b,c);c.appendTo(k.createElement("div"));t.fragments={};return c};this.createJavaScriptEvaluatorBlock=function(a){return"{{ko_code ((function() { return "+a+" })()) }}"};this.addTemplate=function(a,b){r.write(" \ No newline at end of file + OpenEVSE

OpenEVSE

WiFi

WiFi Setup

Mode:

Connect to network:

Select Network RSSI dBm
Scanning...

Passkey:

Connecting to a local WiFi network is not essential. OpenEVSE can be configured and controlled while in standalone WiFi AP (Access Point) mode:

Note: remote logging features e.g Emoncms will not work while in AP standalone mode

Connecting to ...

Please connect this device to and navigate to the IP address displayed on your OpenEVSE display.

Alternatively you can use http://openevse.local/ or http://openevse/

\ No newline at end of file diff --git a/src/web_server.home.js.h b/src/web_server.home.js.h index b8ae9dd..686dcbe 100644 --- a/src/web_server.home.js.h +++ b/src/web_server.home.js.h @@ -1,55 +1,56 @@ static const char CONTENT_HOME_JS[] PROGMEM = "function OpenEVSEError(f,b){this.type=f;this.message=void 0===b?\"\":b}function OpenEVSERequest(){var f=this;f._done=function(){};f._error=function(){};f._always=function(){};f.done=function(b){f._done=b;return f};f.error=function(b){f._error=b;return f};f.always=function(b){f._always=b;return f}}\n" "function OpenEVSE(f){var b=this;b._version=\"0.1\";b._endpoint=f;b.states={0:\"unknown\",1:\"not connected\",2:\"connected\",3:\"charging\",4:\"vent required\",5:\"diode check failed\",6:\"gfci fault\",7:\"no ground\",8:\"stuck relay\",9:\"gfci self-test failure\",10:\"over temperature\",254:\"sleeping\",255:\"disabled\"};b._lcd_colors=\"off red green yellow blue violet teal white\".split(\" \");b._status_functions={disable:\"FD\",enable:\"FE\",sleep:\"FS\"};b._lcd_types=[\"monochrome\",\"rgb\"];b._service_levels=[\"A\",\"1\",\"2\"];b.STANDARD_SERIAL_TIMEOUT=\n" - ".5;b.RESET_SERIAL_TIMEOUT=10;b.STATUS_SERIAL_TIMEOUT=0;b.SYNC_SERIAL_TIMEOUT=.5;b.NEWLINE_MAX_AGE=5;b.CORRECT_RESPONSE_PREFIXES=(\"$OK\",\"$NK\");b.regex=/\\$([^\\^]*)(\\^..)?/;b._request=function(d,a){a=void 0===a?function(){}:a;var c=\"$\"+(Array.isArray(d)?d.join(\"+\"):d),e=new OpenEVSERequest;$.get(b._endpoint+\"?json=1&rapi=\"+encodeURI(c),function(c){c=c.ret.match(b.regex);null!==c?(c=c[1].split(\" \"),\"OK\"===c[0]?(a(c.slice(1)),e._done(c.slice(1))):e._error(new OpenEVSEError(\"OperationFailed\"))):e._error(new OpenEVSEError(\"UnexpectedResponse\"))},\n" - "\"json\").always(function(){e._always()}).fail(function(){e._error(new OpenEVSEError(\"RequestFailed\"))});return e};b._flags=function(d){var a=b._request(\"GE\",function(b){var c=parseInt(b[1],16);isNaN(c)?a._error(new OpenEVSEError(\"ParseError\",'Failed to parse \"'+b[0]+'\"')):d({service_level:(c&1)+1,diode_check:0===(c&2),vent_required:0===(c&4),ground_check:0===(c&8),stuck_relay_check:0===(c&16),auto_service_level:0===(c&32),auto_start:0===(c&64),serial_debug:0!==(c&128),lcd_type:0!==(c&256)?\"monochrome\":\n" - "\"rgb\",gfi_self_test:0===(c&512),temp_check:0===(c&1024)})});return a};b.reset=function(){return b._request(\"FR\")};b.time=function(d,a){a=void 0===a?!1:a;if(!1!==a)return b._request([\"S1\",a.getFullYear()-2E3,a.getMonth()+1,a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds()],function(){b.time(d)});var c=b._request(\"GT\",function(a){if(6<=a.length){var b=parseInt(a[0]),e=parseInt(a[1]),h=parseInt(a[2]),f=parseInt(a[3]),l=parseInt(a[4]),m=parseInt(a[5]);isNaN(b)||isNaN(e)||isNaN(h)||isNaN(f)||isNaN(l)||\n" - "isNaN(m)?c._error(new OpenEVSEError(\"ParseError\",'Could not parse time \"'+a.join(\" \")+'\" arguments')):165==b&&165==e&&165==h&&165==f&&165==l&&85==m?(a=new Date(0),d(a,!1)):(a=new Date(2E3+b,e-1,h,f,l,m),d(a,!0))}else c._error(new OpenEVSEError(\"ParseError\",\"Only received \"+a.length+\" arguments\"))});return c};b.timer=function(d,a,c){a=void 0===a?!1:a;c=void 0===c?!1:c;if(!1!==a&&!1!==c){var e=/([01]\\d|2[0-3]):([0-5]\\d)/,g=a.match(e),e=c.match(e);return null!==g&&null!==e?b._request([\"ST\",parseInt(g[1]),\n" - "parseInt(g[2]),parseInt(e[1]),parseInt(e[2])],function(){b.timer(d)}):!1}var f=b._request(\"GD\",function(b){if(4<=b.length){var e=parseInt(b[0]),g=parseInt(b[1]),h=parseInt(b[2]),k=parseInt(b[3]);isNaN(e)||isNaN(g)||isNaN(h)||isNaN(k)?f._error(new OpenEVSEError(\"ParseError\",'Could not parse time \"'+b.join(\" \")+'\" arguments')):0===e&&0===g&&0===h&&0===k?d(!1,\"--:--\",\"--:--\"):(a=(10>e?\"0\":\"\")+e+\":\"+((10>g?\"0\":\"\")+g),c=(10>h?\"0\":\"\")+h+\":\"+((10>k?\"0\":\"\")+k),d(!0,a,c))}else f._error(new OpenEVSEError(\"ParseError\",\n" - "\"Only received \"+b.length+\" arguments\"))});return f};b.cancelTimer=function(d){return b._request([\"ST\",0,0,0,0],function(){d()})};b.time_limit=function(d,a){a=void 0===a?!1:a;if(!1!==a)return b._request([\"S3\",Math.round(a/15)],function(){b.time_limit(d)});var c=b._request(\"G3\",function(a){if(1<=a.length){var b=parseInt(a[0]);isNaN(b)?c._error(new OpenEVSEError(\"ParseError\",'Could not parse \"'+a.join(\" \")+'\" arguments')):d(15*b)}else c._error(new OpenEVSEError(\"ParseError\",\"Only received \"+a.length+\n" - "\" arguments\"))});return c};b.charge_limit=function(d,a){a=void 0===a?!1:a;if(!1!==a)return b._request([\"SH\",a],function(){b.charge_limit(d)});var c=b._request(\"GH\",function(a){if(1<=a.length){var b=parseInt(a[0]);isNaN(b)?c._error(new OpenEVSEError(\"ParseError\",'Could not parse \"'+a.join(\" \")+'\" arguments')):d(b)}else c._error(new OpenEVSEError(\"ParseError\",\"Only received \"+a.length+\" arguments\"))});return c};b.ammeter_settings=function(d,a,c){a=void 0===a?!1:a;c=void 0===c?!1:c;if(!1!==a&&!1!==c)return b._request([\"SA\",\n" - "a,c],function(){d(a,c)});var e=b._request(\"GA\",function(a){if(2<=a.length){var b=parseInt(a[0]),c=parseInt(a[0]);isNaN(b)||isNaN(c)?e._error(new OpenEVSEError(\"ParseError\",'Could not parse \"'+a.join(\" \")+'\" arguments')):d(b,c)}else e._error(new OpenEVSEError(\"ParseError\",\"Only received \"+a.length+\" arguments\"))});return e};b.current_capacity=function(d,a){a=void 0===a?!1:a;if(!1!==a)return b._request([\"SC\",a],function(){b.current_capacity(d)});var c=b._request(\"GE\",function(a){if(1<=a.length){var b=\n" - "parseInt(a[0]);isNaN(b)?c._error(new OpenEVSEError(\"ParseError\",'Could not parse \"'+a.join(\" \")+'\" arguments')):d(b)}else c._error(new OpenEVSEError(\"ParseError\",\"Only received \"+a.length+\" arguments\"))});return c};b.service_level=function(d,a){a=void 0===a?!1:a;return!1!==a?b._request([\"SL\",b._service_levels[a]],function(){b.service_level(d)}):b._flags(function(a){d(a.auto_service_level?0:a.service_level,a.service_level)})};b.current_capacity_range=function(d){var a=b._request(\"GC\",function(b){if(2<=\n" - "b.length){var c=parseInt(b[0]),f=parseInt(b[1]);isNaN(c)||isNaN(f)?a._error(new OpenEVSEError(\"ParseError\",'Could not parse \"'+b.join(\" \")+'\" arguments')):d(c,f)}else a._error(new OpenEVSEError(\"ParseError\",\"Only received \"+b.length+\" arguments\"))});return a};b.status=function(d,a){a=void 0===a?!1:a;if(!1!==a)return b._request([b._status_functions[a]],function(){b.status(d)});var c=b._request(\"GS\",function(a){if(1<=a.length){var b=parseInt(a[0]);isNaN(b)?c._error(new OpenEVSEError(\"ParseError\",'Could not parse \"'+\n" - "a.join(\" \")+'\" arguments')):d(b)}else c._error(new OpenEVSEError(\"ParseError\",\"Only received \"+a.length+\" arguments\"))});return c};b.diode_check=function(d,a){a=void 0===a?null:a;return null!==a?b._request([\"FF\",\"D\",a?\"1\":\"0\"],function(){b.diode_check(d)}):b._flags(function(a){d(a.diode_check)})};b.gfi_self_test=function(d,a){a=void 0===a?null:a;return null!==a?b._request([\"FF F\",a?\"1\":\"0\"],function(){b.gfi_self_test(d)}):b._flags(function(a){d(a.gfi_self_test)})};b.ground_check=function(d,a){a=void 0===\n" - "a?null:a;return null!==a?b._request([\"FF G\",a?\"1\":\"0\"],function(){b.ground_check(d)}):b._flags(function(a){d(a.ground_check)})};b.stuck_relay_check=function(d,a){a=void 0===a?null:a;return null!==a?b._request([\"FF R\",a?\"1\":\"0\"],function(){b.stuck_relay_check(d)}):b._flags(function(a){d(a.stuck_relay_check)})};b.vent_required=function(d,a){a=void 0===a?null:a;return null!==a?b._request([\"FF V\",a?\"1\":\"0\"],function(){b.vent_required(d)}):b._flags(function(a){d(a.vent_required)})};b.temp_check=function(d,\n" - "a){a=void 0===a?null:a;return null!==a?b._request([\"FF T\",a?\"1\":\"0\"],function(){b.temp_check(d)}):b._flags(function(a){d(a.temp_check)})};b.over_temperature_thresholds=function(d,a,c){a=void 0===a?!1:a;c=void 0===c?!1:c;if(!1!==a&&!1!==c)return b._request([\"SO\",a,c],function(){b.over_temperature_thresholds(d)});var e=b._request(\"GO\",function(a){if(2<=a.length){var b=parseInt(a[0]),c=parseInt(a[0]);isNaN(b)||isNaN(c)?e._error(new OpenEVSEError(\"ParseError\",'Could not parse \"'+a.join(\" \")+'\" arguments')):\n" - "d(b,c)}else e._error(new OpenEVSEError(\"ParseError\",\"Only received \"+a.length+\" arguments\"))});return e};b.setEndpoint=function(d){b._endpoint=d}};\n" + ".5;b.RESET_SERIAL_TIMEOUT=10;b.STATUS_SERIAL_TIMEOUT=0;b.SYNC_SERIAL_TIMEOUT=.5;b.NEWLINE_MAX_AGE=5;b.CORRECT_RESPONSE_PREFIXES=(\"$OK\",\"$NK\");b.regex=/\\$([^\\^]*)(\\^..)?/;b._request=function(c,a){a=void 0===a?function(){}:a;c=\"$\"+(Array.isArray(c)?c.join(\"+\"):c);var d=new OpenEVSERequest;$.get(b._endpoint+\"?json=1&rapi=\"+encodeURI(c),function(e){e=e.ret.match(b.regex);null!==e?(e=e[1].split(\" \"),\"OK\"===e[0]?(a(e.slice(1)),d._done(e.slice(1))):d._error(new OpenEVSEError(\"OperationFailed\"))):d._error(new OpenEVSEError(\"UnexpectedResponse\"))},\n" + "\"json\").always(function(){d._always()}).fail(function(){d._error(new OpenEVSEError(\"RequestFailed\"))});return d};b._flags=function(c){var a=b._request(\"GE\",function(b){var e=parseInt(b[1],16);isNaN(e)?a._error(new OpenEVSEError(\"ParseError\",'Failed to parse \"'+b[0]+'\"')):c({service_level:(e&1)+1,diode_check:0===(e&2),vent_required:0===(e&4),ground_check:0===(e&8),stuck_relay_check:0===(e&16),auto_service_level:0===(e&32),auto_start:0===(e&64),serial_debug:0!==(e&128),lcd_type:0!==(e&256)?\"monochrome\":\n" + "\"rgb\",gfi_self_test:0===(e&512),temp_check:0===(e&1024)})});return a};b.reset=function(){return b._request(\"FR\")};b.time=function(c,a){a=void 0===a?!1:a;if(!1!==a)return b._request([\"S1\",a.getFullYear()-2E3,a.getMonth()+1,a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds()],function(){b.time(c)});var d=b._request(\"GT\",function(a){if(6<=a.length){var b=parseInt(a[0]),e=parseInt(a[1]),h=parseInt(a[2]),f=parseInt(a[3]),l=parseInt(a[4]),m=parseInt(a[5]);isNaN(b)||isNaN(e)||isNaN(h)||isNaN(f)||isNaN(l)||\n" + "isNaN(m)?d._error(new OpenEVSEError(\"ParseError\",'Could not parse time \"'+a.join(\" \")+'\" arguments')):165==b&&165==e&&165==h&&165==f&&165==l&&85==m?(a=new Date(0),c(a,!1)):(a=new Date(2E3+b,e-1,h,f,l,m),c(a,!0))}else d._error(new OpenEVSEError(\"ParseError\",\"Only received \"+a.length+\" arguments\"))});return d};b.timer=function(c,a,d){a=void 0===a?!1:a;d=void 0===d?!1:d;if(!1!==a&&!1!==d){var e=/([01]\\d|2[0-3]):([0-5]\\d)/,g=a.match(e);e=d.match(e);return null!==g&&null!==e?b._request([\"ST\",parseInt(g[1]),\n" + "parseInt(g[2]),parseInt(e[1]),parseInt(e[2])],function(){b.timer(c)}):!1}var f=b._request(\"GD\",function(b){if(4<=b.length){var e=parseInt(b[0]),g=parseInt(b[1]),h=parseInt(b[2]),k=parseInt(b[3]);isNaN(e)||isNaN(g)||isNaN(h)||isNaN(k)?f._error(new OpenEVSEError(\"ParseError\",'Could not parse time \"'+b.join(\" \")+'\" arguments')):0===e&&0===g&&0===h&&0===k?c(!1,\"--:--\",\"--:--\"):(a=(10>e?\"0\":\"\")+e+\":\"+((10>g?\"0\":\"\")+g),d=(10>h?\"0\":\"\")+h+\":\"+((10>k?\"0\":\"\")+k),c(!0,a,d))}else f._error(new OpenEVSEError(\"ParseError\",\n" + "\"Only received \"+b.length+\" arguments\"))});return f};b.cancelTimer=function(c){return b._request([\"ST\",0,0,0,0],function(){c()})};b.time_limit=function(c,a){a=void 0===a?!1:a;if(!1!==a)return b._request([\"S3\",Math.round(a/15)],function(){b.time_limit(c)});var d=b._request(\"G3\",function(a){if(1<=a.length){var b=parseInt(a[0]);isNaN(b)?d._error(new OpenEVSEError(\"ParseError\",'Could not parse \"'+a.join(\" \")+'\" arguments')):c(15*b)}else d._error(new OpenEVSEError(\"ParseError\",\"Only received \"+a.length+\n" + "\" arguments\"))});return d};b.charge_limit=function(c,a){a=void 0===a?!1:a;if(!1!==a)return b._request([\"SH\",a],function(){b.charge_limit(c)});var d=b._request(\"GH\",function(a){if(1<=a.length){var b=parseInt(a[0]);isNaN(b)?d._error(new OpenEVSEError(\"ParseError\",'Could not parse \"'+a.join(\" \")+'\" arguments')):c(b)}else d._error(new OpenEVSEError(\"ParseError\",\"Only received \"+a.length+\" arguments\"))});return d};b.ammeter_settings=function(c,a,d){a=void 0===a?!1:a;d=void 0===d?!1:d;if(!1!==a&&!1!==d)return b._request([\"SA\",\n" + "a,d],function(){c(a,d)});var e=b._request(\"GA\",function(a){if(2<=a.length){var b=parseInt(a[0]),d=parseInt(a[0]);isNaN(b)||isNaN(d)?e._error(new OpenEVSEError(\"ParseError\",'Could not parse \"'+a.join(\" \")+'\" arguments')):c(b,d)}else e._error(new OpenEVSEError(\"ParseError\",\"Only received \"+a.length+\" arguments\"))});return e};b.current_capacity=function(c,a){a=void 0===a?!1:a;if(!1!==a)return b._request([\"SC\",a],function(){b.current_capacity(c)});var d=b._request(\"GE\",function(a){if(1<=a.length){var b=\n" + "parseInt(a[0]);isNaN(b)?d._error(new OpenEVSEError(\"ParseError\",'Could not parse \"'+a.join(\" \")+'\" arguments')):c(b)}else d._error(new OpenEVSEError(\"ParseError\",\"Only received \"+a.length+\" arguments\"))});return d};b.service_level=function(c,a){a=void 0===a?!1:a;return!1!==a?b._request([\"SL\",b._service_levels[a]],function(){b.service_level(c)}):b._flags(function(a){c(a.auto_service_level?0:a.service_level,a.service_level)})};b.current_capacity_range=function(c){var a=b._request(\"GC\",function(b){if(2<=\n" + "b.length){var d=parseInt(b[0]),f=parseInt(b[1]);isNaN(d)||isNaN(f)?a._error(new OpenEVSEError(\"ParseError\",'Could not parse \"'+b.join(\" \")+'\" arguments')):c(d,f)}else a._error(new OpenEVSEError(\"ParseError\",\"Only received \"+b.length+\" arguments\"))});return a};b.status=function(c,a){a=void 0===a?!1:a;if(!1!==a)return b._request([b._status_functions[a]],function(){b.status(c)});var d=b._request(\"GS\",function(a){if(1<=a.length){var b=parseInt(a[0]);isNaN(b)?d._error(new OpenEVSEError(\"ParseError\",'Could not parse \"'+\n" + "a.join(\" \")+'\" arguments')):c(b)}else d._error(new OpenEVSEError(\"ParseError\",\"Only received \"+a.length+\" arguments\"))});return d};b.diode_check=function(c,a){a=void 0===a?null:a;return null!==a?b._request([\"FF\",\"D\",a?\"1\":\"0\"],function(){b.diode_check(c)}):b._flags(function(a){c(a.diode_check)})};b.gfi_self_test=function(c,a){a=void 0===a?null:a;return null!==a?b._request([\"FF F\",a?\"1\":\"0\"],function(){b.gfi_self_test(c)}):b._flags(function(a){c(a.gfi_self_test)})};b.ground_check=function(c,a){a=void 0===\n" + "a?null:a;return null!==a?b._request([\"FF G\",a?\"1\":\"0\"],function(){b.ground_check(c)}):b._flags(function(a){c(a.ground_check)})};b.stuck_relay_check=function(c,a){a=void 0===a?null:a;return null!==a?b._request([\"FF R\",a?\"1\":\"0\"],function(){b.stuck_relay_check(c)}):b._flags(function(a){c(a.stuck_relay_check)})};b.vent_required=function(c,a){a=void 0===a?null:a;return null!==a?b._request([\"FF V\",a?\"1\":\"0\"],function(){b.vent_required(c)}):b._flags(function(a){c(a.vent_required)})};b.temp_check=function(c,\n" + "a){a=void 0===a?null:a;return null!==a?b._request([\"FF T\",a?\"1\":\"0\"],function(){b.temp_check(c)}):b._flags(function(a){c(a.temp_check)})};b.over_temperature_thresholds=function(c,a,d){a=void 0===a?!1:a;d=void 0===d?!1:d;if(!1!==a&&!1!==d)return b._request([\"SO\",a,d],function(){b.over_temperature_thresholds(c)});var e=b._request(\"GO\",function(a){if(2<=a.length){var b=parseInt(a[0]),d=parseInt(a[0]);isNaN(b)||isNaN(d)?e._error(new OpenEVSEError(\"ParseError\",'Could not parse \"'+a.join(\" \")+'\" arguments')):\n" + "c(b,d)}else e._error(new OpenEVSEError(\"ParseError\",\"Only received \"+a.length+\" arguments\"))});return e};b.press_button=function(c){return b._request(\"F1\",function(){c()})};b.setEndpoint=function(c){b._endpoint=c}};\n" "function RapiViewModel(c){var a=this;a.baseEndpoint=c;a.rapiSend=ko.observable(!1);a.cmd=ko.observable(\"\");a.ret=ko.observable(\"\");a.send=function(){a.rapiSend(!0);$.get(a.baseEndpoint()+\"/r?json=1&rapi=\"+encodeURI(a.cmd()),function(b){a.ret(\">\"+b.ret);a.cmd(b.cmd)},\"json\").always(function(){a.rapiSend(!1)})}};\n" "function TimeViewModel(e){function d(a){return(10>a?\"0\":\"\")+a}function g(){f=setInterval(function(){a.automaticTime()&&a.nowTimedate(new Date(a.evseTimedate().getTime()+(new Date-a.localTimedate())));e.isCharging()&&a.elapsedNow(new Date(1E3*e.status.elapsed()+(new Date-a.elapsedLocal())));a.divertUpdateNow(new Date(1E3*e.status.divert_update()+(new Date-a.divertUpdateLocal())))},1E3)}var a=this;a.evseTimedate=ko.observable(new Date);a.localTimedate=ko.observable(new Date);a.nowTimedate=ko.observable(null);\n" "a.hasRTC=ko.observable(!0);a.elapsedNow=ko.observable(new Date(0));a.elapsedLocal=ko.observable(new Date);a.divertUpdateNow=ko.observable(new Date(0));a.divertUpdateLocal=ko.observable(new Date);a.date=ko.pureComputed({read:function(){if(null===a.nowTimedate())return\"\";var b=a.nowTimedate();return b.getFullYear()+\"-\"+d(b.getMonth()+1)+\"-\"+d(b.getDate())},write:function(b){a.evseTimedate(new Date(b));a.localTimedate(new Date)}});a.time=ko.pureComputed({read:function(){if(null===a.nowTimedate())return\"--:--:--\";\n" - "var b=a.nowTimedate();return d(b.getHours())+\":\"+d(b.getMinutes())+\":\"+d(b.getSeconds())},write:function(b){b=b.split(\":\");var c=a.evseTimedate();c.setHours(parseInt(b[0]));c.setMinutes(parseInt(b[1]));a.evseTimedate(c);a.localTimedate(new Date)}});a.elapsed=ko.pureComputed(function(){if(null===a.nowTimedate())return\"0:00:00\";var b=a.elapsedNow().getTime(),b=Math.round(b/1E3),c=b%60,b=Math.round(b/60);return Math.round(b/60)+\":\"+d(b%60)+\":\"+d(c)});e.status.elapsed.subscribe(function(b){a.elapsedNow(new Date(1E3*\n" + "var b=a.nowTimedate();return d(b.getHours())+\":\"+d(b.getMinutes())+\":\"+d(b.getSeconds())},write:function(b){b=b.split(\":\");var c=a.evseTimedate();c.setHours(parseInt(b[0]));c.setMinutes(parseInt(b[1]));a.evseTimedate(c);a.localTimedate(new Date)}});a.elapsed=ko.pureComputed(function(){if(null===a.nowTimedate())return\"0:00:00\";var b=a.elapsedNow().getTime();b=Math.round(b/1E3);var c=b%60;b=Math.round(b/60);return Math.round(b/60)+\":\"+d(b%60)+\":\"+d(c)});e.status.elapsed.subscribe(function(b){a.elapsedNow(new Date(1E3*\n" "b));a.elapsedLocal(new Date)});a.divert_update=ko.pureComputed(function(){if(null===a.nowTimedate())return!1;var b=a.divertUpdateNow().getTime();return Math.round(b/1E3)});e.status.divert_update.subscribe(function(b){a.divertUpdateNow(new Date(1E3*b));a.divertUpdateLocal(new Date)});var f=null;a.automaticTime=ko.observable(!0);a.setTime=function(){var b=a.automaticTime()?new Date:a.evseTimedate();e.openevse.time(a.timeUpdate,b)};a.timeUpdate=function(b,c){a.hasRTC(void 0===c?!0:c);null!==f&&(clearInterval(f),\n" "f=null);a.evseTimedate(b);a.nowTimedate(b);a.localTimedate(new Date);g()}};\n" - "function OpenEvseViewModel(k,l){var a=this,g=ko.pureComputed(function(){return k()+\"/r\"});a.openevse=new OpenEVSE(g());g.subscribe(function(b){a.openevse.setEndpoint(b)});a.status=l;a.time=new TimeViewModel(a);a.serviceLevels=[{name:\"Auto\",value:0},{name:\"1\",value:1},{name:\"2\",value:2}];a.currentLevels=ko.observableArray([]);a.timeLimits=[{name:\"none\",value:0},{name:\"15 min\",value:15},{name:\"30 min\",value:30},{name:\"45 min\",value:45},{name:\"1 hour\",value:60},{name:\"1.5 hours\",value:90},{name:\"2 hours\",\n" + "function OpenEvseViewModel(h,k){var a=this,f=ko.pureComputed(function(){return h()+\"/r\"});a.openevse=new OpenEVSE(f());f.subscribe(function(b){a.openevse.setEndpoint(b)});a.status=k;a.time=new TimeViewModel(a);a.serviceLevels=[{name:\"Auto\",value:0},{name:\"1\",value:1},{name:\"2\",value:2}];a.currentLevels=ko.observableArray([]);a.timeLimits=[{name:\"none\",value:0},{name:\"15 min\",value:15},{name:\"30 min\",value:30},{name:\"45 min\",value:45},{name:\"1 hour\",value:60},{name:\"1.5 hours\",value:90},{name:\"2 hours\",\n" "value:120},{name:\"2.5 hours\",value:150},{name:\"3 hours\",value:180},{name:\"4 hours\",value:240},{name:\"5 hours\",value:300},{name:\"6 hours\",value:360},{name:\"7 hours\",value:420},{name:\"8 hours\",value:480}];a.chargeLimits=[{name:\"none\",value:0},{name:\"1 kWh\",value:1},{name:\"2 kWh\",value:2},{name:\"3 kWh\",value:3},{name:\"4 kWh\",value:4},{name:\"5 kWh\",value:5},{name:\"6 kWh\",value:6},{name:\"7 kWh\",value:7},{name:\"8 kWh\",value:8},{name:\"9 kWh\",value:9},{name:\"10 kWh\",value:10},{name:\"15 kWh\",value:11},{name:\"20 kWh\",\n" "value:12},{name:\"25 kWh\",value:25},{name:\"30 kWh\",value:30},{name:\"35 kWh\",value:35},{name:\"40 kWh\",value:40},{name:\"45 kWh\",value:45},{name:\"50 kWh\",value:50},{name:\"55 kWh\",value:55},{name:\"60 kWh\",value:60},{name:\"70 kWh\",value:70},{name:\"80 kWh\",value:80},{name:\"90 kWh\",value:90}];a.serviceLevel=ko.observable(-1);a.actualServiceLevel=ko.observable(-1);a.minCurrentLevel=ko.observable(-1);a.maxCurrentLevel=ko.observable(-1);a.currentCapacity=ko.observable(-1);a.timeLimit=ko.observable(-1);a.chargeLimit=\n" "ko.observable(-1);a.delayTimerEnabled=ko.observable(!1);a.delayTimerStart=ko.observable(\"--:--\");a.delayTimerStop=ko.observable(\"--:--\");a.gfiSelfTestEnabled=ko.observable(!1);a.groundCheckEnabled=ko.observable(!1);a.stuckRelayEnabled=ko.observable(!1);a.tempCheckEnabled=ko.observable(!1);a.diodeCheckEnabled=ko.observable(!1);a.ventRequiredEnabled=ko.observable(!1);a.allTestsEnabled=ko.pureComputed(function(){return a.gfiSelfTestEnabled()&&a.groundCheckEnabled()&&a.stuckRelayEnabled()&&a.tempCheckEnabled()&&\n" "a.diodeCheckEnabled()&&a.ventRequiredEnabled()});a.tempCheckSupported=ko.observable(!1);a.isConnected=ko.pureComputed(function(){return-1!==[2,3].indexOf(a.status.state())});a.isReady=ko.pureComputed(function(){return-1!==[0,1].indexOf(a.status.state())});a.isCharging=ko.pureComputed(function(){return 3===a.status.state()});a.isError=ko.pureComputed(function(){return-1!==[4,5,6,7,8,9,10].indexOf(a.status.state())});a.isEnabled=ko.pureComputed(function(){return-1!==[0,1,2,3].indexOf(a.status.state())});\n" - "a.isSleeping=ko.pureComputed(function(){return 254===a.status.state()});a.isDisabled=ko.pureComputed(function(){return 255===a.status.state()});a.selectTimeLimit=function(b){if(a.timeLimit()!==b)for(var c=0;c=b){a.timeLimit(d.value);break}}};a.selectChargeLimit=function(b){if(a.chargeLimit()!==b)for(var c=0;c=b){a.chargeLimit(d.value);break}}};var f=[function(){return a.openevse.time(a.time.timeUpdate)},\n" + "a.isSleeping=ko.pureComputed(function(){return 254===a.status.state()});a.isDisabled=ko.pureComputed(function(){return 255===a.status.state()});a.selectTimeLimit=function(b){if(a.timeLimit()!==b)for(var c=0;c=b){a.timeLimit(d.value);break}}};a.selectChargeLimit=function(b){if(a.chargeLimit()!==b)for(var c=0;c=b){a.chargeLimit(d.value);break}}};var e=[function(){return a.openevse.time(a.time.timeUpdate)},\n" "function(){return a.openevse.service_level(function(b,c){a.serviceLevel(b);a.actualServiceLevel(c)})},function(){return a.updateCurrentCapacity()},function(){return a.openevse.current_capacity(function(b){a.currentCapacity(b)})},function(){return a.openevse.time_limit(function(b){a.selectTimeLimit(b)})},function(){return a.openevse.charge_limit(function(b){a.selectChargeLimit(b)})},function(){return a.openevse.gfi_self_test(function(b){a.gfiSelfTestEnabled(b)})},function(){return a.openevse.ground_check(function(b){a.groundCheckEnabled(b)})},\n" "function(){return a.openevse.stuck_relay_check(function(b){a.stuckRelayEnabled(b)})},function(){return a.openevse.temp_check(function(b){a.tempCheckEnabled(b)})},function(){return a.openevse.diode_check(function(b){a.diodeCheckEnabled(b)})},function(){return a.openevse.vent_required(function(b){a.ventRequiredEnabled(b)})},function(){return a.openevse.temp_check(function(){a.tempCheckSupported(!0)},a.tempCheckEnabled()).error(function(){a.tempCheckSupported(!1)})},function(){return a.openevse.timer(function(b,\n" - "c,d){a.delayTimerEnabled(b);a.delayTimerStart(c);a.delayTimerStop(d)})}];a.updateCount=ko.observable(0);a.updateTotal=ko.observable(f.length);a.updateCurrentCapacity=function(){return a.openevse.current_capacity_range(function(b,c){a.minCurrentLevel(b);a.maxCurrentLevel(c);var d=a.currentCapacity();a.currentLevels.removeAll();for(var e=a.minCurrentLevel();e<=a.maxCurrentLevel();e++)a.currentLevels.push({name:e+\" A\",value:e});a.currentCapacity(d)})};a.updatingServiceLevel=ko.observable(!1);a.savedServiceLevel=\n" + "c,d){a.delayTimerEnabled(b);a.delayTimerStart(c);a.delayTimerStop(d)})}];a.updateCount=ko.observable(0);a.updateTotal=ko.observable(e.length);a.updateCurrentCapacity=function(){return a.openevse.current_capacity_range(function(b,c){a.minCurrentLevel(b);a.maxCurrentLevel(c);b=a.currentCapacity();a.currentLevels.removeAll();for(c=a.minCurrentLevel();c<=a.maxCurrentLevel();c++)a.currentLevels.push({name:c+\" A\",value:c});a.currentCapacity(b)})};a.updatingServiceLevel=ko.observable(!1);a.savedServiceLevel=\n" "ko.observable(!1);a.updatingCurrentCapacity=ko.observable(!1);a.savedCurrentCapacity=ko.observable(!1);a.updatingTimeLimit=ko.observable(!1);a.savedTimeLimit=ko.observable(!1);a.updatingChargeLimit=ko.observable(!1);a.savedChargeLimit=ko.observable(!1);a.updatingDelayTimer=ko.observable(!1);a.savedDelayTimer=ko.observable(!1);a.updatingStatus=ko.observable(!1);a.savedStatus=ko.observable(!1);a.updatingGfiSelfTestEnabled=ko.observable(!1);a.savedGfiSelfTestEnabled=ko.observable(!1);a.updatingGroundCheckEnabled=\n" - "ko.observable(!1);a.savedGroundCheckEnabled=ko.observable(!1);a.updatingStuckRelayEnabled=ko.observable(!1);a.savedStuckRelayEnabled=ko.observable(!1);a.updatingTempCheckEnabled=ko.observable(!1);a.savedTempCheckEnabled=ko.observable(!1);a.updatingDiodeCheckEnabled=ko.observable(!1);a.savedDiodeCheckEnabled=ko.observable(!1);a.updatingVentRequiredEnabled=ko.observable(!1);a.savedVentRequiredEnabled=ko.observable(!1);a.setForTime=function(a,c){a(!0);setTimeout(function(){a(!1)},c)};var h=!1;a.subscribe=\n" - "function(){h||(a.serviceLevel.subscribe(function(b){a.updatingServiceLevel(!0);a.openevse.service_level(function(b,d){a.setForTime(a.savedServiceLevel,2E3);a.actualServiceLevel(d);a.updateCurrentCapacity().always(function(){})},b).always(function(){a.updatingServiceLevel(!1)})}),a.currentCapacity.subscribe(function(b){!0!==a.updatingServiceLevel()&&(a.updatingCurrentCapacity(!0),a.openevse.current_capacity(function(c){a.setForTime(a.savedCurrentCapacity,2E3);b!==c&&a.currentCapacity(c)},b).always(function(){a.updatingCurrentCapacity(!1)}))}),\n" + "ko.observable(!1);a.savedGroundCheckEnabled=ko.observable(!1);a.updatingStuckRelayEnabled=ko.observable(!1);a.savedStuckRelayEnabled=ko.observable(!1);a.updatingTempCheckEnabled=ko.observable(!1);a.savedTempCheckEnabled=ko.observable(!1);a.updatingDiodeCheckEnabled=ko.observable(!1);a.savedDiodeCheckEnabled=ko.observable(!1);a.updatingVentRequiredEnabled=ko.observable(!1);a.savedVentRequiredEnabled=ko.observable(!1);a.setForTime=function(a,c){a(!0);setTimeout(function(){a(!1)},c)};var g=!1;a.subscribe=\n" + "function(){g||(a.serviceLevel.subscribe(function(b){a.updatingServiceLevel(!0);a.openevse.service_level(function(b,d){a.setForTime(a.savedServiceLevel,2E3);a.actualServiceLevel(d);a.updateCurrentCapacity().always(function(){})},b).always(function(){a.updatingServiceLevel(!1)})}),a.currentCapacity.subscribe(function(b){!0!==a.updatingServiceLevel()&&(a.updatingCurrentCapacity(!0),a.openevse.current_capacity(function(c){a.setForTime(a.savedCurrentCapacity,2E3);b!==c&&a.currentCapacity(c)},b).always(function(){a.updatingCurrentCapacity(!1)}))}),\n" "a.timeLimit.subscribe(function(b){a.updatingTimeLimit(!0);a.openevse.time_limit(function(c){a.setForTime(a.savedTimeLimit,2E3);b!==c&&a.selectTimeLimit(c)},b).always(function(){a.updatingTimeLimit(!1)})}),a.chargeLimit.subscribe(function(b){a.updatingChargeLimit(!0);a.openevse.charge_limit(function(c){a.setForTime(a.savedChargeLimit,2E3);b!==c&&a.selectChargeLimit(c)},b).always(function(){a.updatingChargeLimit(!1)})}),a.gfiSelfTestEnabled.subscribe(function(b){a.updatingGfiSelfTestEnabled(!0);a.openevse.gfi_self_test(function(c){a.setForTime(a.savedGfiSelfTestEnabled,\n" "2E3);b!==c&&a.gfiSelfTestEnabled(c)},b).always(function(){a.updatingGfiSelfTestEnabled(!1)})}),a.groundCheckEnabled.subscribe(function(b){a.updatingGroundCheckEnabled(!0);a.openevse.ground_check(function(c){a.setForTime(a.savedGroundCheckEnabled,2E3);b!==c&&a.groundCheckEnabled(c)},b).always(function(){a.updatingGroundCheckEnabled(!1)})}),a.stuckRelayEnabled.subscribe(function(b){a.updatingStuckRelayEnabled(!0);a.savedStuckRelayEnabled(!1);a.openevse.stuck_relay_check(function(c){a.savedStuckRelayEnabled(!0);\n" "setTimeout(function(){a.savedStuckRelayEnabled(!1)},2E3);b!==c&&a.stuckRelayEnabled(c)},b).always(function(){a.updatingStuckRelayEnabled(!1)})}),a.tempCheckEnabled.subscribe(function(b){a.updatingTempCheckEnabled(!0);a.openevse.temp_check(function(c){a.setForTime(a.savedTempCheckEnabled,2E3);b!==c&&a.tempCheckEnabled(c)},b).always(function(){a.updatingTempCheckEnabled(!1)})}),a.diodeCheckEnabled.subscribe(function(b){a.updatingDiodeCheckEnabled(!0);a.openevse.diode_check(function(c){a.setForTime(a.savedDiodeCheckEnabled,\n" - "2E3);b!==c&&a.diodeCheckEnabled(c)},b).always(function(){a.updatingDiodeCheckEnabled(!1)})}),a.ventRequiredEnabled.subscribe(function(b){a.updatingVentRequiredEnabled(!0);a.openevse.vent_required(function(c){a.setForTime(a.savedVentRequiredEnabled,2E3);b!==c&&a.ventRequiredEnabled(c)},b).always(function(){a.updatingVentRequiredEnabled(!1)})}),h=!0)};a.update=function(b){b=void 0===b?function(){}:b;a.updateCount(0);a.nextUpdate(b)};a.nextUpdate=function(b){(0,f[a.updateCount()])().always(function(){a.updateCount(a.updateCount()+\n" - "1);a.updateCount()=f}},\"es6-impl\",\"es3\");\n" - "function OpenEvseWiFiViewModel(c,e,d){var a=this;a.baseHost=ko.observable(\"\"!==c?c:\"openevse.local\");a.basePort=ko.observable(e);a.baseProtocol=ko.observable(d);a.baseEndpoint=ko.pureComputed(function(){var b=\"//\"+a.baseHost();80!==a.basePort()&&(b+=\":\"+a.basePort());return b});a.wsEndpoint=ko.pureComputed(function(){var b=\"ws://\"+a.baseHost();\"https:\"===a.baseProtocol()&&(b=\"wss://\"+a.baseHost());80!==a.basePort()&&(b+=\":\"+a.basePort());return b+\"/ws\"});a.config=new ConfigViewModel(a.baseEndpoint);\n" + "2E3);b!==c&&a.diodeCheckEnabled(c)},b).always(function(){a.updatingDiodeCheckEnabled(!1)})}),a.ventRequiredEnabled.subscribe(function(b){a.updatingVentRequiredEnabled(!0);a.openevse.vent_required(function(c){a.setForTime(a.savedVentRequiredEnabled,2E3);b!==c&&a.ventRequiredEnabled(c)},b).always(function(){a.updatingVentRequiredEnabled(!1)})}),g=!0)};a.update=function(b){b=void 0===b?function(){}:b;a.updateCount(0);a.nextUpdate(b)};a.nextUpdate=function(b){(0,e[a.updateCount()])().always(function(){a.updateCount(a.updateCount()+\n" + "1);a.updateCount()c||(a.updatingStatus(!0),!a.delayTimerEnabled()||\"sleep\"!==b&&\"enable\"!==b?a.openevse.status(function(b){a.status.state(b)},b).always(function(){a.updatingStatus(!1)}):a.openevse.press_button(function(){b=!1}).always(function(){a.openevse.status(function(b){a.status.state(b)},b).always(function(){a.updatingStatus(!1)})}))};a.restartFetching=ko.observable(!1);a.restart=function(){confirm(\"Restart OpenEVSE? Current config will be saved, takes approximately 10s.\")&&\n" + "(a.restartFetching(!0),a.openevse.reset().always(function(){a.restartFetching(!1)}))}};\n" + "var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.checkStringArgs=function(c,f,d){if(null==c)throw new TypeError(\"The 'this' value for String.prototype.\"+d+\" must not be null or undefined\");if(f instanceof RegExp)throw new TypeError(\"First argument to String.prototype.\"+d+\" must not be a regular expression\");return c+\"\"};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;\n" + "$jscomp.defineProperty=$jscomp.ASSUME_ES5||\"function\"==typeof Object.defineProperties?Object.defineProperty:function(c,f,d){c!=Array.prototype&&c!=Object.prototype&&(c[f]=d.value)};$jscomp.getGlobal=function(c){return\"undefined\"!=typeof window&&window===c?c:\"undefined\"!=typeof global&&null!=global?global:c};$jscomp.global=$jscomp.getGlobal(this);\n" + "$jscomp.polyfill=function(c,f,d,a){if(f){d=$jscomp.global;c=c.split(\".\");for(a=0;a=e}},\"es6\",\"es3\");\n" + "function OpenEvseWiFiViewModel(c,f,d){var a=this;a.baseHost=ko.observable(\"\"!==c?c:\"openevse.local\");a.basePort=ko.observable(f);a.baseProtocol=ko.observable(d);a.baseEndpoint=ko.pureComputed(function(){var b=\"//\"+a.baseHost();80!==a.basePort()&&(b+=\":\"+a.basePort());return b});a.wsEndpoint=ko.pureComputed(function(){var b=\"ws://\"+a.baseHost();\"https:\"===a.baseProtocol()&&(b=\"wss://\"+a.baseHost());80!==a.basePort()&&(b+=\":\"+a.basePort());return b+\"/ws\"});a.config=new ConfigViewModel(a.baseEndpoint);\n" "a.status=new StatusViewModel(a.baseEndpoint);a.rapi=new RapiViewModel(a.baseEndpoint);a.scan=new WiFiScanViewModel(a.baseEndpoint);a.wifi=new WiFiConfigViewModel(a.baseEndpoint,a.config,a.status,a.scan);a.openevse=new OpenEvseViewModel(a.baseEndpoint,a.status);a.initialised=ko.observable(!1);a.updating=ko.observable(!1);a.scanUpdating=ko.observable(!1);a.bssid=ko.observable(\"\");a.bssid.subscribe(function(b){for(var c=0;ca?b=\"updateGood\":60>a?b=\"updateSlow\":7200>a&&(b=\"updateSlower\");return b};\n"; diff --git a/src/web_server.lib.js.h b/src/web_server.lib.js.h index 1e1bc53..0fc446b 100644 --- a/src/web_server.lib.js.h +++ b/src/web_server.lib.js.h @@ -20,375 +20,375 @@ static const char CONTENT_LIB_JS[] PROGMEM = "\n" " Date: 2016-08-08\n" "*/\n" - "var $jscomp={scope:{},findInternal:function(p,t,K){p instanceof String&&(p=String(p));for(var F=p.length,D=0;Dtbody\",a)[0]||a:a}function Vb(a){a.type=(null!==a.getAttribute(\"type\"))+\"/\"+a.type;return a}function Wb(a){var b=Xb.exec(a.type);b?a.type=b[1]:a.removeAttribute(\"type\");return a}function gb(a,b){var c,e,f,g;if(1===b.nodeType){if(v.hasData(a)&&(g=v.access(a),c=v.set(b,g),g=g.events))for(f in delete c.handle,c.events={},g)for(c=\n" - "0,e=g[f].length;cb;b+=2)\"margin\"===c&&(g+=d.css(a,c+T[b],!0,f)),e?(\"content\"===c&&(g-=d.css(a,\"padding\"+T[b],!0,f)),\"margin\"!==c&&(g-=d.css(a,\"border\"+T[b]+\"Width\",!0,f))):(g+=d.css(a,\"padding\"+T[b],!0,f),\"padding\"!==c&&(g+=d.css(a,\"border\"+T[b]+\"Width\",\n" - "!0,f)));return g}function qb(a,b,c){var e,f=Ca(a),g=ta(a,b,f),h=\"border-box\"===d.css(a,\"boxSizing\",!1,f);if(Na.test(g))return g;e=h&&(x.boxSizingReliable()||g===a.style[b]);\"auto\"===g&&(g=a[\"offset\"+b[0].toUpperCase()+b.slice(1)]);g=parseFloat(g)||0;return g+pb(a,b,c||(h?\"border\":\"content\"),e,f)+\"px\"}function A(a,b,c,d,f){return new A.prototype.init(a,b,c,d,f)}function Oa(){Da&&(!1===r.hidden&&p.requestAnimationFrame?p.requestAnimationFrame(Oa):p.setTimeout(Oa,d.fx.interval),d.fx.tick())}function rb(){p.setTimeout(function(){ka=\n" - "void 0});return ka=d.now()}function Ea(a,b){var c,d=0,f={height:a};for(b=b?1:0;4>d;d+=2-b)c=T[d],f[\"margin\"+c]=f[\"padding\"+c]=a;b&&(f.opacity=f.width=a);return f}function sb(a,b,c){for(var d,f=(R.tweeners[b]||[]).concat(R.tweeners[\"*\"]),g=0,h=f.length;gc&&f)return b;f||h.notifyWith(a,[l,1,0]);h.resolveWith(a,[l]);return!1},l=h.promise({elem:a,props:d.extend({},b),opts:d.extend(!0,{specialEasing:{},easing:d.easing._default},c),\n" - "originalProperties:b,originalOptions:c,startTime:ka||rb(),duration:c.duration,tweens:[],createTween:function(b,c){var e=d.Tween(a,l.opts,b,c,l.opts.specialEasing[b]||l.opts.easing);l.tweens.push(e);return e},stop:function(b){var c=0,d=b?l.tweens.length:0;if(e)return this;for(e=!0;ca?this[a+this.length]:this[a]},pushStack:function(a){a=d.merge(this.constructor(),a);a.prevObject=this;return a},each:function(a){return d.each(this,a)},map:function(a){return this.pushStack(d.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(ba.apply(this,arguments))},\n" - "first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length;a=+a+(0>a?b:0);return this.pushStack(0<=a&&aw.cacheLength&&delete a[b.shift()];return a[c+\" \"]=d}var b=[];return a}function d(a){a[B]=!0;return a}function f(a){var b=z.createElement(\"fieldset\");try{return!!a(b)}catch(E){return!1}finally{b.parentNode&&b.parentNode.removeChild(b)}}function g(a,b){for(var c=a.split(\"|\"),d=c.length;d--;)w.attrHandle[c[d]]=b}function h(a,b){var c=b&&a,d=c&&1===\n" - "a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)for(;c=c.nextSibling;)if(c===b)return-1;return a?1:-1}function k(a){return function(b){return\"input\"===b.nodeName.toLowerCase()&&b.type===a}}function l(a){return function(b){var c=b.nodeName.toLowerCase();return(\"input\"===c||\"button\"===c)&&b.type===a}}function n(a){return function(b){return\"form\"in b?b.parentNode&&!1===b.disabled?\"label\"in b?\"label\"in b.parentNode?b.parentNode.disabled===a:b.disabled===a:b.isDisabled===a||\n" - "b.isDisabled!==!a&&xa(b)===a:b.disabled===a:\"label\"in b?b.disabled===a:!1}}function q(a){return d(function(b){b=+b;return d(function(c,d){for(var e,f=a([],c.length,b),g=f.length;g--;)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function O(a){return a&&\"undefined\"!==typeof a.getElementsByTagName&&a}function m(){}function p(a){for(var b=0,c=a.length,d=\"\";b+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*/,ka=RegExp(\"=[\\\\x20\\\\t\\\\r\\\\n\\\\f]*([^\\\\]'\\\"]*?)[\\\\x20\\\\t\\\\r\\\\n\\\\f]*\\\\]\",\"g\"),na=/:((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)/,\n" - "oa=/^(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+$/,Y={ID:/^#((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)/,CLASS:/^\\.((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)/,TAG:/^((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+|[*])/,ATTR:/^\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\]/,PSEUDO:/^:((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)/,\n" - "CHILD:/^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)/i,bool:/^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$/i,needsContext:/^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)/i},ra=/^(?:input|select|textarea|button)$/i,ta=/^h\\d$/i,X=/^[^{]+\\{\\s*\\[native \\w/,\n" - "wa=/^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,ga=/[+~]/,da=RegExp(\"\\\\\\\\([\\\\da-f]{1,6}[\\\\x20\\\\t\\\\r\\\\n\\\\f]?|([\\\\x20\\\\t\\\\r\\\\n\\\\f])|.)\",\"ig\"),ea=function(a,b,c){a=\"0x\"+b-65536;return a!==a||c?b:0>a?String.fromCharCode(a+65536):String.fromCharCode(a>>10|55296,a&1023|56320)},pa=/([\\0-\\x1f\\x7f]|^-?\\d)|^-$|[^\\0-\\x1f\\x7f-\\uFFFF\\w-]/g,qa=function(a,b){return b?\"\\x00\"===a?\"\\ufffd\":a.slice(0,-1)+\"\\\\\"+a.charCodeAt(a.length-1).toString(16)+\" \":\"\\\\\"+a},sa=function(){M()},xa=Ba(function(a){return!0===a.disabled&&(\"form\"in\n" - "a||\"label\"in a)},{dir:\"parentNode\",next:\"legend\"});try{la.apply(P=Z.call(S.childNodes),S.childNodes),P[S.childNodes.length].nodeType}catch(y){la={apply:P.length?function(a,b){fa.apply(a,Z.call(b))}:function(a,b){for(var c=a.length,d=0;a[c++]=b[d++];);a.length=c-1}}}u=b.support={};yb=b.isXML=function(a){return(a=a&&(a.ownerDocument||a).documentElement)?\"HTML\"!==a.nodeName:!1};M=b.setDocument=function(a){var b;a=a?a.ownerDocument||a:S;if(a===z||9!==a.nodeType||!a.documentElement)return z;z=a;L=z.documentElement;\n" - "G=!yb(z);S!==z&&(b=z.defaultView)&&b.top!==b&&(b.addEventListener?b.addEventListener(\"unload\",sa,!1):b.attachEvent&&b.attachEvent(\"onunload\",sa));u.attributes=f(function(a){a.className=\"i\";return!a.getAttribute(\"className\")});u.getElementsByTagName=f(function(a){a.appendChild(z.createComment(\"\"));return!a.getElementsByTagName(\"*\").length});u.getElementsByClassName=X.test(z.getElementsByClassName);u.getById=f(function(a){L.appendChild(a).id=B;return!z.getElementsByName||!z.getElementsByName(B).length});\n" - "u.getById?(w.filter.ID=function(a){var b=a.replace(da,ea);return function(a){return a.getAttribute(\"id\")===b}},w.find.ID=function(a,b){if(\"undefined\"!==typeof b.getElementById&&G){var c=b.getElementById(a);return c?[c]:[]}}):(w.filter.ID=function(a){var b=a.replace(da,ea);return function(a){return(a=\"undefined\"!==typeof a.getAttributeNode&&a.getAttributeNode(\"id\"))&&a.value===b}},w.find.ID=function(a,b){if(\"undefined\"!==typeof b.getElementById&&G){var c,d,e,f=b.getElementById(a);if(f){if((c=f.getAttributeNode(\"id\"))&&\n" - "c.value===a)return[f];e=b.getElementsByName(a);for(d=0;f=e[d++];)if((c=f.getAttributeNode(\"id\"))&&c.value===a)return[f]}return[]}});w.find.TAG=u.getElementsByTagName?function(a,b){if(\"undefined\"!==typeof b.getElementsByTagName)return b.getElementsByTagName(a);if(u.qsa)return b.querySelectorAll(a)}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if(\"*\"===a){for(;c=f[e++];)1===c.nodeType&&d.push(c);return d}return f};w.find.CLASS=u.getElementsByClassName&&function(a,b){if(\"undefined\"!==typeof b.getElementsByClassName&&\n" - "G)return b.getElementsByClassName(a)};va=[];I=[];if(u.qsa=X.test(z.querySelectorAll))f(function(a){L.appendChild(a).innerHTML=\"\";a.querySelectorAll(\"[msallowcapture^='']\").length&&I.push(\"[*^$]=[\\\\x20\\\\t\\\\r\\\\n\\\\f]*(?:''|\\\"\\\")\");a.querySelectorAll(\"[selected]\").length||I.push(\"\\\\[[\\\\x20\\\\t\\\\r\\\\n\\\\f]*(?:value|checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)\");\n" - "a.querySelectorAll(\"[id~=\"+B+\"-]\").length||I.push(\"~=\");a.querySelectorAll(\":checked\").length||I.push(\":checked\");a.querySelectorAll(\"a#\"+B+\"+*\").length||I.push(\".#.+[+~]\")}),f(function(a){a.innerHTML=\"\";var b=z.createElement(\"input\");b.setAttribute(\"type\",\"hidden\");a.appendChild(b).setAttribute(\"name\",\"D\");a.querySelectorAll(\"[name=d]\").length&&I.push(\"name[\\\\x20\\\\t\\\\r\\\\n\\\\f]*[*^$|!~]?=\");2!==a.querySelectorAll(\":enabled\").length&&\n" - "I.push(\":enabled\",\":disabled\");L.appendChild(a).disabled=!0;2!==a.querySelectorAll(\":disabled\").length&&I.push(\":enabled\",\":disabled\");a.querySelectorAll(\"*,:x\");I.push(\",.*:\")});(u.matchesSelector=X.test(F=L.matches||L.webkitMatchesSelector||L.mozMatchesSelector||L.oMatchesSelector||L.msMatchesSelector))&&f(function(a){u.disconnectedMatch=F.call(a,\"*\");F.call(a,\"[s!='']:x\");va.push(\"!=\",\":((?:\\\\\\\\.|[\\\\w-]|[^\\x00-\\\\xa0])+)(?:\\\\((('((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\")|((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|\\\\[[\\\\x20\\\\t\\\\r\\\\n\\\\f]*((?:\\\\\\\\.|[\\\\w-]|[^\\x00-\\\\xa0])+)(?:[\\\\x20\\\\t\\\\r\\\\n\\\\f]*([*^$|!~]?=)[\\\\x20\\\\t\\\\r\\\\n\\\\f]*(?:'((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\"|((?:\\\\\\\\.|[\\\\w-]|[^\\x00-\\\\xa0])+))|)[\\\\x20\\\\t\\\\r\\\\n\\\\f]*\\\\])*)|.*)\\\\)|)\")});\n" - "I=I.length&&new RegExp(I.join(\"|\"));va=va.length&&new RegExp(va.join(\"|\"));Aa=(b=X.test(L.compareDocumentPosition))||X.test(L.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!!(d&&1===d.nodeType&&(c.contains?c.contains(d):a.compareDocumentPosition&&a.compareDocumentPosition(d)&16))}:function(a,b){if(b)for(;b=b.parentNode;)if(b===a)return!0;return!1};W=b?function(a,b){if(a===b)return ya=!0,0;var c=!a.compareDocumentPosition-!b.compareDocumentPosition;\n" - "if(c)return c;c=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1;return c&1||!u.sortDetached&&b.compareDocumentPosition(a)===c?a===z||a.ownerDocument===S&&Aa(S,a)?-1:b===z||b.ownerDocument===S&&Aa(S,b)?1:ma?ua(ma,a)-ua(ma,b):0:c&4?-1:1}:function(a,b){if(a===b)return ya=!0,0;var c,d=0;c=a.parentNode;var e=b.parentNode,f=[a],g=[b];if(!c||!e)return a===z?-1:b===z?1:c?-1:e?1:ma?ua(ma,a)-ua(ma,b):0;if(c===e)return h(a,b);for(c=a;c=c.parentNode;)f.unshift(c);for(c=b;c=c.parentNode;)g.unshift(c);\n" - "for(;f[d]===g[d];)d++;return d?h(f[d],g[d]):f[d]===S?-1:g[d]===S?1:0};return z};b.matches=function(a,c){return b(a,null,null,c)};b.matchesSelector=function(a,c){(a.ownerDocument||a)!==z&&M(a);c=c.replace(ka,\"='$1']\");if(!(!u.matchesSelector||!G||T[c+\" \"]||va&&va.test(c)||I&&I.test(c)))try{var d=F.call(a,c);if(d||u.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(ca){}return 0\":{dir:\"parentNode\",first:!0},\" \":{dir:\"parentNode\"},\"+\":{dir:\"previousSibling\",first:!0},\n" - "\"~\":{dir:\"previousSibling\"}},preFilter:{ATTR:function(a){a[1]=a[1].replace(da,ea);a[3]=(a[3]||a[4]||a[5]||\"\").replace(da,ea);\"~=\"===a[2]&&(a[3]=\" \"+a[3]+\" \");return a.slice(0,4)},CHILD:function(a){a[1]=a[1].toLowerCase();\"nth\"===a[1].slice(0,3)?(a[3]||b.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*(\"even\"===a[3]||\"odd\"===a[3])),a[5]=+(a[7]+a[8]||\"odd\"===a[3])):a[3]&&b.error(a[0]);return a},PSEUDO:function(a){var b,c=!a[6]&&a[2];if(Y.CHILD.test(a[0]))return null;a[3]?a[2]=a[4]||a[5]||\"\":c&&na.test(c)&&\n" - "(b=J(c,!0))&&(b=c.indexOf(\")\",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b));return a.slice(0,3)}},filter:{TAG:function(a){var b=a.replace(da,ea).toLowerCase();return\"*\"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=R[a+\" \"];return b||(b=new RegExp(\"(^|[\\\\x20\\\\t\\\\r\\\\n\\\\f])\"+a+\"([\\\\x20\\\\t\\\\r\\\\n\\\\f]|$)\"),R(a,function(a){return b.test(\"string\"===typeof a.className&&a.className||\"undefined\"!==typeof a.getAttribute&&a.getAttribute(\"class\")||\n" - "\"\")}))},ATTR:function(a,c,d){return function(e){e=b.attr(e,a);if(null==e)return\"!=\"===c;if(!c)return!0;e+=\"\";return\"=\"===c?e===d:\"!=\"===c?e!==d:\"^=\"===c?d&&0===e.indexOf(d):\"*=\"===c?d&&-1a.nodeType)return!1;return!0},parent:function(a){return!w.pseudos.empty(a)},header:function(a){return ta.test(a.nodeName)},input:function(a){return ra.test(a.nodeName)},button:function(a){var b=\n" - "a.nodeName.toLowerCase();return\"input\"===b&&\"button\"===a.type||\"button\"===b},text:function(a){var b;return\"input\"===a.nodeName.toLowerCase()&&\"text\"===a.type&&(null==(b=a.getAttribute(\"type\"))||\"text\"===b.toLowerCase())},first:q(function(){return[0]}),last:q(function(a,b){return[b-1]}),eq:q(function(a,b,c){return[0>c?c+b:c]}),even:q(function(a,b){for(var c=0;cc?c+b:c;0<=--b;)a.push(b);\n" - "return a}),gt:q(function(a,b,c){for(c=0>c?c+b:c;++c\";return\"#\"===a.firstChild.getAttribute(\"href\")})||g(\"type|href|height|width\",function(a,b,c){if(!c)return a.getAttribute(b,\"type\"===b.toLowerCase()?1:2)});u.attributes&&f(function(a){a.innerHTML=\"\";a.firstChild.setAttribute(\"value\",\"\");return\"\"===a.firstChild.getAttribute(\"value\")})||\n" - "g(\"value\",function(a,b,c){if(!c&&\"input\"===a.nodeName.toLowerCase())return a.defaultValue});f(function(a){return null==a.getAttribute(\"disabled\")})||g(\"checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped\",function(a,b,c){var d;if(!c)return!0===a[b]?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null});return b}(p);d.find=fa;d.expr=fa.selectors;d.expr[\":\"]=d.expr.pseudos;d.uniqueSort=d.unique=fa.uniqueSort;d.text=\n" - "fa.getText;d.isXMLDoc=fa.isXML;d.contains=fa.contains;d.escapeSelector=fa.escape;var na=function(a,b,c){for(var e=[],f=void 0!==c;(a=a[b])&&9!==a.nodeType;)if(1===a.nodeType){if(f&&d(a).is(c))break;e.push(a)}return e},zb=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},Ab=d.expr.match.needsContext,Bb=/^<([a-z][^\\/\\0>:\\x20\\t\\r\\n\\f]*)[\\x20\\t\\r\\n\\f]*\\/?>(?:<\\/\\1>|)$/i,Qb=/^.[^:#\\[\\.,]*$/;d.filter=function(a,b,c){var e=b[0];c&&(a=\":not(\"+a+\")\");return 1===b.length&&\n" - "1===e.nodeType?d.find.matchesSelector(e,a)?[e]:[]:d.find.matches(a,d.grep(b,function(a){return 1===a.nodeType}))};d.fn.extend({find:function(a){var b,c,e=this.length,f=this;if(\"string\"!==typeof a)return this.pushStack(d(a).filter(function(){for(b=0;b)[^>]*|#([\\w-]+))$/;(d.fn.init=function(a,b,c){var e;if(!a)return this;c=c||Cb;if(\"string\"===typeof a){e=\"<\"===a[0]&&\">\"===a[a.length-1]&&3<=a.length?[null,a,null]:hc.exec(a);if(!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof d?b[0]:b,d.merge(this,d.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:r,!0)),Bb.test(e[1])&&d.isPlainObject(b))for(e in b)if(d.isFunction(this[e]))this[e](b[e]);\n" - "else this.attr(e,b[e])}else if(a=r.getElementById(e[2]))this[0]=a,this.length=1;return this}return a.nodeType?(this[0]=a,this.length=1,this):d.isFunction(a)?void 0!==c.ready?c.ready(a):a(d):d.makeArray(a,this)}).prototype=d.fn;Cb=d(r);var ic=/^(?:parents|prev(?:Until|All))/,jc={children:!0,contents:!0,next:!0,prev:!0};d.fn.extend({has:function(a){var b=d(a,this),c=b.length;return this.filter(function(){for(var a=0;ac.nodeType&&(h?-1=g&&(c!==pa&&(h=void 0,k=[xb]),b.rejectWith(h,k))}};a?m():(d.Deferred.getStackHook&&(m.stackTrace=d.Deferred.getStackHook()),p.setTimeout(m))}}var g=0;return d.Deferred(function(g){b[0][3].add(f(0,\n" - "g,d.isFunction(e)?e:ha,g.notifyWith));b[1][3].add(f(0,g,d.isFunction(a)?a:ha));b[2][3].add(f(0,g,d.isFunction(c)?c:pa))}).promise()},promise:function(a){return null!=a?d.extend(a,e):e}},f={};d.each(b,function(a,d){var g=d[2],h=d[5];e[d[1]]=g.add;h&&g.add(function(){c=h},b[3-a][2].disable,b[0][2].lock);g.add(d[3].fire);f[d[0]]=function(){f[d[0]+\"With\"](this===f?void 0:this,arguments);return this};f[d[0]+\"With\"]=g.fireWith});e.promise(f);a&&a.call(f,f);return f},when:function(a){var b=arguments.length,\n" - "c=b,e=Array(c),f=ba.call(arguments),g=d.Deferred(),h=function(a){return function(c){e[a]=this;f[a]=1=b&&(Ya(a,g.done(h(c)).resolve,g.reject,!b),\"pending\"===g.state()||d.isFunction(f[c]&&f[c].then)))return g.then();for(;c--;)Ya(f[c],h(c),g.reject);return g.promise()}});var kc=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;d.Deferred.exceptionHook=function(a,b){p.console&&p.console.warn&&a&&kc.test(a.name)&&p.console.warn(\"jQuery.Deferred exception: \"+\n" - "a.message,a.stack,b)};d.readyException=function(a){p.setTimeout(function(){throw a;})};var Ta=d.Deferred();d.fn.ready=function(a){Ta.then(a)[\"catch\"](function(a){d.readyException(a)});return this};d.extend({isReady:!1,readyWait:1,ready:function(a){(!0===a?--d.readyWait:d.isReady)||(d.isReady=!0,!0!==a&&0<--d.readyWait||Ta.resolveWith(r,[d]))}});d.ready.then=Ta.then;\"complete\"===r.readyState||\"loading\"!==r.readyState&&!r.documentElement.doScroll?p.setTimeout(d.ready):(r.addEventListener(\"DOMContentLoaded\",\n" - "qa),p.addEventListener(\"load\",qa));var U=function(a,b,c,e,f,g,h){var k=0,l=a.length,n=null==c;if(\"object\"===d.type(c))for(k in f=!0,c)U(a,b,k,c[k],!0,g,h);else if(void 0!==e&&(f=!0,d.isFunction(e)||(h=!0),n&&(h?(b.call(a,e),b=null):(n=b,b=function(a,b,c){return n.call(d(a),c)})),b))for(;k\\x20\\t\\r\\n\\f]+)/i,db=/^$|\\/(?:java|ecma)script/i,Q={option:[1,\"\"],thead:[1,\"\",\"
\"],col:[2,\"\",\"
\"],tr:[2,\"\",\"
\"],td:[3,\"\",\"
\"],_default:[0,\"\",\"\"]};Q.optgroup=Q.option;Q.tbody=Q.tfoot=Q.colgroup=Q.caption=Q.thead;Q.th=Q.td;\n" - "var Ub=/<|&#?\\w+;/;(function(){var a=r.createDocumentFragment().appendChild(r.createElement(\"div\")),b=r.createElement(\"input\");b.setAttribute(\"type\",\"radio\");b.setAttribute(\"checked\",\"checked\");b.setAttribute(\"name\",\"t\");a.appendChild(b);x.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked;a.innerHTML=\"\";x.noCloneChecked=!!a.cloneNode(!0).lastChild.defaultValue})();var Ka=r.documentElement,lc=/^key/,mc=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Gb=/^([^.]*)(?:\\.(.+)|)/;\n" - "d.event={global:{},add:function(a,b,c,e,f){var g,h,k,l,n,q,p,m,r;if(n=v.get(a))for(c.handler&&(g=c,c=g.handler,f=g.selector),f&&d.find.matchesSelector(Ka,f),c.guid||(c.guid=d.guid++),(l=n.events)||(l=n.events={}),(h=n.handle)||(h=n.handle=function(b){return\"undefined\"!==typeof d&&d.event.triggered!==b.type?d.event.dispatch.apply(a,arguments):void 0}),b=(b||\"\").match(C)||[\"\"],n=b.length;n--;)k=Gb.exec(b[n])||[],m=q=k[1],r=(k[2]||\"\").split(\".\").sort(),m&&(k=d.event.special[m]||{},m=(f?k.delegateType:\n" - "k.bindType)||m,k=d.event.special[m]||{},q=d.extend({type:m,origType:q,data:e,handler:c,guid:c.guid,selector:f,needsContext:f&&d.expr.match.needsContext.test(f),namespace:r.join(\".\")},g),(p=l[m])||(p=l[m]=[],p.delegateCount=0,k.setup&&!1!==k.setup.call(a,e,r,h)||a.addEventListener&&a.addEventListener(m,h)),k.add&&(k.add.call(a,q),q.handler.guid||(q.handler.guid=c.guid)),f?p.splice(p.delegateCount++,0,q):p.push(q),d.event.global[m]=!0)},remove:function(a,b,c,e,f){var g,h,k,l,n,q,p,m,r,x,D,t=v.hasData(a)&&\n" - "v.get(a);if(t&&(l=t.events)){b=(b||\"\").match(C)||[\"\"];for(n=b.length;n--;)if(k=Gb.exec(b[n])||[],r=D=k[1],x=(k[2]||\"\").split(\".\").sort(),r){p=d.event.special[r]||{};r=(e?p.delegateType:p.bindType)||r;m=l[r]||[];k=k[2]&&new RegExp(\"(^|\\\\.)\"+x.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\");for(h=g=m.length;g--;)q=m[g],!f&&D!==q.origType||c&&c.guid!==q.guid||k&&!k.test(q.namespace)||e&&e!==q.selector&&(\"**\"!==e||!q.selector)||(m.splice(g,1),q.selector&&m.delegateCount--,p.remove&&p.remove.call(a,q));h&&!m.length&&\n" - "(p.teardown&&!1!==p.teardown.call(a,x,t.handle)||d.removeEvent(a,r,t.handle),delete l[r])}else for(r in l)d.event.remove(a,r+b[n],c,e,!0);d.isEmptyObject(l)&&v.remove(a,\"handle events\")}},dispatch:function(a){var b=d.event.fix(a),c,e,f,g,h,k=Array(arguments.length);e=(v.get(this,\"events\")||{})[b.type]||[];var l=d.event.special[b.type]||{};k[0]=b;for(c=1;c\\x20\\t\\r\\n\\f]*)[^>]*)\\/>/gi,oc=/\\s*$/g;d.extend({htmlPrefilter:function(a){return a.replace(nc,\"<$1>\")},clone:function(a,b,c){var e,f,g,h,k=a.cloneNode(!0),l=d.contains(a.ownerDocument,a);if(!(x.noCloneChecked||\n" - "1!==a.nodeType&&11!==a.nodeType||d.isXMLDoc(a)))for(h=H(k),g=H(a),e=0,f=g.length;ed.inArray(this,a)&&(d.cleanData(H(this)),c&&c.replaceChild(b,this))},a)}});d.each({appendTo:\"append\",prependTo:\"prepend\",insertBefore:\"before\",insertAfter:\"after\",replaceAll:\"replaceWith\"},function(a,b){d.fn[a]=function(a){for(var c=[],f=d(a),g=f.length-1,h=0;h<=g;h++)a=h===g?this:this.clone(!0),d(f[h])[b](a),Sa.apply(c,a.get());return this.pushStack(c)}});\n" - "var jb=/^margin/,Na=new RegExp(\"^(\"+Db+\")(?!px)[a-z%]+$\",\"i\"),Ca=function(a){var b=a.ownerDocument.defaultView;b&&b.opener||(b=p);return b.getComputedStyle(a)};(function(){function a(){if(h){h.style.cssText=\"box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%\";h.innerHTML=\"\";Ka.appendChild(g);var a=p.getComputedStyle(h);b=\"1%\"!==a.top;f=\"2px\"===a.marginLeft;c=\"4px\"===a.width;h.style.marginRight=\"50%\";e=\"4px\"===a.marginRight;Ka.removeChild(g);h=\n" - "null}}var b,c,e,f,g=r.createElement(\"div\"),h=r.createElement(\"div\");h.style&&(h.style.backgroundClip=\"content-box\",h.cloneNode(!0).style.backgroundClip=\"\",x.clearCloneStyle=\"content-box\"===h.style.backgroundClip,g.style.cssText=\"border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute\",g.appendChild(h),d.extend(x,{pixelPosition:function(){a();return b},boxSizingReliable:function(){a();return c},pixelMarginRight:function(){a();return e},reliableMarginLeft:function(){a();\n" - "return f}}))})();var pc=/^(none|table(?!-c[ea]).+)/,Hb=/^--/,qc={position:\"absolute\",visibility:\"hidden\",display:\"block\"},Ib={letterSpacing:\"0\",fontWeight:\"400\"},nb=[\"Webkit\",\"Moz\",\"ms\"],mb=r.createElement(\"div\").style;d.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=ta(a,\"opacity\");return\"\"===c?\"1\":c}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{\"float\":\"cssFloat\"},\n" - "style:function(a,b,c,e){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var f,g,h,k=d.camelCase(b),l=Hb.test(b),n=a.style;l||(b=lb(k));h=d.cssHooks[b]||d.cssHooks[k];if(void 0!==c)g=typeof c,\"string\"===g&&(f=ra.exec(c))&&f[1]&&(c=$a(a,b,f),g=\"number\"),null!=c&&c===c&&(\"number\"===g&&(c+=f&&f[3]||(d.cssNumber[k]?\"\":\"px\")),x.clearCloneStyle||\"\"!==c||0!==b.indexOf(\"background\")||(n[b]=\"inherit\"),h&&\"set\"in h&&void 0===(c=h.set(a,c,e))||(l?n.setProperty(b,c):n[b]=c));else return h&&\"get\"in h&&void 0!==\n" - "(f=h.get(a,!1,e))?f:n[b]}},css:function(a,b,c,e){var f,g;g=d.camelCase(b);Hb.test(b)||(b=lb(g));(g=d.cssHooks[b]||d.cssHooks[g])&&\"get\"in g&&(f=g.get(a,!0,c));void 0===f&&(f=ta(a,b,e));\"normal\"===f&&b in Ib&&(f=Ib[b]);return\"\"===c||c?(a=parseFloat(f),!0===c||isFinite(a)?a||0:f):f}});d.each([\"height\",\"width\"],function(a,b){d.cssHooks[b]={get:function(a,e,f){if(e)return!pc.test(d.css(a,\"display\"))||a.getClientRects().length&&a.getBoundingClientRect().width?qb(a,b,f):Eb(a,qc,function(){return qb(a,b,\n" - "f)})},set:function(a,e,f){var c,h=f&&Ca(a);(f=f&&pb(a,b,f,\"border-box\"===d.css(a,\"boxSizing\",!1,h),h))&&(c=ra.exec(e))&&\"px\"!==(c[3]||\"px\")&&(a.style[b]=e,e=d.css(a,b));return ob(a,e,f)}}});d.cssHooks.marginLeft=kb(x.reliableMarginLeft,function(a,b){if(b)return(parseFloat(ta(a,\"marginLeft\"))||a.getBoundingClientRect().left-Eb(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+\"px\"});d.each({margin:\"\",padding:\"\",border:\"Width\"},function(a,b){d.cssHooks[a+b]={expand:function(c){var d=\n" - "0,f={};for(c=\"string\"===typeof c?c.split(\" \"):[c];4>d;d++)f[a+T[d]+b]=c[d]||c[d-2]||c[0];return f}};jb.test(a)||(d.cssHooks[a+b].set=ob)});d.fn.extend({css:function(a,b){return U(this,function(a,b,f){var c,e={},k=0;if(Array.isArray(b)){f=Ca(a);for(c=b.length;ke.indexOf(\" \"+g+\" \")&&(e+=g+\" \");e=W(e);f!==e&&c.setAttribute(\"class\",e)}return this},removeClass:function(a){var b,c,e,f,g,h,k=0;if(d.isFunction(a))return this.each(function(b){d(this).removeClass(a.call(this,b,aa(this)))});if(!arguments.length)return this.attr(\"class\",\"\");if(\"string\"===typeof a&&a)for(b=a.match(C)||[];c=this[k++];)if(f=aa(c),e=1===c.nodeType&&\" \"+W(f)+\" \"){for(h=0;g=b[h++];)for(;-1e?h:f?e:0;at.indexOf(\":\")&&\"on\"+t,a=a[d.expando]?a:new d.Event(t,\"object\"===typeof a&&\n" - "a),a.isTrigger=e?2:3,a.namespace=n.join(\".\"),a.rnamespace=a.namespace?new RegExp(\"(^|\\\\.)\"+n.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"):null,a.result=void 0,a.target||(a.target=c),b=null==b?[a]:d.makeArray(b,[a]),n=d.event.special[t]||{},e||!n.trigger||!1!==n.trigger.apply(c,b))){if(!e&&!n.noBubble&&!d.isWindow(c)){h=n.delegateType||t;Kb.test(h+t)||(g=g.parentNode);for(;g;g=g.parentNode)q.push(g),f=g;f===(c.ownerDocument||r)&&q.push(f.defaultView||f.parentWindow||p)}for(f=0;(g=q[f++])&&!a.isPropagationStopped();)a.type=\n" - "1a||304===a;if(c){r=m;for(var C=u,M,z,L,G,I=r.contents,F=r.dataTypes;\"*\"===F[0];)F.shift(),void 0===M&&(M=r.mimeType||C.getResponseHeader(\"Content-Type\"));if(M)for(z in I)if(I[z]&&I[z].test(M)){F.unshift(z);break}if(F[0]in c)L=F[0];else{for(z in c){if(!F[0]||r.converters[z+\" \"+F[0]]){L=z;break}G||\n" - "(G=z)}L=L||G}L?(L!==F[0]&&F.unshift(L),r=c[L]):r=void 0}a:{c=m;M=r;z=u;L=h;var H,A,B,C={},I=c.dataTypes.slice();if(I[1])for(A in c.converters)C[A.toLowerCase()]=c.converters[A];for(G=I.shift();G;)if(c.responseFields[G]&&(z[c.responseFields[G]]=M),!B&&L&&c.dataFilter&&(M=c.dataFilter(M,c.dataType)),B=G,G=I.shift())if(\"*\"===G)G=B;else if(\"*\"!==B&&B!==G){A=C[B+\" \"+G]||C[\"* \"+G];if(!A)for(H in C)if(r=H.split(\" \"),r[1]===G&&(A=C[B+\" \"+r[0]]||C[\"* \"+r[0]])){!0===A?A=C[H]:!0!==C[H]&&(G=r[0],I.unshift(r[1]));\n" - "break}if(!0!==A)if(A&&c[\"throws\"])M=A(M);else try{M=A(M)}catch(S){r={state:\"parsererror\",error:A?S:\"No conversion from \"+B+\" to \"+G};break a}}r={state:\"success\",data:M}}if(h)m.ifModified&&((w=u.getResponseHeader(\"Last-Modified\"))&&(d.lastModified[f]=w),(w=u.getResponseHeader(\"etag\"))&&(d.etag[f]=w)),204===a||\"HEAD\"===m.type?w=\"nocontent\":304===a?w=\"notmodified\":(w=r.state,l=r.data,t=r.error,h=!t);else if(t=w,a||!w)w=\"error\",0>a&&(a=0);u.status=a;u.statusText=(b||w)+\"\";h?D.resolveWith(v,[l,w,u]):D.rejectWith(v,\n" - "[u,w,t]);u.statusCode(J);J=void 0;q&&x.trigger(h?\"ajaxSuccess\":\"ajaxError\",[u,m,h?l:t]);K.fireWith(v,[u,w]);q&&(x.trigger(\"ajaxComplete\",[u,m]),--d.active||d.event.trigger(\"ajaxStop\"))}}\"object\"===typeof a&&(b=a,a=void 0);b=b||{};var e,f,g,h,k,l,n,q,t,m=d.ajaxSetup({},b),v=m.context||m,x=m.context&&(v.nodeType||v.jquery)?d(v):d.event,D=d.Deferred(),K=d.Callbacks(\"once memory\"),J=m.statusCode||{},F={},H={},A=\"canceled\",u={readyState:0,getResponseHeader:function(a){var b;if(n){if(!h)for(h={};b=Bc.exec(g);)h[b[1].toLowerCase()]=\n" - "b[2];b=h[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return n?g:null},setRequestHeader:function(a,b){null==n&&(a=H[a.toLowerCase()]=H[a.toLowerCase()]||a,F[a]=b);return this},overrideMimeType:function(a){null==n&&(m.mimeType=a);return this},statusCode:function(a){var b;if(a)if(n)u.always(a[u.status]);else for(b in a)J[b]=[J[b],a[b]];return this},abort:function(a){a=a||A;e&&e.abort(a);c(0,a);return this}};D.promise(u);m.url=((a||m.url||wa.href)+\"\").replace(Dc,wa.protocol+\n" - "\"//\");m.type=b.method||b.type||m.method||m.type;m.dataTypes=(m.dataType||\"*\").toLowerCase().match(C)||[\"\"];if(null==m.crossDomain){l=r.createElement(\"a\");try{l.href=m.url,l.href=l.href,m.crossDomain=Va.protocol+\"//\"+Va.host!==l.protocol+\"//\"+l.host}catch(w){m.crossDomain=!0}}m.data&&m.processData&&\"string\"!==typeof m.data&&(m.data=d.param(m.data,m.traditional));ub(Nb,m,b,u);if(n)return u;(q=d.event&&m.global)&&0===d.active++&&d.event.trigger(\"ajaxStart\");m.type=m.type.toUpperCase();m.hasContent=!Cc.test(m.type);\n" - "f=m.url.replace(zc,\"\");m.hasContent?m.data&&m.processData&&0===(m.contentType||\"\").indexOf(\"application/x-www-form-urlencoded\")&&(m.data=m.data.replace(yc,\"+\")):(l=m.url.slice(f.length),m.data&&(f+=(Ua.test(f)?\"&\":\"?\")+m.data,delete m.data),!1===m.cache&&(f=f.replace(Ac,\"$1\"),l=(Ua.test(f)?\"&\":\"?\")+\"_=\"+Lb++ +l),m.url=f+l);m.ifModified&&(d.lastModified[f]&&u.setRequestHeader(\"If-Modified-Since\",d.lastModified[f]),d.etag[f]&&u.setRequestHeader(\"If-None-Match\",d.etag[f]));(m.data&&m.hasContent&&!1!==\n" - "m.contentType||b.contentType)&&u.setRequestHeader(\"Content-Type\",m.contentType);u.setRequestHeader(\"Accept\",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+(\"*\"!==m.dataTypes[0]?\", \"+Ob+\"; q=0.01\":\"\"):m.accepts[\"*\"]);for(t in m.headers)u.setRequestHeader(t,m.headers[t]);if(m.beforeSend&&(!1===m.beforeSend.call(v,u,m)||n))return u.abort();A=\"abort\";K.add(m.complete);u.done(m.success);u.fail(m.error);if(e=ub(Qa,m,b,u)){u.readyState=1;q&&x.trigger(\"ajaxSend\",[u,m]);if(n)return u;\n" - "m.async&&0\").prop({charset:a.scriptCharset,src:a.url}).on(\"load error\",c=function(a){b.remove();c=null;a&&f(\"error\"===a.type?404:200,a.type)});r.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Pb=[],Wa=/(=)\\?(?=&|$)|\\?\\?/;d.ajaxSetup({jsonp:\"callback\",jsonpCallback:function(){var a=Pb.pop()||d.expando+\"_\"+Lb++;this[a]=!0;return a}});d.ajaxPrefilter(\"json jsonp\",function(a,b,c){var e,f,g,h=!1!==a.jsonp&&(Wa.test(a.url)?\"url\":\n" - "\"string\"===typeof a.data&&0===(a.contentType||\"\").indexOf(\"application/x-www-form-urlencoded\")&&Wa.test(a.data)&&\"data\");if(h||\"jsonp\"===a.dataTypes[0])return e=a.jsonpCallback=d.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,h?a[h]=a[h].replace(Wa,\"$1\"+e):!1!==a.jsonp&&(a.url+=(Ua.test(a.url)?\"&\":\"?\")+a.jsonp+\"=\"+e),a.converters[\"script json\"]=function(){g||d.error(e+\" was not called\");return g[0]},a.dataTypes[0]=\"json\",f=p[e],p[e]=function(){g=arguments},c.always(function(){void 0===\n" - "f?d(p).removeProp(e):p[e]=f;a[e]&&(a.jsonpCallback=b.jsonpCallback,Pb.push(e));g&&d.isFunction(f)&&f(g[0]);g=f=void 0}),\"script\"});x.createHTMLDocument=function(){var a=r.implementation.createHTMLDocument(\"\").body;a.innerHTML=\"
\";return 2===a.childNodes.length}();d.parseHTML=function(a,b,c){if(\"string\"!==typeof a)return[];\"boolean\"===typeof b&&(c=b,b=!1);var e;b||(x.createHTMLDocument?(b=r.implementation.createHTMLDocument(\"\"),e=b.createElement(\"base\"),e.href=r.location.href,\n" - "b.head.appendChild(e)):b=r);e=Bb.exec(a);c=!c&&[];if(e)return[b.createElement(e[1])];e=bb([a],b,c);c&&c.length&&d(c).remove();return d.merge([],e.childNodes)};d.fn.load=function(a,b,c){var e,f,g,h=this,k=a.indexOf(\" \");-1\").append(d.parseHTML(a)).find(e):a)}).always(c&&function(a,b){h.each(function(){c.apply(this,\n" - "g||[a.responseText,b,a])})});return this};d.each(\"ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend\".split(\" \"),function(a,b){d.fn[b]=function(a){return this.on(b,a)}});d.expr.pseudos.animated=function(a){return d.grep(d.timers,function(b){return a===b.elem}).length};d.offset={setOffset:function(a,b,c){var e,f,g,h=d.css(a,\"position\"),k=d(a),l={};\"static\"===h&&(a.style.position=\"relative\");g=k.offset();f=d.css(a,\"top\");e=d.css(a,\"left\");(\"absolute\"===h||\"fixed\"===h)&&-1<(f+e).indexOf(\"auto\")?\n" - "(e=k.position(),f=e.top,e=e.left):(f=parseFloat(f)||0,e=parseFloat(e)||0);d.isFunction(b)&&(b=b.call(a,c,d.extend({},g)));null!=b.top&&(l.top=b.top-g.top+f);null!=b.left&&(l.left=b.left-g.left+e);\"using\"in b?b.using.call(a,l):k.css(l)}};d.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){d.offset.setOffset(this,a,b)});var b,c,e;if(c=this[0]){if(!c.getClientRects().length)return{top:0,left:0};e=c.getBoundingClientRect();b=c.ownerDocument;c=b.documentElement;\n" - "b=b.defaultView;return{top:e.top+b.pageYOffset-c.clientTop,left:e.left+b.pageXOffset-c.clientLeft}}},position:function(){if(this[0]){var a,b,c=this[0],e={top:0,left:0};\"fixed\"===d.css(c,\"position\")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),D(a[0],\"html\")||(e=a.offset()),e={top:e.top+d.css(a[0],\"borderTopWidth\",!0),left:e.left+d.css(a[0],\"borderLeftWidth\",!0)});return{top:b.top-e.top-d.css(c,\"marginTop\",!0),left:b.left-e.left-d.css(c,\"marginLeft\",!0)}}},offsetParent:function(){return this.map(function(){for(var a=\n" - "this.offsetParent;a&&\"static\"===d.css(a,\"position\");)a=a.offsetParent;return a||Ka})}});d.each({scrollLeft:\"pageXOffset\",scrollTop:\"pageYOffset\"},function(a,b){var c=\"pageYOffset\"===b;d.fn[a]=function(e){return U(this,function(a,e,h){var f;d.isWindow(a)?f=a:9===a.nodeType&&(f=a.defaultView);if(void 0===h)return f?f[b]:a[e];f?f.scrollTo(c?f.pageXOffset:h,c?h:f.pageYOffset):a[e]=h},a,e,arguments.length)}});d.each([\"top\",\"left\"],function(a,b){d.cssHooks[b]=kb(x.pixelPosition,function(a,e){if(e)return e=\n" - "ta(a,b),Na.test(e)?d(a).position()[b]+\"px\":e})});d.each({Height:\"height\",Width:\"width\"},function(a,b){d.each({padding:\"inner\"+a,content:b,\"\":\"outer\"+a},function(c,e){d.fn[e]=function(f,g){var h=arguments.length&&(c||\"boolean\"!==typeof f),k=c||(!0===f||!0===g?\"margin\":\"border\");return U(this,function(b,c,f){return d.isWindow(b)?0===e.indexOf(\"outer\")?b[\"inner\"+a]:b.document.documentElement[\"client\"+a]:9===b.nodeType?(c=b.documentElement,Math.max(b.body[\"scroll\"+a],c[\"scroll\"+a],b.body[\"offset\"+a],\n" - "c[\"offset\"+a],c[\"client\"+a])):void 0===f?d.css(b,c,k):d.style(b,c,f,k)},b,h?f:void 0,h)}})});d.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,\"**\"):this.off(b,a||\"**\",c)}});d.holdReady=function(a){a?d.readyWait++:d.ready(!0)};d.isArray=Array.isArray;d.parseJSON=JSON.parse;d.nodeName=D;\"function\"===typeof define&&define.amd&&\n" - "define(\"jquery\",[],function(){return d});var Fc=p.jQuery,Gc=p.$;d.noConflict=function(a){p.$===d&&(p.$=Gc);a&&p.jQuery===d&&(p.jQuery=Fc);return d};t||(p.jQuery=p.$=d);return d});\n" + "var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(n,C,w){n instanceof String&&(n=String(n));for(var I=n.length,t=0;ttbody\",a)[0]||a:a}function Ub(a){a.type=(null!==a.getAttribute(\"type\"))+\"/\"+a.type;return a}function Vb(a){var b=Wb.exec(a.type);b?a.type=b[1]:a.removeAttribute(\"type\");return a}function ib(a,b){var d,e;if(1===b.nodeType){if(q.hasData(a)){var f=q.access(a);var g=q.set(b,f);if(f=f.events)for(e in delete g.handle,\n" + "g.events={},f)for(g=0,d=f[e].length;gb;b+=2)\"margin\"===d&&(g+=c.css(a,d+ba[b],!0,f)),e?(\"content\"===d&&(g-=c.css(a,\"padding\"+ba[b],!0,f)),\"margin\"!==d&&(g-=c.css(a,\"border\"+ba[b]+\"Width\",!0,f))):(g+=c.css(a,\"padding\"+ba[b],!0,f),\"padding\"!==\n" + "d&&(g+=c.css(a,\"border\"+ba[b]+\"Width\",!0,f)));return g}function sb(a,b,d){var e=Ga(a),f=ra(a,b,e),g=\"border-box\"===c.css(a,\"boxSizing\",!1,e);if(Pa.test(f))return f;var h=g&&(y.boxSizingReliable()||f===a.style[b]);\"auto\"===f&&(f=a[\"offset\"+b[0].toUpperCase()+b.slice(1)]);f=parseFloat(f)||0;return f+rb(a,b,d||(g?\"border\":\"content\"),h,e)+\"px\"}function E(a,b,d,c,f){return new E.prototype.init(a,b,d,c,f)}function Qa(){Ha&&(!1===p.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(Qa):n.setTimeout(Qa,\n" + "c.fx.interval),c.fx.tick())}function tb(){n.setTimeout(function(){sa=void 0});return sa=c.now()}function Ia(a,b){var d=0,c={height:a};for(b=b?1:0;4>d;d+=2-b){var f=ba[d];c[\"margin\"+f]=c[\"padding\"+f]=a}b&&(c.opacity=c.width=a);return c}function ub(a,b,d){for(var c,f=(S.tweeners[b]||[]).concat(S.tweeners[\"*\"]),g=0,h=f.length;gd&&f)return b;f||h.notifyWith(a,[k,1,0]);h.resolveWith(a,[k]);return!1},k=h.promise({elem:a,props:c.extend({},\n" + "b),opts:c.extend(!0,{specialEasing:{},easing:c.easing._default},d),originalProperties:b,originalOptions:d,startTime:sa||tb(),duration:d.duration,tweens:[],createTween:function(b,d){b=c.Tween(a,k.opts,b,d,k.opts.specialEasing[b]||k.opts.easing);k.tweens.push(b);return b},stop:function(b){var d=0,c=b?k.tweens.length:0;if(e)return this;for(e=!0;da?this[a+this.length]:this[a]},pushStack:function(a){a=c.merge(this.constructor(),a);a.prevObject=this;return a},each:function(a){return c.each(this,a)},map:function(a){return this.pushStack(c.map(this,function(b,\n" + "d){return a.call(b,d,b)}))},slice:function(){return this.pushStack(fa.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length;a=+a+(0>a?b:0);return this.pushStack(0<=a&&aG.cacheLength&&delete a[b.shift()];return a[c+\" \"]=d}var b=[];return a}function e(a){a[A]=!0;return a}function f(a){var b=z.createElement(\"fieldset\");try{return!!a(b)}catch(v){return!1}finally{b.parentNode&&b.parentNode.removeChild(b)}}\n" + "function g(a,b){a=a.split(\"|\");for(var c=a.length;c--;)G.attrHandle[a[c]]=b}function h(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)for(;c=c.nextSibling;)if(c===b)return-1;return a?1:-1}function l(a){return function(b){return\"input\"===b.nodeName.toLowerCase()&&b.type===a}}function k(a){return function(b){var c=b.nodeName.toLowerCase();return(\"input\"===c||\"button\"===c)&&b.type===a}}function m(a){return function(b){return\"form\"in b?b.parentNode&&\n" + "!1===b.disabled?\"label\"in b?\"label\"in b.parentNode?b.parentNode.disabled===a:b.disabled===a:b.isDisabled===a||b.isDisabled!==!a&&za(b)===a:b.disabled===a:\"label\"in b?b.disabled===a:!1}}function n(a){return e(function(b){b=+b;return e(function(c,d){for(var e,f=a([],c.length,b),g=f.length;g--;)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function x(a){return a&&\"undefined\"!==typeof a.getElementsByTagName&&a}function u(){}function q(a){for(var b=0,c=a.length,d=\"\";b+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*/,la=/=[\\x20\\t\\r\\n\\f]*([^\\]'\"]*?)[\\x20\\t\\r\\n\\f]*\\]/g,ma=/:((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)/,\n" + "pa=/^(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+$/,Z={ID:/^#((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)/,CLASS:/^\\.((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)/,TAG:/^((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+|[*])/,ATTR:/^\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\]/,PSEUDO:/^:((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?=)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\.|[\\w-]|[^\\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)/,\n" + "CHILD:/^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)/i,bool:/^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$/i,needsContext:/^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)/i},qa=/^(?:input|select|textarea|button)$/i,sa=/^h\\d$/i,Y=/^[^{]+\\{\\s*\\[native \\w/,\n" + "va=/^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,da=/[+~]/,ia=/\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)/ig,ja=function(a,b,c){a=\"0x\"+b-65536;return a!==a||c?b:0>a?String.fromCharCode(a+65536):String.fromCharCode(a>>10|55296,a&1023|56320)},oa=/([\\0-\\x1f\\x7f]|^-?\\d)|^-$|[^\\0-\\x1f\\x7f-\\uFFFF\\w-]/g,ra=function(a,b){return b?\"\\x00\"===a?\"\\ufffd\":a.slice(0,-1)+\"\\\\\"+a.charCodeAt(a.length-1).toString(16)+\" \":\"\\\\\"+a},ua=function(){xa()},za=Fa(function(a){return!0===a.disabled&&(\"form\"in a||\"label\"in a)},{dir:\"parentNode\",\n" + "next:\"legend\"});try{ta.apply(D=ba.call(V.childNodes),V.childNodes),D[V.childNodes.length].nodeType}catch(F){ta={apply:D.length?function(a,b){aa.apply(a,ba.call(b))}:function(a,b){for(var c=a.length,d=0;a[c++]=b[d++];);a.length=c-1}}}var J=b.support={};var Aa=b.isXML=function(a){return(a=a&&(a.ownerDocument||a).documentElement)?\"HTML\"!==a.nodeName:!1};var xa=b.setDocument=function(a){var b;a=a?a.ownerDocument||a:V;if(a===z||9!==a.nodeType||!a.documentElement)return z;z=a;X=z.documentElement;W=!Aa(z);\n" + "V!==z&&(b=z.defaultView)&&b.top!==b&&(b.addEventListener?b.addEventListener(\"unload\",ua,!1):b.attachEvent&&b.attachEvent(\"onunload\",ua));J.attributes=f(function(a){a.className=\"i\";return!a.getAttribute(\"className\")});J.getElementsByTagName=f(function(a){a.appendChild(z.createComment(\"\"));return!a.getElementsByTagName(\"*\").length});J.getElementsByClassName=Y.test(z.getElementsByClassName);J.getById=f(function(a){X.appendChild(a).id=A;return!z.getElementsByName||!z.getElementsByName(A).length});J.getById?\n" + "(G.filter.ID=function(a){var b=a.replace(ia,ja);return function(a){return a.getAttribute(\"id\")===b}},G.find.ID=function(a,b){if(\"undefined\"!==typeof b.getElementById&&W)return(a=b.getElementById(a))?[a]:[]}):(G.filter.ID=function(a){var b=a.replace(ia,ja);return function(a){return(a=\"undefined\"!==typeof a.getAttributeNode&&a.getAttributeNode(\"id\"))&&a.value===b}},G.find.ID=function(a,b){if(\"undefined\"!==typeof b.getElementById&&W){var c,d=b.getElementById(a);if(d){if((c=d.getAttributeNode(\"id\"))&&\n" + "c.value===a)return[d];var e=b.getElementsByName(a);for(b=0;d=e[b++];)if((c=d.getAttributeNode(\"id\"))&&c.value===a)return[d]}return[]}});G.find.TAG=J.getElementsByTagName?function(a,b){if(\"undefined\"!==typeof b.getElementsByTagName)return b.getElementsByTagName(a);if(J.qsa)return b.querySelectorAll(a)}:function(a,b){var c=[],d=0;b=b.getElementsByTagName(a);if(\"*\"===a){for(;a=b[d++];)1===a.nodeType&&c.push(a);return c}return b};G.find.CLASS=J.getElementsByClassName&&function(a,b){if(\"undefined\"!==typeof b.getElementsByClassName&&\n" + "W)return b.getElementsByClassName(a)};ya=[];Q=[];if(J.qsa=Y.test(z.querySelectorAll))f(function(a){X.appendChild(a).innerHTML=\"\";a.querySelectorAll(\"[msallowcapture^='']\").length&&Q.push(\"[*^$]=[\\\\x20\\\\t\\\\r\\\\n\\\\f]*(?:''|\\\"\\\")\");a.querySelectorAll(\"[selected]\").length||Q.push(\"\\\\[[\\\\x20\\\\t\\\\r\\\\n\\\\f]*(?:value|checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)\");\n" + "a.querySelectorAll(\"[id~=\"+A+\"-]\").length||Q.push(\"~=\");a.querySelectorAll(\":checked\").length||Q.push(\":checked\");a.querySelectorAll(\"a#\"+A+\"+*\").length||Q.push(\".#.+[+~]\")}),f(function(a){a.innerHTML=\"\";var b=z.createElement(\"input\");b.setAttribute(\"type\",\"hidden\");a.appendChild(b).setAttribute(\"name\",\"D\");a.querySelectorAll(\"[name=d]\").length&&Q.push(\"name[\\\\x20\\\\t\\\\r\\\\n\\\\f]*[*^$|!~]?=\");2!==a.querySelectorAll(\":enabled\").length&&\n" + "Q.push(\":enabled\",\":disabled\");X.appendChild(a).disabled=!0;2!==a.querySelectorAll(\":disabled\").length&&Q.push(\":enabled\",\":disabled\");a.querySelectorAll(\"*,:x\");Q.push(\",.*:\")});(J.matchesSelector=Y.test(C=X.matches||X.webkitMatchesSelector||X.mozMatchesSelector||X.oMatchesSelector||X.msMatchesSelector))&&f(function(a){J.disconnectedMatch=C.call(a,\"*\");C.call(a,\"[s!='']:x\");ya.push(\"!=\",\":((?:\\\\\\\\.|[\\\\w-]|[^\\x00-\\\\xa0])+)(?:\\\\((('((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\")|((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|\\\\[[\\\\x20\\\\t\\\\r\\\\n\\\\f]*((?:\\\\\\\\.|[\\\\w-]|[^\\x00-\\\\xa0])+)(?:[\\\\x20\\\\t\\\\r\\\\n\\\\f]*([*^$|!~]?=)[\\\\x20\\\\t\\\\r\\\\n\\\\f]*(?:'((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\"|((?:\\\\\\\\.|[\\\\w-]|[^\\x00-\\\\xa0])+))|)[\\\\x20\\\\t\\\\r\\\\n\\\\f]*\\\\])*)|.*)\\\\)|)\")});\n" + "Q=Q.length&&new RegExp(Q.join(\"|\"));ya=ya.length&&new RegExp(ya.join(\"|\"));w=(b=Y.test(X.compareDocumentPosition))||Y.test(X.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a;b=b&&b.parentNode;return a===b||!!(b&&1===b.nodeType&&(c.contains?c.contains(b):a.compareDocumentPosition&&a.compareDocumentPosition(b)&16))}:function(a,b){if(b)for(;b=b.parentNode;)if(b===a)return!0;return!1};I=b?function(a,b){if(a===b)return Da=!0,0;var c=!a.compareDocumentPosition-!b.compareDocumentPosition;\n" + "if(c)return c;c=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1;return c&1||!J.sortDetached&&b.compareDocumentPosition(a)===c?a===z||a.ownerDocument===V&&w(V,a)?-1:b===z||b.ownerDocument===V&&w(V,b)?1:T?L(T,a)-L(T,b):0:c&4?-1:1}:function(a,b){if(a===b)return Da=!0,0;var c=0,d=a.parentNode,e=b.parentNode,f=[a],g=[b];if(!d||!e)return a===z?-1:b===z?1:d?-1:e?1:T?L(T,a)-L(T,b):0;if(d===e)return h(a,b);for(;a=a.parentNode;)f.unshift(a);for(a=b;a=a.parentNode;)g.unshift(a);for(;f[c]===\n" + "g[c];)c++;return c?h(f[c],g[c]):f[c]===V?-1:g[c]===V?1:0};return z};b.matches=function(a,c){return b(a,null,null,c)};b.matchesSelector=function(a,c){(a.ownerDocument||a)!==z&&xa(a);c=c.replace(la,\"='$1']\");if(!(!J.matchesSelector||!W||E[c+\" \"]||ya&&ya.test(c)||Q&&Q.test(c)))try{var d=C.call(a,c);if(d||J.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(P){}return 0\":{dir:\"parentNode\",first:!0},\" \":{dir:\"parentNode\"},\"+\":{dir:\"previousSibling\",first:!0},\n" + "\"~\":{dir:\"previousSibling\"}},preFilter:{ATTR:function(a){a[1]=a[1].replace(ia,ja);a[3]=(a[3]||a[4]||a[5]||\"\").replace(ia,ja);\"~=\"===a[2]&&(a[3]=\" \"+a[3]+\" \");return a.slice(0,4)},CHILD:function(a){a[1]=a[1].toLowerCase();\"nth\"===a[1].slice(0,3)?(a[3]||b.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*(\"even\"===a[3]||\"odd\"===a[3])),a[5]=+(a[7]+a[8]||\"odd\"===a[3])):a[3]&&b.error(a[0]);return a},PSEUDO:function(a){var b,c=!a[6]&&a[2];if(Z.CHILD.test(a[0]))return null;a[3]?a[2]=a[4]||a[5]||\"\":c&&ma.test(c)&&\n" + "(b=ca(c,!0))&&(b=c.indexOf(\")\",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b));return a.slice(0,3)}},filter:{TAG:function(a){var b=a.replace(ia,ja).toLowerCase();return\"*\"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=H[a+\" \"];return b||(b=new RegExp(\"(^|[\\\\x20\\\\t\\\\r\\\\n\\\\f])\"+a+\"([\\\\x20\\\\t\\\\r\\\\n\\\\f]|$)\"),H(a,function(a){return b.test(\"string\"===typeof a.className&&a.className||\"undefined\"!==typeof a.getAttribute&&a.getAttribute(\"class\")||\n" + "\"\")}))},ATTR:function(a,c,d){return function(e){e=b.attr(e,a);if(null==e)return\"!=\"===c;if(!c)return!0;e+=\"\";return\"=\"===c?e===d:\"!=\"===c?e!==d:\"^=\"===c?d&&0===e.indexOf(d):\"*=\"===c?d&&-1a.nodeType)return!1;return!0},parent:function(a){return!G.pseudos.empty(a)},header:function(a){return sa.test(a.nodeName)},input:function(a){return qa.test(a.nodeName)},\n" + "button:function(a){var b=a.nodeName.toLowerCase();return\"input\"===b&&\"button\"===a.type||\"button\"===b},text:function(a){var b;return\"input\"===a.nodeName.toLowerCase()&&\"text\"===a.type&&(null==(b=a.getAttribute(\"type\"))||\"text\"===b.toLowerCase())},first:n(function(){return[0]}),last:n(function(a,b){return[b-1]}),eq:n(function(a,b,c){return[0>c?c+b:c]}),even:n(function(a,b){for(var c=0;cc?c+b:c;0<=--b;)a.push(b);return a}),gt:n(function(a,b,c){for(c=0>c?c+b:c;++c\";return\"#\"===a.firstChild.getAttribute(\"href\")})||g(\"type|href|height|width\",function(a,b,c){if(!c)return a.getAttribute(b,\"type\"===b.toLowerCase()?1:2)});J.attributes&&f(function(a){a.innerHTML=\"\";\n" + "a.firstChild.setAttribute(\"value\",\"\");return\"\"===a.firstChild.getAttribute(\"value\")})||g(\"value\",function(a,b,c){if(!c&&\"input\"===a.nodeName.toLowerCase())return a.defaultValue});f(function(a){return null==a.getAttribute(\"disabled\")})||g(\"checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped\",function(a,b,c){var d;if(!c)return!0===a[b]?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null});return b}(n);c.find=ka;c.expr=\n" + "ka.selectors;c.expr[\":\"]=c.expr.pseudos;c.uniqueSort=c.unique=ka.uniqueSort;c.text=ka.getText;c.isXMLDoc=ka.isXML;c.contains=ka.contains;c.escapeSelector=ka.escape;var Y=function(a,b,d){for(var e=[],f=void 0!==d;(a=a[b])&&9!==a.nodeType;)if(1===a.nodeType){if(f&&c(a).is(d))break;e.push(a)}return e},Ab=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},Bb=c.expr.match.needsContext,Cb=/^<([a-z][^\\/\\0>:\\x20\\t\\r\\n\\f]*)[\\x20\\t\\r\\n\\f]*\\/?>(?:<\\/\\1>|)$/i,Pb=/^.[^:#\\[\\.,]*$/;\n" + "c.filter=function(a,b,d){var e=b[0];d&&(a=\":not(\"+a+\")\");return 1===b.length&&1===e.nodeType?c.find.matchesSelector(e,a)?[e]:[]:c.find.matches(a,c.grep(b,function(a){return 1===a.nodeType}))};c.fn.extend({find:function(a){var b,d=this.length,e=this;if(\"string\"!==typeof a)return this.pushStack(c(a).filter(function(){for(b=0;b)[^>]*|#([\\w-]+))$/;(c.fn.init=function(a,b,d){if(!a)return this;d=d||jc;if(\"string\"===typeof a){var e=\"<\"===a[0]&&\">\"===a[a.length-1]&&3<=a.length?[null,a,null]:ic.exec(a);if(!e||!e[1]&&b)return!b||b.jquery?(b||d).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof c?b[0]:b,c.merge(this,c.parseHTML(e[1],b&&\n" + "b.nodeType?b.ownerDocument||b:p,!0)),Cb.test(e[1])&&c.isPlainObject(b))for(e in b)if(c.isFunction(this[e]))this[e](b[e]);else this.attr(e,b[e])}else if(a=p.getElementById(e[2]))this[0]=a,this.length=1;return this}return a.nodeType?(this[0]=a,this.length=1,this):c.isFunction(a)?void 0!==d.ready?d.ready(a):a(c):c.makeArray(a,this)}).prototype=c.fn;var jc=c(p);var kc=/^(?:parents|prev(?:Until|All))/,lc={children:!0,contents:!0,next:!0,prev:!0};c.fn.extend({has:function(a){var b=c(a,this),d=b.length;\n" + "return this.filter(function(){for(var a=0;ad.nodeType&&(h?-1=g&&(d!==na&&(h=void 0,l=[B]),b.rejectWith(h,\n" + "l))}};a?m():(c.Deferred.getStackHook&&(m.stackTrace=c.Deferred.getStackHook()),n.setTimeout(m))}}var g=0;return c.Deferred(function(g){b[0][3].add(f(0,g,c.isFunction(e)?e:ma,g.notifyWith));b[1][3].add(f(0,g,c.isFunction(a)?a:ma));b[2][3].add(f(0,g,c.isFunction(d)?d:na))}).promise()},promise:function(a){return null!=a?c.extend(a,e):e}},f={};c.each(b,function(a,c){var g=c[2],h=c[5];e[c[1]]=g.add;h&&g.add(function(){d=h},b[3-a][2].disable,b[0][2].lock);g.add(c[3].fire);f[c[0]]=function(){f[c[0]+\"With\"](this===\n" + "f?void 0:this,arguments);return this};f[c[0]+\"With\"]=g.fireWith});e.promise(f);a&&a.call(f,f);return f},when:function(a){var b=arguments.length,d=b,e=Array(d),f=fa.call(arguments),g=c.Deferred(),h=function(a){return function(c){e[a]=this;f[a]=1=b&&($a(a,g.done(h(d)).resolve,g.reject,!b),\"pending\"===g.state()||c.isFunction(f[d]&&f[d].then)))return g.then();for(;d--;)$a(f[d],h(d),g.reject);return g.promise()}});var mc=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;\n" + "c.Deferred.exceptionHook=function(a,b){n.console&&n.console.warn&&a&&mc.test(a.name)&&n.console.warn(\"jQuery.Deferred exception: \"+a.message,a.stack,b)};c.readyException=function(a){n.setTimeout(function(){throw a;})};var Va=c.Deferred();c.fn.ready=function(a){Va.then(a).catch(function(a){c.readyException(a)});return this};c.extend({isReady:!1,readyWait:1,ready:function(a){(!0===a?--c.readyWait:c.isReady)||(c.isReady=!0,!0!==a&&0<--c.readyWait||Va.resolveWith(p,[c]))}});c.ready.then=Va.then;\"complete\"===\n" + "p.readyState||\"loading\"!==p.readyState&&!p.documentElement.doScroll?n.setTimeout(c.ready):(p.addEventListener(\"DOMContentLoaded\",ca),n.addEventListener(\"load\",ca));var aa=function(a,b,d,e,f,g,h){var l=0,k=a.length,m=null==d;if(\"object\"===c.type(d))for(l in f=!0,d)aa(a,b,l,d[l],!0,g,h);else if(void 0!==e&&(f=!0,c.isFunction(e)||(h=!0),m&&(h?(b.call(a,e),b=null):(m=b,b=function(a,b,d){return m.call(c(a),d)})),b))for(;l\\x20\\t\\r\\n\\f]+)/i,fb=/^$|\\/(?:java|ecma)script/i,D={option:[1,\"\"],thead:[1,\"\",\"
\"],col:[2,\"\",\"
\"],tr:[2,\"\",\"
\"],td:[3,\n" + "\"\",\"
\"],_default:[0,\"\",\"\"]};D.optgroup=D.option;D.tbody=D.tfoot=D.colgroup=D.caption=D.thead;D.th=D.td;var Tb=/<|&#?\\w+;/;(function(){var a=p.createDocumentFragment().appendChild(p.createElement(\"div\")),b=p.createElement(\"input\");b.setAttribute(\"type\",\"radio\");b.setAttribute(\"checked\",\"checked\");b.setAttribute(\"name\",\"t\");a.appendChild(b);y.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked;a.innerHTML=\"\";y.noCloneChecked=!!a.cloneNode(!0).lastChild.defaultValue})();\n" + "var Ma=p.documentElement,nc=/^key/,oc=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Gb=/^([^.]*)(?:\\.(.+)|)/;c.event={global:{},add:function(a,b,d,e,f){var g,h,l,k,m;if(l=q.get(a)){if(d.handler){var n=d;d=n.handler;f=n.selector}f&&c.find.matchesSelector(Ma,f);d.guid||(d.guid=c.guid++);(h=l.events)||(h=l.events={});(g=l.handle)||(g=l.handle=function(b){return\"undefined\"!==typeof c&&c.event.triggered!==b.type?c.event.dispatch.apply(a,arguments):void 0});b=(b||\"\").match(R)||[\"\"];for(l=b.length;l--;){var x=\n" + "Gb.exec(b[l])||[];var u=k=x[1];var p=(x[2]||\"\").split(\".\").sort();u&&(x=c.event.special[u]||{},u=(f?x.delegateType:x.bindType)||u,x=c.event.special[u]||{},k=c.extend({type:u,origType:k,data:e,handler:d,guid:d.guid,selector:f,needsContext:f&&c.expr.match.needsContext.test(f),namespace:p.join(\".\")},n),(m=h[u])||(m=h[u]=[],m.delegateCount=0,x.setup&&!1!==x.setup.call(a,e,p,g)||a.addEventListener&&a.addEventListener(u,g)),x.add&&(x.add.call(a,k),k.handler.guid||(k.handler.guid=d.guid)),f?m.splice(m.delegateCount++,\n" + "0,k):m.push(k),c.event.global[u]=!0)}}},remove:function(a,b,d,e,f){var g,h,l,k,m,n=q.hasData(a)&&q.get(a);if(n&&(l=n.events)){b=(b||\"\").match(R)||[\"\"];for(k=b.length;k--;){var x=Gb.exec(b[k])||[];var u=m=x[1];var p=(x[2]||\"\").split(\".\").sort();if(u){var y=c.event.special[u]||{};u=(e?y.delegateType:y.bindType)||u;var t=l[u]||[];x=x[2]&&new RegExp(\"(^|\\\\.)\"+p.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\");for(h=g=t.length;g--;){var w=t[g];!f&&m!==w.origType||d&&d.guid!==w.guid||x&&!x.test(w.namespace)||e&&e!==w.selector&&\n" + "(\"**\"!==e||!w.selector)||(t.splice(g,1),w.selector&&t.delegateCount--,y.remove&&y.remove.call(a,w))}h&&!t.length&&(y.teardown&&!1!==y.teardown.call(a,p,n.handle)||c.removeEvent(a,u,n.handle),delete l[u])}else for(u in l)c.event.remove(a,u+b[k],d,e,!0)}c.isEmptyObject(l)&&q.remove(a,\"handle events\")}},dispatch:function(a){var b=c.event.fix(a),d,e,f,g=Array(arguments.length);var h=(q.get(this,\"events\")||{})[b.type]||[];var l=c.event.special[b.type]||{};g[0]=b;for(d=1;d\\x20\\t\\r\\n\\f]*)[^>]*)\\/>/gi,qc=/\\s*$/g;c.extend({htmlPrefilter:function(a){return a.replace(pc,\n" + "\"<$1>\")},clone:function(a,b,d){var e,f=a.cloneNode(!0),g=c.contains(a.ownerDocument,a);if(!(y.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||c.isXMLDoc(a))){var h=H(f);var l=H(a);var k=0;for(e=l.length;kc.inArray(this,a)&&(c.cleanData(H(this)),d&&d.replaceChild(b,this))},a)}});c.each({appendTo:\"append\",prependTo:\"prepend\",insertBefore:\"before\",insertAfter:\"after\",replaceAll:\"replaceWith\"},function(a,b){c.fn[a]=\n" + "function(a){for(var d=[],f=c(a),g=f.length-1,h=0;h<=g;h++)a=h===g?this:this.clone(!0),c(f[h])[b](a),Ua.apply(d,a.get());return this.pushStack(d)}});var lb=/^margin/,Pa=new RegExp(\"^(\"+Db+\")(?!px)[a-z%]+$\",\"i\"),Ga=function(a){var b=a.ownerDocument.defaultView;b&&b.opener||(b=n);return b.getComputedStyle(a)};(function(){function a(){if(h){h.style.cssText=\"box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%\";h.innerHTML=\"\";Ma.appendChild(g);var a=\n" + "n.getComputedStyle(h);b=\"1%\"!==a.top;f=\"2px\"===a.marginLeft;d=\"4px\"===a.width;h.style.marginRight=\"50%\";e=\"4px\"===a.marginRight;Ma.removeChild(g);h=null}}var b,d,e,f,g=p.createElement(\"div\"),h=p.createElement(\"div\");h.style&&(h.style.backgroundClip=\"content-box\",h.cloneNode(!0).style.backgroundClip=\"\",y.clearCloneStyle=\"content-box\"===h.style.backgroundClip,g.style.cssText=\"border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute\",g.appendChild(h),c.extend(y,{pixelPosition:function(){a();\n" + "return b},boxSizingReliable:function(){a();return d},pixelMarginRight:function(){a();return e},reliableMarginLeft:function(){a();return f}}))})();var rc=/^(none|table(?!-c[ea]).+)/,Hb=/^--/,sc={position:\"absolute\",visibility:\"hidden\",display:\"block\"},Ib={letterSpacing:\"0\",fontWeight:\"400\"},pb=[\"Webkit\",\"Moz\",\"ms\"],ob=p.createElement(\"div\").style;c.extend({cssHooks:{opacity:{get:function(a,b){if(b)return a=ra(a,\"opacity\"),\"\"===a?\"1\":a}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,\n" + "flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{\"float\":\"cssFloat\"},style:function(a,b,d,e){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var f,g=c.camelCase(b),h=Hb.test(b),l=a.style;h||(b=nb(g));var k=c.cssHooks[b]||c.cssHooks[g];if(void 0!==d){var m=typeof d;\"string\"===m&&(f=oa.exec(d))&&f[1]&&(d=bb(a,b,f),m=\"number\");null!=d&&d===d&&(\"number\"===m&&(d+=f&&f[3]||(c.cssNumber[g]?\"\":\"px\")),y.clearCloneStyle||\"\"!==d||0!==\n" + "b.indexOf(\"background\")||(l[b]=\"inherit\"),k&&\"set\"in k&&void 0===(d=k.set(a,d,e))||(h?l.setProperty(b,d):l[b]=d))}else return k&&\"get\"in k&&void 0!==(f=k.get(a,!1,e))?f:l[b]}},css:function(a,b,d,e){var f;var g=c.camelCase(b);Hb.test(b)||(b=nb(g));(g=c.cssHooks[b]||c.cssHooks[g])&&\"get\"in g&&(f=g.get(a,!0,d));void 0===f&&(f=ra(a,b,e));\"normal\"===f&&b in Ib&&(f=Ib[b]);return\"\"===d||d?(a=parseFloat(f),!0===d||isFinite(a)?a||0:f):f}});c.each([\"height\",\"width\"],function(a,b){c.cssHooks[b]={get:function(a,\n" + "e,f){if(e)return!rc.test(c.css(a,\"display\"))||a.getClientRects().length&&a.getBoundingClientRect().width?sb(a,b,f):Eb(a,sc,function(){return sb(a,b,f)})},set:function(a,e,f){var d,h=f&&Ga(a);(f=f&&rb(a,b,f,\"border-box\"===c.css(a,\"boxSizing\",!1,h),h))&&(d=oa.exec(e))&&\"px\"!==(d[3]||\"px\")&&(a.style[b]=e,e=c.css(a,b));return qb(a,e,f)}}});c.cssHooks.marginLeft=mb(y.reliableMarginLeft,function(a,b){if(b)return(parseFloat(ra(a,\"marginLeft\"))||a.getBoundingClientRect().left-Eb(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+\n" + "\"px\"});c.each({margin:\"\",padding:\"\",border:\"Width\"},function(a,b){c.cssHooks[a+b]={expand:function(c){var d=0,f={};for(c=\"string\"===typeof c?c.split(\" \"):[c];4>d;d++)f[a+ba[d]+b]=c[d]||c[d-2]||c[0];return f}};lb.test(a)||(c.cssHooks[a+b].set=qb)});c.fn.extend({css:function(a,b){return aa(this,function(a,b,f){var d,e={},l=0;if(Array.isArray(b)){f=Ga(a);for(d=b.length;le.indexOf(\" \"+f+\" \")&&(e+=f+\" \");e=L(e);l!==e&&d.setAttribute(\"class\",e)}}return this},removeClass:function(a){var b,d,e,f,g,h=0;if(c.isFunction(a))return this.each(function(b){c(this).removeClass(a.call(this,b,ea(this)))});\n" + "if(!arguments.length)return this.attr(\"class\",\"\");if(\"string\"===typeof a&&a)for(b=a.match(R)||[];d=this[h++];){var l=ea(d);if(e=1===d.nodeType&&\" \"+L(l)+\" \"){for(g=0;f=b[g++];)for(;-1d?g:e?d:0;al.indexOf(\":\")&&\"on\"+l;a=a[c.expando]?a:new c.Event(l,\"object\"===typeof a&&a);a.isTrigger=e?2:3;a.namespace=k.join(\".\");a.rnamespace=a.namespace?new RegExp(\"(^|\\\\.)\"+k.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"):null;a.result=void 0;a.target||(a.target=d);b=null==b?[a]:c.makeArray(b,[a]);k=c.event.special[l]||{};if(e||!k.trigger||!1!==k.trigger.apply(d,b)){if(!e&&\n" + "!k.noBubble&&!c.isWindow(d)){var t=k.delegateType||l;Jb.test(t+l)||(m=m.parentNode);for(;m;m=m.parentNode)h.push(m),f=m;f===(d.ownerDocument||p)&&h.push(f.defaultView||f.parentWindow||n)}for(f=0;(m=h[f++])&&!a.isPropagationStopped();)a.type=1a||304===a;if(d){var p=m;for(var x=B,w,z,N,A,C=p.contents,D=p.dataTypes;\"*\"===D[0];)D.shift(),void 0===w&&(w=p.mimeType||x.getResponseHeader(\"Content-Type\"));if(w)for(z in C)if(C[z]&&C[z].test(w)){D.unshift(z);\n" + "break}if(D[0]in d)N=D[0];else{for(z in d){if(!D[0]||p.converters[z+\" \"+D[0]]){N=z;break}A||(A=z)}N=N||A}N?(N!==D[0]&&D.unshift(N),p=d[N]):p=void 0}a:{d=m;w=p;z=B;N=g;var T;x={};C=d.dataTypes.slice();if(C[1])for(H in d.converters)x[H.toLowerCase()]=d.converters[H];for(A=C.shift();A;){d.responseFields[A]&&(z[d.responseFields[A]]=w);!I&&N&&d.dataFilter&&(w=d.dataFilter(w,d.dataType));var I=A;if(A=C.shift())if(\"*\"===A)A=I;else if(\"*\"!==I&&I!==A){var H=x[I+\" \"+A]||x[\"* \"+A];if(!H)for(T in x)if(p=T.split(\" \"),\n" + "p[1]===A&&(H=x[I+\" \"+p[0]]||x[\"* \"+p[0]])){!0===H?H=x[T]:!0!==x[T]&&(A=p[0],C.unshift(p[1]));break}if(!0!==H)if(H&&d.throws)w=H(w);else try{w=H(w)}catch(hc){p={state:\"parsererror\",error:H?hc:\"No conversion from \"+I+\" to \"+A};break a}}}p={state:\"success\",data:w}}if(g)if(m.ifModified&&((k=B.getResponseHeader(\"Last-Modified\"))&&(c.lastModified[E]=k),(k=B.getResponseHeader(\"etag\"))&&(c.etag[E]=k)),204===a||\"HEAD\"===m.type)k=\"nocontent\";else if(304===a)k=\"notmodified\";else{k=p.state;var M=p.data;var L=\n" + "p.error;g=!L}else if(L=k,a||!k)k=\"error\",0>a&&(a=0);B.status=a;B.statusText=(b||k)+\"\";g?u.resolveWith(r,[M,k,B]):u.rejectWith(r,[B,k,L]);B.statusCode(y);y=void 0;l&&q.trigger(g?\"ajaxSuccess\":\"ajaxError\",[B,m,g?M:L]);t.fireWith(r,[B,k]);l&&(q.trigger(\"ajaxComplete\",[B,m]),--c.active||c.event.trigger(\"ajaxStop\"))}}\"object\"===typeof a&&(b=a,a=void 0);b=b||{};var e,f,g,h,l,k,m=c.ajaxSetup({},b),r=m.context||m,q=m.context&&(r.nodeType||r.jquery)?c(r):c.event,u=c.Deferred(),t=c.Callbacks(\"once memory\"),\n" + "y=m.statusCode||{},w={},C={},D=\"canceled\",B={readyState:0,getResponseHeader:function(a){var b;if(O){if(!g)for(g={};b=Ec.exec(f);)g[b[1].toLowerCase()]=b[2];b=g[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return O?f:null},setRequestHeader:function(a,b){null==O&&(a=C[a.toLowerCase()]=C[a.toLowerCase()]||a,w[a]=b);return this},overrideMimeType:function(a){null==O&&(m.mimeType=a);return this},statusCode:function(a){var b;if(a)if(O)B.always(a[B.status]);else for(b in a)y[b]=\n" + "[y[b],a[b]];return this},abort:function(a){a=a||D;e&&e.abort(a);d(0,a);return this}};u.promise(B);m.url=((a||m.url||za.href)+\"\").replace(Gc,za.protocol+\"//\");m.type=b.method||b.type||m.method||m.type;m.dataTypes=(m.dataType||\"*\").toLowerCase().match(R)||[\"\"];if(null==m.crossDomain){a=p.createElement(\"a\");try{a.href=m.url,a.href=a.href,m.crossDomain=Xa.protocol+\"//\"+Xa.host!==a.protocol+\"//\"+a.host}catch(N){m.crossDomain=!0}}m.data&&m.processData&&\"string\"!==typeof m.data&&(m.data=c.param(m.data,m.traditional));\n" + "wb(Mb,m,b,B);if(O)return B;(l=c.event&&m.global)&&0===c.active++&&c.event.trigger(\"ajaxStart\");m.type=m.type.toUpperCase();m.hasContent=!Fc.test(m.type);var E=m.url.replace(Cc,\"\");m.hasContent?m.data&&m.processData&&0===(m.contentType||\"\").indexOf(\"application/x-www-form-urlencoded\")&&(m.data=m.data.replace(Bc,\"+\")):(a=m.url.slice(E.length),m.data&&(E+=(Wa.test(E)?\"&\":\"?\")+m.data,delete m.data),!1===m.cache&&(E=E.replace(Dc,\"$1\"),a=(Wa.test(E)?\"&\":\"?\")+\"_=\"+Kb++ +a),m.url=E+a);m.ifModified&&(c.lastModified[E]&&\n" + "B.setRequestHeader(\"If-Modified-Since\",c.lastModified[E]),c.etag[E]&&B.setRequestHeader(\"If-None-Match\",c.etag[E]));(m.data&&m.hasContent&&!1!==m.contentType||b.contentType)&&B.setRequestHeader(\"Content-Type\",m.contentType);B.setRequestHeader(\"Accept\",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+(\"*\"!==m.dataTypes[0]?\", \"+Nb+\"; q=0.01\":\"\"):m.accepts[\"*\"]);for(k in m.headers)B.setRequestHeader(k,m.headers[k]);if(m.beforeSend&&(!1===m.beforeSend.call(r,B,m)||O))return B.abort();\n" + "D=\"abort\";t.add(m.complete);B.done(m.success);B.fail(m.error);if(e=wb(Sa,m,b,B)){B.readyState=1;l&&q.trigger(\"ajaxSend\",[B,m]);if(O)return B;m.async&&0\").prop({charset:a.scriptCharset,src:a.url}).on(\"load error\",d=function(a){b.remove();d=null;a&&f(\"error\"===a.type?404:200,a.type)});p.head.appendChild(b[0])},abort:function(){d&&d()}}}});var Ob=[],Ya=/(=)\\?(?=&|$)|\\?\\?/;c.ajaxSetup({jsonp:\"callback\",jsonpCallback:function(){var a=Ob.pop()||\n" + "c.expando+\"_\"+Kb++;this[a]=!0;return a}});c.ajaxPrefilter(\"json jsonp\",function(a,b,d){var e,f=!1!==a.jsonp&&(Ya.test(a.url)?\"url\":\"string\"===typeof a.data&&0===(a.contentType||\"\").indexOf(\"application/x-www-form-urlencoded\")&&Ya.test(a.data)&&\"data\");if(f||\"jsonp\"===a.dataTypes[0]){var g=a.jsonpCallback=c.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback;f?a[f]=a[f].replace(Ya,\"$1\"+g):!1!==a.jsonp&&(a.url+=(Wa.test(a.url)?\"&\":\"?\")+a.jsonp+\"=\"+g);a.converters[\"script json\"]=function(){e||\n" + "c.error(g+\" was not called\");return e[0]};a.dataTypes[0]=\"json\";var h=n[g];n[g]=function(){e=arguments};d.always(function(){void 0===h?c(n).removeProp(g):n[g]=h;a[g]&&(a.jsonpCallback=b.jsonpCallback,Ob.push(g));e&&c.isFunction(h)&&h(e[0]);e=h=void 0});return\"script\"}});y.createHTMLDocument=function(){var a=p.implementation.createHTMLDocument(\"\").body;a.innerHTML=\"
\";return 2===a.childNodes.length}();c.parseHTML=function(a,b,d){if(\"string\"!==typeof a)return[];\"boolean\"===\n" + "typeof b&&(d=b,b=!1);if(!b)if(y.createHTMLDocument){b=p.implementation.createHTMLDocument(\"\");var e=b.createElement(\"base\");e.href=p.location.href;b.head.appendChild(e)}else b=p;e=Cb.exec(a);d=!d&&[];if(e)return[b.createElement(e[1])];e=db([a],b,d);d&&d.length&&c(d).remove();return c.merge([],e.childNodes)};c.fn.load=function(a,b,d){var e,f,g=this,h=a.indexOf(\" \");if(-1\").append(c.parseHTML(a)).find(l):a)}).always(d&&function(a,b){g.each(function(){d.apply(this,f||[a.responseText,b,a])})});return this};c.each(\"ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend\".split(\" \"),function(a,b){c.fn[b]=function(a){return this.on(b,a)}});c.expr.pseudos.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};c.offset={setOffset:function(a,b,d){var e=\n" + "c.css(a,\"position\"),f=c(a),g={};\"static\"===e&&(a.style.position=\"relative\");var h=f.offset();var l=c.css(a,\"top\");var k=c.css(a,\"left\");(\"absolute\"===e||\"fixed\"===e)&&-1<(l+k).indexOf(\"auto\")?(k=f.position(),l=k.top,k=k.left):(l=parseFloat(l)||0,k=parseFloat(k)||0);c.isFunction(b)&&(b=b.call(a,d,c.extend({},h)));null!=b.top&&(g.top=b.top-h.top+l);null!=b.left&&(g.left=b.left-h.left+k);\"using\"in b?b.using.call(a,g):f.css(g)}};c.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:\n" + "this.each(function(b){c.offset.setOffset(this,a,b)});var b;if(b=this[0]){if(!b.getClientRects().length)return{top:0,left:0};var d=b.getBoundingClientRect();var e=b.ownerDocument;b=e.documentElement;e=e.defaultView;return{top:d.top+e.pageYOffset-b.clientTop,left:d.left+e.pageXOffset-b.clientLeft}}},position:function(){if(this[0]){var a=this[0],b={top:0,left:0};if(\"fixed\"===c.css(a,\"position\"))var d=a.getBoundingClientRect();else{var e=this.offsetParent();d=this.offset();t(e[0],\"html\")||(b=e.offset());\n" + "b={top:b.top+c.css(e[0],\"borderTopWidth\",!0),left:b.left+c.css(e[0],\"borderLeftWidth\",!0)}}return{top:d.top-b.top-c.css(a,\"marginTop\",!0),left:d.left-b.left-c.css(a,\"marginLeft\",!0)}}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent;a&&\"static\"===c.css(a,\"position\");)a=a.offsetParent;return a||Ma})}});c.each({scrollLeft:\"pageXOffset\",scrollTop:\"pageYOffset\"},function(a,b){var d=\"pageYOffset\"===b;c.fn[a]=function(e){return aa(this,function(a,e,h){if(c.isWindow(a))var f=\n" + "a;else 9===a.nodeType&&(f=a.defaultView);if(void 0===h)return f?f[b]:a[e];f?f.scrollTo(d?f.pageXOffset:h,d?h:f.pageYOffset):a[e]=h},a,e,arguments.length)}});c.each([\"top\",\"left\"],function(a,b){c.cssHooks[b]=mb(y.pixelPosition,function(a,e){if(e)return e=ra(a,b),Pa.test(e)?c(a).position()[b]+\"px\":e})});c.each({Height:\"height\",Width:\"width\"},function(a,b){c.each({padding:\"inner\"+a,content:b,\"\":\"outer\"+a},function(d,e){c.fn[e]=function(f,g){var h=arguments.length&&(d||\"boolean\"!==typeof f),l=d||(!0===\n" + "f||!0===g?\"margin\":\"border\");return aa(this,function(b,d,f){return c.isWindow(b)?0===e.indexOf(\"outer\")?b[\"inner\"+a]:b.document.documentElement[\"client\"+a]:9===b.nodeType?(d=b.documentElement,Math.max(b.body[\"scroll\"+a],d[\"scroll\"+a],b.body[\"offset\"+a],d[\"offset\"+a],d[\"client\"+a])):void 0===f?c.css(b,d,l):c.style(b,d,f,l)},b,h?f:void 0,h)}})});c.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,e){return this.on(b,a,\n" + "c,e)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,\"**\"):this.off(b,a||\"**\",c)}});c.holdReady=function(a){a?c.readyWait++:c.ready(!0)};c.isArray=Array.isArray;c.parseJSON=JSON.parse;c.nodeName=t;\"function\"===typeof define&&define.amd&&define(\"jquery\",[],function(){return c});var Ic=n.jQuery,Jc=n.$;c.noConflict=function(a){n.$===c&&(n.$=Jc);a&&n.jQuery===c&&(n.jQuery=Ic);return c};C||(n.jQuery=n.$=c);return c});\n" "/*\n" " Knockout JavaScript library v3.4.2\n" " (c) The Knockout.js team - http://knockoutjs.com/\n" " License: MIT (http://www.opensource.org/licenses/mit-license.php)\n" "*/\n" - "var $jscomp={scope:{}};$jscomp.defineProperty=\"function\"==typeof Object.defineProperties?Object.defineProperty:function(n,u,r){if(r.get||r.set)throw new TypeError(\"ES3 does not support getters and setters.\");n!=Array.prototype&&n!=Object.prototype&&(n[u]=r.value)};$jscomp.getGlobal=function(n){return\"undefined\"!=typeof window&&window===n?n:\"undefined\"!=typeof global&&null!=global?global:n};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX=\"jscomp_symbol_\";\n" - "$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(n){return $jscomp.SYMBOL_PREFIX+(n||\"\")+$jscomp.symbolCounter_++};\n" + "var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||\"function\"==typeof Object.defineProperties?Object.defineProperty:function(n,u,t){n!=Array.prototype&&n!=Object.prototype&&(n[u]=t.value)};$jscomp.getGlobal=function(n){return\"undefined\"!=typeof window&&window===n?n:\"undefined\"!=typeof global&&null!=global?global:n};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX=\"jscomp_symbol_\";\n" + "$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.Symbol=function(){var n=0;return function(u){return $jscomp.SYMBOL_PREFIX+(u||\"\")+n++}}();\n" "$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var n=$jscomp.global.Symbol.iterator;n||(n=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol(\"iterator\"));\"function\"!=typeof Array.prototype[n]&&$jscomp.defineProperty(Array.prototype,n,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(n){var u=0;return $jscomp.iteratorPrototype(function(){return ua.utils.arrayIndexOf(h,b[c])&&h.push(b[c]);return h},arrayMap:function(a,b){a=a||[];for(var h=[],c=0,d=a.length;ch?d&&b.push(c):d||b.splice(h,1)},canSetPrototype:f,extend:c,setPrototypeOf:d,setPrototypeOfOrExtend:f?d:c,objectForEach:b,objectMap:function(a,b){if(!a)return a;var c={},h;for(h in a)a.hasOwnProperty(h)&&\n" - "(c[h]=b(a[h],h,a));return c},emptyDomNode:function(b){for(;b.firstChild;)a.removeNode(b.firstChild)},moveCleanedNodesToContainerElement:function(b){b=a.utils.makeArray(b);for(var c=(b[0]&&b[0].ownerDocument||r).createElement(\"div\"),h=0,d=b.length;hg?a.setAttribute(\"selected\",b):a.selected=b},stringTrim:function(a){return null===a||a===n?\"\":a.trim?a.trim():a.toString().replace(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,\"\")},stringStartsWith:function(a,b){a=a||\"\";return b.length>a.length?!1:a.substring(0,b.length)===b},domNodeIsContainedBy:function(a,b){if(a===b)return!0;if(11===a.nodeType)return!1;if(b.contains)return b.contains(3===a.nodeType?a.parentNode:a);if(b.compareDocumentPosition)return 16==\n" - "(b.compareDocumentPosition(a)&16);for(;a&&a!=b;)a=a.parentNode;return!!a},domNodeIsAttachedToDocument:function(b){return a.utils.domNodeIsContainedBy(b,b.ownerDocument.documentElement)},anyDomNodeIsAttachedToDocument:function(b){return!!a.utils.arrayFirst(b,a.utils.domNodeIsAttachedToDocument)},tagNameLower:function(a){return a&&a.tagName&&a.tagName.toLowerCase()},catchFunctionErrors:function(b){return a.onError?function(){try{return b.apply(this,arguments)}catch(w){throw a.onError&&a.onError(w),\n" - "w;}}:b},setTimeout:function(b,c){return setTimeout(a.utils.catchFunctionErrors(b),c)},deferError:function(b){setTimeout(function(){a.onError&&a.onError(b);throw b;},0)},registerEventHandler:function(b,c,d){var e=a.utils.catchFunctionErrors(d);d=g&&q[c];if(a.options.useOnlyNativeEvents||d||!t)if(d||\"function\"!=typeof b.addEventListener)if(\"undefined\"!=typeof b.attachEvent){var h=function(a){e.call(b,a)},f=\"on\"+c;b.attachEvent(f,h);a.utils.domNodeDisposal.addDisposeCallback(b,function(){b.detachEvent(f,\n" - "h)})}else throw Error(\"Browser doesn't support addEventListener or attachEvent\");else b.addEventListener(c,e,!1);else t(b).bind(c,e)},triggerEvent:function(b,c){if(!b||!b.nodeType)throw Error(\"element must be a DOM node when calling triggerEvent\");var d;\"input\"===a.utils.tagNameLower(b)&&b.type?\"click\"!=c.toLowerCase()?d=!1:(d=b.type,d=\"checkbox\"==d||\"radio\"==d):d=!1;if(a.options.useOnlyNativeEvents||!t||d)if(\"function\"==typeof r.createEvent)if(\"function\"==typeof b.dispatchEvent)d=r.createEvent(m[c]||\n" - "\"HTMLEvents\"),d.initEvent(c,!0,!0,u,0,0,0,0,0,!1,!1,!1,!1,0,b),b.dispatchEvent(d);else throw Error(\"The supplied element doesn't support dispatchEvent\");else if(d&&b.click)b.click();else if(\"undefined\"!=typeof b.fireEvent)b.fireEvent(\"on\"+c);else throw Error(\"Browser doesn't support triggering events\");else t(b).trigger(c)},unwrapObservable:function(b){return a.isObservable(b)?b():b},peekObservable:function(b){return a.isObservable(b)?b.peek():b},toggleDomNodeCssClass:function(b,c,d){var g;c&&(\"object\"===\n" - "typeof b.classList?(g=b.classList[d?\"add\":\"remove\"],a.utils.arrayForEach(c.match(p),function(a){g.call(b.classList,a)})):\"string\"===typeof b.className.baseVal?e(b.className,\"baseVal\",c,d):e(b,\"className\",c,d))},setTextContent:function(b,c){var d=a.utils.unwrapObservable(c);if(null===d||d===n)d=\"\";var e=a.virtualElements.firstChild(b);!e||3!=e.nodeType||a.virtualElements.nextSibling(e)?a.virtualElements.setDomNodeChildren(b,[b.ownerDocument.createTextNode(d)]):e.data=d;a.utils.forceRefresh(b)},setElementName:function(a,\n" - "b){a.name=b;if(7>=g)try{a.mergeAttributes(r.createElement(\"\"),!1)}catch(z){}},forceRefresh:function(a){9<=g&&(a=1==a.nodeType?a:a.parentNode,a.style&&(a.style.zoom=a.style.zoom))},ensureSelectElementIsRenderedCorrectly:function(a){if(g){var b=a.style.width;a.style.width=0;a.style.width=b}},range:function(b,c){b=a.utils.unwrapObservable(b);c=a.utils.unwrapObservable(c);for(var d=[],e=b;e<=c;e++)d.push(e);return d},makeArray:function(a){for(var b=[],c=0,d=a.length;c\",\"\"],d=[3,\"\",\"
\"],e=[1,\"\"],f={thead:c,tbody:c,tfoot:c,tr:[2,\"\",\"
\"],td:d,th:d,option:e,optgroup:e},k=8>=a.utils.ieVersion;\n" - "a.utils.parseHtmlFragment=function(c,d){var e;if(t)if(t.parseHTML)e=t.parseHTML(c,d)||[];else{if((e=t.clean([c],d))&&e[0]){for(var g=e[0];g.parentNode&&11!==g.parentNode.nodeType;)g=g.parentNode;g.parentNode&&g.parentNode.removeChild(g)}}else{(e=d)||(e=r);var g=e.parentWindow||e.defaultView||u,l=a.utils.stringTrim(c).toLowerCase(),h=e.createElement(\"div\"),m;m=(l=l.match(/^<([a-z]+)[ >]/))&&f[l[1]]||b;l=m[0];m=\"ignored
\"+m[1]+c+m[2]+\"
\";\"function\"==typeof g.innerShiv?h.appendChild(g.innerShiv(m)):\n" - "(k&&e.appendChild(h),h.innerHTML=m,k&&h.parentNode.removeChild(h));for(;l--;)h=h.lastChild;e=a.utils.makeArray(h.lastChild.childNodes)}return e};a.utils.setHtml=function(b,c){a.utils.emptyDomNode(b);c=a.utils.unwrapObservable(c);if(null!==c&&c!==n)if(\"string\"!=typeof c&&(c=c.toString()),t)t(b).html(c);else for(var d=a.utils.parseHtmlFragment(c,b.ownerDocument),e=0;eb){if(5E3<=++c){k=e;a.utils.deferError(Error(\"'Too much recursion' after processing \"+\n" - "c+\" task groups.\"));break}b=e}try{f()}catch(g){a.utils.deferError(g)}}}function c(){b();k=e=d.length=0}var d=[],e=0,f=1,k=0;return{scheduler:u.MutationObserver?function(a){var b=r.createElement(\"div\");(new MutationObserver(a)).observe(b,{attributes:!0});return function(){b.classList.toggle(\"foo\")}}(c):r&&\"onreadystatechange\"in r.createElement(\"script\")?function(a){var b=r.createElement(\"script\");b.onreadystatechange=function(){b.onreadystatechange=null;r.documentElement.removeChild(b);b=null;a()};\n" - "r.documentElement.appendChild(b)}:function(a){setTimeout(a,0)},schedule:function(b){e||a.tasks.scheduler(c);d[e++]=b;return f++},cancel:function(a){a-=f-e;a>=k&&ad[0]?l+d[0]:d[0]),l);for(var l=1===q?l:Math.min(c+(d[1]||0),l),q=c+q-2,p=Math.max(l,q),k=[],w=[],n=2;ca.utils.arrayIndexOf(c,b[l])&&c.push(b[l]);return c},arrayMap:function(a,b){a=a||[];for(var c=[],l=0,d=a.length;ll?d&&b.push(c):d||b.splice(l,1)},canSetPrototype:f,extend:c,setPrototypeOf:e,setPrototypeOfOrExtend:f?e:c,objectForEach:b,objectMap:function(a,b){if(!a)return a;var c={},l;for(l in a)a.hasOwnProperty(l)&&\n" + "(c[l]=b(a[l],l,a));return c},emptyDomNode:function(b){for(;b.firstChild;)a.removeNode(b.firstChild)},moveCleanedNodesToContainerElement:function(b){b=a.utils.makeArray(b);for(var c=(b[0]&&b[0].ownerDocument||t).createElement(\"div\"),l=0,d=b.length;lh?a.setAttribute(\"selected\",b):a.selected=b},stringTrim:function(a){return null===a||a===n?\"\":a.trim?a.trim():a.toString().replace(/^[\\s\\xa0]+|[\\s\\xa0]+$/g,\"\")},stringStartsWith:function(a,b){a=a||\"\";return b.length>a.length?!1:a.substring(0,b.length)===b},domNodeIsContainedBy:function(a,b){if(a===b)return!0;if(11===a.nodeType)return!1;if(b.contains)return b.contains(3===a.nodeType?a.parentNode:a);if(b.compareDocumentPosition)return 16==(b.compareDocumentPosition(a)&\n" + "16);for(;a&&a!=b;)a=a.parentNode;return!!a},domNodeIsAttachedToDocument:function(b){return a.utils.domNodeIsContainedBy(b,b.ownerDocument.documentElement)},anyDomNodeIsAttachedToDocument:function(b){return!!a.utils.arrayFirst(b,a.utils.domNodeIsAttachedToDocument)},tagNameLower:function(a){return a&&a.tagName&&a.tagName.toLowerCase()},catchFunctionErrors:function(b){return a.onError?function(){try{return b.apply(this,arguments)}catch(B){throw a.onError&&a.onError(B),B;}}:b},setTimeout:function(b,\n" + "c){return setTimeout(a.utils.catchFunctionErrors(b),c)},deferError:function(b){setTimeout(function(){a.onError&&a.onError(b);throw b;},0)},registerEventHandler:function(b,c,d){var e=a.utils.catchFunctionErrors(d);d=h&&p[c];if(a.options.useOnlyNativeEvents||d||!r)if(d||\"function\"!=typeof b.addEventListener)if(\"undefined\"!=typeof b.attachEvent){var l=function(a){e.call(b,a)},g=\"on\"+c;b.attachEvent(g,l);a.utils.domNodeDisposal.addDisposeCallback(b,function(){b.detachEvent(g,l)})}else throw Error(\"Browser doesn't support addEventListener or attachEvent\");\n" + "else b.addEventListener(c,e,!1);else r(b).bind(c,e)},triggerEvent:function(b,c){if(!b||!b.nodeType)throw Error(\"element must be a DOM node when calling triggerEvent\");if(\"input\"===a.utils.tagNameLower(b)&&b.type)if(\"click\"!=c.toLowerCase())var d=!1;else d=b.type,d=\"checkbox\"==d||\"radio\"==d;else d=!1;if(a.options.useOnlyNativeEvents||!r||d)if(\"function\"==typeof t.createEvent)if(\"function\"==typeof b.dispatchEvent)d=t.createEvent(m[c]||\"HTMLEvents\"),d.initEvent(c,!0,!0,u,0,0,0,0,0,!1,!1,!1,!1,0,b),b.dispatchEvent(d);\n" + "else throw Error(\"The supplied element doesn't support dispatchEvent\");else if(d&&b.click)b.click();else if(\"undefined\"!=typeof b.fireEvent)b.fireEvent(\"on\"+c);else throw Error(\"Browser doesn't support triggering events\");else r(b).trigger(c)},unwrapObservable:function(b){return a.isObservable(b)?b():b},peekObservable:function(b){return a.isObservable(b)?b.peek():b},toggleDomNodeCssClass:function(b,c,e){if(c)if(\"object\"===typeof b.classList){var l=b.classList[e?\"add\":\"remove\"];a.utils.arrayForEach(c.match(q),\n" + "function(a){l.call(b.classList,a)})}else\"string\"===typeof b.className.baseVal?d(b.className,\"baseVal\",c,e):d(b,\"className\",c,e)},setTextContent:function(b,c){c=a.utils.unwrapObservable(c);if(null===c||c===n)c=\"\";var d=a.virtualElements.firstChild(b);!d||3!=d.nodeType||a.virtualElements.nextSibling(d)?a.virtualElements.setDomNodeChildren(b,[b.ownerDocument.createTextNode(c)]):d.data=c;a.utils.forceRefresh(b)},setElementName:function(a,b){a.name=b;if(7>=h)try{a.mergeAttributes(t.createElement(\"\"),!1)}catch(y){}},forceRefresh:function(a){9<=h&&(a=1==a.nodeType?a:a.parentNode,a.style&&(a.style.zoom=a.style.zoom))},ensureSelectElementIsRenderedCorrectly:function(a){if(h){var b=a.style.width;a.style.width=0;a.style.width=b}},range:function(b,c){b=a.utils.unwrapObservable(b);c=a.utils.unwrapObservable(c);for(var d=[];b<=c;b++)d.push(b);return d},makeArray:function(a){for(var b=[],c=0,d=a.length;c\",\"\"],e=[3,\"\",\"
\"],d=[1,\"\"],f={thead:c,tbody:c,tfoot:c,tr:[2,\"\",\"
\"],td:e,th:e,option:d,optgroup:d},k=8>=a.utils.ieVersion;a.utils.parseHtmlFragment=function(c,d){if(r)if(r.parseHTML)c=r.parseHTML(c,\n" + "d)||[];else{if((c=r.clean([c],d))&&c[0]){for(d=c[0];d.parentNode&&11!==d.parentNode.nodeType;)d=d.parentNode;d.parentNode&&d.parentNode.removeChild(d)}}else{d||(d=t);var e=d.parentWindow||d.defaultView||u,h=a.utils.stringTrim(c).toLowerCase(),g=d.createElement(\"div\");var l=(h=h.match(/^<([a-z]+)[ >]/))&&f[h[1]]||b;h=l[0];c=\"ignored
\"+l[1]+c+l[2]+\"
\";\"function\"==typeof e.innerShiv?g.appendChild(e.innerShiv(c)):(k&&d.appendChild(g),g.innerHTML=c,k&&g.parentNode.removeChild(g));for(;h--;)g=\n" + "g.lastChild;c=a.utils.makeArray(g.lastChild.childNodes)}return c};a.utils.setHtml=function(b,c){a.utils.emptyDomNode(b);c=a.utils.unwrapObservable(c);if(null!==c&&c!==n)if(\"string\"!=typeof c&&(c=c.toString()),r)r(b).html(c);else{c=a.utils.parseHtmlFragment(c,b.ownerDocument);for(var d=0;db){if(5E3<=++c){k=d;a.utils.deferError(Error(\"'Too much recursion' after processing \"+c+\" task groups.\"));\n" + "break}b=d}try{p()}catch(h){a.utils.deferError(h)}}}function c(){b();k=d=e.length=0}var e=[],d=0,f=1,k=0;return{scheduler:u.MutationObserver?function(a){var b=t.createElement(\"div\");(new MutationObserver(a)).observe(b,{attributes:!0});return function(){b.classList.toggle(\"foo\")}}(c):t&&\"onreadystatechange\"in t.createElement(\"script\")?function(a){var b=t.createElement(\"script\");b.onreadystatechange=function(){b.onreadystatechange=null;t.documentElement.removeChild(b);b=null;a()};t.documentElement.appendChild(b)}:\n" + "function(a){setTimeout(a,0)},schedule:function(b){d||a.tasks.scheduler(c);e[d++]=b;return f++},cancel:function(a){a-=f-d;a>=k&&ae[0]?g+e[0]:e[0]),g);g=1===l?g:Math.min(c+(e[1]||0),g);l=c+l-2;q=Math.max(g,l);for(var k=[],n=[],B=2;cc;c++)b=b();return b})};a.toJSON=function(b,c,d){b=a.toJS(b);return a.utils.stringifyJson(b,c,d)};d.prototype={constructor:d,save:function(b,c){var d=a.utils.arrayIndexOf(this.keys,b);0<=d?this.values[d]=c:(this.keys.push(b),this.values.push(c))},get:function(b){b=a.utils.arrayIndexOf(this.keys,\n" - "b);return 0<=b?this.values[b]:n}}})();a.exportSymbol(\"toJS\",a.toJS);a.exportSymbol(\"toJSON\",a.toJSON);(function(){a.selectExtensions={readValue:function(b){switch(a.utils.tagNameLower(b)){case \"option\":return!0===b.__ko__hasDomDataOptionValue__?a.utils.domData.get(b,a.bindingHandlers.options.optionValueDomDataKey):7>=a.utils.ieVersion?b.getAttributeNode(\"value\")&&b.getAttributeNode(\"value\").specified?b.value:b.text:b.value;case \"select\":return 0<=b.selectedIndex?a.selectExtensions.readValue(b.options[b.selectedIndex]):\n" - "n;default:return b.value}},writeValue:function(b,c,d){switch(a.utils.tagNameLower(b)){case \"option\":switch(typeof c){case \"string\":a.utils.domData.set(b,a.bindingHandlers.options.optionValueDomDataKey,n);\"__ko__hasDomDataOptionValue__\"in b&&delete b.__ko__hasDomDataOptionValue__;b.value=c;break;default:a.utils.domData.set(b,a.bindingHandlers.options.optionValueDomDataKey,c),b.__ko__hasDomDataOptionValue__=!0,b.value=\"number\"===typeof c?c:\"\"}break;case \"select\":if(\"\"===c||null===c)c=n;for(var e=-1,\n" - "f=0,k=b.options.length,m;f=m){c.push(l&&h.length?{key:l,value:h.join(\"\")}:{unknown:l||h.join(\"\")});l=m=0;h=[];continue}}else if(58===B){if(!m&&!l&&1===h.length){l=h.pop();continue}}else 47===B&&z&&1=a.utils.ieVersion&&\n" - "b.tagName===c))return c};a.components.addBindingsForCustomElement=function(b,d,k,m){if(1===d.nodeType){var e=a.components.getComponentNameForNode(d);if(e){b=b||{};if(b.component)throw Error('Cannot use the \"component\" binding on a custom element matching a component');var f={name:e,params:c(d,k)};b.component=m?function(){return f}:f}}return b};var d=new a.bindingProvider;9>a.utils.ieVersion&&(a.components.register=function(a){return function(b){r.createElement(b);return a.apply(this,arguments)}}(a.components.register),\n" - "r.createDocumentFragment=function(b){return function(){var c=b(),d=a.components._allRegisteredComponents,e;for(e in d)d.hasOwnProperty(e)&&c.createElement(e);return c}}(r.createDocumentFragment))})();(function(b){function c(b,c,d){c=c.template;if(!c)throw Error(\"Component '\"+b+\"' has no template\");b=a.utils.cloneNodes(c);a.virtualElements.setDomNodeChildren(d,b)}function d(a,b,c,d){var e=a.createViewModel;return e?e.call(a,d,{element:b,templateNodes:c}):d}var e=0;a.bindingHandlers.component={init:function(f,\n" - "k,m,l,q){var g,p,h=function(){var a=g&&g.dispose;\"function\"===typeof a&&a.call(g);p=g=null},n=a.utils.makeArray(a.virtualElements.childNodes(f));a.utils.domNodeDisposal.addDisposeCallback(f,h);a.computed(function(){var l=a.utils.unwrapObservable(k()),m,w;\"string\"===typeof l?m=l:(m=a.utils.unwrapObservable(l.name),w=a.utils.unwrapObservable(l.params));if(!m)throw Error(\"No component name specified\");var r=p=++e;a.components.get(m,function(e){if(p===r){h();if(!e)throw Error(\"Unknown component '\"+m+\n" - "\"'\");c(m,e,f);var l=d(e,f,n,w);e=q.createChildContext(l,b,function(a){a.$component=l;a.$componentTemplateNodes=n});g=l;a.applyBindingsToDescendants(e,f)}})},null,{disposeWhenNodeIsRemoved:f});return{controlsDescendantBindings:!0}}};a.virtualElements.allowedBindings.component=!0})();var Q={\"class\":\"className\",\"for\":\"htmlFor\"};a.bindingHandlers.attr={update:function(b,c,d){c=a.utils.unwrapObservable(c())||{};a.utils.objectForEach(c,function(c,d){d=a.utils.unwrapObservable(d);var e=!1===d||null===d||\n" - "d===n;e&&b.removeAttribute(c);8>=a.utils.ieVersion&&c in Q?(c=Q[c],e?b.removeAttribute(c):b[c]=d):e||b.setAttribute(c,d.toString());\"name\"===c&&a.utils.setElementName(b,e?\"\":d.toString())})}};(function(){a.bindingHandlers.checked={after:[\"value\",\"attr\"],init:function(b,c,d){function e(){var e=b.checked,l=h?f():e;if(!a.computedContext.isInitial()&&(!m||e)){var k=a.dependencyDetection.ignore(c);if(q){var n=g?k.peek():k;p!==l?(e&&(a.utils.addOrRemoveItem(n,l,!0),a.utils.addOrRemoveItem(n,p,!1)),p=l):\n" - "a.utils.addOrRemoveItem(n,l,e);g&&a.isWriteableObservable(k)&&k(n)}else a.expressionRewriting.writeValueToProperty(k,d,\"checked\",l,!0)}}var f=a.pureComputed(function(){return d.has(\"checkedValue\")?a.utils.unwrapObservable(d.get(\"checkedValue\")):d.has(\"value\")?a.utils.unwrapObservable(d.get(\"value\")):b.value}),k=\"checkbox\"==b.type,m=\"radio\"==b.type;if(k||m){var l=c(),q=k&&a.utils.unwrapObservable(l)instanceof Array,g=!(q&&l.push&&l.splice),p=q?f():n,h=m||q;m&&!b.name&&a.bindingHandlers.uniqueName.init(b,\n" - "function(){return!0});a.computed(e,null,{disposeWhenNodeIsRemoved:b});a.utils.registerEventHandler(b,\"click\",e);a.computed(function(){var d=a.utils.unwrapObservable(c());b.checked=q?0<=a.utils.arrayIndexOf(d,f()):k?d:f()===d},null,{disposeWhenNodeIsRemoved:b});l=n}}};a.expressionRewriting.twoWayBindings.checked=!0;a.bindingHandlers.checkedValue={update:function(b,c){b.value=a.utils.unwrapObservable(c())}}})();a.bindingHandlers.css={update:function(b,c){var d=a.utils.unwrapObservable(c());null!==d&&\n" - "\"object\"==typeof d?a.utils.objectForEach(d,function(c,d){d=a.utils.unwrapObservable(d);a.utils.toggleDomNodeCssClass(b,c,d)}):(d=a.utils.stringTrim(String(d||\"\")),a.utils.toggleDomNodeCssClass(b,b.__ko__cssValue,!1),b.__ko__cssValue=d,a.utils.toggleDomNodeCssClass(b,d,!0))}};a.bindingHandlers.enable={update:function(b,c){var d=a.utils.unwrapObservable(c());d&&b.disabled?b.removeAttribute(\"disabled\"):d||b.disabled||(b.disabled=!0)}};a.bindingHandlers.disable={update:function(b,c){a.bindingHandlers.enable.update(b,\n" - "function(){return!a.utils.unwrapObservable(c())})}};a.bindingHandlers.event={init:function(b,c,d,e,f){var k=c()||{};a.utils.objectForEach(k,function(k){\"string\"==typeof k&&a.utils.registerEventHandler(b,k,function(b){var l,g=c()[k];if(g){try{var m=a.utils.makeArray(arguments);e=f.$data;m.unshift(e);l=g.apply(e,m)}finally{!0!==l&&(b.preventDefault?b.preventDefault():b.returnValue=!1)}!1===d.get(k+\"Bubble\")&&(b.cancelBubble=!0,b.stopPropagation&&b.stopPropagation())}})})}};a.bindingHandlers.foreach=\n" - "{makeTemplateValueAccessor:function(b){return function(){var c=b(),d=a.utils.peekObservable(c);if(!d||\"number\"==typeof d.length)return{foreach:c,templateEngine:a.nativeTemplateEngine.instance};a.utils.unwrapObservable(c);return{foreach:d.data,as:d.as,includeDestroyed:d.includeDestroyed,afterAdd:d.afterAdd,beforeRemove:d.beforeRemove,afterRender:d.afterRender,beforeMove:d.beforeMove,afterMove:d.afterMove,templateEngine:a.nativeTemplateEngine.instance}}},init:function(b,c,d,e,f){return a.bindingHandlers.template.init(b,\n" - "a.bindingHandlers.foreach.makeTemplateValueAccessor(c))},update:function(b,c,d,e,f){return a.bindingHandlers.template.update(b,a.bindingHandlers.foreach.makeTemplateValueAccessor(c),d,e,f)}};a.expressionRewriting.bindingRewriteValidators.foreach=!1;a.virtualElements.allowedBindings.foreach=!0;a.bindingHandlers.hasfocus={init:function(b,c,d){var e=function(e){b.__ko_hasfocusUpdating=!0;var f=b.ownerDocument;if(\"activeElement\"in f){var l;try{l=f.activeElement}catch(q){l=f.body}e=l===b}f=c();a.expressionRewriting.writeValueToProperty(f,\n" - "d,\"hasfocus\",e,!0);b.__ko_hasfocusLastValue=e;b.__ko_hasfocusUpdating=!1},f=e.bind(null,!0),e=e.bind(null,!1);a.utils.registerEventHandler(b,\"focus\",f);a.utils.registerEventHandler(b,\"focusin\",f);a.utils.registerEventHandler(b,\"blur\",e);a.utils.registerEventHandler(b,\"focusout\",e)},update:function(b,c){var d=!!a.utils.unwrapObservable(c());b.__ko_hasfocusUpdating||b.__ko_hasfocusLastValue===d||(d?b.focus():b.blur(),!d&&b.__ko_hasfocusLastValue&&b.ownerDocument.body.focus(),a.dependencyDetection.ignore(a.utils.triggerEvent,\n" - "null,[b,d?\"focusin\":\"focusout\"]))}};a.expressionRewriting.twoWayBindings.hasfocus=!0;a.bindingHandlers.hasFocus=a.bindingHandlers.hasfocus;a.expressionRewriting.twoWayBindings.hasFocus=!0;a.bindingHandlers.html={init:function(){return{controlsDescendantBindings:!0}},update:function(b,c){a.utils.setHtml(b,c())}};K(\"if\");K(\"ifnot\",!1,!0);K(\"with\",!0,!1,function(a,c){return a.createStaticChildContext(c)});var M={};a.bindingHandlers.options={init:function(b){if(\"select\"!==a.utils.tagNameLower(b))throw Error(\"options binding applies only to SELECT elements\");\n" - "for(;0a.utils.ieVersion)var k=a.utils.domData.nextKey(),m=a.utils.domData.nextKey(),\n" - "l=function(b){var c=this.activeElement;(c=c&&a.utils.domData.get(c,m))&&c(b)},q=function(b,c){var d=b.ownerDocument;a.utils.domData.get(d,k)||(a.utils.domData.set(d,k,!0),a.utils.registerEventHandler(d,\"selectionchange\",l));a.utils.domData.set(b,m,c)};a.bindingHandlers.textInput={init:function(b,d,l){var g=b.value,h,k,m=function(c){clearTimeout(h);k=h=n;var e=b.value;g!==e&&(c&&(b._ko_textInputProcessedEvent=c.type),g=e,a.expressionRewriting.writeValueToProperty(d(),l,\"textInput\",e))},p=function(c){h||\n" - "(k=b.value,c=m.bind(b,{type:c.type}),h=a.utils.setTimeout(c,4))},r=9==a.utils.ieVersion?p:m,u=function(){var c=a.utils.unwrapObservable(d());if(null===c||c===n)c=\"\";k!==n&&c===k?a.utils.setTimeout(u,4):b.value!==c&&(g=c,b.value=c)},t=function(c,d){a.utils.registerEventHandler(b,c,d)};a.bindingHandlers.textInput._forceUpdateOn?a.utils.arrayForEach(a.bindingHandlers.textInput._forceUpdateOn,function(a){\"after\"==a.slice(0,5)?t(a.slice(5),p):t(a,m)}):10>a.utils.ieVersion?(t(\"propertychange\",function(a){\"value\"===\n" - "a.propertyName&&r(a)}),8==a.utils.ieVersion&&(t(\"keyup\",m),t(\"keydown\",m)),8<=a.utils.ieVersion&&(q(b,r),t(\"dragend\",p))):(t(\"input\",m),5>e&&\"textarea\"===a.utils.tagNameLower(b)?(t(\"keydown\",p),t(\"paste\",p),t(\"cut\",p)):11>c?t(\"keydown\",p):4>f&&(t(\"DOMAutoComplete\",m),t(\"dragdrop\",m),t(\"drop\",m)));t(\"change\",m);a.computed(u,null,{disposeWhenNodeIsRemoved:b})}};a.expressionRewriting.twoWayBindings.textInput=!0;a.bindingHandlers.textinput={preprocess:function(a,b,c){c(\"textInput\",a)}}})();a.bindingHandlers.uniqueName=\n" - "{init:function(b,c){if(c()){var d=\"ko_unique_\"+ ++a.bindingHandlers.uniqueName.currentIndex;a.utils.setElementName(b,d)}}};a.bindingHandlers.uniqueName.currentIndex=0;a.bindingHandlers.value={after:[\"options\",\"foreach\"],init:function(b,c,d){if(\"input\"!=b.tagName.toLowerCase()||\"checkbox\"!=b.type&&\"radio\"!=b.type){var e=[\"change\"],f=d.get(\"valueUpdate\"),k=!1,m=null;f&&(\"string\"==typeof f&&(f=[f]),a.utils.arrayPushAll(e,f),e=a.utils.arrayGetDistinctValues(e));var l=function(){m=null;k=!1;var e=c(),\n" - "f=a.selectExtensions.readValue(b);a.expressionRewriting.writeValueToProperty(e,d,\"value\",f)};!a.utils.ieVersion||\"input\"!=b.tagName.toLowerCase()||\"text\"!=b.type||\"off\"==b.autocomplete||b.form&&\"off\"==b.form.autocomplete||-1!=a.utils.arrayIndexOf(e,\"propertychange\")||(a.utils.registerEventHandler(b,\"propertychange\",function(){k=!0}),a.utils.registerEventHandler(b,\"focus\",function(){k=!1}),a.utils.registerEventHandler(b,\"blur\",function(){k&&l()}));a.utils.arrayForEach(e,function(c){var d=l;a.utils.stringStartsWith(c,\n" - "\"after\")&&(d=function(){m=a.selectExtensions.readValue(b);a.utils.setTimeout(l,0)},c=c.substring(5));a.utils.registerEventHandler(b,c,d)});var q=function(){var e=a.utils.unwrapObservable(c()),f=a.selectExtensions.readValue(b);if(null!==m&&e===m)a.utils.setTimeout(q,0);else if(e!==f)if(\"select\"===a.utils.tagNameLower(b)){var l=d.get(\"valueAllowUnset\"),f=function(){a.selectExtensions.writeValue(b,e,l)};f();l||e===a.selectExtensions.readValue(b)?a.utils.setTimeout(f,0):a.dependencyDetection.ignore(a.utils.triggerEvent,\n" - "null,[b,\"change\"])}else a.selectExtensions.writeValue(b,e)};a.computed(q,null,{disposeWhenNodeIsRemoved:b})}else a.applyBindingAccessorsToNode(b,{checkedValue:c})},update:function(){}};a.expressionRewriting.twoWayBindings.value=!0;a.bindingHandlers.visible={update:function(b,c){var d=a.utils.unwrapObservable(c()),e=\"none\"!=b.style.display;d&&!e?b.style.display=\"\":!d&&e&&(b.style.display=\"none\")}};(function(b){a.bindingHandlers[b]={init:function(c,d,e,f,k){return a.bindingHandlers.event.init.call(this,\n" - "c,function(){var a={};a[b]=d();return a},e,f,k)}}})(\"click\");a.templateEngine=function(){};a.templateEngine.prototype.renderTemplateSource=function(a,c,d,e){throw Error(\"Override renderTemplateSource\");};a.templateEngine.prototype.createJavaScriptEvaluatorBlock=function(a){throw Error(\"Override createJavaScriptEvaluatorBlock\");};a.templateEngine.prototype.makeTemplateSource=function(b,c){if(\"string\"==typeof b){c=c||r;var d=c.getElementById(b);if(!d)throw Error(\"Cannot find template with ID \"+b);return new a.templateSources.domElement(d)}if(1==\n" - "b.nodeType||8==b.nodeType)return new a.templateSources.anonymousTemplate(b);throw Error(\"Unknown template type: \"+b);};a.templateEngine.prototype.renderTemplate=function(a,c,d,e){a=this.makeTemplateSource(a,e);return this.renderTemplateSource(a,c,d,e)};a.templateEngine.prototype.isTemplateRewritten=function(a,c){return!1===this.allowTemplateRewriting?!0:this.makeTemplateSource(a,c).data(\"isRewritten\")};a.templateEngine.prototype.rewriteTemplate=function(a,c,d){a=this.makeTemplateSource(a,d);c=c(a.text());\n" - "a.text(c);a.data(\"isRewritten\",!0)};a.exportSymbol(\"templateEngine\",a.templateEngine);a.templateRewriting=function(){function b(b,c,d,m){b=a.expressionRewriting.parseObjectLiteral(b);for(var e=a.expressionRewriting.bindingRewriteValidators,f=0;f]*))?)*\\s+)data-bind\\s*=\\s*([\"'])([\\s\\S]*?)\\3/gi,d=/\\x3c!--\\s*ko\\b\\s*([\\s\\S]*?)\\s*--\\x3e/g;return{ensureTemplateIsRewritten:function(b,c,d){c.isTemplateRewritten(b,d)||c.rewriteTemplate(b,function(b){return a.templateRewriting.memoizeBindingAttributeSyntax(b,c)},d)},memoizeBindingAttributeSyntax:function(a,\n" - "f){return a.replace(c,function(a,c,d,e,g){return b(g,c,d,f)}).replace(d,function(a,c){return b(c,\"\\x3c!-- ko --\\x3e\",\"#comment\",f)})},applyMemoizedBindingsToNextSibling:function(b,c){return a.memoization.memoize(function(d,e){var f=d.nextSibling;f&&f.nodeName.toLowerCase()===c&&a.applyBindingAccessorsToNode(f,b,e)})}}}();a.exportSymbol(\"__tr_ambtns\",a.templateRewriting.applyMemoizedBindingsToNextSibling);(function(){a.templateSources={};a.templateSources.domElement=function(b){if(this.domElement=\n" - "b){var c=a.utils.tagNameLower(b);this.templateType=\"script\"===c?1:\"textarea\"===c?2:\"template\"==c&&b.content&&11===b.content.nodeType?3:4}};a.templateSources.domElement.prototype.text=function(){var b=1===this.templateType?\"text\":2===this.templateType?\"value\":\"innerHTML\";if(0==arguments.length)return this.domElement[b];var c=arguments[0];\"innerHTML\"===b?a.utils.setHtml(this.domElement,c):this.domElement[b]=c};var b=a.utils.domData.nextKey()+\"_\";a.templateSources.domElement.prototype.data=function(c){if(1===\n" + "Y={beforeSubscriptionAdd:function(a){\"change\"!=a&&\"beforeChange\"!=a||this.peek()}};a.utils.canSetPrototype&&a.utils.setPrototypeOf(A,a.subscribable.fn);J=a.observable.protoProperty;a.computed[J]=a.observable;A[J]=a.computed;a.isComputed=function(b){return a.hasPrototype(b,a.computed)};a.isPureComputed=function(b){return a.hasPrototype(b,a.computed)&&b[v]&&b[v].pure};a.exportSymbol(\"computed\",a.computed);a.exportSymbol(\"dependentObservable\",a.computed);a.exportSymbol(\"isComputed\",a.isComputed);a.exportSymbol(\"isPureComputed\",\n" + "a.isPureComputed);a.exportSymbol(\"computed.fn\",A);a.exportProperty(A,\"peek\",A.peek);a.exportProperty(A,\"dispose\",A.dispose);a.exportProperty(A,\"isActive\",A.isActive);a.exportProperty(A,\"getDependenciesCount\",A.getDependenciesCount);a.pureComputed=function(b,c){if(\"function\"===typeof b)return a.computed(b,c,{pure:!0});b=a.utils.extend({},b);b.pure=!0;return a.computed(b,c)};a.exportSymbol(\"pureComputed\",a.pureComputed);(function(){function b(a,f,k){k=k||new e;a=f(a);if(\"object\"!=typeof a||null===a||\n" + "a===n||a instanceof RegExp||a instanceof Date||a instanceof String||a instanceof Number||a instanceof Boolean)return a;var d=a instanceof Array?[]:{};k.save(a,d);c(a,function(c){var e=f(a[c]);switch(typeof e){case \"boolean\":case \"number\":case \"string\":case \"function\":d[c]=e;break;case \"object\":case \"undefined\":var h=k.get(e);d[c]=h!==n?h:b(e,f,k)}});return d}function c(a,b){if(a instanceof Array){for(var c=0;cc;c++)b=b();return b})};a.toJSON=function(b,c,e){b=a.toJS(b);return a.utils.stringifyJson(b,c,e)};e.prototype={constructor:e,save:function(b,c){var d=a.utils.arrayIndexOf(this.keys,b);0<=d?this.values[d]=c:(this.keys.push(b),this.values.push(c))},get:function(b){b=a.utils.arrayIndexOf(this.keys,b);return 0<=b?\n" + "this.values[b]:n}}})();a.exportSymbol(\"toJS\",a.toJS);a.exportSymbol(\"toJSON\",a.toJSON);(function(){a.selectExtensions={readValue:function(b){switch(a.utils.tagNameLower(b)){case \"option\":return!0===b.__ko__hasDomDataOptionValue__?a.utils.domData.get(b,a.bindingHandlers.options.optionValueDomDataKey):7>=a.utils.ieVersion?b.getAttributeNode(\"value\")&&b.getAttributeNode(\"value\").specified?b.value:b.text:b.value;case \"select\":return 0<=b.selectedIndex?a.selectExtensions.readValue(b.options[b.selectedIndex]):\n" + "n;default:return b.value}},writeValue:function(b,c,e){switch(a.utils.tagNameLower(b)){case \"option\":switch(typeof c){case \"string\":a.utils.domData.set(b,a.bindingHandlers.options.optionValueDomDataKey,n);\"__ko__hasDomDataOptionValue__\"in b&&delete b.__ko__hasDomDataOptionValue__;b.value=c;break;default:a.utils.domData.set(b,a.bindingHandlers.options.optionValueDomDataKey,c),b.__ko__hasDomDataOptionValue__=!0,b.value=\"number\"===typeof c?c:\"\"}break;case \"select\":if(\"\"===c||null===c)c=n;for(var d=-1,\n" + "f=0,k=b.options.length,m;f=l){c.push(F&&g.length?{key:F,value:g.join(\"\")}:{unknown:F||g.join(\"\")});var F=l=0;g=[];continue}}else if(58===z){if(!l&&!F&&1===g.length){F=g.pop();continue}}else 47===z&&m&&1=a.utils.ieVersion&&b.tagName===\n" + "c))return c};a.components.addBindingsForCustomElement=function(b,e,k,m){if(1===e.nodeType){var d=a.components.getComponentNameForNode(e);if(d){b=b||{};if(b.component)throw Error('Cannot use the \"component\" binding on a custom element matching a component');var f={name:d,params:c(e,k)};b.component=m?function(){return f}:f}}return b};var e=new a.bindingProvider;9>a.utils.ieVersion&&(a.components.register=function(a){return function(b){t.createElement(b);return a.apply(this,arguments)}}(a.components.register),\n" + "t.createDocumentFragment=function(b){return function(){var c=b(),d=a.components._allRegisteredComponents,e;for(e in d)d.hasOwnProperty(e)&&c.createElement(e);return c}}(t.createDocumentFragment))})();(function(b){function c(b,c,d){c=c.template;if(!c)throw Error(\"Component '\"+b+\"' has no template\");b=a.utils.cloneNodes(c);a.virtualElements.setDomNodeChildren(d,b)}function e(a,b,c,d){var e=a.createViewModel;return e?e.call(a,d,{element:b,templateNodes:c}):d}var d=0;a.bindingHandlers.component={init:function(f,\n" + "k,m,g,p){var h,q,l=function(){var a=h&&h.dispose;\"function\"===typeof a&&a.call(h);q=h=null},n=a.utils.makeArray(a.virtualElements.childNodes(f));a.utils.domNodeDisposal.addDisposeCallback(f,l);a.computed(function(){var g=a.utils.unwrapObservable(k());if(\"string\"===typeof g)var m=g;else{m=a.utils.unwrapObservable(g.name);var F=a.utils.unwrapObservable(g.params)}if(!m)throw Error(\"No component name specified\");var B=q=++d;a.components.get(m,function(d){if(q===B){l();if(!d)throw Error(\"Unknown component '\"+\n" + "m+\"'\");c(m,d,f);var g=e(d,f,n,F);d=p.createChildContext(g,b,function(a){a.$component=g;a.$componentTemplateNodes=n});h=g;a.applyBindingsToDescendants(d,f)}})},null,{disposeWhenNodeIsRemoved:f});return{controlsDescendantBindings:!0}}};a.virtualElements.allowedBindings.component=!0})();var P={\"class\":\"className\",\"for\":\"htmlFor\"};a.bindingHandlers.attr={update:function(b,c,e){c=a.utils.unwrapObservable(c())||{};a.utils.objectForEach(c,function(c,e){e=a.utils.unwrapObservable(e);var d=!1===e||null===\n" + "e||e===n;d&&b.removeAttribute(c);8>=a.utils.ieVersion&&c in P?(c=P[c],d?b.removeAttribute(c):b[c]=e):d||b.setAttribute(c,e.toString());\"name\"===c&&a.utils.setElementName(b,d?\"\":e.toString())})}};(function(){a.bindingHandlers.checked={after:[\"value\",\"attr\"],init:function(b,c,e){function d(){var d=b.checked,g=l?f():d;if(!a.computedContext.isInitial()&&(!m||d)){var k=a.dependencyDetection.ignore(c);if(p){var n=h?k.peek():k;q!==g?(d&&(a.utils.addOrRemoveItem(n,g,!0),a.utils.addOrRemoveItem(n,q,!1)),q=\n" + "g):a.utils.addOrRemoveItem(n,g,d);h&&a.isWriteableObservable(k)&&k(n)}else a.expressionRewriting.writeValueToProperty(k,e,\"checked\",g,!0)}}var f=a.pureComputed(function(){return e.has(\"checkedValue\")?a.utils.unwrapObservable(e.get(\"checkedValue\")):e.has(\"value\")?a.utils.unwrapObservable(e.get(\"value\")):b.value}),k=\"checkbox\"==b.type,m=\"radio\"==b.type;if(k||m){var g=c(),p=k&&a.utils.unwrapObservable(g)instanceof Array,h=!(p&&g.push&&g.splice),q=p?f():n,l=m||p;m&&!b.name&&a.bindingHandlers.uniqueName.init(b,\n" + "function(){return!0});a.computed(d,null,{disposeWhenNodeIsRemoved:b});a.utils.registerEventHandler(b,\"click\",d);a.computed(function(){var d=a.utils.unwrapObservable(c());b.checked=p?0<=a.utils.arrayIndexOf(d,f()):k?d:f()===d},null,{disposeWhenNodeIsRemoved:b});g=n}}};a.expressionRewriting.twoWayBindings.checked=!0;a.bindingHandlers.checkedValue={update:function(b,c){b.value=a.utils.unwrapObservable(c())}}})();a.bindingHandlers.css={update:function(b,c){c=a.utils.unwrapObservable(c());null!==c&&\"object\"==\n" + "typeof c?a.utils.objectForEach(c,function(c,d){d=a.utils.unwrapObservable(d);a.utils.toggleDomNodeCssClass(b,c,d)}):(c=a.utils.stringTrim(String(c||\"\")),a.utils.toggleDomNodeCssClass(b,b.__ko__cssValue,!1),b.__ko__cssValue=c,a.utils.toggleDomNodeCssClass(b,c,!0))}};a.bindingHandlers.enable={update:function(b,c){(c=a.utils.unwrapObservable(c()))&&b.disabled?b.removeAttribute(\"disabled\"):c||b.disabled||(b.disabled=!0)}};a.bindingHandlers.disable={update:function(b,c){a.bindingHandlers.enable.update(b,\n" + "function(){return!a.utils.unwrapObservable(c())})}};a.bindingHandlers.event={init:function(b,c,e,d,f){var k=c()||{};a.utils.objectForEach(k,function(k){\"string\"==typeof k&&a.utils.registerEventHandler(b,k,function(b){var g=c()[k];if(g){try{var h=a.utils.makeArray(arguments);d=f.$data;h.unshift(d);var m=g.apply(d,h)}finally{!0!==m&&(b.preventDefault?b.preventDefault():b.returnValue=!1)}!1===e.get(k+\"Bubble\")&&(b.cancelBubble=!0,b.stopPropagation&&b.stopPropagation())}})})}};a.bindingHandlers.foreach=\n" + "{makeTemplateValueAccessor:function(b){return function(){var c=b(),e=a.utils.peekObservable(c);if(!e||\"number\"==typeof e.length)return{foreach:c,templateEngine:a.nativeTemplateEngine.instance};a.utils.unwrapObservable(c);return{foreach:e.data,as:e.as,includeDestroyed:e.includeDestroyed,afterAdd:e.afterAdd,beforeRemove:e.beforeRemove,afterRender:e.afterRender,beforeMove:e.beforeMove,afterMove:e.afterMove,templateEngine:a.nativeTemplateEngine.instance}}},init:function(b,c,e,d,f){return a.bindingHandlers.template.init(b,\n" + "a.bindingHandlers.foreach.makeTemplateValueAccessor(c))},update:function(b,c,e,d,f){return a.bindingHandlers.template.update(b,a.bindingHandlers.foreach.makeTemplateValueAccessor(c),e,d,f)}};a.expressionRewriting.bindingRewriteValidators.foreach=!1;a.virtualElements.allowedBindings.foreach=!0;a.bindingHandlers.hasfocus={init:function(b,c,e){var d=function(d){b.__ko_hasfocusUpdating=!0;var f=b.ownerDocument;if(\"activeElement\"in f){try{var g=f.activeElement}catch(p){g=f.body}d=g===b}f=c();a.expressionRewriting.writeValueToProperty(f,\n" + "e,\"hasfocus\",d,!0);b.__ko_hasfocusLastValue=d;b.__ko_hasfocusUpdating=!1},f=d.bind(null,!0);d=d.bind(null,!1);a.utils.registerEventHandler(b,\"focus\",f);a.utils.registerEventHandler(b,\"focusin\",f);a.utils.registerEventHandler(b,\"blur\",d);a.utils.registerEventHandler(b,\"focusout\",d)},update:function(b,c){c=!!a.utils.unwrapObservable(c());b.__ko_hasfocusUpdating||b.__ko_hasfocusLastValue===c||(c?b.focus():b.blur(),!c&&b.__ko_hasfocusLastValue&&b.ownerDocument.body.focus(),a.dependencyDetection.ignore(a.utils.triggerEvent,\n" + "null,[b,c?\"focusin\":\"focusout\"]))}};a.expressionRewriting.twoWayBindings.hasfocus=!0;a.bindingHandlers.hasFocus=a.bindingHandlers.hasfocus;a.expressionRewriting.twoWayBindings.hasFocus=!0;a.bindingHandlers.html={init:function(){return{controlsDescendantBindings:!0}},update:function(b,c){a.utils.setHtml(b,c())}};L(\"if\");L(\"ifnot\",!1,!0);L(\"with\",!0,!1,function(a,c){return a.createStaticChildContext(c)});var N={};a.bindingHandlers.options={init:function(b){if(\"select\"!==a.utils.tagNameLower(b))throw Error(\"options binding applies only to SELECT elements\");\n" + "for(;0a.utils.ieVersion)var k=a.utils.domData.nextKey(),m=a.utils.domData.nextKey(),\n" + "g=function(b){var c=this.activeElement;(c=c&&a.utils.domData.get(c,m))&&c(b)},p=function(b,c){var d=b.ownerDocument;a.utils.domData.get(d,k)||(a.utils.domData.set(d,k,!0),a.utils.registerEventHandler(d,\"selectionchange\",g));a.utils.domData.set(b,m,c)};a.bindingHandlers.textInput={init:function(b,e,g){var h=b.value,l,k,m=function(c){clearTimeout(l);k=l=n;var d=b.value;h!==d&&(c&&(b._ko_textInputProcessedEvent=c.type),h=d,a.expressionRewriting.writeValueToProperty(e(),g,\"textInput\",d))},q=function(c){l||\n" + "(k=b.value,c=m.bind(b,{type:c.type}),l=a.utils.setTimeout(c,4))},t=9==a.utils.ieVersion?q:m,u=function(){var c=a.utils.unwrapObservable(e());if(null===c||c===n)c=\"\";k!==n&&c===k?a.utils.setTimeout(u,4):b.value!==c&&(h=c,b.value=c)},r=function(c,d){a.utils.registerEventHandler(b,c,d)};a.bindingHandlers.textInput._forceUpdateOn?a.utils.arrayForEach(a.bindingHandlers.textInput._forceUpdateOn,function(a){\"after\"==a.slice(0,5)?r(a.slice(5),q):r(a,m)}):10>a.utils.ieVersion?(r(\"propertychange\",function(a){\"value\"===\n" + "a.propertyName&&t(a)}),8==a.utils.ieVersion&&(r(\"keyup\",m),r(\"keydown\",m)),8<=a.utils.ieVersion&&(p(b,t),r(\"dragend\",q))):(r(\"input\",m),5>d&&\"textarea\"===a.utils.tagNameLower(b)?(r(\"keydown\",q),r(\"paste\",q),r(\"cut\",q)):11>c?r(\"keydown\",q):4>f&&(r(\"DOMAutoComplete\",m),r(\"dragdrop\",m),r(\"drop\",m)));r(\"change\",m);a.computed(u,null,{disposeWhenNodeIsRemoved:b})}};a.expressionRewriting.twoWayBindings.textInput=!0;a.bindingHandlers.textinput={preprocess:function(a,b,c){c(\"textInput\",a)}}})();a.bindingHandlers.uniqueName=\n" + "{init:function(b,c){c()&&(c=\"ko_unique_\"+ ++a.bindingHandlers.uniqueName.currentIndex,a.utils.setElementName(b,c))}};a.bindingHandlers.uniqueName.currentIndex=0;a.bindingHandlers.value={after:[\"options\",\"foreach\"],init:function(b,c,e){if(\"input\"!=b.tagName.toLowerCase()||\"checkbox\"!=b.type&&\"radio\"!=b.type){var d=[\"change\"],f=e.get(\"valueUpdate\"),k=!1,m=null;f&&(\"string\"==typeof f&&(f=[f]),a.utils.arrayPushAll(d,f),d=a.utils.arrayGetDistinctValues(d));var g=function(){m=null;k=!1;var d=c(),g=a.selectExtensions.readValue(b);\n" + "a.expressionRewriting.writeValueToProperty(d,e,\"value\",g)};!a.utils.ieVersion||\"input\"!=b.tagName.toLowerCase()||\"text\"!=b.type||\"off\"==b.autocomplete||b.form&&\"off\"==b.form.autocomplete||-1!=a.utils.arrayIndexOf(d,\"propertychange\")||(a.utils.registerEventHandler(b,\"propertychange\",function(){k=!0}),a.utils.registerEventHandler(b,\"focus\",function(){k=!1}),a.utils.registerEventHandler(b,\"blur\",function(){k&&g()}));a.utils.arrayForEach(d,function(c){var d=g;a.utils.stringStartsWith(c,\"after\")&&(d=function(){m=\n" + "a.selectExtensions.readValue(b);a.utils.setTimeout(g,0)},c=c.substring(5));a.utils.registerEventHandler(b,c,d)});var p=function(){var d=a.utils.unwrapObservable(c()),g=a.selectExtensions.readValue(b);if(null!==m&&d===m)a.utils.setTimeout(p,0);else if(d!==g)if(\"select\"===a.utils.tagNameLower(b)){var f=e.get(\"valueAllowUnset\");g=function(){a.selectExtensions.writeValue(b,d,f)};g();f||d===a.selectExtensions.readValue(b)?a.utils.setTimeout(g,0):a.dependencyDetection.ignore(a.utils.triggerEvent,null,[b,\n" + "\"change\"])}else a.selectExtensions.writeValue(b,d)};a.computed(p,null,{disposeWhenNodeIsRemoved:b})}else a.applyBindingAccessorsToNode(b,{checkedValue:c})},update:function(){}};a.expressionRewriting.twoWayBindings.value=!0;a.bindingHandlers.visible={update:function(b,c){c=a.utils.unwrapObservable(c());var e=\"none\"!=b.style.display;c&&!e?b.style.display=\"\":!c&&e&&(b.style.display=\"none\")}};(function(b){a.bindingHandlers[b]={init:function(c,e,d,f,k){return a.bindingHandlers.event.init.call(this,c,function(){var a=\n" + "{};a[b]=e();return a},d,f,k)}}})(\"click\");a.templateEngine=function(){};a.templateEngine.prototype.renderTemplateSource=function(a,c,e,d){throw Error(\"Override renderTemplateSource\");};a.templateEngine.prototype.createJavaScriptEvaluatorBlock=function(a){throw Error(\"Override createJavaScriptEvaluatorBlock\");};a.templateEngine.prototype.makeTemplateSource=function(b,c){if(\"string\"==typeof b){c=c||t;c=c.getElementById(b);if(!c)throw Error(\"Cannot find template with ID \"+b);return new a.templateSources.domElement(c)}if(1==\n" + "b.nodeType||8==b.nodeType)return new a.templateSources.anonymousTemplate(b);throw Error(\"Unknown template type: \"+b);};a.templateEngine.prototype.renderTemplate=function(a,c,e,d){a=this.makeTemplateSource(a,d);return this.renderTemplateSource(a,c,e,d)};a.templateEngine.prototype.isTemplateRewritten=function(a,c){return!1===this.allowTemplateRewriting?!0:this.makeTemplateSource(a,c).data(\"isRewritten\")};a.templateEngine.prototype.rewriteTemplate=function(a,c,e){a=this.makeTemplateSource(a,e);c=c(a.text());\n" + "a.text(c);a.data(\"isRewritten\",!0)};a.exportSymbol(\"templateEngine\",a.templateEngine);a.templateRewriting=function(){function b(b,c,e,m){b=a.expressionRewriting.parseObjectLiteral(b);for(var d=a.expressionRewriting.bindingRewriteValidators,f=0;f]*))?)*\\s+)data-bind\\s*=\\s*([\"'])([\\s\\S]*?)\\3/gi,e=/\\x3c!--\\s*ko\\b\\s*([\\s\\S]*?)\\s*--\\x3e/g;return{ensureTemplateIsRewritten:function(b,c,e){c.isTemplateRewritten(b,e)||c.rewriteTemplate(b,function(b){return a.templateRewriting.memoizeBindingAttributeSyntax(b,c)},e)},memoizeBindingAttributeSyntax:function(a,\n" + "f){return a.replace(c,function(a,c,d,e,h){return b(h,c,d,f)}).replace(e,function(a,c){return b(c,\"\\x3c!-- ko --\\x3e\",\"#comment\",f)})},applyMemoizedBindingsToNextSibling:function(b,c){return a.memoization.memoize(function(d,e){(d=d.nextSibling)&&d.nodeName.toLowerCase()===c&&a.applyBindingAccessorsToNode(d,b,e)})}}}();a.exportSymbol(\"__tr_ambtns\",a.templateRewriting.applyMemoizedBindingsToNextSibling);(function(){a.templateSources={};a.templateSources.domElement=function(b){if(this.domElement=b){var c=\n" + "a.utils.tagNameLower(b);this.templateType=\"script\"===c?1:\"textarea\"===c?2:\"template\"==c&&b.content&&11===b.content.nodeType?3:4}};a.templateSources.domElement.prototype.text=function(){var b=1===this.templateType?\"text\":2===this.templateType?\"value\":\"innerHTML\";if(0==arguments.length)return this.domElement[b];var c=arguments[0];\"innerHTML\"===b?a.utils.setHtml(this.domElement,c):this.domElement[b]=c};var b=a.utils.domData.nextKey()+\"_\";a.templateSources.domElement.prototype.data=function(c){if(1===\n" "arguments.length)return a.utils.domData.get(this.domElement,b+c);a.utils.domData.set(this.domElement,b+c,arguments[1])};var c=a.utils.domData.nextKey();a.templateSources.domElement.prototype.nodes=function(){var b=this.domElement;if(0==arguments.length)return(a.utils.domData.get(b,c)||{}).containerData||(3===this.templateType?b.content:4===this.templateType?b:n);a.utils.domData.set(b,c,{containerData:arguments[0]})};a.templateSources.anonymousTemplate=function(a){this.domElement=a};a.templateSources.anonymousTemplate.prototype=\n" "new a.templateSources.domElement;a.templateSources.anonymousTemplate.prototype.constructor=a.templateSources.anonymousTemplate;a.templateSources.anonymousTemplate.prototype.text=function(){if(0==arguments.length){var b=a.utils.domData.get(this.domElement,c)||{};b.textData===n&&b.containerData&&(b.textData=b.containerData.innerHTML);return b.textData}a.utils.domData.set(this.domElement,c,{textData:arguments[0]})};a.exportSymbol(\"templateSources\",a.templateSources);a.exportSymbol(\"templateSources.domElement\",\n" - "a.templateSources.domElement);a.exportSymbol(\"templateSources.anonymousTemplate\",a.templateSources.anonymousTemplate)})();(function(){function b(b,c,d){var e;for(c=a.virtualElements.nextSibling(c);b&&(e=b)!==c;)b=a.virtualElements.nextSibling(e),d(e,b)}function c(c,d){if(c.length){var e=c[0],f=c[c.length-1],h=e.parentNode,l=a.bindingProvider.instance,k=l.preprocessNode;if(k){b(e,f,function(a,b){var c=a.previousSibling,d=k.call(l,a);d&&(a===e&&(e=d[0]||b),a===f&&(f=d[d.length-1]||c))});c.length=0;\n" - "if(!e)return;e===f?c.push(e):(c.push(e,f),a.utils.fixUpContinuousNodeArray(c,h))}b(e,f,function(b){1!==b.nodeType&&8!==b.nodeType||a.applyBindings(d,b)});b(e,f,function(b){1!==b.nodeType&&8!==b.nodeType||a.memoization.unmemoizeDomNodeAndDescendants(b,[d])});a.utils.fixUpContinuousNodeArray(c,h)}}function d(a){return a.nodeType?a:0a.utils.ieVersion?0:b.nodes)?b.nodes():null)return a.utils.makeArray(c.cloneNode(!0).childNodes);b=b.text();return a.utils.parseHtmlFragment(b,e)};a.nativeTemplateEngine.instance=new a.nativeTemplateEngine;a.setTemplateEngine(a.nativeTemplateEngine.instance);a.exportSymbol(\"nativeTemplateEngine\",\n" - "a.nativeTemplateEngine);(function(){a.jqueryTmplTemplateEngine=function(){var a=this.jQueryTmplVersion=function(){if(!t||!t.tmpl)return 0;try{if(0<=t.tmpl.tag.tmpl.open.toString().indexOf(\"__\"))return 2}catch(d){}return 1}();this.renderTemplateSource=function(b,c,f,k){k=k||r;f=f||{};if(2>a)throw Error(\"Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.\");var d=b.data(\"precompiled\");d||(d=b.text()||\"\",d=t.template(null,\"{{ko_with $item.koBindingContext}}\"+d+\"{{/ko_with}}\"),\n" - "b.data(\"precompiled\",d));b=[c.$data];c=t.extend({koBindingContext:c},f.templateOptions);c=t.tmpl(d,b,c);c.appendTo(k.createElement(\"div\"));t.fragments={};return c};this.createJavaScriptEvaluatorBlock=function(a){return\"{{ko_code ((function() { return \"+a+\" })()) }}\"};this.addTemplate=function(a,b){r.write(\" \n"; + " OpenEVSE

OpenEVSE

WiFi

WiFi Setup

Mode:

Connect to network:

Select Network RSSI dBm
Scanning...

Passkey:

Connecting to a local WiFi network is not essential. OpenEVSE can be configured and controlled while in standalone WiFi AP (Access Point) mode:

Note: remote logging features e.g Emoncms will not work while in AP standalone mode

Connecting to ...

Please connect this device to and navigate to the IP address displayed on your OpenEVSE display.

Alternatively you can use http://openevse.local/ or http://openevse/

\n";