Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*! dustjs-linkedin - v2.7.5
- * http://dustjs.com/
- * Copyright (c) 2016 Aleksander Williams; Released under the MIT License */
- /*!
- * jQuery JavaScript Library v3.3.1
- * https://jquery.com/
- *
- * Includes Sizzle.js
- * https://sizzlejs.com/
- *
- * Copyright JS Foundation and other contributors
- * Released under the MIT license
- * https://jquery.org/license
- *
- * Date: 2018-01-20T17:24Z
- */
- /*!
- * Sizzle CSS Selector Engine v2.3.3
- * https://sizzlejs.com/
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license
- * http://jquery.org/license
- *
- * Date: 2016-08-08
- */
- // Underscore.js 1.8.3
- // http://underscorejs.org
- // (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- // Underscore may be freely distributed under the MIT license.
- /*! dustjs-helpers - v1.7.4
- * http://dustjs.com/
- * Copyright (c) 2017 Aleksander Williams; Released under the MIT License */
- // (c) 2010-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
- // Backbone may be freely distributed under the MIT license.
- // For all details and documentation:
- // http://backbonejs.org
- /*!
- * Bootstrap v3.1.1 (http://getbootstrap.com)
- * Copyright 2011-2014 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- */
- /* ========================================================================
- * Bootstrap: transition.js v3.1.1
- * http://getbootstrap.com/javascript/#transitions
- * ========================================================================
- * Copyright 2011-2014 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- * ======================================================================== */
- /* ========================================================================
- * Bootstrap: alert.js v3.1.1
- * http://getbootstrap.com/javascript/#alerts
- * ========================================================================
- * Copyright 2011-2014 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- * ======================================================================== */
- /* ========================================================================
- * Bootstrap: button.js v3.1.1
- * http://getbootstrap.com/javascript/#buttons
- * ========================================================================
- * Copyright 2011-2014 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- * ======================================================================== */
- /* ========================================================================
- * Bootstrap: carousel.js v3.1.1
- * http://getbootstrap.com/javascript/#carousel
- * ========================================================================
- * Copyright 2011-2014 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- * ======================================================================== */
- /* ========================================================================
- * Bootstrap: collapse.js v3.1.1
- * http://getbootstrap.com/javascript/#collapse
- * ========================================================================
- * Copyright 2011-2014 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- * ======================================================================== */
- /* ========================================================================
- * Bootstrap: dropdown.js v3.1.1
- * http://getbootstrap.com/javascript/#dropdowns
- * ========================================================================
- * Copyright 2011-2014 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- * ======================================================================== */
- /* ========================================================================
- * Bootstrap: modal.js v3.1.1
- * http://getbootstrap.com/javascript/#modals
- * ========================================================================
- * Copyright 2011-2014 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- * ======================================================================== */
- /* ========================================================================
- * Bootstrap: tooltip.js v3.1.1
- * http://getbootstrap.com/javascript/#tooltip
- * Inspired by the original jQuery.tipsy by Jason Frame
- * ========================================================================
- * Copyright 2011-2014 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- * ======================================================================== */
- /* ========================================================================
- * Bootstrap: popover.js v3.1.1
- * http://getbootstrap.com/javascript/#popovers
- * ========================================================================
- * Copyright 2011-2014 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- * ======================================================================== */
- /* ========================================================================
- * Bootstrap: scrollspy.js v3.1.1
- * http://getbootstrap.com/javascript/#scrollspy
- * ========================================================================
- * Copyright 2011-2014 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- * ======================================================================== */
- /* ========================================================================
- * Bootstrap: tab.js v3.1.1
- * http://getbootstrap.com/javascript/#tabs
- * ========================================================================
- * Copyright 2011-2014 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- * ======================================================================== */
- /* ========================================================================
- * Bootstrap: affix.js v3.1.1
- * http://getbootstrap.com/javascript/#affix
- * ========================================================================
- * Copyright 2011-2014 Twitter, Inc.
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- * ======================================================================== */
- /* =========================================================
- * bootstrap-datepicker.js
- * http://www.eyecon.ro/bootstrap-datepicker
- * =========================================================
- * Copyright 2012 Stefan Petre
- * Improvements by Andrew Rowls
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * ========================================================= */
- /*! jQuery UI - v1.12.1 - 2018-03-20
- * http://jqueryui.com
- * Includes: .js, jquery-1-7.js, keycode.js, position.js, unique-id.js, widget.js, widgets/autocomplete.js, widgets/menu.js, widgets/tooltip.js
- * Copyright jQuery Foundation and other contributors; Licensed MIT */
- /*!
- * jQuery UI Support for jQuery core 1.7.x 1.12.1
- * http://jqueryui.com
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- *
- */
- /*!
- * jQuery UI Keycode 1.12.1
- * http://jqueryui.com
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- */
- /*!
- * jQuery UI Position 1.12.1
- * http://jqueryui.com
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- *
- * http://api.jqueryui.com/position/
- */
- /*!
- * jQuery UI Unique ID 1.12.1
- * http://jqueryui.com
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- */
- /*!
- * jQuery UI Widget 1.12.1
- * http://jqueryui.com
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- */
- /*!
- * jQuery UI Menu 1.12.1
- * http://jqueryui.com
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- */
- /*!
- * jQuery UI Autocomplete 1.12.1
- * http://jqueryui.com
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- */
- /*!
- * jQuery UI Tooltip 1.12.1
- * http://jqueryui.com
- *
- * Copyright jQuery Foundation and other contributors
- * Released under the MIT license.
- * http://jquery.org/license
- */
- define.amd.dust=!0,!function(e,t){"function"==typeof define&&define.amd&&define.amd.dust===!0?define("dust.core",[],t):"object"==typeof exports?module.exports=t():e.dust=t()}(this,function(){function getTemplate(e,t){return e?"function"==typeof e&&e.template?e.template:dust.isTemplateFn(e)?e:t!==!1?dust.cache[e]:void 0:void 0}function load(e,t,n){if(!e)return t.setError(new Error("No template or template name provided to render"));var r=getTemplate(e,dust.config.cache);return r?r(t,Context.wrap(n,r.templateName)):dust.onLoad?t.map(function(t){function r(e,r){var s;if(e)return t.setError(e);if(s=getTemplate(r,!1)||getTemplate(i,dust.config.cache),!s){if(!dust.compile)return t.setError(new Error("Dust compiler not available"));s=dust.loadSource(dust.compile(r,i))}s(t,Context.wrap(n,s.templateName)).end()}var i=e;3===dust.onLoad.length?dust.onLoad(i,n.options,r):dust.onLoad(i,r)}):t.setError(new Error("Template Not Found: "+e))}function Context(e,t,n,r,i){void 0===e||e instanceof Stack||(e=new Stack(e)),this.stack=e,this.global=t,this.options=n,this.blocks=r,this.templateName=i,this._isContext=!0}function getWithResolvedData(e,t,n){return function(r){return e.push(r)._get(t,n)}}function Stack(e,t,n,r){this.tail=t,this.isObject=e&&"object"==typeof e,this.head=e,this.index=n,this.of=r}function Stub(e){this.head=new Chunk(this),this.callback=e,this.out=""}function Stream(){this.head=new Chunk(this)}function Chunk(e,t,n){this.root=e,this.next=t,this.data=[],this.flushable=!1,this.taps=n}function Tap(e,t){this.head=e,this.tail=t}var dust={version:"2.7.5"},NONE="NONE",ERROR="ERROR",WARN="WARN",INFO="INFO",DEBUG="DEBUG",EMPTY_FUNC=function(){};dust.config={whitespace:!1,amd:!1,cjs:!1,cache:!0},dust._aliases={write:"w",end:"e",map:"m",render:"r",reference:"f",section:"s",exists:"x",notexists:"nx",block:"b",partial:"p",helper:"h"},function(){var e,t,n={DEBUG:0,INFO:1,WARN:2,ERROR:3,NONE:4};"undefined"!=typeof console&&console.log?(e=console.log,t="function"==typeof e?function(){e.apply(console,arguments)}:function(){e(Array.prototype.slice.apply(arguments).join(" "))}):t=EMPTY_FUNC,dust.log=function(e,r){r=r||INFO,n[r]>=n[dust.debugLevel]&&t("[DUST:"+r+"]",e)},dust.debugLevel=NONE,"undefined"!=typeof process&&process.env&&/\bdust\b/.test(process.env.DEBUG)&&(dust.debugLevel=DEBUG)}(),dust.helpers={},dust.cache={},dust.register=function(e,t){e&&(t.templateName=e,dust.config.cache!==!1&&(dust.cache[e]=t))},dust.render=function(e,t,n){var r=(new Stub(n)).head;try{load(e,r,t).end()}catch(i){r.setError(i)}},dust.stream=function(e,t){var n=new Stream,r=n.head;return dust.nextTick(function(){try{load(e,r,t).end()}catch(n){r.setError(n)}}),n},dust.loadSource=function(source){return eval(source)},dust.isArray=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},dust.nextTick=function(){return function(e){setTimeout(e,0)}}(),dust.isEmpty=function(e){return 0===e?!1:dust.isArray(e)&&!e.length?!0:!e},dust.isEmptyObject=function(e){var t;if(null===e)return!1;if(void 0===e)return!1;if(e.length>0)return!1;for(t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},dust.isTemplateFn=function(e){return"function"==typeof e&&e.__dustBody},dust.isThenable=function(e){return e&&"object"==typeof e&&"function"==typeof e.then},dust.isStreamable=function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pipe},dust.filter=function(e,t,n,r){var i,s,o,u;if(n)for(i=0,s=n.length;s>i;i++)o=n[i],o.length&&(u=dust.filters[o],"s"===o?t=null:"function"==typeof u?e=u(e,r):dust.log("Invalid filter `"+o+"`",WARN));return t&&(e=dust.filters[t](e,r)),e},dust.filters={h:function(e){return dust.escapeHtml(e)},j:function(e){return dust.escapeJs(e)},u:encodeURI,uc:encodeURIComponent,js:function(e){return dust.escapeJSON(e)},jp:function(e){return JSON?JSON.parse(e):(dust.log("JSON is undefined; could not parse `"+e+"`",WARN),e)}},dust.makeBase=dust.context=function(e,t){return new Context(void 0,e,t)},dust.isContext=function(e){return"object"==typeof e&&e._isContext===!0},Context.wrap=function(e,t){return dust.isContext(e)?e:new Context(e,{},{},null,t)},Context.prototype.get=function(e,t){return"string"==typeof e&&("."===e[0]&&(t=!0,e=e.substr(1)),e=e.split(".")),this._get(t,e)},Context.prototype._get=function(e,t){var n,r,i,s,o,u=this.stack||{},a=1;if(r=t[0],i=t.length,e&&0===i)s=u,u=u.head;else{if(e)u&&(u=u.head?u.head[r]:void 0);else{for(;u&&(!u.isObject||(s=u.head,n=u.head[r],void 0===n));)u=u.tail;u=void 0!==n?n:this.global&&this.global[r]}for(;u&&i>a;){if(dust.isThenable(u))return u.then(getWithResolvedData(this,e,t.slice(a)));s=u,u=u[t[a]],a++}}return"function"==typeof u?(o=function(){try{return u.apply(s,arguments)}catch(e){throw dust.log(e,ERROR),e}},o.__dustBody=!!u.__dustBody,o):(void 0===u&&dust.log("Cannot find reference `{"+t.join(".")+"}` in template `"+this.getTemplateName()+"`",INFO),u)},Context.prototype.getPath=function(e,t){return this._get(e,t)},Context.prototype.push=function(e,t,n){return void 0===e?(dust.log("Not pushing an undefined variable onto the context",INFO),this):this.rebase(new Stack(e,this.stack,t,n))},Context.prototype.pop=function(){var e=this.current();return this.stack=this.stack&&this.stack.tail,e},Context.prototype.rebase=function(e){return new Context(e,this.global,this.options,this.blocks,this.getTemplateName())},Context.prototype.clone=function(){var e=this.rebase();return e.stack=this.stack,e},Context.prototype.current=function(){return this.stack&&this.stack.head},Context.prototype.getBlock=function(e){var t,n,r;if("function"==typeof e&&(e=e(new Chunk,this).data.join("")),t=this.blocks,!t)return dust.log("No blocks for context `"+e+"` in template `"+this.getTemplateName()+"`",DEBUG),!1;for(n=t.length;n--;)if(r=t[n][e])return r;return dust.log("Malformed template `"+this.getTemplateName()+"` was missing one or more blocks."),!1},Context.prototype.shiftBlocks=function(e){var t,n=this.blocks;return e?(t=n?n.concat([e]):[e],new Context(this.stack,this.global,this.options,t,this.getTemplateName())):this},Context.prototype.resolve=function(e){var t;return"function"!=typeof e?e:(t=(new Chunk).render(e,this),t instanceof Chunk?t.data.join(""):t)},Context.prototype.getTemplateName=function(){return this.templateName},Stub.prototype.flush=function(){for(var e=this.head;e;){if(!e.flushable)return e.error?(this.callback(e.error),dust.log("Rendering failed with error `"+e.error+"`",ERROR),void (this.flush=EMPTY_FUNC)):void 0;this.out+=e.data.join(""),e=e.next,this.head=e}this.callback(null,this.out)},Stream.prototype.flush=function(){for(var e=this.head;e;){if(!e.flushable)return e.error?(this.emit("error",e.error),this.emit("end"),dust.log("Streaming failed with error `"+e.error+"`",ERROR),void (this.flush=EMPTY_FUNC)):void 0;this.emit("data",e.data.join("")),e=e.next,this.head=e}this.emit("end")},Stream.prototype.emit=function(e,t){var n,r,i=this.events||{},s=i[e]||[];if(!s.length)return dust.log("Stream broadcasting, but no listeners for `"+e+"`",DEBUG),!1;for(s=s.slice(0),n=0,r=s.length;r>n;n++)s[n](t);return!0},Stream.prototype.on=function(e,t){var n=this.events=this.events||{},r=n[e]=n[e]||[];return"function"!=typeof t?dust.log("No callback function provided for `"+e+"` event listener",WARN):r.push(t),this},Stream.prototype.pipe=function(e){if("function"!=typeof e.write||"function"!=typeof e.end)return dust.log("Incompatible stream passed to `pipe`",WARN),this;var t=!1;return"function"==typeof e.emit&&e.emit("pipe",this),"function"==typeof e.on&&e.on("error",function(){t=!0}),this.on("data",function(n){if(!t)try{e.write(n,"utf8")}catch(r){dust.log(r,ERROR)}}).on("end",function(){if(!t)try{e.end(),t=!0}catch(n){dust.log(n,ERROR)}})},Chunk.prototype.write=function(e){var t=this.taps;return t&&(e=t.go(e)),this.data.push(e),this},Chunk.prototype.end=function(e){return e&&this.write(e),this.flushable=!0,this.root.flush(),this},Chunk.prototype.map=function(e){var t=new Chunk(this.root,this.next,this.taps),n=new Chunk(this.root,t,this.taps);this.next=n,this.flushable=!0;try{e(n)}catch(r){dust.log(r,ERROR),n.setError(r)}return t},Chunk.prototype.tap=function(e){var t=this.taps;return this.taps=t?t.push(e):new Tap(e),this},Chunk.prototype.untap=function(){return this.taps=this.taps.tail,this},Chunk.prototype.render=function(e,t){return e(this,t)},Chunk.prototype.reference=function(e,t,n,r){return"function"==typeof e?(e=e.apply(t.current(),[this,t,null,{auto:n,filters:r}]),e instanceof Chunk?e:this.reference(e,t,n,r)):dust.isThenable(e)?this.await(e,t,null,n,r):dust.isStreamable(e)?this.stream(e,t,null,n,r):dust.isEmpty(e)?this:this.write(dust.filter(e,n,r,t))},Chunk.prototype.section=function(e,t,n,r){var i,s,o,u=n.block,a=n["else"],f=this;if("function"==typeof e&&!dust.isTemplateFn(e)){try{e=e.apply(t.current(),[this,t,n,r])}catch(l){return dust.log(l,ERROR),this.setError(l)}if(e instanceof Chunk)return e}if(dust.isEmptyObject(n))return f;if(dust.isEmptyObject(r)||(t=t.push(r)),dust.isArray(e)){if(u){if(s=e.length,s>0){for(o=t.stack&&t.stack.head||{},o.$len=s,i=0;s>i;i++)o.$idx=i,f=u(f,t.push(e[i],i,s));return o.$idx=void 0,o.$len=void 0,f}if(a)return a(this,t)}}else{if(dust.isThenable(e))return this.await(e,t,n);if(dust.isStreamable(e))return this.stream(e,t,n);if(e===!0){if(u)return u(this,t)}else if(e||0===e){if(u)return u(this,t.push(e))}else if(a)return a(this,t)}return dust.log("Section without corresponding key in template `"+t.getTemplateName()+"`",DEBUG),this},Chunk.prototype.exists=function(e,t,n){var r=n.block,i=n["else"];if(dust.isEmpty(e)){if(i)return i(this,t)}else{if(r)return r(this,t);dust.log("No block for exists check in template `"+t.getTemplateName()+"`",DEBUG)}return this},Chunk.prototype.notexists=function(e,t,n){var r=n.block,i=n["else"];if(dust.isEmpty(e)){if(r)return r(this,t);dust.log("No block for not-exists check in template `"+t.getTemplateName()+"`",DEBUG)}else if(i)return i(this,t);return this},Chunk.prototype.block=function(e,t,n){var r=e||n.block;return r?r(this,t):this},Chunk.prototype.partial=function(e,t,n,r){var i;return void 0===r&&(r=n,n=t),dust.isEmptyObject(r)||(n=n.clone(),i=n.pop(),n=n.push(r).push(i)),dust.isTemplateFn(e)?this.capture(e,t,function(e,t){n.templateName=e,load(e,t,n).end()}):(n.templateName=e,load(e,this,n))},Chunk.prototype.helper=function(e,t,n,r,i){var s,o=this,u=r.filters;if(void 0===i&&(i="h"),!dust.helpers[e])return dust.log("Helper `"+e+"` does not exist",WARN),o;try{return s=dust.helpers[e](o,t,n,r),s instanceof Chunk?s:("string"==typeof u&&(u=u.split("|")),dust.isEmptyObject(n)?o.reference(s,t,i,u):o.section(s,t,n,r))}catch(a){return dust.log("Error in helper `"+e+"`: "+a.message,ERROR),o.setError(a)}},Chunk.prototype.await=function(e,t,n,r,i){return this.map(function(s){e.then(function(e){s=n?s.section(e,t,n):s.reference(e,t,r,i),s.end()},function(e){var r=n&&n.error;r?s.render(r,t.push(e)).end():(dust.log("Unhandled promise rejection in `"+t.getTemplateName()+"`",INFO),s.end())})})},Chunk.prototype.stream=function(e,t,n,r,i){var s=n&&n.block,o=n&&n.error;return this.map(function(u){var l=!1;e.on("data",function(e){l||(s?u=u.map(function(n){n.render(s,t.push(e)).end()}):n||(u=u.reference(e,t,r,i)))}).on("error",function(e){l||(o?u.render(o,t.push(e)):dust.log("Unhandled stream error in `"+t.getTemplateName()+"`",INFO),l||(l=!0,u.end()))}).on("end",function(){l||(l=!0,u.end())})})},Chunk.prototype.capture=function(e,t,n){return this.map(function(r){var i=new Stub(function(e,t){e?r.setError(e):n(t,r)});e(i.head,t).end()})},Chunk.prototype.setError=function(e){return this.error=e,this.root.flush(),this};for(var f in Chunk.prototype)dust._aliases[f]&&(Chunk.prototype[dust._aliases[f]]=Chunk.prototype[f]);Tap.prototype.push=function(e){return new Tap(e,this)},Tap.prototype.go=function(e){for(var t=this;t;)e=t.head(e),t=t.tail;return e};var HCHARS=/[&<>"']/,AMP=/&/g,LT=/</g,GT=/>/g,QUOT=/\"/g,SQUOT=/\'/g;dust.escapeHtml=function(e){return"string"==typeof e||e&&"function"==typeof e.toString?("string"!=typeof e&&(e=e.toString()),HCHARS.test(e)?e.replace(AMP,"&").replace(LT,"<").replace(GT,">").replace(QUOT,""").replace(SQUOT,"'"):e):e};var BS=/\\/g,FS=/\//g,CR=/\r/g,LS=/\u2028/g,PS=/\u2029/g,NL=/\n/g,LF=/\f/g,SQ=/'/g,DQ=/"/g,TB=/\t/g;return dust.escapeJs=function(e){return"string"==typeof e?e.replace(BS,"\\\\").replace(FS,"\\/").replace(DQ,'\\"').replace(SQ,"\\'").replace(CR,"\\r").replace(LS,"\\u2028").replace(PS,"\\u2029").replace(NL,"\\n").replace(LF,"\\f").replace(TB,"\\t"):e},dust.escapeJSON=function(e){return JSON?JSON.stringify(e).replace(LS,"\\u2028").replace(PS,"\\u2029").replace(LT,"\\u003c"):(dust.log("JSON is undefined; could not escape `"+e+"`",WARN),e)},dust}),function(e,t){"function"==typeof define&&define.amd&&define.amd.dust===!0?define("dust.parse",["dust.core"],function(e){return t(e).parse}):"object"==typeof exports?module.exports=t(require("./dust")):t(e.dust)}(this,function(e){var t=function(){function e(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function t(e,t,n,r,i,s){this.message=e,this.expected=t,this.found=n,this.offset=r,this.line=i,this.column=s,this.name="SyntaxError"}function n(e){function n(){return s(Tr).line}function r(){return s(Tr).column}function i(e){throw u(e,null,Tr)}function s(t){function n(t,n,r){var i,s;for(i=n;r>i;i++)s=e.charAt(i),"\n"===s?(t.seenCR||t.line++,t.column=1,t.seenCR=!1):"\r"===s||"\u2028"===s||"\u2029"===s?(t.line++,t.column=1,t.seenCR=!0):(t.column++,t.seenCR=!1)}return Nr!==t&&(Nr>t&&(Nr=0,Cr={line:1,column:1,seenCR:!1}),n(Cr,Nr,t),Nr=t),Cr}function o(e){kr>xr||(xr>kr&&(kr=xr,Lr=[]),Lr.push(e))}function u(n,r,i){function o(e){var t=1;for(e.sort(function(e,t){return e.description<t.description?-1:e.description>t.description?1:0});t<e.length;)e[t-1]===e[t]?e.splice(t,1):t++}function u(e,t){function n(e){function t(e){return e.charCodeAt(0).toString(16).toUpperCase()}return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(e){return"\\x0"+t(e)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(e){return"\\x"+t(e)}).replace(/[\u0180-\u0FFF]/g,function(e){return"\\u0"+t(e)}).replace(/[\u1080-\uFFFF]/g,function(e){return"\\u"+t(e)})}var r,i,s,o=new Array(e.length);for(s=0;s<e.length;s++)o[s]=e[s].description;return r=e.length>1?o.slice(0,-1).join(", ")+" or "+o[e.length-1]:o[0],i=t?'"'+n(t)+'"':"end of input","Expected "+r+" but "+i+" found."}var a=s(i),f=i<e.length?e.charAt(i):null;return null!==r&&o(r),new t(null!==n?n:u(r,f),r,f,i,a.line,a.column)}function a(){var e;return e=f()}function f(){var e,t,n;for(e=xr,t=[],n=l();n!==Q;)t.push(n),n=l();return t!==Q&&(Tr=e,t=Z(t)),e=t}function l(){var e;return e=j(),e===Q&&(e=F(),e===Q&&(e=c(),e===Q&&(e=y(),e===Q&&(e=E(),e===Q&&(e=g(),e===Q&&(e=P())))))),e}function c(){var t,n,r,i,s,u,a,l;if(Ar++,t=xr,n=h(),n!==Q){for(r=[],i=X();i!==Q;)r.push(i),i=X();r!==Q?(i=R(),i!==Q?(s=f(),s!==Q?(u=m(),u!==Q?(a=p(),a===Q&&(a=nt),a!==Q?(Tr=xr,l=rt(n,s,u,a),l=l?it:tt,l!==Q?(Tr=t,n=st(n,s,u,a),t=n):(xr=t,t=tt)):(xr=t,t=tt)):(xr=t,t=tt)):(xr=t,t=tt)):(xr=t,t=tt)):(xr=t,t=tt)}else xr=t,t=tt;if(t===Q)if(t=xr,n=h(),n!==Q){for(r=[],i=X();i!==Q;)r.push(i),i=X();r!==Q?(47===e.charCodeAt(xr)?(i=ot,xr++):(i=Q,0===Ar&&o(ut)),i!==Q?(s=R(),s!==Q?(Tr=t,n=at(n),t=n):(xr=t,t=tt)):(xr=t,t=tt)):(xr=t,t=tt)}else xr=t,t=tt;return Ar--,t===Q&&(n=Q,0===Ar&&o(et)),t}function h(){var t,n,r,i,s,u,a;if(t=xr,n=q(),n!==Q)if(ft.test(e.charAt(xr))?(r=e.charAt(xr),xr++):(r=Q,0===Ar&&o(lt)),r!==Q){for(i=[],s=X();s!==Q;)i.push(s),s=X();i!==Q?(s=S(),s!==Q?(u=d(),u!==Q?(a=v(),a!==Q?(Tr=t,n=ct(r,s,u,a),t=n):(xr=t,t=tt)):(xr=t,t=tt)):(xr=t,t=tt)):(xr=t,t=tt)}else xr=t,t=tt;else xr=t,t=tt;return t}function p(){var t,n,r,i,s,u,a;if(Ar++,t=xr,n=q(),n!==Q)if(47===e.charCodeAt(xr)?(r=ot,xr++):(r=Q,0===Ar&&o(ut)),r!==Q){for(i=[],s=X();s!==Q;)i.push(s),s=X();if(i!==Q)if(s=S(),s!==Q){for(u=[],a=X();a!==Q;)u.push(a),a=X();u!==Q?(a=R(),a!==Q?(Tr=t,n=pt(s),t=n):(xr=t,t=tt)):(xr=t,t=tt)}else xr=t,t=tt;else xr=t,t=tt}else xr=t,t=tt;else xr=t,t=tt;return Ar--,t===Q&&(n=Q,0===Ar&&o(ht)),t}function d(){var t,n,r,i;return t=xr,n=xr,58===e.charCodeAt(xr)?(r=dt,xr++):(r=Q,0===Ar&&o(vt)),r!==Q?(i=S(),i!==Q?(Tr=n,r=mt(i),n=r):(xr=n,n=tt)):(xr=n,n=tt),n===Q&&(n=nt),n!==Q&&(Tr=t,n=gt(n)),t=n}function v(){var t,n,r,i,s,u,a;if(Ar++,t=xr,n=[],r=xr,i=[],s=X(),s!==Q)for(;s!==Q;)i.push(s),s=X();else i=tt;for(i!==Q?(s=A(),s!==Q?(61===e.charCodeAt(xr)?(u=bt,xr++):(u=Q,0===Ar&&o(wt)),u!==Q?(a=x(),a===Q&&(a=S(),a===Q&&(a=_())),a!==Q?(Tr=r,i=Et(s,a),r=i):(xr=r,r=tt)):(xr=r,r=tt)):(xr=r,r=tt)):(xr=r,r=tt);r!==Q;){if(n.push(r),r=xr,i=[],s=X(),s!==Q)for(;s!==Q;)i.push(s),s=X();else i=tt;i!==Q?(s=A(),s!==Q?(61===e.charCodeAt(xr)?(u=bt,xr++):(u=Q,0===Ar&&o(wt)),u!==Q?(a=x(),a===Q&&(a=S(),a===Q&&(a=_())),a!==Q?(Tr=r,i=Et(s,a),r=i):(xr=r,r=tt)):(xr=r,r=tt)):(xr=r,r=tt)):(xr=r,r=tt)}return n!==Q&&(Tr=t,n=St(n)),t=n,Ar--,t===Q&&(n=Q,0===Ar&&o(yt)),t}function m(){var t,n,r,i,s,u,a,l;for(Ar++,t=xr,n=[],r=xr,i=q(),i!==Q?(58===e.charCodeAt(xr)?(s=dt,xr++):(s=Q,0===Ar&&o(vt)),s!==Q?(u=A(),u!==Q?(a=R(),a!==Q?(l=f(),l!==Q?(Tr=r,i=Et(u,l),r=i):(xr=r,r=tt)):(xr=r,r=tt)):(xr=r,r=tt)):(xr=r,r=tt)):(xr=r,r=tt);r!==Q;)n.push(r),r=xr,i=q(),i!==Q?(58===e.charCodeAt(xr)?(s=dt,xr++):(s=Q,0===Ar&&o(vt)),s!==Q?(u=A(),u!==Q?(a=R(),a!==Q?(l=f(),l!==Q?(Tr=r,i=Et(u,l),r=i):(xr=r,r=tt)):(xr=r,r=tt)):(xr=r,r=tt)):(xr=r,r=tt)):(xr=r,r=tt);return n!==Q&&(Tr=t,n=Tt(n)),t=n,Ar--,t===Q&&(n=Q,0===Ar&&o(xt)),t}function g(){var e,t,n,r,i;return Ar++,e=xr,t=q(),t!==Q?(n=S(),n!==Q?(r=w(),r!==Q?(i=R(),i!==Q?(Tr=e,t=Ct(n,r),e=t):(xr=e,e=tt)):(xr=e,e=tt)):(xr=e,e=tt)):(xr=e,e=tt),Ar--,e===Q&&(t=Q,0===Ar&&o(Nt)),e}function y(){var t,n,r,i,s,u,a,f,l,c;if(Ar++,t=xr,n=q(),n!==Q)if(62===e.charCodeAt(xr)?(r=Lt,xr++):(r=Q,0===Ar&&o(At)),r===Q&&(43===e.charCodeAt(xr)?(r=Ot,xr++):(r=Q,0===Ar&&o(Mt))),r!==Q){for(i=[],s=X();s!==Q;)i.push(s),s=X();if(i!==Q)if(s=xr,u=A(),u!==Q&&(Tr=s,u=_t(u)),s=u,s===Q&&(s=_()),s!==Q)if(u=d(),u!==Q)if(a=v(),a!==Q){for(f=[],l=X();l!==Q;)f.push(l),l=X();f!==Q?(47===e.charCodeAt(xr)?(l=ot,xr++):(l=Q,0===Ar&&o(ut)),l!==Q?(c=R(),c!==Q?(Tr=t,n=Dt(r,s,u,a),t=n):(xr=t,t=tt)):(xr=t,t=tt)):(xr=t,t=tt)}else xr=t,t=tt;else xr=t,t=tt;else xr=t,t=tt;else xr=t,t=tt}else xr=t,t=tt;else xr=t,t=tt;return Ar--,t===Q&&(n=Q,0===Ar&&o(kt)),t}function w(){var t,n,r,i,s;for(Ar++,t=xr,n=[],r=xr,124===e.charCodeAt(xr)?(i=Ht,xr++):(i=Q,0===Ar&&o(Bt)),i!==Q?(s=A(),s!==Q?(Tr=r,i=mt(s),r=i):(xr=r,r=tt)):(xr=r,r=tt);r!==Q;)n.push(r),r=xr,124===e.charCodeAt(xr)?(i=Ht,xr++):(i=Q,0===Ar&&o(Bt)),i!==Q?(s=A(),s!==Q?(Tr=r,i=mt(s),r=i):(xr=r,r=tt)):(xr=r,r=tt);return n!==Q&&(Tr=t,n=jt(n)),t=n,Ar--,t===Q&&(n=Q,0===Ar&&o(Pt)),t}function E(){var t,n,r,i,s;return Ar++,t=xr,n=q(),n!==Q?(126===e.charCodeAt(xr)?(r=It,xr++):(r=Q,0===Ar&&o(qt)),r!==Q?(i=A(),i!==Q?(s=R(),s!==Q?(Tr=t,n=Rt(i),t=n):(xr=t,t=tt)):(xr=t,t=tt)):(xr=t,t=tt)):(xr=t,t=tt),Ar--,t===Q&&(n=Q,0===Ar&&o(Ft)),t}function S(){var e,t;return Ar++,e=xr,t=L(),t!==Q&&(Tr=e,t=zt(t)),e=t,e===Q&&(e=xr,t=A(),t!==Q&&(Tr=e,t=Wt(t)),e=t),Ar--,e===Q&&(t=Q,0===Ar&&o(Ut)),e}function x(){var e,t;return Ar++,e=xr,t=T(),t===Q&&(t=k()),t!==Q&&(Tr=e,t=Vt(t)),e=t,Ar--,e===Q&&(t=Q,0===Ar&&o(Xt)),e}function T(){var t,n,r,i;return Ar++,t=xr,n=k(),n!==Q?(46===e.charCodeAt(xr)?(r=Jt,xr++):(r=Q,0===Ar&&o(Kt)),r!==Q?(i=N(),i!==Q?(Tr=t,n=Qt(n,i),t=n):(xr=t,t=tt)):(xr=t,t=tt)):(xr=t,t=tt),Ar--,t===Q&&(n=Q,0===Ar&&o($t)),t}function N(){var t,n,r;if(Ar++,t=xr,n=[],Yt.test(e.charAt(xr))?(r=e.charAt(xr),xr++):(r=Q,0===Ar&&o(Zt)),r!==Q)for(;r!==Q;)n.push(r),Yt.test(e.charAt(xr))?(r=e.charAt(xr),xr++):(r=Q,0===Ar&&o(Zt));else n=tt;return n!==Q&&(Tr=t,n=en(n)),t=n,Ar--,t===Q&&(n=Q,0===Ar&&o(Gt)),t}function C(){var t,n,r;return Ar++,t=xr,45===e.charCodeAt(xr)?(n=nn,xr++):(n=Q,0===Ar&&o(rn)),n!==Q?(r=N(),r!==Q?(Tr=t,n=sn(n,r),t=n):(xr=t,t=tt)):(xr=t,t=tt),Ar--,t===Q&&(n=Q,0===Ar&&o(tn)),t}function k(){var e,t;return Ar++,e=C(),e===Q&&(e=N()),Ar--,e===Q&&(t=Q,0===Ar&&o(on)),e}function L(){var t,n,r,i;if(Ar++,t=xr,n=A(),n===Q&&(n=nt),n!==Q){if(r=[],i=M(),i===Q&&(i=O()),i!==Q)for(;i!==Q;)r.push(i),i=M(),i===Q&&(i=O());else r=tt;r!==Q?(Tr=t,n=an(n,r),t=n):(xr=t,t=tt)}else xr=t,t=tt;if(t===Q)if(t=xr,46===e.charCodeAt(xr)?(n=Jt,xr++):(n=Q,0===Ar&&o(Kt)),n!==Q){for(r=[],i=M(),i===Q&&(i=O());i!==Q;)r.push(i),i=M(),i===Q&&(i=O());r!==Q?(Tr=t,n=fn(r),t=n):(xr=t,t=tt)}else xr=t,t=tt;return Ar--,t===Q&&(n=Q,0===Ar&&o(un)),t}function A(){var t,n,r,i;if(Ar++,t=xr,cn.test(e.charAt(xr))?(n=e.charAt(xr),xr++):(n=Q,0===Ar&&o(hn)),n!==Q){for(r=[],pn.test(e.charAt(xr))?(i=e.charAt(xr),xr++):(i=Q,0===Ar&&o(dn));i!==Q;)r.push(i),pn.test(e.charAt(xr))?(i=e.charAt(xr),xr++):(i=Q,0===Ar&&o(dn));r!==Q?(Tr=t,n=vn(n,r),t=n):(xr=t,t=tt)}else xr=t,t=tt;return Ar--,t===Q&&(n=Q,0===Ar&&o(ln)),t}function O(){var t,n,r,i,s,u;if(Ar++,t=xr,n=xr,r=U(),r!==Q){if(i=xr,s=[],Yt.test(e.charAt(xr))?(u=e.charAt(xr),xr++):(u=Q,0===Ar&&o(Zt)),u!==Q)for(;u!==Q;)s.push(u),Yt.test(e.charAt(xr))?(u=e.charAt(xr),xr++):(u=Q,0===Ar&&o(Zt));else s=tt;s!==Q&&(Tr=i,s=gn(s)),i=s,i===Q&&(i=S()),i!==Q?(s=z(),s!==Q?(Tr=n,r=yn(i),n=r):(xr=n,n=tt)):(xr=n,n=tt)}else xr=n,n=tt;return n!==Q?(r=M(),r===Q&&(r=nt),r!==Q?(Tr=t,n=bn(n,r),t=n):(xr=t,t=tt)):(xr=t,t=tt),Ar--,t===Q&&(n=Q,0===Ar&&o(mn)),t}function M(){var t,n,r,i,s;if(Ar++,t=xr,n=[],r=xr,46===e.charCodeAt(xr)?(i=Jt,xr++):(i=Q,0===Ar&&o(Kt)),i!==Q?(s=A(),s!==Q?(Tr=r,i=En(s),r=i):(xr=r,r=tt)):(xr=r,r=tt),r!==Q)for(;r!==Q;)n.push(r),r=xr,46===e.charCodeAt(xr)?(i=Jt,xr++):(i=Q,0===Ar&&o(Kt)),i!==Q?(s=A(),s!==Q?(Tr=r,i=En(s),r=i):(xr=r,r=tt)):(xr=r,r=tt);else n=tt;return n!==Q?(r=O(),r===Q&&(r=nt),r!==Q?(Tr=t,n=Sn(n,r),t=n):(xr=t,t=tt)):(xr=t,t=tt),Ar--,t===Q&&(n=Q,0===Ar&&o(wn)),t}function _(){var t,n,r,i;if(Ar++,t=xr,34===e.charCodeAt(xr)?(n=Tn,xr++):(n=Q,0===Ar&&o(Nn)),n!==Q?(34===e.charCodeAt(xr)?(r=Tn,xr++):(r=Q,0===Ar&&o(Nn)),r!==Q?(Tr=t,n=Cn(),t=n):(xr=t,t=tt)):(xr=t,t=tt),t===Q&&(t=xr,34===e.charCodeAt(xr)?(n=Tn,xr++):(n=Q,0===Ar&&o(Nn)),n!==Q?(r=H(),r!==Q?(34===e.charCodeAt(xr)?(i=Tn,xr++):(i=Q,0===Ar&&o(Nn)),i!==Q?(Tr=t,n=kn(r),t=n):(xr=t,t=tt)):(xr=t,t=tt)):(xr=t,t=tt),t===Q))if(t=xr,34===e.charCodeAt(xr)?(n=Tn,xr++):(n=Q,0===Ar&&o(Nn)),n!==Q){if(r=[],i=D(),i!==Q)for(;i!==Q;)r.push(i),i=D();else r=tt;r!==Q?(34===e.charCodeAt(xr)?(i=Tn,xr++):(i=Q,0===Ar&&o(Nn)),i!==Q?(Tr=t,n=Ln(r),t=n):(xr=t,t=tt)):(xr=t,t=tt)}else xr=t,t=tt;return Ar--,t===Q&&(n=Q,0===Ar&&o(xn)),t}function D(){var e,t;return e=E(),e===Q&&(e=g(),e===Q&&(e=xr,t=H(),t!==Q&&(Tr=e,t=An(t)),e=t)),e}function P(){var t,n,r,i,s,u,a,f;if(Ar++,t=xr,n=W(),n!==Q){for(r=[],i=X();i!==Q;)r.push(i),i=X();r!==Q?(Tr=t,n=Mn(n,r),t=n):(xr=t,t=tt)}else xr=t,t=tt;if(t===Q){if(t=xr,n=[],r=xr,i=xr,Ar++,s=I(),Ar--,s===Q?i=it:(xr=i,i=tt),i!==Q?(s=xr,Ar++,u=j(),Ar--,u===Q?s=it:(xr=s,s=tt),s!==Q?(u=xr,Ar++,a=F(),Ar--,a===Q?u=it:(xr=u,u=tt),u!==Q?(a=xr,Ar++,f=W(),Ar--,f===Q?a=it:(xr=a,a=tt),a!==Q?(e.length>xr?(f=e.charAt(xr),xr++):(f=Q,0===Ar&&o(_n)),f!==Q?(Tr=r,i=Dn(f),r=i):(xr=r,r=tt)):(xr=r,r=tt)):(xr=r,r=tt)):(xr=r,r=tt)):(xr=r,r=tt),r!==Q)for(;r!==Q;)n.push(r),r=xr,i=xr,Ar++,s=I(),Ar--,s===Q?i=it:(xr=i,i=tt),i!==Q?(s=xr,Ar++,u=j(),Ar--,u===Q?s=it:(xr=s,s=tt),s!==Q?(u=xr,Ar++,a=F(),Ar--,a===Q?u=it:(xr=u,u=tt),u!==Q?(a=xr,Ar++,f=W(),Ar--,f===Q?a=it:(xr=a,a=tt),a!==Q?(e.length>xr?(f=e.charAt(xr),xr++):(f=Q,0===Ar&&o(_n)),f!==Q?(Tr=r,i=Dn(f),r=i):(xr=r,r=tt)):(xr=r,r=tt)):(xr=r,r=tt)):(xr=r,r=tt)):(xr=r,r=tt);else n=tt;n!==Q&&(Tr=t,n=Pn(n)),t=n}return Ar--,t===Q&&(n=Q,0===Ar&&o(On)),t}function H(){var t,n,r,i,s;if(Ar++,t=xr,n=[],r=xr,i=xr,Ar++,s=I(),Ar--,s===Q?i=it:(xr=i,i=tt),i!==Q?(s=B(),s===Q&&(Bn.test(e.charAt(xr))?(s=e.charAt(xr),xr++):(s=Q,0===Ar&&o(jn))),s!==Q?(Tr=r,i=Dn(s),r=i):(xr=r,r=tt)):(xr=r,r=tt),r!==Q)for(;r!==Q;)n.push(r),r=xr,i=xr,Ar++,s=I(),Ar--,s===Q?i=it:(xr=i,i=tt),i!==Q?(s=B(),s===Q&&(Bn.test(e.charAt(xr))?(s=e.charAt(xr),xr++):(s=Q,0===Ar&&o(jn))),s!==Q?(Tr=r,i=Dn(s),r=i):(xr=r,r=tt)):(xr=r,r=tt);else n=tt;return n!==Q&&(Tr=t,n=Fn(n)),t=n,Ar--,t===Q&&(n=Q,0===Ar&&o(Hn)),t}function B(){var t,n;return t=xr,e.substr(xr,2)===In?(n=In,xr+=2):(n=Q,0===Ar&&o(qn)),n!==Q&&(Tr=t,n=Rn()),t=n}function j(){var t,n,r,i,s,u;if(Ar++,t=xr,e.substr(xr,2)===zn?(n=zn,xr+=2):(n=Q,0===Ar&&o(Wn)),n!==Q){for(r=[],i=xr,s=xr,Ar++,e.substr(xr,2)===Xn?(u=Xn,xr+=2):(u=Q,0===Ar&&o(Vn)),Ar--,u===Q?s=it:(xr=s,s=tt),s!==Q?(e.length>xr?(u=e.charAt(xr),xr++):(u=Q,0===Ar&&o(_n)),u!==Q?(Tr=i,s=$n(u),i=s):(xr=i,i=tt)):(xr=i,i=tt);i!==Q;)r.push(i),i=xr,s=xr,Ar++,e.substr(xr,2)===Xn?(u=Xn,xr+=2):(u=Q,0===Ar&&o(Vn)),Ar--,u===Q?s=it:(xr=s,s=tt),s!==Q?(e.length>xr?(u=e.charAt(xr),xr++):(u=Q,0===Ar&&o(_n)),u!==Q?(Tr=i,s=$n(u),i=s):(xr=i,i=tt)):(xr=i,i=tt);r!==Q?(e.substr(xr,2)===Xn?(i=Xn,xr+=2):(i=Q,0===Ar&&o(Vn)),i!==Q?(Tr=t,n=Jn(r),t=n):(xr=t,t=tt)):(xr=t,t=tt)}else xr=t,t=tt;return Ar--,t===Q&&(n=Q,0===Ar&&o(Un)),t}function F(){var t,n,r,i,s,u;if(Ar++,t=xr,e.substr(xr,2)===Qn?(n=Qn,xr+=2):(n=Q,0===Ar&&o(Gn)),n!==Q){for(r=[],i=xr,s=xr,Ar++,e.substr(xr,2)===Yn?(u=Yn,xr+=2):(u=Q,0===Ar&&o(Zn)),Ar--,u===Q?s=it:(xr=s,s=tt),s!==Q?(e.length>xr?(u=e.charAt(xr),xr++):(u=Q,0===Ar&&o(_n)),u!==Q?(Tr=i,s=Dn(u),i=s):(xr=i,i=tt)):(xr=i,i=tt);i!==Q;)r.push(i),i=xr,s=xr,Ar++,e.substr(xr,2)===Yn?(u=Yn,xr+=2):(u=Q,0===Ar&&o(Zn)),Ar--,u===Q?s=it:(xr=s,s=tt),s!==Q?(e.length>xr?(u=e.charAt(xr),xr++):(u=Q,0===Ar&&o(_n)),u!==Q?(Tr=i,s=Dn(u),i=s):(xr=i,i=tt)):(xr=i,i=tt);r!==Q?(e.substr(xr,2)===Yn?(i=Yn,xr+=2):(i=Q,0===Ar&&o(Zn)),i!==Q?(Tr=t,n=er(r),t=n):(xr=t,t=tt)):(xr=t,t=tt)}else xr=t,t=tt;return Ar--,t===Q&&(n=Q,0===Ar&&o(Kn)),t}function I(){var t,n,r,i,s,u,a,f,l,c;if(t=xr,n=q(),n!==Q){for(r=[],i=X();i!==Q;)r.push(i),i=X();if(r!==Q)if(tr.test(e.charAt(xr))?(i=e.charAt(xr),xr++):(i=Q,0===Ar&&o(nr)),i!==Q){for(s=[],u=X();u!==Q;)s.push(u),u=X();if(s!==Q){if(u=[],a=xr,f=xr,Ar++,l=R(),Ar--,l===Q?f=it:(xr=f,f=tt),f!==Q?(l=xr,Ar++,c=W(),Ar--,c===Q?l=it:(xr=l,l=tt),l!==Q?(e.length>xr?(c=e.charAt(xr),xr++):(c=Q,0===Ar&&o(_n)),c!==Q?(f=[f,l,c],a=f):(xr=a,a=tt)):(xr=a,a=tt)):(xr=a,a=tt),a!==Q)for(;a!==Q;)u.push(a),a=xr,f=xr,Ar++,l=R(),Ar--,l===Q?f=it:(xr=f,f=tt),f!==Q?(l=xr,Ar++,c=W(),Ar--,c===Q?l=it:(xr=l,l=tt),l!==Q?(e.length>xr?(c=e.charAt(xr),xr++):(c=Q,0===Ar&&o(_n)),c!==Q?(f=[f,l,c],a=f):(xr=a,a=tt)):(xr=a,a=tt)):(xr=a,a=tt);else u=tt;if(u!==Q){for(a=[],f=X();f!==Q;)a.push(f),f=X();a!==Q?(f=R(),f!==Q?(n=[n,r,i,s,u,a,f],t=n):(xr=t,t=tt)):(xr=t,t=tt)}else xr=t,t=tt}else xr=t,t=tt}else xr=t,t=tt;else xr=t,t=tt}else xr=t,t=tt;return t===Q&&(t=g()),t}function q(){var t;return 123===e.charCodeAt(xr)?(t=rr,xr++):(t=Q,0===Ar&&o(ir)),t}function R(){var t;return 125===e.charCodeAt(xr)?(t=sr,xr++):(t=Q,0===Ar&&o(or)),t}function U(){var t;return 91===e.charCodeAt(xr)?(t=ur,xr++):(t=Q,0===Ar&&o(ar)),t}function z(){var t;return 93===e.charCodeAt(xr)?(t=fr,xr++):(t=Q,0===Ar&&o(lr)),t}function W(){var t;return 10===e.charCodeAt(xr)?(t=cr,xr++):(t=Q,0===Ar&&o(hr)),t===Q&&(e.substr(xr,2)===pr?(t=pr,xr+=2):(t=Q,0===Ar&&o(dr)),t===Q&&(13===e.charCodeAt(xr)?(t=vr,xr++):(t=Q,0===Ar&&o(mr)),t===Q&&(8232===e.charCodeAt(xr)?(t=gr,xr++):(t=Q,0===Ar&&o(yr)),t===Q&&(8233===e.charCodeAt(xr)?(t=br,xr++):(t=Q,0===Ar&&o(wr)))))),t}function X(){var t;return Er.test(e.charAt(xr))?(t=e.charAt(xr),xr++):(t=Q,0===Ar&&o(Sr)),t===Q&&(t=W()),t}function V(e){return parseInt(e.join(""),10)}function $(e){return e.concat([["line",n()],["col",r()]])}var J,K=arguments.length>1?arguments[1]:{},Q={},G={start:a},Y=a,Z=function(e){var t=["body"].concat(e);return $(t)},et={type:"other",description:"section"},tt=Q,nt=null,rt=function(e,t,n,r){return r&&e[1].text===r.text||i("Expected end tag for "+e[1].text+" but it was not found."),!0},it=void 0,st=function(e,t,n){return n.push(["param",["literal","block"],t]),e.push(n,["filters"]),$(e)},ot="/",ut={type:"literal",value:"/",description:'"/"'},at=function(e){return e.push(["bodies"],["filters"]),$(e)},ft=/^[#?\^<+@%]/,lt={type:"class",value:"[#?\\^<+@%]",description:"[#?\\^<+@%]"},ct=function(e,t,n,r){return[e,t,n,r]},ht={type:"other",description:"end tag"},pt=function(e){return e},dt=":",vt={type:"literal",value:":",description:'":"'},mt=function(e){return e},gt=function(e){return e?["context",e]:["context"]},yt={type:"other",description:"params"},bt="=",wt={type:"literal",value:"=",description:'"="'},Et=function(e,t){return["param",["literal",e],t]},St=function(e){return["params"].concat(e)},xt={type:"other",description:"bodies"},Tt=function(e){return["bodies"].concat(e)},Nt={type:"other",description:"reference"},Ct=function(e,t){return $(["reference",e,t])},kt={type:"other",description:"partial"},Lt=">",At={type:"literal",value:">",description:'">"'},Ot="+",Mt={type:"literal",value:"+",description:'"+"'},_t=function(e){return["literal",e]},Dt=function(e,t,n,r){var i=">"===e?"partial":e;return $([i,t,n,r])},Pt={type:"other",description:"filters"},Ht="|",Bt={type:"literal",value:"|",description:'"|"'},jt=function(e){return["filters"].concat(e)},Ft={type:"other",description:"special"},It="~",qt={type:"literal",value:"~",description:'"~"'},Rt=function(e){return $(["special",e])},Ut={type:"other",description:"identifier"},zt=function(e){var t=["path"].concat(e);return t.text=e[1].join(".").replace(/,line,\d+,col,\d+/g,""),t},Wt=function(e){var t=["key",e];return t.text=e,t},Xt={type:"other",description:"number"},Vt=function(e){return["literal",e]},$t={type:"other",description:"float"},Jt=".",Kt={type:"literal",value:".",description:'"."'},Qt=function(e,t){return parseFloat(e+"."+t)},Gt={type:"other",description:"unsigned_integer"},Yt=/^[0-9]/,Zt={type:"class",value:"[0-9]",description:"[0-9]"},en=function(e){return V(e)},tn={type:"other",description:"signed_integer"},nn="-",rn={type:"literal",value:"-",description:'"-"'},sn=function(e,t){return-1*t},on={type:"other",description:"integer"},un={type:"other",description:"path"},an=function(e,t){return t=t[0],e&&t?(t.unshift(e),$([!1,t])):$([!0,t])},fn=function(e){return $(e.length>0?[!0,e[0]]:[!0,[]])},ln={type:"other",description:"key"},cn=/^[a-zA-Z_$]/,hn={type:"class",value:"[a-zA-Z_$]",description:"[a-zA-Z_$]"},pn=/^[0-9a-zA-Z_$\-]/,dn={type:"class",value:"[0-9a-zA-Z_$\\-]",description:"[0-9a-zA-Z_$\\-]"},vn=function(e,t){return e+t.join("")},mn={type:"other",description:"array"},gn=function(e){return e.join("")},yn=function(e){return e},bn=function(e,t){return t?t.unshift(e):t=[e],t},wn={type:"other",description:"array_part"},En=function(e){return e},Sn=function(e,t){return t?e.concat(t):e},xn={type:"other",description:"inline"},Tn='"',Nn={type:"literal",value:'"',description:'"\\""'},Cn=function(){return $(["literal",""])},kn=function(e){return $(["literal",e])},Ln=function(e){return $(["body"].concat(e))},An=function(e){return["buffer",e]},On={type:"other",description:"buffer"},Mn=function(e,t){return $(["format",e,t.join("")])},_n={type:"any",description:"any character"},Dn=function(e){return e},Pn=function(e){return $(["buffer",e.join("")])},Hn={type:"other",description:"literal"},Bn=/^[^"]/,jn={type:"class",value:'[^"]',description:'[^"]'},Fn=function(e){return e.join("")},In='\\"',qn={type:"literal",value:'\\"',description:'"\\\\\\""'},Rn=function(){return'"'},Un={type:"other",description:"raw"},zn="{`",Wn={type:"literal",value:"{`",description:'"{`"'},Xn="`}",Vn={type:"literal",value:"`}",description:'"`}"'},$n=function(e){return e},Jn=function(e){return $(["raw",e.join("")])},Kn={type:"other",description:"comment"},Qn="{!",Gn={type:"literal",value:"{!",description:'"{!"'},Yn="!}",Zn={type:"literal",value:"!}",description:'"!}"'},er=function(e){return $(["comment",e.join("")])},tr=/^[#?\^><+%:@\/~%]/,nr={type:"class",value:"[#?\\^><+%:@\\/~%]",description:"[#?\\^><+%:@\\/~%]"},rr="{",ir={type:"literal",value:"{",description:'"{"'},sr="}",or={type:"literal",value:"}",description:'"}"'},ur="[",ar={type:"literal",value:"[",description:'"["'},fr="]",lr={type:"literal",value:"]",description:'"]"'},cr="\n",hr={type:"literal",value:"\n",description:'"\\n"'},pr="\r\n",dr={type:"literal",value:"\r\n",description:'"\\r\\n"'},vr="\r",mr={type:"literal",value:"\r",description:'"\\r"'},gr="\u2028",yr={type:"literal",value:"\u2028",description:'"\\u2028"'},br="\u2029",wr={type:"literal",value:"\u2029",description:'"\\u2029"'},Er=/^[\t\x0B\f \xA0\uFEFF]/,Sr={type:"class",value:"[\\t\\x0B\\f \\xA0\\uFEFF]",description:"[\\t\\x0B\\f \\xA0\\uFEFF]"},xr=0,Tr=0,Nr=0,Cr={line:1,column:1,seenCR:!1},kr=0,Lr=[],Ar=0;if("startRule"in K){if(!(K.startRule in G))throw new Error("Can't start parsing from rule \""+K.startRule+'".');Y=G[K.startRule]}if(J=Y(),J!==Q&&xr===e.length)return J;throw J!==Q&&xr<e.length&&o({type:"end",description:"end of input"}),u(null,Lr,kr)}return e(t,Error),{SyntaxError:t,parse:n}}();return e.parse=t.parse,t}),function(e,t){"function"==typeof define&&define.amd&&define.amd.dust===!0?define("dust.compile",["dust.core","dust.parse"],function(e,n){return t(n,e).compile}):"object"==typeof exports?module.exports=t(require("./parser").parse,require("./dust")):t(e.dust.parse,e.dust)}(this,function(e,t){function n(e){var t={};return y.filterNode(t,e)}function r(e,t){var n,r,i,s=[t[0]];for(n=1,r=t.length;r>n;n++)i=y.filterNode(e,t[n]),i&&s.push(i);return s}function i(e,t){var n,r,i,s,o=[t[0]];for(r=1,i=t.length;i>r;r++)s=y.filterNode(e,t[r]),s&&("buffer"===s[0]||"format"===s[0]?n?(n[0]="buffer"===s[0]?"buffer":n[0],n[1]+=s.slice(1,-2).join("")):(n=s,o.push(s)):(n=null,o.push(s)));return o}function s(e,t){return["buffer",w[t[1]],t[2],t[3]]}function o(e,t){return t}function u(){}function a(e,n){return t.config.whitespace?(n.splice(1,2,n.slice(1,-2).join("")),n):null}function f(e,n){var r,i={name:n,bodies:[],blocks:{},index:0,auto:"h"},s=t.escapeJs(n),o=n?'"'+s+'",':"",u="function(dust){",a=y.compileNode(i,e);return n&&(u+='dust.register("'+s+'",'+a+");"),u+=l(i)+c(i)+"return "+a+"}",r="("+u+"(dust));",t.config.amd?"define("+o+'["dust.core"],'+u+");":t.config.cjs?"module.exports=function(dust){var tmpl="+r+"var f="+g().toString()+";f.template=tmpl;return f}":r}function l(e){var t,n=[],r=e.blocks;for(t in r)n.push('"'+t+'":'+r[t]);return n.length?(e.blocks="ctx=ctx.shiftBlocks(blocks);","var blocks={"+n.join(",")+"};"):(e.blocks="",e.blocks)}function c(e){var t,n,r=[],i=e.bodies,s=e.blocks;for(t=0,n=i.length;n>t;t++)r[t]="function body_"+t+"(chk,ctx){"+s+"return chk"+i[t]+";}body_"+t+".__dustBody=!0;";return r.join("")}function h(e,t){var n,r,i="";for(n=1,r=t.length;r>n;n++)i+=y.compileNode(e,t[n]);return i}function p(e,n,r){return"."+(t._aliases[r]||r)+"("+y.compileNode(e,n[1])+","+y.compileNode(e,n[2])+","+y.compileNode(e,n[4])+","+y.compileNode(e,n[3])+")"}function d(e){return e.replace(E,"\\\\").replace(S,'\\"').replace(x,"\\f").replace(T,"\\n").replace(N,"\\r").replace(C,"\\t")}function v(e,n,r){var i=t.loadSource(t.compile(e));return g(i)(n,r)}function m(e,n){var r=t.loadSource(t.compile(e,n));return g(r)}function g(e){return function(n,r){var i=r?"render":"stream";return t[i](e,n,r)}}var y={},b=t.isArray;y.compile=function(t,r){try{var i=n(e(t));return f(i,r)}catch(s){throw!s.line||!s.column?s:new SyntaxError(s.message+" At line : "+s.line+", column : "+s.column)}},y.filterNode=function(e,t){return y.optimizers[t[0]](e,t)},y.optimizers={body:i,buffer:o,special:s,format:a,reference:r,"#":r,"?":r,"^":r,"<":r,"+":r,"@":r,"%":r,partial:r,context:r,params:r,bodies:r,param:r,filters:o,key:o,path:o,literal:o,raw:o,comment:u,line:u,col:u},y.pragmas={esc:function(e,t,n){var r,i=e.auto;return t||(t="h"),e.auto="s"===t?"":t,r=h(e,n.block),e.auto=i,r}};var w={s:" ",n:"\n",r:"\r",lb:"{",rb:"}"};y.compileNode=function(e,t){return y.nodes[t[0]](e,t)},y.nodes={body:function(e,t){var n=e.index++,r="body_"+n;return e.bodies[n]=h(e,t),r},buffer:function(e,t){return".w("+k(t[1])+")"},format:function(e,t){return".w("+k(t[1])+")"},reference:function(e,t){return".f("+y.compileNode(e,t[1])+",ctx,"+y.compileNode(e,t[2])+")"},"#":function(e,t){return p(e,t,"section")},"?":function(e,t){return p(e,t,"exists")},"^":function(e,t){return p(e,t,"notexists")},"<":function(e,t){for(var n=t[4],r=1,i=n.length;i>r;r++){var s=n[r],o=s[1][1];if("block"===o)return e.blocks[t[1].text]=y.compileNode(e,s[2]),""}return""},"+":function(e,t){return"undefined"==typeof t[1].text&&"undefined"==typeof t[4]?".b(ctx.getBlock("+y.compileNode(e,t[1])+",chk, ctx),"+y.compileNode(e,t[2])+", {},"+y.compileNode(e,t[3])+")":".b(ctx.getBlock("+k(t[1].text)+"),"+y.compileNode(e,t[2])+","+y.compileNode(e,t[4])+","+y.compileNode(e,t[3])+")"},"@":function(e,t){return".h("+k(t[1].text)+","+y.compileNode(e,t[2])+","+y.compileNode(e,t[4])+","+y.compileNode(e,t[3])+","+y.compileNode(e,t[5])+")"},"%":function(e,t){var n,r,i,s,o,u,a,f,l,c=t[1][1];if(!y.pragmas[c])return"";for(n=t[4],r={},f=1,l=n.length;l>f;f++)u=n[f],r[u[1][1]]=u[2];for(i=t[3],s={},f=1,l=i.length;l>f;f++)a=i[f],s[a[1][1]]=a[2][1];return o=t[2][1]?t[2][1].text:null,y.pragmas[c](e,o,r,s)},partial:function(e,t){return".p("+y.compileNode(e,t[1])+",ctx,"+y.compileNode(e,t[2])+","+y.compileNode(e,t[3])+")"},context:function(e,t){return t[1]?"ctx.rebase("+y.compileNode(e,t[1])+")":"ctx"},params:function(e,t){for(var n=[],r=1,i=t.length;i>r;r++)n.push(y.compileNode(e,t[r]));return n.length?"{"+n.join(",")+"}":"{}"},bodies:function(e,t){for(var n=[],r=1,i=t.length;i>r;r++)n.push(y.compileNode(e,t[r]));return"{"+n.join(",")+"}"},param:function(e,t){return y.compileNode(e,t[1])+":"+y.compileNode(e,t[2])},filters:function(e,t){for(var n=[],r=1,i=t.length;i>r;r++){var s=t[r];n.push('"'+s+'"')}return'"'+e.auto+'"'+(n.length?",["+n.join(",")+"]":"")},key:function(e,t){return'ctx.get(["'+t[1]+'"], false)'},path:function(e,t){for(var n=t[1],r=t[2],i=[],s=0,o=r.length;o>s;s++)i.push(b(r[s])?y.compileNode(e,r[s]):'"'+r[s]+'"');return"ctx.getPath("+n+", ["+i.join(",")+"])"},literal:function(e,t){return k(t[1])},raw:function(e,t){return".w("+k(t[1])+")"}};var E=/\\/g,S=/"/g,x=/\f/g,T=/\n/g,N=/\r/g,C=/\t/g,k="undefined"==typeof JSON?function(e){return'"'+d(e)+'"'}:JSON.stringify;return t.compiler=y,t.compile=t.compiler.compile,t.renderSource=v,t.compileFn=m,t.filterNode=y.filterNode,t.optimizers=y.optimizers,t.pragmas=y.pragmas,t.compileNode=y.compileNode,t.nodes=y.nodes,y}),"function"==typeof define&&define.amd&&define.amd.dust===!0&&define("dustjs-linkedin/dist/dust-full.min",["require","dust.core","dust.compile"],function(e,t){return t.onLoad=function(t,n){e([t],function(){n()})},t}),define("dustjs-linkedin",["dustjs-linkedin/dist/dust-full.min"],function(e){return e}),function(e,t){"use strict";typeof module=="object"&&typeof module.exports=="object"?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}(typeof window!="undefined"?window:this,function(e,t){function y(e,t,n){t=t||r;var i,s=t.createElement("script");s.text=e;if(n)for(i in g)n[i]&&(s[i]=n[i]);t.head.appendChild(s).parentNode.removeChild(s)}function b(e){return e==null?e+"":typeof e=="object"||typeof e=="function"?f[l.call(e)]||"object":typeof e}function x(e){var t=!!e&&"length"in e&&e.length,n=b(e);return v(e)||m(e)?!1:n==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function L(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function O(e,t,n){return v(t)?E.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?E.grep(e,function(e){return e===t!==n}):typeof t!="string"?E.grep(e,function(e){return a.call(t,e)>-1!==n}):E.filter(t,e,n)}function B(e,t){while((e=e[t])&&e.nodeType!==1);return e}function F(e){var t={};return E.each(e.match(j)||[],function(e,n){t[n]=!0}),t}function I(e){return e}function q(e){throw e}function R(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(undefined,[e].slice(r))}catch(e){n.apply(undefined,[e])}}function W(){r.removeEventListener("DOMContentLoaded",W),e.removeEventListener("load",W),E.ready()}function J(e,t){return t.toUpperCase()}function K(e){return e.replace(V,"ms-").replace($,J)}function G(){this.expando=E.expando+G.uid++}function nt(e){return e==="true"?!0:e==="false"?!1:e==="null"?null:e===+e+""?+e:et.test(e)?JSON.parse(e):e}function rt(e,t,n){var r;if(n===undefined&&e.nodeType===1){r="data-"+t.replace(tt,"-$&").toLowerCase(),n=e.getAttribute(r);if(typeof n=="string"){try{n=nt(n)}catch(i){}Z.set(e,t,n)}else n=undefined}return n}function ft(e,t,n,r){var i,s,o=20,u=r?function(){return r.cur()}:function(){return E.css(e,t,"")},a=u(),f=n&&n[3]||(E.cssNumber[t]?"":"px"),l=(E.cssNumber[t]||f!=="px"&&+a)&&st.exec(E.css(e,t));if(l&&l[3]!==f){a/=2,f=f||l[3],l=+a||1;while(o--)E.style(e,t,l+f),(1-s)*(1-(s=u()/a||.5))<=0&&(o=0),l/=s;l*=2,E.style(e,t,l+f),n=n||[]}return n&&(l=+l||+a||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=f,r.start=l,r.end=i)),i}function ct(e){var t,n=e.ownerDocument,r=e.nodeName,i=lt[r];return i?i:(t=n.body.appendChild(n.createElement(r)),i=E.css(t,"display"),t.parentNode.removeChild(t),i==="none"&&(i="block"),lt[r]=i,i)}function ht(e,t){var n,r,i=[],s=0,o=e.length;for(;s<o;s++){r=e[s];if(!r.style)continue;n=r.style.display,t?(n==="none"&&(i[s]=Y.get(r,"display")||null,i[s]||(r.style.display="")),r.style.display===""&&ut(r)&&(i[s]=ct(r))):n!=="none"&&(i[s]="none",Y.set(r,"display",n))}for(s=0;s<o;s++)i[s]!=null&&(e[s].style.display=i[s]);return e}function gt(e,t){var n;return typeof e.getElementsByTagName!="undefined"?n=e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!="undefined"?n=e.querySelectorAll(t||"*"):n=[],t===undefined||t&&L(e,t)?E.merge([e],n):n}function yt(e,t){var n=0,r=e.length;for(;n<r;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}function wt(e,t,n,r,i){var s,o,u,a,f,l,c=t.createDocumentFragment(),h=[],p=0,d=e.length;for(;p<d;p++){s=e[p];if(s||s===0)if(b(s)==="object")E.merge(h,s.nodeType?[s]:s);else if(!bt.test(s))h.push(t.createTextNode(s));else{o=o||c.appendChild(t.createElement("div")),u=(dt.exec(s)||["",""])[1].toLowerCase(),a=mt[u]||mt._default,o.innerHTML=a[1]+E.htmlPrefilter(s)+a[2],l=a[0];while(l--)o=o.lastChild;E.merge(h,o.childNodes),o=c.firstChild,o.textContent=""}}c.textContent="",p=0;while(s=h[p++]){if(r&&E.inArray(s,r)>-1){i&&i.push(s);continue}f=E.contains(s.ownerDocument,s),o=gt(c.appendChild(s),"script"),f&&yt(o);if(n){l=0;while(s=o[l++])vt.test(s.type||"")&&n.push(s)}}return c}function Nt(){return!0}function Ct(){return!1}function kt(){try{return r.activeElement}catch(e){}}function Lt(e,t,n,r,i,s){var o,u;if(typeof t=="object"){typeof n!="string"&&(r=r||n,n=undefined);for(u in t)Lt(e,u,n,r,t[u],s);return e}r==null&&i==null?(i=n,r=n=undefined):i==null&&(typeof n=="string"?(i=r,r=undefined):(i=r,r=n,n=undefined));if(i===!1)i=Ct;else if(!i)return e;return s===1&&(o=i,i=function(e){return E().off(e),o.apply(this,arguments)},i.guid=o.guid||(o.guid=E.guid++)),e.each(function(){E.event.add(this,t,i,r,n)})}function Dt(e,t){return L(e,"table")&&L(t.nodeType!==11?t:t.firstChild,"tr")?E(e).children("tbody")[0]||e:e}function Pt(e){return e.type=(e.getAttribute("type")!==null)+"/"+e.type,e}function Ht(e){return(e.type||"").slice(0,5)==="true/"?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Bt(e,t){var n,r,i,s,o,u,a,f;if(t.nodeType!==1)return;if(Y.hasData(e)){s=Y.access(e),o=Y.set(t,s),f=s.events;if(f){delete o.handle,o.events={};for(i in f)for(n=0,r=f[i].length;n<r;n++)E.event.add(t,i,f[i][n])}}Z.hasData(e)&&(u=Z.access(e),a=E.extend({},u),Z.set(t,a))}function jt(e,t){var n=t.nodeName.toLowerCase();if(n==="input"&&pt.test(e.type))t.checked=e.checked;else if(n==="input"||n==="textarea")t.defaultValue=e.defaultValue}function Ft(e,t,n,r){t=o.apply([],t);var i,s,u,a,f,l,c=0,h=e.length,p=h-1,m=t[0],g=v(m);if(g||h>1&&typeof m=="string"&&!d.checkClone&&Mt.test(m))return e.each(function(i){var s=e.eq(i);g&&(t[0]=m.call(this,i,s.html())),Ft(s,t,n,r)});if(h){i=wt(t,e[0].ownerDocument,!1,e,r),s=i.firstChild,i.childNodes.length===1&&(i=s);if(s||r){u=E.map(gt(i,"script"),Pt),a=u.length;for(;c<h;c++)f=i,c!==p&&(f=E.clone(f,!0,!0),a&&E.merge(u,gt(f,"script"))),n.call(e[c],f,c);if(a){l=u[u.length-1].ownerDocument,E.map(u,Ht);for(c=0;c<a;c++)f=u[c],vt.test(f.type||"")&&!Y.access(f,"globalEval")&&E.contains(l,f)&&(f.src&&(f.type||"").toLowerCase()!=="module"?E._evalUrl&&E._evalUrl(f.src):y(f.textContent.replace(_t,""),l,f))}}}return e}function It(e,t,n){var r,i=t?E.filter(t,e):e,s=0;for(;(r=i[s])!=null;s++)!n&&r.nodeType===1&&E.cleanData(gt(r)),r.parentNode&&(n&&E.contains(r.ownerDocument,r)&&yt(gt(r,"script")),r.parentNode.removeChild(r));return e}function zt(e,t,n){var r,i,s,o,u=e.style;return n=n||Rt(e),n&&(o=n.getPropertyValue(t)||n[t],o===""&&!E.contains(e.ownerDocument,e)&&(o=E.style(e,t)),!d.pixelBoxStyles()&&qt.test(o)&&Ut.test(t)&&(r=u.width,i=u.minWidth,s=u.maxWidth,u.minWidth=u.maxWidth=u.width=o,o=n.width,u.width=r,u.minWidth=i,u.maxWidth=s)),o!==undefined?o+"":o}function Wt(e,t){return{get:function(){if(e()){delete this.get;return}return(this.get=t).apply(this,arguments)}}}function Gt(e){if(e in Qt)return e;var t=e[0].toUpperCase()+e.slice(1),n=Kt.length;while(n--){e=Kt[n]+t;if(e in Qt)return e}}function Yt(e){var t=E.cssProps[e];return t||(t=E.cssProps[e]=Gt(e)||e),t}function Zt(e,t,n){var r=st.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function en(e,t,n,r,i,s){var o=t==="width"?1:0,u=0,a=0;if(n===(r?"border":"content"))return 0;for(;o<4;o+=2)n==="margin"&&(a+=E.css(e,n+ot[o],!0,i)),r?(n==="content"&&(a-=E.css(e,"padding"+ot[o],!0,i)),n!=="margin"&&(a-=E.css(e,"border"+ot[o]+"Width",!0,i))):(a+=E.css(e,"padding"+ot[o],!0,i),n!=="padding"?a+=E.css(e,"border"+ot[o]+"Width",!0,i):u+=E.css(e,"border"+ot[o]+"Width",!0,i));return!r&&s>=0&&(a+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-s-a-u-.5))),a}function tn(e,t,n){var r=Rt(e),i=zt(e,t,r),s=E.css(e,"boxSizing",!1,r)==="border-box",o=s;if(qt.test(i)){if(!n)return i;i="auto"}o=o&&(d.boxSizingReliable()||i===e.style[t]);if(i==="auto"||!parseFloat(i)&&E.css(e,"display",!1,r)==="inline")i=e["offset"+t[0].toUpperCase()+t.slice(1)],o=!0;return i=parseFloat(i)||0,i+en(e,t,n||(s?"border":"content"),o,r,i)+"px"}function nn(e,t,n,r,i){return new nn.prototype.init(e,t,n,r,i)}function an(){sn&&(r.hidden===!1&&e.requestAnimationFrame?e.requestAnimationFrame(an):e.setTimeout(an,E.fx.interval),E.fx.tick())}function fn(){return e.setTimeout(function(){rn=undefined}),rn=Date.now()}function ln(e,t){var n,r=0,i={height:e};t=t?1:0;for(;r<4;r+=2-t)n=ot[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function cn(e,t,n){var r,i=(dn.tweeners[t]||[]).concat(dn.tweeners["*"]),s=0,o=i.length;for(;s<o;s++)if(r=i[s].call(n,t,e))return r}function hn(e,t,n){var r,i,s,o,u,a,f,l,c="width"in t||"height"in t,h=this,p={},d=e.style,v=e.nodeType&&ut(e),m=Y.get(e,"fxshow");n.queue||(o=E._queueHooks(e,"fx"),o.unqueued==null&&(o.unqueued=0,u=o.empty.fire,o.empty.fire=function(){o.unqueued||u()}),o.unqueued++,h.always(function(){h.always(function(){o.unqueued--,E.queue(e,"fx").length||o.empty.fire()})}));for(r in t){i=t[r];if(on.test(i)){delete t[r],s=s||i==="toggle";if(i===(v?"hide":"show")){if(i!=="show"||!m||m[r]===undefined)continue;v=!0}p[r]=m&&m[r]||E.style(e,r)}}a=!E.isEmptyObject(t);if(!a&&E.isEmptyObject(p))return;c&&e.nodeType===1&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],f=m&&m.display,f==null&&(f=Y.get(e,"display")),l=E.css(e,"display"),l==="none"&&(f?l=f:(ht([e],!0),f=e.style.display||f,l=E.css(e,"display"),ht([e]))),(l==="inline"||l==="inline-block"&&f!=null)&&E.css(e,"float")==="none"&&(a||(h.done(function(){d.display=f}),f==null&&(l=d.display,f=l==="none"?"":l)),d.display="inline-block")),n.overflow&&(d.overflow="hidden",h.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]})),a=!1;for(r in p)a||(m?"hidden"in m&&(v=m.hidden):m=Y.access(e,"fxshow",{display:f}),s&&(m.hidden=!v),v&&ht([e],!0),h.done(function(){v||ht([e]),Y.remove(e,"fxshow");for(r in p)E.style(e,r,p[r])})),a=cn(v?m[r]:0,r,h),r in m||(m[r]=a.start,v&&(a.end=a.start,a.start=0))}function pn(e,t){var n,r,i,s,o;for(n in e){r=K(n),i=t[r],s=e[n],Array.isArray(s)&&(i=s[1],s=e[n]=s[0]),n!==r&&(e[r]=s,delete e[n]),o=E.cssHooks[r];if(o&&"expand"in o){s=o.expand(s),delete e[r];for(n in s)n in e||(e[n]=s[n],t[n]=i)}else t[r]=i}}function dn(e,t,n){var r,i,s=0,o=dn.prefilters.length,u=E.Deferred().always(function(){delete a.elem}),a=function(){if(i)return!1;var t=rn||fn(),n=Math.max(0,f.startTime+f.duration-t),r=n/f.duration||0,s=1-r,o=0,a=f.tweens.length;for(;o<a;o++)f.tweens[o].run(s);return u.notifyWith(e,[f,s,n]),s<1&&a?n:(a||u.notifyWith(e,[f,1,0]),u.resolveWith(e,[f]),!1)},f=u.promise({elem:e,props:E.extend({},t),opts:E.extend(!0,{specialEasing:{},easing:E.easing._default},n),originalProperties:t,originalOptions:n,startTime:rn||fn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=E.Tween(e,f.opts,t,n,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(r),r},stop:function(t){var n=0,r=t?f.tweens.length:0;if(i)return this;i=!0;for(;n<r;n++)f.tweens[n].run(1);return t?(u.notifyWith(e,[f,1,0]),u.resolveWith(e,[f,t])):u.rejectWith(e,[f,t]),this}}),l=f.props;pn(l,f.opts.specialEasing);for(;s<o;s++){r=dn.prefilters[s].call(f,e,l,f.opts);if(r)return v(r.stop)&&(E._queueHooks(f.elem,f.opts.queue).stop=r.stop.bind(r)),r}return E.map(l,cn,f),v(f.opts.start)&&f.opts.start.call(e,f),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always),E.fx.timer(E.extend(a,{elem:e,anim:f,queue:f.opts.queue})),f}function bn(e){var t=e.match(j)||[];return t.join(" ")}function wn(e){return e.getAttribute&&e.getAttribute("class")||""}function En(e){return Array.isArray(e)?e:typeof e=="string"?e.match(j)||[]:[]}function _n(e,t,n,r){var i;if(Array.isArray(t))E.each(t,function(t,i){n||Ln.test(e)?r(e,i):_n(e+"["+(typeof i=="object"&&i!=null?t:"")+"]",i,n,r)});else if(!n&&b(t)==="object")for(i in t)_n(e+"["+i+"]",t[i],n,r);else r(e,t)}function Wn(e){return function(t,n){typeof t!="string"&&(n=t,t="*");var r,i=0,s=t.toLowerCase().match(j)||[];if(v(n))while(r=s[i++])r[0]==="+"?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Xn(e,t,n,r){function o(u){var a;return i[u]=!0,E.each(e[u]||[],function(e,u){var f=u(t,n,r);if(typeof f=="string"&&!s&&!i[f])return t.dataTypes.unshift(f),o(f),!1;if(s)return!(a=f)}),a}var i={},s=e===Rn;return o(t.dataTypes[0])||!i["*"]&&o("*")}function Vn(e,t){var n,r,i=E.ajaxSettings.flatOptions||{};for(n in t)t[n]!==undefined&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&E.extend(!0,e,r),e}function $n(e,t,n){var r,i,s,o,u=e.contents,a=e.dataTypes;while(a[0]==="*")a.shift(),r===undefined&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in u)if(u[i]&&u[i].test(r)){a.unshift(i);break}if(a[0]in n)s=a[0];else{for(i in n){if(!a[0]||e.converters[i+" "+a[0]]){s=i;break}o||(o=i)}s=s||o}if(s)return s!==a[0]&&a.unshift(s),n[s]}function Jn(e,t,n,r){var i,s,o,u,a,f={},l=e.dataTypes.slice();if(l[1])for(o in e.converters)f[o.toLowerCase()]=e.converters[o];s=l.shift();while(s){e.responseFields[s]&&(n[e.responseFields[s]]=t),!a&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),a=s,s=l.shift();if(s)if(s==="*")s=a;else if(a!=="*"&&a!==s){o=f[a+" "+s]||f["* "+s];if(!o)for(i in f){u=i.split(" ");if(u[1]===s){o=f[a+" "+u[0]]||f["* "+u[0]];if(o){o===!0?o=f[i]:f[i]!==!0&&(s=u[0],l.unshift(u[1]));break}}}if(o!==!0)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(c){return{state:"parsererror",error:o?c:"No conversion from "+a+" to "+s}}}}return{state:"success",data:t}}var n=[],r=e.document,i=Object.getPrototypeOf,s=n.slice,o=n.concat,u=n.push,a=n.indexOf,f={},l=f.toString,c=f.hasOwnProperty,h=c.toString,p=h.call(Object),d={},v=function(t){return typeof t=="function"&&typeof t.nodeType!="number"},m=function(t){return t!=null&&t===t.window},g={type:!0,src:!0,noModule:!0},w="3.3.1",E=function(e,t){return new E.fn.init(e,t)},S=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;E.fn=E.prototype={jquery:w,constructor:E,length:0,toArray:function(){return s.call(this)},get:function(e){return e==null?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=E.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return E.each(this,e)},map:function(e){return this.pushStack(E.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:n.sort,splice:n.splice},E.extend=E.fn.extend=function(){var e,t,n,r,i,s,o=arguments[0]||{},u=1,a=arguments.length,f=!1;typeof o=="boolean"&&(f=o,o=arguments[u]||{},u++),typeof o!="object"&&!v(o)&&(o={}),u===a&&(o=this,u--);for(;u<a;u++)if((e=arguments[u])!=null)for(t in e){n=o[t],r=e[t];if(o===r)continue;f&&r&&(E.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,s=n&&Array.isArray(n)?n:[]):s=n&&E.isPlainObject(n)?n:{},o[t]=E.extend(f,s,r)):r!==undefined&&(o[t]=r)}return o},E.extend({expando:"jQuery"+(w+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!e||l.call(e)!=="[object Object]"?!1:(t=i(e),t?(n=c.call(t,"constructor")&&t.constructor,typeof n=="function"&&h.call(n)===p):!0)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e){y(e)},each:function(e,t){var n,r=0;if(x(e)){n=e.length;for(;r<n;r++)if(t.call(e[r],r,e[r])===!1)break}else for(r in e)if(t.call(e[r],r,e[r])===!1)break;return e},trim:function(e){return e==null?"":(e+"").replace(S,"")},makeArray:function(e,t){var n=t||[];return e!=null&&(x(Object(e))?E.merge(n,typeof e=="string"?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return t==null?-1:a.call(t,e,n)},merge:function(e,t){var n=+t.length,r=0,i=e.length;for(;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){var r,i=[],s=0,o=e.length,u=!n;for(;s<o;s++)r=!t(e[s],s),r!==u&&i.push(e[s]);return i},map:function(e,t,n){var r,i,s=0,u=[];if(x(e)){r=e.length;for(;s<r;s++)i=t(e[s],s,n),i!=null&&u.push(i)}else for(s in e)i=t(e[s],s,n),i!=null&&u.push(i);return o.apply([],u)},guid:1,support:d}),typeof Symbol=="function"&&(E.fn[Symbol.iterator]=n[Symbol.iterator]),E.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()});var T=function(e){function ot(e,t,r,i){var s,u,f,l,c,d,g,y=t&&t.ownerDocument,S=t?t.nodeType:9;r=r||[];if(typeof e!="string"||!e||S!==1&&S!==9&&S!==11)return r;if(!i){(t?t.ownerDocument||t:E)!==p&&h(t),t=t||p;if(v){if(S!==11&&(c=G.exec(e)))if(s=c[1]){if(S===9){if(!(f=t.getElementById(s)))return r;if(f.id===s)return r.push(f),r}else if(y&&(f=y.getElementById(s))&&b(t,f)&&f.id===s)return r.push(f),r}else{if(c[2])return _.apply(r,t.getElementsByTagName(e)),r;if((s=c[3])&&n.getElementsByClassName&&t.getElementsByClassName)return _.apply(r,t.getElementsByClassName(s)),r}if(n.qsa&&!C[e+" "]&&(!m||!m.test(e))){if(S!==1)y=t,g=e;else if(t.nodeName.toLowerCase()!=="object"){(l=t.getAttribute("id"))?l=l.replace(tt,nt):t.setAttribute("id",l=w),d=o(e),u=d.length;while(u--)d[u]="#"+l+" "+yt(d[u]);g=d.join(","),y=Y.test(e)&&mt(t.parentNode)||t}if(g)try{return _.apply(r,y.querySelectorAll(g)),r}catch(x){}finally{l===w&&t.removeAttribute("id")}}}}return a(e.replace(R,"$1"),t,r,i)}function ut(){function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function at(e){return e[w]=!0,e}function ft(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function lt(e,t){var n=e.split("|"),i=n.length;while(i--)r.attrHandle[n[i]]=t}function ct(e,t){var n=t&&e,r=n&&e.nodeType===1&&t.nodeType===1&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ht(e){return function(t){var n=t.nodeName.toLowerCase();return n==="input"&&t.type===e}}function pt(e){return function(t){var n=t.nodeName.toLowerCase();return(n==="input"||n==="button")&&t.type===e}}function dt(e){return function(t){if("form"in t){if(t.parentNode&&t.disabled===!1)return"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&it(t)===e;return t.disabled===e}return"label"in t?t.disabled===e:!1}}function vt(e){return at(function(t){return t=+t,at(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))})})}function mt(e){return e&&typeof e.getElementsByTagName!="undefined"&&e}function gt(){}function yt(e){var t=0,n=e.length,r="";for(;t<n;t++)r+=e[t].value;return r}function bt(e,t,n){var r=t.dir,i=t.next,s=i||r,o=n&&s==="parentNode",u=x++;return t.first?function(t,n,i){while(t=t[r])if(t.nodeType===1||o)return e(t,n,i);return!1}:function(t,n,a){var f,l,c,h=[S,u];if(a){while(t=t[r])if(t.nodeType===1||o)if(e(t,n,a))return!0}else while(t=t[r])if(t.nodeType===1||o){c=t[w]||(t[w]={}),l=c[t.uniqueID]||(c[t.uniqueID]={});if(i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((f=l[s])&&f[0]===S&&f[1]===u)return h[2]=f[2];l[s]=h;if(h[2]=e(t,n,a))return!0}}return!1}}function wt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function Et(e,t,n){var r=0,i=t.length;for(;r<i;r++)ot(e,t[r],n);return n}function St(e,t,n,r,i){var s,o=[],u=0,a=e.length,f=t!=null;for(;u<a;u++)if(s=e[u])if(!n||n(s,r,i))o.push(s),f&&t.push(u);return o}function xt(e,t,n,r,i,s){return r&&!r[w]&&(r=xt(r)),i&&!i[w]&&(i=xt(i,s)),at(function(s,o,u,a){var f,l,c,h=[],p=[],d=o.length,v=s||Et(t||"*",u.nodeType?[u]:u,[]),m=e&&(s||!t)?St(v,h,e,u,a):v,g=n?i||(s?e:d||r)?[]:o:m;n&&n(m,g,u,a);if(r){f=St(g,p),r(f,[],u,a),l=f.length;while(l--)if(c=f[l])g[p[l]]=!(m[p[l]]=c)}if(s){if(i||e){if(i){f=[],l=g.length;while(l--)(c=g[l])&&f.push(m[l]=c);i(null,g=[],f,a)}l=g.length;while(l--)(c=g[l])&&(f=i?P(s,c):h[l])>-1&&(s[f]=!(o[f]=c))}}else g=St(g===o?g.splice(d,g.length):g),i?i(null,o,g,a):_.apply(o,g)})}function Tt(e){var t,n,i,s=e.length,o=r.relative[e[0].type],u=o||r.relative[" "],a=o?1:0,l=bt(function(e){return e===t},u,!0),c=bt(function(e){return P(t,e)>-1},u,!0),h=[function(e,n,r){var i=!o&&(r||n!==f)||((t=n).nodeType?l(e,n,r):c(e,n,r));return t=null,i}];for(;a<s;a++)if(n=r.relative[e[a].type])h=[bt(wt(h),n)];else{n=r.filter[e[a].type].apply(null,e[a].matches);if(n[w]){i=++a;for(;i<s;i++)if(r.relative[e[i].type])break;return xt(a>1&&wt(h),a>1&&yt(e.slice(0,a-1).concat({value:e[a-2].type===" "?"*":""})).replace(R,"$1"),n,a<i&&Tt(e.slice(a,i)),i<s&&Tt(e=e.slice(i)),i<s&&yt(e))}h.push(n)}return wt(h)}function Nt(e,t){var n=t.length>0,i=e.length>0,s=function(s,o,u,a,l){var c,d,m,g=0,y="0",b=s&&[],w=[],E=f,x=s||i&&r.find.TAG("*",l),T=S+=E==null?1:Math.random()||.1,N=x.length;l&&(f=o===p||o||l);for(;y!==N&&(c=x[y])!=null;y++){if(i&&c){d=0,!o&&c.ownerDocument!==p&&(h(c),u=!v);while(m=e[d++])if(m(c,o||p,u)){a.push(c);break}l&&(S=T)}n&&((c=!m&&c)&&g--,s&&b.push(c))}g+=y;if(n&&y!==g){d=0;while(m=t[d++])m(b,w,o,u);if(s){if(g>0)while(y--)!b[y]&&!w[y]&&(w[y]=O.call(a));w=St(w)}_.apply(a,w),l&&!s&&w.length>0&&g+t.length>1&&ot.uniqueSort(a)}return l&&(S=T,f=E),b};return n?at(s):s}var t,n,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w="sizzle"+1*new Date,E=e.document,S=0,x=0,T=ut(),N=ut(),C=ut(),k=function(e,t){return e===t&&(c=!0),0},L={}.hasOwnProperty,A=[],O=A.pop,M=A.push,_=A.push,D=A.slice,P=function(e,t){var n=0,r=e.length;for(;n<r;n++)if(e[n]===t)return n;return-1},H="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",B="[\\x20\\t\\r\\n\\f]",j="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",F="\\["+B+"*("+j+")(?:"+B+"*([*^$|!~]?=)"+B+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+B+"*\\]",I=":("+j+")(?:\\(("+"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|"+"((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|"+".*"+")\\)|)",q=new RegExp(B+"+","g"),R=new RegExp("^"+B+"+|((?:^|[^\\\\])(?:\\\\.)*)"+B+"+$","g"),U=new RegExp("^"+B+"*,"+B+"*"),z=new RegExp("^"+B+"*([>+~]|"+B+")"+B+"*"),W=new RegExp("="+B+"*([^\\]'\"]*?)"+B+"*\\]","g"),X=new RegExp(I),V=new RegExp("^"+j+"$"),$={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+I),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+B+"*(even|odd|(([+-]|)(\\d*)n|)"+B+"*(?:([+-]|)"+B+"*(\\d+)|))"+B+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+B+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+B+"*((?:-\\d)?\\d*)"+B+"*\\)|)(?=[^-]|$)","i")},J=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,G=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Y=/[+~]/,Z=new RegExp("\\\\([\\da-f]{1,6}"+B+"?|("+B+")|.)","ig"),et=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)},tt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,nt=function(e,t){return t?e==="\0"?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},rt=function(){h()},it=bt(function(e){return e.disabled===!0&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{_.apply(A=D.call(E.childNodes),E.childNodes),A[E.childNodes.length].nodeType}catch(st){_={apply:A.length?function(e,t){M.apply(e,D.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}n=ot.support={},s=ot.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?t.nodeName!=="HTML":!1},h=ot.setDocument=function(e){var t,i,o=e?e.ownerDocument||e:E;if(o===p||o.nodeType!==9||!o.documentElement)return p;p=o,d=p.documentElement,v=!s(p),E!==p&&(i=p.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",rt,!1):i.attachEvent&&i.attachEvent("onunload",rt)),n.attributes=ft(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ft(function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Q.test(p.getElementsByClassName),n.getById=ft(function(e){return d.appendChild(e).id=w,!p.getElementsByName||!p.getElementsByName(w).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(Z,et);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(typeof t.getElementById!="undefined"&&v){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(Z,et);return function(e){var n=typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(typeof t.getElementById!="undefined"&&v){var n,r,i,s=t.getElementById(e);if(s){n=s.getAttributeNode("id");if(n&&n.value===e)return[s];i=t.getElementsByName(e),r=0;while(s=i[r++]){n=s.getAttributeNode("id");if(n&&n.value===e)return[s]}}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!="undefined")return t.getElementsByTagName(e);if(n.qsa)return t.querySelectorAll(e)}:function(e,t){var n,r=[],i=0,s=t.getElementsByTagName(e);if(e==="*"){while(n=s[i++])n.nodeType===1&&r.push(n);return r}return s},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(typeof t.getElementsByClassName!="undefined"&&v)return t.getElementsByClassName(e)},g=[],m=[];if(n.qsa=Q.test(p.querySelectorAll))ft(function(e){d.appendChild(e).innerHTML="<a id='"+w+"'></a>"+"<select id='"+w+"-\r\\' msallowcapture=''>"+"<option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+B+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+B+"*(?:value|"+H+")"),e.querySelectorAll("[id~="+w+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||m.push(".#.+[+~]")}),ft(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+B+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length!==2&&m.push(":enabled",":disabled"),d.appendChild(e).disabled=!0,e.querySelectorAll(":disabled").length!==2&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")});return(n.matchesSelector=Q.test(y=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&ft(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),g.push("!=",I)}),m=m.length&&new RegExp(m.join("|")),g=g.length&&new RegExp(g.join("|")),t=Q.test(d.compareDocumentPosition),b=t||Q.test(d.contains)?function(e,t){var n=e.nodeType===9?e.documentElement:e,r=t&&t.parentNode;return e===r||!!r&&r.nodeType===1&&!!(n.contains?n.contains(r):e.compareDocumentPosition&&e.compareDocumentPosition(r)&16)}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},k=t?function(e,t){if(e===t)return c=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r?r:(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,r&1||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===p||e.ownerDocument===E&&b(E,e)?-1:t===p||t.ownerDocument===E&&b(E,t)?1:l?P(l,e)-P(l,t):0:r&4?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,r=0,i=e.parentNode,s=t.parentNode,o=[e],u=[t];if(!i||!s)return e===p?-1:t===p?1:i?-1:s?1:l?P(l,e)-P(l,t):0;if(i===s)return ct(e,t);n=e;while(n=n.parentNode)o.unshift(n);n=t;while(n=n.parentNode)u.unshift(n);while(o[r]===u[r])r++;return r?ct(o[r],u[r]):o[r]===E?-1:u[r]===E?1:0},p},ot.matches=function(e,t){return ot(e,null,null,t)},ot.matchesSelector=function(e,t){(e.ownerDocument||e)!==p&&h(e),t=t.replace(W,"='$1']");if(n.matchesSelector&&v&&!C[t+" "]&&(!g||!g.test(t))&&(!m||!m.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&e.document.nodeType!==11)return r}catch(i){}return ot(t,p,null,[e]).length>0},ot.contains=function(e,t){return(e.ownerDocument||e)!==p&&h(e),b(e,t)},ot.attr=function(e,t){(e.ownerDocument||e)!==p&&h(e);var i=r.attrHandle[t.toLowerCase()],s=i&&L.call(r.attrHandle,t.toLowerCase())?i(e,t,!v):undefined;return s!==undefined?s:n.attributes||!v?e.getAttribute(t):(s=e.getAttributeNode(t))&&s.specified?s.value:null},ot.escape=function(e){return(e+"").replace(tt,nt)},ot.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ot.uniqueSort=function(e){var t,r=[],i=0,s=0;c=!n.detectDuplicates,l=!n.sortStable&&e.slice(0),e.sort(k);if(c){while(t=e[s++])t===e[s]&&(i=r.push(s));while(i--)e.splice(r[i],1)}return l=null,e},i=ot.getText=function(e){var t,n="",r=0,s=e.nodeType;if(!s)while(t=e[r++])n+=i(t);else if(s===1||s===9||s===11){if(typeof e.textContent=="string")return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(s===3||s===4)return e.nodeValue;return n},r=ot.selectors={cacheLength:50,createPseudo:at,match:$,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Z,et),e[3]=(e[3]||e[4]||e[5]||"").replace(Z,et),e[2]==="~="&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1].slice(0,3)==="nth"?(e[3]||ot.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*(e[3]==="even"||e[3]==="odd")),e[5]=+(e[7]+e[8]||e[3]==="odd")):e[3]&&ot.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return $.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=o(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Z,et).toLowerCase();return e==="*"?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+B+")"+e+"("+B+"|$)"))&&T(e,function(e){return t.test(typeof e.className=="string"&&e.className||typeof e.getAttribute!="undefined"&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=ot.attr(r,e);return i==null?t==="!=":t?(i+="",t==="="?i===n:t==="!="?i!==n:t==="^="?n&&i.indexOf(n)===0:t==="*="?n&&i.indexOf(n)>-1:t==="$="?n&&i.slice(-n.length)===n:t==="~="?(" "+i.replace(q," ")+" ").indexOf(n)>-1:t==="|="?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var s=e.slice(0,3)!=="nth",o=e.slice(-4)!=="last",u=t==="of-type";return r===1&&i===0?function(e){return!!e.parentNode}:function(t,n,a){var f,l,c,h,p,d,v=s!==o?"nextSibling":"previousSibling",m=t.parentNode,g=u&&t.nodeName.toLowerCase(),y=!a&&!u,b=!1;if(m){if(s){while(v){h=t;while(h=h[v])if(u?h.nodeName.toLowerCase()===g:h.nodeType===1)return!1;d=v=e==="only"&&!d&&"nextSibling"}return!0}d=[o?m.firstChild:m.lastChild];if(o&&y){h=m,c=h[w]||(h[w]={}),l=c[h.uniqueID]||(c[h.uniqueID]={}),f=l[e]||[],p=f[0]===S&&f[1],b=p&&f[2],h=p&&m.childNodes[p];while(h=++p&&h&&h[v]||(b=p=0)||d.pop())if(h.nodeType===1&&++b&&h===t){l[e]=[S,p,b];break}}else{y&&(h=t,c=h[w]||(h[w]={}),l=c[h.uniqueID]||(c[h.uniqueID]={}),f=l[e]||[],p=f[0]===S&&f[1],b=p);if(b===!1)while(h=++p&&h&&h[v]||(b=p=0)||d.pop())if((u?h.nodeName.toLowerCase()===g:h.nodeType===1)&&++b){y&&(c=h[w]||(h[w]={}),l=c[h.uniqueID]||(c[h.uniqueID]={}),l[e]=[S,b]);if(h===t)break}}return b-=i,b===r||b%r===0&&b/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ot.error("unsupported pseudo: "+e);return i[w]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?at(function(e,n){var r,s=i(e,t),o=s.length;while(o--)r=P(e,s[o]),e[r]=!(n[r]=s[o])}):function(e){return i(e,0,n)}):i}},pseudos:{not:at(function(e){var t=[],n=[],r=u(e.replace(R,"$1"));return r[w]?at(function(e,t,n,i){var s,o=r(e,null,i,[]),u=e.length;while(u--)if(s=o[u])e[u]=!(t[u]=s)}):function(e,i,s){return t[0]=e,r(t,null,s,n),t[0]=null,!n.pop()}}),has:at(function(e){return function(t){return ot(e,t).length>0}}),contains:at(function(e){return e=e.replace(Z,et),function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}}),lang:at(function(e){return V.test(e||"")||ot.error("unsupported lang: "+e),e=e.replace(Z,et).toLowerCase(),function(t){var n;do if(n=v?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||n.indexOf(e+"-")===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:dt(!1),disabled:dt(!0),checked:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&!!e.checked||t==="option"&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return J.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&e.type==="button"||t==="button"},text:function(e){var t;return e.nodeName.toLowerCase()==="input"&&e.type==="text"&&((t=e.getAttribute("type"))==null||t.toLowerCase()==="text")},first:vt(function(){return[0]}),last:vt(function(e,t){return[t-1]}),eq:vt(function(e,t,n){return[n<0?n+t:n]}),even:vt(function(e,t){var n=0;for(;n<t;n+=2)e.push(n);return e}),odd:vt(function(e,t){var n=1;for(;n<t;n+=2)e.push(n);return e}),lt:vt(function(e,t,n){var r=n<0?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:vt(function(e,t,n){var r=n<0?n+t:n;for(;++r<t;)e.push(r);return e})}},r.pseudos.nth=r.pseudos.eq;for(t in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=ht(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=pt(t);return gt.prototype=r.filters=r.pseudos,r.setFilters=new gt,o=ot.tokenize=function(e,t){var n,i,s,o,u,a,f,l=N[e+" "];if(l)return t?0:l.slice(0);u=e,a=[],f=r.preFilter;while(u){if(!n||(i=U.exec(u)))i&&(u=u.slice(i[0].length)||u),a.push(s=[]);n=!1;if(i=z.exec(u))n=i.shift(),s.push({value:n,type:i[0].replace(R," ")}),u=u.slice(n.length);for(o in r.filter)(i=$[o].exec(u))&&(!f[o]||(i=f[o](i)))&&(n=i.shift(),s.push({value:n,type:o,matches:i}),u=u.slice(n.length));if(!n)break}return t?u.length:u?ot.error(e):N(e,a).slice(0)},u=ot.compile=function(e,t){var n,r=[],i=[],s=C[e+" "];if(!s){t||(t=o(e)),n=t.length;while(n--)s=Tt(t[n]),s[w]?r.push(s):i.push(s);s=C(e,Nt(i,r)),s.selector=e}return s},a=ot.select=function(e,t,n,i){var s,a,f,l,c,h=typeof e=="function"&&e,p=!i&&o(e=h.selector||e);n=n||[];if(p.length===1){a=p[0]=p[0].slice(0);if(a.length>2&&(f=a[0]).type==="ID"&&t.nodeType===9&&v&&r.relative[a[1].type]){t=(r.find.ID(f.matches[0].replace(Z,et),t)||[])[0];if(!t)return n;h&&(t=t.parentNode),e=e.slice(a.shift().value.length)}s=$.needsContext.test(e)?0:a.length;while(s--){f=a[s];if(r.relative[l=f.type])break;if(c=r.find[l])if(i=c(f.matches[0].replace(Z,et),Y.test(a[0].type)&&mt(t.parentNode)||t)){a.splice(s,1),e=i.length&&yt(a);if(!e)return _.apply(n,i),n;break}}}return(h||u(e,p))(i,t,!v,n,!t||Y.test(e)&&mt(t.parentNode)||t),n},n.sortStable=w.split("").sort(k).join("")===w,n.detectDuplicates=!!c,h(),n.sortDetached=ft(function(e){return e.compareDocumentPosition(p.createElement("fieldset"))&1}),ft(function(e){return e.innerHTML="<a href='#'></a>",e.firstChild.getAttribute("href")==="#"})||lt("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,t.toLowerCase()==="type"?1:2)}),(!n.attributes||!ft(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),e.firstChild.getAttribute("value")===""}))&<("value",function(e,t,n){if(!n&&e.nodeName.toLowerCase()==="input")return e.defaultValue}),ft(function(e){return e.getAttribute("disabled")==null})||lt(H,function(e,t,n){var r;if(!n)return e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),ot}(e);E.find=T,E.expr=T.selectors,E.expr[":"]=E.expr.pseudos,E.uniqueSort=E.unique=T.uniqueSort,E.text=T.getText,E.isXMLDoc=T.isXML,E.contains=T.contains,E.escapeSelector=T.escape;var N=function(e,t,n){var r=[],i=n!==undefined;while((e=e[t])&&e.nodeType!==9)if(e.nodeType===1){if(i&&E(e).is(n))break;r.push(e)}return r},C=function(e,t){var n=[];for(;e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n},k=E.expr.match.needsContext,A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;E.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),t.length===1&&r.nodeType===1?E.find.matchesSelector(r,e)?[r]:[]:E.find.matches(e,E.grep(t,function(e){return e.nodeType===1}))},E.fn.extend({find:function(e){var t,n,r=this.length,i=this;if(typeof e!="string")return this.pushStack(E(e).filter(function(){for(t=0;t<r;t++)if(E.contains(i[t],this))return!0}));n=this.pushStack([]);for(t=0;t<r;t++)E.find(e,i[t],n);return r>1?E.uniqueSort(n):n},filter:function(e){return this.pushStack(O(this,e||[],!1))},not:function(e){return this.pushStack(O(this,e||[],!0))},is:function(e){return!!O(this,typeof e=="string"&&k.test(e)?E(e):e||[],!1).length}});var M,_=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,D=E.fn.init=function(e,t,n){var i,s;if(!e)return this;n=n||M;if(typeof e=="string"){e[0]==="<"&&e[e.length-1]===">"&&e.length>=3?i=[null,e,null]:i=_.exec(e);if(i&&(i[1]||!t)){if(i[1]){t=t instanceof E?t[0]:t,E.merge(this,E.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:r,!0));if(A.test(i[1])&&E.isPlainObject(t))for(i in t)v(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return s=r.getElementById(i[2]),s&&(this[0]=s,this.length=1),this}return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e)}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?n.ready!==undefined?n.ready(e):e(E):E.makeArray(e,this)};D.prototype=E.fn,M=E(r);var P=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};E.fn.extend({has:function(e){var t=E(e,this),n=t.length;return this.filter(function(){var e=0;for(;e<n;e++)if(E.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,s=[],o=typeof e!="string"&&E(e);if(!k.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:n.nodeType===1&&E.find.matchesSelector(n,e))){s.push(n);break}return this.pushStack(s.length>1?E.uniqueSort(s):s)},index:function(e){return e?typeof e=="string"?a.call(E(e),this[0]):a.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(E.uniqueSort(E.merge(this.get(),E(e,t))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}}),E.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return N(e,"parentNode")},parentsUntil:function(e,t,n){return N(e,"parentNode",n)},next:function(e){return B(e,"nextSibling")},prev:function(e){return B(e,"previousSibling")},nextAll:function(e){return N(e,"nextSibling")},prevAll:function(e){return N(e,"previousSibling")},nextUntil:function(e,t,n){return N(e,"nextSibling",n)},prevUntil:function(e,t,n){return N(e,"previousSibling",n)},siblings:function(e){return C((e.parentNode||{}).firstChild,e)},children:function(e){return C(e.firstChild)},contents:function(e){return L(e,"iframe")?e.contentDocument:(L(e,"template")&&(e=e.content||e),E.merge([],e.childNodes))}},function(e,t){E.fn[e]=function(n,r){var i=E.map(this,t,n);return e.slice(-5)!=="Until"&&(r=n),r&&typeof r=="string"&&(i=E.filter(r,i)),this.length>1&&(H[e]||E.uniqueSort(i),P.test(e)&&i.reverse()),this.pushStack(i)}});var j=/[^\x20\t\r\n\f]+/g;E.Callbacks=function(e){e=typeof e=="string"?F(e):E.extend({},e);var t,n,r,i,s=[],o=[],u=-1,a=function(){i=i||e.once,r=t=!0;for(;o.length;u=-1){n=o.shift();while(++u<s.length)s[u].apply(n[0],n[1])===!1&&e.stopOnFalse&&(u=s.length,n=!1)}e.memory||(n=!1),t=!1,i&&(n?s=[]:s="")},f={add:function(){return s&&(n&&!t&&(u=s.length-1,o.push(n)),function r(t){E.each(t,function(t,n){v(n)?(!e.unique||!f.has(n))&&s.push(n):n&&n.length&&b(n)!=="string"&&r(n)})}(arguments),n&&!t&&a()),this},remove:function(){return E.each(arguments,function(e,t){var n;while((n=E.inArray(t,s,n))>-1)s.splice(n,1),n<=u&&u--}),this},has:function(e){return e?E.inArray(e,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return i=o=[],s=n="",this},disabled:function(){return!s},lock:function(){return i=o=[],!n&&!t&&(s=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],o.push(n),t||a()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!r}};return f},E.extend({Deferred:function(t){var n=[["notify","progress",E.Callbacks("memory"),E.Callbacks("memory"),2],["resolve","done",E.Callbacks("once memory"),E.Callbacks("once memory"),0,"resolved"],["reject","fail",E.Callbacks("once memory"),E.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return i.then(null,e)},pipe:function(){var e=arguments;return E.Deferred(function(t){E.each(n,function(n,r){var i=v(e[r[4]])&&e[r[4]];s[r[1]](function(){var e=i&&i.apply(this,arguments);e&&v(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){function o(t,n,r,i){return function(){var u=this,a=arguments,f=function(){var e,f;if(t<s)return;e=r.apply(u,a);if(e===n.promise())throw new TypeError("Thenable self-resolution");f=e&&(typeof e=="object"||typeof e=="function")&&e.then,v(f)?i?f.call(e,o(s,n,I,i),o(s,n,q,i)):(s++,f.call(e,o(s,n,I,i),o(s,n,q,i),o(s,n,I,n.notifyWith))):(r!==I&&(u=undefined,a=[e]),(i||n.resolveWith)(u,a))},l=i?f:function(){try{f()}catch(e){E.Deferred.exceptionHook&&E.Deferred.exceptionHook(e,l.stackTrace),t+1>=s&&(r!==q&&(u=undefined,a=[e]),n.rejectWith(u,a))}};t?l():(E.Deferred.getStackHook&&(l.stackTrace=E.Deferred.getStackHook()),e.setTimeout(l))}}var s=0;return E.Deferred(function(e){n[0][3].add(o(0,e,v(i)?i:I,e.notifyWith)),n[1][3].add(o(0,e,v(t)?t:I)),n[2][3].add(o(0,e,v(r)?r:q))}).promise()},promise:function(e){return e!=null?E.extend(e,i):i}},s={};return E.each(n,function(e,t){var o=t[2],u=t[5];i[t[1]]=o.add,u&&o.add(function(){r=u},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),o.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?undefined:this,arguments),this},s[t[0]+"With"]=o.fireWith}),i.promise(s),t&&t.call(s,s),s},when:function(e){var t=arguments.length,n=t,r=Array(n),i=s.call(arguments),o=E.Deferred(),u=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?s.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1){R(e,o.done(u(n)).resolve,o.reject,!t);if(o.state()==="pending"||v(i[n]&&i[n].then))return o.then()}while(n--)R(i[n],u(n),o.reject);return o.promise()}});var U=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;E.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&U.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},E.readyException=function(t){e.setTimeout(function(){throw t})};var z=E.Deferred();E.fn.ready=function(e){return z.then(e).catch(function(e){E.readyException(e)}),this},E.extend({isReady:!1,readyWait:1,ready:function(e){if(e===!0?--E.readyWait:E.isReady)return;E.isReady=!0;if(e!==!0&&--E.readyWait>0)return;z.resolveWith(r,[E])}}),E.ready.then=z.then,r.readyState==="complete"||r.readyState!=="loading"&&!r.documentElement.doScroll?e.setTimeout(E.ready):(r.addEventListener("DOMContentLoaded",W),e.addEventListener("load",W));var X=function(e,t,n,r,i,s,o){var u=0,a=e.length,f=n==null;if(b(n)==="object"){i=!0;for(u in n)X(e,t,u,n[u],!0,s,o)}else if(r!==undefined){i=!0,v(r)||(o=!0),f&&(o?(t.call(e,r),t=null):(f=t,t=function(e,t,n){return f.call(E(e),n)}));if(t)for(;u<a;u++)t(e[u],n,o?r:r.call(e[u],u,t(e[u],n)))}return i?e:f?t.call(e):a?t(e[0],n):s},V=/^-ms-/,$=/-([a-z])/g,Q=function(e){return e.nodeType===1||e.nodeType===9||!+e.nodeType};G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Q(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if(typeof t=="string")i[K(t)]=n;else for(r in t)i[K(r)]=t[r];return i},get:function(e,t){return t===undefined?this.cache(e):e[this.expando]&&e[this.expando][K(t)]},access:function(e,t,n){return t===undefined||t&&typeof t=="string"&&n===undefined?this.get(e,t):(this.set(e,t,n),n!==undefined?n:t)},remove:function(e,t){var n,r=e[this.expando];if(r===undefined)return;if(t!==undefined){Array.isArray(t)?t=t.map(K):(t=K(t),t=t in r?[t]:t.match(j)||[]),n=t.length;while(n--)delete r[t[n]]}if(t===undefined||E.isEmptyObject(r))e.nodeType?e[this.expando]=undefined:delete e[this.expando]},hasData:function(e){var t=e[this.expando];return t!==undefined&&!E.isEmptyObject(t)}};var Y=new G,Z=new G,et=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,tt=/[A-Z]/g;E.extend({hasData:function(e){return Z.hasData(e)||Y.hasData(e)},data:function(e,t,n){return Z.access(e,t,n)},removeData:function(e,t){Z.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),E.fn.extend({data:function(e,t){var n,r,i,s=this[0],o=s&&s.attributes;if(e===undefined){if(this.length){i=Z.get(s);if(s.nodeType===1&&!Y.get(s,"hasDataAttrs")){n=o.length;while(n--)o[n]&&(r=o[n].name,r.indexOf("data-")===0&&(r=K(r.slice(5)),rt(s,r,i[r])));Y.set(s,"hasDataAttrs",!0)}}return i}return typeof e=="object"?this.each(function(){Z.set(this,e)}):X(this,function(t){var n;if(s&&t===undefined){n=Z.get(s,e);if(n!==undefined)return n;n=rt(s,e);if(n!==undefined)return n;return}this.each(function(){Z.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Z.remove(this,e)})}}),E.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Y.get(e,t),n&&(!r||Array.isArray(n)?r=Y.access(e,t,E.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=E.queue(e,t),r=n.length,i=n.shift(),s=E._queueHooks(e,t),o=function(){E.dequeue(e,t)};i==="inprogress"&&(i=n.shift(),r--),i&&(t==="fx"&&n.unshift("inprogress"),delete s.stop,i.call(e,o,s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:E.Callbacks("once memory").add(function(){Y.remove(e,[t+"queue",n])})})}}),E.fn.extend({queue:function(e,t){var n=2;return typeof e!="string"&&(t=e,e="fx",n--),arguments.length<n?E.queue(this[0],e):t===undefined?this:this.each(function(){var n=E.queue(this,e,t);E._queueHooks(this,e),e==="fx"&&n[0]!=="inprogress"&&E.dequeue(this,e)})},dequeue:function(e){return this.each(function(){E.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=E.Deferred(),s=this,o=this.length,u=function(){--r||i.resolveWith(s,[s])};typeof e!="string"&&(t=e,e=undefined),e=e||"fx";while(o--)n=Y.get(s[o],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(u));return u(),i.promise(t)}});var it=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,st=new RegExp("^(?:([+-])=|)("+it+")([a-z%]*)$","i"),ot=["Top","Right","Bottom","Left"],ut=function(e,t){return e=t||e,e.style.display==="none"||e.style.display===""&&E.contains(e.ownerDocument,e)&&E.css(e,"display")==="none"},at=function(e,t,n,r){var i,s,o={};for(s in t)o[s]=e.style[s],e.style[s]=t[s];i=n.apply(e,r||[]);for(s in t)e.style[s]=o[s];return i},lt={};E.fn.extend({show:function(){return ht(this,!0)},hide:function(){return ht(this)},toggle:function(e){return typeof e=="boolean"?e?this.show():this.hide():this.each(function(){ut(this)?E(this).show():E(this).hide()})}});var pt=/^(?:checkbox|radio)$/i,dt=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,vt=/^$|^module$|\/(?:java|ecma)script/i,mt={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};mt.optgroup=mt.option,mt.tbody=mt.tfoot=mt.colgroup=mt.caption=mt.thead,mt.th=mt.td;var bt=/<|&#?\w+;/;(function(){var e=r.createDocumentFragment(),t=e.appendChild(r.createElement("div")),n=r.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),d.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",d.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue})();var Et=r.documentElement,St=/^key/,xt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Tt=/^([^.]*)(?:\.(.+)|)/;E.event={global:{},add:function(e,t,n,r,i){var s,o,u,a,f,l,c,h,p,d,v,m=Y.get(e);if(!m)return;n.handler&&(s=n,n=s.handler,i=s.selector),i&&E.find.matchesSelector(Et,i),n.guid||(n.guid=E.guid++),(a=m.events)||(a=m.events={}),(o=m.handle)||(o=m.handle=function(t){return typeof E!="undefined"&&E.event.triggered!==t.type?E.event.dispatch.apply(e,arguments):undefined}),t=(t||"").match(j)||[""],f=t.length;while(f--){u=Tt.exec(t[f])||[],p=v=u[1],d=(u[2]||"").split(".").sort();if(!p)continue;c=E.event.special[p]||{},p=(i?c.delegateType:c.bindType)||p,c=E.event.special[p]||{},l=E.extend({type:p,origType:v,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&E.expr.match.needsContext.test(i),namespace:d.join(".")},s),(h=a[p])||(h=a[p]=[],h.delegateCount=0,(!c.setup||c.setup.call(e,r,d,o)===!1)&&e.addEventListener&&e.addEventListener(p,o)),c.add&&(c.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,l):h.push(l),E.event.global[p]=!0}},remove:function(e,t,n,r,i){var s,o,u,a,f,l,c,h,p,d,v,m=Y.hasData(e)&&Y.get(e);if(!m||!(a=m.events))return;t=(t||"").match(j)||[""],f=t.length;while(f--){u=Tt.exec(t[f])||[],p=v=u[1],d=(u[2]||"").split(".").sort();if(!p){for(p in a)E.event.remove(e,p+t[f],n,r,!0);continue}c=E.event.special[p]||{},p=(r?c.delegateType:c.bindType)||p,h=a[p]||[],u=u[2]&&new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=h.length;while(s--)l=h[s],(i||v===l.origType)&&(!n||n.guid===l.guid)&&(!u||u.test(l.namespace))&&(!r||r===l.selector||r==="**"&&l.selector)&&(h.splice(s,1),l.selector&&h.delegateCount--,c.remove&&c.remove.call(e,l));o&&!h.length&&((!c.teardown||c.teardown.call(e,d,m.handle)===!1)&&E.removeEvent(e,p,m.handle),delete a[p])}E.isEmptyObject(a)&&Y.remove(e,"handle events")},dispatch:function(e){var t=E.event.fix(e),n,r,i,s,o,u,a=new Array(arguments.length),f=(Y.get(this,"events")||{})[t.type]||[],l=E.event.special[t.type]||{};a[0]=t;for(n=1;n<arguments.length;n++)a[n]=arguments[n];t.delegateTarget=this;if(l.preDispatch&&l.preDispatch.call(this,t)===!1)return;u=E.event.handlers.call(this,t,f),n=0;while((s=u[n++])&&!t.isPropagationStopped()){t.currentTarget=s.elem,r=0;while((o=s.handlers[r++])&&!t.isImmediatePropagationStopped())if(!t.rnamespace||t.rnamespace.test(o.namespace))t.handleObj=o,t.data=o.data,i=((E.event.special[o.origType]||{}).handle||o.handler).apply(s.elem,a),i!==undefined&&(t.result=i)===!1&&(t.preventDefault(),t.stopPropagation())}return l.postDispatch&&l.postDispatch.call(this,t),t.result},handlers:function(e,t){var n,r,i,s,o,u=[],a=t.delegateCount,f=e.target;if(a&&f.nodeType&&!(e.type==="click"&&e.button>=1))for(;f!==this;f=f.parentNode||this)if(f.nodeType===1&&(e.type!=="click"||f.disabled!==!0)){s=[],o={};for(n=0;n<a;n++)r=t[n],i=r.selector+" ",o[i]===undefined&&(o[i]=r.needsContext?E(i,this).index(f)>-1:E.find(i,this,null,[f]).length),o[i]&&s.push(r);s.length&&u.push({elem:f,handlers:s})}return f=this,a<t.length&&u.push({elem:f,handlers:t.slice(a)}),u},addProp:function(e,t){Object.defineProperty(E.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[E.expando]?e:new E.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==kt()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===kt()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(this.type==="checkbox"&&this.click&&L(this,"input"))return this.click(),!1},_default:function(e){return L(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==undefined&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},E.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},E.Event=function(e,t){if(!(this instanceof E.Event))return new E.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.defaultPrevented===undefined&&e.returnValue===!1?Nt:Ct,this.target=e.target&&e.target.nodeType===3?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&E.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[E.expando]=!0},E.Event.prototype={constructor:E.Event,isDefaultPrevented:Ct,isPropagationStopped:Ct,isImmediatePropagationStopped:Ct,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Nt,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Nt,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Nt,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},E.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return e.which==null&&St.test(e.type)?e.charCode!=null?e.charCode:e.keyCode:!e.which&&t!==undefined&&xt.test(e.type)?t&1?1:t&2?3:t&4?2:0:e.which}},E.event.addProp),E.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){E.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,s=e.handleObj;if(!i||i!==r&&!E.contains(r,i))e.type=s.origType,n=s.handler.apply(this,arguments),e.type=t;return n}}}),E.fn.extend({on:function(e,t,n,r){return Lt(this,e,t,n,r)},one:function(e,t,n,r){return Lt(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,E(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if(typeof e=="object"){for(i in e)this.off(i,t,e[i]);return this}if(t===!1||typeof t=="function")n=t,t=undefined;return n===!1&&(n=Ct),this.each(function(){E.event.remove(this,e,n,t)})}});var At=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ot=/<script|<style|<link/i,Mt=/checked\s*(?:[^=]|=\s*.checked.)/i,_t=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;E.extend({htmlPrefilter:function(e){return e.replace(At,"<$1></$2>")},clone:function(e,t,n){var r,i,s,o,u=e.cloneNode(!0),a=E.contains(e.ownerDocument,e);if(!d.noCloneChecked&&(e.nodeType===1||e.nodeType===11)&&!E.isXMLDoc(e)){o=gt(u),s=gt(e);for(r=0,i=s.length;r<i;r++)jt(s[r],o[r])}if(t)if(n){s=s||gt(e),o=o||gt(u);for(r=0,i=s.length;r<i;r++)Bt(s[r],o[r])}else Bt(e,u);return o=gt(u,"script"),o.length>0&&yt(o,!a&>(e,"script")),u},cleanData:function(e){var t,n,r,i=E.event.special,s=0;for(;(n=e[s])!==undefined;s++)if(Q(n)){if(t=n[Y.expando]){if(t.events)for(r in t.events)i[r]?E.event.remove(n,r):E.removeEvent(n,r,t.handle);n[Y.expando]=undefined}n[Z.expando]&&(n[Z.expando]=undefined)}}}),E.fn.extend({detach:function(e){return It(this,e,!0)},remove:function(e){return It(this,e)},text:function(e){return X(this,function(e){return e===undefined?E.text(this):this.empty().each(function(){if(this.nodeType===1||this.nodeType===11||this.nodeType===9)this.textContent=e})},null,e,arguments.length)},append:function(){return Ft(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=Dt(this,e);t.appendChild(e)}})},prepend:function(){return Ft(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=Dt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Ft(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Ft(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){var e,t=0;for(;(e=this[t])!=null;t++)e.nodeType===1&&(E.cleanData(gt(e,!1)),e.textContent="");return this},clone:function(e,t){return e=e==null?!1:e,t=t==null?e:t,this.map(function(){return E.clone(this,e,t)})},html:function(e){return X(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===undefined&&t.nodeType===1)return t.innerHTML;if(typeof e=="string"&&!Ot.test(e)&&!mt[(dt.exec(e)||["",""])[1].toLowerCase()]){e=E.htmlPrefilter(e);try{for(;n<r;n++)t=this[n]||{},t.nodeType===1&&(E.cleanData(gt(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Ft(this,arguments,function(t){var n=this.parentNode;E.inArray(this,e)<0&&(E.cleanData(gt(this)),n&&n.replaceChild(t,this))},e)}}),E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){E.fn[e]=function(e){var n,r=[],i=E(e),s=i.length-1,o=0;for(;o<=s;o++)n=o===s?this:this.clone(!0),E(i[o])[t](n),u.apply(r,n.get());return this.pushStack(r)}});var qt=new RegExp("^("+it+")(?!px)[a-z%]+$","i"),Rt=function(t){var n=t.ownerDocument.defaultView;if(!n||!n.opener)n=e;return n.getComputedStyle(t)},Ut=new RegExp(ot.join("|"),"i");(function(){function t(){if(!l)return;f.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",Et.appendChild(f).appendChild(l);var t=e.getComputedStyle(l);i=t.top!=="1%",a=n(t.marginLeft)===12,l.style.right="60%",u=n(t.right)===36,s=n(t.width)===36,l.style.position="absolute",o=l.offsetWidth===36||"absolute",Et.removeChild(f),l=null}function n(e){return Math.round(parseFloat(e))}var i,s,o,u,a,f=r.createElement("div"),l=r.createElement("div");if(!l.style)return;l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",d.clearCloneStyle=l.style.backgroundClip==="content-box",E.extend(d,{boxSizingReliable:function(){return t(),s},pixelBoxStyles:function(){return t(),u},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),a},scrollboxSize:function(){return t(),o}})})();var Xt=/^(none|table(?!-c[ea]).+)/,Vt=/^--/,$t={position:"absolute",visibility:"hidden",display:"block"},Jt={letterSpacing:"0",fontWeight:"400"},Kt=["Webkit","Moz","ms"],Qt=r.createElement("div").style;E.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=zt(e,"opacity");return n===""?"1":n}}}},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:{},style:function(e,t,n,r){if(!e||e.nodeType===3||e.nodeType===8||!e.style)return;var i,s,o,u=K(t),a=Vt.test(t),f=e.style;a||(t=Yt(u)),o=E.cssHooks[t]||E.cssHooks[u];if(n===undefined)return o&&"get"in o&&(i=o.get(e,!1,r))!==undefined?i:f[t];s=typeof n,s==="string"&&(i=st.exec(n))&&i[1]&&(n=ft(e,t,i),s="number");if(n==null||n!==n)return;s==="number"&&(n+=i&&i[3]||(E.cssNumber[u]?"":"px")),!d.clearCloneStyle&&n===""&&t.indexOf("background")===0&&(f[t]="inherit");if(!o||!("set"in o)||(n=o.set(e,n,r))!==undefined)a?f.setProperty(t,n):f[t]=n},css:function(e,t,n,r){var i,s,o,u=K(t),a=Vt.test(t);return a||(t=Yt(u)),o=E.cssHooks[t]||E.cssHooks[u],o&&"get"in o&&(i=o.get(e,!0,n)),i===undefined&&(i=zt(e,t,r)),i==="normal"&&t in Jt&&(i=Jt[t]),n===""||n?(s=parseFloat(i),n===!0||isFinite(s)?s||0:i):i}}),E.each(["height","width"],function(e,t){E.cssHooks[t]={get:function(e,n,r){if(n)return Xt.test(E.css(e,"display"))&&(!e.getClientRects().length||!e.getBoundingClientRect().width)?at(e,$t,function(){return tn(e,t,r)}):tn(e,t,r)},set:function(e,n,r){var i,s=Rt(e),o=E.css(e,"boxSizing",!1,s)==="border-box",u=r&&en(e,t,r,o,s);return o&&d.scrollboxSize()===s.position&&(u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(s[t])-en(e,t,"border",!1,s)-.5)),u&&(i=st.exec(n))&&(i[3]||"px")!=="px"&&(e.style[t]=n,n=E.css(e,t)),Zt(e,n,u)}}}),E.cssHooks.marginLeft=Wt(d.reliableMarginLeft,function(e,t){if(t)return(parseFloat(zt(e,"marginLeft"))||e.getBoundingClientRect().left-at(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),E.each({margin:"",padding:"",border:"Width"},function(e,t){E.cssHooks[e+t]={expand:function(n){var r=0,i={},s=typeof n=="string"?n.split(" "):[n];for(;r<4;r++)i[e+ot[r]+t]=s[r]||s[r-2]||s[0];return i}},e!=="margin"&&(E.cssHooks[e+t].set=Zt)}),E.fn.extend({css:function(e,t){return X(this,function(e,t,n){var r,i,s={},o=0;if(Array.isArray(t)){r=Rt(e),i=t.length;for(;o<i;o++)s[t[o]]=E.css(e,t[o],!1,r);return s}return n!==undefined?E.style(e,t,n):E.css(e,t)},e,t,arguments.length>1)}}),E.Tween=nn,nn.prototype={constructor:nn,init:function(e,t,n,r,i,s){this.elem=e,this.prop=n,this.easing=i||E.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=s||(E.cssNumber[n]?"":"px")},cur:function(){var e=nn.propHooks[this.prop];return e&&e.get?e.get(this):nn.propHooks._default.get(this)},run:function(e){var t,n=nn.propHooks[this.prop];return this.options.duration?this.pos=t=E.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):nn.propHooks._default.set(this),this}},nn.prototype.init.prototype=nn.prototype,nn.propHooks={_default:{get:function(e){var t;return e.elem.nodeType!==1||e.elem[e.prop]!=null&&e.elem.style[e.prop]==null?e.elem[e.prop]:(t=E.css(e.elem,e.prop,""),!t||t==="auto"?0:t)},set:function(e){E.fx.step[e.prop]?E.fx.step[e.prop](e):e.elem.nodeType!==1||e.elem.style[E.cssProps[e.prop]]==null&&!E.cssHooks[e.prop]?e.elem[e.prop]=e.now:E.style(e.elem,e.prop,e.now+e.unit)}}},nn.propHooks.scrollTop=nn.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},E.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},E.fx=nn.prototype.init,E.fx.step={};var rn,sn,on=/^(?:toggle|show|hide)$/,un=/queueHooks$/;E.Animation=E.extend(dn,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ft(n.elem,e,st.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(j);var n,r=0,i=e.length;for(;r<i;r++)n=e[r],dn.tweeners[n]=dn.tweeners[n]||[],dn.tweeners[n].unshift(t)},prefilters:[hn],prefilter:function(e,t){t?dn.prefilters.unshift(e):dn.prefilters.push(e)}}),E.speed=function(e,t,n){var r=e&&typeof e=="object"?E.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};E.fx.off?r.duration=0:typeof r.duration!="number"&&(r.duration in E.fx.speeds?r.duration=E.fx.speeds[r.duration]:r.duration=E.fx.speeds._default);if(r.queue==null||r.queue===!0)r.queue="fx";return r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&E.dequeue(this,r.queue)},r},E.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ut).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=E.isEmptyObject(e),s=E.speed(t,n,r),o=function(){var t=dn(this,E.extend({},e),s);(i||Y.get(this,"finish"))&&t.stop(!0)};return o.finish=o,i||s.queue===!1?this.each(o):this.queue(s.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return typeof e!="string"&&(n=t,t=e,e=undefined),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=e!=null&&e+"queueHooks",s=E.timers,o=Y.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&un.test(i)&&r(o[i]);for(i=s.length;i--;)s[i].elem===this&&(e==null||s[i].queue===e)&&(s[i].anim.stop(n),t=!1,s.splice(i,1));(t||!n)&&E.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=Y.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],s=E.timers,o=r?r.length:0;n.finish=!0,E.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0);for(t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),E.each(["toggle","show","hide"],function(e,t){var n=E.fn[t];E.fn[t]=function(e,r,i){return e==null||typeof e=="boolean"?n.apply(this,arguments):this.animate(ln(t,!0),e,r,i)}}),E.each({slideDown:ln("show"),slideUp:ln("hide"),slideToggle:ln("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){E.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),E.timers=[],E.fx.tick=function(){var e,t=0,n=E.timers;rn=Date.now();for(;t<n.length;t++)e=n[t],!e()&&n[t]===e&&n.splice(t--,1);n.length||E.fx.stop(),rn=undefined},E.fx.timer=function(e){E.timers.push(e),E.fx.start()},E.fx.interval=13,E.fx.start=function(){if(sn)return;sn=!0,an()},E.fx.stop=function(){sn=null},E.fx.speeds={slow:600,fast:200,_default:400},E.fn.delay=function(t,n){return t=E.fx?E.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var e=r.createElement("input"),t=r.createElement("select"),n=t.appendChild(r.createElement("option"));e.type="checkbox",d.checkOn=e.value!=="",d.optSelected=n.selected,e=r.createElement("input"),e.value="t",e.type="radio",d.radioValue=e.value==="t"}();var vn,mn=E.expr.attrHandle;E.fn.extend({attr:function(e,t){return X(this,E.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){E.removeAttr(this,e)})}}),E.extend({attr:function(e,t,n){var r,i,s=e.nodeType;if(s===3||s===8||s===2)return;if(typeof e.getAttribute=="undefined")return E.prop(e,t,n);if(s!==1||!E.isXMLDoc(e))i=E.attrHooks[t.toLowerCase()]||(E.expr.match.bool.test(t)?vn:undefined);if(n!==undefined){if(n===null){E.removeAttr(e,t);return}return i&&"set"in i&&(r=i.set(e,n,t))!==undefined?r:(e.setAttribute(t,n+""),n)}return i&&"get"in i&&(r=i.get(e,t))!==null?r:(r=E.find.attr(e,t),r==null?undefined:r)},attrHooks:{type:{set:function(e,t){if(!d.radioValue&&t==="radio"&&L(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(j);if(i&&e.nodeType===1)while(n=i[r++])e.removeAttribute(n)}}),vn={set:function(e,t,n){return t===!1?E.removeAttr(e,n):e.setAttribute(n,n),n}},E.each(E.expr.match.bool.source.match(/\w+/g),function(e,t){var n=mn[t]||E.find.attr;mn[t]=function(e,t,r){var i,s,o=t.toLowerCase();return r||(s=mn[o],mn[o]=i,i=n(e,t,r)!=null?o:null,mn[o]=s),i}});var gn=/^(?:input|select|textarea|button)$/i,yn=/^(?:a|area)$/i;E.fn.extend({prop:function(e,t){return X(this,E.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[E.propFix[e]||e]})}}),E.extend({prop:function(e,t,n){var r,i,s=e.nodeType;if(s===3||s===8||s===2)return;if(s!==1||!E.isXMLDoc(e))t=E.propFix[t]||t,i=E.propHooks[t];return n!==undefined?i&&"set"in i&&(r=i.set(e,n,t))!==undefined?r:e[t]=n:i&&"get"in i&&(r=i.get(e,t))!==null?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=E.find.attr(e,"tabindex");return t?parseInt(t,10):gn.test(e.nodeName)||yn.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),d.optSelected||(E.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){E.propFix[this.toLowerCase()]=this}),E.fn.extend({addClass:function(e){var t,n,r,i,s,o,u,a=0;if(v(e))return this.each(function(t){E(this).addClass(e.call(this,t,wn(this)))});t=En(e);if(t.length)while(n=this[a++]){i=wn(n),r=n.nodeType===1&&" "+bn(i)+" ";if(r){o=0;while(s=t[o++])r.indexOf(" "+s+" ")<0&&(r+=s+" ");u=bn(r),i!==u&&n.setAttribute("class",u)}}return this},removeClass:function(e){var t,n,r,i,s,o,u,a=0;if(v(e))return this.each(function(t){E(this).removeClass(e.call(this,t,wn(this)))});if(!arguments.length)return this.attr("class","");t=En(e);if(t.length)while(n=this[a++]){i=wn(n),r=n.nodeType===1&&" "+bn(i)+" ";if(r){o=0;while(s=t[o++])while(r.indexOf(" "+s+" ")>-1)r=r.replace(" "+s+" "," ");u=bn(r),i!==u&&n.setAttribute("class",u)}}return this},toggleClass:function(e,t){var n=typeof e,r=n==="string"||Array.isArray(e);return typeof t=="boolean"&&r?t?this.addClass(e):this.removeClass(e):v(e)?this.each(function(n){E(this).toggleClass(e.call(this,n,wn(this),t),t)}):this.each(function(){var t,i,s,o;if(r){i=0,s=E(this),o=En(e);while(t=o[i++])s.hasClass(t)?s.removeClass(t):s.addClass(t)}else if(e===undefined||n==="boolean")t=wn(this),t&&Y.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||e===!1?"":Y.get(this,"__className__")||"")})},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(n.nodeType===1&&(" "+bn(wn(n))+" ").indexOf(t)>-1)return!0;return!1}});var Sn=/\r/g;E.fn.extend({val:function(e){var t,n,r,i=this[0];if(!arguments.length){if(i)return t=E.valHooks[i.type]||E.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&(n=t.get(i,"value"))!==undefined?n:(n=i.value,typeof n=="string"?n.replace(Sn,""):n==null?"":n);return}return r=v(e),this.each(function(n){var i;if(this.nodeType!==1)return;r?i=e.call(this,n,E(this).val()):i=e,i==null?i="":typeof i=="number"?i+="":Array.isArray(i)&&(i=E.map(i,function(e){return e==null?"":e+""})),t=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()];if(!t||!("set"in t)||t.set(this,i,"value")===undefined)this.value=i})}}),E.extend({valHooks:{option:{get:function(e){var t=E.find.attr(e,"value");return t!=null?t:bn(E.text(e))}},select:{get:function(e){var t,n,r,i=e.options,s=e.selectedIndex,o=e.type==="select-one",u=o?null:[],a=o?s+1:i.length;s<0?r=a:r=o?s:0;for(;r<a;r++){n=i[r];if((n.selected||r===s)&&!n.disabled&&(!n.parentNode.disabled||!L(n.parentNode,"optgroup"))){t=E(n).val();if(o)return t;u.push(t)}}return u},set:function(e,t){var n,r,i=e.options,s=E.makeArray(t),o=i.length;while(o--){r=i[o];if(r.selected=E.inArray(E.valHooks.option.get(r),s)>-1)n=!0}return n||(e.selectedIndex=-1),s}}}}),E.each(["radio","checkbox"],function(){E.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=E.inArray(E(e).val(),t)>-1}},d.checkOn||(E.valHooks[this].get=function(e){return e.getAttribute("value")===null?"on":e.value})}),d.focusin="onfocusin"in e;var xn=/^(?:focusinfocus|focusoutblur)$/,Tn=function(e){e.stopPropagation()};E.extend(E.event,{trigger:function(t,n,i,s){var o,u,a,f,l,h,p,d,g=[i||r],y=c.call(t,"type")?t.type:t,b=c.call(t,"namespace")?t.namespace.split("."):[];u=d=a=i=i||r;if(i.nodeType===3||i.nodeType===8)return;if(xn.test(y+E.event.triggered))return;y.indexOf(".")>-1&&(b=y.split("."),y=b.shift(),b.sort()),l=y.indexOf(":")<0&&"on"+y,t=t[E.expando]?t:new E.Event(y,typeof t=="object"&&t),t.isTrigger=s?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=i),n=n==null?[t]:E.makeArray(n,[t]),p=E.event.special[y]||{};if(!s&&p.trigger&&p.trigger.apply(i,n)===!1)return;if(!s&&!p.noBubble&&!m(i)){f=p.delegateType||y,xn.test(f+y)||(u=u.parentNode);for(;u;u=u.parentNode)g.push(u),a=u;a===(i.ownerDocument||r)&&g.push(a.defaultView||a.parentWindow||e)}o=0;while((u=g[o++])&&!t.isPropagationStopped())d=u,t.type=o>1?f:p.bindType||y,h=(Y.get(u,"events")||{})[t.type]&&Y.get(u,"handle"),h&&h.apply(u,n),h=l&&u[l],h&&h.apply&&Q(u)&&(t.result=h.apply(u,n),t.result===!1&&t.preventDefault());return t.type=y,!s&&!t.isDefaultPrevented()&&(!p._default||p._default.apply(g.pop(),n)===!1)&&Q(i)&&l&&v(i[y])&&!m(i)&&(a=i[l],a&&(i[l]=null),E.event.triggered=y,t.isPropagationStopped()&&d.addEventListener(y,Tn),i[y](),t.isPropagationStopped()&&d.removeEventListener(y,Tn),E.event.triggered=undefined,a&&(i[l]=a)),t.result},simulate:function(e,t,n){var r=E.extend(new E.Event,n,{type:e,isSimulated:!0});E.event.trigger(r,null,t)}}),E.fn.extend({trigger:function(e,t){return this.each(function(){E.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return E.event.trigger(e,t,n,!0)}}),d.focusin||E.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){E.event.simulate(t,e.target,E.event.fix(e))};E.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Y.access(r,t);i||r.addEventListener(e,n,!0),Y.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Y.access(r,t)-1;i?Y.access(r,t,i):(r.removeEventListener(e,n,!0),Y.remove(r,t))}}});var Nn=e.location,Cn=Date.now(),kn=/\?/;E.parseXML=function(t){var n;if(!t||typeof t!="string")return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(r){n=undefined}return(!n||n.getElementsByTagName("parsererror").length)&&E.error("Invalid XML: "+t),n};var Ln=/\[\]$/,An=/\r?\n/g,On=/^(?:submit|button|image|reset|file)$/i,Mn=/^(?:input|select|textarea|keygen)/i;E.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(n==null?"":n)};if(Array.isArray(e)||e.jquery&&!E.isPlainObject(e))E.each(e,function(){i(this.name,this.value)});else for(n in e)_n(n,e[n],t,i);return r.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=E.prop(this,"elements");return e?E.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!E(this).is(":disabled")&&Mn.test(this.nodeName)&&!On.test(e)&&(this.checked||!pt.test(e))}).map(function(e,t){var n=E(this).val();return n==null?null:Array.isArray(n)?E.map(n,function(e){return{name:t.name,value:e.replace(An,"\r\n")}}):{name:t.name,value:n.replace(An,"\r\n")}}).get()}});var Dn=/%20/g,Pn=/#.*$/,Hn=/([?&])_=[^&]*/,Bn=/^(.*?):[ \t]*([^\r\n]*)$/mg,jn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Fn=/^(?:GET|HEAD)$/,In=/^\/\//,qn={},Rn={},Un="*/".concat("*"),zn=r.createElement("a");zn.href=Nn.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Nn.href,type:"GET",isLocal:jn.test(Nn.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Un,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Vn(Vn(e,E.ajaxSettings),t):Vn(E.ajaxSettings,e)},ajaxPrefilter:Wn(qn),ajaxTransport:Wn(Rn),ajax:function(t,n){function C(t,n,r,u){var f,h,p,w,S,x=n;if(l)return;l=!0,a&&e.clearTimeout(a),i=undefined,o=u||"",T.readyState=t>0?4:0,f=t>=200&&t<300||t===304,r&&(w=$n(d,T,r)),w=Jn(d,w,T,f);if(f)d.ifModified&&(S=T.getResponseHeader("Last-Modified"),S&&(E.lastModified[s]=S),S=T.getResponseHeader("etag"),S&&(E.etag[s]=S)),t===204||d.type==="HEAD"?x="nocontent":t===304?x="notmodified":(x=w.state,h=w.data,p=w.error,f=!p);else{p=x;if(t||!x)x="error",t<0&&(t=0)}T.status=t,T.statusText=(n||x)+"",f?g.resolveWith(v,[h,x,T]):g.rejectWith(v,[T,x,p]),T.statusCode(b),b=undefined,c&&m.trigger(f?"ajaxSuccess":"ajaxError",[T,d,f?h:p]),y.fireWith(v,[T,x]),c&&(m.trigger("ajaxComplete",[T,d]),--E.active||E.event.trigger("ajaxStop"))}typeof t=="object"&&(n=t,t=undefined),n=n||{};var i,s,o,u,a,f,l,c,h,p,d=E.ajaxSetup({},n),v=d.context||d,m=d.context&&(v.nodeType||v.jquery)?E(v):E.event,g=E.Deferred(),y=E.Callbacks("once memory"),b=d.statusCode||{},w={},S={},x="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(l){if(!u){u={};while(t=Bn.exec(o))u[t[1].toLowerCase()]=t[2]}t=u[e.toLowerCase()]}return t==null?null:t},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(e,t){return l==null&&(e=S[e.toLowerCase()]=S[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return l==null&&(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)T.always(e[T.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||x;return i&&i.abort(t),C(0,t),this}};g.promise(T),d.url=((t||d.url||Nn.href)+"").replace(In,Nn.protocol+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(j)||[""];if(d.crossDomain==null){f=r.createElement("a");try{f.href=d.url,f.href=f.href,d.crossDomain=zn.protocol+"//"+zn.host!=f.protocol+"//"+f.host}catch(N){d.crossDomain=!0}}d.data&&d.processData&&typeof d.data!="string"&&(d.data=E.param(d.data,d.traditional)),Xn(qn,d,n,T);if(l)return T;c=E.event&&d.global,c&&E.active++===0&&E.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Fn.test(d.type),s=d.url.replace(Pn,""),d.hasContent?d.data&&d.processData&&(d.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(d.data=d.data.replace(Dn,"+")):(p=d.url.slice(s.length),d.data&&(d.processData||typeof d.data=="string")&&(s+=(kn.test(s)?"&":"?")+d.data,delete d.data),d.cache===!1&&(s=s.replace(Hn,"$1"),p=(kn.test(s)?"&":"?")+"_="+Cn++ +p),d.url=s+p),d.ifModified&&(E.lastModified[s]&&T.setRequestHeader("If-Modified-Since",E.lastModified[s]),E.etag[s]&&T.setRequestHeader("If-None-Match",E.etag[s])),(d.data&&d.hasContent&&d.contentType!==!1||n.contentType)&&T.setRequestHeader("Content-Type",d.contentType),T.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+Un+"; q=0.01":""):d.accepts["*"]);for(h in d.headers)T.setRequestHeader(h,d.headers[h]);if(d.beforeSend&&(d.beforeSend.call(v,T,d)===!1||l))return T.abort();x="abort",y.add(d.complete),T.done(d.success),T.fail(d.error),i=Xn(Rn,d,n,T);if(!i)C(-1,"No Transport");else{T.readyState=1,c&&m.trigger("ajaxSend",[T,d]);if(l)return T;d.async&&d.timeout>0&&(a=e.setTimeout(function(){T.abort("timeout")},d.timeout));try{l=!1,i.send(w,C)}catch(N){if(l)throw N;C(-1,N)}}return T},getJSON:function(e,t,n){return E.get(e,t,n,"json")},getScript:function(e,t){return E.get(e,undefined,t,"script")}}),E.each(["get","post"],function(e,t){E[t]=function(e,n,r,i){return v(n)&&(i=i||r,r=n,n=undefined),E.ajax(E.extend({url:e,type:t,dataType:i,data:n,success:r},E.isPlainObject(e)&&e))}}),E._evalUrl=function(e){return E.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},E.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=E(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return v(e)?this.each(function(t){E(this).wrapInner(e.call(this,t))}):this.each(function(){var t=E(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=v(e);return this.each(function(n){E(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){E(this).replaceWith(this.childNodes)}),this}}),E.expr.pseudos.hidden=function(e){return!E.expr.pseudos.visible(e)},E.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(t){}};var Kn={0:200,1223:204},Qn=E.ajaxSettings.xhr();d.cors=!!Qn&&"withCredentials"in Qn,d.ajax=Qn=!!Qn,E.ajaxTransport(function(t){var n,r;if(d.cors||Qn&&!t.crossDomain)return{send:function(i,s){var o,u=t.xhr();u.open(t.type,t.url,t.async,t.username,t.password);if(t.xhrFields)for(o in t.xhrFields)u[o]=t.xhrFields[o];t.mimeType&&u.overrideMimeType&&u.overrideMimeType(t.mimeType),!t.crossDomain&&!i["X-Requested-With"]&&(i["X-Requested-With"]="XMLHttpRequest");for(o in i)u.setRequestHeader(o,i[o]);n=function(e){return function(){n&&(n=r=u.onload=u.onerror=u.onabort=u.ontimeout=u.onreadystatechange=null,e==="abort"?u.abort():e==="error"?typeof u.status!="number"?s(0,"error"):s(u.status,u.statusText):s(Kn[u.status]||u.status,u.statusText,(u.responseType||"text")!=="text"||typeof u.responseText!="string"?{binary:u.response}:{text:u.responseText},u.getAllResponseHeaders()))}},u.onload=n(),r=u.onerror=u.ontimeout=n("error"),u.onabort!==undefined?u.onabort=r:u.onreadystatechange=function(){u.readyState===4&&e.setTimeout(function(){n&&r()})},n=n("abort");try{u.send(t.hasContent&&t.data||null)}catch(a){if(n)throw a}},abort:function(){n&&n()}}}),E.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),E.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return E.globalEval(e),e}}}),E.ajaxPrefilter("script",function(e){e.cache===undefined&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),E.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(i,s){t=E("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&s(e.type==="error"?404:200,e.type)}),r.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Gn=[],Yn=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gn.pop()||E.expando+"_"+Cn++;return this[e]=!0,e}}),E.ajaxPrefilter("json jsonp",function(t,n,r){var i,s,o,u=t.jsonp!==!1&&(Yn.test(t.url)?"url":typeof t.data=="string"&&(t.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&Yn.test(t.data)&&"data");if(u||t.dataTypes[0]==="jsonp")return i=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,u?t[u]=t[u].replace(Yn,"$1"+i):t.jsonp!==!1&&(t.url+=(kn.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||E.error(i+" was not called"),o[0]},t.dataTypes[0]="json",s=e[i],e[i]=function(){o=arguments},r.always(function(){s===undefined?E(e).removeProp(i):e[i]=s,t[i]&&(t.jsonpCallback=n.jsonpCallback,Gn.push(i)),o&&v(s)&&s(o[0]),o=s=undefined}),"script"}),d.createHTMLDocument=function(){var e=r.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",e.childNodes.length===2}(),E.parseHTML=function(e,t,n){if(typeof e!="string")return[];typeof t=="boolean"&&(n=t,t=!1);var i,s,o;return t||(d.createHTMLDocument?(t=r.implementation.createHTMLDocument(""),i=t.createElement("base"),i.href=r.location.href,t.head.appendChild(i)):t=r),s=A.exec(e),o=!n&&[],s?[t.createElement(s[1])]:(s=wt([e],t,o),o&&o.length&&E(o).remove(),E.merge([],s.childNodes))},E.fn.load=function(e,t,n){var r,i,s,o=this,u=e.indexOf(" ");return u>-1&&(r=bn(e.slice(u)),e=e.slice(0,u)),v(t)?(n=t,t=undefined):t&&typeof t=="object"&&(i="POST"),o.length>0&&E.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){s=arguments,o.html(r?E("<div>").append(E.parseHTML(e)).find(r):e)}).always(n&&function(e,t){o.each(function(){n.apply(this,s||[e.responseText,t,e])})}),this},E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){E.fn[t]=function(e){return this.on(t,e)}}),E.expr.pseudos.animated=function(e){return E.grep(E.timers,function(t){return e===t.elem}).length},E.offset={setOffset:function(e,t,n){var r,i,s,o,u,a,f,l=E.css(e,"position"),c=E(e),h={};l==="static"&&(e.style.position="relative"),u=c.offset(),s=E.css(e,"top"),a=E.css(e,"left"),f=(l==="absolute"||l==="fixed")&&(s+a).indexOf("auto")>-1,f?(r=c.position(),o=r.top,i=r.left):(o=parseFloat(s)||0,i=parseFloat(a)||0),v(t)&&(t=t.call(e,n,E.extend({},u))),t.top!=null&&(h.top=t.top-u.top+o),t.left!=null&&(h.left=t.left-u.left+i),"using"in t?t.using.call(e,h):c.css(h)}},E.fn.extend({offset:function(e){if(arguments.length)return e===undefined?this:this.each(function(t){E.offset.setOffset(this,e,t)});var t,n,r=this[0];if(!r)return;return r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}},position:function(){if(!this[0])return;var e,t,n,r=this[0],i={top:0,left:0};if(E.css(r,"position")==="fixed")t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&E.css(e,"position")==="static")e=e.parentNode;e&&e!==r&&e.nodeType===1&&(i=E(e).offset(),i.top+=E.css(e,"borderTopWidth",!0),i.left+=E.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-E.css(r,"marginTop",!0),left:t.left-i.left-E.css(r,"marginLeft",!0)}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&E.css(e,"position")==="static")e=e.offsetParent;return e||Et})}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;E.fn[e]=function(r){return X(this,function(e,r,i){var s;m(e)?s=e:e.nodeType===9&&(s=e.defaultView);if(i===undefined)return s?s[t]:e[r];s?s.scrollTo(n?s.pageXOffset:i,n?i:s.pageYOffset):e[r]=i},e,r,arguments.length)}}),E.each(["top","left"],function(e,t){E.cssHooks[t]=Wt(d.pixelPosition,function(e,n){if(n)return n=zt(e,t),qt.test(n)?E(e).position()[t]+"px":n})}),E.each({Height:"height",Width:"width"},function(e,t){E.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){E.fn[r]=function(i,s){var o=arguments.length&&(n||typeof i!="boolean"),u=n||(i===!0||s===!0?"margin":"border");return X(this,function(t,n,i){var s;return m(t)?r.indexOf("outer")===0?t["inner"+e]:t.document.documentElement["client"+e]:t.nodeType===9?(s=t.documentElement,Math.max(t.body["scroll"+e],s["scroll"+e],t.body["offset"+e],s["offset"+e],s["client"+e])):i===undefined?E.css(t,n,u):E.style(t,n,i,u)},t,o?i:undefined,o)}})}),E.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){E.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),E.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),E.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",n)}}),E.proxy=function(e,t){var n,r,i;return typeof t=="string"&&(n=e[t],t=e,e=n),v(e)?(r=s.call(arguments,2),i=function(){return e.apply(t||this,r.concat(s.call(arguments)))},i.guid=e.guid=e.guid||E.guid++,i):undefined},E.holdReady=function(e){e?E.readyWait++:E.ready(!0)},E.isArray=Array.isArray,E.parseJSON=JSON.parse,E.nodeName=L,E.isFunction=v,E.isWindow=m,E.camelCase=K,E.type=b,E.now=Date.now,E.isNumeric=function(e){var t=E.type(e);return(t==="number"||t==="string")&&!isNaN(e-parseFloat(e))},typeof define=="function"&&define.amd&&define("jquery",[],function(){return E});var Zn=e.jQuery,er=e.$;return E.noConflict=function(t){return e.$===E&&(e.$=er),t&&e.jQuery===E&&(e.jQuery=Zn),E},t||(e.jQuery=e.$=E),E}),define("jquery/dist/jquery",function(){}),function(){function x(e){function t(t,n,r,i,s,o){for(;s>=0&&s<o;s+=e){var u=i?i[s]:s;r=n(r,t[u],u,t)}return r}return function(n,r,i,s){r=v(r,s,4);var o=!S(n)&&d.keys(n),u=(o||n).length,a=e>0?0:u-1;return arguments.length<3&&(i=n[o?o[a]:a],a+=e),t(n,r,i,o,a,u)}}function C(e){return function(t,n,r){n=m(n,r);var i=E(t),s=e>0?0:i-1;for(;s>=0&&s<i;s+=e)if(n(t[s],s,t))return s;return-1}}function k(e,t,n){return function(r,i,s){var u=0,a=E(r);if(typeof s=="number")e>0?u=s>=0?s:Math.max(s+a,u):a=s>=0?Math.min(s+1,a):s+a+1;else if(n&&s&&a)return s=n(r,i),r[s]===i?s:-1;if(i!==i)return s=t(o.call(r,u,a),d.isNaN),s>=0?s+u:-1;for(s=e>0?u:a-1;s>=0&&s<a;s+=e)if(r[s]===i)return s;return-1}}function M(e,t){var n=O.length,i=e.constructor,s=d.isFunction(i)&&i.prototype||r,o="constructor";d.has(e,o)&&!d.contains(t,o)&&t.push(o);while(n--)o=O[n],o in e&&e[o]!==s[o]&&!d.contains(t,o)&&t.push(o)}var e=this,t=e._,n=Array.prototype,r=Object.prototype,i=Function.prototype,s=n.push,o=n.slice,u=r.toString,a=r.hasOwnProperty,f=Array.isArray,l=Object.keys,c=i.bind,h=Object.create,p=function(){},d=function(e){if(e instanceof d)return e;if(!(this instanceof d))return new d(e);this._wrapped=e};typeof exports!="undefined"?(typeof module!="undefined"&&module.exports&&(exports=module.exports=d),exports._=d):e._=d,d.VERSION="1.8.3";var v=function(e,t,n){if(t===void 0)return e;switch(n==null?3:n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,s){return e.call(t,n,r,i,s)}}return function(){return e.apply(t,arguments)}},m=function(e,t,n){return e==null?d.identity:d.isFunction(e)?v(e,t,n):d.isObject(e)?d.matcher(e):d.property(e)};d.iteratee=function(e,t){return m(e,t,Infinity)};var g=function(e,t){return function(n){var r=arguments.length;if(r<2||n==null)return n;for(var i=1;i<r;i++){var s=arguments[i],o=e(s),u=o.length;for(var a=0;a<u;a++){var f=o[a];if(!t||n[f]===void 0)n[f]=s[f]}}return n}},y=function(e){if(!d.isObject(e))return{};if(h)return h(e);p.prototype=e;var t=new p;return p.prototype=null,t},b=function(e){return function(t){return t==null?void 0:t[e]}},w=Math.pow(2,53)-1,E=b("length"),S=function(e){var t=E(e);return typeof t=="number"&&t>=0&&t<=w};d.each=d.forEach=function(e,t,n){t=v(t,n);var r,i;if(S(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var s=d.keys(e);for(r=0,i=s.length;r<i;r++)t(e[s[r]],s[r],e)}return e},d.map=d.collect=function(e,t,n){t=m(t,n);var r=!S(e)&&d.keys(e),i=(r||e).length,s=Array(i);for(var o=0;o<i;o++){var u=r?r[o]:o;s[o]=t(e[u],u,e)}return s},d.reduce=d.foldl=d.inject=x(1),d.reduceRight=d.foldr=x(-1),d.find=d.detect=function(e,t,n){var r;S(e)?r=d.findIndex(e,t,n):r=d.findKey(e,t,n);if(r!==void 0&&r!==-1)return e[r]},d.filter=d.select=function(e,t,n){var r=[];return t=m(t,n),d.each(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r},d.reject=function(e,t,n){return d.filter(e,d.negate(m(t)),n)},d.every=d.all=function(e,t,n){t=m(t,n);var r=!S(e)&&d.keys(e),i=(r||e).length;for(var s=0;s<i;s++){var o=r?r[s]:s;if(!t(e[o],o,e))return!1}return!0},d.some=d.any=function(e,t,n){t=m(t,n);var r=!S(e)&&d.keys(e),i=(r||e).length;for(var s=0;s<i;s++){var o=r?r[s]:s;if(t(e[o],o,e))return!0}return!1},d.contains=d.includes=d.include=function(e,t,n,r){S(e)||(e=d.values(e));if(typeof n!="number"||r)n=0;return d.indexOf(e,t,n)>=0},d.invoke=function(e,t){var n=o.call(arguments,2),r=d.isFunction(t);return d.map(e,function(e){var i=r?t:e[t];return i==null?i:i.apply(e,n)})},d.pluck=function(e,t){return d.map(e,d.property(t))},d.where=function(e,t){return d.filter(e,d.matcher(t))},d.findWhere=function(e,t){return d.find(e,d.matcher(t))},d.max=function(e,t,n){var r=-Infinity,i=-Infinity,s,o;if(t==null&&e!=null){e=S(e)?e:d.values(e);for(var u=0,a=e.length;u<a;u++)s=e[u],s>r&&(r=s)}else t=m(t,n),d.each(e,function(e,n,s){o=t(e,n,s);if(o>i||o===-Infinity&&r===-Infinity)r=e,i=o});return r},d.min=function(e,t,n){var r=Infinity,i=Infinity,s,o;if(t==null&&e!=null){e=S(e)?e:d.values(e);for(var u=0,a=e.length;u<a;u++)s=e[u],s<r&&(r=s)}else t=m(t,n),d.each(e,function(e,n,s){o=t(e,n,s);if(o<i||o===Infinity&&r===Infinity)r=e,i=o});return r},d.shuffle=function(e){var t=S(e)?e:d.values(e),n=t.length,r=Array(n);for(var i=0,s;i<n;i++)s=d.random(0,i),s!==i&&(r[i]=r[s]),r[s]=t[i];return r},d.sample=function(e,t,n){return t==null||n?(S(e)||(e=d.values(e)),e[d.random(e.length-1)]):d.shuffle(e).slice(0,Math.max(0,t))},d.sortBy=function(e,t,n){return t=m(t,n),d.pluck(d.map(e,function(e,n,r){return{value:e,index:n,criteria:t(e,n,r)}}).sort(function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||n===void 0)return 1;if(n<r||r===void 0)return-1}return e.index-t.index}),"value")};var T=function(e){return function(t,n,r){var i={};return n=m(n,r),d.each(t,function(r,s){var o=n(r,s,t);e(i,r,o)}),i}};d.groupBy=T(function(e,t,n){d.has(e,n)?e[n].push(t):e[n]=[t]}),d.indexBy=T(function(e,t,n){e[n]=t}),d.countBy=T(function(e,t,n){d.has(e,n)?e[n]++:e[n]=1}),d.toArray=function(e){return e?d.isArray(e)?o.call(e):S(e)?d.map(e,d.identity):d.values(e):[]},d.size=function(e){return e==null?0:S(e)?e.length:d.keys(e).length},d.partition=function(e,t,n){t=m(t,n);var r=[],i=[];return d.each(e,function(e,n,s){(t(e,n,s)?r:i).push(e)}),[r,i]},d.first=d.head=d.take=function(e,t,n){return e==null?void 0:t==null||n?e[0]:d.initial(e,e.length-t)},d.initial=function(e,t,n){return o.call(e,0,Math.max(0,e.length-(t==null||n?1:t)))},d.last=function(e,t,n){return e==null?void 0:t==null||n?e[e.length-1]:d.rest(e,Math.max(0,e.length-t))},d.rest=d.tail=d.drop=function(e,t,n){return o.call(e,t==null||n?1:t)},d.compact=function(e){return d.filter(e,d.identity)};var N=function(e,t,n,r){var i=[],s=0;for(var o=r||0,u=E(e);o<u;o++){var a=e[o];if(S(a)&&(d.isArray(a)||d.isArguments(a))){t||(a=N(a,t,n));var f=0,l=a.length;i.length+=l;while(f<l)i[s++]=a[f++]}else n||(i[s++]=a)}return i};d.flatten=function(e,t){return N(e,t,!1)},d.without=function(e){return d.difference(e,o.call(arguments,1))},d.uniq=d.unique=function(e,t,n,r){d.isBoolean(t)||(r=n,n=t,t=!1),n!=null&&(n=m(n,r));var i=[],s=[];for(var o=0,u=E(e);o<u;o++){var a=e[o],f=n?n(a,o,e):a;t?((!o||s!==f)&&i.push(a),s=f):n?d.contains(s,f)||(s.push(f),i.push(a)):d.contains(i,a)||i.push(a)}return i},d.union=function(){return d.uniq(N(arguments,!0,!0))},d.intersection=function(e){var t=[],n=arguments.length;for(var r=0,i=E(e);r<i;r++){var s=e[r];if(d.contains(t,s))continue;for(var o=1;o<n;o++)if(!d.contains(arguments[o],s))break;o===n&&t.push(s)}return t},d.difference=function(e){var t=N(arguments,!0,!0,1);return d.filter(e,function(e){return!d.contains(t,e)})},d.zip=function(){return d.unzip(arguments)},d.unzip=function(e){var t=e&&d.max(e,E).length||0,n=Array(t);for(var r=0;r<t;r++)n[r]=d.pluck(e,r);return n},d.object=function(e,t){var n={};for(var r=0,i=E(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n},d.findIndex=C(1),d.findLastIndex=C(-1),d.sortedIndex=function(e,t,n,r){n=m(n,r,1);var i=n(t),s=0,o=E(e);while(s<o){var u=Math.floor((s+o)/2);n(e[u])<i?s=u+1:o=u}return s},d.indexOf=k(1,d.findIndex,d.sortedIndex),d.lastIndexOf=k(-1,d.findLastIndex),d.range=function(e,t,n){t==null&&(t=e||0,e=0),n=n||1;var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r);for(var s=0;s<r;s++,e+=n)i[s]=e;return i};var L=function(e,t,n,r,i){if(r instanceof t){var s=y(e.prototype),o=e.apply(s,i);return d.isObject(o)?o:s}return e.apply(n,i)};d.bind=function(e,t){if(c&&e.bind===c)return c.apply(e,o.call(arguments,1));if(!d.isFunction(e))throw new TypeError("Bind must be called on a function");var n=o.call(arguments,2),r=function(){return L(e,r,t,this,n.concat(o.call(arguments)))};return r},d.partial=function(e){var t=o.call(arguments,1),n=function(){var r=0,i=t.length,s=Array(i);for(var o=0;o<i;o++)s[o]=t[o]===d?arguments[r++]:t[o];while(r<arguments.length)s.push(arguments[r++]);return L(e,n,this,this,s)};return n},d.bindAll=function(e){var t,n=arguments.length,r;if(n<=1)throw new Error("bindAll must be passed function names");for(t=1;t<n;t++)r=arguments[t],e[r]=d.bind(e[r],e);return e},d.memoize=function(e,t){var n=function(r){var i=n.cache,s=""+(t?t.apply(this,arguments):r);return d.has(i,s)||(i[s]=e.apply(this,arguments)),i[s]};return n.cache={},n},d.delay=function(e,t){var n=o.call(arguments,2);return setTimeout(function(){return e.apply(null,n)},t)},d.defer=d.partial(d.delay,d,1),d.throttle=function(e,t,n){var r,i,s,o=null,u=0;n||(n={});var a=function(){u=n.leading===!1?0:d.now(),o=null,s=e.apply(r,i),o||(r=i=null)};return function(){var f=d.now();!u&&n.leading===!1&&(u=f);var l=t-(f-u);return r=this,i=arguments,l<=0||l>t?(o&&(clearTimeout(o),o=null),u=f,s=e.apply(r,i),o||(r=i=null)):!o&&n.trailing!==!1&&(o=setTimeout(a,l)),s}},d.debounce=function(e,t,n){var r,i,s,o,u,a=function(){var f=d.now()-o;f<t&&f>=0?r=setTimeout(a,t-f):(r=null,n||(u=e.apply(s,i),r||(s=i=null)))};return function(){s=this,i=arguments,o=d.now();var f=n&&!r;return r||(r=setTimeout(a,t)),f&&(u=e.apply(s,i),s=i=null),u}},d.wrap=function(e,t){return d.partial(t,e)},d.negate=function(e){return function(){return!e.apply(this,arguments)}},d.compose=function(){var e=arguments,t=e.length-1;return function(){var n=t,r=e[t].apply(this,arguments);while(n--)r=e[n].call(this,r);return r}},d.after=function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},d.before=function(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}},d.once=d.partial(d.before,2);var A=!{toString:null}.propertyIsEnumerable("toString"),O=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];d.keys=function(e){if(!d.isObject(e))return[];if(l)return l(e);var t=[];for(var n in e)d.has(e,n)&&t.push(n);return A&&M(e,t),t},d.allKeys=function(e){if(!d.isObject(e))return[];var t=[];for(var n in e)t.push(n);return A&&M(e,t),t},d.values=function(e){var t=d.keys(e),n=t.length,r=Array(n);for(var i=0;i<n;i++)r[i]=e[t[i]];return r},d.mapObject=function(e,t,n){t=m(t,n);var r=d.keys(e),i=r.length,s={},o;for(var u=0;u<i;u++)o=r[u],s[o]=t(e[o],o,e);return s},d.pairs=function(e){var t=d.keys(e),n=t.length,r=Array(n);for(var i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r},d.invert=function(e){var t={},n=d.keys(e);for(var r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t},d.functions=d.methods=function(e){var t=[];for(var n in e)d.isFunction(e[n])&&t.push(n);return t.sort()},d.extend=g(d.allKeys),d.extendOwn=d.assign=g(d.keys),d.findKey=function(e,t,n){t=m(t,n);var r=d.keys(e),i;for(var s=0,o=r.length;s<o;s++){i=r[s];if(t(e[i],i,e))return i}},d.pick=function(e,t,n){var r={},i=e,s,o;if(i==null)return r;d.isFunction(t)?(o=d.allKeys(i),s=v(t,n)):(o=N(arguments,!1,!1,1),s=function(e,t,n){return t in n},i=Object(i));for(var u=0,a=o.length;u<a;u++){var f=o[u],l=i[f];s(l,f,i)&&(r[f]=l)}return r},d.omit=function(e,t,n){if(d.isFunction(t))t=d.negate(t);else{var r=d.map(N(arguments,!1,!1,1),String);t=function(e,t){return!d.contains(r,t)}}return d.pick(e,t,n)},d.defaults=g(d.allKeys,!0),d.create=function(e,t){var n=y(e);return t&&d.extendOwn(n,t),n},d.clone=function(e){return d.isObject(e)?d.isArray(e)?e.slice():d.extend({},e):e},d.tap=function(e,t){return t(e),e},d.isMatch=function(e,t){var n=d.keys(t),r=n.length;if(e==null)return!r;var i=Object(e);for(var s=0;s<r;s++){var o=n[s];if(t[o]!==i[o]||!(o in i))return!1}return!0};var _=function(e,t,n,r){if(e===t)return e!==0||1/e===1/t;if(e==null||t==null)return e===t;e instanceof d&&(e=e._wrapped),t instanceof d&&(t=t._wrapped);var i=u.call(e);if(i!==u.call(t))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":if(+e!==+e)return+t!==+t;return+e===0?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t}var s=i==="[object Array]";if(!s){if(typeof e!="object"||typeof t!="object")return!1;var o=e.constructor,a=t.constructor;if(o!==a&&!(d.isFunction(o)&&o instanceof o&&d.isFunction(a)&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}n=n||[],r=r||[];var f=n.length;while(f--)if(n[f]===e)return r[f]===t;n.push(e),r.push(t);if(s){f=e.length;if(f!==t.length)return!1;while(f--)if(!_(e[f],t[f],n,r))return!1}else{var l=d.keys(e),c;f=l.length;if(d.keys(t).length!==f)return!1;while(f--){c=l[f];if(!d.has(t,c)||!_(e[c],t[c],n,r))return!1}}return n.pop(),r.pop(),!0};d.isEqual=function(e,t){return _(e,t)},d.isEmpty=function(e){return e==null?!0:S(e)&&(d.isArray(e)||d.isString(e)||d.isArguments(e))?e.length===0:d.keys(e).length===0},d.isElement=function(e){return!!e&&e.nodeType===1},d.isArray=f||function(e){return u.call(e)==="[object Array]"},d.isObject=function(e){var t=typeof e;return t==="function"||t==="object"&&!!e},d.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(e){d["is"+e]=function(t){return u.call(t)==="[object "+e+"]"}}),d.isArguments(arguments)||(d.isArguments=function(e){return d.has(e,"callee")}),typeof /./!="function"&&typeof Int8Array!="object"&&(d.isFunction=function(e){return typeof e=="function"||!1}),d.isFinite=function(e){return isFinite(e)&&!isNaN(parseFloat(e))},d.isNaN=function(e){return d.isNumber(e)&&e!==+e},d.isBoolean=function(e){return e===!0||e===!1||u.call(e)==="[object Boolean]"},d.isNull=function(e){return e===null},d.isUndefined=function(e){return e===void 0},d.has=function(e,t){return e!=null&&a.call(e,t)},d.noConflict=function(){return e._=t,this},d.identity=function(e){return e},d.constant=function(e){return function(){return e}},d.noop=function(){},d.property=b,d.propertyOf=function(e){return e==null?function(){}:function(t){return e[t]}},d.matcher=d.matches=function(e){return e=d.extendOwn({},e),function(t){return d.isMatch(t,e)}},d.times=function(e,t,n){var r=Array(Math.max(0,e));t=v(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r},d.random=function(e,t){return t==null&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))},d.now=Date.now||function(){return(new Date).getTime()};var D={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},P=d.invert(D),H=function(e){var t=function(t){return e[t]},n="(?:"+d.keys(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=e==null?"":""+e,r.test(e)?e.replace(i,t):e}};d.escape=H(D),d.unescape=H(P),d.result=function(e,t,n){var r=e==null?void 0:e[t];return r===void 0&&(r=n),d.isFunction(r)?r.call(e):r};var B=0;d.uniqueId=function(e){var t=++B+"";return e?e+t:t},d.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var j=/(.)^/,F={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},I=/\\|'|\r|\n|\u2028|\u2029/g,q=function(e){return"\\"+F[e]};d.template=function(e,t,n){!t&&n&&(t=n),t=d.defaults({},t,d.templateSettings);var r=RegExp([(t.escape||j).source,(t.interpolate||j).source,(t.evaluate||j).source].join("|")+"|$","g"),i=0,s="__p+='";e.replace(r,function(t,n,r,o,u){return s+=e.slice(i,u).replace(I,q),i=u+t.length,n?s+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?s+="'+\n((__t=("+r+"))==null?'':__t)+\n'":o&&(s+="';\n"+o+"\n__p+='"),t}),s+="';\n",t.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{var o=new Function(t.variable||"obj","_",s)}catch(u){throw u.source=s,u}var a=function(e){return o.call(this,e,d)},f=t.variable||"obj";return a.source="function("+f+"){\n"+s+"}",a},d.chain=function(e){var t=d(e);return t._chain=!0,t};var R=function(e,t){return e._chain?d(t).chain():t};d.mixin=function(e){d.each(d.functions(e),function(t){var n=d[t]=e[t];d.prototype[t]=function(){var e=[this._wrapped];return s.apply(e,arguments),R(this,n.apply(d,e))}})},d.mixin(d),d.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=n[e];d.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),(e==="shift"||e==="splice")&&n.length===0&&delete n[0],R(this,n)}}),d.each(["concat","join","slice"],function(e){var t=n[e];d.prototype[e]=function(){return R(this,t.apply(this._wrapped,arguments))}}),d.prototype.value=function(){return this._wrapped},d.prototype.valueOf=d.prototype.toJSON=d.prototype.value,d.prototype.toString=function(){return""+this._wrapped},typeof define=="function"&&define.amd&&define("underscore",[],function(){return d})}.call(this),define("dust-makara-helpers/browser.amd",[],function(){return function(e){function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";var r=n(1);e.exports=function(e,t){t=t||{},r(e,function(){},t,t.loader)},e.exports.registerWith=e.exports},function(e,t,n){"use strict";function o(e,t,n){var r=e.shiftBlocks,i=e.push;e.shiftBlocks=function(e){return r.call(this,a(e,function(e){return u(e,t,n)}))},e.push=function(){var e=i.apply(this,arguments);return o(e,t,n),e}}function u(e,t,n){return function(r,i){return i=i.push({intl:{messages:t,bundle:n}}),e(r,i)}}function a(e,t){var n={};return Object.keys(e).forEach(function(r){n[r]=t(e[r])}),n}function f(e,t,n){function i(t){if(!t)return null;if(typeof t=="function"&&t.template)return t.template;if(e.isTemplateFn(t))return t}var r=e.onLoad;if(!r)throw new Error("dust.onLoad must be configured to use automatic content loading");n("wrapping onLoad function to support content autoloading"),e.onLoad=function(u,a,f){var l=s(f,function(r){n("got template %s",r);var s=i(r);s||(n("Compiling template '%s'",u),s=e.loadSource(e.compile(r,u)));if(s.loadsDefaultContent)a=s;else{n("wrapping template '%s' to look up default content",s.templateName);var a=function(n,r){return n.map(function(n){var i=s.templateName+".properties";t(r,i,function(t,u){t?n.setError(t):(o(r,u,i),e.helpers.useContent(n,r,{block:s},{bundle:i}).end())})})};a.templateName=s.templateName,a.loadsDefaultContent=!0,a.__dustBody=!0}e.config.cache&&(e.cache[s.templateName]=a),f(null,a)});return n("calling old onLoad to get template '%s'",u),r.length===2?r.call(this,u,l):r.call(this,u,a,l)}}var r=n(2),i=n(3),s=n(4);e.exports=function(e,t,n,s){n=n||{},t("registering");var o=n.autoloadTemplateContent==null||n.autoloadTemplateContent;t("will autoload template content? %j",o),r.withLoader(s).registerWith(e),i.registerWith(e,{enableMetadata:n.enableMetadata}),o&&f(e,s,t)}},function(e,t){"use strict";e.exports=function(e){function n(t,n,r,i){return r.block?t.map(function(t){e(n,i.bundle,function(e,s){e?t.setError(e):(n=n.push({intl:{messages:s,bundle:i.bundle}}),r.block(t,n).end())})}):t}if(typeof e!="function"||e.length!==3)throw new TypeError("lookup function must be in the form function(context, bundle, callback) { ... }");var t=function(t){t.helpers.useContent=n};return t.registerWith=t,t},e.exports.withLoader=e.exports},function(e,t){"use strict";function i(e,t){if(typeof t=="string"){var i=isNaN(parseInt(e,10))?r:n;t=t.replace(i,e)}return t}function s(e,t,i){var s=Array.isArray(e)?n:r;return function(r){var o,u,a,f;return f=e[r],typeof f!="string"?"":(o=f.replace(s,r),u=t.replace(s,r),a=i.replace(s,r),u+o+a)}}function o(e){var t=Array.isArray(e)?n:r;return function(r){var i=parseInt(r,10);if(typeof e[r]=="object"){var s=u(e[r],o(e[r]));return{$id:isNaN(i)?r:i,$elt:s}}return{$id:isNaN(i)?r:i,$elt:e[r].replace(t,r)}}}function u(e,t){return Object.keys(e).map(t)}var n=new RegExp("\\$idx","g"),r=new RegExp("\\$key","g");e.exports=function(e,t){function n(t){return e.filter(t,undefined,["h"])}t=t||{},e.helpers.pre=e.helpers.message=function(a,f,l,c){if(c.type&&c.type!=="content")return a.write("");var h=c.before||"",p=c.after||"",d=c.mode||"",v=c.sep||"",m=f.get("intl.messages."+c.key)||f.get("messages."+c.key)||"☃"+c.key+"☃";return typeof m=="string"?m=d==="json"?JSON.stringify(m):h+m+p:typeof m=="object"&&m!==null?d==="json"?m=JSON.stringify(m,i):d==="paired"?(m=u(m,o(m)),m=JSON.stringify(m)):(m=u(m,s(m,h,p)),m=m.join(v)):m=String(m),t.enableMetadata&&!c.noEdit&&(m='<edit data-key="'+n(c.key)+'" data-bundle="'+n(f.get("intl.bundle"))+'" data-original="'+n(m)+'">'+m+"</edit>"),a.map(function(t){var n=f.templateName+c.key+encodeURI(m).replace(/%/g,"_"),r=e.cache[n]||e.loadSource(e.compile(m,n));r(t,f).end()})}},e.exports.registerWith=e.exports},function(e,t){(function(){var t,n,r,i,s,o=[].slice;n=function(e,t){return function(){var n,r;return r=arguments[0],n=2<=arguments.length?o.call(arguments,1):[],r!=null?e(r):typeof t=="function"?t.apply(null,n):void 0}},s=function(e,t){return n(e,function(){var n,r;n=1<=arguments.length?o.call(arguments,0):[];try{return t.apply(null,n)}catch(i){return r=i,e(r)}})},i=n.bind(null,function(e){throw e}),r=n(function(e){return console.error(e.stack||e)}),e.exports=t=n,t.iferr=n,t.tiferr=s,t.throwerr=i,t.printerr=r}).call(this)}])}),function(e,t){typeof define=="function"&&define.amd&&define.amd.dust===!0?define("dusthelpers-supplement/index",["dust.core"],t):typeof exports=="object"?module.exports=t(require("dustjs-linkedin")):t(e.dust)}(this,function extend(dust){function tokenize(t){"use strict";var n={"((":1,"))":1,"!!":1,"<!":1,">!":1,">=!":1,"<=!":1,"==!":1,"!=!":1,"&&!":1,"||!":1,"]&&":1,"]||":1,"]>":1,"]<":1,"]<=":1,"]>=":1,"]==":1,"]!=":1,"].":1,"[(":1,"])":1,")&&":1,")||":1,")>":1,")<":1,")<=":1,")>=":1,")==":1,")!=":1,")!":1,")]":1,"]]":1,"&&(":1,"||(":1,">'":1,"<(":1,"<=(":1,">=(":1,"==(":1,"!=(":1,"!(":1},r=[],i=0,s,o,u,a,f,l,c,h,p;if(tokCache[t])return tokCache[t];while(i<t.length){u=i,a=t[i],o=t.charCodeAt(i);if(o===SPACE||o===TAB)i++;else if(o===QUOTE||o===APOS){f=STR,s=a,i++;while(i<t.length){t.charCodeAt(i)===BACKSLASH&&i++,s+=t[i];if(t.charCodeAt(i)===o)break;i++}s.charCodeAt(s.length-1)!==o&&(f=ERR,s='"Unclosed string constant"'),pushToken(r,f,s.slice(1,s.length-1)),i++}else if(o>=ZERO&&o<=NINE||o===MINUS||o===DOT&&t.charCodeAt(i+1)>=ZERO&&t.charCodeAt(i+1)<=NINE){if(o===ZERO&&t.charCodeAt(i+1)===x||t.charCodeAt(i+1)===X){while(++i<t.length&®exHex.test(t[i+1]));p=parseInt(t.slice(u,i+1),16),pushToken(r,NUM,p)}else{if(o!==DOT)i=collectDigits(t,i),t.charCodeAt(i+1)===DOT&&(i+=1);else if(t.charCodeAt(i+1)===DOT){pushToken(r,ERR,"Consecutive periods invalid"+t);break}i=collectDigits(t,i);if(t.charCodeAt(i+1)===e||t.charCodeAt(i+1)===E)i=collectExponent(t,i);p=parseFloat(t.slice(u,i+1)),pushToken(r,NUM,p)}i++}else{if(t.charCodeAt(i)===DOT){pushToken(r,DOT,"."),i++;continue}l=testOperator(t.charCodeAt(i),t.charCodeAt(i+1));if(l)f=OP,i+=l[1],c="",r.length>0&&(h=r[r.length-1],h.type===OP&&(c=OPS[h.value]+OPS[l[0]],n[c]||(l[0]="Invalid expression, consecutive operators "+c+" in "+t,l[2]=0,f=ERR))),pushToken(r,f,l[0],l[2]);else{s="";while(i<t.length){if(!isNameChar(t.charCodeAt(i))){i--;break}s+=t[i++]}if(!s.length)return pushToken(r,ERR,"Invalid Expression near "+t[i]+t[i+1]),r;pushToken(r,NAME,s),i++}}}var d=r[r.length-1];return d.type===OP&&d.value!==RPARENOP&&d.value!==RBRACKOP&&pushToken(r,ERR,"Invalid expression, ended with an operator:"+t),tokCache[t]||(tokCacheList[nextTokCacheEntry]=t,tokCache[t]=r,nextTokCacheEntry=(nextTokCacheEntry+1)%TOK_CACHE_SIZE,tokCacheList[nextTokCacheEntry]&&delete tokCache[tokCacheList[nextTokCacheEntry]]),r}function pushToken(e,t,n,r){"use strict";e.push({type:t,value:n,priority:r})}function isNameChar(e){"use strict";if(e>=a&&e<=z)return!0;if(e>=A&&e<=Z)return!0;if(e>=ZERO&&e<=NINE)return!0;if(e===USCORE)return!0;if(e===DOLLAR)return!0}function testOperator(e,t){"use strict";if(e===EQ&&t===EQ)return[EQOP,2,30];if(e===EXCLAIM)return t===EQ?[NEOP,2,30]:[NOTOP,1,50];if(e===LT)return t===EQ?[LEOP,2,40]:[LTOP,1,40];if(e===GT)return t===EQ?[GEOP,2,40]:[GTOP,1,40];if(e===AND&&t===AND)return[ANDOP,2,20];if(e===OR&&t===OR)return[OROP,2,10];if(e===LBRACK)return[LBRACKOP,1,5];if(e===RBRACK)return[RBRACKOP,1,0];if(e===LPAREN)return[LPARENOP,1,5];if(e===RPAREN)return[RPARENOP,1,0]}function collectDigits(e,t){"use strict";while(t<e.length&&e.charCodeAt(t+1)>=ZERO&&e.charCodeAt(t+1)<=NINE)t+=1;return t}function collectExponent(e,t){"use strict";if(e.charCodeAt(++t+1)===PLUS||e.charCodeAt(t+1)===MINUS)t+=1;return t=collectDigits(e,t),t}function evaluate(e,t,n){"use strict";var r=[],i=[],s=[],o,u=0;while(u<e.length){o=e[u];if(o.type===NAME||o.type===DOT){u=collectName(e,u,n,t,s),i.push(getPathValue(s,n)),s.length=0;continue}u++;if(o.type===OP)evalOperator(r,i,o,n);else if(o.type===NUM)i.push(o.value);else if(o.type===STR)i.push(o.value);else if(o.type===ERR)throw r.length=0,i.length=0,o.value}while(r.length>0){o=r[r.length-1];if(r.length>=1&&i.length===0)throw"Invalid expression - too few operands:"+t;if(o.value===RPARENOP||o.value===LPARENOP)throw"Unbalanced parentheses: "+t;if(o.value===RBRACKOP||o.value===LBRACKOP)throw"Unbalanced brackets:"+t;evalOperator(r,i,{type:END,value:ENDOP,priority:-9999},n)}if(i.length>1)throw"Invalid expression - excess operands:"+t;return i.pop()}function collectName(e,t,n,r,i){"use strict";var s,o;e[t].type===DOT&&(i.push(""),t++,o=!0);while(t<e.length){s=e[t],t++;if(s.type===NAME)i.push(s.value),o=!1;else if(s.type===DOT){if(o)throw"Consecutive dots in paths are invalid"+r;o=!0}else{if(s.type!==OP||s.value!==LBRACKOP){if(o&&i.length>1)throw"Path ending with . is invalid - "+r;return t-1}t=evaluateSubscript(e,t,r,n,i),o=!1}}if(o)throw"Path ending with . is invalid: "+r;return t}function evaluateSubscript(e,t,n,r,i){"use strict";var s=1,o=t,u;while(o++){if(o>=e.length)throw"Unbalanced subscript brackets:"+n;e[o].value===LBRACKOP?s++:e[o].value===RBRACKOP&&s--;if(s===0)return u=evaluate(e.slice(t,o),n,r),i.push(u),o+1}}function evalOperator(e,t,n){"use strict";var r,i,s,o,u,a;a=n.priority;if(e.length>0){if(n.value===LPARENOP||n.value===LBRACKOP||n.value===NOTOP){e.push(n);return}r=e[e.length-1];while(r&&a<=r.priority){if(n.value===RPARENOP&&r.value===LPARENOP){e.pop();return}s=actions[r.value];if(!s)throw"Invalid expression format";i=e.pop(),r=e[e.length-1],u=t.pop(),i.value===NOTOP?o=u:o=t.pop(),t.push(s(o,u))}}n.type!==END&&e.push(n)}function getPathValue(e,t){"use strict";return e.length===1&&e[0].length!==0?t.get(e[0]):e[0].length===0?t.getPath(!0,e.slice(1)):t.getPath(!1,e)}function lt(e,t){return e<t}function gt(e,t){return e>t}function le(e,t){return e<=t}function ge(e,t){return e>=t}function eq(e,t){return e===t}function ne(e,t){return e!==t}function and(e,t){return e&&t}function or(e,t){return e||t}function not(e){return!e}dust.helpers.link=function(t,n,r,i){"use strict";var s,o=n.getPath(!1,["context","pageInfo","hostName"]),u,a,f,l,c,h,p,d,v,m;if(i){if(!i.href)return t.write("");s=dust.helpers.tap(i.href,t,n),s=s.trim(),p=/\.[0-9a-z]{1,4}$/i,d=s.match(p),i.type&&(v=dust.helpers.tap(i.type,t,n),v==="command"&&(d="")),i.cobrand&&(c=dust.helpers.tap(i.cobrand,t,n))}o?o.indexOf("stage")>=0||process&&process.env&&/stag/gi.test(process.env.DEPLOY_ENV)?a=!0:o.indexOf("localhost.paypal.com")>=0?l=!0:o.indexOf("sandbox")>=0?f=!0:u=!0:o="www.paypalobjects.com";if(!d||s.indexOf("?")>=0)return s.charAt(0)==="/"&&(c=c||n.getPath(!1,["context","locality","cobrand"]),c&&(c=c.toLowerCase(),s="/"+c+s)),t.write(s);m="https://www.paypalobjects.com",d[0]=d[0].toLowerCase();if(d[0]===".js"||d[0]===".css"){if(a||f)o.indexOf(":")>=0&&(o=o.substring(0,o.indexOf(":"))),m="https://"+o;return s=m+(s.charAt(0)!=="/"?"/"+s:s),t.write(s)}return m="https://www.paypalobjects.com/webstatic",s=m+(s.charAt(0)!=="/"?"/"+s:s),t.write(s)},dust.helpers["if"]=function(chunk,context,bodies,params){var body=bodies.block,result,test,skip=bodies["else"];if(params){if(params.test){test=params.test,typeof test!="string"&&(test=dust.helpers.tap(params.test,chunk,context));var tokens=tokenize(test);try{result=evaluate(tokens,test,context)}catch(e){return console.log("Error:"+e),chunk}}else if(params.cond){var cond=dust.helpers.tap(params.cond,chunk,context);result=eval(cond)}if(result)return body?chunk.render(bodies.block,context):(console.log("Missing body block in the if helper!"),chunk);if(skip)return chunk.render(bodies["else"],context)}else console.log("No condition given in the if helper!");return chunk};var regexHex=new RegExp("[0-9A-Fa-f]"),STR=0,NUM=1,OP=2,NAME=3,ERR=4,END=5,OROP=0,ANDOP=1,EQOP=2,NEOP=3,LTOP=4,GTOP=5,LEOP=6,GEOP=7,NOTOP=8,LPARENOP=9,RPARENOP=10,LBRACKOP=11,RBRACKOP=12,ENDOP=13,OPS=["||","&&","==","!=","<",">","<=",">=","!","(",")","[","]","end"],actions=[or,and,eq,ne,lt,gt,le,ge,not],SPACE=32,TAB=9,EXCLAIM=33,QUOTE=34,DOLLAR=36,AND=38,APOS=39,LPAREN=40,RPAREN=41,PLUS=43,MINUS=45,DOT=46,ZERO=48,NINE=57,LT=60,EQ=61,GT=62,A=65,E=69,X=88,Z=90,LBRACK=91,BACKSLASH=92,RBRACK=93,USCORE=95,a=97,e=101,x=120,z=122,OR=124,TOK_CACHE_SIZE=8,tokCache={},tokCacheList=new Array(TOK_CACHE_SIZE),nextTokCacheEntry=0}),define("dusthelpers-supplement",["dusthelpers-supplement/index"],function(e){return e}),function(e,t){typeof define=="function"&&define.amd&&define.amd.dust===!0?define("pulvus-provide/provide",["dust.core"],t):typeof module=="object"?(module.exports=t(require("dustjs-linkedin")),module.exports.registerWith=t):t(e.dust)}(this,function(e){return e.helpers.provide=function(t,n,r,i){var s=n;return i&&(s=n.push(i)),t.map(function(n){function l(e){n.render(e,s);var t=n,r=[];while(t!==i)r.push.apply(r,t.data),t=t.next;return n.data=[],n.next=i,r.join("")}var i=n.next;t.flushable=!1;var o={};for(var u in r)if(u!=="block"){var a=l(r[u]);try{o[u]=JSON.parse(a)}catch(f){o[u]=a}}t.flushable=!0,n.render(r.block,s.push(o)).end()})},e}),define("pulvus-provide",["pulvus-provide/provide"],function(e){return e}),!function(e,t){"function"==typeof define&&define.amd&&define.amd.dust===!0?define("dustjs-helpers/dist/dust-helpers.min",["dust.core"],t):"object"==typeof exports?(module.exports=t(require("dustjs-linkedin")),module.exports.registerWith=t):t(e.dust)}(this,function(e){function t(t,n,r){r=r||"INFO",t=t?"{@"+t+"}: ":"",e.log(t+n,r)}function n(e){c[e]||(t(e,"Deprecation warning: "+e+" is deprecated and will be removed in a future version of dustjs-helpers","WARN"),t(null,"For help and a deprecation timeline, see https://github.com/linkedin/dustjs-helpers/wiki/Deprecated-Features#"+e.replace(/\W+/g,""),"WARN"),c[e]=!0)}function r(e){return e.stack.tail&&e.stack.tail.head&&"undefined"!=typeof e.stack.tail.head.__select__}function i(e){return r(e)&&e.get("__select__")}function s(e,t){var n,r=e.stack.head,i=e.rebase();e.stack&&e.stack.tail&&(i.stack=e.stack.tail);var s={isPending:!1,isResolved:!1,isDeferredComplete:!1,deferreds:[]};for(n in t)s[n]=t[n];return i.push({__select__:s}).push(r,e.stack.index,e.stack.of)}function o(e){var t,n;if(e.isDeferredPending=!0,e.deferreds.length)for(e.isDeferredComplete=!0,t=0,n=e.deferreds.length;n>t;t++)e.deferreds[t]();e.isDeferredPending=!1}function u(e,t){return"function"==typeof t?t.toString().replace(/(^\s+|\s+$)/gm,"").replace(/\n/gm,"").replace(/,\s*/gm,", ").replace(/\)\{/gm,") {"):t}function a(e,t){return function(n,r,i,s){return f(n,r,i,s,e,t)}}function f(e,n,r,s,o,u){var a,f,c,h,p=r.block,v=r["else"],m=i(n)||{};if(m.isResolved&&!m.isDeferredPending)return e;if(s.hasOwnProperty("key"))f=s.key;else{if(!m.hasOwnProperty("key"))return t(o,"No key specified","WARN"),e;f=m.key}return h=s.type||m.type,f=l(n.resolve(f),h),c=l(n.resolve(s.value),h),u(f,c)?(m.isPending||(a=!0,m.isPending=!0),p&&(e=e.render(p,n)),a&&(m.isResolved=!0)):v&&(e=e.render(v,n)),e}function l(e,t){switch(t&&(t=t.toLowerCase()),t){case"number":return+e;case"string":return String(e);case"boolean":return e="false"===e?!1:e,Boolean(e);case"date":return new Date(e)}return e}var c={},h={tap:function(e,t,r){return n("tap"),r.resolve(e)},sep:function(e,t,n){var r=n.block;return t.stack.index===t.stack.of-1?e:r?r(e,t):e},first:function(e,t,n){return 0===t.stack.index?n.block(e,t):e},last:function(e,t,n){return t.stack.index===t.stack.of-1?n.block(e,t):e},contextDump:function(e,n,r,i){var s,o,a=n.resolve(i.to),f=n.resolve(i.key);switch(f){case"full":s=n.stack;break;default:s=n.stack.head}switch(o=JSON.stringify(s,u,2),a){case"console":t("contextDump",o);break;default:o=o.replace(/</g,"\\u003c"),e=e.write(o)}return e},math:function(e,n,r,u){var a,f=u.key,l=u.method,c=u.operand,h=u.round;if(!u.hasOwnProperty("key")||!u.method)return t("math","`key` or `method` was not provided","ERROR"),e;switch(f=parseFloat(n.resolve(f)),c=parseFloat(n.resolve(c)),l){case"mod":0===c&&t("math","Division by 0","ERROR"),a=f%c;break;case"add":a=f+c;break;case"subtract":a=f-c;break;case"multiply":a=f*c;break;case"divide":0===c&&t("math","Division by 0","ERROR"),a=f/c;break;case"ceil":case"floor":case"round":case"abs":a=Math[l](f);break;case"toint":a=parseInt(f,10);break;default:t("math","Method `"+l+"` is not supported","ERROR")}return"undefined"!=typeof a&&(h&&(a=Math.round(a)),r&&r.block?(n=s(n,{key:a}),e=e.render(r.block,n),o(i(n))):e=e.write(a)),e},select:function(e,n,r,u){var a=r.block,f={};return u.hasOwnProperty("key")&&(f.key=n.resolve(u.key)),u.hasOwnProperty("type")&&(f.type=u.type),a?(n=s(n,f),e=e.render(a,n),o(i(n))):t("select","Missing body block","WARN"),e},eq:a("eq",function(e,t){return e===t}),ne:a("ne",function(e,t){return e!==t}),lt:a("lt",function(e,t){return t>e}),lte:a("lte",function(e,t){return t>=e}),gt:a("gt",function(e,t){return e>t}),gte:a("gte",function(e,t){return e>=t}),any:function(e,n,r){var s=i(n);return s?s.isDeferredComplete?t("any","Must not be nested inside {@any} or {@none} block","ERROR"):e=e.map(function(e){s.deferreds.push(function(){s.isResolved&&(e=e.render(r.block,n)),e.end()})}):t("any","Must be used inside a {@select} block","ERROR"),e},none:function(e,n,r){var s=i(n);return s?s.isDeferredComplete?t("none","Must not be nested inside {@any} or {@none} block","ERROR"):e=e.map(function(e){s.deferreds.push(function(){s.isResolved||(e=e.render(r.block,n)),e.end()})}):t("none","Must be used inside a {@select} block","ERROR"),e},size:function(t,n,r,i){var s,o,u=i.key;if(u=n.resolve(i.key),u&&u!==!0)if(e.isArray(u))s=u.length;else if(!isNaN(parseFloat(u))&&isFinite(u))s=u;else if("object"==typeof u){s=0;for(o in u)u.hasOwnProperty(o)&&s++}else s=(u+"").length;else s=0;return t.write(s)}};for(var p in h)e.helpers[p]=h[p];return e}),define("dustjs-helpers",["dustjs-helpers/dist/dust-helpers.min"],function(e){return e}),define("newgat",["jquery","underscore","dustjs-linkedin","dust-makara-helpers/browser.amd","dusthelpers-supplement","pulvus-provide","dustjs-helpers"],function(e,t,n,r){function u(e,t,n){if(e instanceof Array&&Array.prototype.forEach)return e.forEach(t,n);var r=Object(e),i=null,s=null;for(i in r)if(r.hasOwnProperty(i)){s=t.call(n,r[i],i,r);if(s===!1)break}}function a(e,t){var n=null;for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function f(e){return u(Array.prototype.slice.call(arguments,1),function(t){a(t,e)}),e}r.registerWith(n,{autoloadTemplateContent:!0,loader:function(e,t,n){var r=document.documentElement.getAttribute("lang").replace("_","-");require(["_languagepack"],function(e){n(null,e[r][t])})}});var i=null,s=null,o=null;return i=function(){},i.prototype={render:function(t,n){var t=t+".dust",r=new e.Deferred;return this._doRender(t,n,function(e,n){if(e)return r.reject(e);r.resolve(n,t)}),r.promise()},_doRender:function(e,t,n){}},s=function(e){var t="/templates/%s";n.onLoad=function(n,r){var i=e.getContext().templatePath||t,s=i.replace("%s",n),o={};o["templates/"+n]=s,requirejs.config({paths:o}),require(["templates/"+n],function(e){r(null,e)})}},s.prototype=f(i.prototype,{_doRender:function(e,t,r){var i={};t=t||{},t.content&&(i.cn=t.content,delete t.content),t=n.makeBase(i).push(t),n.render(e,t,r)}}),o=function(){this._context={},this._eventCache={},this.viewRenderer=new s(this)},o.prototype={setContext:function(e){return a(e,this._context)},getContext:function(){return this._context},getTemplateBasePath:function(){var e=this.getContext(),n=e.templatePath,r="/%s.js",i=t.lastIndexOf(n,"/",n.length-r.length-1),s=n.substring(0,i)+"/";return s}},new o}),define("newgat/index",function(){}),function(e){var t=typeof self=="object"&&self.self===self&&self||typeof global=="object"&&global.global===global&&global;if(typeof define=="function"&&define.amd)define("backbone",["underscore","jquery","exports"],function(n,r,i){t.Backbone=e(t,i,n,r)});else if(typeof exports!="undefined"){var n=require("underscore"),r;try{r=require("jquery")}catch(i){}e(t,exports,n,r)}else t.Backbone=e(t,{},t._,t.jQuery||t.Zepto||t.ender||t.$)}(function(e,t,n,r){var i=e.Backbone,s=Array.prototype.slice;t.VERSION="1.3.3",t.$=r,t.noConflict=function(){return e.Backbone=i,this},t.emulateHTTP=!1,t.emulateJSON=!1;var o=function(e,t,r){switch(e){case 1:return function(){return n[t](this[r])};case 2:return function(e){return n[t](this[r],e)};case 3:return function(e,i){return n[t](this[r],a(e,this),i)};case 4:return function(e,i,s){return n[t](this[r],a(e,this),i,s)};default:return function(){var e=s.call(arguments);return e.unshift(this[r]),n[t].apply(n,e)}}},u=function(e,t,r){n.each(t,function(t,i){n[i]&&(e.prototype[i]=o(t,i,r))})},a=function(e,t){return n.isFunction(e)?e:n.isObject(e)&&!t._isModel(e)?f(e):n.isString(e)?function(t){return t.get(e)}:e},f=function(e){var t=n.matches(e);return function(e){return t(e.attributes)}},l=t.Events={},c=/\s+/,h=function(e,t,r,i,s){var o=0,u;if(r&&typeof r=="object"){i!==void 0&&"context"in s&&s.context===void 0&&(s.context=i);for(u=n.keys(r);o<u.length;o++)t=h(e,t,u[o],r[u[o]],s)}else if(r&&c.test(r))for(u=r.split(c);o<u.length;o++)t=e(t,u[o],i,s);else t=e(t,r,i,s);return t};l.on=function(e,t,n){return p(this,e,t,n)};var p=function(e,t,n,r,i){e._events=h(d,e._events||{},t,n,{context:r,ctx:e,listening:i});if(i){var s=e._listeners||(e._listeners={});s[i.id]=i}return e};l.listenTo=function(e,t,r){if(!e)return this;var i=e._listenId||(e._listenId=n.uniqueId("l")),s=this._listeningTo||(this._listeningTo={}),o=s[i];if(!o){var u=this._listenId||(this._listenId=n.uniqueId("l"));o=s[i]={obj:e,objId:i,id:u,listeningTo:s,count:0}}return p(e,t,r,this,o),this};var d=function(e,t,n,r){if(n){var i=e[t]||(e[t]=[]),s=r.context,o=r.ctx,u=r.listening;u&&u.count++,i.push({callback:n,context:s,ctx:s||o,listening:u})}return e};l.off=function(e,t,n){return this._events?(this._events=h(v,this._events,e,t,{context:n,listeners:this._listeners}),this):this},l.stopListening=function(e,t,r){var i=this._listeningTo;if(!i)return this;var s=e?[e._listenId]:n.keys(i);for(var o=0;o<s.length;o++){var u=i[s[o]];if(!u)break;u.obj.off(t,r,this)}return this};var v=function(e,t,r,i){if(!e)return;var s=0,o,u=i.context,a=i.listeners;if(!t&&!r&&!u){var f=n.keys(a);for(;s<f.length;s++)o=a[f[s]],delete a[o.id],delete o.listeningTo[o.objId];return}var l=t?[t]:n.keys(e);for(;s<l.length;s++){t=l[s];var c=e[t];if(!c)break;var h=[];for(var p=0;p<c.length;p++){var d=c[p];r&&r!==d.callback&&r!==d.callback._callback||u&&u!==d.context?h.push(d):(o=d.listening,o&&--o.count===0&&(delete a[o.id],delete o.listeningTo[o.objId]))}h.length?e[t]=h:delete e[t]}return e};l.once=function(e,t,r){var i=h(m,{},e,t,n.bind(this.off,this));return typeof e=="string"&&r==null&&(t=void 0),this.on(i,t,r)},l.listenToOnce=function(e,t,r){var i=h(m,{},t,r,n.bind(this.stopListening,this,e));return this.listenTo(e,i)};var m=function(e,t,r,i){if(r){var s=e[t]=n.once(function(){i(t,s),r.apply(this,arguments)});s._callback=r}return e};l.trigger=function(e){if(!this._events)return this;var t=Math.max(0,arguments.length-1),n=Array(t);for(var r=0;r<t;r++)n[r]=arguments[r+1];return h(g,this._events,e,void 0,n),this};var g=function(e,t,n,r){if(e){var i=e[t],s=e.all;i&&s&&(s=s.slice()),i&&y(i,r),s&&y(s,[t].concat(r))}return e},y=function(e,t){var n,r=-1,i=e.length,s=t[0],o=t[1],u=t[2];switch(t.length){case 0:while(++r<i)(n=e[r]).callback.call(n.ctx);return;case 1:while(++r<i)(n=e[r]).callback.call(n.ctx,s);return;case 2:while(++r<i)(n=e[r]).callback.call(n.ctx,s,o);return;case 3:while(++r<i)(n=e[r]).callback.call(n.ctx,s,o,u);return;default:while(++r<i)(n=e[r]).callback.apply(n.ctx,t);return}};l.bind=l.on,l.unbind=l.off,n.extend(t,l);var b=t.Model=function(e,t){var r=e||{};t||(t={}),this.cid=n.uniqueId(this.cidPrefix),this.attributes={},t.collection&&(this.collection=t.collection),t.parse&&(r=this.parse(r,t)||{});var i=n.result(this,"defaults");r=n.defaults(n.extend({},i,r),i),this.set(r,t),this.changed={},this.initialize.apply(this,arguments)};n.extend(b.prototype,l,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",initialize:function(){},toJSON:function(e){return n.clone(this.attributes)},sync:function(){return t.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return n.escape(this.get(e))},has:function(e){return this.get(e)!=null},matches:function(e){return!!n.iteratee(e,this)(this.attributes)},set:function(e,t,r){if(e==null)return this;var i;typeof e=="object"?(i=e,r=t):(i={})[e]=t,r||(r={});if(!this._validate(i,r))return!1;var s=r.unset,o=r.silent,u=[],a=this._changing;this._changing=!0,a||(this._previousAttributes=n.clone(this.attributes),this.changed={});var f=this.attributes,l=this.changed,c=this._previousAttributes;for(var h in i)t=i[h],n.isEqual(f[h],t)||u.push(h),n.isEqual(c[h],t)?delete l[h]:l[h]=t,s?delete f[h]:f[h]=t;this.idAttribute in i&&(this.id=this.get(this.idAttribute));if(!o){u.length&&(this._pending=r);for(var p=0;p<u.length;p++)this.trigger("change:"+u[p],this,f[u[p]],r)}if(a)return this;if(!o)while(this._pending)r=this._pending,this._pending=!1,this.trigger("change",this,r);return this._pending=!1,this._changing=!1,this},unset:function(e,t){return this.set(e,void 0,n.extend({},t,{unset:!0}))},clear:function(e){var t={};for(var r in this.attributes)t[r]=void 0;return this.set(t,n.extend({},e,{unset:!0}))},hasChanged:function(e){return e==null?!n.isEmpty(this.changed):n.has(this.changed,e)},changedAttributes:function(e){if(!e)return this.hasChanged()?n.clone(this.changed):!1;var t=this._changing?this._previousAttributes:this.attributes,r={};for(var i in e){var s=e[i];if(n.isEqual(t[i],s))continue;r[i]=s}return n.size(r)?r:!1},previous:function(e){return e==null||!this._previousAttributes?null:this._previousAttributes[e]},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(e){e=n.extend({parse:!0},e);var t=this,r=e.success;return e.success=function(n){var i=e.parse?t.parse(n,e):n;if(!t.set(i,e))return!1;r&&r.call(e.context,t,n,e),t.trigger("sync",t,n,e)},R(this,e),this.sync("read",this,e)},save:function(e,t,r){var i;e==null||typeof e=="object"?(i=e,r=t):(i={})[e]=t,r=n.extend({validate:!0,parse:!0},r);var s=r.wait;if(i&&!s){if(!this.set(i,r))return!1}else if(!this._validate(i,r))return!1;var o=this,u=r.success,a=this.attributes;r.success=function(e){o.attributes=a;var t=r.parse?o.parse(e,r):e;s&&(t=n.extend({},i,t));if(t&&!o.set(t,r))return!1;u&&u.call(r.context,o,e,r),o.trigger("sync",o,e,r)},R(this,r),i&&s&&(this.attributes=n.extend({},a,i));var f=this.isNew()?"create":r.patch?"patch":"update";f==="patch"&&!r.attrs&&(r.attrs=i);var l=this.sync(f,this,r);return this.attributes=a,l},destroy:function(e){e=e?n.clone(e):{};var t=this,r=e.success,i=e.wait,s=function(){t.stopListening(),t.trigger("destroy",t,t.collection,e)};e.success=function(n){i&&s(),r&&r.call(e.context,t,n,e),t.isNew()||t.trigger("sync",t,n,e)};var o=!1;return this.isNew()?n.defer(e.success):(R(this,e),o=this.sync("delete",this,e)),i||s(),o},url:function(){var e=n.result(this,"urlRoot")||n.result(this.collection,"url")||q();if(this.isNew())return e;var t=this.get(this.idAttribute);return e.replace(/[^\/]$/,"$&/")+encodeURIComponent(t)},parse:function(e,t){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(e){return this._validate({},n.extend({},e,{validate:!0}))},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=n.extend({},this.attributes,e);var r=this.validationError=this.validate(e,t)||null;return r?(this.trigger("invalid",this,r,n.extend(t,{validationError:r})),!1):!0}});var w={keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1};u(b,w,"attributes");var E=t.Collection=function(e,t){t||(t={}),t.model&&(this.model=t.model),t.comparator!==void 0&&(this.comparator=t.comparator),this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,n.extend({silent:!0},t))},S={add:!0,remove:!0,merge:!0},x={add:!0,remove:!1},T=function(e,t,n){n=Math.min(Math.max(n,0),e.length);var r=Array(e.length-n),i=t.length,s;for(s=0;s<r.length;s++)r[s]=e[s+n];for(s=0;s<i;s++)e[s+n]=t[s];for(s=0;s<r.length;s++)e[s+i+n]=r[s]};n.extend(E.prototype,l,{model:b,initialize:function(){},toJSON:function(e){return this.map(function(t){return t.toJSON(e)})},sync:function(){return t.sync.apply(this,arguments)},add:function(e,t){return this.set(e,n.extend({merge:!1},t,x))},remove:function(e,t){t=n.extend({},t);var r=!n.isArray(e);e=r?[e]:e.slice();var i=this._removeModels(e,t);return!t.silent&&i.length&&(t.changes={added:[],merged:[],removed:i},this.trigger("update",this,t)),r?i[0]:i},set:function(e,t){if(e==null)return;t=n.extend({},S,t),t.parse&&!this._isModel(e)&&(e=this.parse(e,t)||[]);var r=!n.isArray(e);e=r?[e]:e.slice();var i=t.at;i!=null&&(i=+i),i>this.length&&(i=this.length),i<0&&(i+=this.length+1);var s=[],o=[],u=[],a=[],f={},l=t.add,c=t.merge,h=t.remove,p=!1,d=this.comparator&&i==null&&t.sort!==!1,v=n.isString(this.comparator)?this.comparator:null,m,g;for(g=0;g<e.length;g++){m=e[g];var y=this.get(m);if(y){if(c&&m!==y){var b=this._isModel(m)?m.attributes:m;t.parse&&(b=y.parse(b,t)),y.set(b,t),u.push(y),d&&!p&&(p=y.hasChanged(v))}f[y.cid]||(f[y.cid]=!0,s.push(y)),e[g]=y}else l&&(m=e[g]=this._prepareModel(m,t),m&&(o.push(m),this._addReference(m,t),f[m.cid]=!0,s.push(m)))}if(h){for(g=0;g<this.length;g++)m=this.models[g],f[m.cid]||a.push(m);a.length&&this._removeModels(a,t)}var w=!1,E=!d&&l&&h;s.length&&E?(w=this.length!==s.length||n.some(this.models,function(e,t){return e!==s[t]}),this.models.length=0,T(this.models,s,0),this.length=this.models.length):o.length&&(d&&(p=!0),T(this.models,o,i==null?this.length:i),this.length=this.models.length),p&&this.sort({silent:!0});if(!t.silent){for(g=0;g<o.length;g++)i!=null&&(t.index=i+g),m=o[g],m.trigger("add",m,this,t);(p||w)&&this.trigger("sort",this,t);if(o.length||a.length||u.length)t.changes={added:o,removed:a,merged:u},this.trigger("update",this,t)}return r?e[0]:e},reset:function(e,t){t=t?n.clone(t):{};for(var r=0;r<this.models.length;r++)this._removeReference(this.models[r],t);return t.previousModels=this.models,this._reset(),e=this.add(e,n.extend({silent:!0},t)),t.silent||this.trigger("reset",this,t),e},push:function(e,t){return this.add(e,n.extend({at:this.length},t))},pop:function(e){var t=this.at(this.length-1);return this.remove(t,e)},unshift:function(e,t){return this.add(e,n.extend({at:0},t))},shift:function(e){var t=this.at(0);return this.remove(t,e)},slice:function(){return s.apply(this.models,arguments)},get:function(e){return e==null?void 0:this._byId[e]||this._byId[this.modelId(e.attributes||e)]||e.cid&&this._byId[e.cid]},has:function(e){return this.get(e)!=null},at:function(e){return e<0&&(e+=this.length),this.models[e]},where:function(e,t){return this[t?"find":"filter"](e)},findWhere:function(e){return this.where(e,!0)},sort:function(e){var t=this.comparator;if(!t)throw new Error("Cannot sort a set without a comparator");e||(e={});var r=t.length;return n.isFunction(t)&&(t=n.bind(t,this)),r===1||n.isString(t)?this.models=this.sortBy(t):this.models.sort(t),e.silent||this.trigger("sort",this,e),this},pluck:function(e){return this.map(e+"")},fetch:function(e){e=n.extend({parse:!0},e);var t=e.success,r=this;return e.success=function(n){var i=e.reset?"reset":"set";r[i](n,e),t&&t.call(e.context,r,n,e),r.trigger("sync",r,n,e)},R(this,e),this.sync("read",this,e)},create:function(e,t){t=t?n.clone(t):{};var r=t.wait;e=this._prepareModel(e,t);if(!e)return!1;r||this.add(e,t);var i=this,s=t.success;return t.success=function(e,t,n){r&&i.add(e,n),s&&s.call(n.context,e,t,n)},e.save(null,t),e},parse:function(e,t){return e},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(e){return e[this.model.prototype.idAttribute||"id"]},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(e,t){if(this._isModel(e))return e.collection||(e.collection=this),e;t=t?n.clone(t):{},t.collection=this;var r=new this.model(e,t);return r.validationError?(this.trigger("invalid",this,r.validationError,t),!1):r},_removeModels:function(e,t){var n=[];for(var r=0;r<e.length;r++){var i=this.get(e[r]);if(!i)continue;var s=this.indexOf(i);this.models.splice(s,1),this.length--,delete this._byId[i.cid];var o=this.modelId(i.attributes);o!=null&&delete this._byId[o],t.silent||(t.index=s,i.trigger("remove",i,this,t)),n.push(i),this._removeReference(i,t)}return n},_isModel:function(e){return e instanceof b},_addReference:function(e,t){this._byId[e.cid]=e;var n=this.modelId(e.attributes);n!=null&&(this._byId[n]=e),e.on("all",this._onModelEvent,this)},_removeReference:function(e,t){delete this._byId[e.cid];var n=this.modelId(e.attributes);n!=null&&delete this._byId[n],this===e.collection&&delete e.collection,e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,t,n,r){if(t){if((e==="add"||e==="remove")&&n!==this)return;e==="destroy"&&this.remove(t,r);if(e==="change"){var i=this.modelId(t.previousAttributes()),s=this.modelId(t.attributes);i!==s&&(i!=null&&delete this._byId[i],s!=null&&(this._byId[s]=t))}}this.trigger.apply(this,arguments)}});var N={forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3};u(E,N,"models");var C=t.View=function(e){this.cid=n.uniqueId("view"),n.extend(this,n.pick(e,L)),this._ensureElement(),this.initialize.apply(this,arguments)},k=/^(\S+)\s*(.*)$/,L=["model","collection","el","id","attributes","className","tagName","events"];n.extend(C.prototype,l,{tagName:"div",$:function(e){return this.$el.find(e)},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(e){return this.undelegateEvents(),this._setElement(e),this.delegateEvents(),this},_setElement:function(e){this.$el=e instanceof t.$?e:t.$(e),this.el=this.$el[0]},delegateEvents:function(e){e||(e=n.result(this,"events"));if(!e)return this;this.undelegateEvents();for(var t in e){var r=e[t];n.isFunction(r)||(r=this[r]);if(!r)continue;var i=t.match(k);this.delegate(i[1],i[2],n.bind(r,this))}return this},delegate:function(e,t,n){return this.$el.on(e+".delegateEvents"+this.cid,t,n),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(e,t,n){return this.$el.off(e+".delegateEvents"+this.cid,t,n),this},_createElement:function(e){return document.createElement(e)},_ensureElement:function(){if(!this.el){var e=n.extend({},n.result(this,"attributes"));this.id&&(e.id=n.result(this,"id")),this.className&&(e["class"]=n.result(this,"className")),this.setElement(this._createElement(n.result(this,"tagName"))),this._setAttributes(e)}else this.setElement(n.result(this,"el"))},_setAttributes:function(e){this.$el.attr(e)}}),t.sync=function(e,r,i){var s=A[e];n.defaults(i||(i={}),{emulateHTTP:t.emulateHTTP,emulateJSON:t.emulateJSON});var o={type:s,dataType:"json"};i.url||(o.url=n.result(r,"url")||q()),i.data==null&&r&&(e==="create"||e==="update"||e==="patch")&&(o.contentType="application/json",o.data=JSON.stringify(i.attrs||r.toJSON(i))),i.emulateJSON&&(o.contentType="application/x-www-form-urlencoded",o.data=o.data?{model:o.data}:{});if(i.emulateHTTP&&(s==="PUT"||s==="DELETE"||s==="PATCH")){o.type="POST",i.emulateJSON&&(o.data._method=s);var u=i.beforeSend;i.beforeSend=function(e){e.setRequestHeader("X-HTTP-Method-Override",s);if(u)return u.apply(this,arguments)}}o.type!=="GET"&&!i.emulateJSON&&(o.processData=!1);var a=i.error;i.error=function(e,t,n){i.textStatus=t,i.errorThrown=n,a&&a.call(i.context,e,t,n)};var f=i.xhr=t.ajax(n.extend(o,i));return r.trigger("request",r,f,i),f};var A={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};t.ajax=function(){return t.$.ajax.apply(t.$,arguments)};var O=t.Router=function(e){e||(e={}),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},M=/\((.*?)\)/g,_=/(\(\?)?:\w+/g,D=/\*\w+/g,P=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(O.prototype,l,{initialize:function(){},route:function(e,r,i){n.isRegExp(e)||(e=this._routeToRegExp(e)),n.isFunction(r)&&(i=r,r=""),i||(i=this[r]);var s=this;return t.history.route(e,function(n){var o=s._extractParameters(e,n);s.execute(i,o,r)!==!1&&(s.trigger.apply(s,["route:"+r].concat(o)),s.trigger("route",r,o),t.history.trigger("route",s,r,o))}),this},execute:function(e,t,n){e&&e.apply(this,t)},navigate:function(e,n){return t.history.navigate(e,n),this},_bindRoutes:function(){if(!this.routes)return;this.routes=n.result(this,"routes");var e,t=n.keys(this.routes);while((e=t.pop())!=null)this.route(e,this.routes[e])},_routeToRegExp:function(e){return e=e.replace(P,"\\$&").replace(M,"(?:$1)?").replace(_,function(e,t){return t?e:"([^/?]+)"}).replace(D,"([^?]*?)"),new RegExp("^"+e+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(e,t){var r=e.exec(t).slice(1);return n.map(r,function(e,t){return t===r.length-1?e||null:e?decodeURIComponent(e):null})}});var H=t.History=function(){this.handlers=[],this.checkUrl=n.bind(this.checkUrl,this),typeof window!="undefined"&&(this.location=window.location,this.history=window.history)},B=/^[#\/]|\s+$/g,j=/^\/+|\/+$/g,F=/#.*$/;H.started=!1,n.extend(H.prototype,l,{interval:50,atRoot:function(){var e=this.location.pathname.replace(/[^\/]$/,"$&/");return e===this.root&&!this.getSearch()},matchRoot:function(){var e=this.decodeFragment(this.location.pathname),t=e.slice(0,this.root.length-1)+"/";return t===this.root},decodeFragment:function(e){return decodeURI(e.replace(/%25/g,"%2525"))},getSearch:function(){var e=this.location.href.replace(/#.*/,"").match(/\?.+/);return e?e[0]:""},getHash:function(e){var t=(e||this).location.href.match(/#(.*)$/);return t?t[1]:""},getPath:function(){var e=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return e.charAt(0)==="/"?e.slice(1):e},getFragment:function(e){return e==null&&(this._usePushState||!this._wantsHashChange?e=this.getPath():e=this.getHash()),e.replace(B,"")},start:function(e){if(H.started)throw new Error("Backbone.history has already been started");H.started=!0,this.options=n.extend({root:"/"},this.options,e),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._hasHashChange="onhashchange"in window&&(document.documentMode===void 0||document.documentMode>7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!this.history&&!!this.history.pushState,this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(j,"/");if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var t=this.root.slice(0,-1)||"/";return this.location.replace(t+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var r=document.body,i=r.insertBefore(this.iframe,r.firstChild).contentWindow;i.document.open(),i.document.close(),i.location.hash="#"+this.fragment}var s=window.addEventListener||function(e,t){return attachEvent("on"+e,t)};this._usePushState?s("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?s("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval));if(!this.options.silent)return this.loadUrl()},stop:function(){var e=window.removeEventListener||function(e,t){return detachEvent("on"+e,t)};this._usePushState?e("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&e("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),H.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();t===this.fragment&&this.iframe&&(t=this.getHash(this.iframe.contentWindow));if(t===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()},loadUrl:function(e){return this.matchRoot()?(e=this.fragment=this.getFragment(e),n.some(this.handlers,function(t){if(t.route.test(e))return t.callback(e),!0})):!1},navigate:function(e,t){if(!H.started)return!1;if(!t||t===!0)t={trigger:!!t};e=this.getFragment(e||"");var n=this.root;if(e===""||e.charAt(0)==="?")n=n.slice(0,-1)||"/";var r=n+e;e=this.decodeFragment(e.replace(F,""));if(this.fragment===e)return;this.fragment=e;if(this._usePushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,r);else{if(!this._wantsHashChange)return this.location.assign(r);this._updateHash(this.location,e,t.replace);if(this.iframe&&e!==this.getHash(this.iframe.contentWindow)){var i=this.iframe.contentWindow;t.replace||(i.document.open(),i.document.close()),this._updateHash(i.location,e,t.replace)}}if(t.trigger)return this.loadUrl(e)},_updateHash:function(e,t,n){if(n){var r=e.href.replace(/(javascript:|#).*$/,"");e.replace(r+"#"+t)}else e.hash="#"+t}}),t.history=new H;var I=function(e,t){var r=this,i;return e&&n.has(e,"constructor")?i=e.constructor:i=function(){return r.apply(this,arguments)},n.extend(i,r,t),i.prototype=n.create(r.prototype,e),i.prototype.constructor=i,i.__super__=r.prototype,i};b.extend=E.extend=O.extend=C.extend=H.extend=I;var q=function(){throw new Error('A "url" property or function must be specified')},R=function(e,t){var n=t.error;t.error=function(r){n&&n.call(t.context,e,r,t),e.trigger("error",e,r,t)}};return t}),define("lib/clientError/logger",["underscore","jquery","backbone"],function(e,t,n){"use strict";function s(e,n,r,i,s,o){t.post(e,{message:n,href:window.location.href,file:r,line:i,column:s,stack:o&&o.stack||o||"",userAgent:navigator.userAgent})}function o(e){window.onerror=function(t,n,o,u,a){if(i>r)return;i++,s(e,t,n,o,u,a)},requirejs.onError=function(t){var n="require error type: "+t.requireType,r=t.requireModules,i=t;s(e,n,r,"","",i)}}var r=2,i=0;return{error:o,log:s}}),define("lib/newgat-events",["newgat"],function(e){"use strict";function n(e,t,n){if(Array.prototype.filter)return e.filter(t);var r=[],i=e.length-1,s=null;while(i>-1)s=e[i],t.call(n,s,i,e)&&r.unshift(s),i--;return r}function r(e,t,n){if(e instanceof Array&&Array.prototype.forEach)return e.forEach(t,n);var r=Object(e),i=null,s=null;for(i in r)if(r.hasOwnProperty(i)){s=t.call(n,r[i],i,r);if(s===!1)break}}function i(e,t){var n=null;for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function s(e){return r(Array.prototype.slice.call(arguments,1),function(t){i(t,e)}),e}var t=e;t.on=function(e,t,n){var i=this._eventCache;r(e.split(/\s+/),function(e){var r=i[e]||(i[e]=[]);r.push({name:e,callback:t,context:n})})},t.off=function(e,t,i){var s=this._eventCache,o=e?Object(e.split(/\s+/)):null,u=null;if(o&&!t&&!i){r(o,function(e){delete s[e]});return}u={callback:t,context:i},r(s,function(e,t){if(!o||o.hasOwnProperty(t))s[t]=n(e,function(e){var t=!1;return r(u,function(n,r){return n&&n!==e[r]&&(t=!0),!t}),t})})},t.trigger=function(e){var t=this._eventCache,n=Array.prototype.slice.call(arguments,1),i=null;r(e.split(/\s+/),function(e){i=t[e],i&&r(i,function(e){e.callback.apply(e.context,n)})})}}),define("lib/jquery-custom-converter",["jquery"],function(e){e.ajaxSetup({converters:{"text json":function(e){try{return JSON.parse(e)}catch(t){var n=e&&e[0]||"";switch(n){case"{":e+="}";break;case"[":e+="]";break;case'"':e+='"';break;case"n":e+="l"}return JSON.parse(e)}}}})}),typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(t,n){"use strict";if(t==null)throw new TypeError("Cannot convert undefined or null to object");var r=Object(t);for(var i=1;i<arguments.length;i++){var s=arguments[i];if(s!=null)for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(r[o]=s[o])}return r},writable:!0,configurable:!0}),define("polyfill",function(){}),define.amd.dust=!0,requirejs.config({packages:[{name:"dust-makara-helpers",version:"4.2.0",location:"components/dust-makara-helpers",main:"browser.js"},{name:"dusthelpers-supplement",version:"2.0.1",location:"components/dusthelpers-supplement",main:"index"},{name:"dustjs-helpers",version:"1.7.4",location:"components/dustjs-helpers",main:"dist/dust-helpers.min"},{name:"dustjs-linkedin",version:"2.7.5",location:"components/dustjs-linkedin",main:"dist/dust-full.min"},{name:"jquery",version:"3.3.1",location:"components/jquery",main:"dist/jquery"},{name:"newgat",version:"0.0.4",location:"components/newgat",main:"index"},{name:"pulvus-provide",version:"1.0.3",location:"components/pulvus-provide",main:"provide"},{name:"requirejs",version:"2.3.6",location:"components/requirejs",main:"require"}],paths:{jqueryUI:"lib/jquery-ui-1.12.1",jqueryFileDownload:"lib/jquery.fileDownload",underscore:"lib/vendor/underscore",backbone:"lib/vendor/backbone",modal:"lib/modal",bootstrap:"lib/bootstrap","bootstrap-datepicker":"lib/bootstrap-datepicker","bootstrap-token":"lib/bootstrap-tokenfield-0.12.1","jqueryUI-menu-iPad":"lib/jqueryUI-menu-iPad",charactercounter:"app/charactercounter",spin:"lib/spin","jquery-spin":"lib/jquery.spin",BaseView:"lib/baseView",ajaxError:"app/ajaxError"},shim:{underscore:{exports:"_"},backbone:{deps:["underscore","jquery"],exports:"Backbone"},backboneSubroutes:{deps:["backbone"]}}}),requirejs.config({paths:{_languagepack:document.documentElement.getAttribute("data-langpack")}}),define("_config",["dustjs-linkedin"],function(){require(["jquery","newgat","lib/clientError/logger","lib/newgat-events","lib/jquery-custom-converter","polyfill"],function(e,t,n){"use strict";var r=e("body"),i=r.data("token");t.setContext(e(document.body).data()),e.ajaxPrefilter(function(e,t,n){n.setRequestHeader("X-CSRF-Token",i)}),n.error("/invoice/error")})}),require(["jquery"],function(e){if(typeof e=="undefined")throw new Error("Bootstrap's JavaScript requires jQuery");+function(e){"use strict";function t(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(e.style[n]!==undefined)return{end:t[n]};return!1}e.fn.emulateTransitionEnd=function(t){var n=!1,r=this;e(this).one(e.support.transition.end,function(){n=!0});var i=function(){n||e(r).trigger(e.support.transition.end)};return setTimeout(i,t),this},e(function(){e.support.transition=t()})}(e),+function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};n.prototype.close=function(t){function s(){i.trigger("closed.bs.alert").remove()}var n=e(this),r=n.attr("data-target");r||(r=n.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,""));var i=e(r);t&&t.preventDefault(),i.length||(i=n.hasClass("alert")?n:n.parent()),i.trigger(t=e.Event("close.bs.alert"));if(t.isDefaultPrevented())return;i.removeClass("in"),e.support.transition&&i.hasClass("fade")?i.one(e.support.transition.end,s).emulateTransitionEnd(150):s()};var r=e.fn.alert;e.fn.alert=function(t){return this.each(function(){var r=e(this),i=r.data("bs.alert");i||r.data("bs.alert",i=new n(this)),typeof t=="string"&&i[t].call(r)})},e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=r,this},e(document).on("click.bs.alert.data-api",t,n.prototype.close)}(e),+function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.isLoading=!1};t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(t){var n="disabled",r=this.$element,i=r.is("input")?"val":"html",s=r.data();t+="Text",s.resetText||r.data("resetText",r[i]()),r[i](s[t]||this.options[t]),setTimeout(e.proxy(function(){t=="loadingText"?(this.isLoading=!0,r.addClass(n).attr(n,n)):this.isLoading&&(this.isLoading=!1,r.removeClass(n).removeAttr(n))},this),0)},t.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");n.prop("type")=="radio"&&(n.prop("checked")&&this.$element.hasClass("active")?e=!1:t.find(".active").removeClass("active")),e&&n.prop("checked",!this.$element.hasClass("active")).trigger("change")}e&&this.$element.toggleClass("active")};var n=e.fn.button;e.fn.button=function(n){return this.each(function(){var r=e(this),i=r.data("bs.button"),s=typeof n=="object"&&n;i||r.data("bs.button",i=new t(this,s)),n=="toggle"?i.toggle():n&&i.setState(n)})},e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=n,this},e(document).on("click.bs.button.data-api","[data-toggle^=button]",function(t){var n=e(t.target);n.hasClass("btn")||(n=n.closest(".btn")),n.button("toggle"),t.preventDefault()})}(e),+function(e){"use strict";var t=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=this.sliding=this.interval=this.$active=this.$items=null,this.options.pause=="hover"&&this.$element.on("mouseenter",e.proxy(this.pause,this)).on("mouseleave",e.proxy(this.cycle,this))};t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},t.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},t.prototype.to=function(t){var n=this,r=this.getActiveIndex();if(t>this.$items.length-1||t<0)return;return this.sliding?this.$element.one("slid.bs.carousel",function(){n.to(t)}):r==t?this.pause().cycle():this.slide(t>r?"next":"prev",e(this.$items[t]))},t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(this.sliding)return;return this.slide("next")},t.prototype.prev=function(){if(this.sliding)return;return this.slide("prev")},t.prototype.slide=function(t,n){var r=this.$element.find(".item.active"),i=n||r[t](),s=this.interval,o=t=="next"?"left":"right",u=t=="next"?"first":"last",a=this;if(!i.length){if(!this.options.wrap)return;i=this.$element.find(".item")[u]()}if(i.hasClass("active"))return this.sliding=!1;var f=e.Event("slide.bs.carousel",{relatedTarget:i[0],direction:o});this.$element.trigger(f);if(f.isDefaultPrevented())return;return this.sliding=!0,s&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid.bs.carousel",function(){var t=e(a.$indicators.children()[a.getActiveIndex()]);t&&t.addClass("active")})),e.support.transition&&this.$element.hasClass("slide")?(i.addClass(t),i[0].offsetWidth,r.addClass(o),i.addClass(o),r.one(e.support.transition.end,function(){i.removeClass([t,o].join(" ")).addClass("active"),r.removeClass(["active",o].join(" ")),a.sliding=!1,setTimeout(function(){a.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(r.css("transition-duration").slice(0,-1)*1e3)):(r.removeClass("active"),i.addClass("active"),this.sliding=!1,this.$element.trigger("slid.bs.carousel")),s&&this.cycle(),this};var n=e.fn.carousel;e.fn.carousel=function(n){return this.each(function(){var r=e(this),i=r.data("bs.carousel"),s=e.extend({},t.DEFAULTS,r.data(),typeof n=="object"&&n),o=typeof n=="string"?n:s.slide;i||r.data("bs.carousel",i=new t(this,s)),typeof n=="number"?i.to(n):o?i[o]():s.interval&&i.pause().cycle()})},e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=n,this},e(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(t){var n=e(this),r,i=e(n.attr("data-target")||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,"")),s=e.extend({},i.data(),n.data()),o=n.attr("data-slide-to");o&&(s.interval=!1),i.carousel(s),(o=n.attr("data-slide-to"))&&i.data("bs.carousel").to(o),t.preventDefault()}),e(window).on("load",function(){e('[data-ride="carousel"]').each(function(){var t=e(this);t.carousel(t.data())})})}(e),+function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.transitioning=null,this.options.parent&&(this.$parent=e(this.options.parent)),this.options.toggle&&this.toggle()};t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){var e=this.$element.hasClass("width");return e?"width":"height"},t.prototype.show=function(){if(this.transitioning||this.$element.hasClass("in"))return;var t=e.Event("show.bs.collapse");this.$element.trigger(t);if(t.isDefaultPrevented())return;var n=this.$parent&&this.$parent.find("> .panel > .in");if(n&&n.length){var r=n.data("bs.collapse");if(r&&r.transitioning)return;n.collapse("hide"),r||n.data("bs.collapse",null)}var i=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[i](0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[i]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return s.call(this);var o=e.camelCase(["scroll",i].join("-"));this.$element.one(e.support.transition.end,e.proxy(s,this)).emulateTransitionEnd(350)[i](this.$element[0][o])},t.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass("in"))return;var t=e.Event("hide.bs.collapse");this.$element.trigger(t);if(t.isDefaultPrevented())return;var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var r=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};if(!e.support.transition)return r.call(this);this.$element[n](0).one(e.support.transition.end,e.proxy(r,this)).emulateTransitionEnd(350)},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var n=e.fn.collapse;e.fn.collapse=function(n){return this.each(function(){var r=e(this),i=r.data("bs.collapse"),s=e.extend({},t.DEFAULTS,r.data(),typeof n=="object"&&n);!i&&s.toggle&&n=="show"&&(n=!n),i||r.data("bs.collapse",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=n,this},e(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(t){var n=e(this),r,i=n.attr("data-target")||t.preventDefault()||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,""),s=e(i),o=s.data("bs.collapse"),u=o?"toggle":n.data(),a=n.attr("data-parent"),f=a&&e(a);if(!o||!o.transitioning)f&&f.find('[data-toggle=collapse][data-parent="'+a+'"]').not(n).addClass("collapsed"),n[s.hasClass("in")?"addClass":"removeClass"]("collapsed");s.collapse(u)})}(e),+function(e){"use strict";function i(r){e(t).remove(),e(n).each(function(){var t=s(e(this)),n={relatedTarget:this};if(!t.hasClass("open"))return;t.trigger(r=e.Event("hide.bs.dropdown",n));if(r.isDefaultPrevented())return;t.removeClass("open").trigger("hidden.bs.dropdown",n)})}function s(t){var n=t.attr("data-target");n||(n=t.attr("href"),n=n&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var r=n&&e(n);return r&&r.length?r:t.parent()}var t=".dropdown-backdrop",n="[data-toggle=dropdown]",r=function(t){e(t).on("click.bs.dropdown",this.toggle)};r.prototype.toggle=function(t){var n=e(this);if(n.is(".disabled, :disabled"))return;var r=s(n),o=r.hasClass("open");i();if(!o){"ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&e('<div class="dropdown-backdrop"/>').insertAfter(e(this)).on("click",i);var u={relatedTarget:this};r.trigger(t=e.Event("show.bs.dropdown",u));if(t.isDefaultPrevented())return;r.toggleClass("open").trigger("shown.bs.dropdown",u),n.focus()}return!1},r.prototype.keydown=function(t){if(!/(38|40|27)/.test(t.keyCode))return;var r=e(this);t.preventDefault(),t.stopPropagation();if(r.is(".disabled, :disabled"))return;var i=s(r),o=i.hasClass("open");if(!o||o&&t.keyCode==27)return t.which==27&&i.find(n).focus(),r.click();var u=" li:not(.divider):visible a",a=i.find("[role=menu]"+u+", [role=listbox]"+u);if(!a.length)return;var f=a.index(a.filter(":focus"));t.keyCode==38&&f>0&&f--,t.keyCode==40&&f<a.length-1&&f++,~f||(f=0),a.eq(f).focus()};var o=e.fn.dropdown;e.fn.dropdown=function(t){return this.each(function(){var n=e(this),i=n.data("bs.dropdown");i||n.data("bs.dropdown",i=new r(this)),typeof t=="string"&&i[t].call(n)})},e.fn.dropdown.Constructor=r,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=o,this},e(document).on("click.bs.dropdown.data-api",i).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",n,r.prototype.toggle).on("keydown.bs.dropdown.data-api",n+", [role=menu], [role=listbox]",r.prototype.keydown)}(e),+function(e){"use strict";var t=function(t,n){this.options=n,this.$element=e(t),this.$backdrop=this.isShown=null,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},t.prototype.toggle=function(e){return this[this.isShown?"hide":"show"](e)},t.prototype.show=function(t){var n=this,r=e.Event("show.bs.modal",{relatedTarget:t});this.$element.trigger(r);if(this.isShown||r.isDefaultPrevented())return;this.isShown=!0,this.escape(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.backdrop(function(){var r=e.support.transition&&n.$element.hasClass("fade");n.$element.parent().length||n.$element.appendTo(document.body),n.$element.show().scrollTop(0),r&&n.$element[0].offsetWidth,n.$element.addClass("in").attr("aria-hidden",!1),n.enforceFocus();var i=e.Event("shown.bs.modal",{relatedTarget:t});r?n.$element.find(".modal-dialog").one(e.support.transition.end,function(){n.$element.focus().trigger(i)}).emulateTransitionEnd(300):n.$element.focus().trigger(i)})},t.prototype.hide=function(t){t&&t.preventDefault(),t=e.Event("hide.bs.modal"),this.$element.trigger(t);if(!this.isShown||t.isDefaultPrevented())return;this.isShown=!1,this.escape(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one(e.support.transition.end,e.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal()},t.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(e){this.$element[0]!==e.target&&!this.$element.has(e.target).length&&this.$element.focus()},this))},t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",e.proxy(function(e){e.which==27&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},t.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.removeBackdrop(),e.$element.trigger("hidden.bs.modal")})},t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},t.prototype.backdrop=function(t){var n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var r=e.support.transition&&n;this.$backdrop=e('<div class="modal-backdrop '+n+'" />').appendTo(document.body),this.$element.on("click.dismiss.bs.modal",e.proxy(function(e){if(e.target!==e.currentTarget)return;this.options.backdrop=="static"?this.$element[0].focus.call(this.$element[0]):this.hide.call(this)},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in");if(!t)return;r?this.$backdrop.one(e.support.transition.end,t).emulateTransitionEnd(150):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(e.support.transition.end,t).emulateTransitionEnd(150):t()):t&&t()};var n=e.fn.modal;e.fn.modal=function(n,r){return this.each(function(){var i=e(this),s=i.data("bs.modal"),o=e.extend({},t.DEFAULTS,i.data(),typeof n=="object"&&n);s||i.data("bs.modal",s=new t(this,o)),typeof n=="string"?s[n](r):o.show&&s.show(r)})},e.fn.modal.Constructor=t,e.fn.modal.noConflict=function(){return e.fn.modal=n,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var n=e(this),r=n.attr("href"),i=e(n.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,"")),s=i.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(r)&&r},i.data(),n.data());n.is("a")&&t.preventDefault(),i.modal(s,this).one("hide",function(){n.is(":visible")&&n.focus()})}),e(document).on("show.bs.modal",".modal",function(){e(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){e(document.body).removeClass("modal-open")})}(e),+function(e){"use strict";var t=function(e,t){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",e,t)};t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},t.prototype.init=function(t,n,r){this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(r);var i=this.options.trigger.split(" ");for(var s=i.length;s--;){var o=i[s];if(o=="click")this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if(o!="manual"){var u=o=="hover"?"mouseenter":"focusin",a=o=="hover"?"mouseleave":"focusout";this.$element.on(u+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(a+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.getOptions=function(t){return t=e.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t},t.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();return this._options&&e.each(this._options,function(e,r){n[e]!=r&&(t[e]=r)}),t},t.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);clearTimeout(n.timeout),n.hoverState="in";if(!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout(function(){n.hoverState=="in"&&n.show()},n.options.delay.show)},t.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);clearTimeout(n.timeout),n.hoverState="out";if(!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout(function(){n.hoverState=="out"&&n.hide()},n.options.delay.hide)},t.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);if(t.isDefaultPrevented())return;var n=this,r=this.tip();this.setContent(),this.options.animation&&r.addClass("fade");var i=typeof this.options.placement=="function"?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,o=s.test(i);o&&(i=i.replace(s,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(i),this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);var u=this.getPosition(),a=r[0].offsetWidth,f=r[0].offsetHeight;if(o){var l=this.$element.parent(),c=i,h=document.documentElement.scrollTop||document.body.scrollTop,p=this.options.container=="body"?window.innerWidth:l.outerWidth(),d=this.options.container=="body"?window.innerHeight:l.outerHeight(),v=this.options.container=="body"?0:l.offset().left;i=i=="bottom"&&u.top+u.height+f-h>d?"top":i=="top"&&u.top-h-f<0?"bottom":i=="right"&&u.right+a>p?"left":i=="left"&&u.left-a<v?"right":i,r.removeClass(c).addClass(i)}var m=this.getCalculatedOffset(i,u,a,f);this.applyPlacement(m,i),this.hoverState=null;var g=function(){n.$element.trigger("shown.bs."+n.type)};e.support.transition&&this.$tip.hasClass("fade")?r.one(e.support.transition.end,g).emulateTransitionEnd(150):g()}},t.prototype.applyPlacement=function(t,n){var r,i=this.tip(),s=i[0].offsetWidth,o=i[0].offsetHeight,u=parseInt(i.css("margin-top"),10),a=parseInt(i.css("margin-left"),10);isNaN(u)&&(u=0),isNaN(a)&&(a=0),t.top=t.top+u,t.left=t.left+a,e.offset.setOffset(i[0],e.extend({using:function(e){i.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0),i.addClass("in");var f=i[0].offsetWidth,l=i[0].offsetHeight;n=="top"&&l!=o&&(r=!0,t.top=t.top+o-l);if(/bottom|top/.test(n)){var c=0;t.left<0&&(c=t.left*-2,t.left=0,i.offset(t),f=i[0].offsetWidth,l=i[0].offsetHeight),this.replaceArrow(c-s+f,f,"left")}else this.replaceArrow(l-o,l,"top");r&&i.offset(t)},t.prototype.replaceArrow=function(e,t,n){this.arrow().css(n,e?50*(1-e/t)+"%":"")},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},t.prototype.hide=function(){function i(){t.hoverState!="in"&&n.detach(),t.$element.trigger("hidden.bs."+t.type)}var t=this,n=this.tip(),r=e.Event("hide.bs."+this.type);this.$element.trigger(r);if(r.isDefaultPrevented())return;return n.removeClass("in"),e.support.transition&&this.$tip.hasClass("fade")?n.one(e.support.transition.end,i).emulateTransitionEnd(150):i(),this.hoverState=null,this},t.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||typeof e.attr("data-original-title")!="string")&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},t.prototype.hasContent=function(){return this.getTitle()},t.prototype.getPosition=function(){var t=this.$element[0];return e.extend({},typeof t.getBoundingClientRect=="function"?t.getBoundingClientRect():{width:t.offsetWidth,height:t.offsetHeight},this.$element.offset())},t.prototype.getCalculatedOffset=function(e,t,n,r){return e=="bottom"?{top:t.top+t.height,left:t.left+t.width/2-n/2}:e=="top"?{top:t.top-r,left:t.left+t.width/2-n/2}:e=="left"?{top:t.top+t.height/2-r/2,left:t.left-n}:{top:t.top+t.height/2-r/2,left:t.left+t.width}},t.prototype.getTitle=function(){var e,t=this.$element,n=this.options;return e=t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title),e},t.prototype.tip=function(){return this.$tip=this.$tip||e(this.options.template)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},t.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1},t.prototype.toggleEnabled=function(){this.enabled=!this.enabled},t.prototype.toggle=function(t){var n=t?e(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;n.tip().hasClass("in")?n.leave(n):n.enter(n)},t.prototype.destroy=function(){clearTimeout(this.timeout),this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var n=e.fn.tooltip;e.fn.tooltip=function(n){return this.each(function(){var r=e(this),i=r.data("bs.tooltip"),s=typeof n=="object"&&n;if(!i&&n=="destroy")return;i||r.data("bs.tooltip",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.tooltip.Constructor=t,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=n,this}}(e),+function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),t.prototype.constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content")[this.options.html?typeof n=="string"?"html":"append":"text"](n),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||(typeof t.content=="function"?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},t.prototype.tip=function(){return this.$tip||(this.$tip=e(this.options.template)),this.$tip};var n=e.fn.popover;e.fn.popover=function(n){return this.each(function(){var r=e(this),i=r.data("bs.popover"),s=typeof n=="object"&&n;if(!i&&n=="destroy")return;i||r.data("bs.popover",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=n,this}}(e),+function(e){"use strict";function t(n,r){var i,s=e.proxy(this.process,this);this.$element=e(n).is("body")?e(window):e(n),this.$body=e("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",s),this.options=e.extend({},t.DEFAULTS,r),this.selector=(this.options.target||(i=e(n).attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=e([]),this.targets=e([]),this.activeTarget=null,this.refresh(),this.process()}t.DEFAULTS={offset:10},t.prototype.refresh=function(){var t=this.$element[0]==window?"offset":"position";this.offsets=e([]),this.targets=e([]);var n=this,r=this.$body.find(this.selector).map(function(){var r=e(this),i=r.data("target")||r.attr("href"),s=/^#./.test(i)&&e(i);return s&&s.length&&s.is(":visible")&&[[s[t]().top+(!e.isWindow(n.$scrollElement.get(0))&&n.$scrollElement.scrollTop()),i]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){n.offsets.push(this[0]),n.targets.push(this[1])})},t.prototype.process=function(){var e=this.$scrollElement.scrollTop()+this.options.offset,t=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,n=t-this.$scrollElement.height(),r=this.offsets,i=this.targets,s=this.activeTarget,o;if(e>=n)return s!=(o=i.last()[0])&&this.activate(o);if(s&&e<=r[0])return s!=(o=i[0])&&this.activate(o);for(o=r.length;o--;)s!=i[o]&&e>=r[o]&&(!r[o+1]||e<=r[o+1])&&this.activate(i[o])},t.prototype.activate=function(t){this.activeTarget=t,e(this.selector).parentsUntil(this.options.target,".active").removeClass("active");var n=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',r=e(n).parents("li").addClass("active");r.parent(".dropdown-menu").length&&(r=r.closest("li.dropdown").addClass("active")),r.trigger("activate.bs.scrollspy")};var n=e.fn.scrollspy;e.fn.scrollspy=function(n){return this.each(function(){var r=e(this),i=r.data("bs.scrollspy"),s=typeof n=="object"&&n;i||r.data("bs.scrollspy",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.scrollspy.Constructor=t,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=n,this},e(window).on("load",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);t.scrollspy(t.data())})})}(e),+function(e){"use strict";var t=function(t){this.element=e(t)};t.prototype.show=function(){var t=this.element,n=t.closest("ul:not(.dropdown-menu)"),r=t.data("target");r||(r=t.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,""));if(t.parent("li").hasClass("active"))return;var i=n.find(".active:last a")[0],s=e.Event("show.bs.tab",{relatedTarget:i});t.trigger(s);if(s.isDefaultPrevented())return;var o=e(r);this.activate(t.parent("li"),n),this.activate(o,o.parent(),function(){t.trigger({type:"shown.bs.tab",relatedTarget:i})})},t.prototype.activate=function(t,n,r){function o(){i.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),t.addClass("active"),s?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active"),r&&r()}var i=n.find("> .active"),s=r&&e.support.transition&&i.hasClass("fade");s?i.one(e.support.transition.end,o).emulateTransitionEnd(150):o(),i.removeClass("in")};var n=e.fn.tab;e.fn.tab=function(n){return this.each(function(){var r=e(this),i=r.data("bs.tab");i||r.data("bs.tab",i=new t(this)),typeof n=="string"&&i[n]()})},e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=n,this},e(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault(),e(this).tab("show")})}(e),+function(e){"use strict";var t=function(n,r){this.options=e.extend({},t.DEFAULTS,r),this.$window=e(window).on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(n),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0},t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var e=this.$window.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-e},t.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){if(!this.$element.is(":visible"))return;var n=e(document).height(),r=this.$window.scrollTop(),i=this.$element.offset(),s=this.options.offset,o=s.top,u=s.bottom;this.affixed=="top"&&(i.top+=r),typeof s!="object"&&(u=o=s),typeof o=="function"&&(o=s.top(this.$element)),typeof u=="function"&&(u=s.bottom(this.$element));var a=this.unpin!=null&&r+this.unpin<=i.top?!1:u!=null&&i.top+this.$element.height()>=n-u?"bottom":o!=null&&r<=o?"top":!1;if(this.affixed===a)return;this.unpin&&this.$element.css("top","");var f="affix"+(a?"-"+a:""),l=e.Event(f+".bs.affix");this.$element.trigger(l);if(l.isDefaultPrevented())return;this.affixed=a,this.unpin=a=="bottom"?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(f).trigger(e.Event(f.replace("affix","affixed"))),a=="bottom"&&this.$element.offset({top:n-u-this.$element.height()})};var n=e.fn.affix;e.fn.affix=function(n){return this.each(function(){var r=e(this),i=r.data("bs.affix"),s=typeof n=="object"&&n;i||r.data("bs.affix",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.affix.Constructor=t,e.fn.affix.noConflict=function(){return e.fn.affix=n,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var t=e(this),n=t.data();n.offset=n.offset||{},n.offsetBottom&&(n.offset.bottom=n.offsetBottom),n.offsetTop&&(n.offset.top=n.offsetTop),t.affix(n)})})}(e)}),define("bootstrap",function(){}),define("ajaxError",["jquery"],function(e){"use strict";e(document).ajaxError(function(t,n,r){var i=!1;if(n.status===401||n.status===302){try{i=e.parseJSON(n.responseText).location}catch(s){i=n.getResponseHeader("location")}i&&window.location.replace(i)}})}),define("BaseView",["newgat","underscore","backbone"],function(e,t,n){"use strict";var r=n.View.extend({template:null,render:function(){var n=e.viewRenderer,r=this.template,i=this.serialize();return t.bindAll(this,"_doRender","renderError","afterRender"),this.beforeRender(),n.render(r,i).done(this._doRender).fail(this.renderError).always(this.afterRender),this},_doRender:function(e,t){this.$el.html(e)},beforeRender:function(){},afterRender:function(){},renderError:function(e){},serialize:function(){var e=this.model||this.collection;return e&&e.toJSON?e.toJSON():e?t.clone(e):{}}});return r}),define("util/fpti",["jquery"],function(e){var t="main:inv3";return{recordSearchData:function(e,t){if(window.PAYPAL&&window.PAYPAL.analytics&&window.PAYPAL.analytics.instance&&window.PAYPAL.analytics.instance.recordClick){var n="";e.freeFormSearchValue?n="submit_search_free_text":e.closeButton?n="advanced_search_close":n="submit_search";var r={data:{e:"cl",page:"main:inv3:manage::invoices:::",link:n,status:e.basicFilterSelected,actvst:e.activeArchivedSelected,dtfltr:e.advFilter2Var,start_date:e.advFilter2Value1,end_date:e.advFilter2Value2,isch:e.advFilter1Value1||e.freeFormSearchValue,schtyp:e.advFilter1Var,schnor:t}};window.PAYPAL.analytics.instance.recordClick(r)}},recordSearchClicks:function(e,t){if(window.PAYPAL&&window.PAYPAL.analytics&&window.PAYPAL.analytics.instance&&window.PAYPAL.analytics.instance.recordClick){var n={data:{page:e,link:t}};window.PAYPAL.analytics.instance.recordClick(n)}},recordRecurringSurveyClicks:function(e,t,n,r,i){if(window.PAYPAL&&window.PAYPAL.analytics&&window.PAYPAL.analytics.instance&&window.PAYPAL.analytics.instance.recordClick){var s={data:{page:e,link:t,uniqueSurveyLink:n,userAccountNumber:r,machine:i}};window.PAYPAL.analytics.instance.recordClick(s)}},recordRecurringSurveyEmail:function(e,t,n){if(window.PAYPAL&&window.PAYPAL.analytics&&window.PAYPAL.analytics.instance&&window.PAYPAL.analytics.instance.recordClick){var r={data:{page:e,link:t,userInfo:n}};window.PAYPAL.analytics.instance.recordClick(r)}},recordClick:function(e,t,n,r){if(window.PAYPAL&&window.PAYPAL.analytics&&window.PAYPAL.analytics.instance&&window.PAYPAL.analytics.instance.recordClick){var i={data:{e:"cl",pgrp:e,page:t,pglk:e,link:n,optsel:r}};window.PAYPAL.analytics.instance.recordClick(i)}},getStatusById:function(e){if(!e)return"draft";switch(e){case"1":return"draft";case"2":return"sent";case"3":case"6":return"paid";case"4":return"cancelled";case"7":case"9":return"refunded";case"8":return"scheduled";case"12":return"paymentPending";case"13":return"partiallyPaid";case"14":return"unpaid"}},recordModalImpression:function(e,t,n,r){var i=this.getStatusById(r);if(window.PAYPAL&&window.PAYPAL.analytics&&window.PAYPAL.analytics.Analytics&&window.PAYPAL.analytics.Analytics.prototype.recordImpression){var s={data:{page:t,e:"im",pgrp:e,tmpl:n,status:i}};window.PAYPAL.analytics.Analytics.prototype.recordImpression(s)}},recordFPTIImpression:function(e,t,n,r,i,s){if(window.PAYPAL&&window.PAYPAL.analytics&&window.PAYPAL.analytics.Analytics&&window.PAYPAL.analytics.Analytics.prototype.recordImpression){var o={data:{page:t,e:"im",pgrp:e,tmpl:n,eccd:r,erpg:i,refsucc:s}};window.PAYPAL.analytics.Analytics.prototype.recordImpression(o)}},recordImpression:function(e,n,r){var i=t+":"+e+"::"+n,s=i+":::";if(window.PAYPAL&&window.PAYPAL.analytics&&window.PAYPAL.analytics.instance&&window.PAYPAL.analytics.instance.recordImpression){var o={data:{page:s,e:"im",pgrp:i,tmpl:r}};window.PAYPAL.analytics.instance.recordImpression(o)}}}}),define("app/create/seo/seoInvoiceModel",["jquery","underscore"],function(e,t){function o(n,r){var i=e(n||document);return t.mapObject(r,function(e){return i.find(e).val().trim()})}var n={businessName:"#companyName",name:"#merchantName",email:"#merchantEmail"},r={name:"#customerName",email:"#customerEmail"},i={name:"textarea",quantity:'input[name="itemQuantity"]',unitPrice:'input[name="itemPrice"]'},s={invoiceNumber:"#invoiceNumber",dueDate:"#dueDate",merchantNotes:"#invoiceNotes"};return{logoFile:null,currencyCode:e("#currency").val()&&e("#currency").val().split("-")[0].trim(),currencySymbol:e("#currency").data("currency-symbol"),collectFields:o,getInvoiceFormData:function(){var u=new FormData;u.append("merchantInfo",JSON.stringify(o(null,n))),u.append("toRecipient",JSON.stringify(o(null,r))),t.mapObject(o(null,s),function(e,t){return u.append(t,e)}),u.append("currencyCode",this.currencyCode),u.append("currencySymbol",this.currencySymbol),e("#shippingAmount").val()&&u.append("shippingAmount",parseFloat(e("#shippingAmount").data("value"))||0);var a=[];return e("#itemTable tbody tr").each(function(e,t){var n=o(t,i);(n.name||n.quantity||n.unitPrice)&&a.push(n)}),u.append("items",JSON.stringify(a)),a.length>100?e("maxItemValidationMessage").removeClass("hidden"):e("maxItemValidationMessage").addClass("hidden"),this.logoFile&&u.append("logoFile",this.logoFile),u.append("logoUrl",e("#logoUrl").val()),u}}}),require(["jquery","bootstrap"],function(e){function n(){return new Date(Date.UTC.apply(Date,arguments))}function r(){var e=new Date;return n(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())}function o(t,n){var r=e(t).data(),i={},s,o=new RegExp("^"+n.toLowerCase()+"([A-Z])"),n=new RegExp("^"+n.toLowerCase());for(var u in r)n.test(u)&&(s=u.replace(o,function(e,t){return t.toLowerCase()}),i[s]=r[u]);return i}function u(t){var n={};if(!c[t]){t=t.split("-")[0];if(!c[t])return}var r=c[t];return e.each(l,function(e,t){t in r&&(n[t]=r[t])}),n}var t=e(window),i=function(t,n){var r=this;this._process_options(n),this.element=e(t),this.isInline=!1,this.isInput=this.element.is("input"),this.component=this.element.is(".date")?this.element.find(".add-on, .btn"):!1,this.hasInput=this.component&&this.element.find("input").length,this.component&&this.component.length===0&&(this.component=!1),this.picker=e(h.template),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&(this.picker.addClass("datepicker-rtl"),this.picker.find(".prev i, .next i").toggleClass("icon-arrow-left icon-arrow-right")),this.viewMode=this.o.startView,this.o.calendarWeeks&&this.picker.find("tfoot th.today").attr("colspan",function(e,t){return parseInt(t)+1}),this._allow_update=!1,this.setStartDate(this._o.startDate),this.setEndDate(this._o.endDate),this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled),this.fillDow(),this.fillMonths(),this._allow_update=!0,this.update(),this.showMode(),this.isInline&&this.show()};i.prototype={constructor:i,_process_options:function(t){this._o=e.extend({},this._o,t);var n=this.o=e.extend({},this._o),r=n.language;c[r]||(r=r.split("-")[0],c[r]||(r=f.language)),n.language=r;switch(n.startView){case 2:case"decade":n.startView=2;break;case 1:case"year":n.startView=1;break;default:n.startView=0}switch(n.minViewMode){case 1:case"months":n.minViewMode=1;break;case 2:case"years":n.minViewMode=2;break;default:n.minViewMode=0}n.startView=Math.max(n.startView,n.minViewMode),n.weekStart%=7,n.weekEnd=(n.weekStart+6)%7;var i=h.parseFormat(n.format);n.startDate!==-Infinity&&(n.startDate?n.startDate instanceof Date?n.startDate=this._local_to_utc(this._zero_time(n.startDate)):n.startDate=h.parseDate(n.startDate,i,n.language):n.startDate=-Infinity),n.endDate!==Infinity&&(n.endDate?n.endDate instanceof Date?n.endDate=this._local_to_utc(this._zero_time(n.endDate)):n.endDate=h.parseDate(n.endDate,i,n.language):n.endDate=Infinity),n.daysOfWeekDisabled=n.daysOfWeekDisabled||[],e.isArray(n.daysOfWeekDisabled)||(n.daysOfWeekDisabled=n.daysOfWeekDisabled.split(/[,\s]*/)),n.daysOfWeekDisabled=e.map(n.daysOfWeekDisabled,function(e){return parseInt(e,10)});var s=String(n.orientation).toLowerCase().split(/\s+/g),o=n.orientation.toLowerCase();s=e.grep(s,function(e){return/^auto|left|right|top|bottom$/.test(e)}),n.orientation={x:"auto",y:"auto"};if(!!o&&o!=="auto")if(s.length===1)switch(s[0]){case"top":case"bottom":n.orientation.y=s[0];break;case"left":case"right":n.orientation.x=s[0]}else o=e.grep(s,function(e){return/^left|right$/.test(e)}),n.orientation.x=o[0]||"auto",o=e.grep(s,function(e){return/^top|bottom$/.test(e)}),n.orientation.y=o[0]||"auto"},_events:[],_secondaryEvents:[],_applyEvents:function(e){for(var t=0,n,r;t<e.length;t++)n=e[t][0],r=e[t][1],n.on(r)},_unapplyEvents:function(e){for(var t=0,n,r;t<e.length;t++)n=e[t][0],r=e[t][1],n.off(r)},_buildEvents:function(){this.isInput?this._events=[[this.element,{focus:e.proxy(this.show,this),keyup:e.proxy(this.update,this),keydown:e.proxy(this.keydown,this)}]]:this.component&&this.hasInput?this._events=[[this.element.find("input"),{focus:e.proxy(this.show,this),keyup:e.proxy(this.update,this),keydown:e.proxy(this.keydown,this)}],[this.component,{click:e.proxy(this.show,this)}]]:this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:e.proxy(this.show,this)}]],this._secondaryEvents=[[this.picker,{click:e.proxy(this.click,this)}],[e(window),{resize:e.proxy(this.place,this)}],[e(document),{mousedown:e.proxy(function(e){this.element.is(e.target)||this.element.find(e.target).length||this.picker.is(e.target)||this.picker.find(e.target).length||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(t,n){var r=n||this.date,i=this._utc_to_local(r);this.element.trigger({type:t,date:i,format:e.proxy(function(e){var t=e||this.o.format;return h.formatDate(r,t,this.o.language)},this)})},show:function(e){this.isInline||this.picker.appendTo("body"),this.picker.show(),this.height=this.component?this.component.outerHeight():this.element.outerHeight(),this.place(),this._attachSecondaryEvents(),e&&e.preventDefault(),this._trigger("show")},hide:function(e){if(this.isInline)return;if(!this.picker.is(":visible"))return;this.picker.hide().detach(),this._detachSecondaryEvents(),this.viewMode=this.o.startView,this.showMode(),this.o.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())&&this.setValue(),this._trigger("hide")},remove:function(){this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date},_utc_to_local:function(e){return new Date(e.getTime()+e.getTimezoneOffset()*6e4)},_local_to_utc:function(e){return new Date(e.getTime()-e.getTimezoneOffset()*6e4)},_zero_time:function(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())},_zero_utc_time:function(e){return new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()))},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){return this.date},setDate:function(e){this.setUTCDate(this._local_to_utc(e))},setUTCDate:function(e){this.date=e,this.setValue()},setValue:function(){var e=this.getFormattedDate();this.isInput?this.element.val(e).change():this.component&&this.element.find("input").val(e).change()},getFormattedDate:function(e){return e===undefined&&(e=this.o.format),h.formatDate(this.date,e,this.o.language)},setStartDate:function(e){this._process_options({startDate:e}),this.update(),this.updateNavArrows()},setEndDate:function(e){this._process_options({endDate:e}),this.update(),this.updateNavArrows()},setDaysOfWeekDisabled:function(e){this._process_options({daysOfWeekDisabled:e}),this.update(),this.updateNavArrows()},place:function(){if(this.isInline)return;var n=this.picker.outerWidth(),r=this.picker.outerHeight(),i=10,s=t.width(),o=t.height(),u=t.scrollTop(),a=parseInt(this.element.parents().filter(function(){return e(this).css("z-index")!="auto"}).first().css("z-index"))+10,f=this.component?this.component.parent().offset():this.element.offset(),l=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),c=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),h=f.left,p=f.top;this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),this.o.orientation.x!=="auto"?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),this.o.orientation.x==="right"&&(h-=n-c)):(this.picker.addClass("datepicker-orient-left"),f.left<0?h-=f.left-i:f.left+n>s&&(h=s-n-i));var d=this.o.orientation.y,v,m;d==="auto"&&(v=-u+f.top-r,m=u+o-(f.top+l+r),Math.max(v,m)===m?d="top":d="bottom"),this.picker.addClass("datepicker-orient-"+d),d==="top"?p+=l:p-=r+parseInt(this.picker.css("padding-top")),this.picker.css({top:p,left:h,zIndex:a})},_allow_update:!0,update:function(){if(!this._allow_update)return;var e=new Date(this.date),t,n=!1;arguments&&arguments.length&&(typeof arguments[0]=="string"||arguments[0]instanceof Date)?(t=arguments[0],t instanceof Date&&(t=this._local_to_utc(t)),n=!0):(t=this.isInput?this.element.val():this.element.data("date")||this.element.find("input").val(),delete this.element.data().date),this.date=h.parseDate(t,this.o.format,this.o.language),n?this.setValue():t?e.getTime()!==this.date.getTime()&&this._trigger("changeDate"):this._trigger("clearDate"),this.date<this.o.startDate?(this.viewDate=new Date(this.o.startDate),this.date=new Date(this.o.startDate)):this.date>this.o.endDate?(this.viewDate=new Date(this.o.endDate),this.date=new Date(this.o.endDate)):(this.viewDate=new Date(this.date),this.date=new Date(this.date)),this.fill()},fillDow:function(){var e=this.o.weekStart,t="<tr>";if(this.o.calendarWeeks){var n='<th class="cw"> </th>';t+=n,this.picker.find(".datepicker-days thead tr:first-child").prepend(n)}while(e<this.o.weekStart+7)t+='<th class="dow">'+c[this.o.language].daysMin[e++%7]+"</th>";t+="</tr>",this.picker.find(".datepicker-days thead").append(t)},fillMonths:function(){var e="",t=0;while(t<12)e+='<span class="month">'+c[this.o.language].monthsShort[t++]+"</span>";this.picker.find(".datepicker-months td").html(e)},setRange:function(t){!t||!t.length?delete this.range:this.range=e.map(t,function(e){return e.valueOf()}),this.fill()},getClassNames:function(t){var n=[],r=this.viewDate.getUTCFullYear(),i=this.viewDate.getUTCMonth(),s=this.date.valueOf(),o=new Date;return t.getUTCFullYear()<r||t.getUTCFullYear()==r&&t.getUTCMonth()<i?n.push("old"):(t.getUTCFullYear()>r||t.getUTCFullYear()==r&&t.getUTCMonth()>i)&&n.push("new"),this.o.todayHighlight&&t.getUTCFullYear()==o.getFullYear()&&t.getUTCMonth()==o.getMonth()&&t.getUTCDate()==o.getDate()&&n.push("today"),s&&t.valueOf()==s&&n.push("active"),(t.valueOf()<this.o.startDate||t.valueOf()>this.o.endDate||e.inArray(t.getUTCDay(),this.o.daysOfWeekDisabled)!==-1)&&n.push("disabled"),this.range&&(t>this.range[0]&&t<this.range[this.range.length-1]&&n.push("range"),e.inArray(t.valueOf(),this.range)!=-1&&n.push("selected")),n},fill:function(){var t=new Date(this.viewDate),r=t.getUTCFullYear(),i=t.getUTCMonth(),s=this.o.startDate!==-Infinity?this.o.startDate.getUTCFullYear():-Infinity,o=this.o.startDate!==-Infinity?this.o.startDate.getUTCMonth():-Infinity,u=this.o.endDate!==Infinity?this.o.endDate.getUTCFullYear():Infinity,a=this.o.endDate!==Infinity?this.o.endDate.getUTCMonth():Infinity,f=this.date&&this.date.valueOf(),l=c[this.o.language].titleFormat||c.en.titleFormat,p;this.picker.find(".datepicker-days thead th.datepicker-switch").text(h.formatDate(new n(r,i),l,this.o.language)),this.picker.find("tfoot th.today").text(c[this.o.language].today).toggle(this.o.todayBtn!==!1),this.picker.find("tfoot th.clear").text(c[this.o.language].clear).toggle(this.o.clearBtn!==!1),this.updateNavArrows(),this.fillMonths();var d=n(r,i-1,28,0,0,0,0),v=h.getDaysInMonth(d.getUTCFullYear(),d.getUTCMonth());d.setUTCDate(v),d.setUTCDate(v-(d.getUTCDay()-this.o.weekStart+7)%7);var m=new Date(d);m.setUTCDate(m.getUTCDate()+42),m=m.valueOf();var g=[],y;while(d.valueOf()<m){if(d.getUTCDay()==this.o.weekStart){g.push("<tr>");if(this.o.calendarWeeks){var b=new Date(+d+(this.o.weekStart-d.getUTCDay()-7)%7*864e5),w=new Date(+b+(11-b.getUTCDay())%7*864e5),E=new Date(+(E=n(w.getUTCFullYear(),0,1))+(11-E.getUTCDay())%7*864e5),S=(w-E)/864e5/7+1;g.push('<td class="cw">'+S+"</td>")}}y=this.getClassNames(d),y.push("day");if(this.o.beforeShowDay!==e.noop){var x=this.o.beforeShowDay(this._utc_to_local(d));x===undefined?x={}:typeof x=="boolean"?x={enabled:x}:typeof x=="string"&&(x={classes:x}),x.enabled===!1&&y.push("disabled"),x.classes&&(y=y.concat(x.classes.split(/\s+/))),x.tooltip&&(p=x.tooltip)}y=e.unique(y),g.push('<td class="'+y.join(" ")+'"'+(p?' title="'+p+'"':"")+">"+d.getUTCDate()+"</td>"),d.getUTCDay()==this.o.weekEnd&&g.push("</tr>"),d.setUTCDate(d.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").empty().append(g.join(""));var T=this.date&&this.date.getUTCFullYear(),N=this.picker.find(".datepicker-months").find("th:eq(1)").text(r).end().find("span").removeClass("active");T&&T==r&&N.eq(this.date.getUTCMonth()).addClass("active"),(r<s||r>u)&&N.addClass("disabled"),r==s&&N.slice(0,o).addClass("disabled"),r==u&&N.slice(a+1).addClass("disabled"),g="",r=parseInt(r/10,10)*10;var C=this.picker.find(".datepicker-years").find("th:eq(1)").text(r+"-"+(r+9)).end().find("td");r-=1;for(var k=-1;k<11;k++)g+='<span class="year'+(k==-1?" old":k==10?" new":"")+(T==r?" active":"")+(r<s||r>u?" disabled":"")+'">'+r+"</span>",r+=1;C.html(g)},updateNavArrows:function(){if(!this._allow_update)return;var e=new Date(this.viewDate),t=e.getUTCFullYear(),n=e.getUTCMonth();switch(this.viewMode){case 0:this.o.startDate!==-Infinity&&t<=this.o.startDate.getUTCFullYear()&&n<=this.o.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==Infinity&&t>=this.o.endDate.getUTCFullYear()&&n>=this.o.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:case 2:this.o.startDate!==-Infinity&&t<=this.o.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==Infinity&&t>=this.o.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}},click:function(t){t.preventDefault();var r=e(t.target).closest("span, td, th");if(r.length==1)switch(r[0].nodeName.toLowerCase()){case"th":switch(r[0].className){case"datepicker-switch":this.showMode(1);break;case"prev":case"next":var i=h.modes[this.viewMode].navStep*(r[0].className=="prev"?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveMonth(this.viewDate,i),this._trigger("changeMonth",this.viewDate);break;case 1:case 2:this.viewDate=this.moveYear(this.viewDate,i),this.viewMode===1&&this._trigger("changeYear",this.viewDate)}this.fill();break;case"today":var s=new Date;s=n(s.getFullYear(),s.getMonth(),s.getDate(),0,0,0),this.showMode(-2);var o=this.o.todayBtn=="linked"?null:"view";this._setDate(s,o);break;case"clear":var u;this.isInput?u=this.element:this.component&&(u=this.element.find("input")),u&&u.val("").change(),this._trigger("changeDate"),this.update(),this.o.autoclose&&this.hide()}break;case"span":if(!r.is(".disabled")){this.viewDate.setUTCDate(1);if(r.is(".month")){var a=1,f=r.parent().find("span").index(r),l=this.viewDate.getUTCFullYear();this.viewDate.setUTCMonth(f),this._trigger("changeMonth",this.viewDate),this.o.minViewMode===1&&this._setDate(n(l,f,a,0,0,0,0))}else{var l=parseInt(r.text(),10)||0,a=1,f=0;this.viewDate.setUTCFullYear(l),this._trigger("changeYear",this.viewDate),this.o.minViewMode===2&&this._setDate(n(l,f,a,0,0,0,0))}this.showMode(-1),this.fill()}break;case"td":if(r.is(".day")&&!r.is(".disabled")){var a=parseInt(r.text(),10)||1,l=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth();r.is(".old")?f===0?(f=11,l-=1):f-=1:r.is(".new")&&(f==11?(f=0,l+=1):f+=1),this._setDate(n(l,f,a,0,0,0,0))}}},_setDate:function(e,t){if(!t||t=="date")this.date=new Date(e);if(!t||t=="view")this.viewDate=new Date(e);this.fill(),this.setValue(),this._trigger("changeDate");var n;this.isInput?n=this.element:this.component&&(n=this.element.find("input")),n&&n.change(),this.o.autoclose&&(!t||t=="date")&&this.hide()},moveMonth:function(e,t){if(!t)return e;var n=new Date(e.valueOf()),r=n.getUTCDate(),i=n.getUTCMonth(),s=Math.abs(t),o,u;t=t>0?1:-1;if(s==1){u=t==-1?function(){return n.getUTCMonth()==i}:function(){return n.getUTCMonth()!=o},o=i+t,n.setUTCMonth(o);if(o<0||o>11)o=(o+12)%12}else{for(var a=0;a<s;a++)n=this.moveMonth(n,t);o=n.getUTCMonth(),n.setUTCDate(r),u=function(){return o!=n.getUTCMonth()}}while(u())n.setUTCDate(--r),n.setUTCMonth(o);return n},moveYear:function(e,t){return this.moveMonth(e,t*12)},dateWithinRange:function(e){return e>=this.o.startDate&&e<=this.o.endDate},keydown:function(e){if(this.picker.is(":not(:visible)")){e.keyCode==27&&this.show();return}var t=!1,n,r,i,s,o;switch(e.keyCode){case 27:this.hide(),e.preventDefault();break;case 37:case 39:if(!this.o.keyboardNavigation)break;n=e.keyCode==37?-1:1,e.ctrlKey?(s=this.moveYear(this.date,n),o=this.moveYear(this.viewDate,n),this._trigger("changeYear",this.viewDate)):e.shiftKey?(s=this.moveMonth(this.date,n),o=this.moveMonth(this.viewDate,n),this._trigger("changeMonth",this.viewDate)):(s=new Date(this.date),s.setUTCDate(this.date.getUTCDate()+n),o=new Date(this.viewDate),o.setUTCDate(this.viewDate.getUTCDate()+n)),this.dateWithinRange(s)&&(this.date=s,this.viewDate=o,this.setValue(),this.update(),e.preventDefault(),t=!0);break;case 38:case 40:if(!this.o.keyboardNavigation)break;n=e.keyCode==38?-1:1,e.ctrlKey?(s=this.moveYear(this.date,n),o=this.moveYear(this.viewDate,n),this._trigger("changeYear",this.viewDate)):e.shiftKey?(s=this.moveMonth(this.date,n),o=this.moveMonth(this.viewDate,n),this._trigger("changeMonth",this.viewDate)):(s=new Date(this.date),s.setUTCDate(this.date.getUTCDate()+n*7),o=new Date(this.viewDate),o.setUTCDate(this.viewDate.getUTCDate()+n*7)),this.dateWithinRange(s)&&(this.date=s,this.viewDate=o,this.setValue(),this.update(),e.preventDefault(),t=!0);break;case 13:this.hide(),e.preventDefault();break;case 9:this.hide()}if(t){this._trigger("changeDate");var u;this.isInput?u=this.element:this.component&&(u=this.element.find("input")),u&&u.change()}},showMode:function(e){e&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(2,this.viewMode+e))),this.picker.find(">div").hide().filter(".datepicker-"+h.modes[this.viewMode].clsName).css("display","block"),this.updateNavArrows()}};var s=function(t,n){this.element=e(t),this.inputs=e.map(n.inputs,function(e){return e.jquery?e[0]:e}),delete n.inputs,e(this.inputs).bsdatepicker(n).bind("changeDate",e.proxy(this.dateUpdated,this)),this.pickers=e.map(this.inputs,function(t){return e(t).data("datepicker")}),this.updateDates()};s.prototype={updateDates:function(){this.dates=e.map(this.pickers,function(e){return e.date}),this.updateRanges()},updateRanges:function(){var t=e.map(this.dates,function(e){return e.valueOf()});e.each(this.pickers,function(e,n){n.setRange(t)})},dateUpdated:function(t){var n=e(t.target).data("datepicker"),r=n.getUTCDate(),i=e.inArray(t.target,this.inputs),s=this.inputs.length;if(i==-1)return;if(r<this.dates[i])while(i>=0&&r<this.dates[i])this.pickers[i--].setUTCDate(r);else if(r>this.dates[i])while(i<s&&r>this.dates[i])this.pickers[i++].setUTCDate(r);this.updateDates()},remove:function(){e.map(this.pickers,function(e){e.remove()}),delete this.element.data().datepicker}};var a=e.fn.bsdatepicker;e.fn.bsdatepicker=function(t){var n=Array.apply(null,arguments);n.shift();var r,a;return this.each(function(){var a=e(this),l=a.data("datepicker"),c=typeof t=="object"&&t;if(!l){var h=o(this,"date"),p=e.extend({},f,h,c),d=u(p.language),v=e.extend({},f,d,h,c);if(a.is(".input-daterange")||v.inputs){var m={inputs:v.inputs||a.find("input").toArray()};a.data("datepicker",l=new s(this,e.extend(v,m)))}else a.data("datepicker",l=new i(this,v))}if(typeof t=="string"&&typeof l[t]=="function"){r=l[t].apply(l,n);if(r!==undefined)return!1}}),r!==undefined?r:this};var f=e.fn.bsdatepicker.defaults={autoclose:!1,beforeShowDay:e.noop,calendarWeeks:!1,clearBtn:!1,daysOfWeekDisabled:[],endDate:Infinity,forceParse:!0,format:"mm/dd/yyyy",keyboardNavigation:!0,language:"en",minViewMode:0,orientation:"auto",rtl:!1,startDate:-Infinity,startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0},l=e.fn.bsdatepicker.locale_opts=["format","rtl","weekStart"];e.fn.bsdatepicker.Constructor=i;var c=e.fn.bsdatepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},h={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(e){return e%4===0&&e%100!==0||e%400===0},getDaysInMonth:function(e,t){return[31,h.isLeapYear(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,parseFormat:function(e){var t=e.replace(this.validParts,"\0").split("\0"),n=e.match(this.validParts);if(!t||!t.length||!n||n.length===0)throw new Error("Invalid date format.");return{separators:t,parts:n}},parseDate:function(t,r,s){if(t instanceof Date)return t;typeof r=="string"&&(r=h.parseFormat(r));if(/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(t)){var o=/([\-+]\d+)([dmwy])/,u=t.match(/([\-+]\d+)([dmwy])/g),a,f;t=new Date;for(var l=0;l<u.length;l++){a=o.exec(u[l]),f=parseInt(a[1]);switch(a[2]){case"d":t.setUTCDate(t.getUTCDate()+f);break;case"m":t=i.prototype.moveMonth.call(i.prototype,t,f);break;case"w":t.setUTCDate(t.getUTCDate()+f*7);break;case"y":t=i.prototype.moveYear.call(i.prototype,t,f)}}return n(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),0,0,0)}var u=t&&t.match(this.nonpunctuation)||[],t=new Date,p={},d=["yyyy","yy","M","MM","m","mm","d","dd"],v={yyyy:function(e,t){return e.setUTCFullYear(t)},yy:function(e,t){return e.setUTCFullYear(2e3+t)},m:function(e,t){if(isNaN(e))return e;t-=1;while(t<0)t+=12;t%=12,e.setUTCMonth(t);while(e.getUTCMonth()!=t)e.setUTCDate(e.getUTCDate()-1);return e},d:function(e,t){return e.setUTCDate(t)}},m,g,a;v.M=v.MM=v.mm=v.m,v.dd=v.d,t=n(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0);var y=r.parts.slice();u.length!=y.length&&(y=e(y).filter(function(t,n){return e.inArray(n,d)!==-1}).toArray());if(u.length==y.length){for(var l=0,b=y.length;l<b;l++){m=parseInt(u[l],10),a=y[l];if(isNaN(m))switch(a){case"MM":g=e(c[s].months).filter(function(){var e=this.slice(0,u[l].length),t=u[l].slice(0,e.length);return e==t}),m=e.inArray(g[0],c[s].months)+1;break;case"M":g=e(c[s].monthsShort).filter(function(){var e=this.slice(0,u[l].length),t=u[l].slice(0,e.length);return e==t}),m=e.inArray(g[0],c[s].monthsShort)+1}p[a]=m}for(var l=0,w,E;l<d.length;l++)E=d[l],E in p&&!isNaN(p[E])&&(w=new Date(t),v[E](w,p[E]),isNaN(w)||(t=w))}return t},formatDate:function(t,n,r){typeof n=="string"&&(n=h.parseFormat(n));var i={d:t.getUTCDate(),D:c[r].daysShort[t.getUTCDay()],DD:c[r].days[t.getUTCDay()],m:t.getUTCMonth()+1,M:c[r].monthsShort[t.getUTCMonth()],MM:c[r].months[t.getUTCMonth()],yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear()};i.dd=(i.d<10?"0":"")+i.d,i.mm=(i.m<10?"0":"")+i.m;var t=[],s=e.extend([],n.separators);for(var o=0,u=n.parts.length;o<=u;o++)s.length&&t.push(s.shift()),t.push(i[n.parts[o]]);return t.join("")},headTemplate:'<thead><tr><th class="prev">«</th><th colspan="5" class="datepicker-switch"></th><th class="next">»</th></tr></thead>',contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};h.template='<div class="datepicker"><div class="datepicker-days"><table class=" table-condensed">'+h.headTemplate+"<tbody></tbody>"+h.footTemplate+"</table>"+"</div>"+'<div class="datepicker-months">'+'<table class="table-condensed">'+h.headTemplate+h.contTemplate+h.footTemplate+"</table>"+"</div>"+'<div class="datepicker-years">'+'<table class="table-condensed">'+h.headTemplate+h.contTemplate+h.footTemplate+"</table>"+"</div>"+"</div>",e.fn.bsdatepicker.DPGlobal=h,e.fn.bsdatepicker.noConflict=function(){return e.fn.bsdatepicker=a,this},e(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var n=e(this);if(n.data("datepicker"))return;t.preventDefault(),n.bsdatepicker("show")}),e(function(){e('[data-provide="datepicker-inline"]').bsdatepicker()})}),define("bootstrap-datepicker",function(){}),function(e){typeof define=="function"&&define.amd?define("jqueryUI",["jquery"],e):e(jQuery)}(function(e){e.ui=e.ui||{};var t=e.ui.version="1.12.1";e.fn.jquery.substring(0,3)==="1.7"&&(e.each(["Width","Height"],function(t,n){function o(t,n,i,s){return e.each(r,function(){n-=parseFloat(e.css(t,"padding"+this))||0,i&&(n-=parseFloat(e.css(t,"border"+this+"Width"))||0),s&&(n-=parseFloat(e.css(t,"margin"+this))||0)}),n}var r=n==="Width"?["Left","Right"]:["Top","Bottom"],i=n.toLowerCase(),s={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+n]=function(t){return t===undefined?s["inner"+n].call(this):this.each(function(){e(this).css(i,o(this,t)+"px")})},e.fn["outer"+n]=function(t,r){return typeof t!="number"?s["outer"+n].call(this,t):this.each(function(){e(this).css(i,o(this,t,!0,r)+"px")})}}),e.fn.addBack=function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))});var n=e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38};(function(){function l(e,t,n){return[parseFloat(e[0])*(a.test(e[0])?t/100:1),parseFloat(e[1])*(a.test(e[1])?n/100:1)]}function c(t,n){return parseInt(e.css(t,n),10)||0}function h(t){var n=t[0];return n.nodeType===9?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:e.isWindow(n)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:n.preventDefault?{width:0,height:0,offset:{top:n.pageY,left:n.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}var t,n=Math.max,r=Math.abs,i=/left|center|right/,s=/top|center|bottom/,o=/[\+\-]\d+(\.[\d]+)?%?/,u=/^\w+/,a=/%$/,f=e.fn.position;e.position={scrollbarWidth:function(){if(t!==undefined)return t;var n,r,i=e("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),s=i.children()[0];return e("body").append(i),n=s.offsetWidth,i.css("overflow","scroll"),r=s.offsetWidth,n===r&&(r=i[0].clientWidth),i.remove(),t=n-r},getScrollInfo:function(t){var n=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),r=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),i=n==="scroll"||n==="auto"&&t.width<t.element[0].scrollWidth,s=r==="scroll"||r==="auto"&&t.height<t.element[0].scrollHeight;return{width:s?e.position.scrollbarWidth():0,height:i?e.position.scrollbarWidth():0}},getWithinInfo:function(t){var n=e(t||window),r=e.isWindow(n[0]),i=!!n[0]&&n[0].nodeType===9,s=!r&&!i;return{element:n,isWindow:r,isDocument:i,offset:s?e(t).offset():{left:0,top:0},scrollLeft:n.scrollLeft(),scrollTop:n.scrollTop(),width:n.outerWidth(),height:n.outerHeight()}}},e.fn.position=function(t){if(!t||!t.of)return f.apply(this,arguments);t=e.extend({},t);var a,p,d,v,m,g,y=e(t.of),b=e.position.getWithinInfo(t.within),w=e.position.getScrollInfo(b),E=(t.collision||"flip").split(" "),S={};return g=h(y),y[0].preventDefault&&(t.at="left top"),p=g.width,d=g.height,v=g.offset,m=e.extend({},v),e.each(["my","at"],function(){var e=(t[this]||"").split(" "),n,r;e.length===1&&(e=i.test(e[0])?e.concat(["center"]):s.test(e[0])?["center"].concat(e):["center","center"]),e[0]=i.test(e[0])?e[0]:"center",e[1]=s.test(e[1])?e[1]:"center",n=o.exec(e[0]),r=o.exec(e[1]),S[this]=[n?n[0]:0,r?r[0]:0],t[this]=[u.exec(e[0])[0],u.exec(e[1])[0]]}),E.length===1&&(E[1]=E[0]),t.at[0]==="right"?m.left+=p:t.at[0]==="center"&&(m.left+=p/2),t.at[1]==="bottom"?m.top+=d:t.at[1]==="center"&&(m.top+=d/2),a=l(S.at,p,d),m.left+=a[0],m.top+=a[1],this.each(function(){var i,s,o=e(this),u=o.outerWidth(),f=o.outerHeight(),h=c(this,"marginLeft"),g=c(this,"marginTop"),x=u+h+c(this,"marginRight")+w.width,T=f+g+c(this,"marginBottom")+w.height,N=e.extend({},m),C=l(S.my,o.outerWidth(),o.outerHeight());t.my[0]==="right"?N.left-=u:t.my[0]==="center"&&(N.left-=u/2),t.my[1]==="bottom"?N.top-=f:t.my[1]==="center"&&(N.top-=f/2),N.left+=C[0],N.top+=C[1],i={marginLeft:h,marginTop:g},e.each(["left","top"],function(n,r){e.ui.position[E[n]]&&e.ui.position[E[n]][r](N,{targetWidth:p,targetHeight:d,elemWidth:u,elemHeight:f,collisionPosition:i,collisionWidth:x,collisionHeight:T,offset:[a[0]+C[0],a[1]+C[1]],my:t.my,at:t.at,within:b,elem:o})}),t.using&&(s=function(e){var i=v.left-N.left,s=i+p-u,a=v.top-N.top,l=a+d-f,c={target:{element:y,left:v.left,top:v.top,width:p,height:d},element:{element:o,left:N.left,top:N.top,width:u,height:f},horizontal:s<0?"left":i>0?"right":"center",vertical:l<0?"top":a>0?"bottom":"middle"};p<u&&r(i+s)<p&&(c.horizontal="center"),d<f&&r(a+l)<d&&(c.vertical="middle"),n(r(i),r(s))>n(r(a),r(l))?c.important="horizontal":c.important="vertical",t.using.call(this,e,c)}),o.offset(e.extend(N,{using:s}))})},e.ui.position={fit:{left:function(e,t){var r=t.within,i=r.isWindow?r.scrollLeft:r.offset.left,s=r.width,o=e.left-t.collisionPosition.marginLeft,u=i-o,a=o+t.collisionWidth-s-i,f;t.collisionWidth>s?u>0&&a<=0?(f=e.left+u+t.collisionWidth-s-i,e.left+=u-f):a>0&&u<=0?e.left=i:u>a?e.left=i+s-t.collisionWidth:e.left=i:u>0?e.left+=u:a>0?e.left-=a:e.left=n(e.left-o,e.left)},top:function(e,t){var r=t.within,i=r.isWindow?r.scrollTop:r.offset.top,s=t.within.height,o=e.top-t.collisionPosition.marginTop,u=i-o,a=o+t.collisionHeight-s-i,f;t.collisionHeight>s?u>0&&a<=0?(f=e.top+u+t.collisionHeight-s-i,e.top+=u-f):a>0&&u<=0?e.top=i:u>a?e.top=i+s-t.collisionHeight:e.top=i:u>0?e.top+=u:a>0?e.top-=a:e.top=n(e.top-o,e.top)}},flip:{left:function(e,t){var n=t.within,i=n.offset.left+n.scrollLeft,s=n.width,o=n.isWindow?n.scrollLeft:n.offset.left,u=e.left-t.collisionPosition.marginLeft,a=u-o,f=u+t.collisionWidth-s-o,l=t.my[0]==="left"?-t.elemWidth:t.my[0]==="right"?t.elemWidth:0,c=t.at[0]==="left"?t.targetWidth:t.at[0]==="right"?-t.targetWidth:0,h=-2*t.offset[0],p,d;if(a<0){p=e.left+l+c+h+t.collisionWidth-s-i;if(p<0||p<r(a))e.left+=l+c+h}else if(f>0){d=e.left-t.collisionPosition.marginLeft+l+c+h-o;if(d>0||r(d)<f)e.left+=l+c+h}},top:function(e,t){var n=t.within,i=n.offset.top+n.scrollTop,s=n.height,o=n.isWindow?n.scrollTop:n.offset.top,u=e.top-t.collisionPosition.marginTop,a=u-o,f=u+t.collisionHeight-s-o,l=t.my[1]==="top",c=l?-t.elemHeight:t.my[1]==="bottom"?t.elemHeight:0,h=t.at[1]==="top"?t.targetHeight:t.at[1]==="bottom"?-t.targetHeight:0,p=-2*t.offset[1],d,v;if(a<0){v=e.top+c+h+p+t.collisionHeight-s-i;if(v<0||v<r(a))e.top+=c+h+p}else if(f>0){d=e.top-t.collisionPosition.marginTop+c+h+p-o;if(d>0||r(d)<f)e.top+=c+h+p}}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}}})();var r=e.ui.position,i=e.fn.extend({uniqueId:function(){var e=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&e(this).removeAttr("id")})}}),s=0,o=Array.prototype.slice;e.cleanData=function(t){return function(n){var r,i,s;for(s=0;(i=n[s])!=null;s++)try{r=e._data(i,"events"),r&&r.remove&&e(i).triggerHandler("remove")}catch(o){}t(n)}}(e.cleanData),e.widget=function(t,n,r){var i,s,o,u={},a=t.split(".")[0];t=t.split(".")[1];var f=a+"-"+t;return r||(r=n,n=e.Widget),e.isArray(r)&&(r=e.extend.apply(null,[{}].concat(r))),e.expr[":"][f.toLowerCase()]=function(t){return!!e.data(t,f)},e[a]=e[a]||{},i=e[a][t],s=e[a][t]=function(e,t){if(!this._createWidget)return new s(e,t);arguments.length&&this._createWidget(e,t)},e.extend(s,i,{version:r.version,_proto:e.extend({},r),_childConstructors:[]}),o=new n,o.options=e.widget.extend({},o.options),e.each(r,function(t,r){if(!e.isFunction(r)){u[t]=r;return}u[t]=function(){function e(){return n.prototype[t].apply(this,arguments)}function i(e){return n.prototype[t].apply(this,e)}return function(){var t=this._super,n=this._superApply,s;return this._super=e,this._superApply=i,s=r.apply(this,arguments),this._super=t,this._superApply=n,s}}()}),s.prototype=e.widget.extend(o,{widgetEventPrefix:i?o.widgetEventPrefix||t:t},u,{constructor:s,namespace:a,widgetName:t,widgetFullName:f}),i?(e.each(i._childConstructors,function(t,n){var r=n.prototype;e.widget(r.namespace+"."+r.widgetName,s,n._proto)}),delete i._childConstructors):n._childConstructors.push(s),e.widget.bridge(t,s),s},e.widget.extend=function(t){var n=o.call(arguments,1),r=0,i=n.length,s,u;for(;r<i;r++)for(s in n[r])u=n[r][s],n[r].hasOwnProperty(s)&&u!==undefined&&(e.isPlainObject(u)?t[s]=e.isPlainObject(t[s])?e.widget.extend({},t[s],u):e.widget.extend({},u):t[s]=u);return t},e.widget.bridge=function(t,n){var r=n.prototype.widgetFullName||t;e.fn[t]=function(i){var s=typeof i=="string",u=o.call(arguments,1),a=this;return s?!this.length&&i==="instance"?a=undefined:this.each(function(){var n,s=e.data(this,r);if(i==="instance")return a=s,!1;if(!s)return e.error("cannot call methods on "+t+" prior to initialization; "+"attempted to call method '"+i+"'");if(!e.isFunction(s[i])||i.charAt(0)==="_")return e.error("no such method '"+i+"' for "+t+" widget instance");n=s[i].apply(s,u);if(n!==s&&n!==undefined)return a=n&&n.jquery?a.pushStack(n.get()):n,!1}):(u.length&&(i=e.widget.extend.apply(null,[i].concat(u))),this.each(function(){var t=e.data(this,r);t?(t.option(i||{}),t._init&&t._init()):e.data(this,r,new n(i,this))})),a}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,n){n=e(n||this.defaultElement||this)[0],this.element=e(n),this.uuid=s++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},n!==this&&(e.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===n&&this.destroy()}}),this.document=e(n.style?n.ownerDocument:n.document||n),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,function(e,n){t._removeClass(n,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var r=t,i,s,o;if(arguments.length===0)return e.widget.extend({},this.options);if(typeof t=="string"){r={},i=t.split("."),t=i.shift();if(i.length){s=r[t]=e.widget.extend({},this.options[t]);for(o=0;o<i.length-1;o++)s[i[o]]=s[i[o]]||{},s=s[i[o]];t=i.pop();if(arguments.length===1)return s[t]===undefined?null:s[t];s[t]=n}else{if(arguments.length===1)return this.options[t]===undefined?null:this.options[t];r[t]=n}}return this._setOptions(r),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return e==="classes"&&this._setOptionClasses(t),this.options[e]=t,e==="disabled"&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var n,r,i;for(n in t){i=this.classesElementLookup[n];if(t[n]===this.options.classes[n]||!i||!i.length)continue;r=e(i.get()),this._removeClass(i,n),r.addClass(this._classes({element:r,keys:n,classes:t,add:!0}))}},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){function i(i,s){var o,u;for(u=0;u<i.length;u++)o=r.classesElementLookup[i[u]]||e(),t.add?o=e(e.unique(o.get().concat(t.element.get()))):o=e(o.not(t.element).get()),r.classesElementLookup[i[u]]=o,n.push(i[u]),s&&t.classes[i[u]]&&n.push(t.classes[i[u]])}var n=[],r=this;return t=e.extend({element:this.element,classes:this.options.classes||{}},t),this._on(t.element,{remove:"_untrackClassesElement"}),t.keys&&i(t.keys.match(/\S+/g)||[],!0),t.extra&&i(t.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(t){var n=this;e.each(n.classesElementLookup,function(r,i){e.inArray(t.target,i)!==-1&&(n.classesElementLookup[r]=e(i.not(t.target).get()))})},_removeClass:function(e,t,n){return this._toggleClass(e,t,n,!1)},_addClass:function(e,t,n){return this._toggleClass(e,t,n,!0)},_toggleClass:function(e,t,n,r){r=typeof r=="boolean"?r:n;var i=typeof e=="string"||e===null,s={extra:i?t:n,keys:i?e:t,element:i?this.element:e,add:r};return s.element.toggleClass(this._classes(s),r),this},_on:function(t,n,r){var i,s=this;typeof t!="boolean"&&(r=n,n=t,t=!1),r?(n=i=e(n),this.bindings=this.bindings.add(n)):(r=n,n=this.element,i=this.widget()),e.each(r,function(r,o){function u(){if(!t&&(s.options.disabled===!0||e(this).hasClass("ui-state-disabled")))return;return(typeof o=="string"?s[o]:o).apply(s,arguments)}typeof o!="string"&&(u.guid=o.guid=o.guid||u.guid||e.guid++);var a=r.match(/^([\w:-]*)\s*(.*)$/),f=a[1]+s.eventNamespace,l=a[2];l?i.on(f,l,u):n.on(f,u)})},_off:function(t,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(n).off(n),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){function n(){return(typeof e=="string"?r[e]:e).apply(r,arguments)}var r=this;return setTimeout(n,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,n,r){var i,s,o=this.options[t];r=r||{},n=e.Event(n),n.type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),n.target=this.element[0],s=n.originalEvent;if(s)for(i in s)i in n||(n[i]=s[i]);return this.element.trigger(n,r),!(e.isFunction(o)&&o.apply(this.element[0],[n].concat(r))===!1||n.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,n){e.Widget.prototype["_"+t]=function(r,i,s){typeof i=="string"&&(i={effect:i});var o,u=i?i===!0||typeof i=="number"?n:i.effect||n:t;i=i||{},typeof i=="number"&&(i={duration:i}),o=!e.isEmptyObject(i),i.complete=s,i.delay&&r.delay(i.delay),o&&e.effects&&e.effects.effect[u]?r[t](i):u!==t&&r[u]?r[u](i.duration,i.easing,s):r.queue(function(n){e(this)[t](),s&&s.call(r[0]),n()})}});var u=e.widget,a=e.ui.safeActiveElement=function(e){var t;try{t=e.activeElement}catch(n){t=e.body}return t||(t=e.body),t.nodeName||(t=e.body),t},f=e.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault()},"click .ui-menu-item":function(t){var n=e(t.target),r=e(e.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&n.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),n.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&r.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&this.active.parents(".ui-menu").length===1&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){if(this.previousFilter)return;var n=e(t.target).closest(".ui-menu-item"),r=e(t.currentTarget);if(n[0]!==r[0])return;this._removeClass(r.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,r)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var n=this.active||this.element.find(this.options.items).eq(0);t||this.focus(e,n)},blur:function(t){this._delay(function(){var n=!e.contains(this.element[0],e.ui.safeActiveElement(this.document[0]));n&&this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),n=t.children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),n.children().each(function(){var t=e(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var n,r,i,s,o=!0;switch(t.keyCode){case e.ui.keyCode.PAGE_UP:this.previousPage(t);break;case e.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case e.ui.keyCode.HOME:this._move("first","first",t);break;case e.ui.keyCode.END:this._move("last","last",t);break;case e.ui.keyCode.UP:this.previous(t);break;case e.ui.keyCode.DOWN:this.next(t);break;case e.ui.keyCode.LEFT:this.collapse(t);break;case e.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case e.ui.keyCode.ENTER:case e.ui.keyCode.SPACE:this._activate(t);break;case e.ui.keyCode.ESCAPE:this.collapse(t);break;default:o=!1,r=this.previousFilter||"",s=!1,i=t.keyCode>=96&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),i===r?s=!0:i=r+i,n=this._filterMenuItems(i),n=s&&n.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):n,n.length||(i=String.fromCharCode(t.keyCode),n=this._filterMenuItems(i)),n.length?(this.focus(t,n),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}o&&t.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var t,n,r,i,s,o=this,u=this.options.icons.submenu,a=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),r=a.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=e(this),n=t.prev(),r=e("<span>").data("ui-menu-submenu-caret",!0);o._addClass(r,"ui-menu-icon","ui-icon "+u),n.attr("aria-haspopup","true").prepend(r),t.attr("aria-labelledby",n.attr("id"))}),this._addClass(r,"ui-menu","ui-widget ui-widget-content ui-front"),t=a.add(this.element),n=t.find(this.options.items),n.not(".ui-menu-item").each(function(){var t=e(this);o._isDivider(t)&&o._addClass(t,"ui-menu-divider","ui-widget-content")}),i=n.not(".ui-menu-item, .ui-menu-divider"),s=i.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(i,"ui-menu-item")._addClass(s,"ui-menu-item-wrapper"),n.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!e.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){if(e==="icons"){var n=this.element.find(".ui-menu-icon");this._removeClass(n,null,this.options.icons.submenu)._addClass(n,null,t.submenu)}this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",String(e)),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,t){var n,r,i;this.blur(e,e&&e.type==="focus"),this._scrollIntoView(t),this.active=t.first(),r=this.active.children(".ui-menu-item-wrapper"),this.options.role&&this.element.attr("aria-activedescendant",r.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),e&&e.type==="keydown"?this._close():this.timer=this._delay(function(){this._close()},this.delay),n=t.children(".ui-menu"),n.length&&e&&/^mouse/.test(e.type)&&this._startOpening(n),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(t){var n,r,i,s,o,u;this._hasScroll()&&(n=parseFloat(e.css(this.activeMenu[0],"borderTopWidth"))||0,r=parseFloat(e.css(this.activeMenu[0],"paddingTop"))||0,i=t.offset().top-this.activeMenu.offset().top-n-r,s=this.activeMenu.scrollTop(),o=this.activeMenu.height(),u=t.outerHeight(),i<0?this.activeMenu.scrollTop(s+i):i+u>o&&this.activeMenu.scrollTop(s+i-o+u))},blur:function(e,t){t||clearTimeout(this.timer);if(!this.active)return;this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null},_startOpening:function(e){clearTimeout(this.timer);if(e.attr("aria-hidden")!=="true")return;this.timer=this._delay(function(){this._close(),this._open(e)},this.delay)},_open:function(t){var n=e.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(n)},collapseAll:function(t,n){clearTimeout(this.timer),this.timer=this._delay(function(){var r=n?this.element:e(t&&t.target).closest(this.element.find(".ui-menu"));r.length||(r=this.element),this._close(r),this.blur(t),this._removeClass(r.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=r},this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(t){return!e(t.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(e,t,n){var r;this.active&&(e==="first"||e==="last"?r=this.active[e==="first"?"prevAll":"nextAll"](".ui-menu-item").eq(-1):r=this.active[e+"All"](".ui-menu-item").eq(0));if(!r||!r.length||!this.active)r=this.activeMenu.find(this.options.items)[t]();this.focus(n,r)},nextPage:function(t){var n,r,i;if(!this.active){this.next(t);return}if(this.isLastItem())return;this._hasScroll()?(r=this.active.offset().top,i=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return n=e(this),n.offset().top-r-i<0}),this.focus(t,n)):this.focus(t,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())},previousPage:function(t){var n,r,i;if(!this.active){this.next(t);return}if(this.isFirstItem())return;this._hasScroll()?(r=this.active.offset().top,i=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return n=e(this),n.offset().top-r+i>0}),this.focus(t,n)):this.focus(t,this.activeMenu.find(this.options.items).first())},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||e(t.target).closest(".ui-menu-item");var n={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,n)},_filterMenuItems:function(t){var n=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),r=new RegExp("^"+n,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return r.test(e.trim(e(this).children(".ui-menu-item-wrapper").text()))})}});e.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var t,n,r,i=this.element[0].nodeName.toLowerCase(),s=i==="textarea",o=i==="input";this.isMultiLine=s||!o&&this._isContentEditable(this.element),this.valueMethod=this.element[s||o?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(i){if(this.element.prop("readOnly")){t=!0,r=!0,n=!0;return}t=!1,r=!1,n=!1;var s=e.ui.keyCode;switch(i.keyCode){case s.PAGE_UP:t=!0,this._move("previousPage",i);break;case s.PAGE_DOWN:t=!0,this._move("nextPage",i);break;case s.UP:t=!0,this._keyEvent("previous",i);break;case s.DOWN:t=!0,this._keyEvent("next",i);break;case s.ENTER:this.menu.active&&(t=!0,i.preventDefault(),this.menu.select(i));break;case s.TAB:this.menu.active&&this.menu.select(i);break;case s.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(i),i.preventDefault());break;default:n=!0,this._searchTimeout(i)}},keypress:function(r){if(t){t=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&r.preventDefault();return}if(n)return;var i=e.ui.keyCode;switch(r.keyCode){case i.PAGE_UP:this._move("previousPage",r);break;case i.PAGE_DOWN:this._move("nextPage",r);break;case i.UP:this._keyEvent("previous",r);break;case i.DOWN:this._keyEvent("next",r)}},input:function(e){if(r){r=!1,e.preventDefault();return}this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){if(this.cancelBlur){delete this.cancelBlur;return}clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=e("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==e.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(t,n){var r,i;if(this.isNewMenu){this.isNewMenu=!1;if(t.originalEvent&&/^mouse/.test(t.originalEvent.type)){this.menu.blur(),this.document.one("mousemove",function(){e(t.target).trigger(t.originalEvent)});return}}i=n.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:i})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(i.value),r=n.item.attr("aria-label")||i.value,r&&e.trim(r).length&&(this.liveRegion.children().hide(),e("<div>").text(r).appendTo(this.liveRegion)),e(".ui-state-focus").removeClass("ui-state-focus"),n.item.addClass("ui-state-focus")},menuselect:function(t,n){var r=n.item.data("ui-autocomplete-item"),i=this.previous;this.element[0]!==e.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=i,this._delay(function(){this.previous=i,this.selectedItem=r})),!1!==this._trigger("select",t,{item:r})&&this._value(r.value),this.term=this._value(),this.close(t),this.selectedItem=r}}),this.liveRegion=e("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),e==="source"&&this._initSource(),e==="appendTo"&&this.menu.element.appendTo(this._appendTo()),e==="disabled"&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var n=this.menu.element[0];return t.target===this.element[0]||t.target===n||e.contains(n,t.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var t=this.options.appendTo;t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0));if(!t||!t[0])t=this.element.closest(".ui-front, dialog");return t.length||(t=this.document[0].body),t},_initSource:function(){var t,n,r=this;e.isArray(this.options.source)?(t=this.options.source,this.source=function(n,r){r(e.ui.autocomplete.filter(t,n.term))}):typeof this.options.source=="string"?(n=this.options.source,this.source=function(t,i){r.xhr&&r.xhr.abort(),r.xhr=e.ajax({url:n,data:t,dataType:"json",success:function(e){i(e)},error:function(){i([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),n=this.menu.element.is(":visible"),r=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;if(!t||t&&!n&&!r)this.selectedItem=null,this.search(null,e)},this.options.delay)},search:function(e,t){e=e!=null?e:this._value(),this.term=this._value();if(e.length<this.options.minLength)return this.close(t);if(this._trigger("search",t)===!1)return;return this._search(e)},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return e.proxy(function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(e){e&&(e=this._normalize(e)),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:e.map(t,function(t){return typeof t=="string"?{label:t,value:t}:e.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(t){var n=this.menu.element.empty();this._renderMenu(n,t),this.isNewMenu=!0,this.menu.refresh(),n.show(),this._resizeMenu(),n.position(e.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,n){var r=this;e.each(n,function(e,n){r._renderItemData(t,n)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(t,n){return e("<li>").append(e("<div>").text(n.label)).appendTo(t)},_move:function(e,t){if(!this.menu.element.is(":visible")){this.search(null,t);return}if(this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)){this.isMultiLine||this._value(this.term),this.menu.blur();return}this.menu[e](t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){if(!this.isMultiLine||this.menu.element.is(":visible"))this._move(e,t),t.preventDefault()},_isContentEditable:function(e){if(!e.length)return!1;var t=e.prop("contentEditable");return t==="inherit"?this._isContentEditable(e.parent()):t==="true"}}),e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,n){var r=new RegExp(e.ui.autocomplete.escapeRegex(n),"i");return e.grep(t,function(e){return r.test(e.label||e.value||e)})}}),e.widget("ui.autocomplete",e.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var n;this._superApply(arguments);if(this.options.disabled||this.cancelSearch)return;t&&t.length?n=this.options.messages.results(t.length):n=this.options.messages.noResults,this.liveRegion.children().hide(),e("<div>").text(n).appendTo(this.liveRegion)}});var l=e.ui.autocomplete;e.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=e(this).attr("title")||"";return e("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(t,n){var r=(t.attr("aria-describedby")||"").split(/\s+/);r.push(n),t.data("ui-tooltip-id",n).attr("aria-describedby",e.trim(r.join(" ")))},_removeDescribedBy:function(t){var n=t.data("ui-tooltip-id"),r=(t.attr("aria-describedby")||"").split(/\s+/),i=e.inArray(n,r);i!==-1&&r.splice(i,1),t.removeData("ui-tooltip-id"),r=e.trim(r.join(" ")),r?t.attr("aria-describedby",r):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=e("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=e([])},_setOption:function(t,n){var r=this;this._super(t,n),t==="content"&&e.each(this.tooltips,function(e,t){r._updateContent(t.element)})},_setOptionDisabled:function(e){this[e?"_disable":"_enable"]()},_disable:function(){var t=this;e.each(this.tooltips,function(n,r){var i=e.Event("blur");i.target=i.currentTarget=r.element[0],t.close(i,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var t=e(this);if(t.is("[title]"))return t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")}))},_enable:function(){this.disabledTitles.each(function(){var t=e(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))}),this.disabledTitles=e([])},open:function(t){var n=this,r=e(t?t.target:this.element).closest(this.options.items);if(!r.length||r.data("ui-tooltip-id"))return;r.attr("title")&&r.data("ui-tooltip-title",r.attr("title")),r.data("ui-tooltip-open",!0),t&&t.type==="mouseover"&&r.parents().each(function(){var t=e(this),r;t.data("ui-tooltip-open")&&(r=e.Event("blur"),r.target=r.currentTarget=this,n.close(r,!0)),t.attr("title")&&(t.uniqueId(),n.parents[this.id]={element:this,title:t.attr("title")},t.attr("title",""))}),this._registerCloseHandlers(t,r),this._updateContent(r,t)},_updateContent:function(e,t){var n,r=this.options.content,i=this,s=t?t.type:null;if(typeof r=="string"||r.nodeType||r.jquery)return this._open(t,e,r);n=r.call(e[0],function(n){i._delay(function(){if(!e.data("ui-tooltip-open"))return;t&&(t.type=s),this._open(t,e,n)})}),n&&this._open(t,e,n)},_open:function(t,n,r){function f(e){a.of=e;if(s.is(":hidden"))return;s.position(a)}var i,s,o,u,a=e.extend({},this.options.position);if(!r)return;i=this._find(n);if(i){i.tooltip.find(".ui-tooltip-content").html(r);return}n.is("[title]")&&(t&&t.type==="mouseover"?n.attr("title",""):n.removeAttr("title")),i=this._tooltip(n),s=i.tooltip,this._addDescribedBy(n,s.attr("id")),s.find(".ui-tooltip-content").html(r),this.liveRegion.children().hide(),u=e("<div>").html(s.find(".ui-tooltip-content").html()),u.removeAttr("name").find("[name]").removeAttr("name"),u.removeAttr("id").find("[id]").removeAttr("id"),u.appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:f}),f(t)):s.position(e.extend({of:n},this.options.position)),s.hide(),this._show(s,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(o=this.delayedShow=setInterval(function(){s.is(":visible")&&(f(a.of),clearInterval(o))},e.fx.interval)),this._trigger("open",t,{tooltip:s})},_registerCloseHandlers:function(t,n){var r={keyup:function(t){if(t.keyCode===e.ui.keyCode.ESCAPE){var r=e.Event(t);r.currentTarget=n[0],this.close(r,!0)}}};n[0]!==this.element[0]&&(r.remove=function(){this._removeTooltip(this._find(n).tooltip)});if(!t||t.type==="mouseover")r.mouseleave="close";if(!t||t.type==="focusin")r.focusout="close";this._on(!0,n,r)},close:function(t){var n,r=this,i=e(t?t.currentTarget:this.element),s=this._find(i);if(!s){i.removeData("ui-tooltip-open");return}n=s.tooltip;if(s.closing)return;clearInterval(this.delayedShow),i.data("ui-tooltip-title")&&!i.attr("title")&&i.attr("title",i.data("ui-tooltip-title")),this._removeDescribedBy(i),s.hiding=!0,n.stop(!0),this._hide(n,this.options.hide,function(){r._removeTooltip(e(this))}),i.removeData("ui-tooltip-open"),this._off(i,"mouseleave focusout keyup"),i[0]!==this.element[0]&&this._off(i,"remove"),this._off(this.document,"mousemove"),t&&t.type==="mouseleave"&&e.each(this.parents,function(t,n){e(n.element).attr("title",n.title),delete r.parents[t]}),s.closing=!0,this._trigger("close",t,{tooltip:n}),s.hiding||(s.closing=!1)},_tooltip:function(t){var n=e("<div>").attr("role","tooltip"),r=e("<div>").appendTo(n),i=n.uniqueId().attr("id");return this._addClass(r,"ui-tooltip-content"),this._addClass(n,"ui-tooltip","ui-widget ui-widget-content"),n.appendTo(this._appendTo(t)),this.tooltips[i]={element:t,tooltip:n}},_find:function(e){var t=e.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(e){e.remove(),delete this.tooltips[e.attr("id")]},_appendTo:function(e){var t=e.closest(".ui-front, dialog");return t.length||(t=this.document[0].body),t},_destroy:function(){var t=this;e.each(this.tooltips,function(n,r){var i=e.Event("blur"),s=r.element;i.target=i.currentTarget=s[0],t.close(i,!0),e("#"+n).remove(),s.data("ui-tooltip-title")&&(s.attr("title")||s.attr("title",s.data("ui-tooltip-title")),s.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),e.uiBackCompat!==!1&&e.widget("ui.tooltip",e.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var e=this._superApply(arguments);return this.options.tooltipClass&&e.tooltip.addClass(this.options.tooltipClass),e}});var c=e.ui.tooltip}),define("app/create/seo/seoInvoice",["newgat","BaseView","util/fpti","jquery","underscore","app/create/seo/seoInvoiceModel","bootstrap-datepicker","jqueryUI"],function(e,t,n,r,i,s){var o="main:inv3:seo::invoice::",u="main:inv3:seo::invoice",a=t.extend({el:"#seoContainer",MAX_LOGO_SIZE:1048576,MAX_NOTES_CHARS:4e3,PHONE_REGEX:/^(\d{3})(\d{3})(\d{4})$/,PDF_URL:"/invoice/invoice-template-generator/render-pdf?invId=",PRINT_URL:"/invoice/invoice-template-generator/print?invId=",events:{"click .logo-select-trigger":"openLogoFileDialog","click #removeLogo":"clearLogoSelection","click #addItem":"addItemRow","click .remove-item-icon":"removeItemRow","input .item-desc":"resizeItemDescField","click .seo-inv-action-btn":"handleInvoiceAction","change #logo":"showLogoPreview","click .question-div":"toggleFaq","focus #shippingAmount":"editShippingAmt","blur #shippingAmount":"displayShippingAmt","click #currencySelector":"showCurrencyDropdown","click .currency-list li":"selectCurrency","change .email-validation-trigger":"validateEmailInput","change .name-validation-trigger":"validateNameInput","keyup #itemTable tbody input":"validateItemInput","change #itemTable tbody input":"onChangeInput","keyup #invoiceNotes":"validateNotes","keyup #shippingAmount":"validateShippingAmt","change #shippingAmount":"onShippingAmtChange"},openLogoFileDialog:function(){n.recordClick(u,o,"add_update_logo"),r("#logo").click()},clearLogoSelection:function(){n.recordClick(u,o,"remove_logo");var e=document.querySelector("img#logoImage");e&&(e.src=""),s.logoFile=null,r("#logoBox").hide(),r("#logoTextBox").show()},addItemRow:function(t){t&&n.recordClick(u,o,"add_item"),e.viewRenderer.render("content/invoice/seo/seoItemRow",{currencySymbol:s.currencySymbol}).then(function(e){r("#itemTable tbody").append(e),r("#itemTable tbody tr:last textarea").focus()})},removeItemRow:function(e){r(e.currentTarget).parents("tr").remove(),r("#itemTable tbody tr").length===0&&this.addItemRow(),this.calculateTotalAmount()},resizeItemDescField:function(e){r(e.currentTarget).css("height","auto").css("height",e.currentTarget.scrollHeight+2)},handleInvoiceAction:function(e){var t=this,i=r(e.currentTarget).attr("data-action");n.recordClick(u,o,i+"_invoice");if(r(".error-box:visible").length>0){r("#validationErrorMessage").removeClass("hidden");return}if(this.calculateTotalAmount()<0){r("#totalAmountValidationMessage").removeClass("hidden");return}r("#validationErrorMessage").addClass("hidden"),r("#totalAmountValidationMessage").addClass("hidden"),r("#ajaxSpinner").modal("show");var a=s.getInvoiceFormData();a.append("action",i);if(r("#maxItemValidationMessage:visible").length>0){r("#ajaxSpinner").modal("hide");return}var f;if(i=="print"){var l=r(window).height()*3/4,c=r(window).width()*3/4;f=window.open("","Title_","resizable=yes,scrollbars=yes,directories=no,titlebar=no,location=no,status=no,menubar=no,width="+c+",height="+l)}r.ajax({type:"POST",url:"/invoice/invoice-template-generator",data:a,processData:!1,contentType:!1,cache:!1,success:function(e){r("#logoUrl").val(e.logoUrl);switch(i){case"print":t.printInvoice(e.invId,f);break;case"pdf":t.displayPdfInvoice(e.invId);break;default:window.location=e.redirectURL}},error:function(e){r("#ajaxSpinner").modal("hide");var t="Unable to send the invoice";n.recordFPTIImpression(u,o,"seoInvoce",500,t)}})},printInvoice:function(e,t){r("#ajaxSpinner").modal("hide");if(!e){var i="Unable to retrieve invoicing form data";n.recordFPTIImpression(u,o,"seoInvoce",500,i),t.close();return}t.location.href=this.PRINT_URL+e},displayPdfInvoice:function(e){var t="<iframe border='0' id='pdfObject' type='application/pdf' src='"+this.PDF_URL+e+"' width='100%' height='500'></iframe>";r("#ajaxSpinner").modal("hide"),r("#pdfContentDisplay").html(t),r("#pdfInvoiceNumber").html(r("#invoiceNumber").val()),r("#pdfModal").modal("show")},showLogoPreview:function(){s.logoFile=r("#logo")[0].files[0];var e=document.querySelector("img#logoImage");if(s.logoFile.size>this.MAX_LOGO_SIZE)return r("#logoWarning").removeClass("hidden");r("#logoWarning").addClass("hidden"),r("#logo").replaceWith('<input type="file" name="logoFile" id="logo" style="display:none;" accept="image/*"/>');var t=new FileReader;t.onloadend=function(t){e.src=t.target.result,r("#logoTextBox").hide(),r("#logoBox").show(),r("#logoUrl").val("")},s.logoFile&&t.readAsDataURL(s.logoFile)},toggleFaq:function(e){r(e.currentTarget).toggleClass("open")},showMarketingVideo:function(e){n.recordClick(u,o,"play_marketing_video"),r(e.currentTarget).find("iframe").attr("src",r("#howItWorksBtn").data("video-id"))},hideMarketingVideo:function(e){r("#howItWorksVideo iFrame").attr("src","")},editShippingAmt:function(e){r(e.currentTarget).val(r(e.currentTarget).val().replace(s.currencySymbol,""))},displayShippingAmt:function(e){var t=r(e.currentTarget).val(),n=s.currencySymbol;t&&t.indexOf(n)===-1&&r(e.currentTarget).val(n+t)},showCurrencyDropdown:function(e){e.stopPropagation(),r("#currencyDropDown").toggleClass("hidden"),r(document).one("click",function(){r("#currencyDropDown").addClass("hidden")})},selectCurrency:function(e){var t=r(e.currentTarget),n=s.currencyCode=t.text().split("-")[0].trim(),i=s.currencySymbol=t.data("currency-symbol");r("#currency").val(t.text()).data("currency-symbol",i),r("span[name='currencyCode']").text(" "+n),r("span[name='currencySymbol']").text(i),r("#shippingAmount").attr("placeholder",i+"0.00"),r("#shippingAmount").val()&&r("#shippingAmount").val(i+r("#shippingAmount").val().replace(r("#shippingAmount").data("currency-symbol"),"")),r("#shippingAmount").data("currency-symbol",i)},validateEmailInput:function(e){var t=r(e.currentTarget).parent().parent().find(".error-box");if(this.validateEmail(r(e.currentTarget).val().trim()))return t.hide();t.show()},validateNameInput:function(e){var t=r(e.currentTarget).val().trim(),n=r(e.currentTarget).parent().parent().find(".error-box");if(t&&this.validateEmail(t))return n.show();n.hide()},validateEmail:function(e){if(e){var t=/^([^@<>\s\."'\(\)\[\]\{\}\\/,:;]+\.)*[^@<>\s\."'\(\)\[\]\{\}\\/,:;]+@[^@<>\s\."'\(\)\[\]\{\}\\/,:;]+(\.[^@<>\s\."'\(\)\[\]\{\}\\/,:;]+)+$/;return t.test(e)}return!0},validateItemInput:function(e){var t=r(e.currentTarget),n=t.val(),i=t.attr("name");if(i=="itemQuantity"||i=="itemPrice"){if(n&&/^-?\.?$/.test(n))t.parent().parent().find(".error-box").hide(),t.data("value",n);else{if(isNaN(n))return t.val(t.data("value")||"");t.parent().parent().find(".error-box").hide(),t.data("value",n),i=="itemQuantity"?this.adjustDecimal(t,".",5):this.adjustDecimal(t,".",2),i=="itemQuantity"&&(Number(n)<-1e4||Number(n)>1e4)&&t.parent().parent().find(".error-box").show(),i=="itemPrice"&&(Number(n)<-1e6||Number(n)>1e6)&&t.parent().parent().find(".error-box").show()}this.calculateTotalAmount()}},onChangeInput:function(e){var t=r(e.currentTarget),n=t.val(),i;t.parent().parent().find(".invalid").hide(),n&&/^-?\.?$/.test(n)?t.parent().parent().find(".invalid").show():/^-?\./.test(n)?i=n.replace(".","0."):/\.$/.test(n)&&(i=n.replace(".","")),i&&t.val(i).data("value",i)},validateNotes:function(e){var t=r("#invoiceNotes").val(),n=t.length;n>this.MAX_NOTES_CHARS&&r("#invoiceNotes").val(t.substring(0,this.MAX_NOTES_CHARS)),r("#characterCount").text(this.MAX_NOTES_CHARS-n)},validateShippingAmt:function(e){var t=r(e.currentTarget),n=t.val();if(!/^\.?$/.test(n)&&isNaN(n))return t.val(t.data("value")||"");t.parent().parent().find(".error-box").hide(),t.data("value",n),this.adjustDecimal(t,".",2),(Number(n)<0||Number(n)>1e6)&&t.parent().parent().find(".error-box").show(),this.calculateTotalAmount()},onShippingAmtChange:function(e){var t=r(e.currentTarget).val().trim(),n=t==="."?"0.00":Number(t).toFixed(2);t&&r(e.currentTarget).val(s.currencySymbol+n)},initialize:function(){window.onerror=requirejs.onError=r.noop;if(r("#printView").length>0)return window.print();n.recordFPTIImpression(u,o,"seoInvoice.dust",null,null,"invoice_generator"),this.initializeDatepicker(),r("#howItWorksVideo").on("show.bs.modal",this.showMarketingVideo.bind(this)).on("hide.bs.modal",this.hideMarketingVideo.bind(this)),e.viewRenderer.render("content/invoice/seo/seoItemRow")},initializeDatepicker:function(){var e=r("#dateFormat").val()||"mm/dd/yyyy",t=r("#weekStart").val()||0,n=r("#locLang").val()||"en";r("#dueDate").bsdatepicker({autoclose:!0,changeMonth:!0,changeYear:!0,format:e,language:n,weekStart:t}).on("show",function(){r("#calendarIcon").removeClass("hidden")}).on("hide",function(){r("#calendarIcon").addClass("hidden")})},calculateTotalAmount:function(){var e=this,t=parseFloat(r("#shippingAmount").data("value"))||0,n=0;return r("#itemTable tbody tr").each(function(t,i){var s=parseFloat(r(i).find("input[name='itemQuantity']").data("value"))||0,o=parseFloat(r(i).find("input[name='itemPrice']").data("value"))||0,u=s*o;e.showHideNegativeSign(i,u),r(i).find("span[name='lineItemTotal']").text(Math.abs(u).toFixed(2)),n+=parseFloat(u.toFixed(2))}),t+=n,r("#subTotal").text(Math.abs(n).toFixed(2)),r("#totalAmount").text(Math.abs(t).toFixed(2)),this.showHideNegativeSign(r("#subTotal").parent(),n),this.showHideNegativeSign(r("#totalAmount").parent(),t),t},adjustDecimal:function(e,t,n){var i=r(e).val(),s=i.indexOf(t),o=s!==-1&&i.substring(0,s+n+1);o&&(r(e).val(o),r(e).data("value",o))},showHideNegativeSign:function(e,t){var n=r(e).find('span[name="negativeAmount"]');if(t<0)return n.removeClass("hidden");n.addClass("hidden")}});return new a}),require(["_config"],function(){require(["bootstrap","ajaxError","app/create/seo/seoInvoice"])}),define("seoInvoice",function(){});
Add Comment
Please, Sign In to add comment