/*! For license information please see application-92dd225b49eef5fbbac9.js.LICENSE.txt */ !function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/packs/",n(n.s=27)}([function(t,e,n){"use strict";(function(t){n.d(e,"d",(function(){return i})),n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s})),n.d(e,"f",(function(){return l})),n.d(e,"c",(function(){return c})),n.d(e,"e",(function(){return d}));var o=n(13),r=n(12);const i=t=>o.a[t.tagName]&&o.c[t.type],a=t=>{const e=(t&&t.nodeType===Node.ELEMENT_NODE?t:document.querySelector(t))||r.a;e&&e.focus&&e.focus()},s=function(e,n){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=new CustomEvent(n,{bubbles:!0,cancelable:!0,detail:o});e.dispatchEvent(r),t&&t(e).trigger(n,o)},l=t=>document.evaluate(t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,c=t=>Array(t).flat(),d=(t,e)=>{Array.from(t.selectAll?t.element:[t.element]).forEach(e)}}).call(this,n(9))},function(t,e,n){"use strict";function o(t,e,n){if(!0===n)return t.classList.add(e);t.classList.remove(e)}function r(t,e,n){var o=window.document.createElement(t);return e=e||"",n=n||"",o.className=e,void 0!==n&&(o.textContent=n),o}function i(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function a(t,e){return e(t)?t:t.parentNode?a(t.parentNode,e):void 0}function s(t,e){var n=r("div","numInputWrapper"),o=r("input","numInput "+t),i=r("span","arrowUp"),a=r("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?o.type="number":(o.type="text",o.pattern="\\d*"),void 0!==e)for(var s in e)o.setAttribute(s,e[s]);return n.appendChild(o),n.appendChild(i),n.appendChild(a),n}function l(t){try{return"function"===typeof t.composedPath?t.composedPath()[0]:t.target}catch(e){return t.target}}n.d(e,"f",(function(){return o})),n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i})),n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"e",(function(){return l}))},function(t,e,n){"use strict";n.d(e,"d",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return a}));var o=function(t,e){return void 0===e&&(e=2),("000"+t).slice(-1*e)},r=function(t){return!0===t?1:0};function i(t,e){var n;return function(){var o=this,r=arguments;clearTimeout(n),n=setTimeout((function(){return t.apply(o,r)}),e)}}var a=function(t){return t instanceof Array?t:[t]}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return u}));var o=n(8),r=n(14);function i(t,e){for(var n=0;nMath.min(e,n)&&t=12?12:0)+parseFloat(e))},H:function(t,e){t.setHours(parseFloat(e))},J:function(t,e){t.setDate(parseFloat(e))},K:function(t,e,n){t.setHours(t.getHours()%12+12*Object(o.c)(new RegExp(n.amPM[1],"i").test(e)))},M:function(t,e,n){t.setMonth(n.months.shorthand.indexOf(e))},S:function(t,e){t.setSeconds(parseFloat(e))},U:function(t,e){return new Date(1e3*parseFloat(e))},W:function(t,e,n){var o=parseInt(e),r=new Date(t.getFullYear(),0,2+7*(o-1),0,0,0,0);return r.setDate(r.getDate()-r.getDay()+n.firstDayOfWeek),r},Y:function(t,e){t.setFullYear(parseFloat(e))},Z:function(t,e){return new Date(e)},d:function(t,e){t.setDate(parseFloat(e))},h:function(t,e){t.setHours((t.getHours()>=12?12:0)+parseFloat(e))},i:function(t,e){t.setMinutes(parseFloat(e))},j:function(t,e){t.setDate(parseFloat(e))},l:r,m:function(t,e){t.setMonth(parseFloat(e)-1)},n:function(t,e){t.setMonth(parseFloat(e)-1)},s:function(t,e){t.setSeconds(parseFloat(e))},u:function(t,e){return new Date(parseFloat(e))},w:r,y:function(t,e){t.setFullYear(2e3+parseFloat(e))}},s={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},l={Z:function(t){return t.toISOString()},D:function(t,e,n){return e.weekdays.shorthand[l.w(t,e,n)]},F:function(t,e,n){return i(l.n(t,e,n)-1,!1,e)},G:function(t,e,n){return Object(o.d)(l.h(t,e,n))},H:function(t){return Object(o.d)(t.getHours())},J:function(t,e){return void 0!==e.ordinal?t.getDate()+e.ordinal(t.getDate()):t.getDate()},K:function(t,e){return e.amPM[Object(o.c)(t.getHours()>11)]},M:function(t,e){return i(t.getMonth(),!0,e)},S:function(t){return Object(o.d)(t.getSeconds())},U:function(t){return t.getTime()/1e3},W:function(t,e,n){return n.getWeek(t)},Y:function(t){return Object(o.d)(t.getFullYear(),4)},d:function(t){return Object(o.d)(t.getDate())},h:function(t){return t.getHours()%12?t.getHours()%12:12},i:function(t){return Object(o.d)(t.getMinutes())},j:function(t){return t.getDate()},l:function(t,e){return e.weekdays.longhand[t.getDay()]},m:function(t){return Object(o.d)(t.getMonth()+1)},n:function(t){return t.getMonth()+1},s:function(t){return t.getSeconds()},u:function(t){return t.getTime()},w:function(t){return t.getDay()},y:function(t){return String(t.getFullYear()).substring(2)}}},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return P})),n.d(e,"b",(function(){return gt}));var o=n(18);function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,r,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=i.call(n)).done)&&(s.push(o.value),s.length!==e);l=!0);}catch(t){c=!0,r=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);nd[t.tagName]&&p[t.type],m=t=>{const e=(t&&t.nodeType===Node.ELEMENT_NODE?t:document.querySelector(t))||A.element;e&&e.focus&&e.focus()},g=function(e,n){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=new CustomEvent(n,{bubbles:!0,cancelable:!0,detail:o});e.dispatchEvent(r),t&&t(e).trigger(n,o)},b=t=>document.evaluate(t,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue,C=function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=document.evaluate(t,document,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),o=[];for(let r=0;rArray.from(t).flat(),v=(t,e)=>{Array.from(t.selectAll?t.element:[t.element]).forEach(e)},x=(w=function(t,e,n){return t+(n?"-":"")+e.toLowerCase()},function(t){return B(t).reduce(w,"")});var w;const B=t=>(t=null==t?"":t).match(/([A-Z]{2,}|[0-9]+|[A-Z]?[a-z]+|[A-Z])/g)||[],E=(t,e)=>!t.cancel&&(t.delay?setTimeout(e,t.delay):e(),!0),k=(t,e)=>g(t,`cable-ready:before-${x(e.operation)}`,e),$=(t,e)=>g(t,`cable-ready:after-${x(e.operation)}`,e);function S(t){var e=this;let n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250;return function(){for(var r=arguments.length,i=new Array(r),a=0;at.apply(e,i)),o)}}function O(t){if(!t.ok)throw Error(t.statusText);return t}function T(t){return void 0===t||["string","number","boolean"].includes(typeof t)||console.warn(`Operation expects a string, number or boolean, but got ${t} (${typeof t})`),null!=t?t:""}function D(t){return void 0!==t&&"string"!==typeof t&&console.warn(`Operation expects a string, but got ${t} (${typeof t})`),null!=t?String(t):""}function M(t){return void 0===t||Array.isArray(t)||console.warn(`Operation expects an array, but got ${t} (${typeof t})`),null!=t?Array.from(t):[]}function I(t){return void 0!==t&&"object"!==typeof t&&console.warn(`Operation expects an object, but got ${t} (${typeof t})`),null!=t?Object(t):{}}function _(t){return void 0===t||Array.isArray(t)||"string"===typeof t||console.warn(`Operation expects an Array or a String, but got ${t} (${typeof t})`),null==t?"":Array.isArray(t)?Array.from(t):String(t)}async function j(t,e){try{const n=await fetch(t,{headers:s({"X-REQUESTED-WITH":"XmlHttpRequest"},e)});if(void 0==n)return;return O(n),n}catch(n){console.error(`Could not fetch ${t}`)}}class F{constructor(t){this.maxSize=t,this.queue=[]}push(t){this.isFull()&&this.shift(),this.queue.push(t)}shift(){return this.queue.shift()}isFull(){return this.queue.length===this.maxSize}}var P=Object.freeze({__proto__:null,BoundedQueue:F,after:$,assignFocus:m,before:k,debounce:S,dispatch:g,fragmentToString:function(t){return(new XMLSerializer).serializeToString(t)},getClassNames:y,graciouslyFetch:j,handleErrors:O,isTextInput:f,kebabize:x,operate:E,processElements:v,safeArray:M,safeObject:I,safeScalar:T,safeString:D,safeStringOrArray:_,xpathToElement:b,xpathToElementArray:C});const L=t=>(e,n)=>!U.map((o=>"function"!==typeof o||o(t,e,n))).includes(!1),z=t=>e=>{H.forEach((n=>{"function"===typeof n&&n(t,e)}))},N=(t,e,n)=>!(!u[e.tagName]&&e.isEqualNode(n)),R=(t,e,n)=>e!==A.element||!e.isContentEditable,W=(t,e,n)=>{const o=t.permanentAttributeName;if(!o)return!0;const r=e.closest(`[${o}]`);if(!r&&e===A.element&&f(e)){const t={value:!0};return Array.from(n.attributes).forEach((n=>{t[n.name]||e.setAttribute(n.name,n.value)})),!1}return!r},U=[N,W,R],H=[];Object.freeze({__proto__:null,didMorph:z,didMorphCallbacks:H,shouldMorph:L,shouldMorphCallbacks:U,verifyNotContentEditable:R,verifyNotMutable:N,verifyNotPermanent:W});var q={append:t=>{v(t,(e=>{k(e,t),E(t,(()=>{const n=t.html,o=t.focusSelector;e.insertAdjacentHTML("beforeend",T(n)),m(o)})),$(e,t)}))},graft:t=>{v(t,(e=>{k(e,t),E(t,(()=>{const n=t.parent,o=t.focusSelector,r=document.querySelector(n);r&&(r.appendChild(e),m(o))})),$(e,t)}))},innerHtml:t=>{v(t,(e=>{k(e,t),E(t,(()=>{const n=t.html,o=t.focusSelector;e.innerHTML=T(n),m(o)})),$(e,t)}))},insertAdjacentHtml:t=>{v(t,(e=>{k(e,t),E(t,(()=>{const n=t.html,o=t.position,r=t.focusSelector;e.insertAdjacentHTML(o||"beforeend",T(n)),m(r)})),$(e,t)}))},insertAdjacentText:t=>{v(t,(e=>{k(e,t),E(t,(()=>{const n=t.text,o=t.position,r=t.focusSelector;e.insertAdjacentText(o||"beforeend",T(n)),m(r)})),$(e,t)}))},outerHtml:t=>{v(t,(e=>{const n=e.parentElement,o=n&&Array.from(n.children).indexOf(e);k(e,t),E(t,(()=>{const n=t.html,o=t.focusSelector;e.outerHTML=T(n),m(o)})),$(n?n.children[o]:document.documentElement,t)}))},prepend:t=>{v(t,(e=>{k(e,t),E(t,(()=>{const n=t.html,o=t.focusSelector;e.insertAdjacentHTML("afterbegin",T(n)),m(o)})),$(e,t)}))},remove:t=>{v(t,(e=>{k(e,t),E(t,(()=>{const n=t.focusSelector;e.remove(),m(n)})),$(document,t)}))},replace:t=>{v(t,(e=>{const n=e.parentElement,o=n&&Array.from(n.children).indexOf(e);k(e,t),E(t,(()=>{const n=t.html,o=t.focusSelector;e.outerHTML=T(n),m(o)})),$(n?n.children[o]:document.documentElement,t)}))},textContent:t=>{v(t,(e=>{k(e,t),E(t,(()=>{const n=t.text,o=t.focusSelector;e.textContent=T(n),m(o)})),$(e,t)}))},addCssClass:t=>{v(t,(e=>{k(e,t),E(t,(()=>{const n=t.name;e.classList.add(...y([_(n)]))})),$(e,t)}))},removeAttribute:t=>{v(t,(e=>{k(e,t),E(t,(()=>{const n=t.name;e.removeAttribute(D(n))})),$(e,t)}))},removeCssClass:t=>{v(t,(e=>{k(e,t),E(t,(()=>{const n=t.name;e.classList.remove(...y([_(n)])),0===e.classList.length&&e.removeAttribute("class")})),$(e,t)}))},setAttribute:t=>{v(t,(e=>{k(e,t),E(t,(()=>{const n=t.name,o=t.value;e.setAttribute(D(n),T(o))})),$(e,t)}))},setDatasetProperty:t=>{v(t,(e=>{k(e,t),E(t,(()=>{const n=t.name,o=t.value;e.dataset[D(n)]=T(o)})),$(e,t)}))},setProperty:t=>{v(t,(e=>{k(e,t),E(t,(()=>{const n=t.name,o=t.value;n in e&&(e[D(n)]=T(o))})),$(e,t)}))},setStyle:t=>{v(t,(e=>{k(e,t),E(t,(()=>{const n=t.name,o=t.value;e.style[D(n)]=T(o)})),$(e,t)}))},setStyles:t=>{v(t,(e=>{k(e,t),E(t,(()=>{const n=t.styles;for(let t of Object.entries(n)){var o=r(t,2);let n=o[0],i=o[1];e.style[D(n)]=T(i)}})),$(e,t)}))},setValue:t=>{v(t,(e=>{k(e,t),E(t,(()=>{const n=t.value;e.value=T(n)})),$(e,t)}))},dispatchEvent:t=>{v(t,(e=>{k(e,t),E(t,(()=>{const n=t.name,o=t.detail;g(e,D(n),I(o))})),$(e,t)}))},setMeta:t=>{k(document,t),E(t,(()=>{const e=t.name,n=t.content;let o=document.head.querySelector(`meta[name='${e}']`);o||(o=document.createElement("meta"),o.name=D(e),document.head.appendChild(o)),o.content=T(n)})),$(document,t)},setTitle:t=>{k(document,t),E(t,(()=>{const e=t.title;document.title=T(e)})),$(document,t)},clearStorage:t=>{k(document,t),E(t,(()=>{("session"===t.type?sessionStorage:localStorage).clear()})),$(document,t)},go:t=>{k(window,t),E(t,(()=>{const e=t.delta;history.go(e)})),$(window,t)},pushState:t=>{k(window,t),E(t,(()=>{const e=t.state,n=t.title,o=t.url;history.pushState(I(e),D(n),D(o))})),$(window,t)},redirectTo:t=>{k(window,t),E(t,(()=>{let e=t.url,n=t.action,o=t.turbo;n=n||"advance",e=D(e),void 0===o&&(o=!0),o?(window.Turbo&&window.Turbo.visit(e,{action:n}),window.Turbolinks&&window.Turbolinks.visit(e,{action:n}),window.Turbo||window.Turbolinks||(window.location.href=e)):window.location.href=e})),$(window,t)},reload:t=>{k(window,t),E(t,(()=>{window.location.reload()})),$(window,t)},removeStorageItem:t=>{k(document,t),E(t,(()=>{const e=t.key;("session"===t.type?sessionStorage:localStorage).removeItem(D(e))})),$(document,t)},replaceState:t=>{k(window,t),E(t,(()=>{const e=t.state,n=t.title,o=t.url;history.replaceState(I(e),D(n),D(o))})),$(window,t)},scrollIntoView:t=>{const e=t.element;k(e,t),E(t,(()=>{e.scrollIntoView(t)})),$(e,t)},setCookie:t=>{k(document,t),E(t,(()=>{const e=t.cookie;document.cookie=T(e)})),$(document,t)},setFocus:t=>{const e=t.element;k(e,t),E(t,(()=>{m(e)})),$(e,t)},setStorageItem:t=>{k(document,t),E(t,(()=>{const e=t.key,n=t.value;("session"===t.type?sessionStorage:localStorage).setItem(D(e),T(n))})),$(document,t)},consoleLog:t=>{k(document,t),E(t,(()=>{const e=t.message,n=t.level;n&&["warn","info","error"].includes(n)?console[n](e):console.log(e)})),$(document,t)},consoleTable:t=>{k(document,t),E(t,(()=>{const e=t.data,n=t.columns;console.table(e,M(n))})),$(document,t)},notification:t=>{k(document,t),E(t,(()=>{const e=t.title,n=t.options;Notification.requestPermission().then((o=>{t.permission=o,"granted"===o&&new Notification(D(e),I(n))}))})),$(document,t)},morph:t=>{v(t,(e=>{const n=t.html,r=document.createElement("template");r.innerHTML=String(T(n)).trim(),t.content=r.content;const i=e.parentElement,a=i&&Array.from(i.children).indexOf(e);k(e,t),E(t,(()=>{const n=t.childrenOnly,i=t.focusSelector;Object(o.a)(e,n?r.content:r.innerHTML,{childrenOnly:!!n,onBeforeElUpdated:L(t),onElUpdated:z(t)}),m(i)})),$(i?i.children[a]:document.documentElement,t)}))}};let G=q;const Y=t=>{G=s(s({},G),t)};var V={get all(){return G}};let X="warn";var K={get behavior(){return X},set(t){["warn","ignore","event","exception"].includes(t)?X=t:console.warn("Invalid 'onMissingElement' option. Defaulting to 'warn'.")}};const Q=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{onMissingElement:K.behavior};const n={};t.forEach((t=>{t.batch&&(n[t.batch]=n[t.batch]?++n[t.batch]:1)})),t.forEach((t=>{const o=t.operation;try{if(t.selector?t.xpath?t.element=t.selectAll?C(t.selector):b(t.selector):t.element=t.selectAll?document.querySelectorAll(t.selector):document.querySelector(t.selector):t.element=document,t.element||"ignore"!==e.onMissingElement){A.set(document.activeElement);const e=V.all[o];e?(e(t),t.batch&&0===--n[t.batch]&&g(document,"cable-ready:batch-complete",{batch:t.batch})):console.error(`CableReady couldn't find the "${o}" operation. Make sure you use the camelized form when calling an operation method.`)}}catch(r){if(t.element)console.error(`CableReady detected an error in ${o||"operation"}: ${r.message}. If you need to support older browsers make sure you've included the corresponding polyfills. https://docs.stimulusreflex.com/setup#polyfills-for-ie11.`),console.error(r);else{const n=`CableReady ${o||""} operation failed due to missing DOM element for selector: '${t.selector}'`;switch(e.onMissingElement){case"ignore":break;case"event":g(document,"cable-ready:missing-element",{warning:n,operation:t});break;case"exception":throw n;default:console.warn(n)}}}}))};class J extends HTMLElement{static get tagName(){throw new Error("Implement the tagName() getter in the inheriting class")}static define(){customElements.get(this.tagName)||customElements.define(this.tagName,this)}disconnectedCallback(){this.channel&&this.channel.unsubscribe()}createSubscription(t,e,n){this.channel=t.subscriptions.create({channel:e,identifier:this.identifier},{received:n})}get preview(){return document.documentElement.hasAttribute("data-turbolinks-preview")||document.documentElement.hasAttribute("data-turbo-preview")}get identifier(){return this.getAttribute("identifier")}}let Z;const tt=[25,50,75,100,200,250,500,800,1e3,2e3],et=async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(Z)return Z;if(t>=tt.length)throw new Error("Couldn't obtain a Action Cable consumer within 5s");var e;return await(e=tt[t],new Promise((t=>setTimeout(t,e)))),await et(t+1)};var nt={setConsumer(t){Z=t},get consumer(){return Z},getConsumer:async()=>await et()};class ot extends J{static get tagName(){return"cable-ready-stream-from"}async connectedCallback(){if(this.preview)return;const t=await nt.getConsumer();t?this.createSubscription(t,"CableReady::Stream",this.performOperations.bind(this)):console.error("The `cable_ready_stream_from` helper cannot connect. You must initialize CableReady with an Action Cable consumer.")}performOperations(t){t.cableReady&&Q(t.operations,{onMissingElement:this.onMissingElement})}get onMissingElement(){const t=this.getAttribute("missing")||K.behavior;return["warn","ignore","event"].includes(t)?t:(console.warn("Invalid 'missing' attribute. Defaulting to 'warn'."),"warn")}}let rt=!1;var it={get enabled(){return rt},get disabled(){return!rt},get value(){return rt},set(t){rt=!!t},set debug(t){rt=!!t}};var at=(t,e)=>{if(it.disabled)return;const n=`\u2191 Updatable request affecting ${e.length} element(s): `;return console.log(n,{elements:e.map((t=>t.element)),identifiers:e.map((t=>t.element.getAttribute("identifier"))),data:t}),n},st=(t,e)=>{if(it.disabled)return;const n=`\u274c Updatable request canceled after ${new Date-t}ms: ${e}`;return console.log(n),n},lt=(t,e,n)=>{if(it.disabled)return;const o=`\u2193 Updatable response: All URLs fetched in ${new Date-t}ms`;return console.log(o,{element:e,urls:n}),o},ct=(t,e)=>{if(it.disabled)return;const n=`\u21bb Updatable morph: starting after ${new Date-t}ms`;return console.log(n,{element:e}),n},dt=(t,e)=>{if(it.disabled)return;const n=`\u21ba Updatable morph: completed after ${new Date-t}ms`;return console.log(n,{element:e}),n};class ut{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.observeVisibility=()=>{document.addEventListener("visibilitychange",this.handleVisibilityChange)},this.unobserveVisibility=()=>{document.removeEventListener("visibilitychange",this.handleVisibilityChange)},this.intersect=t=>{t.forEach((t=>{t.target===this.element&&(t.isIntersecting&&"visible"===document.visibilityState?(this.intersecting=!0,this.delegate.appearedInViewport()):(this.intersecting=!1,this.delegate.disappearedFromViewport()))}))},this.handleVisibilityChange=t=>{"visible"===document.visibilityState&&this.intersecting?this.delegate.appearedInViewport():this.delegate.disappearedFromViewport()},this.delegate=t,this.element=e||t,this.started=!1,this.intersecting=!1,this.intersectionObserver=new IntersectionObserver(this.intersect)}start(){this.started||(this.started=!0,this.intersectionObserver.observe(this.element),this.observeVisibility())}stop(){this.started&&(this.started=!1,this.intersectionObserver.unobserve(this.element),this.unobserveVisibility())}}class pt extends J{static get tagName(){return"cable-ready-updates-for"}constructor(){super();this.attachShadow({mode:"open"}).innerHTML="\n\n\n",this.triggerElementLog=new F(10),this.targetElementLog=new F(10),this.appearanceObserver=new ut(this),this.visible=!1,this.didTransitionToVisible=!1}async connectedCallback(){if(this.preview)return;this.update=S(this.update.bind(this),this.debounce);const t=await nt.getConsumer();t?this.createSubscription(t,"CableReady::Stream",this.update):console.error("The `cable_ready_updates_for` helper cannot connect. You must initialize CableReady with an Action Cable consumer."),this.observeAppearance&&this.appearanceObserver.start()}disconnectedCallback(){this.observeAppearance&&this.appearanceObserver.stop()}async update(t){this.lastUpdateTimestamp=new Date;const e=Array.from(document.querySelectorAll(this.query),(t=>new ht(t))).filter((e=>e.shouldUpdate(t)));if(this.triggerElementLog.push(`${(new Date).toLocaleString()}: ${at(t,e)}`),0===e.length)return void this.triggerElementLog.push(`${(new Date).toLocaleString()}: ${st(this.lastUpdateTimestamp,"All elements filtered out")}`);if(e[0].element!==this&&!this.didTransitionToVisible)return void this.triggerElementLog.push(`${(new Date).toLocaleString()}: ${st(this.lastUpdateTimestamp,"Update already requested")}`);A.set(document.activeElement),this.html={};const n=[...new Set(e.map((t=>t.url)))];await Promise.all(n.map((async t=>{if(!this.html.hasOwnProperty(t)){const e=await j(t,{"X-Cable-Ready":"update"});this.html[t]=await e.text()}}))),this.triggerElementLog.push(`${(new Date).toLocaleString()}: ${lt(this.lastUpdateTimestamp,this,n)}`),this.index={},e.forEach((e=>{this.index.hasOwnProperty(e.url)?this.index[e.url]++:this.index[e.url]=0,e.process(t,this.html,this.index,this.lastUpdateTimestamp)}))}appearedInViewport(){this.visible||(this.didTransitionToVisible=!0,this.update({})),this.visible=!0}disappearedFromViewport(){this.visible=!1}get query(){return`${this.tagName}[identifier="${this.identifier}"]`}get identifier(){return this.getAttribute("identifier")}get debounce(){return this.hasAttribute("debounce")?parseInt(this.getAttribute("debounce")):20}get observeAppearance(){return this.hasAttribute("observe-appearance")}}class ht{constructor(t){this.element=t}async process(t,e,n,r){const i=n[this.url],a=document.createElement("template");this.element.setAttribute("updating","updating"),a.innerHTML=String(e[this.url]).trim(),await this.resolveTurboFrames(a.content);const s=a.content.querySelectorAll(this.query);if(s.length<=i)return void console.warn(`Update aborted due to insufficient number of elements. The offending url is ${this.url}, the offending element is:`,this.element);const l={element:this.element,html:s[i],permanentAttributeName:"data-ignore-updates"};g(this.element,"cable-ready:before-update",l),this.element.targetElementLog.push(`${(new Date).toLocaleString()}: ${ct(r,this.element)}`),Object(o.a)(this.element,s[i],{childrenOnly:!0,onBeforeElUpdated:L(l),onElUpdated:t=>{this.element.removeAttribute("updating"),this.element.didTransitionToVisible=!1,g(this.element,"cable-ready:after-update",l),m(l.focusSelector)}}),this.element.targetElementLog.push(`${(new Date).toLocaleString()}: ${dt(r,this.element)}`)}async resolveTurboFrames(t){const e=[...t.querySelectorAll('turbo-frame[src]:not([loading="lazy"])')];return Promise.all(e.map((e=>new Promise((async n=>{const o=await j(e.getAttribute("src"),{"Turbo-Frame":e.id,"X-Cable-Ready":"update"}),r=document.createElement("template");r.innerHTML=await o.text(),await this.resolveTurboFrames(r.content);const i=`turbo-frame#${e.id}`,a=r.content.querySelector(i),s=a?a.innerHTML.trim():"";t.querySelector(i).innerHTML=s,n()})))))}shouldUpdate(t){return!this.ignoresInnerUpdates&&this.hasChangesSelectedForUpdate(t)&&(!this.observeAppearance||this.visible)}hasChangesSelectedForUpdate(t){const e=this.element.getAttribute("only");return!(e&&t.changed&&!e.split(" ").some((e=>t.changed.includes(e))))}get ignoresInnerUpdates(){return this.element.hasAttribute("ignore-inner-updates")&&this.element.hasAttribute("performing-inner-update")}get url(){return this.element.hasAttribute("url")?this.element.getAttribute("url"):location.href}get identifier(){return this.element.identifier}get query(){return this.element.query}get visible(){return this.element.visible}get observeAppearance(){return this.element.observeAppearance}}const At=t=>{const e=t&&t.parentElement&&t.parentElement.closest("cable-ready-updates-for");e&&(e.setAttribute("performing-inner-update",""),At(e))},ft=t=>{const e=t&&t.parentElement&&t.parentElement.closest("cable-ready-updates-for");e&&(e.removeAttribute("performing-inner-update"),ft(e))},mt=()=>{document.addEventListener("stimulus-reflex:before",(t=>{At(t.detail.element)})),document.addEventListener("stimulus-reflex:after",(t=>{setTimeout((()=>{ft(t.detail.element)}))})),document.addEventListener("turbo:submit-start",(t=>{At(t.target)})),document.addEventListener("turbo:submit-end",(t=>{setTimeout((()=>{ft(t.target)}))})),document.addEventListener("turbo-boost:command:start",(t=>{At(t.target)})),document.addEventListener("turbo-boost:command:finish",(t=>{setTimeout((()=>{ft(t.target)}))})),document.addEventListener("turbo-boost:command:error",(t=>{setTimeout((()=>{ft(t.target)}))})),ot.define(),pt.define()},gt={perform:Q,performAsync:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{onMissingElement:K.behavior};return new Promise(((n,o)=>{try{n(Q(t,e))}catch(r){o(r)}}))},shouldMorphCallbacks:U,didMorphCallbacks:H,initialize:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=t.consumer,n=t.onMissingElement,o=t.debug;it.set(!!o),e?nt.setConsumer(e):console.error("CableReady requires a reference to your Action Cable `consumer` for its helpers to function.\nEnsure that you have imported the `CableReady` package as well as `consumer` from your `channels` folder, then call `CableReady.initialize({ consumer })`."),n&&MissingElement.set(n),mt()},addOperation:(t,e)=>{const n={};n[t]=e,Y(n)},addOperations:t=>{Y(t)},version:c,cable:nt,get DOMOperations(){return console.warn("DEPRECATED: Please use `CableReady.operations` instead of `CableReady.DOMOperations`"),V.all},get operations(){return V.all},get consumer(){return nt.consumer}};window.CableReady=gt}).call(this,n(9))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return r}));var o=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],r={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"===typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(t){return"undefined"!==typeof console&&console.warn(t)},getWeek:function(t){var e=new Date(t.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var n=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return F})),n.d(e,"b",(function(){return L}));var o=function(){function t(t,e){this.eventTarget=t,this.eventName=e,this.unorderedBindings=new Set}return t.prototype.connect=function(){this.eventTarget.addEventListener(this.eventName,this,!1)},t.prototype.disconnect=function(){this.eventTarget.removeEventListener(this.eventName,this,!1)},t.prototype.bindingConnected=function(t){this.unorderedBindings.add(t)},t.prototype.bindingDisconnected=function(t){this.unorderedBindings.delete(t)},t.prototype.handleEvent=function(t){for(var e=function(t){if("immediatePropagationStopped"in t)return t;var e=t.stopImmediatePropagation;return Object.assign(t,{immediatePropagationStopped:!1,stopImmediatePropagation:function(){this.immediatePropagationStopped=!0,e.call(this)}})}(t),n=0,o=this.bindings;no?1:0}))},enumerable:!0,configurable:!0}),t}();var r=function(){function t(t){this.application=t,this.eventListenerMaps=new Map,this.started=!1}return t.prototype.start=function(){this.started||(this.started=!0,this.eventListeners.forEach((function(t){return t.connect()})))},t.prototype.stop=function(){this.started&&(this.started=!1,this.eventListeners.forEach((function(t){return t.disconnect()})))},Object.defineProperty(t.prototype,"eventListeners",{get:function(){return Array.from(this.eventListenerMaps.values()).reduce((function(t,e){return t.concat(Array.from(e.values()))}),[])},enumerable:!0,configurable:!0}),t.prototype.bindingConnected=function(t){this.fetchEventListenerForBinding(t).bindingConnected(t)},t.prototype.bindingDisconnected=function(t){this.fetchEventListenerForBinding(t).bindingDisconnected(t)},t.prototype.handleError=function(t,e,n){void 0===n&&(n={}),this.application.handleError(t,"Error "+e,n)},t.prototype.fetchEventListenerForBinding=function(t){var e=t.eventTarget,n=t.eventName;return this.fetchEventListener(e,n)},t.prototype.fetchEventListener=function(t,e){var n=this.fetchEventListenerMapForEventTarget(t),o=n.get(e);return o||(o=this.createEventListener(t,e),n.set(e,o)),o},t.prototype.createEventListener=function(t,e){var n=new o(t,e);return this.started&&n.connect(),n},t.prototype.fetchEventListenerMapForEventTarget=function(t){var e=this.eventListenerMaps.get(t);return e||(e=new Map,this.eventListenerMaps.set(t,e)),e},t}(),i=/^((.+?)(@(window|document))?->)?(.+?)(#(.+))?$/;function a(t){return"window"==t?window:"document"==t?document:void 0}var s=function(){function t(t,e,n){this.element=t,this.index=e,this.eventTarget=n.eventTarget||t,this.eventName=n.eventName||function(t){var e=t.tagName.toLowerCase();if(e in l)return l[e](t)}(t)||c("missing event name"),this.identifier=n.identifier||c("missing identifier"),this.methodName=n.methodName||c("missing method name")}return t.forToken=function(t){return new this(t.element,t.index,(e=t.content,{eventTarget:a((n=e.trim().match(i)||[])[4]),eventName:n[2],identifier:n[5],methodName:n[7]}));var e,n},t.prototype.toString=function(){var t=this.eventTargetName?"@"+this.eventTargetName:"";return""+this.eventName+t+"->"+this.identifier+"#"+this.methodName},Object.defineProperty(t.prototype,"eventTargetName",{get:function(){return(t=this.eventTarget)==window?"window":t==document?"document":void 0;var t},enumerable:!0,configurable:!0}),t}(),l={a:function(t){return"click"},button:function(t){return"click"},form:function(t){return"submit"},input:function(t){return"submit"==t.getAttribute("type")?"click":"change"},select:function(t){return"change"},textarea:function(t){return"change"}};function c(t){throw new Error(t)}var d=function(){function t(t,e){this.context=t,this.action=e}return Object.defineProperty(t.prototype,"index",{get:function(){return this.action.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"eventTarget",{get:function(){return this.action.eventTarget},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"identifier",{get:function(){return this.context.identifier},enumerable:!0,configurable:!0}),t.prototype.handleEvent=function(t){this.willBeInvokedByEvent(t)&&this.invokeWithEvent(t)},Object.defineProperty(t.prototype,"eventName",{get:function(){return this.action.eventName},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"method",{get:function(){var t=this.controller[this.methodName];if("function"==typeof t)return t;throw new Error('Action "'+this.action+'" references undefined method "'+this.methodName+'"')},enumerable:!0,configurable:!0}),t.prototype.invokeWithEvent=function(t){try{this.method.call(this.controller,t)}catch(c){var e=this,n={identifier:e.identifier,controller:e.controller,element:e.element,index:e.index,event:t};this.context.handleError(c,'invoking action "'+this.action+'"',n)}},t.prototype.willBeInvokedByEvent=function(t){var e=t.target;return this.element===e||(!(e instanceof Element&&this.element.contains(e))||this.scope.containsElement(e))},Object.defineProperty(t.prototype,"controller",{get:function(){return this.context.controller},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"methodName",{get:function(){return this.action.methodName},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.scope.element},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scope",{get:function(){return this.context.scope},enumerable:!0,configurable:!0}),t}(),u=function(){function t(t,e){var n=this;this.element=t,this.started=!1,this.delegate=e,this.elements=new Set,this.mutationObserver=new MutationObserver((function(t){return n.processMutations(t)}))}return t.prototype.start=function(){this.started||(this.started=!0,this.mutationObserver.observe(this.element,{attributes:!0,childList:!0,subtree:!0}),this.refresh())},t.prototype.stop=function(){this.started&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.started=!1)},t.prototype.refresh=function(){if(this.started){for(var t=new Set(this.matchElementsInTree()),e=0,n=Array.from(this.elements);e0&&r[r.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]0&&e-1 in t)}function $(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}E.fn=E.prototype={jquery:w,constructor:E,length:0,toArray:function(){return s.call(this)},get:function(t){return null==t?s.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=E.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return E.each(this,t)},map:function(t){return this.pushStack(E.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(E.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(E.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n+~]|"+D+")"+D+"*"),R=new RegExp(D+"|>"),W=new RegExp(P),U=new RegExp("^"+I+"$"),H={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+_),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),bool:new RegExp("^(?:"+k+")$","i"),needsContext:new RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},q=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,Y=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,V=/[+~]/,X=new RegExp("\\\\[\\da-fA-F]{1,6}"+D+"?|\\\\([^\\r\\n\\f])","g"),K=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Q=function(){lt()},J=pt((function(t){return!0===t.disabled&&$(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{f.apply(i=s.call(j.childNodes),j.childNodes),i[j.childNodes.length].nodeType}catch(Ct){f={apply:function(t,e){F.apply(t,s.call(e))},call:function(t){F.apply(t,s.call(arguments,1))}}}function Z(t,e,n,o){var r,i,a,s,c,d,h,A=e&&e.ownerDocument,b=e?e.nodeType:9;if(n=n||[],"string"!==typeof t||!t||1!==b&&9!==b&&11!==b)return n;if(!o&&(lt(e),e=e||l,u)){if(11!==b&&(c=Y.exec(t)))if(r=c[1]){if(9===b){if(!(a=e.getElementById(r)))return n;if(a.id===r)return f.call(n,a),n}else if(A&&(a=A.getElementById(r))&&Z.contains(e,a)&&a.id===r)return f.call(n,a),n}else{if(c[2])return f.apply(n,e.getElementsByTagName(t)),n;if((r=c[3])&&e.getElementsByClassName)return f.apply(n,e.getElementsByClassName(r)),n}if(!w[t+" "]&&(!p||!p.test(t))){if(h=t,A=e,1===b&&(R.test(t)||N.test(t))){for((A=V.test(t)&&st(e.parentNode)||e)==e&&m.scope||((s=e.getAttribute("id"))?s=E.escapeSelector(s):e.setAttribute("id",s=g)),i=(d=dt(t)).length;i--;)d[i]=(s?"#"+s:":scope")+" "+ut(d[i]);h=d.join(",")}try{return f.apply(n,A.querySelectorAll(h)),n}catch(C){w(t,!0)}finally{s===g&&e.removeAttribute("id")}}}return bt(t.replace(M,"$1"),e,n,o)}function tt(){var t=[];return function n(o,r){return t.push(o+" ")>e.cacheLength&&delete n[t.shift()],n[o+" "]=r}}function et(t){return t[g]=!0,t}function nt(t){var e=l.createElement("fieldset");try{return!!t(e)}catch(Ct){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ot(t){return function(e){return $(e,"input")&&e.type===t}}function rt(t){return function(e){return($(e,"input")||$(e,"button"))&&e.type===t}}function it(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&J(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function at(t){return et((function(e){return e=+e,et((function(n,o){for(var r,i=t([],n.length,e),a=i.length;a--;)n[r=i[a]]&&(n[r]=!(o[r]=n[r]))}))}))}function st(t){return t&&"undefined"!==typeof t.getElementsByTagName&&t}function lt(t){var n,o=t?t.ownerDocument||t:j;return o!=l&&9===o.nodeType&&o.documentElement?(c=(l=o).documentElement,u=!E.isXMLDoc(l),A=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&j!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",Q),m.getById=nt((function(t){return c.appendChild(t).id=E.expando,!l.getElementsByName||!l.getElementsByName(E.expando).length})),m.disconnectedMatch=nt((function(t){return A.call(t,"*")})),m.scope=nt((function(){return l.querySelectorAll(":scope")})),m.cssHas=nt((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(Ct){return!0}})),m.getById?(e.filter.ID=function(t){var e=t.replace(X,K);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if("undefined"!==typeof e.getElementById&&u){var n=e.getElementById(t);return n?[n]:[]}}):(e.filter.ID=function(t){var e=t.replace(X,K);return function(t){var n="undefined"!==typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},e.find.ID=function(t,e){if("undefined"!==typeof e.getElementById&&u){var n,o,r,i=e.getElementById(t);if(i){if((n=i.getAttributeNode("id"))&&n.value===t)return[i];for(r=e.getElementsByName(t),o=0;i=r[o++];)if((n=i.getAttributeNode("id"))&&n.value===t)return[i]}return[]}}),e.find.TAG=function(t,e){return"undefined"!==typeof e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if("undefined"!==typeof e.getElementsByClassName&&u)return e.getElementsByClassName(t)},p=[],nt((function(t){var e;c.appendChild(t).innerHTML="",t.querySelectorAll("[selected]").length||p.push("\\["+D+"*(?:value|"+k+")"),t.querySelectorAll("[id~="+g+"-]").length||p.push("~="),t.querySelectorAll("a#"+g+"+*").length||p.push(".#.+[+~]"),t.querySelectorAll(":checked").length||p.push(":checked"),(e=l.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),c.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&p.push(":enabled",":disabled"),(e=l.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||p.push("\\["+D+"*name"+D+"*="+D+"*(?:''|\"\")")})),m.cssHas||p.push(":has"),p=p.length&&new RegExp(p.join("|")),B=function(t,e){if(t===e)return a=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!m.sortDetached&&e.compareDocumentPosition(t)===n?t===l||t.ownerDocument==j&&Z.contains(j,t)?-1:e===l||e.ownerDocument==j&&Z.contains(j,e)?1:r?d.call(r,t)-d.call(r,e):0:4&n?-1:1)},l):l}for(t in Z.matches=function(t,e){return Z(t,null,null,e)},Z.matchesSelector=function(t,e){if(lt(t),u&&!w[e+" "]&&(!p||!p.test(e)))try{var n=A.call(t,e);if(n||m.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(Ct){w(e,!0)}return Z(e,l,null,[t]).length>0},Z.contains=function(t,e){return(t.ownerDocument||t)!=l&<(t),E.contains(t,e)},Z.attr=function(t,n){(t.ownerDocument||t)!=l&<(t);var o=e.attrHandle[n.toLowerCase()],r=o&&h.call(e.attrHandle,n.toLowerCase())?o(t,n,!u):void 0;return void 0!==r?r:t.getAttribute(n)},Z.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},E.uniqueSort=function(t){var e,n=[],o=0,i=0;if(a=!m.sortStable,r=!m.sortStable&&s.call(t,0),O.call(t,B),a){for(;e=t[i++];)e===t[i]&&(o=n.push(i));for(;o--;)T.call(t,n[o],1)}return r=null,t},E.fn.uniqueSort=function(){return this.pushStack(E.uniqueSort(s.apply(this)))},e=E.expr={cacheLength:50,createPseudo:et,match:H,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(X,K),t[3]=(t[3]||t[4]||t[5]||"").replace(X,K),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||Z.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&Z.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return H.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&W.test(n)&&(e=dt(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(X,K).toLowerCase();return"*"===t?function(){return!0}:function(t){return $(t,e)}},CLASS:function(t){var e=y[t+" "];return e||(e=new RegExp("(^|"+D+")"+t+"("+D+"|$)"))&&y(t,(function(t){return e.test("string"===typeof t.className&&t.className||"undefined"!==typeof t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(o){var r=Z.attr(o,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&r.indexOf(n)>-1:"$="===e?n&&r.slice(-n.length)===n:"~="===e?(" "+r.replace(L," ")+" ").indexOf(n)>-1:"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,o,r){var i="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===o&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var c,d,u,p,h,A=i!==a?"nextSibling":"previousSibling",f=e.parentNode,m=s&&e.nodeName.toLowerCase(),C=!l&&!s,y=!1;if(f){if(i){for(;A;){for(u=e;u=u[A];)if(s?$(u,m):1===u.nodeType)return!1;h=A="only"===t&&!h&&"nextSibling"}return!0}if(h=[a?f.firstChild:f.lastChild],a&&C){for(y=(p=(c=(d=f[g]||(f[g]={}))[t]||[])[0]===b&&c[1])&&c[2],u=p&&f.childNodes[p];u=++p&&u&&u[A]||(y=p=0)||h.pop();)if(1===u.nodeType&&++y&&u===e){d[t]=[b,p,y];break}}else if(C&&(y=p=(c=(d=e[g]||(e[g]={}))[t]||[])[0]===b&&c[1]),!1===y)for(;(u=++p&&u&&u[A]||(y=p=0)||h.pop())&&(!(s?$(u,m):1===u.nodeType)||!++y||(C&&((d=u[g]||(u[g]={}))[t]=[b,y]),u!==e)););return(y-=r)===o||y%o===0&&y/o>=0}}},PSEUDO:function(t,n){var o,r=e.pseudos[t]||e.setFilters[t.toLowerCase()]||Z.error("unsupported pseudo: "+t);return r[g]?r(n):r.length>1?(o=[t,t,"",n],e.setFilters.hasOwnProperty(t.toLowerCase())?et((function(t,e){for(var o,i=r(t,n),a=i.length;a--;)t[o=d.call(t,i[a])]=!(e[o]=i[a])})):function(t){return r(t,0,o)}):r}},pseudos:{not:et((function(t){var e=[],n=[],o=gt(t.replace(M,"$1"));return o[g]?et((function(t,e,n,r){for(var i,a=o(t,null,r,[]),s=t.length;s--;)(i=a[s])&&(t[s]=!(e[s]=i))})):function(t,r,i){return e[0]=t,o(e,null,i,n),e[0]=null,!n.pop()}})),has:et((function(t){return function(e){return Z(t,e).length>0}})),contains:et((function(t){return t=t.replace(X,K),function(e){return(e.textContent||E.text(e)).indexOf(t)>-1}})),lang:et((function(t){return U.test(t||"")||Z.error("unsupported lang: "+t),t=t.replace(X,K).toLowerCase(),function(e){var n;do{if(n=u?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===c},focus:function(t){return t===function(){try{return l.activeElement}catch(t){}}()&&l.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:it(!1),disabled:it(!0),checked:function(t){return $(t,"input")&&!!t.checked||$(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return G.test(t.nodeName)},input:function(t){return q.test(t.nodeName)},button:function(t){return $(t,"input")&&"button"===t.type||$(t,"button")},text:function(t){var e;return $(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:at((function(){return[0]})),last:at((function(t,e){return[e-1]})),eq:at((function(t,e,n){return[n<0?n+e:n]})),even:at((function(t,e){for(var n=0;ne?e:n;--o>=0;)t.push(o);return t})),gt:at((function(t,e,n){for(var o=n<0?n+e:n;++o1?function(e,n,o){for(var r=t.length;r--;)if(!t[r](e,n,o))return!1;return!0}:t[0]}function At(t,e,n,o,r){for(var i,a=[],s=0,l=t.length,c=null!=e;s-1&&(i[c]=!(a[c]=p))}}else h=At(h===a?h.splice(g,h.length):h),r?r(null,a,h,l):f.apply(a,h)}))}function mt(t){for(var n,r,i,a=t.length,s=e.relative[t[0].type],l=s||e.relative[" "],c=s?1:0,u=pt((function(t){return t===n}),l,!0),p=pt((function(t){return d.call(n,t)>-1}),l,!0),h=[function(t,e,r){var i=!s&&(r||e!=o)||((n=e).nodeType?u(t,e,r):p(t,e,r));return n=null,i}];c1&&ht(h),c>1&&ut(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace(M,"$1"),r,c0,i=t.length>0,a=function(a,s,c,d,p){var h,A,m,g=0,C="0",y=a&&[],v=[],x=o,w=a||i&&e.find.TAG("*",p),B=b+=null==x?1:Math.random()||.1,k=w.length;for(p&&(o=s==l||s||p);C!==k&&null!=(h=w[C]);C++){if(i&&h){for(A=0,s||h.ownerDocument==l||(lt(h),c=!u);m=t[A++];)if(m(h,s||l,c)){f.call(d,h);break}p&&(b=B)}r&&((h=!m&&h)&&g--,a&&y.push(h))}if(g+=C,r&&C!==g){for(A=0;m=n[A++];)m(y,v,s,c);if(a){if(g>0)for(;C--;)y[C]||v[C]||(v[C]=S.call(d));v=At(v)}f.apply(d,v),p&&!a&&v.length>0&&g+n.length>1&&E.uniqueSort(d)}return p&&(b=B,o=x),y};return r?et(a):a}(a,i)),s.selector=t}return s}function bt(t,n,o,r){var i,a,s,l,c,d="function"===typeof t&&t,p=!r&&dt(t=d.selector||t);if(o=o||[],1===p.length){if((a=p[0]=p[0].slice(0)).length>2&&"ID"===(s=a[0]).type&&9===n.nodeType&&u&&e.relative[a[1].type]){if(!(n=(e.find.ID(s.matches[0].replace(X,K),n)||[])[0]))return o;d&&(n=n.parentNode),t=t.slice(a.shift().value.length)}for(i=H.needsContext.test(t)?0:a.length;i--&&(s=a[i],!e.relative[l=s.type]);)if((c=e.find[l])&&(r=c(s.matches[0].replace(X,K),V.test(a[0].type)&&st(n.parentNode)||n))){if(a.splice(i,1),!(t=r.length&&ut(a)))return f.apply(o,r),o;break}}return(d||gt(t,p))(r,n,!u,o,!n||V.test(t)&&st(n.parentNode)||n),o}ct.prototype=e.filters=e.pseudos,e.setFilters=new ct,m.sortStable=g.split("").sort(B).join("")===g,lt(),m.sortDetached=nt((function(t){return 1&t.compareDocumentPosition(l.createElement("fieldset"))})),E.find=Z,E.expr[":"]=E.expr.pseudos,E.unique=E.uniqueSort,Z.compile=gt,Z.select=bt,Z.setDocument=lt,Z.tokenize=dt,Z.escape=E.escapeSelector,Z.getText=E.text,Z.isXML=E.isXMLDoc,Z.selectors=E.expr,Z.support=E.support,Z.uniqueSort=E.uniqueSort}();var P=function(t,e,n){for(var o=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&E(t).is(n))break;o.push(t)}return o},L=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},z=E.expr.match.needsContext,N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function R(t,e,n){return g(e)?E.grep(t,(function(t,o){return!!e.call(t,o,t)!==n})):e.nodeType?E.grep(t,(function(t){return t===e!==n})):"string"!==typeof e?E.grep(t,(function(t){return d.call(e,t)>-1!==n})):E.filter(e,t,n)}E.filter=function(t,e,n){var o=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===o.nodeType?E.find.matchesSelector(o,t)?[o]:[]:E.find.matches(t,E.grep(e,(function(t){return 1===t.nodeType})))},E.fn.extend({find:function(t){var e,n,o=this.length,r=this;if("string"!==typeof t)return this.pushStack(E(t).filter((function(){for(e=0;e1?E.uniqueSort(n):n},filter:function(t){return this.pushStack(R(this,t||[],!1))},not:function(t){return this.pushStack(R(this,t||[],!0))},is:function(t){return!!R(this,"string"===typeof t&&z.test(t)?E(t):t||[],!1).length}});var W,U=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(E.fn.init=function(t,e,n){var o,r;if(!t)return this;if(n=n||W,"string"===typeof t){if(!(o="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:U.exec(t))||!o[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(o[1]){if(e=e instanceof E?e[0]:e,E.merge(this,E.parseHTML(o[1],e&&e.nodeType?e.ownerDocument||e:C,!0)),N.test(o[1])&&E.isPlainObject(e))for(o in e)g(this[o])?this[o](e[o]):this.attr(o,e[o]);return this}return(r=C.getElementById(o[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):g(t)?void 0!==n.ready?n.ready(t):t(E):E.makeArray(t,this)}).prototype=E.fn,W=E(C);var H=/^(?:parents|prev(?:Until|All))/,q={children:!0,contents:!0,next:!0,prev:!0};function G(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}E.fn.extend({has:function(t){var e=E(t,this),n=e.length;return this.filter((function(){for(var t=0;t-1:1===n.nodeType&&E.find.matchesSelector(n,t))){i.push(n);break}return this.pushStack(i.length>1?E.uniqueSort(i):i)},index:function(t){return t?"string"===typeof t?d.call(E(t),this[0]):d.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(E.uniqueSort(E.merge(this.get(),E(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),E.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return P(t,"parentNode")},parentsUntil:function(t,e,n){return P(t,"parentNode",n)},next:function(t){return G(t,"nextSibling")},prev:function(t){return G(t,"previousSibling")},nextAll:function(t){return P(t,"nextSibling")},prevAll:function(t){return P(t,"previousSibling")},nextUntil:function(t,e,n){return P(t,"nextSibling",n)},prevUntil:function(t,e,n){return P(t,"previousSibling",n)},siblings:function(t){return L((t.parentNode||{}).firstChild,t)},children:function(t){return L(t.firstChild)},contents:function(t){return null!=t.contentDocument&&a(t.contentDocument)?t.contentDocument:($(t,"template")&&(t=t.content||t),E.merge([],t.childNodes))}},(function(t,e){E.fn[t]=function(n,o){var r=E.map(this,e,n);return"Until"!==t.slice(-5)&&(o=n),o&&"string"===typeof o&&(r=E.filter(o,r)),this.length>1&&(q[t]||E.uniqueSort(r),H.test(t)&&r.reverse()),this.pushStack(r)}}));var Y=/[^\x20\t\r\n\f]+/g;function V(t){return t}function X(t){throw t}function K(t,e,n,o){var r;try{t&&g(r=t.promise)?r.call(t).done(e).fail(n):t&&g(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(o))}catch(t){n.apply(void 0,[t])}}E.Callbacks=function(t){t="string"===typeof t?function(t){var e={};return E.each(t.match(Y)||[],(function(t,n){e[n]=!0})),e}(t):E.extend({},t);var e,n,o,r,i=[],a=[],s=-1,l=function(){for(r=r||t.once,o=e=!0;a.length;s=-1)for(n=a.shift();++s-1;)i.splice(n,1),n<=s&&s--})),this},has:function(t){return t?E.inArray(t,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return r=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return r=a=[],n||e||(i=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!o}};return c},E.extend({Deferred:function(t){var e=[["notify","progress",E.Callbacks("memory"),E.Callbacks("memory"),2],["resolve","done",E.Callbacks("once memory"),E.Callbacks("once memory"),0,"resolved"],["reject","fail",E.Callbacks("once memory"),E.Callbacks("once memory"),1,"rejected"]],o="pending",r={state:function(){return o},always:function(){return i.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return E.Deferred((function(n){E.each(e,(function(e,o){var r=g(t[o[4]])&&t[o[4]];i[o[1]]((function(){var t=r&&r.apply(this,arguments);t&&g(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this,r?[t]:arguments)}))})),t=null})).promise()},then:function(t,o,r){var i=0;function a(t,e,o,r){return function(){var s=this,l=arguments,c=function(){var n,c;if(!(t=i&&(o!==X&&(s=void 0,l=[n]),e.rejectWith(s,l))}};t?d():(E.Deferred.getErrorHook?d.error=E.Deferred.getErrorHook():E.Deferred.getStackHook&&(d.error=E.Deferred.getStackHook()),n.setTimeout(d))}}return E.Deferred((function(n){e[0][3].add(a(0,n,g(r)?r:V,n.notifyWith)),e[1][3].add(a(0,n,g(t)?t:V)),e[2][3].add(a(0,n,g(o)?o:X))})).promise()},promise:function(t){return null!=t?E.extend(t,r):r}},i={};return E.each(e,(function(t,n){var a=n[2],s=n[5];r[n[1]]=a.add,s&&a.add((function(){o=s}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(n[3].fire),i[n[0]]=function(){return i[n[0]+"With"](this===i?void 0:this,arguments),this},i[n[0]+"With"]=a.fireWith})),r.promise(i),t&&t.call(i,i),i},when:function(t){var e=arguments.length,n=e,o=Array(n),r=s.call(arguments),i=E.Deferred(),a=function(t){return function(n){o[t]=this,r[t]=arguments.length>1?s.call(arguments):n,--e||i.resolveWith(o,r)}};if(e<=1&&(K(t,i.done(a(n)).resolve,i.reject,!e),"pending"===i.state()||g(r[n]&&r[n].then)))return i.then();for(;n--;)K(r[n],a(n),i.reject);return i.promise()}});var Q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;E.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&Q.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},E.readyException=function(t){n.setTimeout((function(){throw t}))};var J=E.Deferred();function Z(){C.removeEventListener("DOMContentLoaded",Z),n.removeEventListener("load",Z),E.ready()}E.fn.ready=function(t){return J.then(t).catch((function(t){E.readyException(t)})),this},E.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--E.readyWait:E.isReady)||(E.isReady=!0,!0!==t&&--E.readyWait>0||J.resolveWith(C,[E]))}}),E.ready.then=J.then,"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?n.setTimeout(E.ready):(C.addEventListener("DOMContentLoaded",Z),n.addEventListener("load",Z));var tt=function(t,e,n,o,r,i,a){var s=0,l=t.length,c=null==n;if("object"===x(n))for(s in r=!0,n)tt(t,e,s,n[s],!0,i,a);else if(void 0!==o&&(r=!0,g(o)||(a=!0),c&&(a?(e.call(t,o),e=null):(c=e,e=function(t,e,n){return c.call(E(t),n)})),e))for(;s1,null,!0)},removeData:function(t){return this.each((function(){lt.remove(this,t)}))}}),E.extend({queue:function(t,e,n){var o;if(t)return e=(e||"fx")+"queue",o=st.get(t,e),n&&(!o||Array.isArray(n)?o=st.access(t,e,E.makeArray(n)):o.push(n)),o||[]},dequeue:function(t,e){e=e||"fx";var n=E.queue(t,e),o=n.length,r=n.shift(),i=E._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),o--),r&&("fx"===e&&n.unshift("inprogress"),delete i.stop,r.call(t,(function(){E.dequeue(t,e)}),i)),!o&&i&&i.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return st.get(t,n)||st.access(t,n,{empty:E.Callbacks("once memory").add((function(){st.remove(t,[e+"queue",n])}))})}}),E.fn.extend({queue:function(t,e){var n=2;return"string"!==typeof t&&(e=t,t="fx",n--),arguments.length\x20\t\r\n\f]*)/i,$t=/^$|^module$|\/(?:java|ecma)script/i;wt=C.createDocumentFragment().appendChild(C.createElement("div")),(Bt=C.createElement("input")).setAttribute("type","radio"),Bt.setAttribute("checked","checked"),Bt.setAttribute("name","t"),wt.appendChild(Bt),m.checkClone=wt.cloneNode(!0).cloneNode(!0).lastChild.checked,wt.innerHTML="",m.noCloneChecked=!!wt.cloneNode(!0).lastChild.defaultValue,wt.innerHTML="",m.option=!!wt.lastChild;var St={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function Ot(t,e){var n;return n="undefined"!==typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!==typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&$(t,e)?E.merge([t],n):n}function Tt(t,e){for(var n=0,o=t.length;n",""]);var Dt=/<|&#?\w+;/;function Mt(t,e,n,o,r){for(var i,a,s,l,c,d,u=e.createDocumentFragment(),p=[],h=0,A=t.length;h-1)r&&r.push(i);else if(c=mt(i),a=Ot(u.appendChild(i),"script"),c&&Tt(a),n)for(d=0;i=a[d++];)$t.test(i.type||"")&&n.push(i);return u}var It=/^([^.]*)(?:\.(.+)|)/;function _t(){return!0}function jt(){return!1}function Ft(t,e,n,o,r,i){var a,s;if("object"===typeof e){for(s in"string"!==typeof n&&(o=o||n,n=void 0),e)Ft(t,s,n,o,e[s],i);return t}if(null==o&&null==r?(r=n,o=n=void 0):null==r&&("string"===typeof n?(r=o,o=void 0):(r=o,o=n,n=void 0)),!1===r)r=jt;else if(!r)return t;return 1===i&&(a=r,r=function(t){return E().off(t),a.apply(this,arguments)},r.guid=a.guid||(a.guid=E.guid++)),t.each((function(){E.event.add(this,e,r,o,n)}))}function Pt(t,e,n){n?(st.set(t,e,!1),E.event.add(t,e,{namespace:!1,handler:function(t){var n,o=st.get(this,e);if(1&t.isTrigger&&this[e]){if(o)(E.event.special[e]||{}).delegateType&&t.stopPropagation();else if(o=s.call(arguments),st.set(this,e,o),this[e](),n=st.get(this,e),st.set(this,e,!1),o!==n)return t.stopImmediatePropagation(),t.preventDefault(),n}else o&&(st.set(this,e,E.event.trigger(o[0],o.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=_t)}})):void 0===st.get(t,e)&&E.event.add(t,e,_t)}E.event={global:{},add:function(t,e,n,o,r){var i,a,s,l,c,d,u,p,h,A,f,m=st.get(t);if(it(t))for(n.handler&&(n=(i=n).handler,r=i.selector),r&&E.find.matchesSelector(ft,r),n.guid||(n.guid=E.guid++),(l=m.events)||(l=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(e){return"undefined"!==typeof E&&E.event.triggered!==e.type?E.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(Y)||[""]).length;c--;)h=f=(s=It.exec(e[c])||[])[1],A=(s[2]||"").split(".").sort(),h&&(u=E.event.special[h]||{},h=(r?u.delegateType:u.bindType)||h,u=E.event.special[h]||{},d=E.extend({type:h,origType:f,data:o,handler:n,guid:n.guid,selector:r,needsContext:r&&E.expr.match.needsContext.test(r),namespace:A.join(".")},i),(p=l[h])||((p=l[h]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,o,A,a)||t.addEventListener&&t.addEventListener(h,a)),u.add&&(u.add.call(t,d),d.handler.guid||(d.handler.guid=n.guid)),r?p.splice(p.delegateCount++,0,d):p.push(d),E.event.global[h]=!0)},remove:function(t,e,n,o,r){var i,a,s,l,c,d,u,p,h,A,f,m=st.hasData(t)&&st.get(t);if(m&&(l=m.events)){for(c=(e=(e||"").match(Y)||[""]).length;c--;)if(h=f=(s=It.exec(e[c])||[])[1],A=(s[2]||"").split(".").sort(),h){for(u=E.event.special[h]||{},p=l[h=(o?u.delegateType:u.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+A.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=p.length;i--;)d=p[i],!r&&f!==d.origType||n&&n.guid!==d.guid||s&&!s.test(d.namespace)||o&&o!==d.selector&&("**"!==o||!d.selector)||(p.splice(i,1),d.selector&&p.delegateCount--,u.remove&&u.remove.call(t,d));a&&!p.length&&(u.teardown&&!1!==u.teardown.call(t,A,m.handle)||E.removeEvent(t,h,m.handle),delete l[h])}else for(h in l)E.event.remove(t,h+e[c],n,o,!0);E.isEmptyObject(l)&&st.remove(t,"handle events")}},dispatch:function(t){var e,n,o,r,i,a,s=new Array(arguments.length),l=E.event.fix(t),c=(st.get(this,"events")||Object.create(null))[l.type]||[],d=E.event.special[l.type]||{};for(s[0]=l,e=1;e=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(i=[],a={},n=0;n-1:E.find(r,this,null,[c]).length),a[r]&&i.push(o);i.length&&s.push({elem:c,handlers:i})}return c=this,l\s*$/g;function Rt(t,e){return $(t,"table")&&$(11!==e.nodeType?e:e.firstChild,"tr")&&E(t).children("tbody")[0]||t}function Wt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ut(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Ht(t,e){var n,o,r,i,a,s;if(1===e.nodeType){if(st.hasData(t)&&(s=st.get(t).events))for(r in st.remove(e,"handle events"),s)for(n=0,o=s[r].length;n1&&"string"===typeof A&&!m.checkClone&&zt.test(A))return t.each((function(r){var i=t.eq(r);f&&(e[0]=A.call(this,r,i.html())),Gt(i,e,n,o)}));if(p&&(i=(r=Mt(e,t[0].ownerDocument,!1,t,o)).firstChild,1===r.childNodes.length&&(r=i),i||o)){for(s=(a=E.map(Ot(r,"script"),Wt)).length;u0&&Tt(a,!l&&Ot(t,"script")),s},cleanData:function(t){for(var e,n,o,r=E.event.special,i=0;void 0!==(n=t[i]);i++)if(it(n)){if(e=n[st.expando]){if(e.events)for(o in e.events)r[o]?E.event.remove(n,o):E.removeEvent(n,o,e.handle);n[st.expando]=void 0}n[lt.expando]&&(n[lt.expando]=void 0)}}}),E.fn.extend({detach:function(t){return Yt(this,t,!0)},remove:function(t){return Yt(this,t)},text:function(t){return tt(this,(function(t){return void 0===t?E.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Gt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Rt(this,t).appendChild(t)}))},prepend:function(){return Gt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Rt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Gt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Gt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(E.cleanData(Ot(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return E.clone(this,t,e)}))},html:function(t){return tt(this,(function(t){var e=this[0]||{},n=0,o=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"===typeof t&&!Lt.test(t)&&!St[(kt.exec(t)||["",""])[1].toLowerCase()]){t=E.htmlPrefilter(t);try{for(;n=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-i-l-s-.5))||0),l+c}function de(t,e,n){var o=Kt(t),r=(!m.boxSizingReliable()||n)&&"border-box"===E.css(t,"boxSizing",!1,o),i=r,a=Zt(t,e,o),s="offset"+e[0].toUpperCase()+e.slice(1);if(Vt.test(a)){if(!n)return a;a="auto"}return(!m.boxSizingReliable()&&r||!m.reliableTrDimensions()&&$(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===E.css(t,"display",!1,o))&&t.getClientRects().length&&(r="border-box"===E.css(t,"boxSizing",!1,o),(i=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+ce(t,e,n||(r?"border":"content"),i,o,a)+"px"}function ue(t,e,n,o,r){return new ue.prototype.init(t,e,n,o,r)}E.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Zt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!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,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,n,o){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,i,a,s=rt(e),l=Xt.test(e),c=t.style;if(l||(e=re(s)),a=E.cssHooks[e]||E.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(t,!1,o))?r:c[e];"string"===(i=typeof n)&&(r=ht.exec(n))&&r[1]&&(n=Ct(t,e,r),i="number"),null!=n&&n===n&&("number"!==i||l||(n+=r&&r[3]||(E.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==e.indexOf("background")||(c[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,o))||(l?c.setProperty(e,n):c[e]=n))}},css:function(t,e,n,o){var r,i,a,s=rt(e);return Xt.test(e)||(e=re(s)),(a=E.cssHooks[e]||E.cssHooks[s])&&"get"in a&&(r=a.get(t,!0,n)),void 0===r&&(r=Zt(t,e,o)),"normal"===r&&e in se&&(r=se[e]),""===n||n?(i=parseFloat(r),!0===n||isFinite(i)?i||0:r):r}}),E.each(["height","width"],(function(t,e){E.cssHooks[e]={get:function(t,n,o){if(n)return!ie.test(E.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?de(t,e,o):Qt(t,ae,(function(){return de(t,e,o)}))},set:function(t,n,o){var r,i=Kt(t),a=!m.scrollboxSize()&&"absolute"===i.position,s=(a||o)&&"border-box"===E.css(t,"boxSizing",!1,i),l=o?ce(t,e,o,s,i):0;return s&&a&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(i[e])-ce(t,e,"border",!1,i)-.5)),l&&(r=ht.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=E.css(t,e)),le(0,n,l)}}})),E.cssHooks.marginLeft=te(m.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Zt(t,"marginLeft"))||t.getBoundingClientRect().left-Qt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),E.each({margin:"",padding:"",border:"Width"},(function(t,e){E.cssHooks[t+e]={expand:function(n){for(var o=0,r={},i="string"===typeof n?n.split(" "):[n];o<4;o++)r[t+At[o]+e]=i[o]||i[o-2]||i[0];return r}},"margin"!==t&&(E.cssHooks[t+e].set=le)})),E.fn.extend({css:function(t,e){return tt(this,(function(t,e,n){var o,r,i={},a=0;if(Array.isArray(e)){for(o=Kt(t),r=e.length;a1)}}),E.Tween=ue,ue.prototype={constructor:ue,init:function(t,e,n,o,r,i){this.elem=t,this.prop=n,this.easing=r||E.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=o,this.unit=i||(E.cssNumber[n]?"":"px")},cur:function(){var t=ue.propHooks[this.prop];return t&&t.get?t.get(this):ue.propHooks._default.get(this)},run:function(t){var e,n=ue.propHooks[this.prop];return this.options.duration?this.pos=e=E.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ue.propHooks._default.set(this),this}},ue.prototype.init.prototype=ue.prototype,ue.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=E.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){E.fx.step[t.prop]?E.fx.step[t.prop](t):1!==t.elem.nodeType||!E.cssHooks[t.prop]&&null==t.elem.style[re(t.prop)]?t.elem[t.prop]=t.now:E.style(t.elem,t.prop,t.now+t.unit)}}},ue.propHooks.scrollTop=ue.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},E.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},E.fx=ue.prototype.init,E.fx.step={};var pe,he,Ae=/^(?:toggle|show|hide)$/,fe=/queueHooks$/;function me(){he&&(!1===C.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(me):n.setTimeout(me,E.fx.interval),E.fx.tick())}function ge(){return n.setTimeout((function(){pe=void 0})),pe=Date.now()}function be(t,e){var n,o=0,r={height:t};for(e=e?1:0;o<4;o+=2-e)r["margin"+(n=At[o])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function Ce(t,e,n){for(var o,r=(ye.tweeners[e]||[]).concat(ye.tweeners["*"]),i=0,a=r.length;i1)},removeAttr:function(t){return this.each((function(){E.removeAttr(this,t)}))}}),E.extend({attr:function(t,e,n){var o,r,i=t.nodeType;if(3!==i&&8!==i&&2!==i)return"undefined"===typeof t.getAttribute?E.prop(t,e,n):(1===i&&E.isXMLDoc(t)||(r=E.attrHooks[e.toLowerCase()]||(E.expr.match.bool.test(e)?ve:void 0)),void 0!==n?null===n?void E.removeAttr(t,e):r&&"set"in r&&void 0!==(o=r.set(t,n,e))?o:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(o=r.get(t,e))?o:null==(o=E.find.attr(t,e))?void 0:o)},attrHooks:{type:{set:function(t,e){if(!m.radioValue&&"radio"===e&&$(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,o=0,r=e&&e.match(Y);if(r&&1===t.nodeType)for(;n=r[o++];)t.removeAttribute(n)}}),ve={set:function(t,e,n){return!1===e?E.removeAttr(t,n):t.setAttribute(n,n),n}},E.each(E.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=xe[e]||E.find.attr;xe[e]=function(t,e,o){var r,i,a=e.toLowerCase();return o||(i=xe[a],xe[a]=r,r=null!=n(t,e,o)?a:null,xe[a]=i),r}}));var we=/^(?:input|select|textarea|button)$/i,Be=/^(?:a|area)$/i;function Ee(t){return(t.match(Y)||[]).join(" ")}function ke(t){return t.getAttribute&&t.getAttribute("class")||""}function $e(t){return Array.isArray(t)?t:"string"===typeof t&&t.match(Y)||[]}E.fn.extend({prop:function(t,e){return tt(this,E.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[E.propFix[t]||t]}))}}),E.extend({prop:function(t,e,n){var o,r,i=t.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&E.isXMLDoc(t)||(e=E.propFix[e]||e,r=E.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(o=r.set(t,n,e))?o:t[e]=n:r&&"get"in r&&null!==(o=r.get(t,e))?o:t[e]},propHooks:{tabIndex:{get:function(t){var e=E.find.attr(t,"tabindex");return e?parseInt(e,10):we.test(t.nodeName)||Be.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(E.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){E.propFix[this.toLowerCase()]=this})),E.fn.extend({addClass:function(t){var e,n,o,r,i,a;return g(t)?this.each((function(e){E(this).addClass(t.call(this,e,ke(this)))})):(e=$e(t)).length?this.each((function(){if(o=ke(this),n=1===this.nodeType&&" "+Ee(o)+" "){for(i=0;i-1;)n=n.replace(" "+r+" "," ");a=Ee(n),o!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(t,e){var n,o,r,i,a=typeof t,s="string"===a||Array.isArray(t);return g(t)?this.each((function(n){E(this).toggleClass(t.call(this,n,ke(this),e),e)})):"boolean"===typeof e&&s?e?this.addClass(t):this.removeClass(t):(n=$e(t),this.each((function(){if(s)for(i=E(this),r=0;r-1)return!0;return!1}});var Se=/\r/g;E.fn.extend({val:function(t){var e,n,o,r=this[0];return arguments.length?(o=g(t),this.each((function(n){var r;1===this.nodeType&&(null==(r=o?t.call(this,n,E(this).val()):t)?r="":"number"===typeof r?r+="":Array.isArray(r)&&(r=E.map(r,(function(t){return null==t?"":t+""}))),(e=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=E.valHooks[r.type]||E.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"===typeof(n=r.value)?n.replace(Se,""):null==n?"":n:void 0}}),E.extend({valHooks:{option:{get:function(t){var e=E.find.attr(t,"value");return null!=e?e:Ee(E.text(t))}},select:{get:function(t){var e,n,o,r=t.options,i=t.selectedIndex,a="select-one"===t.type,s=a?null:[],l=a?i+1:r.length;for(o=i<0?l:a?i:0;o-1)&&(n=!0);return n||(t.selectedIndex=-1),i}}}}),E.each(["radio","checkbox"],(function(){E.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=E.inArray(E(t).val(),e)>-1}},m.checkOn||(E.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var Oe=n.location,Te={guid:Date.now()},De=/\?/;E.parseXML=function(t){var e,o;if(!t||"string"!==typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(r){}return o=e&&e.getElementsByTagName("parsererror")[0],e&&!o||E.error("Invalid XML: "+(o?E.map(o.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var Me=/^(?:focusinfocus|focusoutblur)$/,Ie=function(t){t.stopPropagation()};E.extend(E.event,{trigger:function(t,e,o,r){var i,a,s,l,c,d,u,p,A=[o||C],f=h.call(t,"type")?t.type:t,m=h.call(t,"namespace")?t.namespace.split("."):[];if(a=p=s=o=o||C,3!==o.nodeType&&8!==o.nodeType&&!Me.test(f+E.event.triggered)&&(f.indexOf(".")>-1&&(m=f.split("."),f=m.shift(),m.sort()),c=f.indexOf(":")<0&&"on"+f,(t=t[E.expando]?t:new E.Event(f,"object"===typeof t&&t)).isTrigger=r?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=o),e=null==e?[t]:E.makeArray(e,[t]),u=E.event.special[f]||{},r||!u.trigger||!1!==u.trigger.apply(o,e))){if(!r&&!u.noBubble&&!b(o)){for(l=u.delegateType||f,Me.test(l+f)||(a=a.parentNode);a;a=a.parentNode)A.push(a),s=a;s===(o.ownerDocument||C)&&A.push(s.defaultView||s.parentWindow||n)}for(i=0;(a=A[i++])&&!t.isPropagationStopped();)p=a,t.type=i>1?l:u.bindType||f,(d=(st.get(a,"events")||Object.create(null))[t.type]&&st.get(a,"handle"))&&d.apply(a,e),(d=c&&a[c])&&d.apply&&it(a)&&(t.result=d.apply(a,e),!1===t.result&&t.preventDefault());return t.type=f,r||t.isDefaultPrevented()||u._default&&!1!==u._default.apply(A.pop(),e)||!it(o)||c&&g(o[f])&&!b(o)&&((s=o[c])&&(o[c]=null),E.event.triggered=f,t.isPropagationStopped()&&p.addEventListener(f,Ie),o[f](),t.isPropagationStopped()&&p.removeEventListener(f,Ie),E.event.triggered=void 0,s&&(o[c]=s)),t.result}},simulate:function(t,e,n){var o=E.extend(new E.Event,n,{type:t,isSimulated:!0});E.event.trigger(o,null,e)}}),E.fn.extend({trigger:function(t,e){return this.each((function(){E.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return E.event.trigger(t,e,n,!0)}});var _e=/\[\]$/,je=/\r?\n/g,Fe=/^(?:submit|button|image|reset|file)$/i,Pe=/^(?:input|select|textarea|keygen)/i;function Le(t,e,n,o){var r;if(Array.isArray(e))E.each(e,(function(e,r){n||_e.test(t)?o(t,r):Le(t+"["+("object"===typeof r&&null!=r?e:"")+"]",r,n,o)}));else if(n||"object"!==x(e))o(t,e);else for(r in e)Le(t+"["+r+"]",e[r],n,o)}E.param=function(t,e){var n,o=[],r=function(t,e){var n=g(e)?e():e;o[o.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!E.isPlainObject(t))E.each(t,(function(){r(this.name,this.value)}));else for(n in t)Le(n,t[n],e,r);return o.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=E.prop(this,"elements");return t?E.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!E(this).is(":disabled")&&Pe.test(this.nodeName)&&!Fe.test(t)&&(this.checked||!Et.test(t))})).map((function(t,e){var n=E(this).val();return null==n?null:Array.isArray(n)?E.map(n,(function(t){return{name:e.name,value:t.replace(je,"\r\n")}})):{name:e.name,value:n.replace(je,"\r\n")}})).get()}});var ze=/%20/g,Ne=/#.*$/,Re=/([?&])_=[^&]*/,We=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ue=/^(?:GET|HEAD)$/,He=/^\/\//,qe={},Ge={},Ye="*/".concat("*"),Ve=C.createElement("a");function Xe(t){return function(e,n){"string"!==typeof e&&(n=e,e="*");var o,r=0,i=e.toLowerCase().match(Y)||[];if(g(n))for(;o=i[r++];)"+"===o[0]?(o=o.slice(1)||"*",(t[o]=t[o]||[]).unshift(n)):(t[o]=t[o]||[]).push(n)}}function Ke(t,e,n,o){var r={},i=t===Ge;function a(s){var l;return r[s]=!0,E.each(t[s]||[],(function(t,s){var c=s(e,n,o);return"string"!==typeof c||i||r[c]?i?!(l=c):void 0:(e.dataTypes.unshift(c),a(c),!1)})),l}return a(e.dataTypes[0])||!r["*"]&&a("*")}function Qe(t,e){var n,o,r=E.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:o||(o={}))[n]=e[n]);return o&&E.extend(!0,t,o),t}Ve.href=Oe.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Oe.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Oe.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ye,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Qe(Qe(t,E.ajaxSettings),e):Qe(E.ajaxSettings,t)},ajaxPrefilter:Xe(qe),ajaxTransport:Xe(Ge),ajax:function(t,e){"object"===typeof t&&(e=t,t=void 0),e=e||{};var o,r,i,a,s,l,c,d,u,p,h=E.ajaxSetup({},e),A=h.context||h,f=h.context&&(A.nodeType||A.jquery)?E(A):E.event,m=E.Deferred(),g=E.Callbacks("once memory"),b=h.statusCode||{},y={},v={},x="canceled",w={readyState:0,getResponseHeader:function(t){var e;if(c){if(!a)for(a={};e=We.exec(i);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?i:null},setRequestHeader:function(t,e){return null==c&&(t=v[t.toLowerCase()]=v[t.toLowerCase()]||t,y[t]=e),this},overrideMimeType:function(t){return null==c&&(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)w.always(t[w.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||x;return o&&o.abort(e),B(0,e),this}};if(m.promise(w),h.url=((t||h.url||Oe.href)+"").replace(He,Oe.protocol+"//"),h.type=e.method||e.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(Y)||[""],null==h.crossDomain){l=C.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=Ve.protocol+"//"+Ve.host!==l.protocol+"//"+l.host}catch(k){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!==typeof h.data&&(h.data=E.param(h.data,h.traditional)),Ke(qe,h,e,w),c)return w;for(u in(d=E.event&&h.global)&&0===E.active++&&E.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Ue.test(h.type),r=h.url.replace(Ne,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(ze,"+")):(p=h.url.slice(r.length),h.data&&(h.processData||"string"===typeof h.data)&&(r+=(De.test(r)?"&":"?")+h.data,delete h.data),!1===h.cache&&(r=r.replace(Re,"$1"),p=(De.test(r)?"&":"?")+"_="+Te.guid+++p),h.url=r+p),h.ifModified&&(E.lastModified[r]&&w.setRequestHeader("If-Modified-Since",E.lastModified[r]),E.etag[r]&&w.setRequestHeader("If-None-Match",E.etag[r])),(h.data&&h.hasContent&&!1!==h.contentType||e.contentType)&&w.setRequestHeader("Content-Type",h.contentType),w.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Ye+"; q=0.01":""):h.accepts["*"]),h.headers)w.setRequestHeader(u,h.headers[u]);if(h.beforeSend&&(!1===h.beforeSend.call(A,w,h)||c))return w.abort();if(x="abort",g.add(h.complete),w.done(h.success),w.fail(h.error),o=Ke(Ge,h,e,w)){if(w.readyState=1,d&&f.trigger("ajaxSend",[w,h]),c)return w;h.async&&h.timeout>0&&(s=n.setTimeout((function(){w.abort("timeout")}),h.timeout));try{c=!1,o.send(y,B)}catch(k){if(c)throw k;B(-1,k)}}else B(-1,"No Transport");function B(t,e,a,l){var u,p,C,y,v,x=e;c||(c=!0,s&&n.clearTimeout(s),o=void 0,i=l||"",w.readyState=t>0?4:0,u=t>=200&&t<300||304===t,a&&(y=function(t,e,n){for(var o,r,i,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===o&&(o=t.mimeType||e.getResponseHeader("Content-Type"));if(o)for(r in s)if(s[r]&&s[r].test(o)){l.unshift(r);break}if(l[0]in n)i=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){i=r;break}a||(a=r)}i=i||a}if(i)return i!==l[0]&&l.unshift(i),n[i]}(h,w,a)),!u&&E.inArray("script",h.dataTypes)>-1&&E.inArray("json",h.dataTypes)<0&&(h.converters["text script"]=function(){}),y=function(t,e,n,o){var r,i,a,s,l,c={},d=t.dataTypes.slice();if(d[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(i=d.shift();i;)if(t.responseFields[i]&&(n[t.responseFields[i]]=e),!l&&o&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=i,i=d.shift())if("*"===i)i=l;else if("*"!==l&&l!==i){if(!(a=c[l+" "+i]||c["* "+i]))for(r in c)if((s=r.split(" "))[1]===i&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[r]:!0!==c[r]&&(i=s[0],d.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(k){return{state:"parsererror",error:a?k:"No conversion from "+l+" to "+i}}}return{state:"success",data:e}}(h,y,w,u),u?(h.ifModified&&((v=w.getResponseHeader("Last-Modified"))&&(E.lastModified[r]=v),(v=w.getResponseHeader("etag"))&&(E.etag[r]=v)),204===t||"HEAD"===h.type?x="nocontent":304===t?x="notmodified":(x=y.state,p=y.data,u=!(C=y.error))):(C=x,!t&&x||(x="error",t<0&&(t=0))),w.status=t,w.statusText=(e||x)+"",u?m.resolveWith(A,[p,x,w]):m.rejectWith(A,[w,x,C]),w.statusCode(b),b=void 0,d&&f.trigger(u?"ajaxSuccess":"ajaxError",[w,h,u?p:C]),g.fireWith(A,[w,x]),d&&(f.trigger("ajaxComplete",[w,h]),--E.active||E.event.trigger("ajaxStop")))}return w},getJSON:function(t,e,n){return E.get(t,e,n,"json")},getScript:function(t,e){return E.get(t,void 0,e,"script")}}),E.each(["get","post"],(function(t,e){E[e]=function(t,n,o,r){return g(n)&&(r=r||o,o=n,n=void 0),E.ajax(E.extend({url:t,type:e,dataType:r,data:n,success:o},E.isPlainObject(t)&&t))}})),E.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),E._evalUrl=function(t,e,n){return E.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){E.globalEval(t,e,n)}})},E.fn.extend({wrapAll:function(t){var e;return this[0]&&(g(t)&&(t=t.call(this[0])),e=E(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return g(t)?this.each((function(e){E(this).wrapInner(t.call(this,e))})):this.each((function(){var e=E(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=g(t);return this.each((function(n){E(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){E(this).replaceWith(this.childNodes)})),this}}),E.expr.pseudos.hidden=function(t){return!E.expr.pseudos.visible(t)},E.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var Je={0:200,1223:204},Ze=E.ajaxSettings.xhr();m.cors=!!Ze&&"withCredentials"in Ze,m.ajax=Ze=!!Ze,E.ajaxTransport((function(t){var e,o;if(m.cors||Ze&&!t.crossDomain)return{send:function(r,i){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);e=function(t){return function(){e&&(e=o=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!==typeof s.status?i(0,"error"):i(s.status,s.statusText):i(Je[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!==typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),o=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=o:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){e&&o()}))},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(l){if(e)throw l}},abort:function(){e&&e()}}})),E.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),E.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return E.globalEval(t),t}}}),E.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),E.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(o,r){e=E("