static.oracle.com Open in urlscan Pro
2a02:26f0:6c00:29b::366  Public Scan

URL: https://static.oracle.com/cdn/jet/v8.1.0/default/js/min/oj3rdpartybundle.js
Submission Tags: falconsandbox
Submission: On October 29 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

/**
 * @license
 * Copyright (c) 2014, 2020, Oracle and/or its affiliates.
 * The Universal Permissive License (UPL), Version 1.0
 * @ignore
 */
/*!
 * Knockout JavaScript library v3.5.0
 * (c) The Knockout.js team - http://knockoutjs.com/
 * License: MIT (http://www.opensource.org/licenses/mit-license.php)
 */
!function(e){var t,n=this||(0,eval)("this"),i=n.document,r=n.navigator,o=n.jQuery,s=n.JSON;o||"undefined"==typeof jQuery||(o=jQuery),t=function(t,a){var l=void 0!==t?t:{};l.exportSymbol=function(e,t){for(var n=e.split("."),i=l,r=0;r<n.length-1;r++)i=i[n[r]];i[n[n.length-1]]=t},l.exportProperty=function(e,t,n){e[t]=n},l.version="3.5.0",l.exportSymbol("version",l.version),l.options={deferUpdates:!1,useOnlyNativeEvents:!1,foreachHidesDestroyed:!1},l.utils=function(){var t=Object.prototype.hasOwnProperty;function a(e,n){for(var i in e)t.call(e,i)&&n(i,e[i])}function u(e,n){if(n)for(var i in n)t.call(n,i)&&(e[i]=n[i]);return e}function c(e,t){return e.__proto__=t,e}var d={__proto__:[]}instanceof Array,p={},f={};p[r&&/Firefox\/2/i.test(r.userAgent)?"KeyboardEvent":"UIEvents"]=["keyup","keydown","keypress"],p.MouseEvents=["click","dblclick","mousedown","mouseup","mousemove","mouseover","mouseout","mouseenter","mouseleave"],a(p,function(e,t){if(t.length)for(var n=0,i=t.length;n<i;n++)f[t[n]]=e});var h,m={propertychange:!0},g=i&&function(){for(var t=3,n=i.createElement("div"),r=n.getElementsByTagName("i");n.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e",r[0];);return t>4?t:e}(),v=6===g,y=7===g,b=/\S+/g;function w(e,t,n,i){var r=e[t].match(b)||[];l.utils.arrayForEach(n.match(b),function(e){l.utils.addOrRemoveItem(r,e,i)}),e[t]=r.join(" ")}return{fieldsIncludedWithJsonPost:["authenticity_token",/^__RequestVerificationToken(_.*)?$/],arrayForEach:function(e,t,n){for(var i=0,r=e.length;i<r;i++)t.call(n,e[i],i,e)},arrayIndexOf:"function"==typeof Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t)}:function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},arrayFirst:function(t,n,i){for(var r=0,o=t.length;r<o;r++)if(n.call(i,t[r],r,t))return t[r];return e},arrayRemoveItem:function(e,t){var n=l.utils.arrayIndexOf(e,t);n>0?e.splice(n,1):0===n&&e.shift()},arrayGetDistinctValues:function(e){var t=[];return e&&l.utils.arrayForEach(e,function(e){l.utils.arrayIndexOf(t,e)<0&&t.push(e)}),t},arrayMap:function(e,t,n){var i=[];if(e)for(var r=0,o=e.length;r<o;r++)i.push(t.call(n,e[r],r));return i},arrayFilter:function(e,t,n){var i=[];if(e)for(var r=0,o=e.length;r<o;r++)t.call(n,e[r],r)&&i.push(e[r]);return i},arrayPushAll:function(e,t){if(t instanceof Array)e.push.apply(e,t);else for(var n=0,i=t.length;n<i;n++)e.push(t[n]);return e},addOrRemoveItem:function(e,t,n){var i=l.utils.arrayIndexOf(l.utils.peekObservable(e),t);i<0?n&&e.push(t):n||e.splice(i,1)},canSetPrototype:d,extend:u,setPrototypeOf:c,setPrototypeOfOrExtend:d?c:u,objectForEach:a,objectMap:function(e,n,i){if(!e)return e;var r={};for(var o in e)t.call(e,o)&&(r[o]=n.call(i,e[o],o,e));return r},emptyDomNode:function(e){for(;e.firstChild;)l.removeNode(e.firstChild)},moveCleanedNodesToContainerElement:function(e){for(var t=l.utils.makeArray(e),n=(t[0]&&t[0].ownerDocument||i).createElement("div"),r=0,o=t.length;r<o;r++)n.appendChild(l.cleanNode(t[r]));return n},cloneNodes:function(e,t){for(var n=0,i=e.length,r=[];n<i;n++){var o=e[n].cloneNode(!0);r.push(t?l.cleanNode(o):o)}return r},setDomNodeChildren:function(e,t){if(l.utils.emptyDomNode(e),t)for(var n=0,i=t.length;n<i;n++)e.appendChild(t[n])},replaceDomNodes:function(e,t){var n=e.nodeType?[e]:e;if(n.length>0){for(var i=n[0],r=i.parentNode,o=0,s=t.length;o<s;o++)r.insertBefore(t[o],i);for(o=0,s=n.length;o<s;o++)l.removeNode(n[o])}},fixUpContinuousNodeArray:function(e,t){if(e.length){for(t=8===t.nodeType&&t.parentNode||t;e.length&&e[0].parentNode!==t;)e.splice(0,1);for(;e.length>1&&e[e.length-1].parentNode!==t;)e.length--;if(e.length>1){var n=e[0],i=e[e.length-1];for(e.length=0;n!==i;)e.push(n),n=n.nextSibling;e.push(i)}}return e},setOptionNodeSelectionState:function(e,t){g<7?e.setAttribute("selected",t):e.selected=t},stringTrim:function(t){return null===t||t===e?"":t.trim?t.trim():t.toString().replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},stringStartsWith:function(e,t){return e=e||"",!(t.length>e.length)&&e.substring(0,t.length)===t},domNodeIsContainedBy:function(e,t){if(e===t)return!0;if(11===e.nodeType)return!1;if(t.contains)return t.contains(1!==e.nodeType?e.parentNode:e);if(t.compareDocumentPosition)return 16==(16&t.compareDocumentPosition(e));for(;e&&e!=t;)e=e.parentNode;return!!e},domNodeIsAttachedToDocument:function(e){return l.utils.domNodeIsContainedBy(e,e.ownerDocument.documentElement)},anyDomNodeIsAttachedToDocument:function(e){return!!l.utils.arrayFirst(e,l.utils.domNodeIsAttachedToDocument)},tagNameLower:function(e){return e&&e.tagName&&e.tagName.toLowerCase()},catchFunctionErrors:function(e){return l.onError?function(){try{return e.apply(this,arguments)}catch(e){throw l.onError&&l.onError(e),e}}:e},setTimeout:function(e,t){return setTimeout(l.utils.catchFunctionErrors(e),t)},deferError:function(e){setTimeout(function(){throw l.onError&&l.onError(e),e},0)},registerEventHandler:function(e,t,n){var i=l.utils.catchFunctionErrors(n),r=m[t];if(l.options.useOnlyNativeEvents||r||!o)if(r||"function"!=typeof e.addEventListener){if(void 0===e.attachEvent)throw new Error("Browser doesn't support addEventListener or attachEvent");var s=function(t){i.call(e,t)},a="on"+t;e.attachEvent(a,s),l.utils.domNodeDisposal.addDisposeCallback(e,function(){e.detachEvent(a,s)})}else e.addEventListener(t,i,!1);else h||(h="function"==typeof o(e).on?"on":"bind"),o(e)[h](t,i)},triggerEvent:function(e,t){if(!e||!e.nodeType)throw new Error("element must be a DOM node when calling triggerEvent");var r=function(e,t){if("input"!==l.utils.tagNameLower(e)||!e.type)return!1;if("click"!=t.toLowerCase())return!1;var n=e.type;return"checkbox"==n||"radio"==n}(e,t);if(l.options.useOnlyNativeEvents||!o||r)if("function"==typeof i.createEvent){if("function"!=typeof e.dispatchEvent)throw new Error("The supplied element doesn't support dispatchEvent");var s=f[t]||"HTMLEvents",a=i.createEvent(s);a.initEvent(t,!0,!0,n,0,0,0,0,0,!1,!1,!1,!1,0,e),e.dispatchEvent(a)}else if(r&&e.click)e.click();else{if(void 0===e.fireEvent)throw new Error("Browser doesn't support triggering events");e.fireEvent("on"+t)}else o(e).trigger(t)},unwrapObservable:function(e){return l.isObservable(e)?e():e},peekObservable:function(e){return l.isObservable(e)?e.peek():e},toggleDomNodeCssClass:function(e,t,n){var i;t&&("object"==typeof e.classList?(i=e.classList[n?"add":"remove"],l.utils.arrayForEach(t.match(b),function(t){i.call(e.classList,t)})):"string"==typeof e.className.baseVal?w(e.className,"baseVal",t,n):w(e,"className",t,n))},setTextContent:function(t,n){var i=l.utils.unwrapObservable(n);null!==i&&i!==e||(i="");var r=l.virtualElements.firstChild(t);!r||3!=r.nodeType||l.virtualElements.nextSibling(r)?l.virtualElements.setDomNodeChildren(t,[t.ownerDocument.createTextNode(i)]):r.data=i,l.utils.forceRefresh(t)},setElementName:function(e,t){if(e.name=t,g<=7)try{var n=e.name.replace(/[&<>'"]/g,function(e){return"&#"+e.charCodeAt(0)+";"});e.mergeAttributes(i.createElement("<input name='"+n+"'/>"),!1)}catch(e){}},forceRefresh:function(e){if(g>=9){var t=1==e.nodeType?e:e.parentNode;t.style&&(t.style.zoom=t.style.zoom)}},ensureSelectElementIsRenderedCorrectly:function(e){if(g){var t=e.style.width;e.style.width=0,e.style.width=t}},range:function(e,t){e=l.utils.unwrapObservable(e),t=l.utils.unwrapObservable(t);for(var n=[],i=e;i<=t;i++)n.push(i);return n},makeArray:function(e){for(var t=[],n=0,i=e.length;n<i;n++)t.push(e[n]);return t},createSymbolOrString:function(e){return e},isIe6:v,isIe7:y,ieVersion:g,getFormFields:function(e,t){for(var n=l.utils.makeArray(e.getElementsByTagName("input")).concat(l.utils.makeArray(e.getElementsByTagName("textarea"))),i="string"==typeof t?function(e){return e.name===t}:function(e){return t.test(e.name)},r=[],o=n.length-1;o>=0;o--)i(n[o])&&r.push(n[o]);return r},parseJson:function(e){return"string"==typeof e&&(e=l.utils.stringTrim(e))?s&&s.parse?s.parse(e):new Function("return "+e)():null},stringifyJson:function(e,t,n){if(!s||!s.stringify)throw new Error("Cannot find JSON.stringify(). Some browsers (e.g., IE < 8) don't support it natively, but you can overcome this by adding a script reference to json2.js, downloadable from http://www.json.org/json2.js");return s.stringify(l.utils.unwrapObservable(e),t,n)},postJson:function(e,t,n){var r=(n=n||{}).params||{},o=n.includeFields||this.fieldsIncludedWithJsonPost,s=e;if("object"==typeof e&&"form"===l.utils.tagNameLower(e)){var u=e;s=u.action;for(var c=o.length-1;c>=0;c--)for(var d=l.utils.getFormFields(u,o[c]),p=d.length-1;p>=0;p--)r[d[p].name]=d[p].value}t=l.utils.unwrapObservable(t);var f=i.createElement("form");for(var h in f.style.display="none",f.action=s,f.method="post",t){var m=i.createElement("input");m.type="hidden",m.name=h,m.value=l.utils.stringifyJson(l.utils.unwrapObservable(t[h])),f.appendChild(m)}a(r,function(e,t){var n=i.createElement("input");n.type="hidden",n.name=e,n.value=t,f.appendChild(n)}),i.body.appendChild(f),n.submitter?n.submitter(f):f.submit(),setTimeout(function(){f.parentNode.removeChild(f)},0)}}}(),l.exportSymbol("utils",l.utils),l.exportSymbol("utils.arrayForEach",l.utils.arrayForEach),l.exportSymbol("utils.arrayFirst",l.utils.arrayFirst),l.exportSymbol("utils.arrayFilter",l.utils.arrayFilter),l.exportSymbol("utils.arrayGetDistinctValues",l.utils.arrayGetDistinctValues),l.exportSymbol("utils.arrayIndexOf",l.utils.arrayIndexOf),l.exportSymbol("utils.arrayMap",l.utils.arrayMap),l.exportSymbol("utils.arrayPushAll",l.utils.arrayPushAll),l.exportSymbol("utils.arrayRemoveItem",l.utils.arrayRemoveItem),l.exportSymbol("utils.cloneNodes",l.utils.cloneNodes),l.exportSymbol("utils.createSymbolOrString",l.utils.createSymbolOrString),l.exportSymbol("utils.extend",l.utils.extend),l.exportSymbol("utils.fieldsIncludedWithJsonPost",l.utils.fieldsIncludedWithJsonPost),l.exportSymbol("utils.getFormFields",l.utils.getFormFields),l.exportSymbol("utils.objectMap",l.utils.objectMap),l.exportSymbol("utils.peekObservable",l.utils.peekObservable),l.exportSymbol("utils.postJson",l.utils.postJson),l.exportSymbol("utils.parseJson",l.utils.parseJson),l.exportSymbol("utils.registerEventHandler",l.utils.registerEventHandler),l.exportSymbol("utils.stringifyJson",l.utils.stringifyJson),l.exportSymbol("utils.range",l.utils.range),l.exportSymbol("utils.toggleDomNodeCssClass",l.utils.toggleDomNodeCssClass),l.exportSymbol("utils.triggerEvent",l.utils.triggerEvent),l.exportSymbol("utils.unwrapObservable",l.utils.unwrapObservable),l.exportSymbol("utils.objectForEach",l.utils.objectForEach),l.exportSymbol("utils.addOrRemoveItem",l.utils.addOrRemoveItem),l.exportSymbol("utils.setTextContent",l.utils.setTextContent),l.exportSymbol("unwrap",l.utils.unwrapObservable),Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if(1===arguments.length)return function(){return t.apply(e,arguments)};var n=Array.prototype.slice.call(arguments,1);return function(){var i=n.slice(0);return i.push.apply(i,arguments),t.apply(e,i)}}),l.utils.domData=new function(){var t,n,i=0,r="__ko__"+(new Date).getTime(),o={};return l.utils.ieVersion?(t=function(t,n){var s=t[r];if(!s||"null"===s||!o[s]){if(!n)return e;s=t[r]="ko"+i++,o[s]={}}return o[s]},n=function(e){var t=e[r];return!!t&&(delete o[t],e[r]=null,!0)}):(t=function(e,t){var n=e[r];return!n&&t&&(n=e[r]={}),n},n=function(e){return!!e[r]&&(delete e[r],!0)}),{get:function(e,n){var i=t(e,!1);return i&&i[n]},set:function(n,i,r){var o=t(n,r!==e);o&&(o[i]=r)},getOrSet:function(e,n,i){var r=t(e,!0);return r[n]||(r[n]=i)},clear:n,nextKey:function(){return i+++r}}},l.exportSymbol("utils.domData",l.utils.domData),l.exportSymbol("utils.domData.clear",l.utils.domData.clear),l.utils.domNodeDisposal=new function(){var t=l.utils.domData.nextKey(),n={1:!0,8:!0,9:!0},i={1:!0,9:!0};function r(n,i){var r=l.utils.domData.get(n,t);return r===e&&i&&(r=[],l.utils.domData.set(n,t,r)),r}function s(e){var t=r(e,!1);if(t){t=t.slice(0);for(var n=0;n<t.length;n++)t[n](e)}l.utils.domData.clear(e),l.utils.domNodeDisposal.cleanExternalData(e),i[e.nodeType]&&a(e.childNodes,!0)}function a(e,t){for(var n,i=[],r=0;r<e.length;r++)if((!t||8===e[r].nodeType)&&(s(i[i.length]=n=e[r]),e[r]!==n))for(;r--&&-1==l.utils.arrayIndexOf(i,e[r]););}return{addDisposeCallback:function(e,t){if("function"!=typeof t)throw new Error("Callback must be a function");r(e,!0).push(t)},removeDisposeCallback:function(n,i){var o=r(n,!1);o&&(l.utils.arrayRemoveItem(o,i),0==o.length&&function(n){l.utils.domData.set(n,t,e)}(n))},cleanNode:function(e){return n[e.nodeType]&&(s(e),i[e.nodeType]&&a(e.getElementsByTagName("*"))),e},removeNode:function(e){l.cleanNode(e),e.parentNode&&e.parentNode.removeChild(e)},cleanExternalData:function(e){o&&"function"==typeof o.cleanData&&o.cleanData([e])}}},l.cleanNode=l.utils.domNodeDisposal.cleanNode,l.removeNode=l.utils.domNodeDisposal.removeNode,l.exportSymbol("cleanNode",l.cleanNode),l.exportSymbol("removeNode",l.removeNode),l.exportSymbol("utils.domNodeDisposal",l.utils.domNodeDisposal),l.exportSymbol("utils.domNodeDisposal.addDisposeCallback",l.utils.domNodeDisposal.addDisposeCallback),l.exportSymbol("utils.domNodeDisposal.removeDisposeCallback",l.utils.domNodeDisposal.removeDisposeCallback),function(){var t=[0,"",""],r=[1,"<table>","</table>"],s=[3,"<table><tbody><tr>","</tr></tbody></table>"],a=[1,"<select multiple='multiple'>","</select>"],u={thead:r,tbody:r,tfoot:r,tr:[2,"<table><tbody>","</tbody></table>"],td:s,th:s,option:a,optgroup:a},c=l.utils.ieVersion<=8;function d(e,r){r||(r=i);var o=r.parentWindow||r.defaultView||n,s=l.utils.stringTrim(e).toLowerCase(),a=r.createElement("div"),d=function(e){var n=e.match(/^(?:<!--.*?-->\s*?)*?<([a-z]+)[\s>]/);return n&&u[n[1]]||t}(s),p=d[0],f="ignored<div>"+d[1]+e+d[2]+"</div>";for("function"==typeof o.innerShiv?a.appendChild(o.innerShiv(f)):(c&&r.body.appendChild(a),a.innerHTML=f,c&&a.parentNode.removeChild(a));p--;)a=a.lastChild;return l.utils.makeArray(a.lastChild.childNodes)}l.utils.parseHtmlFragment=function(e,t){return o?function(e,t){if(o.parseHTML)return o.parseHTML(e,t)||[];var n=o.clean([e],t);if(n&&n[0]){for(var i=n[0];i.parentNode&&11!==i.parentNode.nodeType;)i=i.parentNode;i.parentNode&&i.parentNode.removeChild(i)}return n}(e,t):d(e,t)},l.utils.parseHtmlForTemplateNodes=function(e,t){var n=l.utils.parseHtmlFragment(e,t);return n.length&&n[0].parentElement||l.utils.moveCleanedNodesToContainerElement(n)},l.utils.setHtml=function(t,n){if(l.utils.emptyDomNode(t),null!==(n=l.utils.unwrapObservable(n))&&n!==e)if("string"!=typeof n&&(n=n.toString()),o)o(t).html(n);else for(var i=l.utils.parseHtmlFragment(n,t.ownerDocument),r=0;r<i.length;r++)t.appendChild(i[r])}}(),l.exportSymbol("utils.parseHtmlFragment",l.utils.parseHtmlFragment),l.exportSymbol("utils.setHtml",l.utils.setHtml),l.memoization=function(){var t={};function n(){return(4294967296*(1+Math.random())|0).toString(16).substring(1)}return{memoize:function(e){if("function"!=typeof e)throw new Error("You can only pass a function to ko.memoization.memoize()");var i=n()+n();return t[i]=e,"\x3c!--[ko_memo:"+i+"]--\x3e"},unmemoize:function(n,i){var r=t[n];if(r===e)throw new Error("Couldn't find any memo with ID "+n+". Perhaps it's already been unmemoized.");try{return r.apply(null,i||[]),!0}finally{delete t[n]}},unmemoizeDomNodeAndDescendants:function(e,t){var n=[];!function e(t,n){if(t)if(8==t.nodeType){var i=l.memoization.parseMemoText(t.nodeValue);null!=i&&n.push({domNode:t,memoId:i})}else if(1==t.nodeType)for(var r=0,o=t.childNodes,s=o.length;r<s;r++)e(o[r],n)}(e,n);for(var i=0,r=n.length;i<r;i++){var o=n[i].domNode,s=[o];t&&l.utils.arrayPushAll(s,t),l.memoization.unmemoize(n[i].memoId,s),o.nodeValue="",o.parentNode&&o.parentNode.removeChild(o)}},parseMemoText:function(e){var t=e.match(/^\[ko_memo\:(.*?)\]$/);return t?t[1]:null}}}(),l.exportSymbol("memoization",l.memoization),l.exportSymbol("memoization.memoize",l.memoization.memoize),l.exportSymbol("memoization.unmemoize",l.memoization.unmemoize),l.exportSymbol("memoization.parseMemoText",l.memoization.parseMemoText),l.exportSymbol("memoization.unmemoizeDomNodeAndDescendants",l.memoization.unmemoizeDomNodeAndDescendants),l.tasks=function(){var e,t,r,o=[],s=0,a=1,u=0;function c(){if(s)for(var e,t=s,n=0;u<s;)if(e=o[u++]){if(u>t){if(++n>=5e3){u=s,l.utils.deferError(Error("'Too much recursion' after processing "+n+" task groups."));break}t=s}try{e()}catch(e){l.utils.deferError(e)}}}function d(){c(),u=s=o.length=0}return n.MutationObserver?(
// From https://github.com/petkaantonov/bluebird * Copyright (c) 2014 Petka Antonov * License: MIT
t=d,r=i.createElement("div"),new MutationObserver(t).observe(r,{attributes:!0}),e=function(){r.classList.toggle("foo")}):
// From https://github.com/YuzuJS/setImmediate * Copyright (c) 2012 Barnesandnoble.com, llc, Donavon West, and Domenic Denicola * License: MIT
e=i&&"onreadystatechange"in i.createElement("script")?function(e){var t=i.createElement("script");t.onreadystatechange=function(){t.onreadystatechange=null,i.documentElement.removeChild(t),t=null,e()},i.documentElement.appendChild(t)}:function(e){setTimeout(e,0)},{scheduler:e,schedule:function(e){return s||l.tasks.scheduler(d),o[s++]=e,a++},cancel:function(e){var t=e-(a-s);t>=u&&t<s&&(o[t]=null)},resetForTesting:function(){var e=s-u;return u=s=o.length=0,e},runEarly:c}}(),l.exportSymbol("tasks",l.tasks),l.exportSymbol("tasks.schedule",l.tasks.schedule),l.exportSymbol("tasks.runEarly",l.tasks.runEarly),l.extenders={throttle:function(e,t){e.throttleEvaluation=t;var n=null;return l.dependentObservable({read:e,write:function(i){clearTimeout(n),n=l.utils.setTimeout(function(){e(i)},t)}})},rateLimit:function(e,t){var n,i,r;"number"==typeof t?n=t:(n=t.timeout,i=t.method),e._deferUpdates=!1,r="function"==typeof i?i:"notifyWhenChangesStop"==i?p:d,e.limit(function(e){return r(e,n,t)})},deferred:function(t,n){if(!0!==n)throw new Error("The 'deferred' extender only accepts the value 'true', because it is not supported to turn deferral off once enabled.");t._deferUpdates||(t._deferUpdates=!0,t.limit(function(n){var i,r=!1;return function(){if(!r){l.tasks.cancel(i),i=l.tasks.schedule(n);try{r=!0,t.notifySubscribers(e,"dirty")}finally{r=!1}}}}))},notify:function(e,t){e.equalityComparer="always"==t?null:c}};var u={undefined:1,boolean:1,number:1,string:1};function c(e,t){return!!(null===e||typeof e in u)&&e===t}function d(t,n){var i;return function(){i||(i=l.utils.setTimeout(function(){i=e,t()},n))}}function p(e,t){var n;return function(){clearTimeout(n),n=l.utils.setTimeout(e,t)}}l.exportSymbol("extenders",l.extenders),l.subscription=function(e,t,n){this._target=e,this._callback=t,this._disposeCallback=n,this._isDisposed=!1,this._node=null,this._domNodeDisposalCallback=null,l.exportProperty(this,"dispose",this.dispose),l.exportProperty(this,"disposeWhenNodeIsRemoved",this.disposeWhenNodeIsRemoved)},l.subscription.prototype.dispose=function(){this._isDisposed||(this._domNodeDisposalCallback&&l.utils.domNodeDisposal.removeDisposeCallback(this._node,this._domNodeDisposalCallback),this._isDisposed=!0,this._disposeCallback(),this._target=this._callback=this._disposeCallback=this._node=this._domNodeDisposalCallback=null)},l.subscription.prototype.disposeWhenNodeIsRemoved=function(e){this._node=e,l.utils.domNodeDisposal.addDisposeCallback(e,this._domNodeDisposalCallback=this.dispose.bind(this))},l.subscribable=function(){l.utils.setPrototypeOfOrExtend(this,m),m.init(this)};var f="change";function h(e,t){t&&t!==f?"beforeChange"===t?this._limitBeforeChange(e):this._origNotifySubscribers(e,t):this._limitChange(e)}var m={init:function(e){e._subscriptions={change:[]},e._versionNumber=1},subscribe:function(e,t,n){var i=this;n=n||f;var r=t?e.bind(t):e,o=new l.subscription(i,r,function(){l.utils.arrayRemoveItem(i._subscriptions[n],o),i.afterSubscriptionRemove&&i.afterSubscriptionRemove(n)});return i.beforeSubscriptionAdd&&i.beforeSubscriptionAdd(n),i._subscriptions[n]||(i._subscriptions[n]=[]),i._subscriptions[n].push(o),o},notifySubscribers:function(e,t){if((t=t||f)===f&&this.updateVersion(),this.hasSubscriptionsForEvent(t)){var n=t===f&&this._changeSubscriptions||this._subscriptions[t].slice(0);try{l.dependencyDetection.begin();for(var i,r=0;i=n[r];++r)i._isDisposed||i._callback(e)}finally{l.dependencyDetection.end()}}},getVersion:function(){return this._versionNumber},hasChanged:function(e){return this.getVersion()!==e},updateVersion:function(){++this._versionNumber},limit:function(e){var t,n,i,r,o,s=this,a=l.isObservable(s);s._origNotifySubscribers||(s._origNotifySubscribers=s.notifySubscribers,s.notifySubscribers=h);var u=e(function(){s._notificationIsPending=!1,a&&r===s&&(r=s._evalIfChanged?s._evalIfChanged():s());var e=n||o&&s.isDifferent(i,r);o=n=t=!1,e&&s._origNotifySubscribers(i=r)});s._limitChange=function(e,n){n&&s._notificationIsPending||(o=!n),s._changeSubscriptions=s._subscriptions[f].slice(0),s._notificationIsPending=t=!0,r=e,u()},s._limitBeforeChange=function(e){t||(i=e,s._origNotifySubscribers(e,"beforeChange"))},s._recordUpdate=function(){o=!0},s._notifyNextChangeIfValueIsDifferent=function(){s.isDifferent(i,s.peek(!0))&&(n=!0)}},hasSubscriptionsForEvent:function(e){return this._subscriptions[e]&&this._subscriptions[e].length},getSubscriptionsCount:function(e){if(e)return this._subscriptions[e]&&this._subscriptions[e].length||0;var t=0;return l.utils.objectForEach(this._subscriptions,function(e,n){"dirty"!==e&&(t+=n.length)}),t},isDifferent:function(e,t){return!this.equalityComparer||!this.equalityComparer(e,t)},toString:function(){return"[object Object]"},extend:function(e){var t=this;return e&&l.utils.objectForEach(e,function(e,n){var i=l.extenders[e];"function"==typeof i&&(t=i(t,n)||t)}),t}};l.exportProperty(m,"init",m.init),l.exportProperty(m,"subscribe",m.subscribe),l.exportProperty(m,"extend",m.extend),l.exportProperty(m,"getSubscriptionsCount",m.getSubscriptionsCount),l.utils.canSetPrototype&&l.utils.setPrototypeOf(m,Function.prototype),l.subscribable.fn=m,l.isSubscribable=function(e){return null!=e&&"function"==typeof e.subscribe&&"function"==typeof e.notifySubscribers},l.exportSymbol("subscribable",l.subscribable),l.exportSymbol("isSubscribable",l.isSubscribable),l.computedContext=l.dependencyDetection=function(){var e,t=[],n=0;function i(n){t.push(e),e=n}function r(){e=t.pop()}return{begin:i,end:r,registerDependency:function(t){if(e){if(!l.isSubscribable(t))throw new Error("Only subscribable things can act as dependencies");e.callback.call(e.callbackTarget,t,t._id||(t._id=++n))}},ignore:function(e,t,n){try{return i(),e.apply(t,n||[])}finally{r()}},getDependenciesCount:function(){if(e)return e.computed.getDependenciesCount()},getDependencies:function(){if(e)return e.computed.getDependencies()},isInitial:function(){if(e)return e.isInitial},computed:function(){if(e)return e.computed}}}(),l.exportSymbol("computedContext",l.computedContext),l.exportSymbol("computedContext.getDependenciesCount",l.computedContext.getDependenciesCount),l.exportSymbol("computedContext.getDependencies",l.computedContext.getDependencies),l.exportSymbol("computedContext.isInitial",l.computedContext.isInitial),l.exportSymbol("computedContext.registerDependency",l.computedContext.registerDependency),l.exportSymbol("ignoreDependencies",l.ignoreDependencies=l.dependencyDetection.ignore);var g=l.utils.createSymbolOrString("_latestValue");l.observable=function(e){function t(){return arguments.length>0?(t.isDifferent(t[g],arguments[0])&&(t.valueWillMutate(),t[g]=arguments[0],t.valueHasMutated()),this):(l.dependencyDetection.registerDependency(t),t[g])}return t[g]=e,l.utils.canSetPrototype||l.utils.extend(t,l.subscribable.fn),l.subscribable.fn.init(t),l.utils.setPrototypeOfOrExtend(t,v),l.options.deferUpdates&&l.extenders.deferred(t,!0),t};var v={equalityComparer:c,peek:function(){return this[g]},valueHasMutated:function(){this.notifySubscribers(this[g],"spectate"),this.notifySubscribers(this[g])},valueWillMutate:function(){this.notifySubscribers(this[g],"beforeChange")}};l.utils.canSetPrototype&&l.utils.setPrototypeOf(v,l.subscribable.fn);var y=l.observable.protoProperty="__ko_proto__";v[y]=l.observable,l.isObservable=function(e){var t="function"==typeof e&&e[y];if(t&&t!==v[y]&&t!==l.computed.fn[y])throw Error("Invalid object that looks like an observable; possibly from another Knockout instance");return!!t},l.isWriteableObservable=function(e){return"function"==typeof e&&(e[y]===v[y]||e[y]===l.computed.fn[y]&&e.hasWriteFunction)},l.exportSymbol("observable",l.observable),l.exportSymbol("isObservable",l.isObservable),l.exportSymbol("isWriteableObservable",l.isWriteableObservable),l.exportSymbol("isWritableObservable",l.isWriteableObservable),l.exportSymbol("observable.fn",v),l.exportProperty(v,"peek",v.peek),l.exportProperty(v,"valueHasMutated",v.valueHasMutated),l.exportProperty(v,"valueWillMutate",v.valueWillMutate),l.observableArray=function(e){if("object"!=typeof(e=e||[])||!("length"in e))throw new Error("The argument passed when initializing an observable array must be an array, or null, or undefined.");var t=l.observable(e);return l.utils.setPrototypeOfOrExtend(t,l.observableArray.fn),t.extend({trackArrayChanges:!0})},l.observableArray.fn={remove:function(e){for(var t=this.peek(),n=[],i="function"!=typeof e||l.isObservable(e)?function(t){return t===e}:e,r=0;r<t.length;r++){var o=t[r];if(i(o)){if(0===n.length&&this.valueWillMutate(),t[r]!==o)throw Error("Array modified during remove; cannot remove item");n.push(o),t.splice(r,1),r--}}return n.length&&this.valueHasMutated(),n},removeAll:function(t){if(t===e){var n=this.peek(),i=n.slice(0);return this.valueWillMutate(),n.splice(0,n.length),this.valueHasMutated(),i}return t?this.remove(function(e){return l.utils.arrayIndexOf(t,e)>=0}):[]},destroy:function(e){var t=this.peek(),n="function"!=typeof e||l.isObservable(e)?function(t){return t===e}:e;this.valueWillMutate();for(var i=t.length-1;i>=0;i--){var r=t[i];n(r)&&(r._destroy=!0)}this.valueHasMutated()},destroyAll:function(t){return t===e?this.destroy(function(){return!0}):t?this.destroy(function(e){return l.utils.arrayIndexOf(t,e)>=0}):[]},indexOf:function(e){var t=this();return l.utils.arrayIndexOf(t,e)},replace:function(e,t){var n=this.indexOf(e);n>=0&&(this.valueWillMutate(),this.peek()[n]=t,this.valueHasMutated())},sorted:function(e){var t=this().slice(0);return e?t.sort(e):t.sort()},reversed:function(){return this().slice(0).reverse()}},l.utils.canSetPrototype&&l.utils.setPrototypeOf(l.observableArray.fn,l.observable.fn),l.utils.arrayForEach(["pop","push","reverse","shift","sort","splice","unshift"],function(e){l.observableArray.fn[e]=function(){var t=this.peek();this.valueWillMutate(),this.cacheDiffForKnownOperation(t,e,arguments);var n=t[e].apply(t,arguments);return this.valueHasMutated(),n===t?this:n}}),l.utils.arrayForEach(["slice"],function(e){l.observableArray.fn[e]=function(){var t=this();return t[e].apply(t,arguments)}}),l.isObservableArray=function(e){return l.isObservable(e)&&"function"==typeof e.remove&&"function"==typeof e.push},l.exportSymbol("observableArray",l.observableArray),l.exportSymbol("isObservableArray",l.isObservableArray);var b="arrayChange";l.extenders.trackArrayChanges=function(t,n){if(t.compareArrayOptions={},n&&"object"==typeof n&&l.utils.extend(t.compareArrayOptions,n),t.compareArrayOptions.sparse=!0,!t.cacheDiffForKnownOperation){var i,r,o,s=!1,a=null,u=0,c=t.beforeSubscriptionAdd,d=t.afterSubscriptionRemove;t.beforeSubscriptionAdd=function(e){c&&c.call(t,e),e===b&&function(){function e(){if(u){var e=[].concat(t.peek()||[]);if(t.hasSubscriptionsForEvent(b))var n=function(e,n){return(!a||u>1)&&(a=l.utils.compareArrays(e,n,t.compareArrayOptions)),a}(r,e);r=e,a=null,u=0,n&&n.length&&t.notifySubscribers(n,b)}}s?e():(s=!0,o=t.notifySubscribers,t.notifySubscribers=function(e,t){return t&&t!==f||++u,o.apply(this,arguments)},r=[].concat(t.peek()||[]),a=null,i=t.subscribe(e))}()},t.afterSubscriptionRemove=function(n){d&&d.call(t,n),n!==b||t.hasSubscriptionsForEvent(b)||(o&&(t.notifySubscribers=o,o=e),i&&i.dispose(),i=null,s=!1,r=e)},t.cacheDiffForKnownOperation=function(e,t,n){if(s&&!u){var i=[],r=e.length,o=n.length,c=0;switch(t){case"push":c=r;case"unshift":for(var d=0;d<o;d++)b("added",n[d],c+d);break;case"pop":c=r-1;case"shift":r&&b("deleted",e[c],c);break;case"splice":for(var p=Math.min(Math.max(0,n[0]<0?r+n[0]:n[0]),r),f=1===o?r:Math.min(p+(n[1]||0),r),h=p+o-2,m=Math.max(f,h),g=[],v=[],y=(d=p,2);d<m;++d,++y)d<f&&v.push(b("deleted",e[d],d)),d<h&&g.push(b("added",n[y],d));l.utils.findMovesInArrayComparison(v,g);break;default:return}a=i}function b(e,t,n){return i[i.length]={status:e,value:t,index:n}}}}};var w=l.utils.createSymbolOrString("_state");function x(e,t){null!==t&&t.dispose&&t.dispose()}function E(e,t){var n=this.computedObservable,i=n[w];i.isDisposed||(this.disposalCount&&this.disposalCandidates[t]?(n.addDependencyTracking(t,e,this.disposalCandidates[t]),this.disposalCandidates[t]=null,--this.disposalCount):i.dependencyTracking[t]||n.addDependencyTracking(t,e,i.isSleeping?{_target:e}:n.subscribeToDependency(e)),e._notificationIsPending&&e._notifyNextChangeIfValueIsDifferent())}l.computed=l.dependentObservable=function(t,n,i){if("object"==typeof t?i=t:(i=i||{},t&&(i.read=t)),"function"!=typeof i.read)throw Error("Pass a function that returns the value of the ko.computed");var r=i.write,o={latestValue:e,isStale:!0,isDirty:!0,isBeingEvaluated:!1,suppressDisposalUntilDisposeWhenReturnsFalse:!1,isDisposed:!1,pure:!1,isSleeping:!1,readFunction:i.read,evaluatorFunctionTarget:n||i.owner,disposeWhenNodeIsRemoved:i.disposeWhenNodeIsRemoved||i.disposeWhenNodeIsRemoved||null,disposeWhen:i.disposeWhen||i.disposeWhen,domNodeDisposalCallback:null,dependencyTracking:{},dependenciesCount:0,evaluationTimeoutInstance:null};function s(){if(arguments.length>0){if("function"!=typeof r)throw new Error("Cannot write a value to a ko.computed unless you specify a 'write' option. If you wish to read the current value, don't pass any parameters.");return r.apply(o.evaluatorFunctionTarget,arguments),this}return o.isDisposed||l.dependencyDetection.registerDependency(s),(o.isDirty||o.isSleeping&&s.haveDependenciesChanged())&&s.evaluateImmediate(),o.latestValue}return s[w]=o,s.hasWriteFunction="function"==typeof r,l.utils.canSetPrototype||l.utils.extend(s,l.subscribable.fn),l.subscribable.fn.init(s),l.utils.setPrototypeOfOrExtend(s,C),i.pure?(o.pure=!0,o.isSleeping=!0,l.utils.extend(s,T)):i.deferEvaluation&&l.utils.extend(s,_),l.options.deferUpdates&&l.extenders.deferred(s,!0),s._options=i,o.disposeWhenNodeIsRemoved&&(o.suppressDisposalUntilDisposeWhenReturnsFalse=!0,o.disposeWhenNodeIsRemoved.nodeType||(o.disposeWhenNodeIsRemoved=null)),o.isSleeping||i.deferEvaluation||s.evaluateImmediate(),o.disposeWhenNodeIsRemoved&&s.isActive()&&l.utils.domNodeDisposal.addDisposeCallback(o.disposeWhenNodeIsRemoved,o.domNodeDisposalCallback=function(){s.dispose()}),s};var C={equalityComparer:c,getDependenciesCount:function(){return this[w].dependenciesCount},getDependencies:function(){var e=this[w].dependencyTracking,t=[];return l.utils.objectForEach(e,function(e,n){t[n._order]=n._target}),t},hasAncestorDependency:function(e){if(!this[w].dependenciesCount)return!1;var t=this.getDependencies();return-1!==l.utils.arrayIndexOf(t,e)||!!l.utils.arrayFirst(t,function(t){return t.hasAncestorDependency&&t.hasAncestorDependency(e)})},addDependencyTracking:function(e,t,n){if(this[w].pure&&t===this)throw Error("A 'pure' computed must not be called recursively");this[w].dependencyTracking[e]=n,n._order=this[w].dependenciesCount++,n._version=t.getVersion()},haveDependenciesChanged:function(){var e,t,n=this[w].dependencyTracking;for(e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&(t=n[e],this._evalDelayed&&t._target._notificationIsPending||t._target.hasChanged(t._version)))return!0},markDirty:function(){this._evalDelayed&&!this[w].isBeingEvaluated&&this._evalDelayed(!1)},isActive:function(){var e=this[w];return e.isDirty||e.dependenciesCount>0},respondToChange:function(){this._notificationIsPending?this[w].isDirty&&(this[w].isStale=!0):this.evaluatePossiblyAsync()},subscribeToDependency:function(e){if(e._deferUpdates){var t=e.subscribe(this.markDirty,this,"dirty"),n=e.subscribe(this.respondToChange,this);return{_target:e,dispose:function(){t.dispose(),n.dispose()}}}return e.subscribe(this.evaluatePossiblyAsync,this)},evaluatePossiblyAsync:function(){var e=this,t=e.throttleEvaluation;t&&t>=0?(clearTimeout(this[w].evaluationTimeoutInstance),this[w].evaluationTimeoutInstance=l.utils.setTimeout(function(){e.evaluateImmediate(!0)},t)):e._evalDelayed?e._evalDelayed(!0):e.evaluateImmediate(!0)},evaluateImmediate:function(e){var t=this[w],n=t.disposeWhen,i=!1;if(!t.isBeingEvaluated&&!t.isDisposed){if(t.disposeWhenNodeIsRemoved&&!l.utils.domNodeIsAttachedToDocument(t.disposeWhenNodeIsRemoved)||n&&n()){if(!t.suppressDisposalUntilDisposeWhenReturnsFalse)return void this.dispose()}else t.suppressDisposalUntilDisposeWhenReturnsFalse=!1;t.isBeingEvaluated=!0;try{i=this.evaluateImmediate_CallReadWithDependencyDetection(e)}finally{t.isBeingEvaluated=!1}return i}},evaluateImmediate_CallReadWithDependencyDetection:function(t){var n=this[w],i=!1,r=n.pure?e:!n.dependenciesCount,o={computedObservable:this,disposalCandidates:n.dependencyTracking,disposalCount:n.dependenciesCount};l.dependencyDetection.begin({callbackTarget:o,callback:E,computed:this,isInitial:r}),n.dependencyTracking={},n.dependenciesCount=0;var s=this.evaluateImmediate_CallReadThenEndDependencyDetection(n,o);return n.dependenciesCount?i=this.isDifferent(n.latestValue,s):(this.dispose(),i=!0),i&&(n.isSleeping?this.updateVersion():this.notifySubscribers(n.latestValue,"beforeChange"),n.latestValue=s,this._latestValue=s,this.notifySubscribers(n.latestValue,"spectate"),!n.isSleeping&&t&&this.notifySubscribers(n.latestValue),this._recordUpdate&&this._recordUpdate()),r&&this.notifySubscribers(n.latestValue,"awake"),i},evaluateImmediate_CallReadThenEndDependencyDetection:function(e,t){try{var n=e.readFunction;return e.evaluatorFunctionTarget?n.call(e.evaluatorFunctionTarget):n()}finally{l.dependencyDetection.end(),t.disposalCount&&!e.isSleeping&&l.utils.objectForEach(t.disposalCandidates,x),e.isStale=e.isDirty=!1}},peek:function(e){var t=this[w];return(t.isDirty&&(e||!t.dependenciesCount)||t.isSleeping&&this.haveDependenciesChanged())&&this.evaluateImmediate(),t.latestValue},limit:function(e){l.subscribable.fn.limit.call(this,e),this._evalIfChanged=function(){return this[w].isSleeping||(this[w].isStale?this.evaluateImmediate():this[w].isDirty=!1),this[w].latestValue},this._evalDelayed=function(e){this._limitBeforeChange(this[w].latestValue),this[w].isDirty=!0,e&&(this[w].isStale=!0),this._limitChange(this,!e)}},dispose:function(){var t=this[w];!t.isSleeping&&t.dependencyTracking&&l.utils.objectForEach(t.dependencyTracking,function(e,t){t.dispose&&t.dispose()}),t.disposeWhenNodeIsRemoved&&t.domNodeDisposalCallback&&l.utils.domNodeDisposal.removeDisposeCallback(t.disposeWhenNodeIsRemoved,t.domNodeDisposalCallback),t.dependencyTracking=e,t.dependenciesCount=0,t.isDisposed=!0,t.isStale=!1,t.isDirty=!1,t.isSleeping=!1,t.disposeWhenNodeIsRemoved=e,t.disposeWhen=e,t.readFunction=e,this.hasWriteFunction||(t.evaluatorFunctionTarget=e)}},T={beforeSubscriptionAdd:function(e){var t=this,n=t[w];if(!n.isDisposed&&n.isSleeping&&"change"==e){if(n.isSleeping=!1,n.isStale||t.haveDependenciesChanged())n.dependencyTracking=null,n.dependenciesCount=0,t.evaluateImmediate()&&t.updateVersion();else{var i=[];l.utils.objectForEach(n.dependencyTracking,function(e,t){i[t._order]=e}),l.utils.arrayForEach(i,function(e,i){var r=n.dependencyTracking[e],o=t.subscribeToDependency(r._target);o._order=i,o._version=r._version,n.dependencyTracking[e]=o}),t.haveDependenciesChanged()&&t.evaluateImmediate()&&t.updateVersion()}n.isDisposed||t.notifySubscribers(n.latestValue,"awake")}},afterSubscriptionRemove:function(t){var n=this[w];n.isDisposed||"change"!=t||this.hasSubscriptionsForEvent("change")||(l.utils.objectForEach(n.dependencyTracking,function(e,t){t.dispose&&(n.dependencyTracking[e]={_target:t._target,_order:t._order,_version:t._version},t.dispose())}),n.isSleeping=!0,this.notifySubscribers(e,"asleep"))},getVersion:function(){var e=this[w];return e.isSleeping&&(e.isStale||this.haveDependenciesChanged())&&this.evaluateImmediate(),l.subscribable.fn.getVersion.call(this)}},_={beforeSubscriptionAdd:function(e){"change"!=e&&"beforeChange"!=e||this.peek()}};l.utils.canSetPrototype&&l.utils.setPrototypeOf(C,l.subscribable.fn);var S,D=l.observable.protoProperty;C[D]=l.computed,l.isComputed=function(e){return"function"==typeof e&&e[D]===C[D]},l.isPureComputed=function(e){return l.isComputed(e)&&e[w]&&e[w].pure},l.exportSymbol("computed",l.computed),l.exportSymbol("dependentObservable",l.computed),l.exportSymbol("isComputed",l.isComputed),l.exportSymbol("isPureComputed",l.isPureComputed),l.exportSymbol("computed.fn",C),l.exportProperty(C,"peek",C.peek),l.exportProperty(C,"dispose",C.dispose),l.exportProperty(C,"isActive",C.isActive),l.exportProperty(C,"getDependenciesCount",C.getDependenciesCount),l.exportProperty(C,"getDependencies",C.getDependencies),l.pureComputed=function(e,t){return"function"==typeof e?l.computed(e,t,{pure:!0}):((e=l.utils.extend({},e)).pure=!0,l.computed(e,t))},l.exportSymbol("pureComputed",l.pureComputed),function(){function t(){this.keys=[],this.values=[]}l.toJS=function(n){if(0==arguments.length)throw new Error("When calling ko.toJS, pass the object you want to convert.");return function n(i,r,o){o=o||new t;var s=!("object"!=typeof(i=r(i))||null===i||i===e||i instanceof RegExp||i instanceof Date||i instanceof String||i instanceof Number||i instanceof Boolean);if(!s)return i;var a=i instanceof Array?[]:{};return o.save(i,a),function(e,t){if(e instanceof Array){for(var n=0;n<e.length;n++)t(n);"function"==typeof e.toJSON&&t("toJSON")}else for(var i in e)t(i)}(i,function(t){var s=r(i[t]);switch(typeof s){case"boolean":case"number":case"string":case"function":a[t]=s;break;case"object":case"undefined":var l=o.get(s);a[t]=l!==e?l:n(s,r,o)}}),a}(n,function(e){for(var t=0;l.isObservable(e)&&t<10;t++)e=e();return e})},l.toJSON=function(e,t,n){var i=l.toJS(e);return l.utils.stringifyJson(i,t,n)},t.prototype={constructor:t,save:function(e,t){var n=l.utils.arrayIndexOf(this.keys,e);n>=0?this.values[n]=t:(this.keys.push(e),this.values.push(t))},get:function(t){var n=l.utils.arrayIndexOf(this.keys,t);return n>=0?this.values[n]:e}}}(),l.exportSymbol("toJS",l.toJS),l.exportSymbol("toJSON",l.toJSON),l.when=function(e,t,n){function i(t){var i=l.pureComputed(e,n).extend({notify:"always"}),r=i.subscribe(function(e){e&&(r.dispose(),t(e))});return i.notifySubscribers(i.peek()),r}return"function"!=typeof Promise||t?i(t.bind(n)):new Promise(i)},l.exportSymbol("when",l.when),l.selectExtensions={readValue:function(t){switch(l.utils.tagNameLower(t)){case"option":return!0===t.__ko__hasDomDataOptionValue__?l.utils.domData.get(t,l.bindingHandlers.options.optionValueDomDataKey):l.utils.ieVersion<=7?t.getAttributeNode("value")&&t.getAttributeNode("value").specified?t.value:t.text:t.value;case"select":return t.selectedIndex>=0?l.selectExtensions.readValue(t.options[t.selectedIndex]):e;default:return t.value}},writeValue:function(t,n,i){switch(l.utils.tagNameLower(t)){case"option":"string"==typeof n?(l.utils.domData.set(t,l.bindingHandlers.options.optionValueDomDataKey,e),"__ko__hasDomDataOptionValue__"in t&&delete t.__ko__hasDomDataOptionValue__,t.value=n):(l.utils.domData.set(t,l.bindingHandlers.options.optionValueDomDataKey,n),t.__ko__hasDomDataOptionValue__=!0,t.value="number"==typeof n?n:"");break;case"select":""!==n&&null!==n||(n=e);for(var r,o=-1,s=0,a=t.options.length;s<a;++s)if((r=l.selectExtensions.readValue(t.options[s]))==n||""===r&&n===e){o=s;break}(i||o>=0||n===e&&t.size>1)&&(t.selectedIndex=o,6===l.utils.ieVersion&&l.utils.setTimeout(function(){t.selectedIndex=o},0));break;default:null!==n&&n!==e||(n=""),t.value=n}}},l.exportSymbol("selectExtensions",l.selectExtensions),l.exportSymbol("selectExtensions.readValue",l.selectExtensions.readValue),l.exportSymbol("selectExtensions.writeValue",l.selectExtensions.writeValue),l.expressionRewriting=function(){var e=["true","false","null","undefined"],t=/^(?:[$_a-z][$\w]*|(.+)(\.\s*[$_a-z][$\w]*|\[.+\]))$/i,n=RegExp(['"(?:\\\\.|[^"])*"',"'(?:\\\\.|[^'])*'","`(?:\\\\.|[^`])*`","/\\*(?:[^*]|\\*+[^*/])*\\*+/","//.*\n","/(?:\\\\.|[^/])+/w*","[^\\s:,/][^,\"'`{}()/:[\\]]*[^\\s,\"'`{}()/:[\\]]","[^\\s]"].join("|"),"g"),i=/[\])"'A-Za-z0-9_$]+$/,r={in:1,return:1,typeof:1};function o(e){var t=l.utils.stringTrim(e);123===t.charCodeAt(0)&&(t=t.slice(1,-1));var o,s=[],a=(t+="\n,").match(n),u=[],c=0;if(a.length>1){for(var d,p=0;d=a[p];++p){var f=d.charCodeAt(0);if(44===f){if(c<=0){s.push(o&&u.length?{key:o,value:u.join("")}:{unknown:o||u.join("")}),o=c=0,u=[];continue}}else if(58===f){if(!c&&!o&&1===u.length){o=u.pop();continue}}else{if(47===f&&d.length>1&&(47===d.charCodeAt(1)||42===d.charCodeAt(1)))continue;if(47===f&&p&&d.length>1){var h=a[p-1].match(i);h&&!r[h[0]]&&(a=(t=t.substr(t.indexOf(d)+1)).match(n),p=-1,d="/")}else 40===f||123===f||91===f?++c:41===f||125===f||93===f?--c:o||u.length||34!==f&&39!==f||(d=d.slice(1,-1))}u.push(d)}if(c>0)throw Error("Unbalanced parentheses, braces, or brackets")}return s}var s={};return{bindingRewriteValidators:[],twoWayBindings:s,parseObjectLiteral:o,preProcessBindings:function(n,i){function r(n,i){var o,p;if(!d){if((p=l.getBindingHandler(n))&&p.preprocess&&!(i=p.preprocess(i,n,r)))return;if(s[n]&&(o=function(n){if(l.utils.arrayIndexOf(e,n)>=0)return!1;var i=n.match(t);return null!==i&&(i[1]?"Object("+i[1]+")"+i[2]:n)}(i))){var f="string"==typeof s[n]?s[n]:n;u.push("'"+f+"':function(_z){"+o+"=_z}")}}c&&(i="function(){return "+i+" }"),a.push("'"+n+"':"+i)}var a=[],u=[],c=(i=i||{}).valueAccessors,d=i.bindingParams,p="string"==typeof n?o(n):n;return l.utils.arrayForEach(p,function(e){r(e.key||e.unknown,e.value)}),u.length&&r("_ko_property_writers","{"+u.join(",")+" }"),a.join(",")},keyValueArrayContainsKey:function(e,t){for(var n=0;n<e.length;n++)if(e[n].key==t)return!0;return!1},writeValueToProperty:function(e,t,n,i,r){if(e&&l.isObservable(e))!l.isWriteableObservable(e)||r&&e.peek()===i||e(i);else{var o=t.get("_ko_property_writers");o&&o[n]&&o[n](i)}}}}(),l.exportSymbol("expressionRewriting",l.expressionRewriting),l.exportSymbol("expressionRewriting.bindingRewriteValidators",l.expressionRewriting.bindingRewriteValidators),l.exportSymbol("expressionRewriting.parseObjectLiteral",l.expressionRewriting.parseObjectLiteral),l.exportSymbol("expressionRewriting.preProcessBindings",l.expressionRewriting.preProcessBindings),l.exportSymbol("expressionRewriting._twoWayBindings",l.expressionRewriting.twoWayBindings),l.exportSymbol("jsonExpressionRewriting",l.expressionRewriting),l.exportSymbol("jsonExpressionRewriting.insertPropertyAccessorsIntoJson",l.expressionRewriting.preProcessBindings),function(){var e=i&&"\x3c!--test--\x3e"===i.createComment("test").text,t=e?/^<!--\s*ko(?:\s+([\s\S]+))?\s*-->$/:/^\s*ko(?:\s+([\s\S]+))?\s*$/,n=e?/^<!--\s*\/ko\s*-->$/:/^\s*\/ko\s*$/,r={ul:!0,ol:!0};function o(n){return 8==n.nodeType&&t.test(e?n.text:n.nodeValue)}function s(t){return 8==t.nodeType&&n.test(e?t.text:t.nodeValue)}var a="__ko_matchedEndComment__";function u(e,t){for(var n=e,i=1,r=[];n=n.nextSibling;){if(s(n)&&(l.utils.domData.set(n,a,!0),0==--i))return r;r.push(n),o(n)&&i++}if(!t)throw new Error("Cannot find closing comment tag to match: "+e.nodeValue);return null}function c(e,t){var n=u(e,t);return n?n.length>0?n[n.length-1].nextSibling:e.nextSibling:null}function d(e){var t=e.firstChild,n=null;if(t)do{if(n)n.push(t);else if(o(t)){var i=c(t,!0);i?t=i:n=[t]}else s(t)&&(n=[t])}while(t=t.nextSibling);return n}l.virtualElements={allowedBindings:{},childNodes:function(e){return o(e)?u(e):e.childNodes},emptyNode:function(e){if(o(e))for(var t=l.virtualElements.childNodes(e),n=0,i=t.length;n<i;n++)l.removeNode(t[n]);else l.utils.emptyDomNode(e)},setDomNodeChildren:function(e,t){if(o(e)){l.virtualElements.emptyNode(e);for(var n=e.nextSibling,i=0,r=t.length;i<r;i++)n.parentNode.insertBefore(t[i],n)}else l.utils.setDomNodeChildren(e,t)},prepend:function(e,t){o(e)?e.parentNode.insertBefore(t,e.nextSibling):e.firstChild?e.insertBefore(t,e.firstChild):e.appendChild(t)},insertAfter:function(e,t,n){n?o(e)?e.parentNode.insertBefore(t,n.nextSibling):n.nextSibling?e.insertBefore(t,n.nextSibling):e.appendChild(t):l.virtualElements.prepend(e,t)},firstChild:function(e){if(o(e))return!e.nextSibling||s(e.nextSibling)?null:e.nextSibling;if(e.firstChild&&s(e.firstChild))throw new Error("Found invalid end comment, as the first child of "+e);return e.firstChild},nextSibling:function(e){if(o(e)&&(e=c(e)),e.nextSibling&&s(e.nextSibling)){if(function(e){return s(e)&&!l.utils.domData.get(e,a)}(e.nextSibling))throw Error("Found end comment without a matching opening comment, as child of "+e);return null}return e.nextSibling},hasBindingValue:o,virtualNodeBindingValue:function(n){var i=(e?n.text:n.nodeValue).match(t);return i?i[1]:null},normaliseVirtualElementDomStructure:function(e){if(r[l.utils.tagNameLower(e)]){var t=e.firstChild;if(t)do{if(1===t.nodeType){var n=d(t);if(n)for(var i=t.nextSibling,o=0;o<n.length;o++)i?e.insertBefore(n[o],i):e.appendChild(n[o])}}while(t=t.nextSibling)}}}}(),l.exportSymbol("virtualElements",l.virtualElements),l.exportSymbol("virtualElements.allowedBindings",l.virtualElements.allowedBindings),l.exportSymbol("virtualElements.emptyNode",l.virtualElements.emptyNode),l.exportSymbol("virtualElements.insertAfter",l.virtualElements.insertAfter),l.exportSymbol("virtualElements.prepend",l.virtualElements.prepend),l.exportSymbol("virtualElements.setDomNodeChildren",l.virtualElements.setDomNodeChildren),l.bindingProvider=function(){this.bindingCache={}},l.utils.extend(l.bindingProvider.prototype,{nodeHasBindings:function(e){switch(e.nodeType){case 1:return null!=e.getAttribute("data-bind")||l.components.getComponentNameForNode(e);case 8:return l.virtualElements.hasBindingValue(e);default:return!1}},getBindings:function(e,t){var n=this.getBindingsString(e,t),i=n?this.parseBindingsString(n,t,e):null;return l.components.addBindingsForCustomElement(i,e,t,!1)},getBindingAccessors:function(e,t){var n=this.getBindingsString(e,t),i=n?this.parseBindingsString(n,t,e,{valueAccessors:!0}):null;return l.components.addBindingsForCustomElement(i,e,t,!0)},getBindingsString:function(e,t){switch(e.nodeType){case 1:return e.getAttribute("data-bind");case 8:return l.virtualElements.virtualNodeBindingValue(e);default:return null}},parseBindingsString:function(e,t,n,i){try{return function(e,t,n){var i=e+(n&&n.valueAccessors||"");return t[i]||(t[i]=function(e,t){var n=l.expressionRewriting.preProcessBindings(e,t);return new Function("$context","$element","with($context){with($data||{}){return{"+n+"}}}")}(e,n))}(e,this.bindingCache,i)(t,n)}catch(t){throw t.message="Unable to parse bindings.\nBindings value: "+e+"\nMessage: "+t.message,t}}}),l.bindingProvider.instance=new l.bindingProvider,l.exportSymbol("bindingProvider",l.bindingProvider),function(){var t=l.utils.createSymbolOrString("_subscribable"),r=l.utils.createSymbolOrString("_ancestorBindingInfo"),s=l.utils.createSymbolOrString("_dataDependency");l.bindingHandlers={};var a={script:!0,textarea:!0,template:!0};l.getBindingHandler=function(e){return l.bindingHandlers[e]};var u={};l.bindingContext=function(n,i,o,a,c){function d(){var e=g?m():m,n=l.utils.unwrapObservable(e);return i?(l.utils.extend(f,i),r in i&&(f[r]=i[r])):(f.$parents=[],f.$root=n,f.ko=l),f[t]=p,h?n=f.$data:(f.$rawData=e,f.$data=n),o&&(f[o]=n),a&&a(f,i,n),i&&i[t]&&!l.computedContext.computed().hasAncestorDependency(i[t])&&i[t](),v&&(f[s]=v),f.$data}var p,f=this,h=n===u,m=h?e:n,g="function"==typeof m&&!l.isObservable(m),v=c&&c.dataDependency;c&&c.exportDependencies?d():((p=l.pureComputed(d)).peek(),p.isActive()?p.equalityComparer=null:f[t]=e)},l.bindingContext.prototype.createChildContext=function(e,t,n,i){if(!i&&t&&"object"==typeof t&&(t=(i=t).as,n=i.extend),t&&i&&i.noChildContext){var r="function"==typeof e&&!l.isObservable(e);return new l.bindingContext(u,this,null,function(i){n&&n(i),i[t]=r?e():e},i)}return new l.bindingContext(e,this,t,function(e,t){e.$parentContext=t,e.$parent=t.$data,e.$parents=(t.$parents||[]).slice(0),e.$parents.unshift(e.$parent),n&&n(e)},i)},l.bindingContext.prototype.extend=function(e,t){return new l.bindingContext(u,this,null,function(t,n){l.utils.extend(t,"function"==typeof e?e(t):e)},t)};var c=l.utils.domData.nextKey();function d(e){var t=l.utils.domData.get(e,c),n=t&&t.asyncContext;n&&(t.asyncContext=null,n.notifyAncestor())}function p(e,t,n){this.node=e,this.bindingInfo=t,this.asyncDescendants=[],this.childrenComplete=!1,t.asyncContext||l.utils.domNodeDisposal.addDisposeCallback(e,d),n&&n.asyncContext&&(n.asyncContext.asyncDescendants.push(e),this.ancestorBindingInfo=n)}function f(e){return function(){return e}}function h(e){return e()}function m(e){return l.utils.objectMap(l.dependencyDetection.ignore(e),function(t,n){return function(){return e()[n]}})}function g(e,t){return m(this.getBindings.bind(this,e,t))}function v(e,t){var n=l.virtualElements.firstChild(t);if(n){var i,r=l.bindingProvider.instance,o=r.preprocessNode;if(o){for(;i=n;)n=l.virtualElements.nextSibling(i),o.call(r,i);n=l.virtualElements.firstChild(t)}for(;i=n;)n=l.virtualElements.nextSibling(i),y(e,i)}l.bindingEvent.notify(t,l.bindingEvent.childrenComplete)}function y(e,t){var n=e,i=1===t.nodeType;i&&l.virtualElements.normaliseVirtualElementDomStructure(t),(i||l.bindingProvider.instance.nodeHasBindings(t))&&(n=b(t,null,e).bindingContextForDescendants),n&&!a[l.utils.tagNameLower(t)]&&v(n,t)}function b(n,i,r){var o,a=l.utils.domData.getOrSet(n,c,{}),u=a.alreadyBound;if(!i){if(u)throw Error("You cannot apply bindings multiple times to the same element.");a.alreadyBound=!0}if(u||(a.context=r),i&&"function"!=typeof i)o=i;else{var d=l.bindingProvider.instance,p=d.getBindingAccessors||g,f=l.dependentObservable(function(){return(o=i?i(r,n):p.call(d,n,r))&&(r[t]&&r[t](),r[s]&&r[s]()),o},null,{disposeWhenNodeIsRemoved:n});o&&f.isActive()||(f=null)}var m,v=r;if(o){var y=f?function(e){return function(){return h(f()[e])}}:function(e){return o[e]};function b(){return l.utils.objectMap(f?f():o,h)}b.get=function(e){return o[e]&&h(y(e))},b.has=function(e){return e in o},l.bindingEvent.childrenComplete in o&&l.bindingEvent.subscribe(n,l.bindingEvent.childrenComplete,function(){var e=h(o[l.bindingEvent.childrenComplete]);if(e){var t=l.virtualElements.childNodes(n);t.length&&e(t,l.dataFor(t[0]))}}),l.bindingEvent.descendantsComplete in o&&(v=l.bindingEvent.startPossiblyAsyncContentBinding(n,r),l.bindingEvent.subscribe(n,l.bindingEvent.descendantsComplete,function(){var e=h(o[l.bindingEvent.descendantsComplete]);e&&l.virtualElements.firstChild(n)&&e(n)}));var w=function(e){var t=[],n={},i=[];return l.utils.objectForEach(e,function r(o){if(!n[o]){var s=l.getBindingHandler(o);s&&(s.after&&(i.push(o),l.utils.arrayForEach(s.after,function(t){if(e[t]){if(-1!==l.utils.arrayIndexOf(i,t))throw Error("Cannot combine the following bindings, because they have a cyclic dependency: "+i.join(", "));r(t)}}),i.length--),t.push({key:o,handler:s})),n[o]=!0}}),t}(o);l.utils.arrayForEach(w,function(t){var i=t.handler.init,r=t.handler.update,s=t.key;8===n.nodeType&&function(e){if(!l.virtualElements.allowedBindings[e])throw new Error("The binding '"+e+"' cannot be used with virtual elements")}(s);try{"function"==typeof i&&l.dependencyDetection.ignore(function(){var t=i(n,y(s),b,v.$data,v);if(t&&t.controlsDescendantBindings){if(m!==e)throw new Error("Multiple bindings ("+m+" and "+s+") are trying to control descendant bindings of the same element. You cannot use these bindings together on the same element.");m=s}}),"function"==typeof r&&l.dependentObservable(function(){r(n,y(s),b,v.$data,v)},null,{disposeWhenNodeIsRemoved:n})}catch(e){throw e.message='Unable to process binding "'+s+": "+o[s]+'"\nMessage: '+e.message,e}})}var x=m===e;return{shouldBindDescendants:x,bindingContextForDescendants:x&&v}}function w(t,n){return t&&t instanceof l.bindingContext?t:new l.bindingContext(t,e,e,n)}p.prototype.notifyAncestor=function(){this.ancestorBindingInfo&&this.ancestorBindingInfo.asyncContext&&this.ancestorBindingInfo.asyncContext.descendantComplete(this.node)},p.prototype.descendantComplete=function(e){l.utils.arrayRemoveItem(this.asyncDescendants,e),!this.asyncDescendants.length&&this.childrenComplete&&this.completeChildren()},p.prototype.completeChildren=function(){this.childrenComplete=!0,this.bindingInfo.asyncContext&&!this.asyncDescendants.length&&(this.bindingInfo.asyncContext=null,l.utils.domNodeDisposal.removeDisposeCallback(this.node,d),l.bindingEvent.notify(this.node,l.bindingEvent.descendantsComplete),this.notifyAncestor())},l.bindingEvent={childrenComplete:"childrenComplete",descendantsComplete:"descendantsComplete",subscribe:function(e,t,n,i){var r=l.utils.domData.getOrSet(e,c,{});return r.eventSubscribable||(r.eventSubscribable=new l.subscribable),r.eventSubscribable.subscribe(n,i,t)},notify:function(t,n){var i=l.utils.domData.get(t,c);if(i&&(i.eventSubscribable&&i.eventSubscribable.notifySubscribers(t,n),n==l.bindingEvent.childrenComplete))if(i.asyncContext)i.asyncContext.completeChildren();else if(i.asyncContext===e&&i.eventSubscribable&&i.eventSubscribable.hasSubscriptionsForEvent(l.bindingEvent.descendantsComplete))throw new Error("descendantsComplete event not supported for bindings on this node")},startPossiblyAsyncContentBinding:function(e,t){var n=l.utils.domData.getOrSet(e,c,{});return n.asyncContext||(n.asyncContext=new p(e,n,t[r])),t[r]==n?t:t.extend(function(e){e[r]=n})}},l.storedBindingContextForNode=function(e){var t=l.utils.domData.get(e,c);return t&&t.context},l.applyBindingAccessorsToNode=function(e,t,n){return 1===e.nodeType&&l.virtualElements.normaliseVirtualElementDomStructure(e),b(e,t,w(n))},l.applyBindingsToNode=function(e,t,n){var i=w(n);return l.applyBindingAccessorsToNode(e,function(e,t,n){return"function"==typeof e?m(e.bind(null,t,n)):l.utils.objectMap(e,f)}(t,i,e),i)},l.applyBindingsToDescendants=function(e,t){1!==t.nodeType&&8!==t.nodeType||v(w(e),t)},l.applyBindings=function(e,t,r){if(!o&&n.jQuery&&(o=n.jQuery),arguments.length<2){if(!(t=i.body))throw Error("ko.applyBindings: could not find document.body; has the document been loaded?")}else if(!t||1!==t.nodeType&&8!==t.nodeType)throw Error("ko.applyBindings: first parameter should be your view model; second parameter should be a DOM node");y(w(e,r),t)},l.contextFor=function(t){return!t||1!==t.nodeType&&8!==t.nodeType?e:l.storedBindingContextForNode(t)},l.dataFor=function(t){var n=l.contextFor(t);return n?n.$data:e},l.exportSymbol("bindingHandlers",l.bindingHandlers),l.exportSymbol("bindingEvent",l.bindingEvent),l.exportSymbol("bindingEvent.subscribe",l.bindingEvent.subscribe),l.exportSymbol("bindingEvent.startPossiblyAsyncContentBinding",l.bindingEvent.startPossiblyAsyncContentBinding),l.exportSymbol("applyBindings",l.applyBindings),l.exportSymbol("applyBindingsToDescendants",l.applyBindingsToDescendants),l.exportSymbol("applyBindingAccessorsToNode",l.applyBindingAccessorsToNode),l.exportSymbol("applyBindingsToNode",l.applyBindingsToNode),l.exportSymbol("contextFor",l.contextFor),l.exportSymbol("dataFor",l.dataFor)}(),function(e){var t={},n={};function i(t,n){return Object.prototype.hasOwnProperty.call(t,n)?t[n]:e}function r(t,n,i,o){o||(o=l.components.loaders.slice(0));var s=o.shift();if(s){var a=s[t];if(a){var u=!1;if(a.apply(s,n.concat(function(e){u?i(null):null!==e?i(e):r(t,n,i,o)}))!==e&&(u=!0,!s.suppressLoaderExceptions))throw new Error("Component loaders must supply values by invoking the callback, not by returning values synchronously.")}else r(t,n,i,o)}else i(null)}l.components={get:function(e,o){var s=i(n,e);s?s.isSynchronousComponent?l.dependencyDetection.ignore(function(){o(s.definition)}):l.tasks.schedule(function(){o(s.definition)}):function(e,o){var s,a=i(t,e);a?a.subscribe(o):((a=t[e]=new l.subscribable).subscribe(o),function(e,t){r("getConfig",[e],function(n){n?r("loadComponent",[e,n],function(e){t(e,n)}):t(null,null)})}(e,function(i,r){var o=!(!r||!r.synchronous);n[e]={definition:i,isSynchronousComponent:o},delete t[e],s||o?a.notifySubscribers(i):l.tasks.schedule(function(){a.notifySubscribers(i)})}),s=!0)}(e,o)},clearCachedDefinition:function(e){delete n[e]},_getFirstResultFromLoaders:r},l.components.loaders=[],l.exportSymbol("components",l.components),l.exportSymbol("components.get",l.components.get),l.exportSymbol("components.clearCachedDefinition",l.components.clearCachedDefinition)}(),function(e){var t={};l.components.register=function(e,n){if(!n)throw new Error("Invalid configuration for "+e);if(l.components.isRegistered(e))throw new Error("Component "+e+" is already registered");t[e]=n},l.components.isRegistered=function(e){return Object.prototype.hasOwnProperty.call(t,e)},l.components.unregister=function(e){delete t[e],l.components.clearCachedDefinition(e)},l.components.defaultLoader={getConfig:function(e,n){n(l.components.isRegistered(e)?t[e]:null)},loadComponent:function(e,t,n){var i=c(e);u(i,t,function(t){!function(e,t,n,i){var o={},s=2,a=function(){0==--s&&i(o)},c=n.template,d=n.viewModel;c?u(t,c,function(t){l.components._getFirstResultFromLoaders("loadTemplate",[e,t],function(e){o.template=e,a()})}):a(),d?u(t,d,function(t){l.components._getFirstResultFromLoaders("loadViewModel",[e,t],function(e){o[r]=e,a()})}):a()}(e,i,t,n)})},loadTemplate:function(e,t,r){!function(e,t,r){if("string"==typeof t)r(l.utils.parseHtmlFragment(t));else if(t instanceof Array)r(t);else if(s(t))r(l.utils.makeArray(t.childNodes));else if(t.element){var a=t.element;if(c=a,n.HTMLElement?c instanceof HTMLElement:c&&c.tagName&&1===c.nodeType)r(o(a));else if("string"==typeof a){var u=i.getElementById(a);u?r(o(u)):e("Cannot find element with ID "+a)}else e("Unknown element type: "+a)}else e("Unknown template value: "+t);var c}(c(e),t,r)},loadViewModel:function(e,t,n){!function e(t,n,i){if("function"==typeof n)i(function(e){return new n(e)});else if("function"==typeof n[r])i(n[r]);else if("instance"in n){var o=n.instance;i(function(e,t){return o})}else"viewModel"in n?e(t,n.viewModel,i):t("Unknown viewModel value: "+n)}(c(e),t,n)}};var r="createViewModel";function o(e){switch(l.utils.tagNameLower(e)){case"script":return l.utils.parseHtmlFragment(e.text);case"textarea":return l.utils.parseHtmlFragment(e.value);case"template":if(s(e.content))return l.utils.cloneNodes(e.content.childNodes)}return l.utils.cloneNodes(e.childNodes)}function s(e){return n.DocumentFragment?e instanceof DocumentFragment:e&&11===e.nodeType}function u(e,t,i){"string"==typeof t.require?a||n.require?(a||n.require)([t.require],i):e("Uses require, but no AMD loader is present"):i(t)}function c(e){return function(t){throw new Error("Component '"+e+"': "+t)}}l.exportSymbol("components.register",l.components.register),l.exportSymbol("components.isRegistered",l.components.isRegistered),l.exportSymbol("components.unregister",l.components.unregister),l.exportSymbol("components.defaultLoader",l.components.defaultLoader),l.components.loaders.push(l.components.defaultLoader),l.components._allRegisteredComponents=t}(),function(e){l.components.getComponentNameForNode=function(e){var t=l.utils.tagNameLower(e);if(l.components.isRegistered(t)&&(-1!=t.indexOf("-")||""+e=="[object HTMLUnknownElement]"||l.utils.ieVersion<=8&&e.tagName===t))return t},l.components.addBindingsForCustomElement=function(e,t,i,r){if(1===t.nodeType){var o=l.components.getComponentNameForNode(t);if(o){if((e=e||{}).component)throw new Error('Cannot use the "component" binding on a custom element matching a component');var s={name:o,params:function(e,t){var i=e.getAttribute("params");if(i){var r=n.parseBindingsString(i,t,e,{valueAccessors:!0,bindingParams:!0}),o=l.utils.objectMap(r,function(t,n){return l.computed(t,null,{disposeWhenNodeIsRemoved:e})}),s=l.utils.objectMap(o,function(t,n){var i=t.peek();return t.isActive()?l.computed({read:function(){return l.utils.unwrapObservable(t())},write:l.isWriteableObservable(i)&&function(e){t()(e)},disposeWhenNodeIsRemoved:e}):i});return Object.prototype.hasOwnProperty.call(s,"$raw")||(s.$raw=o),s}return{$raw:{}}}(t,i)};e.component=r?function(){return s}:s}}return e};var t,n=new l.bindingProvider;l.utils.ieVersion<9&&(l.components.register=(t=l.components.register,function(e){return i.createElement(e),t.apply(this,arguments)}),i.createDocumentFragment=function(e){return function(){var t=e(),n=l.components._allRegisteredComponents;for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&t.createElement(i);return t}}(i.createDocumentFragment))}(),S=0,l.bindingHandlers.component={init:function(e,t,n,i,r){var o,s,a,u=function(){var e=o&&o.dispose;"function"==typeof e&&e.call(o),a&&a.dispose(),a=null,o=null,s=null},c=l.utils.makeArray(l.virtualElements.childNodes(e));return l.virtualElements.emptyNode(e),l.utils.domNodeDisposal.addDisposeCallback(e,u),l.computed(function(){var n,i,d=l.utils.unwrapObservable(t());if("string"==typeof d?n=d:(n=l.utils.unwrapObservable(d.name),i=l.utils.unwrapObservable(d.params)),!n)throw new Error("No component name specified");var p=l.bindingEvent.startPossiblyAsyncContentBinding(e,r),f=s=++S;l.components.get(n,function(t){if(s===f){if(u(),!t)throw new Error("Unknown component '"+n+"'");!function(e,t,n){var i=t.template;if(!i)throw new Error("Component '"+e+"' has no template");var r=l.utils.cloneNodes(i);l.virtualElements.setDomNodeChildren(n,r)}(n,t,e);var r=function(e,t,n){var i=e.createViewModel;return i?i.call(e,t,n):t}(t,i,{element:e,templateNodes:c}),d=p.createChildContext(r,{extend:function(e){e.$component=r,e.$componentTemplateNodes=c}});r&&r.koDescendantsComplete&&(a=l.bindingEvent.subscribe(e,l.bindingEvent.descendantsComplete,r.koDescendantsComplete,r)),o=r,l.applyBindingsToDescendants(d,e)}})},null,{disposeWhenNodeIsRemoved:e}),{controlsDescendantBindings:!0}}},l.virtualElements.allowedBindings.component=!0;var N={class:"className",for:"htmlFor"};l.bindingHandlers.attr={update:function(t,n,i){var r=l.utils.unwrapObservable(n())||{};l.utils.objectForEach(r,function(n,i){i=l.utils.unwrapObservable(i);var r=n.indexOf(":"),o="lookupNamespaceURI"in t&&r>0&&t.lookupNamespaceURI(n.substr(0,r)),s=!1===i||null===i||i===e;s?o?t.removeAttributeNS(o,n):t.removeAttribute(n):i=i.toString(),l.utils.ieVersion<=8&&n in N?(n=N[n],s?t.removeAttribute(n):t[n]=i):s||(o?t.setAttributeNS(o,n,i):t.setAttribute(n,i)),"name"===n&&l.utils.setElementName(t,s?"":i)})}},l.bindingHandlers.checked={after:["value","attr"],init:function(t,n,i){var r=l.pureComputed(function(){return i.has("checkedValue")?l.utils.unwrapObservable(i.get("checkedValue")):p?i.has("value")?l.utils.unwrapObservable(i.get("value")):t.value:void 0});function o(){var o=t.checked,u=r();if(!l.computedContext.isInitial()&&(o||!a&&!l.computedContext.getDependenciesCount())){var p=l.dependencyDetection.ignore(n);if(c){var h=d?p.peek():p,m=f;f=u,m!==u?o&&(l.utils.addOrRemoveItem(h,u,!0),l.utils.addOrRemoveItem(h,m,!1)):l.utils.addOrRemoveItem(h,u,o),d&&l.isWriteableObservable(p)&&p(h)}else s&&(u===e?u=o:o||(u=e)),l.expressionRewriting.writeValueToProperty(p,i,"checked",u,!0)}}var s="checkbox"==t.type,a="radio"==t.type;if(s||a){var u=n(),c=s&&l.utils.unwrapObservable(u)instanceof Array,d=!(c&&u.push&&u.splice),p=a||c,f=c?r():e;a&&!t.name&&l.bindingHandlers.uniqueName.init(t,function(){return!0}),l.computed(o,null,{disposeWhenNodeIsRemoved:t}),l.utils.registerEventHandler(t,"click",o),l.computed(function(){var i=l.utils.unwrapObservable(n()),o=r();c?(t.checked=l.utils.arrayIndexOf(i,o)>=0,f=o):t.checked=s&&o===e?!!i:r()===i},null,{disposeWhenNodeIsRemoved:t}),u=e}}},l.expressionRewriting.twoWayBindings.checked=!0,l.bindingHandlers.checkedValue={update:function(e,t){e.value=l.utils.unwrapObservable(t())}},l.bindingHandlers.class={update:function(e,t){var n=l.utils.stringTrim(l.utils.unwrapObservable(t()));l.utils.toggleDomNodeCssClass(e,e.__ko__cssValue,!1),e.__ko__cssValue=n,l.utils.toggleDomNodeCssClass(e,n,!0)}},l.bindingHandlers.css={update:function(e,t){var n=l.utils.unwrapObservable(t());null!==n&&"object"==typeof n?l.utils.objectForEach(n,function(t,n){n=l.utils.unwrapObservable(n),l.utils.toggleDomNodeCssClass(e,t,n)}):l.bindingHandlers.class.update(e,t)}},l.bindingHandlers.enable={update:function(e,t){var n=l.utils.unwrapObservable(t());n&&e.disabled?e.removeAttribute("disabled"):n||e.disabled||(e.disabled=!0)}},l.bindingHandlers.disable={update:function(e,t){l.bindingHandlers.enable.update(e,function(){return!l.utils.unwrapObservable(t())})}},l.bindingHandlers.event={init:function(e,t,n,i,r){var o=t()||{};l.utils.objectForEach(o,function(o){"string"==typeof o&&l.utils.registerEventHandler(e,o,function(e){var s,a=t()[o];if(a){try{var u=l.utils.makeArray(arguments);i=r.$data,u.unshift(i),s=a.apply(i,u)}finally{!0!==s&&(e.preventDefault?e.preventDefault():e.returnValue=!1)}!1!==n.get(o+"Bubble")||(e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation())}})})}},l.bindingHandlers.foreach={makeTemplateValueAccessor:function(e){return function(){var t=e(),n=l.utils.peekObservable(t);return n&&"number"!=typeof n.length?(l.utils.unwrapObservable(t),{foreach:n.data,as:n.as,noChildContext:n.noChildContext,includeDestroyed:n.includeDestroyed,afterAdd:n.afterAdd,beforeRemove:n.beforeRemove,afterRender:n.afterRender,beforeMove:n.beforeMove,afterMove:n.afterMove,templateEngine:l.nativeTemplateEngine.instance}):{foreach:t,templateEngine:l.nativeTemplateEngine.instance}}},init:function(e,t,n,i,r){return l.bindingHandlers.template.init(e,l.bindingHandlers.foreach.makeTemplateValueAccessor(t))},update:function(e,t,n,i,r){return l.bindingHandlers.template.update(e,l.bindingHandlers.foreach.makeTemplateValueAccessor(t),n,i,r)}},l.expressionRewriting.bindingRewriteValidators.foreach=!1,l.virtualElements.allowedBindings.foreach=!0,l.bindingHandlers.hasfocus={init:function(e,t,n){var i=function(i){e.__ko_hasfocusUpdating=!0;var r=e.ownerDocument;if("activeElement"in r){var o;try{o=r.activeElement}catch(e){o=r.body}i=o===e}var s=t();l.expressionRewriting.writeValueToProperty(s,n,"hasfocus",i,!0),e.__ko_hasfocusLastValue=i,e.__ko_hasfocusUpdating=!1},r=i.bind(null,!0),o=i.bind(null,!1);l.utils.registerEventHandler(e,"focus",r),l.utils.registerEventHandler(e,"focusin",r),l.utils.registerEventHandler(e,"blur",o),l.utils.registerEventHandler(e,"focusout",o),e.__ko_hasfocusLastValue=!1},update:function(e,t){var n=!!l.utils.unwrapObservable(t());e.__ko_hasfocusUpdating||e.__ko_hasfocusLastValue===n||(n?e.focus():e.blur(),!n&&e.__ko_hasfocusLastValue&&e.ownerDocument.body.focus(),l.dependencyDetection.ignore(l.utils.triggerEvent,null,[e,n?"focusin":"focusout"]))}},l.expressionRewriting.twoWayBindings.hasfocus=!0,l.bindingHandlers.hasFocus=l.bindingHandlers.hasfocus,l.expressionRewriting.twoWayBindings.hasFocus="hasfocus",l.bindingHandlers.html={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){l.utils.setHtml(e,t())}},function(){function e(e,t,n){l.bindingHandlers[e]={init:function(e,i,r,o,s){var a,u,c,d,p,f={};if(t){var h=r.get("as"),m=r.get("noChildContext");f={as:h,noChildContext:m,exportDependencies:p=!(h&&m)}}return c="render"==r.get("completeOn"),d=c||r.has(l.bindingEvent.descendantsComplete),l.computed(function(){var r,o=l.utils.unwrapObservable(i()),h=!n!=!o,m=!u;(p||h!==a)&&(d&&(s=l.bindingEvent.startPossiblyAsyncContentBinding(e,s)),h&&(t&&!p||(f.dataDependency=l.computedContext.computed()),r=t?s.createChildContext("function"==typeof o?o:i,f):l.computedContext.getDependenciesCount()?s.extend(null,f):s),m&&l.computedContext.getDependenciesCount()&&(u=l.utils.cloneNodes(l.virtualElements.childNodes(e),!0)),h?(m||l.virtualElements.setDomNodeChildren(e,l.utils.cloneNodes(u)),l.applyBindingsToDescendants(r,e)):(l.virtualElements.emptyNode(e),c||l.bindingEvent.notify(e,l.bindingEvent.childrenComplete)),a=h)},null,{disposeWhenNodeIsRemoved:e}),{controlsDescendantBindings:!0}}},l.expressionRewriting.bindingRewriteValidators[e]=!1,l.virtualElements.allowedBindings[e]=!0}e("if"),e("ifnot",!1,!0),e("with",!0)}(),l.bindingHandlers.let={init:function(e,t,n,i,r){var o=r.extend(t);return l.applyBindingsToDescendants(o,e),{controlsDescendantBindings:!0}}},l.virtualElements.allowedBindings.let=!0;var k,O={};l.bindingHandlers.options={init:function(e){if("select"!==l.utils.tagNameLower(e))throw new Error("options binding applies only to SELECT elements");for(;e.length>0;)e.remove(0);return{controlsDescendantBindings:!0}},update:function(t,n,i){function r(){return l.utils.arrayFilter(t.options,function(e){return e.selected})}var o,s,a=0==t.length,u=t.multiple,c=!a&&u?t.scrollTop:null,d=l.utils.unwrapObservable(n()),p=i.get("valueAllowUnset")&&i.has("value"),f=i.get("optionsIncludeDestroyed"),h={},m=[];function g(e,t,n){var i=typeof t;return"function"==i?t(e):"string"==i?e[t]:n}p||(u?m=l.utils.arrayMap(r(),l.selectExtensions.readValue):t.selectedIndex>=0&&m.push(l.selectExtensions.readValue(t.options[t.selectedIndex]))),d&&(void 0===d.length&&(d=[d]),s=l.utils.arrayFilter(d,function(t){return f||t===e||null===t||!l.utils.unwrapObservable(t._destroy)}),i.has("optionsCaption")&&null!==(o=l.utils.unwrapObservable(i.get("optionsCaption")))&&o!==e&&s.unshift(O));var v=!1;function y(e,n){if(v&&p)l.selectExtensions.writeValue(t,l.utils.unwrapObservable(i.get("value")),!0);else if(m.length){var r=l.utils.arrayIndexOf(m,l.selectExtensions.readValue(n[0]))>=0;l.utils.setOptionNodeSelectionState(n[0],r),v&&!r&&l.dependencyDetection.ignore(l.utils.triggerEvent,null,[t,"change"])}}h.beforeRemove=function(e){t.removeChild(e)};var b=y;i.has("optionsAfterRender")&&"function"==typeof i.get("optionsAfterRender")&&(b=function(t,n){y(0,n),l.dependencyDetection.ignore(i.get("optionsAfterRender"),null,[n[0],t!==O?t:e])}),l.utils.setDomNodeChildrenFromArrayMapping(t,s,function(n,r,o){o.length&&(m=!p&&o[0].selected?[l.selectExtensions.readValue(o[0])]:[],v=!0);var s=t.ownerDocument.createElement("option");if(n===O)l.utils.setTextContent(s,i.get("optionsCaption")),l.selectExtensions.writeValue(s,e);else{var a=g(n,i.get("optionsValue"),n);l.selectExtensions.writeValue(s,l.utils.unwrapObservable(a));var u=g(n,i.get("optionsText"),a);l.utils.setTextContent(s,u)}return[s]},h,b),l.dependencyDetection.ignore(function(){p?l.selectExtensions.writeValue(t,l.utils.unwrapObservable(i.get("value")),!0):(u?m.length&&r().length<m.length:m.length&&t.selectedIndex>=0?l.selectExtensions.readValue(t.options[t.selectedIndex])!==m[0]:m.length||t.selectedIndex>=0)&&l.utils.triggerEvent(t,"change")}),l.utils.ensureSelectElementIsRenderedCorrectly(t),c&&Math.abs(c-t.scrollTop)>20&&(t.scrollTop=c)}},l.bindingHandlers.options.optionValueDomDataKey=l.utils.domData.nextKey(),l.bindingHandlers.selectedOptions={after:["options","foreach"],init:function(e,t,n){l.utils.registerEventHandler(e,"change",function(){var i=t(),r=[];l.utils.arrayForEach(e.getElementsByTagName("option"),function(e){e.selected&&r.push(l.selectExtensions.readValue(e))}),l.expressionRewriting.writeValueToProperty(i,n,"selectedOptions",r)})},update:function(e,t){if("select"!=l.utils.tagNameLower(e))throw new Error("values binding applies only to SELECT elements");var n=l.utils.unwrapObservable(t()),i=e.scrollTop;n&&"number"==typeof n.length&&l.utils.arrayForEach(e.getElementsByTagName("option"),function(e){var t=l.utils.arrayIndexOf(n,l.selectExtensions.readValue(e))>=0;e.selected!=t&&l.utils.setOptionNodeSelectionState(e,t)}),e.scrollTop=i}},l.expressionRewriting.twoWayBindings.selectedOptions=!0,l.bindingHandlers.style={update:function(t,n){var i=l.utils.unwrapObservable(n()||{});l.utils.objectForEach(i,function(n,i){if(null!==(i=l.utils.unwrapObservable(i))&&i!==e&&!1!==i||(i=""),o)o(t).css(n,i);else if(/^--/.test(n))t.style.setProperty(n,i);else{n=n.replace(/-(\w)/g,function(e,t){return t.toUpperCase()});var r=t.style[n];t.style[n]=i,i===r||t.style[n]!=r||isNaN(i)||(t.style[n]=i+"px")}})}},l.bindingHandlers.submit={init:function(e,t,n,i,r){if("function"!=typeof t())throw new Error("The value for a submit binding must be a function");l.utils.registerEventHandler(e,"submit",function(n){var i,o=t();try{i=o.call(r.$data,e)}finally{!0!==i&&(n.preventDefault?n.preventDefault():n.returnValue=!1)}})}},l.bindingHandlers.text={init:function(){return{controlsDescendantBindings:!0}},update:function(e,t){l.utils.setTextContent(e,t())}},l.virtualElements.allowedBindings.text=!0,function(){if(n&&n.navigator){var t,i,r,o,s,a=function(e){if(e)return parseFloat(e[1])},u=n.navigator.userAgent;(t=n.opera&&n.opera.version&&parseInt(n.opera.version()))||(s=a(u.match(/Edge\/([^ ]+)$/)))||a(u.match(/Chrome\/([^ ]+)/))||(i=a(u.match(/Version\/([^ ]+) Safari/)))||(r=a(u.match(/Firefox\/([^ ]+)/)))||(o=l.utils.ieVersion||a(u.match(/MSIE ([^ ]+)/)))||(o=a(u.match(/rv:([^ )]+)/)))}if(o>=8&&o<10)var c=l.utils.domData.nextKey(),d=l.utils.domData.nextKey(),p=function(e){var t=this.activeElement,n=t&&l.utils.domData.get(t,d);n&&n(e)},f=function(e,t){var n=e.ownerDocument;l.utils.domData.get(n,c)||(l.utils.domData.set(n,c,!0),l.utils.registerEventHandler(n,"selectionchange",p)),l.utils.domData.set(e,d,t)};l.bindingHandlers.textInput={init:function(n,a,u){var c,d,p=n.value,h=function(t){clearTimeout(c),d=c=e;var i=n.value;p!==i&&(t&&(n._ko_textInputProcessedEvent=t.type),p=i,l.expressionRewriting.writeValueToProperty(a(),u,"textInput",i))},m=function(e){if(!c){d=n.value;var t=h.bind(n,{type:e.type});c=l.utils.setTimeout(t,4)}},g=9==l.utils.ieVersion?m:h,v=!1,y=function(){var t=l.utils.unwrapObservable(a());null!==t&&t!==e||(t=""),d===e||t!==d?n.value!==t&&(v=!0,n.value=t,v=!1,p=n.value):l.utils.setTimeout(y,4)},b=function(e,t){l.utils.registerEventHandler(n,e,t)};l.bindingHandlers.textInput._forceUpdateOn?l.utils.arrayForEach(l.bindingHandlers.textInput._forceUpdateOn,function(e){"after"==e.slice(0,5)?b(e.slice(5),m):b(e,h)}):(o&&b("keypress",h),o<11&&b("propertychange",function(e){v||"value"!==e.propertyName||g(e)}),8==o&&(b("keyup",h),b("keydown",h)),f&&(f(n,g),b("dragend",m)),(!o||o>=9)&&b("input",g),i<5&&"textarea"===l.utils.tagNameLower(n)?(b("keydown",m),b("paste",m),b("cut",m)):t<11?b("keydown",m):r<4?(b("DOMAutoComplete",h),b("dragdrop",h),b("drop",h)):s&&"number"===n.type&&b("keydown",m)),b("change",h),b("blur",h),l.computed(y,null,{disposeWhenNodeIsRemoved:n})}},l.expressionRewriting.twoWayBindings.textInput=!0,l.bindingHandlers.textinput={preprocess:function(e,t,n){n("textInput",e)}}}(),l.bindingHandlers.uniqueName={init:function(e,t){if(t()){var n="ko_unique_"+ ++l.bindingHandlers.uniqueName.currentIndex;l.utils.setElementName(e,n)}}},l.bindingHandlers.uniqueName.currentIndex=0,l.bindingHandlers.using={init:function(e,t,n,i,r){var o;n.has("as")&&(o={as:n.get("as"),noChildContext:n.get("noChildContext")});var s=r.createChildContext(t,o);return l.applyBindingsToDescendants(s,e),{controlsDescendantBindings:!0}}},l.virtualElements.allowedBindings.using=!0,l.bindingHandlers.value={after:["options","foreach"],init:function(t,n,i){var r=l.utils.tagNameLower(t),o="input"==r;if(!o||"checkbox"!=t.type&&"radio"!=t.type){var s=["change"],a=i.get("valueUpdate"),u=!1,c=null;a&&("string"==typeof a&&(a=[a]),l.utils.arrayPushAll(s,a),s=l.utils.arrayGetDistinctValues(s));var d,p=function(){c=null,u=!1;var e=n(),r=l.selectExtensions.readValue(t);l.expressionRewriting.writeValueToProperty(e,i,"value",r)};l.utils.ieVersion&&o&&"text"==t.type&&"off"!=t.autocomplete&&(!t.form||"off"!=t.form.autocomplete)&&-1==l.utils.arrayIndexOf(s,"propertychange")&&(l.utils.registerEventHandler(t,"propertychange",function(){u=!0}),l.utils.registerEventHandler(t,"focus",function(){u=!1}),l.utils.registerEventHandler(t,"blur",function(){u&&p()})),l.utils.arrayForEach(s,function(e){var n=p;l.utils.stringStartsWith(e,"after")&&(n=function(){c=l.selectExtensions.readValue(t),l.utils.setTimeout(p,0)},e=e.substring("after".length)),l.utils.registerEventHandler(t,e,n)}),d=o&&"file"==t.type?function(){var i=l.utils.unwrapObservable(n());null===i||i===e||""===i?t.value="":l.dependencyDetection.ignore(p)}:function(){var o=l.utils.unwrapObservable(n()),s=l.selectExtensions.readValue(t);if(null===c||o!==c){if(o!==s||s===e)if("select"===r){var a=i.get("valueAllowUnset");l.selectExtensions.writeValue(t,o,a),a||o===l.selectExtensions.readValue(t)||l.dependencyDetection.ignore(p)}else l.selectExtensions.writeValue(t,o)}else l.utils.setTimeout(d,0)},l.computed(d,null,{disposeWhenNodeIsRemoved:t})}else l.applyBindingAccessorsToNode(t,{checkedValue:n})},update:function(){}},l.expressionRewriting.twoWayBindings.value=!0,l.bindingHandlers.visible={update:function(e,t){var n=l.utils.unwrapObservable(t()),i=!("none"==e.style.display);n&&!i?e.style.display="":!n&&i&&(e.style.display="none")}},l.bindingHandlers.hidden={update:function(e,t){l.bindingHandlers.visible.update(e,function(){return!l.utils.unwrapObservable(t())})}},k="click",l.bindingHandlers[k]={init:function(e,t,n,i,r){return l.bindingHandlers.event.init.call(this,e,function(){var e={};return e[k]=t(),e},n,i,r)}},l.templateEngine=function(){},l.templateEngine.prototype.renderTemplateSource=function(e,t,n,i){throw new Error("Override renderTemplateSource")},l.templateEngine.prototype.createJavaScriptEvaluatorBlock=function(e){throw new Error("Override createJavaScriptEvaluatorBlock")},l.templateEngine.prototype.makeTemplateSource=function(e,t){if("string"==typeof e){var n=(t=t||i).getElementById(e);if(!n)throw new Error("Cannot find template with ID "+e);return new l.templateSources.domElement(n)}if(1==e.nodeType||8==e.nodeType)return new l.templateSources.anonymousTemplate(e);throw new Error("Unknown template type: "+e)},l.templateEngine.prototype.renderTemplate=function(e,t,n,i){var r=this.makeTemplateSource(e,i);return this.renderTemplateSource(r,t,n,i)},l.templateEngine.prototype.isTemplateRewritten=function(e,t){return!1===this.allowTemplateRewriting||this.makeTemplateSource(e,t).data("isRewritten")},l.templateEngine.prototype.rewriteTemplate=function(e,t,n){var i=this.makeTemplateSource(e,n),r=t(i.text());i.text(r),i.data("isRewritten",!0)},l.exportSymbol("templateEngine",l.templateEngine),l.templateRewriting=function(){var e=/(<([a-z]+\d*)(?:\s+(?!data-bind\s*=\s*)[a-z0-9\-]+(?:=(?:\"[^\"]*\"|\'[^\']*\'|[^>]*))?)*\s+)data-bind\s*=\s*(["'])([\s\S]*?)\3/gi,t=/<!--\s*ko\b\s*([\s\S]*?)\s*-->/g;function n(e,t,n,i){var r=l.expressionRewriting.parseObjectLiteral(e);!function(e){for(var t=l.expressionRewriting.bindingRewriteValidators,n=0;n<e.length;n++){var i=e[n].key;if(Object.prototype.hasOwnProperty.call(t,i)){var r=t[i];if("function"==typeof r){var o=r(e[n].value);if(o)throw new Error(o)}else if(!r)throw new Error("This template engine does not support the '"+i+"' binding within its templates")}}}(r);var o="ko.__tr_ambtns(function($context,$element){return(function(){return{ "+l.expressionRewriting.preProcessBindings(r,{valueAccessors:!0})+" } })()},'"+n.toLowerCase()+"')";return i.createJavaScriptEvaluatorBlock(o)+t}return{ensureTemplateIsRewritten:function(e,t,n){t.isTemplateRewritten(e,n)||t.rewriteTemplate(e,function(e){return l.templateRewriting.memoizeBindingAttributeSyntax(e,t)},n)},memoizeBindingAttributeSyntax:function(i,r){return i.replace(e,function(){return n(arguments[4],arguments[1],arguments[2],r)}).replace(t,function(){return n(arguments[1],"\x3c!-- ko --\x3e","#comment",r)})},applyMemoizedBindingsToNextSibling:function(e,t){return l.memoization.memoize(function(n,i){var r=n.nextSibling;r&&r.nodeName.toLowerCase()===t&&l.applyBindingAccessorsToNode(r,e,i)})}}}(),l.exportSymbol("__tr_ambtns",l.templateRewriting.applyMemoizedBindingsToNextSibling),function(){l.templateSources={},l.templateSources.domElement=function(e){if(this.domElement=e,e){var t=l.utils.tagNameLower(e);this.templateType="script"===t?1:"textarea"===t?2:"template"==t&&e.content&&11===e.content.nodeType?3:4}},l.templateSources.domElement.prototype.text=function(){var e=1===this.templateType?"text":2===this.templateType?"value":"innerHTML";if(0==arguments.length)return this.domElement[e];var t=arguments[0];"innerHTML"===e?l.utils.setHtml(this.domElement,t):this.domElement[e]=t};var t=l.utils.domData.nextKey()+"_";l.templateSources.domElement.prototype.data=function(e){if(1===arguments.length)return l.utils.domData.get(this.domElement,t+e);l.utils.domData.set(this.domElement,t+e,arguments[1])};var n=l.utils.domData.nextKey();function i(e){return l.utils.domData.get(e,n)||{}}function r(e,t){l.utils.domData.set(e,n,t)}l.templateSources.domElement.prototype.nodes=function(){var t=this.domElement;if(0==arguments.length){var n=i(t),o=n.containerData||(3===this.templateType?t.content:4===this.templateType?t:e);if(!o||n.alwaysCheckText){var s=this.text();s&&(o=l.utils.parseHtmlForTemplateNodes(s,t.ownerDocument),this.text(""),r(t,{containerData:o,alwaysCheckText:!0}))}return o}r(t,{containerData:arguments[0]})},l.templateSources.anonymousTemplate=function(e){this.domElement=e},l.templateSources.anonymousTemplate.prototype=new l.templateSources.domElement,l.templateSources.anonymousTemplate.prototype.constructor=l.templateSources.anonymousTemplate,l.templateSources.anonymousTemplate.prototype.text=function(){if(0==arguments.length){var t=i(this.domElement);return t.textData===e&&t.containerData&&(t.textData=t.containerData.innerHTML),t.textData}var n=arguments[0];r(this.domElement,{textData:n})},l.exportSymbol("templateSources",l.templateSources),l.exportSymbol("templateSources.domElement",l.templateSources.domElement),l.exportSymbol("templateSources.anonymousTemplate",l.templateSources.anonymousTemplate)}(),function(){var t;function n(e,t,n){for(var i,r=e,o=l.virtualElements.nextSibling(t);r&&(i=r)!==o;)n(i,r=l.virtualElements.nextSibling(i))}function i(e,t){if(e.length){var i=e[0],r=e[e.length-1],o=i.parentNode,s=l.bindingProvider.instance,a=s.preprocessNode;if(a){if(n(i,r,function(e,t){var n=e.previousSibling,o=a.call(s,e);o&&(e===i&&(i=o[0]||t),e===r&&(r=o[o.length-1]||n))}),e.length=0,!i)return;i===r?e.push(i):(e.push(i,r),l.utils.fixUpContinuousNodeArray(e,o))}n(i,r,function(e){1!==e.nodeType&&8!==e.nodeType||l.applyBindings(t,e)}),n(i,r,function(e){1!==e.nodeType&&8!==e.nodeType||l.memoization.unmemoizeDomNodeAndDescendants(e,[t])}),l.utils.fixUpContinuousNodeArray(e,o)}}function r(e){return e.nodeType?e:e.length>0?e[0]:null}function o(e,n,o,s,a){a=a||{};var u=(e&&r(e)||o||{}).ownerDocument,c=a.templateEngine||t;l.templateRewriting.ensureTemplateIsRewritten(o,c,u);var d=c.renderTemplate(o,s,a,u);if("number"!=typeof d.length||d.length>0&&"number"!=typeof d[0].nodeType)throw new Error("Template engine must return an array of DOM nodes");var p=!1;switch(n){case"replaceChildren":l.virtualElements.setDomNodeChildren(e,d),p=!0;break;case"replaceNode":l.utils.replaceDomNodes(e,d),p=!0;break;case"ignoreTargetNode":break;default:throw new Error("Unknown renderMode: "+n)}return p&&(i(d,s),a.afterRender&&l.dependencyDetection.ignore(a.afterRender,null,[d,s[a.as||"$data"]]),"replaceChildren"==n&&l.bindingEvent.notify(e,l.bindingEvent.childrenComplete)),d}function s(e,t,n){return l.isObservable(e)?e():"function"==typeof e?e(t,n):e}l.setTemplateEngine=function(n){if(n!=e&&!(n instanceof l.templateEngine))throw new Error("templateEngine must inherit from ko.templateEngine");t=n},l.renderTemplate=function(n,i,a,u,c){if(((a=a||{}).templateEngine||t)==e)throw new Error("Set a template engine before calling renderTemplate");if(c=c||"replaceChildren",u){var d=r(u),p=d&&"replaceNode"==c?d.parentNode:d;return l.dependentObservable(function(){var e=i&&i instanceof l.bindingContext?i:new l.bindingContext(i,null,null,null,{exportDependencies:!0}),t=s(n,e.$data,e),p=o(u,c,t,e,a);"replaceNode"==c&&(d=r(u=p))},null,{disposeWhen:function(){return!d||!l.utils.domNodeIsAttachedToDocument(d)},disposeWhenNodeIsRemoved:p})}return l.memoization.memoize(function(e){l.renderTemplate(n,i,a,e,"replaceNode")})},l.renderTemplateForEach=function(t,n,r,a,u){var c,d=r.as,p=function(e,n){c=u.createChildContext(e,{as:d,noChildContext:r.noChildContext,extend:function(e){e.$index=n,d&&(e[d+"Index"]=n)}});var i=s(t,e,c);return o(a,"ignoreTargetNode",i,c,r)},f=function(e,t,n){i(t,c),r.afterRender&&r.afterRender(t,e),c=null},h=function(e,t){l.dependencyDetection.ignore(l.utils.setDomNodeChildrenFromArrayMapping,null,[a,e,p,r,f,t]),l.bindingEvent.notify(a,l.bindingEvent.childrenComplete)},m=!1===r.includeDestroyed||l.options.foreachHidesDestroyed&&!r.includeDestroyed;if(m||r.beforeRemove||!l.isObservableArray(n))return l.dependentObservable(function(){var t=l.utils.unwrapObservable(n)||[];void 0===t.length&&(t=[t]),m&&(t=l.utils.arrayFilter(t,function(t){return t===e||null===t||!l.utils.unwrapObservable(t._destroy)})),h(t)},null,{disposeWhenNodeIsRemoved:a});h(n.peek());var g=n.subscribe(function(e){h(n(),e)},null,"arrayChange");return g.disposeWhenNodeIsRemoved(a),g};var a=l.utils.domData.nextKey(),u=l.utils.domData.nextKey();l.bindingHandlers.template={init:function(e,t){var n=l.utils.unwrapObservable(t());if("string"==typeof n||n.name)l.virtualElements.emptyNode(e);else if("nodes"in n){var i=n.nodes||[];if(l.isObservable(i))throw new Error('The "nodes" option must be a plain, non-observable array.');(o=i[0]&&i[0].parentNode)&&l.utils.domData.get(o,u)||(o=l.utils.moveCleanedNodesToContainerElement(i),l.utils.domData.set(o,u,!0)),new l.templateSources.anonymousTemplate(e).nodes(o)}else{var r=l.virtualElements.childNodes(e);if(!(r.length>0))throw new Error("Anonymous template defined, but no template content was provided");var o=l.utils.moveCleanedNodesToContainerElement(r);new l.templateSources.anonymousTemplate(e).nodes(o)}return{controlsDescendantBindings:!0}},update:function(t,n,i,r,o){var s,u=n(),c=l.utils.unwrapObservable(u),d=!0,p=null;if("string"==typeof c?(s=u,c={}):(s=c.name,"if"in c&&(d=l.utils.unwrapObservable(c.if)),d&&"ifnot"in c&&(d=!l.utils.unwrapObservable(c.ifnot))),"foreach"in c){var f=d&&c.foreach||[];p=l.renderTemplateForEach(s||t,f,c,t,o)}else if(d){var h=o;"data"in c&&(h=o.createChildContext(c.data,{as:c.as,noChildContext:c.noChildContext,exportDependencies:!0})),p=l.renderTemplate(s||t,h,c,t)}else l.virtualElements.emptyNode(t);!function(t,n){var i=l.utils.domData.get(t,a);i&&"function"==typeof i.dispose&&i.dispose(),l.utils.domData.set(t,a,!n||n.isActive&&!n.isActive()?e:n)}(t,p)}},l.expressionRewriting.bindingRewriteValidators.template=function(e){var t=l.expressionRewriting.parseObjectLiteral(e);return 1==t.length&&t[0].unknown?null:l.expressionRewriting.keyValueArrayContainsKey(t,"name")?null:"This template engine does not support anonymous templates nested within its templates"},l.virtualElements.allowedBindings.template=!0}(),l.exportSymbol("setTemplateEngine",l.setTemplateEngine),l.exportSymbol("renderTemplate",l.renderTemplate),l.utils.findMovesInArrayComparison=function(e,t,n){var i,r,o,s,a;if(e.length&&t.length)for(i=r=0;(!n||i<n)&&(s=e[r]);++r){for(o=0;a=t[o];++o)if(s.value===a.value){s.moved=a.index,a.moved=s.index,t.splice(o,1),i=o=0;break}i+=o}},l.utils.compareArrays=function(){var e="added",t="deleted";function n(e,t,n,i,r){var o,s,a,u,c,d=Math.min,p=Math.max,f=[],h=e.length,m=t.length,g=m-h||1,v=h+m+1;for(o=0;o<=h;o++)for(u=a,f.push(a=[]),c=d(m,o+g),s=p(0,o-1);s<=c;s++)if(s)if(o)if(e[o-1]===t[s-1])a[s]=u[s-1];else{var y=u[s]||v,b=a[s-1]||v;a[s]=d(y,b)+1}else a[s]=s+1;else a[s]=o+1;var w,x=[],E=[],C=[];for(o=h,s=m;o||s;)w=f[o][s]-1,s&&w===f[o][s-1]?E.push(x[x.length]={status:n,value:t[--s],index:s}):o&&w===f[o-1][s]?C.push(x[x.length]={status:i,value:e[--o],index:o}):(--s,--o,r.sparse||x.push({status:"retained",value:t[s]}));return l.utils.findMovesInArrayComparison(C,E,!r.dontLimitMoves&&10*h),x.reverse()}return function(i,r,o){return o="boolean"==typeof o?{dontLimitMoves:o}:o||{},r=r||[],(i=i||[]).length<r.length?n(i,r,e,t,o):n(r,i,t,e,o)}}(),l.exportSymbol("utils.compareArrays",l.utils.compareArrays),function(){function t(t,n,i,r,o){var s=[],a=l.dependentObservable(function(){var e=n(i,o,l.utils.fixUpContinuousNodeArray(s,t))||[];s.length>0&&(l.utils.replaceDomNodes(s,e),r&&l.dependencyDetection.ignore(r,null,[i,e,o])),s.length=0,l.utils.arrayPushAll(s,e)},null,{disposeWhenNodeIsRemoved:t,disposeWhen:function(){return!l.utils.anyDomNodeIsAttachedToDocument(s)}});return{mappedNodes:s,dependentObservable:a.isActive()?a:e}}var n=l.utils.domData.nextKey(),i=l.utils.domData.nextKey();l.utils.setDomNodeChildrenFromArrayMapping=function(r,o,s,a,u,c){void 0===(o=o||[]).length&&(o=[o]),a=a||{};var d,p,f,h,m,g,v,y=l.utils.domData.get(r,n),b=!y,w=[],x=0,E=0,C=[],T=[],_=[],S=[],D=[],N=0;function k(e){d={arrayEntry:e,indexObservable:l.observable(E++)},w.push(d),b||D.push(d)}function O(e){d=y[e],E!==d.indexObservable.peek()&&S.push(d),d.indexObservable(E++),l.utils.fixUpContinuousNodeArray(d.mappedNodes,r),w.push(d)}function A(e,t){if(e)for(var n=0,i=t.length;n<i;n++)l.utils.arrayForEach(t[n].mappedNodes,function(i){e(i,n,t[n].arrayEntry)})}if(b)l.utils.arrayForEach(o,k);else{if(!c||y&&y._countWaitingForRemove){var P=l.utils.arrayMap(y,function(e){return e.arrayEntry}),I={dontLimitMoves:a.dontLimitMoves,sparse:!0};c=l.utils.compareArrays(P,o,I)}for(var L,j,H,M=0;L=c[M];M++)switch(j=L.moved,H=L.index,L.status){case"deleted":for(;x<H;)O(x++);j===e&&((d=y[x]).dependentObservable&&(d.dependentObservable.dispose(),d.dependentObservable=e),l.utils.fixUpContinuousNodeArray(d.mappedNodes,r).length&&(a.beforeRemove&&(w.push(d),N++,d.arrayEntry===i?d=null:_.push(d)),d&&C.push.apply(C,d.mappedNodes))),x++;break;case"added":for(;E<H;)O(x++);j!==e?(T.push(w.length),O(j)):k(L.value)}for(;E<o.length;)O(x++);w._countWaitingForRemove=N}l.utils.domData.set(r,n,w),A(a.beforeMove,S),l.utils.arrayForEach(C,a.beforeRemove?l.cleanNode:l.removeNode);try{v=r.ownerDocument.activeElement}catch(e){}if(T.length)for(;(M=T.shift())!=e;){for(d=w[M],h=e;M;)if((g=w[--M].mappedNodes)&&g.length){h=g[g.length-1];break}for(p=0;m=d.mappedNodes[p];h=m,p++)l.virtualElements.insertAfter(r,m,h)}for(M=0,f=l.virtualElements.firstChild(r);d=w[M];M++){for(d.mappedNodes||l.utils.extend(d,t(r,s,d.arrayEntry,u,d.indexObservable)),p=0;m=d.mappedNodes[p];f=m.nextSibling,h=m,p++)m!==f&&l.virtualElements.insertAfter(r,m,h);!d.initialized&&u&&(u(d.arrayEntry,d.mappedNodes,d.indexObservable),d.initialized=!0,h=d.mappedNodes[d.mappedNodes.length-1])}for(v&&r.ownerDocument.activeElement!=v&&v.focus(),A(a.beforeRemove,_),M=0;M<_.length;++M)_[M].arrayEntry=i;A(a.afterMove,S),A(a.afterAdd,D)}}(),l.exportSymbol("utils.setDomNodeChildrenFromArrayMapping",l.utils.setDomNodeChildrenFromArrayMapping),l.nativeTemplateEngine=function(){this.allowTemplateRewriting=!1},l.nativeTemplateEngine.prototype=new l.templateEngine,l.nativeTemplateEngine.prototype.constructor=l.nativeTemplateEngine,l.nativeTemplateEngine.prototype.renderTemplateSource=function(e,t,n,i){var r=l.utils.ieVersion<9||!e.nodes?null:e.nodes();if(r)return l.utils.makeArray(r.cloneNode(!0).childNodes);var o=e.text();return l.utils.parseHtmlFragment(o,i)},l.nativeTemplateEngine.instance=new l.nativeTemplateEngine,l.setTemplateEngine(l.nativeTemplateEngine.instance),l.exportSymbol("nativeTemplateEngine",l.nativeTemplateEngine),function(){l.jqueryTmplTemplateEngine=function(){var e=this.jQueryTmplVersion=function(){if(!o||!o.tmpl)return 0;try{if(o.tmpl.tag.tmpl.open.toString().indexOf("__")>=0)return 2}catch(e){}return 1}();this.renderTemplateSource=function(t,n,r,s){s=s||i,r=r||{},function(){if(e<2)throw new Error("Your version of jQuery.tmpl is too old. Please upgrade to jQuery.tmpl 1.0.0pre or later.")}();var a=t.data("precompiled");if(!a){var l=t.text()||"";l="{{ko_with $item.koBindingContext}}"+l+"{{/ko_with}}",a=o.template(null,l),t.data("precompiled",a)}var u=function(e,t,n){return o.tmpl(e,t,n)}(a,[n.$data],o.extend({koBindingContext:n},r.templateOptions));return u.appendTo(s.createElement("div")),o.fragments={},u},this.createJavaScriptEvaluatorBlock=function(e){return"{{ko_code ((function() { return "+e+" })()) }}"},this.addTemplate=function(e,t){i.write("<script type='text/html' id='"+e+"'>"+t+"<\/script>")},e>0&&(o.tmpl.tag.ko_code={open:"__.push($1 || '');"},o.tmpl.tag.ko_with={open:"with($1) {",close:"} "})},l.jqueryTmplTemplateEngine.prototype=new l.templateEngine,l.jqueryTmplTemplateEngine.prototype.constructor=l.jqueryTmplTemplateEngine;var e=new l.jqueryTmplTemplateEngine;e.jQueryTmplVersion>0&&l.setTemplateEngine(e),l.exportSymbol("jqueryTmplTemplateEngine",l.jqueryTmplTemplateEngine)}()},"function"==typeof define&&define.amd?define("knockout",["exports","require"],t):"object"==typeof exports&&"object"==typeof module?t(module.exports||exports):t(n.ko={})}(),
/// License: MIT (http://www.opensource.org/licenses/mit-license.php)
function(e){"function"==typeof require&&"object"==typeof exports&&"object"==typeof module?e(require("knockout"),exports):"function"==typeof define&&define.amd?define("knockout-mapping",["knockout","exports"],e):e(ko,ko.mapping={})}(function(e,t){var n,i,r=!0,o="__ko_mapping__",s=e.dependentObservable,a=0,l=["create","update","key","arrayChanged"],u={},c={include:["_destroy"],ignore:[],copy:[],observe:[]},d=c;function p(e,t){for(var n={},i=e.length-1;i>=0;--i)n[e[i]]=e[i];for(i=t.length-1;i>=0;--i)n[t[i]]=t[i];var r=[];for(var o in n)r.push(n[o]);return r}function f(e,n){var i;for(var r in n)if(n.hasOwnProperty(r)&&n[r])if(i=t.getType(e[r]),r&&e[r]&&"array"!==i&&"string"!==i)f(e[r],n[r]);else{var o="array"===t.getType(e[r])&&"array"===t.getType(n[r]);e[r]=o?p(e[r],n[r]):n[r]}}function h(e,t){var n={};return f(n,e),f(n,t),n}function m(e,t){for(var n=h({},e),i=l.length-1;i>=0;i--){var r=l[i];n[r]&&(n[""]instanceof Object||(n[""]={}),n[""][r]=n[r],delete n[r])}return t&&(n.ignore=g(t.ignore,n.ignore),n.include=g(t.include,n.include),n.copy=g(t.copy,n.copy),n.observe=g(t.observe,n.observe)),n.ignore=g(n.ignore,d.ignore),n.include=g(n.include,d.include),n.copy=g(n.copy,d.copy),n.observe=g(n.observe,d.observe),n.mappedProperties=n.mappedProperties||{},n.copiedProperties=n.copiedProperties||{},n}function g(n,i){return"array"!==t.getType(n)&&(n="undefined"===t.getType(n)?[]:[n]),"array"!==t.getType(i)&&(i="undefined"===t.getType(i)?[]:[i]),e.utils.arrayGetDistinctValues(n.concat(i))}function v(e,t,n){for(var i=0,r=e.length;i<r;i++)if(!0!==n[i]&&e[i]===t)return i;return null}function y(n,i){var r;return i&&(r=i(n)),"undefined"===t.getType(r)&&(r=n),e.utils.unwrapObservable(r)}function b(t,n,i){for(var r=0,o=(t=e.utils.unwrapObservable(t)).length;r<o;r++){var s=t[r];if(y(s,i)===n)return s}throw new Error("When calling ko.update*, the key '"+n+"' was not found!")}function w(t,n){return e.utils.arrayMap(e.utils.unwrapObservable(t),function(e){return n?y(e,n):e})}function x(e,n){if("array"===t.getType(e))for(var i=0;i<e.length;i++)n(i);else for(var r in e)n(r)}function E(e){var n=t.getType(e);return("object"===n||"array"===n)&&null!==e}function C(){var t={},n=function(n){var i;try{i=n}catch(e){i="$$$"}var r=t[i];return void 0===r&&(r=new function(){var t=[],n=[];this.save=function(i,r){var o=e.utils.arrayIndexOf(t,i);o>=0?n[o]=r:(t.push(i),n.push(r))},this.get=function(i){var r=e.utils.arrayIndexOf(t,i);return r>=0?n[r]:void 0}},t[i]=r),r};this.save=function(e,t){n(e).save(e,t)},this.get=function(e){return n(e).get(e)}}t.isMapped=function(t){var n=e.utils.unwrapObservable(t);return n&&n[o]},t.fromJS=function(l){if(0==arguments.length)throw new Error("When calling ko.fromJS, pass the object you want to convert.");try{var c,d;a++||(n=[],i=new C),2==arguments.length&&(arguments[1][o]?d=arguments[1]:c=arguments[1]),3==arguments.length&&(c=arguments[1],d=arguments[2]),d&&(c=h(c,d[o]));var p=function a(l,c,d,p,f,m,g){var y="array"===t.getType(e.utils.unwrapObservable(c));m=m||"";if(t.isMapped(l)){var C=e.utils.unwrapObservable(l)[o];d=h(C,d)}var T={data:c,parent:g||f};var _=function(){return d[p]&&d[p].create instanceof Function};var S=function(t){return function(t,n){var i=e.dependentObservable;e.dependentObservable=function(n,i,o){o=o||{},n&&"object"==typeof n&&(o=n);var a=o.deferEvaluation,l=!1;o.deferEvaluation=!0;var u=new s(n,i,o);return a||(u=function(n){var i=e.dependentObservable;e.dependentObservable=s;var o=e.isWriteableObservable(n);e.dependentObservable=i;var a=s({read:function(){return l||(e.utils.arrayRemoveItem(t,n),l=!0),n.apply(n,arguments)},write:o&&function(e){return n(e)},deferEvaluation:!0});r&&(a._wrapper=!0);return a.__DO=n,a}(u),t.push(u)),u},e.dependentObservable.fn=s.fn,e.computed=e.dependentObservable;var o=n();return e.dependentObservable=i,e.computed=e.dependentObservable,o}(n,function(){return e.utils.unwrapObservable(f)instanceof Array?d[p].create({data:t||T.data,parent:T.parent,skip:u}):d[p].create({data:t||T.data,parent:T.parent})})};var D=function(){return d[p]&&d[p].update instanceof Function};var N=function(t,n){var i={data:n||T.data,parent:T.parent,target:e.utils.unwrapObservable(t)};return e.isWriteableObservable(t)&&(i.observable=t),d[p].update(i)};var k=i.get(c);if(k)return k;p=p||"";if(y){var O=[],A=!1,P=function(e){return e};d[p]&&d[p].key&&(P=d[p].key,A=!0),e.isObservable(l)||((l=e.observableArray([])).mappedRemove=function(e){var t="function"==typeof e?e:function(t){return t===P(e)};return l.remove(function(e){return t(P(e))})},l.mappedRemoveAll=function(t){var n=w(t,P);return l.remove(function(t){return-1!=e.utils.arrayIndexOf(n,P(t))})},l.mappedDestroy=function(e){var t="function"==typeof e?e:function(t){return t===P(e)};return l.destroy(function(e){return t(P(e))})},l.mappedDestroyAll=function(t){var n=w(t,P);return l.destroy(function(t){return-1!=e.utils.arrayIndexOf(n,P(t))})},l.mappedIndexOf=function(t){var n=w(l(),P),i=P(t);return e.utils.arrayIndexOf(n,i)},l.mappedGet=function(e){return l()[l.mappedIndexOf(e)]},l.mappedCreate=function(t){if(-1!==l.mappedIndexOf(t))throw new Error("There already is an object with the key that you specified.");var n=_()?S(t):t;if(D()){var i=N(n,t);e.isWriteableObservable(n)?n(i):n=i}return l.push(n),n});var I=w(e.utils.unwrapObservable(l),P).sort(),L=w(c,P);A&&L.sort();var j,H,M=e.utils.compareArrays(I,L),R={},F=e.utils.unwrapObservable(c),W={},B=!0;for(j=0,H=F.length;j<H;j++){var q=P(F[j]);if(void 0===q||q instanceof Object){B=!1;break}W[q]=F[j]}var V=[],z=0;for(j=0,H=M.length;j<H;j++){var X,q=M[j],$=m+"["+j+"]";switch(q.status){case"added":var U=B?W[q.value]:b(e.utils.unwrapObservable(c),q.value,P);X=a(void 0,U,d,p,l,$,f),_()||(X=e.utils.unwrapObservable(X));var Y=v(e.utils.unwrapObservable(c),U,R);X===u?z++:V[Y-z]=X,R[Y]=!0;break;case"retained":var U=B?W[q.value]:b(e.utils.unwrapObservable(c),q.value,P);X=b(l,q.value,P),a(X,U,d,p,l,$,f);var Y=v(e.utils.unwrapObservable(c),U,R);V[Y]=X,R[Y]=!0;break;case"deleted":X=b(l,q.value,P)}O.push({event:q.status,item:X})}l(V),d[p]&&d[p].arrayChanged&&e.utils.arrayForEach(O,function(e){d[p].arrayChanged(e.event,e.item)})}else if(E(c)){if(!(l=e.utils.unwrapObservable(l))){if(_()){var K=S();return D()&&(K=N(K)),K}if(D())return N(K);l={}}if(D()&&(l=N(l)),i.save(c,l),D())return l;x(c,function(t){var n=m.length?m+"."+t:t;if(-1==e.utils.arrayIndexOf(d.ignore,n))if(-1==e.utils.arrayIndexOf(d.copy,n)){if("object"!=typeof c[t]&&"array"!=typeof c[t]&&d.observe.length>0&&-1==e.utils.arrayIndexOf(d.observe,n))return l[t]=c[t],void(d.copiedProperties[n]=!0);var r=i.get(c[t]),o=a(l[t],c[t],d,t,l,n,l),s=r||o;if(d.observe.length>0&&-1==e.utils.arrayIndexOf(d.observe,n))return l[t]=s(),void(d.copiedProperties[n]=!0);e.isWriteableObservable(l[t])?(s=e.utils.unwrapObservable(s),l[t]()!==s&&l[t](s)):(s=void 0===l[t]?s:e.utils.unwrapObservable(s),l[t]=s),d.mappedProperties[n]=!0}else l[t]=c[t]})}else switch(t.getType(c)){case"function":D()?e.isWriteableObservable(c)?(c(N(c)),l=c):l=N(c):l=c;break;default:if(e.isWriteableObservable(l)){if(D()){var J=N(l);return l(J),J}var J=e.utils.unwrapObservable(c);return l(J),J}var G=_()||D();if(l=_()?S():e.observable(e.utils.unwrapObservable(c)),D()&&l(N(l)),G)return l}return l}(d,l,c=m(c));if(d&&(p=d),!--a)for(;n.length;){var f=n.pop();f&&(f(),f.__DO.throttleEvaluation=f.throttleEvaluation)}return p[o]=h(p[o],c),p}catch(e){throw a=0,e}},t.fromJSON=function(n){var i=e.utils.parseJson(n);return arguments[0]=i,t.fromJS.apply(this,arguments)},t.updateFromJS=function(e){throw new Error("ko.mapping.updateFromJS, use ko.mapping.fromJS instead. Please note that the order of parameters is different!")},t.updateFromJSON=function(e){throw new Error("ko.mapping.updateFromJSON, use ko.mapping.fromJSON instead. Please note that the order of parameters is different!")},t.toJS=function(n,i){if(d||t.resetDefaultOptions(),0==arguments.length)throw new Error("When calling ko.mapping.toJS, pass the object you want to convert.");if("array"!==t.getType(d.ignore))throw new Error("ko.mapping.defaultOptions().ignore should be an array.");if("array"!==t.getType(d.include))throw new Error("ko.mapping.defaultOptions().include should be an array.");if("array"!==t.getType(d.copy))throw new Error("ko.mapping.defaultOptions().copy should be an array.");return i=m(i,n[o]),t.visitModel(n,function(t){return e.utils.unwrapObservable(t)},i)},t.toJSON=function(n,i){var r=t.toJS(n,i);return e.utils.stringifyJson(r)},t.defaultOptions=function(){if(!(arguments.length>0))return d;d=arguments[0]},t.resetDefaultOptions=function(){d={include:c.include.slice(0),ignore:c.ignore.slice(0),copy:c.copy.slice(0)}},t.getType=function(e){if(e&&"object"==typeof e){if(e.constructor===Date)return"date";if(e.constructor===Array)return"array"}return typeof e},t.visitModel=function(n,i,r){var s;(r=r||{}).visitedObjects=r.visitedObjects||new C;var a=e.utils.unwrapObservable(n);if(!E(a))return i(n,r.parentName);r=m(r,a[o]),i(n,r.parentName),s="array"===t.getType(a)?[]:{},r.visitedObjects.save(n,s);var l=r.parentName;return x(a,function(n){if(!r.ignore||-1==e.utils.arrayIndexOf(r.ignore,n)){var u=a[n];if(r.parentName=function(e,n,i){var r=e||"";return"array"===t.getType(n)?e&&(r+="["+i+"]"):(e&&(r+="."),r+=i),r}(l,a,n),-1!==e.utils.arrayIndexOf(r.copy,n)||-1!==e.utils.arrayIndexOf(r.include,n)||!a[o]||!a[o].mappedProperties||a[o].mappedProperties[n]||!a[o].copiedProperties||a[o].copiedProperties[n]||"array"===t.getType(a))switch(t.getType(e.utils.unwrapObservable(u))){case"object":case"array":case"undefined":var c=r.visitedObjects.get(u);s[n]="undefined"!==t.getType(c)?c:t.visitModel(u,i,r);break;default:s[n]=i(u,r.parentName)}}}),s}}),
/*!
 * jQuery JavaScript Library v3.4.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2019-05-01T21:04Z
 */
function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){var n=[],i=e.document,r=Object.getPrototypeOf,o=n.slice,s=n.concat,a=n.push,l=n.indexOf,u={},c=u.toString,d=u.hasOwnProperty,p=d.toString,f=p.call(Object),h={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},g=function(e){return null!=e&&e===e.window},v={type:!0,src:!0,nonce:!0,noModule:!0};function y(e,t,n){var r,o,s=(n=n||i).createElement("script");if(s.text=e,t)for(r in v)(o=t[r]||t.getAttribute&&t.getAttribute(r))&&s.setAttribute(r,o);n.head.appendChild(s).parentNode.removeChild(s)}function b(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[c.call(e)]||"object":typeof e}var w=function(e,t){return new w.fn.init(e,t)},x=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function E(e){var t=!!e&&"length"in e&&e.length,n=b(e);return!m(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}w.fn=w.prototype={jquery:"3.4.1",constructor:w,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=w.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return w.each(this,e)},map:function(e){return this.pushStack(w.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:n.sort,splice:n.splice},w.extend=w.fn.extend=function(){var e,t,n,i,r,o,s=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[a]||{},a++),"object"==typeof s||m(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)i=e[t],"__proto__"!==t&&s!==i&&(u&&i&&(w.isPlainObject(i)||(r=Array.isArray(i)))?(n=s[t],o=r&&!Array.isArray(n)?[]:r||w.isPlainObject(n)?n:{},r=!1,s[t]=w.extend(u,o,i)):void 0!==i&&(s[t]=i));return s},w.extend({expando:"jQuery"+("3.4.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==c.call(e))&&(!(t=r(e))||"function"==typeof(n=d.call(t,"constructor")&&t.constructor)&&p.call(n)===f)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t){y(e,{nonce:t&&t.nonce})},each:function(e,t){var n,i=0;if(E(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(x,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(E(Object(e))?w.merge(n,"string"==typeof e?[e]:e):a.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:l.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,o=e.length,s=!n;r<o;r++)!t(e[r],r)!==s&&i.push(e[r]);return i},map:function(e,t,n){var i,r,o=0,a=[];if(E(e))for(i=e.length;o<i;o++)null!=(r=t(e[o],o,n))&&a.push(r);else for(o in e)null!=(r=t(e[o],o,n))&&a.push(r);return s.apply([],a)},guid:1,support:h}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=n[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){u["[object "+t+"]"]=t.toLowerCase()});var C=
/*!
 * Sizzle CSS Selector Engine v2.3.4
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://js.foundation/
 *
 * Date: 2019-04-08
 */
function(e){var t,n,i,r,o,s,a,l,u,c,d,p,f,h,m,g,v,y,b,w="sizzle"+1*new Date,x=e.document,E=0,C=0,T=le(),_=le(),S=le(),D=le(),N=function(e,t){return e===t&&(d=!0),0},k={}.hasOwnProperty,O=[],A=O.pop,P=O.push,I=O.push,L=O.slice,j=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},H="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",F="\\["+M+"*("+R+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+M+"*\\]",W=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",B=new RegExp(M+"+","g"),q=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),V=new RegExp("^"+M+"*,"+M+"*"),z=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),X=new RegExp(M+"|>"),$=new RegExp(W),U=new RegExp("^"+R+"$"),Y={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},K=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ne=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,re=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){p()},se=we(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{I.apply(O=L.call(x.childNodes),x.childNodes),O[x.childNodes.length].nodeType}catch(e){I={apply:O.length?function(e,t){P.apply(e,L.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function ae(e,t,i,r){var o,a,u,c,d,h,v,y=t&&t.ownerDocument,E=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==E&&9!==E&&11!==E)return i;if(!r&&((t?t.ownerDocument||t:x)!==f&&p(t),t=t||f,m)){if(11!==E&&(d=Z.exec(e)))if(o=d[1]){if(9===E){if(!(u=t.getElementById(o)))return i;if(u.id===o)return i.push(u),i}else if(y&&(u=y.getElementById(o))&&b(t,u)&&u.id===o)return i.push(u),i}else{if(d[2])return I.apply(i,t.getElementsByTagName(e)),i;if((o=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return I.apply(i,t.getElementsByClassName(o)),i}if(n.qsa&&!D[e+" "]&&(!g||!g.test(e))&&(1!==E||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===E&&X.test(e)){for((c=t.getAttribute("id"))?c=c.replace(ie,re):t.setAttribute("id",c=w),a=(h=s(e)).length;a--;)h[a]="#"+c+" "+be(h[a]);v=h.join(","),y=ee.test(e)&&ve(t.parentNode)||t}try{return I.apply(i,y.querySelectorAll(v)),i}catch(t){D(e,!0)}finally{c===w&&t.removeAttribute("id")}}}return l(e.replace(q,"$1"),t,i,r)}function le(){var e=[];return function t(n,r){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function ue(e){return e[w]=!0,e}function ce(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&se(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ue(function(t){return t=+t,ue(function(n,i){for(var r,o=e([],n.length,t),s=o.length;s--;)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))})})}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ae.support={},o=ae.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!K.test(t||n&&n.nodeName||"HTML")},p=ae.setDocument=function(e){var t,r,s=e?e.ownerDocument||e:x;return s!==f&&9===s.nodeType&&s.documentElement?(h=(f=s).documentElement,m=!o(f),x!==f&&(r=f.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",oe,!1):r.attachEvent&&r.attachEvent("onunload",oe)),n.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=ce(function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Q.test(f.getElementsByClassName),n.getById=ce(function(e){return h.appendChild(e).id=w,!f.getElementsByName||!f.getElementsByName(w).length}),n.getById?(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=Q.test(f.querySelectorAll))&&(ce(function(e){h.appendChild(e).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+M+"*(?:value|"+H+")"),e.querySelectorAll("[id~="+w+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||g.push(".#.+[+~]")}),ce(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(n.matchesSelector=Q.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ce(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",W)}),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=Q.test(h.compareDocumentPosition),b=t||Q.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},N=t?function(e,t){if(e===t)return d=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e===f||e.ownerDocument===x&&b(x,e)?-1:t===f||t.ownerDocument===x&&b(x,t)?1:c?j(c,e)-j(c,t):0:4&i?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,s=[e],a=[t];if(!r||!o)return e===f?-1:t===f?1:r?-1:o?1:c?j(c,e)-j(c,t):0;if(r===o)return pe(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?pe(s[i],a[i]):s[i]===x?-1:a[i]===x?1:0},f):f},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&p(e),n.matchesSelector&&m&&!D[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var i=y.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){D(t,!0)}return ae(t,f,null,[e]).length>0},ae.contains=function(e,t){return(e.ownerDocument||e)!==f&&p(e),b(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!==f&&p(e);var r=i.attrHandle[t.toLowerCase()],o=r&&k.call(i.attrHandle,t.toLowerCase())?r(e,t,!m):void 0;return void 0!==o?o:n.attributes||!m?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},ae.escape=function(e){return(e+"").replace(ie,re)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,i=[],r=0,o=0;if(d=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(N),d){for(;t=e[o++];)t===e[o]&&(r=i.push(o));for(;r--;)e.splice(i[r],1)}return c=null,e},r=ae.getText=function(e){var t,n="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[i++];)n+=r(t);return n},(i=ae.selectors={cacheLength:50,createPseudo:ue,match:Y,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(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===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]||ae.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]&&ae.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&$.test(n)&&(t=s(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(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&T(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(i){var r=ae.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(B," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var u,c,d,p,f,h,m=o!==s?"nextSibling":"previousSibling",g=t.parentNode,v=a&&t.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(g){if(o){for(;m;){for(p=t;p=p[m];)if(a?p.nodeName.toLowerCase()===v:1===p.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[s?g.firstChild:g.lastChild],s&&y){for(b=(f=(u=(c=(d=(p=g)[w]||(p[w]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===E&&u[1])&&u[2],p=f&&g.childNodes[f];p=++f&&p&&p[m]||(b=f=0)||h.pop();)if(1===p.nodeType&&++b&&p===t){c[e]=[E,f,b];break}}else if(y&&(b=f=(u=(c=(d=(p=t)[w]||(p[w]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===E&&u[1]),!1===b)for(;(p=++f&&p&&p[m]||(b=f=0)||h.pop())&&((a?p.nodeName.toLowerCase()!==v:1!==p.nodeType)||!++b||(y&&((c=(d=p[w]||(p[w]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]=[E,b]),p!==t)););return(b-=r)===i||b%i==0&&b/i>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return r[w]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ue(function(e,n){for(var i,o=r(e,t),s=o.length;s--;)e[i=j(e,o[s])]=!(n[i]=o[s])}):function(e){return r(e,0,n)}):r}},pseudos:{not:ue(function(e){var t=[],n=[],i=a(e.replace(q,"$1"));return i[w]?ue(function(e,t,n,r){for(var o,s=i(e,null,r,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:ue(function(e){return function(t){return ae(e,t).length>0}}),contains:ue(function(e){return e=e.replace(te,ne),function(t){return(t.textContent||r(t)).indexOf(e)>-1}}),lang:ue(function(e){return U.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===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===h},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!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,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return G.test(e.nodeName)},input:function(e){return J.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:ge(function(){return[0]}),last:ge(function(e,t){return[t-1]}),eq:ge(function(e,t,n){return[n<0?n+t:n]}),even:ge(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ge(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ge(function(e,t,n){for(var i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e}),gt:ge(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=fe(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=he(t);function ye(){}function be(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function we(e,t,n){var i=t.dir,r=t.next,o=r||i,s=n&&"parentNode"===o,a=C++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||s)return e(t,n,r);return!1}:function(t,n,l){var u,c,d,p=[E,a];if(l){for(;t=t[i];)if((1===t.nodeType||s)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||s)if(c=(d=t[w]||(t[w]={}))[t.uniqueID]||(d[t.uniqueID]={}),r&&r===t.nodeName.toLowerCase())t=t[i]||t;else{if((u=c[o])&&u[0]===E&&u[1]===a)return p[2]=u[2];if(c[o]=p,p[2]=e(t,n,l))return!0}return!1}}function xe(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function Ee(e,t,n,i,r){for(var o,s=[],a=0,l=e.length,u=null!=t;a<l;a++)(o=e[a])&&(n&&!n(o,i,r)||(s.push(o),u&&t.push(a)));return s}function Ce(e,t,n,i,r,o){return i&&!i[w]&&(i=Ce(i)),r&&!r[w]&&(r=Ce(r,o)),ue(function(o,s,a,l){var u,c,d,p=[],f=[],h=s.length,m=o||function(e,t,n){for(var i=0,r=t.length;i<r;i++)ae(e,t[i],n);return n}(t||"*",a.nodeType?[a]:a,[]),g=!e||!o&&t?m:Ee(m,p,e,a,l),v=n?r||(o?e:h||i)?[]:s:g;if(n&&n(g,v,a,l),i)for(u=Ee(v,f),i(u,[],a,l),c=u.length;c--;)(d=u[c])&&(v[f[c]]=!(g[f[c]]=d));if(o){if(r||e){if(r){for(u=[],c=v.length;c--;)(d=v[c])&&u.push(g[c]=d);r(null,v=[],u,l)}for(c=v.length;c--;)(d=v[c])&&(u=r?j(o,d):p[c])>-1&&(o[u]=!(s[u]=d))}}else v=Ee(v===s?v.splice(h,v.length):v),r?r(null,s,v,l):I.apply(s,v)})}function Te(e){for(var t,n,r,o=e.length,s=i.relative[e[0].type],a=s||i.relative[" "],l=s?1:0,c=we(function(e){return e===t},a,!0),d=we(function(e){return j(t,e)>-1},a,!0),p=[function(e,n,i){var r=!s&&(i||n!==u)||((t=n).nodeType?c(e,n,i):d(e,n,i));return t=null,r}];l<o;l++)if(n=i.relative[e[l].type])p=[we(xe(p),n)];else{if((n=i.filter[e[l].type].apply(null,e[l].matches))[w]){for(r=++l;r<o&&!i.relative[e[r].type];r++);return Ce(l>1&&xe(p),l>1&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(q,"$1"),n,l<r&&Te(e.slice(l,r)),r<o&&Te(e=e.slice(r)),r<o&&be(e))}p.push(n)}return xe(p)}return ye.prototype=i.filters=i.pseudos,i.setFilters=new ye,s=ae.tokenize=function(e,t){var n,r,o,s,a,l,u,c=_[e+" "];if(c)return t?0:c.slice(0);for(a=e,l=[],u=i.preFilter;a;){for(s in n&&!(r=V.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(o=[])),n=!1,(r=z.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(q," ")}),a=a.slice(n.length)),i.filter)!(r=Y[s].exec(a))||u[s]&&!(r=u[s](r))||(n=r.shift(),o.push({value:n,type:s,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?ae.error(e):_(e,l).slice(0)},a=ae.compile=function(e,t){var n,r=[],o=[],a=S[e+" "];if(!a){for(t||(t=s(e)),n=t.length;n--;)(a=Te(t[n]))[w]?r.push(a):o.push(a);(a=S(e,function(e,t){var n=t.length>0,r=e.length>0,o=function(o,s,a,l,c){var d,h,g,v=0,y="0",b=o&&[],w=[],x=u,C=o||r&&i.find.TAG("*",c),T=E+=null==x?1:Math.random()||.1,_=C.length;for(c&&(u=s===f||s||c);y!==_&&null!=(d=C[y]);y++){if(r&&d){for(h=0,s||d.ownerDocument===f||(p(d),a=!m);g=e[h++];)if(g(d,s||f,a)){l.push(d);break}c&&(E=T)}n&&((d=!g&&d)&&v--,o&&b.push(d))}if(v+=y,n&&y!==v){for(h=0;g=t[h++];)g(b,w,s,a);if(o){if(v>0)for(;y--;)b[y]||w[y]||(w[y]=A.call(l));w=Ee(w)}I.apply(l,w),c&&!o&&w.length>0&&v+t.length>1&&ae.uniqueSort(l)}return c&&(E=T,u=x),b};return n?ue(o):o}(o,r))).selector=e}return a},l=ae.select=function(e,t,n,r){var o,l,u,c,d,p="function"==typeof e&&e,f=!r&&s(e=p.selector||e);if(n=n||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===t.nodeType&&m&&i.relative[l[1].type]){if(!(t=(i.find.ID(u.matches[0].replace(te,ne),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(o=Y.needsContext.test(e)?0:l.length;o--&&(u=l[o],!i.relative[c=u.type]);)if((d=i.find[c])&&(r=d(u.matches[0].replace(te,ne),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(o,1),!(e=r.length&&be(l)))return I.apply(n,r),n;break}}return(p||a(e,f))(r,t,!m,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=w.split("").sort(N).join("")===w,n.detectDuplicates=!!d,p(),n.sortDetached=ce(function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))}),ce(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||de("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&ce(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||de("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ce(function(e){return null==e.getAttribute("disabled")})||de(H,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),ae}(e);w.find=C,w.expr=C.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=C.uniqueSort,w.text=C.getText,w.isXMLDoc=C.isXML,w.contains=C.contains,w.escapeSelector=C.escape;var T=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&w(e).is(n))break;i.push(e)}return i},_=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},S=w.expr.match.needsContext;function D(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function k(e,t,n){return m(t)?w.grep(e,function(e,i){return!!t.call(e,i,e)!==n}):t.nodeType?w.grep(e,function(e){return e===t!==n}):"string"!=typeof t?w.grep(e,function(e){return l.call(t,e)>-1!==n}):w.filter(t,e,n)}w.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?w.find.matchesSelector(i,e)?[i]:[]:w.find.matches(e,w.grep(t,function(e){return 1===e.nodeType}))},w.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(w(e).filter(function(){for(t=0;t<i;t++)if(w.contains(r[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)w.find(e,r[t],n);return i>1?w.uniqueSort(n):n},filter:function(e){return this.pushStack(k(this,e||[],!1))},not:function(e){return this.pushStack(k(this,e||[],!0))},is:function(e){return!!k(this,"string"==typeof e&&S.test(e)?w(e):e||[],!1).length}});var O,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(e,t,n){var r,o;if(!e)return this;if(n=n||O,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:A.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:i,!0)),N.test(r[1])&&w.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(o=i.getElementById(r[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(w):w.makeArray(e,this)}).prototype=w.fn,O=w(i);var P=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};function L(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t=w(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(w.contains(this,t[e]))return!0})},closest:function(e,t){var n,i=0,r=this.length,o=[],s="string"!=typeof e&&w(e);if(!S.test(e))for(;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&w.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?w.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?l.call(w(e),this[0]):l.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),w.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return T(e,"parentNode")},parentsUntil:function(e,t,n){return T(e,"parentNode",n)},next:function(e){return L(e,"nextSibling")},prev:function(e){return L(e,"previousSibling")},nextAll:function(e){return T(e,"nextSibling")},prevAll:function(e){return T(e,"previousSibling")},nextUntil:function(e,t,n){return T(e,"nextSibling",n)},prevUntil:function(e,t,n){return T(e,"previousSibling",n)},siblings:function(e){return _((e.parentNode||{}).firstChild,e)},children:function(e){return _(e.firstChild)},contents:function(e){return void 0!==e.contentDocument?e.contentDocument:(D(e,"template")&&(e=e.content||e),w.merge([],e.childNodes))}},function(e,t){w.fn[e]=function(n,i){var r=w.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=w.filter(i,r)),this.length>1&&(I[e]||w.uniqueSort(r),P.test(e)&&r.reverse()),this.pushStack(r)}});var j=/[^\x20\t\r\n\f]+/g;function H(e){return e}function M(e){throw e}function R(e,t,n,i){var r;try{e&&m(r=e.promise)?r.call(e).done(t).fail(n):e&&m(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}w.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return w.each(e.match(j)||[],function(e,n){t[n]=!0}),t}(e):w.extend({},e);var t,n,i,r,o=[],s=[],a=-1,l=function(){for(r=r||e.once,i=t=!0;s.length;a=-1)for(n=s.shift();++a<o.length;)!1===o[a].apply(n[0],n[1])&&e.stopOnFalse&&(a=o.length,n=!1);e.memory||(n=!1),t=!1,r&&(o=n?[]:"")},u={add:function(){return o&&(n&&!t&&(a=o.length-1,s.push(n)),function t(n){w.each(n,function(n,i){m(i)?e.unique&&u.has(i)||o.push(i):i&&i.length&&"string"!==b(i)&&t(i)})}(arguments),n&&!t&&l()),this},remove:function(){return w.each(arguments,function(e,t){for(var n;(n=w.inArray(t,o,n))>-1;)o.splice(n,1),n<=a&&a--}),this},has:function(e){return e?w.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=s=[],n||t||(o=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],s.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},w.extend({Deferred:function(t){var n=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return w.Deferred(function(t){w.each(n,function(n,i){var r=m(e[i[4]])&&e[i[4]];o[i[1]](function(){var e=r&&r.apply(this,arguments);e&&m(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[i[0]+"With"](this,r?[e]:arguments)})}),e=null}).promise()},then:function(t,i,r){var o=0;function s(t,n,i,r){return function(){var a=this,l=arguments,u=function(){var e,u;if(!(t<o)){if((e=i.apply(a,l))===n.promise())throw new TypeError("Thenable self-resolution");u=e&&("object"==typeof e||"function"==typeof e)&&e.then,m(u)?r?u.call(e,s(o,n,H,r),s(o,n,M,r)):(o++,u.call(e,s(o,n,H,r),s(o,n,M,r),s(o,n,H,n.notifyWith))):(i!==H&&(a=void 0,l=[e]),(r||n.resolveWith)(a,l))}},c=r?u:function(){try{u()}catch(e){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(e,c.stackTrace),t+1>=o&&(i!==M&&(a=void 0,l=[e]),n.rejectWith(a,l))}};t?c():(w.Deferred.getStackHook&&(c.stackTrace=w.Deferred.getStackHook()),e.setTimeout(c))}}return w.Deferred(function(e){n[0][3].add(s(0,e,m(r)?r:H,e.notifyWith)),n[1][3].add(s(0,e,m(t)?t:H)),n[2][3].add(s(0,e,m(i)?i:M))}).promise()},promise:function(e){return null!=e?w.extend(e,r):r}},o={};return w.each(n,function(e,t){var s=t[2],a=t[5];r[t[1]]=s.add,a&&s.add(function(){i=a},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),s.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=s.fireWith}),r.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,i=Array(n),r=o.call(arguments),s=w.Deferred(),a=function(e){return function(n){i[e]=this,r[e]=arguments.length>1?o.call(arguments):n,--t||s.resolveWith(i,r)}};if(t<=1&&(R(e,s.done(a(n)).resolve,s.reject,!t),"pending"===s.state()||m(r[n]&&r[n].then)))return s.then();for(;n--;)R(r[n],a(n),s.reject);return s.promise()}});var F=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&F.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},w.readyException=function(t){e.setTimeout(function(){throw t})};var W=w.Deferred();function B(){i.removeEventListener("DOMContentLoaded",B),e.removeEventListener("load",B),w.ready()}w.fn.ready=function(e){return W.then(e).catch(function(e){w.readyException(e)}),this},w.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==e&&--w.readyWait>0||W.resolveWith(i,[w]))}}),w.ready.then=W.then,"complete"===i.readyState||"loading"!==i.readyState&&!i.documentElement.doScroll?e.setTimeout(w.ready):(i.addEventListener("DOMContentLoaded",B),e.addEventListener("load",B));var q=function(e,t,n,i,r,o,s){var a=0,l=e.length,u=null==n;if("object"===b(n))for(a in r=!0,n)q(e,t,a,n[a],!0,o,s);else if(void 0!==i&&(r=!0,m(i)||(s=!0),u&&(s?(t.call(e,i),t=null):(u=t,t=function(e,t,n){return u.call(w(e),n)})),t))for(;a<l;a++)t(e[a],n,s?i:i.call(e[a],a,t(e[a],n)));return r?e:u?t.call(e):l?t(e[0],n):o},V=/^-ms-/,z=/-([a-z])/g;function X(e,t){return t.toUpperCase()}function $(e){return e.replace(V,"ms-").replace(z,X)}var U=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Y(){this.expando=w.expando+Y.uid++}Y.uid=1,Y.prototype={cache:function(e){var t=e[this.expando];return t||(t={},U(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[$(t)]=n;else for(i in t)r[$(i)]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][$(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map($):(t=$(t))in i?[t]:t.match(j)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||w.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!w.isEmptyObject(t)}};var K=new Y,J=new Y,G=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Q=/[A-Z]/g;function Z(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(Q,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:G.test(e)?JSON.parse(e):e)}(n)}catch(e){}J.set(e,t,n)}else n=void 0;return n}w.extend({hasData:function(e){return J.hasData(e)||K.hasData(e)},data:function(e,t,n){return J.access(e,t,n)},removeData:function(e,t){J.remove(e,t)},_data:function(e,t,n){return K.access(e,t,n)},_removeData:function(e,t){K.remove(e,t)}}),w.fn.extend({data:function(e,t){var n,i,r,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(r=J.get(o),1===o.nodeType&&!K.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=$(i.slice(5)),Z(o,i,r[i]));K.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each(function(){J.set(this,e)}):q(this,function(t){var n;if(o&&void 0===t)return void 0!==(n=J.get(o,e))?n:void 0!==(n=Z(o,e))?n:void 0;this.each(function(){J.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){J.remove(this,e)})}}),w.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=K.get(e,t),n&&(!i||Array.isArray(n)?i=K.access(e,t,w.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=w.queue(e,t),i=n.length,r=n.shift(),o=w._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,function(){w.dequeue(e,t)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return K.get(e,n)||K.access(e,n,{empty:w.Callbacks("once memory").add(function(){K.remove(e,[t+"queue",n])})})}}),w.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?w.queue(this[0],e):void 0===t?this:this.each(function(){var n=w.queue(this,e,t);w._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&w.dequeue(this,e)})},dequeue:function(e){return this.each(function(){w.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=w.Deferred(),o=this,s=this.length,a=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=K.get(o[s],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),ne=["Top","Right","Bottom","Left"],ie=i.documentElement,re=function(e){return w.contains(e.ownerDocument,e)},oe={composed:!0};ie.getRootNode&&(re=function(e){return w.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var se=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&re(e)&&"none"===w.css(e,"display")},ae=function(e,t,n,i){var r,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];for(o in r=n.apply(e,i||[]),t)e.style[o]=s[o];return r};function le(e,t,n,i){var r,o,s=20,a=i?function(){return i.cur()}:function(){return w.css(e,t,"")},l=a(),u=n&&n[3]||(w.cssNumber[t]?"":"px"),c=e.nodeType&&(w.cssNumber[t]||"px"!==u&&+l)&&te.exec(w.css(e,t));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;s--;)w.style(e,t,c+u),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),c/=o;c*=2,w.style(e,t,c+u),n=n||[]}return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=r)),r}var ue={};function ce(e){var t,n=e.ownerDocument,i=e.nodeName,r=ue[i];return r||(t=n.body.appendChild(n.createElement(i)),r=w.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),ue[i]=r,r)}function de(e,t){for(var n,i,r=[],o=0,s=e.length;o<s;o++)(i=e[o]).style&&(n=i.style.display,t?("none"===n&&(r[o]=K.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&se(i)&&(r[o]=ce(i))):"none"!==n&&(r[o]="none",K.set(i,"display",n)));for(o=0;o<s;o++)null!=r[o]&&(e[o].style.display=r[o]);return e}w.fn.extend({show:function(){return de(this,!0)},hide:function(){return de(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){se(this)?w(this).show():w(this).hide()})}});var pe=/^(?:checkbox|radio)$/i,fe=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i,me={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ge(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&D(e,t)?w.merge([e],n):n}function ve(e,t){for(var n=0,i=e.length;n<i;n++)K.set(e[n],"globalEval",!t||K.get(t[n],"globalEval"))}me.optgroup=me.option,me.tbody=me.tfoot=me.colgroup=me.caption=me.thead,me.th=me.td;var ye,be,we=/<|&#?\w+;/;function xe(e,t,n,i,r){for(var o,s,a,l,u,c,d=t.createDocumentFragment(),p=[],f=0,h=e.length;f<h;f++)if((o=e[f])||0===o)if("object"===b(o))w.merge(p,o.nodeType?[o]:o);else if(we.test(o)){for(s=s||d.appendChild(t.createElement("div")),a=(fe.exec(o)||["",""])[1].toLowerCase(),l=me[a]||me._default,s.innerHTML=l[1]+w.htmlPrefilter(o)+l[2],c=l[0];c--;)s=s.lastChild;w.merge(p,s.childNodes),(s=d.firstChild).textContent=""}else p.push(t.createTextNode(o));for(d.textContent="",f=0;o=p[f++];)if(i&&w.inArray(o,i)>-1)r&&r.push(o);else if(u=re(o),s=ge(d.appendChild(o),"script"),u&&ve(s),n)for(c=0;o=s[c++];)he.test(o.type||"")&&n.push(o);return d}ye=i.createDocumentFragment().appendChild(i.createElement("div")),(be=i.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),ye.appendChild(be),h.checkClone=ye.cloneNode(!0).cloneNode(!0).lastChild.checked,ye.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!ye.cloneNode(!0).lastChild.defaultValue;var Ee=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Te=/^([^.]*)(?:\.(.+)|)/;function _e(){return!0}function Se(){return!1}function De(e,t){return e===function(){try{return i.activeElement}catch(e){}}()==("focus"===t)}function Ne(e,t,n,i,r,o){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=void 0),t)Ne(e,a,n,i,t[a],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Se;else if(!r)return e;return 1===o&&(s=r,(r=function(e){return w().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=w.guid++)),e.each(function(){w.event.add(this,t,r,i,n)})}function ke(e,t,n){n?(K.set(e,t,!1),w.event.add(e,t,{namespace:!1,handler:function(e){var i,r,s=K.get(this,t);if(1&e.isTrigger&&this[t]){if(s.length)(w.event.special[t]||{}).delegateType&&e.stopPropagation();else if(s=o.call(arguments),K.set(this,t,s),i=n(this,t),this[t](),s!==(r=K.get(this,t))||i?K.set(this,t,!1):r={},s!==r)return e.stopImmediatePropagation(),e.preventDefault(),r.value}else s.length&&(K.set(this,t,{value:w.event.trigger(w.extend(s[0],w.Event.prototype),s.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===K.get(e,t)&&w.event.add(e,t,_e)}w.event={global:{},add:function(e,t,n,i,r){var o,s,a,l,u,c,d,p,f,h,m,g=K.get(e);if(g)for(n.handler&&(n=(o=n).handler,r=o.selector),r&&w.find.matchesSelector(ie,r),n.guid||(n.guid=w.guid++),(l=g.events)||(l=g.events={}),(s=g.handle)||(s=g.handle=function(t){return void 0!==w&&w.event.triggered!==t.type?w.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(j)||[""]).length;u--;)f=m=(a=Te.exec(t[u])||[])[1],h=(a[2]||"").split(".").sort(),f&&(d=w.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=w.event.special[f]||{},c=w.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&w.expr.match.needsContext.test(r),namespace:h.join(".")},o),(p=l[f])||((p=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,h,s)||e.addEventListener&&e.addEventListener(f,s)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),r?p.splice(p.delegateCount++,0,c):p.push(c),w.event.global[f]=!0)},remove:function(e,t,n,i,r){var o,s,a,l,u,c,d,p,f,h,m,g=K.hasData(e)&&K.get(e);if(g&&(l=g.events)){for(u=(t=(t||"").match(j)||[""]).length;u--;)if(f=m=(a=Te.exec(t[u])||[])[1],h=(a[2]||"").split(".").sort(),f){for(d=w.event.special[f]||{},p=l[f=(i?d.delegateType:d.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=p.length;o--;)c=p[o],!r&&m!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,d.remove&&d.remove.call(e,c));s&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,h,g.handle)||w.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)w.event.remove(e,f+t[u],n,i,!0);w.isEmptyObject(l)&&K.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,o,s,a=w.event.fix(e),l=new Array(arguments.length),u=(K.get(this,"events")||{})[a.type]||[],c=w.event.special[a.type]||{};for(l[0]=a,t=1;t<arguments.length;t++)l[t]=arguments[t];if(a.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,a)){for(s=w.event.handlers.call(this,a,u),t=0;(r=s[t++])&&!a.isPropagationStopped();)for(a.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!1!==o.namespace&&!a.rnamespace.test(o.namespace)||(a.handleObj=o,a.data=o.data,void 0!==(i=((w.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,l))&&!1===(a.result=i)&&(a.preventDefault(),a.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,a),a.result}},handlers:function(e,t){var n,i,r,o,s,a=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],s={},n=0;n<l;n++)void 0===s[r=(i=t[n]).selector+" "]&&(s[r]=i.needsContext?w(r,this).index(u)>-1:w.find(r,this,null,[u]).length),s[r]&&o.push(i);o.length&&a.push({elem:u,handlers:o})}return u=this,l<t.length&&a.push({elem:u,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(w.Event.prototype,e,{enumerable:!0,configurable:!0,get:m(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[w.expando]?e:new w.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return pe.test(t.type)&&t.click&&D(t,"input")&&ke(t,"click",_e),!1},trigger:function(e){var t=this||e;return pe.test(t.type)&&t.click&&D(t,"input")&&ke(t,"click"),!0},_default:function(e){var t=e.target;return pe.test(t.type)&&t.click&&D(t,"input")&&K.get(t,"click")||D(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},w.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},w.Event=function(e,t){if(!(this instanceof w.Event))return new w.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?_e:Se,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&w.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:Se,isPropagationStopped:Se,isImmediatePropagationStopped:Se,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=_e,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=_e,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=_e,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},w.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Ee.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ce.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},w.event.addProp),w.each({focus:"focusin",blur:"focusout"},function(e,t){w.event.special[e]={setup:function(){return ke(this,e,De),!1},trigger:function(){return ke(this,e),!0},delegateType:t}}),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){w.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,r=e.handleObj;return i&&(i===this||w.contains(this,i))||(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}}),w.fn.extend({on:function(e,t,n,i){return Ne(this,e,t,n,i)},one:function(e,t,n,i){return Ne(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,w(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Se),this.each(function(){w.event.remove(this,e,n,t)})}});var Oe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ae=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Ie=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Le(e,t){return D(e,"table")&&D(11!==t.nodeType?t:t.firstChild,"tr")&&w(e).children("tbody")[0]||e}function je(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function He(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,i,r,o,s,a,l,u;if(1===t.nodeType){if(K.hasData(e)&&(o=K.access(e),s=K.set(t,o),u=o.events))for(r in delete s.handle,s.events={},u)for(n=0,i=u[r].length;n<i;n++)w.event.add(t,r,u[r][n]);J.hasData(e)&&(a=J.access(e),l=w.extend({},a),J.set(t,l))}}function Re(e,t,n,i){t=s.apply([],t);var r,o,a,l,u,c,d=0,p=e.length,f=p-1,g=t[0],v=m(g);if(v||p>1&&"string"==typeof g&&!h.checkClone&&Pe.test(g))return e.each(function(r){var o=e.eq(r);v&&(t[0]=g.call(this,r,o.html())),Re(o,t,n,i)});if(p&&(o=(r=xe(t,e[0].ownerDocument,!1,e,i)).firstChild,1===r.childNodes.length&&(r=o),o||i)){for(l=(a=w.map(ge(r,"script"),je)).length;d<p;d++)u=r,d!==f&&(u=w.clone(u,!0,!0),l&&w.merge(a,ge(u,"script"))),n.call(e[d],u,d);if(l)for(c=a[a.length-1].ownerDocument,w.map(a,He),d=0;d<l;d++)u=a[d],he.test(u.type||"")&&!K.access(u,"globalEval")&&w.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?w._evalUrl&&!u.noModule&&w._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")}):y(u.textContent.replace(Ie,""),u,c))}return e}function Fe(e,t,n){for(var i,r=t?w.filter(t,e):e,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||w.cleanData(ge(i)),i.parentNode&&(n&&re(i)&&ve(ge(i,"script")),i.parentNode.removeChild(i));return e}w.extend({htmlPrefilter:function(e){return e.replace(Oe,"<$1></$2>")},clone:function(e,t,n){var i,r,o,s,a,l,u,c=e.cloneNode(!0),d=re(e);if(!(h.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(s=ge(c),i=0,r=(o=ge(e)).length;i<r;i++)a=o[i],l=s[i],void 0,"input"===(u=l.nodeName.toLowerCase())&&pe.test(a.type)?l.checked=a.checked:"input"!==u&&"textarea"!==u||(l.defaultValue=a.defaultValue);if(t)if(n)for(o=o||ge(e),s=s||ge(c),i=0,r=o.length;i<r;i++)Me(o[i],s[i]);else Me(e,c);return(s=ge(c,"script")).length>0&&ve(s,!d&&ge(e,"script")),c},cleanData:function(e){for(var t,n,i,r=w.event.special,o=0;void 0!==(n=e[o]);o++)if(U(n)){if(t=n[K.expando]){if(t.events)for(i in t.events)r[i]?w.event.remove(n,i):w.removeEvent(n,i,t.handle);n[K.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),w.fn.extend({detach:function(e){return Fe(this,e,!0)},remove:function(e){return Fe(this,e)},text:function(e){return q(this,function(e){return void 0===e?w.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return Re(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Le(this,e).appendChild(e)})},prepend:function(){return Re(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Le(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Re(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Re(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(w.cleanData(ge(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return w.clone(this,e,t)})},html:function(e){return q(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ae.test(e)&&!me[(fe.exec(e)||["",""])[1].toLowerCase()]){e=w.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(w.cleanData(ge(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Re(this,arguments,function(t){var n=this.parentNode;w.inArray(this,e)<0&&(w.cleanData(ge(this)),n&&n.replaceChild(t,this))},e)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){w.fn[e]=function(e){for(var n,i=[],r=w(e),o=r.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),w(r[s])[t](n),a.apply(i,n.get());return this.pushStack(i)}});var We=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),Be=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},qe=new RegExp(ne.join("|"),"i");function Ve(e,t,n){var i,r,o,s,a=e.style;return(n=n||Be(e))&&(""!==(s=n.getPropertyValue(t)||n[t])||re(e)||(s=w.style(e,t)),!h.pixelBoxStyles()&&We.test(s)&&qe.test(t)&&(i=a.width,r=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=r,a.maxWidth=o)),void 0!==s?s+"":s}function ze(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ie.appendChild(u).appendChild(c);var t=e.getComputedStyle(c);r="1%"!==t.top,l=12===n(t.marginLeft),c.style.right="60%",a=36===n(t.right),o=36===n(t.width),c.style.position="absolute",s=12===n(c.offsetWidth/3),ie.removeChild(u),c=null}}function n(e){return Math.round(parseFloat(e))}var r,o,s,a,l,u=i.createElement("div"),c=i.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",h.clearCloneStyle="content-box"===c.style.backgroundClip,w.extend(h,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),s}}))}();var Xe=["Webkit","Moz","ms"],$e=i.createElement("div").style,Ue={};function Ye(e){var t=w.cssProps[e]||Ue[e];return t||(e in $e?e:Ue[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Xe.length;n--;)if((e=Xe[n]+t)in $e)return e}(e)||e)}var Ke=/^(none|table(?!-c[ea]).+)/,Je=/^--/,Ge={position:"absolute",visibility:"hidden",display:"block"},Qe={letterSpacing:"0",fontWeight:"400"};function Ze(e,t,n){var i=te.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function et(e,t,n,i,r,o){var s="width"===t?1:0,a=0,l=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=w.css(e,n+ne[s],!0,r)),i?("content"===n&&(l-=w.css(e,"padding"+ne[s],!0,r)),"margin"!==n&&(l-=w.css(e,"border"+ne[s]+"Width",!0,r))):(l+=w.css(e,"padding"+ne[s],!0,r),"padding"!==n?l+=w.css(e,"border"+ne[s]+"Width",!0,r):a+=w.css(e,"border"+ne[s]+"Width",!0,r));return!i&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-a-.5))||0),l}function tt(e,t,n){var i=Be(e),r=(!h.boxSizingReliable()||n)&&"border-box"===w.css(e,"boxSizing",!1,i),o=r,s=Ve(e,t,i),a="offset"+t[0].toUpperCase()+t.slice(1);if(We.test(s)){if(!n)return s;s="auto"}return(!h.boxSizingReliable()&&r||"auto"===s||!parseFloat(s)&&"inline"===w.css(e,"display",!1,i))&&e.getClientRects().length&&(r="border-box"===w.css(e,"boxSizing",!1,i),(o=a in e)&&(s=e[a])),(s=parseFloat(s)||0)+et(e,t,n||(r?"border":"content"),o,i,s)+"px"}function nt(e,t,n,i,r){return new nt.prototype.init(e,t,n,i,r)}w.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ve(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,s,a=$(t),l=Je.test(t),u=e.style;if(l||(t=Ye(a)),s=w.cssHooks[t]||w.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(r=s.get(e,!1,i))?r:u[t];"string"===(o=typeof n)&&(r=te.exec(n))&&r[1]&&(n=le(e,t,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(w.cssNumber[a]?"":"px")),h.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,i))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,i){var r,o,s,a=$(t);return Je.test(t)||(t=Ye(a)),(s=w.cssHooks[t]||w.cssHooks[a])&&"get"in s&&(r=s.get(e,!0,n)),void 0===r&&(r=Ve(e,t,i)),"normal"===r&&t in Qe&&(r=Qe[t]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),w.each(["height","width"],function(e,t){w.cssHooks[t]={get:function(e,n,i){if(n)return!Ke.test(w.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?tt(e,t,i):ae(e,Ge,function(){return tt(e,t,i)})},set:function(e,n,i){var r,o=Be(e),s=!h.scrollboxSize()&&"absolute"===o.position,a=(s||i)&&"border-box"===w.css(e,"boxSizing",!1,o),l=i?et(e,t,i,a,o):0;return a&&s&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-et(e,t,"border",!1,o)-.5)),l&&(r=te.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=w.css(e,t)),Ze(0,n,l)}}}),w.cssHooks.marginLeft=ze(h.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ve(e,"marginLeft"))||e.getBoundingClientRect().left-ae(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(e,t){w.cssHooks[e+t]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+ne[i]+t]=o[i]||o[i-2]||o[0];return r}},"margin"!==e&&(w.cssHooks[e+t].set=Ze)}),w.fn.extend({css:function(e,t){return q(this,function(e,t,n){var i,r,o={},s=0;if(Array.isArray(t)){for(i=Be(e),r=t.length;s<r;s++)o[t[s]]=w.css(e,t[s],!1,i);return o}return void 0!==n?w.style(e,t,n):w.css(e,t)},e,t,arguments.length>1)}}),w.Tween=nt,nt.prototype={constructor:nt,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||w.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(w.cssNumber[n]?"":"px")},cur:function(){var e=nt.propHooks[this.prop];return e&&e.get?e.get(this):nt.propHooks._default.get(this)},run:function(e){var t,n=nt.propHooks[this.prop];return this.options.duration?this.pos=t=w.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):nt.propHooks._default.set(this),this}},nt.prototype.init.prototype=nt.prototype,nt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=w.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){w.fx.step[e.prop]?w.fx.step[e.prop](e):1!==e.elem.nodeType||!w.cssHooks[e.prop]&&null==e.elem.style[Ye(e.prop)]?e.elem[e.prop]=e.now:w.style(e.elem,e.prop,e.now+e.unit)}}},nt.propHooks.scrollTop=nt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},w.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},w.fx=nt.prototype.init,w.fx.step={};var it,rt,ot=/^(?:toggle|show|hide)$/,st=/queueHooks$/;function at(){rt&&(!1===i.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(at):e.setTimeout(at,w.fx.interval),w.fx.tick())}function lt(){return e.setTimeout(function(){it=void 0}),it=Date.now()}function ut(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=ne[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function ct(e,t,n){for(var i,r=(dt.tweeners[t]||[]).concat(dt.tweeners["*"]),o=0,s=r.length;o<s;o++)if(i=r[o].call(n,t,e))return i}function dt(e,t,n){var i,r,o=0,s=dt.prefilters.length,a=w.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var t=it||lt(),n=Math.max(0,u.startTime+u.duration-t),i=1-(n/u.duration||0),o=0,s=u.tweens.length;o<s;o++)u.tweens[o].run(i);return a.notifyWith(e,[u,i,n]),i<1&&s?n:(s||a.notifyWith(e,[u,1,0]),a.resolveWith(e,[u]),!1)},u=a.promise({elem:e,props:w.extend({},t),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},n),originalProperties:t,originalOptions:n,startTime:it||lt(),duration:n.duration,tweens:[],createTween:function(t,n){var i=w.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(i),i},stop:function(t){var n=0,i=t?u.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)u.tweens[n].run(1);return t?(a.notifyWith(e,[u,1,0]),a.resolveWith(e,[u,t])):a.rejectWith(e,[u,t]),this}}),c=u.props;for(!function(e,t){var n,i,r,o,s;for(n in e)if(r=t[i=$(n)],o=e[n],Array.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),(s=w.cssHooks[i])&&"expand"in s)for(n in o=s.expand(o),delete e[i],o)n in e||(e[n]=o[n],t[n]=r);else t[i]=r}(c,u.opts.specialEasing);o<s;o++)if(i=dt.prefilters[o].call(u,e,c,u.opts))return m(i.stop)&&(w._queueHooks(u.elem,u.opts.queue).stop=i.stop.bind(i)),i;return w.map(c,ct,u),m(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),w.fx.timer(w.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}w.Animation=w.extend(dt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return le(n.elem,e,te.exec(t),n),n}]},tweener:function(e,t){m(e)?(t=e,e=["*"]):e=e.match(j);for(var n,i=0,r=e.length;i<r;i++)n=e[i],dt.tweeners[n]=dt.tweeners[n]||[],dt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,r,o,s,a,l,u,c,d="width"in t||"height"in t,p=this,f={},h=e.style,m=e.nodeType&&se(e),g=K.get(e,"fxshow");for(i in n.queue||(null==(s=w._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,p.always(function(){p.always(function(){s.unqueued--,w.queue(e,"fx").length||s.empty.fire()})})),t)if(r=t[i],ot.test(r)){if(delete t[i],o=o||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;m=!0}f[i]=g&&g[i]||w.style(e,i)}if((l=!w.isEmptyObject(t))||!w.isEmptyObject(f))for(i in d&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(u=g&&g.display)&&(u=K.get(e,"display")),"none"===(c=w.css(e,"display"))&&(u?c=u:(de([e],!0),u=e.style.display||u,c=w.css(e,"display"),de([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===w.css(e,"float")&&(l||(p.done(function(){h.display=u}),null==u&&(c=h.display,u="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),l=!1,f)l||(g?"hidden"in g&&(m=g.hidden):g=K.access(e,"fxshow",{display:u}),o&&(g.hidden=!m),m&&de([e],!0),p.done(function(){for(i in m||de([e]),K.remove(e,"fxshow"),f)w.style(e,i,f[i])})),l=ct(m?g[i]:0,i,p),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?dt.prefilters.unshift(e):dt.prefilters.push(e)}}),w.speed=function(e,t,n){var i=e&&"object"==typeof e?w.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return w.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in w.fx.speeds?i.duration=w.fx.speeds[i.duration]:i.duration=w.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){m(i.old)&&i.old.call(this),i.queue&&w.dequeue(this,i.queue)},i},w.fn.extend({fadeTo:function(e,t,n,i){return this.filter(se).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=w.isEmptyObject(e),o=w.speed(t,n,i),s=function(){var t=dt(this,w.extend({},e),o);(r||K.get(this,"finish"))&&t.stop(!0)};return s.finish=s,r||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,r=null!=e&&e+"queueHooks",o=w.timers,s=K.get(this);if(r)s[r]&&s[r].stop&&i(s[r]);else for(r in s)s[r]&&s[r].stop&&st.test(r)&&i(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(n),t=!1,o.splice(r,1));!t&&n||w.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=K.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],o=w.timers,s=i?i.length:0;for(n.finish=!0,w.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<s;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),w.each(["toggle","show","hide"],function(e,t){var n=w.fn[t];w.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ut(t,!0),e,i,r)}}),w.each({slideDown:ut("show"),slideUp:ut("hide"),slideToggle:ut("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){w.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),w.timers=[],w.fx.tick=function(){var e,t=0,n=w.timers;for(it=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||w.fx.stop(),it=void 0},w.fx.timer=function(e){w.timers.push(e),w.fx.start()},w.fx.interval=13,w.fx.start=function(){rt||(rt=!0,at())},w.fx.stop=function(){rt=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(t,n){return t=w.fx&&w.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,i){var r=e.setTimeout(n,t);i.stop=function(){e.clearTimeout(r)}})},function(){var e=i.createElement("input"),t=i.createElement("select").appendChild(i.createElement("option"));e.type="checkbox",h.checkOn=""!==e.value,h.optSelected=t.selected,(e=i.createElement("input")).value="t",e.type="radio",h.radioValue="t"===e.value}();var pt,ft=w.expr.attrHandle;w.fn.extend({attr:function(e,t){return q(this,w.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){w.removeAttr(this,e)})}}),w.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?w.prop(e,t,n):(1===o&&w.isXMLDoc(e)||(r=w.attrHooks[t.toLowerCase()]||(w.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void w.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=w.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&D(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(j);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?w.removeAttr(e,n):e.setAttribute(n,n),n}},w.each(w.expr.match.bool.source.match(/\w+/g),function(e,t){var n=ft[t]||w.find.attr;ft[t]=function(e,t,i){var r,o,s=t.toLowerCase();return i||(o=ft[s],ft[s]=r,r=null!=n(e,t,i)?s:null,ft[s]=o),r}});var ht=/^(?:input|select|textarea|button)$/i,mt=/^(?:a|area)$/i;function gt(e){return(e.match(j)||[]).join(" ")}function vt(e){return e.getAttribute&&e.getAttribute("class")||""}function yt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(j)||[]}w.fn.extend({prop:function(e,t){return q(this,w.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[w.propFix[e]||e]})}}),w.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&w.isXMLDoc(e)||(t=w.propFix[t]||t,r=w.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=w.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||mt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(w.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this}),w.fn.extend({addClass:function(e){var t,n,i,r,o,s,a,l=0;if(m(e))return this.each(function(t){w(this).addClass(e.call(this,t,vt(this)))});if((t=yt(e)).length)for(;n=this[l++];)if(r=vt(n),i=1===n.nodeType&&" "+gt(r)+" "){for(s=0;o=t[s++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(a=gt(i))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,i,r,o,s,a,l=0;if(m(e))return this.each(function(t){w(this).removeClass(e.call(this,t,vt(this)))});if(!arguments.length)return this.attr("class","");if((t=yt(e)).length)for(;n=this[l++];)if(r=vt(n),i=1===n.nodeType&&" "+gt(r)+" "){for(s=0;o=t[s++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");r!==(a=gt(i))&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e,i="string"===n||Array.isArray(e);return"boolean"==typeof t&&i?t?this.addClass(e):this.removeClass(e):m(e)?this.each(function(n){w(this).toggleClass(e.call(this,n,vt(this),t),t)}):this.each(function(){var t,r,o,s;if(i)for(r=0,o=w(this),s=yt(e);t=s[r++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=vt(this))&&K.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":K.get(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+gt(vt(n))+" ").indexOf(t)>-1)return!0;return!1}});var bt=/\r/g;w.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=m(e),this.each(function(n){var r;1===this.nodeType&&(null==(r=i?e.call(this,n,w(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=w.map(r,function(e){return null==e?"":e+""})),(t=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))})):r?(t=w.valHooks[r.type]||w.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(bt,""):null==n?"":n:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:gt(w.text(e))}},select:{get:function(e){var t,n,i,r=e.options,o=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?o+1:r.length;for(i=o<0?l:s?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!D(n.parentNode,"optgroup"))){if(t=w(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,i,r=e.options,o=w.makeArray(t),s=r.length;s--;)((i=r[s]).selected=w.inArray(w.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=w.inArray(w(e).val(),t)>-1}},h.checkOn||(w.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),h.focusin="onfocusin"in e;var wt=/^(?:focusinfocus|focusoutblur)$/,xt=function(e){e.stopPropagation()};w.extend(w.event,{trigger:function(t,n,r,o){var s,a,l,u,c,p,f,h,v=[r||i],y=d.call(t,"type")?t.type:t,b=d.call(t,"namespace")?t.namespace.split("."):[];if(a=h=l=r=r||i,3!==r.nodeType&&8!==r.nodeType&&!wt.test(y+w.event.triggered)&&(y.indexOf(".")>-1&&(y=(b=y.split(".")).shift(),b.sort()),c=y.indexOf(":")<0&&"on"+y,(t=t[w.expando]?t:new w.Event(y,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=b.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:w.makeArray(n,[t]),f=w.event.special[y]||{},o||!f.trigger||!1!==f.trigger.apply(r,n))){if(!o&&!f.noBubble&&!g(r)){for(u=f.delegateType||y,wt.test(u+y)||(a=a.parentNode);a;a=a.parentNode)v.push(a),l=a;l===(r.ownerDocument||i)&&v.push(l.defaultView||l.parentWindow||e)}for(s=0;(a=v[s++])&&!t.isPropagationStopped();)h=a,t.type=s>1?u:f.bindType||y,(p=(K.get(a,"events")||{})[t.type]&&K.get(a,"handle"))&&p.apply(a,n),(p=c&&a[c])&&p.apply&&U(a)&&(t.result=p.apply(a,n),!1===t.result&&t.preventDefault());return t.type=y,o||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(v.pop(),n)||!U(r)||c&&m(r[y])&&!g(r)&&((l=r[c])&&(r[c]=null),w.event.triggered=y,t.isPropagationStopped()&&h.addEventListener(y,xt),r[y](),t.isPropagationStopped()&&h.removeEventListener(y,xt),w.event.triggered=void 0,l&&(r[c]=l)),t.result}},simulate:function(e,t,n){var i=w.extend(new w.Event,n,{type:e,isSimulated:!0});w.event.trigger(i,null,t)}}),w.fn.extend({trigger:function(e,t){return this.each(function(){w.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return w.event.trigger(e,t,n,!0)}}),h.focusin||w.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){w.event.simulate(t,e.target,w.event.fix(e))};w.event.special[t]={setup:function(){var i=this.ownerDocument||this,r=K.access(i,t);r||i.addEventListener(e,n,!0),K.access(i,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=K.access(i,t)-1;r?K.access(i,t,r):(i.removeEventListener(e,n,!0),K.remove(i,t))}}});var Et=e.location,Ct=Date.now(),Tt=/\?/;w.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||w.error("Invalid XML: "+t),n};var _t=/\[\]$/,St=/\r?\n/g,Dt=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;function kt(e,t,n,i){var r;if(Array.isArray(t))w.each(t,function(t,r){n||_t.test(e)?i(e,r):kt(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)});else if(n||"object"!==b(t))i(e,t);else for(r in t)kt(e+"["+r+"]",t[r],n,i)}w.param=function(e,t){var n,i=[],r=function(e,t){var n=m(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!w.isPlainObject(e))w.each(e,function(){r(this.name,this.value)});else for(n in e)kt(n,e[n],t,r);return i.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=w.prop(this,"elements");return e?w.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!w(this).is(":disabled")&&Nt.test(this.nodeName)&&!Dt.test(e)&&(this.checked||!pe.test(e))}).map(function(e,t){var n=w(this).val();return null==n?null:Array.isArray(n)?w.map(n,function(e){return{name:t.name,value:e.replace(St,"\r\n")}}):{name:t.name,value:n.replace(St,"\r\n")}}).get()}});var Ot=/%20/g,At=/#.*$/,Pt=/([?&])_=[^&]*/,It=/^(.*?):[ \t]*([^\r\n]*)$/gm,Lt=/^(?:GET|HEAD)$/,jt=/^\/\//,Ht={},Mt={},Rt="*/".concat("*"),Ft=i.createElement("a");function Wt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,o=t.toLowerCase().match(j)||[];if(m(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Bt(e,t,n,i){var r={},o=e===Mt;function s(a){var l;return r[a]=!0,w.each(e[a]||[],function(e,a){var u=a(t,n,i);return"string"!=typeof u||o||r[u]?o?!(l=u):void 0:(t.dataTypes.unshift(u),s(u),!1)}),l}return s(t.dataTypes[0])||!r["*"]&&s("*")}function qt(e,t){var n,i,r=w.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&w.extend(!0,e,i),e}Ft.href=Et.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Rt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?qt(qt(e,w.ajaxSettings),t):qt(w.ajaxSettings,e)},ajaxPrefilter:Wt(Ht),ajaxTransport:Wt(Mt),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var r,o,s,a,l,u,c,d,p,f,h=w.ajaxSetup({},n),m=h.context||h,g=h.context&&(m.nodeType||m.jquery)?w(m):w.event,v=w.Deferred(),y=w.Callbacks("once memory"),b=h.statusCode||{},x={},E={},C="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=It.exec(s);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?s:null},setRequestHeader:function(e,t){return null==c&&(e=E[e.toLowerCase()]=E[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)T.always(e[T.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||C;return r&&r.abort(t),_(0,t),this}};if(v.promise(T),h.url=((t||h.url||Et.href)+"").replace(jt,Et.protocol+"//"),h.type=n.method||n.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(j)||[""],null==h.crossDomain){u=i.createElement("a");try{u.href=h.url,u.href=u.href,h.crossDomain=Ft.protocol+"//"+Ft.host!=u.protocol+"//"+u.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=w.param(h.data,h.traditional)),Bt(Ht,h,n,T),c)return T;for(p in(d=w.event&&h.global)&&0==w.active++&&w.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Lt.test(h.type),o=h.url.replace(At,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Ot,"+")):(f=h.url.slice(o.length),h.data&&(h.processData||"string"==typeof h.data)&&(o+=(Tt.test(o)?"&":"?")+h.data,delete h.data),!1===h.cache&&(o=o.replace(Pt,"$1"),f=(Tt.test(o)?"&":"?")+"_="+Ct+++f),h.url=o+f),h.ifModified&&(w.lastModified[o]&&T.setRequestHeader("If-Modified-Since",w.lastModified[o]),w.etag[o]&&T.setRequestHeader("If-None-Match",w.etag[o])),(h.data&&h.hasContent&&!1!==h.contentType||n.contentType)&&T.setRequestHeader("Content-Type",h.contentType),T.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Rt+"; q=0.01":""):h.accepts["*"]),h.headers)T.setRequestHeader(p,h.headers[p]);if(h.beforeSend&&(!1===h.beforeSend.call(m,T,h)||c))return T.abort();if(C="abort",y.add(h.complete),T.done(h.success),T.fail(h.error),r=Bt(Mt,h,n,T)){if(T.readyState=1,d&&g.trigger("ajaxSend",[T,h]),c)return T;h.async&&h.timeout>0&&(l=e.setTimeout(function(){T.abort("timeout")},h.timeout));try{c=!1,r.send(x,_)}catch(e){if(c)throw e;_(-1,e)}}else _(-1,"No Transport");function _(t,n,i,a){var u,p,f,x,E,C=n;c||(c=!0,l&&e.clearTimeout(l),r=void 0,s=a||"",T.readyState=t>0?4:0,u=t>=200&&t<300||304===t,i&&(x=function(e,t,n){for(var i,r,o,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),n[o]}(h,T,i)),x=function(e,t,n,i){var r,o,s,a,l,u={},c=e.dataTypes.slice();if(c[1])for(s in e.converters)u[s.toLowerCase()]=e.converters[s];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=u[l+" "+o]||u["* "+o]))for(r in u)if((a=r.split(" "))[1]===o&&(s=u[l+" "+a[0]]||u["* "+a[0]])){!0===s?s=u[r]:!0!==u[r]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(h,x,T,u),u?(h.ifModified&&((E=T.getResponseHeader("Last-Modified"))&&(w.lastModified[o]=E),(E=T.getResponseHeader("etag"))&&(w.etag[o]=E)),204===t||"HEAD"===h.type?C="nocontent":304===t?C="notmodified":(C=x.state,p=x.data,u=!(f=x.error))):(f=C,!t&&C||(C="error",t<0&&(t=0))),T.status=t,T.statusText=(n||C)+"",u?v.resolveWith(m,[p,C,T]):v.rejectWith(m,[T,C,f]),T.statusCode(b),b=void 0,d&&g.trigger(u?"ajaxSuccess":"ajaxError",[T,h,u?p:f]),y.fireWith(m,[T,C]),d&&(g.trigger("ajaxComplete",[T,h]),--w.active||w.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return w.get(e,t,n,"json")},getScript:function(e,t){return w.get(e,void 0,t,"script")}}),w.each(["get","post"],function(e,t){w[t]=function(e,n,i,r){return m(n)&&(r=r||i,i=n,n=void 0),w.ajax(w.extend({url:e,type:t,dataType:r,data:n,success:i},w.isPlainObject(e)&&e))}}),w._evalUrl=function(e,t){return w.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){w.globalEval(e,t)}})},w.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=w(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return m(e)?this.each(function(t){w(this).wrapInner(e.call(this,t))}):this.each(function(){var t=w(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=m(e);return this.each(function(n){w(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(e){return!w.expr.pseudos.visible(e)},w.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Vt={0:200,1223:204},zt=w.ajaxSettings.xhr();h.cors=!!zt&&"withCredentials"in zt,h.ajax=zt=!!zt,w.ajaxTransport(function(t){var n,i;if(h.cors||zt&&!t.crossDomain)return{send:function(r,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];for(s in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(s,r[s]);n=function(e){return function(){n&&(n=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Vt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),i=a.onerror=a.ontimeout=n("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&i()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),w.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return w.globalEval(e),e}}}),w.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),w.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,o){t=w("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),i.head.appendChild(t[0])},abort:function(){n&&n()}}});var Xt,$t=[],Ut=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=$t.pop()||w.expando+"_"+Ct++;return this[e]=!0,e}}),w.ajaxPrefilter("json jsonp",function(t,n,i){var r,o,s,a=!1!==t.jsonp&&(Ut.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ut.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=m(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Ut,"$1"+r):!1!==t.jsonp&&(t.url+=(Tt.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return s||w.error(r+" was not called"),s[0]},t.dataTypes[0]="json",o=e[r],e[r]=function(){s=arguments},i.always(function(){void 0===o?w(e).removeProp(r):e[r]=o,t[r]&&(t.jsonpCallback=n.jsonpCallback,$t.push(r)),s&&m(o)&&o(s[0]),s=o=void 0}),"script"}),h.createHTMLDocument=((Xt=i.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Xt.childNodes.length),w.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(h.createHTMLDocument?((r=(t=i.implementation.createHTMLDocument("")).createElement("base")).href=i.location.href,t.head.appendChild(r)):t=i),s=!n&&[],(o=N.exec(e))?[t.createElement(o[1])]:(o=xe([e],t,s),s&&s.length&&w(s).remove(),w.merge([],o.childNodes)));var r,o,s},w.fn.load=function(e,t,n){var i,r,o,s=this,a=e.indexOf(" ");return a>-1&&(i=gt(e.slice(a)),e=e.slice(0,a)),m(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),s.length>0&&w.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){o=arguments,s.html(i?w("<div>").append(w.parseHTML(e)).find(i):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){w.fn[t]=function(e){return this.on(t,e)}}),w.expr.pseudos.animated=function(e){return w.grep(w.timers,function(t){return e===t.elem}).length},w.offset={setOffset:function(e,t,n){var i,r,o,s,a,l,u=w.css(e,"position"),c=w(e),d={};"static"===u&&(e.style.position="relative"),a=c.offset(),o=w.css(e,"top"),l=w.css(e,"left"),("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1?(s=(i=c.position()).top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(l)||0),m(t)&&(t=t.call(e,n,w.extend({},a))),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+r),"using"in t?t.using.call(e,d):c.css(d)}},w.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){w.offset.setOffset(this,e,t)});var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===w.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===w.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=w(e).offset()).top+=w.css(e,"borderTopWidth",!0),r.left+=w.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-w.css(i,"marginTop",!0),left:t.left-r.left-w.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===w.css(e,"position");)e=e.offsetParent;return e||ie})}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;w.fn[e]=function(i){return q(this,function(e,i,r){var o;if(g(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===r)return o?o[t]:e[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):e[i]=r},e,i,arguments.length)}}),w.each(["top","left"],function(e,t){w.cssHooks[t]=ze(h.pixelPosition,function(e,n){if(n)return n=Ve(e,t),We.test(n)?w(e).position()[t]+"px":n})}),w.each({Height:"height",Width:"width"},function(e,t){w.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){w.fn[i]=function(r,o){var s=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===o?"margin":"border");return q(this,function(t,n,r){var o;return g(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===r?w.css(t,n,a):w.style(t,n,r,a)},t,s?r:void 0,s)}})}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){w.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),w.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),w.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),w.proxy=function(e,t){var n,i,r;if("string"==typeof t&&(n=e[t],t=e,e=n),m(e))return i=o.call(arguments,2),(r=function(){return e.apply(t||this,i.concat(o.call(arguments)))}).guid=e.guid=e.guid||w.guid++,r},w.holdReady=function(e){e?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=D,w.isFunction=m,w.isWindow=g,w.camelCase=$,w.type=b,w.now=Date.now,w.isNumeric=function(e){var t=w.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return w});var Yt=e.jQuery,Kt=e.$;return w.noConflict=function(t){return e.$===w&&(e.$=Kt),t&&e.jQuery===w&&(e.jQuery=Yt),w},t||(e.jQuery=e.$=w),w}),function(e){"function"==typeof define&&define.amd?define("jqueryui-amd/version",["jquery"],e):e(jQuery)}(function(e){return e.ui=e.ui||{},e.ui.version="1.12.1"}),
/*!
 * jQuery UI Widget 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
function(e){"function"==typeof define&&define.amd?define("jqueryui-amd/widget",["jquery","./version"],e):e(jQuery)}(function(e){var t,n=0,i=Array.prototype.slice;return e.cleanData=(t=e.cleanData,function(n){var i,r,o;for(o=0;null!=(r=n[o]);o++)try{(i=e._data(r,"events"))&&i.remove&&e(r).triggerHandler("remove")}catch(e){}t(n)}),e.widget=function(t,n,i){var r,o,s,a={},l=t.split(".")[0],u=l+"-"+(t=t.split(".")[1]);return i||(i=n,n=e.Widget),e.isArray(i)&&(i=e.extend.apply(null,[{}].concat(i))),e.expr[":"][u.toLowerCase()]=function(t){return!!e.data(t,u)},e[l]=e[l]||{},r=e[l][t],o=e[l][t]=function(e,t){if(!this._createWidget)return new o(e,t);arguments.length&&this._createWidget(e,t)},e.extend(o,r,{version:i.version,_proto:e.extend({},i),_childConstructors:[]}),(s=new n).options=e.widget.extend({},s.options),e.each(i,function(t,i){e.isFunction(i)?a[t]=function(){function e(){return n.prototype[t].apply(this,arguments)}function r(e){return n.prototype[t].apply(this,e)}return function(){var t,n=this._super,o=this._superApply;return this._super=e,this._superApply=r,t=i.apply(this,arguments),this._super=n,this._superApply=o,t}}():a[t]=i}),o.prototype=e.widget.extend(s,{widgetEventPrefix:r&&s.widgetEventPrefix||t},a,{constructor:o,namespace:l,widgetName:t,widgetFullName:u}),r?(e.each(r._childConstructors,function(t,n){var i=n.prototype;e.widget(i.namespace+"."+i.widgetName,o,n._proto)}),delete r._childConstructors):n._childConstructors.push(o),e.widget.bridge(t,o),o},e.widget.extend=function(t){for(var n,r,o=i.call(arguments,1),s=0,a=o.length;s<a;s++)for(n in o[s])r=o[s][n],o[s].hasOwnProperty(n)&&void 0!==r&&(e.isPlainObject(r)?t[n]=e.isPlainObject(t[n])?e.widget.extend({},t[n],r):e.widget.extend({},r):t[n]=r);return t},e.widget.bridge=function(t,n){var r=n.prototype.widgetFullName||t;e.fn[t]=function(o){var s="string"==typeof o,a=i.call(arguments,1),l=this;return s?this.length||"instance"!==o?this.each(function(){var n,i=e.data(this,r);return"instance"===o?(l=i,!1):i?e.isFunction(i[o])&&"_"!==o.charAt(0)?(n=i[o].apply(i,a))!==i&&void 0!==n?(l=n&&n.jquery?l.pushStack(n.get()):n,!1):void 0:e.error("no such method '"+o+"' for "+t+" widget instance"):e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+o+"'")}):l=void 0:(a.length&&(o=e.widget.extend.apply(null,[o].concat(a))),this.each(function(){var t=e.data(this,r);t?(t.option(o||{}),t._init&&t._init()):e.data(this,r,new n(o,this))})),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,i){i=e(i||this.defaultElement||this)[0],this.element=e(i),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},i!==this&&(e.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===i&&this.destroy()}}),this.document=e(i.style?i.ownerDocument:i.document||i),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,function(e,n){t._removeClass(n,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,n){var i,r,o,s=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(s={},t=(i=t.split(".")).shift(),i.length){for(r=s[t]=e.widget.extend({},this.options[t]),o=0;o<i.length-1;o++)r[i[o]]=r[i[o]]||{},r=r[i[o]];if(t=i.pop(),1===arguments.length)return void 0===r[t]?null:r[t];r[t]=n}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];s[t]=n}return this._setOptions(s),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var n,i,r;for(n in t)r=this.classesElementLookup[n],t[n]!==this.options.classes[n]&&r&&r.length&&(i=e(r.get()),this._removeClass(r,n),i.addClass(this._classes({element:i,keys:n,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){var n=[],i=this;function r(r,o){var s,a;for(a=0;a<r.length;a++)s=i.classesElementLookup[r[a]]||e(),s=t.add?e(e.unique(s.get().concat(t.element.get()))):e(s.not(t.element).get()),i.classesElementLookup[r[a]]=s,n.push(r[a]),o&&t.classes[r[a]]&&n.push(t.classes[r[a]])}return t=e.extend({element:this.element,classes:this.options.classes||{}},t),this._on(t.element,{remove:"_untrackClassesElement"}),t.keys&&r(t.keys.match(/\S+/g)||[],!0),t.extra&&r(t.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(t){var n=this;e.each(n.classesElementLookup,function(i,r){-1!==e.inArray(t.target,r)&&(n.classesElementLookup[i]=e(r.not(t.target).get()))})},_removeClass:function(e,t,n){return this._toggleClass(e,t,n,!1)},_addClass:function(e,t,n){return this._toggleClass(e,t,n,!0)},_toggleClass:function(e,t,n,i){i="boolean"==typeof i?i:n;var r="string"==typeof e||null===e,o={extra:r?t:n,keys:r?e:t,element:r?this.element:e,add:i};return o.element.toggleClass(this._classes(o),i),this},_on:function(t,n,i){var r,o=this;"boolean"!=typeof t&&(i=n,n=t,t=!1),i?(n=r=e(n),this.bindings=this.bindings.add(n)):(i=n,n=this.element,r=this.widget()),e.each(i,function(i,s){function a(){if(t||!0!==o.options.disabled&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof s?o[s]:s).apply(o,arguments)}"string"!=typeof s&&(a.guid=s.guid=s.guid||a.guid||e.guid++);var l=i.match(/^([\w:-]*)\s*(.*)$/),u=l[1]+o.eventNamespace,c=l[2];c?r.on(u,c,a):n.on(u,a)})},_off:function(t,n){n=(n||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(n).off(n),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){var n=this;return setTimeout(function(){return("string"==typeof e?n[e]:e).apply(n,arguments)},t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,n,i){var r,o,s=this.options[t];if(i=i||{},(n=e.Event(n)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),n.target=this.element[0],o=n.originalEvent)for(r in o)r in n||(n[r]=o[r]);return this.element.trigger(n,i),!(e.isFunction(s)&&!1===s.apply(this.element[0],[n].concat(i))||n.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,n){e.Widget.prototype["_"+t]=function(i,r,o){var s;"string"==typeof r&&(r={effect:r});var a=r?!0===r||"number"==typeof r?n:r.effect||n:t;"number"==typeof(r=r||{})&&(r={duration:r}),s=!e.isEmptyObject(r),r.complete=o,r.delay&&i.delay(r.delay),s&&e.effects&&e.effects.effect[a]?i[t](r):a!==t&&i[a]?i[a](r.duration,r.easing,o):i.queue(function(n){e(this)[t](),o&&o.call(i[0]),n()})}}),e.widget}),
/*!
 * jQuery UI Unique ID 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
function(e){"function"==typeof define&&define.amd?define("jqueryui-amd/unique-id",["jquery","./version"],e):e(jQuery)}(function(e){return e.fn.extend({uniqueId:(t=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&e(this).removeAttr("id")})}});var t}),
/*!
 * jQuery UI Keycode 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
function(e){"function"==typeof define&&define.amd?define("jqueryui-amd/keycode",["jquery","./version"],e):e(jQuery)}(function(e){return e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),
/*!
 * jQuery UI Focusable 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
function(e){"function"==typeof define&&define.amd?define("jqueryui-amd/focusable",["jquery","./version"],e):e(jQuery)}(function(e){return e.ui.focusable=function(t,n){var i,r,o,s,a,l=t.nodeName.toLowerCase();return"area"===l?(r=(i=t.parentNode).name,!(!t.href||!r||"map"!==i.nodeName.toLowerCase())&&((o=e("img[usemap='#"+r+"']")).length>0&&o.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(l)?(s=!t.disabled)&&(a=e(t).closest("fieldset")[0])&&(s=!a.disabled):s="a"===l&&t.href||n,s&&e(t).is(":visible")&&function(e){var t=e.css("visibility");for(;"inherit"===t;)e=e.parent(),t=e.css("visibility");return"hidden"!==t}(e(t)))},e.extend(e.expr[":"],{focusable:function(t){return e.ui.focusable(t,null!=e.attr(t,"tabindex"))}}),e.ui.focusable}),
/*!
 * jQuery UI Tabbable 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
function(e){"function"==typeof define&&define.amd?define("jqueryui-amd/tabbable",["jquery","./version","./focusable"],e):e(jQuery)}(function(e){return e.extend(e.expr[":"],{tabbable:function(t){var n=e.attr(t,"tabindex"),i=null!=n;return(!i||n>=0)&&e.ui.focusable(t,i)}})}),function(e){"function"==typeof define&&define.amd?define("jqueryui-amd/ie",["jquery","./version"],e):e(jQuery)}(function(e){return e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())}),
/*!
 * jQuery UI Mouse 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
function(e){"function"==typeof define&&define.amd?define("jqueryui-amd/widgets/mouse",["jquery","../ie","../version","../widget"],e):e(jQuery)}(function(e){var t=!1;return e(document).on("mouseup",function(){t=!1}),e.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(n){if(!0===e.data(n.target,t.widgetName+".preventClickEvent"))return e.removeData(n.target,t.widgetName+".preventClickEvent"),n.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(n){if(!t){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(n),this._mouseDownEvent=n;var i=this,r=1===n.which,o=!("string"!=typeof this.options.cancel||!n.target.nodeName)&&e(n.target).closest(this.options.cancel).length;return!(r&&!o&&this._mouseCapture(n))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(n)&&this._mouseDelayMet(n)&&(this._mouseStarted=!1!==this._mouseStart(n),!this._mouseStarted)?(n.preventDefault(),!0):(!0===e.data(n.target,this.widgetName+".preventClickEvent")&&e.removeData(n.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return i._mouseMove(e)},this._mouseUpDelegate=function(e){return i._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),n.preventDefault(),t=!0,!0))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(n){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,n.target===this._mouseDownEvent.target&&e.data(n.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(n)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,t=!1,n.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}),
/*!
 * jQuery UI :data 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
function(e){"function"==typeof define&&define.amd?define("jqueryui-amd/data",["jquery","./version"],e):e(jQuery)}(function(e){return e.extend(e.expr[":"],{data:e.expr.createPseudo?e.expr.createPseudo(function(t){return function(n){return!!e.data(n,t)}}):function(t,n,i){return!!e.data(t,i[3])}})}),function(e){"function"==typeof define&&define.amd?define("jqueryui-amd/plugin",["jquery","./version"],e):e(jQuery)}(function(e){return e.ui.plugin={add:function(t,n,i){var r,o=e.ui[t].prototype;for(r in i)o.plugins[r]=o.plugins[r]||[],o.plugins[r].push([n,i[r]])},call:function(e,t,n,i){var r,o=e.plugins[t];if(o&&(i||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(r=0;r<o.length;r++)e.options[o[r][0]]&&o[r][1].apply(e.element,n)}}}),function(e){"function"==typeof define&&define.amd?define("jqueryui-amd/safe-active-element",["jquery","./version"],e):e(jQuery)}(function(e){return e.ui.safeActiveElement=function(e){var t;try{t=e.activeElement}catch(n){t=e.body}return t||(t=e.body),t.nodeName||(t=e.body),t}}),function(e){"function"==typeof define&&define.amd?define("jqueryui-amd/safe-blur",["jquery","./version"],e):e(jQuery)}(function(e){return e.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&e(t).trigger("blur")}}),
/*!
 * jQuery UI Scroll Parent 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
function(e){"function"==typeof define&&define.amd?define("jqueryui-amd/scroll-parent",["jquery","./version"],e):e(jQuery)}(function(e){return e.fn.scrollParent=function(t){var n=this.css("position"),i="absolute"===n,r=t?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter(function(){var t=e(this);return(!i||"static"!==t.css("position"))&&r.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==n&&o.length?o:e(this[0].ownerDocument||document)}}),
/*!
 * jQuery UI Draggable 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 */
function(e){"function"==typeof define&&define.amd?define("jqueryui-amd/widgets/draggable",["jquery","./mouse","../data","../plugin","../safe-active-element","../safe-blur","../scroll-parent","../version","../widget"],e):e(jQuery)}(function(e){return e.widget("ui.draggable",e.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var n=this.options;return!(this.helper||n.disabled||e(t.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(t),!!this.handle&&(this._blurActiveElement(t),this._blockFrames(!0===n.iframeFix?"iframe":n.iframeFix),!0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=e(this);return e("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var n=e.ui.safeActiveElement(this.document[0]);e(t.target).closest(n).length||e.ui.safeBlur(n)},_mouseStart:function(t){var n=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===e(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,n.cursorAt&&this._adjustOffsetFromHelper(n.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!n.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(t,n){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!n){var i=this._uiHash();if(!1===this._trigger("drag",t,i))return this._mouseUp(new e.Event("mouseup",t)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var n=this,i=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(i=e.ui.ddmanager.drop(this,t)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||e.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==n._trigger("stop",t)&&n._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new e.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!e(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var n=this.options,i=e.isFunction(n.helper),r=i?e(n.helper.apply(this.element[0],[t])):"clone"===n.helper?this.element.clone().removeAttr("id"):this.element;return r.parents("body").length||r.appendTo("parent"===n.appendTo?this.element[0].parentNode:n.appendTo),i&&r[0]===this.element[0]&&this._setPositionRelative(),r[0]===this.element[0]||/(fixed|absolute)/.test(r.css("position"))||r.css("position","absolute"),r},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),e.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),n=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==n&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,n,i,r=this.options,o=this.document[0];this.relativeContainer=null,r.containment?"window"!==r.containment?"document"!==r.containment?r.containment.constructor!==Array?("parent"===r.containment&&(r.containment=this.helper[0].parentNode),(i=(n=e(r.containment))[0])&&(t=/(scroll|auto)/.test(n.css("overflow")),this.containment=[(parseInt(n.css("borderLeftWidth"),10)||0)+(parseInt(n.css("paddingLeft"),10)||0),(parseInt(n.css("borderTopWidth"),10)||0)+(parseInt(n.css("paddingTop"),10)||0),(t?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(n.css("borderRightWidth"),10)||0)-(parseInt(n.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(n.css("borderBottomWidth"),10)||0)-(parseInt(n.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=n)):this.containment=r.containment:this.containment=[0,0,e(o).width()-this.helperProportions.width-this.margins.left,(e(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(e,t){t||(t=this.position);var n="absolute"===e?1:-1,i=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.offset.scroll.top:i?0:this.offset.scroll.top)*n,left:t.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.offset.scroll.left:i?0:this.offset.scroll.left)*n}},_generatePosition:function(e,t){var n,i,r,o,s=this.options,a=this._isRootNode(this.scrollParent[0]),l=e.pageX,u=e.pageY;return a&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(i=this.relativeContainer.offset(),n=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):n=this.containment,e.pageX-this.offset.click.left<n[0]&&(l=n[0]+this.offset.click.left),e.pageY-this.offset.click.top<n[1]&&(u=n[1]+this.offset.click.top),e.pageX-this.offset.click.left>n[2]&&(l=n[2]+this.offset.click.left),e.pageY-this.offset.click.top>n[3]&&(u=n[3]+this.offset.click.top)),s.grid&&(r=s.grid[1]?this.originalPageY+Math.round((u-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,u=n?r-this.offset.click.top>=n[1]||r-this.offset.click.top>n[3]?r:r-this.offset.click.top>=n[1]?r-s.grid[1]:r+s.grid[1]:r,o=s.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,l=n?o-this.offset.click.left>=n[0]||o-this.offset.click.left>n[2]?o:o-this.offset.click.left>=n[0]?o-s.grid[0]:o+s.grid[0]:o),"y"===s.axis&&(l=this.originalPageX),"x"===s.axis&&(u=this.originalPageY)),{top:u-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:a?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:a?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,n,i){return i=i||this._uiHash(),e.ui.plugin.call(this,t,[n,i,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,t,n,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,n,i){var r=e.extend({},n,{item:i.element});i.sortables=[],e(i.options.connectToSortable).each(function(){var n=e(this).sortable("instance");n&&!n.options.disabled&&(i.sortables.push(n),n.refreshPositions(),n._trigger("activate",t,r))})},stop:function(t,n,i){var r=e.extend({},n,{item:i.element});i.cancelHelperRemoval=!1,e.each(i.sortables,function(){this.isOver?(this.isOver=0,i.cancelHelperRemoval=!0,this.cancelHelperRemoval=!1,this._storedCSS={position:this.placeholder.css("position"),top:this.placeholder.css("top"),left:this.placeholder.css("left")},this._mouseStop(t),this.options.helper=this.options._helper):(this.cancelHelperRemoval=!0,this._trigger("deactivate",t,r))})},drag:function(t,n,i){e.each(i.sortables,function(){var r=!1,o=this;o.positionAbs=i.positionAbs,o.helperProportions=i.helperProportions,o.offset.click=i.offset.click,o._intersectsWith(o.containerCache)&&(r=!0,e.each(i.sortables,function(){return this.positionAbs=i.positionAbs,this.helperProportions=i.helperProportions,this.offset.click=i.offset.click,this!==o&&this._intersectsWith(this.containerCache)&&e.contains(o.element[0],this.element[0])&&(r=!1),r})),r?(o.isOver||(o.isOver=1,i._parent=n.helper.parent(),o.currentItem=n.helper.appendTo(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return n.helper[0]},t.target=o.currentItem[0],o._mouseCapture(t,!0),o._mouseStart(t,!0,!0),o.offset.click.top=i.offset.click.top,o.offset.click.left=i.offset.click.left,o.offset.parent.left-=i.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=i.offset.parent.top-o.offset.parent.top,i._trigger("toSortable",t),i.dropped=o.element,e.each(i.sortables,function(){this.refreshPositions()}),i.currentItem=i.element,o.fromOutside=i),o.currentItem&&(o._mouseDrag(t),n.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",t,o._uiHash(o)),o._mouseStop(t,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),n.helper.appendTo(i._parent),i._refreshOffsets(t),n.position=i._generatePosition(t,!0),i._trigger("fromSortable",t),i.dropped=!1,e.each(i.sortables,function(){this.refreshPositions()}))})}}),e.ui.plugin.add("draggable","cursor",{start:function(t,n,i){var r=e("body"),o=i.options;r.css("cursor")&&(o._cursor=r.css("cursor")),r.css("cursor",o.cursor)},stop:function(t,n,i){var r=i.options;r._cursor&&e("body").css("cursor",r._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,n,i){var r=e(n.helper),o=i.options;r.css("opacity")&&(o._opacity=r.css("opacity")),r.css("opacity",o.opacity)},stop:function(t,n,i){var r=i.options;r._opacity&&e(n.helper).css("opacity",r._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e,t,n){n.scrollParentNotHidden||(n.scrollParentNotHidden=n.helper.scrollParent(!1)),n.scrollParentNotHidden[0]!==n.document[0]&&"HTML"!==n.scrollParentNotHidden[0].tagName&&(n.overflowOffset=n.scrollParentNotHidden.offset())},drag:function(t,n,i){var r=i.options,o=!1,s=i.scrollParentNotHidden[0],a=i.document[0];s!==a&&"HTML"!==s.tagName?(r.axis&&"x"===r.axis||(i.overflowOffset.top+s.offsetHeight-t.pageY<r.scrollSensitivity?s.scrollTop=o=s.scrollTop+r.scrollSpeed:t.pageY-i.overflowOffset.top<r.scrollSensitivity&&(s.scrollTop=o=s.scrollTop-r.scrollSpeed)),r.axis&&"y"===r.axis||(i.overflowOffset.left+s.offsetWidth-t.pageX<r.scrollSensitivity?s.scrollLeft=o=s.scrollLeft+r.scrollSpeed:t.pageX-i.overflowOffset.left<r.scrollSensitivity&&(s.scrollLeft=o=s.scrollLeft-r.scrollSpeed))):(r.axis&&"x"===r.axis||(t.pageY-e(a).scrollTop()<r.scrollSensitivity?o=e(a).scrollTop(e(a).scrollTop()-r.scrollSpeed):e(window).height()-(t.pageY-e(a).scrollTop())<r.scrollSensitivity&&(o=e(a).scrollTop(e(a).scrollTop()+r.scrollSpeed))),r.axis&&"y"===r.axis||(t.pageX-e(a).scrollLeft()<r.scrollSensitivity?o=e(a).scrollLeft(e(a).scrollLeft()-r.scrollSpeed):e(window).width()-(t.pageX-e(a).scrollLeft())<r.scrollSensitivity&&(o=e(a).scrollLeft(e(a).scrollLeft()+r.scrollSpeed)))),!1!==o&&e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(i,t)}}),e.ui.plugin.add("draggable","snap",{start:function(t,n,i){var r=i.options;i.snapElements=[],e(r.snap.constructor!==String?r.snap.items||":data(ui-draggable)":r.snap).each(function(){var t=e(this),n=t.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:n.top,left:n.left})})},drag:function(t,n,i){var r,o,s,a,l,u,c,d,p,f,h=i.options,m=h.snapTolerance,g=n.offset.left,v=g+i.helperProportions.width,y=n.offset.top,b=y+i.helperProportions.height;for(p=i.snapElements.length-1;p>=0;p--)u=(l=i.snapElements[p].left-i.margins.left)+i.snapElements[p].width,d=(c=i.snapElements[p].top-i.margins.top)+i.snapElements[p].height,v<l-m||g>u+m||b<c-m||y>d+m||!e.contains(i.snapElements[p].item.ownerDocument,i.snapElements[p].item)?(i.snapElements[p].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,t,e.extend(i._uiHash(),{snapItem:i.snapElements[p].item})),i.snapElements[p].snapping=!1):("inner"!==h.snapMode&&(r=Math.abs(c-b)<=m,o=Math.abs(d-y)<=m,s=Math.abs(l-v)<=m,a=Math.abs(u-g)<=m,r&&(n.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),o&&(n.position.top=i._convertPositionTo("relative",{top:d,left:0}).top),s&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left),a&&(n.position.left=i._convertPositionTo("relative",{top:0,left:u}).left)),f=r||o||s||a,"outer"!==h.snapMode&&(r=Math.abs(c-y)<=m,o=Math.abs(d-b)<=m,s=Math.abs(l-g)<=m,a=Math.abs(u-v)<=m,r&&(n.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),o&&(n.position.top=i._convertPositionTo("relative",{top:d-i.helperProportions.height,left:0}).top),s&&(n.position.left=i._convertPositionTo("relative",{top:0,left:l}).left),a&&(n.position.left=i._convertPositionTo("relative",{top:0,left:u-i.helperProportions.width}).left)),!i.snapElements[p].snapping&&(r||o||s||a||f)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,t,e.extend(i._uiHash(),{snapItem:i.snapElements[p].item})),i.snapElements[p].snapping=r||o||s||a||f)}}),e.ui.plugin.add("draggable","stack",{start:function(t,n,i){var r,o=i.options,s=e.makeArray(e(o.stack)).sort(function(t,n){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(n).css("zIndex"),10)||0)});s.length&&(r=parseInt(e(s[0]).css("zIndex"),10)||0,e(s).each(function(t){e(this).css("zIndex",r+t)}),this.css("zIndex",r+s.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,n,i){var r=e(n.helper),o=i.options;r.css("zIndex")&&(o._zIndex=r.css("zIndex")),r.css("zIndex",o.zIndex)},stop:function(t,n,i){var r=i.options;r._zIndex&&e(n.helper).css("zIndex",r._zIndex)}}),e.ui.draggable}),
/*!
 * jQuery UI Position 1.12.1
 * http://jqueryui.com
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license.
 * http://jquery.org/license
 *
 * http://api.jqueryui.com/position/
 */
function(e){"function"==typeof define&&define.amd?define("jqueryui-amd/position",["jquery","./version"],e):e(jQuery)}(function(e){return function(){var t,n=Math.max,i=Math.abs,r=/left|center|right/,o=/top|center|bottom/,s=/[\+\-]\d+(\.[\d]+)?%?/,a=/^\w+/,l=/%$/,u=e.fn.position;function c(e,t,n){return[parseFloat(e[0])*(l.test(e[0])?t/100:1),parseFloat(e[1])*(l.test(e[1])?n/100:1)]}function d(t,n){return parseInt(e.css(t,n),10)||0}e.position={scrollbarWidth:function(){if(void 0!==t)return t;var n,i,r=e("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),o=r.children()[0];return e("body").append(r),n=o.offsetWidth,r.css("overflow","scroll"),n===(i=o.offsetWidth)&&(i=r[0].clientWidth),r.remove(),t=n-i},getScrollInfo:function(t){var n=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),r="scroll"===n||"auto"===n&&t.width<t.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&t.height<t.element[0].scrollHeight?e.position.scrollbarWidth():0,height:r?e.position.scrollbarWidth():0}},getWithinInfo:function(t){var n=e(t||window),i=e.isWindow(n[0]),r=!!n[0]&&9===n[0].nodeType;return{element:n,isWindow:i,isDocument:r,offset:!i&&!r?e(t).offset():{left:0,top:0},scrollLeft:n.scrollLeft(),scrollTop:n.scrollTop(),width:n.outerWidth(),height:n.outerHeight()}}},e.fn.position=function(t){if(!t||!t.of)return u.apply(this,arguments);t=e.extend({},t);var l,p,f,h,m,g,v,y,b=e(t.of),w=e.position.getWithinInfo(t.within),x=e.position.getScrollInfo(w),E=(t.collision||"flip").split(" "),C={};return g=9===(y=(v=b)[0]).nodeType?{width:v.width(),height:v.height(),offset:{top:0,left:0}}:e.isWindow(y)?{width:v.width(),height:v.height(),offset:{top:v.scrollTop(),left:v.scrollLeft()}}:y.preventDefault?{width:0,height:0,offset:{top:y.pageY,left:y.pageX}}:{width:v.outerWidth(),height:v.outerHeight(),offset:v.offset()},b[0].preventDefault&&(t.at="left top"),p=g.width,f=g.height,h=g.offset,m=e.extend({},h),e.each(["my","at"],function(){var e,n,i=(t[this]||"").split(" ");1===i.length&&(i=r.test(i[0])?i.concat(["center"]):o.test(i[0])?["center"].concat(i):["center","center"]),i[0]=r.test(i[0])?i[0]:"center",i[1]=o.test(i[1])?i[1]:"center",e=s.exec(i[0]),n=s.exec(i[1]),C[this]=[e?e[0]:0,n?n[0]:0],t[this]=[a.exec(i[0])[0],a.exec(i[1])[0]]}),1===E.length&&(E[1]=E[0]),"right"===t.at[0]?m.left+=p:"center"===t.at[0]&&(m.left+=p/2),"bottom"===t.at[1]?m.top+=f:"center"===t.at[1]&&(m.top+=f/2),l=c(C.at,p,f),m.left+=l[0],m.top+=l[1],this.each(function(){var r,o,s=e(this),a=s.outerWidth(),u=s.outerHeight(),g=d(this,"marginLeft"),v=d(this,"marginTop"),y=a+g+d(this,"marginRight")+x.width,T=u+v+d(this,"marginBottom")+x.height,_=e.extend({},m),S=c(C.my,s.outerWidth(),s.outerHeight());"right"===t.my[0]?_.left-=a:"center"===t.my[0]&&(_.left-=a/2),"bottom"===t.my[1]?_.top-=u:"center"===t.my[1]&&(_.top-=u/2),_.left+=S[0],_.top+=S[1],r={marginLeft:g,marginTop:v},e.each(["left","top"],function(n,i){e.ui.position[E[n]]&&e.ui.position[E[n]][i](_,{targetWidth:p,targetHeight:f,elemWidth:a,elemHeight:u,collisionPosition:r,collisionWidth:y,collisionHeight:T,offset:[l[0]+S[0],l[1]+S[1]],my:t.my,at:t.at,within:w,elem:s})}),t.using&&(o=function(e){var r=h.left-_.left,o=r+p-a,l=h.top-_.top,c=l+f-u,d={target:{element:b,left:h.left,top:h.top,width:p,height:f},element:{element:s,left:_.left,top:_.top,width:a,height:u},horizontal:o<0?"left":r>0?"right":"center",vertical:c<0?"top":l>0?"bottom":"middle"};p<a&&i(r+o)<p&&(d.horizontal="center"),f<u&&i(l+c)<f&&(d.vertical="middle"),n(i(r),i(o))>n(i(l),i(c))?d.important="horizontal":d.important="vertical",t.using.call(this,e,d)}),s.offset(e.extend(_,{using:o}))})},e.ui.position={fit:{left:function(e,t){var i,r=t.within,o=r.isWindow?r.scrollLeft:r.offset.left,s=r.width,a=e.left-t.collisionPosition.marginLeft,l=o-a,u=a+t.collisionWidth-s-o;t.collisionWidth>s?l>0&&u<=0?(i=e.left+l+t.collisionWidth-s-o,e.left+=l-i):e.left=u>0&&l<=0?o:l>u?o+s-t.collisionWidth:o:l>0?e.left+=l:u>0?e.left-=u:e.left=n(e.left-a,e.left)},top:function(e,t){var i,r=t.within,o=r.isWindow?r.scrollTop:r.offset.top,s=t.within.height,a=e.top-t.collisionPosition.marginTop,l=o-a,u=a+t.collisionHeight-s-o;t.collisionHeight>s?l>0&&u<=0?(i=e.top+l+t.collisionHeight-s-o,e.top+=l-i):e.top=u>0&&l<=0?o:l>u?o+s-t.collisionHeight:o:l>0?e.top+=l:u>0?e.top-=u:e.top=n(e.top-a,e.top)}},flip:{left:function(e,t){var n,r,o=t.within,s=o.offset.left+o.scrollLeft,a=o.width,l=o.isWindow?o.scrollLeft:o.offset.left,u=e.left-t.collisionPosition.marginLeft,c=u-l,d=u+t.collisionWidth-a-l,p="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,f="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,h=-2*t.offset[0];c<0?((n=e.left+p+f+h+t.collisionWidth-a-s)<0||n<i(c))&&(e.left+=p+f+h):d>0&&((r=e.left-t.collisionPosition.marginLeft+p+f+h-l)>0||i(r)<d)&&(e.left+=p+f+h)},top:function(e,t){var n,r,o=t.within,s=o.offset.top+o.scrollTop,a=o.height,l=o.isWindow?o.scrollTop:o.offset.top,u=e.top-t.collisionPosition.marginTop,c=u-l,d=u+t.collisionHeight-a-l,p="top"===t.my[1]?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,f="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,h=-2*t.offset[1];c<0?((r=e.top+p+f+h+t.collisionHeight-a-s)<0||r<i(c))&&(e.top+=p+f+h):d>0&&((n=e.top-t.collisionPosition.marginTop+p+f+h-l)>0||i(n)<d)&&(e.top+=p+f+h)}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}}}(),e.ui.position}),
/** @license
 * JS Signals <http://millermedeiros.github.com/js-signals/>
 * Released under the MIT license
 * Author: Miller Medeiros
 * Version: 1.0.0 - Build: 268 (2012/11/29 05:48 PM)
 */
function(e){function t(e,t,n,i,r){this._listener=t,this._isOnce=n,this.context=i,this._signal=e,this._priority=r||0}function n(e,t){if("function"!=typeof e)throw new Error("listener is a required param of {fn}() and should be a Function.".replace("{fn}",t))}function i(){this._bindings=[],this._prevParams=null;var e=this;this.dispatch=function(){i.prototype.dispatch.apply(e,arguments)}}t.prototype={active:!0,params:null,execute:function(e){var t,n;return this.active&&this._listener&&(n=this.params?this.params.concat(e):e,t=this._listener.apply(this.context,n),this._isOnce&&this.detach()),t},detach:function(){return this.isBound()?this._signal.remove(this._listener,this.context):null},isBound:function(){return!!this._signal&&!!this._listener},isOnce:function(){return this._isOnce},getListener:function(){return this._listener},getSignal:function(){return this._signal},_destroy:function(){delete this._signal,delete this._listener,delete this.context},toString:function(){return"[SignalBinding isOnce:"+this._isOnce+", isBound:"+this.isBound()+", active:"+this.active+"]"}},i.prototype={VERSION:"1.0.0",memorize:!1,_shouldPropagate:!0,active:!0,_registerListener:function(e,n,i,r){var o,s=this._indexOfListener(e,i);if(-1!==s){if((o=this._bindings[s]).isOnce()!==n)throw new Error("You cannot add"+(n?"":"Once")+"() then add"+(n?"Once":"")+"() the same listener without removing the relationship first.")}else o=new t(this,e,n,i,r),this._addBinding(o);return this.memorize&&this._prevParams&&o.execute(this._prevParams),o},_addBinding:function(e){var t=this._bindings.length;do{--t}while(this._bindings[t]&&e._priority<=this._bindings[t]._priority);this._bindings.splice(t+1,0,e)},_indexOfListener:function(e,t){for(var n,i=this._bindings.length;i--;)if((n=this._bindings[i])._listener===e&&n.context===t)return i;return-1},has:function(e,t){return-1!==this._indexOfListener(e,t)},add:function(e,t,i){return n(e,"add"),this._registerListener(e,!1,t,i)},addOnce:function(e,t,i){return n(e,"addOnce"),this._registerListener(e,!0,t,i)},remove:function(e,t){n(e,"remove");var i=this._indexOfListener(e,t);return-1!==i&&(this._bindings[i]._destroy(),this._bindings.splice(i,1)),e},removeAll:function(){for(var e=this._bindings.length;e--;)this._bindings[e]._destroy();this._bindings.length=0},getNumListeners:function(){return this._bindings.length},halt:function(){this._shouldPropagate=!1},dispatch:function(e){if(this.active){var t,n=Array.prototype.slice.call(arguments),i=this._bindings.length;if(this.memorize&&(this._prevParams=n),i){t=this._bindings.slice(),this._shouldPropagate=!0;do{i--}while(t[i]&&this._shouldPropagate&&!1!==t[i].execute(n))}}},forget:function(){this._prevParams=null},dispose:function(){this.removeAll(),delete this._bindings,delete this._prevParams},toString:function(){return"[Signal active:"+this.active+" numListeners:"+this.getNumListeners()+"]"}};var r=i;r.Signal=i,"function"==typeof define&&define.amd?define("signals",[],function(){return r}):"undefined"!=typeof module&&module.exports?module.exports=r:e.signals=r}(this),
/**
 * @license text 2.0.15 Copyright jQuery Foundation and other contributors.
 * Released under MIT license, http://github.com/requirejs/text/LICENSE
 */
define("text",["module"],function(e){"use strict";var t,n,i,r,o,s=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],a=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,l=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,u="undefined"!=typeof location&&location.href,c=u&&location.protocol&&location.protocol.replace(/\:/,""),d=u&&location.hostname,p=u&&(location.port||void 0),f={},h=e.config&&e.config()||{};function m(e,t){return void 0===e||""===e?t:e}return t={version:"2.0.15",strip:function(e){if(e){var t=(e=e.replace(a,"")).match(l);t&&(e=t[1])}else e="";return e},jsEscape:function(e){return e.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")},createXhr:h.createXhr||function(){var e,t,n;if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;if("undefined"!=typeof ActiveXObject)for(t=0;t<3;t+=1){n=s[t];try{e=new ActiveXObject(n)}catch(e){}if(e){s=[n];break}}return e},parseName:function(e){var t,n,i,r=!1,o=e.lastIndexOf("."),s=0===e.indexOf("./")||0===e.indexOf("../");return-1!==o&&(!s||o>1)?(t=e.substring(0,o),n=e.substring(o+1)):t=e,-1!==(o=(i=n||t).indexOf("!"))&&(r="strip"===i.substring(o+1),i=i.substring(0,o),n?n=i:t=i),{moduleName:t,ext:n,strip:r}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(e,n,i,r){var o,s,a,l=t.xdRegExp.exec(e);return!l||(o=l[2],a=(s=(s=l[3]).split(":"))[1],s=s[0],(!o||o===n)&&(!s||s.toLowerCase()===i.toLowerCase())&&(!a&&!s||function(e,t,n,i){if(t===i)return!0;if(e===n){if("http"===e)return m(t,"80")===m(i,"80");if("https"===e)return m(t,"443")===m(i,"443")}return!1}(o,a,n,r)))},finishLoad:function(e,n,i,r){i=n?t.strip(i):i,h.isBuild&&(f[e]=i),r(i)},load:function(e,n,i,r){if(r&&r.isBuild&&!r.inlineText)i();else{h.isBuild=r&&r.isBuild;var o=t.parseName(e),s=o.moduleName+(o.ext?"."+o.ext:""),a=n.toUrl(s),l=h.useXhr||t.useXhr;0!==a.indexOf("empty:")?!u||l(a,c,d,p)?t.get(a,function(n){t.finishLoad(e,o.strip,n,i)},function(e){i.error&&i.error(e)}):n([s],function(e){t.finishLoad(o.moduleName+"."+o.ext,o.strip,e,i)}):i()}},write:function(e,n,i,r){if(f.hasOwnProperty(n)){var o=t.jsEscape(f[n]);i.asModule(e+"!"+n,"define(function () { return '"+o+"';});\n")}},writeFile:function(e,n,i,r,o){var s=t.parseName(n),a=s.ext?"."+s.ext:"",l=s.moduleName+a,u=i.toUrl(s.moduleName+a)+".js";t.load(l,i,function(n){var i=function(e){return r(u,e)};i.asModule=function(e,t){return r.asModule(e,u,t)},t.write(e,l,i,o)},o)}},"node"===h.env||!h.env&&"undefined"!=typeof process&&process.versions&&process.versions.node&&!process.versions["node-webkit"]&&!process.versions["atom-shell"]?(n=require.nodeRequire("fs"),t.get=function(e,t,i){try{var r=n.readFileSync(e,"utf8");"\ufeff"===r[0]&&(r=r.substring(1)),t(r)}catch(e){i&&i(e)}}):"xhr"===h.env||!h.env&&t.createXhr()?t.get=function(e,n,i,r){var o,s=t.createXhr();if(s.open("GET",e,!0),r)for(o in r)r.hasOwnProperty(o)&&s.setRequestHeader(o.toLowerCase(),r[o]);h.onXhr&&h.onXhr(s,e),s.onreadystatechange=function(t){var r,o;4===s.readyState&&((r=s.status||0)>399&&r<600?((o=new Error(e+" HTTP status: "+r)).xhr=s,i&&i(o)):n(s.responseText),h.onXhrComplete&&h.onXhrComplete(s,e))},s.send(null)}:"rhino"===h.env||!h.env&&"undefined"!=typeof Packages&&"undefined"!=typeof java?t.get=function(e,t){var n,i,r=new java.io.File(e),o=java.lang.System.getProperty("line.separator"),s=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(r),"utf-8")),a="";try{for(n=new java.lang.StringBuffer,(i=s.readLine())&&i.length()&&65279===i.charAt(0)&&(i=i.substring(1)),null!==i&&n.append(i);null!==(i=s.readLine());)n.append(o),n.append(i);a=String(n.toString())}finally{s.close()}t(a)}:("xpconnect"===h.env||!h.env&&"undefined"!=typeof Components&&Components.classes&&Components.interfaces)&&(i=Components.classes,r=Components.interfaces,Components.utils.import("resource://gre/modules/FileUtils.jsm"),o="@mozilla.org/windows-registry-key;1"in i,t.get=function(e,t){var n,s,a,l={};o&&(e=e.replace(/\//g,"\\")),a=new FileUtils.File(e);try{(n=i["@mozilla.org/network/file-input-stream;1"].createInstance(r.nsIFileInputStream)).init(a,1,0,!1),(s=i["@mozilla.org/intl/converter-input-stream;1"].createInstance(r.nsIConverterInputStream)).init(n,"utf-8",n.available(),r.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER),s.readString(n.available(),l),s.close(),n.close(),t(l.value)}catch(e){throw new Error((a&&a.path||"")+": "+e)}}),t}),
/*! Hammer.JS - v2.0.8 - 2016-04-23
 * http://hammerjs.github.io/
 *
 * Copyright (c) 2016 Jorik Tangelder;
 * Licensed under the MIT license */
function(e,t,n,i){"use strict";var r,o=["","webkit","Moz","MS","ms","o"],s=t.createElement("div"),a="function",l=Math.round,u=Math.abs,c=Date.now;function d(e,t,n){return setTimeout(y(e,n),t)}function p(e,t,n){return!!Array.isArray(e)&&(f(e,n[t],n),!0)}function f(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(e.length!==i)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function h(t,n,i){var r="DEPRECATED METHOD: "+n+"\n"+i+" AT \n";return function(){var n=new Error("get-stack-trace"),i=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=e.console&&(e.console.warn||e.console.log);return o&&o.call(e.console,r,i),t.apply(this,arguments)}}r="function"!=typeof Object.assign?function(e){if(e===i||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(r!==i&&null!==r)for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])}return t}:Object.assign;var m=h(function(e,t,n){for(var r=Object.keys(t),o=0;o<r.length;)(!n||n&&e[r[o]]===i)&&(e[r[o]]=t[r[o]]),o++;return e},"extend","Use `assign`."),g=h(function(e,t){return m(e,t,!0)},"merge","Use `assign`.");function v(e,t,n){var i,o=t.prototype;(i=e.prototype=Object.create(o)).constructor=e,i._super=o,n&&r(i,n)}function y(e,t){return function(){return e.apply(t,arguments)}}function b(e,t){return typeof e==a?e.apply(t&&t[0]||i,t):e}function w(e,t){return e===i?t:e}function x(e,t,n){f(_(t),function(t){e.addEventListener(t,n,!1)})}function E(e,t,n){f(_(t),function(t){e.removeEventListener(t,n,!1)})}function C(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function T(e,t){return e.indexOf(t)>-1}function _(e){return e.trim().split(/\s+/g)}function S(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var i=0;i<e.length;){if(n&&e[i][n]==t||!n&&e[i]===t)return i;i++}return-1}function D(e){return Array.prototype.slice.call(e,0)}function N(e,t,n){for(var i=[],r=[],o=0;o<e.length;){var s=t?e[o][t]:e[o];S(r,s)<0&&i.push(e[o]),r[o]=s,o++}return n&&(i=t?i.sort(function(e,n){return e[t]>n[t]}):i.sort()),i}function k(e,t){for(var n,r,s=t[0].toUpperCase()+t.slice(1),a=0;a<o.length;){if((r=(n=o[a])?n+s:t)in e)return r;a++}return i}var O=1;function A(t){var n=t.ownerDocument||t;return n.defaultView||n.parentWindow||e}var P="ontouchstart"in e,I=k(e,"PointerEvent")!==i,L=P&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),j=25,H=1,M=2,R=4,F=8,W=1,B=2,q=4,V=8,z=16,X=B|q,$=V|z,U=X|$,Y=["x","y"],K=["clientX","clientY"];function J(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){b(e.options.enable,[e])&&n.handler(t)},this.init()}function G(e,t,n){var r=n.pointers.length,o=n.changedPointers.length,s=t&H&&r-o==0,a=t&(R|F)&&r-o==0;n.isFirst=!!s,n.isFinal=!!a,s&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,o=r.length;n.firstInput||(n.firstInput=Q(t));o>1&&!n.firstMultiple?n.firstMultiple=Q(t):1===o&&(n.firstMultiple=!1);var s=n.firstInput,a=n.firstMultiple,l=a?a.center:s.center,d=t.center=Z(r);t.timeStamp=c(),t.deltaTime=t.timeStamp-s.timeStamp,t.angle=ie(l,d),t.distance=ne(l,d),function(e,t){var n=t.center,i=e.offsetDelta||{},r=e.prevDelta||{},o=e.prevInput||{};t.eventType!==H&&o.eventType!==R||(r=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=e.offsetDelta={x:n.x,y:n.y});t.deltaX=r.x+(n.x-i.x),t.deltaY=r.y+(n.y-i.y)}(n,t),t.offsetDirection=te(t.deltaX,t.deltaY);var p=ee(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=p.x,t.overallVelocityY=p.y,t.overallVelocity=u(p.x)>u(p.y)?p.x:p.y,t.scale=a?(f=a.pointers,h=r,ne(h[0],h[1],K)/ne(f[0],f[1],K)):1,t.rotation=a?function(e,t){return ie(t[1],t[0],K)+ie(e[1],e[0],K)}(a.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,o,s,a=e.lastInterval||t,l=t.timeStamp-a.timeStamp;if(t.eventType!=F&&(l>j||a.velocity===i)){var c=t.deltaX-a.deltaX,d=t.deltaY-a.deltaY,p=ee(l,c,d);r=p.x,o=p.y,n=u(p.x)>u(p.y)?p.x:p.y,s=te(c,d),e.lastInterval=t}else n=a.velocity,r=a.velocityX,o=a.velocityY,s=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=o,t.direction=s}(n,t);var f,h;var m=e.element;C(t.srcEvent.target,m)&&(m=t.srcEvent.target);t.target=m}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function Q(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:l(e.pointers[n].clientX),clientY:l(e.pointers[n].clientY)},n++;return{timeStamp:c(),pointers:t,center:Z(t),deltaX:e.deltaX,deltaY:e.deltaY}}function Z(e){var t=e.length;if(1===t)return{x:l(e[0].clientX),y:l(e[0].clientY)};for(var n=0,i=0,r=0;r<t;)n+=e[r].clientX,i+=e[r].clientY,r++;return{x:l(n/t),y:l(i/t)}}function ee(e,t,n){return{x:t/e||0,y:n/e||0}}function te(e,t){return e===t?W:u(e)>=u(t)?e<0?B:q:t<0?V:z}function ne(e,t,n){n||(n=Y);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return Math.sqrt(i*i+r*r)}function ie(e,t,n){n||(n=Y);var i=t[n[0]]-e[n[0]],r=t[n[1]]-e[n[1]];return 180*Math.atan2(r,i)/Math.PI}J.prototype={handler:function(){},init:function(){this.evEl&&x(this.element,this.evEl,this.domHandler),this.evTarget&&x(this.target,this.evTarget,this.domHandler),this.evWin&&x(A(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&E(this.element,this.evEl,this.domHandler),this.evTarget&&E(this.target,this.evTarget,this.domHandler),this.evWin&&E(A(this.element),this.evWin,this.domHandler)}};var re={mousedown:H,mousemove:M,mouseup:R},oe="mousedown",se="mousemove mouseup";function ae(){this.evEl=oe,this.evWin=se,this.pressed=!1,J.apply(this,arguments)}v(ae,J,{handler:function(e){var t=re[e.type];t&H&&0===e.button&&(this.pressed=!0),t&M&&1!==e.which&&(t=R),this.pressed&&(t&R&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}});var le={pointerdown:H,pointermove:M,pointerup:R,pointercancel:F,pointerout:F},ue={2:"touch",3:"pen",4:"mouse",5:"kinect"},ce="pointerdown",de="pointermove pointerup pointercancel";function pe(){this.evEl=ce,this.evWin=de,J.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}e.MSPointerEvent&&!e.PointerEvent&&(ce="MSPointerDown",de="MSPointerMove MSPointerUp MSPointerCancel"),v(pe,J,{handler:function(e){var t=this.store,n=!1,i=e.type.toLowerCase().replace("ms",""),r=le[i],o=ue[e.pointerType]||e.pointerType,s="touch"==o,a=S(t,e.pointerId,"pointerId");r&H&&(0===e.button||s)?a<0&&(t.push(e),a=t.length-1):r&(R|F)&&(n=!0),a<0||(t[a]=e,this.callback(this.manager,r,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(a,1))}});var fe={touchstart:H,touchmove:M,touchend:R,touchcancel:F},he="touchstart",me="touchstart touchmove touchend touchcancel";function ge(){this.evTarget=he,this.evWin=me,this.started=!1,J.apply(this,arguments)}v(ge,J,{handler:function(e){var t=fe[e.type];if(t===H&&(this.started=!0),this.started){var n=function(e,t){var n=D(e.touches),i=D(e.changedTouches);t&(R|F)&&(n=N(n.concat(i),"identifier",!0));return[n,i]}.call(this,e,t);t&(R|F)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}});var ve={touchstart:H,touchmove:M,touchend:R,touchcancel:F},ye="touchstart touchmove touchend touchcancel";function be(){this.evTarget=ye,this.targetIds={},J.apply(this,arguments)}v(be,J,{handler:function(e){var t=ve[e.type],n=function(e,t){var n=D(e.touches),i=this.targetIds;if(t&(H|M)&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,s=D(e.changedTouches),a=[],l=this.target;if(o=n.filter(function(e){return C(e.target,l)}),t===H)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;r=0;for(;r<s.length;)i[s[r].identifier]&&a.push(s[r]),t&(R|F)&&delete i[s[r].identifier],r++;if(!a.length)return;return[N(o.concat(a),"identifier",!0),a]}.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}});var we=2500,xe=25;function Ee(){J.apply(this,arguments);var e=y(this.handler,this);this.touch=new be(this.manager,e),this.mouse=new ae(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function Ce(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout(function(){var e=i.indexOf(n);e>-1&&i.splice(e,1)},we)}}v(Ee,J,{handler:function(e,t,n){var i="touch"==n.pointerType,r="mouse"==n.pointerType;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)(function(e,t){e&H?(this.primaryTouch=t.changedPointers[0].identifier,Ce.call(this,t)):e&(R|F)&&Ce.call(this,t)}).call(this,t,n);else if(r&&function(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(t-r.x),s=Math.abs(n-r.y);if(o<=xe&&s<=xe)return!0}return!1}.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Te=k(s.style,"touchAction"),_e=Te!==i,Se="auto",De="manipulation",Ne="none",ke="pan-x",Oe="pan-y",Ae=function(){if(!_e)return!1;var t={},n=e.CSS&&e.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(i){t[i]=!n||e.CSS.supports("touch-action",i)}),t}();function Pe(e,t){this.manager=e,this.set(t)}Pe.prototype={set:function(e){"compute"==e&&(e=this.compute()),_e&&this.manager.element.style&&Ae[e]&&(this.manager.element.style[Te]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return f(this.manager.recognizers,function(t){b(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),function(e){if(T(e,Ne))return Ne;var t=T(e,ke),n=T(e,Oe);if(t&&n)return Ne;if(t||n)return t?ke:Oe;if(T(e,De))return De;return Se}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var i=this.actions,r=T(i,Ne)&&!Ae[Ne],o=T(i,Oe)&&!Ae[Oe],s=T(i,ke)&&!Ae[ke];if(r){var a=1===e.pointers.length,l=e.distance<2,u=e.deltaTime<250;if(a&&l&&u)return}if(!s||!o)return r||o&&n&X||s&&n&$?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Ie=1,Le=2,je=4,He=8,Me=He,Re=16;function Fe(e){this.options=r({},this.defaults,e||{}),this.id=O++,this.manager=null,this.options.enable=w(this.options.enable,!0),this.state=Ie,this.simultaneous={},this.requireFail=[]}function We(e){return e&Re?"cancel":e&He?"end":e&je?"move":e&Le?"start":""}function Be(e){return e==z?"down":e==V?"up":e==B?"left":e==q?"right":""}function qe(e,t){var n=t.manager;return n?n.get(e):e}function Ve(){Fe.apply(this,arguments)}function ze(){Ve.apply(this,arguments),this.pX=null,this.pY=null}function Xe(){Ve.apply(this,arguments)}function $e(){Fe.apply(this,arguments),this._timer=null,this._input=null}function Ue(){Ve.apply(this,arguments)}function Ye(){Ve.apply(this,arguments)}function Ke(){Fe.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Je(e,t){return(t=t||{}).recognizers=w(t.recognizers,Je.defaults.preset),new Ge(e,t)}Fe.prototype={defaults:{},set:function(e){return r(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(p(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=qe(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return p(e,"dropRecognizeWith",this)?this:(e=qe(e,this),delete this.simultaneous[e.id],this)},requireFailure:function(e){if(p(e,"requireFailure",this))return this;var t=this.requireFail;return-1===S(t,e=qe(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(p(e,"dropRequireFailure",this))return this;e=qe(e,this);var t=S(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function i(n){t.manager.emit(n,e)}n<He&&i(t.options.event+We(n)),i(t.options.event),e.additionalEvent&&i(e.additionalEvent),n>=He&&i(t.options.event+We(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(32|Ie)))return!1;e++}return!0},recognize:function(e){var t=r({},e);if(!b(this.options.enable,[this,t]))return this.reset(),void(this.state=32);this.state&(Me|Re|32)&&(this.state=Ie),this.state=this.process(t),this.state&(Le|je|He|Re)&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},v(Ve,Fe,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,i=t&(Le|je),r=this.attrTest(e);return i&&(n&F||!r)?t|Re:i||r?n&R?t|He:t&Le?t|je:Le:32}}),v(ze,Ve,{defaults:{event:"pan",threshold:10,pointers:1,direction:U},getTouchAction:function(){var e=this.options.direction,t=[];return e&X&&t.push(Oe),e&$&&t.push(ke),t},directionTest:function(e){var t=this.options,n=!0,i=e.distance,r=e.direction,o=e.deltaX,s=e.deltaY;return r&t.direction||(t.direction&X?(r=0===o?W:o<0?B:q,n=o!=this.pX,i=Math.abs(e.deltaX)):(r=0===s?W:s<0?V:z,n=s!=this.pY,i=Math.abs(e.deltaY))),e.direction=r,n&&i>t.threshold&&r&t.direction},attrTest:function(e){return Ve.prototype.attrTest.call(this,e)&&(this.state&Le||!(this.state&Le)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=Be(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),v(Xe,Ve,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ne]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&Le)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),v($e,Fe,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Se]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,r=e.deltaTime>t.time;if(this._input=e,!i||!n||e.eventType&(R|F)&&!r)this.reset();else if(e.eventType&H)this.reset(),this._timer=d(function(){this.state=Me,this.tryEmit()},t.time,this);else if(e.eventType&R)return Me;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===Me&&(e&&e.eventType&R?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=c(),this.manager.emit(this.options.event,this._input)))}}),v(Ue,Ve,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ne]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&Le)}}),v(Ye,Ve,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:X|$,pointers:1},getTouchAction:function(){return ze.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return n&(X|$)?t=e.overallVelocity:n&X?t=e.overallVelocityX:n&$&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&u(t)>this.options.velocity&&e.eventType&R},emit:function(e){var t=Be(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),v(Ke,Fe,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[De]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,i=e.distance<t.threshold,r=e.deltaTime<t.time;if(this.reset(),e.eventType&H&&0===this.count)return this.failTimeout();if(i&&r&&n){if(e.eventType!=R)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,s=!this.pCenter||ne(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,s&&o?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=d(function(){this.state=Me,this.tryEmit()},t.interval,this),Le):Me}return 32},failTimeout:function(){return this._timer=d(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==Me&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Je.VERSION="2.0.8",Je.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[Ue,{enable:!1}],[Xe,{enable:!1},["rotate"]],[Ye,{direction:X}],[ze,{direction:X},["swipe"]],[Ke],[Ke,{event:"doubletap",taps:2},["tap"]],[$e]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Ge(e,t){var n;this.options=r({},Je.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(I?pe:L?be:P?Ee:ae))(n,G),this.touchAction=new Pe(this,this.options.touchAction),Qe(this,!0),f(this.options.recognizers,function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}function Qe(e,t){var n,i=e.element;i.style&&(f(e.options.cssProps,function(r,o){n=k(i.style,o),t?(e.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=e.oldCssProps[n]||""}),t||(e.oldCssProps={}))}Ge.prototype={set:function(e){return r(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var i=this.recognizers,r=t.curRecognizer;(!r||r&&r.state&Me)&&(r=t.curRecognizer=null);for(var o=0;o<i.length;)n=i[o],2===t.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(e),!r&&n.state&(Le|je|He)&&(r=t.curRecognizer=n),o++}},get:function(e){if(e instanceof Fe)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(p(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(p(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=S(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(e!==i&&t!==i){var n=this.handlers;return f(_(e),function(e){n[e]=n[e]||[],n[e].push(t)}),this}},off:function(e,t){if(e!==i){var n=this.handlers;return f(_(e),function(e){t?n[e]&&n[e].splice(S(n[e],t),1):delete n[e]}),this}},emit:function(e,n){this.options.domEvents&&function(e,n){var i=t.createEvent("Event");i.initEvent(e,!0,!0),i.gesture=n,n.target.dispatchEvent(i)}(e,n);var i=this.handlers[e]&&this.handlers[e].slice();if(i&&i.length){n.type=e,n.preventDefault=function(){n.srcEvent.preventDefault()};for(var r=0;r<i.length;)i[r](n),r++}},destroy:function(){this.element&&Qe(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},r(Je,{INPUT_START:H,INPUT_MOVE:M,INPUT_END:R,INPUT_CANCEL:F,STATE_POSSIBLE:Ie,STATE_BEGAN:Le,STATE_CHANGED:je,STATE_ENDED:He,STATE_RECOGNIZED:Me,STATE_CANCELLED:Re,STATE_FAILED:32,DIRECTION_NONE:W,DIRECTION_LEFT:B,DIRECTION_RIGHT:q,DIRECTION_UP:V,DIRECTION_DOWN:z,DIRECTION_HORIZONTAL:X,DIRECTION_VERTICAL:$,DIRECTION_ALL:U,Manager:Ge,Input:J,TouchAction:Pe,TouchInput:be,MouseInput:ae,PointerEventInput:pe,TouchMouseInput:Ee,SingleTouchInput:ge,Recognizer:Fe,AttrRecognizer:Ve,Tap:Ke,Pan:ze,Swipe:Ye,Pinch:Xe,Rotate:Ue,Press:$e,on:x,off:E,each:f,merge:g,extend:m,assign:r,inherit:v,bindFn:y,prefixed:k}),(void 0!==e?e:"undefined"!=typeof self?self:{}).Hammer=Je,"function"==typeof define&&define.amd?define("hammerjs",[],function(){return Je}):"undefined"!=typeof module&&module.exports?module.exports=Je:e.Hammer=Je}(window,document),function(){var e=function(){"use strict";var e={};function t(e){return 0===e.indexOf("./")?e.substr(2):e}function n(){if(!this._resolvedModule){var e=i(this.deps),t=this.module;this._resolvedModule="function"==typeof t?t.apply(null,e):t}return this._resolvedModule}function i(t){return t.map(function(t){return e[t].resolve()})}return{define:function(i,r,o){e[i]={deps:r.map(t),module:o,resolve:n}},require:function(e,t){var n=i(e);t.apply(null,n)}}}(),t=e.define,n=e.require;t("dataTransfer",[],function(){"use strict";return function(e,t){var n={},i="none",r="uninitialized",o=t||function(){return"readwrite"},s=["none","copy","link","move"],a=["uninitialized","none","copy","copylink","copymove","link","linkmove","move","all"];function l(e){return e?e.toString().toLowerCase():null}this.files={},this.items={},this.getData=function(e){if("protected"!==o()){var t=l(e);return t&&n.hasOwnProperty(t)?n[t]:null}return""},this.setData=function(e,t){if("readwrite"===o()){var i=l(e);i&&(n[i]=t.toString())}},this.clearData=function(e){if("readwrite"===o()){var t=l(e);t?n.hasOwnProperty(t)&&delete n[t]:n={}}},this.setDragImage=function(t,n,i){e&&e(t,n,i)},Object.defineProperty(this,"types",{get:function(){var e=Object.keys(n);return e.item=function(t){return t>=0&&t<e.length?e[t]:null},e.contains=function(t){return e.indexOf(t)>=0},e}}),Object.defineProperty(this,"dropEffect",{get:function(){return i},set:function(e){e=e.toLowerCase(),s.indexOf(e)>=0&&(i=e)}}),Object.defineProperty(this,"effectAllowed",{get:function(){return r},set:function(e){e=e.toLowerCase(),a.indexOf(e)>=0&&(r=e)}})}}),t("dragImage",[],function(){"use strict";return function(e,t,n){var i=function(e){var t=null!=e.parentNode,n=e.style.position,i=e.style.top;t||(e.style.position="fixed",e.style.top="10000px",document.body.appendChild(e));var r=e.cloneNode(!0);return r.id=e.id+"_dragimage",r.style.opacity=.7,r.style.position="fixed",r.style.width=e.offsetWidth+"px",r.style.height=e.offsetHeight+"px",r.style.zIndex=function e(t){var n=0;if(t.children)for(var i=0;i<t.children.length;i++){var r=t.children[i],o=window.getComputedStyle(r);n="static"===o.position||"auto"===o.zIndex||isNaN(o.zIndex)?Math.max(n,e(r)):Math.max(n,o.zIndex)}return n}(document.body)+1,r.style.visibility="hidden",t||(document.body.removeChild(e),e.style.position=n,e.style.top=i),r}(e),r=t,o=n,s=e.scrollLeft,a=e.scrollTop;this.start=function(){document.body.appendChild(i),i.scrollLeft=s,i.scrollTop=a},this.end=function(){document.body.removeChild(i),i=null},this.move=function(e,t){i.style.left=e-r+s+"px",i.style.top=t-o+a+"px"},this.show=function(e){i.style.visibility=e?"visible":"hidden"}}}),t("eventDispatcher",[],function(){"use strict";var e={dragstart:{bubbles:!0,cancelable:!0},drag:{bubbles:!0,cancelable:!0},dragend:{bubbles:!0,cancelable:!1},dragenter:{bubbles:!0,cancelable:!0},dragover:{bubbles:!0,cancelable:!0},dragleave:{bubbles:!0,cancelable:!1},drop:{bubbles:!0,cancelable:!0}};function t(e){return e||0}function n(e){return e||!1}return{dispatch:function(i,r,o){var s=function(i,r,o){var s;if(window.Event&&"function"==typeof window.Event){var a={bubbles:e[i].bubbles,cancelable:e[i].cancelable};s=new window.Event(i,a)}else(s=document.createEvent("Event")).initEvent(i,e[i].bubbles,e[i].cancelable);return s.view=document.defaultView,s.detail=0,function(e,i){var r=i.target.getBoundingClientRect();e.screenX=t(i.screenX),e.screenY=t(i.screenY),e.clientX=t(i.clientX),e.clientY=t(i.clientY),e.offsetX=i.clientX-r.left,e.offsetY=i.clientY-r.top,e.pageX=t(i.pageX),e.pageY=t(i.pageY),e.altKey=n(i.altKey),e.ctrlKey=n(i.ctrlKey),e.metaKey=n(i.metaKey),e.shiftKey=n(i.shiftKey),e.button=t(i.button),e.buttons=t(i.buttons),e.relatedTarget=i.relatedTarget?i.relatedTarget:null}(s,r),s.getModifierState=function(e){return function(e,t){return"Alt"===e?t.altKey:"Control"===e?t.ctrlKey:"Meta"===e?t.metaKey:"Shift"===e&&t.shiftKey}(e,r)},s.dataTransfer=o,s.__isPseudo=!0,s}(i,r,o);return!r.target.dispatchEvent(s)},getMouseEventProps:function(e){return{screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY,altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey,button:e.button,buttons:e.buttons}}}}),t("autoScroller",[],function(){"use strict";function e(e,n,i){if(!function(e){if(e===document.body)return!1;if(e===document.documentElement)return!0;if(1===e.nodeType){var t=window.getComputedStyle(e,null);return("auto"===t.overflow||"scroll"===t.overflow)&&(e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight)}return!1}(e))return!1;var r,o,s,a,l,u=e.scrollLeft,c=e.scrollTop;if(e===document.documentElement)u=u||document.body.scrollLeft,c=c||document.body.scrollTop;else{var d=e.getBoundingClientRect();n-=Math.round(d.left),i-=Math.round(d.top)}return r=t(e.clientWidth,e.scrollWidth,n,u),o=t(e.clientHeight,e.scrollHeight,i,c),!(!r&&!o)&&(a=u+r,l=c+o,(s=e).scrollLeft=a,s.scrollTop=l,s===document.documentElement&&(document.body.scrollLeft=a,document.body.scrollTop=l),!0)}function t(e,t,n,i){if(n>e-12&&n<e){if(i+e<t)return 15}else if(n>=0&&n<12&&i>0)return-Math.min(i,15);return 0}return{checkAutoScroll:function(t,n,i){for(var r=t;null!=r&&!e(r,n,i);)r=r.parentNode;return r}}}),t("dragController",["./dataTransfer","./dragImage","./eventDispatcher","./autoScroller"],function(e,t,n,i){"use strict";return function(){var r,o,s,a,l,u,c,d=-1,p=-1,f="none";function h(){return u}function m(e,t,i,r,o){return u=function(e){return"dragstart"===e?"readwrite":"drop"===e?"readonly":"protected"}(e),"dragstart"!==e&&(r.dropEffect=function(e,t){return"drag"===e||"dragleave"===e?"none":"dragenter"===e||"dragover"===e?"none"===t?"none":"move"===t?"move":0===t.indexOf("link")?"link":"copy":f}(e,r.effectAllowed)),i||(i={}),i.target=t,i.relatedTarget=o,n.dispatch(e,i,r)}function g(e,n,i){o&&(o.end(),o=null),e&&e.cloneNode&&(c={x:n,y:i},(o=new t(e,n,i)).start())}function v(){return null!=r}function y(e){var t=e.clientX,n=e.clientY;return t===d&&n===p?a:document.elementFromPoint(t,n)}function b(e){if(e){var t=r.effectAllowed;f="uninitialized"===t||"all"===t||t.indexOf(r.dropEffect)>=0?r.dropEffect:"none"}else f=w(a)?"copy":"none"}function w(e){return e&&("TEXTAREA"===e.nodeName||"INPUT"===e.nodeName&&"text"===e.type)}function x(e){void 0!==e._dndSavedCursor&&(e.style.cursor=e._dndSavedCursor,delete e._dndSavedCursor)}function E(e){C(e,!0)}function C(e,t){if(v()){o.show(!1);var n=y(e);n&&(x(n),function(e,t,n){_(n)||m("dragleave",e,t,r)}(n,e,t),T(n,e,t)),m("dragend",s,e,r),S()}}function T(e,t,n){if(_(n)){var i=m("drop",e,t,r);return i?f=r.dropEffect:w(e)?function(e){var t=r.getData("text");if(t&&""!==t){var n=e.value,i=e.selectionEnd;e.value=n.substring(0,i)+t+n.substring(i)}}(e):f="none",i}return!0}function _(e){return!e&&"none"!==f}function S(){g(null,0,0),r=null,s=null,a=null,f="none",document.body.style.cursor=l,l=null}var D=50,N=10;this.start=function(t,n,i){var a=new e(g,h);return m("dragstart",t,i,a)?{dragState:"canceled"}:function(e,t){return 0!==e.types.length&&(!t||t(e,o))}(a,n)?function(e,t,n){return r=e,s=t,l=document.body.style.cursor,function(e,t){if(null==o){var n=e.getBoundingClientRect(),i=t?t.clientX:n.left,r=t?t.clientY:n.top;g(e,i-n.left,r-n.top)}}(t,n),{dragState:"started",dataTransfer:e}}(a,t,i):{dataTransfer:a}},this.drag=function(e){if(e&&v()){if(o.show(!1),function(e){return m("drag",s,e,r)}(e))return E(e),!0;try{var t=y(e);!function(e,t){e!==a&&(e&&m("dragenter",e,t,r,a),a&&(x(a),m("dragleave",a,t,r,e)))}(t,e),function(e,t){if(e){var n=m("dragover",e,t,r);b(n)}}(t,e),function(e,t){(function(e){o.move(e.clientX,e.clientY)})(t),function(e){var t;(t="none"===f?"not-allowed":"copy"===f?"copy":"link"===f?"alias":"default")!==document.body.style.cursor&&(document.body.style.cursor=t),function(e,t){e.style.cursor!==t&&(void 0===e._dndSavedCursor&&(e._dndSavedCursor=e.style.cursor),e.style.cursor=t)}(e,t)}(e),function(e,t){i.checkAutoScroll(e,t.clientX,t.clientY)&&(d=-1,p=-1)}(e,t)}(t,e),function(e,t){a=e,d=t.clientX,p=t.clientY}(t,e)}finally{o.show(!0)}}return!1},this.end=function(e){C(e,!1)},this.cancel=E,this.handleDndEvent=function(e){var t=e.target,i=e.relatedTarget,s=n.getMouseEventProps(e);switch(e.type){case"drag":o&&o.show(!0),m("drag",t,s,r);break;case"dragenter":m("dragenter",t,s,r,i);break;case"dragleave":m("dragleave",t,s,r,i);break;case"dragover":var a=c.x>0?s.clientX-D:s.clientX+N,l=s.clientY;o.move(a,l);var u=m("dragover",t,s,r);b(u),u&&e.preventDefault();break;case"dragend":o&&o.show(!1),m("dragend",t,s,r,i),S(),e.dataTransfer.clearData();break;case"drop":o&&o.show(!1),(u=T(t,s,!1))&&e.preventDefault()}}}}),t("args",[],function(){"use strict";function e(e,t){if(!t)throw new Error("required argument '"+e+"' not specified")}return{requiredString:function(t,n){if(e(t,n),"string"!=typeof n)throw new Error("argument '"+t+"' must be a string")},required:e}}),t("glassPane",["./eventDispatcher"],function(e){"use strict";return function(t,n){var i,r,o;function s(){try{t(r)}finally{}}function a(t){t.target===document.body&&t.buttons!==o&&(r=e.getMouseEventProps(t),n(r,!0))}function l(t){void 0===o&&(o=t.buttons),t.stopPropagation(),t.preventDefault(),r=e.getMouseEventProps(t),s()}function u(t){t.stopPropagation(),t.preventDefault(),r=e.getMouseEventProps(t),n(r,!1)}this.start=function(e){r=e,document.body.addEventListener("mouseenter",a,!0),document.body.addEventListener("mousemove",l,!0),document.body.addEventListener("mouseup",u,!0),i=window.setInterval(s,200)},this.end=function(){i&&(window.clearInterval(i),i=null),document.body.removeEventListener("mouseenter",a,!0),document.body.removeEventListener("mousemove",l,!0),document.body.removeEventListener("mouseup",u,!0)},this.getLastInputProps=function(){return r}}}),t("desktopDragDriver",["./args","./glassPane","./eventDispatcher"],function(e,t,n){"use strict";return function(i,r){var o,s,a;function l(){var e=navigator.userAgent.toLowerCase();(e.indexOf("trident")>0||e.indexOf("edge")>0||e.indexOf("phantomjs")>0)&&(r.addEventListener("dragstart",d,!0),r.addEventListener("drag",y,!0),r.addEventListener("dragover",y,!0),r.addEventListener("dragend",y,!0),r.addEventListener("dragenter",y,!0),r.addEventListener("dragleave",y,!0),r.addEventListener("drop",y,!0),r.addEventListener("pointerdown",c,!0))}function u(){r.removeEventListener("dragstart",d,!0),r.removeEventListener("drag",y,!0),r.removeEventListener("dragover",y,!0),r.removeEventListener("dragend",y,!0),r.removeEventListener("dragenter",y,!0),r.removeEventListener("dragleave",y,!0),r.removeEventListener("drop",y,!0),r.removeEventListener("pointerdown",c,!0)}function c(e){s=e.pointerType}function d(e){if("touch"===s){var r=e.target;r.style.visibility="hidden",function(e){if(!e.__isPseudo){e.stopPropagation();for(var t=e.target;t&&!t.draggable;)t=t.parentNode;if(t){a=t;var r=n.getMouseEventProps(e),o=i.start(a,null,r);"started"!==o.dragState&&(e.preventDefault(),a=null)}}}(e),setTimeout(function(){r.style.visibility="visible"},0)}else!function(e){var r,s,a,c=n.getMouseEventProps(e);e.stopPropagation(),u();try{r=i.start(e.target,p,c)}finally{l()}"canceled"===r.dragState?e.preventDefault():"started"===r.dragState?function(e,n,i){e.preventDefault(),function(e){(o=new t(m,g)).start(e),document.body.addEventListener("keydown",v,!0)}(i)}(e,0,c):(f(s=r.dataTransfer,a=e,"text"),f(s,a,"url"))}(e)}function p(e,t){return null!=t||function(e){var t=e.types;if(0===t.length)return!1;for(var n=0;n<t.length;n++){var i=t[n].toLowerCase();if("text"!==i&&"url"!==i)return!0}return!1}(e)}function f(e,t,n){var i=e.getData(n);i&&t.dataTransfer.setData(n,i)}function h(){o&&(o.end(),o=null),document.body.removeEventListener("keydown",v,!0)}function m(e){var t=i.drag(e);return t&&h(),t}function g(e,t){h(),t?i.cancel(e):i.end(e)}function v(e){if(e.stopPropagation(),e.preventDefault(),"Esc"===e.key||27===e.keyCode){var t=o.getLastInputProps();h(),i.cancel(t)}}function y(e){e.__isPseudo||a&&(e.stopPropagation(),i.handleDndEvent(e),"dragend"===e.type&&(a=null))}e.required("controller",i),this.install=l,this.remove=u}}),t("touchDragDriver",["./args"],function(e){"use strict";return function(t,n){e.required("controller",t);var i=null,r=!1;function o(e){for(var t=e.target;t&&!t.draggable;)t=t.parentNode;t&&function(e){e.addEventListener("touchstart",l,!1),e.addEventListener("touchmove",u,!1),e.addEventListener("touchend",c,!1),e.addEventListener("touchcancel",d,!1)}(t)}function s(){}function a(e){e.removeEventListener("touchstart",l,!1),e.removeEventListener("touchmove",u,!1),e.removeEventListener("touchend",c,!1),e.removeEventListener("touchcancel",d,!1)}function l(e){i=e.currentTarget,r=!1}function u(e){if(e.preventDefault(),e.stopPropagation(),!r){if("started"!==t.start(i,null,f(e)).dragState)return void a(e.currentTarget);r=!0}t.drag(f(e))&&a(e.currentTarget)}function c(e){p(e,!1)}function d(e){p(e,!0)}function p(e,n){var o=e.currentTarget;n?t.cancel(f(e)):t.end(f(e)),i=null,r=!1,a(o)}function f(e){return{screenX:Math.round(e.changedTouches[0].screenX),screenY:Math.round(e.changedTouches[0].screenY),clientX:Math.round(e.changedTouches[0].clientX),clientY:Math.round(e.changedTouches[0].clientY),pageX:Math.round(e.changedTouches[0].pageX),pageY:Math.round(e.changedTouches[0].pageY),altKey:e.altKey,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey}}this.install=function(){n.addEventListener("touchstart",o,!0),n.addEventListener("touchmove",s,!0)},this.remove=function(){n.removeEventListener("touchstart",o,!0),n.removeEventListener("touchmove",s,!0)}}}),t("bootstrap",["./dragController","./desktopDragDriver","./touchDragDriver"],function(e,t,n){"use strict";var i=[];return{init:function(){i.length>0||function(e,t){for(var n=document.documentElement,r=0;r<t.length;r++){var o=t[r],s=new o(e,n);s.install(),i.push(s)}}(new e,-1!==navigator.userAgent.toLowerCase().indexOf("edge")?[t]:[t,n])},destroy:function(){i.forEach(function(e){e.remove()}),i=[]}}}),n(["bootstrap"],function(e){e.init()})}(),define("ojdnd",function(){}),function(){"use strict";var e=new function(){},t=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function n(e){var n=t.has(e);return e=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(e),!n&&e}function i(e){var t=e.isConnected;if(void 0!==t)return t;for(;e&&!(e.__CE_isImportDocument||e instanceof Document);)e=e.parentNode||(window.ShadowRoot&&e instanceof ShadowRoot?e.host:void 0);return!(!e||!(e.__CE_isImportDocument||e instanceof Document))}function r(e,t){for(;t&&t!==e&&!t.nextSibling;)t=t.parentNode;return t&&t!==e?t.nextSibling:null}function o(e,t,n){n=n||new Set;for(var i=e;i;){if(i.nodeType===Node.ELEMENT_NODE){var s=i;t(s);var a=s.localName;if("link"===a&&"import"===s.getAttribute("rel")){if((i=s.import)instanceof Node&&!n.has(i))for(n.add(i),i=i.firstChild;i;i=i.nextSibling)o(i,t,n);i=r(e,s);continue}if("template"===a){i=r(e,s);continue}if(s=s.__CE_shadowRoot)for(s=s.firstChild;s;s=s.nextSibling)o(s,t,n)}i=i.firstChild?i.firstChild:r(e,i)}}function s(e,t,n){e[t]=n}function a(){this.a=new Map,this.s=new Map,this.f=[],this.b=!1}function l(e,t){e.b=!0,e.f.push(t)}function u(e,t){e.b&&o(t,function(t){return c(e,t)})}function c(e,t){if(e.b&&!t.__CE_patched){t.__CE_patched=!0;for(var n=0;n<e.f.length;n++)e.f[n](t)}}function d(e,t){var n=[];for(o(t,function(e){return n.push(e)}),t=0;t<n.length;t++){var i=n[t];1===i.__CE_state?e.connectedCallback(i):h(e,i)}}function p(e,t){var n=[];for(o(t,function(e){return n.push(e)}),t=0;t<n.length;t++){var i=n[t];1===i.__CE_state&&e.disconnectedCallback(i)}}function f(e,t,n){var i=(n=n||{}).w||new Set,r=n.i||function(t){return h(e,t)},s=[];if(o(t,function(t){if("link"===t.localName&&"import"===t.getAttribute("rel")){var n=t.import;n instanceof Node&&(n.__CE_isImportDocument=!0,n.__CE_hasRegistry=!0),n&&"complete"===n.readyState?n.__CE_documentLoadHandled=!0:t.addEventListener("load",function(){var n=t.import;if(!n.__CE_documentLoadHandled){n.__CE_documentLoadHandled=!0;var o=new Set(i);o.delete(n),f(e,n,{w:o,i:r})}})}else s.push(t)},i),e.b)for(t=0;t<s.length;t++)c(e,s[t]);for(t=0;t<s.length;t++)r(s[t])}function h(e,t){if(void 0===t.__CE_state){var n=t.ownerDocument;if((n.defaultView||n.__CE_isImportDocument&&n.__CE_hasRegistry)&&(n=e.a.get(t.localName))){n.constructionStack.push(t);var r=n.constructor;try{try{if(new r!==t)throw Error("The custom element constructor did not produce the element being upgraded.")}finally{n.constructionStack.pop()}}catch(e){throw t.__CE_state=2,e}if(t.__CE_state=1,t.__CE_definition=n,n.attributeChangedCallback)for(n=n.observedAttributes,r=0;r<n.length;r++){var o=n[r],s=t.getAttribute(o);null!==s&&e.attributeChangedCallback(t,o,null,s,null)}i(t)&&e.connectedCallback(t)}}}function m(e,t){this.c=e,this.a=t,this.b=void 0,f(this.c,this.a),"loading"===this.a.readyState&&(this.b=new MutationObserver(this.f.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function g(e){e.b&&e.b.disconnect()}function v(e){if(e.a)throw Error("Already resolved.");e.a=void 0,e.b&&e.b(void 0)}function y(e){this.j=!1,this.c=e,this.o=new Map,this.l=function(e){return e()},this.g=!1,this.m=[],this.u=new m(e,document)}a.prototype.connectedCallback=function(e){var t=e.__CE_definition;t.connectedCallback&&t.connectedCallback.call(e)},a.prototype.disconnectedCallback=function(e){var t=e.__CE_definition;t.disconnectedCallback&&t.disconnectedCallback.call(e)},a.prototype.attributeChangedCallback=function(e,t,n,i,r){var o=e.__CE_definition;o.attributeChangedCallback&&-1<o.observedAttributes.indexOf(t)&&o.attributeChangedCallback.call(e,t,n,i,r)},m.prototype.f=function(e){var t=this.a.readyState;for("interactive"!==t&&"complete"!==t||g(this),t=0;t<e.length;t++)for(var n=e[t].addedNodes,i=0;i<n.length;i++)f(this.c,n[i])},y.prototype.define=function(e,t){var i,r,o,s,a,l=this;if(!(t instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!n(e))throw new SyntaxError("The element name '"+e+"' is not valid.");if(this.c.a.get(e))throw Error("A custom element with name '"+e+"' has already been defined.");if(this.j)throw Error("A custom element is already being defined.");this.j=!0;try{var u=function(e){var t=c[e];if(void 0!==t&&!(t instanceof Function))throw Error("The '"+e+"' callback must be a function.");return t},c=t.prototype;if(!(c instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");i=u("connectedCallback"),r=u("disconnectedCallback"),o=u("adoptedCallback"),s=u("attributeChangedCallback"),a=t.observedAttributes||[]}catch(e){return}finally{this.j=!1}t={localName:e,constructor:t,connectedCallback:i,disconnectedCallback:r,adoptedCallback:o,attributeChangedCallback:s,observedAttributes:a,constructionStack:[]},function(e,t,n){e.a.set(t,n),e.s.set(n.constructor,n)}(this.c,e,t),this.m.push(t),this.g||(this.g=!0,this.l(function(){return function(e){if(!1!==e.g){e.g=!1;for(var t=e.m,n=[],i=new Map,r=0;r<t.length;r++)i.set(t[r].localName,[]);for(f(e.c,document,{i:function(t){if(void 0===t.__CE_state){var r=t.localName,o=i.get(r);o?o.push(t):e.c.a.get(r)&&n.push(t)}}}),r=0;r<n.length;r++)h(e.c,n[r]);for(;0<t.length;){for(var o=t.shift(),r=o.localName,o=i.get(o.localName),s=0;s<o.length;s++)h(e.c,o[s]);(r=e.o.get(r))&&v(r)}}}(l)}))},y.prototype.i=function(e){f(this.c,e)},y.prototype.get=function(e){if(e=this.c.a.get(e))return e.constructor},y.prototype.whenDefined=function(e){if(!n(e))return Promise.reject(new SyntaxError("'"+e+"' is not a valid custom element name."));var t=this.o.get(e);return t?t.f:(t=new function(){var e=this;this.b=this.a=void 0,this.f=new Promise(function(t){e.b=t,e.a&&t(e.a)})},this.o.set(e,t),this.c.a.get(e)&&!this.m.some(function(t){return t.localName===e})&&v(t),t.f)},y.prototype.v=function(e){g(this.u);var t=this.l;this.l=function(n){return e(function(){return t(n)})}},window.CustomElementRegistry=y,y.prototype.define=y.prototype.define,y.prototype.upgrade=y.prototype.i,y.prototype.get=y.prototype.get,y.prototype.whenDefined=y.prototype.whenDefined,y.prototype.polyfillWrapFlushCallback=y.prototype.v;var b=window.Document.prototype.createElement,w=window.Document.prototype.createElementNS,x=window.Document.prototype.importNode,E=window.Document.prototype.prepend,C=window.Document.prototype.append,T=window.DocumentFragment.prototype.prepend,_=window.DocumentFragment.prototype.append,S=window.Node.prototype.cloneNode,D=window.Node.prototype.appendChild,N=window.Node.prototype.insertBefore,k=window.Node.prototype.removeChild,O=window.Node.prototype.replaceChild,A=Object.getOwnPropertyDescriptor(window.Node.prototype,"textContent"),P=window.Element.prototype.attachShadow,I=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),L=window.Element.prototype.getAttribute,j=window.Element.prototype.setAttribute,H=window.Element.prototype.removeAttribute,M=window.Element.prototype.getAttributeNS,R=window.Element.prototype.setAttributeNS,F=window.Element.prototype.removeAttributeNS,W=window.Element.prototype.insertAdjacentElement,B=window.Element.prototype.insertAdjacentHTML,q=window.Element.prototype.prepend,V=window.Element.prototype.append,z=window.Element.prototype.before,X=window.Element.prototype.after,$=window.Element.prototype.replaceWith,U=window.Element.prototype.remove,Y=window.HTMLElement,K=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),J=window.HTMLElement.prototype.insertAdjacentElement,G=window.HTMLElement.prototype.insertAdjacentHTML;function Q(e,t,n){function r(t){return function(n){for(var r=[],o=0;o<arguments.length;++o)r[o-0]=arguments[o];o=[];for(var s=[],a=0;a<r.length;a++){var l=r[a];if(l instanceof Element&&i(l)&&s.push(l),l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)o.push(l);else o.push(l)}for(t.apply(this,r),r=0;r<s.length;r++)p(e,s[r]);if(i(this))for(r=0;r<o.length;r++)(s=o[r])instanceof Element&&d(e,s)}}n.h&&(t.prepend=r(n.h)),n.append&&(t.append=r(n.append))}var Z,ee=window.customElements;if(!ee||ee.forcePolyfill||"function"!=typeof ee.define||"function"!=typeof ee.get){var te=new a;Z=te,window.HTMLElement=function(){function t(){var t=this.constructor;if(!(i=Z.s.get(t)))throw Error("The custom element being constructed was not registered with `customElements`.");var n=i.constructionStack;if(!n.length)return n=b.call(document,i.localName),Object.setPrototypeOf(n,t.prototype),n.__CE_state=1,n.__CE_definition=i,c(Z,n),n;var i,r=n[i=n.length-1];if(r===e)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");return n[i]=e,Object.setPrototypeOf(r,t.prototype),c(Z,r),r}return t.prototype=Y.prototype,Object.defineProperty(t.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:t}),t}(),function(){var e=te;s(Document.prototype,"createElement",function(t){if(this.__CE_hasRegistry){var n=e.a.get(t);if(n)return new n.constructor}return t=b.call(this,t),c(e,t),t}),s(Document.prototype,"importNode",function(t,n){return t=x.call(this,t,n),this.__CE_hasRegistry?f(e,t):u(e,t),t}),s(Document.prototype,"createElementNS",function(t,n){if(this.__CE_hasRegistry&&(null===t||"http://www.w3.org/1999/xhtml"===t)){var i=e.a.get(n);if(i)return new i.constructor}return t=w.call(this,t,n),c(e,t),t}),Q(e,Document.prototype,{h:E,append:C})}(),Q(te,DocumentFragment.prototype,{h:T,append:_}),function(){var e=te;function t(t,n){Object.defineProperty(t,"textContent",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(t){if(this.nodeType===Node.TEXT_NODE)n.set.call(this,t);else{var r=void 0;if(this.firstChild){var o=this.childNodes,s=o.length;if(0<s&&i(this)){r=Array(s);for(var a=0;a<s;a++)r[a]=o[a]}}if(n.set.call(this,t),r)for(t=0;t<r.length;t++)p(e,r[t])}}})}s(Node.prototype,"insertBefore",function(t,n){if(t instanceof DocumentFragment){var r=Array.prototype.slice.apply(t.childNodes);if(t=N.call(this,t,n),i(this))for(n=0;n<r.length;n++)d(e,r[n]);return t}return r=i(t),n=N.call(this,t,n),r&&p(e,t),i(this)&&d(e,t),n}),s(Node.prototype,"appendChild",function(t){if(t instanceof DocumentFragment){var n=Array.prototype.slice.apply(t.childNodes);if(t=D.call(this,t),i(this))for(var r=0;r<n.length;r++)d(e,n[r]);return t}return n=i(t),r=D.call(this,t),n&&p(e,t),i(this)&&d(e,t),r}),s(Node.prototype,"cloneNode",function(t){return t=S.call(this,t),this.ownerDocument.__CE_hasRegistry?f(e,t):u(e,t),t}),s(Node.prototype,"removeChild",function(t){var n=i(t),r=k.call(this,t);return n&&p(e,t),r}),s(Node.prototype,"replaceChild",function(t,n){if(t instanceof DocumentFragment){var r=Array.prototype.slice.apply(t.childNodes);if(t=O.call(this,t,n),i(this))for(p(e,n),n=0;n<r.length;n++)d(e,r[n]);return t}r=i(t);var o=O.call(this,t,n),s=i(this);return s&&p(e,n),r&&p(e,t),s&&d(e,t),o}),A&&A.get?t(Node.prototype,A):l(e,function(e){t(e,{enumerable:!0,configurable:!0,get:function(){for(var e=[],t=0;t<this.childNodes.length;t++)e.push(this.childNodes[t].textContent);return e.join("")},set:function(e){for(;this.firstChild;)k.call(this,this.firstChild);D.call(this,document.createTextNode(e))}})})}(),function(){var e=te;function t(t,n){Object.defineProperty(t,"innerHTML",{enumerable:n.enumerable,configurable:!0,get:n.get,set:function(t){var r=this,s=void 0;if(i(this)&&(s=[],o(this,function(e){e!==r&&s.push(e)})),n.set.call(this,t),s)for(var a=0;a<s.length;a++){var l=s[a];1===l.__CE_state&&e.disconnectedCallback(l)}return this.ownerDocument.__CE_hasRegistry?f(e,this):u(e,this),t}})}function n(t,n){s(t,"insertAdjacentElement",function(t,r){var o=i(r);return t=n.call(this,t,r),o&&p(e,r),i(t)&&d(e,r),t})}function r(t,n){function i(t,n){for(var i=[];t!==n;t=t.nextSibling)i.push(t);for(n=0;n<i.length;n++)f(e,i[n])}s(t,"insertAdjacentHTML",function(e,t){if("beforebegin"===(e=e.toLowerCase())){var r=this.previousSibling;n.call(this,e,t),i(r||this.parentNode.firstChild,this)}else if("afterbegin"===e)r=this.firstChild,n.call(this,e,t),i(this.firstChild,r);else if("beforeend"===e)r=this.lastChild,n.call(this,e,t),i(r||this.firstChild,null);else{if("afterend"!==e)throw new SyntaxError("The value provided ("+String(e)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");r=this.nextSibling,n.call(this,e,t),i(this.nextSibling,r)}})}P&&s(Element.prototype,"attachShadow",function(e){return this.__CE_shadowRoot=P.call(this,e)}),I&&I.get?t(Element.prototype,I):K&&K.get?t(HTMLElement.prototype,K):l(e,function(e){t(e,{enumerable:!0,configurable:!0,get:function(){return S.call(this,!0).innerHTML},set:function(e){var t="template"===this.localName,n=t?this.content:this,i=w.call(document,this.namespaceURI,this.localName);for(i.innerHTML=e;0<n.childNodes.length;)k.call(n,n.childNodes[0]);for(e=t?i.content:i;0<e.childNodes.length;)D.call(n,e.childNodes[0])}})}),s(Element.prototype,"setAttribute",function(t,n){if(1!==this.__CE_state)return j.call(this,t,n);var i=L.call(this,t);j.call(this,t,n),n=L.call(this,t),e.attributeChangedCallback(this,t,i,n,null)}),s(Element.prototype,"setAttributeNS",function(t,n,i){if(1!==this.__CE_state)return R.call(this,t,n,i);var r=M.call(this,t,n);R.call(this,t,n,i),i=M.call(this,t,n),e.attributeChangedCallback(this,n,r,i,t)}),s(Element.prototype,"removeAttribute",function(t){if(1!==this.__CE_state)return H.call(this,t);var n=L.call(this,t);H.call(this,t),null!==n&&e.attributeChangedCallback(this,t,n,null,null)}),s(Element.prototype,"removeAttributeNS",function(t,n){if(1!==this.__CE_state)return F.call(this,t,n);var i=M.call(this,t,n);F.call(this,t,n);var r=M.call(this,t,n);i!==r&&e.attributeChangedCallback(this,n,i,r,t)}),J?n(HTMLElement.prototype,J):W?n(Element.prototype,W):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched."),G?r(HTMLElement.prototype,G):B?r(Element.prototype,B):console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched."),Q(e,Element.prototype,{h:q,append:V}),function(e){var t=Element.prototype;function n(t){return function(n){for(var r=[],o=0;o<arguments.length;++o)r[o-0]=arguments[o];o=[];for(var s=[],a=0;a<r.length;a++){var l=r[a];if(l instanceof Element&&i(l)&&s.push(l),l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)o.push(l);else o.push(l)}for(t.apply(this,r),r=0;r<s.length;r++)p(e,s[r]);if(i(this))for(r=0;r<o.length;r++)(s=o[r])instanceof Element&&d(e,s)}}z&&(t.before=n(z)),z&&(t.after=n(X)),$&&s(t,"replaceWith",function(t){for(var n=[],r=0;r<arguments.length;++r)n[r-0]=arguments[r];r=[];for(var o=[],s=0;s<n.length;s++){var a=n[s];if(a instanceof Element&&i(a)&&o.push(a),a instanceof DocumentFragment)for(a=a.firstChild;a;a=a.nextSibling)r.push(a);else r.push(a)}for(s=i(this),$.apply(this,n),n=0;n<o.length;n++)p(e,o[n]);if(s)for(p(e,this),n=0;n<r.length;n++)(o=r[n])instanceof Element&&d(e,o)}),U&&s(t,"remove",function(){var t=i(this);U.call(this),t&&p(e,this)})}(e)}(),document.__CE_hasRegistry=!0;var ne=new y(te);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:ne})}}.call(self),define("customElements",function(){}),define("css",[],function(){if("undefined"==typeof window)return{load:function(e,t,n){n()}};var e=document.getElementsByTagName("head")[0],t=window.navigator.userAgent.match(/Trident\/([^ ;]*)|AppleWebKit\/([^ ;]*)|Opera\/([^ ;]*)|rv\:([^ ;]*)(.*?)Gecko\/([^ ;]*)|MSIE\s([^ ;]*)|AndroidWebKit\/([^ ;]*)/)||0,n=!1,i=!0;t[1]||t[7]?n=parseInt(t[1])<6||parseInt(t[7])<=9:t[2]||t[8]?i=!1:t[4]&&(n=parseInt(t[4])<18);var r,o,s,a={pluginBuilder:"./css-builder"},l=function(){r=document.createElement("style"),e.appendChild(r),o=r.styleSheet||r.sheet},u=0,c=[],d=function(e){o.addImport(e),r.onload=function(){p()},31==++u&&(l(),u=0)},p=function(){s();var e=c.shift();return e?(s=e[1],void d(e[0])):void(s=null)},f=function(t,n){var r=document.createElement("link");if(r.type="text/css",r.rel="stylesheet",i)r.onload=function(){r.onload=function(){},setTimeout(n,7)};else var o=setInterval(function(){for(var e=0;e<document.styleSheets.length;e++){if(document.styleSheets[e].href==r.href)return clearInterval(o),n()}},10);r.href=t,e.appendChild(r)};return a.normalize=function(e,t){return".css"==e.substr(e.length-4,4)&&(e=e.substr(0,e.length-4)),t(e)},a.load=function(e,t,i,a){(n?function(e,t){if(o&&o.addImport||l(),o&&o.addImport)s?c.push([e,t]):(d(e),s=t);else{r.textContent='@import "'+e+'";';var n=setInterval(function(){try{r.sheet.cssRules,clearInterval(n),t()}catch(e){}},10)}}:f)(t.toUrl(e+".css"),i)},a}),
/**
 * Licenced under the MIT License
 *
 * Copyright (c) 2010 Seznam.cz, a.s.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 * @license
 */
function(e){var t,n=!!e.navigator.msPointerEnabled,i=!!e.navigator.pointerEnabled||!!e.PointerEvent;if(!!e.navigator.maxTouchPoints>0&&(n||i&&!e.TouchEvent)){var r,o=e.document,s=i?"pointerdown":"MSPointerDown",a=i?"pointerup":"MSPointerUp",l=i?"pointermove":"MSPointerMove",u=i?"pointercancel":"MSPointerCancel",c=i?"touch":MSPointerEvent.MSPOINTER_TYPE_TOUCH,d=i?"mouse":MSPointerEvent.MSPOINTER_TYPE_MOUSE,p=(i||MSPointerEvent.MSPOINTER_TYPE_PEN,i?"touchAction":"msTouchAction"),f=180/Math.PI,h=e.Touchr_ALLOWED_POINTER_TYPE||1,m=function(e,t,n){var i,r=o.createEvent("Event");for(i in r.initEvent(e,!0,!0),n)r[i]=n[i];t.dispatchEvent(r)},g=function(){var e=Math.pow(2,32)-1,t=Object.prototype.hasOwnProperty;function n(e){return e>>>0}return function(i){var r=0;return(i=i||{}).length={get:function(){var i=+function(i){var r,o=-1;for(r in i)String(n(r))===r&&n(r)!==e&&t.call(i,r)&&r>o&&(o=r);return o}(this);return Math.max(r,i+1)},set:function(e){var t=n(e);if(t!==+e)throw new RangeError;for(var i=t,o=this.length;i<o;i++)delete this[i];r=t}},i.toString={value:Array.prototype.join},Object.create(Array.prototype,i)}}(),v=(t={identifiedTouch:{value:function(e){for(var t=this.length;t--;)if(this[t].identifier===e)return this[t]}},item:{value:function(e){return this[e]}},_touchIndex:{value:function(e){for(var t=this.length;t--;)if(this[t].pointerId==e.pointerId)return t;return-1}},_addAll:{value:function(e){for(var t=0,n=e.length;t<n;t++)this._add(e[t])}},_add:{value:function(e){var t=this._touchIndex(e);t=t<0?this.length:t,e.type=l,e.identifier=e.pointerId,e.force=e.pressure,e.radiusX=e.radiusY=1,e.rotationAngle=0,this[t]=e}},_remove:{value:function(e){var t=this._touchIndex(e);t>=0&&this.splice(t,1)}}},function(){var e=g(t);return 1===arguments.length?e.length=arguments[0]:e.push.apply(e,arguments),e}),y={},b=e.MSGesture?new MSGesture:null,w=1,x=0,E=[],C=function(e,t){return!!t&&(e===t||C(e,t.parentNode))},T=function(e){var t,n,i,p,f,g=e.target;if(((v=e.pointerType)==c?1:v==d?2:4)&h){var v;if(e.type===s&&(r._add(e),y[e.pointerId]=e.target,t="touchstart",b&&r.length>1))for(b.target=e.target,n=0;n<r.length;n++)r[n].pointerType===c&&b.addPointer(r[n].pointerId);for(e.type===l&&r.identifiedTouch(e.pointerId)&&(r._add(e),t="touchmove"),p=o.createTouchList(e),f=o.createTouchList(),n=0;n<r.length;n++)C(g,y[r[n].identifier])&&f._add(r[n]);i=y[e.pointerId],e.type!==a&&e.type!==u||(r._remove(e),y[e.pointerId]=null,delete y[e.pointerId],t="touchend",b&&r.length<=1&&b.stop()),t&&i&&m(t,i,{touches:r,changedTouches:p,targetTouches:f})}},_=function(e){var t,n,i;"MSGestureStart"===e.type?t="gesturestart":"MSGestureChange"===e.type?t="gesturechange":"MSGestureEnd"===e.type&&(t="gestureend"),"MSGestureStart"===e.type?(n=w=1,i=x=0):(n=w+=e.scale-1,i=x+=e.rotation*f),m(t,e.target,{scale:n,rotation:i,screenX:e.screenX,screenY:e.screenY})},S=function(e){var t=D,n=k,i=e.prototype.addEventListener,r=e.prototype.removeEventListener;e.prototype.addEventListener=function(e,n,r){0!==e.indexOf("gesture")&&0!==e.indexOf("touch")||t.call(this,e,n,r),i.call(this,e,n,r)},e.prototype.removeEventListener=function(e,t,i){0!==e.indexOf("gesture")&&0!==e.indexOf("touch")||n.call(this,e,t,i),r.call(this,e,t,i)}},D=function(e,t,n){var i=9==this.nodeType?this:this.ownerDocument;E.indexOf(i)<0&&(E.push(i),i.addEventListener(s,T,n),i.addEventListener(l,T,n),i.addEventListener(a,T,n),i.addEventListener(u,T,n),i.addEventListener("MSGestureStart",_,n),i.addEventListener("MSGestureChange",_,n),i.addEventListener("MSGestureEnd",_,n)),"touchmove"!==e||!this.style||void 0!==this.style[p]&&this.style[p]||(this._touchActionUpdated=!0,this.style[p]="none",this.hasAttribute("draggable")||N(this))},N=function(e){var t,n,i,r,u,c,d,p=[];i=function(t){var n,r;return null==t?null:(n=t._cachedClientHeight||t.clientHeight,r=t._cachedScrollHeight||t.scrollHeight,t._cachedClientHeight=n,t._cachedScrollHeight=r,-1===p.indexOf(t)&&p.push(t),!isNaN(n)&&!isNaN(r)&&Math.abs(r-n)>1?t==o.documentElement?o.body:t:e!=t?i(t.parentNode):null)},r=function(){for(var e=0;e<p.length;e++)p[e]._cachedClientHeight=null,p[e]._cachedScrollHeight=null;p.length=0},u=function(e){"touch"===e.pointerType&&(r(),t=e.clientY,(n=i(e.target))&&e.stopPropagation())},c=function(e){var r,s,a;if("touch"===event.pointerType){if(null!=t&&n&&(r=n.scrollTop,s=t-event.clientY,n.scrollTop=r+s,s>=1&&r==n.scrollTop))for(a=i(n.parentNode);a&&(r=a.scrollTop,a.scrollTop=r+s,a!==o.body&&a.scrollTop==r);)a=i(a.parentNode);t=event.clientY}},d=function(e){r(),t=void 0},e.addEventListener(s,u),e.addEventListener(l,c),e.addEventListener(a,d),e._pointerHandlers=[u,c,d]},k=function(e,t,n){var i;"touchmove"===e&&(this._touchActionUpdated&&delete this.style[p],(i=this)._pointerHandlers&&(i.removeEventListener(s,i._pointerHandlers[0]),i.removeEventListener(l,i._pointerHandlers[1]),i.removeEventListener(a,i._pointerHandlers[2]),i._pointerHandlers=void 0))};o.createTouchList=function(e){var t=new v;return e&&(e.length?t._addAll(e):t._add(e)),t},o.createTouch=function(e,t,n,i,r,o,s){return{identifier:n,screenX:o,screenY:s,pageX:i,pageY:r,target:t}},e.ontouchstart||(e.ontouchstart=1),r=o.createTouchList(),S(HTMLElement),S(Document)}}(window),define("touchr",function(){}),define("bundles/oj3rdpartybundle",function(){});