/*
** Annotator v2.0.0-alpha.2-BetaAug17RefreshTag-507-gb624799790
** https://github.com/okfn/annotator/
**
** Copyright 2017, the Annotator project contributors.
** Dual licensed under the MIT and GPLv3 licenses.
** https://github.com/okfn/annotator/blob/master/LICENSE
**
** Built at: 2017-11-16 13:24:28Z
*/

!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.plugin=e()}}(function(){var e;return function t(e,n,o){function r(a,s){if(!n[a]){if(!e[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(i)return i(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};e[a][0].call(c.exports,function(t){var n=e[a][1][t];return r(n?n:t)},c,c.exports,t,e,n,o)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<o.length;a++)r(o[a]);return r}({1:[function(e,t,n){var o=e("insert-css"),r=e("./css/annotator.css");o(r);var i=e("./src/app"),a=e("./src/storage"),s=e("./src/ui"),u=e("./src/util"),l=e("./src/pdfStore");n.App=i.App,n.storage=a,n.ui=s,n.util=u,n.pdfStore=l,n.ext={};var c=u.getGlobal(),f=c.wgxpath;"undefined"!=typeof f&&null!==f&&"function"==typeof f.install&&f.install();var d=c.annotator;n.noConflict=function(){return c.annotator=d,this}},{"./css/annotator.css":2,"./src/app":22,"./src/pdfStore":24,"./src/storage":27,"./src/ui":29,"./src/util":35,"insert-css":15}],2:[function(e,t){t.exports='.annotator-hl{background:#FFFF0A;background:rgba(255,255,10,.3);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#4DFFFF0A, endColorstr=#4DFFFF0A)"}.annotator-st{text-decoration:line-through;text-decoration-color:red}.annotator-ul{text-decoration:underline;text-decoration-color:green}.annotator-hl-temporary{background:#007CFF;background:rgba(0,124,255,.3);-ms-filter:"progid:DXImageTransform.Microsoft.gradient(startColorstr=#4D007CFF, endColorstr=#4D007CFF)"}.annotator-sticky{position:absolute;max-width:1rem!important;width:1rem;height:1rem;content:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAFiUAABYlAUlSJPAAAAPXSURBVFhHzZltSBRBGMf/JxWpUFcWkakRRGFESJQcqL3Yh16oBCMqgpLQICpLK60IKj9YGGRkhZD0IkFRFFZEIdLrSWVlGpEkYaWfgrpMQunTNv/ZuUtv927X8q79wdzsPrf7PP+bmX1mZs81d3aq9qK5Dfm5wJhRcATfe4CaG4DQBpc416r2AdvW6l86hVNXgO1HAJdoOe3sQWV1GAWHgRindKsZ1Bajjh2L4wW69uRBqyhSZ4PA9wNo+wh8+QY8e6OMQXhmARMSgNQpwNjRyjgISiqBYerYFhT18CVQexu4+UC37dmZj5TZM5A4abJuUPzs8eFZ63McK66R5znZbuRmd2P5vEGKZQtqreFLb5NMRZq4XGPevHj+rNbV1aXZhdfynpxlWdIHfX17bB6rf6E2yzHY2ALM3xSPhtYseL1eNL16hw15+UhKSlJXWMNreU/dncfSR8ObBViy1S19WxKuBf2txl/f29ur2uPfoS/6pG/GMIvNQm0hBfrFiV+s3A499B1OZMgubnmvTzPsjoyMDGUdeuibMRir/qkyBmEQ2PcL2FwWD9EFERXnhzEY68Bpt4wdjEHgk2bxMSIFq9es1w1RQMYaPhF3vcrQD4PAa/ViZbO9GLGxscoSeRhr2469Mr8GYxDIddistDnqLHp4PJ5A8u+P6UMSFxenjqJHcnKyrNs/yyqAqcD/QV9fn6zjRsoqgKlAkUjVUfTo7OyUddIEWQUwCBTJEd5H4kmJMt4nD+S+KBiDwJyFIknvLIXP51OWyMNYtefOIC9HGfphEJiRpi+NjpYfUpbIU326Eoljv0Js4oyYzcXvb+nzcNXJ42rWjBzXr12WsRgzWEfIuXiaWHt6L4quLizGqSqxrI0Q9L1q9ToZizHNMBVI2NV+kSW7tgzpmKQv+qRvxmCsUIQUSHhjl3igv3+qRkJCAlpa7KwwQ0NhbDX6an9dLX2HE0fCCiTMS9zYMwV0dHQoq30oqrGxEeVlpVJYQ10Zrh8H6k4Yc54ZlgL9WG3wKaKkqGBAcblcUlTRluXA1wq8viqEVXYjd5G6yQa2BbZ3utWRkfp7t5GZmYmZ42rgSflTOL7YjU2XurE/H0ibrm4YBLYEcgK/eb8b6enpyqIjB/vuQixeulKK2bACsnX8hePLTjeGw1IgV7nHLuj7X/9ObsBgb66CyGGWg/1vsRTIFTbXiO7xU1B7oQYFG3MDg52txsEeKocNBZavPtiCXGW//aCfz5wKZIue/teuswNfffz1u5loQIG2n+L/hfMF8oW1U6G2GD6hfGHtNKiJ2hz+N0QqfgMHWyRlSllINAAAAABJRU5ErkJggg==)}.sticky-container-text{position:relative}.sticky-container-image{position:relative;display:inline-block}'},{}],3:[function(t,n,o){!function(t){"object"==typeof o?n.exports=t():"function"==typeof e&&e.amd?e(t):window.BackboneExtend=t()}(function(){var e={has:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},extend:function(e){for(var t=1;t<arguments.length;++t){var n=arguments[t];if(n)for(var o in n)e[o]=n[o]}return e}},t=function(t,n){var o,r=this;o=t&&e.has(t,"constructor")?t.constructor:function(){return r.apply(this,arguments)},e.extend(o,r,n);var i=function(){this.constructor=o};return i.prototype=r.prototype,o.prototype=new i,t&&e.extend(o.prototype,t),o.__super__=r.prototype,o};return t})},{}],4:[function(e,t,n){var o=e("./promise/promise").Promise,r=e("./promise/polyfill").polyfill;n.Promise=o,n.polyfill=r},{"./promise/polyfill":9,"./promise/promise":10}],5:[function(e,t,n){function o(e){var t=this;if(!r(e))throw new TypeError("You must pass an array to all.");return new t(function(t,n){function o(e){return function(t){r(e,t)}}function r(e,n){s[e]=n,0===--u&&t(s)}var a,s=[],u=e.length;0===u&&t([]);for(var l=0;l<e.length;l++)a=e[l],a&&i(a.then)?a.then(o(l),n):r(l,a)})}var r=e("./utils").isArray,i=e("./utils").isFunction;n.all=o},{"./utils":14}],6:[function(e,t,n){(function(e,t){function o(){return function(){e.nextTick(a)}}function r(){var e=0,t=new c(a),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function i(){return function(){f.setTimeout(a,1)}}function a(){for(var e=0;e<d.length;e++){var t=d[e],n=t[0],o=t[1];n(o)}d=[]}function s(e,t){var n=d.push([e,t]);1===n&&u()}var u,l="undefined"!=typeof window?window:{},c=l.MutationObserver||l.WebKitMutationObserver,f="undefined"!=typeof t?t:void 0===this?window:this,d=[];u="undefined"!=typeof e&&"[object process]"==={}.toString.call(e)?o():c?r():i(),n.asap=s}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:17}],7:[function(e,t,n){function o(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=this;return new t(function(t){t(e)})}n.cast=o},{}],8:[function(e,t,n){function o(e,t){return 2!==arguments.length?r[e]:void(r[e]=t)}var r={instrument:!1};n.config=r,n.configure=o},{}],9:[function(e,t,n){(function(t){function o(){var e;e="undefined"!=typeof t?t:"undefined"!=typeof window&&window.document?window:self;var n="Promise"in e&&"cast"in e.Promise&&"resolve"in e.Promise&&"reject"in e.Promise&&"all"in e.Promise&&"race"in e.Promise&&function(){var t;return new e.Promise(function(e){t=e}),i(t)}();n||(e.Promise=r)}var r=e("./promise").Promise,i=e("./utils").isFunction;n.polyfill=o}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./promise":10,"./utils":14}],10:[function(e,t,n){function o(e){if(!m(e))throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof o))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._subscribers=[],r(e,this)}function r(e,t){function n(e){l(t,e)}function o(e){f(t,e)}try{e(n,o)}catch(r){o(r)}}function i(e,t,n,o){var r,i,a,s,c=m(n);if(c)try{r=n(o),a=!0}catch(d){s=!0,i=d}else r=o,a=!0;u(t,r)||(c&&a?l(t,r):s?f(t,i):e===C?l(t,r):e===A&&f(t,r))}function a(e,t,n,o){var r=e._subscribers,i=r.length;r[i]=t,r[i+C]=n,r[i+A]=o}function s(e,t){for(var n,o,r=e._subscribers,a=e._detail,s=0;s<r.length;s+=3)n=r[s],o=r[s+t],i(t,n,o,a);e._subscribers=null}function u(e,t){var n,o=null;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(g(t)&&(o=t.then,m(o)))return o.call(t,function(o){return n?!0:(n=!0,void(t!==o?l(e,o):c(e,o)))},function(t){return n?!0:(n=!0,void f(e,t))}),!0}catch(r){return n?!0:(f(e,r),!0)}return!1}function l(e,t){e===t?c(e,t):u(e,t)||c(e,t)}function c(e,t){e._state===N&&(e._state=E,e._detail=t,h.async(d,e))}function f(e,t){e._state===N&&(e._state=E,e._detail=t,h.async(p,e))}function d(e){s(e,e._state=C)}function p(e){s(e,e._state=A)}var h=e("./config").config,g=(e("./config").configure,e("./utils").objectOrFunction),m=e("./utils").isFunction,y=(e("./utils").now,e("./cast").cast),v=e("./all").all,b=e("./race").race,x=e("./resolve").resolve,w=e("./reject").reject,T=e("./asap").asap;h.async=T;var N=void 0,E=0,C=1,A=2;o.prototype={constructor:o,_state:void 0,_detail:void 0,_subscribers:void 0,then:function(e,t){var n=this,o=new this.constructor(function(){});if(this._state){var r=arguments;h.async(function(){i(n._state,o,r[n._state-1],n._detail)})}else a(this,o,e,t);return o},"catch":function(e){return this.then(null,e)}},o.all=v,o.cast=y,o.race=b,o.resolve=x,o.reject=w,n.Promise=o},{"./all":5,"./asap":6,"./cast":7,"./config":8,"./race":11,"./reject":12,"./resolve":13,"./utils":14}],11:[function(e,t,n){function o(e){var t=this;if(!r(e))throw new TypeError("You must pass an array to race.");return new t(function(t,n){for(var o,r=0;r<e.length;r++)o=e[r],o&&"function"==typeof o.then?o.then(t,n):t(o)})}var r=e("./utils").isArray;n.race=o},{"./utils":14}],12:[function(e,t,n){function o(e){var t=this;return new t(function(t,n){n(e)})}n.reject=o},{}],13:[function(e,t,n){function o(e){var t=this;return new t(function(t){t(e)})}n.resolve=o},{}],14:[function(e,t,n){function o(e){return r(e)||"object"==typeof e&&null!==e}function r(e){return"function"==typeof e}function i(e){return"[object Array]"===Object.prototype.toString.call(e)}var a=Date.now||function(){return(new Date).getTime()};n.objectOrFunction=o,n.isFunction=r,n.isArray=i,n.now=a},{}],15:[function(e,t){var n={};t.exports=function(e,t){if(!n[e]){n[e]=!0;var o=document.createElement("style");o.setAttribute("type","text/css"),"textContent"in o?o.textContent=e:o.styleSheet.cssText=e;var r=document.getElementsByTagName("head")[0];t&&t.prepend?r.insertBefore(o,r.childNodes[0]):r.appendChild(o)}}},{}],16:[function(t,n){!function(e,t){"object"==typeof n&&"object"==typeof n.exports?n.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)}("undefined"!=typeof window?window:this,function(t,n){function o(e){var t="length"in e&&e.length,n=it.type(e);return"function"===n||it.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function r(e,t,n){if(it.isFunction(t))return it.grep(e,function(e,o){return!!t.call(e,o,e)!==n});if(t.nodeType)return it.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(pt.test(t))return it.filter(t,e,n);t=it.filter(t,e)}return it.grep(e,function(e){return it.inArray(e,t)>=0!==n})}function i(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function a(e){var t=wt[e]={};return it.each(e.match(xt)||[],function(e,n){t[n]=!0}),t}function s(){gt.addEventListener?(gt.removeEventListener("DOMContentLoaded",u,!1),t.removeEventListener("load",u,!1)):(gt.detachEvent("onreadystatechange",u),t.detachEvent("onload",u))}function u(){(gt.addEventListener||"load"===event.type||"complete"===gt.readyState)&&(s(),it.ready())}function l(e,t,n){if(void 0===n&&1===e.nodeType){var o="data-"+t.replace(At,"-$1").toLowerCase();if(n=e.getAttribute(o),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:Ct.test(n)?it.parseJSON(n):n}catch(r){}it.data(e,t,n)}else n=void 0}return n}function c(e){var t;for(t in e)if(("data"!==t||!it.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function f(e,t,n,o){if(it.acceptData(e)){var r,i,a=it.expando,s=e.nodeType,u=s?it.cache:e,l=s?e[a]:e[a]&&a;if(l&&u[l]&&(o||u[l].data)||void 0!==n||"string"!=typeof t)return l||(l=s?e[a]=V.pop()||it.guid++:a),u[l]||(u[l]=s?{}:{toJSON:it.noop}),("object"==typeof t||"function"==typeof t)&&(o?u[l]=it.extend(u[l],t):u[l].data=it.extend(u[l].data,t)),i=u[l],o||(i.data||(i.data={}),i=i.data),void 0!==n&&(i[it.camelCase(t)]=n),"string"==typeof t?(r=i[t],null==r&&(r=i[it.camelCase(t)])):r=i,r}}function d(e,t,n){if(it.acceptData(e)){var o,r,i=e.nodeType,a=i?it.cache:e,s=i?e[it.expando]:it.expando;if(a[s]){if(t&&(o=n?a[s]:a[s].data)){it.isArray(t)?t=t.concat(it.map(t,it.camelCase)):t in o?t=[t]:(t=it.camelCase(t),t=t in o?[t]:t.split(" ")),r=t.length;for(;r--;)delete o[t[r]];if(n?!c(o):!it.isEmptyObject(o))return}(n||(delete a[s].data,c(a[s])))&&(i?it.cleanData([e],!0):ot.deleteExpando||a!=a.window?delete a[s]:a[s]=null)}}}function p(){return!0}function h(){return!1}function g(){try{return gt.activeElement}catch(e){}}function m(e){var t=It.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function y(e,t){var n,o,r=0,i=typeof e.getElementsByTagName!==Et?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==Et?e.querySelectorAll(t||"*"):void 0;if(!i)for(i=[],n=e.childNodes||e;null!=(o=n[r]);r++)!t||it.nodeName(o,t)?i.push(o):it.merge(i,y(o,t));return void 0===t||t&&it.nodeName(e,t)?it.merge([e],i):i}function v(e){_t.test(e.type)&&(e.defaultChecked=e.checked)}function b(e,t){return it.nodeName(e,"table")&&it.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function x(e){return e.type=(null!==it.find.attr(e,"type"))+"/"+e.type,e}function w(e){var t=Yt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function T(e,t){for(var n,o=0;null!=(n=e[o]);o++)it._data(n,"globalEval",!t||it._data(t[o],"globalEval"))}function N(e,t){if(1===t.nodeType&&it.hasData(e)){var n,o,r,i=it._data(e),a=it._data(t,i),s=i.events;if(s){delete a.handle,a.events={};for(n in s)for(o=0,r=s[n].length;r>o;o++)it.event.add(t,n,s[n][o])}a.data&&(a.data=it.extend({},a.data))}}function E(e,t){var n,o,r;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!ot.noCloneEvent&&t[it.expando]){r=it._data(t);for(o in r.events)it.removeEvent(t,o,r.handle);t.removeAttribute(it.expando)}"script"===n&&t.text!==e.text?(x(t).text=e.text,w(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),ot.html5Clone&&e.innerHTML&&!it.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&_t.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}function C(e,n){var o,r=it(n.createElement(e)).appendTo(n.body),i=t.getDefaultComputedStyle&&(o=t.getDefaultComputedStyle(r[0]))?o.display:it.css(r[0],"display");return r.detach(),i}function A(e){var t=gt,n=en[e];return n||(n=C(e,t),"none"!==n&&n||(Zt=(Zt||it("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=(Zt[0].contentWindow||Zt[0].contentDocument).document,t.write(),t.close(),n=C(e,t),Zt.detach()),en[e]=n),n}function S(e,t){return{get:function(){var n=e();if(null!=n)return n?void delete this.get:(this.get=t).apply(this,arguments)}}}function k(e,t){if(t in e)return t;for(var n=t.charAt(0).toUpperCase()+t.slice(1),o=t,r=hn.length;r--;)if(t=hn[r]+n,t in e)return t;return o}function O(e,t){for(var n,o,r,i=[],a=0,s=e.length;s>a;a++)o=e[a],o.style&&(i[a]=it._data(o,"olddisplay"),n=o.style.display,t?(i[a]||"none"!==n||(o.style.display=""),""===o.style.display&&Ot(o)&&(i[a]=it._data(o,"olddisplay",A(o.nodeName)))):(r=Ot(o),(n&&"none"!==n||!r)&&it._data(o,"olddisplay",r?n:it.css(o,"display"))));for(a=0;s>a;a++)o=e[a],o.style&&(t&&"none"!==o.style.display&&""!==o.style.display||(o.style.display=t?i[a]||"":"none"));return e}function D(e,t,n){var o=cn.exec(t);return o?Math.max(0,o[1]-(n||0))+(o[2]||"px"):t}function _(e,t,n,o,r){for(var i=n===(o?"border":"content")?4:"width"===t?1:0,a=0;4>i;i+=2)"margin"===n&&(a+=it.css(e,n+kt[i],!0,r)),o?("content"===n&&(a-=it.css(e,"padding"+kt[i],!0,r)),"margin"!==n&&(a-=it.css(e,"border"+kt[i]+"Width",!0,r))):(a+=it.css(e,"padding"+kt[i],!0,r),"padding"!==n&&(a+=it.css(e,"border"+kt[i]+"Width",!0,r)));return a}function j(e,t,n){var o=!0,r="width"===t?e.offsetWidth:e.offsetHeight,i=tn(e),a=ot.boxSizing&&"border-box"===it.css(e,"boxSizing",!1,i);if(0>=r||null==r){if(r=nn(e,t,i),(0>r||null==r)&&(r=e.style[t]),rn.test(r))return r;o=a&&(ot.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+_(e,t,n||(a?"border":"content"),o,i)+"px"}function L(e,t,n,o,r){return new L.prototype.init(e,t,n,o,r)}function H(){return setTimeout(function(){gn=void 0}),gn=it.now()}function q(e,t){var n,o={height:e},r=0;for(t=t?1:0;4>r;r+=2-t)n=kt[r],o["margin"+n]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function M(e,t,n){for(var o,r=(wn[t]||[]).concat(wn["*"]),i=0,a=r.length;a>i;i++)if(o=r[i].call(n,t,e))return o}function I(e,t,n){var o,r,i,a,s,u,l,c,f=this,d={},p=e.style,h=e.nodeType&&Ot(e),g=it._data(e,"fxshow");n.queue||(s=it._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,f.always(function(){f.always(function(){s.unqueued--,it.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],l=it.css(e,"display"),c="none"===l?it._data(e,"olddisplay")||A(e.nodeName):l,"inline"===c&&"none"===it.css(e,"float")&&(ot.inlineBlockNeedsLayout&&"inline"!==A(e.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",ot.shrinkWrapBlocks()||f.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(o in t)if(r=t[o],yn.exec(r)){if(delete t[o],i=i||"toggle"===r,r===(h?"hide":"show")){if("show"!==r||!g||void 0===g[o])continue;h=!0}d[o]=g&&g[o]||it.style(e,o)}else l=void 0;if(it.isEmptyObject(d))"inline"===("none"===l?A(e.nodeName):l)&&(p.display=l);else{g?"hidden"in g&&(h=g.hidden):g=it._data(e,"fxshow",{}),i&&(g.hidden=!h),h?it(e).show():f.done(function(){it(e).hide()}),f.done(function(){var t;it._removeData(e,"fxshow");for(t in d)it.style(e,t,d[t])});for(o in d)a=M(h?g[o]:0,o,f),o in g||(g[o]=a.start,h&&(a.end=a.start,a.start="width"===o||"height"===o?1:0))}}function P(e,t){var n,o,r,i,a;for(n in e)if(o=it.camelCase(n),r=t[o],i=e[n],it.isArray(i)&&(r=i[1],i=e[n]=i[0]),n!==o&&(e[o]=i,delete e[n]),a=it.cssHooks[o],a&&"expand"in a){i=a.expand(i),delete e[o];for(n in i)n in e||(e[n]=i[n],t[n]=r)}else t[o]=r}function R(e,t,n){var o,r,i=0,a=xn.length,s=it.Deferred().always(function(){delete u.elem}),u=function(){if(r)return!1;for(var t=gn||H(),n=Math.max(0,l.startTime+l.duration-t),o=n/l.duration||0,i=1-o,a=0,u=l.tweens.length;u>a;a++)l.tweens[a].run(i);return s.notifyWith(e,[l,i,n]),1>i&&u?n:(s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:it.extend({},t),opts:it.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:gn||H(),duration:n.duration,tweens:[],createTween:function(t,n){var o=it.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(o),o},stop:function(t){var n=0,o=t?l.tweens.length:0;if(r)return this;for(r=!0;o>n;n++)l.tweens[n].run(1);return t?s.resolveWith(e,[l,t]):s.rejectWith(e,[l,t]),this}}),c=l.props;for(P(c,l.opts.specialEasing);a>i;i++)if(o=xn[i].call(l,e,c,l.opts))return o;return it.map(c,M,l),it.isFunction(l.opts.start)&&l.opts.start.call(e,l),it.fx.timer(it.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function F(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var o,r=0,i=t.toLowerCase().match(xt)||[];if(it.isFunction(n))for(;o=i[r++];)"+"===o.charAt(0)?(o=o.slice(1)||"*",(e[o]=e[o]||[]).unshift(n)):(e[o]=e[o]||[]).push(n)}}function B(e,t,n,o){function r(s){var u;return i[s]=!0,it.each(e[s]||[],function(e,s){var l=s(t,n,o);return"string"!=typeof l||a||i[l]?a?!(u=l):void 0:(t.dataTypes.unshift(l),r(l),!1)}),u}var i={},a=e===$n;return r(t.dataTypes[0])||!i["*"]&&r("*")}function z(e,t){var n,o,r=it.ajaxSettings.flatOptions||{};for(o in t)void 0!==t[o]&&((r[o]?e:n||(n={}))[o]=t[o]);return n&&it.extend(!0,e,n),e}function W(e,t,n){for(var o,r,i,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(a in s)if(s[a]&&s[a].test(r)){u.unshift(a);break}if(u[0]in n)i=u[0];else{for(a in n){if(!u[0]||e.converters[a+" "+u[0]]){i=a;break}o||(o=a)}i=i||o}return i?(i!==u[0]&&u.unshift(i),n[i]):void 0}function U(e,t,n,o){var r,i,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(i=c.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!u&&o&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=i,i=c.shift())if("*"===i)i=u;else if("*"!==u&&u!==i){if(a=l[u+" "+i]||l["* "+i],!a)for(r in l)if(s=r.split(" "),s[1]===i&&(a=l[u+" "+s[0]]||l["* "+s[0]])){a===!0?a=l[r]:l[r]!==!0&&(i=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(f){return{state:"parsererror",error:a?f:"No conversion from "+u+" to "+i}}}return{state:"success",data:t}}function $(e,t,n,o){var r;if(it.isArray(t))it.each(t,function(t,r){n||Vn.test(e)?o(e,r):$(e+"["+("object"==typeof r?t:"")+"]",r,n,o)});else if(n||"object"!==it.type(t))o(e,t);else for(r in t)$(e+"["+r+"]",t[r],n,o)}function X(){try{return new t.XMLHttpRequest}catch(e){}}function G(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function Y(e){return it.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}var V=[],J=V.slice,Q=V.concat,K=V.push,Z=V.indexOf,et={},tt=et.toString,nt=et.hasOwnProperty,ot={},rt="1.11.3",it=function(e,t){return new it.fn.init(e,t)},at=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,st=/^-ms-/,ut=/-([\da-z])/gi,lt=function(e,t){return t.toUpperCase()};it.fn=it.prototype={jquery:rt,constructor:it,selector:"",length:0,toArray:function(){return J.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:J.call(this)},pushStack:function(e){var t=it.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return it.each(this,e,t)},map:function(e){return this.pushStack(it.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(J.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:K,sort:V.sort,splice:V.splice},it.extend=it.fn.extend=function(){var e,t,n,o,r,i,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||it.isFunction(a)||(a={}),s===u&&(a=this,s--);u>s;s++)if(null!=(r=arguments[s]))for(o in r)e=a[o],n=r[o],a!==n&&(l&&n&&(it.isPlainObject(n)||(t=it.isArray(n)))?(t?(t=!1,i=e&&it.isArray(e)?e:[]):i=e&&it.isPlainObject(e)?e:{},a[o]=it.extend(l,i,n)):void 0!==n&&(a[o]=n));return a},it.extend({expando:"jQuery"+(rt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===it.type(e)},isArray:Array.isArray||function(e){return"array"===it.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!it.isArray(e)&&e-parseFloat(e)+1>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==it.type(e)||e.nodeType||it.isWindow(e))return!1;try{if(e.constructor&&!nt.call(e,"constructor")&&!nt.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(ot.ownLast)for(t in e)return nt.call(e,t);for(t in e);return void 0===t||nt.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?et[tt.call(e)]||"object":typeof e},globalEval:function(e){e&&it.trim(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(e){return e.replace(st,"ms-").replace(ut,lt)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,a=e.length,s=o(e);if(n){if(s)for(;a>i&&(r=t.apply(e[i],n),r!==!1);i++);else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(s)for(;a>i&&(r=t.call(e[i],i,e[i]),r!==!1);i++);else for(i in e)if(r=t.call(e[i],i,e[i]),r===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(at,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(o(Object(e))?it.merge(n,"string"==typeof e?[e]:e):K.call(n,e)),n},inArray:function(e,t,n){var o;if(t){if(Z)return Z.call(t,e,n);for(o=t.length,n=n?0>n?Math.max(0,o+n):n:0;o>n;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,o=0,r=e.length;n>o;)e[r++]=t[o++];if(n!==n)for(;void 0!==t[o];)e[r++]=t[o++];return e.length=r,e},grep:function(e,t,n){for(var o,r=[],i=0,a=e.length,s=!n;a>i;i++)o=!t(e[i],i),o!==s&&r.push(e[i]);return r},map:function(e,t,n){var r,i=0,a=e.length,s=o(e),u=[];if(s)for(;a>i;i++)r=t(e[i],i,n),null!=r&&u.push(r);else for(i in e)r=t(e[i],i,n),null!=r&&u.push(r);return Q.apply([],u)},guid:1,proxy:function(e,t){var n,o,r;return"string"==typeof t&&(r=e[t],t=e,e=r),it.isFunction(e)?(n=J.call(arguments,2),o=function(){return e.apply(t||this,n.concat(J.call(arguments)))},o.guid=e.guid=e.guid||it.guid++,o):void 0},now:function(){return+new Date},support:ot}),it.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){et["[object "+t+"]"]=t.toLowerCase()});var ct=function(e){function t(e,t,n,o){var r,i,a,s,u,l,f,p,h,g;if((t?t.ownerDocument||t:F)!==j&&_(t),t=t||j,n=n||[],s=t.nodeType,"string"!=typeof e||!e||1!==s&&9!==s&&11!==s)return n;if(!o&&H){if(11!==s&&(r=vt.exec(e)))if(a=r[1]){if(9===s){if(i=t.getElementById(a),!i||!i.parentNode)return n;if(i.id===a)return n.push(i),n}else if(t.ownerDocument&&(i=t.ownerDocument.getElementById(a))&&P(t,i)&&i.id===a)return n.push(i),n}else{if(r[2])return K.apply(n,t.getElementsByTagName(e)),n;if((a=r[3])&&w.getElementsByClassName)return K.apply(n,t.getElementsByClassName(a)),n}if(w.qsa&&(!q||!q.test(e))){if(p=f=R,h=t,g=1!==s&&e,1===s&&"object"!==t.nodeName.toLowerCase()){for(l=C(e),(f=t.getAttribute("id"))?p=f.replace(xt,"\\$&"):t.setAttribute("id",p),p="[id='"+p+"'] ",u=l.length;u--;)l[u]=p+d(l[u]);h=bt.test(e)&&c(t.parentNode)||t,g=l.join(",")}if(g)try{return K.apply(n,h.querySelectorAll(g)),n}catch(m){}finally{f||t.removeAttribute("id")}}}return S(e.replace(ut,"$1"),t,n,o)}function n(){function e(n,o){return t.push(n+" ")>T.cacheLength&&delete e[t.shift()],e[n+" "]=o}var t=[];return e}function o(e){return e[R]=!0,e}function r(e){var t=j.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function i(e,t){for(var n=e.split("|"),o=e.length;o--;)T.attrHandle[n[o]]=t}function a(e,t){var n=t&&e,o=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||G)-(~e.sourceIndex||G);if(o)return o;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function l(e){return o(function(t){return t=+t,o(function(n,o){for(var r,i=e([],n.length,t),a=i.length;a--;)n[r=i[a]]&&(n[r]=!(o[r]=n[r]))})})}function c(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function f(){}function d(e){for(var t=0,n=e.length,o="";n>t;t++)o+=e[t].value;return o}function p(e,t,n){var o=t.dir,r=n&&"parentNode"===o,i=z++;return t.first?function(t,n,i){for(;t=t[o];)if(1===t.nodeType||r)return e(t,n,i)}:function(t,n,a){var s,u,l=[B,i];if(a){for(;t=t[o];)if((1===t.nodeType||r)&&e(t,n,a))return!0}else for(;t=t[o];)if(1===t.nodeType||r){if(u=t[R]||(t[R]={}),(s=u[o])&&s[0]===B&&s[1]===i)return l[2]=s[2];if(u[o]=l,l[2]=e(t,n,a))return!0}}}function h(e){return e.length>1?function(t,n,o){for(var r=e.length;r--;)if(!e[r](t,n,o))return!1;return!0}:e[0]}function g(e,n,o){for(var r=0,i=n.length;i>r;r++)t(e,n[r],o);return o}function m(e,t,n,o,r){for(var i,a=[],s=0,u=e.length,l=null!=t;u>s;s++)(i=e[s])&&(!n||n(i,o,r))&&(a.push(i),l&&t.push(s));return a}function y(e,t,n,r,i,a){return r&&!r[R]&&(r=y(r)),i&&!i[R]&&(i=y(i,a)),o(function(o,a,s,u){var l,c,f,d=[],p=[],h=a.length,y=o||g(t||"*",s.nodeType?[s]:s,[]),v=!e||!o&&t?y:m(y,d,e,s,u),b=n?i||(o?e:h||r)?[]:a:v;if(n&&n(v,b,s,u),r)for(l=m(b,p),r(l,[],s,u),c=l.length;c--;)(f=l[c])&&(b[p[c]]=!(v[p[c]]=f));if(o){if(i||e){if(i){for(l=[],c=b.length;c--;)(f=b[c])&&l.push(v[c]=f);i(null,b=[],l,u)}for(c=b.length;c--;)(f=b[c])&&(l=i?et(o,f):d[c])>-1&&(o[l]=!(a[l]=f))}}else b=m(b===a?b.splice(h,b.length):b),i?i(null,a,b,u):K.apply(a,b)})}function v(e){for(var t,n,o,r=e.length,i=T.relative[e[0].type],a=i||T.relative[" "],s=i?1:0,u=p(function(e){return e===t},a,!0),l=p(function(e){return et(t,e)>-1},a,!0),c=[function(e,n,o){var r=!i&&(o||n!==k)||((t=n).nodeType?u(e,n,o):l(e,n,o));return t=null,r}];r>s;s++)if(n=T.relative[e[s].type])c=[p(h(c),n)];else{if(n=T.filter[e[s].type].apply(null,e[s].matches),n[R]){for(o=++s;r>o&&!T.relative[e[o].type];o++);return y(s>1&&h(c),s>1&&d(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ut,"$1"),n,o>s&&v(e.slice(s,o)),r>o&&v(e=e.slice(o)),r>o&&d(e))}c.push(n)}return h(c)}function b(e,n){var r=n.length>0,i=e.length>0,a=function(o,a,s,u,l){var c,f,d,p=0,h="0",g=o&&[],y=[],v=k,b=o||i&&T.find.TAG("*",l),x=B+=null==v?1:Math.random()||.1,w=b.length;for(l&&(k=a!==j&&a);h!==w&&null!=(c=b[h]);h++){if(i&&c){for(f=0;d=e[f++];)if(d(c,a,s)){u.push(c);break}l&&(B=x)}r&&((c=!d&&c)&&p--,o&&g.push(c))}if(p+=h,r&&h!==p){for(f=0;d=n[f++];)d(g,y,a,s);if(o){if(p>0)for(;h--;)g[h]||y[h]||(y[h]=J.call(u));y=m(y)}K.apply(u,y),l&&!o&&y.length>0&&p+n.length>1&&t.uniqueSort(u)}return l&&(B=x,k=v),g};return r?o(a):a}var x,w,T,N,E,C,A,S,k,O,D,_,j,L,H,q,M,I,P,R="sizzle"+1*new Date,F=e.document,B=0,z=0,W=n(),U=n(),$=n(),X=function(e,t){return e===t&&(D=!0),0},G=1<<31,Y={}.hasOwnProperty,V=[],J=V.pop,Q=V.push,K=V.push,Z=V.slice,et=function(e,t){for(var n=0,o=e.length;o>n;n++)if(e[n]===t)return n;return-1},tt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",nt="[\\x20\\t\\r\\n\\f]",ot="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",rt=ot.replace("w","w#"),it="\\["+nt+"*("+ot+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+rt+"))|)"+nt+"*\\]",at=":("+ot+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+it+")*)|.*)\\)|)",st=new RegExp(nt+"+","g"),ut=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),lt=new RegExp("^"+nt+"*,"+nt+"*"),ct=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),ft=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),dt=new RegExp(at),pt=new RegExp("^"+rt+"$"),ht={ID:new RegExp("^#("+ot+")"),CLASS:new RegExp("^\\.("+ot+")"),TAG:new RegExp("^("+ot.replace("w","w*")+")"),ATTR:new RegExp("^"+it),PSEUDO:new RegExp("^"+at),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+tt+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},gt=/^(?:input|select|textarea|button)$/i,mt=/^h\d$/i,yt=/^[^{]+\{\s*\[native \w/,vt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,bt=/[+~]/,xt=/'|\\/g,wt=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),Tt=function(e,t,n){var o="0x"+t-65536;return o!==o||n?t:0>o?String.fromCharCode(o+65536):String.fromCharCode(o>>10|55296,1023&o|56320)},Nt=function(){_()};try{K.apply(V=Z.call(F.childNodes),F.childNodes),V[F.childNodes.length].nodeType}catch(Et){K={apply:V.length?function(e,t){Q.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,o=0;e[n++]=t[o++];);e.length=n-1}}}w=t.support={},E=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},_=t.setDocument=function(e){var t,n,o=e?e.ownerDocument||e:F;return o!==j&&9===o.nodeType&&o.documentElement?(j=o,L=o.documentElement,n=o.defaultView,n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",Nt,!1):n.attachEvent&&n.attachEvent("onunload",Nt)),H=!E(o),w.attributes=r(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=r(function(e){return e.appendChild(o.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=yt.test(o.getElementsByClassName),w.getById=r(function(e){return L.appendChild(e).id=R,!o.getElementsByName||!o.getElementsByName(R).length
}),w.getById?(T.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&H){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},T.filter.ID=function(e){var t=e.replace(wt,Tt);return function(e){return e.getAttribute("id")===t}}):(delete T.find.ID,T.filter.ID=function(e){var t=e.replace(wt,Tt);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),T.find.TAG=w.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,o=[],r=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[r++];)1===n.nodeType&&o.push(n);return o}return i},T.find.CLASS=w.getElementsByClassName&&function(e,t){return H?t.getElementsByClassName(e):void 0},M=[],q=[],(w.qsa=yt.test(o.querySelectorAll))&&(r(function(e){L.appendChild(e).innerHTML="<a id='"+R+"'></a><select id='"+R+"-\f]' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+nt+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||q.push("\\["+nt+"*(?:value|"+tt+")"),e.querySelectorAll("[id~="+R+"-]").length||q.push("~="),e.querySelectorAll(":checked").length||q.push(":checked"),e.querySelectorAll("a#"+R+"+*").length||q.push(".#.+[+~]")}),r(function(e){var t=o.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&q.push("name"+nt+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),q.push(",.*:")})),(w.matchesSelector=yt.test(I=L.matches||L.webkitMatchesSelector||L.mozMatchesSelector||L.oMatchesSelector||L.msMatchesSelector))&&r(function(e){w.disconnectedMatch=I.call(e,"div"),I.call(e,"[s!='']:x"),M.push("!=",at)}),q=q.length&&new RegExp(q.join("|")),M=M.length&&new RegExp(M.join("|")),t=yt.test(L.compareDocumentPosition),P=t||yt.test(L.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,o=t&&t.parentNode;return e===o||!(!o||1!==o.nodeType||!(n.contains?n.contains(o):e.compareDocumentPosition&&16&e.compareDocumentPosition(o)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},X=t?function(e,t){if(e===t)return D=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!w.sortDetached&&t.compareDocumentPosition(e)===n?e===o||e.ownerDocument===F&&P(F,e)?-1:t===o||t.ownerDocument===F&&P(F,t)?1:O?et(O,e)-et(O,t):0:4&n?-1:1)}:function(e,t){if(e===t)return D=!0,0;var n,r=0,i=e.parentNode,s=t.parentNode,u=[e],l=[t];if(!i||!s)return e===o?-1:t===o?1:i?-1:s?1:O?et(O,e)-et(O,t):0;if(i===s)return a(e,t);for(n=e;n=n.parentNode;)u.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;u[r]===l[r];)r++;return r?a(u[r],l[r]):u[r]===F?-1:l[r]===F?1:0},o):j},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==j&&_(e),n=n.replace(ft,"='$1']"),!(!w.matchesSelector||!H||M&&M.test(n)||q&&q.test(n)))try{var o=I.call(e,n);if(o||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return o}catch(r){}return t(n,j,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==j&&_(e),P(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==j&&_(e);var n=T.attrHandle[t.toLowerCase()],o=n&&Y.call(T.attrHandle,t.toLowerCase())?n(e,t,!H):void 0;return void 0!==o?o:w.attributes||!H?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],o=0,r=0;if(D=!w.detectDuplicates,O=!w.sortStable&&e.slice(0),e.sort(X),D){for(;t=e[r++];)t===e[r]&&(o=n.push(r));for(;o--;)e.splice(n[o],1)}return O=null,e},N=t.getText=function(e){var t,n="",o=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=N(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[o++];)n+=N(t);return n},T=t.selectors={cacheLength:50,createPseudo:o,match:ht,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(wt,Tt),e[3]=(e[3]||e[4]||e[5]||"").replace(wt,Tt),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return ht.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&dt.test(n)&&(t=C(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(wt,Tt).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=W[e+" "];return t||(t=new RegExp("(^|"+nt+")"+e+"("+nt+"|$)"))&&W(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,o){return function(r){var i=t.attr(r,e);return null==i?"!="===n:n?(i+="","="===n?i===o:"!="===n?i!==o:"^="===n?o&&0===i.indexOf(o):"*="===n?o&&i.indexOf(o)>-1:"$="===n?o&&i.slice(-o.length)===o:"~="===n?(" "+i.replace(st," ")+" ").indexOf(o)>-1:"|="===n?i===o||i.slice(0,o.length+1)===o+"-":!1):!0}},CHILD:function(e,t,n,o,r){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===o&&0===r?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,d,p,h,g=i!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!u&&!s;if(m){if(i){for(;g;){for(f=t;f=f[g];)if(s?f.nodeName.toLowerCase()===y:1===f.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){for(c=m[R]||(m[R]={}),l=c[e]||[],p=l[0]===B&&l[1],d=l[0]===B&&l[2],f=p&&m.childNodes[p];f=++p&&f&&f[g]||(d=p=0)||h.pop();)if(1===f.nodeType&&++d&&f===t){c[e]=[B,p,d];break}}else if(v&&(l=(t[R]||(t[R]={}))[e])&&l[0]===B)d=l[1];else for(;(f=++p&&f&&f[g]||(d=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==y:1!==f.nodeType)||!++d||(v&&((f[R]||(f[R]={}))[e]=[B,d]),f!==t)););return d-=r,d===o||d%o===0&&d/o>=0}}},PSEUDO:function(e,n){var r,i=T.pseudos[e]||T.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return i[R]?i(n):i.length>1?(r=[e,e,"",n],T.setFilters.hasOwnProperty(e.toLowerCase())?o(function(e,t){for(var o,r=i(e,n),a=r.length;a--;)o=et(e,r[a]),e[o]=!(t[o]=r[a])}):function(e){return i(e,0,r)}):i}},pseudos:{not:o(function(e){var t=[],n=[],r=A(e.replace(ut,"$1"));return r[R]?o(function(e,t,n,o){for(var i,a=r(e,null,o,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))}):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}}),has:o(function(e){return function(n){return t(e,n).length>0}}),contains:o(function(e){return e=e.replace(wt,Tt),function(t){return(t.textContent||t.innerText||N(t)).indexOf(e)>-1}}),lang:o(function(e){return pt.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(wt,Tt).toLowerCase(),function(t){var n;do if(n=H?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===L},focus:function(e){return e===j.activeElement&&(!j.hasFocus||j.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!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!T.pseudos.empty(e)},header:function(e){return mt.test(e.nodeName)},input:function(e){return gt.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[0>n?n+t:n]}),even:l(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:l(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:l(function(e,t,n){for(var o=0>n?n+t:n;--o>=0;)e.push(o);return e}),gt:l(function(e,t,n){for(var o=0>n?n+t:n;++o<t;)e.push(o);return e})}},T.pseudos.nth=T.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})T.pseudos[x]=s(x);for(x in{submit:!0,reset:!0})T.pseudos[x]=u(x);return f.prototype=T.filters=T.pseudos,T.setFilters=new f,C=t.tokenize=function(e,n){var o,r,i,a,s,u,l,c=U[e+" "];if(c)return n?0:c.slice(0);for(s=e,u=[],l=T.preFilter;s;){(!o||(r=lt.exec(s)))&&(r&&(s=s.slice(r[0].length)||s),u.push(i=[])),o=!1,(r=ct.exec(s))&&(o=r.shift(),i.push({value:o,type:r[0].replace(ut," ")}),s=s.slice(o.length));for(a in T.filter)!(r=ht[a].exec(s))||l[a]&&!(r=l[a](r))||(o=r.shift(),i.push({value:o,type:a,matches:r}),s=s.slice(o.length));if(!o)break}return n?s.length:s?t.error(e):U(e,u).slice(0)},A=t.compile=function(e,t){var n,o=[],r=[],i=$[e+" "];if(!i){for(t||(t=C(e)),n=t.length;n--;)i=v(t[n]),i[R]?o.push(i):r.push(i);i=$(e,b(r,o)),i.selector=e}return i},S=t.select=function(e,t,n,o){var r,i,a,s,u,l="function"==typeof e&&e,f=!o&&C(e=l.selector||e);if(n=n||[],1===f.length){if(i=f[0]=f[0].slice(0),i.length>2&&"ID"===(a=i[0]).type&&w.getById&&9===t.nodeType&&H&&T.relative[i[1].type]){if(t=(T.find.ID(a.matches[0].replace(wt,Tt),t)||[])[0],!t)return n;l&&(t=t.parentNode),e=e.slice(i.shift().value.length)}for(r=ht.needsContext.test(e)?0:i.length;r--&&(a=i[r],!T.relative[s=a.type]);)if((u=T.find[s])&&(o=u(a.matches[0].replace(wt,Tt),bt.test(i[0].type)&&c(t.parentNode)||t))){if(i.splice(r,1),e=o.length&&d(i),!e)return K.apply(n,o),n;break}}return(l||A(e,f))(o,t,!H,n,bt.test(e)&&c(t.parentNode)||t),n},w.sortStable=R.split("").sort(X).join("")===R,w.detectDuplicates=!!D,_(),w.sortDetached=r(function(e){return 1&e.compareDocumentPosition(j.createElement("div"))}),r(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||i("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&r(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||i("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),r(function(e){return null==e.getAttribute("disabled")})||i(tt,function(e,t,n){var o;return n?void 0:e[t]===!0?t.toLowerCase():(o=e.getAttributeNode(t))&&o.specified?o.value:null}),t}(t);it.find=ct,it.expr=ct.selectors,it.expr[":"]=it.expr.pseudos,it.unique=ct.uniqueSort,it.text=ct.getText,it.isXMLDoc=ct.isXML,it.contains=ct.contains;var ft=it.expr.match.needsContext,dt=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,pt=/^.[^:#\[\.,]*$/;it.filter=function(e,t,n){var o=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===o.nodeType?it.find.matchesSelector(o,e)?[o]:[]:it.find.matches(e,it.grep(t,function(e){return 1===e.nodeType}))},it.fn.extend({find:function(e){var t,n=[],o=this,r=o.length;if("string"!=typeof e)return this.pushStack(it(e).filter(function(){for(t=0;r>t;t++)if(it.contains(o[t],this))return!0}));for(t=0;r>t;t++)it.find(e,o[t],n);return n=this.pushStack(r>1?it.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(r(this,e||[],!1))},not:function(e){return this.pushStack(r(this,e||[],!0))},is:function(e){return!!r(this,"string"==typeof e&&ft.test(e)?it(e):e||[],!1).length}});var ht,gt=t.document,mt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,yt=it.fn.init=function(e,t){var n,o;if(!e)return this;if("string"==typeof e){if(n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:mt.exec(e),!n||!n[1]&&t)return!t||t.jquery?(t||ht).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof it?t[0]:t,it.merge(this,it.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:gt,!0)),dt.test(n[1])&&it.isPlainObject(t))for(n in t)it.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}if(o=gt.getElementById(n[2]),o&&o.parentNode){if(o.id!==n[2])return ht.find(e);this.length=1,this[0]=o}return this.context=gt,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):it.isFunction(e)?"undefined"!=typeof ht.ready?ht.ready(e):e(it):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),it.makeArray(e,this))};yt.prototype=it.fn,ht=it(gt);var vt=/^(?:parents|prev(?:Until|All))/,bt={children:!0,contents:!0,next:!0,prev:!0};it.extend({dir:function(e,t,n){for(var o=[],r=e[t];r&&9!==r.nodeType&&(void 0===n||1!==r.nodeType||!it(r).is(n));)1===r.nodeType&&o.push(r),r=r[t];return o},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),it.fn.extend({has:function(e){var t,n=it(e,this),o=n.length;return this.filter(function(){for(t=0;o>t;t++)if(it.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,o=0,r=this.length,i=[],a=ft.test(e)||"string"!=typeof e?it(e,t||this.context):0;r>o;o++)for(n=this[o];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&it.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?it.unique(i):i)},index:function(e){return e?"string"==typeof e?it.inArray(this[0],it(e)):it.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(it.unique(it.merge(this.get(),it(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),it.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return it.dir(e,"parentNode")},parentsUntil:function(e,t,n){return it.dir(e,"parentNode",n)},next:function(e){return i(e,"nextSibling")},prev:function(e){return i(e,"previousSibling")},nextAll:function(e){return it.dir(e,"nextSibling")},prevAll:function(e){return it.dir(e,"previousSibling")},nextUntil:function(e,t,n){return it.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return it.dir(e,"previousSibling",n)},siblings:function(e){return it.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return it.sibling(e.firstChild)},contents:function(e){return it.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:it.merge([],e.childNodes)}},function(e,t){it.fn[e]=function(n,o){var r=it.map(this,t,n);return"Until"!==e.slice(-5)&&(o=n),o&&"string"==typeof o&&(r=it.filter(o,r)),this.length>1&&(bt[e]||(r=it.unique(r)),vt.test(e)&&(r=r.reverse())),this.pushStack(r)}});var xt=/\S+/g,wt={};it.Callbacks=function(e){e="string"==typeof e?wt[e]||a(e):it.extend({},e);var t,n,o,r,i,s,u=[],l=!e.once&&[],c=function(a){for(n=e.memory&&a,o=!0,i=s||0,s=0,r=u.length,t=!0;u&&r>i;i++)if(u[i].apply(a[0],a[1])===!1&&e.stopOnFalse){n=!1;break}t=!1,u&&(l?l.length&&c(l.shift()):n?u=[]:f.disable())},f={add:function(){if(u){var o=u.length;!function i(t){it.each(t,function(t,n){var o=it.type(n);"function"===o?e.unique&&f.has(n)||u.push(n):n&&n.length&&"string"!==o&&i(n)})}(arguments),t?r=u.length:n&&(s=o,c(n))}return this},remove:function(){return u&&it.each(arguments,function(e,n){for(var o;(o=it.inArray(n,u,o))>-1;)u.splice(o,1),t&&(r>=o&&r--,i>=o&&i--)}),this},has:function(e){return e?it.inArray(e,u)>-1:!(!u||!u.length)},empty:function(){return u=[],r=0,this},disable:function(){return u=l=n=void 0,this},disabled:function(){return!u},lock:function(){return l=void 0,n||f.disable(),this},locked:function(){return!l},fireWith:function(e,n){return!u||o&&!l||(n=n||[],n=[e,n.slice?n.slice():n],t?l.push(n):c(n)),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},it.extend({Deferred:function(e){var t=[["resolve","done",it.Callbacks("once memory"),"resolved"],["reject","fail",it.Callbacks("once memory"),"rejected"],["notify","progress",it.Callbacks("memory")]],n="pending",o={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var e=arguments;return it.Deferred(function(n){it.each(t,function(t,i){var a=it.isFunction(e[t])&&e[t];r[i[1]](function(){var e=a&&a.apply(this,arguments);e&&it.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[i[0]+"With"](this===o?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?it.extend(e,o):o}},r={};return o.pipe=o.then,it.each(t,function(e,i){var a=i[2],s=i[3];o[i[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),r[i[0]]=function(){return r[i[0]+"With"](this===r?o:this,arguments),this},r[i[0]+"With"]=a.fireWith}),o.promise(r),e&&e.call(r,r),r},when:function(e){var t,n,o,r=0,i=J.call(arguments),a=i.length,s=1!==a||e&&it.isFunction(e.promise)?a:0,u=1===s?e:it.Deferred(),l=function(e,n,o){return function(r){n[e]=this,o[e]=arguments.length>1?J.call(arguments):r,o===t?u.notifyWith(n,o):--s||u.resolveWith(n,o)}};if(a>1)for(t=new Array(a),n=new Array(a),o=new Array(a);a>r;r++)i[r]&&it.isFunction(i[r].promise)?i[r].promise().done(l(r,o,i)).fail(u.reject).progress(l(r,n,t)):--s;return s||u.resolveWith(o,i),u.promise()}});var Tt;it.fn.ready=function(e){return it.ready.promise().done(e),this},it.extend({isReady:!1,readyWait:1,holdReady:function(e){e?it.readyWait++:it.ready(!0)},ready:function(e){if(e===!0?!--it.readyWait:!it.isReady){if(!gt.body)return setTimeout(it.ready);it.isReady=!0,e!==!0&&--it.readyWait>0||(Tt.resolveWith(gt,[it]),it.fn.triggerHandler&&(it(gt).triggerHandler("ready"),it(gt).off("ready")))}}}),it.ready.promise=function(e){if(!Tt)if(Tt=it.Deferred(),"complete"===gt.readyState)setTimeout(it.ready);else if(gt.addEventListener)gt.addEventListener("DOMContentLoaded",u,!1),t.addEventListener("load",u,!1);else{gt.attachEvent("onreadystatechange",u),t.attachEvent("onload",u);var n=!1;try{n=null==t.frameElement&&gt.documentElement}catch(o){}n&&n.doScroll&&!function r(){if(!it.isReady){try{n.doScroll("left")}catch(e){return setTimeout(r,50)}s(),it.ready()}}()}return Tt.promise(e)};var Nt,Et="undefined";for(Nt in it(ot))break;ot.ownLast="0"!==Nt,ot.inlineBlockNeedsLayout=!1,it(function(){var e,t,n,o;n=gt.getElementsByTagName("body")[0],n&&n.style&&(t=gt.createElement("div"),o=gt.createElement("div"),o.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(o).appendChild(t),typeof t.style.zoom!==Et&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",ot.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(o))}),function(){var e=gt.createElement("div");if(null==ot.deleteExpando){ot.deleteExpando=!0;try{delete e.test}catch(t){ot.deleteExpando=!1}}e=null}(),it.acceptData=function(e){var t=it.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return 1!==n&&9!==n?!1:!t||t!==!0&&e.getAttribute("classid")===t};var Ct=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,At=/([A-Z])/g;it.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?it.cache[e[it.expando]]:e[it.expando],!!e&&!c(e)},data:function(e,t,n){return f(e,t,n)},removeData:function(e,t){return d(e,t)},_data:function(e,t,n){return f(e,t,n,!0)},_removeData:function(e,t){return d(e,t,!0)}}),it.fn.extend({data:function(e,t){var n,o,r,i=this[0],a=i&&i.attributes;if(void 0===e){if(this.length&&(r=it.data(i),1===i.nodeType&&!it._data(i,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&(o=a[n].name,0===o.indexOf("data-")&&(o=it.camelCase(o.slice(5)),l(i,o,r[o])));it._data(i,"parsedAttrs",!0)}return r}return"object"==typeof e?this.each(function(){it.data(this,e)}):arguments.length>1?this.each(function(){it.data(this,e,t)}):i?l(i,e,it.data(i,e)):void 0},removeData:function(e){return this.each(function(){it.removeData(this,e)})}}),it.extend({queue:function(e,t,n){var o;return e?(t=(t||"fx")+"queue",o=it._data(e,t),n&&(!o||it.isArray(n)?o=it._data(e,t,it.makeArray(n)):o.push(n)),o||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=it.queue(e,t),o=n.length,r=n.shift(),i=it._queueHooks(e,t),a=function(){it.dequeue(e,t)};"inprogress"===r&&(r=n.shift(),o--),r&&("fx"===t&&n.unshift("inprogress"),delete i.stop,r.call(e,a,i)),!o&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return it._data(e,n)||it._data(e,n,{empty:it.Callbacks("once memory").add(function(){it._removeData(e,t+"queue"),it._removeData(e,n)})})}}),it.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?it.queue(this[0],e):void 0===t?this:this.each(function(){var n=it.queue(this,e,t);it._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&it.dequeue(this,e)})},dequeue:function(e){return this.each(function(){it.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,o=1,r=it.Deferred(),i=this,a=this.length,s=function(){--o||r.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)n=it._data(i[a],e+"queueHooks"),n&&n.empty&&(o++,n.empty.add(s));return s(),r.promise(t)}});var St=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,kt=["Top","Right","Bottom","Left"],Ot=function(e,t){return e=t||e,"none"===it.css(e,"display")||!it.contains(e.ownerDocument,e)},Dt=it.access=function(e,t,n,o,r,i,a){var s=0,u=e.length,l=null==n;if("object"===it.type(n)){r=!0;for(s in n)it.access(e,t,s,n[s],!0,i,a)}else if(void 0!==o&&(r=!0,it.isFunction(o)||(a=!0),l&&(a?(t.call(e,o),t=null):(l=t,t=function(e,t,n){return l.call(it(e),n)})),t))for(;u>s;s++)t(e[s],n,a?o:o.call(e[s],s,t(e[s],n)));return r?e:l?t.call(e):u?t(e[0],n):i},_t=/^(?:checkbox|radio)$/i;!function(){var e=gt.createElement("input"),t=gt.createElement("div"),n=gt.createDocumentFragment();if(t.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",ot.leadingWhitespace=3===t.firstChild.nodeType,ot.tbody=!t.getElementsByTagName("tbody").length,ot.htmlSerialize=!!t.getElementsByTagName("link").length,ot.html5Clone="<:nav></:nav>"!==gt.createElement("nav").cloneNode(!0).outerHTML,e.type="checkbox",e.checked=!0,n.appendChild(e),ot.appendChecked=e.checked,t.innerHTML="<textarea>x</textarea>",ot.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,n.appendChild(t),t.innerHTML="<input type='radio' checked='checked' name='t'/>",ot.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,ot.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",function(){ot.noCloneEvent=!1}),t.cloneNode(!0).click()),null==ot.deleteExpando){ot.deleteExpando=!0;try{delete t.test}catch(o){ot.deleteExpando=!1}}}(),function(){var e,n,o=gt.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})n="on"+e,(ot[e+"Bubbles"]=n in t)||(o.setAttribute(n,"t"),ot[e+"Bubbles"]=o.attributes[n].expando===!1);o=null}();var jt=/^(?:input|select|textarea)$/i,Lt=/^key/,Ht=/^(?:mouse|pointer|contextmenu)|click/,qt=/^(?:focusinfocus|focusoutblur)$/,Mt=/^([^.]*)(?:\.(.+)|)$/;it.event={global:{},add:function(e,t,n,o,r){var i,a,s,u,l,c,f,d,p,h,g,m=it._data(e);if(m){for(n.handler&&(u=n,n=u.handler,r=u.selector),n.guid||(n.guid=it.guid++),(a=m.events)||(a=m.events={}),(c=m.handle)||(c=m.handle=function(e){return typeof it===Et||e&&it.event.triggered===e.type?void 0:it.event.dispatch.apply(c.elem,arguments)},c.elem=e),t=(t||"").match(xt)||[""],s=t.length;s--;)i=Mt.exec(t[s])||[],p=g=i[1],h=(i[2]||"").split(".").sort(),p&&(l=it.event.special[p]||{},p=(r?l.delegateType:l.bindType)||p,l=it.event.special[p]||{},f=it.extend({type:p,origType:g,data:o,handler:n,guid:n.guid,selector:r,needsContext:r&&it.expr.match.needsContext.test(r),namespace:h.join(".")},u),(d=a[p])||(d=a[p]=[],d.delegateCount=0,l.setup&&l.setup.call(e,o,h,c)!==!1||(e.addEventListener?e.addEventListener(p,c,!1):e.attachEvent&&e.attachEvent("on"+p,c))),l.add&&(l.add.call(e,f),f.handler.guid||(f.handler.guid=n.guid)),r?d.splice(d.delegateCount++,0,f):d.push(f),it.event.global[p]=!0);e=null}},remove:function(e,t,n,o,r){var i,a,s,u,l,c,f,d,p,h,g,m=it.hasData(e)&&it._data(e);if(m&&(c=m.events)){for(t=(t||"").match(xt)||[""],l=t.length;l--;)if(s=Mt.exec(t[l])||[],p=g=s[1],h=(s[2]||"").split(".").sort(),p){for(f=it.event.special[p]||{},p=(o?f.delegateType:f.bindType)||p,d=c[p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=i=d.length;i--;)a=d[i],!r&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||o&&o!==a.selector&&("**"!==o||!a.selector)||(d.splice(i,1),a.selector&&d.delegateCount--,f.remove&&f.remove.call(e,a));u&&!d.length&&(f.teardown&&f.teardown.call(e,h,m.handle)!==!1||it.removeEvent(e,p,m.handle),delete c[p])}else for(p in c)it.event.remove(e,p+t[l],n,o,!0);it.isEmptyObject(c)&&(delete m.handle,it._removeData(e,"events"))}},trigger:function(e,n,o,r){var i,a,s,u,l,c,f,d=[o||gt],p=nt.call(e,"type")?e.type:e,h=nt.call(e,"namespace")?e.namespace.split("."):[];if(s=c=o=o||gt,3!==o.nodeType&&8!==o.nodeType&&!qt.test(p+it.event.triggered)&&(p.indexOf(".")>=0&&(h=p.split("."),p=h.shift(),h.sort()),a=p.indexOf(":")<0&&"on"+p,e=e[it.expando]?e:new it.Event(p,"object"==typeof e&&e),e.isTrigger=r?2:3,e.namespace=h.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=o),n=null==n?[e]:it.makeArray(n,[e]),l=it.event.special[p]||{},r||!l.trigger||l.trigger.apply(o,n)!==!1)){if(!r&&!l.noBubble&&!it.isWindow(o)){for(u=l.delegateType||p,qt.test(u+p)||(s=s.parentNode);s;s=s.parentNode)d.push(s),c=s;c===(o.ownerDocument||gt)&&d.push(c.defaultView||c.parentWindow||t)}for(f=0;(s=d[f++])&&!e.isPropagationStopped();)e.type=f>1?u:l.bindType||p,i=(it._data(s,"events")||{})[e.type]&&it._data(s,"handle"),i&&i.apply(s,n),i=a&&s[a],i&&i.apply&&it.acceptData(s)&&(e.result=i.apply(s,n),e.result===!1&&e.preventDefault());if(e.type=p,!r&&!e.isDefaultPrevented()&&(!l._default||l._default.apply(d.pop(),n)===!1)&&it.acceptData(o)&&a&&o[p]&&!it.isWindow(o)){c=o[a],c&&(o[a]=null),it.event.triggered=p;try{o[p]()}catch(g){}it.event.triggered=void 0,c&&(o[a]=c)}return e.result}},dispatch:function(e){e=it.event.fix(e);var t,n,o,r,i,a=[],s=J.call(arguments),u=(it._data(this,"events")||{})[e.type]||[],l=it.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,e)!==!1){for(a=it.event.handlers.call(this,e,u),t=0;(r=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,i=0;(o=r.handlers[i++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(o.namespace))&&(e.handleObj=o,e.data=o.data,n=((it.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s),void 0!==n&&(e.result=n)===!1&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,o,r,i,a=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&(!e.button||"click"!==e.type))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==e.type)){for(r=[],i=0;s>i;i++)o=t[i],n=o.selector+" ",void 0===r[n]&&(r[n]=o.needsContext?it(n,this).index(u)>=0:it.find(n,this,null,[u]).length),r[n]&&r.push(o);r.length&&a.push({elem:u,handlers:r})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},fix:function(e){if(e[it.expando])return e;var t,n,o,r=e.type,i=e,a=this.fixHooks[r];for(a||(this.fixHooks[r]=a=Ht.test(r)?this.mouseHooks:Lt.test(r)?this.keyHooks:{}),o=a.props?this.props.concat(a.props):this.props,e=new it.Event(i),t=o.length;t--;)n=o[t],e[n]=i[n];return e.target||(e.target=i.srcElement||gt),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,i):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,o,r,i=t.button,a=t.fromElement;return null==e.pageX&&null!=t.clientX&&(o=e.target.ownerDocument||gt,r=o.documentElement,n=o.body,e.pageX=t.clientX+(r&&r.scrollLeft||n&&n.scrollLeft||0)-(r&&r.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||n&&n.scrollTop||0)-(r&&r.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?t.toElement:a),e.which||void 0===i||(e.which=1&i?1:2&i?3:4&i?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==g()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){return this===g()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return it.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(e){return it.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,o){var r=it.extend(new it.Event,n,{type:e,isSimulated:!0,originalEvent:{}});o?it.event.trigger(r,null,t):it.event.dispatch.call(t,r),r.isDefaultPrevented()&&n.preventDefault()}},it.removeEvent=gt.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var o="on"+t;e.detachEvent&&(typeof e[o]===Et&&(e[o]=null),e.detachEvent(o,n))},it.Event=function(e,t){return this instanceof it.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?p:h):this.type=e,t&&it.extend(this,t),this.timeStamp=e&&e.timeStamp||it.now(),void(this[it.expando]=!0)):new it.Event(e,t)},it.Event.prototype={isDefaultPrevented:h,isPropagationStopped:h,isImmediatePropagationStopped:h,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=p,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=p,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=p,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},it.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){it.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,o=this,r=e.relatedTarget,i=e.handleObj;return(!r||r!==o&&!it.contains(o,r))&&(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),ot.submitBubbles||(it.event.special.submit={setup:function(){return it.nodeName(this,"form")?!1:void it.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,n=it.nodeName(t,"input")||it.nodeName(t,"button")?t.form:void 0;n&&!it._data(n,"submitBubbles")&&(it.event.add(n,"submit._submit",function(e){e._submit_bubble=!0}),it._data(n,"submitBubbles",!0))})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&it.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){return it.nodeName(this,"form")?!1:void it.event.remove(this,"._submit")}}),ot.changeBubbles||(it.event.special.change={setup:function(){return jt.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(it.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._just_changed=!0)
}),it.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),it.event.simulate("change",this,e,!0)})),!1):void it.event.add(this,"beforeactivate._change",function(e){var t=e.target;jt.test(t.nodeName)&&!it._data(t,"changeBubbles")&&(it.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||it.event.simulate("change",this.parentNode,e,!0)}),it._data(t,"changeBubbles",!0))})},handle:function(e){var t=e.target;return this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type?e.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return it.event.remove(this,"._change"),!jt.test(this.nodeName)}}),ot.focusinBubbles||it.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){it.event.simulate(t,e.target,it.event.fix(e),!0)};it.event.special[t]={setup:function(){var o=this.ownerDocument||this,r=it._data(o,t);r||o.addEventListener(e,n,!0),it._data(o,t,(r||0)+1)},teardown:function(){var o=this.ownerDocument||this,r=it._data(o,t)-1;r?it._data(o,t,r):(o.removeEventListener(e,n,!0),it._removeData(o,t))}}}),it.fn.extend({on:function(e,t,n,o,r){var i,a;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=void 0);for(i in e)this.on(i,t,n,e[i],r);return this}if(null==n&&null==o?(o=t,n=t=void 0):null==o&&("string"==typeof t?(o=n,n=void 0):(o=n,n=t,t=void 0)),o===!1)o=h;else if(!o)return this;return 1===r&&(a=o,o=function(e){return it().off(e),a.apply(this,arguments)},o.guid=a.guid||(a.guid=it.guid++)),this.each(function(){it.event.add(this,e,o,n,t)})},one:function(e,t,n,o){return this.on(e,t,n,o,1)},off:function(e,t,n){var o,r;if(e&&e.preventDefault&&e.handleObj)return o=e.handleObj,it(e.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return(t===!1||"function"==typeof t)&&(n=t,t=void 0),n===!1&&(n=h),this.each(function(){it.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){it.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?it.event.trigger(e,t,n,!0):void 0}});var It="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Pt=/ jQuery\d+="(?:null|\d+)"/g,Rt=new RegExp("<(?:"+It+")[\\s/>]","i"),Ft=/^\s+/,Bt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,zt=/<([\w:]+)/,Wt=/<tbody/i,Ut=/<|&#?\w+;/,$t=/<(?:script|style|link)/i,Xt=/checked\s*(?:[^=]|=\s*.checked.)/i,Gt=/^$|\/(?:java|ecma)script/i,Yt=/^true\/(.*)/,Vt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Jt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:ot.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},Qt=m(gt),Kt=Qt.appendChild(gt.createElement("div"));Jt.optgroup=Jt.option,Jt.tbody=Jt.tfoot=Jt.colgroup=Jt.caption=Jt.thead,Jt.th=Jt.td,it.extend({clone:function(e,t,n){var o,r,i,a,s,u=it.contains(e.ownerDocument,e);if(ot.html5Clone||it.isXMLDoc(e)||!Rt.test("<"+e.nodeName+">")?i=e.cloneNode(!0):(Kt.innerHTML=e.outerHTML,Kt.removeChild(i=Kt.firstChild)),!(ot.noCloneEvent&&ot.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||it.isXMLDoc(e)))for(o=y(i),s=y(e),a=0;null!=(r=s[a]);++a)o[a]&&E(r,o[a]);if(t)if(n)for(s=s||y(e),o=o||y(i),a=0;null!=(r=s[a]);a++)N(r,o[a]);else N(e,i);return o=y(i,"script"),o.length>0&&T(o,!u&&y(e,"script")),o=s=r=null,i},buildFragment:function(e,t,n,o){for(var r,i,a,s,u,l,c,f=e.length,d=m(t),p=[],h=0;f>h;h++)if(i=e[h],i||0===i)if("object"===it.type(i))it.merge(p,i.nodeType?[i]:i);else if(Ut.test(i)){for(s=s||d.appendChild(t.createElement("div")),u=(zt.exec(i)||["",""])[1].toLowerCase(),c=Jt[u]||Jt._default,s.innerHTML=c[1]+i.replace(Bt,"<$1></$2>")+c[2],r=c[0];r--;)s=s.lastChild;if(!ot.leadingWhitespace&&Ft.test(i)&&p.push(t.createTextNode(Ft.exec(i)[0])),!ot.tbody)for(i="table"!==u||Wt.test(i)?"<table>"!==c[1]||Wt.test(i)?0:s:s.firstChild,r=i&&i.childNodes.length;r--;)it.nodeName(l=i.childNodes[r],"tbody")&&!l.childNodes.length&&i.removeChild(l);for(it.merge(p,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=d.lastChild}else p.push(t.createTextNode(i));for(s&&d.removeChild(s),ot.appendChecked||it.grep(y(p,"input"),v),h=0;i=p[h++];)if((!o||-1===it.inArray(i,o))&&(a=it.contains(i.ownerDocument,i),s=y(d.appendChild(i),"script"),a&&T(s),n))for(r=0;i=s[r++];)Gt.test(i.type||"")&&n.push(i);return s=null,d},cleanData:function(e,t){for(var n,o,r,i,a=0,s=it.expando,u=it.cache,l=ot.deleteExpando,c=it.event.special;null!=(n=e[a]);a++)if((t||it.acceptData(n))&&(r=n[s],i=r&&u[r])){if(i.events)for(o in i.events)c[o]?it.event.remove(n,o):it.removeEvent(n,o,i.handle);u[r]&&(delete u[r],l?delete n[s]:typeof n.removeAttribute!==Et?n.removeAttribute(s):n[s]=null,V.push(r))}}}),it.fn.extend({text:function(e){return Dt(this,function(e){return void 0===e?it.text(this):this.empty().append((this[0]&&this[0].ownerDocument||gt).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=b(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=b(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,o=e?it.filter(e,this):this,r=0;null!=(n=o[r]);r++)t||1!==n.nodeType||it.cleanData(y(n)),n.parentNode&&(t&&it.contains(n.ownerDocument,n)&&T(y(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&it.cleanData(y(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&it.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return it.clone(this,e,t)})},html:function(e){return Dt(this,function(e){var t=this[0]||{},n=0,o=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(Pt,""):void 0;if(!("string"!=typeof e||$t.test(e)||!ot.htmlSerialize&&Rt.test(e)||!ot.leadingWhitespace&&Ft.test(e)||Jt[(zt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(Bt,"<$1></$2>");try{for(;o>n;n++)t=this[n]||{},1===t.nodeType&&(it.cleanData(y(t,!1)),t.innerHTML=e);t=0}catch(r){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,it.cleanData(y(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=Q.apply([],e);var n,o,r,i,a,s,u=0,l=this.length,c=this,f=l-1,d=e[0],p=it.isFunction(d);if(p||l>1&&"string"==typeof d&&!ot.checkClone&&Xt.test(d))return this.each(function(n){var o=c.eq(n);p&&(e[0]=d.call(this,n,o.html())),o.domManip(e,t)});if(l&&(s=it.buildFragment(e,this[0].ownerDocument,!1,this),n=s.firstChild,1===s.childNodes.length&&(s=n),n)){for(i=it.map(y(s,"script"),x),r=i.length;l>u;u++)o=s,u!==f&&(o=it.clone(o,!0,!0),r&&it.merge(i,y(o,"script"))),t.call(this[u],o,u);if(r)for(a=i[i.length-1].ownerDocument,it.map(i,w),u=0;r>u;u++)o=i[u],Gt.test(o.type||"")&&!it._data(o,"globalEval")&&it.contains(a,o)&&(o.src?it._evalUrl&&it._evalUrl(o.src):it.globalEval((o.text||o.textContent||o.innerHTML||"").replace(Vt,"")));s=n=null}return this}}),it.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){it.fn[e]=function(e){for(var n,o=0,r=[],i=it(e),a=i.length-1;a>=o;o++)n=o===a?this:this.clone(!0),it(i[o])[t](n),K.apply(r,n.get());return this.pushStack(r)}});var Zt,en={};!function(){var e;ot.shrinkWrapBlocks=function(){if(null!=e)return e;e=!1;var t,n,o;return n=gt.getElementsByTagName("body")[0],n&&n.style?(t=gt.createElement("div"),o=gt.createElement("div"),o.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(o).appendChild(t),typeof t.style.zoom!==Et&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(gt.createElement("div")).style.width="5px",e=3!==t.offsetWidth),n.removeChild(o),e):void 0}}();var tn,nn,on=/^margin/,rn=new RegExp("^("+St+")(?!px)[a-z%]+$","i"),an=/^(top|right|bottom|left)$/;t.getComputedStyle?(tn=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):t.getComputedStyle(e,null)},nn=function(e,t,n){var o,r,i,a,s=e.style;return n=n||tn(e),a=n?n.getPropertyValue(t)||n[t]:void 0,n&&(""!==a||it.contains(e.ownerDocument,e)||(a=it.style(e,t)),rn.test(a)&&on.test(t)&&(o=s.width,r=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=o,s.minWidth=r,s.maxWidth=i)),void 0===a?a:a+""}):gt.documentElement.currentStyle&&(tn=function(e){return e.currentStyle},nn=function(e,t,n){var o,r,i,a,s=e.style;return n=n||tn(e),a=n?n[t]:void 0,null==a&&s&&s[t]&&(a=s[t]),rn.test(a)&&!an.test(t)&&(o=s.left,r=e.runtimeStyle,i=r&&r.left,i&&(r.left=e.currentStyle.left),s.left="fontSize"===t?"1em":a,a=s.pixelLeft+"px",s.left=o,i&&(r.left=i)),void 0===a?a:a+""||"auto"}),function(){function e(){var e,n,o,r;n=gt.getElementsByTagName("body")[0],n&&n.style&&(e=gt.createElement("div"),o=gt.createElement("div"),o.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(o).appendChild(e),e.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",i=a=!1,u=!0,t.getComputedStyle&&(i="1%"!==(t.getComputedStyle(e,null)||{}).top,a="4px"===(t.getComputedStyle(e,null)||{width:"4px"}).width,r=e.appendChild(gt.createElement("div")),r.style.cssText=e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",r.style.marginRight=r.style.width="0",e.style.width="1px",u=!parseFloat((t.getComputedStyle(r,null)||{}).marginRight),e.removeChild(r)),e.innerHTML="<table><tr><td></td><td>t</td></tr></table>",r=e.getElementsByTagName("td"),r[0].style.cssText="margin:0;border:0;padding:0;display:none",s=0===r[0].offsetHeight,s&&(r[0].style.display="",r[1].style.display="none",s=0===r[0].offsetHeight),n.removeChild(o))}var n,o,r,i,a,s,u;n=gt.createElement("div"),n.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",r=n.getElementsByTagName("a")[0],o=r&&r.style,o&&(o.cssText="float:left;opacity:.5",ot.opacity="0.5"===o.opacity,ot.cssFloat=!!o.cssFloat,n.style.backgroundClip="content-box",n.cloneNode(!0).style.backgroundClip="",ot.clearCloneStyle="content-box"===n.style.backgroundClip,ot.boxSizing=""===o.boxSizing||""===o.MozBoxSizing||""===o.WebkitBoxSizing,it.extend(ot,{reliableHiddenOffsets:function(){return null==s&&e(),s},boxSizingReliable:function(){return null==a&&e(),a},pixelPosition:function(){return null==i&&e(),i},reliableMarginRight:function(){return null==u&&e(),u}}))}(),it.swap=function(e,t,n,o){var r,i,a={};for(i in t)a[i]=e.style[i],e.style[i]=t[i];r=n.apply(e,o||[]);for(i in t)e.style[i]=a[i];return r};var sn=/alpha\([^)]*\)/i,un=/opacity\s*=\s*([^)]*)/,ln=/^(none|table(?!-c[ea]).+)/,cn=new RegExp("^("+St+")(.*)$","i"),fn=new RegExp("^([+-])=("+St+")","i"),dn={position:"absolute",visibility:"hidden",display:"block"},pn={letterSpacing:"0",fontWeight:"400"},hn=["Webkit","O","Moz","ms"];it.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=nn(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":ot.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,o){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,i,a,s=it.camelCase(t),u=e.style;if(t=it.cssProps[s]||(it.cssProps[s]=k(u,s)),a=it.cssHooks[t]||it.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(e,!1,o))?r:u[t];if(i=typeof n,"string"===i&&(r=fn.exec(n))&&(n=(r[1]+1)*r[2]+parseFloat(it.css(e,t)),i="number"),null!=n&&n===n&&("number"!==i||it.cssNumber[s]||(n+="px"),ot.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(e,n,o)))))try{u[t]=n}catch(l){}}},css:function(e,t,n,o){var r,i,a,s=it.camelCase(t);return t=it.cssProps[s]||(it.cssProps[s]=k(e.style,s)),a=it.cssHooks[t]||it.cssHooks[s],a&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=nn(e,t,o)),"normal"===i&&t in pn&&(i=pn[t]),""===n||n?(r=parseFloat(i),n===!0||it.isNumeric(r)?r||0:i):i}}),it.each(["height","width"],function(e,t){it.cssHooks[t]={get:function(e,n,o){return n?ln.test(it.css(e,"display"))&&0===e.offsetWidth?it.swap(e,dn,function(){return j(e,t,o)}):j(e,t,o):void 0},set:function(e,n,o){var r=o&&tn(e);return D(e,n,o?_(e,t,o,ot.boxSizing&&"border-box"===it.css(e,"boxSizing",!1,r),r):0)}}}),ot.opacity||(it.cssHooks.opacity={get:function(e,t){return un.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,o=e.currentStyle,r=it.isNumeric(t)?"alpha(opacity="+100*t+")":"",i=o&&o.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===it.trim(i.replace(sn,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||o&&!o.filter)||(n.filter=sn.test(i)?i.replace(sn,r):i+" "+r)}}),it.cssHooks.marginRight=S(ot.reliableMarginRight,function(e,t){return t?it.swap(e,{display:"inline-block"},nn,[e,"marginRight"]):void 0}),it.each({margin:"",padding:"",border:"Width"},function(e,t){it.cssHooks[e+t]={expand:function(n){for(var o=0,r={},i="string"==typeof n?n.split(" "):[n];4>o;o++)r[e+kt[o]+t]=i[o]||i[o-2]||i[0];return r}},on.test(e)||(it.cssHooks[e+t].set=D)}),it.fn.extend({css:function(e,t){return Dt(this,function(e,t,n){var o,r,i={},a=0;if(it.isArray(t)){for(o=tn(e),r=t.length;r>a;a++)i[t[a]]=it.css(e,t[a],!1,o);return i}return void 0!==n?it.style(e,t,n):it.css(e,t)},e,t,arguments.length>1)},show:function(){return O(this,!0)},hide:function(){return O(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Ot(this)?it(this).show():it(this).hide()})}}),it.Tween=L,L.prototype={constructor:L,init:function(e,t,n,o,r,i){this.elem=e,this.prop=n,this.easing=r||"swing",this.options=t,this.start=this.now=this.cur(),this.end=o,this.unit=i||(it.cssNumber[n]?"":"px")},cur:function(){var e=L.propHooks[this.prop];return e&&e.get?e.get(this):L.propHooks._default.get(this)},run:function(e){var t,n=L.propHooks[this.prop];return this.pos=t=this.options.duration?it.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):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):L.propHooks._default.set(this),this}},L.prototype.init.prototype=L.prototype,L.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=it.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){it.fx.step[e.prop]?it.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[it.cssProps[e.prop]]||it.cssHooks[e.prop])?it.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},L.propHooks.scrollTop=L.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},it.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},it.fx=L.prototype.init,it.fx.step={};var gn,mn,yn=/^(?:toggle|show|hide)$/,vn=new RegExp("^(?:([+-])=|)("+St+")([a-z%]*)$","i"),bn=/queueHooks$/,xn=[I],wn={"*":[function(e,t){var n=this.createTween(e,t),o=n.cur(),r=vn.exec(t),i=r&&r[3]||(it.cssNumber[e]?"":"px"),a=(it.cssNumber[e]||"px"!==i&&+o)&&vn.exec(it.css(n.elem,e)),s=1,u=20;if(a&&a[3]!==i){i=i||a[3],r=r||[],a=+o||1;do s=s||".5",a/=s,it.style(n.elem,e,a+i);while(s!==(s=n.cur()/o)&&1!==s&&--u)}return r&&(a=n.start=+a||+o||0,n.unit=i,n.end=r[1]?a+(r[1]+1)*r[2]:+r[2]),n}]};it.Animation=it.extend(R,{tweener:function(e,t){it.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,o=0,r=e.length;r>o;o++)n=e[o],wn[n]=wn[n]||[],wn[n].unshift(t)},prefilter:function(e,t){t?xn.unshift(e):xn.push(e)}}),it.speed=function(e,t,n){var o=e&&"object"==typeof e?it.extend({},e):{complete:n||!n&&t||it.isFunction(e)&&e,duration:e,easing:n&&t||t&&!it.isFunction(t)&&t};return o.duration=it.fx.off?0:"number"==typeof o.duration?o.duration:o.duration in it.fx.speeds?it.fx.speeds[o.duration]:it.fx.speeds._default,(null==o.queue||o.queue===!0)&&(o.queue="fx"),o.old=o.complete,o.complete=function(){it.isFunction(o.old)&&o.old.call(this),o.queue&&it.dequeue(this,o.queue)},o},it.fn.extend({fadeTo:function(e,t,n,o){return this.filter(Ot).css("opacity",0).show().end().animate({opacity:t},e,n,o)},animate:function(e,t,n,o){var r=it.isEmptyObject(e),i=it.speed(t,n,o),a=function(){var t=R(this,it.extend({},e),i);(r||it._data(this,"finish"))&&t.stop(!0)};return a.finish=a,r||i.queue===!1?this.each(a):this.queue(i.queue,a)},stop:function(e,t,n){var o=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,r=null!=e&&e+"queueHooks",i=it.timers,a=it._data(this);if(r)a[r]&&a[r].stop&&o(a[r]);else for(r in a)a[r]&&a[r].stop&&bn.test(r)&&o(a[r]);for(r=i.length;r--;)i[r].elem!==this||null!=e&&i[r].queue!==e||(i[r].anim.stop(n),t=!1,i.splice(r,1));(t||!n)&&it.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=it._data(this),o=n[e+"queue"],r=n[e+"queueHooks"],i=it.timers,a=o?o.length:0;for(n.finish=!0,it.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;a>t;t++)o[t]&&o[t].finish&&o[t].finish.call(this);delete n.finish})}}),it.each(["toggle","show","hide"],function(e,t){var n=it.fn[t];it.fn[t]=function(e,o,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(q(t,!0),e,o,r)}}),it.each({slideDown:q("show"),slideUp:q("hide"),slideToggle:q("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){it.fn[e]=function(e,n,o){return this.animate(t,e,n,o)}}),it.timers=[],it.fx.tick=function(){var e,t=it.timers,n=0;for(gn=it.now();n<t.length;n++)e=t[n],e()||t[n]!==e||t.splice(n--,1);t.length||it.fx.stop(),gn=void 0},it.fx.timer=function(e){it.timers.push(e),e()?it.fx.start():it.timers.pop()},it.fx.interval=13,it.fx.start=function(){mn||(mn=setInterval(it.fx.tick,it.fx.interval))},it.fx.stop=function(){clearInterval(mn),mn=null},it.fx.speeds={slow:600,fast:200,_default:400},it.fn.delay=function(e,t){return e=it.fx?it.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var o=setTimeout(t,e);n.stop=function(){clearTimeout(o)}})},function(){var e,t,n,o,r;t=gt.createElement("div"),t.setAttribute("className","t"),t.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",o=t.getElementsByTagName("a")[0],n=gt.createElement("select"),r=n.appendChild(gt.createElement("option")),e=t.getElementsByTagName("input")[0],o.style.cssText="top:1px",ot.getSetAttribute="t"!==t.className,ot.style=/top/.test(o.getAttribute("style")),ot.hrefNormalized="/a"===o.getAttribute("href"),ot.checkOn=!!e.value,ot.optSelected=r.selected,ot.enctype=!!gt.createElement("form").enctype,n.disabled=!0,ot.optDisabled=!r.disabled,e=gt.createElement("input"),e.setAttribute("value",""),ot.input=""===e.getAttribute("value"),e.value="t",e.setAttribute("type","radio"),ot.radioValue="t"===e.value}();var Tn=/\r/g;it.fn.extend({val:function(e){var t,n,o,r=this[0];{if(arguments.length)return o=it.isFunction(e),this.each(function(n){var r;1===this.nodeType&&(r=o?e.call(this,n,it(this).val()):e,null==r?r="":"number"==typeof r?r+="":it.isArray(r)&&(r=it.map(r,function(e){return null==e?"":e+""})),t=it.valHooks[this.type]||it.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))});if(r)return t=it.valHooks[r.type]||it.valHooks[r.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:(n=r.value,"string"==typeof n?n.replace(Tn,""):null==n?"":n)}}}),it.extend({valHooks:{option:{get:function(e){var t=it.find.attr(e,"value");return null!=t?t:it.trim(it.text(e))}},select:{get:function(e){for(var t,n,o=e.options,r=e.selectedIndex,i="select-one"===e.type||0>r,a=i?null:[],s=i?r+1:o.length,u=0>r?s:i?r:0;s>u;u++)if(n=o[u],!(!n.selected&&u!==r||(ot.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&it.nodeName(n.parentNode,"optgroup"))){if(t=it(n).val(),i)return t;a.push(t)}return a},set:function(e,t){for(var n,o,r=e.options,i=it.makeArray(t),a=r.length;a--;)if(o=r[a],it.inArray(it.valHooks.option.get(o),i)>=0)try{o.selected=n=!0}catch(s){o.scrollHeight}else o.selected=!1;return n||(e.selectedIndex=-1),r}}}}),it.each(["radio","checkbox"],function(){it.valHooks[this]={set:function(e,t){return it.isArray(t)?e.checked=it.inArray(it(e).val(),t)>=0:void 0}},ot.checkOn||(it.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Nn,En,Cn=it.expr.attrHandle,An=/^(?:checked|selected)$/i,Sn=ot.getSetAttribute,kn=ot.input;it.fn.extend({attr:function(e,t){return Dt(this,it.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){it.removeAttr(this,e)})}}),it.extend({attr:function(e,t,n){var o,r,i=e.nodeType;if(e&&3!==i&&8!==i&&2!==i)return typeof e.getAttribute===Et?it.prop(e,t,n):(1===i&&it.isXMLDoc(e)||(t=t.toLowerCase(),o=it.attrHooks[t]||(it.expr.match.bool.test(t)?En:Nn)),void 0===n?o&&"get"in o&&null!==(r=o.get(e,t))?r:(r=it.find.attr(e,t),null==r?void 0:r):null!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:(e.setAttribute(t,n+""),n):void it.removeAttr(e,t))},removeAttr:function(e,t){var n,o,r=0,i=t&&t.match(xt);if(i&&1===e.nodeType)for(;n=i[r++];)o=it.propFix[n]||n,it.expr.match.bool.test(n)?kn&&Sn||!An.test(n)?e[o]=!1:e[it.camelCase("default-"+n)]=e[o]=!1:it.attr(e,n,""),e.removeAttribute(Sn?n:o)},attrHooks:{type:{set:function(e,t){if(!ot.radioValue&&"radio"===t&&it.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),En={set:function(e,t,n){return t===!1?it.removeAttr(e,n):kn&&Sn||!An.test(n)?e.setAttribute(!Sn&&it.propFix[n]||n,n):e[it.camelCase("default-"+n)]=e[n]=!0,n}},it.each(it.expr.match.bool.source.match(/\w+/g),function(e,t){var n=Cn[t]||it.find.attr;Cn[t]=kn&&Sn||!An.test(t)?function(e,t,o){var r,i;return o||(i=Cn[t],Cn[t]=r,r=null!=n(e,t,o)?t.toLowerCase():null,Cn[t]=i),r}:function(e,t,n){return n?void 0:e[it.camelCase("default-"+t)]?t.toLowerCase():null}}),kn&&Sn||(it.attrHooks.value={set:function(e,t,n){return it.nodeName(e,"input")?void(e.defaultValue=t):Nn&&Nn.set(e,t,n)}}),Sn||(Nn={set:function(e,t,n){var o=e.getAttributeNode(n);return o||e.setAttributeNode(o=e.ownerDocument.createAttribute(n)),o.value=t+="","value"===n||t===e.getAttribute(n)?t:void 0}},Cn.id=Cn.name=Cn.coords=function(e,t,n){var o;return n?void 0:(o=e.getAttributeNode(t))&&""!==o.value?o.value:null},it.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);return n&&n.specified?n.value:void 0},set:Nn.set},it.attrHooks.contenteditable={set:function(e,t,n){Nn.set(e,""===t?!1:t,n)}},it.each(["width","height"],function(e,t){it.attrHooks[t]={set:function(e,n){return""===n?(e.setAttribute(t,"auto"),n):void 0}}})),ot.style||(it.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var On=/^(?:input|select|textarea|button|object)$/i,Dn=/^(?:a|area)$/i;it.fn.extend({prop:function(e,t){return Dt(this,it.prop,e,t,arguments.length>1)},removeProp:function(e){return e=it.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(t){}})}}),it.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(e,t,n){var o,r,i,a=e.nodeType;if(e&&3!==a&&8!==a&&2!==a)return i=1!==a||!it.isXMLDoc(e),i&&(t=it.propFix[t]||t,r=it.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(o=r.set(e,n,t))?o:e[t]=n:r&&"get"in r&&null!==(o=r.get(e,t))?o:e[t]},propHooks:{tabIndex:{get:function(e){var t=it.find.attr(e,"tabindex");return t?parseInt(t,10):On.test(e.nodeName)||Dn.test(e.nodeName)&&e.href?0:-1}}}}),ot.hrefNormalized||it.each(["href","src"],function(e,t){it.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),ot.optSelected||(it.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),it.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){it.propFix[this.toLowerCase()]=this}),ot.enctype||(it.propFix.enctype="encoding");var _n=/[\t\r\n\f]/g;it.fn.extend({addClass:function(e){var t,n,o,r,i,a,s=0,u=this.length,l="string"==typeof e&&e;if(it.isFunction(e))return this.each(function(t){it(this).addClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(xt)||[];u>s;s++)if(n=this[s],o=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(_n," "):" ")){for(i=0;r=t[i++];)o.indexOf(" "+r+" ")<0&&(o+=r+" ");a=it.trim(o),n.className!==a&&(n.className=a)}return this},removeClass:function(e){var t,n,o,r,i,a,s=0,u=this.length,l=0===arguments.length||"string"==typeof e&&e;if(it.isFunction(e))return this.each(function(t){it(this).removeClass(e.call(this,t,this.className))});if(l)for(t=(e||"").match(xt)||[];u>s;s++)if(n=this[s],o=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(_n," "):"")){for(i=0;r=t[i++];)for(;o.indexOf(" "+r+" ")>=0;)o=o.replace(" "+r+" "," ");a=e?it.trim(o):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):this.each(it.isFunction(e)?function(n){it(this).toggleClass(e.call(this,n,this.className,t),t)}:function(){if("string"===n)for(var t,o=0,r=it(this),i=e.match(xt)||[];t=i[o++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else(n===Et||"boolean"===n)&&(this.className&&it._data(this,"__className__",this.className),this.className=this.className||e===!1?"":it._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,o=this.length;o>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(_n," ").indexOf(t)>=0)return!0;return!1}}),it.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){it.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),it.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},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,o){return this.on(t,e,n,o)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var jn=it.now(),Ln=/\?/,Hn=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;it.parseJSON=function(e){if(t.JSON&&t.JSON.parse)return t.JSON.parse(e+"");var n,o=null,r=it.trim(e+"");return r&&!it.trim(r.replace(Hn,function(e,t,r,i){return n&&t&&(o=0),0===o?e:(n=r||t,o+=!i-!r,"")}))?Function("return "+r)():it.error("Invalid JSON: "+e)},it.parseXML=function(e){var n,o;if(!e||"string"!=typeof e)return null;try{t.DOMParser?(o=new DOMParser,n=o.parseFromString(e,"text/xml")):(n=new ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(e))}catch(r){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||it.error("Invalid XML: "+e),n};var qn,Mn,In=/#.*$/,Pn=/([?&])_=[^&]*/,Rn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Fn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Bn=/^(?:GET|HEAD)$/,zn=/^\/\//,Wn=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Un={},$n={},Xn="*/".concat("*");try{Mn=location.href}catch(Gn){Mn=gt.createElement("a"),Mn.href="",Mn=Mn.href}qn=Wn.exec(Mn.toLowerCase())||[],it.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Mn,type:"GET",isLocal:Fn.test(qn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Xn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":it.parseJSON,"text xml":it.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?z(z(e,it.ajaxSettings),t):z(it.ajaxSettings,e)},ajaxPrefilter:F(Un),ajaxTransport:F($n),ajax:function(e,t){function n(e,t,n,o){var r,c,y,v,x,T=t;2!==b&&(b=2,s&&clearTimeout(s),l=void 0,a=o||"",w.readyState=e>0?4:0,r=e>=200&&300>e||304===e,n&&(v=W(f,w,n)),v=U(f,v,w,r),r?(f.ifModified&&(x=w.getResponseHeader("Last-Modified"),x&&(it.lastModified[i]=x),x=w.getResponseHeader("etag"),x&&(it.etag[i]=x)),204===e||"HEAD"===f.type?T="nocontent":304===e?T="notmodified":(T=v.state,c=v.data,y=v.error,r=!y)):(y=T,(e||!T)&&(T="error",0>e&&(e=0))),w.status=e,w.statusText=(t||T)+"",r?h.resolveWith(d,[c,T,w]):h.rejectWith(d,[w,T,y]),w.statusCode(m),m=void 0,u&&p.trigger(r?"ajaxSuccess":"ajaxError",[w,f,r?c:y]),g.fireWith(d,[w,T]),u&&(p.trigger("ajaxComplete",[w,f]),--it.active||it.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var o,r,i,a,s,u,l,c,f=it.ajaxSetup({},t),d=f.context||f,p=f.context&&(d.nodeType||d.jquery)?it(d):it.event,h=it.Deferred(),g=it.Callbacks("once memory"),m=f.statusCode||{},y={},v={},b=0,x="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!c)for(c={};t=Rn.exec(a);)c[t[1].toLowerCase()]=t[2];t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return b||(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)m[t]=[m[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||x;return l&&l.abort(t),n(0,t),this}};if(h.promise(w).complete=g.add,w.success=w.done,w.error=w.fail,f.url=((e||f.url||Mn)+"").replace(In,"").replace(zn,qn[1]+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=it.trim(f.dataType||"*").toLowerCase().match(xt)||[""],null==f.crossDomain&&(o=Wn.exec(f.url.toLowerCase()),f.crossDomain=!(!o||o[1]===qn[1]&&o[2]===qn[2]&&(o[3]||("http:"===o[1]?"80":"443"))===(qn[3]||("http:"===qn[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=it.param(f.data,f.traditional)),B(Un,f,t,w),2===b)return w;u=it.event&&f.global,u&&0===it.active++&&it.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Bn.test(f.type),i=f.url,f.hasContent||(f.data&&(i=f.url+=(Ln.test(i)?"&":"?")+f.data,delete f.data),f.cache===!1&&(f.url=Pn.test(i)?i.replace(Pn,"$1_="+jn++):i+(Ln.test(i)?"&":"?")+"_="+jn++)),f.ifModified&&(it.lastModified[i]&&w.setRequestHeader("If-Modified-Since",it.lastModified[i]),it.etag[i]&&w.setRequestHeader("If-None-Match",it.etag[i])),(f.data&&f.hasContent&&f.contentType!==!1||t.contentType)&&w.setRequestHeader("Content-Type",f.contentType),w.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Xn+"; q=0.01":""):f.accepts["*"]);
for(r in f.headers)w.setRequestHeader(r,f.headers[r]);if(f.beforeSend&&(f.beforeSend.call(d,w,f)===!1||2===b))return w.abort();x="abort";for(r in{success:1,error:1,complete:1})w[r](f[r]);if(l=B($n,f,t,w)){w.readyState=1,u&&p.trigger("ajaxSend",[w,f]),f.async&&f.timeout>0&&(s=setTimeout(function(){w.abort("timeout")},f.timeout));try{b=1,l.send(y,n)}catch(T){if(!(2>b))throw T;n(-1,T)}}else n(-1,"No Transport");return w},getJSON:function(e,t,n){return it.get(e,t,n,"json")},getScript:function(e,t){return it.get(e,void 0,t,"script")}}),it.each(["get","post"],function(e,t){it[t]=function(e,n,o,r){return it.isFunction(n)&&(r=r||o,o=n,n=void 0),it.ajax({url:e,type:t,dataType:r,data:n,success:o})}}),it._evalUrl=function(e){return it.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},it.fn.extend({wrapAll:function(e){if(it.isFunction(e))return this.each(function(t){it(this).wrapAll(e.call(this,t))});if(this[0]){var t=it(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return this.each(it.isFunction(e)?function(t){it(this).wrapInner(e.call(this,t))}:function(){var t=it(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=it.isFunction(e);return this.each(function(n){it(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){it.nodeName(this,"body")||it(this).replaceWith(this.childNodes)}).end()}}),it.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!ot.reliableHiddenOffsets()&&"none"===(e.style&&e.style.display||it.css(e,"display"))},it.expr.filters.visible=function(e){return!it.expr.filters.hidden(e)};var Yn=/%20/g,Vn=/\[\]$/,Jn=/\r?\n/g,Qn=/^(?:submit|button|image|reset|file)$/i,Kn=/^(?:input|select|textarea|keygen)/i;it.param=function(e,t){var n,o=[],r=function(e,t){t=it.isFunction(t)?t():null==t?"":t,o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=it.ajaxSettings&&it.ajaxSettings.traditional),it.isArray(e)||e.jquery&&!it.isPlainObject(e))it.each(e,function(){r(this.name,this.value)});else for(n in e)$(n,e[n],t,r);return o.join("&").replace(Yn,"+")},it.fn.extend({serialize:function(){return it.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=it.prop(this,"elements");return e?it.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!it(this).is(":disabled")&&Kn.test(this.nodeName)&&!Qn.test(e)&&(this.checked||!_t.test(e))}).map(function(e,t){var n=it(this).val();return null==n?null:it.isArray(n)?it.map(n,function(e){return{name:t.name,value:e.replace(Jn,"\r\n")}}):{name:t.name,value:n.replace(Jn,"\r\n")}}).get()}}),it.ajaxSettings.xhr=void 0!==t.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&X()||G()}:X;var Zn=0,eo={},to=it.ajaxSettings.xhr();t.attachEvent&&t.attachEvent("onunload",function(){for(var e in eo)eo[e](void 0,!0)}),ot.cors=!!to&&"withCredentials"in to,to=ot.ajax=!!to,to&&it.ajaxTransport(function(e){if(!e.crossDomain||ot.cors){var t;return{send:function(n,o){var r,i=e.xhr(),a=++Zn;if(i.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)i[r]=e.xhrFields[r];e.mimeType&&i.overrideMimeType&&i.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(r in n)void 0!==n[r]&&i.setRequestHeader(r,n[r]+"");i.send(e.hasContent&&e.data||null),t=function(n,r){var s,u,l;if(t&&(r||4===i.readyState))if(delete eo[a],t=void 0,i.onreadystatechange=it.noop,r)4!==i.readyState&&i.abort();else{l={},s=i.status,"string"==typeof i.responseText&&(l.text=i.responseText);try{u=i.statusText}catch(c){u=""}s||!e.isLocal||e.crossDomain?1223===s&&(s=204):s=l.text?200:404}l&&o(s,u,l,i.getAllResponseHeaders())},e.async?4===i.readyState?setTimeout(t):i.onreadystatechange=eo[a]=t:t()},abort:function(){t&&t(void 0,!0)}}}}),it.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return it.globalEval(e),e}}}),it.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),it.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=gt.head||it("head")[0]||gt.documentElement;return{send:function(o,r){t=gt.createElement("script"),t.async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||r(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var no=[],oo=/(=)\?(?=&|$)|\?\?/;it.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=no.pop()||it.expando+"_"+jn++;return this[e]=!0,e}}),it.ajaxPrefilter("json jsonp",function(e,n,o){var r,i,a,s=e.jsonp!==!1&&(oo.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&oo.test(e.data)&&"data");return s||"jsonp"===e.dataTypes[0]?(r=e.jsonpCallback=it.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(oo,"$1"+r):e.jsonp!==!1&&(e.url+=(Ln.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||it.error(r+" was not called"),a[0]},e.dataTypes[0]="json",i=t[r],t[r]=function(){a=arguments},o.always(function(){t[r]=i,e[r]&&(e.jsonpCallback=n.jsonpCallback,no.push(r)),a&&it.isFunction(i)&&i(a[0]),a=i=void 0}),"script"):void 0}),it.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||gt;var o=dt.exec(e),r=!n&&[];return o?[t.createElement(o[1])]:(o=it.buildFragment([e],t,r),r&&r.length&&it(r).remove(),it.merge([],o.childNodes))};var ro=it.fn.load;it.fn.load=function(e,t,n){if("string"!=typeof e&&ro)return ro.apply(this,arguments);var o,r,i,a=this,s=e.indexOf(" ");return s>=0&&(o=it.trim(e.slice(s,e.length)),e=e.slice(0,s)),it.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&it.ajax({url:e,type:i,dataType:"html",data:t}).done(function(e){r=arguments,a.html(o?it("<div>").append(it.parseHTML(e)).find(o):e)}).complete(n&&function(e,t){a.each(n,r||[e.responseText,t,e])}),this},it.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){it.fn[t]=function(e){return this.on(t,e)}}),it.expr.filters.animated=function(e){return it.grep(it.timers,function(t){return e===t.elem}).length};var io=t.document.documentElement;it.offset={setOffset:function(e,t,n){var o,r,i,a,s,u,l,c=it.css(e,"position"),f=it(e),d={};"static"===c&&(e.style.position="relative"),s=f.offset(),i=it.css(e,"top"),u=it.css(e,"left"),l=("absolute"===c||"fixed"===c)&&it.inArray("auto",[i,u])>-1,l?(o=f.position(),a=o.top,r=o.left):(a=parseFloat(i)||0,r=parseFloat(u)||0),it.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):f.css(d)}},it.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){it.offset.setOffset(this,e,t)});var t,n,o={top:0,left:0},r=this[0],i=r&&r.ownerDocument;if(i)return t=i.documentElement,it.contains(t,r)?(typeof r.getBoundingClientRect!==Et&&(o=r.getBoundingClientRect()),n=Y(i),{top:o.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:o.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):o},position:function(){if(this[0]){var e,t,n={top:0,left:0},o=this[0];return"fixed"===it.css(o,"position")?t=o.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),it.nodeName(e[0],"html")||(n=e.offset()),n.top+=it.css(e[0],"borderTopWidth",!0),n.left+=it.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-it.css(o,"marginTop",!0),left:t.left-n.left-it.css(o,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||io;e&&!it.nodeName(e,"html")&&"static"===it.css(e,"position");)e=e.offsetParent;return e||io})}}),it.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);it.fn[e]=function(o){return Dt(this,function(e,o,r){var i=Y(e);return void 0===r?i?t in i?i[t]:i.document.documentElement[o]:e[o]:void(i?i.scrollTo(n?it(i).scrollLeft():r,n?r:it(i).scrollTop()):e[o]=r)},e,o,arguments.length,null)}}),it.each(["top","left"],function(e,t){it.cssHooks[t]=S(ot.pixelPosition,function(e,n){return n?(n=nn(e,t),rn.test(n)?it(e).position()[t]+"px":n):void 0})}),it.each({Height:"height",Width:"width"},function(e,t){it.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,o){it.fn[o]=function(o,r){var i=arguments.length&&(n||"boolean"!=typeof o),a=n||(o===!0||r===!0?"margin":"border");return Dt(this,function(t,n,o){var r;return it.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===o?it.css(t,n,a):it.style(t,n,o,a)},t,i?o:void 0,i,null)}})}),it.fn.size=function(){return this.length},it.fn.andSelf=it.fn.addBack,"function"==typeof e&&e.amd&&e("jquery",[],function(){return it});var ao=t.jQuery,so=t.$;return it.noConflict=function(e){return t.$===it&&(t.$=so),e&&t.jQuery===it&&(t.jQuery=ao),it},typeof n===Et&&(t.jQuery=t.$=it),it})},{}],17:[function(e,t){function n(){if(!a){a=!0;for(var e,t=i.length;t;){e=i,i=[];for(var n=-1;++n<t;)e[n]();t=i.length}a=!1}}function o(){}var r=t.exports={},i=[],a=!1;r.nextTick=function(e){i.push(e),a||setTimeout(n,0)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=o,r.addListener=o,r.once=o,r.off=o,r.removeListener=o,r.removeAllListeners=o,r.emit=o,r.binding=function(){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},{}],18:[function(e,t){(function(){t.exports={xpath:e("./xpath"),Range:e("./range")}}).call(this)},{"./range":19,"./xpath":21}],19:[function(e,t){(function(){var n,o,r,i,a={}.hasOwnProperty,s=function(e,t){function n(){this.constructor=e}for(var o in t)a.call(t,o)&&(e[o]=t[o]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};i=e("./xpath"),r=e("./util"),n=e("jquery"),o={},o.sniff=function(e){return null!=e.commonAncestorContainer?new o.BrowserRange(e):"string"==typeof e.start?new o.SerializedRange(e):e.start&&"object"==typeof e.start?new o.NormalizedRange(e):(console.error("Could not sniff range type"),!1)},o.RangeError=function(e){function t(e,n,o){this.type=e,this.message=n,this.parent=null!=o?o:null,t.__super__.constructor.call(this,this.message)}return s(t,e),t}(Error),o.BrowserRange=function(){function e(e){this.commonAncestorContainer=e.commonAncestorContainer,this.startContainer=e.startContainer,this.startOffset=e.startOffset,this.endContainer=e.endContainer,this.endOffset=e.endOffset}return e.prototype.normalize=function(){var e,t;if(this.tainted)return console.error("You may only call normalize() once on a BrowserRange!"),!1;for(this.tainted=!0,t={},this._normalizeStart(t),this._normalizeEnd(t),e={},e.start=t.startOffset>0?t.start.nodeValue.length>t.startOffset?t.start.splitText(t.startOffset):t.start.nextSibling:t.start,t.start===t.end?(e.start.nodeValue.length>t.endOffset-t.startOffset&&e.start.splitText(t.endOffset-t.startOffset),e.end=e.start):(t.end.nodeValue.length>t.endOffset&&t.end.splitText(t.endOffset),e.end=t.end),e.commonAncestor=this.commonAncestorContainer;e.commonAncestor.nodeType!==r.NodeTypes.ELEMENT_NODE;)e.commonAncestor=e.commonAncestor.parentNode;return new o.NormalizedRange(e)},e.prototype._normalizeStart=function(e){return this.startContainer.nodeType===r.NodeTypes.ELEMENT_NODE?(e.start=r.getFirstTextNodeNotBefore(this.startContainer.childNodes[this.startOffset]),e.startOffset=0):(e.start=this.startContainer,e.startOffset=this.startOffset)},e.prototype._normalizeEnd=function(e){var t,n;if(this.endContainer.nodeType!==r.NodeTypes.ELEMENT_NODE)return e.end=this.endContainer,e.endOffset=this.endOffset;if(n=this.endContainer.childNodes[this.endOffset],null!=n){for(t=n;null!=t&&t.nodeType!==r.NodeTypes.TEXT_NODE;)t=t.firstChild;null!=t&&(e.end=t,e.endOffset=0)}return null==e.end?(n=this.endOffset?this.endContainer.childNodes[this.endOffset-1]:this.endContainer.previousSibling,e.end=r.getLastTextNodeUpTo(n),e.endOffset=e.end.nodeValue.length):void 0},e.prototype.serialize=function(e,t){return this.normalize(e).serialize(e,t)},e}(),o.NormalizedRange=function(){function e(e){this.commonAncestor=e.commonAncestor,this.start=e.start,this.end=e.end}return e.prototype.normalize=function(){return this},e.prototype.limit=function(e){var t,o,r,i,a,s;if(t=n.grep(this.textNodes(),function(t){return t.parentNode===e||n.contains(e,t.parentNode)}),!t.length)return null;for(this.start=t[0],this.end=t[t.length-1],r=n(this.start).parents(),s=n(this.end).parents(),i=0,a=s.length;a>i;i++)if(o=s[i],-1!==r.index(o)){this.commonAncestor=o;break}return this},e.prototype.serialize=function(e,t){var a,s,u;return s=function(o,a){var s,u,l,c,f,d,p,h;for(c=t?n(o).parents(":not("+t+")").eq(0):n(o).parent(),f=i.fromNode(c,e)[0],d=r.getTextNodes(c),u=d.slice(0,d.index(o)),l=0,p=0,h=u.length;h>p;p++)s=u[p],l+=s.nodeValue.length;return a?[f,l+o.nodeValue.length]:[f,l]},u=s(this.start),a=s(this.end,!0),new o.SerializedRange({start:u[0],end:a[0],startOffset:u[1],endOffset:a[1]})},e.prototype.text=function(){var e;return function(){var t,n,o,r;for(o=this.textNodes(),r=[],t=0,n=o.length;n>t;t++)e=o[t],r.push(e.nodeValue);return r}.call(this).join("")},e.prototype.textNodes=function(){var e,t,o,i;return o=r.getTextNodes(n(this.commonAncestor)),i=[o.index(this.start),o.index(this.end)],t=i[0],e=i[1],n.makeArray(o.slice(t,+e+1||9e9))},e}(),o.SerializedRange=function(){function e(e){this.start=e.start,this.startOffset=e.startOffset,this.end=e.end,this.endOffset=e.endOffset}return e.prototype.normalize=function(e){var t,a,s,u,l,c,f,d,p,h,g,m,y,v;for(c={},y=["start","end"],p=0,g=y.length;g>p;p++){l=y[p];try{u=i.toNode(this[l],e)}catch(b){throw a=b,new o.RangeError(l,"Error while finding "+l+" node: "+this[l]+": "+a,a)}if(!u)throw new o.RangeError(l,"Couldn't find "+l+" node: "+this[l]);for(s=0,f=this[l+"Offset"],"end"===l&&(f-=1),v=r.getTextNodes(n(u)),h=0,m=v.length;m>h;h++){if(d=v[h],s+d.nodeValue.length>f){c[l+"Container"]=d,c[l+"Offset"]=this[l+"Offset"]-s;break}s+=d.nodeValue.length}if(null==c[l+"Offset"])throw new o.RangeError(""+l+"offset","Couldn't find offset "+this[l+"Offset"]+" in element "+this[l])}return t=null!=document.compareDocumentPosition?function(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY}:function(e,t){return e.contains(t)},n(c.startContainer).parents().each(function(){var e;return e=c.endContainer.nodeType===r.NodeTypes.TEXT_NODE?c.endContainer.parentNode:c.endContainer,t(this,e)?(c.commonAncestorContainer=this,!1):void 0}),new o.BrowserRange(c).normalize(e)},e.prototype.serialize=function(e,t){return this.normalize(e).serialize(e,t)},e.prototype.toObject=function(){return{start:this.start,startOffset:this.startOffset,end:this.end,endOffset:this.endOffset}},e}(),t.exports=o}).call(this)},{"./util":20,"./xpath":21,jquery:16}],20:[function(e,t){(function(){var n,o;n=e("jquery"),o={},o.NodeTypes={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12},o.getFirstTextNodeNotBefore=function(e){var t;switch(e.nodeType){case o.NodeTypes.TEXT_NODE:return e;case o.NodeTypes.ELEMENT_NODE:if(null!=e.firstChild&&(t=o.getFirstTextNodeNotBefore(e.firstChild),null!=t))return t}return e=e.nextSibling,null!=e?o.getFirstTextNodeNotBefore(e):null},o.getLastTextNodeUpTo=function(e){var t;switch(e.nodeType){case o.NodeTypes.TEXT_NODE:return e;case o.NodeTypes.ELEMENT_NODE:if(null!=e.lastChild&&(t=o.getLastTextNodeUpTo(e.lastChild),null!=t))return t}return e=e.previousSibling,null!=e?o.getLastTextNodeUpTo(e):null},o.getTextNodes=function(e){var t;return t=function(e){var n;if(e&&e.nodeType!==o.NodeTypes.TEXT_NODE){if(n=[],e.nodeType!==o.NodeTypes.COMMENT_NODE)for(e=e.lastChild;e;)n.push(t(e)),e=e.previousSibling;return n.reverse()}return e},e.map(function(){return o.flatten(t(this))})},o.getGlobal=function(){return function(){return this}()},o.contains=function(e,t){var n;for(n=t;null!=n;){if(n===e)return!0;n=n.parentNode}return!1},o.flatten=function(e){var t;return(t=function(e){var o,r,i,a;for(r=[],i=0,a=e.length;a>i;i++)o=e[i],r=r.concat(o&&n.isArray(o)?t(o):o);return r})(e)},t.exports=o}).call(this)},{jquery:16}],21:[function(e,t){(function(){var n,o,r,i,a,s,u,l,c,f;n=e("jquery"),o=e("./util"),r=function(e,t,n){var o,r,a,s,u,l,c,f,d;null==t&&(t=document),null==n&&(n=null);try{return document.evaluate("."+e,t,n,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}catch(p){for(o=p,console.log("XPath evaluation failed."),console.log("Trying fallback..."),l=e.substring(1).split("/"),s=t,c=0,f=l.length;f>c;c++)u=l[c],d=u.split("["),a=d[0],r=d[1],r=null!=r?parseInt((null!=r?r.split("]"):void 0)[0]):1,s=i(s,a.toLowerCase(),r);return s}},l=function(e,t){var r;return r=e.map(function(){var e,r,i,a;for(i="",e=this;(null!=e?e.nodeType:void 0)===o.NodeTypes.ELEMENT_NODE&&e!==t;)a=e.tagName.replace(":","\\:"),r=n(e.parentNode).children(a).index(e)+1,r="["+r+"]",i="/"+e.tagName.toLowerCase()+r+i,e=e.parentNode;return i}),r.get()},c=function(e,t){var n,o,r,i;return n=function(e){var t,n;return t=s(e),n=u(e),""+t+"["+n+"]"},i=t,o=function(e){var t;for(t="";e!==i;){if(null==e)throw new Error("Called getPathTo on a node which was not a descendant of @rootNode. "+i);t=n(e)+"/"+t,e=e.parentNode}return t="/"+t,t=t.replace(/\/$/,"")},r=e.map(function(){var e;return e=o(this)}),r.get()},i=function(e,t,n){var o,r,i,a,u,l;if(!e.hasChildNodes())throw new Error("XPath error: node has no children!");for(r=e.childNodes,i=0,u=0,l=r.length;l>u;u++)if(o=r[u],a=s(o),a===t&&(i+=1,i===n))return o;throw new Error("XPath error: wanted child not found.")},s=function(e){var t;switch(t=e.nodeName.toLowerCase()){case"#text":return"text()";case"#comment":return"comment()";case"#cdata-section":return"cdata-section()";default:return t}},u=function(e){var t,n;for(t=0,n=e;n;)n.nodeName===e.nodeName&&(t+=1),n=n.previousSibling;return t},a=function(e,t){var n,o;try{o=l(e,t)}catch(r){n=r,console.log("jQuery-based XPath construction failed! Falling back to manual."),o=c(e,t)}return o},f=function(e,t){var o,i,a,s;return null==t&&(t=document),n.isXMLDoc(document.documentElement)?(o=document.createNSResolver(null===document.ownerDocument?document.documentElement:document.ownerDocument.documentElement),a=r(e,t,o),a||(e=function(){var t,n,o,r;for(o=e.split("/"),r=[],t=0,n=o.length;n>t;t++)s=o[t],r.push(s&&-1===s.indexOf(":")?s.replace(/^([a-z]+)/,"xhtml:$1"):s);return r}().join("/"),i=document.lookupNamespaceURI(null),o=function(e){return"xhtml"===e?i:document.documentElement.getAttribute("xmlns:"+e)},a=r(e,t,o)),a):r(e,t)},t.exports={fromNode:a,toNode:f}}).call(this)},{"./util":20,jquery:16}],22:[function(e,t,n){function o(){this.modules=[],this.registry=new u.Registry,this._started=!1}function r(e){if(console.log("eventData = "+e),"undefined"!=typeof e&&null!=e&&"undefined"!=typeof e.srcElement&&null!=e.srcElement){for(var t=e.srcElement,n=null;t&&t.nodeType==Node.ELEMENT_NODE&&"BODY"!==t.nodeName;t=t.parentNode)if("undefined"!=typeof t.className&&null!==t.className&&"annotator"==t.className.split("-")[0]){n=t;break}null!==n&&(console.log("Annot is clicked: "+n),f.clickAnnot(n,!0))}}function i(){document.addEventListener("click",r)}{var a=e("backbone-extend-standalone"),s=e("es6-promise").Promise,u=e("./registry"),l=e("./storage"),c=e("./rnasetup"),f=e("./pdfStore"),d=e("./tools");e("./util")}o.prototype.include=function(e,t){var n=e(t);return"function"==typeof n.configure&&n.configure(this.registry),this.modules.push(n),this},o.prototype.getModule=function(e){for(var t={},n=0,o=this.modules.length;o>n;n++){var r=this.modules[n];if("function"==typeof r.getModuleName&&r.getModuleName()===e){t=r;break}}return t},o.prototype.exclude=function(e){for(var t=-1,n=0,o=this.modules.length;o>n;n++){var r=this.modules[n];if("function"==typeof r.getModuleName&&r.getModuleName()===e){t=n;break}}return t>0&&this.modules.splice(t,1),this},o.prototype.start=function(){if(!this._started){console.log(" inside the start function."),this._started=!0;var e=this,t=this.registry;return this.JSBridge=c.setup(this),console.log(" Before include pdfstorage.pdf"),this.include(f.pdf),console.log(" After include pdfstorage.pdf"),this.include(d.main),this.annotations=new l.StorageAdapter(t.getUtility("storage"),function(){return e.runHook.apply(e,arguments)}),i(),console.log(" Return from  start function."),this.runHook("start",[this])}},o.prototype.destroy=function(){return this.runHook("destroy")},o.prototype.runHook=function(e,t){for(var n=[],o=0,r=this.modules.length;r>o;o++){var i=this.modules[o];"function"==typeof i[e]&&n.push(i[e].apply(i,t))}return s.all(n)},o.extend=a,n.App=o},{"./pdfStore":24,"./registry":25,"./rnasetup":26,"./storage":27,"./tools":28,"./util":35,"backbone-extend-standalone":3,"es6-promise":4}],23:[function(e,t,n){function o(e){var t=e;return function(){return t}}function r(){return"undefined"!=typeof odm&&null!==odm?!0:!1}function i(){return"undefined"!=typeof window.DynCommentAPI&&null!==window.DynCommentAPI?!0:!1}var a={};n.getAppObj=a;var s=!r();n.IsTest=s,n.createContext=function(e,t){function n(){return new Promise(function(e,t){function n(n,o,r){n&&t(n),e(r)}"undefined"!=typeof odm&&null!==odm&&odm.createContext("processType=p6:",n)})}if("undefined"==typeof e||null==e||"undefined"==typeof t||null==t)throw console.log("Invalid Arguments"),"InvalidArguments";r()?n().then(function(t){return"undefined"!=typeof t&&null!==t&&"undefined"!=typeof t.rna&&null!==t.rna&&"undefined"!=typeof t.rna.DynCommentAPI&&null!==t.rnaDynCommentAPI?(window.DynCommentAPI=t.rna.DynCommentAPI,e.resolve(),void console.log("Resolving window.DynCommentAPI ="+window.DynCommentAPI+" JS bridge is all set up.")):(console.log("Acrobat context but rna bridge could not be established."),void e.reject())}):s&&setTimeout(function(){e.resolve()},100),this.getAppObj=o(t)},n.initialize=function(e){if("undefined"==typeof e||null==e)throw console.log("Invalid Arguments"),"InvalidArguments";i()&&("undefined"!=typeof window.DynCommentAPI.initialize&&null!==window.DynCommentAPI.initialize?window.DynCommentAPI.initialize._invoke.apply("undefined",[])._done(function(){e.resolve()}):(console.log("Unable to call initialize."),e.reject()))},n.start=function(e,t){if("undefined"==typeof e||null==e||"undefined"==typeof t||null==t)throw console.log("Invalid Arguments"),"InvalidArguments";i()&&("undefined"!=typeof window.DynCommentAPI.start&&null!==window.DynCommentAPI.start?(window.DynCommentAPI._addEventListener("all",t,null,e),window.DynCommentAPI.start._invoke.apply("undefined",[])):(console.log("Unable to call start."),defObj.reject()))},n.addAnnot=function(e,t,n){if("undefined"==typeof n||null==n||"undefined"==typeof e||null==e||"undefined"==typeof t||null==t)throw console.log("Invalid Arguments"),"InvalidArguments";if(i()&&"undefined"!=typeof window.DynCommentAPI.createAnnot&&null!==window.DynCommentAPI.createAnnot){var o={type:t.type,annot:[t.sId,t.eID,t.quote,t.sOff,t.eOff,t.name]};return void window.DynCommentAPI.createAnnot._invoke.apply("undefined",[o])._done(function(t,o){var r={id:e,ann:o};n.resolve(r)})}console.log("Unable to call createAnnot."),n.reject()},n.clickAnnot=function(e,t){i()&&"undefined"!=typeof window.DynCommentAPI.annClick&&null!==window.DynCommentAPI.annClick&&window.DynCommentAPI.annClick._invoke.apply("undefined",[e,t])}},{}],24:[function(e,t,n){function o(e){return"undefined"!=typeof e&&null!==e&&"string"==typeof e.id&&""!==e.id?!0:!1}function r(e){for(var t=document.evaluate("./"+e,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;t&&"BODY"!==t.nodeName&&!o(t);)t="undefined"!=typeof t.parentNode?t.parentNode:null;return o(t)?t.id:null}function i(e){for(var t=[];e&&e.nodeType==Node.ELEMENT_NODE&&"BODY"!==e.nodeName;e=e.parentNode){for(var n=0,o=!1,r=e.previousSibling;r;r=r.previousSibling)r.nodeType!=Node.DOCUMENT_TYPE_NODE&&r.nodeName==e.nodeName&&++n;for(var r=e.nextSibling;r&&!o;r=r.nextSibling)r.nodeName==e.nodeName&&(o=!0);var i=(e.prefix?e.prefix+":":"")+e.localName,a=n||o?"["+(n+1)+"]":"";t.splice(0,0,i+a)}return t.length?"/"+t.join("/"):null}function a(e){if(!("object"!=typeof e||null==e||"undefined"==typeof e.ranges||" undefined"==typeof e.ranges.length||e.ranges.length<=0)){var t={sId:0,eID:0,sOff:-1,eOff:-1,quote:"",name:""},n=e.ranges[0],o=e.ranges[e.ranges.length-1],i=r(n.start),a=r(o.end);return i&&a?(t.sId=i,t.eID=a,t.sOff=n.startOffset,t.eOff=o.endOffset,t.quote=e.quote,t.name="undefined"!=typeof e.id?e.id:"name",t.type=e.type,t):null}}function s(e){if("object"!=typeof e||null==e||"undefined"==typeof e.sId||"undefined"==typeof e.eId||"undefined"==typeof e.sOff||"undefined"==typeof e.eOff||"undefined"==typeof e.quote||"undefined"==typeof e.name)return null;var t=i(document.getElementById(e.sId)),n=i(document.getElementById(e.eId)),o={quote:e.quote,ranges:[{start:t,startOffset:e.sOff,end:n,endOffset:e.eOff}],id:e.name,type:e.type};return"undefined"!=typeof e.color&&(o.color=e.color),o}function u(){var e=v.Deferred();return y.IsTest?setTimeout(function(){e.resolve()},1e3):y.initialize(e),e}function l(e,t){if(console.log("handleEvent : event received eventname= "+e+" this= "+this+" eventdata = "+t),"undefined"!=typeof t&&null!==t&&"undefined"!=typeof t.params&&null!==t.params)if("custom:updateAnnot"==e)this.update(t.params);else if("custom:create"==e)this.createAnnotFromNative(t.params);else if("custom:attach"==e||"custom:detach"==e){var n=e.split(":")[1];this.attachDynAnnotTool(n,t.params)}else"custom:delete"==e?this.remove(t.params):"custom:testSelect"==e&&this.testSelect(t.params)}function c(e,t){if("undefined"!=typeof window&&null!=window){var n=null,o=(window.getSelection(),x.getOptionsByType(e));if(o){o.onSelection=function(e){if(e.length>0){var n=r(e);t.annotations.create(n)}};var r=b.annotationFactory(o.element,o.annotation_class,o.markUpToolName);n=new w.TextSelector(o.element,o)}n&&(n._checkForEndSelection(),n.destroy())}}function f(e){y.IsTest?setTimeout(function(){function t(){if(n<r.length){var e=r[n],i="custom:updateAnnot",a={params:JSON.stringify(e)};o(i,a),n++,setTimeout(t,100),console.log("Continue the timeout loop")}else console.log("Exiting the timeout loop")}var n=0,o=l.bind(e),r=[{sId:"ADBE_Obj_537",eId:"ADBE_Obj_537",sOff:10,eOff:40,quote:"signatures",name:"guid_103",type:"StrikeOut"},{sId:"ADBE_Obj_537",eId:"ADBE_Obj_537",sOff:23,eOff:33,quote:"signatures",name:"guid_102",type:"Underline"},{sId:"ADBE_Obj_537",eId:"ADBE_Obj_537",sOff:15,eOff:25,quote:"signatures",name:"guid_104",type:"StrikeOut"},{sId:"ADBE_Obj_537",eId:"ADBE_Obj_539",sOff:7,eOff:11,quote:"nic and digital signatures in Adobe Sign for government white paper \n \nWith Adobe",name:"guid_100",type:"Underline"},{sId:"ADBE_Obj_537",eId:"ADBE_Obj_539",sOff:4,eOff:25,quote:"tronic and digital signatures in Adobe Sign for government white paper \n \nWith Adobe Sign, you can",name:"guid_101"}];t()},100):y.start(e,l)}function d(e,t){var n=v.Deferred();return y.IsTest?setTimeout(function(){"object"==typeof t&&null!=t&&(t.name=T(),n.resolve({id:e,ann:t}))},200):y.addAnnot(e,t,n),n}function p(e){return e.getModule("toolsHandler")}function h(e){return"object"==typeof e&&"undefined"!=typeof e.color?!0:!1}function g(e,t){return e>t?e:t}var m=e("./util"),y=e("./libclient"),v=m.$,b=(m.gettext,m.Promise,e("./ui/main")),x=e("./tools"),w=e("./ui/textselector"),T=function(){var e=0;return function(){return e++,"DocIndex_"+e}}();n.detachTool=function(){var e=y.getAppObj();if("undefined"!=typeof e&&null!=e&&"function"==typeof e.getModule){var t=p(e);t&&t.detach()}},n.clickAnnot=function(e,t){console.log("showing the note.");var n=v(e).data("annotationId");y.clickAnnot(n,t)};var N=function(e){var t=new Map,n=new Map;return{add:function(o){if("undefined"!=typeof o&&"undefined"!=typeof o.id&&!t.has(o.id)){var r=a(o);if(!r)return void console.log("Not able to convert annot into serializable strucuture.");t.set(o.id,r);var i=d(o.id,r);i.then(function(o){if("undefined"==typeof o||"undefined"==typeof o.id||"undefined"==typeof o.ann||!t.has(o.id))return void console.log("Error in addapi then;");var r=t.get(o.id);if(t.delete(o.id),"string"!=typeof o.ann.name||""==o.ann.name||n.has(o.ann.name))r.id=o.id,p(e).annotationDeleted(r);else{v("span[data-annotation-id = "+o.id+"]").each(function(){console.log("Updating element id for annot. From= "+o.id+" to= "+o.ann.name),v(this).attr("data-annotation-id",o.ann.name);v(this).data("annotationId")});var i=v.extend(!0,{},E,{date_tag:o.ann.date_tag});n.set(o.ann.name,i);var a=JSON.stringify(o.ann);console.log("added annotation = "+a)}})}},remove:function(t){var o=JSON.parse(t);if("undefined"!=typeof o&&null!==o){var r=o;r.id=o.name,r&&(n.has(o.name)&&n.delete(o.name),p(e).annotationDeleted(r))}},update:function(t){var o=JSON.parse(t);if("undefined"!=typeof o&&null!==o){var r=v.extend(!0,{},E,{});if(n.has(o.name)&&(r=n.get(o.name)),r.date_tag<o.date_tag||h(o)&&r.bSyncBody){console.log("updating annot = "+t);var i=s(o);i?(i.updateBody=h(o)&&r.bSyncBody,e.annotations.update(i),r.date_tag=g(r.date_tag,o.date_tag),r.bSyncBody=r.bSyncBody?!h(o):!1,n.set(o.name,r)):console.log("Could not convert annotation into JS structure.")}}},createAnnotFromNative:function(t){var n=JSON.parse(t);if("undefined"==typeof n||"undefined"==typeof n.type)return void console.log("incorrect params.");var o=n.type;c(o,e)},attachDynAnnotTool:function(t,n){var o=JSON.parse(n);if("undefined"==typeof o||"undefined"==typeof o.tool)return void console.log("incorrect params.");var r=e.getModule("toolsHandler");if("HighlightPdfnext"==o.tool?r&&r[t]("Highlight"):"TextPdfnext"==o.tool&&r&&r[t]("Text"),"TextPdfnext"==o.tool){var r=e.getModule("toolsHandler");r&&r.attach("Text")}},count:function(){return n.size},testSelect:function(e){var t=JSON.parse(e);if("undefined"==typeof t||"undefined"==typeof t.sId||"undefined"==typeof t.eId||"undefined"==typeof t.sOff||"undefined"==typeof t.eOff)return void console.log("incorrect params.");var n=document.getElementById(t.sId).firstChild,o=document.getElementById(t.eId).firstChild;if(n.length<r||o.length<i)return void console.log("IndexSizeError:The offset is larger than the node's length");var r=t.sOff,i=t.eOff,a=document.createRange();a.setStart(n,r),a.setEnd(o,i);var s=window.getSelection();s.removeAllRanges(),s.addRange(a)}}},E={date_tag:0,bSyncBody:!0};n.pdf=function(){var e,t=function(){var e=0;return function(){return e+=1,"Guid_"+e}}(),n=function(n){("undefined"==typeof n.id||null===n.id)&&(n.id=t());var o=e.count()+1;return console.log("Creating "+o+" annotation in the view. for jsID= "+n.id),n},o=function(e){return e},r=function(e){return e},i=function(){return{results:[]}},a=function(e){e.registerUtility(this,"storage")},s=function(t){console.log("inside pdf load function."),e=N(t),t.JSBridge.then(function(){console.log("inside init function."),("undefined"==typeof e||null==e)&&(e=N(t),console.log("model was not defined. initialiazed a new"));var n=u(e);n.then(f(e)),console.log("return from init function.")}),console.log("return from pdf load function.")};return{create:n,update:o,"delete":r,query:i,configure:a,start:s,annotationCreated:function(t){"function"==typeof e.add&&e.add(t)
}}}},{"./libclient":23,"./tools":28,"./ui/main":31,"./ui/textselector":33,"./util":35}],25:[function(e,t,n){function o(){this.utilities={}}function r(e){this.name="LookupError",this.message='No utility registered for interface "'+e+'".'}o.prototype.registerUtility=function(e,t){this.utilities[t]=e},o.prototype.getUtility=function(e){var t=this.queryUtility(e);if(null===t)throw new r(e);return t},o.prototype.queryUtility=function(e){var t=this.utilities[e];return"undefined"==typeof t||null===t?null:t},r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,n.LookupError=r,n.Registry=o},{}],26:[function(e,t,n){{var o=e("./util"),r=e("./libclient"),i=o.$;o.gettext,o.Promise}n.setup=function(e){var t=i.Deferred();return r.createContext(t,e),t}},{"./libclient":23,"./util":35}],27:[function(e,t,n){function o(e,t){this.store=e,this.runHook=t}var r=e("./util"),i=r.$,a=(r.gettext,r.Promise),s=function(){var e;return e=-1,function(){return e+=1}}();n.debug=function(){function e(e,t){var n=JSON.parse(JSON.stringify(t));console.debug("annotator.storage.debug: "+e,n)}return{create:function(t){return t.id=s(),e("create",t),t},update:function(t){return e("update",t),t},"delete":function(t){return e("destroy",t),t},query:function(t){return e("query",t),{results:[],meta:{total:0}}},configure:function(e){e.registerUtility(this,"storage")}}},o.prototype.create=function(e){return("undefined"==typeof e||null===e)&&(e={}),this._cycle(e,"create","beforeAnnotationCreated","annotationCreated")},o.prototype.update=function(e){if("undefined"==typeof e.id||null===e.id)throw new TypeError("annotation must have an id for update()");return this._cycle(e,"update","beforeAnnotationUpdated","annotationUpdated")},o.prototype["delete"]=function(e){if("undefined"==typeof e.id||null===e.id)throw new TypeError("annotation must have an id for delete()");return this._cycle(e,"delete","beforeAnnotationDeleted","annotationDeleted")},o.prototype.query=function(e){return a.resolve(this.store.query(e))},o.prototype.load=function(e){var t=this;return this.query(e).then(function(e){t.runHook("annotationsLoaded",[e.results])})},o.prototype._cycle=function(e,t,n,o){var r=this;return this.runHook(n,[e]).then(function(){var n=i.extend(!0,{},e);delete n._local;var o=r.store[t](n);return a.resolve(o)}).then(function(t){for(var n in e)e.hasOwnProperty(n)&&"_local"!==n&&delete e[n];return i.extend(e,t),r.runHook(o,[e]),e})},n.StorageAdapter=o},{"./util":35}],28:[function(e,t,n){function o(){return{}}function r(){return{element:c.getGlobal().document.body,annotation_class:f.CLASS.highlight,markUpToolName:f.TOOLNAME.highlight,cssOption:f.CSSOPTION.highlight}}function i(){return{element:c.getGlobal().document.body,annotation_class:f.CLASS.strikethrough,markUpToolName:f.TOOLNAME.strikethrough,cssOption:f.CSSOPTION.strikethrough}}function a(){return{element:c.getGlobal().document.body,annotation_class:f.CLASS.underline,markUpToolName:f.TOOLNAME.underline,cssOption:f.CSSOPTION.underline}}function s(e){for(var t=0;t<g.length;t++)if(g[t].name===e)return t;return-1}function u(e){var t=s(e);return t>=0?g[t].options:null}function l(){var e=null,t=null,n=function(n){e&&o(e),e=null;var r=s(n);if(0>r)return void console.log("ERROR: Not a valid tool.");var i=g[r];t.include(i.component,i.options);var a=t.getModule(n);a&&"function"==typeof a.start&&a.start.apply(a,[t]),e=n},o=function(n){if(e&&(e==n||"undefined"==typeof n||null==n)){var o=t.getModule(e);o&&"function"==typeof o.destroy&&(o.destroy.apply(o,[t]),t.exclude(e)),e=null}},r=function(e){var n=e.registry;t=e;for(var o=0;o<g.length;o++){var r=g[o];n.registerUtility(r.component,r.name)}},i=function(e){("undefined"==typeof e||null==e)&&(e="Highlight");var t=u(e);return t?new p.Highlighter(t.element,{markupClass:t.annotation_class,cssOption:t.cssOption}):null},a=function(e){var t=i(e.type);t&&"function"==typeof t.draw&&(t.draw(e),e.updateBody&&t.setBody(e))},l=function(e){var t=i(e.type);t&&"function"==typeof t.undraw&&t.undraw(e)};return{start:r,attach:function(e){n(e)},detach:function(e){o(e)},getTool:function(){return e},getModuleName:function(){return"toolsHandler"},annotationsLoaded:function(){},annotationCreated:function(e){a(e)},annotationDeleted:function(e){l(e)},annotationUpdated:function(e){l(e),a(e)}}}var c=e("./util"),f=e("./ui/toolNameClass"),d=e("./ui/main").main,p=e("./ui/highlighter"),h=e("./ui/sticky").main,g=(e("./pdfStore"),[{name:"Highlight",component:d,options:r()},{name:"StrikeOut",component:d,options:i()},{name:"Underline",component:d,options:a()},{name:"Text",component:h,options:o()}]);n.getOptionsByType=u,n.main=l},{"./pdfStore":24,"./ui/highlighter":30,"./ui/main":31,"./ui/sticky":32,"./ui/toolNameClass":34,"./util":35}],29:[function(e,t,n){n.main=e("./ui/main").main,n.highlighter=e("./ui/highlighter"),n.textselector=e("./ui/textselector")},{"./ui/highlighter":30,"./ui/main":31,"./ui/textselector":33}],30:[function(e,t,n){function o(e,t){("undefined"==typeof t||null===t)&&(t="annotator-hl");for(var n=/^\s*$/,o=u("<span class='"+t+"'></span>"),r=e.textNodes(),i=[],a=0,s=r.length;s>a;a++){var l=r[a];n.test(l.nodeValue)||i.push(u(l).wrapAll(o).parent().show()[0])}return i}function r(e,t){try{return a.sniff(e).normalize(t)}catch(n){if(!(n instanceof a.RangeError))throw n}return null}function i(){var e=s.getGlobal().getSelection();e&&"function"==typeof e.empty&&e.empty()}var a=e("xpath-range").Range,s=e("../util"),u=s.$,l=s.Promise,c=n.Highlighter=function f(e,t){this.element=e,this.options=u.extend(!0,{},f.options,t)};c.prototype.destroy=function(){},c.prototype.drawAll=function(e){var t=this,n=new l(function(n){function o(e){("undefined"==typeof e||null===e)&&(e=[]);for(var i=e.splice(0,t.options.chunkSize),a=0,s=i.length;s>a;a++)r=r.concat(t.draw(i[a]));e.length>0?setTimeout(function(){o(e)},t.options.chunkDelay):n(r)}var r=[],i=e.slice();o(i)});return n},c.prototype.draw=function(e){for(var t=[],n=0,a=e.ranges.length;a>n;n++){var s=r(e.ranges[n],this.element);null!==s&&t.push(s)}var l="undefined"!=typeof e._local&&null!==e._local;l||(e._local={});var c="undefined"!=typeof e._local.highlights&&null===e._local.highlights;c||(e._local.highlights=[]);for(var f=0,d=t.length;d>f;f++){var p=t[f];u.merge(e._local.highlights,o(p,this.options.markupClass))}return u(e._local.highlights).data("annotation",e),"undefined"!=typeof e.id&&null!==e.id&&u(e._local.highlights).attr("data-annotation-id",e.id),i(),e._local.highlights},c.prototype.undraw=function(e){var t=[];if("object"==typeof e&&null!=e&&"string"==typeof e.id&&""!==e.id&&u("span[data-annotation-id="+e.id+"]").each(function(){t.push(this)}),0!=t.length)for(var n=0;n<t.length;n++){for(var o=t[n],r=u(o).contents(),i=0;i<r.length;i++)u(r[i]).insertBefore(o);o.remove()}},c.prototype.redraw=function(e){return this.undraw(e),this.draw(e)},c.prototype.setBody=function(e){if("undefined"!=typeof e&&null!=e&&void 0!=typeof e.color){var t=this.options.cssOption;u("span[data-annotation-id = "+e.id+"]").each(function(){u(this).css(t,e.color)})}},c.options={markupClass:"annotator-hl",cssOption:"background",chunkSize:10,chunkDelay:10}},{"../util":35,"xpath-range":18}],31:[function(e,t,n){function o(e){return"function"==typeof String.prototype.trim?String.prototype.trim.call(e):e.replace(/^[\s\xA0]+|[\s\xA0]+$/g,"")}function r(e,t,n){return function(r){for(var i=[],a=[],s=0,u=r.length;u>s;s++){var l=r[s];i.push(o(l.text())),a.push(l.serialize(e,t))}return{quote:i.join(" / "),ranges:a,type:n}}}function i(e){for(var t=-1,n=0,o=e.length;o>n;n++){var r=u.$(e[n]);if("static"!==r.css("position")){var i=parseFloat(r.css("z-index"));i>t&&(t=i)}}return t}function a(){u.$("#annotator-dynamic-style").remove();var e="*:not(annotator-adder):not(annotator-outer):not(annotator-notice):not(annotator-filter)",t=i(u.$(d.document.body).find(e).get());t=Math.max(t,1e3);var n=[".annotator-adder, .annotator-outer, .annotator-notice {","  z-index: "+(t+20)+";","}",".annotator-filter {","  z-index: "+(t+10)+";","}"].join("\n");u.$("<style>"+n+"</style>").attr("id","annotator-dynamic-style").attr("type","text/css").appendTo("head")}function s(e){function t(t){o.highlighter=new c.Highlighter(e.element,{markupClass:e.annotation_class}),o.textselector=new f.TextSelector(e.element,{onSelection:function(e){if(e.length>0){var o=n(e);t.annotations.create(o)}}}),a(),o.textselector._checkForEndSelection()}("undefined"==typeof e||null===e)&&(e={}),e.element=e.element||u.getGlobal().document.body,e.annotation_class=e.annotation_class||l.CLASS.default,e.markUpToolName=e.markUpToolName||l.TOOLNAME.default;var n=r(e.element,e.annotation_class,e.markUpToolName),o={};return{start:t,destroy:function(){o.highlighter.destroy(),o.textselector.destroy()},getModuleName:function(){return e.markUpToolName}}}{var u=e("../util"),l=e("./toolNameClass"),c=e("./highlighter"),f=e("./textselector"),d=u.getGlobal();u.gettext}n.annotationFactory=r,n.main=s},{"../util":35,"./highlighter":30,"./textselector":33,"./toolNameClass":34}],32:[function(e,t,n){function o(){return"annotator-sticky"}function r(){return"Text"}function i(){return"click.Sticky"}function a(){var e=[];return e.push(p.$("body")),e}function s(e,t){var n=document.createElement("span");n.className="sticky-container-text";var o=document.createElement("img");return o.className="annotator-sticky",o.setAttribute("style","top:"+String(t-10)+"px; left:"+String(e-10)+"px;"),n.appendChild(o),n}function u(e){var t=window.getSelection();if(1==t.rangeCount){var n=t.getRangeAt(0);if(n.collapsed)if(n.startContainer.nodeType==Node.TEXT_NODE){var o=n.getClientRects()[0].left,r=n.getClientRects()[0].top,i=e.clientX-o,a=e.clientY-r,u=s(i,a);n.insertNode(u)}else console.log("Sticky: can only be creted on text nodes as of now");else console.log("Sticky: Selection of nonzero length")}}function l(e,t){var n=document.createElement("img");return n.className="annotator-sticky",n.setAttribute("style","top:"+String(t-2.5)+"%; left:"+String(e-2)+"%;"),n}function c(e){if("DIV"!=$(e.target).parent().prop("tagName")||"sticky-container-image"!=$(e.target).parent().attr("class")){var t=document.createElement("div");t.className="sticky-container-image",$(e.target).wrap(t)}var n=$(e.target).height(),o=$(e.target).width(),r=$(e.target).parent().offset(),i=e.pageX-r.left,a=e.pageY-r.top;a=a/n*100,i=i/o*100;var s=l(i,a);$($(e.target).parent()).append(s)}function f(e){switch(e.target.nodeName){case"P":case"H1":case"H2":case"H3":case"H4":case"H5":case"H6":case"SPAN":u(e);break;case"IMG":c(e);break;default:console.log("Sticky placed on body: unhandled for now")}}function d(){function e(){for(var e=0;e<n.length;e++)n[e].on(o,f,event)}function t(){for(var e=0;e<n.length;e++)n[e].off(o)}var n=a(),o=i();return{start:e,destroy:t,getModuleName:r,shouldDetach:function(){return!1}}}{var p=e("../util");e("./toolNameClass")}n.getStickyClassName=o,n.getStickyModuleName=r,n.main=d},{"../util":35,"./toolNameClass":34}],33:[function(e,t,n){function o(e,t){if(this.element=e,this.options=a.extend(!0,{},o.options,t),this.onSelection=this.options.onSelection,"undefined"!=typeof this.element.ownerDocument&&null!==this.element.ownerDocument){var n=this;this.document=this.element.ownerDocument,a(this.document.body).on("mouseup."+s,function(e){n._checkForEndSelection(e)})}else console.warn("You created an instance of the TextSelector on an element that doesn't have an ownerDocument. This won't work! Please ensure the element is added to the DOM before the plugin is configured:",this.element)}var r=e("xpath-range").Range,i=e("../util"),a=i.$,s="annotator-textselector";o.prototype.destroy=function(){this.document&&a(this.document.body).off("."+s)},o.prototype.captureDocumentSelection=function(){var e,t,n=[],o=[],a=i.getGlobal().getSelection();if(a.isCollapsed)return[];for(e=0;e<a.rangeCount;e++){var s=a.getRangeAt(e),u=new r.BrowserRange(s),l=u.normalize().limit(this.element);null===l?o.push(s):n.push(l)}for(a.removeAllRanges(),e=0,t=o.length;t>e;e++)a.addRange(o[e]);for(e=0,t=n.length;t>e;e++){var c=n[e],f=this.document.createRange();f.setStartBefore(c.start),f.setEndAfter(c.end),a.addRange(f)}return n},o.prototype._checkForEndSelection=function(e){var t=this,n=function(){"function"==typeof t.onSelection&&t.onSelection([],e)},o=this.captureDocumentSelection();if(0===o.length)return void n();for(var r=0,i=o.length;i>r;r++){var s=o[r].commonAncestor;a(s).hasClass(this.options.annotation_class)&&(s=a(s).parents("[class!="+this.options.annotation_class+"]")[0])}"function"==typeof this.onSelection&&this.onSelection(o,e)},o.options={onSelection:null,annotation_class:"annotator-hl"},n.TextSelector=o},{"../util":35,"xpath-range":18}],34:[function(e,t,n){n.CLASS={"default":"annotator-hl",highlight:"annotator-hl",strikethrough:"annotator-st",underline:"annotator-ul",sticky:"annotator-sticky"},n.TOOLNAME={"default":"Highlight",highlight:"Highlight",strikethrough:"StrikeOut",underline:"Underline",sticky:"Text"},n.CSSOPTION={"default":"background",highlight:"background",strikethrough:"text-decoration-color",underline:"text-decoration-color"}},{}],35:[function(e,t,n){function o(e){return String(e).replace(/[&<>"'\/]/g,function(e){return u[e]})}function r(){return new Function("return this")()}function i(e){var t=r().document.body,n={top:0,left:0};return"static"!==a(t).css("position")&&(n=a(t).offset()),{top:e.pageY-n.top,left:e.pageX-n.left}}var a=e("jquery"),s=e("es6-promise").Promise,u={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"},l=function(){var e=r();if("function"==typeof e.Gettext){var t=new e.Gettext({domain:"annotator"});return function(e){return t.gettext(e)}}return function(e){return e}}();n.$=a,n.Promise=s,n.gettext=l,n.escapeHtml=o,n.getGlobal=r,n.mousePosition=i},{"es6-promise":4,jquery:16}]},{},[1])(1)});